PageSourceSearch

https://www.kolau.com/assets/application-f5e54718983dd7a3d1d3be1eae3361c6ef0d8441b3de7dae7483a40ed9ca2819.js

js kolau.com collected 2026-09-29 17:20:24 UTC 2,307,475 bytes, 71 lines download raw bytes

1function _typeof(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _classCallCheck(t,e){if(!_instanceof(t,e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){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 _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return i}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(i),!0).forEach((function(e){_defineProperty(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _createForOfIteratorHelper(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 o,a=!0,s=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function _typeof(t){return _typeof="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},_typeof(t)}function ColorFactory(){this.createSelector=function(t,e,i=!1,n=!0,r=!1,o=!1,a={}){return console.log(e),Pickr.create({el:t,theme:"nano",default:e||"#ffffff",useAsButton:i,lockOpacity:!n,comparison:!1,showAlways:o,autoReposition:!0,swatches:[n?"rgba(0,0,0,0)":"rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!1,opacity:n,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,cmyk:!1,input:!0,clear:r,save:!0}},i18n:{"btn:save":a.save||"Guardar","btn:cancel":a.cancel||"Cancelar","btn:clear":a.clear||"Quitar"}})}}function genBlob(t,e,i,n,r){var o=t.file,a=new FileReader;a.onload=a=>{let s=new Image;s.onload=()=>{"image/gif"!=o.type?(t.attachment.fileObjectURL=loaderBase64(s,o),uploadAttachment(t,e,i,n,r)):(t.attachment.fileObjectURL=a.target.result,uploadAttachment(t,e,i,n,r))},s.src=a.target.result,o.type},a.readAsDataURL(o)}function uploadPdfAttachment(t,e,i,n,r){var o=t.file,a=new FormData;a.append("Content-Type",o.type),a.append("trix_pdf[pdf]",o),a.append("trix_pdf[trixattachable_type]",n),a.append("trix_pdf[trixattachable_id]",i);const s=document.getElementById("advance_trix_submit_form"),l=document.getElementById("advance_submit_config_form"),c=document.getElementById("save-without-image");c&&c.addEventListener("click",hideCantSaveAlert,!0);var h=new XMLHttpRequest;return h.open("POST",`/account/domains/${e}/trix_pdfs`),h.setRequestHeader("X-CSRF-Token",r),h.upload.onprogress=function(e){var i=e.loaded/e.total*100;
1s&&s.addEventListener("click",showCantSaveAlert,!0),l&&l.addEventListener("click",showCantSaveAlert,!0),t.setUploadProgress(i)},h.onload=function(){if(201===h.status){var e=JSON.parse(h.responseText);t.file.size/1024/1024>24.9?t.setAttributes({url:e.pdf.url,content:`<iframe src="${e.pdf.url}#toolbar=0" width="100%" height="100%">`}):t.setAttributes({url:e.pdf.url,content:`<iframe src="https://docs.google.com/viewerng/viewer?embedded=true&url=${e.pdf.url}#toolbar=0" width="100%" height="100%">`}),$("#alert-cant-save").modal("hide"),s&&s.removeEventListener("click",showCantSaveAlert,!0),l&&l.removeEventListener("click",showCantSaveAlert,!0)}},h.send(a)}async function uploadAttachment(t,e,i,n,r){const o=new FormData;new FileReader;o.append("Content-Type","image/png"),o.append("trix_image[image]",t.attachment.fileObjectURL),o.append("trix_image[trixattachable_type]",n),o.append("trix_image[trixattachable_id]",i);const a=new XMLHttpRequest;a.open("POST",`/account/domains/${e}/trix_images`),a.setRequestHeader("X-CSRF-Token",r);const s=document.getElementById("advance_trix_submit_form"),l=document.getElementById("advance_submit_config_form"),c=document.getElementById("save-without-image");return c&&c.addEventListener("click",hideCantSaveAlert,!0),a.upload.onprogress=function(e){var i=e.loaded/e.total*100;s&&s.addEventListener("click",showCantSaveAlert,!0),l&&l.addEventListener("click",showCantSaveAlert,!0),t.setUploadProgress(i)},a.onload=function(){if(201===a.status){var e=JSON.parse(a.responseText);t.setAttributes({url:e.image.url}),$("#alert-cant-save").modal("hide"),s&&s.removeEventListener("click",showCantSaveAlert,!0),l&&l.removeEventListener("click",showCantSaveAlert,!0)}},a.send(o)}function showCantSaveAlert(t){t.preventDefault(),t.stopPropagation(),$("#alert-cant-save").modal("show")}function hideCantSaveAlert(){$("#alert-cant-save").modal("hide")}function addImageSizeButtons(t,e){var i=document.createElement("button"),n=document.createElement("button");i.setAttribute("class","trix-button trix-button--icon trix-button--icon-plus"),i.setAttribute("data-trix-attribute","plus-image"),i.setAttribute("data-trix-action","x-plus-size"),i.innerText="plus",i.style.display="none",n.setAttribute("class","trix-button trix-button--icon trix-button--icon-minus"),n.setAttribute("data-trix-attribute","minus-image"),n.setAttribute("data-trix-action","x-minus-size"),n.innerText="minus",n.style.display="none",e.insertAdjacentHTML("beforeend",i.outerHTML),e.insertAdjacentHTML("beforeend",n.outerHTML)}function addButtonLink(t,e){var i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("class","trix-button trix-button--icon trix-button--icon-custom-link"),i.setAttribute("data-trix-attribute","custom-link"),i.setAttribute("title","Custom Link"),i.innerText="Custom link",e.insertAdjacentHTML("beforeend",i.outerHTML);var n='\n    <div class="trix-dialog trix-dialog--custom-link" data-trix-dialog="custom-link" data-trix-dialog-attribute="custom-link">\n      <div class="trix-dialog__link-fields">\n        <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="URL" aria-label="URL" required="" data-trix-input="" disabled="disabled">\n        <input type="text" name="text" class="trix-input trix-input--dialog" placeholder="Texto" aria-label="Texto" required="" data-trix-input="" disabled="disabled">\n        <div class="trix-button-group">\n          <input type="button" class="trix-button trix-button--dialog" value="Insert" data-trix-dialog-submit--custom-link onclick="insertButton(event)">\n        </div>\n      </div>\n    </div>\n  ';t.element.parentElement.querySelector("[data-trix-dialogs]").insertAdjacentHTML("beforeend",n),t.element.parentElement.querySelector("[data-trix-dialog-submit--custom-link]").addEventListener("click",(function(){t.setSelectedRange(t.getSelectedRange());var e=t.element.parentElement.querySelector("[data-trix-dialog=custom-link] input[name=href]"),i=t.element.parentElement.querySelector("[data-trix-dialog=custom-link] input[name=text]");if(e.value&&i.value){var n=`\n          <div style="height: auto;" class="custom-trix-button-link">\n            <a href=${e.value}>${i.value}</a>\n          </div>\n          `;console.log(n);var r=new Trix.Attachment({contentType:"application/vnd-trix-custom-link",content:n});t.selectionManager.unlock(),t.insertAttachment(r),checkTrixCustomButtons()}}))}function startForegroundPicker(t,e){var i="#000000",n=colorFactory.createSelector(`#foreground-${e}`,i,!0);n.on("save",(e=>{console.log(e),t.activateAttribute("foregroundColor",e.toHEXA().toString()),n.hide()})),foregroundColorPickr[e]=n}
1function startBackgroundPicker(t,e){var i="#000000",n=colorFactory.createSelector(`#background-${e}`,i,!0,!0,!0);n.on("save",(e=>{console.log(e),e&&(t.activateAttribute("backgroundColor",e.toHEXA().toString()),t.activateAttribute("borderRadius","30px"),t.activateAttribute("padding","0 3px")),n.hide()})),n.on("clear",(e=>{console.log(e),t.activateAttribute("backgroundColor","rgba(0,0,0,0)"),n.hide()})),backgroundColorPickr[e]=n,console.log(backgroundColorPickr)}function addForegroundButton(t,e){var i=`\n  <input id="foreground-${t}" type="color" style="width:0;height:0;padding:0;margin-top:20px;visibility:hidden" data-trix-target="foregroundColorPicker" data-action="trix#foregroundColorChanged">\n  <button type="button" class="trix-button" data-editor-id="${t}" onclick="openForegroundPicker(event)" title="Text color">\n    <span class="icon"><i class="fas fa-paint-brush fa-lg"></i></span>\n  </button>\n  `;e.insertAdjacentHTML("afterbegin",i);const{editor:n}=document.querySelector(`[input=${t}]`);startForegroundPicker(n,t)}function addBackgroundButton(t,e){var i=`\n  <input id="background-${t}" type="color" style="width:0;height:0;padding:0;margin-top:20px;visibility:hidden">\n  <button type="button" class="trix-button" data-editor-id="${t}" onclick="openBackgroundPicker(event)" title="Background color">\n    <span class="icon"><i class="fas fa-tint fa-lg"></i></span>\n  </button>\n  `;e.insertAdjacentHTML("afterbegin",i);const{editor:n}=document.querySelector(`[input=${t}]`);startBackgroundPicker(n,t)}function openForegroundPicker(t){var e=t.target.closest("button").dataset.editorId;foregroundColorPickr[e].show()}function openBackgroundPicker(t){var e=t.target.closest("button").dataset.editorId;backgroundColorPickr[e].show()}function addVideoButton(t,e){var i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("class","trix-button trix-button--icon trix-button--icon-video"),i.setAttribute("data-trix-attribute","video"),i.setAttribute("title","Embed Video"),i.innerText="video",e.insertAdjacentHTML("beforeend",i.outerHTML);var n='\n    <div class="trix-dialog trix-dialog--video" data-trix-dialog="video" data-trix-dialog-attribute="video">\n      <div class="trix-dialog__link-fields">\n        <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="URL" aria-label="URL" required="" data-trix-input-"" disabled="disabled">\n        <div class="trix-button-group">\n          <input type="button" class="trix-button trix-button--dialog" value="Insert" data-trix-dialog-submit--video>\n        </div>\n      </div>\n    </div>\n    ';t.element.parentElement.querySelector("[data-trix-dialogs]").insertAdjacentHTML("beforeend",n),t.element.parentElement.querySelector("[data-trix-dialog-submit--video]").addEventListener("click",(function(){var e=t.element.parentElement.querySelector("[data-trix-dialog=video] input[name=href]");t.element.parentElement.querySelector("[data-trix-attribute=video]");if(e.value){var i=/^.*(youtu.be\/|v\/|embed\/|watch\?|youtube.com\/user\/[^#]*#([^\/]*?\/)*)\??v?=?([^#\&\?]*).*/;if(e.value.match(i)){var n=e.value.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/),r=`<div style="width: 100%; height: auto;">\n            <iframe style="margin:auto;" width="640" height="360" src="https://www.youtube.com/embed/${void 0!==n[2]?n[2].split(/[^0-9a-z_\-]/i)[0]:n}" frameborder="0" allowfullscreen></iframe>\n            </div>\n            `,o=new Trix.Attachment({contentType:"application/youtube-video.html",content:r});t.insertAttachment(o),t.selectionManager.unlock()}else e.value="",document.getElementById("url-format-not-accepted-error-message").classList.remove("hidden");t.selectionManager.unlock()}}))}function checkTrixCustomButtons(){var t=Array.from(document.querySelectorAll(".custom-trix-button-link")),e=Array.from(document.querySelectorAll(".trix-button-color"));t.length>0?e.forEach((t=>{t.classList.contains("hidden")&&t.classList.remove("hidden")})):e.forEach((t=>{t.classList.contains("hidden")||t.classList.add("hidden")}))}function insertButton(t){console.log("insert button"),console.log(t.editor)}function showPlusMinusBtns(t,e){document.querySelectorAll(".trix-button--icon-plus").forEach((t=>{t.style.display="block"})),document.querySelectorAll(".trix-button--icon-minus").forEach((t=>{t.style.display="block"})),console.log(t.target),t.target.querySelector(`figure[data-trix-attachment='${e}']`).setAttribute("data-trix-image-selected",!0)}function hidePlusMinusBtns(){document.querySelectorAll(".trix-button--icon-plus").forEach((t=>{t.style.display="none"})),document.querySelectorAll(".trix-button--icon-minus").forEach((t=>{t.style.display="none"}));var t=document.querySelector("[data-trix-image-selected=true]");t&&t.removeAttribute("data-trix-image-selected",!0)}function incrementSelectedImage(t){console.log(t.target.querySelector("[data-trix-image-selected=true]"));var e=t.target.querySelector("[data-trix-image-selected=true]");if(e){var i=JSON.parse(e.dataset.trixAttachment).url.split("/"),n=i[i.length-1].split(".")[0],r=document.getElementById("trix_field").value,o=JSON.parse(document.getElementById("trix-config").value);null==o[`${r}_${n}`]?(o[`${r}_${n}`]={},o[`${r}_${n}`].sizeClass=""):null!=o[`${r}_${n}`]&&null==o[`${r}_${n}`].sizeClass&&(o[`${r}_${n}`].sizeClass=""),"data-trix-size--50"==o[`${r}_${n}`].sizeClass?(o[`${r}_${n}`].sizeClass="data-trix-size--75",e.querySelector("img").className="data-trix-size--75"):"data-trix-size--75"==o[`${r}_${n}`].sizeClass&&(o[`${r}_${n}`].sizeClass="data-trix-size--100",e.querySelector("img").className="data-trix-size--100"),document.getElementById("trix-config").value=JSON.stringify(o)}}function decrementSelectedImage(t){var e=t.target.querySelector("[data-trix-image-selected=true]");if(e){console.log(e);var i=JSON.parse(e.dataset.trixAttachment).url.split("/"),n=i[i.length-1].split(".")[0],r=document.getElementById("trix_field").value;console.log(document.getElementById("trix-config").value);var o=JSON.parse(document.getElementById("trix-config").value);console.log(o),null==o[`${r}_${n}`]||null==o[`${r}_${n}`]?(o[`${r}_${n}`]={},o[`${r}_${n}`].sizeClass=""):null!=o[`${r}_${n}`]&&null==o[`${r}_${n}`].sizeClass&&(o[`${r}_${n}`].sizeClass=""),"data-trix-size--75"==o[`${r}_${n}`].sizeClass?(o[`${r}_${n}`].sizeClass="data-trix-size--50",e.querySelector("img").className="data-trix-size--50"):""!=o[`${r}_${n}`].sizeClass&&"data-trix-size--100"!=o[`${r}_${n}`].sizeClass||(o[`${r}_${n}`].sizeClass="data-trix-size--75",e.querySelector("img").className="data-trix-size--75")}
1document.getElementById("trix-config").value=JSON.stringify(o)}function disableClickForEditorCustomLinks(t){t.querySelectorAll(".custom-trix-button-link a").forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault()}))}))}function initImageSizes(){if(document.getElementById("trix-config")){var t=JSON.parse(document.getElementById("trix-config").value);Object.keys(t).forEach((e=>{document.querySelectorAll("trix-editor").forEach((i=>{var n=i.querySelectorAll(`[src*='${e.split("_")[e.split("_").length-1]}']`);n.length>0&&n.forEach((i=>i.className=t[e].sizeClass))}))}))}}function loaderBase64(t,e,i=1280){return canvas=document.createElement("canvas"),width=t.width,height=t.height,width>height?width>i&&(height*=i/width,width=i):height>i&&(width*=i/height,height=i),canvas.width=width,canvas.height=height,canvas.getContext("2d").drawImage(t,0,0,width,height),canvas.toDataURL(e.type)}function generateDvi(){let t=document.getElementById("nit-input").value,e=document.getElementById("dvi-input");if(t.length>=6&&t.length<=10){for(var i=0,n=[3,7,13,17,19,23,29,37,41,43,47,53,59,67,71],r=0;r<t.length;r++){i+=parseInt(t[t.length-1-r])*n[r]}var o=i%11;e.value=o>1?11-o:o}else e.value=""}!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";function i(t,e,i){var n,r,o=(i=i||xt).createElement("script");if(o.text=t,e)for(n in wt)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function n(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ut[pt.call(t)]||"object":typeof t}function r(t){var e=!!t&&"length"in t&&t.length,i=n(t);return!bt(t)&&!yt(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function o(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function a(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function s(t,e,i){return bt(e)?St.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?St.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?St.grep(t,(function(t){return dt.call(e,t)>-1!==i})):St.filter(e,t,i)}function l(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){var e={};return St.each(t.match(Vt)||[],(function(t,i){e[i]=!0})),e}function h(t){return t}function d(t){throw t}function u(t,e,i,n){var r;try{t&&bt(r=t.promise)?r.call(t).done(e).fail(i):t&&bt(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}function p(){xt.removeEventListener("DOMContentLoaded",p),t.removeEventListener("load",p),St.ready()}function f(t,e){return e.toUpperCase()}function g(t){return t.replace(qt,"ms-").replace(Ut,f)}function m(){this.expando=St.expando+m.uid++}function v(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Jt.test(t)?JSON.parse(t):t)}function b(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Kt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=v(i)}catch(t){}Xt.set(t,e,i)}else i=void 0;return i}function y(t,e,i,n){var r,o,a=20,s=n?function(){return n.cur()}:function(){return St.css(t,e,"")},l=s(),c=i&&i[3]||(St.cssNumber[e]?"":"px"),h=t.nodeType&&(St.cssNumber[e]||"px"!==c&&+l)&&Qt.exec(St.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;a--;)St.style(t,e,h+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),h/=o;h*=2,St.style(t,e,h+c),i=i||[]}return i&&(h=+h||+l||0,r=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=r)),r}function x(t){var e,i=t.ownerDocument,n=t.nodeName,r=oe[n];return r||(e=i.body.appendChild(i.createElement(n)),r=St.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),oe[n]=r,r)}function w(t,e){for(var i,n,r=[],o=0,a=t.length;o<a;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(r[o]=Yt.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&re(n)&&(r[o]=x(n))):"none"!==i&&(r[o]="none",Yt.set(n,"display",i)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}function _(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&o(t,e)?St.merge([t],i):i}function C(t,e){for(var i=0,n=t.length;i<n;i++)Yt.set(t[i],"globalEval",!e||Yt.get(e[i],"globalEval"))}function S(t,e,i,r,o){for(var a,s,l,c,h,d,u=e.createDocumentFragment(),p=[],f=0,g=t.length;f<g;f++)if((a=t[f])||0===a)if("object"===n(a))St.merge(p,a.nodeType?[a]:a);else if(he.test(a)){for(s=s||u.appendChild(e.createElement("div")),l=(se.exec(a)||["",""])[1].toLowerCase(),c=ce[l]||ce._default,s.innerHTML=c[1]+St.htmlPrefilter(a)+c[2],d=c[0];d--;)s=s.lastChild;St.merge(p,s.childNodes),(s=u.firstChild).textContent=""}else p.push(e.createTextNode(a));for(u.textContent="",f=0;a=p[f++];)if(r&&St.inArray(a,r)>-1)o&&o.push(a);
vendor: 4,128 bytes, line 1
1else if(h=ie(a),s=_(u.appendChild(a),"script"),h&&C(s),i)for(d=0;a=s[d++];)le.test(a.type||"")&&i.push(a);return u}function k(){return!0}function A(){return!1}function T(t,e,i,n,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)T(t,s,i,n,e[s],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=A;else if(!r)return t;return 1===o&&(a=r,r=function(t){return St().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=St.guid++)),t.each((function(){St.event.add(this,e,r,n,i)}))}function L(t,e,i){i?(Yt.set(t,e,!1),St.event.add(t,e,{namespace:!1,handler:function(t){var i,n=Yt.get(this,e);if(1&t.isTrigger&&this[e]){if(n)(St.event.special[e]||{}).delegateType&&t.stopPropagation();else if(n=lt.call(arguments),Yt.set(this,e,n),this[e](),i=Yt.get(this,e),Yt.set(this,e,!1),n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i}else n&&(Yt.set(this,e,St.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=k)}})):void 0===Yt.get(t,e)&&St.event.add(t,e,k)}function D(t,e){return o(t,"table")&&o(11!==e.nodeType?e:e.firstChild,"tr")&&St(t).children("tbody")[0]||t}function E(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function P(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function I(t,e){var i,n,r,o,a,s;if(1===e.nodeType){if(Yt.hasData(t)&&(s=Yt.get(t).events))for(r in Yt.remove(e,"handle events"),s)for(i=0,n=s[r].length;i<n;i++)St.event.add(e,r,s[r][i]);Xt.hasData(t)&&(o=Xt.access(t),a=St.extend({},o),Xt.set(e,a))}}function M(t,e){var i=e.nodeName.toLowerCase();"input"===i&&ae.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function O(t,e,n,r){e=ct(e);var o,a,s,l,c,h,d=0,u=t.length,p=u-1,f=e[0],g=bt(f);if(g||u>1&&"string"==typeof f&&!vt.checkClone&&pe.test(f))return t.each((function(i){var o=t.eq(i);g&&(e[0]=f.call(this,i,o.html())),O(o,e,n,r)}));if(u&&(a=(o=S(e,t[0].ownerDocument,!1,t,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(l=(s=St.map(_(o,"script"),E)).length;d<u;d++)c=o,d!==p&&(c=St.clone(c,!0,!0),l&&St.merge(s,_(c,"script"))),n.call(t[d],c,d);if(l)for(h=s[s.length-1].ownerDocument,St.map(s,P),d=0;d<l;d++)c=s[d],le.test(c.type||"")&&!Yt.access(c,"globalEval")&&St.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?St._evalUrl&&!c.noModule&&St._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):i(c.textContent.replace(fe,""),c,h))}return t}function F(t,e,i){for(var n,r=e?St.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||St.cleanData(_(n)),n.parentNode&&(i&&ie(n)&&C(_(n,"script")),n.parentNode.removeChild(n));return t}function R(t,e,i){var n,r,o,a,s=me.test(e),l=t.style;return(i=i||ve(t))&&(a=i.getPropertyValue(e)||i[e],s&&a&&(a=a.replace(Dt,"$1")||void 0),""!==a||ie(t)||(a=St.style(t,e)),!vt.pixelBoxStyles()&&ge.test(a)&&ye.test(e)&&(n=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=i.width,l.width=n,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function B(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function N(t){for(var e=t[0].toUpperCase()+t.slice(1),i=xe.length;i--;)if((t=xe[i]+e)in we)return t}function j(t){var e=St.cssProps[t]||_e[t];return e||(t in we?t:_e[t]=N(t)||t)}function $(t,e,i){var n=Qt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function V(t,e,i,n,r,o){var a="width"===e?1:0,s=0,l=0,c=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(c+=St.css(t,i+te[a],!0,r)),n?("content"===i&&(l-=St.css(t,"padding"+te[a],!0,r)),"margin"!==i&&(l-=St.css(t,"border"+te[a]+"Width",!0,r))):(l+=St.css(t,"padding"+te[a],!0,r),"padding"!==i?l+=St.css(t,"border"+te[a]+"Width",!0,r):s+=St.css(t,"border"+te[a]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l+c}function H(t,e,i){var n=ve(t),r=(!vt.boxSizingReliable()||i)&&"border-box"===St.css(t,"boxSizing",!1,n),a=r,s=R(t,e,n),l="offset"+e[0].toUpperCase()+e.slice(1);
vendor: 7,926 bytes, lines 1-2
1if(ge.test(s)){if(!i)return s;s="auto"}return(!vt.boxSizingReliable()&&r||!vt.reliableTrDimensions()&&o(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===St.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===St.css(t,"boxSizing",!1,n),(a=l in t)&&(s=t[l])),(s=parseFloat(s)||0)+V(t,e,i||(r?"border":"content"),a,n,s)+"px"}function W(t,e,i,n,r){return new W.prototype.init(t,e,i,n,r)}function z(){Te&&(!1===xt.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(z):t.setTimeout(z,St.fx.interval),St.fx.tick())}function q(){return t.setTimeout((function(){Ae=void 0})),Ae=Date.now()}function U(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=te[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function G(t,e,i){for(var n,r=(J.tweeners[e]||[]).concat(J.tweeners["*"]),o=0,a=r.length;o<a;o++)if(n=r[o].call(i,e,t))return n}function Y(t,e,i){var n,r,o,a,s,l,c,h,d="width"in e||"height"in e,u=this,p={},f=t.style,g=t.nodeType&&re(t),m=Yt.get(t,"fxshow");for(n in i.queue||(null==(a=St._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,u.always((function(){u.always((function(){a.unqueued--,St.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[n],Le.test(r)){if(delete e[n],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||St.style(t,n)}if((l=!St.isEmptyObject(e))||!St.isEmptyObject(p))for(n in d&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=Yt.get(t,"display")),"none"===(h=St.css(t,"display"))&&(c?h=c:(w([t],!0),c=t.style.display||c,h=St.css(t,"display"),w([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===St.css(t,"float")&&(l||(u.done((function(){f.display=c})),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=Yt.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&w([t],!0),u.done((function(){for(n in g||w([t]),Yt.remove(t,"fxshow"),p)St.style(t,n,p[n])}))),l=G(g?m[n]:0,n,u),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}function X(t,e){var i,n,r,o,a;for(i in t)if(r=e[n=g(i)],o=t[i],Array.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(a=St.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=r);else e[n]=r}function J(t,e,i){var n,r,o=0,a=J.prefilters.length,s=St.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=Ae||q(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(n);return s.notifyWith(t,[c,n,i]),n<1&&a?i:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:St.extend({},e),opts:St.extend(!0,{specialEasing:{},easing:St.easing._default},i),originalProperties:e,originalOptions:i,startTime:Ae||q(),duration:i.duration,tweens:[],createTween:function(e,i){var n=St.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),h=c.props;for(X(h,c.opts.specialEasing);o<a;o++)if(n=J.prefilters[o].call(c,t,h,c.opts))return bt(n.stop)&&(St._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return St.map(h,G,c),bt(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),St.fx.timer(St.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}function K(t){return(t.match(Vt)||[]).join(" ")}function Z(t){return t.getAttribute&&t.getAttribute("class")||""}function Q(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Vt)||[]}function tt(t,e,i,r){var o;if(Array.isArray(e))St.each(e,(function(e,n){i||$e.test(t)?r(t,n):tt(t+"["+("object"==typeof n&&null!=n?e:"")+"]",n,i,r)}));else if(i||"object"!==n(e))r(t,e);else for(o in e)tt(t+"["+o+"]",e[o],i,r)}function et(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(Vt)||[];if(bt(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function it(t,e,i,n){function r(s){var l;return o[s]=!0,St.each(t[s]||[],(function(t,s){var c=s(e,i,n);return"string"!=typeof c||a||o[c]?a?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)})),l}var o={},a=t===Ze;return r(e.dataTypes[0])||!o["*"]&&r("*")}function nt(t,e){var i,n,r=St.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&St.extend(!0,t,n),t}function rt(t,e,i){for(var n,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}function ot(t,e,i,n){var r,o,a,s,l,c={},h=t.dataTypes.slice();if(h[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=h.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],h.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 "+o}}}return{state:"success",data:e}}var at=[],st=Object.getPrototypeOf,lt=at.slice,ct=at.flat?function(t){return at.flat.call(t)}:function(t){return at.concat.apply([],t)},ht=at.push,dt=at.indexOf,ut={},pt=ut.toString,ft=ut.hasOwnProperty,gt=ft.toString,mt=gt.call(Object),vt={},bt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},yt=function(t){return null!=t&&t===t.window},xt=t.document,wt={type:!0,src:!0,nonce:!0,noModule:!0},_t="3.7.0",Ct=/HTML$/i,St=function(t,e){return new St.fn.init(t,e)};St.fn=St.prototype={jquery:_t,constructor:St,length:0,toArray:function(){return lt.call(this)},get:function(t){return null==t?lt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=St.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return St.each(this,t)},map:function(t){return this.pushStack(St.map(this,(function(e,i){
2return t.call(e,i,e)})))},slice:function(){return this.pushStack(lt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(St.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(St.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:ht,sort:at.sort,splice:at.splice},St.extend=St.fn.extend=function(){var t,e,i,n,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||bt(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&a!==n&&(c&&n&&(St.isPlainObject(n)||(r=Array.isArray(n)))?(i=a[e],o=r&&!Array.isArray(i)?[]:r||St.isPlainObject(i)?i:{},r=!1,a[e]=St.extend(c,o,n)):void 0!==n&&(a[e]=n));return a},St.extend({expando:"jQuery"+(_t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==pt.call(t))&&(!(e=st(t))||"function"==typeof(i=ft.call(e,"constructor")&&e.constructor)&&gt.call(i)===mt)},isEmptyObject:function(t){var e;
vendor: 7,186 bytes, line 2
2for(e in t)return!1;return!0},globalEval:function(t,e,n){i(t,{nonce:e&&e.nonce},n)},each:function(t,e){var i,n=0;if(r(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},text:function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r)return t.textContent;if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=St.text(e);return i},makeArray:function(t,e){var i=e||[];return null!=t&&(r(Object(t))?St.merge(i,"string"==typeof t?[t]:t):ht.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:dt.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!Ct.test(e||i&&i.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,a=!i;r<o;r++)!e(t[r],r)!==a&&n.push(t[r]);return n},map:function(t,e,i){var n,o,a=0,s=[];if(r(t))for(n=t.length;a<n;a++)null!=(o=e(t[a],a,i))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,i))&&s.push(o);return ct(s)},guid:1,support:vt}),"function"==typeof Symbol&&(St.fn[Symbol.iterator]=at[Symbol.iterator]),St.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){ut["[object "+e+"]"]=e.toLowerCase()}));var kt=at.pop,At=at.sort,Tt=at.splice,Lt="[\\x20\\t\\r\\n\\f]",Dt=new RegExp("^"+Lt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Lt+"+$","g");St.contains=function(t,e){var i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))};var Et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;St.escapeSelector=function(t){return(t+"").replace(Et,a)};var Pt=xt,It=ht;!function(){function e(){try{return E.activeElement}catch(t){}}function i(t,e,n,r){var o,a,s,l,c,h,p,m=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!r&&(u(e),e=e||E,I)){if(11!==v&&(c=nt.exec(t)))if(o=c[1]){if(9===v){if(!(s=e.getElementById(o)))return n;if(s.id===o)return F.call(n,s),n}else if(m&&(s=m.getElementById(o))&&i.contains(e,s)&&s.id===o)return F.call(n,s),n}else{if(c[2])return F.apply(n,e.getElementsByTagName(t)),n;if((o=c[3])&&e.getElementsByClassName)return F.apply(n,e.getElementsByClassName(o)),n}if(!(H[t+" "]||M&&M.test(t))){if(p=t,m=e,1===v&&(K.test(t)||J.test(t))){for((m=rt.test(t)&&d(e.parentNode)||e)==e&&vt.scope||((l=e.getAttribute("id"))?l=St.escapeSelector(l):e.setAttribute("id",l=R)),a=(h=f(t)).length;a--;)h[a]=(l?"#"+l:":scope")+" "+g(h[a]);p=h.join(",")}try{return F.apply(n,m.querySelectorAll(p)),n}catch(e){H(t,!0)}finally{l===R&&e.removeAttribute("id")}}}return S(t.replace(Dt,"$1"),e,n,r)}function n(){function t(i,n){return e.push(i+" ")>A.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function r(t){return t[R]=!0,t}function a(t){var e=E.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t){return function(e){return o(e,"input")&&e.type===t}}function l(t){return function(e){return(o(e,"input")||o(e,"button"))&&e.type===t}}function c(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&&ht(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function h(t){return r((function(e){return e=+e,r((function(i,n){for(var r,o=t([],i.length,e),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))}))}))}function d(t){return t&&void 0!==t.getElementsByTagName&&t}function u(t){var e,n=t?t.ownerDocument||t:Pt;return n!=E&&9===n.nodeType&&n.documentElement?(P=(E=n).documentElement,I=!St.isXMLDoc(E),O=P.matches||P.webkitMatchesSelector||P.msMatchesSelector,Pt!=E&&(e=E.defaultView)&&e.top!==e&&e.addEventListener("unload",ct),vt.getById=a((function(t){return P.appendChild(t).id=St.expando,!E.getElementsByName||!E.getElementsByName(St.expando).length})),vt.disconnectedMatch=a((function(t){return O.call(t,"*")})),vt.scope=a((function(){return E.querySelectorAll(":scope")})),vt.cssHas=a((function(){try{return E.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),vt.getById?(A.filter.ID=function(t){var e=t.replace(ot,st);return function(t){return t.getAttribute("id")===e}},A.find.ID=function(t,e){if(void 0!==e.getElementById&&I){var i=e.getElementById(t);return i?[i]:[]}}):(A.filter.ID=function(t){var e=t.replace(ot,st);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},A.find.ID=function(t,e){if(void 0!==e.getElementById&&I){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),A.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},A.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&I)return e.getElementsByClassName(t)},M=[],a((function(t){var e;P.appendChild(t).innerHTML="<a id='"+R+"' href='' disabled='disabled'></a><select id='"+R+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||M.push("\\["+Lt+"*(?:value|"+z+")"),t.querySelectorAll("[id~="+R+"-]").length||M.push("~="),t.querySelectorAll("a#"+R+"+*").length||M.push(".#.+[+~]"),t.querySelectorAll(":checked").length||M.push(":checked"),(e=E.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),P.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&M.push(":enabled",":disabled"),(e=E.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||M.push("\\["+Lt+"*name"+Lt+"*="+Lt+"*(?:''|\"\")")})),vt.cssHas||M.push(":has"),M=M.length&&new RegExp(M.join("|")),W=function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!vt.sortDetached&&e.compareDocumentPosition(t)===n?t===E||t.ownerDocument==Pt&&i.contains(Pt,t)?-1:e===E||e.ownerDocument==Pt&&i.contains(Pt,e)?1:L?dt.call(L,t)-dt.call(L,e):0:4&n?-1:1)},E):E}function p(){}function f(t,e){var n,r,o,a,s,l,c,h=$[t+" "];if(h)return e?0:h.slice(0);for(s=t,l=[],c=A.preFilter;s;){for(a in n&&!(r=X.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=J.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(Dt," ")}),s=s.slice(n.length)),A.filter)!(r=tt[a].exec(s))||c[a]&&!(r=c[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?i.error(t):$(t,l).slice(0)}function g(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function m(t,e,i){var n=e.dir,r=e.next,a=r||n,s=i&&"parentNode"===a,l=N++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,r);return!1}:function(e,i,c){var h,d,u=[B,l];if(c){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,c))return!0}else for(;e=e[n];)if(1===e.nodeType||s)if(d=e[R]||(e[R]={}),r&&o(e,r))e=e[n]||e;
vendor: 4,650 bytes, line 2
2else{if((h=d[a])&&h[0]===B&&h[1]===l)return u[2]=h[2];if(d[a]=u,u[2]=t(e,i,c))return!0}return!1}}function v(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function b(t,e,n){for(var r=0,o=e.length;r<o;r++)i(t,e[r],n);return n}function y(t,e,i,n,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(i&&!i(o,n,r)||(a.push(o),c&&e.push(s)));return a}function x(t,e,i,n,o,a){return n&&!n[R]&&(n=x(n)),o&&!o[R]&&(o=x(o,a)),r((function(r,a,s,l){var c,h,d,u,p=[],f=[],g=a.length,m=r||b(e||"*",s.nodeType?[s]:s,[]),v=!t||!r&&e?m:y(m,p,t,s,l);if(i?i(v,u=o||(r?t:g||n)?[]:a,s,l):u=v,n)for(c=y(u,f),n(c,[],s,l),h=c.length;h--;)(d=c[h])&&(u[f[h]]=!(v[f[h]]=d));if(r){if(o||t){if(o){for(c=[],h=u.length;h--;)(d=u[h])&&c.push(v[h]=d);o(null,u=[],c,l)}for(h=u.length;h--;)(d=u[h])&&(c=o?dt.call(r,d):p[h])>-1&&(r[c]=!(a[c]=d))}}else u=y(u===a?u.splice(g,u.length):u),o?o(null,a,u,l):F.apply(a,u)}))}function w(t){for(var e,i,n,r=t.length,o=A.relative[t[0].type],a=o||A.relative[" "],s=o?1:0,l=m((function(t){return t===e}),a,!0),c=m((function(t){return dt.call(e,t)>-1}),a,!0),h=[function(t,i,n){var r=!o&&(n||i!=T)||((e=i).nodeType?l(t,i,n):c(t,i,n));return e=null,r}];s<r;s++)if(i=A.relative[t[s].type])h=[m(v(h),i)];else{if((i=A.filter[t[s].type].apply(null,t[s].matches))[R]){for(n=++s;n<r&&!A.relative[t[n].type];n++);return x(s>1&&v(h),s>1&&g(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(Dt,"$1"),i,s<n&&w(t.slice(s,n)),n<r&&w(t=t.slice(n)),n<r&&g(t))}h.push(i)}return v(h)}function _(t,e){var i=e.length>0,n=t.length>0,o=function(r,o,a,s,l){var c,h,d,p=0,f="0",g=r&&[],m=[],v=T,b=r||n&&A.find.TAG("*",l),x=B+=null==v?1:Math.random()||.1,w=b.length;for(l&&(T=o==E||o||l);f!==w&&null!=(c=b[f]);f++){if(n&&c){for(h=0,o||c.ownerDocument==E||(u(c),a=!I);d=t[h++];)if(d(c,o||E,a)){F.call(s,c);break}l&&(B=x)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=f,i&&f!==p){for(h=0;d=e[h++];)d(g,m,o,a);if(r){if(p>0)for(;f--;)g[f]||m[f]||(m[f]=kt.call(s));m=y(m)}F.apply(s,m),l&&!r&&m.length>0&&p+e.length>1&&St.uniqueSort(s)}return l&&(B=x,T=v),g};return i?r(o):o}function C(t,e){var i,n=[],r=[],o=V[t+" "];if(!o){for(e||(e=f(t)),i=e.length;i--;)(o=w(e[i]))[R]?n.push(o):r.push(o);(o=V(t,_(r,n))).selector=t}return o}function S(t,e,i,n){var r,o,a,s,l,c="function"==typeof t&&t,h=!n&&f(t=c.selector||t);if(i=i||[],1===h.length){if((o=h[0]=h[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===e.nodeType&&I&&A.relative[o[1].type]){if(!(e=(A.find.ID(a.matches[0].replace(ot,st),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=tt.needsContext.test(t)?0:o.length;r--&&(a=o[r],!A.relative[s=a.type]);)if((l=A.find[s])&&(n=l(a.matches[0].replace(ot,st),rt.test(o[0].type)&&d(e.parentNode)||e))){if(o.splice(r,1),!(t=n.length&&g(o)))return F.apply(i,n),i;break}}return(c||C(t,h))(n,e,!I,i,!e||rt.test(t)&&d(e.parentNode)||e),i}var k,A,T,L,D,E,P,I,M,O,F=It,R=St.expando,B=0,N=0,j=n(),$=n(),V=n(),H=n(),W=function(t,e){return t===e&&(D=!0),0},z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",q="(?:\\\\[\\da-fA-F]{1,6}"+Lt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+Lt+"*("+q+")(?:"+Lt+"*([*^$|!~]?=)"+Lt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+Lt+"*\\]",G=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",Y=new RegExp(Lt+"+","g"),X=new RegExp("^"+Lt+"*,"+Lt+"*"),J=new RegExp("^"+Lt+"*([>+~]|"+Lt+")"+Lt+"*"),K=new RegExp(Lt+"|>"),Z=new RegExp(G),Q=new RegExp("^"+q+"$"),tt={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Lt+"*(even|odd|(([+-]|)(\\d*)n|)"+Lt+"*(?:([+-]|)"+Lt+"*(\\d+)|))"+Lt+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+Lt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Lt+"*((?:-\\d)?\\d*)"+Lt+"*\\)|)(?=[^-]|$)","i")},et=/^(?:input|select|textarea|button)$/i,it=/^h\d$/i,nt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rt=/[+~]/,ot=new RegExp("\\\\[\\da-fA-F]{1,6}"+Lt+"?|\\\\([^\\r\\n\\f])","g"),st=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},ct=function(){u()},ht=m((function(t){return!0===t.disabled&&o(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{F.apply(at=lt.call(Pt.childNodes),Pt.childNodes),at[Pt.childNodes.length].nodeType}catch(t){F={apply:function(t,e){It.apply(t,lt.call(e))}
vendor: 8,741 bytes, line 2
2,call:function(t){It.apply(t,lt.call(arguments,1))}}}for(k in i.matches=function(t,e){return i(t,null,null,e)},i.matchesSelector=function(t,e){if(u(t),I&&!H[e+" "]&&(!M||!M.test(e)))try{var n=O.call(t,e);if(n||vt.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){H(e,!0)}return i(e,E,null,[t]).length>0},i.contains=function(t,e){return(t.ownerDocument||t)!=E&&u(t),St.contains(t,e)},i.attr=function(t,e){(t.ownerDocument||t)!=E&&u(t);var i=A.attrHandle[e.toLowerCase()],n=i&&ft.call(A.attrHandle,e.toLowerCase())?i(t,e,!I):void 0;return void 0!==n?n:t.getAttribute(e)},i.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},St.uniqueSort=function(t){var e,i=[],n=0,r=0;if(D=!vt.sortStable,L=!vt.sortStable&&lt.call(t,0),At.call(t,W),D){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)Tt.call(t,i[n],1)}return L=null,t},St.fn.uniqueSort=function(){return this.pushStack(St.uniqueSort(lt.apply(this)))},A=St.expr={cacheLength:50,createPseudo:r,match:tt,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(ot,st),t[3]=(t[3]||t[4]||t[5]||"").replace(ot,st),"~="===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]||i.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]&&i.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return tt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&Z.test(i)&&(e=f(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(ot,st).toLowerCase();return"*"===t?function(){return!0}:function(t){return o(t,e)}},CLASS:function(t){var e=j[t+" "];return e||(e=new RegExp("(^|"+Lt+")"+t+"("+Lt+"|$)"))&&j(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(r){var o=i.attr(r,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(Y," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,r){var a="nth"!==t.slice(0,3),s="last"!==t.slice(-4),l="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,c){var h,d,u,p,f,g=a!==s?"nextSibling":"previousSibling",m=e.parentNode,v=l&&e.nodeName.toLowerCase(),b=!c&&!l,y=!1;if(m){if(a){for(;g;){for(u=e;u=u[g];)if(l?o(u,v):1===u.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&b){for(y=(p=(h=(d=m[R]||(m[R]={}))[t]||[])[0]===B&&h[1])&&h[2],u=p&&m.childNodes[p];u=++p&&u&&u[g]||(y=p=0)||f.pop();)if(1===u.nodeType&&++y&&u===e){d[t]=[B,p,y];break}}else if(b&&(y=p=(h=(d=e[R]||(e[R]={}))[t]||[])[0]===B&&h[1]),!1===y)for(;(u=++p&&u&&u[g]||(y=p=0)||f.pop())&&(!(l?o(u,v):1===u.nodeType)||!++y||(b&&((d=u[R]||(u[R]={}))[t]=[B,y]),u!==e)););return(y-=r)===n||y%n==0&&y/n>=0}}},PSEUDO:function(t,e){var n,o=A.pseudos[t]||A.setFilters[t.toLowerCase()]||i.error("unsupported pseudo: "+t);return o[R]?o(e):o.length>1?(n=[t,t,"",e],A.setFilters.hasOwnProperty(t.toLowerCase())?r((function(t,i){for(var n,r=o(t,e),a=r.length;a--;)t[n=dt.call(t,r[a])]=!(i[n]=r[a])})):function(t){return o(t,0,n)}):o}},pseudos:{not:r((function(t){var e=[],i=[],n=C(t.replace(Dt,"$1"));return n[R]?r((function(t,e,i,r){for(var o,a=n(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:r((function(t){return function(e){return i(t,e).length>0}})),contains:r((function(t){return t=t.replace(ot,st),function(e){return(e.textContent||St.text(e)).indexOf(t)>-1}})),lang:r((function(t){return Q.test(t||"")||i.error("unsupported lang: "+t),t=t.replace(ot,st).toLowerCase(),function(e){var i;do{if(i=I?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===P},focus:function(t){return t===e()&&E.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(t){return o(t,"input")&&!!t.checked||o(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!A.pseudos.empty(t)},header:function(t){return it.test(t.nodeName)},input:function(t){return et.test(t.nodeName)},button:function(t){return o(t,"input")&&"button"===t.type||o(t,"button")},text:function(t){var e;return o(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:h((function(){return[0]})),last:h((function(t,e){return[e-1]})),eq:h((function(t,e,i){return[i<0?i+e:i]})),even:h((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:h((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:h((function(t,e,i){var n;for(n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:h((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}},A.pseudos.nth=A.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})A.pseudos[k]=s(k);for(k in{submit:!0,reset:!0})A.pseudos[k]=l(k);p.prototype=A.filters=A.pseudos,A.setFilters=new p,vt.sortStable=R.split("").sort(W).join("")===R,u(),vt.sortDetached=a((function(t){return 1&t.compareDocumentPosition(E.createElement("fieldset"))})),St.find=i,St.expr[":"]=St.expr.pseudos,St.unique=St.uniqueSort,i.compile=C,i.select=S,i.setDocument=u,i.escape=St.escapeSelector,i.getText=St.text,i.isXML=St.isXMLDoc,i.selectors=St.expr,i.support=St.support,i.uniqueSort=St.uniqueSort}();var Mt=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&St(t).is(i))break;n.push(t)}return n},Ot=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},Ft=St.expr.match.needsContext,Rt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;St.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?St.find.matchesSelector(n,t)?[n]:[]:St.find.matches(t,St.grep(e,(function(t){return 1===t.nodeType})))},St.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(St(t).filter((function(){for(e=0;e<n;e++)if(St.contains(r[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)St.find(t,r[e],i);return n>1?St.uniqueSort(i):i},filter:function(t){return this.pushStack(s(this,t||[],!1))},not:function(t){return this.pushStack(s(this,t||[],!0))},is:function(t){return!!s(this,"string"==typeof t&&Ft.test(t)?St(t):t||[],!1).length}});var Bt,Nt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(St.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||Bt,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Nt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof St?e[0]:e,St.merge(this,St.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:xt,!0)),Rt.test(n[1])&&St.isPlainObject(e))for(n in e)bt(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=xt.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):bt(t)?void 0!==i.ready?i.ready(t):t(St):St.makeArray(t,this)}).prototype=St.fn,Bt=St(xt);var jt=/^(?:parents|prev(?:Until|All))/,$t={children:!0,contents:!0,next:!0,prev:!0};St.fn.extend({has:function(t){var e=St(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(St.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,r=this.length,o=[],a="string"!=typeof t&&St(t);if(!Ft.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&St.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?St.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?dt.call(St(t),this[0]):dt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(St.uniqueSort(St.merge(this.get(),St(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),St.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Mt(t,"parentNode")}
vendor: 4,579 bytes, line 2
2,parentsUntil:function(t,e,i){return Mt(t,"parentNode",i)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return Mt(t,"nextSibling")},prevAll:function(t){return Mt(t,"previousSibling")},nextUntil:function(t,e,i){return Mt(t,"nextSibling",i)},prevUntil:function(t,e,i){return Mt(t,"previousSibling",i)},siblings:function(t){return Ot((t.parentNode||{}).firstChild,t)},children:function(t){return Ot(t.firstChild)},contents:function(t){return null!=t.contentDocument&&st(t.contentDocument)?t.contentDocument:(o(t,"template")&&(t=t.content||t),St.merge([],t.childNodes))}},(function(t,e){St.fn[t]=function(i,n){var r=St.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=St.filter(n,r)),this.length>1&&($t[t]||St.uniqueSort(r),jt.test(t)&&r.reverse()),this.pushStack(r)}}));var Vt=/[^\x20\t\r\n\f]+/g;St.Callbacks=function(t){t="string"==typeof t?c(t):St.extend({},t);var e,i,r,o,a=[],s=[],l=-1,h=function(){for(o=o||t.once,r=e=!0;s.length;l=-1)for(i=s.shift();++l<a.length;)!1===a[l].apply(i[0],i[1])&&t.stopOnFalse&&(l=a.length,i=!1);t.memory||(i=!1),e=!1,o&&(a=i?[]:"")},d={add:function(){return a&&(i&&!e&&(l=a.length-1,s.push(i)),function e(i){St.each(i,(function(i,r){bt(r)?t.unique&&d.has(r)||a.push(r):r&&r.length&&"string"!==n(r)&&e(r)}))}(arguments),i&&!e&&h()),this},remove:function(){return St.each(arguments,(function(t,e){for(var i;(i=St.inArray(e,a,i))>-1;)a.splice(i,1),i<=l&&l--})),this},has:function(t){return t?St.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=i="",this},disabled:function(){return!a},lock:function(){return o=s=[],i||e||(a=i=""),this},locked:function(){return!!o},fireWith:function(t,i){return o||(i=[t,(i=i||[]).slice?i.slice():i],s.push(i),e||h()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},St.extend({Deferred:function(e){var i=[["notify","progress",St.Callbacks("memory"),St.Callbacks("memory"),2],["resolve","done",St.Callbacks("once memory"),St.Callbacks("once memory"),0,"resolved"],["reject","fail",St.Callbacks("once memory"),St.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return St.Deferred((function(e){St.each(i,(function(i,n){var r=bt(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=r&&r.apply(this,arguments);t&&bt(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(e,n,r){function o(e,i,n,r){return function(){var s=this,l=arguments,c=function(){var t,c;if(!(e<a)){if((t=n.apply(s,l))===i.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,bt(c)?r?c.call(t,o(a,i,h,r),o(a,i,d,r)):(a++,c.call(t,o(a,i,h,r),o(a,i,d,r),o(a,i,h,i.notifyWith))):(n!==h&&(s=void 0,l=[t]),(r||i.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(t){St.Deferred.exceptionHook&&St.Deferred.exceptionHook(t,u.error),e+1>=a&&(n!==d&&(s=void 0,l=[t]),i.rejectWith(s,l))}};e?u():(St.Deferred.getErrorHook?u.error=St.Deferred.getErrorHook():St.Deferred.getStackHook&&(u.error=St.Deferred.getStackHook()),t.setTimeout(u))}}var a=0;return St.Deferred((function(t){i[0][3].add(o(0,t,bt(r)?r:h,t.notifyWith)),i[1][3].add(o(0,t,bt(e)?e:h)),i[2][3].add(o(0,t,bt(n)?n:d))})).promise()},promise:function(t){return null!=t?St.extend(t,r):r}},o={};return St.each(i,(function(t,e){var a=e[2],s=e[5];r[e[1]]=a.add,s&&a.add((function(){n=s}),i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),r=lt.call(arguments),o=St.Deferred(),a=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?lt.call(arguments):i,--e||o.resolveWith(n,r)}};if(e<=1&&(u(t,o.done(a(i)).resolve,o.reject,!e),"pending"===o.state()||bt(r[i]&&r[i].then)))return o.then();for(;i--;)u(r[i],a(i),o.reject);return o.promise()}});var Ht=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;St.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&Ht.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},St.readyException=function(e){t.setTimeout((function(){throw e}))};var Wt=St.Deferred();
vendor: 1,552 bytes, line 2
2St.fn.ready=function(t){return Wt.then(t).catch((function(t){St.readyException(t)})),this},St.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--St.readyWait:St.isReady)||(St.isReady=!0,!0!==t&&--St.readyWait>0||Wt.resolveWith(xt,[St]))}}),St.ready.then=Wt.then,"complete"===xt.readyState||"loading"!==xt.readyState&&!xt.documentElement.doScroll?t.setTimeout(St.ready):(xt.addEventListener("DOMContentLoaded",p),t.addEventListener("load",p));var zt=function(t,e,i,r,o,a,s){var l=0,c=t.length,h=null==i;if("object"===n(i))for(l in o=!0,i)zt(t,e,l,i[l],!0,a,s);else if(void 0!==r&&(o=!0,bt(r)||(s=!0),h&&(s?(e.call(t,r),e=null):(h=e,e=function(t,e,i){return h.call(St(t),i)})),e))for(;l<c;l++)e(t[l],i,s?r:r.call(t[l],l,e(t[l],i)));return o?t:h?e.call(t):c?e(t[0],i):a},qt=/^-ms-/,Ut=/-([a-z])/g,Gt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};m.uid=1,m.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Gt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[g(e)]=i;else for(n in e)r[g(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][g(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(g):(e=g(e))in n?[e]:e.match(Vt)||[]).length;for(;i--;)delete n[e[i]]}
vendor: 4,931 bytes, lines 2-3
2(void 0===e||St.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!St.isEmptyObject(e)}};var Yt=new m,Xt=new m,Jt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Kt=/[A-Z]/g;St.extend({hasData:function(t){return Xt.hasData(t)||Yt.hasData(t)},data:function(t,e,i){return Xt.access(t,e,i)},removeData:function(t,e){Xt.remove(t,e)},_data:function(t,e,i){return Yt.access(t,e,i)},_removeData:function(t,e){Yt.remove(t,e)}}),St.fn.extend({data:function(t,e){var i,n,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=Xt.get(o),1===o.nodeType&&!Yt.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&(n=g(n.slice(5)),b(o,n,r[n]));Yt.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){Xt.set(this,t)})):zt(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=Xt.get(o,t))||void 0!==(i=b(o,t))?i:void 0;this.each((function(){Xt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Xt.remove(this,t)}))}}),St.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Yt.get(t,e),i&&(!n||Array.isArray(i)?n=Yt.access(t,e,St.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=St.queue(t,e),n=i.length,r=i.shift(),o=St._queueHooks(t,e),a=function(){St.dequeue(t,e)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Yt.get(t,i)||Yt.access(t,i,{empty:St.Callbacks("once memory").add((function(){Yt.remove(t,[e+"queue",i])}))})}}),St.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?St.queue(this[0],t):void 0===e?this:this.each((function(){var i=St.queue(this,t,e);St._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&St.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){St.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=St.Deferred(),o=this,a=this.length,s=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=Yt.get(o[a],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(e)}});var Zt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Qt=new RegExp("^(?:([+-])=|)("+Zt+")([a-z%]*)$","i"),te=["Top","Right","Bottom","Left"],ee=xt.documentElement,ie=function(t){return St.contains(t.ownerDocument,t)},ne={composed:!0};ee.getRootNode&&(ie=function(t){return St.contains(t.ownerDocument,t)||t.getRootNode(ne)===t.ownerDocument});var re=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ie(t)&&"none"===St.css(t,"display")},oe={};St.fn.extend({show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){re(this)?St(this).show():St(this).hide()}))}});var ae=/^(?:checkbox|radio)$/i,se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,le=/^$|^module$|\/(?:java|ecma)script/i;!function(){var t=xt.createDocumentFragment().appendChild(xt.createElement("div")),e=xt.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),vt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",vt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",vt.option=!!t.lastChild}();var ce={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,"",""]};ce.tbody=ce.tfoot=ce.colgroup=ce.caption=ce.thead,ce.th=ce.td,vt.option||(ce.optgroup=ce.option=[1,"<select multiple='multiple'>","</select>"]);var he=/<|&#?\w+;/,de=/^([^.]*)(?:\.(.+)|)/;St.event={global:{},add:function(t,e,i,n,r){var o,a,s,l,c,h,d,u,p,f,g,m=Yt.get(t);if(Gt(t))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&St.find.matchesSelector(ee,r),i.guid||(i.guid=St.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==St&&St.event.triggered!==e.type?St.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(Vt)||[""]).length;c--;)p=g=(s=de.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=St.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=St.event.special[p]||{},h=St.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&St.expr.match.needsContext.test(r),namespace:f.join(".")},o),(u=l[p])||((u=l[p]=[]).delegateCount=0,
3d.setup&&!1!==d.setup.call(t,n,f,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),r?u.splice(u.delegateCount++,0,h):u.push(h),St.event.global[p]=!0)}
vendor: 5,517 bytes, line 3
3,remove:function(t,e,i,n,r){var o,a,s,l,c,h,d,u,p,f,g,m=Yt.hasData(t)&&Yt.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(Vt)||[""]).length;c--;)if(p=g=(s=de.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=St.event.special[p]||{},u=l[p=(n?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=u.length;o--;)h=u[o],!r&&g!==h.origType||i&&i.guid!==h.guid||s&&!s.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(u.splice(o,1),h.selector&&u.delegateCount--,d.remove&&d.remove.call(t,h));a&&!u.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||St.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)St.event.remove(t,p+e[c],i,n,!0);St.isEmptyObject(l)&&Yt.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,a,s=new Array(arguments.length),l=St.event.fix(t),c=(Yt.get(this,"events")||Object.create(null))[l.type]||[],h=St.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(a=St.event.handlers.call(this,l,c),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((St.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,r,o,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(o=[],a={},i=0;i<l;i++)void 0===a[r=(n=e[i]).selector+" "]&&(a[r]=n.needsContext?St(r,this).index(c)>-1:St.find(r,this,null,[c]).length),a[r]&&o.push(n);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(St.Event.prototype,t,{enumerable:!0,configurable:!0,get:bt(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[St.expando]?t:new St.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ae.test(e.type)&&e.click&&o(e,"input")&&L(e,"click",!0),!1},trigger:function(t){var e=this||t;return ae.test(e.type)&&e.click&&o(e,"input")&&L(e,"click"),!0},_default:function(t){var e=t.target;return ae.test(e.type)&&e.click&&o(e,"input")&&Yt.get(e,"click")||o(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},St.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},St.Event=function(t,e){if(!(this instanceof St.Event))return new St.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?k:A,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&&St.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[St.expando]=!0},St.Event.prototype={constructor:St.Event,isDefaultPrevented:A,isPropagationStopped:A,isImmediatePropagationStopped:A,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=k,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=k,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=k,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},St.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},St.event.addProp),St.each({focus:"focusin",blur:"focusout"},(function(t,e){function i(t){if(xt.documentMode){var i=Yt.get(this,"handle"),n=St.event.fix(t);n.type="focusin"===t.type?"focus":"blur",n.isSimulated=!0,i(t),n.target===n.currentTarget&&i(n)}else St.event.simulate(e,t.target,St.event.fix(t))}St.event.special[t]={setup:function(){var n;if(L(this,t,!0),!xt.documentMode)return!1;(n=Yt.get(this,e))||this.addEventListener(e,i),Yt.set(this,e,(n||0)+1)},trigger:function(){return L(this,t),!0},teardown:function(){var t;if(!xt.documentMode)return!1;(t=Yt.get(this,e)-1)?Yt.set(this,e,t):(this.removeEventListener(e,i),Yt.remove(this,e))},_default:function(e){return Yt.get(e.target,t)},delegateType:e},St.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=xt.documentMode?this:n,o=Yt.get(r,e);o||(xt.documentMode?this.addEventListener(e,i):n.addEventListener(t,i,!0)),Yt.set(r,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=xt.documentMode?this:n,o=Yt.get(r,e)-1;o?Yt.set(r,e,o):(xt.documentMode?this.removeEventListener(e,i):n.removeEventListener(t,i,!0),Yt.remove(r,e))}}})),St.each({mouseenter:"mouseover",mouseleave:"mou
3seout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){St.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===n||St.contains(n,r))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),St.fn.extend({on:function(t,e,i,n){return T(this,t,e,i,n)},one:function(t,e,i,n){return T(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,St(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=A),this.each((function(){St.event.remove(this,t,i,e)}))}});var ue=/<script|<style|<link/i,pe=/checked\s*(?:[^=]|=\s*.checked.)/i,fe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;St.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,o,a,s=t.cloneNode(!0),l=ie(t);if(!(vt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||St.isXMLDoc(t)))for(a=_(s),n=0,r=(o=_(t)).length;n<r;n++)M(o[n],a[n]);if(e)if(i)for(o=o||_(t),a=a||_(s),n=0,r=o.length;n<r;n++)I(o[n],a[n]);else I(t,s);return(a=_(s,"script")).length>0&&C(a,!l&&_(t,"script")),s},cleanData:function(t){for(var e,i,n,r=St.event.special,o=0;void 0!==(i=t[o]);o++)if(Gt(i)){if(e=i[Yt.expando]){if(e.events)for(n in e.events)r[n]?St.event.remove(i,n):St.removeEvent(i,n,e.handle);i[Yt.expando]=void 0}i[Xt.expando]&&(i[Xt.expando]=void 0)}}}),St.fn.extend({detach:function(t){return F(this,t,!0)},remove:function(t){return F(this,t)},text:function(t){return zt(this,(function(t){return void 0===t?St.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 O(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||D(this,t).appendChild(t)}))},prepend:function(){return O(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=D(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return O(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return O(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&&(St.cleanData(_(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return St.clone(this,t,e)}))},html:function(t){return zt(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!ue.test(t)&&!ce[(se.exec(t)||["",""])[1].toLowerCase()]){t=St.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(St.cleanData(_(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return O(this,arguments,(function(e){var i=this.parentNode;St.inArray(this,t)<0&&(St.cleanData(_(this)),i&&i.replaceChild(e,this))}),t)}}),St.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){St.fn[t]=function(t){for(var i,n=[],r=St(t),o=r.length-1,a=0;a<=o;a++)i=a===o?this:this.clone(!0),St(r[a])[e](i),ht.apply(n,i.get());return this.pushStack(n)}}));var ge=new RegExp("^("+Zt+")(?!px)[a-z%]+$","i"),me=/^--/,ve=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},be=function(t,e,i){var n,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=i.call(t),e)t.style[r]=o[r];return n},ye=new RegExp(te.join("|"),"i");!function(){function e(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ee.appendChild(c).appendChild(h);var e=t.getComputedStyle(h);n="1%"!==e.top,l=12===i(e.marginLeft),h.style.right="60%",a=36===i(e.right),r=36===i(e.width),h.style.position="absolute",o=12===i(h.offsetWidth/3),ee.removeChild(c),h=null}}function i(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,c=xt.createElement("div"),h=xt.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",vt.clearCloneStyle="content-box"===h.style.backgroundClip,St.extend(vt,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,i,n,r;return null==s&&(e=xt.createElement("table"),i=xt.createElement("tr"),n=xt.createElement("div"),e.style.cssText="position:absolute;
3left:-11111px;border-collapse:separate",i.style.cssText="border:1px solid",i.style.height="1px",n.style.height="9px",n.style.display="block",ee.appendChild(e).appendChild(i).appendChild(n),r=t.getComputedStyle(i),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===i.offsetHeight,ee.removeChild(e)),s}}))}();var xe=["Webkit","Moz","ms"],we=xt.createElement("div").style,_e={},Ce=/^(none|table(?!-c[ea]).+)/,Se={position:"absolute",visibility:"hidden",display:"block"},ke={letterSpacing:"0",fontWeight:"400"};St.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=R(t,"opacity");return""===i?"1":i}}}},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,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=g(e),l=me.test(e),c=t.style;if(l||(e=j(s)),a=St.cssHooks[e]||St.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(t,!1,n))?r:c[e];"string"===(o=typeof i)&&(r=Qt.exec(i))&&r[1]&&(i=y(t,e,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(St.cssNumber[s]?"":"px")),vt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var r,o,a,s=g(e);return me.test(e)||(e=j(s)),(a=St.cssHooks[e]||St.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,i)),void 0===r&&(r=R(t,e,n)),"normal"===r&&e in ke&&(r=ke[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),St.each(["height","width"],(function(t,e){St.cssHooks[e]={get:function(t,i,n){if(i)return!Ce.test(St.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?H(t,e,n):be(t,Se,(function(){return H(t,e,n)}))},set:function(t,i,n){var r,o=ve(t),a=!vt.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===St.css(t,"boxSizing",!1,o),l=n?V(t,e,n,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-V(t,e,"border",!1,o)-.5)),l&&(r=Qt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=St.css(t,e)),$(t,i,l)}}})),St.cssHooks.marginLeft=B(vt.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(R(t,"marginLeft"))||t.getBoundingClientRect().left-be(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),St.each({margin:"",padding:"",border:"Width"},(function(t,e){St.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+te[n]+e]=o[n]||o[n-2]||o[0];return r}},"margin"!==t&&(St.cssHooks[t+e].set=$)})),St.fn.extend({css:function(t,e){return zt(this,(function(t,e,i){var n,r,o={},a=0;if(Array.isArray(e)){for(n=ve(t),r=e.length;a<r;a++)o[e[a]]=St.css(t,e[a],!1,n);return o}return void 0!==i?St.style(t,e,i):St.css(t,e)}),t,e,arguments.length>1)}}),St.Tween=W,W.prototype={constructor:W,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||St.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(St.cssNumber[i]?"":"px")},cur:function(){var t=W.propHooks[this.prop];return t&&t.get?t.get(this):W.propHooks._default.get(this)},run:function(t){var e,i=W.propHooks[this.prop];return this.options.duration?this.pos=e=St.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),i&&i.set?i.set(this):W.propHooks._default.set(this),this}},W.prototype.init.prototype=W.prototype,W.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=St.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){St.fx.step[t.prop]?St.fx.step[t.prop](t):1!==t.elem.nodeType||!St.cssHooks[t.prop]&&null==t.elem.style[j(t.prop)]?t.elem[t.prop]=t.now:St.style(t.elem,t.prop,t.now+t.unit)}}},W.propHooks.scrollTop=W.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},St.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},St.fx=W.prototype.init,St.fx.step={};var Ae,Te,Le=/^(?:toggle|show|hide)$/,De=/queueHooks$/;St.Animation=St.extend(J,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return y(i.elem,t,Qt.exec(e),i),i}]},tweener:function(t,e){bt(t)?(e=t,t=["*"]):t=t.match(Vt);for(var i,n=0,r=t.length;n<r;n++)i=t[n],J.tweeners[i]=J.tweeners[i]||[],J.tweeners[i].unshift(e)},prefilters:[Y],prefilter:function(t,e){e?J.prefilters.unshift(t):J.prefilters.push(t)}}
vendor: 4,176 bytes, line 3
3),St.speed=function(t,e,i){var n=t&&"object"==typeof t?St.extend({},t):{complete:i||!i&&e||bt(t)&&t,duration:t,easing:i&&e||e&&!bt(e)&&e};return St.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in St.fx.speeds?n.duration=St.fx.speeds[n.duration]:n.duration=St.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){bt(n.old)&&n.old.call(this),n.queue&&St.dequeue(this,n.queue)},n},St.fn.extend({fadeTo:function(t,e,i,n){return this.filter(re).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=St.isEmptyObject(t),o=St.speed(e,i,n),a=function(){var e=J(this,St.extend({},t),o);(r||Yt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=St.timers,a=Yt.get(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&De.test(r)&&n(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||St.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=Yt.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=St.timers,a=n?n.length:0;for(i.finish=!0,St.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),St.each(["toggle","show","hide"],(function(t,e){var i=St.fn[e];St.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(U(e,!0),t,n,r)}})),St.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){St.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),St.timers=[],St.fx.tick=function(){var t,e=0,i=St.timers;for(Ae=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||St.fx.stop(),Ae=void 0},St.fx.timer=function(t){St.timers.push(t),St.fx.start()},St.fx.interval=13,St.fx.start=function(){Te||(Te=!0,z())},St.fx.stop=function(){Te=null},St.fx.speeds={slow:600,fast:200,_default:400},St.fn.delay=function(e,i){return e=St.fx&&St.fx.speeds[e]||e,i=i||"fx",this.queue(i,(function(i,n){var r=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(r)}}))},function(){var t=xt.createElement("input"),e=xt.createElement("select").appendChild(xt.createElement("option"));t.type="checkbox",vt.checkOn=""!==t.value,vt.optSelected=e.selected,(t=xt.createElement("input")).value="t",t.type="radio",vt.radioValue="t"===t.value}();var Ee,Pe=St.expr.attrHandle;St.fn.extend({attr:function(t,e){return zt(this,St.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){St.removeAttr(this,t)}))}}),St.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?St.prop(t,e,i):(1===o&&St.isXMLDoc(t)||(r=St.attrHooks[e.toLowerCase()]||(St.expr.match.bool.test(e)?Ee:void 0)),void 0!==i?null===i?void St.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=St.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!vt.radioValue&&"radio"===e&&o(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(Vt);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),Ee={set:function(t,e,i){return!1===e?St.removeAttr(t,i):t.setAttribute(i,i),i}},St.each(St.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=Pe[e]||St.find.attr;Pe[e]=function(t,e,n){var r,o,a=e.toLowerCase();return n||(o=Pe[a],Pe[a]=r,r=null!=i(t,e,n)?a:null,Pe[a]=o),r}}));var Ie=/^(?:input|select|textarea|button)$/i,Me=/^(?:a|area)$/i;St.fn.extend({prop:function(t,e){return zt(this,St.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[St.propFix[t]||t]}))}}
vendor: 5,506 bytes, line 3
3),St.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&St.isXMLDoc(t)||(e=St.propFix[e]||e,r=St.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=St.find.attr(t,"tabindex");return e?parseInt(e,10):Ie.test(t.nodeName)||Me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),vt.optSelected||(St.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)}}),St.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){St.propFix[this.toLowerCase()]=this})),St.fn.extend({addClass:function(t){var e,i,n,r,o,a;return bt(t)?this.each((function(e){St(this).addClass(t.call(this,e,Z(this)))})):(e=Q(t)).length?this.each((function(){if(n=Z(this),i=1===this.nodeType&&" "+K(n)+" "){for(o=0;o<e.length;o++)r=e[o],i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=K(i),n!==a&&this.setAttribute("class",a)}})):this},removeClass:function(t){var e,i,n,r,o,a;return bt(t)?this.each((function(e){St(this).removeClass(t.call(this,e,Z(this)))})):arguments.length?(e=Q(t)).length?this.each((function(){if(n=Z(this),i=1===this.nodeType&&" "+K(n)+" "){for(o=0;o<e.length;o++)for(r=e[o];i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");a=K(i),n!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var i,n,r,o,a=typeof t,s="string"===a||Array.isArray(t);return bt(t)?this.each((function(i){St(this).toggleClass(t.call(this,i,Z(this),e),e)})):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(i=Q(t),this.each((function(){if(s)for(o=St(this),r=0;r<i.length;r++)n=i[r],o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==t&&"boolean"!==a||((n=Z(this))&&Yt.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":Yt.get(this,"__className__")||""))})))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+K(Z(i))+" ").indexOf(e)>-1)return!0;return!1}});var Oe=/\r/g;St.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=bt(t),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,St(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=St.map(r,(function(t){return null==t?"":t+""}))),(e=St.valHooks[this.type]||St.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=St.valHooks[r.type]||St.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(Oe,""):null==i?"":i:void 0}}),St.extend({valHooks:{option:{get:function(t){var e=St.find.attr(t,"value");return null!=e?e:K(St.text(t))}},select:{get:function(t){var e,i,n,r=t.options,a=t.selectedIndex,s="select-one"===t.type,l=s?null:[],c=s?a+1:r.length;for(n=a<0?c:s?a:0;n<c;n++)if(((i=r[n]).selected||n===a)&&!i.disabled&&(!i.parentNode.disabled||!o(i.parentNode,"optgroup"))){if(e=St(i).val(),s)return e;l.push(e)}return l},set:function(t,e){for(var i,n,r=t.options,o=St.makeArray(e),a=r.length;a--;)((n=r[a]).selected=St.inArray(St.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),St.each(["radio","checkbox"],(function(){St.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=St.inArray(St(t).val(),e)>-1}},vt.checkOn||(St.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Fe=t.location,Re={guid:Date.now()},Be=/\?/;St.parseXML=function(e){var i,n;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||St.error("Invalid XML: "+(n?St.map(n.childNodes,(function(t){return t.textContent})).join("\n"):e)),i};var Ne=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};St.extend(St.event,{trigger:function(e,i,n,r){var o,a,s,l,c,h,d,u,p=[n||xt],f=ft.call(e,"type")?e.type:e,g=ft.call(e,"namespace")?e.namespace.split("."):[];if(a=u=s=n=n||xt,3!==n.nodeType&&8!==n.nodeType&&!Ne.test(f+St.event.triggered)&&(f.indexOf(".")>-1&&(g=f.split("."),f=g.shift(),g.sort()),c=f.indexOf(":")<0&&"on"+f,(e=e[St.expando]?e:new St.Event(f,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:St.makeArray(i,[e]),d=St.event.special[f]||{},r||!d.trigger||!1!==d.trigger.apply(n,i))){if(!r&&!d.noBubble&&!yt(n)){for(l=d.delegateType||f,Ne.test(l+f)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||xt)&&p.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)u=a,e.type=o>1?l:d.bindType||f,(h=(Yt.get(a,"events")||Object.create(null))[e.type]&&Yt.get(a,"handle"))&&h.apply(a,i),(h=c&&a[c])&&h.apply&&Gt(a)&&(e.result=h.apply(a,i),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),i)||!Gt(n)||c&&bt(n[f])&&!yt(n)&&((s=n[c])&&(n[c]=null),St.event.triggered=f,e.isPropagationStopped()&&u.addEventListener(f,je),n[f](),e.isPropagationStopped()&&u.removeEventListener(f,je),St.event.triggered=void 0,s&&(n[c]=s)),e.result}}
vendor: 5,323 bytes, line 3
3,simulate:function(t,e,i){var n=St.extend(new St.Event,i,{type:t,isSimulated:!0});St.event.trigger(n,null,e)}}),St.fn.extend({trigger:function(t,e){return this.each((function(){St.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return St.event.trigger(t,e,i,!0)}});var $e=/\[\]$/,Ve=/\r?\n/g,He=/^(?:submit|button|image|reset|file)$/i,We=/^(?:input|select|textarea|keygen)/i;St.param=function(t,e){var i,n=[],r=function(t,e){var i=bt(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!St.isPlainObject(t))St.each(t,(function(){r(this.name,this.value)}));else for(i in t)tt(i,t[i],e,r);return n.join("&")},St.fn.extend({serialize:function(){return St.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=St.prop(this,"elements");return t?St.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!St(this).is(":disabled")&&We.test(this.nodeName)&&!He.test(t)&&(this.checked||!ae.test(t))})).map((function(t,e){var i=St(this).val();return null==i?null:Array.isArray(i)?St.map(i,(function(t){return{name:e.name,value:t.replace(Ve,"\r\n")}})):{name:e.name,value:i.replace(Ve,"\r\n")}})).get()}});var ze=/%20/g,qe=/#.*$/,Ue=/([?&])_=[^&]*/,Ge=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ye=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Xe=/^(?:GET|HEAD)$/,Je=/^\/\//,Ke={},Ze={},Qe="*/".concat("*"),ti=xt.createElement("a");ti.href=Fe.href,St.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Fe.href,type:"GET",isLocal:Ye.test(Fe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qe,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":St.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?nt(nt(t,St.ajaxSettings),e):nt(St.ajaxSettings,t)},ajaxPrefilter:et(Ke),ajaxTransport:et(Ze),ajax:function(e,i){function n(e,i,n,s){var c,u,p,x,w,_=i;h||(h=!0,l&&t.clearTimeout(l),r=void 0,a=s||"",C.readyState=e>0?4:0,c=e>=200&&e<300||304===e,n&&(x=rt(f,C,n)),!c&&St.inArray("script",f.dataTypes)>-1&&St.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=ot(f,x,C,c),c?(f.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(St.lastModified[o]=w),(w=C.getResponseHeader("etag"))&&(St.etag[o]=w)),204===e||"HEAD"===f.type?_="nocontent":304===e?_="notmodified":(_=x.state,u=x.data,c=!(p=x.error))):(p=_,!e&&_||(_="error",e<0&&(e=0))),C.status=e,C.statusText=(i||_)+"",c?v.resolveWith(g,[u,_,C]):v.rejectWith(g,[C,_,p]),C.statusCode(y),y=void 0,d&&m.trigger(c?"ajaxSuccess":"ajaxError",[C,f,c?u:p]),b.fireWith(g,[C,_]),d&&(m.trigger("ajaxComplete",[C,f]),--St.active||St.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{};var r,o,a,s,l,c,h,d,u,p,f=St.ajaxSetup({},i),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?St(g):St.event,v=St.Deferred(),b=St.Callbacks("once memory"),y=f.statusCode||{},x={},w={},_="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(h){if(!s)for(s={};e=Ge.exec(a);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?a:null},setRequestHeader:function(t,e){return null==h&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==h&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)C.always(t[C.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return r&&r.abort(e),n(0,e),this}};if(v.promise(C),f.url=((e||f.url||Fe.href)+"").replace(Je,Fe.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Vt)||[""],null==f.crossDomain){c=xt.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=ti.protocol+"//"+ti.host!=c.protocol+"//"+c.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=St.param(f.data,f.traditional)),it(Ke,f,i,C),h)return C;for(u in(d=St.event&&f.global)&&0==St.active++&&St.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Xe.test(f.type),o=f.url.replace(qe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(ze,"+")):(p=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Be.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Ue,"$1"),p=(Be.test(o)?"&":"?")+"_="+Re.guid+++p),f.url=o+p),f.ifModified&&(St.lastModified[o]&&C.setRequestHeader("If-Modified-Since",St.lastModified[o]),St.etag[o]&&C.setRequestHeader("If-None-Match",St.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Qe+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(u,f.headers[u]);
vendor: 4,816 bytes, lines 3-4
3if(f.beforeSend&&(!1===f.beforeSend.call(g,C,f)||h))return C.abort();if(_="abort",b.add(f.complete),C.done(f.success),C.fail(f.error),r=it(Ze,f,i,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,f]),h)return C;f.async&&f.timeout>0&&(l=t.setTimeout((function(){C.abort("timeout")}),f.timeout));try{h=!1,r.send(x,n)}catch(t){if(h)throw t;n(-1,t)}}else n(-1,"No Transport");return C},getJSON:function(t,e,i){return St.get(t,e,i,"json")},getScript:function(t,e){return St.get(t,void 0,e,"script")}}),St.each(["get","post"],(function(t,e){St[e]=function(t,i,n,r){return bt(i)&&(r=r||n,n=i,i=void 0),St.ajax(St.extend({url:t,type:e,dataType:r,data:i,success:n},St.isPlainObject(t)&&t))}})),St.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),St._evalUrl=function(t,e,i){return St.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){St.globalEval(t,e,i)}})},St.fn.extend({wrapAll:function(t){var e;return this[0]&&(bt(t)&&(t=t.call(this[0])),e=St(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 bt(t)?this.each((function(e){St(this).wrapInner(t.call(this,e))})):this.each((function(){var e=St(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=bt(t);return this.each((function(i){St(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){St(this).replaceWith(this.childNodes)})),this}}),St.expr.pseudos.hidden=function(t){return!St.expr.pseudos.visible(t)},St.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},St.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var ei={0:200,1223:204},ii=St.ajaxSettings.xhr();vt.cors=!!ii&&"withCredentials"in ii,vt.ajax=ii=!!ii,St.ajaxTransport((function(e){var i,n;if(vt.cors||ii&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),
4e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);i=function(t){return function(){i&&(i=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(ei[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),n=s.onerror=s.ontimeout=i("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}})),St.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),St.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 St.globalEval(t),t}}}),St.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),St.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=St("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),xt.head.appendChild(e[0])},abort:function(){i&&i()}}}));var ni,ri=[],oi=/(=)\?(?=&|$)|\?\?/;St.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ri.pop()||St.expando+"_"+Re.guid++;return this[t]=!0,t}}),St.ajaxPrefilter("json jsonp",(function(e,i,n){var r,o,a,s=!1!==e.jsonp&&(oi.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&oi.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=bt(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(oi,"$1"+r):!1!==e.jsonp&&(e.url+=(Be.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||St.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},n.always((function(){void 0===o?St(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,ri.push(r)),a&&bt(o)&&o(a[0]),a=o=void 0})),"script"})),vt.createHTMLDocument=((ni=xt.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>
4",2===ni.childNodes.length),St.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(vt.createHTMLDocument?((n=(e=xt.implementation.createHTMLDocument("")).createElement("base")).href=xt.location.href,e.head.appendChild(n)):e=xt),o=!i&&[],(r=Rt.exec(t))?[e.createElement(r[1])]:(r=S([t],e,o),o&&o.length&&St(o).remove(),St.merge([],r.childNodes)));var n,r,o},St.fn.load=function(t,e,i){var n,r,o,a=this,s=t.indexOf(" ");return s>-1&&(n=K(t.slice(s)),t=t.slice(0,s)),bt(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&St.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(n?St("<div>").append(St.parseHTML(t)).find(n):t)})).always(i&&function(t,e){a.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},St.expr.pseudos.animated=function(t){return St.grep(St.timers,(function(e){return t===e.elem})).length},St.offset={setOffset:function(t,e,i){var n,r,o,a,s,l,c=St.css(t,"position"),h=St(t),d={};"static"===c&&(t.style.position="relative"),s=h.offset(),o=St.css(t,"top"),l=St.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(n=h.position()).top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),bt(e)&&(e=e.call(t,i,St.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):h.css(d)}},St.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){St.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===St.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===St.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=St(t).offset()).top+=St.css(t,"borderTopWidth",!0),r.left+=St.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-St.css(n,"marginTop",!0),left:e.left-r.left-St.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===St.css(t,"position");)t=t.offsetParent;return t||ee}))}}),St.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;St.fn[t]=function(n){return zt(this,(function(t,n,r){var o;if(yt(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):t[n]=r}),t,n,arguments.length)}})),St.each(["top","left"],(function(t,e){St.cssHooks[e]=B(vt.pixelPosition,(function(t,i){if(i)return i=R(t,e),ge.test(i)?St(t).position()[e]+"px":i}))})),St.each({Height:"height",Width:"width"},(function(t,e){St.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){St.fn[n]=function(r,o){var a=arguments.length&&(i||"boolean"!=typeof r),s=i||(!0===r||!0===o?"margin":"border");return zt(this,(function(e,i,r){var o;return yt(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?St.css(e,i,s):St.style(e,i,r,s)}),e,a?r:void 0,a)}}))})),St.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){St.fn[e]=function(t){return this.on(e,t)}}
4)),St.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),St.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){St.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var ai=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;St.proxy=function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),bt(t))return n=lt.call(arguments,2),r=function(){return t.apply(e||this,n.concat(lt.call(arguments)))},r.guid=t.guid=t.guid||St.guid++,r},St.holdReady=function(t){t?St.readyWait++:St.ready(!0)},St.isArray=Array.isArray,St.parseJSON=JSON.parse,St.nodeName=o,St.isFunction=bt,St.isWindow=yt,St.camelCase=g,St.type=n,St.now=Date.now,St.isNumeric=function(t){var e=St.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},St.trim=function(t){return null==t?"":(t+"").replace(ai,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return St}));var si=t.jQuery,li=t.$;return St.noConflict=function(e){return t.$===St&&(t.$=li),e&&t.jQuery===St&&(t.jQuery=si),St},void 0===e&&(t.jQuery=t.$=St),St})),function(){var t=this;(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(t);var e=t.Rails;(function(){(function(){var t;t=null,e.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},e.cspNonce=function(){return null!=t?t:e.loadCSPNonce()}}).call(this),function(){var t,i;i=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,e.matches=function(t,e){return null!=e.exclude?i.call(t,e.selector)&&!i.call(t,e.exclude):i.call(t,e)},t="_ujsData",e.getData=function(e,i){var n;return null!=(n=e[t])?n[i]:void 0},e.setData=function(e,i,n){return null==e[t]&&(e[t]={}),e[t][i]=n},e.isContentEditable=function(t){var e;for(e=!1;;){if(t.isContentEditable){e=!0;break}if(!(t=t.parentElement))break}return e},e.$=function(t){return Array.prototype.slice.call(document.querySelectorAll(t))}}.call(this),function(){var t,i,n;t=e.$,n=e.csrfToken=function(){var t;return(t=document.querySelector("meta[name=csrf-token]"))&&t.content},i=e.csrfParam=function(){var t;return(t=document.querySelector("meta[name=csrf-param]"))&&t.content},e.CSRFProtection=function(t){var e;if(null!=(e=n()))return t.setRequestHeader("X-CSRF-Token",e)},e.refreshCSRFTokens=function(){var e,r;if(r=n(),e=i(),null!=r&&null!=e)return t('form input[name="'+e+'"]').forEach((function(t){return t.value=r}))}}.call(this),function(){var t,i,n,r;n=e.matches,"function"!=typeof(t=window.CustomEvent)&&((t=function(t,e){var i;return(i=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}).prototype=window.Event.prototype,r=t.prototype.preventDefault,t.prototype.preventDefault=function(){var t;return t=r.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),t}),i=e.fire=function(e,i,n){var r;return r=new t(i,{bubbles:!0,cancelable:!0,detail:n}),e.dispatchEvent(r),!r.defaultPrevented},e.stopEverything=function(t){return i(t.target,"ujs:everythingStopped"),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()}
4,e.delegate=function(t,e,i,r){return t.addEventListener(i,(function(t){var i;for(i=t.target;i instanceof Element&&!n(i,e);)i=i.parentNode;if(i instanceof Element&&!1===r.call(i,t))return t.preventDefault(),t.stopPropagation()}))}}.call(this),function(){var t,i,n,r,o,a;r=e.cspNonce,i=e.CSRFProtection,e.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},e.ajax=function(t){var e;return t=o(t),e=n(t,(function(){var i,n;return n=a(null!=(i=e.response)?i:e.responseText,e.getResponseHeader("Content-Type")),2===Math.floor(e.status/100)?"function"==typeof t.success&&t.success(n,e.statusText,e):"function"==typeof t.error&&t.error(n,e.statusText,e),"function"==typeof t.complete?t.complete(e,e.statusText):void 0})),!(null!=t.beforeSend&&!t.beforeSend(e,t))&&(e.readyState===XMLHttpRequest.OPENED?e.send(t.data):void 0)},o=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},n=function(t,e){var n;return(n=new XMLHttpRequest).open(t.type,t.url,!0),n.setRequestHeader("Accept",t.accept),"string"==typeof t.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),t.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),i(n)),n.withCredentials=!!t.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return e(n)},n},a=function(t,e){var i,n;if("string"==typeof t&&"string"==typeof e)if(e.match(/\bjson\b/))try{t=JSON.parse(t)}catch(t){}else if(e.match(/\b(?:java|ecma)script\b/))(n=document.createElement("script")).setAttribute("nonce",r()),n.text=t,document.head.appendChild(n).parentNode.removeChild(n);else if(e.match(/\b(xml|html|svg)\b/)){i=new DOMParser,e=e.replace(/;.+/,"");try{t=i.parseFromString(t,e)}catch(t){}}return t},e.href=function(t){return t.href},e.isCrossDomain=function(t){var e,i;(e=document.createElement("a")).href=location.href,i=document.createElement("a");try{return i.href=t,!((!i.protocol||":"===i.protocol)&&!i.host||e.protocol+"//"+e.host==i.protocol+"//"+i.host)}catch(t){return t,!0}}}.call(this),function(){var t,i;t=e.matches,i=function(t){return Array.prototype.slice.call(t)},e.serializeElement=function(e,n){var r,o;return r=[e],t(e,"form")&&(r=i(e.elements)),o=[],r.forEach((function(e){if(e.name&&!e.disabled&&!t(e,"fieldset[disabled] *"))return t(e,"select")?i(e.options).forEach((function(t){if(t.selected)return o.push({name:e.name,value:t.value})})):e.checked||-1===["radio","checkbox","submit"].indexOf(e.type)?o.push({name:e.name,value:e.value}):void 0})),n&&o.push(n),o.map((function(t){return null!=t.name?encodeURIComponent(t.name)+"="+encodeURIComponent(t.value):t})).join("&")},e.formElements=function(e,n){return t(e,"form")?i(e.elements).filter((function(e){return t(e,n)})):i(e.querySelectorAll(n))}}.call(this),function(){var t,i,n;i=e.fire,n=e.stopEverything,e.handleConfirm=function(e){if(!t(this))return n(e)},e.confirm=function(t){return confirm(t)},t=function(t){var n,r,o;if(!(o=t.getAttribute("data-confirm")))return!0;if(n=!1,i(t,"confirm")){try{n=e.confirm(o,t)}catch(t){}r=i(t,"confirm:complete",[n])}return n&&r}}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d,u,p;d=e.matches,l=e.getData,u=e.setData,p=e.stopEverything,s=e.formElements,c=e.isContentEditable,e.handleDisabledElement=function(t){if(this.disabled)return p(t)},e.enableElement=function(t){var i;if(t instanceof Event){if(h(t))return;i=t.target}else i=t;if(!c(i))return d(i,e.linkDisableSelector)?a(i):d(i,e.buttonDisableSelector)||d(i,e.formEnableSelector)?r(i):d(i,e.formSubmitSelector)?o(i):void 0},e.disableElement=function(r){var o;if(o=r instanceof Event?r.target:r,!c(o))return d(o,e.linkDisableSelector)?n(o):d(o,e.buttonDisableSelector)||d(o,e.formDisableSelector)?t(o):d(o,e.formSubmitSelector)?i(o):void 0},n=function(t){var e;if(!l(t,"ujs:disabled"))return null!=(e=t.getAttribute("data-disable-with"))&&(u(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e),t.addEventListener("click",p),u(t,"ujs:disabled",!0)},a=function(t){var e;return null!=(e=l(t,"ujs:enable-with"))&&(t.innerHTML=e,u(t,"ujs:enable-with",null)),t.removeEventListener("click",p),u(t,"ujs:disabled",null)},i=function(i){return s(i,e.formDisableSelector).forEach(t)},t=function(t){var e;if(!l(t,"ujs:disabled"))return null!=(e=t.getAttribute("data-disable-with"))&&(d(t,"button")?(u(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e):(u(t,"ujs:enable-with",t.value),t.value=e)),t.disabled=!0,u(t,"ujs:disabled",!0)},o=function(t){return s(t,e.formEnableSelector).forEach(r)},r=function(t){var e;return null!=(e=l(t,"ujs:enable-with"))&&(d(t,"button")?t.innerHTML=e:t.value=e,u(t,"ujs:enable-with",null)),t.disabled=!1,u(t,"ujs:disabled",null)},h=function(t){var e,i;return null!=(null!=(i=null!=(e=t.detail)?e[0]:void 0)?i.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var t,i;i=e.stopEverything,t=e.isContentEditable,e.handleMethod=function(n){var r,o,a,s,l,c,h;if((h=(c=this).getAttribute("data-method"))&&!t(this))return l=e.href(c),o=e.csrfToken(),r=e.csrfParam(),a=document.createElement("form"),s="<input name='_method' value='"+h+"' type='hidden' />",null==r||null==o||e.isCrossDomain(l)||(s+="<input name='"+r+"' value='"+o+"' type='hidden' />"),s+='<input type="submit" />',a.method="post",a.action=l,a.target=c.target,a.innerHTML=s,a.style.display="none",document.body.appendChild(a),a.querySelector('[type="submit"]').click(),i(n)}}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d=[].slice;s=e.matches,n=e.getData,c=e.setData,i=e.fire,h=e.stopEverything,t=e.ajax,o=e.isCrossDomain,l=e.serializeElement,r=e.isContentEditable,a=function(t){var e;return null!=(e=t.getAttribute("data-remote"))&&"false"!==e},e.handleRemote=function(u){var p,f,g,m,v,b,y;return!a(m=this)||(i(m,"ajax:before")?r(m)?(i(m,"ajax:stopped"),!1):(y=m.getAttribute("data-with-credentials"),g=m.getAttribute("data-type")||"script",s(m,e.formSubmitSelector)?(p=n(m,"ujs:submit-button"),v=n(m,"ujs:submit-button-formmethod")||m.method,b=n(m,"ujs:submit-button-formaction")||m.getAttribute("action")||location.href,"GET"===v.toUpperCase()&&(b=b.replace(/\?.*$/,"")),"multipart/form-data"===m.enctype?(f=new FormData(m),null!=p&&f.append(p.name,p.value)):f=l(m,p),c(m,"ujs:submit-button",null),c(m,"ujs:submit-button-formmethod",null),c(m,"ujs:submit-button-formaction",null)):s(m,e.buttonClickSelector)||s(m,e.inputChangeSelector)?(v=m.getAttribute("data-method"),b=m.getAttribute("data-url"),f=l(m,m.getAttribute("data-params"))):(v=m.getAttribute("data-method"),b=e.href(m),f=m.getAttribute("data-params")),t({type:v||"GET",url:b,data:f,dataType:g,beforeSend:function(t,e){return i(m,"ajax:beforeSend",[t,e])?i(m,"ajax:send",[t]):(i(m,"ajax:stopped"),!1)},success:function(){var t;return t=1<=arguments.length?d.call(arguments,0):[],i(m,"ajax:success",t)},error:function(){var t;return t=1<=arguments.length?d.call(arguments,0):[],i(m,"ajax:error",t)},complete:function(){var t;return t=1<=arguments.length?d.call(arguments,0):[],i(m,"ajax:complete",t)},crossDomain:o(b),withCredentials:null!=y&&"false"!==y}),h(u)):(i(m,"ajax:stopped"),!1))},e.formSubmitButtonClick=function(){var t,e;if(e=(t=this).form)return t.name&&c(e,"ujs:submit-button",{name:t.name,value:t.value}),c(e,"ujs:formnovalidate-button",t.formNoValidate),c(e,"ujs:submit-button-formaction",t.getAttribute("formaction")),c(e,"ujs:submit-button-formmethod",t.getAttribute("formmethod"))},e.preventInsignificantClick=function(t){var e,i,n,r;if(r=((n=this).getAttribute("data-method")||"GET").toUpperCase(),e=n.getAttribute("data-params"),i=(t.metaKey||t.ctrlKey)&&"GET"===r&&!e,null!=t.button&&0!==t.button||i)return t.stopImmediatePropagation()}}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d,u,p,f,g;if(a=e.fire,n=e.delegate,l=e.getData,t=e.$,g=e.refreshCSRFTokens,i=e.CSRFProtection,p=e.loadCSPNonce,o=e.enableElement,r=e.disableElement,h=e.handleDisabledElement,c=e.handleConfirm,f=e.preventInsignificantClick,u=e.handleRemote,s=e.formSubmitButtonClick,d=e.handleMethod,"undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-u
4js, use rails-ujs only.");jQuery.rails=e,jQuery.ajaxPrefilter((function(t,e,n){if(!t.crossDomain)return i(n)}))}e.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",(function(){return t(e.formEnableSelector).forEach((function(t){if(l(t,"ujs:disabled"))return o(t)})),t(e.linkDisableSelector).forEach((function(t){if(l(t,"ujs:disabled"))return o(t)}))})),n(document,e.linkDisableSelector,"ajax:complete",o),n(document,e.linkDisableSelector,"ajax:stopped",o),n(document,e.buttonDisableSelector,"ajax:complete",o),n(document,e.buttonDisableSelector,"ajax:stopped",o),n(document,e.linkClickSelector,"click",f),n(document,e.linkClickSelector,"click",h),n(document,e.linkClickSelector,"click",c),n(document,e.linkClickSelector,"click",r),n(document,e.linkClickSelector,"click",u),n(document,e.linkClickSelector,"click",d),n(document,e.buttonClickSelector,"click",f),n(document,e.buttonClickSelector,"click",h),n(document,e.buttonClickSelector,"click",c),n(document,e.buttonClickSelector,"click",r),n(document,e.buttonClickSelector,"click",u),n(document,e.inputChangeSelector,"change",h),n(document,e.inputChangeSelector,"change",c),n(document,e.inputChangeSelector,"change",u),n(document,e.formSubmitSelector,"submit",h),n(document,e.formSubmitSelector,"submit",c),n(document,e.formSubmitSelector,"submit",u),n(document,e.formSubmitSelector,"submit",(function(t){return setTimeout((function(){return r(t)}),13)})),n(document,e.formSubmitSelector,"ajax:send",r),n(document,e.formSubmitSelector,"ajax:complete",o),n(document,e.formInputClickSelector,"click",f),n(document,e.formInputClickSelector,"click",h),n(document,e.formInputClickSelector,"click",c),n(document,e.formInputClickSelector,"click",s),document.addEventListener("DOMContentLoaded",g),document.addEventListener("DOMContentLoaded",p),window._rails_loaded=!0},window.Rails===e&&a(document,"rails:attachBindings")&&e.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd&&define(e)}.call(this),function(e){e.fn.extend({slimScroll:function(i){var n=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},i);return this.each((function(){function r(t){if(c){var i=0;(t=t||window.event).wheelDelta&&(i=-t.wheelDelta/120),t.detail&&(i=t.detail/3),e(t.target||t.srcTarget||t.srcElement).closest("."+n.wrapperClass).is(b.parent())&&o(i,!0),t.preventDefault&&!v&&t.preventDefault(),v||(t.returnValue=!1)}}function o(t,e,i){v=!1;var r=b.outerHeight()-x.outerHeight();e&&(e=parseInt(x.css("top"))+t*parseInt(n.wheelStep)/100*x.outerHeight(),e=Math.min(Math.max(e,0),r),e=0<t?Math.ceil(e):Math.floor(e),x.css({top:e+"px"})),e=(g=parseInt(x.css("top"))/(b.outerHeight()-x.outerHeight()))*(b[0].scrollHeight-b.outerHeight()),i&&(t=(e=t)/b[0].scrollHeight*b.outerHeight(),t=Math.min(Math.max(t,0),r),x.css({top:t+"px"})),b.scrollTop(e),b.trigger("slimscrolling",~~e),s(),l()}function a(){f=Math.max(b.outerHeight()/b[0].scrollHeight*b.outerHeight(),30),x.css({height:f+"px"});var t=f==b.outerHeight()?"none":"block";x.css({display:t})}function s(){a(),clearTimeout(u),g==~~g?(v=n.allowPageScroll,m!=g&&b.trigger("slimscroll",~~g?"bottom":"top")):v=!1,m=g,f>=b.outerHeight()?v=!0:(x.stop(!0,!0).fadeIn("fast"),n.railVisible&&w.stop(!0,!0).fadeIn("fast"))}function l(){n.alwaysVisible||(u=setTimeout((function(){n.disableFadeOut&&c||h||d||(x.fadeOut("slow"),w.fadeOut("slow"))}),1e3))}var c,h,d,u,p,f,g,m,v=!1,b=e(this);if(b.parent().hasClass(n.wrapperClass)){var y=b.scrollTop(),x=b.siblings("."+n.barClass),w=b.siblings("."+n.railClass);if(a(),e.isPlainObject(i)){if("height"in i&&"auto"==i.height){b.parent().css("height","auto"),b.css("height","auto");var _=b.parent().parent().height();b.parent().css("height",_),b.css("height",_)}else"height"in i&&(_=i.height,b.parent().css("height",_),b.css("height",_));if("scrollTo"in i)y=parseInt(n.scrollTo);else if("scrollBy"in i)y+=parseInt(n.scrollBy);else if("destroy"in i)return x.remove(),w.remove(),void b.unwrap();
4o(y,!1,!0)}}else if(!e.isPlainObject(i)||!("destroy"in i)){n.height="auto"==n.height?b.parent().height():n.height,y=e("<div></div>").addClass(n.wrapperClass).css({position:"relative",overflow:"hidden",width:n.width,height:n.height}),b.css({overflow:"hidden",width:n.width,height:n.height});w=e("<div></div>").addClass(n.railClass).css({width:n.size,height:"100%",position:"absolute",top:0,display:n.alwaysVisible&&n.railVisible?"block":"none","border-radius":n.railBorderRadius,background:n.railColor,opacity:n.railOpacity,zIndex:90}),x=e("<div></div>").addClass(n.barClass).css({background:n.color,width:n.size,position:"absolute",top:0,opacity:n.opacity,display:n.alwaysVisible?"block":"none","border-radius":n.borderRadius,BorderRadius:n.borderRadius,MozBorderRadius:n.borderRadius,WebkitBorderRadius:n.borderRadius,zIndex:99}),_="right"==n.position?{right:n.distance}:{left:n.distance};w.css(_),x.css(_),b.wrap(y),b.parent().append(x),b.parent().append(w),n.railDraggable&&x.bind("mousedown",(function(i){var n=e(document);return d=!0,t=parseFloat(x.css("top")),pageY=i.pageY,n.bind("mousemove.slimscroll",(function(e){currTop=t+e.pageY-pageY,x.css("top",currTop),o(0,x.position().top,!1)})),n.bind("mouseup.slimscroll",(function(){d=!1,l(),n.unbind(".slimscroll")})),!1})).bind("selectstart.slimscroll",(function(t){return t.stopPropagation(),t.preventDefault(),!1})),w.hover((function(){s()}),(function(){l()})),x.hover((function(){h=!0}),(function(){h=!1})),b.hover((function(){c=!0,s(),l()}),(function(){c=!1,l()})),b.bind("touchstart",(function(t){t.originalEvent.touches.length&&(p=t.originalEvent.touches[0].pageY)})),b.bind("touchmove",(function(t){v||t.originalEvent.preventDefault(),t.originalEvent.touches.length&&(o((p-t.originalEvent.touches[0].pageY)/n.touchScrollStep,!0),p=t.originalEvent.touches[0].pageY)})),a(),"bottom"===n.start?(x.css({top:b.outerHeight()-x.outerHeight()}),o(0,!0)):"top"!==n.start&&(o(e(n.start).position().top,null,!0),n.alwaysVisible||x.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",r,!1),this.addEventListener("mousewheel",r,!1)):document.attachEvent("onmousewheel",r)}})),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Popper={})}(this,(function(t){"use strict";function e(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function i(t){return t instanceof e(t).Element||t instanceof Element}function n(t){return t instanceof e(t).HTMLElement||t instanceof HTMLElement}function r(t){return"undefined"!=typeof ShadowRoot&&(t instanceof e(t).ShadowRoot||t instanceof ShadowRoot)}function o(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function a(){return!/^((?!chrome|android).)*safari/i.test(o())}function s(t,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var s=t.getBoundingClientRect(),l=1,c=1;r&&n(t)&&(l=t.offsetWidth>0&&q(s.width)/t.offsetWidth||1,c=t.offsetHeight>0&&q(s.height)/t.offsetHeight||1);var h=(i(t)?e(t):window).visualViewport,d=!a()&&o,u=(s.left+(d&&h?h.offsetLeft:0))/l,p=(s.top+(d&&h?h.offsetTop:0))/c,f=s.width/l,g=s.height/c;return{width:f,height:g,top:p,right:u+f,bottom:p+g,left:u,x:u,y:p}}function l(t){var i=e(t);return{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}function c(t){return t?(t.nodeName||"").toLowerCase():null}function h(t){return((i(t)?t.ownerDocument:t.document)||window.document).documentElement}function d(t){return s(h(t)).left+l(t).scrollLeft}function u(t){return e(t).getComputedStyle(t)}function p(t){var e=u(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function f(t,i,r){void 0===r&&(r=!1);var o,a,u=n(i),f=n(i)&&function(t){var e=t.getBoundingClientRect(),i=q(e.width)/t.offsetWidth||1,n=q(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(i),g=h(i),m=s(t,f,r),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(u||!u&&!r)&&(("body"!==c(i)||p(g))&&(v=(o=i)!==e(o)&&n(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}
vendor: 4,433 bytes, lines 4-5
4:l(o)),n(i)?((b=s(i,!0)).x+=i.clientLeft,b.y+=i.clientTop):g&&(b.x=d(g))),{x:m.left+v.scrollLeft-b.x,y:m.top+v.scrollTop-b.y,width:m.width,height:m.height}}function g(t){var e=s(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function m(t){return"html"===c(t)?t:t.assignedSlot||t.parentNode||(r(t)?t.host:null)||h(t)}function v(t){return["html","body","#document"].indexOf(c(t))>=0?t.ownerDocument.body:n(t)&&p(t)?t:v(m(t))}function b(t,i){var n;void 0===i&&(i=[]);var r=v(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),a=e(r),s=o?[a].concat(a.visualViewport||[],p(r)?r:[]):r,l=i.concat(s);return o?l:l.concat(b(m(s)))}function y(t){return["table","td","th"].indexOf(c(t))>=0}function x(t){return n(t)&&"fixed"!==u(t).position?t.offsetParent:null}function w(t){for(var i=e(t),a=x(t);a&&y(a)&&"static"===u(a).position;)a=x(a);return a&&("html"===c(a)||"body"===c(a)&&"static"===u(a).position)?i:a||function(t){var e=/firefox/i.test(o());if(/Trident/i.test(o())&&n(t)&&"fixed"===u(t).position)return null;var i=m(t);for(r(i)&&(i=i.host);n(i)&&["html","body"].indexOf(c(i))<0;){var a=u(i);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||e&&"filter"===a.willChange||e&&a.filter&&"none"!==a.filter)return i;i=i.parentNode}return null}(t)||i}function _(t){function e(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=i.get(t);r&&e(r)}})),r.push(t)}var i=new Map,n=new Set,r=[];return t.forEach((function(t){i.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||e(t)})),r}function C(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&r(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function S(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function k(t,n,r){return n===tt?S(function(t,i){var n=e(t),r=h(t),o=n.visualViewport,s=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){s=o.width,l=o.height;var p=a();(p||!p&&"fixed"===i)&&(c=o.offsetLeft,u=o.offsetTop)}return{width:s,height:l,x:c+d(t),y:u}}(t,r)):i(n)?function(t,e){var i=s(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(n,r):S(function(t){var e,i=h(t),n=l(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=W(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=W(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-n.scrollLeft+d(t),c=-n.scrollTop;return"rtl"===u(r||i).direction&&(s+=W(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(h(t)))}function A(t,e,r,o){var a="clippingParents"===e?function(t){var e=b(m(t)),r=["absolute","fixed"].indexOf(u(t).position)>=0&&n(t)?w(t):t;return i(r)?e.filter((function(t){return i(t)&&C(t,r)&&"body"!==c(t)})):[]}(t):[].concat(e),s=[].concat(a,[r]),l=s[0],h=s.reduce((function(e,i){var n=k(t,i,o);return e.top=W(n.top,e.top),e.right=z(n.right,e.right),e.bottom=z(n.bottom,e.bottom),e.left=W(n.left,e.left),e}),k(t,l,o));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function T(t){return t.split("-")[0]}function L(t){return t.split("-")[1]}function D(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function E(t){var e,i=t.reference,n=t.element,r=t.placement,o=r?T(r):null,a=r?L(r):null,s=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case U:e={x:s,y:i.y-n.height};break;case G:e={x:s,y:i.y+i.height};break;case Y:e={x:i.x+i.width,y:l};break;case X:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?D(o):null;if(null!=c){var h="y"===c?"height":"width";switch(a){case Z:e[c]=e[c]-(i[h]/2-n[h]/2);break;case Q:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function P(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function I(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function M(t,e){void 0===e&&(e={})
5;var n=e,r=n.placement,o=void 0===r?t.placement:r,a=n.strategy,l=void 0===a?t.strategy:a,c=n.boundary,d=void 0===c?"clippingParents":c,u=n.rootBoundary,p=void 0===u?tt:u,f=n.elementContext,g=void 0===f?et:f,m=n.altBoundary,v=void 0!==m&&m,b=n.padding,y=void 0===b?0:b,x=P("number"!=typeof y?y:I(y,K)
vendor: 4,320 bytes, line 5
5),w=g===et?"reference":et,_=t.rects.popper,C=t.elements[v?w:g],k=A(i(C)?C:C.contextElement||h(t.elements.popper),d,p,l),T=s(t.elements.reference),L=E({reference:T,element:_,strategy:"absolute",placement:o}),D=S(Object.assign({},_,L)),M=g===et?D:T,O={top:k.top-M.top+x.top,bottom:M.bottom-k.bottom+x.bottom,left:k.left-M.left+x.left,right:M.right-k.right+x.right},F=t.modifiersData.offset;if(g===et&&F){var R=F[o];Object.keys(O).forEach((function(t){var e=[Y,G].indexOf(t)>=0?1:-1,i=[U,G].indexOf(t)>=0?"y":"x";O[t]+=R[i]*e}))}return O}function O(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function F(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,o=e.defaultOptions,a=void 0===o?ot:o;return function(t,e,n){function o(){h.forEach((function(t){return t()})),h=[]}void 0===n&&(n=a);var s,l,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,a),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},h=[],d=!1,u={state:c,setOptions:function(n){var s="function"==typeof n?n(c.options):n;o(),c.options=Object.assign({},a,c.options,s),c.scrollParents={reference:i(t)?b(t):t.contextElement?b(t.contextElement):[],popper:b(e)};var l,d,p=function(t){var e=_(t);return rt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((l=[].concat(r,c.options.modifiers),d=l.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(d).map((function(t){return d[t]}))));return c.orderedModifiers=p.filter((function(t){return t.enabled})),c.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,r=t.effect;if("function"==typeof r){var o=r({state:c,name:e,instance:u,options:n}),a=function(){};h.push(o||a)}})),u.update()},forceUpdate:function(){if(!d){var t=c.elements,e=t.reference,i=t.popper;if(O(e,i)){c.rects={reference:f(e,w(i),"fixed"===c.options.strategy),popper:g(i)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(t){return c.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<c.orderedModifiers.length;n++)if(!0!==c.reset){var r=c.orderedModifiers[n],o=r.fn,a=r.options,s=void 0===a?{}:a,l=r.name;"function"==typeof o&&(c=o({state:c,options:s,name:l,instance:u})||c)}else c.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(c)}))},function(){return l||(l=new Promise((function(t){Promise.resolve().then((function(){l=void 0,t(s())}))}))),l}),destroy:function(){o(),d=!0}};return O(t,e)?(u.setOptions(n).then((function(t){!d&&n.onFirstUpdate&&n.onFirstUpdate(t)})),u):u}}function R(t){var i,n=t.popper,r=t.popperRect,o=t.placement,a=t.variation,s=t.offsets,l=t.position,c=t.gpuAcceleration,d=t.adaptive,p=t.roundOffsets,f=t.isFixed,g=s.x,m=void 0===g?0:g,v=s.y,b=void 0===v?0:v,y="function"==typeof p?p({x:m,y:b}):{x:m,y:b};m=y.x,b=y.y;var x=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),C=X,S=U,k=window;if(d){var A=w(n),T="clientHeight",L="clientWidth";A===e(n)&&"static"!==u(A=h(n)).position&&"absolute"===l&&(T="scrollHeight",L="scrollWidth"),(o===U||(o===X||o===Y)&&a===Q)&&(S=G,b-=(f&&A===k&&k.visualViewport?k.visualViewport.height:A[T])-r.height,b*=c?1:-1),o!==X&&(o!==U&&o!==G||a!==Q)||(C=Y,m-=(f&&A===k&&k.visualViewport?k.visualViewport.width:A[L])-r.width,m*=c?1:-1)}var D,E=Object.assign({position:l},d&&ct),P=!0===p?function(t,e){var i=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:q(i*r)/r||0,y:q(n*r)/r||0}}({x:m,y:b},e(n)):{x:m,y:b};return m=P.x,b=P.y,c?Object.assign({},E,((D={})[S]=_?"0":"",D[C]=x?"0":"",D.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",D)):Object.assign({},E,((i={})[S]=_?b+"px":"",i[C]=x?m+"px":"",i.transform="",i))}function B(t){return t.replace(/left|right|bottom|top/g,(function(t){return pt[t]}))}function N(t){return t.replace(/start|end/g,(function(t){return ft[t]}))}function j(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,o=i.rootBoundary,a=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?nt:l,h=L(n),d=h?s?it:it.filter((function(t){return L(t)===
vendor: 4,131 bytes, line 5
5h})):K,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var p=u.reduce((function(e,i){return e[i]=M(t,{placement:i,boundary:r,rootBoundary:o,padding:a})[T(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function $(t,e,i){return W(t,z(e,i))}function V(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function H(t){return[U,Y,G,X].some((function(e){return t[e]>=0}))}var W=Math.max,z=Math.min,q=Math.round,U="top",G="bottom",Y="right",X="left",J="auto",K=[U,G,Y,X],Z="start",Q="end",tt="viewport",et="popper",it=K.reduce((function(t,e){return t.concat([e+"-"+Z,e+"-"+Q])}),[]),nt=[].concat(K,[J]).reduce((function(t,e){return t.concat([e,e+"-"+Z,e+"-"+Q])}),[]),rt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],ot={placement:"bottom",modifiers:[],strategy:"absolute"},at={passive:!0},st={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var i=t.state,n=t.instance,r=t.options,o=r.scroll,a=void 0===o||o,s=r.resize,l=void 0===s||s,c=e(i.elements.popper),h=[].concat(i.scrollParents.reference,i.scrollParents.popper);return a&&h.forEach((function(t){t.addEventListener("scroll",n.update,at)})),l&&c.addEventListener("resize",n.update,at),function(){a&&h.forEach((function(t){t.removeEventListener("scroll",n.update,at)})),l&&c.removeEventListener("resize",n.update,at)}},data:{}},lt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=E({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},ct={top:"auto",right:"auto",bottom:"auto",left:"auto"},ht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,a=void 0===o||o,s=i.roundOffsets,l=void 0===s||s,c={placement:T(e.placement),variation:L(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,R(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,R(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},dt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];n(o)&&c(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(t){var e=r[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],o=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});n(r)&&c(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},ut={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=void 0===r?[0,0]:r,a=nt.reduce((function(t,i){return t[i]=function(t,e,i){var n=T(t),r=[X,U].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[X,Y].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(i,e.rects,o),t}),{}),s=a[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}}
vendor: 4,966 bytes, line 5
5,pt={left:"right",right:"left",bottom:"top",top:"bottom"},ft={start:"end",end:"start"},gt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,a=i.altAxis,s=void 0===a||a,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=T(m),b=l||(v!==m&&f?function(t){if(T(t)===J)return[];var e=B(t);return[N(t),e,N(e)]}(m):[B(m)]),y=[m].concat(b).reduce((function(t,i){return t.concat(T(i)===J?j(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),x=e.rects.reference,w=e.rects.popper,_=new Map,C=!0,S=y[0],k=0;k<y.length;k++){var A=y[k],D=T(A),E=L(A)===Z,P=[U,G].indexOf(D)>=0,I=P?"width":"height",O=M(e,{placement:A,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),F=P?E?Y:X:E?G:U;x[I]>w[I]&&(F=B(F));var R=B(F),$=[];if(o&&$.push(O[D]<=0),s&&$.push(O[F]<=0,O[R]<=0),$.every((function(t){return t}))){S=A,C=!1;break}_.set(A,$)}if(C)for(var V=function(t){var e=y.find((function(e){var i=_.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return S=e,"break"},H=f?3:1;H>0&&"break"!==V(H);H--);e.placement!==S&&(e.modifiersData[n]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},mt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,o=void 0===r||r,a=i.altAxis,s=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,p=void 0===u||u,f=i.tetherOffset,m=void 0===f?0:f,v=M(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),b=T(e.placement),y=L(e.placement),x=!y,_=D(b),C="x"===_?"y":"x",S=e.modifiersData.popperOffsets,k=e.rects.reference,A=e.rects.popper,E="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,P="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,O={x:0,y:0};if(S){if(o){var F,R="y"===_?U:X,B="y"===_?G:Y,N="y"===_?"height":"width",j=S[_],V=j+v[R],H=j-v[B],q=p?-A[N]/2:0,J=y===Z?k[N]:A[N],K=y===Z?-A[N]:-k[N],Q=e.elements.arrow,tt=p&&Q?g(Q):{width:0,height:0},et=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},it=et[R],nt=et[B],rt=$(0,k[N],tt[N]),ot=x?k[N]/2-q-rt-it-P.mainAxis:J-rt-it-P.mainAxis,at=x?-k[N]/2+q+rt+nt+P.mainAxis:K+rt+nt+P.mainAxis,st=e.elements.arrow&&w(e.elements.arrow),lt=st?"y"===_?st.clientTop||0:st.clientLeft||0:0,ct=null!=(F=null==I?void 0:I[_])?F:0,ht=j+at-ct,dt=$(p?z(V,j+ot-ct-lt):V,j,p?W(H,ht):H);S[_]=dt,O[_]=dt-j}if(s){var ut,pt="x"===_?U:X,ft="x"===_?G:Y,gt=S[C],mt="y"===C?"height":"width",vt=gt+v[pt],bt=gt-v[ft],yt=-1!==[U,X].indexOf(b),xt=null!=(ut=null==I?void 0:I[C])?ut:0,wt=yt?vt:gt-k[mt]-A[mt]-xt+P.altAxis,_t=yt?gt+k[mt]+A[mt]-xt-P.altAxis:bt,Ct=p&&yt?function(t,e,i){var n=$(t,e,i);return n>i?i:n}(wt,gt,_t):$(p?wt:vt,gt,p?_t:bt);S[C]=Ct,O[C]=Ct-gt}e.modifiersData[n]=O}},requiresIfExists:["offset"]},vt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,r=t.options,o=i.elements.arrow,a=i.modifiersData.popperOffsets,s=T(i.placement),l=D(s),c=[X,Y].indexOf(s)>=0?"height":"width";if(o&&a){var h=function(t,e){return P("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:I(t,K))}(r.padding,i),d=g(o),u="y"===l?U:X,p="y"===l?G:Y,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],m=a[l]-i.rects.reference[l],v=w(o),b=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=f/2-m/2,x=h[u],_=b-d[c]-h[p],C=b/2-d[c]/2+y,S=$(x,C,_),k=l;i.modifiersData[n]=((e={})[k]=S,e.centerOffset=S-C,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&C(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=M(e,{elementContext:"reference"}),s=M(e,{altBoundary:!0}),l=V(a,n),c=V(s,r,o),h=H(l),d=H(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},yt=F({defaultModifiers:[st,lt,ht,dt]}),xt=[st,lt,ht,dt,ut,gt,mt,vt,bt],wt=F({defaultModifiers:xt});t.applyStyles=dt,t.arrow=vt,t.computeStyles=ht,t.createPopper=wt,t.createPopperLite=yt,t.defaultModifiers=xt,t.detectOverflow=M,t.eventListeners=st,t.flip=gt,t.hide=bt,t.offset=ut,t.popperGenerator=F,t.popperOffsets=lt,t.preventOverflow=mt,Object.defineProperty(t,"__esMo
5dule",{value:!0})})),window.bootstrap={Popper:window.Popper,_originalGlobalThis:window.globalThis},window.globalThis=window.bootstrap,function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Data=e()}(this,(function(){"use strict";const t=new Map;return{set(e,i,n){t.has(e)||t.set(e,new Map);const r=t.get(e);r.has(i)||0===r.size?r.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}}})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).EventHandler=e()}(this,(function(){"use strict";function t(t,e){return e&&`${e}::${g++}`||t.uidEvent||g++}function e(e){const i=t(e);return e.uidEvent=i,f[i]=f[i]||{},f[i]}function i(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&y.off(t,n.type,e),e.apply(t,[n])}}function n(t,e,i){return function n(r){const o=t.querySelectorAll(e);for(let{target:a}=r;a&&a!==this;a=a.parentNode)for(let s=o.length;s--;)if(o[s]===a)return r.delegateTarget=a,n.oneOff&&y.off(t,r.type,e,i),i.apply(a,[r]);return null}}function r(t,e,i=null){const n=Object.keys(t);for(let r=0,o=n.length;r<o;r++){const o=t[n[r]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function o(t,e,i){const n="string"==typeof e,r=n?i:e;let o=c(t);return b.has(o)||(o=t),[n,r,o]}function a(a,s,l,c,h){if("string"!=typeof s||!a)return;if(l||(l=c,c=null),v.test(s)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};c?c=t(c):l=t(l)}const[u,p,f]=o(s,l,c),g=e(a),m=g[f]||(g[f]={}),b=r(m,p,u?l:null);if(b)return void(b.oneOff=b.oneOff&&h);const y=t(p,s.replace(d,"")),x=u?n(a,l,c):i(a,l);x.delegationSelector=u?l:null,x.originalHandler=p,x.oneOff=h,x.uidEvent=y,m[y]=x,a.addEventListener(f,x,u)}function s(t,e,i,n,o){const a=r(e[i],n,o);a&&(t.removeEventListener(i,a,Boolean(o)),delete e[i][a.uidEvent])}function l(t,e,i,n){const r=e[i]||{};Object.keys(r).forEach((o=>{if(o.includes(n)){const n=r[o];s(t,e,i,n.originalHandler,n.delegationSelector)}}))}function c(t){return t=t.replace(u,""),m[t]||t}const h=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},d=/[^.]*(?=\..*)\.|.*/,u=/\..*/,p=/::\d+$/,f={};let g=1;
5const m={mouseenter:"mouseover",mouseleave:"mouseout"},v=/^(mouseenter|mouseleave)/i,b=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]),y={on(t,e,i,n){a(t,e,i,n,!1)},one(t,e,i,n){a(t,e,i,n,!0)},off(t,i,n,r){if("string"!=typeof i||!t)return;const[a,c,h]=o(i,n,r),d=h!==i,u=e(t),f=i.startsWith(".");if(void 0!==c){if(!u||!u[h])return;return void s(t,u,h,c,a?n:null)}f&&Object.keys(u).forEach((e=>{l(t,u,e,i.slice(1))}));const g=u[h]||{};Object.keys(g).forEach((e=>{const n=e.replace(p,"");if(!d||i.includes(n)){const i=g[e];s(t,u,h,i.originalHandler,i.delegationSelector)}}))},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=h(),r=c(e),o=e!==r,a=b.has(r);let s,l=!0,d=!0,u=!1,p=null;return o&&n&&(s=n.Event(e,i),n(t).trigger(s),l=!s.isPropagationStopped(),d=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented()),a?(p=document.createEvent("HTMLEvents"),p.initEvent(r,l,!0)):p=new CustomEvent(e,{bubbles:l,cancelable:!0}
5),void 0!==i&&Object.keys(i).forEach((t=>{Object.defineProperty(p,t,{get:()=>i[t]})})),u&&p.preventDefault(),d&&t.dispatchEvent(p),p.defaultPrevented&&void 0!==s&&s.preventDefault(),p}};return y})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Base=e(t.Data,t.EventHandler)}(this,(function(t,e){"use strict";const i=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},n=i(t),r=i(e),o=1e3,a="transitionend",s=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(i);return n||r?(e=e.split(",")[0],i=i.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(i))*o):0},l=t=>{t.dispatchEvent(new Event(a))},c=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),h=t=>c(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,d=t=>{"function"==typeof t&&t()},u=(t,e,i=!0)=>{if(!i)return void d(t);const n=5,r=s(e)+n;let o=!1;const c=({target:i})=>{i===e&&(o=!0,e.removeEventListener(a,c),d(t))};e.addEventListener(a,c),setTimeout((()=>{o||l(e)}),r)},p="5.1.3";class f{constructor(t){(t=h(t))&&(this._element=t,n.default.set(this._element,this.constructor.DATA_KEY,this))}dispose(){n.default.remove(this._element,this.constructor.DATA_KEY),r.default.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,i=!0){u(t,e,i)}static getInstance(t){return n.default.get(h(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return p}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}return f})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/event-handler.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/event-handler","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Alert=e(t.EventHandler,t.Base)}(this,(function(t,e){"use strict";const i=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},n=i(t),r=i(e),o=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},a=t=>{const e=o(t);return e?document.querySelector(e):null},s=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),l=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},c=[],h=t=>{"loading"===document.readyState?(c.length||document.addEventListener("DOMContentLoaded",(()=>{c.forEach((t=>t()))})),c.push(t)):t()},d=t=>{h((()=>{const e=l();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},u=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;n.default.on(document,i,`[data-bs-dismiss="${r}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),s(this))return;const n=a(this)||this.closest(`.${r}`);t.getOrCreateInstance(n)[e]()}))},p="alert",f=`.${"bs.alert"}`,g=`close${f}`,m=`closed${f}`,v="fade",b="show";class y extends r.default{static get NAME(){return p}close(){if(n.default.trigger(this._element,g).defaultPrevented)return;this._element.classList.remove(b);const t=this._element.classList.contains(v);this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),n.default.trigger(this._element,m),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=y.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
5amed "${t}"`);e[t](this)}}))}}return u(y,"close"),d(y),y})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/event-handler.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/event-handler","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Button=e(t.EventHandler,t.Base)}(this,(function(t,e){"use strict";const i=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},n=i(t),r=i(e),o=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},a=[],s=t=>{"loading"===document.readyState?(a.length||document.addEventListener("DOMContentLoaded",(()=>{a.forEach((t=>t()))})),a.push(t)):t()},l=t=>{s((()=>{const e=o();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},c="button",h="active",d='[data-bs-toggle="button"]',u=`click${`.${"bs.button"}`}${".data-api"}`;class p extends r.default{static get NAME(){return c}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(h))}static jQueryInterface(t){return this.each((function(){const e=p.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}return n.default.on(document,u,d,(t=>{t.preventDefault();const e=t.target.closest(d);p.getOrCreateInstance(e).toggle()})),l(p),p})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Manipulator=e()}(this,(function(){"use strict";function t(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function e(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}return{setDataAttribute(t,i,n){t.setAttribute(`data-bs-${e(i)}`,n)},removeDataAttribute(t,i){t.removeAttribute(`data-bs-${e(i)}`)},getDataAttributes(e){if(!e)return{};const i={};return Object.keys(e.dataset).filter((t=>t.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),i[r]=t(e.dataset[n])})),i},getDataAttribute:(i,n)=>t(i.getAttribute(`data-bs-${e(n)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})}})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).SelectorEngine=e()}(this,(function(){"use strict";const t=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),e=e=>!(!t(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),i=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),n=3;return{find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let r=t.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&r.nodeType!==n;)r.matches(e)&&i.push(r),r=r.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const n=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(", ");return this.find(n,t).filter((t=>!i(t)&&e(t)))}}})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Carousel=e(t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}
5(this,(function(t,e,i,n){"use strict";const r=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},o=r(t),a=r(e),s=r(i),l=r(n),c="transitionend",h=t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),d=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},u=t=>{const e=d(t);return e?document.querySelector(e):null},p=t=>{t.dispatchEvent(new Event(c))},f=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),g=(t,e,i)=>{Object.keys(i).forEach((n=>{const r=i[n],o=e[n],a=o&&f(o)?"element":h(o);if(!new RegExp(r).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}))},m=t=>!(!f(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),v=t=>{t.offsetHeight},b=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},y=[],x=t=>{"loading"===document.readyState?(y.length||document.addEventListener("DOMContentLoaded",(()=>{y.forEach((t=>t()))})),y.push(t)):t()},w=()=>"rtl"===document.documentElement.dir,_=t=>{x((()=>{const e=b();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},C=(t,e,i,n)=>{let r=t.indexOf(e);if(-1===r)return t[!i&&n?t.length-1:0];const o=t.length;return r+=i?1:-1,n&&(r=(r+o)%o),t[Math.max(0,Math.min(r,o-1))]},S="carousel",k=`.${"bs.carousel"}`,A=".data-api",T="ArrowLeft",L="ArrowRight",D=500,E=40,P={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},I={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},M="next",O="prev",F="left",R="right",B={[T]:R,[L]:F},N=`slide${k}`,j=`slid${k}`,$=`keydown${k}`,V=`mouseenter${k}`,H=`mouseleave${k}`,W=`touchstart${k}`,z=`touchmove${k}`,q=`touchend${k}`,U=`pointerdown${k}`,G=`pointerup${k}`,Y=`dragstart${k}`,X=`load${k}${A}`,J=`click${k}${A}`,K="carousel",Z="active",Q="slide",tt="carousel-item-end",et="carousel-item-start",it="carousel-item-next",nt="carousel-item-prev",rt="pointer-event",ot=".active",at=".active.carousel-item",st=".carousel-item",lt=".carousel-item img",ct=".carousel-item-next, .carousel-item-prev",ht=".carousel-indicators",dt="[data-bs-target]",ut="[data-bs-slide], [data-bs-slide-to]",pt='[data-bs-ride="carousel"]',ft="touch",gt="pen";class mt extends l.default{constructor(t,e){super(t),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._indicatorsElement=s.default.findOne(ht,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return P}static get NAME(){return S}next(){this._slide(M)}nextWhenVisible(){!document.hidden&&m(this._element)&&this.next()}prev(){this._slide(O)}pause(t){t||(this._isPaused=!0),s.default.findOne(ct,this._element)&&(p(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=s.default.findOne(at,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void o.default.one(this._element,j,(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const i=t>e?M:O;this._slide(i,this._items[t])}_getConfig(t){return t={...P,...a.default.getDataAttributes(this._element),..."object"==typeof t?t:{}},g(S,t,I),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=E)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?R:F)}_addEventListeners(){this._config.keyboard&&o.default.on(this._element,$,(t=>
5this._keydown(t))),"hover"===this._config.pause&&(o.default.on(this._element,V,(t=>this.pause(t))),o.default.on(this._element,H,(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&(t.pointerType===gt||t.pointerType===ft),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},i=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},n=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),D+this._config.interval))};s.default.find(lt,this._element).forEach((t=>{o.default.on(t,Y,(t=>t.preventDefault()))})),this._pointerEvent?(o.default.on(this._element,U,(t=>e(t))),o.default.on(this._element,G,(t=>n(t))),this._element.classList.add(rt)):(o.default.on(this._element,W,(t=>e(t))),o.default.on(this._element,z,(t=>i(t))),o.default.on(this._element,q,(t=>n(t))))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=B[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?s.default.find(st,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const i=t===M;return C(this._items,e,i,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(s.default.findOne(at,this._element));return o.default.trigger(this._element,N,{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=s.default.findOne(ot,this._indicatorsElement);e.classList.remove(Z),e.removeAttribute("aria-current");const i=s.default.find(dt,this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add(Z),i[e].setAttribute("aria-current","true");break}}}
6_updateInterval(){const t=this._activeElement||s.default.findOne(at,this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-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}_slide(t,e){const i=this._directionToOrder(t),n=s.default.findOne(at,this._element),r=this._getItemIndex(n),a=e||this._getItemByOrder(i,n),l=this._getItemIndex(a),c=Boolean(this._interval),h=i===M,d=h?et:tt,u=h?it:nt,p=this._orderToDirection(i);if(a&&a.classList.contains(Z))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(a,p).defaultPrevented)return;if(!n||!a)return;this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(a),this._activeElement=a;const f=()=>{o.default.trigger(this._element,j,{relatedTarget:a,direction:p,from:r,to:l})};if(this._element.classList.contains(Q)){a.classList.add(u),v(a),n.classList.add(d),a.classList.add(d);const t=()=>{a.classList.remove(d,u),a.classList.add(Z),n.classList.remove(Z,u,d),this._isSliding=!1,setTimeout(f,0)};this._queueCallback(t,n,!0)}else n.classList.remove(Z),a.classList.add(Z),this._isSliding=!1,f();c&&this.cycle()}_directionToOrder(t){return[R,F].includes(t)?w()?t===F?O:M:t===F?M:O:t}_orderToDirection(t){return[M,O].includes(t)?w()?t===O?F:R:t===O?R:F:t}static carouselInterface(t,e){const i=mt.getOrCreateInstance(t,e);let{_config:n}=i;"object"==typeof e&&(n={...n,...e});const r="string"==typeof e?e:n.slide;if("number"==typeof e)i.to(e);else if("string"==typeof r){if(void 0===i[r])throw new TypeError(`No method named "${r}"`);i[r]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each((function(){mt.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=u(this);if(!e||!e.classList.contains(K))return;const i={...a.default.getDataAttributes(e),...a.default.getDataAttributes(this)},n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),mt.carouselInterface(e,i),n&&mt.getInstance(e).to(n),t.preventDefault()}}return o.default.on(document,J,ut,mt.dataApiClickHandler),o.default.on(window,X,(()=>{const t=s.default.find(pt);for(let e=0,i=t.length;e<i;e++)mt.carouselInterface(t[e],mt.getInstance(t[e]))})),_(mt),mt})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Collapse=e(t.Data,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}
6(this,(function(t,e,i,n,r){"use strict";const o=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},a=o(t),s=o(e),l=o(i),c=o(n),h=o(r),d=t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),u=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},p=t=>{const e=u(t);return e&&document.querySelector(e)?e:null},f=t=>{const e=u(t);return e?document.querySelector(e):null},g=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),m=t=>g(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,v=(t,e,i)=>{Object.keys(i).forEach((n=>{const r=i[n],o=e[n],a=o&&g(o)?"element":d(o);if(!new RegExp(r).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}))},b=t=>{t.offsetHeight},y=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},x=[],w=t=>{"loading"===document.readyState?(x.length||document.addEventListener("DOMContentLoaded",(()=>{x.forEach((t=>t()))})),x.push(t)):t()},_=t=>{w((()=>{const e=y();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},C="collapse",S="bs.collapse",k=`.${S}`,A={toggle:!0,parent:null},T={toggle:"boolean",parent:"(null|element)"},L=`show${k}`,D=`shown${k}`,E=`hide${k}`,P=`hidden${k}`,I=`click${k}${".data-api"}`,M="show",O="collapse",F="collapsing",R="collapsed",B=`:scope .${O} .${O}`,N="collapse-horizontal",j="width",$="height",V=".collapse.show, .collapse.collapsing",H='[data-bs-toggle="collapse"]';class W extends h.default{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=[];const i=c.default.find(H);for(let t=0,e=i.length;t<e;t++){const e=i[t],n=p(e),r=c.default.find(n).filter((t=>t===this._element));null!==n&&r.length&&(this._selector=n,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return A}static get NAME(){return C}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=c.default.find(B,this._config.parent);e=c.default.find(V,this._config.parent).filter((e=>!t.includes(e)))}const i=c.default.findOne(this._selector);if(e.length){const n=e.find((t=>i!==t));if(t=n?W.getInstance(n):null,t&&t._isTransitioning)return}if(s.default.trigger(this._element,L).defaultPrevented)return;e.forEach((e=>{i!==e&&W.getOrCreateInstance(e,{toggle:!1}).hide(),t||a.default.set(e,S,null)}));const n=this._getDimension();this._element.classList.remove(O),this._element.classList.add(F),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(F),this._element.classList.add(O,M),this._element.style[n]="",s.default.trigger(this._element,D)},o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(s.default.trigger(this._element,E).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,b(this._element),this._element.classList.add(F),this._element.classList.remove(O,M);const e=this._triggerArray.length;for(let t=0;t<e;t++){const e=this._triggerArray[t],i=f(e);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(F),this._element.classList.add(O),s.default.trigger(this._element,P)};this._element.style[t]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(M)}_getConfig(t){return(t={...A,...l.default.getDataAttributes(this._element),...t}).toggle=Boolean(t.toggle),t.parent=m(t.parent),v(C,t,T),t}_getDimension(){return this._element.classList.contains(N)?j:$}_initializeChildren(){if(!this._config.parent)return;const t=c.default.find(B,this._config.parent);c.default.find(H,this._config.parent).filter((e=>
6!t.includes(e))).forEach((t=>{const e=f(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}))}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach((t=>{e?t.classList.remove(R):t.classList.add(R),t.setAttribute("aria-expanded",e)}))}static jQueryInterface(t){return this.each((function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const i=W.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}return s.default.on(document,I,H,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=p(this);c.default.find(e).forEach((t=>{W.getOrCreateInstance(t,{toggle:!1}).toggle()}))})),_(W),W})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["@popperjs/core","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Dropdown=e(t.Popper,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,(function(t,e,i,n,r){"use strict";function o(t){if(t&&t.__esModule)return t;const e=Object.create(null);if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const a=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},s=o(t),l=a(e),c=a(i),h=a(n),d=a(r),u=t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),p=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},f=t=>{const e=p(t);return e?document.querySelector(e):null},g=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),m=t=>g(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,v=(t,e,i)=>
6{Object.keys(i).forEach((n=>{const r=i[n],o=e[n],a=o&&g(o)?"element":u(o);if(!new RegExp(r).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}))},b=t=>!(!g(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),y=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),x=()=>{},w=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},_=[],C=t=>{"loading"===document.readyState?(_.length||document.addEventListener("DOMContentLoaded",(()=>{_.forEach((t=>t()))})),_.push(t)):t()},S=()=>"rtl"===document.documentElement.dir,k=t=>{C((()=>{const e=w();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},A=(t,e,i,n)=>{let r=t.indexOf(e);if(-1===r)return t[!i&&n?t.length-1:0];const o=t.length;return r+=i?1:-1,n&&(r=(r+o)%o),t[Math.max(0,Math.min(r,o-1))]},T="dropdown",L=`.${"bs.dropdown"}`,D=".data-api",E="Escape",P="Space",I="Tab",M="ArrowUp",O="ArrowDown",F=2,R=new RegExp(`${M}|${O}|${E}`),B=`hide${L}`,N=`hidden${L}`,j=`show${L}`,$=`shown${L}`,V=`click${L}${D}`,H=`keydown${L}${D}`,W=`keyup${L}${D}`,z="show",q="dropup",U="dropend",G="dropstart",Y="navbar",X='[data-bs-toggle="dropdown"]',J=".dropdown-menu",K=".navbar-nav",Z=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Q=S()?"top-end":"top-start",tt=S()?"top-start":"top-end",et=S()?"bottom-end":"bottom-start",it=S()?"bottom-start":"bottom-end",nt=S()?"left-start":"right-start",rt=S()?"right-start":"left-start",ot={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},at={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class st extends d.default{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return ot}static get DefaultType(){return at}static get NAME(){return T}toggle(){return this._isShown()?this.hide():this.show()}show(){if(y(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(l.default.trigger(this._element,j,t).defaultPrevented)return;const e=st.getParentFromElement(this._element);this._inNavbar?c.default.setDataAttribute(this._menu,"popper","none"):this._createPopper(e),"ontouchstart"in document.documentElement&&!e.closest(K)&&[].concat(...document.body.children).forEach((t=>l.default.on(t,"mouseover",x))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(z),this._element.classList.add(z),l.default.trigger(this._element,$,t)}hide(){if(y(this._element)||!this._isShown(this._menu))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){l.default.trigger(this._element,B,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>l.default.off(t,"mouseover",x))),this._popper&&this._popper.destroy(),this._menu.classList.remove(z),this._element.classList.remove(z),this._element.setAttribute("aria-expanded","false"),c.default.removeDataAttribute(this._menu,"popper"),l.default.trigger(this._element,N,t))}_getConfig(t){if(t={...this.constructor.Default,...c.default.getDataAttributes(this._element),...t},v(T,t,this.constructor.DefaultType),"object"==typeof t.reference&&!g(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${T.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===s)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:g(this._config.reference)?e=m(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=s.createPopper(e,this._menu,i),n&&c.default.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(z)}_getMenuElement(){return h.default.next(this._element,J)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains(U))return nt;if(t.classList.contains(G))return rt;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(q)?e?tt:Q:e?it:et}_detectNavbar(){return null!==this._element.closest(`.${Y}`)}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boun
6dary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=h.default.find(Z,this._menu).filter(b);i.length&&A(i,e,t===O,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=st.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t&&(t.button===F||"keyup"===t.type&&t.key!==I))return;const e=h.default.find(X);for(let i=0,n=e.length;i<n;i++){const n=st.getInstance(e[i]);if(!n||!1===n._config.autoClose)continue;if(!n._isShown())continue;const r={relatedTarget:n._element};if(t){const e=t.composedPath(),i=e.includes(n._menu);if(e.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(t.target)&&("keyup"===t.type&&t.key===I||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;"click"===t.type&&(r.clickEvent=t)}n._completeHide(r)}}static getParentFromElement(t){return f(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===P||t.key!==E&&(t.key!==O&&t.key!==M||t.target.closest(J)):!R.test(t.key))return;const e=this.classList.contains(z);if(!e&&t.key===E)return;if(t.preventDefault(),t.stopPropagation(),y(this))return;const i=this.matches(X)?this:h.default.prev(this,X)[0],n=st.getOrCreateInstance(i);if(t.key!==E)return t.key===M||t.key===O?(e||n.show(),void n._selectMenuItem(t)):void(e&&t.key!==P||st.clearMenus());n.hide()}}return l.default.on(document,H,X,st.dataApiKeydownHandler),l.default.on(document,H,J,st.dataApiKeydownHandler),l.default.on(document,V,st.clearMenus),l.default.on(document,W,st.clearMenus),l.default.on(document,V,X,(function(t){t.preventDefault(),st.getOrCreateInstance(this).toggle()})),k(st),st})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Modal=e(t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,(function(t,e,i,n){"use strict";const r=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},o=r(t),a=r(e),s=r(i),l=r(n),c=1e3,h="transitionend",d=t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),u=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},p=t=>{const e=u(t);return e?document.querySelector(e):null},f=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(i);return n||r?(e=e.split(",")[0],i=i.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(i))*c):0},g=t=>{t.dispatchEvent(new Event(h))},m=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),v=t=>m(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,b=(t,e,i)=>
6{Object.keys(i).forEach((n=>{const r=i[n],o=e[n],a=o&&m(o)?"element":d(o);if(!new RegExp(r).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}))},y=t=>!(!m(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),x=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),w=t=>{t.offsetHeight},_=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},C=[],S=t=>{"loading"===document.readyState?(C.length||document.addEventListener("DOMContentLoaded",(()=>{C.forEach((t=>t()))})),C.push(t)):t()},k=()=>"rtl"===document.documentElement.dir,A=t=>{S((()=>{const e=_();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},T=t=>{"function"==typeof t&&t()},L=(t,e,i=!0)=>{if(!i)return void T(t);const n=5,r=f(e)+n;let o=!1;const a=({target:i})=>{i===e&&(o=!0,e.removeEventListener(h,a),T(t))};e.addEventListener(h,a),setTimeout((()=>{o||g(e)}),r)},D=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",E=".sticky-top";class P{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(e=>e+t)),this._setElementAttributes(D,"paddingRight",(e=>e+t)),this._setElementAttributes(E,"marginRight",(e=>e-t))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth(),r=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t)[e];t.style[e]=`${i(Number.parseFloat(r))}px`};this._applyManipulationCallback(t,r)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(D,"paddingRight"),this._resetElementAttributes(E,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&a.default.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=t=>{const i=a.default.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(a.default.removeDataAttribute(t,e),t.style[e]=i)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){m(t)?e(t):s.default.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const I={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},M={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},O="backdrop",F="fade",R="show",B=`mousedown.bs.${O}`;class N{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&w(this._getElement()),this._getElement().classList.add(R),this._emulateAnimation((()=>{T(t)}))):T(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(R),this._emulateAnimation((()=>{this.dispose(),T(t)}))):T(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(F),this._element=t}return this._element}_getConfig(t){return(t={...I,..."object"==typeof t?t:{}}).rootElement=v(t.rootElement),b(O,t,M),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),o.default.on(this._getElement(),B,(()=>{T(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(o.default.off(this._element,B),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){L(t,this._getElement(),this._config.isAnimated)}}const j={trapElement:null,autofocus:!0},$={trapElement:"element",autofocus:"boolean"},V="focustrap",H=`.${"bs.focustrap"}`,W=`focusin${H}`,z=`keydown.tab${H}`,q="Tab",U="forward",G="backward";class Y{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),o.default.off(document,H),o.default.on(document,W,(t=>this._handleFocusin(t))),o.default.on(document,z,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,o.default.off(document,H))}_handleFocusin(t){const{target:e}=t,{trapElement:i}=this._config;if(e===document||e===i||i.contains(e))return;
6const n=s.default.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===G?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===q&&(this._lastTabNavDirection=t.shiftKey?G:U)}_getConfig(t){return t={...j,..."object"==typeof t?t:{}},b(V,t,$),t}}const X=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;o.default.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),x(this))return;const r=p(this)||this.closest(`.${n}`);t.getOrCreateInstance(r)[e]()}))},J="modal",K=`.${"bs.modal"}`,Z="Escape",Q={backdrop:!0,keyboard:!0,focus:!0},tt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},et=`hide${K}`,it=`hidePrevented${K}`,nt=`hidden${K}`,rt=`show${K}`,ot=`shown${K}`,at=`resize${K}`,st=`click.dismiss${K}`,lt=`keydown.dismiss${K}`,ct=`mouseup.dismiss${K}`,ht=`mousedown.dismiss${K}`,dt=`click${K}${".data-api"}`,ut="modal-open",pt="fade",ft="show",gt="modal-static",mt=".modal.show",vt=".modal-dialog",bt=".modal-body",yt='[data-bs-toggle="modal"]';class xt extends l.default{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=s.default.findOne(vt,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new P}static get Default(){return Q}static get NAME(){return J}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;o.default.trigger(this._element,rt,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(ut),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),o.default.on(this._dialog,ht,(()=>{o.default.one(this._element,ct,(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;if(o.default.trigger(this._element,et).defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(ft),o.default.off(this._element,st),o.default.off(this._dialog,ht),this._queueCallback((()=>this._hideModal()),this._element,t)}dispose(){[window,this._dialog].forEach((t=>o.default.off(t,K))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new N({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Y({trapElement:this._element})}_getConfig(t){return t={...Q,...a.default.getDataAttributes(this._element),..."object"==typeof t?t:{}},b(J,t,tt),t}_showElement(t){const e=this._isAnimated(),i=s.default.findOne(bt,this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),e&&w(this._element),this._element.classList.add(ft);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,o.default.trigger(this._element,ot,{relatedTarget:t})};this._queueCallback(n,this._dialog,e)}_setEscapeEvent(){this._isShown?o.default.on(this._element,lt,(t=>{this._config.keyboard&&t.key===Z?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==Z||this._triggerBackdropTransition()})):o.default.off(this._element,lt)}_setResizeEvent(){this._isShown?o.default.on(window,at,(()=>this._adjustDialog())):o.default.off(window,at)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(ut),this._resetAdjustments(),this._scrollBar.reset(),o.default.trigger(this._element,nt)}))}_showBackdrop(t){o.default.on(this._element,st,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains(pt)}_triggerBackdropTransition(){if(o.default.trigger(this._element,it).defaultPrevented)return;const{classList:t,scrollHeight:e,style:i}=this._element,n=e>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||t.contains(gt)||(n||(i.overflowY="hidden"),t.add(gt),this._queueCallback((()=>{t.remove(gt),n||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;
6(!i&&t&&!k()||i&&!t&&k())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!k()||!i&&t&&k())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=xt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}return o.default.on(document,dt,yt,(function(t){const e=p(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),o.default.one(e,rt,(t=>{t.defaultPrevented||o.default.one(e,nt,(()=>{y(this)&&this.focus()}))}));const i=s.default.findOne(mt);i&&xt.getInstance(i).hide();xt.getOrCreateInstance(e).toggle(this)})),X(xt),A(xt),xt})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/selector-engine.js"),require("./dom/manipulator.js"),require("./dom/event-handler.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/selector-engine","./dom/manipulator","./dom/event-handler","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Offcanvas=e(t.SelectorEngine,t.Manipulator,t.EventHandler,t.Base)}(this,(function(t,e,i,n){"use strict";const r=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},o=r(t),a=r(e),s=r(i),l=r(n),c=1e3,h="transitionend",d=t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),u=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},p=t=>{const e=u(t);return e?document.querySelector(e):null},f=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(i);return n||r?(e=e.split(",")[0],i=i.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(i))*c):0},g=t=>{t.dispatchEvent(new Event(h))},m=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),v=t=>m(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,b=(t,e,i)=>
6{Object.keys(i).forEach((n=>{const r=i[n],o=e[n],a=o&&m(o)?"element":d(o);if(!new RegExp(r).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}))},y=t=>!(!m(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),x=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),w=t=>{t.offsetHeight},_=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},C=[],S=t=>{"loading"===document.readyState?(C.length||document.addEventListener("DOMContentLoaded",(()=>{C.forEach((t=>t()))})),C.push(t)):t()},k=t=>{S((()=>{const e=_();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},A=t=>{"function"==typeof t&&t()},T=(t,e,i=!0)=>{if(!i)return void A(t);const n=5,r=f(e)+n;let o=!1;const a=({target:i})=>{i===e&&(o=!0,e.removeEventListener(h,a),A(t))};e.addEventListener(h,a),setTimeout((()=>{o||g(e)}),r)},L=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",D=".sticky-top";class E{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(e=>e+t)),this._setElementAttributes(L,"paddingRight",(e=>e+t)),this._setElementAttributes(D,"marginRight",(e=>e-t))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth(),r=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t)[e];t.style[e]=`${i(Number.parseFloat(r))}px`};this._applyManipulationCallback(t,r)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(L,"paddingRight"),this._resetElementAttributes(D,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&a.default.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=t=>{const i=a.default.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(a.default.removeDataAttribute(t,e),t.style[e]=i)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){
7m(t)?e(t):o.default.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const P={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},I={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},M="backdrop",O="fade",F="show",R=`mousedown.bs.${M}`;class B{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&w(this._getElement()),this._getElement().classList.add(F),this._emulateAnimation((()=>{A(t)}))):A(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(F),this._emulateAnimation((()=>{this.dispose(),A(t)}))):A(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(O),this._element=t}return this._element}_getConfig(t){return(t={...P,..."object"==typeof t?t:{}}).rootElement=v(t.rootElement),b(M,t,I),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),s.default.on(this._getElement(),R,(()=>{A(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(s.default.off(this._element,R),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){T(t,this._getElement(),this._config.isAnimated)}}const N={trapElement:null,autofocus:!0},j={trapElement:"element",autofocus:"boolean"},$="focustrap",V=`.${"bs.focustrap"}`,H=`focusin${V}`,W=`keydown.tab${V}`,z="Tab",q="forward",U="backward";class G{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),s.default.off(document,V),s.default.on(document,H,(t=>this._handleFocusin(t))),s.default.on(document,W,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,s.default.off(document,V))}_handleFocusin(t){const{target:e}=t,{trapElement:i}=this._config;if(e===document||e===i||i.contains(e))return;
7const n=o.default.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===U?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){t.key===z&&(this._lastTabNavDirection=t.shiftKey?U:q)}_getConfig(t){return t={...N,..."object"==typeof t?t:{}},b($,t,j),t}}const Y=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;s.default.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),x(this))return;const r=p(this)||this.closest(`.${n}`);t.getOrCreateInstance(r)[e]()}))},X="offcanvas",J=`.${"bs.offcanvas"}`,K=".data-api",Z=`load${J}${K}`,Q="Escape",tt={backdrop:!0,keyboard:!0,scroll:!1},et={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},it="show",nt="offcanvas-backdrop",rt=".offcanvas.show",ot=`show${J}`,at=`shown${J}`,st=`hide${J}`,lt=`hidden${J}`,ct=`click${J}${K}`,ht=`keydown.dismiss${J}`,dt='[data-bs-toggle="offcanvas"]';class ut extends l.default{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return X}static get Default(){return tt}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(s.default.trigger(this._element,ot,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new E).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(it);const e=()=>{this._config.scroll||this._focustrap.activate(),s.default.trigger(this._element,at,{relatedTarget:t})};this._queueCallback(e,this._element,!0)}hide(){if(!this._isShown)return;if(s.default.trigger(this._element,st).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(it),this._backdrop.hide();const t=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new E).reset(),s.default.trigger(this._element,lt)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t={...tt,...a.default.getDataAttributes(this._element),..."object"==typeof t?t:{}},b(X,t,et),t}_initializeBackDrop(){return new B({className:nt,isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new G({trapElement:this._element})}_addEventListeners(){s.default.on(this._element,ht,(t=>{this._config.keyboard&&t.key===Q&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=ut.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return s.default.on(document,ct,dt,(function(t){const e=p(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),x(this))return;s.default.one(e,lt,(()=>{y(this)&&this.focus()}));const i=o.default.findOne(rt);i&&i!==e&&ut.getInstance(i).hide();ut.getOrCreateInstance(e).toggle(this)})),s.default.on(window,Z,(()=>o.default.find(rt).forEach((t=>ut.getOrCreateInstance(t).show())))),Y(ut),k(ut),ut})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core"),require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["@popperjs/core","./dom/data","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Tooltip=e(t.Popper,t.Data,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,(function(t,e,i,n,r,o){"use strict";function a(t){if(t&&t.__esModule)return t;const e=Object.create(null);if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}function s(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(let t=0,i=r.length;t<i;t++){const i=r[t],n=i.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){i.remove();continue}const o=[].concat(...i.attributes),a=[].concat(e["*"]||[],e[n]||[]);o.forEach((t=>{P(t,a)||i.removeAttribute(t.nodeName)}))}return n.body.innerHTML}const l=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},c=a(t),h=l(e),d=l(i),u=l(n),p=l(r),f=l(o),g=1e6,m=t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),v=t=>{do{t+=Math.floor(Math.random()*g)}while(document.getElementById(t));return t},b=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),y=t=>b(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,x=(t,e,i)=>
7{Object.keys(i).forEach((n=>{const r=i[n],o=e[n],a=o&&b(o)?"element":m(o);if(!new RegExp(r).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}))},w=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?w(t.parentNode):null},_=()=>{},C=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},S=[],k=t=>{"loading"===document.readyState?(S.length||document.addEventListener("DOMContentLoaded",(()=>{S.forEach((t=>t()))})),S.push(t)):t()},A=()=>"rtl"===document.documentElement.dir,T=t=>{k((()=>{const e=C();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},L=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),D=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,E=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,P=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!L.has(i)||Boolean(D.test(t.nodeValue)||E.test(t.nodeValue));const n=e.filter((t=>t instanceof RegExp));for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return!0;return!1},I={"*":["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:[]},M="tooltip",O=`.${"bs.tooltip"}`,F="bs-tooltip",R=new Set(["sanitize","allowList","sanitizeFn"]),B={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},N={AUTO:"auto",TOP:"top",RIGHT:A()?"left":"right",BOTTOM:"bottom",LEFT:A()?"right":"left"},j={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:I,popperConfig:null},$={HIDE:`hide${O}`,HIDDEN:`hidden${O}`,SHOW:`show${O}`,SHOWN:`shown${O}`,INSERTED:`inserted${O}`,CLICK:`click${O}`,FOCUSIN:`focusin${O}`,FOCUSOUT:`focusout${O}`,MOUSEENTER:`mouseenter${O}`,MOUSELEAVE:`mouseleave${O}`},V="fade",H="show",W="show",z="out",q=".tooltip-inner",U=`.${"modal"}`,G="hide.bs.modal",Y="hover",X="focus",J="click",K="manual";class Z extends f.default{constructor(t,e){if(void 0===c)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return j}static get NAME(){return M}static get Event(){return $}static get DefaultType(){return B}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(H))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),d.default.off(this._element.closest(U),G,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const t=d.default.trigger(this._element,this.constructor.Event.SHOW),e=w(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(q).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),r=v(this.constructor.NAME);n.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this._config.animation&&n.classList.add(V);const o="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,a=this._getAttachment(o);this._addAttachmentClass(a);const{container:s}=this._config;h.default.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),d.default.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update(
7):this._popper=c.createPopper(this._element,n,this._getPopperConfig(a)),n.classList.add(H);const l=this._resolvePossibleFunction(this._config.customClass);l&&n.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{d.default.on(t,"mouseover",_)}));const u=()=>{const t=this._hoverState;this._hoverState=null,d.default.trigger(this._element,this.constructor.Event.SHOWN),t===z&&this._leave(null,this)},p=this.tip.classList.contains(V);this._queueCallback(u,this.tip,p)}hide(){if(!this._popper)return;const t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==W&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),d.default.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())};if(d.default.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(H),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>d.default.off(t,"mouseover",_))),this._activeTrigger[J]=!1,this._activeTrigger[X]=!1,this._activeTrigger[Y]=!1;const i=this.tip.classList.contains(V);this._queueCallback(e,this.tip,i),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(V,H),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),q)}_sanitizeAndSetContent(t,e,i){const n=p.default.findOne(i,t);e||!n?this.setElementContent(n,e):n.remove()}setElementContent(t,e){if(null!==t)return b(e)?(e=y(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=s(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return N[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)d.default.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if(t!==K){const e=t===Y?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=t===Y?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;d.default.on(this._element,e,this._config.selector,(t=>this._enter(t))),d.default.on(this._element,i,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},d.default.on(this._element.closest(U),G,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?
7X:Y]=!0),e.getTipElement().classList.contains(H)||e._hoverState===W?e._hoverState=W:(clearTimeout(e._timeout),e._hoverState=W,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===W&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?X:Y]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=z,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===z&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=u.default.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{R.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:y(t.container),"number"==typeof 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()),x(M,t,this.constructor.DefaultType),t.sanitize&&(t.template=s(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);null!==i&&i.length>0&&i.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_getBasicClassPrefix(){return F}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=Z.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}return T(Z),Z})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./tooltip.js")):"function"==typeof define&&define.amd?define(["./tooltip"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Popover=e(t.Tooltip)}(this,(function(t){"use strict";const e=(t=>t&&"object"==typeof t&&"default"in t?t:{default:t})(t),i=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},n=[],r=t=>{"loading"===document.readyState?(n.length||document.addEventListener("DOMContentLoaded",(()=>{n.forEach((t=>t()))})),n.push(t)):t()},o=t=>{r((()=>{const e=i();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},a="popover",s=`.${"bs.popover"}`,l="bs-popover",c={...e.default.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},h={...e.default.DefaultType,content:"(string|element|function)"},d={HIDE:`hide${s}`,HIDDEN:`hidden${s}`,SHOW:`show${s}`,SHOWN:`shown${s}`,INSERTED:`inserted${s}`,CLICK:`click${s}`,FOCUSIN:`focusin${s}`,FOCUSOUT:`focusout${s}`,MOUSEENTER:`mouseenter${s}`,MOUSELEAVE:`mouseleave${s}`},u=".popover-header",p=".popover-body";class f extends e.default{static get Default(){return c}static get NAME(){return a}static get Event(){return d}static get DefaultType(){return h}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),u),this._sanitizeAndSetContent(t,this._getContent(),p)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return l}static jQueryInterface(t){return this.each((function(){const e=f.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}return o(f),f})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).ScrollSpy=e(t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}
7(this,(function(t,e,i,n){"use strict";const r=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},o=r(t),a=r(e),s=r(i),l=r(n),c=t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),h=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},d=t=>{const e=h(t);return e&&document.querySelector(e)?e:null},u=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),p=t=>u(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,f=(t,e,i)=>{Object.keys(i).forEach((n=>{const r=i[n],o=e[n],a=o&&u(o)?"element":c(o);if(!new RegExp(r).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}))},g=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},m=[],v=t=>{"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",(()=>{m.forEach((t=>t()))})),m.push(t)):t()},b=t=>{v((()=>{const e=g();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},y="scrollspy",x=`.${"bs.scrollspy"}`,w={offset:10,method:"auto",target:""},_={offset:"number",method:"string",target:"(string|element)"},C=`activate${x}`,S=`scroll${x}`,k=`load${x}${".data-api"}`,A="dropdown-item",T="active",L='[data-bs-spy="scroll"]',D=".nav, .list-group",E=".nav-link",P=".nav-item",I=".list-group-item",M=`${E}, ${I}, .${A}`,O=".dropdown",F=".dropdown-toggle",R="offset",B="position";class N extends l.default{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default.on(this._scrollElement,S,(()=>this._process())),this.refresh(),this._process()}static get Default(){return w}static get NAME(){return y}refresh(){const t=this._scrollElement===this._scrollElement.window?R:B,e="auto"===this._config.method?t:this._config.method,i=e===B?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();s.default.find(M,this._config.target).map((t=>{const n=d(t),r=n?s.default.findOne(n):null;if(r){const t=r.getBoundingClientRect();if(t.width||t.height)return[a.default[e](r).top+i,n]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){o.default.off(this._scrollElement,x),super.dispose()}_getConfig(t){return(t={...w,...a.default.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target=p(t.target)||document.documentElement,f(y,t,_),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;){this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}}_activate(t){this._activeTarget=t,this._clear();const e=M.split(",").map((e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),i=s.default.findOne(e.join(","),this._config.target);i.classList.add(T),i.classList.contains(A)?s.default.findOne(F,i.closest(O)).classList.add(T):s.default.parents(i,D).forEac
7h((t=>{s.default.prev(t,`${E}, ${I}`).forEach((t=>t.classList.add(T))),s.default.prev(t,P).forEach((t=>{s.default.children(t,E).forEach((t=>t.classList.add(T)))}))})),o.default.trigger(this._scrollElement,C,{relatedTarget:t})}_clear(){s.default.find(M,this._config.target).filter((t=>t.classList.contains(T))).forEach((t=>t.classList.remove(T)))}static jQueryInterface(t){return this.each((function(){const e=N.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}return o.default.on(window,k,(()=>{s.default.find(L).forEach((t=>new N(t)))})),b(N),N})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/event-handler.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/event-handler","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Tab=e(t.EventHandler,t.SelectorEngine,t.Base)}(this,(function(t,e,i){"use strict";const n=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},r=n(t),o=n(e),a=n(i),s=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},l=t=>{const e=s(t);return e?document.querySelector(e):null},c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),h=t=>{t.offsetHeight},d=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},u=[],p=t=>{"loading"===document.readyState?(u.length||document.addEventListener("DOMContentLoaded",(()=>{u.forEach((t=>t()))})),u.push(t)):t()},f=t=>{p((()=>{const e=d();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},g="tab",m=`.${"bs.tab"}`,v=`hide${m}`,b=`hidden${m}`,y=`show${m}`,x=`shown${m}`,w=`click${m}${".data-api"}`,_="dropdown-menu",C="active",S="fade",k="show",A=".dropdown",T=".nav, .list-group",L=".active",D=":scope > li > .active",E='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',P=".dropdown-toggle",I=":scope > .dropdown-menu .active";class M extends a.default{static get NAME(){return g}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(C))return;let t;const e=l(this._element),i=this._element.closest(T);if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?D:L;t=o.default.find(e,i),t=t[t.length-1]}const n=t?r.default.trigger(t,v,{relatedTarget:this._element}):null;if(r.default.trigger(this._element,y,{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,i);const a=()=>{r.default.trigger(t,b,{relatedTarget:this._element}),r.default.trigger(this._element,x,{relatedTarget:t})};e?this._activate(e,e.parentNode,a):a()}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?o.default.children(e,L):o.default.find(D,e))[0],r=i&&n&&n.classList.contains(S),a=()=>this._transitionComplete(t,n,i);n&&r?(n.classList.remove(k),this._queueCallback(a,t,!0)):a()}_transitionComplete(t,e,i){if(e){e.classList.remove(C);const t=o.default.findOne(I,e.parentNode);t&&t.classList.remove(C),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(C),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),h(t),t.classList.contains(S)&&t.classList.add(k);let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains(_)){const e=t.closest(A);e&&o.default.find(P,e).forEach((t=>t.classList.add(C))),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each((function(){const e=M.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}return r.default.on(document,w,E,(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this))return;M.getOrCreateInstance(this).show()})),f(M),M})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/event-handler","./dom/manipulator","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Toast=e(t.EventHandler,t.Manipulator,t.Base)}
7(this,(function(t,e,i){"use strict";const n=t=>t&&"object"==typeof t&&"default"in t?t:{default:t},r=n(t),o=n(e),a=n(i),s=t=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),l=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},c=t=>{const e=l(t);return e?document.querySelector(e):null},h=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),d=(t,e,i)=>{Object.keys(i).forEach((n=>{const r=i[n],o=e[n],a=o&&h(o)?"element":s(o);if(!new RegExp(r).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${r}".`)}))},u=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),p=t=>{t.offsetHeight},f=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},g=[],m=t=>{"loading"===document.readyState?(g.length||document.addEventListener("DOMContentLoaded",(()=>{g.forEach((t=>t()))})),g.push(t)):t()},v=t=>{m((()=>{const e=f();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}}))},b=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;r.default.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),u(this))return;const r=c(this)||this.closest(`.${n}`);t.getOrCreateInstance(r)[e]()}))},y="toast",x=`.${"bs.toast"}`,w=`mouseover${x}`,_=`mouseout${x}`,C=`focusin${x}`,S=`focusout${x}`,k=`hide${x}`,A=`hidden${x}`,T=`show${x}`,L=`shown${x}`,D="fade",E="hide",P="show",I="showing",M={animation:"boolean",autohide:"boolean",delay:"number"},O={animation:!0,autohide:!0,delay:5e3};class F extends a.default{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return M}static get Default(){return O}static get NAME(){return y}show(){if(r.default.trigger(this._element,T).defaultPrevented)return;this._clearTimeout(),
8this._config.animation&&this._element.classList.add(D);const t=()=>{this._element.classList.remove(I),r.default.trigger(this._element,L),this._maybeScheduleHide()};this._element.classList.remove(E),p(this._element),this._element.classList.add(P),this._element.classList.add(I),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(P))return;if(r.default.trigger(this._element,k).defaultPrevented)return;const t=()=>{this._element.classList.add(E),this._element.classList.remove(I),this._element.classList.remove(P),r.default.trigger(this._element,A)};this._element.classList.add(I),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(P)&&this._element.classList.remove(P),super.dispose()}_getConfig(t){return t={...O,...o.default.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},d(y,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){r.default.on(this._element,w,(t=>this._onInteraction(t,!0))),r.default.on(this._element,_,(t=>this._onInteraction(t,!1))),r.default.on(this._element,C,(t=>this._onInteraction(t,!0))),r.default.on(this._element,S,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=F.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
8amed "${t}"`);e[t](this)}}))}}return b(F),v(F),F})),window.globalThis=window.bootstrap._originalGlobalThis,window.bootstrap._originalGlobalThis=null,function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})),function(t){"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})),function(t){"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){return function(){function e(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}
vendor: 21,017 bytes, line 8
8var r,o=Math.max,a=Math.abs,s=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,d=/%$/,u=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==r)return r;var e,i,n=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),e=o.offsetWidth,n.css("overflow","scroll"),e===(i=o.offsetWidth)&&(i=n[0].clientWidth),n.remove(),r=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),r=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:r,offset:!n&&!r?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(r){if(!r||!r.of)return u.apply(this,arguments);r=t.extend({},r);var d,p,f,g,m,v,b=t(r.of),y=t.position.getWithinInfo(r.within),x=t.position.getScrollInfo(y),w=(r.collision||"flip").split(" "),_={};return v=n(b),b[0].preventDefault&&(r.at="left top"),p=v.width,f=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],(function(){var t,e,i=(r[this]||"").split(" ");1===i.length&&(i=s.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=s.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=c.exec(i[0]),e=c.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],r[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===r.at[0]?m.left+=p:"center"===r.at[0]&&(m.left+=p/2),"bottom"===r.at[1]?m.top+=f:"center"===r.at[1]&&(m.top+=f/2),d=e(_.at,p,f),m.left+=d[0],m.top+=d[1],this.each((function(){var n,s,l=t(this),c=l.outerWidth(),h=l.outerHeight(),u=i(this,"marginLeft"),v=i(this,"marginTop"),C=c+u+i(this,"marginRight")+x.width,S=h+v+i(this,"marginBottom")+x.height,k=t.extend({},m),A=e(_.my,l.outerWidth(),l.outerHeight());"right"===r.my[0]?k.left-=c:"center"===r.my[0]&&(k.left-=c/2),"bottom"===r.my[1]?k.top-=h:"center"===r.my[1]&&(k.top-=h/2),k.left+=A[0],k.top+=A[1],n={marginLeft:u,marginTop:v},t.each(["left","top"],(function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](k,{targetWidth:p,targetHeight:f,elemWidth:c,elemHeight:h,collisionPosition:n,collisionWidth:C,collisionHeight:S,offset:[d[0]+A[0],d[1]+A[1]],my:r.my,at:r.at,within:y,elem:l})})),r.using&&(s=function(t){var e=g.left-k.left,i=e+p-c,n=g.top-k.top,s=n+f-h,d={target:{element:b,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:k.left,top:k.top,width:c,height:h},horizontal:i<0?"left":e>0?"right":"center",vertical:s<0?"top":n>0?"bottom":"middle"};p<c&&a(e+i)<p&&(d.horizontal="center"),f<h&&a(n+s)<f&&(d.vertical="middle"),o(a(e),a(i))>o(a(n),a(s))?d.important="horizontal":d.important="vertical",r.using.call(this,t,d)}),l.offset(t.extend(k,{using:s}))}))},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,s=t.left-e.collisionPosition.marginLeft,l=r-s,c=s+e.collisionWidth-a-r;e.collisionWidth>a?l>0&&c<=0?(i=t.left+l+e.collisionWidth-a-r,t.left+=l-i):t.left=c>0&&l<=0?r:l>c?r+a-e.collisionWidth:r:l>0?t.left+=l:c>0?t.left-=c:t.left=o(t.left-s,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,a=e.within.height,s=t.top-e.collisionPosition.marginTop,l=r-s,c=s+e.collisionHeight-a-r;e.collisionHeight>a?l>0&&c<=0?(i=t.top+l+e.collisionHeight-a-r,t.top+=l-i):t.top=c>0&&l<=0?r:l>c?r+a-e.collisionHeight:r:l>0?t.top+=l:c>0?t.top-=c:t.top=o(t.top-s,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,o=r.offset.left+r.scrollLeft,s=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,d=c+e.collisionWidth-s-l,u="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];h<0?((i=t.left+u+p+f+e.collisionWidth-s-o)<0||i<a(h))&&(t.left+=u+p+f):d>0&&((n=t.left-e.collisionPosition.marginLeft+u+p+f-l)>0||a(n)<d)&&(t.left+=u+p+f)},top:function(t,e){var i,n,r=e.within,o=r.offset.top+r.scrollTop,s=r.height,l=r.isWindow?r.scrollTop:r.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-l,d=c+e.collisionHeight-s-l,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];h<0?((n=t.top+u+p+f+e.collisionHeight-s-o)<0||n<a(h))&&(t.top+=u+p+f):d>0&&((i=t.top-e.collisionPosition.marginTop+u+p+f-l)>0||a(i)<d)&&(t.top+=u+p+f)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position})),function(t){"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){return t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}})),function(t){"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){return t.fn.extend({uniqueId:(e=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++e)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}});var e})),function(t){"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){var e,i=0,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var n,r,o;for(o=0;null!=(r=i[o]);o++)try{(n=t._data(r,"events"))&&n.remove&&t(r).triggerHandler("remove")}catch(t){}e(i)}),t.widget=function(e,i,n){var r,o,a,s={},l=e.split(".")[0],c=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,(function(e,n){t.isFunction(n)?s[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function r(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=o,e}}():s[e]=n})),o.prototype=t.widget.extend(a,{widgetEventPrefix:r&&a.widgetEventPrefix||e},s,{constructor:o,namespace:l,widgetName:e,widgetFullName:c}),r?(t.each(r._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete r._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,r,o=n.call(arguments,1),a=0,s=o.length;a<s;a++)for(i in o[a])r=o[a][i],o[a].hasOwnProperty(i)&&void 0!==r&&(t.isPlainObject(r)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],r):t.widget.extend({},r):e[i]=r);return e},t.widget.bridge=function(e,i){var r=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each((function(){var i,n=t.data(this,r);return"instance"===o?(l=n,!1):n?t.isFunction(n[o])&&"_"!==o.charAt(0)?(i=n[o].apply(n,s))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new i(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,r,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},n=e.split("."),e=n.shift(),n.length){for(r=a[e]=t.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)r[n[o]]=r[n[o]]||{},r=r[n[o]];if(e=n.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,r;for(i in e)r=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&r&&r.length&&(n=t(r.get()),this._removeClass(r,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&e.classes[i[s]]&&n.push(e.classes[i[s]])}var n=[],r=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(n,r){-1!==t.inArray(e.target,r)&&(i.classesElementLookup[n]=t(r.not(e.target).get()))}))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var r="string"==typeof t||null===t,o={extra:r?e:i,keys:r?t:e,element:r?this.element:t,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(e,i,n){var r,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,(function(n,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,h=l[2];h?r.on(c,h,s):i.on(c,s)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var r,o,a=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(r in o)r in i||(i[r]=o[r]);return this.element.trigger(i,n),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,r,o){var a;"string"==typeof r&&(r={effect:r});var s=r?!0===r||"number"==typeof r?i:r.effect||i:e;"number"==typeof(r=r||{})&&(r={duration:r}),a=!t.isEmptyObject(r),r.complete=o,r.delay&&n.delay(r.delay),a&&t.effects&&t.effects.effect[s]?n[e](r):s!==e&&n[s]?n[s](r.duration,r.easing,o):n.queue((function(i){t(this)[e](),o&&o.call(n[0]),i()}))}})),t.widget})),function(t){"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../safe-active-element","../unique-id","../version","../widget"],t):t(jQuery)}((function(t){return t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget);i[0]===n[0]&&(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay((function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each((function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()}))},_keydown:function(e){var i,n,r,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,n=this.previousFilter||"",o=!1,r=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),r===n?o=!0:r=n+r,i=this._filterMenuItems(r),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(r=String.fromCharCode(e.keyCode),i=this._filterMenuItems(r)),i.length?(this.focus(e,i),this.previousFilter=r,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n,r,o=this,a=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(n,"ui-menu-icon","ui-icon "+a),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(e=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")})),r=(n=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(r,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,r;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),r=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,r,o,a,s;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=e.outerHeight(),r<0?this.activeMenu.scrollTop(o+r):r+s>a&&this.activeMenu.scrollTop(o+r-a+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(t)}),this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay((function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n}),this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
8se")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay((function(){this.focus(t,e)})))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-n-r<0})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var i,n,r;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-n+r>0})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return n.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))}))}})})),function(t){"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],t):t(jQuery)}((function(t){return t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),o="textarea"===r,a="input"===r;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var o=t.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",r);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case o.UP:e=!0,this._keyEvent("previous",r);break;case o.DOWN:e=!0,this._keyEvent("next",r);break;case o.ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case o.TAB:this.menu.active&&this.menu.select(r);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move("previousPage",n);break;case r.PAGE_DOWN:this._move("nextPage",n);break;case r.UP:this._keyEvent("previous",n);break;case r.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 4,098 bytes, line 8
8)},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")}))},menufocus:function(e,i){var n,r;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){t(e.target).trigger(e.originalEvent)}));r=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:r})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(r.value),(n=i.item.attr("aria-label")||r.value)&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),r=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=r,this._delay((function(){this.previous=r,this.selectedItem=n}))),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))}),this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy((function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}),this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))}
8,_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,(function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})}))},_suggest:function(e){
9var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,(function(t,i){n._renderItemData(e,i)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,(function(t){return n.test(t.label||t.value||t)}))}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete})),window.Modernizr=function(t,e,i){function n(t){y.cssText=t}function r(t,e){return n(C.join(t+";")+(e||""))}function o(t,e){return typeof t===e}function a(t,e){return!!~(""+t).indexOf(e)}function s(t,e){for(var n in t){var r=t[n];if(!a(r,"-")&&y[r]!==i)return"pfx"!=e||r}return!1}function l(t,e,n){for(var r in t){var a=e[t[r]];if(a!==i)return!1===n?t[r]:o(a,"function")?a.bind(n||e):a}return!1}function c(t,e,i){var n=t.charAt(0).toUpperCase()+t.slice(1),r=(t+" "+k.join(n+" ")+n).split(" ");return o(e,"string")||o(e,"undefined")?s(r,e):l(r=(t+" "+A.join(n+" ")+n).split(" "),e,i)}function h(){f.input=function(i){for(var n=0,r=i.length;n<r;n++)E[i[n]]=i[n]in x;return E.list&&(E.list=!!e.createElement("datalist")&&!!t.HTMLDataListElement),E}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),f.inputtypes=function(t){for(var n,r,o,a=0,s=t.length;a<s;a++)x.setAttribute("type",r=t[a]),(n="text"!==x.type)&&(x.value=w,x.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&x.style.WebkitAppearance!==i?(m.appendChild(x),n=(o=e.defaultView).getComputedStyle&&"textfield"!==o.getComputedStyle(x,null).WebkitAppearance&&0!==x.offsetHeight,m.removeChild(x)):/^(search|tel)$/.test(r)||(n=/^(url|email)$/.test(r)?x.checkValidity&&!1===x.checkValidity():x.value!=w)),D[t[a]]=!!n;return D}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d,u,p="2.8.3",f={},g=!0,m=e.documentElement,v="modernizr",b=e.createElement(v),y=b.style,x=e.createElement("input"),w=":)",_={}.toString,C=" -webkit- -moz- -o- -ms- ".split(" "),S="Webkit Moz O ms",k=S.split(" "),A=S.toLowerCase().split(" "),T={svg:"http://www.w3.org/2000/svg"},L={},D={},E={},P=[],I=P.slice,M=function(t,i,n,r){var o,a,s,l,c=e.createElement("div"),h=e.body,d=h||e.createElement("body");if(parseInt(n,10))for(;n--;)(s=e.createElement("div")).id=r?r[n]:v+(n+1),c.appendChild(s);return o=["&#173;",'<style id="s',v,'">',t,"</style>"].join(""),c.id=v,(h?c:d).innerHTML+=o,d.appendChild(c),h||(d.style.background="",d.style.overflow="hidden",l=m.style.overflow,m.style.overflow="hidden",m.appendChild(d)),a=i(c,t),h?c.parentNode.removeChild(c):(d.parentNode.removeChild(d),m.style.overflow=l),!!a}
9,O=function(e){var i,n=t.matchMedia||t.msMatchMedia;return n?n(e)&&n(e).matches||!1:(M("@media "+e+" { #"+v+" { position: absolute; } }",(function(e){i="absolute"==(t.getComputedStyle?getComputedStyle(e,null):e.currentStyle).position})),i)},F=function(){function t(t,r){r=r||e.createElement(n[t]||"div");var a=(t="on"+t)in r;return a||(r.setAttribute||(r=e.createElement("div")),r.setAttribute&&r.removeAttribute&&(r.setAttribute(t,""),a=o(r[t],"function"),o(r[t],"undefined")||(r[t]=i),r.removeAttribute(t))),r=null,a}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t}(),R={}.hasOwnProperty;for(var B in u=o(R,"undefined")||o(R.call,"undefined")?function(t,e){return e in t&&o(t.constructor.prototype[e],"undefined")}:function(t,e){return R.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=I.call(arguments,1),n=function(){if(this instanceof n){var r=function(){};r.prototype=e.prototype;var o=new r,a=e.apply(o,i.concat(I.call(arguments)));return Object(a)===a?a:o}return e.apply(t,i.concat(I.call(arguments)))};return n}),L.flexbox=function(){return c("flexWrap")},L.canvas=function(){var t=e.createElement("canvas");return!!t.getContext&&!!t.getContext("2d")},L.canvastext=function(){return!!f.canvas&&!!o(e.createElement("canvas").getContext("2d").fillText,"function")},L.webgl=function(){return!!t.WebGLRenderingContext},L.touch=function(){var i;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?i=!0:M(["@media (",C.join("touch-enabled),("),v,")","{#modernizr{top:9px;position:absolute}}"].join(""),(function(t){i=9===t.offsetTop})),i},L.geolocation=function(){return"geolocation"in navigator},L.postmessage=function(){return!!t.postMessage},L.websqldatabase=function(){return!!t.openDatabase},L.indexedDB=function(){return!!c("indexedDB",t)},L.hashchange=function(){return F("hashchange",t)&&(e.documentMode===i||e.documentMode>7)},L.history=function(){return!!t.history&&!!history.pushState},L.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},L.websockets=function(){return"WebSocket"in t||"MozWebSocket"in t},L.rgba=function(){return n("background-color:rgba(150,255,150,.5)"),a(y.backgroundColor,"rgba")},L.hsla=function(){return n("background-color:hsla(120,40%,100%,.5)"),a(y.backgroundColor,"rgba")||a(y.backgroundColor,"hsla")},L.multiplebgs=function(){return n("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(y.background)},L.backgroundsize=function(){return c("backgroundSize")},L.borderimage=function(){return c("borderImage")},L.borderradius=function(){return c("borderRadius")},L.boxshadow=function(){return c("boxShadow")},L.textshadow=function(){return""===e.createElement("div").style.textShadow},L.opacity=function(){return r("opacity:.55"),/^0.55$/.test(y.opacity)},L.cssanimations=function(){return c("animationName")},L.csscolumns=function(){return c("columnCount")},L.cssgradients=function(){var t="background-image:",e="gradient(linear,left top,right bottom,from(#9f9),to(white));",i="linear-gradient(left top,#9f9, white);";return n((t+"-webkit- ".split(" ").join(e+t)+C.join(i+t)).slice(0,-t.length)),a(y.backgroundImage,"gradient")},L.cssreflections=function(){return c("boxReflect")},L.csstransforms=function(){return!!c("transform")},L.csstransforms3d=function(){var t=!!c("perspective");return t&&"webkitPerspective"in m.style&&M("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",(function(e){t=9===e.offsetLeft&&3===e.offsetHeight})),t},L.csstransitions=function(){return c("transition")},L.fontface=function(){var t;return M('@font-face {font-family:"font";src:url("https://")}',(function(i,n){var r=e.getElementById("smodernizr"),o=r.sheet||r.styleSheet,a=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"";t=/src/i.test(a)&&0===a.indexOf(n.split(" ")[0])})),t},L.generatedcontent=function(){var t;return M(["#",v,"{font:0/0 a}#",v,':after{content:"',w,'";visibility:hidden;font:3px/1 a}'].join(""),(function(e){t=e.offsetHeight>=3})),t},L.video=function(){var t=e.createElement("video"),i=!1;try{(i=!!t.canPlayType)&&((i=new Boolean(i)).ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),i.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),i.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(t){}return i},L.audio=function(){var t=e.createElement("audio"),i=!1;try{(i=!!t.canPlayType)&&((i=new Boolean(i)).ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),i.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),i.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return i},L.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(t){return!1}},L.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(t){return!1}}
9,L.webworkers=function(){return!!t.Worker},L.applicationcache=function(){return!!t.applicationCache},L.svg=function(){return!!e.createElementNS&&!!e.createElementNS(T.svg,"svg").createSVGRect},L.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==T.svg},L.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(_.call(e.createElementNS(T.svg,"animate")))},L.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(_.call(e.createElementNS(T.svg,"clipPath")))},L)u(L,B)&&(d=B.toLowerCase(),f[d]=L[B](),P.push((f[d]?"":"no-")+d));return f.input||h(),f.addTest=function(t,e){if("object"==typeof t)for(var n in t)u(t,n)&&f.addTest(n,t[n]);else{if(t=t.toLowerCase(),f[t]!==i)return f;e="function"==typeof e?e():e,void 0!==g&&g&&(m.className+=" "+(e?"":"no-")+t),f[t]=e}return f},n(""),b=x=null,function(t,e){function i(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}function n(){var t=b.elements;return"string"==typeof t?t.split(" "):t}function r(t){var e=v[t[g]];return e||(e={},m++,t[g]=m,v[m]=e),e}function o(t,i,n){return i||(i=e),h?i.createElement(t):(n||(n=r(i)),!(o=n.cache[t]?n.cache[t].cloneNode():f.test(t)?(n.cache[t]=n.createElem(t)).cloneNode():n.createElem(t)).canHaveChildren||p.test(t)||o.tagUrn?o:n.frag.appendChild(o));var o}function a(t,i){if(t||(t=e),h)return t.createDocumentFragment();for(var o=(i=i||r(t)).frag.cloneNode(),a=0,s=n(),l=s.length;a<l;a++)o.createElement(s[a]);return o}function s(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return b.shivMethods?o(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-]+/g,(function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'}))+");return n}")(b,e.frag)}function l(t){t||(t=e);var n=r(t);return b.shivCSS&&!c&&!n.hasCSS&&(n.hasCSS=!!i(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),h||s(t,n),t}var c,h,d="3.7.0",u=t.html5||{},p=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",m=0,v={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",c="hidden"in t,h=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){c=!0,h=!0}}();var b={elements:u.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:d,shivCSS:!1!==u.shivCSS,supportsUnknownElements:h,shivMethods:!1!==u.shivMethods,type:"default",shivDocument:l,createElement:o,createDocumentFragment:a};t.html5=b,l(e)}(this,e),f._version=p,f._prefixes=C,f._domPrefixes=A,f._cssomPrefixes=k,f.mq=O,f.hasEvent=F,f.testProp=function(t){return s([t])},f.testAllProps=c,f.testStyles=M,f.prefixed=function(t,e,i){return e?c(t,e,i):c(t,"pfx")},m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(g?" js "+P.join(" "):""),f}(this,this.document),function(t,e,i){function n(t){return"[object Function]"==m.call(t)}function r(t){return"string"==typeof t}function o(){}function a(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function s(){var t=v.shift();b=1,t?t.t?f((function(){("c"==t.t?u.injectCss:u.injectJs)(t.s,0,t.a,t.x,t.e,1)}),0):(t(),s()):b=0}function l(t,i,n,r,o,l,c){function h(e){if(!p&&a(d.readyState)&&(y.r=p=1,!b&&s(),d.onload=d.onreadystatechange=null,e))for(var n in"img"!=t&&f((function(){w.removeChild(d)}),50),A[i])A[i].hasOwnProperty(n)&&A[i][n].onload()}c=c||u.errorTimeout;var d=e.createElement(t),p=0,m=0,y={t:n,s:i,e:o,a:l,x:c};1===A[i]&&(m=1,A[i]=[]),"object"==t?d.data=i:(d.src=i,d.type=t),d.width=d.height="0",d.onerror=d.onload=d.onreadystatechange=function(){h.call(this,m)},v.splice(r,0,y),"img"!=t&&(m||2===A[i]?(w.insertBefore(d,x?null:g),f(h,c)):A[i].push(d))}function c(t,e,i,n,o){return b=0,e=e||"j",r(t)?l("c"==e?C:_,t,e,this.i++,i,n,o):(v.splice(this.i++,0,t),1==v.length&&s()),this}function h(){var t=u;return t.loader={load:c,i:0},t}var d,u,p=e.documentElement,f=t.setTimeout,g=e.getElementsByTagName("script")[0],m={}.toString,v=[],b=0,y="MozAppearance"in p.style,x=y&&!!e.createRange().compareNode,w=x?p:g.parentNode,_=(p=t.opera&&"[object Opera]"==m.call(t.opera),p=!!e.attachEvent&&!p,y?"object":p?"script":"img"),C=p?"script":_,S=Array.isArray||function(t){return"[object Array]"==m.call(t)},k=[],A={},T={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};u=function(t){function e(t){t=t.split("!");var e,i,n,r=k.length,o=t.pop(),a=t.length;o={url:o,origUrl:o,prefixes:t};for(i=0;i<a;i++)n=t[i].split("="),(e=T[n.shift()])&&(o=e(o,n));for(i=0;i<r;i++)o=k[i](o);return o}function a(t,r,o,a,s){var l=e(t),c=l.autoCallback;l.url.split(".").pop().split("?").shift(),l.bypass||(r&&(r=n(r)?r:r[t]||r[a]||r[t.split("/").pop().split("?")[0]]),l.instead?l.instead(t,r,o,a,s):(A[l.url]?l.noexec=!0:A[l.url]=1,o.load(l.url,l.forceCSS||!l.forceJS&&"css"==l.url.split(".").pop().split("?").shift()?"c":i,l.noexec,l.attrs,l.timeout),(n(r)||n(c))&&o.load((function(){h(),r&&r(l.origUrl,s,a),c&&c(l.origUrl,s,a),A[l.url]=2}))))}function s(t,e){function i(t,i){if(t){if(r(t))i||(d=function(){var t=[].slice.call(arguments);u.apply(this,t),p()}),a(t,d,e,0,c);else if(Object(t)===t)for(l in s=function(){var e,i=0;for(e in t)t.hasOwnProperty(e)&&i++;return i}(),t)t.hasOwnProperty(l)&&(!i&&! --s&&(n(d)?d=function(){var t=[].slice.call(arguments);u.apply(this,t),p()}:d[l]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),p()}}(u[l])),a(t[l],d,e,l,c))}else!i&&p()}var s,l,c=!!t.test,h=t.load||t.both,d=t.callback||o,u=d,p=t.complete||o;i(c?t.yep:t.nope,!!h),h&&i(h)}var l,c,d=this.yepnope.loader;if(r(t))a(t,0,d,0);else if(S(t))for(l=0;l<t.length;l++)r(c=t[l])?a(c,0,d,0):S(c)?u(c):Object(c)===c&&s(c,d);else Object(t)===t&&s(t,d)},u.addPrefix=function(t,e){T[t]=e},u.addFilter=function(t){k.push(t)},u.errorTimeout=1e4,null==e.readyState&&e.addEventListener&&(e.readyState="loading",e.addEventListener("DOMContentLoaded",d=function(){e.removeEventListener("DOMContentLoaded",d,0),e.readyState="complete"},0)),t.yepnope=h(),t.yepnope.executeStack=s,t.yepnope.injectJs=function(t,i,n,r,l,c){var h,d,p=e.createElement("script");r=r||u.errorTimeout;for(d in p.src=t,n)p.setAttribute(d,n[d]);i=c?s:i||o,p.onreadystatechange=p.onload=function(){!h&&a(p.readyState)&&(h=1,i(),p.onload=p.onreadystatechange=null)},f((function(){h||(h=1,i(1))}),r),l?p.onload():g.parentNode.insertBefore(p,g)},t.yepnope.injectCss=function(t,i,n,r,a,l){var c;r=e.createElement("link"),i=l?s:i||o;for(c in r.href=t,r.rel="stylesheet",r.type="text/css",n)r.setAttribute(c,n[c]);a||(g.parentNode.insertBefore(r,g),f(i,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(t){"use strict";t.matchMedia=t.matchMedia||function(t){var e,i=t.documentElement,n=i.firstElementChild||i.firstChild,r=t.createElement("body"),o=t.createElement("div");return o.id="mq-test-1",o.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(o),function(t){return o.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',i.insertBefore(r,n),e=42===o.offsetWidth,i.removeChild(r),{matches:e,media:t}}}(t.document)}(this),function(t){"use strict";function e(){w(!0)}var i={};t.respond=i,i.update=function(){};var n=[],r=function(){var e=!1;try{e=new t.XMLHttpRequest}
9catch(i){e=new t.ActiveXObject("Microsoft.XMLHTTP")}return function(){return e}}(),o=function(t,e){var i=r();i&&(i.open("GET",t,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||e(i.responseText)},4!==i.readyState&&i.send(null))},a=function(t){return t.replace(i.regex.minmaxwh,"").match(i.regex.other)};if(i.ajax=o,i.queue=n,i.unsupportedmq=a,i.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},i.mediaQueriesSupported=t.matchMedia&&null!==t.matchMedia("only all")&&t.matchMedia("only all").matches,!i.mediaQueriesSupported){var s,l,c,h=t.document,d=h.documentElement,u=[],p=[],f=[],g={},m=30,v=h.getElementsByTagName("head")[0]||d,b=h.getElementsByTagName("base")[0],y=v.getElementsByTagName("link"),x=function(){var t,e=h.createElement("div"),i=h.body,n=d.style.fontSize,r=i&&i.style.fontSize,o=!1;return e.style.cssText="position:absolute;font-size:1em;width:1em",i||((i=o=h.createElement("body")).style.background="none"),d.style.fontSize="100%",i.style.fontSize="100%",i.appendChild(e),o&&d.insertBefore(i,d.firstChild),t=e.offsetWidth,o?d.removeChild(i):i.removeChild(e),d.style.fontSize=n,r&&(i.style.fontSize=r),c=parseFloat(t)},w=function(e){var i="clientWidth",n=d[i],r="CSS1Compat"===h.compatMode&&n||h.body[i]||n,o={},a=y[y.length-1],g=(new Date).getTime();if(e&&s&&m>g-s)return t.clearTimeout(l),void(l=t.setTimeout(w,m));for(var b in s=g,u)if(u.hasOwnProperty(b)){var _=u[b],C=_.minw,S=_.maxw,k=null===C,A=null===S,T="em";C&&(C=parseFloat(C)*(C.indexOf(T)>-1?c||x():1)),S&&(S=parseFloat(S)*(S.indexOf(T)>-1?c||x():1)),_.hasquery&&(k&&A||!(k||r>=C)||!(A||S>=r))||(o[_.media]||(o[_.media]=[]),o[_.media].push(p[_.rules]))}for(var L in f)f.hasOwnProperty(L)&&f[L]&&f[L].parentNode===v&&v.removeChild(f[L]);for(var D in f.length=0,o)if(o.hasOwnProperty(D)){var E=h.createElement("style"),P=o[D].join("\n");E.type="text/css",E.media=D,v.insertBefore(E,a.nextSibling),E.styleSheet?E.styleSheet.cssText=P:E.appendChild(h.createTextNode(P)),f.push(E)}},_=function(t,e,n){var r=t.replace(i.regex.comments,"").replace(i.regex.keyframes,"").match(i.regex.media),o=r&&r.length||0,s=function(t){return t.replace(i.regex.urls,"$1"+e+"$2$3")},l=!o&&n;(e=e.substring(0,e.lastIndexOf("/"))).length&&(e+="/"),l&&(o=1);for(var c=0;o>c;c++){var h,d,f,g;l?(h=n,p.push(s(t))):(h=r[c].match(i.regex.findStyles)&&RegExp.$1,p.push(RegExp.$2&&s(RegExp.$2))),g=(f=h.split(",")).length;for(var m=0;g>m;m++)d=f[m],a(d)||u.push({media:d.split("(")[0].match(i.regex.only)&&RegExp.$2||"all",rules:p.length-1,hasquery:d.indexOf("(")>-1,minw:d.match(i.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:d.match(i.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}w()},C=function(){if(n.length){var e=n.shift();o(e.href,(function(i){_(i,e.href,e.media),g[e.href]=!0,t.setTimeout((function(){C()}),0)}))}},S=function(){for(var e=0;e<y.length;e++){var i=y[e],r=i.href,o=i.media,a=i.rel&&"stylesheet"===i.rel.toLowerCase();r&&a&&!g[r]&&(i.styleSheet&&i.styleSheet.rawCssText?(_(i.styleSheet.rawCssText,r,o),g[r]=!0):(!/^([a-zA-Z:]*\/\/)/.test(r)&&!b||r.replace(RegExp.$1,"").split("/")[0]===t.location.host)&&("//"===r.substring(0,2)&&(r=t.location.protocol+r),n.push({href:r,media:o})))}C()};S(),i.update=S,i.getEmValue=x,t.addEventListener?t.addEventListener("resize",e,!1):t.attachEvent&&t.attachEvent("onresize",e)}}(this),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}((function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;return function(){var t,i,n;e&&e.requirejs||(e?i=e:e={},function(e){function r(t,e){return x.call(t,e)}function o(t,e){var i,n,r,o,a,s,l,c,h,d,u,p=e&&e.split("/"),f=b.map,g=f&&f["*"]||{};if(t&&"."===t.charAt(0))if(e){for(a=(t=t.split("/")).length-1,b.nodeIdCompat&&_.test(t[a])&&(t[a]=t[a].replace(_,"")),t=p.slice(0,p.length-1).concat(t),h=0;h<t.length;h+=1)if("."===(u=t[h]))t.splice(h,1),h-=1;else if(".."===u){if(1===h&&(".."===t[2]||".."===t[0]))break;h>0&&(t.splice(h-1,2),h-=2)}t=t.join("/")}
9else 0===t.indexOf("./")&&(t=t.substring(2));if((p||g)&&f){for(h=(i=t.split("/")).length;h>0;h-=1){if(n=i.slice(0,h).join("/"),p)for(d=p.length;d>0;d-=1)if((r=f[p.slice(0,d).join("/")])&&(r=r[n])){o=r,s=h;break}if(o)break;!l&&g&&g[n]&&(l=g[n],c=h)}!o&&l&&(o=l,s=c),o&&(i.splice(0,s,o),t=i.join("/"))}return t}function a(t,i){return function(){var n=w.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),p.apply(e,n.concat([t,i]))}}function s(t){return function(e){return o(e,t)}}function l(t){return function(e){m[t]=e}}function c(t){if(r(v,t)){var i=v[t];delete v[t],y[t]=!0,u.apply(e,i)}if(!r(m,t)&&!r(y,t))throw new Error("No "+t);return m[t]}function h(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function d(t){return function(){return b&&b.config&&b.config[t]||{}}}var u,p,f,g,m={},v={},b={},y={},x=Object.prototype.hasOwnProperty,w=[].slice,_=/\.js$/;f=function(t,e){var i,n=h(t),r=n[0];return t=n[1],r&&(i=c(r=o(r,e))),r?t=i&&i.normalize?i.normalize(t,s(e)):o(t,e):(r=(n=h(t=o(t,e)))[0],t=n[1],r&&(i=c(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:i}},g={require:function(t){return a(t)},exports:function(t){var e=m[t];return void 0!==e?e:m[t]={}},module:function(t){return{id:t,uri:"",exports:m[t],config:d(t)}}},u=function(t,i,n,o){var s,h,d,u,p,b,x=[],w=typeof n;if(o=o||t,"undefined"===w||"function"===w){for(i=!i.length&&n.length?["require","exports","module"]:i,p=0;p<i.length;p+=1)if("require"===(h=(u=f(i[p],o)).f))x[p]=g.require(t);else if("exports"===h)x[p]=g.exports(t),b=!0;else if("module"===h)s=x[p]=g.module(t);else if(r(m,h)||r(v,h)||r(y,h))x[p]=c(h);else{if(!u.p)throw new Error(t+" missing "+h);u.p.load(u.n,a(o,!0),l(h),{}),x[p]=m[h]}d=n?n.apply(m[t],x):void 0,t&&(s&&s.exports!==e&&s.exports!==m[t]?m[t]=s.exports:d===e&&b||(m[t]=d))}else t&&(m[t]=n)},t=i=p=function(t,i,n,r,o){if("string"==typeof t)return g[t]?g[t](i):c(f(t,i).f);if(!t.splice){if((b=t).deps&&p(b.deps,b.callback),!i)return;i.splice?(t=i,i=n,n=null):t=e}return i=i||function(){},"function"==typeof n&&(n=r,r=o),r?u(e,t,i,n):setTimeout((function(){u(e,t,i,n)}),4),p},p.config=function(t){return p(t)},t._defined=m,n=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),r(m,t)||r(v,t)||(v[t]=[t,e,i])},n.amd={jQuery:!0}}(),e.requirejs=t,e.require=i,e.define=n)}(),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){function e(t){var e=t.prototype,i=[];for(var n in e){"function"==typeof e[n]&&"constructor"!==n&&i.push(n)}return i}var i={Extend:function(t,e){function i(){this.constructor=t}var n={}.hasOwnProperty;for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},Decorate:function(t,i){function n(){var e=Array.prototype.unshift,n=i.prototype.constructor.length,r=t.prototype.constructor;n>0&&(e.call(arguments,t.prototype.constructor),r=i.prototype.constructor),r.apply(this,arguments)}function r(){this.constructor=n}var o=e(i),a=e(t);i.displayName=t.displayName,n.prototype=new r;for(var s=0;s<a.length;s++){var l=a[s];n.prototype[l]=t.prototype[l]}for(var c=function(t){var e=function(){};t in n.prototype&&(e=n.prototype[t]);var r=i.prototype[t];return function(){return Array.prototype.unshift.call(arguments,e),r.apply(this,arguments)}},h=0;h<o.length;h++){var d=o[h];n.prototype[d]=c(d)}return n}},n=function(){this.listeners={}};return n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice;this.listeners=this.listeners||{},t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;n>i;i++)t[i].apply(this,e)}
9,i.Observable=n,i.generateChars=function(t){for(var e="",i=0;t>i;i++){e+=Math.floor(36*Math.random()).toString(36)}return e},i.bind=function(t,e){return function(){t.apply(e,arguments)}},i._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var r=0;r<i.length;r++){var o=i[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in n||(n[o]={}),r==i.length-1&&(n[o]=t[e]),n=n[o]}delete t[e]}}return t},i.hasScroll=function(e,i){var n=t(i),r=i.style.overflowX,o=i.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||(n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth))},i.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},i.appendMany=function(e,i){if("1.7"===t.fn.jquery.substr(0,3)){var n=t();t.map(i,(function(t){n=n.add(t)})),i=n}e.append(i)},i})),e.define("select2/results",["jquery","./utils"],(function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(i(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],r=this.option(n);e.push(r)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.setClasses=function(){var e=this;this.data.current((function(i){var n=t.map(i,(function(t){return t.id.toString()})),r=e.$results.find(".select2-results__option[aria-selected]");r.each((function(){var e=t(this),i=t.data(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&t.inArray(r,n)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")}));var o=r.filter("[aria-selected=true]");o.length>0?o.first().trigger("mouseenter"):r.first().trigger("mouseenter")}))},i.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},i=this.option(e);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var i=document.createElement("li");i.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var r in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(i.id=e._resultId),e.title&&(i.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[r];i.setAttribute(r,o)}if(e.children){var a=t(i),s=document.createElement("strong");s.className="select2-results__group",t(s),this.template(e,s);for(var l=[],c=0;c<e.children.length;c++){var h=e.children[c],d=this.option(h);l.push(d)}var u=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});u.append(l),a.append(s),a.append(u)}else this.template(e,i);return t.data(i,"data",e),i},i.prototype.bind=function(e){var i=this,n=e.id+"-results";this.$results.attr("id",n),e.on("results:all",(function(t){i.clear(),i.append(t.data),e.isOpen()&&i.setClasses()})),e.on("results:append",(function(t){i.append(t.data),e.isOpen()&&i.setClasses()})),e.on("query",(function(t){i.hideMessages(),i.showLoading(t)}
9)),e.on("select",(function(){e.isOpen()&&i.setClasses()})),e.on("unselect",(function(){e.isOpen()&&i.setClasses()})),e.on("open",(function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()})),e.on("close",(function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")})),e.on("results:toggle",(function(){var t=i.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),e.on("results:select",(function(){var t=i.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:e})}})),e.on("results:previous",(function(){var t=i.getHighlightedResults(),e=i.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var r=n-1;0===t.length&&(r=0);var o=e.eq(r);o.trigger("mouseenter");var a=i.$results.offset().top,s=o.offset().top,l=i.$results.scrollTop()+(s-a);0===r?i.$results.scrollTop(0):0>s-a&&i.$results.scrollTop(l)}})),e.on("results:next",(function(){var t=i.getHighlightedResults(),e=i.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var r=e.eq(n);r.trigger("mouseenter");var o=i.$results.offset().top+i.$results.outerHeight(!1),a=r.offset().top+r.outerHeight(!1),s=i.$results.scrollTop()+a-o;0===n?i.$results.scrollTop(0):a>o&&i.$results.scrollTop(s)}})),e.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),e.on("results:message",(function(t){i.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-i.$results.scrollTop()+t.deltaY,r=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=i.$results.height();r?(i.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(e){var n=t(this),r=n.data("data");return"true"===n.attr("aria-selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:e,data:r}):i.trigger("close",{})):void i.trigger("select",{
10originalEvent:e,data:r})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(){var e=t(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:e,element:t(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),i=this.$results.offset().top,n=t.offset().top,r=this.$results.scrollTop()+(n-i),o=n-i;r-=2*t.outerHeight(!1),2>=e?this.$results.scrollTop(0):(o>this.$results.outerHeight()||0>o)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=n(e,i);null==o?i.style.display="none":"string"==typeof o?i.innerHTML=r(o):t(i).append(o)},i})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},n.prototype.bind=function(t){var e=this,n=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",(function(t){e.trigger("focus",t)})),this.$selection.on("blur",(function(t){e._handleBlur(t)})),this.$selection.on("keydown",(function(t){e.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){e.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){e.update(t.data)})),t.on("open",(function(){e.$selection.attr("aria-expanded","true"),e.$selection.attr("aria-owns",n),e._attachCloseHandler(t)})),t.on("close",(function(){e.$selection.attr("aria-expanded","fal
10se"),e.$selection.removeAttr("aria-activedescendant"),e.$selection.removeAttr("aria-owns"),e.$selection.focus(),e._detachCloseHandler(t)})),t.on("enable",(function(){e.$selection.attr("tabindex",e._tabindex)})),t.on("disable",(function(){e.$selection.attr("tabindex","-1")}))},n.prototype._handleBlur=function(e){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,(function(e){var i=t(e.target).closest(".select2");t(".select2.select2-container--open").each((function(){var e=t(this);this!=i[0]&&e.data("element").select2("close")}))}))},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},n})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,i){function n(){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},n.prototype.bind=function(t,e){var i=this;n.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",(function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(){})),this.$selection.on("blur",(function(){})),t.on("selection:update",(function(t){i.update(t.data)}))},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t("<span></span>")},n.prototype.update=function(t){if(0!==t.length){var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n),i.prop("title",e.title||e.text)}else this.clear()},n})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,i){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){r.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!r.options.get("disabled")){var i=t(this).parent().data("data");r.trigger("unselect",{originalEvent:e,data:i})}}))},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n<t.length;n++){var r=t[n],o=this.selectionContainer(),a=this.display(r,o);o.append(a),o.prop("title",r.title||r.text),o.data("data",r),e.push(o)}var s=this.$selection.find(".select2-selection__rendered");i.appendMany(s,e)}},n})),e.define("select2/selection/placeholder",["../utils"],(function(){function t(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},t.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||i)return t.call(this,e);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},t}
10)),e.define("select2/selection/allowClear",["jquery","../keys"],(function(t,e){function i(){}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){n._handleClear(t)})),e.on("keypress",(function(t){n._handleKeyboardClear(t,e)}))},i.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();for(var n=i.data("data"),r=0;r<n.length;r++){var o={data:n[r]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||(i.which==e.DELETE||i.which==e.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(e,i){if(e.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var n=t('<span class="select2-selection__clear">&times;</span>');n.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(n)}},i})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" id="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");var n=e.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),e.on("open",(function(){r.$search.trigger("focus")})),e.on("close",(function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),e.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),e.on("disable",(function(){r.$search.prop("disabled",!0)})),e.on("focus",(function(){r.$search.trigger("focus")})),e.on("results:focus",(function(t){r.$search.attr("aria-activedescendant",t.id)})),this.$selection.on("focusin",".select2-search--inline",(function(t){r.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){r._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented(),t.which===i.BACKSPACE&&""===r.$search.val()){var e=r.$searchContainer.prev(".select2-selection__choice");if(e.length>0){var n=e.data("data");r.searchRemoveChoice(n),t.preventDefault()}}}));var o=document.documentMode,a=o&&11>=o;this.$selection.on("input.searchcheck",".select2-search--inline",(function(){return a?void r.$selection.off("input.search input.searchcheck"):void r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(a&&"input"===t.type)r.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&r.handleSearch(t)}}))},n.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.focus()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";""!==this.$search.attr("placeholder")?t=this.$selection.find(".select2-selection__rendered").innerWidth():t=.75*(this.$search.val().length+1)+"em";this.$search.css("width",t)},n})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,i,n){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],a=["opening","closing","selecting","unselecting"];e.call(this,i,n),i.on("*",(function(e,i){if(-1!==t.inArray(e,o)){i=i||{};var n=t.Event("select2:"+e,{params:i});r.$element.trigger(n),-1!==t.inArray(e,a)&&(i.prevented=n.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var n=e(t);i._cache[t]=n}return new i(i._cache[t])},i})),e.define("select2/diacritics",[],(function(){return
vendor: 10,559 bytes, line 10
10{"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z"
10,"\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"}})),e.define("select2/data/base",["../utils"],(function(t){function e(){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){var n=e.id+"-result-";return(n+=t.generateChars(4))+(null!=i.id?"-"+i.id.toString():"-"+t.generateChars(4))},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,
10i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=[],n=this;this.$element.find(":selected").each((function(){var t=i(this),r=n.item(t);e.push(r)})),t(e)},n.prototype.select=function(t){var e=this;if(t.selected=!0,i(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var r=[];(t=[t]).push.apply(t,n);for(var o=0;o<t.length;o++){var a=t[o].id;-1===i.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("change")}));else{var n=t.id;this.$element.val(n),this.$element.trigger("change")}},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple"))return t.selected=!1,i(t.element).is("option")?(t.element.selected=!1,void this.$element.trigger("change")):void this.current((function(n){for(var r=[],o=0;o<n.length;o++){var a=n[o].id;a!==t.id&&-1===i.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("change")}))},n.prototype.bind=function(t){var e=this;this.container=t,t.on("select",(function(t){e.select(t.data)})),t.on("unselect",(function(t){e.unselect(t.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){i.removeData(this,"data")}))},n.prototype.query=function(t,e){var n=[],r=this;this.$element.children().each((function(){var e=i(this);if(e.is("option")||e.is("optgroup")){var o=r.item(e),a=r.matches(t,o);null!==a&&n.push(a)}})),e({results:n})},n.prototype.addOptions=function(t){e.appendMany(this.$element,t)},n.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup")).label=t.text:void 0!==(e=document.createElement("option")).textContent?e.textContent=t.text:e.innerText=t.text,t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var n=i(e),r=this._normalizeItem(t);return r.element=e,i.data(e,"data",r),n},n.prototype.item=function(t){var e={};if(null!=(e=i.data(t[0],"data")))return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var n=t.children("option"),r=[],o=0;o<n.length;o++){var a=i(n[o]),s=this.item(a);r.push(s)}e.children=r}return(e=this._normalizeItem(e)).element=t[0],i.data(t[0],"data",e),e},n.prototype._normalizeItem=function(t){i.isPlainObject(t)||(t={id:t,text:t});var e={selected:!1,disabled:!1};return null!=(t=i.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},e,t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,i){function n(t,e){var i=e.get("data")||[];n.__super__.constructor.call(this,t,e),this.addOptions(this.convertToOptions(i))}return e.Extend(n,t),n.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,i){return i.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){function n(t){return function(){return i(this).val()==t.id}}for(var r=this,o=this.$element.find("option"),a=o.map((function(){return r.item(i(this)).id})).get(),s=[],l=0;l<t.length;l++){var c=this._normalizeItem(t[l]);if(i.inArray(c.id,a)>=0){var h=o.filter(n(c)),d=this.item(h),u=i.extend(!0,{},d,c),p=this.option(u);h.replaceWith(p)}else{var f=this.option(c);if(c.children){var g=this.convertToOptions(c.children);e.appendMany(f,g)}s.push(f)}}return s},n})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){var r=i.ajax(t);return r.then(e),r.fail(n),r}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){function n(){var n=o.transport(o,(function(n){var o=r.processResults(n,t);r.options.get("debug")&&window.console&&console.error&&(o&&o.results&&i.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){}));r._request=n}var r=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&""!==t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,this.ajaxOptions.delay)):n()},n})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,i,n){var r=n.get("tags"),o=n.get("createTag");if(void 0!==o&&(this.createTag=o),e.call(this,i,n),t.isArray(r))for(var a=0;a<r.length;a++){var s=r[a],l=this._normalizeItem(s),c=this.option(l);this.$element.append(c)}}
10return e.prototype.query=function(t,e,i){function n(t,o){for(var a=t.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!n({results:l.children},!0);if(l.text===e.term||c)return!o&&(t.data=a,void i(t))}if(o)return!0;var h=r.createTag(e);if(null!=h){var d=r.option(h);d.attr("data-select2-tag",!0),r.addOptions([d]),r.insertTag(a,h)}t.results=a,i(t)}var r=this;return this._removeOldTags(),null==e.term||null!=e.page?void t.call(this,e,i):void t.call(this,e,n)},e.prototype.createTag=function(e,i){var n=t.trim(i.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(){(this._lastTag,this.$element.find("option[data-select2-tag]")).each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(t,e,i){function n(t){r.trigger("select",{data:t})}var r=this;e.term=e.term||"";var o=this.tokenizer(e,this.options,n);o.term!==e.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),e.term=o.term),t.call(this,e,i)},e.prototype.tokenizer=function(e,i,n,r){for(var o=n.get("tokenSeparators")||[],a=i.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var c=a[s];if(-1!==t.inArray(c,o)){var h=a.substr(0,s),d=l(t.extend({},i,{term:h}));null!=d?(r(d),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){return e.term=e.term||"",e.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):void t.call(this,e,i)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){return e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):void t.call(this,e,i)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){var n=this;this.current((function(r){var o=null!=r?r.length:0;return n.maximumSelectionLength>0&&o>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void t.call(n,e,i)}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},i.prototype.bind=function(){},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),
11e.define("select2/dropdown/search",["jquery","../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" id="select2-search__field1" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},e.prototype.bind=function(e,i,n){var r=this;e.call(this,i,n),this.$search.on("keydown",(function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){r.handleSearch(t)})),i.on("open",(function(){r.$search.attr("tabindex",0),r.$search.focus(),window.setTimeout((function(){r.$search.focus()}),0)})),i.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.val("")}
11)),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(r.showSearch(t)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}))},e.prototype.handleSearch=function(){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},e.prototype.showSearch=function(){return!0},e})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;n>=0;n--){var r=e[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,i,n){var r=this;e.call(this,i,n),i.on("query",(function(t){r.lastParams=t,r.loading=!0})),i.on("query:append",(function(t){r.lastParams=t,r.loading=!0})),this.$results.on("scroll",(function(){var e=t.contains(document.documentElement,r.$loadingMore[0]);!r.loading&&e&&(r.$results.offset().top+r.$results.outerHeight(!1)+50>=r.$loadingMore.offset().top+r.$loadingMore.outerHeight(!1)&&r.loadMore())}))},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function i(e,i,n){this.$dropdownParent=n.get("dropdownParent")||t(document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this,r=!1;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),r||(r=!0,e.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})))})),e.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>"),n=e.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,n){var r=this,o="scroll.
11select2."+n.id,a="resize.select2."+n.id,s="orientationchange.select2."+n.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(o,(function(){var e=t(this).data("select2-scroll-position");t(this).scrollTop(e.y)})),t(window).on(o+" "+a+" "+s,(function(){r._positionDropdown(),r._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var r="scroll.select2."+n.id,o="resize.select2."+n.id,a="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+o+" "+a)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=(this.$container.position(),this.$container.offset());o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},c=l.top<o.top-s.height,h=l.bottom>o.bottom+s.height,d={left:o.left,top:a.bottom};if("static"!==this.$dropdownParent[0].style.position){var u=this.$dropdownParent.offset();d.top-=u.top,d.left-=u.left}i||n||(r="below"),h||!c||i?!c&&h&&i&&(r="below"):r="above",("above"==r||i&&"below"!==r)&&(d.top=a.top-s.height),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(e){for(var i=0,n=0;n<e.length;n++){var r=e[n];r.children?i+=t(r.children):i++}return i}function e(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return e.prototype.showSearch=function(e,i){return!(t(i.data.results)<this.minimumResultsForSearch)&&e.call(this,i)},e})),e.define("select2/dropdown/selectOnClose",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",(function(){n._handleSelectOnClose()}))},t.prototype._handleSelectOnClose=function(){var t=this.getHighlightedResults();if(!(t.length<1)){var e=t.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},t})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(t){n._selectTriggered(t)})),e.on("unselect",(function(t){n._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&i.ctrlKey||this.trigger("close",{})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,i="Please delete "+e+" character";return 1!=e&&(i+="s"),i},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results\u2026"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching\u2026"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,
vendor: 2,797 bytes, line 11
11i,n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C,S,k,A,T,L){function D(){this.reset()}return D.prototype.apply=function(d){if(null==(d=t.extend({},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=p:d.dataAdapter=u,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,b)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),(null!=d.tokenSeparators||null!=d.tokenizer)&&(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var L=e(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,L)}if(null!=d.initSelection){var D=e(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,D)}}if(null==d.resultsAdapter&&(d.resultsAdapter=i,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,C)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,_)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,A))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=x;else{var E=c.Decorate(x,w);d.dropdownAdapter=E}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,k)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,T)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var P=e(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,P)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,S)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=r:d.selectionAdapter=n,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,o)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var I=e(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,I)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var M=d.language.split("-")[0];d.language=[d.language,M]}else d.language=[d.language];if(t.isArray(d.language)){var O=new h;d.language.push("en");for(var F=d.language,R=0;R<F.length;R++){var B=F[R],N={};try{N=h.loadPath(B)}catch(t){try{B=this.defaults.amdLanguageBase+B,N=h.loadPath(B)}catch(t){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+B+'" could not be automatically loaded. A fallback will be used instead.');continue}}O.extend(N)}d.translations=O}else{var j=h.loadPath(this.defaults.amdLanguageBase+"en"),$=new h(d.language);$.extend(j),d.translations=$}return d},D.prototype.reset=function(){function e(t){function e(t){return d[t]||t}
11return t.replace(/[^\u0000-\u007E]/g,e)}function i(n,r){if(""===t.trim(n.term))return r;if(r.children&&r.children.length>0){for(var o=t.extend(!0,{},r),a=r.children.length-1;a>=0;a--){null==i(n,r.children[a])&&o.children.splice(a,1)}return o.children.length>0?o:i(n,o)}var s=e(r.text).toUpperCase(),l=e(n.term).toUpperCase();return s.indexOf(l)>-1?r:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:L,matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},D.prototype.set=function(e,i){var n={};n[t.camelCase(e)]=i;var r=c._convertData(n);t.extend(this.defaults,r)},new D})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,i,n){function r(e,r){if(this.options=e,null!=r&&this.fromElement(r),this.options=i.apply(this.options),r&&r.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,o)}}return r.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var r={};r=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var o=e.extend(!0,{},r);for(var a in o=n._convertData(o))e.inArray(a,i)>-1||(e.isPlainObject(this.options[a])?e.extend(this.options[a],o[a]):this.options[a]=o[a]);return this},r.prototype.get=function(t){return this.options[t]},r.prototype.set=function(t,e){this.options[t]=e},r})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,i,n){var r=function(t,i){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),r.__super__.constructor.call(this);var n=t.attr("tabindex")||0;t.data("old-tabindex",n),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var a=this.render();this._placeContainer(a);var s=this.options.get("selectionAdapter");this.selection=new s(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var l=this.options.get("dropdownAdapter");this.dropdown=new l(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var h=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){h.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return i.Extend(r,i.Observable),r.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4))},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){var r=t.outerWidth(!1);return 0>=r?"auto":r+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,l=a.length;l>s;s+=1){var c=a[s].replace(/\s/g,"").match(i);if(null!==c&&c.length>=1)return c[1]}return null}return e},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this._sync=i.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n((function(i){t.each(i,e._sync)})),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",e._sync,!1)},r.prototype._registerDataEvents=function(){var t=this;
11this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerSelectionEvents=function(){var e=this,i=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,r){-1===t.inArray(n,i)&&e.trigger(n,r)}))},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(i){t.trigger("results:all",{data:i,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(i){t.trigger("results:append",{data:i,query:e})}))})),this.on("keypress",(function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&e.altKey?(t.close(),e.preventDefault()):i===n.ENTER?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype.trigger=function(t,e){var i=r.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in n){var o=n[t],a={prevented:!1,name:t,args:e};if(i.call(this,o,a),a.prevented)return void(e.prevented=!0)}i.call(this,t,e)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==t||0===t.length)&&(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var i=e[0];t.isArray(i)&&(i=t.map(i,(function(t){return t.toString()}))),this.$element.val(i).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},r})),e.define("select2/compat/utils",["jquery"],(function(t){function e(e,i,n){var r,o,a=[];(r=t.trim(e.attr("class")))&&t((r=""+r).split(/\s+/)).each((function(){0===this.indexOf("select2-")&&a.push(this)})),(r=t.trim(i.attr("class")))&&t((r=""+r).split(/\s+/)).each((function(){0!==this.indexOf("select2-")&&(null!=(o=n(this))&&a.push(o))})),e.attr("class",a.join(" "))}
11return{syncCssClasses:e}})),e.define("select2/compat/containerCss",["jquery","./utils"],(function(t,e){function i(){return null}function n(){}return n.prototype.render=function(n){var r=n.call(this),o=this.options.get("containerCssClass")||"";t.isFunction(o)&&(o=o(this.$element));var a=this.options.get("adaptContainerCssClass");if(a=a||i,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var s=a;a=function(t){var e=s(t);return null!=e?e+" "+t:t}}var l=this.options.get("containerCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(r,this.$element,a),r.css(l),r.addClass(o),r},n})),e.define("select2/compat/dropdownCss",["jquery","./utils"],(function(t,e){function i(){return null}function n(){}return n.prototype.render=function(n){var r=n.call(this),o=this.options.get("dropdownCssClass")||"";t.isFunction(o)&&(o=o(this.$element));var a=this.options.get("adaptDropdownCssClass");if(a=a||i,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var s=a;a=function(t){var e=s(t);return null!=e?e+" "+t:t}}var l=this.options.get("dropdownCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(r,this.$element,a),r.css(l),r.addClass(o),r},n})),e.define("select2/compat/initSelection",["jquery"],(function(t){function e(t,e,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=i.get("initSelection"),this._isInitialized=!1,t.call(this,e,i)}return e.prototype.current=function(e,i){var n=this;return this._isInitialized?void e.call(this,i):void this.initSelection.call(null,this.$element,(function(e){n._isInitialized=!0,t.isArray(e)||(e=[e]),i(e)}))},e})),e.define("select2/compat/inputData",["jquery"],(function(t){function e(t,e,i){this._currentData=[],this._valueSeparator=i.get("valueSeparator")||",","hidden"===e.prop("type")&&i.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),t.call(this,e,i)}return e.prototype.current=function(e,i){function n(e,i){var r=[];return e.selected||-1!==t.inArray(e.id,i)?(e.selected=!0,r.push(e)):e.selected=!1,e.children&&r.push.apply(r,n(e.children,i)),r}for(var r=[],o=0;o<this._currentData.length;o++){var a=this._currentData[o];r.push.apply(r,n(a,this.$element.val().split(this._valueSeparator)))}i(r)},e.prototype.select=function(e,i){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+i.id,this.$element.val(n),this.$element.trigger("change")}else this.current((function(e){t.map(e,(function(t){t.selected=!1}))})),this.$element.val(i.id),this.$element.trigger("change")},e.prototype.unselect=function(t,e){var i=this;e.selected=!1,this.current((function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r];e.id!=o.id&&n.push(o.id)}i.$element.val(n.join(i._valueSeparator)),i.$element.trigger("change")}))},e.prototype.query=function(t,e,i){for(var n=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r],a=this.matches(e,o);null!==a&&n.push(a)}i({results:n})},e.prototype.addOptions=function(e,i){var n=t.map(i,(function(e){return t.data(e[0],"data")}));this._currentData.push.apply(this._currentData,n)},e})),e.define("select2/compat/matcher",["jquery"],(function(t){function e(e){function i(i,n){var r=t.extend(!0,{},n);if(null==i.term||""===t.trim(i.term))return r;if(n.children){for(var o=n.children.length-1;o>=0;o--){var a=n.children[o];e(i.term,a.text,a)||r.children.splice(o,1)}if(r.children.length>0)return r}return e(i.term,n.text,n)?r:null}return i}return e})),e.define("select2/compat/query",[],(function(){function t(t,e,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),t.call(this,e,i)}
11return t.prototype.query=function(t,e,i){e.callback=i,this.options.get("query").call(null,e)},t})),e.define("select2/dropdown/attachContainer",[],(function(){function t(t,e,i){t.call(this,e,i)}return t.prototype.position=function(t,e,i){i.find(".dropdown-wrapper").append(e),e.addClass("select2-dropdown--below"),i.addClass("select2-container--below")},t})),e.define("select2/dropdown/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i);var n=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(n.join(" "),(function(t){t.stopPropagation()}))},t})),e.define("select2/selection/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i);var n=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(n.join(" "),(function(t){t.stopPropagation()}))},t})),function(i){"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(t)}((function(t){function e(e){var a=e||window.event,s=l.call(arguments,1),c=0,d=0,u=0,p=0,f=0,g=0;if((e=t.event.fix(a)).type="mousewheel","detail"in a&&(u=-1*a.detail),"wheelDelta"in a&&(u=a.wheelDelta),"wheelDeltaY"in a&&(u=a.wheelDeltaY),"wheelDeltaX"in a&&(d=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(d=-1*u,u=0),c=0===u?d:u,"deltaY"in a&&(c=u=-1*a.deltaY),"deltaX"in a&&(d=a.deltaX,0===u&&(c=-1*d)),0!==u||0!==d){if(1===a.deltaMode){var m=t.data(this,"mousewheel-line-height");c*=m,u*=m,d*=m}else if(2===a.deltaMode){var v=t.data(this,"mousewheel-page-height");c*=v,u*=v,d*=v}if(p=Math.max(Math.abs(u),Math.abs(d)),(!o||o>p)&&(o=p,n(a,p)&&(o/=40)),n(a,p)&&(c/=40,d/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/o),d=Math[d>=1?"floor":"ceil"](d/o),u=Math[u>=1?"floor":"ceil"](u/o),h.settings.normalizeOffset&&this.getBoundingClientRect){var b=this.getBoundingClientRect();f=e.clientX-b.left,g=e.clientY-b.top}return e.deltaX=d,e.deltaY=u,e.deltaFactor=o,e.offsetX=f,e.offsetY=g,e.deltaMode=0,s.unshift(e,c,d,u),r&&clearTimeout(r),r=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,s)}}function i(){o=null}function n(t,e){return h.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var r,o,a=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var c=a.length;c;)t.event.fixHooks[a[--c]]=t.event.mouseHooks;var h=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=s.length;i;)this.addEventListener(s[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",h.getLineHeight(this)),t.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=s.length;i;)this.removeEventListener(s[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],(function(t,e,i,n){if(null==t.fn.select2){var r=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=t.extend(!0,{},e);new i(t(this),n)})),this;var n;if("string"==typeof e)return this.each((function(){var i=t(this).data("select2");
11null==i&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2.");var r=Array.prototype.slice.call(arguments,1);n=i[e].apply(i,r)})),t.inArray(e,r)>-1?this:n;throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i})),{define:e.define,require:e.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i})),function(t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports){var e;try{e=require("jquery")}catch(t){e=null}module.exports=t(e)}else window&&(window.Slider=t(window.jQuery))}((function(t){var e;return function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function r(e,i){t.fn[e]=function(r){if("string"==typeof r){for(var a=n.call(arguments,1),s=0,l=this.length;l>s;s++){var c=this[s],h=t.data(c,e);if(h)if(t.isFunction(h[r])&&"_"!==r.charAt(0)){var d=h[r].apply(h,a);if(void 0!==d&&d!==h)return d}else o("no such method '"+r+"' for "+e+" instance");else o("cannot call methods on "+e+" prior to initialization; attempted to call '"+r+"'")}return this}var u=this.map((function(){var n=t.data(this,e);return n?(n.option(r),n._init()):(n=new i(this,r),
12t.data(this,e,n)),t(this)}));return!u||u.length>1?u:u[0]}}if(t){var o="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),r(t,e)},t.bridget}}var n=Array.prototype.slice;i(t)}
12(t),function(t){function i(e,i){function n(t,e){var i="data-slider-"+e.replace(/_/g,"-"),n=t.getAttribute(i);try{return JSON.parse(n)}catch(t){return n}}this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1},"string"==typeof e?this.element=document.querySelector(e):e instanceof HTMLElement&&(this.element=e),i=i||{};for(var o=Object.keys(this.defaultOptions),a=0;a<o.length;a++){var s=o[a],l=i[s];l=null!==(l=void 0!==l?l:n(this.element,s))?l:this.defaultOptions[s],this.options||(this.options={}),this.options[s]=l}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.tooltip_position="right";var c,h,d,u,p,f=this.element.style.width,g=!1,m=this.element.parentNode;if(this.sliderElem)g=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var v=document.createElement("div");v.className="slider-track",(h=document.createElement("div")).className="slider-track-low",(c=document.createElement("div")).className="slider-selection",(d=document.createElement("div")).className="slider-track-high",(u=document.createElement("div")).className="slider-handle min-slider-handle",u.setAttribute("role","slider"),u.setAttribute("aria-valuemin",this.options.min),u.setAttribute("aria-valuemax",this.options.max),(p=document.createElement("div")).className="slider-handle max-slider-handle",p.setAttribute("role","slider"),p.setAttribute("aria-valuemin",this.options.min),p.setAttribute("aria-valuemax",this.options.max),v.appendChild(h),v.appendChild(c),v.appendChild(d);var b=Array.isArray(this.options.labelledby);if(b&&this.options.labelledby[0]&&u.setAttribute("aria-labelledby",this.options.labelledby[0]),b&&this.options.labelledby[1]&&p.setAttribute("aria-labelledby",this.options.labelledby[1]),!b&&this.options.labelledby&&(u.setAttribute("aria-labelledby",this.options.labelledby),p.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(a=0;a<this.options.ticks.length;a++){var y=document.createElement("div");y.className="slider-tick",this.ticks.push(y),v.appendChild(y)}c.className+=" tick-slider-selection"}if(v.appendChild(u),v.appendChild(p),this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",a=0;a<this.options.ticks_labels.length;a++){var x=document.createElement("div"),w=0===this.options.ticks_positions.length,_=this.options.reversed&&w?this.options.ticks_labels.length-(a+1):a;x.className="slider-tick-label",x.innerHTML=this.options.ticks_labels[_],this.tickLabels.push(x),this.tickLabelContainer.appendChild(x)}var C=function(t){var e=document.createElement("div");e.className="tooltip-arrow";var i=document.createElement("div");i.className="tooltip-inner",t.appendChild(e),t.appendChild(i)},S=document.createElement("div");S.className="tooltip tooltip-main",S.setAttribute("role","presentation"),C(S);var k=document.createElement("div");k.className="tooltip tooltip-min",k.setAttribute("role","presentation"),C(k);var A=document.createElement("div");A.className="tooltip tooltip-max",A.setAttribute("role","presentation"),C(A),this.sliderElem.appendChild(v),this.sliderElem.appendChild(S),this.sliderElem.appendChild(k),this.sliderElem.appendChild(A),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),m.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(t&&(this.$element=t(this.element),this.$sliderElem=t(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),r[this.options.scale]&&(this.options.scale=r[this.options.scale]),!0===g&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","top","width","height"].forEach((function(t){this._removeProperty(this.trackLow,t),this._removeProperty(this.trackSelection,t),this._removeProperty(this.trackHigh,t)}),this),[this.handle1,this.handle2].forEach((function(t){this._removeProperty(t,"left"),this._removeProperty(t,"top")}
12),this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach((function(t){this._removeProperty(t,"left"),this._removeProperty(t,"top"),this._removeProperty(t,"margin-left"),this._removeProperty(t,"margin-top"),this._removeClass(t,"right"),this._removeClass(t,"top")}),this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=f,this.options.orientation="horizontal",this.stylePos="left",this.mousePos="pageX",this.sizePos="offsetWidth"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(this.options.max=Math.max.apply(Math,this.options.ticks),this.options.min=Math.min.apply(Math,this.options.ticks)),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=h||this.trackLow,this.trackSelection=c||this.trackSelection,this.trackHigh=d||this.trackHigh,"none"===this.options.selection&&(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")),this.handle1=u||this.handle1,this.handle2=p||this.handle2,!0===g)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),a=0;a<this.ticks.length;a++)this._removeClass(this.ticks[a],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),a=0;a<this.ticks.length;a++)this._addClass(this.ticks[a],this.options.handle);this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchCapable&&this.sliderElem.addEventListener("touchstart",this.mousedown,!1),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip?(this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide")):"always"===this.options.tooltip?(this._showTooltip(),this._alwaysShowTooltip=!0):(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1)),this.options.enabled?this.enable():this.disable()}var n={formatInvalidInputErrorMsg:function(t){return"Invalid input value '"+t+"' passed in"},callingContextNotSliderInstance:"Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"},r={linear:{toValue:function(t){var e=t/100*(this.options.max-this.options.min),i=!0;if(this.options.ticks_positions.length>0){for(var n,r,o,a=0,s=1;s<this.options.ticks_positions.length;s++)if(t<=this.options.ticks_positions[s]){n=this.options.ticks[s-1],o=this.options.ticks_positions[s-1],r=this.options.ticks[s],a=this.options.ticks_positions[s];break}e=n+(t-o)/(a-o)*(r-n),i=!1}var l=(i?this.options.min:0)+Math.round(e/this.options.step)*this.options.step;return l<this.options.min?this.options.min:l>this.options.max?this.options.max:l},toPercentage:function(t){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var e,i,n,r=0,o=0;o<this.options.ticks.length;o++)if(t<=this.options.ticks[o]){e=o>0?this.options.ticks[o-1]:0,n=o>0?this.options.ticks_positions[o-1]:0,i=this.options.ticks[o],r=this.options.ticks_positions[o];break}if(o>0)return n+(t-e)/(i-e)*(r-n)}return 100*(t-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(t){var e=0===this.options.min?0:Math.log(this.options.min),i=Math.log(this.options.max),n=Math.exp(e+(i-e)*t/100);return(n=this.options.min+Math.round((n-this.options.min)/this.options.step)*this.options.step)<this.options.min?this.options.min:n>this.options.max?this.options.max:n},toPercentage:function(t){if(this.options.max===this.options.min)return 0;var e=Math.log(this.options.max),i=0===this.options.min?0:Math.log(this.options.min);return 100*((0===t?0:Math.log(t))-i)/(e-i)}}};if(e=function(t,e){return i.call(this,t,e),this},e.prototype={_init:function(){},constructor:e,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,handle:"round",reversed:!1,enabled:!0,formatter:function(t){return Array.isArray(t)?t[0]+" : "+t[1]:t},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,scale:"linear",focus:!1,tooltip_position:null,labelledby:null},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]}
vendor: 10,769 bytes, line 12
12,setValue:function(t,e,i){t||(t=0);var n=this.getValue();this._state.value=this._validateInputValue(t);var r=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=r(this._state.value[0]),this._state.value[1]=r(this._state.value[1]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=r(this._state.value),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var o=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(o),!0===e&&this._trigger("slide",o),n!==o&&!0===i&&this._trigger("change",{oldValue:n,newValue:o}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),t&&(this._unbindJQueryEventHandlers(),this.$element.removeData("slider"))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(t,e){return this._bindNonQueryEventHandler(t,e),this},off:function(e,i){t?(this.$element.off(e,i),this.$sliderElem.off(e,i)):this._unbindNonQueryEventHandler(e,i)},getAttribute:function(t){return t?this.options[t]:this.options},setAttribute:function(t,e){return this.options[t]=e,this},refresh:function(){return this._removeSliderEventHandlers(),i.call(this,this.element,this.options),t&&t.data(this.element,"slider",this),this},relayout:function(){return this._layout(),this},_removeSliderEventHandlers:function(){this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.showTooltip&&(this.handle1.removeEventListener("focus",this.showTooltip,!1),this.handle2.removeEventListener("focus",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("blur",this.hideTooltip,!1),this.handle2.removeEventListener("blur",this.hideTooltip,!1)),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.mousedown,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(t,e){void 0===this.eventToCallbackMap[t]&&(this.eventToCallbackMap[t]=[]),this.eventToCallbackMap[t].push(e)},_unbindNonQueryEventHandler:function(t,e){var i=this.eventToCallbackMap[t];if(void 0!==i)for(var n=0;n<i.length;n++)if(i[n]===e){i.splice(n,1);break}},_cleanUpEventCallbacksMap:function(){for(var t=Object.keys(this.eventToCallbackMap),e=0;e<t.length;e++){var i=t[e];this.eventToCallbackMap[i]=null}},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"in"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"in"),this._addClass(this.tooltip_max,"in"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this.alwaysShowTooltip&&(this._removeClass(this.tooltip,"in"),this._removeClass(this.tooltip_min,"in"),this._removeClass(this.tooltip_max,"in")),this._state.over=!1},_layout:function(){var t,e;if(t=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=t[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),this.handle2.style[this.stylePos]=t[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var i="vertical"===this.options.orientation?"height":"width",n="vertical"===this.options.orientation?"marginTop":"marginLeft",r=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var o=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[n]=-r/2+"px"),o=this.tickLabelContainer.offsetHeight;else for(a=0;a<this.tickLabelContainer.childNodes.length;a++)this.tickLabelContainer.childNodes[a].offsetHeight>o&&(o=this.tickLabelContainer.childNodes[a].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=o+"px")}for(var a=0;a<this.options.ticks.length;a++){var s=this.options.ticks_positions[a]||this._toPercentage(this.options.ticks[a]);this.options.reversed&&(s=100-s),this.ticks[a].style[this.stylePos]=s+"%",this._removeClass(this.ticks[a],"in-selection"),this.options.range?s>=t[0]&&s<=t[1]&&this._addClass(this.ticks[a],"in-selection"):("after"===this.options.selection&&s>=t[0]||"before"===this.options.selection&&s<=t[0])&&this._addClass(this.ticks[a],"in-selection"),this.tickLabels[a]&&(this.tickLabels[a].style[i]=r+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[a]?(this.tickLabels[a].style.position="absolute",this.tickLabels[a].style[this.stylePos]=s+"%",this.tickLabels[a].style[n]=-r/2+"px"):"vertical"===this.options.orientation&&(this.tickLabels[a].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style.marginTop=this.sliderElem.offsetWidth/2*-1+"px"))}}if(this.options.range){e=this.options.formatter(this._state.value),this._setText(this.tooltipInner,e),this.tooltip.style[this.stylePos]=(t[1]+t[0])/2+"%","vertical"===this.options.orientation?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px"),"vertical"===this.options.orientation?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px");var l=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,l);var c=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,c),this.tooltip_min.style[this.stylePos]=t[0]+"%","vertical"===this.options.orientation?this._css(this.tooltip_min,"margin-top",-this.tooltip_min.offsetHeight/2+"px"):this._css(this.tooltip_min,"margin-left",-this.tooltip_min.offsetWidth/2+"px"),this.tooltip_max.style[this.stylePos]=t[1]+"%","vertical"===this.options.orientation?this._css(this.tooltip_max,"margin-top",-this.tooltip_max.offsetHeight/2+"px"):this._css(this.tooltip_max,"margin-left",-this.tooltip_max.offsetWidth/2+"px")}else e=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,e),this.tooltip.style[this.stylePos]=t[0]+"%","vertical"===this.options.orientation?this._css(this.tooltip,"margin-top",-this.tooltip.offsetHeight/2+"px"):this._css(this.tooltip,"margin-left",-this.tooltip.offsetWidth/2+"px");if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(t[0],t[1])+"%",this.trackSelection.style.top=Math.min(t[0],t[1])+"%",this.trackSelection.style.height=Math.abs(t[0]-t[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";else{this.trackLow.style.left="0",this.trackLow.style.width=Math.min(t[0],t[1])+"%",this.trackSelection.style.left=Math.min(t[0],t[1])+"%",this.trackSelection.style.width=Math.abs(t[0]-t[1])+"%",this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";var h=this.tooltip_min.getBoundingClientRect(),d=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?h.right>d.left?(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):h.right>d.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_resize:function(){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(t,e){t.style.removeProperty?t.style.removeProperty(e):t.style.removeAttribute(e)},_mousedown:function(t){if(!this._state.enabled)return!1;this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var e=this._getPercentage(t);if(this.options.range){var i=Math.abs(this._state.percentage[0]-e),n=Math.abs(this._state.percentage[1]-e);this._state.dragged=n>i?0:1}else this._state.dragged=0;this._state.percentage[this._state.dragged]=e,this._layout(),this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var r=this._calculateValue();return this._trigger("slideStart",r),this._setDataVal(r),this.setValue(r,!1,!0),this._pauseEvent(t),this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_triggerFocusOnHandle:function(t){0===t&&this.handle1.focus(),1===t&&this.handle2.focu
12s()},_keydown:function(t,e){if(!this._state.enabled)return!1;var i;switch(e.keyCode){case 37:case 40:i=-1;break;case 39:case 38:i=1}if(i){if(this.options.natural_arrow_keys){var n="vertical"===this.options.orientation&&!this.options.reversed,r="horizontal"===this.options.orientation&&this.options.reversed;(n||r)&&(i=-i)}var o=this._state.value[t]+i*this.options.step;return this.options.range&&(o=[t?this._state.value[0]:o,t?o:this._state.value[1]]),this._trigger("slideStart",o),this._setDataVal(o),this.setValue(o,!0,!0),this._setDataVal(o),this._trigger("slideStop",o),this._layout(),this._pauseEvent(e),!1}},_pauseEvent:function(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1},_mousemove:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e,this._layout();var i=this._calculateValue(!0);return this.setValue(i,!0,!0),!1},_adjustPercentageForRangeSliders:function(t){if(this.options.range){var e=this._getNumDigitsAfterDecimalPlace(t);e=e?e-1:0;var i=this._applyToFixedAndParseFloat(t,e);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],e)<i?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],e)>i&&(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0)}},_mouseup:function(){if(!this._state.enabled)return!1;this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var t=this._calculateValue(!0);return this._layout(),this._setDataVal(t),this._trigger("slideStop",t),!1},_calculateValue:function(t){var e;if(this.options.range?(e=[this.options.min,this.options.max],0!==this._state.percentage[0]&&(e[0]=this._toValue(this._state.percentage[0]),e[0]=this._applyPrecision(e[0])),100!==this._state.percentage[1]&&(e[1]=this._toValue(this._state.percentage[1]),e[1]=this._applyPrecision(e[1]))):(e=this._toValue(this._state.percentage[0]),e=parseFloat(e),e=this._applyPrecision(e)),t){for(var i=[e,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-e);r<=i[1]&&(i=[this.options.ticks[n],r])}if(i[1]<=this.options.ticks_snap_bounds)return i[0]}return e},_applyPrecision:function(t){var e=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(t,e)},_getNumDigitsAfterDecimalPlace:function(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},_applyToFixedAndParseFloat:function(t,e){var i=t.toFixed(e);return parseFloat(i)},_getPercentage:function(t){!this.touchCapable||"touchstart"!==t.type&&"touchmove"!==t.type||(t=t.touches[0]);var e=(t[this.mousePos]-this._state.offset[this.stylePos])/this._state.size*100;return e=Math.round(e/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(e=100-e),Math.max(0,Math.min(100,e))},_validateInputValue:function(t){if("number"==typeof t)return t;if(Array.isArray(t))return this._validateArray(t),t;throw new Error(n.formatInvalidInputErrorMsg(t))},_validateArray:function(t){for(var e=0;e<t.length;e++){var i=t[e];if("number"!=typeof i)throw new Error(n.formatInvalidInputErrorMsg(i))}},_setDataVal:function(t){this.element.setAttribute("data-value",t),this.element.setAttribute("value",t),this.element.value=t},_trigger:function(e,i){i=i||0===i?i:void 0;var n=this.eventToCallbackMap[e];if(n&&n.length)for(var r=0;r<n.length;r++){(0,n[r])(i)}t&&this._triggerJQueryEvent(e,i)},_triggerJQueryEvent:function(t,e){var i={type:t,value:e};this.$element.trigger(i),this.$sliderElem.trigger(i)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(t,e){void 0!==t.textContent?t.textContent=e:void 0!==t.innerText&&(t.innerText=e)},_removeClass:function(t,e){for(var i=e.split(" "),n=t.className,r=0;r<i.length;r++){var o=i[r],a=new RegExp("(?:\\s|^)"+o+"(?:\\s|$)");n=n.replace(a," ")}t.className=n.trim()},_addClass:function(t,e){for(var i=e.split(" "),n=t.className,r=0;r<i.length;r++){var o=i[r];new RegExp("(?:\\s|^)"+o+"(?:\\s|$)").test(n)||(n+=" "+o)}t.className=n.trim()},_offsetLeft:function(t){return t.getBoundingClientRect().left},_offsetTop:function(t){for(var e=t.offsetTop;(t=t.offsetParent)&&!isNaN(t.offsetTop);)e+=t.offsetTop,"BODY"!==t.tagName&&(e-=t.scrollTop);return e},_offset:function(t){return{left:this._offsetLeft(t),top:this._offsetTop(t)}},_css:function(e,i,n){if(t)t.style(e,i,n);else{var r=i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}));e.style[r]=n}},_toValue:function(t){return this.options.scale.toValue.apply(this,[t])},_toPercentage:function(t){return this.options.scale.toPercentage.apply(this,[t])},_setTooltipPosition:function(){var t=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var e=this.options.tooltip_position||"right",i="left"===e?"right":"left";t.forEach(function(t){this._addClass(t,e),t.style[i]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?t.forEach(function(t){this._addClass(t,"bottom"),t.style.top="22px"}.bind(this)):t.forEach(function(t){this._addClass(t,"top"),t.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))}}
12,t){var o=t.fn.slider?"bootstrapSlider":"slider";t.bridget(o,e)}}(t),e})),window.StripeIntegration={setupStripeForm:async function(t,e){let i=document.getElementById(`${e}_form`),n=i.getAttribute("data-stripe-card-form-final-form-id"),r=i.querySelector(`#${e}_setup_intent`).value,o=t.elements({locale:window.kolau_locale,clientSecret:r});o.create("payment",{layout:"tabs",terms:{applePay:"never",auBecsDebit:"never",bancontact:"never",card:"never",cashapp:"never",googlePay:"never",ideal:"never",paypal:"never",sepaDebit:"never",sofort:"never",usBankAccount:"never"}}).mount(`#${e}_stripe_elements`);let a=function(t){let i=document.querySelector(`#${e}_message`);i.textContent=t,i.classList.remove("hidden"),setTimeout((function(){i.classList.add("hidden"),i.textContent=""}),4e3)},s=function(t){let n=i.querySelector(`#${e}_submit_button`);t?(n.disabled=!0,i.classList.add("stripe-card-form--submitting")):(n.disabled=!1,i.classList.remove("stripe-card-form--submitting"))},l=async function(e){e.preventDefault(),s(!0);const{error:i}=await o.submit();i&&a(i);t.confirmSetup({elements:o,clientSecret:r,confirmParams:{return_url:"https://example.com/order/123/complete"},redirect:"if_required"}).then((function(t){let e=document.getElementById(`${n}`),i=e.querySelector("[name*=stripe_payment_method], [name=stripe_payment_method]");t.error?(a(t.error.message),s(!1)):"true"==e.getAttribute("data-remote")?(i.value=t.setupIntent.payment_method,e.requestSubmit()):(i.value=t.setupIntent.payment_method,e.submit())}))};i.addEventListener("submit",l)}},$((function(){var t=function(t){$("#subdomain_text").toggleClass("transparent-field","Subdomain"!=t.val()),$("#domain_text").toggleClass("transparent-field","Domain"!=t.val()),$("#domain_external_text").toggleClass("transparent-field","Domain_external"!=t.val());var e=t.closest(".card");$(".card").removeClass("selected-panel"),e.addClass("selected-panel")};$('[name="domain[domain_type]"]').change((function(e){t($(e.target))})),$("#domain_text, #subdomain_text, #domain_external_text").click((function(e){var i=$(e.target).closest(".card").find('[name="domain[domain_type]"]');$('[name="domain[domain_type]"]').prop("checked",!1),i.prop("checked",!0),t(i)})),$(".new_domain").on("submit",(function(){return $('.transparent-field[name="domain[name]"]').prop("disabled",!0),!0}))})),window.StripeIntegration.setupDomainRecovery=function(t){if(!t||t.dataset.initialized)return;t.dataset.initialized="true";const e=t.querySelector("[data-payment-error]");let i=!1;const n=()=>{e.textContent=t.dataset.errorMessage,e.classList.remove("d-none")},r=e=>{i=e,t.querySelectorAll("button").forEach((t=>{t.disabled=e}))},o=async(e,i)=>{const n=await fetch(e,{method:"POST",credentials:"same-origin",cache:"no-store",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-Token":document.querySelector('meta[name="csrf-token"]')?.content||""},body:JSON.stringify(Object.assign({domain_registration_id:t.dataset.registrationId,purchase_revision:t.dataset.revision,domain_price_reference:t.dataset.priceReference},i))});if(!n.ok)throw new Error("request_failed");return n.json()},a=t=>{const e=new URL(t,window.location.origin);if(e.origin!==window.location.origin)throw new Error("invalid_redirect");window.location.assign(e.href)},s=async e=>{let i=await o(t.dataset.purchaseUrl,{stripe_payment_method:e});if("requires_action"===i.state&&i.client_secret){if((await c.confirmCardPayment(i.client_secret)).error)throw new Error("authentication_failed");i=await o(t.dataset.purchaseUrl,{})}a(i.redirect_url)},l=async(t,o)=>{if(t.preventDefault(),!i){r(!0),e.classList.add("d-none");try{await o()}catch(t){n()}finally{r(!1)}}};let c;try{c=Stripe(t.dataset.publishableKey)}catch(t){return n(),void r(!0)}t.querySelector("[data-domain-saved-card]")?.addEventListener("submit",(t=>l(t,(()=>s(null)))));const h=t.querySelector("[data-domain-card]");if(h){const e=c.elements({locale:window.kolau_locale}).create("card");e.mount(h),t.querySelector("[data-domain-new-card]").addEventListener("submit",(i=>l(i,(async()=>{const i=await o(t.dataset.setupUrl,{}),n=await c.confirmCardSetup(i.client_secret,{payment_method:{card:e}});if(n.error||!n.setupIntent?.payment_method)throw new Error("setup_failed");await s(n.setupIntent.payment_method)})))),document.addEventListener("turbo:before-cache",(()=>e.destroy()),{once:!0})}const d=t.querySelector("[data-domain-authenticate]");d?.addEventListener("click",(t=>l(t,(async()=>
12{if((await c.confirmCardPayment(d.dataset.clientSecret)).error)throw new Error("authentication_failed");await s(null)}))))},$(document).ready((function(){var t=32,e=$(".cities"),i=$(".add-city"),n=1;$(i).click((function(i){i.preventDefault(),n<t&&(n++,$(e).append('<div class="form-group"><input type="text" name="setting[city_target]['+n+'] "  placeholder="City '+n+'" class="form-control citiesCounter"  /> <a href="#" class="remove-city">Remove</a></div>'))})),$(e).on("click",".remove-city",(function(t){t.preventDefault(),$(this).parent("div").remove(),$(".citiesCounter").each((function(t){n=t+1,$(this).attr({placeholder:"City "+n,name:"city_target "+n})}))})),$(document).on("click","form .remove_fields",(function(t){$(this).prev().val(1),$(this).closest(".nested_form").hide(),t.preventDefault()})),$(document).on("click","form .deep_remove_fields",(function(t){$(this).closest(".nested_form").not(".not_removable").remove(),t.preventDefault()})),$(document).on("click","form .add_fields",(function(t){var e,i
13;i=(new Date).getTime(),e=new RegExp($(this).data("id"),"g"),$(this).parent().before($(this).data("fields").replace(e,i)),t.preventDefault()}))})),function(t){"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,i){return e||(e=window),i||(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i,e,e.document)}:t(jQuery,window,document)}((function(t,e,i,n){function r(e){var i,n,o={};t.each(e,(function(t){(i=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(i[1]+" ")&&(n=t.replace(i[0],i[2].toLowerCase()),o[n]=t,"o"===i[1]&&r(e[t]))})),e._hungarianMap=o}function o(e,i,a){var s;e._hungarianMap||r(e),t.each(i,(function(r){(s=e._hungarianMap[r])===n||!a&&i[s]!==n||("o"===s.charAt(0)?(i[s]||(i[s]={}),t.extend(!0,i[s],i[r]),o(e[s],i[s],a)):i[s]=i[r])}))}function a(t){var e=zt.defaults.oLanguage,i=t.sZeroRecords;!t.sEmptyTable&&i&&"No data available in table"===e.sEmptyTable&&Mt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&i&&"Loading..."===e.sLoadingRecords&&Mt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&Ht(t)}function s(t){if(ue(t,"ordering","bSort"),ue(t,"orderMulti","bSortMulti"),ue(t,"orderClasses","bSortClasses"),ue(t,"orderCellsTop","bSortCellsTop"),ue(t,"order","aaSorting"),ue(t,"orderFixed","aaSortingFixed"),ue(t,"paging","bPaginate"),ue(t,"pagingType","sPaginationType"),ue(t,"pageLength","iDisplayLength"),ue(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),t=t.aoSearchCols)for(var e=0,i=t.length;e<i;e++)t[e]&&o(zt.models.oSearch,t[e])}function l(e){ue(e,"orderable","bSortable"),ue(e,"orderData","aDataSort"),ue(e,"orderSequence","asSorting"),ue(e,"orderDataType","sortDataType");var i=e.aDataSort;i&&!t.isArray(i)&&(e.aDataSort=[i])}function c(e){if(!zt.__browser){var i={};zt.__browser=i;var n=t("<div/>").css({position:"fixed",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=n.children(),o=r.children();i.barWidth=r[0].offsetWidth-r[0].clientWidth,i.bScrollOversize=100===o[0].offsetWidth&&100!==r[0].clientWidth,i.bScrollbarLeft=1!==Math.round(o.offset().left),i.bBounding=!!n[0].getBoundingClientRect().width,n.remove()}t.extend(e.oBrowser,zt.__browser),e.oScroll.iBarWidth=zt.__browser.barWidth}function h(t,e,i,r,o,a){var s,l=!1;for(i!==n&&(s=i,l=!0);r!==o;)t.hasOwnProperty(r)&&(s=l?e(s,t[r],r,t):t[r],l=!0,r+=a);return s}function d(e,n){var r=zt.defaults.column,o=e.aoColumns.length;r=t.extend({},zt.models.oColumn,r,{nTh:n||i.createElement("th"),sTitle:r.sTitle?r.sTitle:n?n.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o});e.aoColumns.push(r),(r=e.aoPreSearchCols)[o]=t.extend({},zt.models.oSearch,r[o]),u(e,o,t(n).data())}function u(e,i,r){i=e.aoColumns[i];
13var a=e.oClasses,s=t(i.nTh);if(!i.sWidthOrig){i.sWidthOrig=s.attr("width")||null;var c=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(i.sWidthOrig=c[1])}r!==n&&null!==r&&(l(r),o(zt.defaults.column,r),r.mDataProp!==n&&!r.mData&&(r.mData=r.mDataProp),r.sType&&(i._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),t.extend(i,r),Mt(i,r,"sWidth","sWidthOrig"),r.iDataSort!==n&&(i.aDataSort=[r.iDataSort]),Mt(i,r,"aDataSort"));var h=i.mData,d=k(h),u=i.mRender?k(i.mRender):null;r=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};i._bAttrSrc=t.isPlainObject(h)&&(r(h.sort)||r(h.type)||r(h.filter)),i.fnGetData=function(t,e,i){var r=d(t,e,n,i);return u&&e?u(r,e,t,i):r},i.fnSetData=function(t,e,i){return A(h)(t,e,i)},"number"!=typeof h&&(e._rowReadObject=!0),e.oFeatures.bSort||(i.bSortable=!1,s.addClass(a.sSortableNone)),e=-1!==t.inArray("asc",i.asSorting),r=-1!==t.inArray("desc",i.asSorting),i.bSortable&&(e||r)?e&&!r?(i.sSortingClass=a.sSortableAsc,i.sSortingClassJUI=a.sSortJUIAscAllowed):!e&&r?(i.sSortingClass=a.sSortableDesc,i.sSortingClassJUI=a.sSortJUIDescAllowed):(i.sSortingClass=a.sSortable,i.sSortingClassJUI=a.sSortJUI):(i.sSortingClass=a.sSortableNone,i.sSortingClassJUI="")}function p(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;mt(t);for(var i=0,n=e.length;i<n;i++)e[i].nTh.style.width=e[i].sWidth}(""!==(e=t.oScroll).sY||""!==e.sX)&&ft(t),Bt(t,null,"column-sizing",[t])}function f(t,e){var i=v(t,"bVisible");return"number"==typeof i[e]?i[e]:null}function g(e,i){var n=v(e,"bVisible");return-1!==(n=t.inArray(i,n))?n:null}function m(t){return v(t,"bVisible").length}function v(e,i){var n=[];return t.map(e.aoColumns,(function(t,e){t[i]&&n.push(e)})),n}function b(t){var e,i,r,o,a,s,l,c,h,d=t.aoColumns,u=t.aoData,p=zt.ext.type.detect;for(e=0,i=d.length;e<i;e++)if(h=[],!(l=d[e]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(r=0,o=p.length;r<o;r++){for(a=0,s=u.length;a<s&&(h[a]===n&&(h[a]=_(t,a,e,"type")),(c=p[r](h[a],t))||r===p.length-1)&&"html"!==c;a++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function y(e,i,r,o){var a,s,l,c,h,u,p=e.aoColumns;if(i)for(a=i.length-1;0<=a;a--){var f=(u=i[a]).targets!==n?u.targets:u.aTargets;for(t.isArray(f)||(f=[f]),s=0,l=f.length;s<l;s++)if("number"==typeof f[s]&&0<=f[s]){for(;p.length<=f[s];)d(e);o(f[s],u)}else if("number"==typeof f[s]&&0>f[s])o(p.length+f[s],u);else if("string"==typeof f[s])for(c=0,h=p.length;c<h;c++)("_all"==f[s]||t(p[c].nTh).hasClass(f[s]))&&o(c,u)}if(r)for(a=0,e=r.length;a<e;a++)o(a,r[a])}function x(e,i,r,o){var a=e.aoData.length,s=t.extend(!0,{},zt.models.oRow,{src:r?"dom":"data",idx:a});s._aData=i,e.aoData.push(s);for(var l=e.aoColumns,c=0,h=l.length;c<h;c++)l[c].sType=null;return e.aiDisplayMaster.push(a),(i=e.rowIdFn(i))!==n&&(e.aIds[i]=s),(r||!e.oFeatures.bDeferRender)&&I(e,a,r,o),a}function w(e,i){var n;return i instanceof t||(i=t(i)),i.map((function(t,i){return n=P(e,i),x(e,n.data,i,n.cells)}))}function _(t,e,i,r){var o=t.iDraw,a=t.aoColumns[i],s=t.aoData[e]._aData,l=a.sDefaultContent,c=a.fnGetData(s,r,{settings:t,row:e,col:i});if(c===n)return t.iDrawError!=o&&null===l&&(It(t,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+e+", column "+i,4),t.iDrawError=o),l;if(c!==s&&null!==c||null===l){if("function"==typeof c)return c.call(s)}else c=l;return null===c&&"display"==r?"":c}function C(t,e,i,n){t.aoColumns[i].fnSetData(t.aoData[e]._aData,n,{settings:t,row:e,col:i})}function S(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\./g,".")}))}function k(e){if(t.isPlainObject(e)){var i={};return t.each(e,(function(t,e){e&&(i[t]=k(e))})),function(t,e,r,o){var a=i[e]||i._;return a!==n?a(t,e,r,o):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,i,n,r){return e(t,i,n,r)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var r=function(e,i,o){var a,s;if(""!==o)for(var l=0,c=(s=S(o)).length;l<c;l++){if(o=s[l].match(pe),a=s[l].match(fe),o){if(s[l]=s[l].replace(pe,""),""!==s[l]&&(e=e[s[l]]),a=[],s.splice(0,l+1),s=s.join("."),t.isArray(e))for(l=0,c=e.length;l<c;
13l++)a.push(r(e[l],i,s));e=""===(e=o[0].substring(1,o[0].length-1))?a:a.join(e);break}if(a)s[l]=s[l].replace(fe,""),e=e[s[l]]();else{if(null===e||e[s[l]]===n)return n;e=e[s[l]]}}return e};return function(t,i){return r(t,i,e)}}return function(t){return t[e]}}function A(e){if(t.isPlainObject(e))return A(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,i,n){e(t,"set",i,n)};if("string"==typeof e&&(-1!==e.indexOf(".")||-1!==e.indexOf("[")||-1!==e.indexOf("("))){var i=function(e,r,o){var a;a=(o=S(o))[o.length-1];for(var s,l,c=0,h=o.length-1;c<h;c++){if(s=o[c].match(pe),l=o[c].match(fe),s){if(o[c]=o[c].replace(pe,""),e[o[c]]=[],(a=o.slice()).splice(0,c+1),s=a.join("."),t.isArray(r))for(l=0,h=r.length;l<h;l++)i(a={},r[l],s),e[o[c]].push(a);else e[o[c]]=r;return}l&&(o[c]=o[c].replace(fe,""),e=e[o[c]](r)),null!==e[o[c]]&&e[o[c]]!==n||(e[o[c]]={}),e=e[o[c]]}a.match(fe)?e[a.replace(fe,"")](r):e[a.replace(pe,"")]=r};return function(t,n){return i(t,n,e)}}return function(t,i){t[e]=i}}function T(t){return se(t.aoData,"_aData")}function L(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function D(t,e,i){for(var r=-1,o=0,a=t.length;o<a;o++)t[o]==e?r=o:t[o]>e&&t[o]--;-1!=r&&i===n&&t.splice(r,1)}function E(t,e,i,r){var o,a=t.aoData[e],s=function(i,n){for(;i.childNodes.length;)i.removeChild(i.firstChild);i.innerHTML=_(t,e,n,"display")};if("dom"!==i&&(i&&"auto"!==i||"dom"!==a.src)){var l=a.anCells;if(l)if(r!==n)s(l[r],r);else for(i=0,o=l.length;i<o;i++)s(l[i],i)}else a._aData=P(t,a,r,r===n?n:a._aData).data;if(a._aSortData=null,a._aFilterData=null,s=t.aoColumns,r!==n)s[r].sType=null;else{for(i=0,o=s.length;i<o;i++)s[i].sType=null;M(t,a)}}function P(e,i,r,o){var a,s,l,c=[],h=i.firstChild,d=0,u=e.aoColumns,p=e._rowReadObject,f=(o=o!==n?o:p?{}:[],function(t,e){if("string"==typeof t){var i=t.indexOf("@");-1!==i&&(i=t.substring(i+1),A(t)(o,e.getAttribute(i)))}}),g=function(e){r!==n&&r!==d||(s=u[d],l=t.trim(e.innerHTML),s&&s._bAttrSrc?(A(s.mData._)(o,l),f(s.mData.sort,e),f(s.mData.type,e),f(s.mData.filter,e)):p?(s._setter||(s._setter=A(s.mData)),s._setter(o,l)):o[d]=l),d++};if(h)for(;h;)"TD"!=(a=h.nodeName.toUpperCase())&&"TH"!=a||(g(h),c.push(h)),h=h.nextSibling;else for(h=0,a=(c=i.anCells).length;h<a;h++)g(c[h]);return(i=i.firstChild?i:i.nTr)&&(i=i.getAttribute("id"))&&A(e.rowId)(o,i),{data:o,cells:c}}function I(t,e,n,r){var o,a,s,l,c,h=t.aoData[e],d=h._aData,u=[];if(null===h.nTr){for(o=n||i.createElement("tr"),h.nTr=o,h.anCells=u,o._DT_RowIndex=e,M(t,h),l=0,c=t.aoColumns.length;l<c;l++)s=t.aoColumns[l],(a=n?r[l]:i.createElement(s.sCellType))._DT_CellIndex={row:e,column:l},u.push(a),n&&!s.mRender&&s.mData===l||(a.innerHTML=_(t,e,l,"display")),s.sClass&&(a.className+=" "+s.sClass),s.bVisible&&!n?o.appendChild(a):!s.bVisible&&n&&a.parentNode.removeChild(a),s.fnCreatedCell&&s.fnCreatedCell.call(t.oInstance,a,_(t,e,l),d,e,l);Bt(t,"aoRowCreatedCallback",null,[o,d,e])}h.nTr.setAttribute("role","row")}function M(e,i){var n=i.nTr,r=i._aData;if(n){var o=e.rowIdFn(r);o&&(n.id=o),r.DT_RowClass&&(o=r.DT_RowClass.split(" "),i.__rowc=i.__rowc?de(i.__rowc.concat(o)):o,t(n).removeClass(i.__rowc.join(" ")).addClass(r.DT_RowClass)),r.DT_RowAttr&&t(n).attr(r.DT_RowAttr),r.DT_RowData&&t(n).data(r.DT_RowData)}}function O(e){var i,n,r,o,a,s=e.nTHead,l=e.nTFoot,c=0===t("th, td",s).length,h=e.oClasses,d=e.aoColumns;for(c&&(o=t("<tr/>").appendTo(s)),i=0,n=d.length;i<n;i++)a=d[i],r=t(a.nTh).addClass(a.sClass),c&&r.appendTo(o),e.oFeatures.bSort&&(r.addClass(a.sSortingClass),!1!==a.bSortable&&(r.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),At(e,a.nTh,i))),a.sTitle!=r[0].innerHTML&&r.html(a.sTitle),jt(e,"header")(e,r,a,h);if(c&&j(e.aoHeader,s),t(s).find(">tr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(h.sHeaderTH),t(l).find(">tr>th, >tr>td").addClass(h.sFooterTH),null!==l)for(i=0,n=(e=e.aoFooter[0]).length;i<n;i++)(a=d[i]).nTf=e[i].cell,a.sClass&&t(a.nTf).addClass(a.sClass)}function F(e,i,r){var o,a,s,l,c=[],h=[],d=e.aoColumns.length;if(i){for(r===n&&(r=!1),o=0,a=i.length;o<a;o++){for(c[o]=i[o].slice(),c[o].nTr=i[o].nTr,s=d-1;0<=s;s--)!e.aoColumns[s].bVisible&&!r&&c[o].splice(s,1);h.push([])}for(o=0,a=c.length;o<a;o++){if(e=c[o].nTr)for(;
13s=e.firstChild;)e.removeChild(s);for(s=0,i=c[o].length;s<i;s++)if(l=d=1,h[o][s]===n){for(e.appendChild(c[o][s].cell),h[o][s]=1;c[o+d]!==n&&c[o][s].cell==c[o+d][s].cell;)h[o+d][s]=1,d++;for(;c[o][s+l]!==n&&c[o][s].cell==c[o][s+l].cell;){for(r=0;r<d;r++)h[o+r][s+l]=1;l++}t(c[o][s].cell).attr("rowspan",d).attr("colspan",l)}}}}function R(e){var i=Bt(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,i))ut(e,!1);else{i=[];var r=0,o=e.asStripeClasses,a=o.length,s=e.oLanguage,l=e.iInitDisplayStart,c="ssp"==$t(e),h=e.aiDisplay;e.bDrawing=!0,l!==n&&-1!==l&&(e._iDisplayStart=c?l:l>=e.fnRecordsDisplay()?0:l,e.iInitDisplayStart=-1);l=e._iDisplayStart;var d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,ut(e,!1);else if(c){if(!e.bDestroying&&!H(e))return}else e.iDraw++;if(0!==h.length)for(s=c?e.aoData.length:d,c=c?0:l;c<s;c++){var u=h[c],p=e.aoData[u];if(null===p.nTr&&I(e,u),u=p.nTr,0!==a){var f=o[r%a];p._sRowStripe!=f&&(t(u).removeClass(p._sRowStripe).addClass(f),p._sRowStripe=f)}Bt(e,"aoRowCallback",null,[u,p._aData,r,c]),i.push(u),r++}else r=s.sZeroRecords,1==e.iDraw&&"ajax"==$t(e)?r=s.sLoadingRecords:s.sEmptyTable&&0===e.fnRecordsTotal()&&(r=s.sEmptyTable),i[0]=t("<tr/>",{class:a?o[0]:""}).append(t("<td />",{valign:"top",colSpan:m(e),class:e.oClasses.sRowEmpty}).html(r))[0];Bt(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],T(e),l,d,h]),Bt(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],T(e),l,d,h]),(o=t(e.nTBody)).children().detach(),o.append(t(i)),Bt(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function B(t,e){var i=t.oFeatures,n=i.bFilter;i.bSort&&Ct(t),n?G(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,R(t),t._drawHold=!1}function N(e){var i=e.oClasses,n=t(e.nTable),r=(n=t("<div/>").insertBefore(n),e.oFeatures),o=t("<div/>",{id:e.sTableId+"_wrapper",class:i.sWrapper+(e.nTFoot?"":" "+i.sNoFooter)});e.nHolding=n[0],e.nTableWrapper=o[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var a,s,l,c,h,d,u=e.sDom.split(""),p=0;p<u.length;p++){if(a=null,"<"==(s=u[p])){if(l=t("<div/>")[0],"'"==(c=u[p+1])||'"'==c){for(h="",d=2;u[p+d]!=c;)h+=u[p+d],d++;"H"==h?h=i.sJUIHeader:"F"==h&&(h=i.sJUIFooter),-1!=h.indexOf(".")?(c=h.split("."),l.id=c[0].substr(1,c[0].length-1),l.className=c[1]):"#"==h.charAt(0)?l.id=h.substr(1,h.length-1):l.className=h,p+=d}o.append(l),o=t(l)}else if(">"==s)o=o.parent();else if("l"==s&&r.bPaginate&&r.bLengthChange)a=lt(e);else if("f"==s&&r.bFilter)a=U(e);else if("r"==s&&r.bProcessing)a=dt(e);else if("t"==s)a=pt(e);else if("i"==s&&r.bInfo)a=it(e);else if("p"==s&&r.bPaginate)a=ct(e);else if(0!==zt.ext.feature.length)for(d=0,c=(l=zt.ext.feature).length;d<c;d++)if(s==l[d].cFeature){a=l[d].fnInit(e);break}a&&((l=e.aanFeatures)[s]||(l[s]=[]),l[s].push(a),o.append(a))}n.replaceWith(o),e.nHolding=null}function j(e,i){var n,r,o,a,s,l,c,h,d,u,p=t(i).children("tr");for(e.splice(0,e.length),o=0,l=p.length;o<l;o++)e.push([]);for(o=0,l=p.length;o<l;o++)for(r=(n=p[o]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase()){for(h=(h=1*r.getAttribute("colspan"))&&0!==h&&1!==h?h:1,d=(d=1*r.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,a=0,s=e[o];s[a];)a++;for(c=a,u=1===h,s=0;s<h;s++)for(a=0;a<d;a++)e[o+a][c+s]={cell:r,unique:u},e[o+a].nTr=n}r=r.nextSibling}}function $(t,e,i){var n=[];i||(i=t.aoHeader,e&&j(i=[],e));e=0;for(var r=i.length;e<r;e++)for(var o=0,a=i[e].length;o<a;o++)!i[e][o].unique||n[o]&&t.bSortCellsTop||(n[o]=i[e][o].cell);return n}function V(e,i,n){if(Bt(e,"aoServerParams","serverParams",[i]),i&&t.isArray(i)){var r={},o=/(.*?)\[\]$/;t.each(i,(function(t,e){var i=e.name.match(o);i?(i=i[0],r[i]||(r[i]=[]),r[i].push(e.value)):r[e.name]=e.value})),i=r}var a,s=e.ajax,l=e.oInstance,c=function(t){Bt(e,null,"xhr",[e,t,e.jqXHR]),n(t)};if(t.isPlainObject(s)&&s.data){a=s.data;var h=t.isFunction(a)?a(i,e):a;i=t.isFunction(a)&&h?h:t.extend(!0,i,h);delete s.data}h={data:i,success:function(t){var i=t.error||t.sError;i&&It(e,0,i),e.json=t,c(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(i,n){var r=Bt(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,r)&&("parsererror"==n?It(e,0,"Invalid JSON response",1):4===i.readyState&&It(e,0,"Ajax error",7)),ut(e,!1)}}
13,e.oAjaxData=i,Bt(e,null,"preXhr",[e,i]),e.fnServerData?e.fnServerData.call(l,e.sAjaxSource,t.map(i,(function(t,e){return{name:e,value:t}})),c,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(h,{url:s||e.sAjaxSource})):t.isFunction(s)?e.jqXHR=s.call(l,i,c,e):(e.jqXHR=t.ajax(t.extend(h,s)),s.data=a)}function H(t){return!t.bAjaxDataGet||(t.iDraw++,ut(t,!0),V(t,W(t),(function(e){z(t,e)})),!1)}function W(e){var i,n,r,o,a=e.aoColumns,s=a.length,l=e.oFeatures,c=e.oPreviousSearch,h=e.aoPreSearchCols,d=[],u=_t(e);i=e._iDisplayStart,n=!1!==l.bPaginate?e._iDisplayLength:-1;var p=function(t,e){d.push({name:t,value:e})};p("sEcho",e.iDraw),p("iColumns",s),p("sColumns",se(a,"sName").join(",")),p("iDisplayStart",i),p("iDisplayLength",n);var f={draw:e.iDraw,columns:[],order:[],start:i,length:n,search:{value:c.sSearch,regex:c.bRegex}};for(i=0;i<s;i++)r=a[i],o=h[i],n="function"==typeof r.mData?"function":r.mData,f.columns.push({data:n,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),p("mDataProp_"+i,n),l.bFilter&&(p("sSearch_"+i,o.sSearch),p("bRegex_"+i,o.bRegex),p("bSearchable_"+i,r.bSearchable)),l.bSort&&p("bSortable_"+i,r.bSortable);return l.bFilter&&(p("sSearch",c.sSearch),p("bRegex",c.bRegex)),l.bSort&&(t.each(u,(function(t,e){f.order.push({column:e.col,dir:e.dir}),p("iSortCol_"+t,e.col),p("sSortDir_"+t,e.dir)})),p("iSortingCols",u.length)),null===(a=zt.ext.legacy.ajax)?e.sAjaxSource?d:f:a?d:f}function z(t,e){var i=q(t,e),r=e.sEcho!==n?e.sEcho:e.draw,o=e.iTotalRecords!==n?e.iTotalRecords:e.recordsTotal,a=e.iTotalDisplayRecords!==n?e.iTotalDisplayRecords:e.recordsFiltered;if(r){if(1*r<t.iDraw)return;t.iDraw=1*r}for(L(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(a,10),r=0,o=i.length;r<o;r++)x(t,i[r]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,R(t),t._bInitComplete||at(t,e),t.bAjaxDataGet=!0,ut(t,!1)}function q(e,i){var r=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==n?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===r?i.aaData||i[r]:""!==r?k(r)(i):i}function U(e){var n=e.oClasses,r=e.sTableId,o=e.oLanguage,a=e.oPreviousSearch,s=e.aanFeatures,l='<input type="search" class="'+n.sFilterInput+'"/>',c=(c=o.sSearch).match(/_INPUT_/)?c.replace("_INPUT_",l):c+l,h=(n=t("<div/>",{id:s.f?null:r+"_filter",class:n.sFilter}).append(t("<label/>").append(c)),s=function(){var t=this.value?this.value:"";t!=a.sSearch&&(G(e,{sSearch:t,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),e._iDisplayStart=0,R(e))},l=null!==e.searchDelay?e.searchDelay:"ssp"===$t(e)?400:0,t("input",n).val(a.sSearch).attr("placeholder",o.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",l?vt(s,l):s).bind("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",r));return t(e.nTable).on("search.dt.DT",(function(t,n){if(e===n)try{h[0]!==i.activeElement&&h.val(a.sSearch)}catch(t){}})),n[0]}function G(t,e,i){var r=t.oPreviousSearch,o=t.aoPreSearchCols,a=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive};if(b(t),"ssp"!=$t(t)){for(J(t,e.sSearch,i,e.bEscapeRegex!==n?!e.bEscapeRegex:e.bRegex,e.bSmart,e.bCaseInsensitive),a(e),e=0;e<o.length;e++)X(t,o[e].sSearch,e,o[e].bEscapeRegex!==n?!o[e].bEscapeRegex:o[e].bRegex,o[e].bSmart,o[e].bCaseInsensitive);Y(t)}else a(e);t.bFiltered=!0,Bt(t,null,"search",[t])}function Y(e){for(var i,n,r=zt.ext.search,o=e.aiDisplay,a=0,s=r.length;a<s;a++){for(var l=[],c=0,h=o.length;c<h;c++)n=o[c],i=e.aoData[n],r[a](e,i._aFilterData,n,i._aData,c)&&l.push(n);o.length=0,t.merge(o,l)}}function X(t,e,i,n,r,o){if(""!==e){var a=t.aiDisplay;for(n=K(e,n,r,o),r=a.length-1;0<=r;r--)e=t.aoData[a[r]]._aFilterData[i],n.test(e)||a.splice(r,1)}}function J(t,e,i,n,r,o){var a;n=K(e,n,r,o),r=t.oPreviousSearch.sSearch,o=t.aiDisplayMaster;if(0!==zt.ext.search.length&&(i=!0),a=Q(t),0>=e.length)t.aiDisplay=o.slice();else for((a||i||r.length>e.length||0!==e.indexOf(r)||t.bSorted)&&(t.aiDisplay=o.slice()),i=(e=t.aiDisplay).length-1;0<=i;i--)n.test(t.aoData[e[i]]._sFilterRow)||e.splice(i,1)}function K(e,i,n,r){return e=i?e:Z(e),n&&(e="^(?=.*?"+t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")})).join(")(?=.*?")+").*$"),RegExp(e,r?"i":"")}function Z(t){return t.replace(te,"\\$1")}function Q(t){var e,i,n,r,o,a,s,l,c=t.aoColumns,h=zt.ext.type.search;for(e=!1,i=0,r=t.aoData.length;i<r;i++)if(!(l=t.aoData[i])._aFilterData){for(a=[],n=0,o=c.length;n<o;n++)(e=c[n]).bSearchable?(s=_(t,i,n,"filter"),h[e.sType]&&(s=h[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(ge.innerHTML=s,s=me?ge.textContent:ge.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),a.push(s);l._aFilterData=a,l._sFilterRow=a.join("  "),e=!0}return e}function tt(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function et(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function it(e){var i=e.sTableId,n=e.aanFeatures.i,r=t("<div/>
13",{class:e.oClasses.sInfo,id:n?null:i+"_info"});return n||(e.aoDrawCallback.push({fn:nt,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",i+"_info")),r[0]}function nt(e){var i=e.aanFeatures.i;if(0!==i.length){var n=e.oLanguage,r=e._iDisplayStart+1,o=e.fnDisplayEnd(),a=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),l=s?n.sInfo:n.sInfoEmpty;s!==a&&(l+=" "+n.sInfoFiltered),l=rt(e,l+=n.sInfoPostFix),null!==(n=n.fnInfoCallback)&&(l=n.call(e.oInstance,e,r,o,a,s,l)),t(i).html(l)}}function rt(t,e){var i=t.fnFormatNumber,n=t._iDisplayStart+1,r=t._iDisplayLength,o=t.fnRecordsDisplay(),a=-1===r;return e.replace(/_START_/g,i.call(t,n)).replace(/_END_/g,i.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,i.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,i.call(t,o)).replace(/_PAGE_/g,i.call(t,a?1:Math.ceil(n/r))).replace(/_PAGES_/g,i.call(t,a?1:Math.ceil(o/r)))}function ot(t){var e,i,n,r=t.iInitDisplayStart,o=t.aoColumns;i=t.oFeatures;var a=t.bDeferLoading;if(t.bInitialised){for(N(t),O(t),F(t,t.aoHeader),F(t,t.aoFooter),ut(t,!0),i.bAutoWidth&&mt(t),e=0,i=o.length;e<i;e++)(n=o[e]).sWidth&&(n.nTh.style.width=wt(n.sWidth));Bt(t,null,"preInit",[t]),B(t),("ssp"!=(o=$t(t))||a)&&("ajax"==o?V(t,[],(function(i){var n=q(t,i);for(e=0;e<n.length;e++)x(t,n[e]);t.iInitDisplayStart=r,B(t),ut(t,!1),at(t,i)}),t):(ut(t,!1),at(t)))}else setTimeout((function(){ot(t)}),200)}function at(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&p(t),Bt(t,null,"plugin-init",[t,e]),Bt(t,"aoInitComplete","init",[t,e])}function st(t,e){var i=parseInt(e,10);t._iDisplayLength=i,Nt(t),Bt(t,null,"length",[t,i])}function lt(e){for(var i=e.oClasses,n=e.sTableId,r=e.aLengthMenu,o=(a=t.isArray(r[0]))?r[0]:r,a=(r=a?r[1]:r,t("<select/>",{name:n+"_length","aria-controls":n,class:i.sLengthSelect})),s=0,l=o.length;s<l;s++)a[0][s]=new Option(r[s],o[s]);var c=t("<div><label/></div>").addClass(i.sLength);return e.aanFeatures.l||(c[0].id=n+"_length"),c.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",a[0].outerHTML)),t("select",c).val(e._iDisplayLength).bind("change.DT",(function(){st(e,t(this).val()),R(e)})),t(e.nTable).bind("length.dt.DT",(function(i,n,r){e===n&&t("select",c).val(r)})),c[0]}function ct(e){var i=e.sPaginationType,n=zt.ext.pager[i],r="function"==typeof n,o=function(t){R(t)},a=(i=t("<div/>").addClass(e.oClasses.sPaging+i)[0],e.aanFeatures);return r||n.fnInit(e,i,o),a.p||(i.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(r){var e,i=t._iDisplayStart,s=t._iDisplayLength,l=t.fnRecordsDisplay(),c=(i=(c=-1===s)?0:Math.ceil(i/s),s=c?1:Math.ceil(l/s),l=n(i,s),0);for(e=a.p.length;c<e;c++)jt(t,"pageButton")(t,a.p[c],c,l,i,s)}else n.fnUpdate(t,o)},sName:"pagination"})),i}function ht(t,e,i){var n=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay();return 0===o||-1===r?n=0:"number"==typeof e?(n=e*r)>o&&(n=0):"first"==e?n=0:"previous"==e?0>(n=0<=r?n-r:0)&&(n=0):"next"==e?n+r<o&&(n+=r):"last"==e?n=Math.floor((o-1)/r)*r:It(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==n,t._iDisplayStart=n,e&&(Bt(t,null,"page",[t]),i&&R(t)),e}function dt(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function ut(e,i){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",i?"block":"none"),Bt(e,null,"processing",[e,i])}function pt(e){(d=t(e.nTable)).attr("role","grid");var i=e.oScroll;if(""===i.sX&&""===i.sY)return e.nTable;var n=i.sX,r=i.sY,o=e.oClasses,a=d.children("caption"),s=a.length?a[0]._captionSide:null,l=t(d[0].cloneNode(!1)),c=t(d[0].cloneNode(!1)),h=d.children("tfoot");h.length||(h=null),l=t("<div/>",{class:o.sScrollWrapper}).append(t("<div/>",{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:n?n?wt(n):null:"100%"}).append(t("<div/>",{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:i.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===s?a:null).append(d.children("thead"))))).append(t("<div/>",{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:n?wt(n):null}).append(d)),h&&l.append(t("<div/>",{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:n?n?wt(n):null:"100%"}).append(t("<div/>",{class:o.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?a:null).append(d.children("tfoot")))));var d,u=(d=l.children())[0],p=(o=d[1],h?d[2]:null);return n&&t(o).on("scroll.DT",(function(){var t=this.scrollLeft;u.scrollLeft=t,h&&(p.scrollLeft=t)})),t(o).css(r&&i.bCollapse?"max-height":"height",r),e.nScrollHead=u,e.nScrollBody=o,e.nScrollFoot=p,e.aoDrawCallback.push({fn:ft,sName:"scrolling"}),l[0]}function ft(e){var i,r,o,a,s,l=(d=e.oScroll).sX,c=d.sXInner,h=d.sY,d=d.iBarWidth,u=t(e.nScrollHead),g=u[0].style,m=(b=u.children("div"))[0].style,v=b.children("table"),b=e.nScrollBody,y=t(b),x=b.style,w=t(e.nScrollFoot).children("div"),_=w.children("table"),C=t(e.nTHead),S=t(e.nTable),k=S[0],A=k.style,T=e.nTFoot?t(e.nTFoot):null,
13L=e.oBrowser,D=L.bScrollOversize,E=[],P=[],I=[],M=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0};r=b.scrollHeight>b.clientHeight,e.scrollBarVis!==r&&e.scrollBarVis!==n?(e.scrollBarVis=r,p(e)):(e.scrollBarVis=r,S.children("thead, tfoot").remove(),a=C.clone().prependTo(S),C=C.find("tr"),r=a.find("tr"),a.find("th, td").removeAttr("tabindex"),T&&(o=T.clone().prependTo(S),i=T.find("tr"),o=o.find("tr")),l||(x.width="100%",u[0].style.width="100%"),t.each($(e,a),(function(t,i){s=f(e,t),i.style.width=e.aoColumns[s].sWidth})),T&&gt((function(t){t.style.width=""}),o),u=S.outerWidth(),""===l?(A.width="100%",D&&(S.find("tbody").height()>b.offsetHeight||"scroll"==y.css("overflow-y"))&&(A.width=wt(S.outerWidth()-d)),u=S.outerWidth()):""!==c&&(A.width=wt(c),u=S.outerWidth()),gt(M,r),gt((function(e){I.push(e.innerHTML),E.push(wt(t(e).css("width")))}),r),gt((function(t,e){t.style.width=E[e]}),C),t(r).height(0),T&&(gt(M,o),gt((function(e){P.push(wt(t(e).css("width")))}),o),gt((function(t,e){t.style.width=P[e]}),i),t(o).height(0)),gt((function(t,e){t.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+I[e]+"</div>",t.style.width=E[e]}),r),T&&gt((function(t,e){t.innerHTML="",t.style.width=P[e]}),o),S.outerWidth()<u?(i=b.scrollHeight>b.offsetHeight||"scroll"==y.css("overflow-y")?u+d:u,D&&(b.scrollHeight>b.offsetHeight||"scroll"==y.css("overflow-y"))&&(A.width=wt(i-d)),(""===l||""!==c)&&It(e,1,"Possible column misalignment",6)):i="100%",x.width=wt(i),g.width=wt(i),T&&(e.nScrollFoot.style.width=wt(i)),!h&&D&&(x.height=wt(k.offsetHeight+d)),l=S.outerWidth(),v[0].style.width=wt(l),m.width=wt(l),c=S.height()>b.clientHeight||"scroll"==y.css("overflow-y"),m[h="padding"+(L.bScrollbarLeft?"Left":"Right")]=c?d+"px":"0px",T&&(_[0].style.width=wt(l),w[0].style.width=wt(l),w[0].style[h]=c?d+"px":"0px"),y.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(b.scrollTop=0))}function gt(t,e,i){for(var n,r,o=0,a=0,s=e.length;a<s;){for(n=e[a].firstChild,r=i?i[a].firstChild:null;n;)1===n.nodeType&&(i?t(n,r,o):t(n,o),o++),n=n.nextSibling,r=i?r.nextSibling:null;a++}}function mt(i){var n,r,o=i.nTable,a=i.aoColumns,s=(w=i.oScroll).sY,l=w.sX,c=w.sXInner,h=a.length,d=v(i,"bVisible"),u=t("th",i.nTHead),g=o.getAttribute("width"),b=o.parentNode,y=!1,x=i.oBrowser,w=x.bScrollOversize;for((n=o.style.width)&&-1!==n.indexOf("%")&&(g=n),n=0;n<d.length;n++)null!==(r=a[d[n]]).sWidth&&(r.sWidth=bt(r.sWidthOrig,b),y=!0);if(w||!y&&!l&&!s&&h==m(i)&&h==u.length)for(n=0;n<h;n++)null!==(d=f(i,n))&&(a[d].sWidth=wt(u.eq(n).width()));else{(h=t(o).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var _=t("<tr/>").appendTo(h.find("tbody"));for(h.find("thead, tfoot").remove(),h.append(t(i.nTHead).clone()).append(t(i.nTFoot).clone()),h.find("tfoot th, tfoot td").css("width",""),u=$(i,h.find("thead")[0]),n=0;n<d.length;n++)r=a[d[n]],u[n].style.width=null!==r.sWidthOrig&&""!==r.sWidthOrig?wt(r.sWidthOrig):"",r.sWidthOrig&&l&&t(u[n]).append(t("<div/>").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(i.aoData.length)for(n=0;n<d.length;n++)r=a[y=d[n]],t(yt(i,y)).clone(!1).append(r.sContentPadding).appendTo(_);for(r=t("<div/>").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(h).appendTo(b),l&&c?h.width(c):l?(h.css("width","auto"),h.removeAttr("width"),h.width()<b.clientWidth&&g&&h.width(b.clientWidth)):s?h.width(b.clientWidth):g&&h.width(g),n=s=0;n<d.length;n++)c=(b=t(u[n])).outerWidth()-b.width(),s+=b=x.bBounding?Math.ceil(u[n].getBoundingClientRect().width):b.outerWidth(),a[d[n]].sWidth=wt(b-c);o.style.width=wt(s),r.remove()}g&&(o.style.width=wt(g)),!g&&!l||i._reszEvt||(o=function(){t(e).bind("resize.DT-"+i.sInstance,vt((function(){p(i)})))},w?setTimeout(o,1e3):o(),i._reszEvt=!0)}function vt(t,e){var i,r,o=e!==n?e:200;return function(){var e=this,a=+new Date,s=arguments;i&&a<i+o?(clearTimeout(r),r=setTimeout((function(){i=n,t.apply(e,s)}),o)):(i=a,t.apply(e,s))}}function bt(e,n){if(!e)return 0;var r=t("<div/>").css("width",wt(e)).appendTo(n||i.body),o=r[0].offsetWidth;return r.remove(),o}function yt(e,i){var n=xt(e,i);if(0>n)return null;var r=e.aoData[n];return r.nTr?r.anCells[i]:t("<td/>").html(_(e,n,i,"display"))[0]}function xt(t,e){for(var i,n=-1,r=-1,o=0,a=t.aoData.length;o<a;o++)(i=(i=(i=_(t,o,e,"display")+"").replace(ve,"")).replace(/&nbsp;/g," ")).length>n&&(n=i.length,r=o);return r}function wt(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function _t(e){var i,r,o,a,s,l,c=[],h=e.aoColumns;i=e.aaSortingFixed,r=t.isPlainObject(i);var d=[];for(o=function(e){e.length&&!t.isArray(e[0])?d.push(e):t.merge(d,e)},t.isArray(i)&&o(i),r&&i.pre&&o(i.pre),o(e.aaSorting),r&&i.post&&o(i.post),e=0;e<d.length;e++)for(i=0,r=(o=h[l=d[e][0]].aDataSort).length;i<r;i++)s=h[a=o[i]].sType||"string",d[e]._idx===n&&(d[e]._idx=t.inArray(d[e][1],h[a].asSorting)),c.push({src:l,col:a,dir:d[e][1],index:d[e]._idx,type:s,formatter:zt.ext.type.order[s+"-pre"]});return c}function Ct(t){var e,i,n,r,o=[],a=zt.ext.type.order,s=t.aoData,l=0,c=t.aiDisplayMaster;for(b(t),e=0,i=(r=_t(t)).length;e<i;e++)(n=r[e]).formatter&&l++,Lt(t,n.col);
13if("ssp"!=$t(t)&&0!==r.length){for(e=0,i=c.length;e<i;e++)o[c[e]]=e;l===r.length?c.sort((function(t,e){var i,n,a,l,c=r.length,h=s[t]._aSortData,d=s[e]._aSortData;for(a=0;a<c;a++)if(0!==(i=(i=h[(l=r[a]).col])<(n=d[l.col])?-1:i>n?1:0))return"asc"===l.dir?i:-i;return(i=o[t])<(n=o[e])?-1:i>n?1:0})):c.sort((function(t,e){var i,n,l,c,h=r.length,d=s[t]._aSortData,u=s[e]._aSortData;for(l=0;l<h;l++)if(i=d[(c=r[l]).col],n=u[c.col],0!==(i=(c=a[c.type+"-"+c.dir]||a["string-"+c.dir])(i,n)))return;return(i=o[t])<(n=o[e])?-1:i>n?1:0}))}t.bSorted=!0}function St(t){for(var e,i,n=t.aoColumns,r=_t(t),o=(t=t.oLanguage.oAria,0),a=n.length;o<a;o++){var s=(i=n[o]).asSorting;e=i.sTitle.replace(/<.*?>/g,"");var l=i.nTh;l.removeAttribute("aria-sort"),i.bSortable&&(0<r.length&&r[0].col==o?(l.setAttribute("aria-sort","asc"==r[0].dir?"ascending":"descending"),i=s[r[0].index+1]||s[0]):i=s[0],e+="asc"===i?t.sSortAscending:t.sSortDescending),l.setAttribute("aria-label",e)}}function kt(e,i,r,o){var a=e.aaSorting,s=e.aoColumns[i].asSorting,l=function(e,i){var r=e._idx;return r===n&&(r=t.inArray(e[1],s)),r+1<s.length?r+1:i?null:0};"number"==typeof a[0]&&(a=e.aaSorting=[a]),r&&e.oFeatures.bSortMulti?-1!==(r=t.inArray(i,se(a,"0")))?(null===(i=l(a[r],!0))&&1===a.length&&(i=0),null===i?a.splice(r,1):(a[r][1]=s[i],a[r]._idx=i)):(a.push([i,s[0],0]),a[a.length-1]._idx=0):a.length&&a[0][0]==i?(i=l(a[0]),a.length=1,a[0][1]=s[i],a[0]._idx=i):(a.length=0,a.push([i,s[0]]),a[0]._idx=0),
14B(e),"function"==typeof o&&o(e)}function At(t,e,i,n){var r=t.aoColumns[i];Ft(e,{},(function(e){!1!==r.bSortable&&(t.oFeatures.bProcessing?(ut(t,!0),setTimeout((function(){kt(t,i,e.shiftKey,n),"ssp"!==$t(t)&&ut(t,!1)}),0)):kt(t,i,e.shiftKey,n))}))}function Tt(e){var i,n,r=e.aLastSort,o=e.oClasses.sSortColumn,a=_t(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(s=0,i=r.length;s<i;s++)n=r[s].src,t(se(e.aoData,"anCells",n)).removeClass(o+(2>s?s+1:3));for(s=0,i=a.length;s<i;s++)n=a[s].src,t(se(e.aoData,"anCells",n)).addClass(o+(2>s?s+1:3))}e.aLastSort=a}function Lt(t,e){var i,n=t.aoColumns[e],r=zt.ext.order[n.sSortDataType];r&&(i=r.call(t.oInstance,t,e,g(t,e)));for(var o,a=zt.ext.type.order[n.sType+"-pre"],s=0,l=t.aoData.length;s<l;s++)(n=t.aoData[s])._aSortData||(n._aSortData=[]),(!n._aSortData[e]||r)&&(o=r?i[s]:_(t,s,e,"sort"),n._aSortData[e]=a?a(o):o)}function Dt(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var i={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:tt(e.oPreviousSearch),columns:t.map(e.aoColumns,(function(t,i){return{visible:t.bVisible,search:tt(e.aoPreSearchCols[i])}}))};Bt(e,"aoStateSaveParams","stateSaveParams",[e,i]),e.oSavedState=i,e.fnStateSaveCallback.call(e.oInstance,e,i)}}function Et(e){var i,r,o=e.aoColumns;if(e.oFeatures.bStateSave){var a=e.fnStateLoadCallback.call(e.oInstance,e);if(a&&a.time&&(i=Bt(e,"aoStateLoadParams","stateLoadParams",[e,a]),-1===t.inArray(!1,i)&&(!(0<(i=e.iStateDuration)&&a.time<+new Date-1e3*i)&&o.length===a.columns.length))){for(e.oLoadedState=t.extend(!0,{},a),a.start!==n&&(e._iDisplayStart=a.start,e.iInitDisplayStart=a.start),a.length!==n&&(e._iDisplayLength=a.length),a.order!==n&&(e.aaSorting=[],t.each(a.order,(function(t,i){e.aaSorting.push(i[0]>=o.length?[0,i[1]]:i)}))),a.search!==n&&t.extend(e.oPreviousSearch,et(a.search)),i=0,r=a.columns.length;i<r;i++){var s=a.columns[i];s.visible!==n&&(o[i].bVisible=s.visible),s.search!==n&&t.extend(e.aoPreSearchCols[i],et(s.search))}Bt(e,"aoStateLoaded","stateLoaded",[e,a])}}}function Pt(e){var i=zt.settings;return-1!==(e=t.inArray(e,se(i,"nTable")))?i[e]:null}function It(t,i,n,r){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,r&&(n+=". For more information about this error, please see http://datatables.net/tn/"+r),i)e.console&&console.log&&console.log(n);else if(i=(i=zt.ext).sErrMode||i.errMode,t&&Bt(t,null,"error",[t,r,n]),"alert"==i)alert(n);else{if("throw"==i)throw Error(n);"function"==typeof i&&i(t,r,n)}}function Mt(e,i,r,o){t.isArray(r)?t.each(r,(function(n,r){t.isArray(r)?Mt(e,i,r[0],r[1]):Mt(e,i,r)})):(o===n&&(o=r),i[r]!==n&&(e[o]=i[r]))}function Ot(e,i,n){var r,o;for(o in i)i.hasOwnProperty(o)&&(r=i[o],t.isPlainObject(r)?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],r)):e[o]=n&&"data"!==o&&"aaData"!==o&&t.isArray(r)?r.slice():r);return e}function Ft(e,i,n){t(e).bind("click.DT",i,(function(t){e.blur(),n(t)})).bind("keypress.DT",i,(function(t){13===t.which&&(t.preventDefault(),n(t))})).bind("selectstart.DT",(function(){return!1}))}function Rt(t,e,i,n){i&&t[e].push({fn:i,sName:n})}function Bt(e,i,n,r){var o=[];return i&&(o=t.map(e[i].slice().reverse(),(function(t){return t.fn.apply(e.oInstance,r)}))),null!==n&&(i=t.Event(n+".dt"),t(e.nTable).trigger(i,r),o.push(i.result)),o}function Nt(t){var e=t._iDisplayStart,i=t.fnDisplayEnd(),n=t._iDisplayLength;e>
14=i&&(e=i-n),e-=e%n,(-1===n||0>e)&&(e=0),t._iDisplayStart=e}function jt(e,i){var n=e.renderer,r=zt.ext.renderer[i];return t.isPlainObject(n)&&n[i]?r[n[i]]||r._:"string"==typeof n&&r[n]||r._}function $t(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Vt(t,e){var i=[],n=(i=Oe.numbers_length,Math.floor(i/2));return e<=i?i=ce(0,e):t<=n?((i=ce(0,i-2)).push("ellipsis"),i.push(e-1)):(t>=e-1-n?i=ce(e-(i-2),e):((i=ce(t-n+2,t+n-1)).push("ellipsis"),i.push(e-1)),i.splice(0,0,"ellipsis"),i.splice(0,0,0)),i.DT_el="span",i}function Ht(e){t.each({num:function(t){return Fe(t,e)},"num-fmt":function(t){return Fe(t,e,ee)},"html-num":function(t){return Fe(t,e,Kt)},"html-num-fmt":function(t){return Fe(t,e,Kt,ee)}},(function(t,i){qt.type.order[t+e+"-pre"]=i,t.match(/^html\-/)&&(qt.type.search[t+e]=qt.type.search.html)}))}function Wt(t){return function(){var e=[Pt(this[zt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return zt.ext.internal[t].apply(this,e)}}var zt,qt,Ut,Gt,Yt,Xt={},Jt=/[\r\n]/g,Kt=/<.*?>/g,Zt=/^[\w\+\-]/,Qt=/[\w\+\-]$/,te=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),ee=/[',$\xc2\xa3\xe2\u201a\xac\xc2\xa5%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,ie=function(t){return!t||!0===t||"-"===t},ne=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},re=function(t,e){return Xt[e]||(Xt[e]=RegExp(Z(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Xt[e],"."):t},oe=function(t,e,i){var n="string"==typeof t;return!!ie(t)||(e&&n&&(t=re(t,e)),i&&n&&(t=t.replace(ee,"")),!isNaN(parseFloat(t))&&isFinite(t))},ae=function(t,e,i){return!!ie(t)||((ie(t)||"string"==typeof t)&&!!oe(t.replace(Kt,""),e,i)||null)},se=function(t,e,i){var r=[],o=0,a=t.length;if(i!==n)for(;o<a;o++)t[o]&&t[o][e]&&r.push(t[o][e][i]);else for(;o<a;o++)t[o]&&r.push(t[o][e]);return r},le=function(t,e,i,r){var o=[],a=0,s=e.length;if(r!==n)for(;a<s;a++)t[e[a]][i]&&o.push(t[e[a]][i][r]);else for(;a<s;a++)o.push(t[e[a]][i]);return o},ce=function(t,e){var i,r=[];e===n?(e=0,i=t):(i=e,e=t);for(var o=e;o<i;o++)r.push(o);return r},he=function(t){for(var e=[],i=0,n=t.length;i<n;i++)t[i]&&e.push(t[i]);return e},de=function(t){var e,i,n,r=[],o=t.length,a=0;i=0;t:for(;i<o;i++){for(e=t[i],n=0;n<a;n++)if(r[n]===e)continue t;r.push(e),a++}return r},ue=function(t,e,i){t[e]!==n&&(t[i]=t[e])},pe=/\[.*?\]$/,fe=/\(\)$/,ge=t("<div>")[0],me=ge.textContent!==n,ve=/<.*?>/g;zt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new Ut(t?Pt(this[qt.iApiIndex]):this)},this.fnAddData=function(e,i){var r=this.api(!0),o=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?r.rows.add(e):r.row.add(e);return(i===n||i)&&r.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),i=e.settings()[0],r=i.oScroll;t===n||t?e.draw(!1):(""!==r.sX||""!==r.sY)&&ft(i)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===n||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,i){var r=this.api(!0),o=(t=r.rows(t)).settings()[0],a=o.aoData[t[0][0]];return t.remove(),e&&e.call(this,o,a),(i===n||i)&&r.draw(),a},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,i,r,o,a){o=this.api(!0),null===e||e===n?o.search(t,i,r,a):o.column(e).search(t,i,r,a),o.draw()},this.fnGetData=function(t,e){var i=this.api(!0);if(t!==n){var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==n||"td"==r||"th"==r?i.cell(t,e).data():i.row(t).data()||null}return i.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==n?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),i=t.nodeName.toUpperCase();return"TR"==i?e.row(t).index():"TD"==i||"TH"==i?[(t=e.cell(t).index()).row,t.columnVisible,t.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,i){return this.api(!0).row(t).child(e,i).show().child()[0]},this.fnPageChange=function(t,e){var i=this.api(!0).page(t);(e===n||e)&&i.draw(!1)}
14,this.fnSetColumnVis=function(t,e,i){t=this.api(!0).column(t).visible(e),(i===n||i)&&t.columns.adjust().draw()},this.fnSettings=function(){return Pt(this[qt.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,i){this.api(!0).order.listener(t,e,i)},this.fnUpdate=function(t,e,i,r,o){var a=this.api(!0);return i===n||null===i?a.row(e).data(t):a.cell(e,i).data(t),(o===n||o)&&a.columns.adjust(),(r===n||r)&&a.draw(),0},this.fnVersionCheck=qt.fnVersionCheck;var i=this,r=e===n,h=this.length;for(var p in r&&(e={}),this.oApi=this.internal=qt.internal,zt.ext.internal)p&&(this[p]=Wt(p));return this.each((function(){var p,f={},g=(f=1<h?Ot(f,e,!0):e,0),m=this.getAttribute("id"),v=!1,b=zt.defaults,_=t(this);if("table"!=this.nodeName.toLowerCase())It(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{s(b),l(b.column),o(b,b,!0),o(b.column,b.column,!0),o(b,t.extend(f,_.data()));var C=zt.settings;g=0;for(p=C.length;g<p;g++){var S=C[g];if(S.nTable==this||S.nTHead.parentNode==this||S.nTFoot&&S.nTFoot.parentNode==this){if(g=f.bRetrieve!==n?f.bRetrieve:b.bRetrieve,r||g)return S.oInstance;if(f.bDestroy!==n?f.bDestroy:b.bDestroy){S.oInstance.fnDestroy();break}return void It(S,0,"Cannot reinitialise DataTable",3)}if(S.sTableId==this.id){C.splice(g,1);break}}null!==m&&""!==m||(this.id=m="DataTables_Table_"+zt.ext._unique++);var A=t.extend(!0,{},zt.models.oSettings,{sDestroyWidth:_[0].style.width,sInstance:m,sTableId:m});A.nTable=this,A.oApi=i.internal,A.oInit=f,C.push(A),A.oInstance=1===i.length?i:_.dataTable(),s(f),f.oLanguage&&a(f.oLanguage),f.aLengthMenu&&!f.iDisplayLength&&(f.iDisplayLength=t.isArray(f.aLengthMenu[0])?f.aLengthMenu[0][0]:f.aLengthMenu[0]),f=Ot(t.extend(!0,{},b),f),Mt(A.oFeatures,f,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Mt(A,f,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),Mt(A.oScroll,f,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Mt(A.oLanguage,f,"fnInfoCallback"),Rt(A,"aoDrawCallback",f.fnDrawCallback,"user"),Rt(A,"aoServerParams",f.fnServerParams,"user"),Rt(A,"aoStateSaveParams",f.fnStateSaveParams,"user"),Rt(A,"aoStateLoadParams",f.fnStateLoadParams,"user"),Rt(A,"aoStateLoaded",f.fnStateLoaded,"user"),Rt(A,"aoRowCallback",f.fnRowCallback,"user"),Rt(A,"aoRowCreatedCallback",f.fnCreatedRow,"user"),Rt(A,"aoHeaderCallback",f.fnHeaderCallback,"user"),Rt(A,"aoFooterCallback",f.fnFooterCallback,"user"),Rt(A,"aoInitComplete",f.fnInitComplete,"user"),Rt(A,"aoPreDrawCallback",f.fnPreDrawCallback,"user"),A.rowIdFn=k(f.rowId),c(A),m=A.oClasses,f.bJQueryUI?(t.extend(m,zt.ext.oJUIClasses,f.oClasses),f.sDom===b.sDom&&"lfrtip"===b.sDom&&(A.sDom='<"H"lfr>t<"F"ip>'),A.renderer?t.isPlainObject(A.renderer)&&!A.renderer.header&&(A.renderer.header="jqueryui"):A.renderer="jqueryui"):t.extend(m,zt.ext.classes,f.oClasses),_.addClass(m.sTable),A.iInitDisplayStart===n&&(A.iInitDisplayStart=f.iDisplayStart,A._iDisplayStart=f.iDisplayStart),null!==f.iDeferLoading&&(A.bDeferLoading=!0,g=t.isArray(f.iDeferLoading),A._iRecordsDisplay=g?f.iDeferLoading[0]:f.iDeferLoading,A._iRecordsTotal=g?f.iDeferLoading[1]:f.iDeferLoading);var T=A.oLanguage;t.extend(!0,T,f.oLanguage),""!==T.sUrl&&(t.ajax({dataType:"json",url:T.sUrl,success:function(e){a(e),o(b.oLanguage,e),t.extend(!0,T,e),ot(A)},error:function(){ot(A)}}),v=!0),null===f.asStripeClasses&&(A.asStripeClasses=[m.sStripeOdd,m.sStripeEven]);g=A.asStripeClasses;var L=_.children("tbody").find("tr").eq(0);if(-1!==t.inArray(!0,t.map(g,(function(t){return L.hasClass(t)})))&&(t("tbody tr",this).removeClass(g.join(" ")),A.asDestroyStripes=g.slice()),C=[],0!==(g=this.getElementsByTagName("thead")).length&&(j(A.aoHeader,g[0]),C=$(A)),null===f.aoColumns)for(S=[],g=0,p=C.length;g<p;g++)S.push(null);else S=f.aoColumns;for(g=0,p=S.length;g<p;g++)d(A,C?C[g]:null);if(y(A,f.aoColumnDefs,S,(function(t,e){u(A,t,e)})),L.length){var D=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(L[0]).children("th, td").each((function(t,e){var i=A.aoColumns[t];if(i.mData===t){var r=D(e,"sort")||D(e,"order"),o=D(e,"filter")||D(e,"search");null===r&&null===o||(i.mData={_:t+".display",sort:null!==r?t+".@data-"+r:n,type:null!==r?t+".@data-"+r:n,filter:null!==o?t+".@data-"+o:n},u(A,t))}}))}var E=A.oFeatures;if(f.bStateSave&&(E.bStateSave=!0,Et(A,f),Rt(A,"aoDrawCallback",Dt,"state_save")),f.aaSorting===n)for(g=0,p=(C=A.aaSorting).length;g<p;g++)C[g][1]=A.aoColumns[g].asSorting[0];if(Tt(A),E.bSort&&Rt(A,"aoDrawCallback",(function(){if(A.bSorted){var e=_t(A),i={};t.each(e,(function(t,e){i[e.src]=e.dir})),Bt(A,null,"order",[A,e,i]),St(A)}})),Rt(A,"aoDrawCallback",(function(){(A.bSorted||"ssp"===$t(A)||E.bDeferRender)&&Tt(A)}
14),"sc"),g=_.children("caption").each((function(){this._captionSide=_.css("caption-side")})),0===(p=_.children("thead")).length&&(p=t("<thead/>").appendTo(this)),A.nTHead=p[0],0===(p=_.children("tbody")).length&&(p=t("<tbody/>").appendTo(this)),A.nTBody=p[0],0===(p=_.children("tfoot")).length&&0<g.length&&(""!==A.oScroll.sX||""!==A.oScroll.sY)&&(p=t("<tfoot/>").appendTo(this)),0===p.length||0===p.children().length?_.addClass(m.sNoFooter):0<p.length&&(A.nTFoot=p[0],j(A.aoFooter,A.nTFoot)),f.aaData)for(g=0;g<f.aaData.length;g++)x(A,f.aaData[g]);else(A.bDeferLoading||"dom"==$t(A))&&w(A,t(A.nTBody).children("tr"));A.aiDisplay=A.aiDisplayMaster.slice(),A.bInitialised=!0,!1===v&&ot(A)}})),i=null,this};var be=[],ye=Array.prototype,xe=function(e){var i,n,r=zt.settings,o=t.map(r,(function(t){return t.nTable}));return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(i=t.inArray(e,o))?[r[i]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=t(e):e instanceof t&&(n=e),n?n.map((function(){return-1!==(i=t.inArray(this,o))?r[i]:null})).toArray():void 0):[]};Ut=function(e,i){if(!(this instanceof Ut))return new Ut(e,i);var n=[],r=function(t){(t=xe(t))&&(n=n.concat(t))};if(t.isArray(e))for(var o=0,a=e.length;o<a;o++)r(e[o]);else r(e);this.context=de(n),i&&t.merge(this,i),this.selector={rows:null,cols:null,opts:null},Ut.extend(this,this,be)},zt.Api=Ut,t.extend(Ut.prototype,{any:function(){return 0!==this.count()},concat:ye.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,i=this.length;e<i;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new Ut(e[t],this[t]):null},filter:function(t){var e=[];if(ye.filter)e=ye.filter.call(this,t,this);else for(var i=0,n=this.length;i<n;i++)t.call(this,this[i],i,this)&&e.push(this[i]);return new Ut(this.context,e)},flatten:function(){var t=[];return new Ut(this.context,t.concat.apply(t,this.toArray()))},join:ye.join,indexOf:ye.indexOf||function(t,e){for(var i=e||0,n=this.length;i<n;i++)if(this[i]===t)return i;return-1},iterator:function(t,e,i,r){var o,a,s,l,c,h,d,u=[],p=this.context,f=this.selector;for("string"==typeof t&&(r=i,i=e,e=t,t=!1),a=0,s=p.length;a<s;a++){var g=new Ut(p[a]);if("table"===e)(o=i.call(g,p[a],a))!==n&&u.push(o);else if("columns"===e||"rows"===e)(o=i.call(g,p[a],this[a],a))!==n&&u.push(o);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[a],"column-rows"===e&&(h=ke(p[a],f.opts)),l=0,c=d.length;l<c;l++)o=d[l],(o="cell"===e?i.call(g,p[a],o.row,o.column,a,l):i.call(g,p[a],o,a,l,h))!==n&&u.push(o)}return u.length||r?((e=(t=new Ut(p,t?u.concat.apply([],u):u)).selector).rows=f.rows,e.cols=f.cols,e.opts=f.opts,t):this},lastIndexOf:ye.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(ye.map)e=ye.map.call(this,t,this);else for(var i=0,n=this.length;i<n;i++)e.push(t.call(this,this[i],i));return new Ut(this.context,e)},pluck:function(t){return this.map((function(e){return e[t]}))},pop:ye.pop,push:ye.push,reduce:ye.reduce||function(t,e){return h(this,t,e,0,this.length,1)},reduceRight:ye.reduceRight||function(t,e){return h(this,t,e,this.length-1,-1,-1)},reverse:ye.reverse,selector:null,shift:ye.shift,sort:ye.sort,splice:ye.splice,toArray:function(){return ye.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new Ut(this.context,de(this))},unshift:ye.unshift}),Ut.extend=function(e,i,n){if(n.length&&i&&(i instanceof Ut||i.__dt_wrapper)){var r,o,a,s=function(t,e,i){return function(){var n=e.apply(t,arguments);return Ut.extend(n,n,i.methodExt),n}};for(r=0,o=n.length;r<o;r++)i[(a=n[r]).name]="function"==typeof a.val?s(e,a.val,a):t.isPlainObject(a.val)?{}:a.val,i[a.name].__dt_wrapper=!0,Ut.extend(e,i[a.name],a.propExt)}},Ut.register=Gt=function(e,i){if(t.isArray(e))for(var n=0,r=e.length;n<r;n++)Ut.register(e[n],i);else{var o,a,s=e.split("."),l=be;for(n=0,r=s.length;n<r;n++){var c;o=(a=-1!==s[n].indexOf("()"))?s[n].replace("()",""):s[n];t:{c=0;for(var h=l.length;c<h;c++)if(l[c].name===o){c=l[c];break t}c=null}c||(c={name:o,val:{},methodExt:[],propExt:[]},l.push(c)),n===r-1?c.val=i:l=a?c.methodExt:c.propExt}}},Ut.registerPlural=Yt=function(e,i,r){Ut.register(e,r),Ut.register(i,(function(){var e=r.apply(this,arguments);return e===this?this:e instanceof Ut?e.length?t.isArray(e[0])?new Ut(e.context,e[0]):e[0]:n:e}))},Gt("tables()",(function(e){var i;if(e){i=Ut;var n=this.context;if("number"==typeof e)e=[n[e]];else{var r=t.map(n,(function(t){return t.nTable}));e=t(r).filter(e).map((function(){var e=t.inArray(this,r);return n[e]})).toArray()}i=new i(e)}else i=this;return i})),Gt("table()",(function(t){var e=(t=this.tables(t)).context;return e.length?new Ut(e[0]):t})),Yt("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),Yt("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),Yt("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),Yt("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),Yt("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),Gt("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?R(e):("string"==typeof t&&(t="full-hold"!==t),B(e,!1===t))}))})),Gt("page()",(function(t){return t===n?this.page.info().page:this.iterator("table",(function(e){ht(e,t)}))})),Gt("page.info()",(function(){if(0===this.context.length)return n;var t=this.context[0],e=t._iDisplayStart,i=t.oFeatures.bPaginate?t._iDisplayLength:-1,r=t.fnRecordsDisplay(),o=-1===i;return{page:o?0:Math.floor(e/i),pages:o?1:Math.ceil(r/i),start:e,end:t.fnDisplayEnd(),length:i,recordsTotal:t.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===$t(t)}})),Gt("page.len()",(function(t){return t===n?0!==this.context.length?this.context[0]._iDisplayLength:n:this.iterator("table",(function(e){st(e,t)}))}));
14var we=function(t,e,i){if(i){var n=new Ut(t);n.one("draw",(function(){i(n.ajax.json())}))}if("ssp"==$t(t))B(t,e);else{ut(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),V(t,[],(function(i){L(t);for(var n=0,r=(i=q(t,i)).length;n<r;n++)x(t,i[n]);B(t,e),ut(t,!1)}))}};Gt("ajax.json()",(function(){var t=this.context;if(0<t.length)return t[0].json})),Gt("ajax.params()",(function(){var t=this.context;if(0<t.length)return t[0].oAjaxData})),Gt("ajax.reload()",(function(t,e){return this.iterator("table",(function(i){we(i,!1===e,t)}))})),Gt("ajax.url()",(function(e){var i=this.context;return e===n?0===i.length?n:(i=i[0]).ajax?t.isPlainObject(i.ajax)?i.ajax.url:i.ajax:i.sAjaxSource:this.iterator("table",(function(i){t.isPlainObject(i.ajax)?i.ajax.url=e:i.ajax=e}))})),Gt("ajax.url().load()",(function(t,e){return this.iterator("table",(function(i){we(i,!1===e,t)}))}));var _e=function(e,i,r,o,a){var s,l,c,h,d,u,p=[];for(c=typeof i,i&&"string"!==c&&"function"!==c&&i.length!==n||(i=[i]),c=0,h=i.length;c<h;c++)for(d=0,u=(l=i[c]&&i[c].split?i[c].split(","):[i[c]]).length;d<u;d++)(s=r("string"==typeof l[d]?t.trim(l[d]):l[d]))&&s.length&&(p=p.concat(s));if((e=qt.selector[e]).length)for(c=0,h=e.length;c<h;c++)p=e[c](o,a,p);return de(p)},Ce=function(e){return e||(e={}),e.filter&&e.search===n&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},Se=function(t){for(var e=0,i=t.length;e<i;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},ke=function(e,i){var n,r,o,a=[],s=e.aiDisplay;n=e.aiDisplayMaster;var l=i.search;if(r=i.order,o=i.page,"ssp"==$t(e))return"removed"===l?[]:ce(0,n.length);if("current"==o)for(n=e._iDisplayStart,r=e.fnDisplayEnd();n<r;n++)a.push(s[n]);else if("current"==r||"applied"==r)a="none"==l?n.slice():"applied"==l?s.slice():t.map(n,(function(e){return-1===t.inArray(e,s)?e:null}));else if("index"==r||"original"==r)for(n=0,r=e.aoData.length;n<r;n++)"none"==l?a.push(n):(-1===(o=t.inArray(n,s))&&"removed"==l||0<=o&&"applied"==l)&&a.push(n);return a};Gt("rows()",(function(e,i){e===n?e="":t.isPlainObject(e)&&(i=e,e="");i=Ce(i);var r=this.iterator("table",(function(r){var o=i;return _e("row",e,(function(e){var i=ne(e);if(null!==i&&!o)return[i];var a=ke(r,o);return null!==i&&-1!==t.inArray(i,a)?[i]:e?"function"!=typeof e?(t.map(a,(function(t){var i=r.aoData[t];return e(t,i._aData,i.nTr)?t:null})),i=he(le(r.aoData,a,"nTr")),e.nodeName&&-1!==t.inArray(e,i)?[e._DT_RowIndex]:"string"==typeof e&&"#"===e.charAt(0)&&(a=r.aIds[e.replace(/^#/,"")])!==n?[a.idx]:t(i).filter(e).map((function(){return this._DT_RowIndex})).toArray()):void 0:a}),r,o)}),1);return r.selector.rows=e,r.selector.opts=i,r})),Gt("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||n}),1)})),Gt("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return le(t.aoData,e,"_aData")}),1)})),Yt("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,i){var n=e.aoData[i];return"search"===t?n._aFilterData:n._aSortData}),1)})),Yt("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,i){E(e,i,t)}))})),Yt("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),Yt("rows().ids()","row().id()",(function(t){for(var e=[],i=this.context,n=0,r=i.length;n<r;n++)for(var o=0,a=this[n].length;o<a;o++){var s=i[n].rowIdFn(i[n].aoData[this[n][o]]._aData);e.push((!0===t?"#":"")+s)}return new Ut(i,e)})),Yt("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,i,r){var o,a,s,l,c,h=e.aoData,d=h[i];for(h.splice(i,1),o=0,a=h.length;o<a;o++)if(c=(s=h[o]).anCells,null!==s.nTr&&(s.nTr._DT_RowIndex=o),null!==c)for(s=0,l=c.length;s<l;s++)c[s]._DT_CellIndex.row=o;D(e.aiDisplayMaster,i),D(e.aiDisplay,i),D(t[r],i,!1),Nt(e),(i=e.rowIdFn(d._aData))!==n&&delete e.aIds[i]})),this.iterator("table",(function(t){for(var e=0,i=t.aoData.length;e<i;e++)t.aoData[e].idx=e})),this})),Gt("rows.add()",(function(e){var i=this.iterator("table",(function(t){var i,n,r,o=[];for(n=0,r=e.length;n<r;n++)(i=e[n]).nodeName&&"TR"===i.nodeName.toUpperCase()?o.push(w(t,i)[0]):o.push(x(t,i));return o}
14),1),n=this.rows(-1);return n.pop(),t.merge(n,i),n})),Gt("row()",(function(t,e){return Se(this.rows(t,e))})),Gt("row().data()",(function(t){var e=this.context;return t===n?e.length&&this.length?e[0].aoData[this[0]]._aData:n:(e[0].aoData[this[0]]._aData=t,E(e[0],this[0],"data"),this)})),Gt("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),Gt("row.add()",(function(e){e instanceof t&&e.length&&(e=e[0]);var i=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?w(t,e)[0]:x(t,e)}));return this.row(i[0])}));var Ae=function(t,e){var i=t.context;i.length&&(i=i[0].aoData[e!==n?e:t[0]])&&i._details&&(i._details.remove(),i._detailsShow=n,i._details=n)},Te=function(t,e){var i=t.context;if(i.length&&t.length){var n=i[0].aoData[t[0]];if(n._details){(n._detailsShow=e)?n._details.insertAfter(n.nTr):n._details.detach();var r=i[0],o=new Ut(r),a=r.aoData;o.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<se(a,"_details").length&&(o.on("draw.dt.DT_details",(function(t,e){r===e&&o.rows({page:"current"}).eq(0).each((function(t){(t=a[t])._detailsShow&&t._details.insertAfter(t.nTr)}))})),o.on("column-visibility.dt.DT_details",(function(t,e){if(r===e)for(var i,n=m(e),o=0,s=a.length;o<s;o++)(i=a[o])._details&&i._details.children("td[colspan]").attr("colspan",n)})),o.on("destroy.dt.DT_details",(function(t,e){if(r===e)for(var i=0,n=a.length;i<n;i++)a[i]._details&&Ae(o,i)})))}}};Gt("row().child()",(function(e,i){var r=this.context;if(e===n)return r.length&&this.length?r[0].aoData[this[0]]._details:n;if(!0===e)this.child.show();else if(!1===e)Ae(this);else if(r.length&&this.length){var o=r[0],a=(r=r[0].aoData[this[0]],[]),s=function(e,i){if(t.isArray(e)||e instanceof t)for(var n=0,r=e.length;n<r;n++)s(e[n],i);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?a.push(e):(n=t("<tr><td/></tr>").addClass(i),t("td",n).addClass(i).html(e)[0].colSpan=m(o),a.push(n[0]))};s(e,i),r._details&&r._details.remove(),r._details=t(a),r._detailsShow&&r._details.insertAfter(r.nTr)}return this})),Gt(["row().child.show()","row().child().show()"],(function(){return Te(this,!0),this})),Gt(["row().child.hide()","row().child().hide()"],(function(){return Te(this,!1),this})),Gt(["row().child.remove()","row().child().remove()"],(function(){return Ae(this),this})),Gt("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Le=/^(.+):(name|visIdx|visible)$/,De=function(t,e,i,n,r){i=[],n=0;for(var o=r.length;n<o;n++)i.push(_(t,r[n],e));return i};Gt("columns()",(function(e,i){e===n?e="":t.isPlainObject(e)&&(i=e,e="");i=Ce(i);var r=this.iterator("table",(function(n){var r=e,o=i,a=n.aoColumns,s=se(a,"sName"),l=se(a,"nTh");return _e("column",r,(function(e){var i=ne(e);if(""===e)return ce(a.length);if(null!==i)return[i>=0?i:a.length+i];if("function"==typeof e){var r=ke(n,o);return t.map(a,(function(t,i){return e(i,De(n,i,0,0,r),l[i])?i:null}))}var c="string"==typeof e?e.match(Le):"";if(!c)return t(l).filter(e).map((function(){return t.inArray(this,l)})).toArray();switch(c[2]){case"visIdx":case"visible":if((i=parseInt(c[1],10))<0){var h=t.map(a,(function(t,e){return t.bVisible?e:null}));return[h[h.length+i]]}return[f(n,i)];case"name":return t.map(s,(function(t,e){return t===c[1]?e:null}))}}),n,o)}),1);return r.selector.cols=e,r.selector.opts=i,r})),Yt("columns().header()","column().header()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),Yt("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),Yt("columns().data()","column().data()",(function(){return this.iterator("column-rows",De,1)})),Yt("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),Yt("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,i,n,r,o){return le(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",i)}),1)})),Yt("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,
vendor: 4,815 bytes, line 14
14i,n,r){return le(t.aoData,r,"anCells",e)}),1)})),Yt("columns().visible()","column().visible()",(function(e,i){return this.iterator("column",(function(r,o){if(e===n)return r.aoColumns[o].bVisible;var a,s,l,c=r.aoColumns,h=c[o],d=r.aoData;if(e!==n&&h.bVisible!==e){if(e){var u=t.inArray(!0,se(c,"bVisible"),o+1);for(a=0,s=d.length;a<s;a++)l=d[a].nTr,c=d[a].anCells,l&&l.insertBefore(c[o],c[u]||null)}else t(se(r.aoData,"anCells",o)).detach();h.bVisible=e,F(r,r.aoHeader),F(r,r.aoFooter),(i===n||i)&&(p(r),(r.oScroll.sX||r.oScroll.sY)&&ft(r)),Bt(r,null,"column-visibility",[r,o,e,i]),Dt(r)}}))})),Yt("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,i){return"visible"===t?g(e,i):i}),1)})),Gt("columns.adjust()",(function(){return this.iterator("table",(function(t){p(t)}),1)})),Gt("column.index()",(function(t,e){if(0!==this.context.length){var i=this.context[0];if("fromVisible"===t||"toData"===t)return f(i,e);if("fromData"===t||"toVisible"===t)return g(i,e)}})),Gt("column()",(function(t,e){return Se(this.columns(t,e))})),Gt("cells()",(function(e,i,r){if(t.isPlainObject(e)&&(e.row===n?(r=e,e=null):(r=i,i=null)),t.isPlainObject(i)&&(r=i,i=null),null===i||i===n)return this.iterator("table",(function(i){var o,a,s,l,c,h,d,u=e,p=Ce(r),f=i.aoData,g=ke(i,p),m=he(le(f,g,"anCells")),v=t([].concat.apply([],m)),b=i.aoColumns.length;return _e("cell",u,(function(e){var r="function"==typeof e;if(null===e||e===n||r){for(a=[],s=0,l=g.length;s<l;s++)for(o=g[s],c=0;c<b;c++)h={row:o,column:c},r?(d=f[o],e(h,_(i,o,c),d.anCells?d.anCells[c]:null)&&a.push(h)):a.push(h);return a}return t.isPlainObject(e)?[e]:v.filter(e).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray()}),i,p)}));var o,a,s,l,c,h=this.columns(i,r),d=this.rows(e,r),u=this.iterator("table",(function(t,e){for(o=[],a=0,s=d[e].length;a<s;a++)for(l=0,c=h[e].length;l<c;l++)o.push({row:d[e][a],column:h[e][l]});return o}),1);return t.extend(u.selector,{cols:i,rows:e,opts:r}),u})),Yt("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,i){return(t=t.aoData[e].anCells)?t[i]:n}),1)})),Gt("cells().data()",(function(){return this.iterator("cell",(function(t,e,i){return _(t,e,i)}),1)})),Yt("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,i,n){return e.aoData[i][t][n]}),1)})),Yt("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,i,n){return _(e,i,n,t)}),1)})),Yt("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,i){return{row:e,column:i,columnVisible:g(t,i)}}),1)})),Yt("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,i,n){E(e,i,t,n)}))})),Gt("cell()",(function(t,e,i){return Se(this.cells(t,e,i))})),Gt("cell().data()",(function(t){var e=this.context,i=this[0];return t===n?e.length&&i.length?_(e[0],i[0].row,i[0].column):n:(C(e[0],i[0].row,i[0].column,t),E(e[0],i[0].row,"data",i[0].column),this)})),Gt("order()",(function(e,i){var r=this.context;return e===n?0!==r.length?r[0].aaSorting:n:("number"==typeof e?e=[[e,i]]:t.isArray(e[0])||(e=Array.prototype.slice.call(arguments)),this.iterator("table",(function(t){t.aaSorting=e.slice()})))})),Gt("order.listener()",(function(t,e,i){return this.iterator("table",(function(n){At(n,t,e,i)}))})),Gt("order.fixed()",(function(e){if(!e){var i=(i=this.context).length?i[0].aaSortingFixed:n;return t.isArray(i)?{pre:i}:i}return this.iterator("table",(function(i){i.aaSortingFixed=t.extend(!0,{},e)}))})),Gt(["columns().order()","column().order()"],(function(e){var i=this;return this.iterator("table",(function(n,r){var o=[];t.each(i[r],(function(t,i){o.push([i,e])})),n.aaSorting=o}))})),Gt("search()",(function(e,i,r,o){var a=this.context;return e===n?0!==a.length?a[0].oPreviousSearch.sSearch:n:this.iterator("table",(function(n){n.oFeatures.bFilter&&G(n,t.extend({},n.oPreviousSearch,{sSearch:e+"",bRegex:null!==i&&i,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)}))})),Yt("columns().search()","column().search()",(function(e,i,r,o){return this.iterator("column",(function(a,s){var l=a.aoPreSearchCols;if(e===n)return l[s].sSearch;a.oFeatures.bFilter&&(t.extend(l[s],{sSearch:e+"",bRegex:null!==i&&i,bSmart:null===r||r,bCaseInsensitive:null===o||o}),G(a,a.oPreviousSearch,1))}))})),Gt("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),Gt("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),Gt("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),Gt("state.save()",(function(){return this.iterator("table",(function(t){Dt(t)}))}
14)),zt.versionCheck=zt.fnVersionCheck=function(t){for(var e,i,n=zt.version.split("."),r=0,o=(t=t.split(".")).length;r<o;r++)if((e=parseInt(n[r],10)||0)!==(i=parseInt(t[r],10)||0))return e>i;return!0},zt.isDataTable=zt.fnIsDataTable=function(e){var i=t(e).get(0),n=!1;return t.each(zt.settings,(function(e,r){
15var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,a=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==i&&o!==i&&a!==i||(n=!0)})),n},zt.tables=zt.fnTables=function(e){var i=!1;t.isPlainObject(e)&&(i=e.api,e=e.visible);var n=t.map(zt.settings,(function(i){if(!e||e&&t(i.nTable).is(":visible"))return i.nTable}));return i?new Ut(n):n},zt.util={throttle:vt,escapeRegex:Z},zt.camelToHungarian=o,Gt("$()",(function(e,i){var n=this.rows(i).nodes();n=t(n);return t([].concat(n.filter(e).toArray(),n.find(e).toArray()))})),t.each(["on","one","off"],(function(e,i){Gt(i+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0].match(/\.dt\b/)||(e[0]+=".dt");var n=t(this.tables().nodes());return n[i].apply(n,e),this}))})),Gt("clear()",(function(){return this.iterator("table",(function(t){L(t)}))})),Gt("settings()",(function(){return new Ut(this.context,this.context)})),Gt("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),Gt("data()",(function(){return this.iterator("table",(function(t){return se(t.aoData,"_aData")})).flatten()})),Gt("destroy()",(function(i){return i=i||!1,this.iterator("table",(function(n){var r,o=n.nTableWrapper.parentNode,a=n.oClasses,s=n.nTable,l=n.nTBody,c=n.nTHead,h=n.nTFoot,d=t(s),u=(l=t(l),t(n.nTableWrapper)),p=t.map(n.aoData,(function(t){return t.nTr}));n.bDestroying=!0,Bt(n,"aoDestroyCallback","destroy",[n]),i||new Ut(n).columns().visible(!0),u.unbind(".DT").find(":not(tbody *)").unbind(".DT"),t(e).unbind(".DT-"+n.sInstance),s!=c.parentNode&&(d.children("thead").detach(),d.append(c)),h&&s!=h.parentNode&&(d.children("tfoot").detach(),d.append(h)),n.aaSorting=[],n.aaSortingFixed=[],Tt(n),t(p).removeClass(n.asStripeClasses.join(" ")),t("th, td",c).removeClass(a.sSortable+" "+a.sSortableAsc+" "+a.sSortableDesc+" "+a.sSortableNone),n.bJUI&&(t("th span."+a.sSortIcon+", td span."+a.sSortIcon,c).detach(),t("th, td",c).each((function(){var e=t("div."+a.sSortJUIWrapper,this);t(this).append(e.contents()),e.detach()}))),l.children().detach(),l.append(p),d[c=i?"remove":"detach"](),u[c](),!i&&o&&(o.insertBefore(s,n.nTableReinsertBefore),d.css("width",n.sDestroyWidth).removeClass(a.sTable),(r=n.asDestroyStripes.length)&&l.children().each((function(e){t(this).addClass(n.asDestroyStripes[e%r])}))),-1!==(o=t.inArray(n,zt.settings))&&zt.settings.splice(o,1)}))})),t.each(["column","row","cell"],(function(t,e){Gt(e+"s().every()",(function(t){var i=this.selector.opts,r=this;return this.iterator(e,(function(o,a,s,l,c){t.call(r[e](a,"cell"===e?s:i,"cell"===e?i:n),a,s,l,c)}))}))})),Gt("i18n()",(function(e,i,r){var o=this.context[0];return(e=k(e)(o.oLanguage))===n&&(e=i),r!==n&&t.isPlainObject(e)&&(e=e[r]!==n?e[r]:e._),e.replace("%d",r)})),zt.version="1.10.10",zt.settings=[],zt.models={},zt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},zt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},zt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},zt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,f
vendor: 5,808 bytes, line 15
15nDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},zt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(zt.defaults),zt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},r(zt.defaults.column),zt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:n,oAjaxData:n,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==$t(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==$t(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,i=e+t,n=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+n:Math.min(e+t,this._iRecordsDisplay):!o||i>n||-1===t?n:i},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},zt.ext=qt={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:zt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:zt.version},t.extend(qt,{afnFiltering:qt.search,aTypes:qt.type.detect,ofnSearch:qt.type.search,oSort:qt.type.order,afnSortData:qt.order,aoFeatures:qt.feature,oApi:qt.internal,oStdClasses:qt.classes,oPagination:qt.pager}),t.extend(zt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ee="",Pe=(Ee="")+"ui-state-default",Ie=Ee+"css_right ui-icon ui-icon-",Me=Ee+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";t.extend(zt.ext.oJUIClasses,zt.ext.classes,{sPageButton:"fg-button ui-button "+Pe,
15sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:Pe+" sorting_asc",sSortDesc:Pe+" sorting_desc",sSortable:Pe+" sorting",sSortableAsc:Pe+" sorting_asc_disabled",sSortableDesc:Pe+" sorting_desc_disabled",sSortableNone:Pe+" sorting_disabled",sSortJUIAsc:Ie+"triangle-1-n",sSortJUIDesc:Ie+"triangle-1-s",sSortJUI:Ie+"carat-2-n-s",sSortJUIAscAllowed:Ie+"carat-1-n",sSortJUIDescAllowed:Ie+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+Pe,sScrollFoot:"dataTables_scrollFoot "+Pe,sHeaderTH:Pe,sFooterTH:Pe,sJUIHeader:Me+" ui-corner-tl ui-corner-tr",sJUIFooter:Me+" ui-corner-bl ui-corner-br"});var Oe=zt.ext.pager;t.extend(Oe,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[Vt(t,e)]},simple_numbers:function(t,e){return["previous",Vt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Vt(t,e),"next","last"]},_numbers:Vt,numbers_length:7}),t.extend(!0,zt.ext.renderer,{pageButton:{_:function(e,n,r,o,a,s){var l,c,h,d=e.oClasses,u=e.oLanguage.oPaginate,p=e.oLanguage.oAria.paginate||{},f=0,g=function(i,n){var o,h,m,v,b=function(t){ht(e,t.data.action,!0)};for(o=0,h=n.length;o<h;o++)if(v=n[o],t.isArray(v))m=t("<"+(v.DT_el||"div")+"/>").appendTo(i),g(m,v);else{switch(l=null,c="",v){case"ellipsis":i.append('<span class="ellipsis">&#x2026;</span>');break;case"first":l=u.sFirst,c=v+(a>0?"":" "+d.sPageButtonDisabled);break;case"previous":l=u.sPrevious,c=v+(a>0?"":" "+d.sPageButtonDisabled);break;case"next":l=u.sNext,c=v+(a<s-1?"":" "+d.sPageButtonDisabled);break;case"last":l=u.sLast,c=v+(a<s-1?"":" "+d.sPageButtonDisabled);break;default:l=v+1,c=a===v?d.sPageButtonActive:""}null!==l&&(Ft(m=t("<a>",{class:d.sPageButton+" "+c,"aria-controls":e.sTableId,"aria-label":p[v],"data-dt-idx":f,tabindex:e.iTabIndex,id:0===r&&"string"==typeof v?e.sTableId+"_"+v:null}).html(l).appendTo(i),{action:v},b),f++)}};try{h=t(n).find(i.activeElement).data("dt-idx")}catch(t){}g(t(n).empty(),o),h&&t(n).find("[data-dt-idx="+h+"]").focus()}}}),t.extend(zt.ext.type.detect,[function(t,e){var i=e.oLanguage.sDecimal;return oe(t,i)?"num"+i:null},function(t){if(t&&!(t instanceof Date)&&(!Zt.test(t)||!Qt.test(t)))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||ie(t)?"date":null},function(t,e){var i=e.oLanguage.sDecimal;return oe(t,i,!0)?"num-fmt"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return ae(t,i)?"html-num"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return ae(t,i,!0)?"html-num-fmt"+i:null},function(t){return ie(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(zt.ext.type.search,{html:function(t){return ie(t)?t:"string"==typeof t?t.replace(Jt," ").replace(Kt,""):""},string:function(t){return ie(t)?t:"string"==typeof t?t.replace(Jt," "):t}});var Fe=function(t,e,i,n){return 0===t||t&&"-"!==t?(e&&(t=re(t,e)),t.replace&&(i&&(t=t.replace(i,"")),n&&(t=t.replace(n,""))),1*t):-1/0};return t.extend(qt.type.order,{"date-pre":function(t){return Date.parse(t)||0},"html-pre":function(t){return ie(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return ie(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Ht(""),t.extend(!0,zt.ext.renderer,{header:{_:function(e,i,n,r){t(e.nTable).on("order.dt.DT",(function(t,o,a,s){e===o&&(t=n.idx,i.removeClass(n.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:n.sSortingClass))}))},jqueryui:function(e,i,n,r){t("<div/>").addClass(r.sSortJUIWrapper).append(i.contents()).append(t("<span/>").addClass(r.sSortIcon+" "+n.sSortingClassJUI)).appendTo(i),t(e.nTable).on("order.dt.DT",(function(t,o,a,s){e===o&&(t=n.idx,i.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:n.sSortingClass),i.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[t]?r.sSortJUIAsc:"desc"==s[t]?r.sSortJUIDesc:n.sSortingClassJUI))}))}}}
15),zt.render={number:function(t,e,i,n,r){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var a=0>o?"-":"",s=parseFloat(o);return isNaN(s)?o:(o=Math.abs(s),s=parseInt(o,10),o=i?e+(o-s).toFixed(i).substring(2):"",a+(n||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+o+(r||""))}}},text:function(){return{display:function(t){return"string"==typeof t?t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t}}}},t.extend(zt.ext.internal,{_fnExternApiFunc:Wt,_fnBuildAjax:V,_fnAjaxUpdate:H,_fnAjaxParameters:W,_fnAjaxUpdateDraw:z,_fnAjaxDataSrc:q,_fnAddColumn:d,_fnColumnOptions:u,_fnAdjustColumnSizing:p,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:g,_fnVisbleColumns:m,_fnGetColumns:v,_fnColumnTypes:b,_fnApplyColumnDefs:y,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:a,_fnBrowserDetect:c,_fnAddData:x,_fnAddTr:w,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==n?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,i,n){return t.inArray(n,e.aoData[i].anCells)},_fnGetCellData:_,_fnSetCellData:C,_fnSplitObjNotation:S,_fnGetObjectDataFn:k,_fnSetObjectDataFn:A,_fnGetDataMaster:T,_fnClearTable:L,_fnDeleteIndex:D,_fnInvalidate:E,_fnGetRowElements:P,_fnCreateTr:I,_fnBuildHead:O,_fnDrawHead:F,_fnDraw:R,_fnReDraw:B,_fnAddOptionsHtml:N,_fnDetectHeader:j,_fnGetUniqueThs:$,_fnFeatureHtmlFilter:U,_fnFilterComplete:G,_fnFilterCustom:Y,_fnFilterColumn:X,_fnFilter:J,_fnFilterCreateSearch:K,_fnEscapeRegex:Z,_fnFilterData:Q,_fnFeatureHtmlInfo:it,_fnUpdateInfo:nt,_fnInfoMacros:rt,_fnInitialise:ot,_fnInitComplete:at,_fnLengthChange:st,_fnFeatureHtmlLength:lt,_fnFeatureHtmlPaginate:ct,_fnPageChange:ht,_fnFeatureHtmlProcessing:dt,_fnProcessingDisplay:ut,_fnFeatureHtmlTable:pt,_fnScrollDraw:ft,_fnApplyToChildren:gt,_fnCalculateColumnWidths:mt,_fnThrottle:vt,_fnConvertToWidth:bt,_fnGetWidestNode:yt,_fnGetMaxLenString:xt,_fnStringToCss:wt,_fnSortFlatten:_t,_fnSort:Ct,_fnSortAria:St,_fnSortListener:kt,_fnSortAttachListener:At,_fnSortingClasses:Tt,_fnSortData:Lt,_fnSaveState:Dt,_fnLoadState:Et,_fnSettingsFromNode:Pt,_fnLog:It,_fnMap:Mt,_fnBindAction:Ft,_fnCallbackReg:Rt,_fnCallbackFire:Bt,_fnLengthOverflow:Nt,_fnRenderer:jt,_fnDataSource:$t,_fnRowAttributes:M,_fnCalculateEnd:function(){}}),t.fn.dataTable=zt,zt.$=t,t.fn.dataTableSettings=zt.settings,t.fn.dataTableExt=zt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(zt,(function(e,i){t.fn.DataTable[e]=i})),t.fn.dataTable})),function(t){t.extend(!0,t.fn.dataTable.defaults,{dom:"<'row'<'col-md-6 col-sm-6'l><'col-md-6 col-sm-6'f>r><'table-scrollable't><'row'<'col-md-5 col-sm-5'i><'col-md-7 col-sm-7'p>>",language:{lengthMenu:" _MENU_ records ",paginate:{previous:"Prev",next:"Next",page:"Page",pageOf:"of"}},pagingType:"bootstrap_number"}),t.extend(t.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper",sFilterInput:"form-control input-sm input-small input-inline",sLengthSelect:"form-control input-sm input-xsmall input-inline"}),t.fn.dataTable.defaults.renderer="bootstrap",t.fn.dataTable.ext.renderer.pageButton.bootstrap=function(e,i,n,r,o,a){var s,l,c=new t.fn.dataTable.Api(e),h=e.oClasses,d=e.oLanguage.oPaginate,u=function(i,r){var p,f,g,m,v=function(t){t.preventDefault(),"ellipsis"!==t.data.action&&c.page(t.data.action).draw(!1)};for(p=0,f=r.length;p<f;p++)if(m=r[p],t.isArray(m))u(i,m);else{switch(s="",l="",m){case"ellipsis":s="&hellip;",l="disabled";break;case"first":s=d.sFirst,l=m+(o>0?"":" disabled");break;case"previous":s=d.sPrevious,l=m+(o>0?"":" disabled");break;case"next":s=d.sNext,l=m+(o<a-1?"":" disabled");break;case"last":s=d.sLast,l=m+(o<a-1?"":" disabled");break;default:s=m+1,l=o===m?"active":""}s&&(g=t("<li>",{class:h.sPageButton+" "+l,"aria-controls":e.sTableId,tabindex:e.iTabIndex,id:0===n&&"string"==typeof m?e.sTableId+"_"+m:null}).append(t("<a>",{href:"#"}).html(s)).appendTo(i),e.oApi._fnBindAction(g,{action:m},v))}};u(t(i).empty().html('<ul class="pagination"/>').children("ul"),r)},t.fn.dataTableExt.oApi.fnPagingInfo=function(t){return{iStart:t._iDisplayStart,iEnd:t.fnDisplayEnd(),iLength:t._iDisplayLength,iTotal:t.fnRecordsTotal(),iFilteredTotal:t.fnRecordsDisplay(),iPage:-1===t._iDisplayLength?0:Math.ceil(t._iDisplayStart/t._iDisplayLength),iTotalPages:-1===t._iDisplayLength?0:Math.ceil(t.fnRecordsDisplay()/t._iDisplayLength)}},t.extend(t.fn.dataTableExt.oPagination,{bootstrap_full_number:{f
15nInit:function(e,i,n){var r=e.oLanguage.oPaginate,o=function(t){t.preventDefault(),e.oApi._fnPageChange(e,t.data.action)&&n(e)};t(i).append('<ul class="pagination"><li class="prev disabled"><a href="#" title="'+r.sFirst+'"><i class="fa fa-angle-double-left"></i></a></li><li class="prev disabled"><a href="#" title="'+r.sPrevious+'"><i class="fa fa-angle-left"></i></a></li><li class="next disabled"><a href="#" title="'+r.sNext+'"><i class="fa fa-angle-right"></i></a></li><li class="next disabled"><a href="#" title="'+r.sLast+'"><i class="fa fa-angle-double-right"></i></a></li></ul>');var a=t("a",i);t(a[0]).bind("click.DT",{action:"first"},o),t(a[1]).bind("click.DT",{action:"previous"},o),t(a[2]).bind("click.DT",{action:"next"},o),t(a[3]).bind("click.DT",{action:"last"},o)},fnUpdate:function(e,i){var n,r,o,a,s,l=5,c=e.oInstance.fnPagingInfo(),h=e.aanFeatures.p,d=Math.floor(l/2);for(c.iTotalPages<l?(a=1,s=c.iTotalPages):c.iPage<=d?(a=1,s=l):c.iPage>=c.iTotalPages-d?(a=c.iTotalPages-l+1,s=c.iTotalPages):s=(a=c.iPage-d+1)+l-1,n=0,iLen=h.length;n<iLen;n++){for(c.iTotalPages<=0?t(".pagination",h[n]).css("visibility","hidden"):t(".pagination",h[n]).css("visibility","visible"),t("li:gt(1)",h[n]).filter(":not(.next)").remove(),r=a;r<=s;r++)o=r==c.iPage+1?'class="active"':"",t("<li "+o+'><a href="#">'+r+"</a></li>").insertBefore(t("li.next:first",h[n])[0]).bind("click",(function(n){n.preventDefault(),e._iDisplayStart=(parseInt(t("a",this).text(),10)-1)*c.iLength,i(e)}));0===c.iPage?t("li.prev",h[n]).addClass("disabled"):t("li.prev",h[n]).removeClass("disabled"),c.iPage===c.iTotalPages-1||0===c.iTotalPages?t("li.next",h[n]).addClass("disabled"):t("li.next",h[n]).removeClass("disabled")}}}}),t.extend(t.fn.dataTableExt.oPagination,{bootstrap_number:{fnInit:function(e,i,n){var r=e.oLanguage.oPaginate,o=function(t){t.preventDefault(),e.oApi._fnPageChange(e,t.data.action)&&n(e)};t(i).append('<ul class="pagination"><li class="prev disabled"><a href="#" title="'+r.sPrevious+'"><i class="fa fa-angle-left"></i></a></li><li class="next disabled"><a href="#" title="'+r.sNext+'"><i class="fa fa-angle-right"></i></a></li></ul>');var a=t("a",i);t(a[0]).bind("click.DT",{action:"previous"},o),t(a[1]).bind("click.DT",{action:"next"},o)},fnUpdate:function(e,i){var n,r,o,a,s,l=5,c=e.oInstance.fnPagingInfo(),h=e.aanFeatures.p,d=Math.floor(l/2);for(c.iTotalPages<l?(a=1,s=c.iTotalPages):c.iPage<=d?(a=1,s=l):c.iPage>=c.iTotalPages-d?(a=c.iTotalPages-l+1,s=c.iTotalPages):s=(a=c.iPage-d+1)+l-1,n=0,iLen=h.length;n<iLen;n++){for(c.iTotalPages<=0?t(".pagination",h[n]).css("visibility","hidden"):t(".pagination",h[n]).css("visibility","visible"),t("li:gt(0)",h[n]).filter(":not(.next)").remove(),r=a;r<=s;r++)o=r==c.iPage+1?'class="active"':"",t("<li "+o+'><a href="#">'+r+"</a></li>").insertBefore(t("li.next:first",h[n])[0]).bind("click",(function(n){n.preventDefault(),e._iDisplayStart=(parseInt(t("a",this).text(),10)-1)*c.iLength,i(e)}));0===c.iPage?t("li.prev",h[n]).addClass("disabled"):t("li.prev",h[n]).removeClass("disabled"),c.iPage===c.iTotalPages-1||0===c.iTotalPages?t("li.next",h[n]).addClass("disabled"):t("li.next",h[n]).removeClass("disabled")}}}}),t.extend(t.fn.dataTableExt.oPagination,{bootstrap_extended:{fnInit:function(e,i,n){var r=e.oLanguage.oPaginate,o=(e.oInstance.fnPagingInfo(),function(t){t.preventDefault(),e.oApi._fnPageChange(e,t.data.action)&&n(e)});t(i).append('<div class="pagination-panel"> '+(r.page?r.page:"")+' <a href="#" class="btn btn-sm default prev disabled"><i class="fa fa-angle-left"></i></a><input type="text" class="pagination-panel-input form-control input-sm input-inline input-mini" maxlenght="5" style="text-align:center; margin: 0 5px;"><a href="#" class="btn btn-sm default next disabled"><i class="fa fa-angle-right"></i></a> '+(r.pageOf?r.pageOf+' <span class="pagination-panel-total"></span>':"")+"</div>");var a=t("a",i);t(a[0]).bind("click.DT",{action:"previous"},o),t(a[1]).bind("click.DT",{action:"next"},o),t(".pagination-panel-input",i).bind("change.DT",(function(i){var r=e.oInstance.fnPagingInfo();i.preventDefault();var o=parseInt(t(this).val());o>0&&o<=r.iTotalPages?e.oApi._fnPageChange(e,o-1)&&n(e):t(this).val(r.
15iPage+1)})),t(".pagination-panel-input",i).bind("keypress.DT",(function(i){var r=e.oInstance.fnPagingInfo();if(13==i.which){var o=parseInt(t(this).val());o>0&&o<=e.oInstance.fnPagingInfo().iTotalPages?e.oApi._fnPageChange(e,o-1)&&n(e):t(this).val(r.iPage+1),i.preventDefault()}}))},fnUpdate:function(e,i){var n,r,o,a,s,l=5,c=e.oInstance.fnPagingInfo(),h=e.aanFeatures.p,d=Math.floor(l/2);for(c.iTotalPages<l?(a=1,s=c.iTotalPages):c.iPage<=d?(a=1,s=l):c.iPage>=c.iTotalPages-d?(a=c.iTotalPages-l+1,s=c.iTotalPages):s=(a=c.iPage-d+1)+l-1,n=0,iLen=h.length;n<iLen;n++){var u=t(h[n]).parents(".dataTables_wrapper");for(c.iTotal<=0?t(".dataTables_paginate, .dataTables_length",u).hide():t(".dataTables_paginate, .dataTables_length",u).show(),c.iTotalPages<=0?t(".dataTables_paginate, .dataTables_length .seperator",u).hide():t(".dataTables_paginate, .dataTables_length .seperator",u).show(),t(".pagination-panel-total",h[n]).html(c.iTotalPages),t(".pagination-panel-input",h[n]).val(c.iPage+1),t("li:gt(1)",h[n]).filter(":not(.next)").remove(),r=a;r<=s;r++)o=r==c.iPage+1?'class="active"':"",t("<li "+o+'><a href="#">'+r+"</a></li>").insertBefore(t("li.next:first",h[n])[0]).bind("click",(function(n){n.preventDefault(),e._iDisplayStart=(parseInt(t("a",this).text(),10)-1)*c.iLength,i(e)}));0===c.iPage?t("a.prev",h[n]).addClass("disabled"):t("a.prev",h[n]).removeClass("disabled"),c.iPage===c.iTotalPages-1||0===c.iTotalPages?t("a.next",h[n]).addClass("disabled"):t("a.next",h[n]).removeClass("disabled")}}}})}(jQuery);var App=function(){var t,e=!1,i=!1,n=!1,r=!1,o=[],a="../assets/",s="global/img/",l="global/plugins/",c="global/css/",h={blue:"#89C4F4",red:"#F3565D",green:"#1bbc9b",purple:"#9b59b6",grey:"#95a5a6",yellow:"#F8CB00"},d=function(){"rtl"===$("body").css("direction")&&(e=!0),i=!!navigator.userAgent.match(/MSIE 8.0/),n=!!navigator.userAgent.match(/MSIE 9.0/),(r=!!navigator.userAgent.match(/MSIE 10.0/))&&$("html").addClass("ie10"),(r||n||i)&&$("html").addClass("ie")},u=function(){for(var t=0;t<o.length;t++){o[t].call()}},p=function(){var t,e;i?$(window).resize((function(){e!=document.documentElement.clientHeight&&(t&&clearTimeout(t),t=setTimeout((function(){u()}),50),e=document.documentElement.clientHeight)})):$(window).resize((function(){t&&clearTimeout(t),t=setTimeout((function(){u()}),50)}))},f=function(){$("body").on("click",".portlet > .portlet-title > .tools > a.remove",(function(t){t.preventDefault();var e=$(this).closest(".portlet");$("body").hasClass("page-portlet-fullscreen")&&$("body").removeClass("page-portlet-fullscreen"),e.find(".portlet-title .fullscreen").tooltip("destroy"),e.find(".portlet-title > .tools > .reload").tooltip("destroy"),e.find(".portlet-title > .tools > .remove").tooltip("destroy"),e.find(".portlet-title > .tools > .config").tooltip("destroy"),e.find(".portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip("destroy"),e.remove()})),$("body").on("click",".portlet > .portlet-title .fullscreen",(function(t){t.preventDefault();var e=$(this).closest(".portlet");if(e.hasClass("portlet-fullscreen"))$(this).removeClass("on"),e.removeClass("portlet-fullscreen"),$("body").removeClass("page-portlet-fullscreen"),e.children(".portlet-body").css("height","auto");else{var i=App.getViewPort().height-e.children(".portlet-title").outerHeight()-parseInt(e.children(".portlet-body").css("padding-top"))-parseInt(e.children(".portlet-body").css("padding-bottom"));$(this).addClass("on"),e.addClass("portlet-fullscreen"),$("body").addClass("page-portlet-fullscreen"),e.children(".portlet-body").css("height",i)}})),$("body").on("click",".portlet > .portlet-title > .tools > a.reload",(function(t){t.preventDefault();var e=$(this).closest(".portlet").children(".portlet-body"),i=$(this).attr("data-url"),n=$(this).attr("data-error-display");i?(App.blockUI({target:e,animate:!0,overlayColor:"none"}),$.ajax({type:"GET",cache:!1,url:i,dataType:"html",success:function(t){App.unblockUI(e),e.html(t),App.initAjax()},error:function(){App.unblockUI(e);var t="Error on reloading the content. Please check your connection and try again.";"toastr"==n&&toastr?toastr.error(t):"notific8"==n&&$.notific8?($.notific8("zindex",11500),$.notific8(t,{theme:"ruby",life:3e3})):alert(t)}})):(App.blockUI({target:e,animate:!0,overlayColor:"none"}),window.setTimeout((function(){App.unblockUI(e)}),1e3))})),$('.portlet .portlet-title a.reload[data-load="true"]').click(),$("body").on("click",".portlet > .portlet-title > .tools > .collapse, .portlet .portlet-title > .tools > .expand",(function(t){t.preventDefault();
15var e=$(this).closest(".portlet").children(".portlet-body");$(this).hasClass("collapse")?($(this).removeClass("collapse").addClass("expand"),e.slideUp(200)):($(this).removeClass("expand").addClass("collapse"),e.slideDown(200))}))},g=function(){if($().uniform){var t=$("input[type=checkbox]:not(.toggle, .md-check, .md-radiobtn, .make-switch, .icheck), input[type=radio]:not(.toggle, .md-check, .md-radiobtn, .star, .make-switch, .icheck)");t.size()>0&&t.each((function(){0===$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())}))}},m=function(){var t,e,i,n,r;($("body").on("click",".md-checkbox > label, .md-radio > label",(function(){var t=$(this),e=$(this).children("span:first-child");e.addClass("inc");var i=e.clone(!0);e.before(i),$("."+e.attr("class")+":last",t).remove()})),$("body").hasClass("page-md"))&&$("body").on("click","a.btn, button.btn, input.btn, label.btn",(function(o){0==(t=$(this)).find(".md-click-circle").length&&t.prepend("<span class='md-click-circle'></span>"),(e=t.find(".md-click-circle")).removeClass("md-click-animate"),e.height()||e.width()||(i=Math.max(t.outerWidth(),t.outerHeight()),e.css({height:i,width:i})),n=o.pageX-t.offset().left-e.width()/2,r=o.pageY-t.offset().top-e.height()/2,e.css({top:r+"px",left:n+"px"}).addClass("md-click-animate"),setTimeout((function(){e.remove()}),1e3)}));var o=function(t){""!=t.val()?t.addClass("edited"):t.removeClass("edited")};$("body").on("keydown",".form-md-floating-label .form-control",(function(){o($(this))})),$("body").on("blur",".form-md-floating-label .form-control",(function(){o($(this))})),$(".form-md-floating-label .form-control").each((function(){$(this).val().length>0&&$(this).addClass("edited")}))},v=function(){$().iCheck&&$(".icheck").each((function(){var t=$(this).attr("data-checkbox")?$(this).attr("data-checkbox"):"icheckbox_minimal-grey",e=$(this).attr("data-radio")?$(this).attr("data-radio"):"iradio_minimal-grey";t.indexOf("_line")>-1||e.indexOf("_line")>-1?$(this).iCheck({checkboxClass:t,radioClass:e,insert:'<div class="icheck_line-icon"></div>'+$(this).attr("data-label")}):$(this).iCheck({checkboxClass:t,radioClass:e})}))},b=function(){$().bootstrapSwitch&&$(".make-switch").bootstrapSwitch()},y=function(){$().confirmation&&$("[data-bs-toggle=confirmation]").confirmation({container:"body",btnOkClass:"btn btn-sm btn-success",btnCancelClass:"btn btn-sm btn-danger"})},x=function(){$("body").on("shown.bs.collapse",".accordion.scrollable",(function(t){App.scrollTo($(t.target))}))},w=function(){if(location.hash){var t=encodeURI(location.hash.substr(1));$('a[href="#'+t+'"]').parents(".tab-pane:hidden").each((function(){var t=$(this).attr("id");$('a[href="#'+t+'"]').click()})),$('a[href="#'+t+'"]').click()}$().tabdrop&&$(".tabbable-tabdrop .nav-pills, .tabbable-tabdrop .nav-tabs").tabdrop({text:'<i class="fa fa-ellipsis-v"></i>&nbsp;<i class="fa fa-angle-down"></i>'})},_=function(){$("body").on("hide.bs.modal",(function(){$(".modal:visible").size>1&&!1===$("html").hasClass("modal-open")?$("html").addClass("modal-open"):$(".modal:visible").size<=1&&$("html").removeClass("modal-open")})),$("body").on("show.bs.modal",".modal",(function(){$(this).hasClass("modal-scroll")&&$("body").addClass("modal-open-noscroll")})),$("body").on("hide.bs.modal",".modal",(function(){$("body").removeClass("modal-open-noscroll")})),$("body").on("hidden.bs.modal",".modal:not(.modal-cached)",(function(){$(this).removeData("bs.modal")}))},C=function(){$(".tooltips").tooltip(),$(".portlet > .portlet-title .fullscreen").tooltip({container:"body",title:"Fullscreen"}),$(".portlet > .portlet-title > .tools > .reload").tooltip({container:"body",title:"Reload"}),$(".portlet > .portlet-title > .tools > .remove").tooltip({container:"body",title:"Remove"}),$(".portlet > .portlet-title > .tools > .config").tooltip({container:"body",title:"Settings"}),$(".portlet > .portlet-title > .tools > .collapse, .portlet > .portlet-title > .tools > .expand").tooltip({container:"body",title:"Collapse/Expand"})},S=function(){$("body").on("click",".dropdown-menu.hold-on-click",(function(t){t.stopPropagation()}))},k=function(){$("body").on("click",'[data-close="alert"]',(function(t){$(this).parent(".alert").hide(),$(this).closest(".
15note").hide(),t.preventDefault()})),$("body").on("click",'[data-close="note"]',(function(t){$(this).closest(".note").hide(),t.preventDefault()})),$("body").on("click",'[data-remove="note"]',(function(t){$(this).closest(".note").remove(),t.preventDefault()}))},A=function(){$('[data-hover="dropdown"]').not(".hover-initialized").each((function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")}))},T=function(){"function"==typeof autosize&&autosize(document.querySelector("textarea.autosizeme"))},L=function(){$(".popovers").popover(),$(document).on("click.bs.popover.data-api",(function(){t&&t.popover("hide")}))},D=function(){App.initSlimScroll(".scroller")},E=function(){jQuery.fancybox&&$(".fancybox-button").size()>0&&$(".fancybox-button").fancybox({groupAttr:"data-rel",prevEffect:"none",nextEffect:"none",closeBtn:!0,helpers:{title:{type:"inside"}}})},P=function(){$().counterUp&&$("[data-counter='counterup']").counterUp({delay:10,time:1e3})},I=function(){(i||n)&&$("input[placeholder]:not(.placeholder-no-fix), textarea[placeholder]:not(.placeholder-no-fix)").each((function(){var t=$(this);""===t.val()&&""!==t.attr("placeholder")&&t.addClass("placeholder").val(t.attr("placeholder")),t.focus((function(){t.val()==t.attr("placeholder")&&t.val("")})),t.blur((function(){""!==t.val()&&t.val()!=t.attr("placeholder")||t.val(t.attr("placeholder"))}))}))},M=function(){
16$().select2&&($.fn.select2.defaults.set("theme","bootstrap"),$(".select2me").select2({placeholder:"Select",width:"auto",allowClear:!0}))},O=function(){$("[data-auto-height]").each((function(){var t=$(this),e=$("[data-height]",t),i=0,n=t.attr("data-mode"),r=parseInt(t.attr("data-offset")?t.attr("data-offset"):0);e.each((function(){"height"==$(this).attr("data-height")?$(this).css("height",""):$(this).css("min-height","");var t="base-height"==n?$(this).outerHeight():$(this).outerHeight(!0);t>i&&(i=t)})),i+=r,e.each((function(){"height"==$(this).attr("data-height")?$(this).css("height",i):$(this).css("min-height",i)})),t.attr("data-related")&&$(t.attr("data-related")).css("height",t.height())}))};return{init:function(){d(),p(),m(),g(),v(),b(),D(),E(),M(),f(),k(),S(),w(),C(),L(),x(),_(),y(),T(),P(),this.addResizeHandler(O),I()},initAjax:function(){g(),v(),b(),A(),D(),M(),E(),S(),C(),L(),x(),y()},initComponents:function(){this.initAjax()},setLastPopedPopover:function(e){t=e},addResizeHandler:function(t){o.push(t)},runResizeHandlers:function(){u()},scrollTo:function(t,e){var i=t&&t.size()>0?t.offset().top:0;t&&($("body").hasClass("page-header-fixed")?i-=$(".page-header").height():$("body").hasClass("page-header-top-fixed")?i-=$(".page-header-top").height():$("body").hasClass("page-header-menu-fixed")&&(i-=$(".page-header-menu").height()),i+=e||-1*t.height()),$("html,body").animate({scrollTop:i},"slow")},initSlimScroll:function(t){t&&$(t).each((function(){var t;$(this).attr("data-initialized")||(t=$(this).attr("data-height")?$(this).attr("data-height"):$(this).css("height"),$(this).slimScroll({allowPageScroll:!0,size:"7px",color:$(this).attr("data-handle-color")?$(this).attr("data-handle-color"):"#bbb",wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",railColor:$(this).attr("data-rail-color")?$(this).attr("data-rail-color"):"#eaeaea",position:e?"left":"right",height:t,alwaysVisible:"1"==$(this).attr("data-always-visible"),railVisible:"1"==$(this).attr("data-rail-visible"),disableFadeOut:!0}),$(this).attr("data-initialized","1"))}))},destroySlimScroll:function(t){$(t).each((function(){if("1"===$(this).attr("data-initialized")){$(this).removeAttr("data-initialized"),$(this).removeAttr("style");var t={};$(this).attr("data-handle-color")&&(t["data-handle-color"]=$(this).attr("data-handle-color")),$(this).attr("data-wrapper-class")&&(t["data-wrapper-class"]=$(this).attr("data-wrapper-class")),$(this).attr("data-rail-color")&&(t["data-rail-color"]=$(this).attr("data-rail-color")),$(this).attr("data-always-visible")&&(t["data-always-visible"]=$(this).attr("data-always-visible")),$(this).attr("data-rail-visible")&&(t["data-rail-visible"]=$(this).attr("data-rail-visible")),$(this).slimScroll({wrapperClass:$(this).attr("data-wrapper-class")?$(this).attr("data-wrapper-class"):"slimScrollDiv",destroy:!0});
16var e=$(this);$.each(t,(function(t,i){e.attr(t,i)}))}}))},scrollTop:function(){App.scrollTo()},blockUI:function(t){var e="";if(e=(t=$.extend(!0,{},t)).animate?'<div class="loading-message '+(t.boxed?"loading-message-boxed":"")+'"><div class="block-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>':t.iconOnly?'<div class="loading-message '+(t.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-grey.gif" align=""></div>':t.textOnly?'<div class="loading-message '+(t.boxed?"loading-message-boxed":"")+'"><span>&nbsp;&nbsp;'+(t.message?t.message:"LOADING...")+"</span></div>":'<div class="loading-message '+(t.boxed?"loading-message-boxed":"")+'"><img src="'+this.getGlobalImgPath()+'loading-spinner-grey.gif" align=""><span>&nbsp;&nbsp;'+(t.message?t.message:"LOADING...")+"</span></div>",t.target){var i=$(t.target);i.height()<=$(window).height()&&(t.cenrerY=!0),i.block({message:e,baseZ:t.zIndex?t.zIndex:1e3,centerY:void 0!==t.cenrerY&&t.cenrerY,css:{top:"10%",border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:t.overlayColor?t.overlayColor:"#555",opacity:t.boxed?.05:.1,cursor:"wait"}})}else $.blockUI({message:e,baseZ:t.zIndex?t.zIndex:1e3,css:{border:"0",padding:"0",backgroundColor:"none"},overlayCSS:{backgroundColor:t.overlayColor?t.overlayColor:"#555",opacity:t.boxed?.05:.1,cursor:"wait"}})},unblockUI:function(t){t?$(t).unblock({onUnblock:function(){$(t).css("position",""),$(t).css("zoom","")}}):$.unblockUI()},startPageLoading:function(t){t&&t.animate?($(".page-spinner-bar").remove(),$("body").append('<div class="page-spinner-bar"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>')):($(".page-loading").remove(),$("body").append('<div class="page-loading"><img src="'+this.getGlobalImgPath()+'loading-spinner-grey.gif"/>&nbsp;&nbsp;<span>'+(t&&t.message?t.message:"Loading...")+"</span></div>"))},stopPageLoading:function(){$(".page-loading, .page-spinner-bar").remove()},alert:function(t){t=$.extend(!0,{container:"",place:"append",type:"success",message:"",close:!0,reset:!0,focus:!0,closeInSeconds:0,icon:""},t);var e=App.getUniqueID("App_alert"),i='<div id="'+e+'" class="custom-alerts alert alert-'+t.type+' fade show">'+(t.close?'<button type="button" class="btn-close" data-bs-dismiss="alert" aria-hidden="true"></button>':"")+(""!==t.icon?'<i class="fa-lg fa fa-'+t.icon+'"></i>  ':"")+t.message+"</div>";return t.reset&&$(".custom-alerts").remove(),t.container?"append"==t.place?$(t.container).append(i):$(t.container).prepend(i):$("body").hasClass("page-container-bg-solid")||$("body").hasClass("page-content-white")?$(".page-title").after(i):$(".page-bar").size()>0?$(".page-bar").after(i):$(".page-breadcrumb").after(i),t.focus&&App.scrollTo($("#"+e)),t.closeInSeconds>0&&setTimeout((function(){$("#"+e).remove()}),1e3*t.closeInSeconds),e},initUniform:function(t){t?$(t).each((function(){0===$(this).parents(".checker").size()&&($(this).show(),$(this).uniform())})):g()},updateUniform:function(t){$.uniform.update(t)},initFancybox:function(){E()},getActualVal:function(t){return(t=$(t)).val()===t.attr("placeholder")?"":t.val()},getURLParameter:function(t){var e,i,n=window.location.search.substring(1).split("&");for(e=0;e<n.length;e++)if((i=n[e].split("="))[0]==t)return unescape(i[1]);return null},isTouchDevice:function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}},getViewPort:function(){var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"],height:t[e+"Height"]}},getUniqueID:function(){return"prefix_"+Math.floor(Math.random()*(new Date).getTime())},isIE8:function(){return i},isIE9:function(){return n},isRTL:function(){return e},isAngularJsApp:function(){return"undefined"!=typeof angular},getAssetsPath:function(){return a},setAssetsPath:function(t){a=t},setGlobalImgPath:function(t){s=t},getGlobalImgPath:function(){return a+s},setGlobalPluginsPath:function(t){l=t},getGlobalPluginsPath:function(){return a+l},getGlobalCssPath:function(){return a+c},getBrandColor:function(t){return h[t]?h[t]:""},getResponsiveBreakpoint:function(t){var e={xs:480,sm:768,md:992,lg:1200};return e[t]?e[t]:0}}}();jQuery(document).ready((function(){App.init()})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,(function(){"use strict";function t(){return Pn.apply(null,arguments)}function e(t){Pn=t}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function r(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;
vendor: 35,148 bytes, lines 16-17
16for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function o(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t,e){for(var i in e)c(e,i)&&(t[i]=e[i]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,i,n){return ke(t,e,i,n,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(t){return null==t._pf&&(t._pf=u()),t._pf}function f(t){if(null==t._isValid){var e=p(t),i=In.call(e.parsedDateParts,(function(t){return null!=t})),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function g(t){var e=d(NaN);return null!=t?h(p(e),t):p(e).userInvalidated=!0,e}function m(t,e){var i,n,r;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=p(e)),o(e._locale)||(t._locale=e._locale),On.length>0)for(i=0;i<On.length;i++)o(r=e[n=On[i]])||(t[n]=r);return t}function v(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Fn&&(Fn=!0,t.updateOffset(this),Fn=!1)}function b(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function y(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=y(e)),i}function w(t,e,i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&x(t[n])!==x(e[n]))&&a++;return a+o}function _(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,i){var n=!0;return h((function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}_(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)}),i)}function S(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i),Rn[e]||(_(i),Rn[e]=!0)}function k(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function A(t){var e,i;for(i in t)k(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(t,e){var i,r=h({},t);for(i in e)c(e,i)&&(n(t[i])&&n(e[i])?(r[i]={},h(r[i],t[i]),h(r[i],e[i])):null!=e[i]?r[i]=e[i]:delete r[i]);for(i in t)c(t,i)&&!c(e,i)&&n(t[i])&&(r[i]=h({},r[i]));return r}function L(t){null!=t&&this.set(t)}function D(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return k(n)?n.call(e,i):n}function E(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])}function P(){return this._invalidDate}function I(t){return this._ordinal.replace("%d",t)}function M(t,e,i,n){var r=this._relativeTime[i];return k(r)?r(t,e,i,n):r.replace(/%d/i,t)}function O(t,e){var i=this._relativeTime[t>0?"future":"past"];return k(i)?i(e):i.replace(/%s/i,e)}function F(t,e){var i=t.toLowerCase();Wn[i]=Wn[i+"s"]=Wn[e]=t}function R(t){return"string"==typeof t?Wn[t]||Wn[t.toLowerCase()]:void 0}function B(t){var e,i,n={};for(i in t)c(t,i)&&(e=R(i))&&(n[e]=t[i]);return n}function N(t,e){zn[t]=e}function j(t){var e=[];for(var i in t)e.push({unit:i,priority:zn[i]});return e.sort((function(t,e){return t.priority-e.priority})),e}function $(t,e,i){var n=""+Math.abs(t),r=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}function V(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(Yn[t]=r),e&&(Yn[e[0]]=function(){return $(r.apply(this,arguments),e[1],e[2])}),i&&(Yn[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function W(t){var e,i,n=t.match(qn);for(e=0,i=n.length;e<i;e++)Yn[n[e]]?n[e]=Yn[n[e]]:n[e]=H(n[e]);return function(e){var r,o="";for(r=0;r<i;r++)o+=k(n[r])?n[r].call(e,t):n[r];return o}}function z(t,e){return t.isValid()?(e=q(e,t.localeData()),Gn[e]=Gn[e]||W(e),Gn[e](t)):t.localeData().invalidDate()}function q(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(Un.lastIndex=0;n>=0&&Un.test(t);)t=t.replace(Un,i),Un.lastIndex=0,n-=1;return t}function U(t,e,i){ur[t]=k(e)?e:function(t){return t&&i?i:e}}function G(t,e){return c(ur,t)?ur[t](e._strict,e._locale):new RegExp(Y(t))}function Y(t){return X(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r})))}function X(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function J(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),a(e)&&(n=function(t,i){i[e]=x(t)}),i=0;i<t.length;i++)pr[t[i]]=n}function K(t,e){J(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Z(t,e,i){null!=e&&c(pr,t)&&pr[t](e,i._a,i,t)}function Q(t){return tt(t)?366:365}function tt(t){return t%4==0&&t%100!=0||t%400==0}function et(){return tt(this.year())}function it(e,i){return function(n){return null!=n?(rt(this,e,n),t.updateOffset(this,i),this):nt(this,e)}}function nt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function rt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),lt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function ot(t){return k(this[t=R(t)])?this[t]():this}function at(t,e){if("object"==typeof t)for(var i=j(t=B(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(k(this[t=R(t)]))return this[t](e);return this}function st(t,e){return(t%e+e)%e}function lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=st(e,12);return t+=(e-i)/12,1===i?tt(t)?29:28:31-i%7%2}function ct(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kr).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone}function ht(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kr.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Cr.call(this._shortMonthsParse,a))?r:null:-1!==(r=Cr.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Cr.call(this._shortMonthsParse,a))||-1!==(r=Cr.call(this._longMonthsParse,a))?r:null:-1!==(r=Cr.call(this._longMonthsParse,a))||-1!==(r=Cr.call(this._shortMonthsParse,a))?r:null}function ut(t,e,i){var n,r,o;if(this._monthsParseExact)return dt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=d([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}}function pt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=x(e);else if(!a(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function ft(e){return null!=e?(pt(this,e),t.updateOffset(this,!0),this):nt(this,"Month")}function gt(){return lt(this.year(),this.month())}function mt(t){return this._monthsParseExact?(c(this,"_monthsRegex")||bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Lr),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function vt(t){return this._monthsParseExact?(c(this,"_monthsRegex")||bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Dr),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function bt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],o=[];for(e=0;e<12;e++)i=d([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)n[e]=X(n[e]),r[e]=X(r[e]);for(e=0;e<24;e++)o[e]=X(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function yt(t,e,i,n,r,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,i,n,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,i,n,r,o,a),s}function xt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function wt(t,e,i){var n=7+e-i;return-((7+xt(t,0,n).getUTCDay()-e)%7)+n-1}function _t(t,e,i,n,r){var o,a,s=1+7*(e-1)+(7+i-n)%7+wt(t,n,r);return s<=0?a=Q(o=t-1)+s:s>Q(t)?(o=t+1,a=s-Q(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Ct(t,e,i){var n,r,o=wt(t.year(),e,i),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?n=a+St(r=t.year()-1,e,i):a>St(t.year(),e,i)?(n=a-St(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function St(t,e,i){var n=wt(t,e,i),r=wt(t+1,e,i);return(Q(t)-n+r)/7}function kt(t){return Ct(t,this._week.dow,this._week.doy).week}function At(){return this._week.dow}function Tt(){return this._week.doy}function Lt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Dt(t){var e=Ct(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Et(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Pt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function It(t,e){return t.slice(e,7).concat(t.slice(0,e))}function Mt(t,e){var n=i(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?It(n,this._week.dow):t?n[t.day()]:n}function Ot(t){return!0===t?It(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ft(t){return!0===t?It(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Rt(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=Cr.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Cr.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Cr.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Cr.call(this._weekdaysParse,a))||-1!==(r=Cr.call(this._shortWeekdaysParse,a))||-1!==(r=Cr.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Cr.call(this._shortWeekdaysParse,a))||-1!==(r=Cr.call(this._weekdaysParse,a))||-1!==(r=Cr.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Cr.call(this._minWeekdaysParse,a))||-1!==(r=Cr.call(this._weekdaysParse,a))||-1!==(r=Cr.call(this._shortWeekdaysParse,a))?r:null}function Bt(t,e,i){var n,r,o;if(this._weekdaysParseExact)return Rt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=d([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Et(t,this.localeData()),this.add(t-e,"d")):e}function jt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function $t(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Vt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Or),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ht(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fr),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rr),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zt(){function t(t,e){return e.length-t.length}var e,i,n,r,o,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)i=d([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),o=this.weekdays(i,""),a.push(n),s.push(r),l.push(o),c.push(n),c.push(r),c.push(o);for(a.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=X(s[e]),l[e]=X(l[e]),c[e]=X(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qt(){return this.hours()%12||12}function Ut(){return this.hours()||24}function Gt(t,e){V(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Yt(t,e){return e._meridiemParse}function Xt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Jt(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}function Kt(t){return t?t.toLowerCase().replace("_","-"):t}function Zt(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=Kt(t[o]).split("-")).length,i=(i=Kt(t[o+1]))?i.split("-"):null;e>0;){if(n=Qt(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&w(r,i,!0)>=e-1)break;e--}o++}return Br}function Qt(t){var e=null;if(!Vr[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Br._abbr,require("./locale/"+t),te(e)}catch(t){}return Vr[t]}function te(t,e){var i;return t&&((i=o(e)?ne(t):ee(t,e))?Br=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Br._abbr}function ee(t,e){if(null!==e){var i,n=$r;if(e.abbr=t,null!=Vr[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Vr[t]._config;else if(null!=e.parentLocale)if(null!=Vr[e.parentLocale])n=Vr[e.parentLocale]._config;else{if(null==(i=Qt(e.parentLocale)))return Hr[e.parentLocale]||(Hr[e.parentLocale]=[]),Hr[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Vr[t]=new L(T(n,e)),Hr[t]&&Hr[t].forEach((function(t){ee(t.name,t.config)})),te(t),Vr[t]}return delete Vr[t],null}function ie(t,e){if(null!=e){var i,n,r=$r;null!=(n=Qt(t))&&(r=n._config),(i=new L(e=T(r,e))).parentLocale=Vr[t],Vr[t]=i,te(t)}else null!=Vr[t]&&(null!=Vr[t].parentLocale?Vr[t]=Vr[t].parentLocale:null!=Vr[t]&&delete Vr[t]);return Vr[t]}function ne(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Br;if(!i(t)){if(e=Qt(t))return e;t=[t]}return Zt(t)}function re(){return Mn(Vr)}function oe(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[gr]<0||i[gr]>11?gr:i[mr]<1||i[mr]>lt(i[fr],i[gr])?mr:i[vr]<0||i[vr]>24||24===i[vr]&&(0!==i[br]||0!==i[yr]||0!==i[xr])?vr:i[br]<0||i[br]>59?br:i[yr]<0||i[yr]>59?yr:i[xr]<0||i[xr]>999?xr:-1,p(t)._overflowDayOfYear&&(e<fr||e>mr)&&(e=mr),p(t)._overflowWeeks&&-1===e&&(e=wr),p(t)._overflowWeekday&&-1===e&&(e=_r),p(t).overflow=e),t}function ae(t,e,i){return null!=t?t:null!=e?e:i}function se(e){var i=new Date(t.now());return e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function le(t){var e,i,n,r,o,a=[];if(!t._d){for(n=se(t),t._w&&null==t._a[mr]&&null==t._a[gr]&&ce(t),null!=t._dayOfYear&&(o=ae(t._a[fr],n[fr]),(t._dayOfYear>Q(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=xt(o,0,t._dayOfYear),t._a[gr]=i.getUTCMonth(),t._a[mr]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vr]&&0===t._a[br]&&0===t._a[yr]&&0===t._a[xr]&&(t._nextDay=!0,t._a[vr]=0),t._d=(t._useUTC?xt:yt).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vr]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(p(t).weekdayMismatch=!0)}}function ce(t){var e,i,n,r,o,a,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,i=ae(e.GG,t._a[fr],Ct(Ae(),1,4).year),n=ae(e.W,1),((r=ae(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var c=Ct(Ae(),o,a);i=ae(e.gg,t._a[fr],c.year),n=ae(e.w,c.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o}n<1||n>St(i,o,a)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(s=_t(i,n,r,o,a),t._a[fr]=s.year,t._dayOfYear=s.dayOfYear)}function he(t){var e,i,n,r,o,a,s=t._i,l=Wr.exec(s)||zr.exec(s);if(l){for(p(t).iso=!0,e=0,i=Ur.length;e<i;e++)if(Ur[e][1].exec(l[1])){r=Ur[e][0],n=!1!==Ur[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=Gr.length;e<i;e++)if(Gr[e][1].exec(l[3])){o=(l[2]||" ")+Gr[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!qr.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=r+(o||"")+(a||""),be(t)}else t._isValid=!1}function de(t,e,i,n,r,o){var a=[ue(t),Tr.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return o&&a.push(parseInt(o,10)),a}function ue(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function pe(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fe(t,e,i){if(t&&Ir.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return p(i).weekdayMismatch=!0,i._isValid=!1,!1;return!0}function ge(t,e,i){if(t)return Jr[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return 60*((n-r)/100)+r}function me(t){var e=Xr.exec(pe(t._i));if(e){var i=de(e[4],e[3],e[2],e[5],e[6],e[7]);if(!fe(e[1],i,t))return;t._a=i,t._tzm=ge(e[8],e[9],e[10]),t._d=xt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function ve(e){var i=Yr.exec(e._i);null===i?(he(e),!1===e._isValid&&(delete e._isValid,me(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))):e._d=new Date(+i[1])}function be(e){if(e._f!==t.ISO_8601)if(e._f!==t.RFC_2822){e._a=[],p(e).empty=!0;var i,n,r,o,a,s=""+e._i,l=s.length,c=0;for(r=q(e._f,e._locale).match(qn)||[],i=0;i<r.length;i++)o=r[i],(n=(s.match(G(o,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),Yn[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),Z(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=l-c,s.length>0&&p(e).unusedInput.push(s),e._a[vr]<=12&&!0===p(e).bigHour&&e._a[vr]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[vr]=ye(e._locale,e._a[vr],e._meridiem),le(e),oe(e)}else me(e);else he(e)}function ye(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}function xe(t){var e,i,n,r,o;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=m({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],be(e),f(e)&&(o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,(null==n||o<n)&&(n=o,i=e));h(t,i||e)}function we(t){if(!t._d){var e=B(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),le(t)}}function _e(t){var e=new v(oe(Ce(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ce(t){var e=t._i,n=t._f;return t._locale=t._locale||ne(t._l),null===e||void 0===n&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new v(oe(e)):(s(e)?t._d=e:i(n)?xe(t):n?be(t):Se(t),f(t)||(t._d=null),t))}function Se(e){var r=e._i;o(r)?e._d=new Date(t.now()):s(r)?e._d=new Date(r.valueOf()):"string"==typeof r?ve(e):i(r)?(e._a=l(r.slice(0),(function(t){return parseInt(t,10)})),le(e)):n(r)?we(e):a(r)?e._d=new Date(r):t.createFromInputFallback(e)}function ke(t,e,o,a,s){var l={};return!0!==o&&!1!==o||(a=o,o=void 0),(n(t)&&r(t)||i(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=o,l._i=t,l._f=e,l._strict=a,_e(l)}function Ae(t,e,i,n){return ke(t,e,i,n,!1)}function Te(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return Ae();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function Le(){return Te("isBefore",[].slice.call(arguments,0))}function De(){return Te("isAfter",[].slice.call(arguments,0))}function Ee(t){for(var e in t)if(-1===Cr.call(to,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<to.length;++n)if(t[to[n]]){if(i)return!1;parseFloat(t[to[n]])!==x(t[to[n]])&&(i=!0)}return!0}function Pe(){return this._isValid}function Ie(){return Ke(NaN)}function Me(t){var e=B(t),i=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,h=e.millisecond||0;this._isValid=Ee(e),this._milliseconds=+h+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=ne(),this._bubble()}function Oe(t){return t instanceof Me}function Fe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Re(t,e){V(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+$(~~(t/60),2)+e+$(~~t%60,2)}))}function Be(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(eo)||["-",0,0],r=60*n[1]+x(n[2]);return 0===r?0:"+"===n[0]?r:-r}function Ne(e,i){var n,r;return i._isUTC?(n=i.clone(),r=(b(e)||s(e)?e.valueOf():Ae(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),t.updateOffset(n,!1),n):Ae(e).local()}function je(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function $e(e,i,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Be(cr,e)))return this
17}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&i&&(r=je(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!i||this._changeInProgress?ii(this,Ke(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:je(this)}function Ve(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function He(t){return this.utcOffset(0,t)}function We(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(je(this),"m")),this}function ze(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Be(lr,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function qe(t){return!!this.isValid()&&(t=t?Ae(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Ue(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ge(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(m(t,this),(t=Ce(t))._a){var e=t._isUTC?d(t._a):Ae(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ye(){return!!this.isValid()&&!this._isUTC}function Xe(){return!!this.isValid()&&this._isUTC}function Je(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ke(t,e){var i,n,r,o=t,s=null;return Oe(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(o={},e?o[e]=t:o.milliseconds=t):(s=io.exec(t))?(i="-"===s[1]?-1:1,o={y:0,d:x(s[mr])*i,h:x(s[vr])*i,m:x(s[br])*i,s:x(s[yr])*i,ms:x(Fe(1e3*s[xr]))*i}):(s=no.exec(t))?(i="-"===s[1]?-1:1,o={y:Ze(s[2],i),M:Ze(s[3],i),w:Ze(s[4],i),d:Ze(s[5],i),h:Ze(s[6],i),m:Ze(s[7],i),s:Ze(s[8],i)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=ti(Ae(o.from),Ae(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),n=new Me(o),Oe(t)&&c(t,"_locale")&&(n._locale=t._locale),n}function Ze(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Qe(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function ti(t,e){var i;return t.isValid()&&e.isValid()?(e=Ne(e,t),t.isBefore(e)?i=Qe(t,e):((i=Qe(e,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ei(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),ii(this,Ke(i="string"==typeof i?+i:i,n),t),this}}function ii(e,i,n,r){var o=i._milliseconds,a=Fe(i._days),s=Fe(i._months);e.isValid()&&(r=null==r||r,s&&pt(e,nt(e,"Month")+s*n),a&&rt(e,"Date",nt(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&t.updateOffset(e,a||s))}function ni(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ri(e,i){var n=e||Ae(),r=Ne(n,this).startOf("day"),o=t.calendarFormat(this,r)||"sameElse",a=i&&(k(i[o])?i[o].call(this,n):i[o]);return this.format(a||this.localeData().calendar(o,this,Ae(n)))}function oi(){return new v(this)}function ai(t,e){var i=b(t)?t:Ae(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())}function si(t,e){var i=b(t)?t:Ae(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())}function li(t,e,i,n){var r=b(t)?t:Ae(t),o=b(e)?e:Ae(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&(("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i)))}function ci(t,e){var i,n=b(t)?t:Ae(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))}function hi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function di(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ui(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Ne(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=R(e)){case"year":o=pi(this,n)/12;break;case"month":o=pi(this,n);break;case"quarter":o=pi(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:y(o)}function pi(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function fi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function gi(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?z(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(i,"Z")):z(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function mi(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]';return this.format(i+n+r+o)}function vi(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=z(this,e);return this.localeData().postformat(i)}function bi(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ae(t).isValid())?Ke({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function yi(t){return this.from(Ae(),t)}function xi(t,e){return this.isValid()&&(b(t)&&t.isValid()||Ae(t).isValid())?Ke({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function wi(t){return this.to(Ae(),t)}function _i(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ne(t))&&(this._locale=e),this)}function Ci(){return this._locale}function Si(t,e){return(t%e+e)%e}function ki(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-ho:new Date(t,e,i).valueOf()}function Ai(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-ho:Date.UTC(t,e,i)}function Ti(e){var i;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Ai:ki;switch(e){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=Si(i+(this._isUTC?0:this.utcOffset()*lo),co);break;case"minute":i=this._d.valueOf(),i-=Si(i,lo);break;case"second":i=this._d.valueOf(),i-=Si(i,so)}return this._d.setTime(i),t.updateOffset(this,!0),this}function Li(e){var i;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Ai:ki;switch(e){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=co-Si(i+(this._isUTC?0:this.utcOffset()*lo),co)-1;break;case"minute":i=this._d.valueOf(),i+=lo-Si(i,lo)-1;break;case"second":i=this._d.valueOf(),i+=so-Si(i,so)-1}return this._d.setTime(i),t.updateOffset(this,!0),this}function Di(){return this._d.valueOf()-6e4*(this._offset||0)}function Ei(){return Math.floor(this.valueOf()/1e3)}function Pi(){return new Date(this.valueOf())}function Ii(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Mi(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Oi(){return this.isValid()?this.toISOString():null}function Fi(){return f(this)}function Ri(){return h({},p(this))}function Bi(){return p(this).overflow}function Ni(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ji(t,e){V(0,[t,t.length],0,e)}function $i(t){return zi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(t){return zi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Hi(){return St(this.year(),1,4)}function Wi(){var t=this.localeData()._week;return St(this.year(),t.dow,t.doy)}function zi(t,e,i,n,r){var o;return null==t?Ct(this,n,r).year:(e>(o=St(t,n,r))&&(e=o),qi.call(this,t,e,i,n,r))}function qi(t,e,i,n,r){var o=_t(t,e,i,n,r),a=xt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ui(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Gi(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Yi(t,e){e[xr]=x(1e3*("0."+t))}function Xi(){return this._isUTC?"UTC":""}function Ji(){return this._isUTC?"Coordinated Universal Time":""}function Ki(t){return Ae(1e3*t)}function Zi(){return Ae.apply(null,arguments).parseZone()}function Qi(t){return t}function tn(t,e,i,n){var r=ne(),o=d().set(n,e);return r[i](o,t)}function en(t,e,i){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return tn(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=tn(t,n,i,"month");return r}
vendor: 4,215 bytes, line 17
17function nn(t,e,i,n){"boolean"==typeof t?(a(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,a(e)&&(i=e,e=void 0),e=e||"");var r,o=ne(),s=t?o._week.dow:0;if(null!=i)return tn(e,(i+s)%7,n,"day");var l=[];for(r=0;r<7;r++)l[r]=tn(e,(r+s)%7,n,"day");return l}function rn(t,e){return en(t,e,"months")}function on(t,e){return en(t,e,"monthsShort")}function an(t,e,i){return nn(t,e,i,"weekdays")}function sn(t,e,i){return nn(t,e,i,"weekdaysShort")}function ln(t,e,i){return nn(t,e,i,"weekdaysMin")}function cn(){var t=this._data;return this._milliseconds=yo(this._milliseconds),this._days=yo(this._days),this._months=yo(this._months),t.milliseconds=yo(t.milliseconds),t.seconds=yo(t.seconds),t.minutes=yo(t.minutes),t.hours=yo(t.hours),t.months=yo(t.months),t.years=yo(t.years),this}function hn(t,e,i,n){var r=Ke(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function dn(t,e){return hn(this,t,e,1)}function un(t,e){return hn(this,t,e,-1)}function pn(t){return t<0?Math.floor(t):Math.ceil(t)}function fn(){var t,e,i,n,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*pn(mn(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=y(o/1e3),l.seconds=t%60,e=y(t/60),l.minutes=e%60,i=y(e/60),l.hours=i%24,a+=y(i/24),s+=r=y(gn(a)),a-=pn(mn(r)),n=y(s/12),s%=12,l.days=a,l.months=s,l.years=n,this}function gn(t){return 4800*t/146097}function mn(t){return 146097*t/4800}function vn(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=R(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+gn(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(mn(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}}function bn(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function yn(t){return function(){return this.as(t)}}function xn(){return Ke(this)}function wn(t){return t=R(t),this.isValid()?this[t+"s"]():NaN}function _n(t){return function(){return this.isValid()?this._data[t]:NaN}}function Cn(){return y(this.days()/7)}function Sn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}function kn(t,e,i){var n=Ke(t).abs(),r=Ro(n.as("s")),o=Ro(n.as("m")),a=Ro(n.as("h")),s=Ro(n.as("d")),l=Ro(n.as("M")),c=Ro(n.as("y")),h=r<=Bo.ss&&["s",r]||r<Bo.s&&["ss",r]||o<=1&&["m"]||o<Bo.m&&["mm",o]||a<=1&&["h"]||a<Bo.h&&["hh",a]||s<=1&&["d"]||s<Bo.d&&["dd",s]||l<=1&&["M"]||l<Bo.M&&["MM",l]||c<=1&&["y"]||["yy",c];return h[2]=e,h[3]=+t>0,h[4]=i,Sn.apply(null,h)}function An(t){return void 0===t?Ro:"function"==typeof t&&(Ro=t,!0)}function Tn(t,e){return void 0!==Bo[t]&&(void 0===e?Bo[t]:(Bo[t]=e,"s"===t&&(Bo.ss=e-1),!0))}function Ln(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=kn(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)}function Dn(t){return(t>0)-(t<0)||+t}function En(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=No(this._milliseconds)/1e3,n=No(this._days),r=No(this._months);t=y(i/60),e=y(t/60),i%=60,t%=60;var o=y(r/12),a=r%=12,s=n,l=e,c=t,h=i?i.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var u=d<0?"-":"",p=Dn(this._months)!==Dn(d)?"-":"",f=Dn(this._days)!==Dn(d)?"-":"",g=Dn(this._milliseconds)!==Dn(d)?"-":"";return u+"P"+(o?p+o+"Y":"")+(a?p+a+"M":"")+(s?f+s+"D":"")+(l||c||h?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(h?g+h+"S":"")}var Pn,In;In=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var Mn,On=t.momentProperties=[],Fn=!1,Rn={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,Mn=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)c(t,e)&&i.push(e);return i};var Bn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"}
vendor: 4,371 bytes, line 17
17,Nn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},jn="Invalid date",$n="%d",Vn=/\d{1,2}/,Hn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Wn={},zn={},qn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Un=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gn={},Yn={},Xn=/\d/,Jn=/\d\d/,Kn=/\d{3}/,Zn=/\d{4}/,Qn=/[+-]?\d{6}/,tr=/\d\d?/,er=/\d\d\d\d?/,ir=/\d\d\d\d\d\d?/,nr=/\d{1,3}/,rr=/\d{1,4}/,or=/[+-]?\d{1,6}/,ar=/\d+/,sr=/[+-]?\d+/,lr=/Z|[+-]\d\d:?\d\d/gi,cr=/Z|[+-]\d\d(?::?\d\d)?/gi,hr=/[+-]?\d+(\.\d{1,3})?/,dr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ur={},pr={},fr=0,gr=1,mr=2,vr=3,br=4,yr=5,xr=6,wr=7,_r=8;V("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),V(0,["YY",2],0,(function(){return this.year()%100})),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),F("year","y"),N("year",1),U("Y",sr),U("YY",tr,Jn),U("YYYY",rr,Zn),U("YYYYY",or,Qn),U("YYYYYY",or,Qn),J(["YYYYY","YYYYYY"],fr),J("YYYY",(function(e,i){i[fr]=2===e.length?t.parseTwoDigitYear(e):x(e)})),J("YY",(function(e,i){i[fr]=t.parseTwoDigitYear(e)})),J("Y",(function(t,e){e[fr]=parseInt(t,10)})),t.parseTwoDigitYear=function(t){return x(t)+(x(t)>68?1900:2e3)};var Cr,Sr=it("FullYear",!0);Cr=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},V("M",["MM",2],"Mo",(function(){return this.month()+1})),V("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),V("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),F("month","M"),N("month",8),U("M",tr),U("MM",tr,Jn),U("MMM",(function(t,e){return e.monthsShortRegex(t)})),U("MMMM",(function(t,e){return e.monthsRegex(t)})),J(["M","MM"],(function(t,e){e[gr]=x(t)-1})),J(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[gr]=r:p(i).invalidMonth=t}));var kr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ar="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Tr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Lr=dr,Dr=dr;V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),N("week",5),N("isoWeek",5),U("w",tr),U("ww",tr,Jn),U("W",tr),U("WW",tr,Jn),K(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=x(t)}));var Er={dow:0,doy:6};V("d",0,"do","day"),V("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),V("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),V("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),U("d",tr),U("e",tr),U("E",tr),U("dd",(function(t,e){return e.weekdaysMinRegex(t)})),U("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),U("dddd",(function(t,e){return e.weekdaysRegex(t)})),K(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:p(i).invalidWeekday=t})),K(["d","e","E"],(function(t,e,i,n){e[n]=x(t)}));var Pr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ir="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Or=dr,Fr=dr,Rr=dr;V("H",["HH",2],0,"hour"),V("h",["hh",2],0,qt),V("k",["kk",2],0,Ut),V("hmm",0,0,(function(){return""+qt.apply(this)+$(this.minutes(),2)})),V("hmmss",0,0,(function(){return""+qt.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)})),V("Hmm",0,0,(function(){return""+this.hours()+$(this.minutes(),2)})),V("Hmmss",0,0,(function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)})),Gt("a",!0),Gt("A",!1),F("hour","h"),N("hour",13),U("a",Yt),U("A",Yt),U("H",tr),U("h",tr),U("k",tr),U("HH",tr,Jn),U("hh",tr,Jn),U("kk",tr,Jn),U("hmm",er),U("hmmss",ir),U("Hmm",er),U("Hmmss",ir),J(["H","HH"],vr),J(["k","kk"],(function(t,e){var i=x(t);e[vr]=24===i?0:i}
17)),J(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),J(["h","hh"],(function(t,e,i){e[vr]=x(t),p(i).bigHour=!0})),J("hmm",(function(t,e,i){var n=t.length-2;e[vr]=x(t.substr(0,n)),e[br]=x(t.substr(n)),p(i).bigHour=!0})),J("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[vr]=x(t.substr(0,n)),e[br]=x(t.substr(n,2)),e[yr]=x(t.substr(r)),p(i).bigHour=!0})),J("Hmm",(function(t,e){var i=t.length-2;e[vr]=x(t.substr(0,i)),e[br]=x(t.substr(i))})),J("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[vr]=x(t.substr(0,i)),e[br]=x(t.substr(i,2)),e[yr]=x(t.substr(n))}));var Br,Nr=/[ap]\.?m?\.?/i,jr=it("Hours",!0),$r={calendar:Bn,longDateFormat:Nn,invalidDate:jn,ordinal:$n,dayOfMonthOrdinalParse:Vn,relativeTime:Hn,months:Ar,monthsShort:Tr,week:Er,weekdays:Pr,weekdaysMin:Mr,weekdaysShort:Ir,meridiemParse:Nr},Vr={},Hr={},Wr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qr=/Z|[+-]\d\d(?::?\d\d)?/,Ur=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Gr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yr=/^\/?Date\((\-?\d+)/i,Xr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Jr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),t.ISO_8601=function(){},t.RFC_2822=function(){};var Kr=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ae.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()})),Zr=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ae.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()})),Qr=function(){return Date.now?Date.now():+new Date},to=["year","quarter","month","week","day","hour","minute","second","millisecond"];Re("Z",":"),Re("ZZ",""),U("Z",cr),U("ZZ",cr),J(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Be(cr,t)}));var eo=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var io=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,no=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Ke.fn=Me.prototype,Ke.invalid=Ie;var ro=ei(1,"add"),oo=ei(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ao=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)})),so=1e3,lo=60*so,co=60*lo,ho=3506328*co;V(0,["gg",2],0,(function(){return this.weekYear()%100})),V(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),U("G",sr),U("g",sr),U("GG",tr,Jn),U("gg",tr,Jn),U("GGGG",rr,Zn),U("gggg",rr,Zn),U("GGGGG",or,Qn),U("ggggg",or,Qn),K(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,
vendor: 1,807 bytes, line 17
17i,n){e[n.substr(0,2)]=x(t)})),K(["gg","GG"],(function(e,i,n,r){i[r]=t.parseTwoDigitYear(e)})),V("Q",0,"Qo","quarter"),F("quarter","Q"),N("quarter",7),U("Q",Xn),J("Q",(function(t,e){e[gr]=3*(x(t)-1)})),V("D",["DD",2],"Do","date"),F("date","D"),N("date",9),U("D",tr),U("DD",tr,Jn),U("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),J(["D","DD"],mr),J("Do",(function(t,e){e[mr]=x(t.match(tr)[0])}));var uo=it("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),N("dayOfYear",4),U("DDD",nr),U("DDDD",Kn),J(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=x(t)})),V("m",["mm",2],0,"minute"),F("minute","m"),N("minute",14),U("m",tr),U("mm",tr,Jn),J(["m","mm"],br);var po=it("Minutes",!1);V("s",["ss",2],0,"second"),F("second","s"),N("second",15),U("s",tr),U("ss",tr,Jn),J(["s","ss"],yr);var fo,go=it("Seconds",!1);for(V("S",0,0,(function(){return~~(this.millisecond()/100)})),V(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),V(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),V(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),V(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),V(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),V(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),N("millisecond",16),U("S",nr,Xn),U("SS",nr,Jn),U("SSS",nr,Kn),fo="SSSS";fo.length<=9;fo+="S")U(fo,ar);for(fo="S";fo.length<=9;fo+="S")J(fo,Yi);var mo=it("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var vo=v.prototype;vo.add=ro,vo.calendar=ri,vo.clone=oi,vo.diff=ui,vo.endOf=Li,vo.format=vi,vo.from=bi,vo.fromNow=yi,vo.to=xi,vo.toNow=wi,vo.get=
17ot,vo.invalidAt=Bi,vo.isAfter=ai,vo.isBefore=si,vo.isBetween=li,vo.isSame=ci,vo.isSameOrAfter=hi,vo.isSameOrBefore=di,vo.isValid=Fi,vo.lang=ao,vo.locale=_i,vo.localeData=Ci,vo.max=Zr,vo.min=Kr,vo.parsingFlags=Ri,vo.set=at,vo.startOf=Ti,vo.subtract=oo,vo.toArray=Ii,vo.toObject=Mi,vo.toDate=Pi,vo.toISOString=gi,vo.inspect=mi,vo.toJSON=Oi,vo.toString=fi,vo.unix=Ei,vo.valueOf=Di,vo.creationData=Ni,vo.year=Sr,vo.isLeapYear=et,vo.weekYear=$i,vo.isoWeekYear=Vi,vo.quarter=vo.quarters=Ui,vo.month=ft,vo.daysInMonth=gt,vo.week=vo.weeks=Lt,vo.isoWeek=vo.isoWeeks=Dt,vo.weeksInYear=Wi,vo.isoWeeksInYear=Hi,vo.date=uo,vo.day=vo.days=Nt,vo.weekday=jt,vo.isoWeekday=$t,vo.dayOfYear=Gi,vo.hour=vo.hours=jr,vo.minute=vo.minutes=po,vo.second=vo.seconds=go,vo.millisecond=vo.milliseconds=mo,vo.utcOffset=$e,vo.utc=He,vo.local=We,vo.parseZone=ze,vo.hasAlignedHourOffset=qe,vo.isDST=Ue,vo.isLocal=Ye,vo.isUtcOffset=Xe,vo.isUtc=Je,vo.isUTC=Je,vo.zoneAbbr=Xi,vo.zoneName=Ji,vo.dates=C("dates accessor is deprecated. Use date instead.",uo),vo.months=C("months accessor is deprecated. Use month instead",ft),vo.years=C("years accessor is deprecated. Use year instead",Sr),vo.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ve),vo.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ge);var bo=L.prototype;bo.calendar=D,bo.longDateFormat=E,bo.invalidDate=P,bo.ordinal=I,bo.preparse=Qi,bo.postformat=Qi,bo.relativeTime=M,bo.pastFuture=O,bo.set=A,bo.months=ct,bo.monthsShort=ht,bo.monthsParse=ut,bo.monthsRegex=vt,bo.monthsShortRegex=mt,bo.week=kt,bo.firstDayOfYear=Tt,bo.firstDayOfWeek=At,bo.weekdays=Mt,bo.weekdaysMin=Ft,bo.weekdaysShort=Ot,bo.weekdaysParse=Bt,bo.weekdaysRegex=Vt,bo.weekdaysShortRegex=Ht,bo.weekdaysMinRegex=Wt,bo.isPM=Xt,bo.meridiem=Jt,te("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=C("moment.lang is deprecated. Use moment.locale instead.",te),t.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ne);var yo=Math.abs,xo=yn("ms"),wo=yn("s"),_o=yn("m"),Co=yn("h"),So=yn("d"),ko=yn("w"),Ao=yn("M"),To=yn("Q"),Lo=yn("y"),Do=_n("milliseconds"),Eo=_n("seconds"),Po=_n("minutes"),Io=_n("hours"),Mo=_n("days"),Oo=_n("months"),Fo=_n("years"),Ro=Math.round,Bo={ss:44,s:45,m:45,h:22,d:26,M:11},No=Math.abs,jo=Me.prototype;return jo.isValid=Pe,jo.abs=cn,jo.add=dn,jo.subtract=un,jo.as=vn,jo.asMilliseconds=xo,jo.asSeconds=wo,jo.asMinutes=_o,jo.asHours=Co,jo.asDays=So,jo.asWeeks=ko,jo.asMonths=Ao,jo.asQuarters=To,jo.asYears=Lo,jo.valueOf=bn,jo._bubble=fn,jo.clone=xn,jo.get=wn,jo.milliseconds=Do,jo.seconds=Eo,jo.minutes=Po,jo.hours=Io,jo.days=Mo,jo.weeks=Cn,jo.months=Oo,jo.years=Fo,jo.humanize=Ln,jo.toISOString=En,jo.toString=En,jo.toJSON=En,jo.locale=_i,jo.localeData=Ci,jo.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",En),jo.lang=ao,V("X",0,0,"unix"),V("x",0,0,"valueOf"),U("x",sr),U("X",hr),J("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),J("x",(function(t,e,i){i._d=new Date(x(t))})),t.version="2.24.0",e(Ae),t.fn=vo,t.min=Le,t.max=De,t.now=Qr,t.utc=d,t.unix=Ki,t.months=rn,t.isDate=s,t.locale=te,t.invalid=g,t.duration=Ke,t.isMoment=b,t.weekdays=an,t.parseZone=Zi,t.localeData=ne,t.isDuration=Oe,t.monthsShort=on,t.weekdaysMin=ln,t.defineLocale=ee,t.updateLocale=ie,t.locales=re,t.weekdaysShort=sn,t.normalizeUnits=R,t.relativeTimeRounding=An,t.relativeTimeThreshold=Tn,t.calendarFormat=ni,t.prototype=vo,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ActionCable={})}(this,(function(t){"use strict";function e(t){if("function"==typeof t&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}return t}function i(t=n("url")||c.default_mount_path){return new y(t)}function n(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}var r={logger:self.console,WebSocket:self.WebSocket},o={log(...t){this.enabled&&(t.push(Date.now()),r.logger.log("[ActionCable]",...t))}};const a=()=>(new Date).getTime(),s=t=>(a()-t)/1e3;class l{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=a(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),o.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=a(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),o.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=a()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,o.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=a(),o.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout((()=>{this.reconnectIfStale(),this.poll()}),this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor;return 1e3*t*Math.pow(1+e,Math.min(this.reconnectAttempts,10))*(1+(0===this.reconnectAttempts?1:e)*Math.random())}reconnectIfStale(){this.connectionIsStale()&&(o.log(`ConnectionMonitor detected stale c
17onnection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${s(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?o.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${s(this.disconnectedAt)} s`):(o.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return s(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&s(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){"visible"===document.visibilityState&&setTimeout((()=>{!this.connectionIsStale()&&this.connection.isOpen()||(o.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())}),200)}}l.staleThreshold=6,l.reconnectionBackoffRate=.15;var c={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:h,protocols:d}=c,u=d.slice(0,d.length-1),p=[].indexOf;class f{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new l(this),this.disconnected=!0}send(t){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(t)),!0)}open(){return this.isActive()?(o.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1):(o.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${d}`),
18this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new r.WebSocket(this.consumer.url,d),this.installEventHandlers(),this.monitor.start(),!0)}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(o.log(`Reopening WebSocket, current state is ${this.getState()}`),!this.isActive())return this.open();try{return this.close()}catch(t){o.log("Failed to reopen WebSocket",t)}finally{o.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}isProtocolSupported(){return p.call(u,this.getProtocol())>=0}isState(...t){return p.call(t,this.getState())>=0}getState(){if(this.webSocket)for(let t in r.WebSocket)if(r.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase();return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}f.reopenDelay=500,f.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:i,reason:n,reconnect:r,type:a}=JSON.parse(t.data);switch(a){case h.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case h.disconnect:return o.log(`Disconnecting. Reason: ${n}`),this.close({allowReconnect:r});case h.ping:return this.monitor.recordPing();case h.confirmation:return this.subscriptions.confirmSubscription(e),this.subscriptions.notify(e,"connected");case h.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",i)}},open(){if(o.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return o.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(o.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){o.log("WebSocket onerror event")}};const g=function(t,e){if(null!=e)for(let i in e){const n=e[i];t[i]=n}return t};class m{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),g(this,i)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class v{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){-1==this.pendingSubscriptions.indexOf(t)?(o.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):o.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){o.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter((e=>e!==t))}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout((()=>{this.subscriptions&&"function"==typeof this.subscriptions.subscribe&&this.pendingSubscriptions.map((t=>{o.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)}))}),500)}}class b{constructor(t){this.consumer=t,this.guarantor=new v(this),this.subscriptions=[]}create(t,e){const i="object"==typeof t?t:{channel:t},n=new m(this.consumer,i,e);return this.add(n)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map((t=>(this.forget(t),this.notify(t,"rejected"),t)))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter((e=>e!==t)),t}findAll(t){return this.subscriptions.filter((e=>e.identifier===t))}reload(){return this.subscriptions.map((t=>this.subscribe(t)))}notifyAll(t,...e){return this.subscriptions.map((i=>this.notify(i,t,...e)))}notify(t,e,...i){let n;return n="string"==typeof t?this.findAll(t):[t],n.map((t=>"function"==typeof t[e]?t[e](...i):void 0))}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){o.log(`Subscription confirmed ${t}`),this.findAll(t).map((t=>this.guarantor.forget(t)))}sendCommand(t,e){const{identifier:i}=t;return this.consumer.send({command:e,identifier:i})}}class y{constructor(t){this._url=t,this.subscriptions=new b(this),this.connection=new f(this)}get url(){return e(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}}t.Connection=f,t.ConnectionMonitor=l,t.Consumer=y,t.INTERNAL=c,t.Subscription=m,t.SubscriptionGuarantor=v,t.
18Subscriptions=b,t.adapters=r,t.createConsumer=i,t.createWebSocketURL=e,t.getConfig=n,t.logger=o,Object.defineProperty(t,"__esModule",{value:!0})})),function(){this.App||(this.App={}),App.cable=ActionCable.createConsumer()}.call(this),function(t,e){if("function"==typeof define&&define.amd)define(["moment","jquery","exports"],(function(i,n,r){t.daterangepicker=e(t,r,i,n)}));else if("undefined"!=typeof exports){var i=require("moment"),n="undefined"!=typeof window?window.jQuery:void 0;if(!n)try{(n=require("jquery")).fn||(n.fn={})}catch(t){if(!n)throw new Error("jQuery dependency not found")}e(t,exports,i,n)}else t.daterangepicker=e(t,{},t.moment||moment,t.jQuery||t.Zepto||t.ender||t.$)}(this||{},(function(t,e,i,n){var r=function(t,e,r){if(this.parentEl="body",this.element=n(t),this.startDate=i().startOf("day"),this.endDate=i().endOf("day"),this.minDate=!1,this.maxDate=!1,this.dateLimit=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.showWeekNumbers=!1,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyClass="btn-success",this.cancelClass="btn-default",this.locale={format:"MM/DD/YYYY",separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:i.weekdaysMin(),monthNames:i.monthsShort(),firstDay:i.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof e&&null!==e||(e={}),"string"!=typeof(e=n.extend(this.element.data(),e)).template&&(e.template='<div class="daterangepicker dropdown-menu"><div class="calendar left"><div class="daterangepicker_input"><input class="input-mini" type="text" name="daterangepicker_start" value="" /><i class="fa fa-calendar glyphicon glyphicon-calendar"></i><div class="calendar-time"><div></div><i class="fa fa-clock-o glyphicon glyphicon-time"></i></div></div><div class="calendar-table"></div></div><div class="calendar right"><div class="daterangepicker_input"><input class="input-mini" type="text" name="daterangepicker_end" value="" /><i class="fa fa-calendar glyphicon glyphicon-calendar"></i><div class="calendar-time"><div></div><i class="fa fa-clock-o glyphicon glyphicon-time"></i></div></div><div class="calendar-table"></div></div><div class="ranges"><div class="range_inputs"><button class="applyBtn" disabled="disabled" type="button"></button> <button class="cancelBtn" type="button"></button></div></div></div>'),this.parentEl=e.parentEl&&n(e.parentEl).length?n(e.parentEl):n(this.parentEl),this.container=n(e.template).appendTo(this.parentEl),"object"==typeof e.locale&&("string"==typeof e.locale.format&&(this.locale.format=e.locale.format),"string"==typeof e.locale.separator&&(this.locale.separator=e.locale.separator),"object"==typeof e.locale.daysOfWeek&&(this.locale.daysOfWeek=e.locale.daysOfWeek.slice()),"object"==typeof e.locale.monthNames&&(this.locale.monthNames=e.locale.monthNames.slice()),"number"==typeof e.locale.firstDay&&(this.locale.firstDay=e.locale.firstDay),"string"==typeof e.locale.applyLabel&&(this.locale.applyLabel=e.locale.applyLabel),"string"==typeof e.locale.cancelLabel&&(this.locale.cancelLabel=e.locale.cancelLabel),"string"==typeof e.locale.weekLabel&&(this.locale.weekLabel=e.locale.weekLabel),"string"==typeof e.locale.customRangeLabel&&(this.locale.customRangeLabel=e.locale.customRangeLabel)),"string"==typeof e.startDate&&(this.startDate=i(e.startDate,this.locale.format)),"string"==typeof e.endDate&&(this.endDate=i(e.endDate,this.locale.format)),"string"==typeof e.minDate&&(this.minDate=i(e.minDate,this.locale.format)),"string"==typeof e.maxDate&&(this.maxDate=i(e.maxDate,this.locale.format)),"object"==typeof e.startDate&&(this.startDate=i(e.startDate)),"object"==typeof e.endDate&&(this.endDate=i(e.endDate)),"object"==typeof e.minDate&&(this.minDate=i(e.minDate)),"object"==typeof e.maxDate&&(this.maxDate=i(e.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof e.applyClass&&(this.applyClass=e.applyClass),"string"==typeof e.cancelClass&&(this.cancelClass=e.cancelClass),"object"==typeof e.dateLimit&&(this.dateLimit=e.dateLimit),"string"==typeof e.o
18pens&&(this.opens=e.opens),"string"==typeof e.drops&&(this.drops=e.drops),"boolean"==typeof e.showWeekNumbers&&(this.showWeekNumbers=e.showWeekNumbers),"string"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses),"object"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses.join(" ")),"boolean"==typeof e.showDropdowns&&(this.showDropdowns=e.showDropdowns),"boolean"==typeof e.singleDatePicker&&(this.singleDatePicker=e.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof e.timePicker&&(this.timePicker=e.timePicker),"boolean"==typeof e.timePickerSeconds&&(this.timePickerSeconds=e.timePickerSeconds),"number"==typeof e.timePickerIncrement&&(this.timePickerIncrement=e.timePickerIncrement),"boolean"==typeof e.timePicker24Hour&&(this.timePicker24Hour=e.timePicker24Hour),"boolean"==typeof e.autoApply&&(this.autoApply=e.autoApply),"boolean"==typeof e.autoUpdateInput&&(this.autoUpdateInput=e.autoUpdateInput),"boolean"==typeof e.linkedCalendars&&(this.linkedCalendars=e.linkedCalendars),"function"==typeof e.isInvalidDate&&(this.isInvalidDate=e.isInvalidDate),0!=this.locale.firstDay)for(var o=this.locale.firstDay;o>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),o--;var a,s,l;if(void 0===e.startDate&&void 0===e.endDate&&n(this.element).is("input[type=text]")){var c=n(this.element).val(),h=c.split(this.locale.separator);a=s=null,2==h.length?(a=i(h[0],this.locale.format),s=i(h[1],this.locale.format)):this.singleDatePicker&&""!==c&&(a=i(c,this.locale.format),s=i(c,this.locale.format)),null!==a&&null!==s&&(this.setStartDate(a),this.setEndDate(s))}if("object"==typeof e.ranges){for(l in e.ranges){a="string"==typeof e.ranges[l][0]?i(e.ranges[l][0],this.locale.format):i(e.ranges[l][0]),s="string"==typeof e.ranges[l][1]?i(e.ranges[l][1],this.locale.format):i(e.ranges[l][1]),this.minDate&&a.isBefore(this.minDate)&&(a=this.minDate.clone());var d=this.maxDate;if(this.dateLimit&&a.clone().add(this.dateLimit).isAfter(d)&&(d=a.clone().add(this.dateLimit)),d&&s.isAfter(d)&&(s=d.clone()),!(this.minDate&&s.isBefore(this.minDate)||d&&a.isAfter(d))){var u=document.createElement("textarea");u.innerHTML=l;var p=u.value;this.ranges[p]=[a,s]}}var f="<ul>";for(l in this.ranges)f+="<li>"+l+"</li>";f+="<li>"+this.locale.customRangeLabel+"</li>",f+="</ul>",this.container.find(".ranges").prepend(f)}if("function"==typeof r&&(this.callback=r),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&"object"!=typeof e.ranges?this.container.find(".ranges").hide():this.autoApply&&this.container.find(".applyBtn, .cancelBtn").addClass("hide"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".calendar.left").addClass("single"),this.container.find(".calendar.left").show(),this.container.find(".calendar.right").hide(),this.container.find(".daterangepicker_input input, .daterangepicker_input i").hide(),this.timePicker||this.container.find(".ranges").hide()),void 0!==e.ranges||this.singleDatePicker||this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),void 0!==e.ranges&&"right"==this.opens){var g=this.container.find(".ranges"),m=g.clone();g.remove(),this.container.find(".calendar.left").parent().prepend(m)}this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyClass.length&&this.container.find(".applyBtn").addClass(this.applyClass),this.cancelClass.length&&this.container.find(".cancelBtn").addClass(this.cancelClass),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("click.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("mouseleave.daterangepicker","td.available",n.proxy(this.updateFormInputs,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)).on("click.daterangepicker",".daterangepicker_input input",n.proxy(this.showCalendars,this)).on("change.daterangepicker",".daterangepicker_input input",n.proxy(this.formInputsChanged,this)),this.container.find(".ranges").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)).on("click.daterangepicker","li",n.proxy(this.clickRange,this)).on("mouseenter.daterangepicker","li",n.proxy(this.hoverRange,this)).on("mouseleave.daterangepicker","li",n.proxy(this.updateFormInputs,this)),this.element.is("input")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"ke
18yup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.is("input")&&!this.singleDatePicker&&this.autoUpdateInput?(this.element.val(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.element.trigger("change")):this.element.is("input")&&this.autoUpdateInput&&(this.element.val(this.startDate.format(this.locale.format)),this.element.trigger("change"))};return r.prototype={constructor:r,setStartDate:function(t){"string"==typeof t&&(this.startDate=i(t,this.locale.format)),"object"==typeof t&&(this.startDate=i(t)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(t){"string"==typeof t&&(this.endDate=i(t,this.locale.format)),"object"==typeof t&&(this.endDate=i(t)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate),this.dateLimit&&this.startDate.clone().add(this.dateLimit).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.dateLimit)),this.previousRightTime=this.endDate.clone(),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").removeAttr("disabled").removeClass("disabled"):this.container.find(".right .calendar-time select").attr("disabled","disabled").addClass("disabled")),this.endDate?(this.container.find('input[name="daterangepicker_end"]').removeClass("active"),this.container.find('input[name="daterangepicker_start"]').addClass("active")):(this.container.find('input[name="daterangepicker_end"]').addClass("active"),this.container.find('input[name="daterangepicker_start"]').removeClass("active")),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,i,n;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),i=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===n&&12===t&&(t=0)}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),i=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".right .ampmselect").val())&&t<12&&(t+=12),"AM"===n&&12===t&&(t=0);this.leftCalendar.month.hour(t).minute(e).second(i),this.rightCalendar.month.hour(t).minute(e).second(i)}if(this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate){var r=!0,o=0;for(var a in this.ranges){if(this.timePicker){if(this.startDate.isSame(this.ranges[a][0])&&this.endDate.isSame(this.ranges[a][1])){r=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").html();break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[a][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[a][1].format("YYYY-MM-DD")){r=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").html();break}o++}r&&(this.chosenLabel=this.container.find(".ranges li:last").addClass("active").html(),this.showCalendars())}},renderCalendar:function(t){var e,r=(e="left"==t?this.leftCalendar:this.rightCalendar).month.month(),o=e.month.year(),a=e.month.hour(),s=e.month.minute(),l=e.month.second(),c=i([o,r]).daysInMonth(),h=i([o,r,1]),d=i([o,r,c]),u=i(h).subtract(1,"month").month(),p=i(h).subtract(1,"month").year(),f=i([p,u]).daysInMonth(),g=h.day();(e=[]).firstDay=h,e.lastDay=d;for(var m=0;m<6;m++)e[m]=[];var v=f-g+this.locale.firstDay+1;v>f&&(v-=7),g==this.locale.firstDay&&(v=f-6);for(var b=i([p,u,v,12,s,l]),y=(m=0,0),x=0;m<42;m++,y++,b=i(b).add(24,"hour"))m>
180&&y%7==0&&(y=0,x++),e[x][y]=b.clone().hour(a).minute(s).second(l),b.hour(12),this.minDate&&e[x][y].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&e[x][y].isBefore(this.minDate)&&"left"==t&&(e[x][y]=this.minDate.clone()),this.maxDate&&e[x][y].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&e[x][y].isAfter(this.maxDate)&&"right"==t&&(e[x][y]=this.maxDate.clone());"left"==t?this.leftCalendar.calendar=e:this.rightCalendar.calendar=e;var w="left"==t?this.minDate:this.startDate,_=this.maxDate,C=("left"==t?this.startDate:this.endDate,'<table class="table-condensed">');C+="<thead>",C+="<tr>",this.showWeekNumbers&&(C+="<th></th>"),w&&!w.isBefore(e.firstDay)||this.linkedCalendars&&"left"!=t?C+="<th></th>":C+='<th class="prev available"><i class="fa fa-chevron-left glyphicon glyphicon-chevron-left"></i></th>';var S=this.locale.monthNames[e[1][1].month()]+e[1][1].format(" YYYY");if(this.showDropdowns){for(var k=e[1][1].month(),A=e[1][1].year(),T=_&&_.year()||A+5,L=w&&w.year()||A-50,D=A==L,E=A==T,P='<select class="monthselect">',I=0;I<12;I++)(!D||I>=w.month())&&(!E||I<=_.month())?P+="<option value='"+I+"'"+(I===k?" selected='selected'":"")+">"+this.locale.monthNames[I]+"</option>":P+="<option value='"+I+"'"+(I===k?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[I]+"</option>";P+="</select>";for(var M='<select class="yearselect">',O=L;O<=T;O++)M+='<option value="'+O+'"'+(O===A?' selected="selected"':"")+">"+O+"</option>";S=P+(M+="</select>")}if(C+='<th colspan="5" class="month">'+S+"</th>",_&&!_.isAfter(e.lastDay)||this.linkedCalendars&&"right"!=t&&!this.singleDatePicker?C+="<th></th>":C+='<th class="next available"><i class="fa fa-chevron-right glyphicon glyphicon-chevron-right"></i></th>',C+="</tr>",C+="<tr>",this.showWeekNumbers&&(C+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,(function(t,e){C+="<th>"+e+"</th>"})),C+="</tr>",C+="</thead>",C+="<tbody>",null==this.endDate&&this.dateLimit){var F=this.startDate.clone().add(this.dateLimit).endOf("day");_&&!F.isBefore(_)||(_=F)}for(x=0;x<6;x++){C+="<tr>",this.showWeekNumbers&&(C+='<td class="week">'+e[x][0].week()+"</td>");for(y=0;y<7;y++){var R=[];e[x][y].isSame(new Date,"day")&&R.push("today"),e[x][y].isoWeekday()>5&&R.push("weekend"),e[x][y].month()!=e[1][1].month()&&R.push("off"),this.minDate&&e[x][y].isBefore(this.minDate,"day")&&R.push("off","disabled"),_&&e[x][y].isAfter(_,"day")&&R.push("off","disabled"),this.isInvalidDate(e[x][y])&&R.push("off","disabled"),e[x][y].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&R.push("active","start-date"),null!=this.endDate&&e[x][y].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&R.push("active","end-date"),null!=this.endDate&&e[x][y]>this.startDate&&e[x][y]<this.endDate&&R.push("in-range");var B="",N=!1;for(m=0;m<R.length;m++)B+=R[m]+" ","disabled"==R[m]&&(N=!0);N||(B+="available"),C+='<td class="'+B.replace(/^\s+|\s+$/g,"")+'" data-title="r'+x+"c"+y+'">'+e[x][y].date()+"</td>"}C+="</tr>"}C+="</tbody>",C+="</table>",this.container.find(".calendar."+t+" .calendar-table").html(C)},renderTimePicker:function(t){var e,i,n,r=this.maxDate;if(!this.dateLimit||this.maxDate&&!this.startDate.clone().add(this.dateLimit).isAfter(this.maxDate)||(r=this.startDate.clone().add(this.dateLimit)),"left"==t)i=this.startDate.clone(),n=this.minDate;else if("right"==t){i=this.endDate?this.endDate.clone():this.previousRightTime.clone(),n=this.startDate;var o=this.container.find(".calendar.right .calendar-time div");if(""!=o.html()){if(i.hour(o.find(".hourselect option:selected").val()||i.hour()),i.minute(o.find(".minuteselect option:selected").val()||i.minute()),i.second(o.find(".secondselect option:selected").val()||i.second()),!this.timePicker24Hour){var a=o.find(".ampmselect option:selected").val();"PM"===a&&i.hour()<12&&i.hour(i.hour()+12),"AM"===a&&12===i.hour()&&i.hour(0)}i.isBefore(this.startDate)&&(i=this.startDate.clone()),i.isAfter(r)&&(i=r.clone())}}e='<select class="hourselect">';for(var s=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,c=s;c<=l;c++){var h=c;this.timePicker24Hour||(h=i.hour()>=12?12==c?12:c+12:12==c?0:c);var d=i.clone().hour(h),u=!1;n&&d.minute(59).isBefore(n)&&(u=!0),r&&d.minute(0).isAfter(r)&&(u=!0),h!=i.hour()||u?e+=u?'<option value="'+c+'" disabled="disabled" class="disabled">'+c+"</option>":'<option value="'+c+'">'+c+"</option>":e+='<option value="'+c+'" selected="selected">'+c+"</option>"}e+="</select> ",e+=': <select class="minuteselect">';
18for(c=0;c<60;c+=this.timePickerIncrement){var p=c<10?"0"+c:c;d=i.clone().minute(c),u=!1;n&&d.second(59).isBefore(n)&&(u=!0),r&&d.second(0).isAfter(r)&&(u=!0),i.minute()!=c||u?e+=u?'<option value="'+c+'" disabled="disabled" class="disabled">'+p+"</option>":'<option value="'+c+'">'+p+"</option>":e+='<option value="'+c+'" selected="selected">'+p+"</option>"}if(e+="</select> ",this.timePickerSeconds){e+=': <select class="secondselect">';for(c=0;c<60;c++){p=c<10?"0"+c:c,d=i.clone().second(c),u=!1;n&&d.isBefore(n)&&(u=!0),r&&d.isAfter(r)&&(u=!0),i.second()!=c||u?e+=u?'<option value="'+c+'" disabled="disabled" class="disabled">'+p+"</option>":'<option value="'+c+'">'+p+"</option>":e+='<option value="'+c+'" selected="selected">'+p+"</option>"}e+="</select> "}if(!this.timePicker24Hour){e+='<select class="ampmselect">';var f="",g="";n&&i.clone().hour(12).minute(0).second(0).isBefore(n)&&(f=' disabled="disabled" class="disabled"'),r&&i.clone().hour(0).minute(0).second(0).isAfter(r)&&(g=' disabled="disabled" class="disabled"'),i.hour()>=12?e+='<option value="AM"'+f+'>AM</option><option value="PM" selected="selected"'+g+">PM</option>":e+='<option value="AM" selected="selected"'+f+'>AM</option><option value="PM"'+g+">PM</option>",e+="</select>"}this.container.find(".calendar."+t+" .calendar-time div").html(e)},updateFormInputs:function(){this.container.find("input[name=daterangepicker_start]").is(":focus")||this.container.find("input[name=daterangepicker_end]").is(":focus")||(this.container.find("input[name=daterangepicker_start]").val(this.startDate.format(this.locale.format)),this.endDate&&this.container.find("input[name=daterangepicker_end]").val(this.endDate.format(this.locale.format)),this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").removeAttr("disabled"):this.container.find("button.applyBtn").attr("disabled","disabled"))},move:function(){var t,e={top:0,left:0},i=n(window).width();this.parentEl.is("body")||(e={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},i=this.parentEl[0].clientWidth+this.parentEl.offset().left),t="up"==this.drops?this.element.offset().top-this.container.outerHeight()-e.top:this.element.offset().top+this.element.outerHeight()-e.top,this.container["up"==this.drops?"addClass":"removeClass"]("dropup"),"left"==this.opens?(this.container.css({top:t,right:i-this.element.offset().left-this.element.outerWidth(),left:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):"center"==this.opens?(this.container.css({top:t,left:this.element.offset().left-e.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):(this.container.css({top:t,left:this.element.offset().left-e.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>n(window).width()&&this.container.css({left:"auto",right:0}))},show:function(){this.isShowing||(this._outsideClickProxy=n.proxy((function(t){this.outsideClick(t)}),this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-bs-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy((function(t){this.move(t)}),this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate,this.endDate,this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(){this.isShowing?this.hide():this.show()},outsideClick:function(t){var e=n(t.target);"focusin"==t.type||e.closest(this.element).length||e.closest(this.container).length||e.closest(".calendar-table").length||this.hide()},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},hoverRange:function(t){if(!this.container.find("input[name=daterangepicker_start]").is(":focus")&&!this.container.find("input[name=daterangepicker_end]").is(":focus")){var e=t.target.innerHTML;if(e==this.locale.customRangeLabel)this.updateView();else{var i=this.ranges[e];this.container.find("input[name=daterangepicker_start]").val(i[0].format(this.locale.format)),this.container.find("input[name=daterangepicker_end]").val(i[1].format(this.locale.format))}}},clickRange:function(t){var e=t.target.innerHTML;if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[e];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.hideCalendars(),this.clickApply()}},clickPrev:function(t){n(t.target).parents(".calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){n(t.target).parents(".calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(!this.container.find("input[name=daterangepicker_start]").is(":focus")&&!this.container.find("input[name=daterangepicker_end]").is(":focus")&&n(t.target).hasClass("available")){var e=n(t.target).attr("data-title"),i=e.substr(1,1),r=e.substr(3,1),o=n(t.target).parents(".calendar").hasClass("left")?this.leftCalendar.calendar[i][r]:this.rightCalendar.calendar[i][r];this.endDate?this.container.find("input[name=daterangepicker_start]").val(o.format(this.locale.format)):this.container.find("input[name=daterangepicker_end]").val(o.format(this.locale.format));var a=this.leftCalendar,s=this.rightCalendar,l=this.startDate;this.endDate||this.container.find(".calendar td").each((function(t,e){if(!n(e).hasClass("week")){var i=n(e).attr("data-title"),r=i.substr(1,1),c=i.substr(3,1),h=n(e).parents(".calendar").hasClass("left")?a.calendar[r][c]:s.calendar[r][c];h.isAfter(l)&&h.isBefore(o)?n(e).addClass("in-range"):n(e).removeClass("in-range")}}))}},clickDate:function(t){if(n(t.target).hasClass("available")){var e=n(t.target).attr("data-title"),i=e.substr(1,1),r=e.substr(3,1),o=n(t.target).parents(".calendar"),a=o.hasClass("left")?this.leftCalendar.calendar[i][r]:this.rightCalendar.calendar[i][r];if(this.endDate||a.isBefore(this.startDate,"day")){if(this.timePicker){var s=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(h=o.find(".ampmselect").val())&&s<12&&(s+=12),"AM"===h&&12===s&&(s=0)
19;var l=parseInt(this.container.find(".left .minuteselect").val(),10),c=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;a=a.clone().hour(s).minute(l).second(c)}this.endDate=null,this.setStartDate(a.clone())}else if(!this.endDate&&a.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var h;s=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(h=this.container.find(".right .ampmselect").val())&&s<12&&(s+=12),"AM"===h&&12===s&&(s=0);l=parseInt(this.container.find(".right .minuteselect").val(),10),c=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;a=a.clone().hour(s).minute(l).second(c)}this.setEndDate(a.clone()),this.autoApply&&this.clickApply()}this.singleDatePicker&&(this.setEndDate(this.startDate),this.timePicker||this.clickApply()),this.updateView()}},clickApply:function(){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var e=n(t.target).closest(".calendar").hasClass("left"),i=e?"left"
19:"right",r=this.container.find(".calendar."+i),o=parseInt(r.find(".monthselect").val(),10),a=r.find(".yearselect").val();e||(a<this.startDate.year()||a==this.startDate.year()&&o<this.startDate.month())&&(o=this.startDate.month(),a=this.startDate.year()),this.minDate&&(a<this.minDate.year()||a==this.minDate.year()&&o<this.minDate.month())&&(o=this.minDate.month(),a=this.minDate.year()),this.maxDate&&(a>this.maxDate.year()||a==this.maxDate.year()&&o>this.maxDate.month())&&(o=this.maxDate.month(),a=this.maxDate.year()),e?(this.leftCalendar.month.month(o).year(a),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(o).year(a),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var e=n(t.target).closest(".calendar"),i=e.hasClass("left"),r=parseInt(e.find(".hourselect").val(),10),o=parseInt(e.find(".minuteselect").val(),10),a=this.timePickerSeconds?parseInt(e.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var s=e.find(".ampmselect").val();"PM"===s&&r<12&&(r+=12),"AM"===s&&12===r&&(r=0)}if(i){var l=this.startDate.clone();l.hour(r),l.minute(o),l.second(a),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var c=this.endDate.clone();c.hour(r),c.minute(o),c.second(a),this.setEndDate(c)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},formInputsChanged:function(t){var e=n(t.target).closest(".calendar").hasClass("right"),r=i(this.container.find('input[name="daterangepicker_start"]').val(),this.locale.format),o=i(this.container.find('input[name="daterangepicker_end"]').val(),this.locale.format);r.isValid()&&o.isValid()&&(e&&o.isBefore(r)&&(r=o.clone()),this.setStartDate(r),this.setEndDate(o),e?this.container.find('input[name="daterangepicker_start"]').val(this.startDate.format(this.locale.format)):this.container.find('input[name="daterangepicker_end"]').val(this.endDate.format(this.locale.format))),this.updateCalendars(),this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"))},elementChanged:function(){if(this.element.is("input")&&this.element.val().length&&!(this.element.val().length<this.locale.format.length)){var t=this.element.val().split(this.locale.separator),e=null,n=null;2===t.length&&(e=i(t[0],this.locale.format),n=i(t[1],this.locale.format)),(this.singleDatePicker||null===e||null===n)&&(n=e=i(this.element.val(),this.locale.format)),e.isValid()&&n.isValid()&&(this.setStartDate(e),this.setEndDate(n),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide()},updateElement:function(){this.element.is("input")&&!this.singleDatePicker&&this.autoUpdateInput?(this.element.val(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.element.trigger("change")):this.element.is("input")&&this.autoUpdateInput&&(this.element.val(this.startDate.format(this.locale.format)),this.element.trigger("change"))},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(t,e){return this.each((function(){var i=n(this);i.data("daterangepicker")&&i.data("daterangepicker").remove(),i.data("daterangepicker",new r(i,t,e))})),this},r}));var TableDatatablesEditable=function(){var t=function(){function t(t,e){for(var i=t.fnGetData(e),n=0,r=$(">td",e).length;n<r;n++)t.fnUpdate(i[n],e,n,!1);t.fnDraw()}function e(t,e){var i=t.fnGetData(e),n=$(">td",e);n[0].innerHTML='<input type="text" class="form-control input-small" value="'+i[0]+'">',n[1].innerHTML='<input type="text" class="form-control input-small" value="'+i[1]+'">',n[2].innerHTML='<input type="text" class="form-control input-small" value="'+i[2]+'">',n[3].innerHTML='<input type="text" class="form-control input-small" value="'+i[3]+'">',n[4].innerHTML='<a class="edit" href="">Save</a>',n[5].innerHTML='<a class="cancel" href="">Cancel</a>'}function i(t,e){var i=$("input",e);t.fnUpdate(i[0].value,e,0,!1),t.fnUpdate(i[1].value,e,1,!1),t.fnUpdate(i[2].value,e,2,!1),t.fnUpdate(i[3].value,e,3,!1),t.fnUpdate('<a class="edit" href="">Edit</a>',e,4,!1),t.fnUpdate('<a class="delete" href="">Delete</a>',e,5,!1),t.fnDraw()}var n=$("#sample_editable_1"),r=n.dataTable({lengthMenu:[[5,15,20,-1],[5,15,20,"All"]],pageLength:5,language:{lengthMenu:" _MENU_ records"},columnDefs:[{orderable:!0,targets:[0]},{searchable:!0,targets:[0]}],order:[[0,"asc"]]}),o=($("#sample_editable_1_wrapper"),null),a=!1;$("#sample_editable_1_new").click((function(t){if(t.preventDefault(),a&&o){if(!confirm("Previose row not saved. Do you want to save it ?"))return r.fnDeleteRow(o),o=null,void(a=!1);i(r,o),$(o).find("td:first").html("Untitled"),o=null,a=!1}var n=r.fnAddData(["","","","","",""]),s=r.fnGetNodes(n[0]);e(r,s),o=s,a=!0})),n.on("click",".delete",(function(t){if(t.preventDefault(),0!=confirm("Are you sure to delete this row ?")){var e=$
19(this).parents("tr")[0];r.fnDeleteRow(e),alert("Deleted! Do not forget to do some ajax to sync with backend :)")}})),n.on("click",".cancel",(function(e){e.preventDefault(),a?(r.fnDeleteRow(o),o=null,a=!1):(t(r,o),o=null)})),n.on("click",".edit",(function(n){n.preventDefault();var a=$(this).parents("tr")[0];null!==o&&o!=a?(t(r,o),e(r,a),o=a):o==a&&"Save"==this.innerHTML?(i(r,o),o=null,alert("Updated! Do not forget to do some ajax to sync with backend :)")):(e(r,a),o=a)}))};return{init:function(){t()}}}();jQuery(document).ready((function(){TableDatatablesEditable.init()}));var Layout=function(){var t="layouts/layout/img/",e="layouts/layout/css/",i=App.getResponsiveBreakpoint("md"),n=function(){var t,e=$(".page-content"),n=$(".page-sidebar"),r=$("body");if(!0===r.hasClass("page-footer-fixed")&&!1===r.hasClass("page-sidebar-fixed")){var o=App.getViewPort().height-$(".page-footer").outerHeight()-$(".page-header").outerHeight();e.height()<o&&e.attr("style","min-height:"+o+"px")}else{if(r.hasClass("page-sidebar-fixed"))t=a(),!1===r.hasClass("page-footer-fixed")&&(t-=$(".page-footer").outerHeight());else{var s=$(".page-header").outerHeight(),l=$(".page-footer").outerHeight();(t=App.getViewPort().width<i?App.getViewPort().height-s-l:n.height()+20)+s+l<=App.getViewPort().height&&(t=App.getViewPort().height-s-l)}e.attr("style","min-height:"+t+"px")}},r=function(t,e){var n=location.hash.toLowerCase(),r=$(".page-sidebar-menu");if("click"===t||"set"===t?e=$(e):"match"===t&&r.find("li > a").each((function(){var t=$(this).attr("href").toLowerCase();t.length>1&&n.substr(1,t.length-1)==t.substr(1)&&(e=$(this))})),e&&0!=e.size&&"javascript:;"!==e.attr("href").toLowerCase()&&"#"!==e.attr("href").toLowerCase()){parseInt(r.data("slide-speed")),r.data("keep-expanded");r.find("li.active").removeClass("active"),r.find("li > a > .selected").remove(),!1===r.hasClass("page-sidebar-menu-hover-submenu")?r.find("li.open").each((function(){0===$(this).children(".sub-menu").size&&($(this).removeClass("open"),$(this).find("> a > .arrow.open").removeClass("open"))})):r.find("li.open").removeClass("open"),e.parents("li").each((function(){$(this).addClass("active"),$(this).find("> a > span.arrow").addClass("open"),1===$(this).parent("ul.page-sidebar-menu").size&&$(this).find("> a").append('<span class="selected"></span>'),1===$(this).children("ul.sub-menu").size&&$(this).addClass("open")})),"click"===t&&App.getViewPort().width<i&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click()}},o=function(){$(".page-sidebar-menu").on("click","li > a.nav-toggle, li > a > span.nav-toggle",(function(t){var e=$(this).closest(".nav-item").children(".nav-link");if(!(App.getViewPort().width>=i&&!$(".page-sidebar-menu").attr("data-initialized")&&$("body").hasClass("page-sidebar-closed")&&1===e.parent("li").parent(".page-sidebar-menu").size)){var r=e.next().hasClass("sub-menu");if(!(App.getViewPort().width>=i&&1===e.parents(".page-sidebar-menu-hover-submenu").size))if(!1!==r){if(!e.next().hasClass("sub-menu always-open")){var o=e.parent().parent(),a=e,s=$(".page-sidebar-menu"),l=e.next(),c=s.data("auto-scroll"),h=parseInt(s.data("slide-speed"));s.data("keep-expanded")||(o.children("li.open").children("a").children(".arrow").removeClass("open"),o.children("li.open").children(".sub-menu:not(.always-open)").slideUp(h),o.children("li.open").removeClass("open"));var d=-200;l.is(":visible")?($(".arrow",a).removeClass("open"),a.parent().removeClass("open"),l.slideUp(h,(function(){!0===c&&!1===$("body").hasClass("page-sidebar-closed")&&($("body").hasClass("page-sidebar-fixed")?s.slimScroll({scrollTo:a.position().top}):App.scrollTo(a,d)),n()}))):r&&($(".arrow",a).addClass("open"),a.parent().addClass("open"),l.slideDown(h,(function(){!0===c&&!1===$("body").hasClass("page-sidebar-closed")&&($("body").hasClass("page-sidebar-fixed")?s.slimScroll({scrollTo:a.position().top}):App.scrollTo(a,d)),n()}))),t.preventDefault()}}else App.getViewPort().width<i&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click()}})),App.isAngularJsApp()&&$(".page-sidebar-menu li > a").on("click",(function(){App.getViewPort().width<i&&!1===$(this).next().hasClass("sub-menu")&&$(".page-header .responsive-toggler").click()})),$(".page-sidebar").on("click"," li > a.ajaxify",(function(t){t.preventDefault(),App.scrollTop();
19var e=$(this).attr("href"),n=$(".page-sidebar ul"),r=($(".page-content"),$(".page-content .page-content-body"));n.children("li.active").removeClass("active"),n.children("arrow.open").removeClass("open"),$(this).parents("li").each((function(){$(this).addClass("active"),$(this).children("a > span.arrow").addClass("open")})),$(this).parents("li").addClass("active"),App.getViewPort().width<i&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),App.startPageLoading();var o=$(this);$.ajax({type:"GET",cache:!1,url:e,dataType:"html",success:function(t){0===o.parents("li.open").size&&$(".page-sidebar-menu > li.open > a").click(),App.stopPageLoading(),r.html(t),Layout.fixContentHeight(),App.initAjax()},error:function(){App.stopPageLoading(),r.html("<h4>Could not load the requested content.</h4>")}})})),$(".page-content").on("click",".ajaxify",(function(t){t.preventDefault(),App.scrollTop();var e=$(this).attr("href"),n=($(".page-content"),$(".page-content .page-content-body"));App.startPageLoading(),App.getViewPort().width<i&&$(".page-sidebar").hasClass("in")&&$(".page-header .responsive-toggler").click(),$.ajax({type:"GET",cache:!1,url:e,dataType:"html",success:function(t){App.stopPageLoading(),n.html(t),Layout.fixContentHeight(),App.initAjax()},error:function(){n.html("<h4>Could not load the requested content.</h4>"),App.stopPageLoading()}})})),$(document).on("click",".page-header-fixed-mobile .page-header .responsive-toggler",(function(){App.scrollTop()})),l(),$(".page-sidebar").on("click",".sidebar-search .remove",(function(t){t.preventDefault(),$(".sidebar-search").removeClass("open")})),$(".page-sidebar .sidebar-search").on("keypress","input.form-control",(function(t){if(13==t.which)return $(".sidebar-search").submit(),!1})),$(".sidebar-search .submit").on("click",(function(t){t.preventDefault(),$("body").hasClass("page-sidebar-closed")&&!1===$(".sidebar-search").hasClass("open")?(1===$(".page-sidebar-fixed").size&&$(".page-sidebar .sidebar-toggler").click(),$(".sidebar-search").addClass("open")):$(".sidebar-search").submit()})),0!==$(".sidebar-search").size&&($(".sidebar-search .input-group").on("click",(function(t){t.stopPropagation()})),$("body").on("click",(function(){$(".sidebar-search").hasClass("open")&&$(".sidebar-search").removeClass("open")})))},a=function(){var t=App.getViewPort().height-$(".page-header").outerHeight(!0);return $("body").hasClass("page-footer-fixed")&&(t-=$(".page-footer").outerHeight()),t},s=function(){var t=$(".page-sidebar-menu");App.destroySlimScroll(t),0!==$(".page-sidebar-fixed").size?App.getViewPort().width>=i&&(t.attr("data-height",a()),App.initSlimScroll(t),n()):n()},l=function(){var t=$("body");t.hasClass("page-sidebar-fixed")&&$(".page-sidebar").on("mouseenter",(function(){t.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").removeClass("page-sidebar-menu-closed")})).on("mouseleave",(function(){t.hasClass("page-sidebar-closed")&&$(this).find(".page-sidebar-menu").addClass("page-sidebar-menu-closed")}))},c=function(){var t=$("body");$.cookie&&"1"===$.cookie("sidebar_closed")&&App.getViewPort().width>=i&&($("body").addClass("page-sidebar-closed"),$(".page-sidebar-menu").addClass("page-sidebar-menu-closed")),$("body").on("click",".sidebar-toggler",(function(){var e=$
19(".page-sidebar"),i=$(".page-sidebar-menu");$(".sidebar-search",e).removeClass("open"),t.hasClass("page-sidebar-closed")?(t.removeClass("page-sidebar-closed"),i.removeClass("page-sidebar-menu-closed"),$.cookie&&$.cookie("sidebar_closed","0")):(t.addClass("page-sidebar-closed"),i.addClass("page-sidebar-menu-closed"),t.hasClass("page-sidebar-fixed")&&i.trigger("mouseleave"),$.cookie&&$.cookie("sidebar_closed","1")),$(window).trigger("resize")}))},h=function(){$(".page-header").on("click",'.hor-menu a[data-bs-toggle="tab"]',(function(t){t.preventDefault();var e=$(".hor-menu .nav").find("li.current");$("li.active",e).removeClass("active"),$(".selected",e).remove();var i=$(this).parents("li").last();i.addClass("current"),i.find("a:first").append('<span class="selected"></span>')})),$(".page-header").on("click",".search-form",(function(){$(this).addClass("open"),$(this).find(".form-control").focus(),$(".page-header .search-form .form-control").on("blur",(function(){$(this).closest(".search-form").removeClass("open"),$(this).unbind("blur")}))})),$(".page-header").on("keypress",".hor-menu .search-form .form-control",(function(t){if(13==t.which)return $(this).closest(".search-form").submit(),!1})),$(".page-header").on("mousedown",".search-form.open .submit",(function(t){t.preventDefault(),t.stopPropagation(),$(this).closest(".search-form").submit()})),$('[data-hover="megamenu-dropdown"]').not(".hover-initialized").each((function(){$(this).dropdownHover(),$(this).addClass("hover-initialized")})),$(document).on("click",".mega-menu-dropdown .dropdown-menu",(function(t){t.stopPropagation()}))},d=function(){$("body").on("shown.bs.tab",'a[data-bs-toggle="tab"]',(function(){n()}))},u=function(){var t=300,e=500;navigator.userAgent.match(/iPhone|iPad|iPod/i)?$(window).bind("touchend touchcancel touchleave",(function(){$(this).scrollTop()>t?$(".scroll-to-top").fadeIn(e):$(".scroll-to-top").fadeOut(e)})):$(window).scroll((function(){$(this).scrollTop()>t?$(".scroll-to-top").fadeIn(e):$(".scroll-to-top").fadeOut(e)})),$(".scroll-to-top").click((function(t){return t.preventDefault(),$("html, body").animate({scrollTop:0},e),!1}))},p=function(){$(".full-height-content").each((function(){var t,e=$(this);if(t=App.getViewPort().height-$(".page-header").outerHeight(!0)-$(".page-footer").outerHeight(!0)-$(".page-title").outerHeight(!0)-$(".page-bar").outerHeight(!0),e.hasClass("portlet")){var n=e.find(".portlet-body");App.destroySlimScroll(n.find(".full-height-content-body")),t=t-e.find(".portlet-title").outerHeight(!0)-parseInt(e.find(".portlet-body").css("padding-top"))-parseInt(e.find(".portlet-body").css("padding-bottom"))-5,App.getViewPort().width>=i&&e.hasClass("full-height-content-scrollable")?(t-=35,n.find(".full-height-content-body").css("height",t),App.initSlimScroll(n.find(".full-height-content-body"))):n.css("min-height",t)}else App.destroySlimScroll(e.find(".full-height-content-body")),App.getViewPort().width>=i&&e.hasClass("full-height-content-scrollable")?(t-=35,e.find(".full-height-content-body").css("height",t),App.initSlimScroll(e.find(".full-height-content-body"))):e.css("min-height",t)}))};return{initHeader:function(){h()},setSidebarMenuActiveLink:function(t,e){r(t,e)},initSidebar:function(){s(),o(),c(),App.isAngularJsApp()&&r("match"),App.addResizeHandler(s)},initContent:function(){p(),d(),App.addResizeHandler(n),App.addResizeHandler(p)},initFooter:function(){u()},init:function(){this.initHeader(),this.initSidebar(),this.initContent(),this.initFooter()},fixContentHeight:function(){n()},initFixedSidebarHoverEffect:function(){l()},initFixedSidebar:function(){s()},getLayoutImgPath:function(){return App.getAssetsPath()+t},getLayoutCssPath:function(){return App.getAssetsPath()+e}}}();!1===App.isAngularJsApp()&&jQuery(document).ready((function(){Layout.init()})),function(t,e){var i,n;n=e.document,i=function(){function i(i){var n;try{n=e.localStorage}catch(t){n=!1}this._options=t.extend({name:"tour",steps:[],container:"body",autoscroll:!0,keyboard:!0,storage:n,debug:!1,backdrop:!1,backdropPadding:0,redirect:!0,orphan:!1,duration:!1,delay:!1,basePath:"",template:'<div class="popover" role="tooltip"> <div class="arrow"></div> <h3 class="popover-title"></h3> <div class="popover-content"></div> <div class="popover-navigation"> <div class="btn-group"> <button class="btn btn-sm btn-default" data-role="prev">&laquo; Prev</button> <button class="btn btn-sm btn-default" data-role="next">Next &raquo;</button> <button class="btn btn-sm btn-default" data-role="pause-resume" data-pause-text="Pause" data-resume-text="Resume">Pause</button> </div> <button class="btn btn-sm btn-default" data-role="end">End tour</button> </div> </div>',afterSetState:function(){},afterGetState:function(){},afterRemoveState:function(){},onStart:function(){},onEnd:function(){},onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNext:function(){},onPrev:function(){},onPause:function(){},onResume:function(){}},i),this._force=!1,this._inited=!1,this.backdrop={overlay:null,$element:null,$background:null,backgroundShown:!1,overlayElementShown:!1}}return i.prototype.addSteps=function(t){var e,i,n;for(i=0,n=t.length;i<n;i++)e=t[i],this.addStep(e);return this},i.prototype.addStep=function(t){return this._options.steps.push(t),this},i.prototype.getStep=function(e){if(null!=this._options.steps[e])return t.extend({id:"step-"+e,path:"",placement:"right",title:"",content:"<p></p>",next:e===this._options.steps.length-1?-1:e+1,prev:e-1,animation:!0,container:this._options.container,autoscroll:this._options.autoscroll,backdrop:this._options.backdrop,backdropPadding:this._options.backdropPadding,redirect:this._options.redirect,orphan:this._options.orphan,duration:this._options.duration,delay:this._options.delay,template:this._options.template,onShow:this._options.onShow,onShown:this._options.onShown,onHide:this._options.onHide,onHidden:this._options.onHidden,onNext:this._options.onNext,onPrev:this._options.onPrev,onPause:this._options.onPause,onResume:this._options.onResume},this._options.steps[e])},i.prototype.init=function(t){return this._force=t,this.ended()?(this._debug("Tour ended, init prevented."),this):(this.setCurrentStep(),this._initMouseNavigation(),this._initKeyboardNavigation(),this._onResize((e=this,function(){return e.showStep(e._current)})),null!==this._current&&this.showStep(this._current),this._inited=!0,this);var e},i.prototype.start=function(t){var e;return null==t&&(t=!1),this._inited||this.init(t),null===this._current&&(e=this._makePromise(null!=this._options.onStart?this._options.onStart(this):void 0),this._callOnPromiseDone(e,this.showStep,0)),this},i.prototype.next=function(){var t;return t=this.hideStep(this._current),this._callOnPromiseDone(t,this._showNextStep)},i.prototype.prev=function(){var t;return t=this.hideStep(this._current),this._callOnPromiseDone(t,this._showPrevStep)},i.prototype.goTo=function(t){var e;return e=this.hideStep(this._current),this._callOnPromiseDone(e,this.showStep,t)},i.prototype.end=function(){var i,r,o;return o=this,i=function(){if(t(n).off("click.tour-"+o._options.name),t(n).off("keyup.tour-"+o._options.name),t(e).off("resize.tour-"+o._options.name),o._setState("end","yes"),o._inited=!1,o._force=!1,o._clearTimer(),null!=o._options.onEnd)return o._options.onEnd(o)},r=this.hideStep(this._current),this._callOnPromiseDone(r,i)},i.prototype.ended=function(){return!this._force&&!!this._getState("end")},i.prototype.restart=function(){return this._removeState("current_step"),this._removeState("end"),this.start()},i.prototype.pause=function(){var t;return(t=this.getStep(this._current))&&t.duration?(this._paused=!0,this._duration-=(new Date).getTime()-this._start,e.clearTimeout(this._timer),this._debug("Paused/Stopped step "+(this._current+1)+" timer ("+this._duration+" remaining)."),null!=t.onPause?t.onPause(this,this._duration):void 0):this},i.prototype.resume=function(){var t,i;return(t=this.getStep(this._current))&&t.duration?(this._paused=!1,this._start=(new Date).getTime(),this._duration=this._duration||t.duration,this._timer=e.setTimeout((i=this,function(){return i._isLast()?i.next():i.end()}),this._duration),this._debug("Started step "+(this._current+1)+" timer with duration "+this._duration),null!=t.onResume&&this._duration!==t.duration?t.onResume(this,this._duration):void 0):this},i.prototype.hideStep=function(e){var i,n,r,o;
19if(r=this.getStep(e))return this._clearTimer(),n=this._makePromise(null!=r.onHide?r.onHide(this,e):void 0),o=this,i=function(){var i;if((i=t(r.element)).data("bs.popover")||i.data("popover")||(i=t("body")),i.popover("destroy").removeClass("tour-"+o._options.name+"-element tour-"+o._options.name+"-"+e+"-element"),r.reflex&&i.removeClass("tour-step-element-reflex").off(o._reflexEvent(r.reflex)+".tour-"+o._options.name),r.backdrop&&o._hideBackdrop(),null!=r.onHidden)return r.onHidden(o)},this._callOnPromiseDone(n,i),n},i.prototype.showStep=function(t){var i,r,o,a,s;return this.ended()?(this._debug("Tour ended, showStep prevented."),this):(a=this.getStep(t))?(o=t<this._current,i=this._makePromise(null!=a.onShow?a.onShow(this,t):void 0),s=this,r=function(){var e,i,r;if(s.setCurrentStep(t),i=function(){switch({}.toString.call(a.path)){case"[object Function]":return a.path();case"[object String]":return this._options.basePath+a.path;default:return a.path}}.call(s),e=[n.location.pathname,n.location.hash].join(""),!s._isRedirect(i,e)){if(s._isOrphan(a)){if(!a.orphan)return s._debug("Skip the orphan step "+(s._current+1)+".\nOrphan option is false and the element does not exist or is hidden."),void(o?s._showPrevStep():s._showNextStep());s._debug("Show the orphan step "+(s._current+1)+". Orphans option is true.")}return a.backdrop&&s._showBackdrop(s._isOrphan(a)?void 0:a.element),r=function(){if(s.getCurrentStep()===t)return null!=a.element&&a.backdrop&&s._showOverlayElement(a),s._showPopover(a,t),null!=a.onShown&&a.onShown(s),s._debug("Step "+(s._current+1)+" of "+s._options.steps.length)},a.autoscroll?s._scrollIntoView(a.element,r):r(),a.duration?s.resume():void 0}s._redirect(a,i)},a.delay?(this._debug("Wait "+a.delay+" milliseconds to show the step "+(this._current+1)),e.setTimeout(function(t){return function(){return t._callOnPromiseDone(i,r)}}(this),a.delay)):this._callOnPromiseDone(i,r),i):void 0},i.prototype.getCurrentStep=function(){return this._current},i.prototype.setCurrentStep=function(t){return null!=t?(this._current=t,this._setState("current_step",t)):(this._current=this._getState("current_step"),this._current=null===this._current?null:parseInt(this._current,10)),this},i.prototype._setState=function(t,e){var i;if(this._options.storage){i=this._options.name+"_"+t;try{this._options.storage.setItem(i,e)}catch(t){t.code===DOMException.QUOTA_EXCEEDED_ERR&&this._debug("LocalStorage quota exceeded. State storage failed.")}return this._options.afterSetState(i,e)}return null==this._state&&(this._state={}),this._state[t]=e},i.prototype._removeState=function(t){var e;return this._options.storage?(e=this._options.name+"_"+t,this._options.storage.removeItem(e),this._options.afterRemoveState(e)):null!=this._state?delete this._state[t]:void 0},i.prototype._getState=function(t){var e,i;return this._options.storage?(e=this._options.name+"_"+t,i=this._options.storage.getItem(e)):null!=this._state&&(i=this._state[t]),void 0!==i&&"null"!==i||(i=null),this._options.afterGetState(t,i),i},i.prototype._showNextStep=function(){var t,e,i,n;return i=this.getStep(this._current),n=this,e=function(){return n.showStep(i.next)},t=this._makePromise(null!=i.onNext?i.onNext(this):void 0),this._callOnPromiseDone(t,e)},i.prototype._showPrevStep=function(){var t,e,i,n;return i=this.getStep(this._current),n=this,e=function(){return n.showStep(i.prev)},t=this._makePromise(null!=i.onPrev?i.onPrev(this):void 0),this._callOnPromiseDone(t,e)},i.prototype._debug=function(t){if(this._options.debug)return e.console.log("Bootstrap Tour '"+this._options.name+"' | "+t)},i.prototype._isRedirect=function(t,e){return null!=t&&""!==t&&("[object RegExp]"==={}.toString.call(t)&&!t.test(e)||"[object String]"==={}.toString.call(t)&&t.replace(/\?.*$/,"").replace(/\/?$/,"")!==e.replace(/\/?$/,""))},i.prototype._redirect=function(e,i){return t.isFunction(e.redirect)?e.redirect.call(this,i):!0===e.redirect?(this._debug("Redirect to "+i),n.location.href=i):void 0},i.prototype._isOrphan=function(e){return null==e.element||!t(e.element).length||t(e.element).is(":hidden")&&"http://www.w3.org/2000/svg"!==t(e.element)[0].namespaceURI},i.prototype._isLast=function(){return this._current<this._options.steps.length-1},i.prototype._showPopover=function(e,i){var n,r,o,a,s;if(t(".tour-"+this._options.name).remove(),a=t.extend({},this._options),o=this._isOrphan(e),e.template=this._template(e,i),o&&(e.element="body",e.placement="top"),(n=t(e.element)).addClass("tour-"+this._options.name+"-element tour-"+this._options.name+"-"+i+"-element"),e.options&&t.extend(a,e.options),e.reflex&&!o&&(n.addClass("tour-step-element-reflex"),n.off(this._reflexEvent(e.reflex)+".tour-"+this._options.name),n.on(this._reflexEvent(e.reflex)+".tour-"+this._options.name,(s=this,function(){return s._isLast()?s.next():s.end()}))),n.popover({placement:e.placement,trigger:"manual",title:e.title,content:e.content,html:!0,animation:e.animation,container:e.container,template:e.template,selector:e.element}
19).popover("show"),(r=n.data("bs.popover")?n.data("bs.popover").tip():n.data("popover").tip()).attr("id",e.id),this._reposition(r,e),o)return this._center(r)},i.prototype._template=function(e,i){var n,r,o,a,s;return o=(n=(s=t.isFunction(e.template)?t(e.template(i,e)):t(e.template)).find(".popover-navigation")).find('[data-role="prev"]'),r=n.find('[data-role="next"]'),a=n.find('[data-role="pause-resume"]'),this._isOrphan(e)&&s.addClass("orphan"),s.addClass("tour-"+this._options.name+" tour-"+this._options.name+"-"+i),e.prev<0&&o.addClass("disabled"),e.next<0&&r.addClass("disabled"),e.duration||a.remove(),s.clone().wrap("<div>").parent().html()},i.prototype._reflexEvent=function(t){return"[object Boolean]"==={}.toString.call(t)?"click":t},i.prototype._reposition=function(e,i){var r,o,a,s,l,c,h;if(s=e[0].offsetWidth,o=e[0].offsetHeight,l=(h=e.offset()).left,c=h.top,(r=t(n).outerHeight()-h.top-e.outerHeight())<0&&(h.top=h.top+r),(a=t("html").outerWidth()-h.left-e.outerWidth())<0&&(h.left=h.left+a),h.top<0&&(h.top=0),h.left<0&&(h.left=0),e.offset(h),"bottom"===i.placement||"top"===i.placement){if(l!==h.left)return this._replaceArrow(e,2*(h.left-l),s,"left")}else if(c!==h.top)return this._replaceArrow(e,2*(h.top-c),o,"top")},i.prototype._center=function(i){return i.css("top",t(e).outerHeight()/2-i.outerHeight()/2)},i.prototype._replaceArrow=function(t,e,i,n){return t.find(".arrow").css(n,e?50*(1-e/i)+"%":"")},i.prototype._scrollIntoView=function(i,n){var r,o,a,s,l,c,h;return(r=t(i)).length?(o=t(e),s=r.offset().top,c=o.height(),l=Math.max(0,s-c/2),this._debug("Scroll into view. ScrollTop: "+l+". Element offset: "+s+". Window height: "+c+"."),a=0,t("body, html").stop(!0,!0).animate({scrollTop:Math.ceil(l)},(h=this,function(){if(2==++a)return n(),h._debug("Scroll into view.\nAnimation end element offset: "+r.offset().top+".\nWindow height: "+o.height()+".")}))):n()},i.prototype._onResize=function(i,n){return t(e).on("resize.tour-"+this._options.name,(function(){return clearTimeout(n),n=setTimeout(i,100)}))},i.prototype._initMouseNavigation=function(){var e;return e=this,t(n).off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']").off("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']").off("
19click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']").on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='next']",function(t){return function(e){return e.preventDefault(),t.next()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='prev']",function(t){return function(e){return e.preventDefault(),t.prev()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='end']",function(t){return function(e){return e.preventDefault(),t.end()}}(this)).on("click.tour-"+this._options.name,".popover.tour-"+this._options.name+" *[data-role='pause-resume']",(function(i){var n;return i.preventDefault(),(n=t(this)).text(e._paused?n.data("pause-text"):n.data("resume-text")),e._paused?e.resume():e.pause()}))},i.prototype._initKeyboardNavigation=function(){var e;if(this._options.keyboard)return t(n).on("keyup.tour-"+this._options.name,(e=this,function(t){if(t.which)switch(t.which){case 39:return t.preventDefault(),e._isLast()?e.next():e.end();case 37:if(t.preventDefault(),e._current>0)return e.prev();break;case 27:return t.preventDefault(),e.end()}}))},i.prototype._makePromise=function(e){return e&&t.isFunction(e.then)?e:null},i.prototype._callOnPromiseDone=function(t,e,i){return t?t.then((n=this,function(){return e.call(n,i)})):e.call(this,i);var n},i.prototype._showBackdrop=function(){if(!this.backdrop.backgroundShown)return this.backdrop=t("<div>",{class:"tour-backdrop"}),this.backdrop.backgroundShown=!0,t("body").append(this.backdrop)},i.prototype._hideBackdrop=function(){return this._hideOverlayElement(),this._hideBackground()},i.prototype._hideBackground=function(){if(this.backdrop)return this.backdrop.remove(),this.backdrop.overlay=null,this.backdrop.backgroundShown=!1},i.prototype._showOverlayElement=function(e){var i,n;if((i=t(e.element))&&0!==i.length&&!this.backdrop.overlayElementShown)return this.backdrop.overlayElementShown=!0,this.backdrop.$element=i.addClass("tour-step-backdrop"),this.backdrop.$background=t("<div>",{class:"tour-step-background"}),n={width:i.innerWidth(),height:i.innerHeight(),offset:i.offset()},this.backdrop.$background.appendTo("body"),e.backdropPadding&&(n=this._applyBackdropPadding(e.backdropPadding,n)),this.backdrop.$background.width(n.width).height(n.height).offset(n.offset)},i.prototype._hideOverlayElement=function(){if(this.backdrop.overlayElementShown)return this.backdrop.$element.removeClass("tour-step-backdrop"),this.backdrop.$background.remove(),this.backdrop.$element=null,this.backdrop.$background=null,this.backdrop.overlayElementShown=!1},i.prototype._applyBackdropPadding=function(t,e){return"object"==typeof t?(null==t.top&&(t.top=0),null==t.right&&(t.right=0),null==t.bottom&&(t.bottom=0),
20null==t.left&&(t.left=0),e.offset.top=e.offset.top-t.top,e.offset.left=e.offset.left-t.left,e.width=e.width+t.left+t.right,e.height=e.height+t.top+t.bottom):(e.offset.top=e.offset.top-t,e.offset.left=e.offset.left-t,e.width=e.width+2*t,e.height=e.height+2*t),e},i.prototype._clearTimer=function(){return e.clearTimeout(this._timer),this._timer=null,this._duration=null},i}(),e.Tour=i}(jQuery,window),function(){if(!window.FusionCharts||!window.FusionCharts.version){var t=window,e=t.document,i=t.navigator,n={window:t},r=n.modules={},o=n.interpreters={},a=Object.prototype.toString,s=/msie/i.test(i.userAgent)&&!t.opera,l=/loaded|complete/,c=!1,h=function(){var t=n.ready;n.ready=!0,n.raiseEvent&&(n.readyNotified=!0,n.raiseEvent("ready",{version:n.core.version,now:!t},n.core)),n.readyNow=!t},d=function(t,e){var i,n;if(e instanceof Array)for(i=0;i<e.length;i+=1)"object"!=typeof e[i]?t[i]=e[i]:("object"!=typeof t[i]&&(t[i]=e[i]instanceof Array?[]:{}),d(t[i],e[i]));else for(i in e)"object"==typeof e[i]?"[object Object]"===(n=a.call(e[i]))?("object"!=typeof t[i]&&(t[i]={}),d(t[i],e[i])):"[object Array]"===n?(t[i]instanceof Array||(t[i]=[]),d(t[i],e[i])):t[i]=e[i]:t[i]=e[i];return t};n.extend=function(t,e,i,n){var r;if(i&&t.prototype&&(t=t.prototype),!0===n)d(t,e);else for(r in e)t[r]=e[r];return t},n.uniqueId=function(){return"chartobject-"+(n.uniqueId.lastId+=1)},n.uniqueId.lastId=0,n.policies={options:{chartTypeSourcePath:["typeSourcePath",""],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["s
20afeMode",!0],overlayButton:["overlayButton",void 0],containerBackgroundColor:["containerBackgroundColor","#ffffff"],containerBackgroundOpacity:["containerBackgroundOpacity",1],containerClassName:["containerClassName","fusioncharts-container"],chartType:["type",void 0],baseChartMessageFont:["baseChartMessageFont","Verdana,sans"],baseChartMessageFontSize:["baseChartMessageFontSize","10"],baseChartMessageColor:["baseChartMessageColor","#666666"],baseChartMessageImageHAlign:["baseChartMessageImageHAlign","middle"],baseChartMessageImageVAlign:["baseChartMessageImageVAlign","middle"],baseChartMessageImageAlpha:["baseChartMessageImageAlpha",100],baseChartMessageImageScale:["baseChartMessageImageScale",100],dataLoadStartMessage:["dataLoadStartMessage","Retrieving data. Please wait."],dataLoadErrorMessage:["dataLoadErrorMessage","Error in loading data."],dataInvalidMessage:["dataInvalidMessage","Invalid data."],dataEmptyMessage:["dataEmptyMessage","No data to display."],typeNotSupportedMessage:["typeNotSupportedMessage","Chart type not supported."],browserNotSupportedMessage:["browserNotSupportedMessage","This browser is not supported."],loadMessage:["loadMessage","Loading chart. Please wait."],renderErrorMessage:["renderErrorMessage","Unable to render chart."]},attributes:{lang:["lang","EN"],id:["id",void 0]},width:["width","400"],height:["height","300"],src:["swfUrl",""]},o.stat="swfUrl id width height debugMode registerWithJS backgroundColor scaleMode lang detectFlashVersion autoInstallRedirect".split(" "),n.parsePolicies=function(t,e,i){var r,o,a;for(o in e)if(n.policies[o]instanceof Array)a=i[e[o][0]],t[o]=void 0===a?e[o][1]:a;else for(r in"object"!=typeof t[o]&&(t[o]={}),e[o])a=i[e[o][r][0]],t[o][r]=void 0===a?e[o][r][1]:a},n.parseCommands=function(t,e,i){var n,r;for("string"==typeof e&&(e=o[e]||[]),n=0,r=e.length;n<r;n++)t[e[n]]=i[n];return t},n.registrars={module:function(){return n.core.apply(n.core,arguments)}},n.core=function(t){if(!(this instanceof n.core)){if(1===arguments.length&&t instanceof Array&&"private"===t[0]){if(r[t[1]])return;return r[t[1]]={},t[3]instanceof Array&&(n.core.version[t[1]]=t[3]),"function"==typeof t[2]?t[2].call(n,r[t[1]]):n}if(1===arguments.length&&"string"==typeof t)return n.core.items[t];n.raiseError&&n.raiseError(this,"25081840","run","",new SyntaxError('Use the "new" keyword while creating a new FusionCharts object'))}var e={};return this.__state={},1===arguments.length&&"object"==typeof arguments[0]?e=arguments[0]:n.parseCommands(e,o.stat,arguments),1<arguments.length&&"object"==typeof arguments[arguments.length-1]&&(delete e[o.stat[arguments.length-1]],n.extend(e,arguments[arguments.length-1])),this.id=void 0===e.id?this.id=n.uniqueId():e.id,this.args=e,n.core.items[this.id]instanceof n.core&&n.raiseWarning(this,"06091847","param","",Error('A FusionCharts object with the specified id "'+this.id+'" already exists. Renaming it to '+(this.id=n.uniqueId()))),n.parsePolicies(this,n.policies,e),this.attributes.id=this.id,this.resizeTo&&this.resizeTo(e.width,e.height,!0),this.chartType&&this.chartType(e.type||e.swfUrl,!0),n.raiseEvent("beforeInitialize",e,this),n.core.items[this.id]=this,n.core.defaultOptions=n.core.options,n.raiseEvent("initialized",e,this),this},n.core.prototype={},n.core.prototype.constructor=n.core,n.extend(n.core,{id:"FusionCharts",version:["3","10","1"],items:{},options:{},getObjectReference:function(t){return n.core.items[t].ref},register:function(t){return n.registrars[t=t&&t.toString&&t.toString().toLowerCase()]&&n.registrars[t].apply(n.core,Array.prototype.slice.call(arguments,1))}}),t.FusionCharts=n.core,t.FusionMaps&&t.FusionMaps.legacy&&(n.core(["private","modules.core.geo",t.FusionMaps.legacy,t.FusionMaps.version]),c=!0),l.test(e.readyState)||e.loaded?(n.ready=!0,setTimeout(h,1)):function(){function r(){arguments.callee.done||(arguments.callee.done=!0,a&&clearTimeout(a),c||(t.FusionMaps&&t.FusionMaps.legacy&&n.core(["private","modules.core.geo",t.FusionMaps.legacy,t.FusionMaps.version]),t.FusionMaps=n.core),setTimeout(h,1))}function o(){l.test(e.readyState)?r():a=setTimeout(o,10)}var a;if(e.addEventListener?e.addEventListener("DOMContentLoaded",r,!1):e.attachEvent&&t.attachEvent("onLoad",r),s)try{"https:"===t.location.protocol?e.write('
20<script id="__ie_onload_fusioncharts" defer="defer" src="//:"></script>'):e.write('<script id="__ie_onload_fusioncharts" defer="defer" src="javascript:void(0)"></script>'),e.getElementById("__ie_onload_fusioncharts").onreadystatechange=function(){"complete"==this.readyState&&r()}}catch(t){}/WebKit/i.test(i.userAgent)&&(a=setTimeout(o,10)),t.onload=function(e){return function(){r(),e&&e.call&&e.call(t)}}(t.onload)}(),t.FusionMaps=n.core}}(),FusionCharts.register("module",["private","modules.mantle.errormanager",function(){var t,e=this,i=e.window,n={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},r=function(t,r,o,a,s,l){var c="#"+r+" "+(t?t.id:"unknown-source")+a+" "+l+" >> ";s instanceof Error?(s.name=n[o],s.module="FusionCharts"+a,s.level=l,s.message=c+s.message,c=s.message,i.setTimeout((function(){throw s}),0)):c+=s,r={id:r,nature:n[o],source:"FusionCharts"+a,message:c},e.raiseEvent(l,r,t),"function"==typeof i["FC_"+l]&&i["FC_"+l](r)};e.raiseError=function(t,e,i,n,o){r(t,e,i,n,o,"Error")},e.raiseWarning=function(t,e,i,n,o){r(t,e,i,n,o,"Warning")},(t={outputHelpers:{text:function(e,i){t.outputTo("#"+e.eventId+" ["+(e.sender.id||e.sender).toString()+'] fired "'+e.eventType+'" event. '+("error"===e.eventType||"warning"===e.eventType?i.message:""))},event:function(t,e){this.outputTo(t,e)},verbose:function(e,i){t.outputTo(e.eventId,e.sender.id,e.eventType,i)}},outputHandler:function(i,n){"function"!=typeof t.outputTo?e.core.debugger.outputFailed=!0:(e.core.debugger.outputFailed=!1,t.currentOutputHelper(i,n))},currentOutputHelper:void 0,outputTo:void 0,enabled:!1}).currentOutputHelper=t.outputHelpers.text,e.extend(e.core,{debugger:{syncStateWithCharts:!0,outputFormat:function(e){return!(!e||"function"!=typeof e.toLowerCase||"function"!=typeof t.outputHelpers[e=e.toLowerCase()])&&(t.currentOutputHelper=t.outputHelpers[e],!0)},outputTo:function(i){"function"==typeof i?t.outputTo=i:null===i&&(e.core.debugger.enable(!1),delete t.outputTo)},enable:function(i,n,r){var o;return"object"==typeof i&&1===arguments.length&&(i=(o=i).state,n=o.outputTo,r=o.outputFormat),"function"==typeof i&&("string"!=typeof n||2!==arguments.length&&!o||(r=n),n=i,i=!0),"boolean"==typeof i&&i!==t.enabled&&e.core[(t.enabled=i)?"addEventListener":"removeEventListener"]("*",t.outputHandler),"function"==typeof n&&(t.outputTo=n),e.core.debugger.outputFormat(r),t.enabled},enableFirebugLite:function(){var t;i.console&&i.console.firebug?e.core.debugger.enable(i.console.log,"verbose"):((t=i.document.getElementsByTagName("html"))&&t[0].setAttribute("debug","true"),e.loadScript("https://getfirebug.com/firebug-lite.js#overrideConsole=false,startOpened=true",(function(){e.core.debugger.enable(i.console.log,"verbose")}),"{ startOpened: true }",!0,!0))}},debugMode:{enabled:function(){return i.setTimeout((function(){throw Error("Deprecated! Please use FusionCharts.debugger.enable instead.")}),0),e.core.debugger.enable.apply(e.core.debugger,arguments)}}},!1)}]),FusionCharts.register("module",["private","modules.mantle.eventmanager",function(){var t=this,e=t.window,i=t.core,n=e.Object.prototype.toString,r=n.call([]),o=function(t,e,i,n){try{t[0].call(e,i,n||{})}catch(t){setTimeout((function(){throw t}),0)}},a=function(e,i,n){if(e instanceof Array)for(var r,a=0;a<e.length&&(e[a][1]!==i.sender&&void 0!==e[a][1]||(r=e[a][1]===i.sender?i.sender:t.core,o(e[a],r,i,n),!0===i.detached&&(e.splice(a,1),--a,i.detached=!1)),!0!==i.cancelled);a+=1);},s={unpropagator:function(){return!1==(this.cancelled=!0)},detacher:function(){return!1==(this.detached=!0)},undefaulter:function(){return!1==(this.prevented=!0)},listeners:{},lastEventId:0,addListener:function(e,i,o){var a,l;if(n.call(e)===r){for(a=[],l=0;l<e.length;l+=1)a.push(s.addListener(e[l],i,o));return a}if("string"!=typeof e)t.raiseError(o||t.core,"03091549","param","::EventTarget.addListener",Error("Unspecified Event Type"));else{if("function"==typeof i)return e=e.toLowerCase(),s.listeners[e]instanceof Array||(s.listeners[e]=[]),s.listeners[e].push([i,o]),i;t.raiseError(o||t.core,"03091550","param","::EventTarget.addListener",Error("Invalid Event Listener"))}},removeListener:function(e,i,n){var r;if("function"!=typeof i)t.raiseError(n||t.core,"03091560","param","::EventTarget.removeListener",Error("Invalid Event Listener"));else if(e instanceof Array)for(r=0;r<e.length;r+=1)s.removeListener(e[r],i,n);else if("string"!=typeof e)t.raiseError(n||t.core,"03091559","param","::EventTarget.removeListener",Error("Unspecified Event Type"));else if(e=e.toLowerCase(),(e=s.listeners[e])instanceof Array)for(r=0;r<e.length;r+=1)e[r][0]===i&&e[r][1]===n&&(e.splice(r,1),--r)},triggerEvent:function(i,n,r,o,l,c){if("string"==typeof i){var h={eventType:i=i.toLowerCase(),eventId:s.lastEventId+=1,sender:n||Error("Orphan Event"),cancelled:!1,stopPropagation:this.unpropagator,prevented:!1,preventDefault:this.undefaulter,detached:!1,detachHandler:this.detacher};if(a(s.listeners[i],h,r),a(s.listeners["*"],h,r),!0===h.prevented){if("function"==typeof c)try{c.call(o||n||e,h,r||{})}catch(t){setTimeout((function(){throw t}),0)}}else if("function"==typeof l)try{l.call(o||n||e,h,r||{})}catch(t){setTimeout((function(){throw t}),0)}return!0}t.raiseError(n,"03091602","param","::EventTarget.dispatchEvent",Error("Invalid Event Type"))}}
20,l=t.raiseEvent=function(t,e,i,n,r,o){return s.triggerEvent(t,i,e,n,r,o)},c=t.legacyEventList={},h={};t.disposeEvents=function(t){var e,i;for(e in s.listeners)for(i=0;i<s.listeners[e].length;i+=1)s.listeners[e][i][1]===t&&s.listeners[e].splice(i,1)},t.raiseEventWithLegacy=function(t,i,n,r,o,a,s){var h=c[t];l(t,i,n,o,a,s),h&&"function"==typeof e[h]&&setTimeout((function(){e[h].apply(o||e,r)}),0)},t.raiseEventGroup=function(t,e,i,n,r,o,a){var s=n.id,c=t+s;h[c]?(clearTimeout(h[c]),delete h[c]):s&&c?h[c]=setTimeout((function(){l(e,i,n,r,o,a),delete h[c]}),0):l(e,i,n,r,o,a)},t.addEventListener=function(t,e){return s.addListener(t,e)},t.removeEventListener=function(t,e){return s.removeListener(t,e)},t.extend(i,{addEventListener:function(t,e){return s.addListener(t,e)},removeEventListener:function(t,e){return s.removeListener(t,e)},ready:function(e,n,r){return t.ready?(i.ready=function(t,e){"function"==typeof t&&setTimeout((function(){t.call(e||i,n||i)}),0)},i.ready(e,r)):"function"==typeof e&&i.addEventListener("ready",(function(){i.ready(e,n,r)})),this}}),i.on=i.addEventListener,t.extend(i.prototype,{addEventListener:function(t,e){return s.addListener(t,e,this)},removeEventListener:function(t,e){return s.removeListener(t,e,this)}}),i.prototype.on=i.prototype.addEventListener,t.policies.options.events=["events",{}],t.addEventListener("beforeInitialize",(function(t){var e,i=(t=t.sender).options.events;if(i)for(e in i)"function"==typeof i[e]&&t.addEventListener(e,i[e])})),t.ready&&!t.readyNotified&&(t.readyNotified=!0,t.raiseEvent("ready",{version:t.core.version,now:t.readyNow},t.core))}]),FusionCharts.register("module",["private","modules.mantle.ajax",function(){var t=this,e=t.window,i=parseFloat(e.navigator.appVersion.split("MSIE")[1]),n=5.5<=i&&7>=i,r="file:"===e.location.protocol,o=e.ActiveXObject,a=(!o||!r)&&e.XMLHttpRequest,s={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},l=function(){var t;if(a)return(l=function(){return s.xhr++,new a})();try{t=new o("Msxml2.XMLHTTP"),l=function(){return s.xhr++,new o("Msxml2.XMLHTTP")}}catch(e){try{t=new o("Microsoft.XMLHTTP"),l=function(){return s.xhr++,new o("Microsoft.XMLHTTP")}}catch(e){t=!1}}return t};t.core.ajax={stats:function(e){return e?s[e]:t.extend({},s)},headers:{"If-Modified-Since":"Sat, 29 Oct 1994 19:43:31 GMT","X-Requested-With":"XMLHttpRequest","X-Requested-By":"FusionCharts",Accept:"text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}},i=t.ajax=function(t,e){this.onSuccess=t,this.onError=e,this.open=!1,s.objects++,s.idle++},t.extend(i.prototype,{headers:t.core.ajax.headers,transact:function(i,o,a,c){var h,d,u=this,p=u.xmlhttp,f=u.headers,g=u.onError,m=u.onSuccess;i="POST"===i,p&&!n||(p=l(),u.xmlhttp=p),p.onreadystatechange=function(){try{4===p.readyState&&(!p.status&&r||200<=p.status&&300>p.status||304===p.status||1223===p.status||0===p.status?(m&&m(p.responseText,u,c,o),s.success++):g&&(g(Error("XmlHttprequest Error"),u,c,o),s.failure++),s.idle--,u.open=!1)}catch(t){g&&g(t,u,c,o),e.FC_DEV_ENVIRONMENT&&setTimeout((function(){throw t}),0),s.failure++}};try{if(p.open(i?"POST":"GET",o,!0),p.overrideMimeType&&p.overrideMimeType("text/plain"),i)if("string"==typeof a)h=a;else{for(d in h=[],a)h.push(d+"="+(a[d]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));h=h.join("&")}else h=null;for(d in f)p.setRequestHeader(d,f[d]);p.send(h),s.requests++,s.idle++,u.open=!0}catch(e){t.raiseError(t.core,"1110111515A","run","XmlHttprequest Error",e.message)}return p},get:function(t,e){return this.transact("GET",t,void 0,e)},post:function(t,e,i){return this.transact("POST",t,e,i)},abort:function(){var t=this.xmlhttp;return this.open=!1,t&&"function"==typeof t.abort&&t.readyState&&0!==t.readyState&&t.abort()},dispose:function(){return this.open&&this.abort(),delete this.onError,delete this.onSuccess,delete this.xmlhttp,delete this.open,s.objects--,null}})}]),FusionCharts.register("module",["private","modules.mantle.runtime;1.1",function(){var t=this,e=t.window,i=/(^|[\/\\])(fusioncharts\.js)([\?#].*)?$/gi,n=/[\\\"<>;&]/,r=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,o={},a={},s={},l={},c=t.purgeDOM=function(t){var e,i,n=t.attributes;if(n)for(e=n.length-1;0<=e;--e)"function"==typeof t[i=n[e].name]&&(t[i]=null);if(n=t.childNodes)for(n=n.length,e=0;e<n;e+=1)c(t.childNodes[e])}
20,h=function(t,e,i){var n,r;for(n in t)if(t[n]instanceof Array)e[t[n][0]]=i[n];else for(r in t[n])e[t[n][r][0]]=i[n][r]},d=/^(FusionCharts|FusionWidgets|FusionMaps)/;t.getScriptBaseUri=function(t){var i,n,r=e.document.getElementsByTagName("script"),o=r.length;for(n=0;n<o;n+=1)if(null!=(i=r[n].getAttribute("src"))&&null!==i.match(t))return i.replace(t,"$1")},t.core.options.scriptBaseUri=function(){var e=t.getScriptBaseUri(i);return void 0===e?(t.raiseError(FusionCharts,"1603111624","run",">GenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),""):e}(),t.isXSSSafe=function(t,e){return(!e||null===r.exec(t))&&null===n.exec(t)},t.xssEncode=function(t){return null==t||"function"!=typeof t.toString?"":t=t.toString().replace(/&/g,"&amp;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},t.loadScript=function(i,n,r,c,h){if(!i)return!1;var d,u=n&&n.success||n,p=n&&n.failure,f={type:"script",success:!1},g=function(){l[d]=clearTimeout(l[d]),f.success?u&&u(i,d):p&&p(i,d),t.raiseEvent("externalresourceload",f,t.core)};return h=h?"":t.core.options.scriptBaseUri,d=h+i,t.isXSSSafe(d,!1)||(d="function"==typeof e.encodeURIComponent?e.encodeURIComponent(d):e.escape(d)),f.path=h,f.src=d,f.file=i,!0===s[d]&&c?(f.success=!0,f.notReloaded=!0,"function"==typeof n&&(n(),t.raiseEvent("externalresourceload",f,t.core)),!0):(!o[d]||!c)&&(o[d]=!0,a[d]&&a[d].parentNode&&a[d].parentNode.removeChild(a[d]),(n=a[d]=e.document.createElement("script")).type="text/javascript",n.src=d,r&&(n.innerHTML=r),"function"==typeof u&&(s[d]=!1,l[d]=clearTimeout(l[d]),n.onload=function(){s[d]=!0,f.success=!0,g()},n.onerror=function(){s[d]=!1,o[d]=!1,g()},n.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||(s[d]=!0,f.success=!0,g())}),e.document.getElementsByTagName("head")[0].appendChild(n),"function"==typeof p&&(l[d]=setTimeout((function(){s[d]||g()}),t.core.options.html5ResourceLoadTimeout||15e3)),!0)},t.capitalizeString=function(t,e){return t?t.replace(e?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,(function(t,e,i){return e+i.toUpperCase()})):t},t.extend(t.core,{clone:function(e,i){var n,r=typeof e,o=t.extend({},this.args,!1,!1);switch(h(t.policies,o,this),h(t.renderer.getRendererPolicy(this.options.renderer),o,this),delete o.id,delete o.animate,delete o.stallLoad,n=o.link,(o=t.extend({},o,!1,!1)).link=n,r){case"object":t.extend(o,e);break;case"boolean":i=e}return i?o:new t.core(o)},isActive:function(){if(!this.ref||e.document.getElementById(this.id)!==this.ref)return!1;try{return d.test(this.ref.signature())}catch(t){return!1}},chartType:function(e,i){var n,r=this.src,o=!0===i,a=this.options;return"string"==typeof e&&(i="object"==typeof i?i:{},n=null!==(r=e.replace(/[\?\#][\s\S]*$/g,"")).match(/\.swf\s*?$/gi),r=r.replace(/\.swf\s*?$/gi,""),a.chartType=r.replace(/^[\s\S]*\//gi,"").replace(/^fcmap_/i,""),a.chartTypeSourcePath=-1===r.indexOf("/")?i.chartTypeSourcePath||this.options.chartTypeSourcePath||t.core.options.chartTypeSourcePath||"":r.replace(/[^\/]*?$/gi,""),this.src=((t.core.options.scriptBaseUri||"")+(a.chartTypeSourcePath||t.core.options.chartTypeSourcePath||"")).replace(/\/\s*$/g,"")+"/"+a.chartType.replace(/\.swf\s*?$/gi,"")+".swf",n&&(t.raiseWarning(this,"08101320181","comp","FusionCharts#chartType",'Chart type has ".swf" in alias and as such has been deprecated. Please use chart type alias.'),a.chartTypeSourcePath=t.core.options.chartTypeSourcePath||""),void 0!==i.dataSource&&null!==i.dataSource?this.setChartData(i.dataSource,i.dataFormat,i.dataConfiguration):this.isActive()&&!o&&this.render()),(a.chartType||"").toLowerCase()}},!0),e.getChartFromId=function(i){return t.raiseWarning(this,"11133001041","comp","GenericRuntime~getObjectFromId()",'Use of deprecated getChartFromId() or getMapFromId(). Replace with "FusionCharts()" or FusionCharts.items[].'),t.core.items[i]instanceof t.core?t.core.items[i].ref:e.swfobject&&e.swfobject.getObjectById(i)},e.getMapFromId=e.getChartFromId}]),FusionCharts.register("module",["private","api.printmanager",function(){var t=this;t.extend(t.core,{printManager:{configure:function(){t.raiseWarning(t.core,"28141714","
20impl",".printManager.configure","PrintManager is deprecated")},isReady:function(){return t.raiseWarning(t.core,"28141714","impl",".printManager.isReady","PrintManager is deprecated"),!1},enabled:function(){return t.raiseWarning(t.core,"28141714","impl",".printManager.enabled","PrintManager is deprecated"),!1},managedPrint:function(){t.raiseWarning(t.core,"28141714","impl",".printManager.managedPrint","PrintManager is deprecated")}}},!1)}]),FusionCharts.register("module",["private","modules.interface.renderer",function(){var t,e=this,i=e.window,n=i.document,r=function(){e.raiseError(this,"25081845","run","::RendererManager",Error("No active renderer"))},o=e.FusionChartsDOMInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},a={undefined:{render:r,remove:r,update:r,resize:r,config:r,policies:{}}},s={},l=function(t){return function(){var i=this.ref;if(null!=i&&"function"==typeof i[t])return i[t].apply(i,arguments);e.raiseError(this,"25081617","run","#"+t+"()","ExternalInterface call failed. Check whether chart has been rendered.")}},c=function(t,e){return"function"==typeof t[e]?function(){return t[e].apply(t,arguments)}:t[e]},h=function(t,e){var i,r,o=n.getElementById(t),a=e.id||e.getAttribute("id");if(null===o)return!1;if(t===a)return!0;for(i=0,r=(a=e.getElementsByTagName("*")).length;i<r;i++)if(a[i]===o)return!1;return!0},d=/[^\%\d]*$/gi,u=function(){var t=function(e){var n=e.parentNode;if(9===n.nodeType)return!1;var r="display";return i.getComputedStyle?r=i.getComputedStyle(e)[r]:e.currentStyle&&(r=e.currentStyle[r]),"none"===r||!!n&&t(n)};return t}(),p=function(){var t,i={},n=function(){var r,o,a,s,l,c=0,h=parseInt(e.core.options.visibilityTrackingInterval,10)||300;for(r in i)c+=1,o=i[r].chart,a=i[r].container,s=i[r].insertMode,l=i[r].callback,(o.disposed||!u(a))&&(delete i[r],--c,!o.disposed&&o.renderChart.call(o,a,s,l));t=c?setTimeout(n,h):clearTimeout(t)};return function(r,o,a,s){i[r.id]={chart:r,container:o,insertMode:a,callback:s},t||(t=setTimeout(n,parseInt(e.core.options.visibilityTrackingInterval,10)||300))}}();e.policies.options.containerElementId=["renderAt",void 0],e.policies.options.renderer=["renderer",void 0],e.policies.options.containerElementType=["containerElementType",void 0],e.policies.options.visibilityTrackingInterval=300,e.normalizeCSSDimension=function(t,e,i){t=void 0===t?i.offsetWidth||parseFloat(i.style.width):t,e=void 0===e?i.offsetHeight||parseFloat(i.style.height):e;var n,r={},o=i.style;if(o.width=t=t.toString?t.toString():"0",o.height=e=e.toString?e.toString():"0",(r.widthIsRelative=t.match(/^\s*\d*\.?\d*\%\s*$/)&&!t.match(/^\s*0\%\s*$/))&&0===i.offsetWidth)for(n=i;n=n.offsetParent;)if(0<n.offsetWidth){t=(n.offsetWidth*parseFloat(t.match(/\d*/)[0])/100).toString();break}if((r.heightIsRelative=e.match(/^\s*\d*\.?\d*\%\s*$/)&&!e.match(/^\s*0\%\s*$/))&&20>=i.offsetHeight)for(n=i;n=n.offsetParent;)if(0<n.offsetHeight){e=(n.offsetHeight*parseFloat(e.match(/\d*/)[0])/100).toString();break}return r.width=t.replace?t.replace(/^\s*(\d*\.?\d*)\s*$/gi,"$1px"):t,r.height=e.replace?e.replace(/^\s*(\d*\.?\d*)\s*$/gi,"$1px"):e,o.width=r.width,o.height=r.height,r.pixelWidth=r.widthIsRelative?i.offsetWidth:parseInt(r.width,10)||0,r.pixelHeight=r.heightIsRelative?i.offsetHeight:parseInt(r.height,10)||0,r},t=e.renderer={register:function(t,i){if(!t||"function"!=typeof t.toString)throw Error("#03091436 ~renderer.register() Invalid value for renderer name.");return t=t.toString().toLowerCase(),void 0!==a[t]?(e.raiseError(e.core,"03091438","param","::RendererManager>register",'Duplicate renderer name specified in "name"'),!1):(a[t]=i,!0)},userSetDefault:!1,setDefault:function(t){return t&&"function"==typeof t.toString?void 0===a[t=t.toString().toLowerCase()]?(e.raiseError(e.core,"25081733","range","::RendererManager>setDefault","The specified renderer does not exist."),!1):(this.userSetDefault=!1,e.policies.options.renderer=["renderer",t],!0):(e.raiseError(e.core,"25081731","param","::RendererManager>setDefault",'Invalid renderer name specified in "name"'),!1)},notifyRender:function(t){var i=e.core.items[t&&t.id];i&&(!1!==t.success||t.silent)||e.raiseError(e.core.items[t.id],"25081850","run","::RendererManager",Error("There was an error rendering the chart. Enable FusionCharts JS debugger for more information.")),(i.ref=t.ref)&&(t.ref.FusionCharts=e.core.items[t.id]),e.raiseEvent("internal.DOMElementCreated",{},i)},protectedMethods:{options:!0,attributes:!0,src:!0,ref:!0,constructor:!0,signature:!0,link:!0,addEventListener:!0,removeEventListener:!0},getRenderer:function(t){return a[t]},getRendererPolicy:function(t){return"object"==typeof(t=a[t].policies)?t:{}},currentRendererName:function(){return e.policies.options.renderer[1]},update:function(t){s[t.id].update.apply(t,Array.prototype.slice.call(arguments,1
20))},render:function(t){s[t.id].render.apply(t,Array.prototype.slice.call(arguments,1))},remove:function(t){s[t.id].remove.apply(t,Array.prototype.slice.call(arguments,1))},resize:function(t){s[t.id].resize.apply(t,Array.prototype.slice.call(arguments,1))},config:function(t){s[t.id].config.apply(t,Array.prototype.slice.call(arguments,1))},dispose:function(t){s[t.id].dispose.apply(t,Array.prototype.slice.call(arguments,1))}},e.addEventListener("beforeInitialize",(function(t){var i,n=(t=t.sender).options.renderer.toLowerCase();for(i in"string"==typeof t.options.renderer&&void 0===a[n]&&(t.options.renderer=e.policies.options.renderer[1]),t.options.renderer=n,s[t.id]=a[t.options.renderer],!0!==s[t.id].initialized&&"function"==typeof s[t.id].init&&(s[t.id].init(),s[t.id].initialized=!0),e.parsePolicies(t,s[t.id].policies||{},t.args),s[t.id].prototype)t[i]=s[t.id].prototype[i];for(i in s[t.id].events)t.addEventListener(i,s[t.id].events[i])})),e.addEventListener(["rendered","dataloaderror","nodatatodisplay","rendercancelled"],(function(t,i){var n=t.sender;n instanceof e.core&&n.__state.rendering&&(e.raiseEvent("internal.rendered",i,n),delete n.__state.rendering)})),e.addEventListener("loaded",(function(i){var n,r,o=i.sender;if(null!=(i=i.sender.ref)&&"function"==typeof i.getExternalInterfaceMethods){try{n="string"==typeof(n=i.getExternalInterfaceMethods())?n.split(","):[]}catch(t){n=[],e.raiseError(o,"13111126041","run","RendererManager^Loaded",Error("Error while retrieving data from the chart-object."+(t.message&&0<=t.message.indexOf("NPObject")?" Possible cross-domain security restriction.":"")))}for(i=0;i<n.length;i+=1)void 0===o[r=n[i]]&&(o[r]=l(r));if(o.ref)for(r in n=t.protectedMethods,i=t.getRenderer(o.options.renderer).protectedMethods,o)if(i&&!n[r]&&!i[r]&&void 0===o.ref[r])try{o.ref[r]=c(o,r)}catch(t){}}})),e.legacyEventList.resized="FC_Resized",e.extend(e.core.prototype,{render:function(t,i,r){return r?"function"!=typeof r&&(r=void 0):"function"==typeof i?(r=i,i=void 0):i||"function"!=typeof t||(r=t,t=void 0),void 0===t&&(t=this.options.containerElementId),"string"==typeof t&&(t=n.getElementById(t)),null==t?(e.raiseError(this,"03091456","run",".render()",Error("Unable to find the container DOM element.")),this):(u(t)?p(this,t,i,r):this.renderChart.call(this,t,i,r),this)},renderChart:function(t,r,a){var s,l,c,d=this;if(((c=i[this.id])&&c.FusionCharts&&c.FusionCharts===this||(c=this.ref)&&c.FusionCharts&&c.FusionCharts===this)&&(e.renderer.dispose(this),c===i[this.id]&&(i[this.id]=void 0)),void 0!==i[this.id]&&e.raiseError(this,"25081843","comp",".render",Error("#25081843:IECompatibility() Chart Id is same as a JavaScript variable name. Variable naming error. Please use unique name forchart JS variable, chart-id and container id.")),a?"function"!=typeof a&&(a=void 0):"function"==typeof r?(a=r,r=void 0):r||"function"!=typeof t||(a=t,t=void 0),r=(r||this.options.insertMode).toLowerCase()||o.REPLACE,void 0===t&&(t=this.options.containerElementId),"string"==typeof t&&(t=n.getElementById(t)),null==t)return e.raiseError(this,"03091456","run",".render()",Error("Unable to find the container DOM element.")),this;if(h(this.id,t))return e.raiseError(this,"05102109","run",".render()",Error("A duplicate object already exists with the specific Id: "+this.id)),this;if((s=n.createElement(this.options.containerElementType||"span")).setAttribute("id",this.id),"append"!==r&&"prepend"!==r)for(;t.hasChildNodes();)t.removeChild(t.firstChild);return"prepend"===r&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s),this.options.containerElement=t,this.options.containerElementId=t.id,(r=s.style)&&(r.position="relative",r.textAlign="left",r.lineHeight="normal",r.display="inline-block",r.zoom="1",r.fontWeight="normal",r.fontVariant="normal",r.fontStyle="normal",r.textDecoration="none",r["*DISPLAY"]="inline",r.padding="0",r.margin="0",r.border="none",r.direction="ltr"),this.options.containerClassName&&(s.className=this.options.containerClassName),r=e.normalizeCSSDimension(this.width,this.height,s),this.__state.renderedWidth=r.pixelWidth,this.__state.renderedHeight=r.pixelHeight,this.__state.rendering=!0,e.raiseEvent("beforeRender",l={container:t,width:this.width,height:this.height,renderer:this.options.renderer},this,void 0,(function(t,i){!0!==this.disposed&&e.renderer.render(d,s,(function(){if(e.renderer.notifyRender.apply(this,arguments),a)try{a.call(t.sender,i.container)}catch(t){setTimeout((function(){throw t}))}}))}),(function(){e.raiseEvent("renderCancelled",l,d)})),this},remove:function(){return e.renderer.remove(this),this},resizeTo:function(t,i,n){var r=this,o=r.width,a=r.height,s=r.__state;return"object"==typeof t&&(n=i,i=t.h,t=t.w),t=null==t?o:t.toString().replace(d,""),i=null==i?a:i.toString().replace(d,""),!0!==n?e.raiseEvent("beforeresize",{currentWidth:o,currentHeight:a,newWidth:t,newHeight:i},r,void 0,(function(){r.width=t,r.height=i,e.renderer.resize(r,{width:t,height:i}),e.raiseEventWithLegacy("resized",{width:r.width,height:r.height,prevWidth:o,prevHeight:a,pixelWidth:r.ref&&r.ref.offsetWidth||0,pixelHeight:r.ref&&r.ref.offsetHeight||0,originalWidth:s.renderedWidth,originalHeight:s.renderedHeight},r,[r.id,r.width,r.height])}),(function(){e.raiseEvent("resizecancelled",{currentWidth:o,currentHeight:a,cancelledTargetWidth:t,cancelledTargetHeight:i},r)})):(r.width=t,r.height=i),this},dispose:function(){var t=this,i={};e.raiseEvent("beforeDispose",i,t,void 0,(function(){for(var n in e.renderer.dispose(t),e.raiseEvent("disposed",i,t),e.disposeEvents(t),delete e.core.
20items[t.id],t)t.hasOwnProperty(n)&&delete t[n];t.disposed=!0}),(function(){e.raiseEvent("disposeCancelled",i,t)}))},configure:function(t,i){var n;t&&("string"==typeof t?(n={})[t]=i:n=t,e.renderer.config(this,n))}}),e.extend(e.core,{setCurrentRenderer:function(){var e=t.setDefault.apply(t,arguments);return t.userSetDefault=!0,e},getCurrentRenderer:function(){return t.currentRendererName.apply(t,arguments)},render:function(t,i){return t instanceof e.core?(t.render(i),t):new e.core(t).render(i)}},!1)}]),FusionCharts.register("module",["private","modules.interface.transcoder",function(){var t=this,e=t.window,i=t.transcoders={},n={},r={},o=/url$/i,a=t._interactiveCharts={selectscatter:[!0,!1],dragcolumn2d:[!0,!0],dragarea:[!0,!0],dragline:[!0,!0],dragnode:[!0,!0]},s=function(e,i,n,r){var o=n.obj;(n=n.args).dataSource=e,n.xmlHttpRequestObject=i,n.source="XmlHttpRequest",n.url=r,t.raiseEvent("dataLoadRequestCompleted",n,o,void 0,c,h)},l=function(i,n,r){var o=r.obj;(r=r.args).error=i,r.httpStatus=n.xhr&&n.xhr.status?n.xhr.status:-1,r.xmlHttpRequestObject=n,t.raiseEvent("dataLoadError",r,o),"function"==typeof e.FC_DataLoadError&&e.FC_DataLoadError(o.id,r)},c=function(t,e){e.config||(e.config={}),e.config.isHighPerformingChart=!!(t.sender&&t.sender.args&&/zoomscatter/gi.test(t.sender.args.type)),t.sender.setChartData(e.dataSource,e.dataFormat,e.config,e.successcallback,e.silent)},h=function(e,i){t.raiseEvent("dataLoadCancelled",i,e.sender),i.xmlHttpRequestObject.abort()},d=function(i,n){var r=i.sender,o=r.__state,a=n.url;
20r.options.dataSource=n.url,o.dhmXhrObj||(o.dhmXhrObj=new t.ajax(s,l)),o.dhmXhrObj.get("function"==typeof e.decodeURIComponent?e.decodeURIComponent(a):e.unescape(a),{obj:r,args:n})},u=function(e,i){var n=e.sender,r=n.__state;t.raiseEvent("dataLoadRequestCancelled",i,n),r&&r.dhmXhrObj&&r.dhmXhrObj.abort()},p=function(e,i){var o=e.sender,a=o.__state,s=o.id;n[s]=i,r[s]&&delete r[s],r[s]={},a.dataReady=void 0,a.dataAvailable=!0,!0!==i.silent&&(!0!==o.options.safeMode||!0!==a.rendering||o.isActive()?(delete a.args,t.renderer.update(o,i)):(a.updatePending=i,t.raiseWarning(o,"23091255","run","::DataHandler~update","Renderer update was postponed due to async loading."))),t.raiseEvent("dataUpdated",i,o,void 0,i.successcallback)},f=function(e,i){t.raiseEvent("dataUpdateCancelled",i,e.sender,void 0,i.failurecallback)};t.dataFormats={},t.policies.options.dataSource=["dataSource",void 0],t.policies.options.dataFormat=["dataFormat",void 0],t.policies.options.dataConfiguration=["dataConfiguration",void 0],t.policies.options.showDataLoadingMessage=["showDataLoadingMessage",!1],t.addDataHandler=function(e,n){
21if("string"!=typeof e||void 0!==i[e.toLowerCase()])t.raiseError(t.core,"03091606","param","::DataManager.addDataHandler",Error("Invalid Data Handler Name"));else{var r={},o=e.toLowerCase();i[o]=n,n.name=e,r["set"+e+"Data"]=function(t,i,n){return this.setChartData(t,e,i,n)},n.transportable&&(r["set"+e+"Url"]=function(t,i,n){return this.setChartDataUrl(t,e,i,n)},t.dataFormats[e+"URL"]=o+"Url"),r["get"+e+"Data"]=function(){return this.getChartData(e)},t.dataFormats[e]=o,t.extend(t.core,r,!0)}},t.extend(t.core.prototype,{setChartDataUrl:function(e,i,n,r,a){null!=i&&"function"==typeof i.toString||(i=this.options.dataFormat,t.raiseWarning(this,"03091609","param","FusionCharts#setChartDataUrl","Invalid Data Format. Reverting to current data format - "+i)),i=i.toString().toLowerCase(),i=o.test(i)?i.slice(0,-3):i,t.raiseEvent("dataLoadRequested",{source:"XmlHttpRequest",url:e,dataFormat:i,silent:!!a,config:n,successcallback:r},this,void 0,d,u)},setChartData:function(e,n,r,a,s){var l,c,h=this.options;null!=n&&"function"==typeof n.toString||(n=h.dataFormat,t.raiseWarning(this,"03091610","param","FusionCharts#setChartData","Invalid Data Format. Reverting to current data format - "+n)),n=n.toString().toLowerCase(),o.test(n)?this.setChartDataUrl(e,n,r,a,s):(h.dataSource=e,l=n,h.dataFormat=n,void 0===(c=i[l])?t.raiseError(t.core,"03091611","param","FusionCharts#setChartData",Error("Data Format not recognized")):((r=(n=(n=t.renderer&&t.renderer.getRenderer(h.renderer||t.renderer.currentRendererName()))&&n.dataFormat)===l?c.passthrough?c.passthrough(e,r):{data:e}:c.encode(e,this,r||h.dataConfiguration)||{}).native=n===l,r.format=r.native?n:"xml",r.dataFormat=l,r.dataSource=e,r.silent=!!s,"function"==typeof a&&(r.successcallback=a),t.raiseEvent("beforeDataUpdate",r,this,void 0,p,f)))},getChartData:function(e,o){var a,s=this.options,l=this.id;if(void 0!==e&&"function"==typeof e.toString&&void 0!==(a=i[e=e.toString().toLowerCase()]))return r[l][e]?s=r[l][e]:n[l]?(e===n[l].format?r[l][e]=n[l]:(r[l].xml||(r[l].xml="xml"===n[l].format?n[l]:i[n[l].format].encode(n[l].data,this,s.dataConfiguration)),r[l][e]||(r[l][e]=a.decode(r[l].xml.data,this,s.dataConfiguration))),s=r[l][e]):s={error:Error("Data not defined")},!0===Boolean(o)?s:s.data;t.raiseError(this,"25081543","param","::transcoder~getChartData()",Error('Unrecognized data-format specified in "format"'))},dataReady:function(t){return t?this.__state.dataAvailable:this.__state.dataReady}}),t.extend(t.core,{transcodeData:function(e,n,r,o,a){if(n&&"function"==typeof n.toString&&r&&"function"==typeof r.toString&&void 0!==i[r=r.toString().toLowerCase()]&&void 0!==i[n=n.toString().toLowerCase()])return e=i[n].encode(e,this,a),(n=i[r].decode(e.data,this,a,n)).error instanceof Error||(n.error=e.error),o?n:n.data;t.raiseError(this,"14090217","param",".transcodeData()",Error("Unrecognized data-format specified during transcoding."))}},!1),t.getRenderer&&!t.getRenderer("flash")||t.addEventListener("DataLoadRequested",(function(t){var e=t.sender;e.options&&"flash"===e.options.renderer&&e.options.useLegacyXMLTransport&&t.preventDefault()})),t.addEventListener("beforeInitialize",(function(e){var i=(e=e.sender).options,a=i.dataSource,s=t.renderer&&t.renderer.getRenderer(i.renderer),l={};if(delete n[e.id],r[e.id]={}
21,null!=a){if(e.__state.dataSetDuringConstruction=!0,"string"!=typeof i.dataFormat)switch(typeof a){case"function":a=i.dataSource=a.call(e,i.dataConfiguration),i.dataFormat="JSON";break;case"string":i.dataFormat=/^\s*?\{[\s\S]*\}\s*?$/g.test(e.options.dataFormat)?"JSON":"XML";break;case"object":i.dataFormat="JSON"}i.dataFormat&&i.dataFormat.toString&&(e.__state.dataFetchDuringConstruction=o.test(i.dataFormat.toString())),l.isHighPerformingChart=!!/zoomscatter/gi.test(i.chartType),e.setChartData(a,i.dataFormat,l,void 0,!0)}else s&&(e.__state.dataSetDuringConstruction=!1,t.raiseWarning(e,"1810131922A","param",":dataHandler~event:beforeInitialize","Data source was not defined during construction, hence set to blank renderer default - "+s.dataFormat),e.setChartData("",s.dataFormat,void 0,void 0,!0),e.__state.dataAvailable=!1)})),t.addEventListener("beforeDispose",(function(t){var e=t.sender;delete n[t.sender.id],delete r[t.sender.id],e&&e.__state&&e.__state.dhmXhrObj&&e.__state.dhmXhrObj.abort()})),t.addEventListener("disposed",(function(t){delete r[t.sender.id]})),t.addEventListener("loaded",(function(e){var i=(e=e.sender).__state.updatePending;e instanceof t.core&&void 0!==i&&(delete e.__state.updatePending,t.renderer.update(e,i))})),t.addEventListener("dataUpdated",(function(e,i){var n=e.sender,r=n.__state;r.rendering&&(r.dataFetchDuringConstruction||r.updatePending)&&(
21delete r.dataFetchDuringConstruction,delete r.updatePending,t.renderer.update(n,i))})),t.addEventListener(["dataLoadError","dataInvalid"],(function(t){t.sender.__state.dataAvailable=!1})),t.addEventListener("loaded",(function(e){var i,n,r,o=(e=e.sender).__state;if(r=function(e,i){return function(n){return!1===n?i.apply(this):this.ref.getUpdatedXMLData?t.core.transcodeData(this.ref.getUpdatedXMLData(),"xml",e):this.getData?this.getData(e):i.apply(this)}},e.chartType&&a[e.chartType()]&&a[e.chartType()][0]){for(i in t.transcoders)e[n="get"+(n=t.transcoders[i].name)+"Data"]=r(i,e.constructor.prototype[n]),e[n]._dynamicdatarouter=!0;o.dynamicDataRoutingEnabled=!0}else if(o.dynamicDataRoutingEnabled){for(i in t.transcoders)n="get"+(n=t.transcoders[i].name)+"Data",e.hasOwnProperty(n)&&e[n]._dynamicdatarouter&&delete e[n];o.dynamicDataRoutingEnabled=!1}}))}]),"object"!=typeof JSON&&(JSON={}),function(){function e(t){return 10>t?"0"+t:t}function q(t){return d.lastIndex=0,d.test(t)?'"'+t.replace(d,(function(t){var e=E[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function F(e,i){var n,r,o,s,l,h=a,d=i[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),"function"==typeof c&&(d=c.call(i,e,d)),typeof d){case"string":return q(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(a+=t,l=[],"[object Array]"===Object.prototype.toString.apply(d)){for(s=d.length,n=0;n<s;n+=1)l[n]=F(n,d)||"null";return o=0===l.length?"[]":a?"[\n"+a+l.join(",\n"+a)+"\n"+h+"]":"["+l.join(",")+"]",a=h,o}if(c&&"object"==typeof c)for(s=c.length,n=0;n<s;n+=1)"string"==typeof c[n]&&((o=F(r=c[n],d))&&l.push(q(r)+(a?": ":":")+o));else for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(o=F(r,d))&&l.push(q(r)+(a?": ":":")+o);return o=0===l.length?"{}":a?"{\n"+a+l.join(",\n"+a)+"\n"+h+"}":"{"+l.join(",")+"}",a=h,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var u=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a,t,E={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},c;"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,i,n){var r;if(t=a="","number"==typeof n)for(r=0;r<n;r+=1)t+=" ";else"string"==typeof n&&(t=n);if((c=i)&&"function"!=typeof i&&("object"!=typeof i||"number"!=typeof i.length))throw Error("JSON.stringify");return F("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(a,b){function c(t,e){var i,n,r=t[e];if(r&&"object"==typeof r)for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(void 0!==(n=c(r,i))?r[i]=n:delete r[i]);return b.call(t,e,r)}var d;if(a=String(a),u.lastIndex=0,u.test(a)&&(a=a.replace(u,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+a+")"),"function"==typeof b?c({"":d},""):d;throw new SyntaxError("JSON.parse")})}(),FusionCharts.register("module",["private","modules.data.json",function(){var t,e,i=this,n=i.window,r=n.document,o=i.xssEncode,a=function(t){var e,i;for(e in t)t.hasOwnProperty(e)&&(i=e.toLowerCase(),e!==i&&(t[i]=t[e],delete t[e]),"object"==typeof t[i]&&"data"!==i&&a(t[i]))};void 0===n.JSON&&i.raiseError(this,"1113062012","run","JSONDataHandler",Error("Could not find library support for JSON parsing.")),i.policies.options.allowIESafeXMLParsing=["_allowIESafeXMLParsing",!0],t=function(){var t,e,o,a={set:!0,trendlines:!0,vtrendlines:!0,line:{trendlines:!0,vtrendlines:!0},data:!0,dataset:!0,lineset:!0,categories:!0,category:!0,linkeddata:!0,application:!0,definition:!0,axis:!0,connectors:!0,connector:{connectors:!0},trendset:!0,row:{rows:!0},column:{columns:!0},label:{labels:!0},color:{colorrange:!0},dial:{dials:!0},pointer:{pointers:!0},point:{trendpoints:!0},process:{processes:!0},task:{tasks:!0},milestone:{milestones:!0},datacolumn:{datatable:!0},text:{datacolumn:!0},item:{legend:!0},alert:{alerts:!0},groups:{annotations:!0},items:{groups:!0,data:!0},shapes:!0,shape:{shapes:!0},entitydef:!0,entity:{entitydef:!0}},s={chart:"linkedchart",map:"linkedmap",set:"data",vline:{chart:"data",graph:"data",dataset:"data",categories:"category",linkedchart:"data"},apply:{application:"application"},style:{definition:"definition"},marker:{application:"application",definition:"definition",data:"items"},entity:{entitydef:"entitydef",data:"data"},shape:{shapes:"shapes"},connector:{connectors:{chart:"connector",linkedchart:"connector",map:"connectors",linkedmap:"connectors"}},annotationgroup:{annotations:"groups"},annotation:{groups:"items"}},l={vline:{vline:"true"}},c={chart:!0,map:!0,graph:!0},h={dataset:"data",categories:"category"},d={target:"target",value:"value"},u={styles:{definition:!0,application:!0}
21,chart:{value:!0,target:!0},graph:{value:!0,target:!0},linkedchart:{value:!0,target:!0},markers:{definition:!0,application:!0,shapes:!0,connectors:!0,data:!0},map:{entitydef:!0,data:!0},linkedmap:{entitydef:!0,data:!0}};return t={append:function(t,e,i,n){!a[i]||!0!==a[i]&&!0!==a[i][n]?e[i]=t:(e[i]instanceof Array||(e[i]=[]),e[i].push(t))},child:function(e,n,r,o){var a,p,f,g,m,v;for(a=0;a<n.length;a+=1)switch(f=n[a],p=f.nodeName.toLowerCase(),f.nodeType){case 1:if(g=t.attr(f.attributes),!0===(v=c[p])&&(m=g,(g={})[p]=m),"object"==typeof(v=l[p])&&i.extend(g,v),v=s[p])if("object"==typeof v&&"object"==typeof v[r]){for(m in m=void 0,v[r])if(o[m]){p=v[r][m];break}}else"object"==typeof v&&"string"==typeof v[r]?p=v[r]:"string"==typeof v&&(p=v);f.childNodes.length&&((v=u[r])&&v[p]?t.child(e,f.childNodes,p,o):t.child(g,f.childNodes,p,o)),(v=u[r])&&v[p]||t.append(g,e,p,r);break;case 3:(v=d[r])&&(p=v,g=f.data,t.append(g,e,p,r)),"string"==typeof(v=h[r])&&o.chart&&parseInt(o.chart.compactdatamode,10)&&(p=v,g=f.data,e[p]=e[p]?e[p]+g:g)}},attr:function(t){var e,i={};if(!t||!t.length)return i;for(e=0;e<t.length;e+=1)"xml"===o&&(t[e].value?t[e].value=t[e].value.replace(/</g,"&lt;").replace(/>/g,"&gt;"):t[e].nodeValue&&(t[e].nodeValue=t[e].nodeValue.replace(/</g,"&lt;").replace(/>/g,"&gt;"))),i[t[e].nodeName.toLowerCase()]=t[e].value||t[e].nodeValue;return i}},e=function(o){var a,s,l,c,h,d,u,p,f,g={};if("object"!=typeof o&&o&&"function"!=typeof o.toString)return e.errorObject=ne
21w TypeError("xml2json.parse()"),g;for(var m=/\s/,v=(o=(o=o.toString().replace(/<\!--[\s\S]*?--\x3e/g,"").replace(/<\?xml[\s\S]*?\?>/gi,"").replace(/&(?!([^;\n\r]+?;))/g,"&amp;$1")).replace(/^\s\s*/,"")).length;m.test(o.charAt(--v)););if(!(o=o.slice(0,v+1)))return g;try{if(n.DOMParser?a=(new n.DOMParser).parseFromString(o,"text/xml"):r.body&&i.core.options.allowIESafeXMLParsing?((s=r.createElement("xml")).innerHTML=o,r.body.appendChild(s),a=s.XMLDocument,r.body.removeChild(s)):((a=new n.ActiveXObject("Microsoft.XMLDOM")).async="false",a.loadXML(o)),!(a&&a.childNodes&&1===a.childNodes.length&&(l=a.childNodes[0])&&l.nodeName&&(c=l.nodeName.toLowerCase()))||"chart"!==c&&"map"!==c&&"graph"!==c)return e.errorObject=new TypeError("xml2json.parse()"),g;if("graph"===c){for(h=a.createElement("chart"),f=(u=l.attributes)&&u.length||0;f--;)h.setAttribute(u[f].name,u[f].value),u.removeNamedItem(u[f].name);for((f=(p=l.childNodes)&&p.length||0)&&(--f,d=l.removeChild(p[f]),h.appendChild(d));f--;)d=l.removeChild(p[f]),h.insertBefore(d,h.firstChild);a.replaceChild(h,l),l=h}}catch(t){e.errorObject=t}return l?(l.attributes&&(g[c]=t.attr(l.attributes)),l.childNodes&&t.child(g,l.childNodes,c,g),delete e.errorObject):e.errorObject=ne
21w TypeError("xml2json.parse()"),g},function(t){return delete e.errorObject,o=arguments[arguments.length-1],{data:e(t),error:e.errorObject}}}(),e=function(){var t,e;return t={items:{explode:{data:"set",groups:{annotations:"annotationgroup"},items:{groups:"annotation"}},text:{chart:{target:"target",value:"value"},graph:{target:"target",value:"value"}},dsv:{dataset:{data:"dataset"},categories:{category:"categories"}},attr:{chart:{chart:"chart"},graph:{graph:"graph"},map:{map:"map"},linkedmap:{map:"map"},linkedchart:{chart:"chart"}},group:{styles:{definition:"style",application:"apply"},map:{data:"entity",entitydef:"entity"},markers:{definition:"marker",application:"marker",shapes:"shape",connectors:"connector",items:"marker"}},tag:{markers:{items:"data"}}},qualify:function(t,e,i){return"object"==typeof this.items[t][i]?this.items[t][i][e]:this.items[t][i]}},e=function(i,n,r,a){var s,l,c,h="",d="",u="",p="";if(n&&"function"==typeof n.toLowerCase&&(n=n.toLowerCase()),void 0===r&&i[n])for(s in i[n])"compactdatamode"===(l=s.toLowerCase())&&(a.applyDSV=1==i[n][s]);if(i instanceof Array)for(s=0;s<i.length;s+=1)u="string"==typeof i[s]?u+o(i[s]):u+e(i[s],n,r,a);else{for(s in i)l=s.toLowerCase(),i[s]instanceof Array&&(c=t.qualify("group",l,n))?d+="<"+(u=t.qualify("tag",l,n)||l)+">"+e(i[s],c,n,a)+"</"+u+">":"object"==typeof i[s]?(c=t.qualify("attr",l,n))?(p=e(i[s],c,n,a).replace(/\s*\/\>/gi,""),n=l):d+=e(i[s],l,n,a):a.applyDSV&&(c=t.qualify("dsv",l,n))?d+=i[s]:(c=t.qualify("text",l,n))?d+="<"+(u=t.qualify("tag",l,n)||c)+">"+i[s]+"</"+u+">":"vline"===l&&Boolean(i[s])?n="vline":h+=" "+l+'="'+o(i[s]).toString().replace(/\"/gi,"&quot;")+'"';(c=t.qualify("explode",r,n))&&(n=c),u=n,u=(""!==p?p:"<"+u)+h+(""!==d?">"+d+"</"+u+">":" />")}return u},function(t){if(delete e.errorObject,t&&"string"==typeof t)try{t=JSON.parse(t)}catch(t){e.errorObject=t}return{data:e(t,t&&t.graph?"graph":t&&t.map?"map":"chart",void 0,{}),error:e.errorObject}}}(),i.addDataHandler("JSON",{encode:e,decode:t,passthrough:function(t,e){var i={data:{}};if(!t)return i;if("string"!=typeof t)try{t=JSON.stringify(t)}catch(t){return i.error=t,i}try{e&&e.isHighPerformingChart?(i.data=JSON.parse(t),a(i.data)):i.data=JSON.parse(t.replace(/"([^"]+)"[\s]*:/g,(function(t,e){return'"'+e.toLowerCase()+'":'})))}catch(t){console.log(t),i.error=t}return i},transportable:!0})}]),FusionCharts.register("module",["private","modules.data.xml",function(){var t=function(t){return{data:t,error:void 0}};this.addDataHandler("XML",{encode:t,decode:t,transportable:!0})}]),FusionCharts.register("module",["private","modules.data.csv",function(){var t,e=this,i=e.window,n=e.core,r=i.parseInt,o=i.parseFloat,a=function(t){return t};t=function(t){this.data=[],this.columnCount=this.rowCount=0,this.configure(t)},t.decodeLiterals=function(t,e){return null!=t&&t.toString?t.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'"):e},t.prototype.set=function(t,e,i){var n;if(this.rowCount<=t){for(n=this.rowCount;n<=t;n+=1)this.data[n]=[];this.rowCount=t+1}this.columnCount<=e&&(this.columnCount=e+1),this.data[t][e]=i},t.prototype.setRow=function(t,e){var i;if(this.rowCount<=t){for(i=this.rowCount;i<=t;i+=1)this.data[i]=[];this.rowCount=t+1}this.columnCount<e.length&&(this.columnCount=e.length),this.data[t]=e},t.prototype.get=function(t,e){var i=this.data;return i[t]&&i[t][e]},t.prototype.configure=function(e){var i=t.decodeLiterals;this.delimiter=i(e.delimiter,","),this.qualifier=i(e.qualifier,'"'),this.eolCharacter=i(e.eolCharacter,"\r\n"),this.numberFormatted=!!r(e.numberFormatted,0)},t.prototype.clear=function(){this.data=[],this.columnCount=this.rowCount=0},t.prototype.toString=function(){var t,e,i="";for(t=0;t<this.rowCount;t+=1)i+='""'===(e=this.qualifier+this.data[t].join(this.qualifier+this.delimiter+this.qualifier)+this.qualifier)?this.eolCharacter:e+this.eolCharacter;return 0<this.rowCount&&(i=i.slice(0,i.length-2)),i},e.addDataHandler("CSV",{encode:function(t,i){throw e.raiseError(i,"0604111215","run","::CSVDataHandler.encode()","FusionCharts CSV data-handler only supports encoding of data."),Error("FeatureNotSupportedException()")},decode:function(e,i){var r,s,l,c,h,d,u,p=n.transcodeData(e,"xml","json")||{},f=i.jsVars,g=p.chart||p.map||p.graph||{};u=Boolean(g.exporterrorcolumns||0);var m=p.categories&&p.categories[0]&&p.categories[0].category||[],v=p.map&&!p.chart||f&&f.instanceAPI&&"geo"===f.instanceAPI.defaultSeriesType,b=!1,y=!1,x=!1,w=!1;s=!1;var _,C,S,k,A,T,L,D,E,P,I,M=a,O={};if(h=0,r=new t({separator:g.exportdataseparator,qualifier:g.exportdataqualifier,numberFormatted:g.exportdataformattedval}),n.formatNumber&&r.numberFormatted&&(M=function(t){return n.formatNumber(t,g)}),v)for(P in O.geo=!0,m=f.hcObj&&f.hcObj.entities&&f.hcObj.entities.items||[],r.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]),f=0,m)I=(y=m[P]).eJSON,s=y.value,r.setRow(++f,[P,I.shortLabel,I.label,void 0===s?"":s,y.formattedValue]);else if(void 0!==(_=p.dials&&p.dials.dial||p.pointers&&p.pointers.pointer||p.value))if(O.gauge=!0,"string"==typeof _)r.set(0,0,M(_)),O.singlevalue=!0,"string"==typeof p.target&&(r.set(0,1,M(p.target)),O.bullet=!0);else for(r.setRow(0,["Id","Value"]),O.multivalue=!0,f=0,d=1,h=_.length;f<h;f+=1,d+=1)r.setRow(d,[d,M(_[f].value)]);else if(_=p.dataset||!(p.data instanceof Array)&&[]){if(O.multiseries=!0,l=1,(C=p.lineset)&&(_=_.concat(C),O.lineset=!0),(S=p.axis)&&(_=_.concat(S),O.multiaxis=!0),T=_.length,A=m.length,!(T=_.length)){for(f=0;f<A;f+=1)L=m[f],r.set(f+1,0,L.label||L.name);O.multilevel=!0}for(f=0;f<T;f+=1)for((D=_)[f].dataset?(c=0,k=(D=D[f].dataset).length):(D=_,k=(c=f)+1);c<k&&!b&&!x;c+=1,l+=1){for(v=D[c],r.set(0,l,v.seriesname),"string"==typeof v.data&&(O.compactdata=!0,v.data=v.data.split(g.dataseparator||"|")),d=h=0,E=v.data&&v.data.length||0;h<E||h<A;h+=1){if(L=m[h],s=d+1,void 0!==(P=v.data&&v.data[d]||{}).x&&void 0!==P.y){b=O.xy=!0;break}if(void 0!==P.open||void 0!==P.high||void 0!==P.close||void 0!==P.low){w=O.ohlc=!0;break}if(void 0!==P.rowid&&void 0!==P.columnid){x=O.heatmap=!0;break}h<A&&!L.vline&&(r.set(s,0,L.label||L.name),L=o(P?P.value:""),L=isNaN(L)?"":M(L),r.set(s,l,L),(y||u||P.errorvalue)&&(y||r.set(0,l+1,"Error"),I=1,r.set(s,l+1,M(P.errorvalue))),d+=1)}
21I&&(l+=I,I=0)}C&&(_=_.slice(0,-C.length)),S&&(_=_.slice(0,-S.length))}else if(_=p.data){for(r.set(0,1,g.yaxisname||"Value"),O.singleseries=!0,s="1"==g.showsumatend,f=0,A=_.length;f<A;f+=1)(P=_[f]).vline||(L=o(P.value?P.value:""),r.setRow(f+1,[P.label||P.name,isNaN(L)?"":(h+=L,M(L))]));s&&(O.summation=!0,r.setRow(f+1,[g.sumlabel||"Total",M(h)]))}if(w)for(r.clear(),r.setRow(0,["Open","Close","High","Low"]),f=0,s=1,k=(_=p.dataset).length;f<k;f+=1)for(h=0,T=(v=_[f]&&_[f].data||[]).length;h<T;h+=1,s+=1)P=v[h]||{},r.setRow(h+1,[M(P.open),M(P.close),M(P.high),M(P.low)]);else if(b)for(r.clear(),y=!1,I=0,r.setRow(0,["Series","x","y"]),f=0,s=1,k=(_=p.dataset).length;f<k;f+=1)for(h=0,T=(v=_[f]&&_[f].data||[]).length;h<T;h+=1,s+=1)P=v[h]||{},L=[_[f].seriesname,M(P.x),M(P.y)],void 0!==P.z&&(L.push(M(P.z)),I||(r.set(0,3,"z"),I=1)),(y||u||void 0!==P.errorvalue||void 0!==P.horizontalerrorvalue||void 0!==P.verticalerrorvalue)&&(p=M(P.errorvalue),L.push(P.errorvalue,void 0===P.horizontalerrorvalue?p:M(P.horizontalerrorvalue),void 0===P.verticalerrorvalue?p:M(P.verticalerrorvalue)),y||(r.set(0,I+3,"Error"),r.set(0,I+4,"Horizontal Error"),r.set(0,I+5,"Vertical Error")),y=O.error=!0),r.setRow(s,L);else if(x){for(r.clear(),b={},x={},f=0,h=1,u=(m=p.rows&&p.rows.row||[]).length;f<u;f+=1,h+=1)(L=m[f]).id&&(b[L.id.toLowerCase()]=h,r.set(h,0,L.label||L.id));for(f=0,h=1,u=(m=p.columns&&p.columns.column||[]).length;f<u;f+=1,h+=1)(L=m[f]).id&&(x[L.id.toLowerCase()]=h,r.set(0,h,L.label||L.id));for(f=0,u=(v=p.dataset&&p.dataset[0]&&p.dataset[0].data||[]).length;f<u;f+=1)s=(P=v[f]).rowid.toLowerCase(),l=P.columnid.toLowerCase(),b[s]||(b[s]=r.rowCount,r.set(r.rowCount,0,P.rowid)),x[l]||(x[l]=r.columnCount,r.set(0,r.columnCount,P.columnid)),r.set(b[s],x[l],M(P.value))}return _=m=C=S=null,0<r.rowCount&&void 0===r.get(0,0)&&r.set(0,0,g.xaxisname||"Label"),{data:r.toString(),error:void 0,predictedFormat:O}},transportable:!1}),n.addEventListener("Loaded",(function(t){"javascript"!==(t=t.sender).options.renderer||t.getDataAsCSV||(t.getDataAsCSV=t.ref.getDataAsCSV=t.getCSVData)}))}]),FusionCharts.register("module",["private","modules.renderer.js",function(){var t=this,e=t.window,i=e.document,n=t.core.options,r=/msie/i.test(e.navigator.userAgent)&&!e.opera,o=Boolean(e.SVGAngle||i.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),a=function(){},s=t.hcLib={cmdQueue:[]},l=s.moduleCmdQueue={base:[],charts:[],powercharts:[],widgets:[],maps:[]},c=s.moduleDependencies={},h=s.moduleMeta={base:"fusioncharts.js",charts:"fusioncharts.charts.js",powercharts:"fusioncharts.powercharts.js",widgets:"fusioncharts.widgets.js",maps:"fusioncharts.maps.js"},d={},u=s.getMetaSentence=function(){var t={};return function(e){return e=e&&e.replace(/(^\s*)|(\s*$)/g,"")||"",t[e]||(t[e]={key:e,subject:e.replace(/[^\/]*?$/gi,""),predicate:e.replace(/^.*\//gi,"")})}}(),p=s.getDependentModuleName=function(t){var e,i,n=[];for(e in t=u(t).predicate,c)void 0!==(i=c[e][t])&&(n[i]=e);return n},f=s.hasModule=function(e){var i,n;if(e instanceof Array){for(i=0,n=e.length;i<n;i+=1)if(!Boolean(t.modules["modules.renderer.js-"+u(e[i]).predicate]))return!1;return!0}return Boolean(t.modules["modules.renderer.js-"+u(e).predicate])},g=s.loadModule=function(e,i,n,r){e instanceof Array||(e=[e]);var o,a=e.length,s=0;o=function(){if(s>=a)i&&i();else{var l=e[s],c=l&&l.match(/[^\/]*$/i)[0],u=h[l];if(s+=1,l){if(f(c))return void o();if(d[c])return t.raiseError(r||t.core,"1112201445A","run","JavaScriptRenderer~loadModule() ","required resources are absent or blocked from loading."),void(n&&n(c))}else n&&n(c);l=t.core.options["html5"+t.capitalizeString(c)+"Src"],t.loadScript(void 0===l?u:l,{success:function(){f(c)?o():n&&n(c)},failure:n&&function(){n(c)}},void 0,!0)}},o()},m=s.executeWaitingCommands=function(t){for(var e;e=t.shift();)"object"==typeof e&&a[e.cmd].apply(e.obj,e.args)},v=function(t){delete t.sender.jsVars._reflowData,t.sender.jsVars._reflowData={},delete t.sender.jsVars._reflowClean},b=function(){var t=function(){};return t.prototype={LoadDataErrorText:"Error in loading data.",XMLLoadingText:"Retrieving data. Please wait",InvalidXMLText:"Invalid data.",ChartNoDataText:"No data to display.",ReadingDataText:"Reading data. Please wait",ChartNotSupported:"Chart type not supported.",PBarLoadingText:"",LoadingText:"Loading chart. Please wait",RenderChartErrorText:"Unable to render chart."},t.prototype.constructor=t}
21(),y=s.getContainerBackgroundColor=function(t){var e=t.options.containerBackgroundColor,i=t.options.containerBackgroundOpacity,n=t.jsVars.transparent;return null!=n?i=t.jsVars.transparent?0:1:0>(i=parseFloat(i))?i=0:1<i&&(i=1),e||(e="#ffffff"),r&&!o?i?e:"transparent":(e=e.replace(/^#?([a-f0-9]+)/gi,"$1"),(e=s.graphics.HEXtoRGB(e))[3]=i.toString(),"rgba("+e.join(",")+")")};s.injectModuleDependency=function(t,e,i){var r=!1,o=u(t).subject;return t=u(t).predicate,e=void 0===e?t:u(e).predicate,c[t]||(c[t]={},l[t]||(l[t]=[],s.moduleMeta[t]=o+n.html5ScriptNamePrefix+(e&&e.replace&&e.replace(/^[\s\S]*\//gi,"").replace(/\?/g,"%3F").replace(/\#/g,"%23").replace(/\:/g,"%3A")||"")+n.html5ScriptNameSuffix),r=!0),c[t][e]=i||0,r},s.needsModule=function(t,e){return t=u(t).predicate,e=u(e).predicate,void 0!==(s.moduleDependencies[t]&&s.moduleDependencies[t][e])},s.cleanupWaitingCommands=function(t){for(var e,i,n=t.chartType(),r=(n=p(n),[]);e=n.shift();){for(e=l[e]||[];i=e.shift();)"object"==typeof i&&i.obj!==t&&r.push(i);e.concat(r),r=[]}},t.extend(t.core.options,{html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts."}),t.extend(a,{dataFormat:"json",ready:!1,policies:{jsVars:{},options:{showChartLoadingMessage:["showChartLoadingMessage",!0]}},init:function(){f("base")?a.ready=!0:g("base",(function(){a.ready=!0,m(s.cmdQueue)}),void 0,t.core)},render:function(t){var e=t,i=this.jsVars.msgStore;e&&this.options.showChartLoadingMessage&&(e.innerHTML='<small style="display: inline-block; *zoom:1; *display:inline; width: 100%; font-family: Verdana,sans; font-size: 10px; color: #666666; text-align: center; padding-top: '+(parseInt(e.style.height,10)/2-5)+'px">'+(i.PBarLoadingText||i.LoadingText)+"</small>",e.style.backgroundColor=y(this)),s.cmdQueue.push({cmd:"render",obj:this,args:arguments})},update:function(){s.cmdQueue.push({cmd:"update",obj:this,args:arguments})},resize:function(){s.cmdQueue.push({cmd:"resize",obj:this,args:arguments})},dispose:function(){var t,e,i=s.cmdQueue;for(t=0,e=i.length;t<e;t+=1)i[t].obj===this&&(i.splice(t,1),--e,--t)},load:function(){s.cmdQueue.push({cmd:"load",obj:this,args:arguments})},config:function(t,e){var i,n,r=(o=this.jsVars).msgStore,o=o.cfgStore,a=this.options;for(i in n={LoadingText:"loadMessage",ChartNotSupported:"typeNotSupportedMessage",RenderChartErrorText:"renderErrorMessage",XMLLoadingText:"dataLoadStartMessage",ChartNoDataText:"dataEmptyMessage",LoadDataErrorText:"dataLoadErrorMessage",InvalidXMLText:"dataInvalidMessage"},"string"==typeof t&&1<arguments.length&&(i=t,(t={})[i]=e),t)void 0!==r[i]?r[i]=t[i]:o[i.toLowerCase()]=t[i],n[i]?a[n[i]]=t[i]:a[i]=t[i]},protectedMethods:{},events:{beforeInitialize:function(t){var e,n=t.sender;(t=n.jsVars).fcObj=n,t.msgStore=t.msgStore||new b,t.cfgStore=t.cfgStore||{},t.previousDrawCount=-1,t.drawCount=0,t._reflowData={},n.addEventListener("beforeRender",(function(t){t.sender.jsVars.smartLabel=new s.SmartLabelManager(n.id,i.body||i.getElementsByTagName("body")[0]),t.detachHandler()})),t.userModules instanceof Array||(e=t.userModules,t.userModules=[],"string"==typeof e&&(t.userModules=t.userModules.concat(e.split(",")))),s.chartAPI&&s.chartAPI[void 0]||(t.needsLoaderCall=!0)},initialized:function(t){var e=(t=t.sender).jsVars;e.needsLoaderCall&&(delete e.needsLoaderCall,a.load.call(t))},beforeDataUpdate:v,beforeDispose:function(t){var e=t.sender.jsVars;e.smartLabel&&!e.smartLabel.disposed&&e.smartLabel.dispose(),v.apply(this,arguments)},beforeRender:function(t){var e=t.sender.jsVars;delete e.drLoadAttempted,delete e.waitingModule,delete e.waitingModuleError,v.apply(this,arguments)},dataLoadRequested:function(t){var e=(t=t.sender).jsVars;delete e.loadError,t.ref&&t.options.showDataLoadingMessage?e.hcObj&&!e.hasNativeMessage&&e.hcObj.showLoading?e.hcObj.showMessage(e.msgStore.XMLLoadingText):t.ref.showChartMessage?t.ref.showChartMessage("XMLLoadingText"):e.stallLoad=!0:e.stallLoad=!0},dataLoadRequestCompleted:function(t){delete t.sender.jsVars.stallLoad},dataLoadError:function(t){var e=t.sender,i=e.jsVars;delete i.stallLoad,i.loadError=!0,e.ref&&"function"==typeof e.ref.showChartMessage&&e.ref.showChartMessage("LoadDataErrorText"),e.__state.dataFetchDuringConstruction&&delete e.__state.dataFetchDuringConstruction,v.apply(this,arguments)}},_call:function(t,i,n){t.apply(n||e,i||[])}}),t.extend(a.prototype,{getSWFHTML:function(){t.raiseWarning(this,"1109061138
211","run","JavaScriptRenderer~getSWFHTML()","getSWFHTML() is not supported for JavaScript charts.")},addVariable:function(){t.raiseWarning(this,"11090611381","run","JavaScriptRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".'),t.core.prototype.configure.apply(this,arguments)},getXML:function(){return t.raiseWarning(this,"11171116291","run","JavaScriptRenderer~getXML()",'Use of deprecated "getXML()". Replace with "getXMLData()".'),this.getXMLData.apply(this,arguments)},setDataXML:function(){return t.raiseWarning(this,"11171116292","run","JavaScriptRenderer~setDataXML()",'Use of deprecated "setDataXML()". Replace with "setXMLData()".'),this.setXMLData.apply(this,arguments)},setDataURL:function(){return t.raiseWarning(this,"11171116293","run","JavaScriptRenderer~setDataURL()",'Use of deprecated "SetDataURL()". Replace with "setXMLUrl()".'),this.setXMLUrl.apply(this,arguments)},hasRendered:function(){return!(!this.jsVars.hcObj||!this.jsVars.hcObj.hasRendered)},setTransparent:function(t){var e;(e=this.jsVars)&&("boolean"!=typeof t&&null!==t&&(t=!0),e.transparent=null!==t&&!0===t)}}),t.extend(t.core,{_fallbackJSChartWhenNoFlash:function(){e.swfobject.hasFlashPlayerVersion(t.core.options.requiredFlashPlayerVersion)||t.renderer.setDefault("javascript")},_enableJSChartsForSelectedBrowsers:function(i){null!=i&&t.renderer.setDefault(new RegExp(i).test(e.navigator.userAgent)?"javascript":"flash")},_doNotLoadExternalScript:function(t){var e,i;for(e in t)i=e.toLowerCase(),h[i]&&(d[i]=Boolean(t[e]))},_preloadJSChartModule:function(){throw"NotImplemented()"}}),t.renderer.register("javascript",a),o||r?t.renderer.setDefault("javascript"):e.swfobject&&e.swfobject.hasFlashPlayerVersion&&!e.swfobject.hasFlashPlayerVersion(t.core.options.requiredFlashPlayerVersion)&&(t.raiseWarning(t.core,"1204111846","run","JSRenderer","Switched to JavaScript as default rendering due to absence of required Flash Player."),t.renderer.setDefault("javascript"))}]),FusionCharts.register("module",["private","modules.renderer.js-lib",function(){var e=this,q=e.window,F=q.document,u=q.navigator,d=Boolean(q.SVGAngle||F.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),a=/msie/i.test(u.userAgent)&&!q.opera,t=q.parseFloat,E=/\s+/g,c=/^#?/,l=/^rgba/i,b=/[#\s]/gi,r=/\{br\}/gi,V=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,p=Math.abs,g=Math.pow,k=Math.round,m=g(2,-24),J=Object.prototype.toString,T="ontouchstart"in F,u=T&&!(u.maxTouchPoints||u.msMaxTouchPoints),S="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+q.escape(e.core.version),v=!/fusioncharts\.com$/i.test(q.location.hostname),aa=Math,L=aa.max,fa=aa.min,G=q.Image,H={pageX:0,pageY:0},D="createTouch"in F,R=D&&!(q.navigator.maxTouchPoints||q.navigator.msMaxTouchPoints),W=e.hcLib||(e.hcLib={}),O=function(t){var e=t.data,i=e.chart,n=i.paper,r=t.state,o=ca(A(t.originalEvent)),a=o.target||o.originalTarget||o.srcElement||o.relatedTarget||o.fromElement,s=i.elements.resizeBox,l=e.layerX=o.pageX-e.chartPosLeft,c=e.layerY=o.pageY-e.chartPosTop,h=l-e.ox,d=c-e.oy,u=e.bBox,f=e.ox,g=e.oy,m=e.zoomX,v=e.zoomY,b=(u=e.canvasY,e.canvasX),y=e.canvasW,x=e.canvasH,w=e.canvasX2,_=e.canvasY2,C=e.strokeWidth;h=e.attr;switch(r){case"start":t=ka(this),e.chartPosLeft=t.left,e.chartPosTop=t.top,l=o.pageX-e.chartPosLeft,c=o.pageY-e.chartPosTop,e.oy=c,e.ox=l,e.allowMove=!1,s||(s=i.elements.resizeBox=n.rect(i.layers.tracker).attr(h)),l>b&&l<w&&c>u&&c<_&&(e.allowMove=!0),a&&a.ishot&&(e.allowMove=!1),s.attr({x:0,y:0,width:0,height:0}).show();break;case"end":i={chart:i,selectionLeft:(u=s.getBBox()).x,selectionTop:u.y,selectionHeight:u.height,selectionWidth:u.width,originalEvent:t.originalEvent},e.isDragged&&(e.selectionEnd&&e.selectionEnd(i),e.isDragged=0),s.hide(),delete e.oy,delete e.ox;break;default:if(!e.allowMove)break;h=l-e.ox,d=c-e.oy,f=e.ox,g=e.oy,e.isDragged||(i={chart:i,selectionLeft:(m?fa(f,f+h):b)+.5*C,selectionTop:(v?fa(g,g+d):u)+.5*C,selectionHeight:0,selectionWidth:0,originalEvent:t.originalEvent},e.selectionStart&&e.selectionStart(i),e.isDragged=1),h=-(f-fa(f-(f-L(f+h,b)),w)),d=-(g-fa(g-(g-L(g+d,u)),_)),s.attr({x:(m?fa(f,f+h):b)+.5*C,y:(v?fa(g,g+d):u)+.5*C,width:m?p(h):y,height:v?p(d):x})}},ha=function(t){var e=t.data,i=(t=t.originalEvent).target||t.originalTarget||t.srcElement||t.relatedTarget||t.fromElement,n=t.type,r=t.layerX,o=t.layerY;void 0===r&&(r=t.pageX-e.chartPosLeft,o=t.pageY-e.chartPosTop),"mousedown"===n&&(i.ishot=r>e.canvasX&&r<e.canvasX2&&o>e.canvasY&&o<e.canvasY2),"mouseup"===n&&setTimeout((function(){i.ishot=!1}),1)},aa=function(){var t="innerWidth",e="innerHeight",i=F.documentElement||F.body,n=i;return"innerWidth"in q?n=q:(t="clientWidth",e="clientHeight"),function(){return{width:n[t],height:n[e],scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}}}(),ka=function(t,e){var i={
22left:t.offsetLeft||0,top:t.offsetTop||0};for(t=t.offsetParent;t;)i.left+=t.offsetLeft||0,i.top+=t.offsetTop||0,t===F.body||t===F.documentElement||e||(i.left-=t.scrollLeft,i.top-=t.scrollTop),t=t.offsetParent;return i},ga=function(t){return t&&t.replace(/\$/g,"$$$$")},ba=function(t,e){return t||!1===t||0===t?t:e},ja=function(){var t,e,i;for(e=0,i=arguments.length;e<i;e+=1)if((t=arguments[e])||!1===t||0===t)return t;return""},ma=function(){var t,e,i;for(e=0,i=arguments.length;e<i;e+=1)if((t=arguments[e])||!1===t||0===t)return t}
22,da=function(t,e,i,n){return W.dem.listen(t,e,i,n)},na=function(t,e,i){return W.dem.unlisten(t,e,i)},A=function(t){return t=t.sourceEvent||t.originalEvent||t,T&&t&&t.touches&&t.touches[0]||t||H},ca=function(){var t;return function(e){return void 0===e.pageX&&(e.pageX=e.clientX+(t||(t=q.document.body||q.document.documentElement)).scrollLeft,e.pageY=e.clientY+t.scrollTop),e}}(),Ia=function(t,e){var i=(e=ca(A(e))).pageX,n=e.pageY,r=ka(t);return{chartX:i-r.left,chartY:n-r.top,pageX:i,pageY:n}},Ba=function(t,e,i){for(var n in t=F.createElement(t),e)t.setAttribute(n,e[n]);return i&&i.appendChild&&i.appendChild(t),t},va=function(t){return t&&t.replace(/^#?([a-f0-9]+)/gi,"#$1")||"none"},Y=function(){var t,e,i;for(e=0,i=arguments.length;e<i;e+=1)if(((t=arguments[e])||!1===t||0===t)&&!isNaN(t=Number(t)))return t},Da=function(t,e){return t=t||!1===t||0===t?Number(t):NaN,isNaN(t)?null:e?p(t):t},sa=function(t){return"string"==typeof t?t.replace(r,"<br />"):""},wa=function(t,e){for(var i=e.length,n=-1;i--;)if(t===e[i]){n=i;break}return n},ob=function(){if(Array.isArray)return Array.isArray;var t=Object.prototype.toString,e=t.call([]);return function(i){return t.call(i)===e}}(),ia=function(t,e,i,n,r){var o,a,s,l;if(r?(n.push(t),r.push(e)):(n=[t],r=[e]),e instanceof Array)for(o=0;o<e.length;o+=1){try{a=t[o],s=e[o]}catch(t){continue}"object"!=typeof s?i&&void 0===s||(t[o]=s):(null!==a&&"object"==typeof a||(a=t[o]=s instanceof Array?[]:{}),-1!==(l=wa(s,r))?a=t[o]=n[l]:ia(a,s,i,n,r))}else for(o in e){try{a=t[o],s=e[o]}catch(t){continue}null!==s&&"object"==typeof s?"[object Object]"===(l=J.call(s))?(null!==a&&"object"==typeof a||(a=t[o]={}),-1!==(l=wa(s,r))?a=t[o]=n[l]:ia(a,s,i,n,r)):"[object Array]"===l?(null!==a&&a instanceof Array||(a=t[o]=[]),-1!==(l=wa(s,r))?a=t[o]=n[l]:ia(a,s,i,n,r)):t[o]=s:t[o]=s}return t},bb=function(t,e,i){return"object"!=typeof t&&"object"!=typeof e?null:("object"!=typeof e||null===e||("object"!=typeof t&&(t=e instanceof Array?[]:{}),ia(t,e,i)),t)},ua=function(t,e){var i;if(e instanceof Array)for(i=e.length-1;0<=i;--i)"object"!=typeof e[i]?!0===e[i]&&t&&t.splice&&t.splice(i,1):J.call(e[i])===J.call(t[i])&&ua(t[i],e[i]);else for(i in e)"object"!=typeof e[i]?!0===e[i]&&t&&t.splice&&t.splice(i,1):J.call(e[i])===J.call(t[i])&&ua(t[i],e[i]);return t},la=function(){var t=/^@window_/g;return function(e,i){var n,r,o,a,s,l=e.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,"").replace(/\[/g,".@window_").replace(/\]/g,"").split("."),c=q;for(r="",a=l.length,s=0;s<a;s+=1){if(n=c,(o=l[s]).match(t))c=c[r=q[o.replace(t,"")]];else{if(null==c)throw(r||o).replace(t,"")+" is not defined";c=c[o]}r=o}!c||"function"!=typeof c.call&&c!==q.alert?setTimeout((function(){throw o.replace(t,"")+"() is not a function"}),0):c===q.alert?c(i):c.call(n,i)}}(),pb=function(){var a="FusionChartslinkEval"+parseInt(+new Date,10);return function(b){try{q[a]=new Function(b),eval('window["'+a+'"]();')}catch(t){setTimeout((function(){throw t}),0)}d?delete q[a]:q[a]=null}}(),nb=function(t,e){return t=Number(t),t=isNaN(t)?100:t,void 0!==e&&(t=t*e/100),t%101},qb=function(t,e,i){var n;for(t=t.split(","),void 0!==i&&(i=Y(i.split(",")[0])),t[0]=nb(t[0],i),n=1;n<e;n+=1)t[n]=t[0]*nb(t[n],i)/100;return t.join(",")},Ga=function(t,e,i){var n=0,r=0,o=0;if(i&&i.match(l)&&(n=(i=i.split(","))[0].slice(i[0].indexOf("(")+1),r=i[1],o=i[2],e||0===e||(e=parseInt(100*i[3].slice(0,i[3].indexOf(")")),10))),t)if(t.match(l))n=(i=t.split(","))[0].slice(i[0].indexOf("(")+1),r=i[1],o=i[2];else{switch((t=t.replace(b,"").split(",")[0]).length){case 3:t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2);break;case 6:break;default:t=(t+"FFFFFF").slice(0,6)}n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16)}return e||0===e||(e=100),"string"==typeof e&&(e=e.split(",")[0]),"rgba("+n+","+r+","+o+","+(e=parseInt(e,10)/100)+")"},fb=function(){var e={};return function(i){var n,r,o,a,s=(i=i||this)&&i.FCcolor||i,l=s.color,c=s.ratio,h=s.angle,d=s.alpha,u=s.r,p=s.cx,f=s.cy,g=s.fx,m=s.fy,v=s.gradientUnits,b=s.x1,y=s.y1,x=s.x2,w=s.y2,_=1;
22if("string"==typeof i)return e[a="~"+i]||(e[a]=i.replace(/^#?([a-f0-9]{3,6})/gi,"#$1"));if(!(l=l||""))return n;if(a=[l,d,c,h,u,p,f,v,g,m,b,x,y,w].join("_").replace(/[\(\)\s,\xb0#]/g,"_"),e[a])return e[a];if(c=c&&(c+"").split(",")||[],d=(d||0===d)&&(d+"").split(",")||[],l=l.split(","))if(n="",1===l.length)o=l[0].replace(/^#?([a-f0-9]{3,6})/gi,"$1"),n=d.length?"rgba("+Cb(o).join(",")+","+.01*t(d[0])+")":o.replace(/^#?([a-f0-9]{3,6})/gi,"#$1");else{for(i=0,r=l.length;i<r;i++)o=l[i].replace(/^#?([a-f0-9]{3,6})/gi,"$1"),isNaN(c[i])||(c[i]=t(c[i]),o+=":"+c[i],isNaN(c[i+1])||(c[i+1]=t(c[i+1])+c[i])),isNaN(d[i])||""===d[i]||(_=.01*d[i]),l[i]="rgba("+Cb(o).join(",")+","+_+")",isNaN(c[i])||(l[i]=l[i]+":"+c[i]);n+=l.join("-"),void 0!==u||void 0!==g||void 0!==p||s.radialGradient?n="xr("+[g,m,u,p,f,v].join()+")"+n:(n="-"+n,void 0===b&&void 0===y&&void 0===x&&void 0===w||(n="("+[b,y,x,w,v].join()+")"+n),void 0===h&&(h=0),n=360-t(h)%360+n)}return e[a]=n}}(),Ca=function(){return""},mb=function(t){return t.replace(b,"").replace(c,"#")},jb=function(t,e){e=(0>e||100<e?100:e)/100,t=t.replace(b,"");var i=parseInt(t,16),n=Math.floor(i/65536),r=Math.floor((i-65536*n)/256);return("000000"+(n*e<<16|r*e<<8|(i-65536*n-256*r)*e).toString(16)).slice(-6)},oa=function(t,e){e=(0>e||100<e?100:e)/100,t=t.replace(b,"");var i=parseInt(t,16),n=Math.floor(i/65536),r=Math.floor((i-65536*n)/256);return("000000"+(256-(256-n)*e<<16|256-(256-r)*e<<8|256-(256-(i-65536*n-256*r))*e).toString(16)).slice(-6)},Cb=function(t){t=parseInt(t,16);var e=Math.floor(t/65536),i=Math.floor((t-65536*e)/256);return[e,i,Math.floor(t-65536*e-256*i)]},Oa=function(t,e){return"object"!=typeof t?"":((t.fontSize||t["font-size"])&&(!t.fontSize&&t["font-size"]&&(t.fontSize=t["font-size"],delete t["font-size"]),t.lineHeight=(parseFloat(t.fontSize)||e||10)*W.lineHeightFactor+"px",delete t["line-height"]),!t.lineHeight&&t["line-height"]&&(t.lineHeight=t["line-height"],delete t["line-height"]),t.lineHeight)},zb=function(t,e,i,n,r){var o=ja(t.labelbordercolor,e.bordercolor,i.labelbordercolor,""),a=ma(t.labelbgcolor,e.bgcolor,i.labelbgcolor),s=Y(t.labelborderthickness,e.borderthickness,i.labelborderthickness,1);return r=Y(i.usedataplotcolorforlabels,0)&&r||n.color,o=o?Ga(o,Y(t.labelborderalpha,e.borderalpha,i.labelborderalpha,t.labelalpha,e.alpha,i.labelalpha,100)):"",(t={fontFamily:ma(t.labelfont,e.font,i.labelfont,n.fontFamily),fontSize:ma(t.labelfontsize,e.fontsize,i.labelfontsize,parseInt(n.fontSize,10))+"px",color:Ga(ma(t.labelfontcolor,e.fontcolor,i.labelfontcolor,r),Y(t.labelfontalpha,e.fontalpha,i.labelfontalpha,t.labelalpha,e.alpha,i.labelalpha,100)),fontWeight:Y(t.labelfontbold,e.fontbold,i.labelfontbold)?"bold":"normal",fontStyle:Y(t.labelfontitalic,e.fontitalic,i.labelfontitalic)?"italic":"normal",border:o||a?s+"px solid":"",borderColor:o,borderThickness:s,borderPadding:Y(t.labelborderpadding,e.borderpadding,i.labelborderpadding,2),borderRadius:Y(t.labelborderradius,e.borderradiu
22s,i.labelborderradius,0),backgroundColor:a?Ga(a,Y(t.labelbgalpha,e.bgalpha,i.labelbgalpha,t.labelalpha,e.alpha,i.labelalpha,100)):"",borderDash:Y(t.labelborderdashed,e.borderdashed,i.labelborderdashed,0)?Eb(Y(t.labelborderdashlen,e.borderdashlen,i.labelborderdashlen,4),Y(t.labelborderdashgap,e.borderdashgap,i.labelborderdashgap,2),s):"none"}).lineHeight=Oa(t),t},jc=function(){var t={top:{align:"center",verticalAlign:"top",textAlign:"center"},right:{align:"right",verticalAlign:"middle",textAlign:"left"},bottom:{align:"center",verticalAlign:"bottom",textAlign:"center"},left:{align:"left",verticalAlign:"middle",textAlign:"right"}},e=/([^\,^\s]+)\)$/g,i=function(t,e){var i;/^(bar|bar3d)$/.test(t)&&(this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right"),i=parseInt(e.labelstep,10),this.labelStep=1<i?i:1,this.showLabel=Y(e.showlabels,e.shownames,1),this.is3D=/3d$/.test(t)};return i.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",addAxisGridLine:function(i,n,r,o,a,s,l,c){var h,d=""!==r,u=0<o||0<s.match(e)[1];return(d||u)&&(u||(s="rgba(0,0,0,0)",o=.1),h={isGrid:!0,width:o,dashStyle:a,color:s,value:n,zIndex:void 0===l?2:l},d&&(n=i.opposite?c?this.xOppPos:this.yOppPos:c?this.xPos:this.yPos,n=t[n],h.label={text:r,style:i.labels.style,textAlign:n.textAlign,align:n.align,verticalAlign:n.verticalAlign,rotation:0,x:0,y:0}),i.plotLines.push(h)),h},addAxisAltGrid:function(t,e){if(!this.is3D){var i=Y(t._lastValue,t.min),n=ma(t._altGrid,!1);n&&t.plotBands.push({isGrid:!0,color:t.alternateGridColor,to:e,from:i,zIndex:1}),t._lastValue=e,t._altGrid=!n}},addXaxisCat:function(e,i,n,r,o,a,s,l){var c=t[e.opposite?this.xOppPos:this.xPos];i={isGrid:!0,isDataLabel:!0,width:.1,color:"rgba(0,0,0,0)",value:i,label:{text:r,link:ma(o.labellink,a.link,s.labellink),style:zb(o,a,s,e.labels.style,l),textAlign:c.textAlign,align:c.align,verticalAlign:c.verticalAlign,rotation:0,x:0,y:0}},0!=n%this.labelStep&&(i.stepped=!0,i.label.style=e.steppedLabels.style),e.plotLines.push(i)},addVline:function(t,e,i,n){var r=(n=n._FCconf).isBar,o=n.divlineStyle,a=sa(e.label),s=Boolean(Y(e.showlabelborder,n.showVLineLabelBorder,1)),l=Boolean(Y(e.showlabelbackground,1)),c=ma(e.labelhalign,r?"left":"center"),h=ma(e.labelvalign,r?"middle":"bottom").toLowerCase(),d=Y(e.labelposition,0),u=Y(e.lineposition,.5),p=Y(e.showvlines,n.showVLines,1),f=Y(e.alpha,n.vLineAlpha,80),g=ma(e.color,n.vLineColor).replace(/^#?/,"#"),m=l?ma(e.labelbgcolor,n.vLineLabelBgColor,"333333").replace(/^#?/,"#"):"",v=ma(e.labelcolor,n.vLineLabelColor,e.color,n.vLineColor).replace(/^#?/,"#"),b=Y(e.thickness,n.vLineThickness,1),y=.5*b,x=Boolean(Number(ma(e.dashed,0))),w=Y(e.dashlen,5),_=Y(e.dashgap,2),C=n.smartLabel,S=parseInt(o.fontSize,10)+2,k=0,A=Y(e.rotatelabel,n.rotateVLineLabels)?270:0;u=0>u||1<u?.5:u,d=0>d||1<d?0:d;if(C.setStyle(o),C=C.getOriSize(a),g=Ga(g,p?f:"0"),r){switch(h){case"top":S-=C.height+y+2;break;case"middle":S-=.5*C.height+1;break;default:S+=y}e.labelhalign||(k-=C.width*d)}else{switch(h){case"top":S=.5*-C.height+1;break;case"middle":S=0;break;default:S=.5*C.height}switch(c){case"left":k+=b;break;case"right":k-=b+1}}t.plotLines.push({isVline:!0,color:g,width:b,value:i-1+u,zIndex:Y(e.showontop,n.showVLinesOnTop)?5:3,dashStyle:x?Eb(w,_,b):"none",label:{text:a,align:r?"left":"center",offsetScale:d,rotation:A,y:S,x:k,textAlign:c,backgroundColor:m,borderWidth:p&&s?1:0,borderType:p&&s?"solid":"",borderColor:p&&s?v:"",backgroundOpacity:p&&l?ma(e.labelbgalpha,n.vLineLabelBgAlpha)/100:0,style:{color:p?v:g,fontSize:o.fontSize,fontFamily:o.fontFamily,lineHeight:o.lineHeight,backgroundColor:m}}})}},i.prototype.constructor=i}(),ac=function(){var t=function(t,i,n,r,o){return i=(t=Math.abs(i-t))/(n+1),e(t,n,r)||(o&&Number(i)/Number(r)<(1<r?2:.5)&&(r/=10),t=(i=(Math.floor(i/r)+1)*r)*(n+1)),t},e=function(t,e,n){return!(i(t/(e+1))>i(n))},i=function(t){t=Math.abs(t);var e=0,i=(t=String(t)).indexOf(".");return-1!=i&&(e=t.length-i-1),e};return function(i,n,r,o,a,s,l,c){var h,d,u,p,f,g,v,b=0;if((i=!0===isNaN(i)||void 0===i?.1:i)===(n=!0===isNaN(n)||void 0===n?0:n)&&0===i&&(i=.1),s=void 0===typeof s||s,d=Math.max(Math.floor(Math.log(Math.abs(n))/Math.LN10),Math.floor(Math.log(Math.abs(i))/Math.LN10)),h=Math.pow(10,d),2>Math.abs(i)/h&&2>Math.abs(n)/h&&(d--,h=Math.pow(10,d)),d=Math.floor(Math.log(i-n)/Math.LN10),u=Math.pow(10,d),0<i-n&&10<=h/u&&(h=u),d=(Math.floor(i/h)+1)*h,0>n?u=-1*(Math.floor(Math.abs(n/h))+1)*h:s?u=0:u=0>(u=Math.floor(Math.abs(n/h)-1)*h)?0:u,(void 0===typeof a||a)&&0>=i&&(d=0),s=!(!o&&0!==o),i=!1===(a=!(!r&&0!==r))||!0===a&&Number(r)<i&&i-Number(r)>m?d:Number(r),n=!1===s||!0===s&&Number(o)>n&&Number(o)-n>m?u:Number(o),o=Math.abs(i-n),!1===s&&!1===a&&c)if(0<i&&0>n){for(r=!1,s=(c=t(n,i,l,a=10<h?h/10:h,!1))-(l+1)*a;!1===r;)if(e(s+=(l+1)*a,l,a))if(c=s-o,d=s/(l+1),u=(p=Math.min(Math.abs(n),i))==Math.abs(n)?-1:1,0===l)r=!0;else for(g=1;g<=Math.floor((l+1)/2);g++)!((f=d*g)-p>c)&&f>p&&((v=s-f)/d==Math.floor(v/d)&&f/d==Math.floor(f/d)&&(o=s,i=-1==u?v:f,n=-1==u?-f:-v,r=!0))}else c=(r=t(n,i,l,h,!0))-o,o=r,0<i?i+=c:n-=c;else c&&(r=function(t,i,n){for(var r,o=0,a=1;!e(i,r=0===(r=t+o*a)?1:r,n);){if(25<(o=-1==a||o>t?++o:o)){r=0;break}a=o<=t?-1*a:1}return r}
22,0<l&&(0===(c=r(l,o,h))&&(c=r(l,o+1,h),b=1),l=c));return{Max:i,Min:n,Range:o,interval:h,divGap:(i-n+b)/(l+1)}}}(),ec=function(){var t=function(t,e,i){var n=i.jsVars&&i.jsVars.smartLabel,r=t.offsetWidth,o=t.offsetHeight,a=this.chart;t=this.title;var s,l=i._chartMessageImageStyle,c=!1;void 0!==e&&(e=e.replace(/^\s+/,"").replace(/\s+$/,""),/^i\s*[\-]\s*/i.test(e)?(c=!0,s=e.replace(/^i\s*[\-]\s*/i,"")):s=e.replace(/^\\/,"")),t.y=o/2,t.x=r/2,a.bgSWF=t.text=void 0,e=s,c?(a.bgSWF=e,a.bgImageHAlign=l.imageHAlign,a.bgImageVAlign=l.imageVAlign,a.bgImageScale=l.imageScale,a.bgSWFAlpha=l.imageAlpha):void 0!==e&&(n?(Oa(t.style),n.setStyle(t.style),n=n.getSmartText(sa(e),r,o),t.text=n.text):t.text=sa(e),t.verticalAlign="middle"),t.style=i._chartMessageStyle,delete i._chartMessageImageStyle,delete i._chartMessageStyle};return t.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:S,text:"FusionCharts XT Trial",enabled:v},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana,sans",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},nativeMessage:!0},t.prototype.constructor=t}(),Sb={true:{true:{true:"center",false:"center"},false:{true:"center",false:"center"}},false:{true:{true:"right",false:"left"},false:{true:"left",false:"right"}}},Qb=function(t,e,i,n,r,o,a){var s,l,c,h,d,u,p,f,g,m,v,b,y,x,w=i.trendStyle,_=o?"xAxis":"dataLabels";if(o?i.showVLines:i.showTrendlines)for(s=0,c=t.length;s<c;s+=1)if((x=t[s])&&x.line)for(l=0,h=x.line.length;l<h;l+=1)d=x.line[l],v=i.numberFormatter.getCleanValue(ma(d.startvalue,d.value,0)),b=i.numberFormatter.getCleanValue(ma(d.endvalue,ma(d.startvalue,d.value,0))),o?g=e:n&&d.parentyaxis&&/^s$/i.test(d.parentyaxis)?(g=e[1],y=1):g=e[0],p=g.max,f=g.min,u=!1,p>=v&&p>=b&&f<=v&&f<=b&&(n&&d.parentyaxis&&/^s$/i.test(d.parentyaxis)?u="1"!==ma(d.valueonleft,i.trendlineValuesOnOpp):n||(u="1"===ma(d.valueonright,i.trendlineValuesOnOpp)),p=Boolean(Y(d.istrendzone,o?1:0)),(f=(o?i.showVLineLabels:i.showTrendlineLabels)?sa(ma(d.displayvalue,i.numberFormatter[_](u?b:v,y))):"")?(m=v<b,u={text:f,textAlign:r?"center":u?"left":"right",align:r?Sb[p][!a][m]:u?"right":"left",verticalAlign:r?"bottom":"middle",rotation:0,x:0,y:0,style:w},f=ma(d.color,i.trendlineColor),d.alwaysVisible=p,f&&(u.style=bb({},w),u.style.color=Ga(f,Y(d.alpha,100)))):u=void 0,f=ba(sa(ma(d.tooltext,x.tooltext,i.trendLineToolText))),f=Ab(f,[7,15,16,17,18,19],{startValue:v,startDataValue:i.numberFormatter[_](v,y),endValue:b,endDataValue:i.numberFormatter[_](b,y),axisName:g.title&&g.title.text},d),m=Y(d.thickness,i.trendlineThickness,1),p?g.plotBands.push({isTrend:!0,color:Ga(ma(d.color,i.trendlineColor),ma(d.alpha,i.trendlineAlpha,40)),from:v,to:b,label:u,zIndex:i.is3d||"1"!==ma(d.showontop,i.showTrendlinesOnTop)?3:5,tooltext:f,alwaysVisible:d.alwaysVisible}):g.plotLines.push({isTrend:!0,color:Ga(ma(d.color,i.trendlineColor,i.trendlineColor),ma(d.alpha,i.trendlineAlpha,99)),value:v,to:b,width:m,dashStyle:"1"==ma(d.dashed,i.trendlinesAreDashed)?Eb(Y(d.dashlen,i.trendlinesDashLen),Y(d.dashgap,i.trendlinesDashGap),m):"none",label:u,zIndex:i.is3d||"1"!==ma(d.showontop,i.showTrendlinesOnTop)?3:5,tooltext:f}))},Eb=function(t,e,i,n){return n||void 0===n?[t,e]:"none"},pc=function(){},Bb=function(t,e,i){var n,r=Bb[t];for(n in r||((r=function(){}).prototype=i instanceof pc?i:new pc,r.prototype.constructor=r,r=Bb[t]=new r),i&&(r.base=i),r.name=t,e)switch(typeof e[n]){case"object":if(e[n]instanceof pc){r[n]=e[n][n];break}default:r[n]=e[n];break;case"undefined":delete r[n]}return this instanceof Bb?((t=function(){}).prototype=r,t.prototype.constructor=t,new t):r},Ab=function(){var t,e=[{regex:/((^|[^\\])((\\)\\)*\$cleanvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cleanvalue))/gi,argIndex:2,argKey:"cleanvalue"},{regex:/((^|[^\\])((\\)\\)*\$datavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datavalue))/gi,argIndex:2,argKey:"formattedValue"},{regex:/((^|[^\\])((\\)\\)*\$value)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$value))/gi,argIndex:3,argKey:"value"},{regex:/((^|[^\\])((\\)\\)*\$label)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$label))/gi,argIndex:2,argKey:"label"},{regex:/((^|[^\\])((\\)\\)*\$seriesname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$seriesname))/gi,argIndex:5,argKey:"seriesname"},{regex:/((^|[^\\])((\\)\\)*\$yaxisname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yaxisname))/gi,argIndex:2,argKey:"yaxisName"},{regex:/((^|[^\\])((\\)\\)*\$xaxisname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxisname))/gi,argIndex:2,argKey:"xaxisName"}
22,{regex:/((^|[^\\])((\\)\\)*\$displayvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$displayvalue))/gi,argIndex:3,argKey:"displayvalue"},{regex:/((^|[^\\])((\\)\\)*\$xdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xdatavalue))/gi,argIndex:2,argKey:"xDataValue"},{regex:/((^|[^\\])((\\)\\)*\$ydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$ydatavalue))/gi,argIndex:2,argKey:"yDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xvalue))/gi,argIndex:3,argKey:"x"},{regex:/((^|[^\\])((\\)\\)*\$yvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yvalue))/gi,argIndex:3,argKey:"y"},{regex:/((^|[^\\])((\\)\\)*\$zvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zvalue))/gi,argIndex:3,argKey:"z"},{regex:/((^|[^\\])((\\)\\)*\$name)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$name))/gi,argIndex:3,argKey:"name"},{regex:/((^|[^\\])((\\)\\)*\$percentValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentValue))/gi,argIndex:2,argKey:"percentValue"},{regex:/((^|[^\\])((\\)\\)*\$startValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startValue))/gi,argIndex:2,argKey:"startValue"},{regex:/((^|[^\\])((\\)\\)*\$startDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startDataValue))/gi,argIndex:2,argKey:"startDataValue"},{regex:/((^|[^\\])((\\)\\)*\$endValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endValue))/gi,argIndex:2,argKey:"endValue"},{regex:/((^|[^\\])((\\)\\)*\$endDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endDataValue))/gi,argIndex:2,argKey:"endDataValue"},{regex:/((^|[^\\])((\\)\\)*\$axisName)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$axisName))/gi,argIndex:2,argKey:"axisName"},{regex:/((^|[^\\])((\\)\\)*\$cumulativevalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativevalue))/gi,argIndex:2,argKey:"cumulativeValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativedatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativedatavalue))/gi,argIndex:2,argKey:"cumulativeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativePercentValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativePercentValue))/gi,argIndex:2,argKey:"cumulativePercentValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativepercentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativepercentdatavalue))/gi,argIndex:2,argKey:"cumulativePercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$sum)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sum))/gi,argIndex:2,argKey:"sum"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsum)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsum))/gi,argIndex:2,argKey:"unformattedSum"},{regex:/((^|[^\\])((\\)\\)*\$targetvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetvalue))/gi,argIndex:2,argKey:"targetValue"},{regex:/((^|[^\\])((\\)\\)*\$targetdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetdatavalue))/gi,argIndex:2,argKey:"targetDataValue"},{regex:/((^|[^\\])((\\)\\)*\$processname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$processname))/gi,argIndex:2,argKey:"processName"},{regex:/((^|[^\\])((\\)\\)*\$start)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$start))/gi,argIndex:2,argKey:"start"},{regex:/((^|[^\\])((\\)\\)*\$end)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$end))/gi,argIndex:2,argKey:"end"},{regex:/((^|[^\\])((\\)\\)*\$percentcomplete)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentcomplete))/gi,argIndex:2,argKey:"percentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskpercentcomplete)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskpercentcomplete))/gi,argIndex:2,argKey:"taskPercentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskstartdate)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskstartdate))/gi,argIndex:2,argKey:"taskStartDate"},{regex:/((^|[^\\])((\\)\\)*\$taskenddate)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskenddate))/gi,argIndex:2,argKey:"taskEndDate"},{regex:/((^|[^\\])((\\)\\)*\$tasklabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tasklabel))/gi,argIndex:2,argKey:"taskLabel"},{regex:/((^|[^\\])((\\)\\)*\$date)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$date))/gi,argIndex:2,argKey:"date"},{regex:/((^|[^\\])((\\)\\)*\$percentofprevvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentofprevvalue))/gi,argIndex:2,argKey:"percentOfPrevValue"},{regex:/((^|[^\\])((\\)\\)*\$sname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sname))/gi,argIndex:2,argKey:"sName"},{regex:/((^|[^\\])((\\)\\)*\$lname)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lname))/gi,argIndex:2,argKey:"lName"},{regex:/((^|[^\\])((\\)\\)*\$fromid)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromid))/gi,argIndex:2,argKey:"fromId"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toid)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toid))/gi,argIndex:2,argKey:"toId"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$fromxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxvalue))/gi,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromyvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromyvalue))/gi,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxdatavalue))/gi,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromydatavalue))/gi,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxvalue))/gi,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toyvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toyvalue))/gi,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxdatavalue))/gi,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toydatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toydatavalue))/gi,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$openvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$openvalue))/gi,argIndex:2,argKey:"openValue"},{regex:/((^|[^\\])((\\)\\)*\$closevalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closevalue))/gi,argIndex:2,argKey:"closeValue"},{regex:/((^|[^\\])((\\)\\)*\$highvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highvalue))/gi,argIndex:2,argKey:"highValue"},{regex:/((^|[^\\])((\\)\\)*\$lowvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowvalue))/gi,argIndex:2,argKey:"lowValue"},{regex:/((^|[^\\])((\\)\\)*\$opendatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$opendatavalue))/gi,argIndex:2,argKey:"openDataValue"},{regex:/((^|[^\\])((\\)\\)*\$closedatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closedatavalue))/gi,argIndex:2,argKey:"closeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$highdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highdatavalue))/gi,argIndex:2,argKey:"highDataValue"},{regex:/((^|[^\\])((\\)\\)*\$lowdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowdatavalue))/gi,argIndex:2,argKey:"lowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$maxvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxvalue))/gi,argIndex:2,argKey:"maxValue"},{regex:/((^|[^\\])((\\)\\)*\$maxdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxdatavalue))/gi,argIndex:2,argKey:"maxDataValue"},{regex:/((^|[^\\])((\\)\\)*\$minvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$minvalue))/gi,argIndex:2,argKey:"minValue"},{regex:/((^|[^\\])((\\)\\)*\$mindatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mindatavalue))/gi,argIndex:2,argKey:"minDataValue"},{regex:/((^|[^\\])((\\)\\)*\$q1)/gi,argIndex:2,argKey:"Q1"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ1)/gi,argIndex:2,argKey:"unformattedQ1"},{regex:/((^|[^\\])((\\)\\)*\$q3)/gi,argIndex:2,argKey:"Q3"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ3)/gi,argIndex:2,argKey:"unformattedQ3"},{regex:/((^|[^\\])((\\)\\)*\$median)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$median))/gi,argIndex:2,argKey:"median"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMedian)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMedian))/gi,argIndex:2,argKey:"unformattedMedian"},{regex:/((^|[^\\])((\\)\\)*\$SD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$SD))/gi,argIndex:2,argKey:"SD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsd)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsd))/gi,argIndex:2,argKey:"unformattedsd"},{regex:/((^|[^\\])((\\)\\)*\$QD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$QD))/gi,argIndex:2,argKey:"QD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedQD))/gi,argIndex:2,argKey:"unformattedQD"},{regex:/((^|[^\\])((\\)\\)*\$MD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$MD))/gi,argIndex:2,argKey:"MD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMD)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMD))/gi,argIndex:2,argKey:"unformattedMD"},{regex:/((^|[^\\])((\\)\\)*\$mean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mean))/gi,argIndex:2,argKey:"mean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/gi,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/gi,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$volumeValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeValue))/gi,argIndex:2,argKey:"volumeValue"},{regex:/((^|[^\\])((\\)\\)*\$volumeDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeDataValue))/gi,argIndex:2,argKey:"volumeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXValue))/gi,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYValue))/gi,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXDataValue))/gi,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYDataValue))/gi,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromLabel))/gi,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toXValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXValue))/gi,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toYValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYValue))/gi,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toXDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXDataValue))/gi,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toYDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYDataValue))/gi,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/gi,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$tlLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlLabel))/gi,argIndex:5,argKey:"tlLabel"},{regex:/((^|[^\\])((\\)\\)*\$trlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trlabel))/gi,argIndex:5,argKey:"trLabel"},{regex:/((^|[^\\])((\\)\\)*\$bllabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bllabel))/gi,argIndex:5,argKey:"blLabel"},{regex:/((^|[^\\])((\\)\\)*\$brlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brlabel))/gi,argIndex:5,argKey:"brLabel"},{regex:/((^|[^\\])((\\)\\)*\$rowlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$rowlabel))/gi,argIndex:5,argKey:"rowLabel"},{regex:/((^|[^\\])((\\)\\)*\$columnlabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$columnlabel))/gi,argIndex:5,argKey:"c
22olumnLabel"},{regex:/((^|[^\\])((\\)\\)*\$errorvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorvalue))/gi,argIndex:2,argKey:"errorValue"},{regex:/((^|[^\\])((\\)\\)*\$errordatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errordatavalue))/gi,argIndex:2,argKey:"errorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentvalue))/gi,argIndex:2,argKey:"errorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentdatavalue))/gi,argIndex:2,argKey:"errorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorValue))/gi,argIndex:2,argKey:"horizontalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorDataValue))/gi,argIndex:2,argKey:"horizontalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorValue))/gi,argIndex:2,argKey:"verticalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorDataValue))/gi,argIndex:2,argKey:"verticalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercent)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentValue))/gi,argIndex:2,argKey:"horizontalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercentDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentDataValue))/gi,argIndex:2,argKey:"horizontalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercent)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentValue))/gi,argIndex:2,argKey:"verticalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercentDataValue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentDataValue))/gi,argIndex:2,argKey:"verticalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xaxispercentvalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxispercentvalue))/gi,argIndex:2,argKey:"xAxisPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$percentdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentdatavalue))/gi,argIndex:2,argKey:"percentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$trType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trType))/gi,argIndex:4,argKey:"trtype"},{regex:/((^|[^\\])((\\)\\)*\$tlType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlType))/gi,argIndex:4,argKey:"tltype"},{regex:/((^|[^\\])((\\)\\)*\$brType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brType))/gi,argIndex:4,argKey:"brtype"},{regex:/((^|[^\\])((\\)\\)*\$blType)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$blType))/gi,argIndex:4,argKey:"bltype"},{regex:/((^|[^\\])((\\)\\)*\$colorRangeLabel)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$colorRangeLabel))/gi,argIndex:5,argKey:"colorRangeLabel"},{regex:/((^|[^\\])((\\)\\)*\$zdatavalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zdatavalue))/gi,argIndex:2,argKey:"zDataValue"},{regex:/((^|[^\\])((\\)\\)*\$svalue)/gi,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$svalue))/gi,argIndex:3,argKey:"svalue"}],i=[],n=e.length;for(t=0;t<n;t+=1)i.push(t);return function(){var t,n,r,o,a,s=arguments[0],l=arguments[1];if(ob(l)||(l=i),s)for(a=l.length,o=0;o<a;o+=1)(r=e[l[o]])&&(t=ga(ba((n=arguments[r.argIndex])&&n[r.argKey],"")+""),s=(s=s.replace(r.regex,"$2$4"+(r.parsingMethod?r.parsingMethod(t):t))).replace(r.escapeRegex,"$2$4$5"));return s}}(),Tb=function(t){var e,i,n;for(e=0<=t.split(",")[0].indexOf("base64")?q.atob(t.split(",")[1]):q.unescape(t.split(",")[1]),t=t.split(",")[0].split(":")[1].split(";")[0],i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new q.Blob([i],{type:t})
23},Hb=function(){var t,e=q.navigator.userAgent;return-1!==(t=e.indexOf("Edge"))?{name:"Edge",version:e.substring(t+5,t+11)}:-1!==(t=e.indexOf("Chrome"))?{name:"Chrome",version:e.substring(t+7,t+11)}:-1!==(t=e.indexOf("MSIE"))||-1!==(t=e.indexOf("rv"))&&-1!==e.indexOf("Trident")?{name:"ie",version:e.substring(t+5,t+9)}:-1!==(t=e.indexOf("Firefox"))?{name:"Firefox",version:e.substring(t+8,t+12)}:-1!==(t=e.indexOf("Safari"))?{name:"Safari",version:e.substring(t+7,t+11)}:{name:"default",version:"Not Known"}},Qa=function(t){return t.replace(/<image [^\>]*\>/gi,(function(t){return t.match(/href=["']\s*["']/)||t.match(/href=["']http:\/\/|href=["']https:\/\//)&&/(href=["']http:\/\/|href=["']https:\/\/)([^\/\:]*)/.exec(t)[2]&&q.location.hostname!==/(href=["']http:\/\/|href=["']https:\/\/)([^\/\:]*)/.exec(t)[2]?"":t}))}
23,wb=function(t,e,i){var n,r=Hb();"Chrome"===r.name||"Firefox"===r.name?("blob"===t&&(e=q.URL.createObjectURL(e)),(n=F.createElement("a")).download=i,n.href=e,F.body.appendChild(n),n.onclick=function(){n.parentNode.removeChild(n)},n.click()):"ie"!==r.name&&"Edge"!==r.name||!q.navigator.msSaveBlob||(t="url"===t?Tb(e):e,q.navigator.msSaveBlob(t,i))},f=function(t,i){var n,r,o,a;a=i.exportTargetWindow;var s,l=i.exportCallback,c=i.fusionCharts,h=i.paper,d=i.chartId;if(r=i.exportHandler,"download"===i.exportAction){for(n in/webkit/gi.test(q.navigator.userAgent)&&"_self"===a&&(a=o=d+"export_iframe",s||(s=o=Ba("IFRAME",{name:o,width:"1px",height:"1px"},F.body),o.style.cssText="position:absolute;left:-10px;top:-10px;")),r=Ba("form",{method:"POST",action:r,target:a,style:"display:none;"},F.body),t)Ba("input",{type:"hidden",name:n,value:t[n]},r);return r.submit(),F.body.removeChild(r),r=void 0,!0}for(n in a=new e.ajax((function(t){var i={};t.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),(function(t,e,n,r){i[e]=r})),l&&q[l]&&"function"==typeof q[l]&&q[l].call(q,i),e.raiseEvent("exported",i,c)}),(function(t){t={statusCode:0,statusMessage:"failure",error:t,DOMId:d,width:h.width,height:h.height},l&&q[l]&&"function"==typeof q[l]&&q[l].call(q,t),e.raiseEvent("exported",t,c,[t])})),t)t.hasOwnProperty(n)&&(t[n]=encodeURIComponent(t[n]));a.post(r,t)},B=function(t,e){if(-1===t.indexOf("<image "))e(t);else{var i,n,r=0,o=0;i=t.match(/<image [^\>]*\>/gi).length,t=t.replace(/NS\d+:/gi,"xlink:"),t=(t=Qa(t)).replace(/<image [^\>]*\>/gi,(function(a){if(a.match(/href="http:\/\/|href="https:\/\//)&&/(href="http:\/\/|href="https:\/\/)([^\/\:]*)/.exec(a)[2]&&q.location.hostname!==/(href="http:\/\/|href="https:\/\/)([^\/\:]*)/.exec(a)[2])return o++,r++,i===o&&e(t),"";a=a.replace(/(:href=")([^"]*)(")/gi,(function(t,e,i,o){return n=i,e+"{{{"+r+"}}}"+o}));var s,l,c=F.createElement("canvas");return s=c.getContext("2d"),(l=new G).src=n,l.ind=r,l.onload=function(){c.width=this.width,c.height=this.height,s.drawImage(this,0,0);var n=c.toDataURL("image/png");(new G).src=n,t=t.replace(new RegExp("\\{\\{\\{"+l.ind+"\\}\\}\\}","g"),n),o++,i===o&&e(t)},r++,a}))}},n=function(t){var e,i,r,o,a,s;if(t){if(e=t.components)for(r in e)if((i=e[r])instanceof Array)for(o=i.length,a=0;a<o;a++)(s=i[a])&&s.dispose?s.dispose():n(s);else i&&i.dispose?i.dispose():n(i);if(e=t.graphics)for(r in e)if((i=e[r])instanceof Array)for(o=i.length,a=0;a<o;a++)(s=i[a])&&s.remove&&s.remove();else i&&i.remove&&i.remove();for(r in t)delete t[r]}},w={},I={};e.registrars.datasettype=function(t){var e,i,n,r;if(r=t[0].toLowerCase(),1==t.length)void 0===w[r]&&console.error('Undefined dataSetType "'+t[0]+'"');else if(w[r]=i=function(){},void 0!==t[2]&&(e=t[2].toLowerCase()),e&&w[e]){for(n in e=new w[e],i.prototype=e,i.prototype.constructor=i,t=t[1]||{})i.prototype[n]=void 0!==t[n]?t[n]:e[n];w[r]=i}else i.prototype=t[1],i.prototype.constructor=i;return w[r]},e.registrars.groupmanagertype=function(t){var e,i,n,r;if(r=t[0].toLowerCase(),1==t.length)void 0===I[r]&&console.error('Undefined dataSetType "'+t[0]+'"');else if(I[r]=i=function(){},void 0!==t[2]&&(e=t[2].toLowerCase()),e&&I[e]){for(n in e=new I[e],i.prototype=e,i.prototype.constructor=i,t=t[1]||{})i.prototype[n]=void 0!==t[n]?t[n]:e[n];I[r]=i}else i.prototype=t[1],i.prototype.constructor=i;return I[r]},e.core._setLineHeightFactor=function(e){!(e=t(e))||0>e||(W.lineHeightFactor=e)},e.extend(W,{BLANKSTRINGPLACEHOLDER:"#BLANK#",BLANKSTRING:"",COLOR_BLACK:"000000",COLOR_GLASS:"rgba(255, 255, 255, 0.3)",COLOR_WHITE:"FFFFFF",COLOR_TRANSPARENT:"rgba(0,0,0,0)",HASHSTRING:"#",BREAKSTRING:"<br />",STRINGSTRING:"string",OBJECTSTRING:"object",COMMASTRING:",",ZEROSTRING:"0",SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",DECIMALSTRING:".",STRINGUNDEFINED:"undefined",POSITION_TOP:"top",POSITION_RIGHT:"right",POSITION_BOTTOM:"bottom",POSITION_LEFT:"left",POSITION_CENTER:"center",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_END:"end",FC_CONFIG_STRING:"_FCconf",SHAPE_RECT:"rect",HUNDREDSTRING:"100",PXSTRING:"px",COMMASPACE:", ",TEXTANCHOR:"text-anchor",TOUCH_THRESHOLD_PIXELS:15,CLICK_THRESHOLD_PIXELS:5,regex:{stripWhitespace:E,dropHash:c,startsRGBA:l,cleanColorCode:b,breakPlaceholder:r,hexcode:/^#?[0-9a-f]{6}/i}
23,fireEvent:function(t,e,i,n){W.dem.fire(t,e,i,n)},plotEventHandler:function(t,i,n){var r=(i=i||{}).type,o=Ia(t.container,i),s=(o=bb(o,this.data("eventArgs")),t.logic.fireGroupEvent),l=this.data("groupId"),c=function(t,e){i.FusionChartsPreventEvent=!0,a&&e.toolText&&W.toolTip&&W.toolTip.preventTooltip()};if("index"in o&&!("dataIndex"in o)&&(o.dataIndex=o.index),"value"in o&&!("dataValue"in o)&&(o.dataValue=o.value),"dataplotrollover"===(n=ma(n,"dataplotclick").toLowerCase())?(i.FusionChartsPreventEvent=!1,s?e.raiseEventGroup(l,n,o,t.fusionCharts,void 0,void 0,c):e.raiseEvent(n,o,t.logic.chartInstance,void 0,void 0,c)):s&&"dataplotclick"!==n?e.raiseEventGroup(l,n,o,t.fusionCharts):e.raiseEvent(n,o,t.logic.chartInstance),("click"===r||"mouseup"===r||"touchend"===r)&&/click/i.test(n)){if(D&&!R){if(n=(new Date).getTime(),this.lastClickTimeStamp&&400>n-this.lastClickTimeStamp)return void(i&&(i.originalEvent||i).preventDefault());this.lastClickTimeStamp=n}t.linkClickFN.call({link:o.link},t)}},getEventCoordinate:ca,getMouseCoordinate:Ia,addEvent:da,removeEvent:na,getTouchEvent:A,extend2:bb,deltend:function(t,e){return"object"!=typeof t||"object"!=typeof e?null:(ua(t,e),t)},imprint:function(t,e,i){var n;if("object"!=typeof t||null===t)return e;if("object"!=typeof e||null===e)return t;for(n in e)(void 0===t[n]||!i&&null===t[n])&&(t[n]=e[n]);return t},pluck:ma,pluckNumber:Y,getFirstDefinedValue:function(){var t,e,i;for(e=0,i=arguments.length;e<i;e+=1)if((t=arguments[e])||!1===t||0===t||""==t)return t},createElement:Ba,hashify:va,pluckFontSize:function(){var t,e,i;for(e=0,i=arguments.length;e<i;e+=1)if(((t=arguments[e])||!1===t||0===t)&&!isNaN(t=Number(t)))return 1>t?1:t;return 1},getValidValue:ba,getPosition:ka,getViewPortDimension:aa,bindSelectionEvent:function(t,e){e=e||{};var i=t.options.chart,n=t.container,r=i.zoomType,o=bb({},e.attr||{}),a=o["stroke-width"]=Y(o.strokeWidth,o["stroke-width"],1),s=ka(n),l=t.eventListeners||(t.eventListeners=[]);e=bb({chart:t,zoomX:/x/.test(r),zoomY:/y/.test(r),canvasY:t.canvasTop,canvasX:t.canvasLeft,canvasW:t.canvasWidth,canvasH:t.canvasHeight,canvasX2:t.canvasLeft+t.canvasWidth,canvasY2:t.canvasTop+t.canvasHeight,strokeWidth:a,chartPosLeft:s.left,chartPosTop:s.top,attr:o},e),o.stroke=ja(o.stroke,"rgba(51,153,255,0.8)"),o.fill=ja(o.fill,"rgba(185,213,241,0.3)"),o.ishot=!0,n&&(na(n,"pointerdrag",O),l.push(da(n,"pointerdrag",O,e))),i.link&&(na(t.container,"mouseup mousedown",ha),l.push(da(t.container,"mouseup mousedown",ha,e)))},createContextMenu:function(t){var e,i,n,r,o,s,l,c,h,u,p,f,g,m=t.chart,v=m.smartLabel,b=m.logic.hcJSON&&m.logic.hcJSON.chart.useRoundEdges,y=W.Raphael,x=function(t){return{attrs:{backgroundColor:t.menufillcolor&&va(t.menufillcolor),color:t.menulabelcolor&&va(t.menulabelcolor)},hover:{backgroundColor:t.menufillhovercolor&&va(t.menufillhovercolor),color:t=t.menulabelhovercolor&&va(t.menulabelhovercolor)}}}(m.definition.chart),w=function(t,e,i){return e=e||{},t=(t=(t=t&&y.tintshade(t.color,.7))&&y.getRGB(t))&&"rgb("+[t.r,t.g,t.b].join()+")",{backgroundColor:e.backgroundHoverColor||i.backgroundColor||t||"rgb(64, 64, 64)",color:e.hoverColor||i.color||"#FFFFFF"}}(t.basicStyle,t.hover,x.hover),_=function(t,e,i){return e=bb({},e||{}),{fontFamily:(e=bb(e,t)).fontFamily||"Verdana,sans",fontSize:e.fontSize||"10px",color:e.color||i.color||"#000000",backgroundColor:e.backgroundColor||i.backgroundColor||"rgb(255, 255, 255)"}}(t.basicStyle,t.attrs,x.attrs),C={textAlign:"left",align:"left",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",cursor:"pointer",borderWidth:"0px"},S=t.items,k=t.position,A=t.verticalPadding||3,T=t.horizontalPadding||6,D={};return!!m&&(e=ka(m.container),r=function(){var t,e,i=D.items,n=i.length,r=0,o=0,s=0;for(D.menuItems||(D.menuItems=[]),v.setStyle(_);n--;)t=i[n],t=v.getOriSize(t.text),s||(s=t.height+2*A),r+=s,o=L(o,t.width+2*T);for(D.height=r,D.width=o,D.itemH=s,this.style.width=o+"px",D.menuRect||((r=D.menuRect=F.createElement("div")).style.border="1px solid rgb(100, 100, 100)",b&&(r.style.mozBorderRadius="4px",r.style.webkitBorderRadius="4px",r.style.borderRadius="4px",r.style.overflow="hidden"),a&&!d?r.style.filter="progid:DXImageTransform.Microsoft.Shadow(Color=#999999,direction=135,strength=3)":(r.style.mozBoxShadow="3px 3px 3px #999",r.style.webkitBoxShadow="3px 3px 3px #999",r.style.boxShadow="3px 3px 3px #999"),this.appendChild(r)),o=i.length,n=0;n<o;n+=1)if(t=i[n],D.menuItems[n])D.menuItems[n].label.innerHTML=t.text;else{for(e in D.menuItems[n]={},(r=D.menuItems[n].box=F.createElement("div")).style.height=s+"px",r.style.lineHeight=s+"px",C)r.style[e]=C[e];for(e in _)r.style[e]=_[e];D.menuRect.appendChild(r),r.innerHTML=t.text,W.dem.listen(r,"click",g),W.dem.listen(r,"pointerhover",u),D.menuItems[n].box._itemIdx=n}for(;D.menuItems[n];)D.menuItems[n].box.parentNode.removeChild(D.menuItems[n].box),D.menuItems.splice(n,1)},o=function(){return n||((n=F.createElement("div")).style.position="absolute",n.style.zIndex="50",
23n.style.display="none",m.container.appendChild&&m.container.appendChild(n)),n},s=function(){i=setTimeout(D.hide,800)},l=function(){i&&clearTimeout(i)},c=function(t){var e=t.x,i={x:e,y:t=t.y},n=D.width,r=D.height,o=m.chartHeight,a=m.chartWidth;return e+n>a&&0<e-n?i.x-=n:e+n>a&&(i.x=0),t+r>o&&0<t-r&&(i.y-=r),i},h=function(){D.hide()},u=function(t){t.target&&t.target.parentNode&&("start"===t.state?p:f).call(t.target)},p=function(){var t,e=D.menuItems[this._itemIdx];for(t in l(),w)e.box.style[t]=w[t]},f=function(){var t,e=D.menuItems[this._itemIdx];for(t in _)e.box.style[t]=_[t];s()},g=function(t){var e=D.items[this._itemIdx];e.onclick&&e.onclick.call(e,t),t.originalEvent.stopPropagation?t.originalEvent.stopPropagation():t.originalEvent.cancelBubble=!0,D.hide()},D.showItem=function(t){t=this.menuItems[t];var e=this.height,i=this.itemH;t&&t._isHidden&&(t.box.style.display="",this.height=e+i,t._isHidden=!1,t=c(k),this.left=t.x,this.top=t.y)},D.hideItem=function(t){t=this.menuItems[t];var e=this.height,i=this.itemH;t&&!t._isHidden&&(t.box.style.display="none",this.height=e-i,t._isHidden=!0,t=c(k),this.left=t.x,this.top=t.y)},D.redraw=function(){var t=this.menuContainer;this.items=S,t?r.call(this.menuContainer):k&&void 0!==k.x&&void 0!==k.y?(this.menuContainer=o(),r.call(this.menuContainer),t=c(k),this.left=t.x,this.top=t.y,this.menuContainer.style.left=this.left+"px",this.menuContainer.style.top=this.top+"px"):(this.menuContainer=o(),r.call(this.menuContainer))},D.show=function(t){var e=this;t&&void 0!==t.x&&void 0!==t.y?(t=c(t),e.menuContainer.style.left=t.x+"px",e.menuContainer.style.top=t.y+"px"):(e.menuContainer.style.left=e.left+"px",e.menuContainer.style.top=e.top+"px"),e.menuContainer.style.display="",setTimeout((function(){e.visible=!0,y.click(h)}),400)},D.hide=function(){this.visible&&(this.visible=!1,D.menuContainer.style.display="none",D.menuContainer.style.left=-D.width+"px",D.menuContainer.style.top=-D.height+"px",y.unclick(h))},D.update=function(t){t&&t.length&&(this.items=t,this.redraw())},D.updatePosition=function(t){var i=e.left,n=e.top;e=ka(m.container),t?(k=t,t=c(t),this.left=t.x,this.top=t.y):(this.left-=i-e.left,this.top-=n-e.top)},D.add=function(t){var e,i=this.menuItems,n=i.length;for(e in v.setStyle(_),this.width=L(this.width,v.getOriSize(t.text).width),i[n]={},(i=i[n].box=F.createElement("div")).style.height=this.itemH+"px",i.style.lineHeight=this.itemH+"px",C)i.style[e]=C[e];for(e in _)i.style[e]=_[e];D.menuRect.appendChild(i),i.innerHTML=t.text,W.dem.listen(i,"click",g),W.dem.listen(i,"pointerhover",u),D.menuItems[n].box._itemIdx=n,this.height+=this.itemH},D.removeItems=function(){for(var t,e=this.menuItems,i=e&&e.length;i--;)t=e[i],W.dem.unlisten(t.box,"click",g),W.dem.unlisten(t.box,"pointerhover",u),t.box&&t.box.parentNode&&t.box.parentNode.removeChild(t.box);delete this.menuItems,delete this.items},D.setPosition=function(t){void 0!==t.x&&void 0!==t.y&&(this.menuContainer.style.x=t.x,this.menuContainer.style.y=t.y)},D.destroy=function(){this.removeItems(),this.menuContainer.parentNode.removeChild(this.menuContainer)},S&&S.length&&(D.redraw(),D.hide()),D)},getDefinedColor:function(t,e){return t||0===t||""===t?t:e},getFirstValue:ja,getFirstColor:function(t){return""==(t=(t=t.split(",")[0]).replace(E,""))&&(t="000000"),t.replace(c,"#")},getColorCodeString:function(t,e){var i,n,r="",o=0,a=e.split(",");for(n=a.length;o<n;o+=1)r=2===(i=a[o].split("-")).length?"-1"!==i[0].indexOf("dark")?r+(oa(t,100-parseInt(i[1],10))+","):r+(jb(t,100-parseInt(i[1],10))+","):r+(a[o]+",");return r.substring(0,r.length-1)},pluckColor:function(t){if(ba(t))return""==(t=(t=t.split(",")[0]).replace(E,""))&&(t="000000"),t.replace(c,"#")},toRaphaelColor:fb,gradientify:Ca,trimString:function(t){for(var e=/\s/,i=(t=t.replace(/^\s\s*/,"")).length;e.test(t.charAt(--i)););return t.slice(0,i+1)},getFirstAlpha:function(t){return t=parseInt(t,10),(isNaN(t)||100<t||0>t)&&(t=100),t},parsePointValue:Da,parseUnsafeString:sa,parseTooltext:Ab,toPrecision:function(t,e){var i=g(10,e);return k(t*i)/i},hasTouch:u,CREDIT_HREF:S,CREDIT_STRING:"FusionCharts XT Trial",getSentenceCase:function(t){return(t=t||"").charAt(0).toUpperCase()+t.substr(1)}
23,getCrispValues:function(t,e,i){var n=i%2/2;return{position:i=k(t+n)-n,distance:t=k(t+e+n)-n-i}},regescape:function(t){return t&&t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},regReplaceEscape:ga,isArray:ob,stubFN:function(){},falseFN:function(){return!1},stableSort:function(t,e){var i,n=t.length;for(i=0;i<n;i++)t[i].ssI=i;for(t.sort((function(t,i){var n=e(t,i);return 0===n?t.ssI-i.ssI:n})),i=0;i<n;i++)delete t[i].ssI},hasSVG:d,isIE:a,lineHeightFactor:1.2,getLinkAction:function(t,i){var n=function(t){return t};return function(r){r=r||this.series&&this.series.chart;var o=t.chart||t.map||{},a=Y(o.unescapelinks,1),s=(o=Y(o.clickurloverridesplotlinks,0),ja(this.link,""));r=r&&r.options&&r.options.chart&&r.options.chart.link||"";var l,c,h,d,u,p,f,g,m,v=this.options&&this.options.chart&&this.options.chart.link||"",b=o?ma(r,v,s):ma(s,v,r),y=b;void 0!==b&&(a&&(b=q.decodeURIComponent?q.decodeURIComponent(b):q.unescape(b)),-1!==(b=b.replace(/^\s+/,"").replace(/\s+$/,"")).search(/^[a-z]*\s*[\-\:]\s*/i)&&(u=b.split(/\s*[\-\:]\s*/)[0].toLowerCase(),m=u.length),setTimeout((function(){switch(u){case"j":b=b.replace(/^j\s*\-/i,"j-"),-1===(l=b.indexOf("-",2))?la(b.slice(2)):la(b.substr(2,l-2).replace(/\s/g,""),b.slice(l+1));break;case"javascript":pb(b.replace(/^javascript\s*\:/i,""));break;case"n":b.replace(/^n\s*\-/i,"n-"),q.open(n(b.slice(2),a));break;case"f":b=b.replace(/^f\s*\-/i,"f-"),-1!==(l=b.indexOf("-",2))?(c=b.substr(2,l-2))&&q.frames[c]?q.frames[c].location=n(b.slice(l+1),a):q.open(n(b.slice(l+1),a),c):q.open(n(b.slice(2),a));break;case"p":b=b.replace(/p\s*\-/i,"p-"),l=b.indexOf("-",2),h=b.indexOf(",",2),-1===l&&(l=1),d=n(b.slice(l+1),a),q.open(d,b.substr(2,h-2),b.substr(h+1,l-h-1)).focus();break;case"newchart":case"newmap":switch(":"===b.charAt(m)&&(l=b.indexOf("-",m+1),g=b.substring(m+1,l),m=l),l=b.indexOf("-",m+1),p=b.substring(m+1,l).toLowerCase()){case"xmlurl":case"jsonurl":f=b.substring(l+1,b.length);break;case"xml":case"json":var r,o={chart:{}},s=(s=b.substring(l+1,b.length)).toLowerCase();if(t.linkeddata)for(r=0;r<t.linkeddata.length;r+=1)t.linkeddata[r].id.toLowerCase()===s&&(o=t.linkeddata[r].linkedchart||t.linkeddata[r].linkedmap);f=o,p="json"}e.raiseEvent("linkedChartInvoked",{alias:g,linkType:p.toUpperCase(),data:f},i);break;default:q.location.href=b}e.raiseEvent("linkClicked",{linkProvided:y,linkInvoked:b,linkAction:u&&u.toLowerCase()},i)}),0))}},graphics:{parseAlpha:qb,convertColor:Ga,getDarkColor:jb,getLightColor:oa,mapSymbolName:function(t,e){var i="circle";return 3<=(t=Da(t))&&(i=(e?"spoke_":"poly_")+t),i},getColumnColor:function(t,e,i,n,r,o,a,s,l){var c,h;return c=t.split(","),h=e.split(","),o=o.split(","),a=a.split(","),t=t.replace(/\s/g,"").replace(/\,$/,""),l?s={FCcolor:{color:c[0],alpha:h[0]}}:r?(t=c[0],h=h[0],s={FCcolor:{color:jb(t,75)+","+oa(t,10)+","+jb(t,90)+","+oa(t,55)+","+jb(t,80),alpha:h+","+h+","+h+","+h+","+h,ratio:"0,11,14,57,18",angle:s?"90":"0"}},o=[jb(t,70)]):s={FCcolor:{color:t,alpha:e=qb(e,c.length),ratio:i,angle:s?-n:n}},[s,{FCcolor:{color:o[0],alpha:a[0]}}]},getAngle:function(t,e,i){return t=180*Math.atan(e/t)/Math.PI,2==i?t=180-t:3==i?t+=180:4==i&&(t=360-t),t},parseColor:mb,getValidColor:function(t){return V.test(mb(t))&&t},HSBtoRGB:function(t){var e=t[0],i=0,n=0,r=0,o=[];o=t[1]/100;t=t[2]/100;var a=e/60-Math.floor(e/60),s=t*(1-o),l=t*(1-a*o);o=t*(1-(1-a)*o);switch(Math.floor(e/60)%6){case 0:i=t,n=o,r=s;break;case 1:i=l,n=t,r=s;break;case 2:i=s,n=t,r=o;break;case 3:i=s,n=l,r=t;break;case 4:i=o,n=s,r=t;break;case 5:i=t,n=s,r=l}return[k(255*i),k(255*n),k(255*r)]},RGBtoHSB:function(t){var e=t[0],i=t[1];t=t[2];var n=Math.max(Math.max(e,i),t),r=Math.min(Math.min(e,i),t),o=0,a=0;return n==r?o=0:n==e?o=(60*(i-t)/(n-r)+360)%360:n==i?o=60*(t-e)/(n-r)+120:n==t&&(o=60*(e-i)/(n-r)+240),a=0===n?0:(n-r)/n,[k(o),k(100*a),k(n/255*100)]},RGBtoHex:function(t){return("000000"+(t[0]<<16|t[1]<<8|t[2]).toString(16)).slice(-6)},HEXtoRGB:Cb},setImageDisplayMode:function(t,e,i,n,r,o,a,s){var l=n/100*s.width;n=n/100*s.height,s={};var c,h=o-2*r;c=a-2*r;var d=function(t,e,i,n,o,a){var s={};switch(t){case"top":s.y=r;break;case"bottom":s.y=a-n-r;break;case"middle":s.y=(a-n)/2}switch(e){case"left":s.x=r;break;case"right":s.x=o-i-r;break;case"middle":s.x=(o-i)/2}return s};switch(t){case"center":s.width=l,s.height=n,s.y=a/2-n/2,s.x=o/2-l/2;break;case"stretch":s.width=o-2*r,s.height=a-2*r,s.y=r,s.x=r;break;case"tile":s.width=l,s.height=n,s.tileInfo={},s.tileInfo.xCount=t=Math.ceil(h/l),s.tileInfo.yCount=c=Math.ceil(c/n),e=d(e,i,l*t,n*c,o,a),s.y=e.y,s.x=e.x;break;case"fit":t=l/n>h/c?h/l:c/n,s.width=l*t,s.height=n*t,e=d(e,i,s.width,s.height,o,a),s.y=e.y,s.x=e.x;break;case"fill":t=l/n>h/c?c/n:h/l,s.width=l*t,s.height=n*t,e=d(e,i,s.width,s.height,o,a),s.y=e.y,s.x=e.x;break;default:e=d(e,i,l,n,o,a),s.width=l,s.height=n,s.y=e.y,s.x=e.x}return s}
23,setLineHeight:Oa,parsexAxisStyles:zb,supportedStyle:{font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position","background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness","border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},getAxisLimits:ac,createTrendLine:Qb,getDashStyle:Eb,axisLabelAdder:jc,chartAPI:Bb,dataSetDefStore:w,createDialog:ec,isCanvasElemSupported:function(){var t=F.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},componentDispose:n,getSvgDataurl:function(t,e){B(t,(function(t){e("data:image/svg+xml;base64,"+q.btoa(q.unescape(encodeURIComponent('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+t))))}))},removeCrossDomainImages:Qa,getBrowserDetails:Hb,dataurlToBlob:Tb,downloadCharts:function(t,e,i,n,r){e?wb(t,e,i):f(n,r)}})}]),window.FusionCharts&&window.FusionCharts.register("module",["private","vendor.redraphael",function(){var t,e=this.hcLib,i=window.Raphael;!function(){!function(t,e){var i,n,r=/[\.\/]/,o=function(){},a=function(t,e){return t-e},s={n:{}},l=function(t,e){t=String(t);var r,o=n,s=Array.prototype.slice.call(arguments,2),c=l.listeners(t),h=0,d=[],u={},p=[],f=i;i=t;
23for(var g=n=0,m=c.length;g<m;g++)"zIndex"in c[g]&&(d.push(c[g].zIndex),0>c[g].zIndex&&(u[c[g].zIndex]=c[g]));for(d.sort(a);0>d[h];)if(r=u[d[h++]],p.push(r.apply(e,s)),n)return n=o,p;for(g=0;g<m;g++)if("zIndex"in(r=c[g]))if(r.zIndex==d[h]){if(p.push(r.apply(e,s)),n)break;do{if((r=u[d[++h]])&&p.push(r.apply(e,s)),n)break}while(r)}else u[r.zIndex]=r;else if(p.push(r.apply(e,s)),n)break;return n=o,i=f,p.length?p:null};l._events=s,l.listeners=function(t){t=t.split(r);var e,i,n,o,a,l,c,h=s,d=[h],u=[];for(n=0,o=t.length;n<o;n++){for(c=[],a=0,l=d.length;a<l;a++)for(e=[(h=d[a].n)[t[n]],h["*"]],i=2;i--;)(h=e[i])&&(c.push(h),u=u.concat(h.f||[]));d=c}return u},l.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var i=t.split(r),n=s,a=0,l=i.length;a<l;a++)n=(n=n.n).hasOwnProperty(i[a])&&n[i[a]]||(n[i[a]]={n:{}});for(n.f=n.f||[],a=0,l=n.f.length;a<l;a++)if(n.f[a]==e)return o;return n.f.push(e),function(t){+t==+t&&(e.zIndex=+t)}},l.f=function(t){var e=[].slice.call(arguments,1);return function(){l.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},l.stop=function(){n=1},l.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(i):i},l.nts=function(){return i.split(r)},l.off=l.unbind=function(t,e){if(t){var i,n,o,a,c,h,d=t.split(r),u=[s];for(a=0,c=d.length;a<c;a++)for(h=0;h<u.length;h+=o.length-2){if(o=[h,1],i=u[h].n,"*"!=d[a])i[d[a]]&&o.push(i[d[a]]);else for(n in i)i.hasOwnProperty(n)&&o.push(i[n]);u.splice.apply(u,o)}for(a=0,c=u.length;a<c;a++)for(i=u[a];i.n;){if(e){if(i.f){for(h=0,d=i.f.length;h<d;h++)if(i.f[h]==e){i.f.splice(h,1);break}!i.f.length&&delete i.f}for(n in i.n)if(i.n.hasOwnProperty(n)&&i.n[n].f){for(h=0,d=(o=i.n[n].f).length;h<d;h++)if(o[h]==e){o.splice(h,1);break}!o.length&&delete i.n[n].f}}else for(n in delete i.f,i.n)i.n.hasOwnProperty(n)&&i.n[n].f&&delete i.n[n].f;i=i.n}}else l._events=s={n:{}}},l.once=function(t,e){var i=function(){return l.unbind(t,i),e.apply(this,arguments)};return l.on(t,i)}
23,l.version="0.4.2",l.toString=function(){return"You are running Eve 0.4.2"},"undefined"!=typeof module&&module.exports?module.exports=l:e||"undefined"==typeof define?t.eve=l:define("eve",[],(function(){return l}))}(this,!0),function(t,e){!!0&&"function"==typeof define&&define.amd?define(["eve"],(function(i){return e(t,i)})):e(t,t.eve)}(this,(function(e,i){function n(t){var e,r;return void 0===n._url&&(n._url=""),n.is(t,"function")?g?t():i.on("raphael.DOMload",t):n.is(t,b)?n._engine.create[m](n,t.splice(0,3+n.is(t[0],v))).add(t):(e=Array.prototype.slice.call(arguments,0),n.is(e[e.length-1],"function")?(r=e.pop(),g?r.call(n._engine.create[m](n,e)):i.on("raphael.DOMload",(function(){r.call(n._engine.create[m](n,e))}))):n._engine.create[m](n,arguments))}function r(){return this.hex}function o(t,e){for(var i=[],n=0,r=t.length;r-2*!e>n;n+=2){var o=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?r-4==n?o[3]={x:+t[0],y:+t[1]}:r-2==n&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==n?o[3]=o[2]:n||(o[0]={x:+t[n],y:+t[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i}function a(t,e,i,n,r,o,a,s,l){null==l&&(l=1),l=(1<l?1:0>l?0:l)/2;for(var c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,u=0;12>u;u++){var p=(f=l*c[u]+l)*(f*(-3*t+9*i-9*r+3*a)+6*t-12*i+6*r)-3*t+3*i,f=f*(f*(-3*e+9*n-9*o+3*s)+6*e-12*n+6*o)-3*e+3*n;d=d+h[u]*Y(p*p+f*f)}return l*d}function s(t,e,i,n,r,o,s,l,c){if(!(0>c||a(t,e,i,n,r,o,s,l)<c)){var h,d=.5,u=1-d;for(h=a(t,e,i,n,r,o,s,l,u);.01<z(h-c);)h=a(t,e,i,n,r,o,s,l,u+=(h<c?1:-1)*(d/=2));return u}}function l(t,e,i){t=n._path2curve(t),e=n._path2curve(e);for(var r,o,s,l,c,h,d,u,p,f,g=i?0:[],m=0,v=t.length;m<v;m++)if("M"==(p=t[m])[0])r=c=p[1],o=h=p[2];else{"C"==p[0]?(p=[r,o].concat(p.slice(1)),r=p[6],o=p[7]):(p=[r,o,r,o,c,h,c,h],r=c,o=h);for(var b=0,y=e.length;b<y;b++)if("M"==(f=e[b])[0])s=d=f[1],l=u=f[2];else{var x;"C"==f[0]?(f=[s,l].concat(f.slice(1)),s=f[6],l=f[7]):(f=[s,l,s,l,d,u,d,u],s=d,l=u);var w=p,_=f;x=i;var C=n.bezierBBox(w),S=n.bezierBBox(_);if(n.isBBoxIntersect(C,S)){C=a.apply(0,w),S=a.apply(0,_),C=H(~~(C/5),1),S=H(~~(S/5),1);for(var k=[],A=[],T={},L=x?0:[],D=0;D<C+1;D++){var E=n.findDotsAtSegment.apply(n,w.concat(D/C));k.push({x:E.x,y:E.y,t:D/C})}for(D=0;D<S+1;D++)E=n.findDotsAtSegment.apply(n,_.concat(D/S)),A.push({x:E.x,y:E.y,t:D/S});for(D=0;D<C;D++)for(w=0;w<S;w++){var P,I=k[D],M=k[D+1],O=(_=A[w],E=A[w+1],.001>z(M.x-I.x)?"y":"x"),F=.001>z(E.x-_.x)?"y":"x";P=I.x;var R=I.y,B=M.x,N=M.y,j=_.x,$=_.y,V=E.x,q=E.y;if(H(P,B)<W(j,V)||W(P,B)>H(j,V)||H(R,N)<W($,q)||W(R,N)>H($,q))P=void 0;else{var U=(P*N-R*B)*(j-V)-(P-B)*(j*q-$*V),G=(P*N-R*B)*($-q)-(R-N)*(j*q-$*V);if(Y=(P-B)*($-q)-(R-N)*(j-V)){G=G/Y;var Y=+(U=U/Y).toFixed(2),X=+G.toFixed(2);P=Y<+W(P,B).toFixed(2)||Y>+H(P,B).toFixed(2)||Y<+W(j,V).toFixed(2)||Y>+H(j,V).toFixed(2)||X<+W(R,N).toFixed(2)||X>+H(R,N).toFixed(2)||X<+W($,q).toFixed(2)||X>+H($,q).toFixed(2)?void 0:{x:U,y:G}}else P=void 0}P&&T[P.x.toFixed(4)]!=P.y.toFixed(4)&&(T[P.x.toFixed(4)]=P.y.toFixed(4),I=I.t+z((P[O]-I[O])/(M[O]-I[O]))*(M.t-I.t),_=_.t+z((P[F]-_[F])/(E[F]-_[F]))*(E.t-_.t),0<=I&&1.001>=I&&0<=_&&1.001>=_&&(x?L++:L.push({x:P.x,y:P.y,t1:W(I,1),t2:W(_,1)})))}x=L}else x=x?0:[];if(i)g+=x;else{for(C=0,S=x.length;C<S;C++)x[C].segment1=m,x[C].segment2=b,x[C].bez1=p,x[C].bez2=f;g=g.concat(x)}}}return g}function c(t,e,i,n,r,o){null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+n,this.e=+r,this.f=+o):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function h(){return this.x+" "+this.y+" "+this.width+" \xd7 "+this.height}function d(t,e,i,n,r,o){function a(t,e){var i,n,r,o;for(r=t,n=0;8>n;n++){if(z(o=((c*r+l)*r+s)*r-t)<e)return r;if(1e-6>z(i=(3*c*r+2*l)*r+s))break;r-=o/i}if((r=t)<(i=0))return i;if(r>(n=1))return n;for(;i<n&&!(z((o=((c*r+l)*r+s)*r)-t)<e);)t>o?i=r:n=r,r=(n-i)/2+i;return r}var s=3*e,l=3*(n-e)-s,c=1-s-l,h=3*i,d=3*(r-i)-h,u=1-h-d;return function(t,e){var i=a(t,e);return((u*i+d)*i+h)*i}(t,1/(200*o))}function u(t,e){var i=[],n={};if(this.ms=e,this.times=1,t){for(var r in t)t.hasOwnProperty(r)&&(n[j(r)]=t[r],i.push(j(r)));i.sort(mt)}this.anim=n,this.top=i[i.length-1],this.percents=i}function p(t,e,r,o,a,s){r=j(r);var l,h,u,p,f,g,m=t.ms,b={},y={},x={};if(o)for(g=0,_=xe.length;g<_;g++){var w=xe[g];if(w.el.id==e.id&&w.anim==t){w.percent!=r?(xe.splice(g,1),u=1):h=w,e.attr(w.totalOrigin);break}}else o=+y;g=0;for(var _=t.percents.length;g<_;g++){if(t.percents[g]==r||t.percents[g]>
23o*t.top){r=t.percents[g],f=t.percents[g-1]||0,m=m/t.top*(r-f),p=t.percents[g+1],l=t.anim[r];break}o&&e.attr(t.anim[t.percents[g]])}if(l){if(h)h.initstatus=o,h.start=new Date-h.ms*o;else{for(var C in l)if(l.hasOwnProperty(C)&&(ft.hasOwnProperty(C)||e.ca[C]))switch(b[C]=e.attr(C),null==b[C]&&(b[C]=pt[C]),y[C]=l[C],ft[C]){case v:x[C]=(y[C]-b[C])/m;break;case"colour":b[C]=n.getRGB(b[C]),g=n.getRGB(y[C]),x[C]={r:(g.r-b[C].r)/m,g:(g.g-b[C].g)/m,b:(g.b-b[C].b)/m};break;case"path":for(w=(g=Gt(b[C],y[C]))[1],b[C]=g[0],x[C]=[],g=0,_=b[C].length;g<_;g++){x[C][g]=[0];for(var S=1,k=b[C][g].length;S<k;S++)x[C][g][S]=(w[g][S]-b[C][g][S])/m}break;case"transform":if(g=e._,_=Zt(g[C],y[C]))for(b[C]=_.from,y[C]=_.to,x[C]=[],x[C].real=!0,g=0,_=b[C].length;g<_;g++)for(x[C][g]=[b[C][g][0]],S=1,k=b[C][g].length;S<k;S++)x[C][g][S]=(y[C][g][S]-b[C][g][S])/m;else _=e.matrix||new c,g={_:{transform:g.transform},getBBox:function(){return e.getBBox(1)}},b[C]=[_.a,_.b,_.c,_.d,_.e,_.f],Jt(g,y[C]),y[C]=g._.transform,x[C]=[(g.matrix.a-_.a)/m,(g.matrix.b-_.b)/m,(g.matrix.c-_.c)/m,(g.matrix.d-_.d)/m,(g.matrix.e-_.e)/m,(g.matrix.f-_.f)/m];break;case"csv":if(_=N(l[C]).split(it),w=N(b[C]).split(it),"clip-rect"==C)for(b[C]=w,x[C]=[],g=w.length;g--;)x[C][g]=(_[g]-b[C][g])/m;y[C]=_;break;default:for(_=[].concat(l[C]),w=[].concat(b[C]),x[C]=[],g=e.ca[C].length;g--;)x[C][g]=((_[g]||0)-(w[g]||0))/m}if(g=l.easing,!(C=n.easing_formulas[g]))if((C=N(g).match(ot))&&5==C.length){var A=C;C=function(t){return d(t,+A[1],+A[2],+A[3],+A[4],m)}}else C=bt;if(w={anim:t,percent:r,timestamp:g=l.start||t.start||+new Date,start:g+(t.del||0),status:0,initstatus:o||0,stop:!1,ms:m,easing:C,from:b,diff:x,to:y,el:e,callback:l.callback,prev:f,next:p,repeat:s||t.times,origin:e.attr(),totalOrigin:a},xe.push(w),o&&!h&&!u&&(w.stop=!0,w.start=new Date-m*o,1==xe.length))return _e();u&&(w.start=new Date-w.ms*o),1==xe.length&&we(_e)}i("raphael.anim.start."+e.id,e,t)}}function f(t){for(var e=0;e<xe.length;e++)xe[e].el.paper==t&&xe.splice(e--,1)}n.upgrade="1.0.0",n.version="2.1.0",n.eve=i,t=n;var g,m="apply",v="number",b="array",w=Array.prototype.slice,_=Array.prototype.splice,C=function(){}.hasOwnProperty("prototype"),S={doc:document,win:e},k=Object.prototype.hasOwnProperty.call(S.win,"Raphael"),A=S.win.Raphael,T=S.doc,L=S.win,D=n.supportsTouch="createTouch"in T,E=n.supportsOnlyTouch=D&&!(L.navigator.maxTouchPoints||L.navigator.msMaxTouchPoints),P=function(){};n.ca=n.customAttributes=P.prototype;var I=function(){this.ca=this.customAttributes=new P,this._CustomAttributes=function(){},this._CustomAttributes.prototype=this.ca,this._elementsById={},this.id=n._oid++,i("raphael.new",this)},M=n.fn=I.prototype=n.prototype,O={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},F="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel dragstart dragmove dragend".split(" "),R=n._touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"}
23,B=n._dragEventMap={dragstart:"mousedown",dragmove:"mousemove",dragend:"mouseup"},N=L.String,j=L.parseFloat,$=L.parseInt,V=L.Math,H=V.max,W=V.min,z=V.abs,q=V.pow,U=V.cos,G=V.sin,Y=V.sqrt,X=V.round,J=V.PI,K=J/180,Z=180/J,Q=N.prototype.toLowerCase,tt=N.prototype.toUpperCase,et=L.Object.prototype.toString,it=/[, ]+/,nt=/\{(\d+)\}/g;n._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i
24;var rt=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,ot=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,at=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,st=/,?([achlmqrstvxz]),?/gi,lt=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,ct=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,ht=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi;n._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var dt={NaN:1,Infinity:1,"-Infinity":1},ut={hs:1,rg:1},pt=n._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":"",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,"vertical-align":"middle",opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},ft=n._availableAnimAttrs={blur:v,"clip-rect":"csv","clip-path":"path",cx:v,cy:v,fill:"colour","fill-opacity":v,"font-size":v,height:v,opacity:v,path:"path",r:v,rx:v,ry:v,stroke:"colour","stroke-opacity":v,"stroke-width":v,transform:"transform",width:v,x:v,y:v},gt={},mt=function(t,e){return j(t)-j(e)},vt=function(){},bt=function(t){return t},yt=n._rectPath=function(t,e,i,n,r){return r?[["M",t+r,e],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",i,0],["l",0,n],["l",-i,0],["z"]]},xt=function(t,e,i,n){return null==n&&(n=i),[["M",t,e],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]]},wt=n._getPath={group:function(){return!1},path:function(t){return t.attr("path")},circle:function(t){return t=t.attrs,xt(t.cx,t.cy,t.r)},ellipse:function(t){return t=t.attrs,xt(t.cx,t.cy,t.rx,t.ry)},rect:function(t){return t=t.attrs,yt(t.x,t.y,t.width,t.height,t.r)},image:function(t){return t=t.attrs,yt(t.x,t.y,t.width,t.height)},text:function(t){return t=t._getBBox(),yt(t.x,t.y,t.width,t.height)}},_t=n.mapPath=function(t,e){if(!e)return t;var i,n,r,o,a,s,l;for(r=0,a=(t=Gt(t)).length;r<a;r++)for(o=1,s=(l=t[r]).length;o<s;o+=2)i=e.x(l[o],l[o+1]),n=e.y(l[o],l[o+1]),l[o]=i,l[o+1]=n;return t};n.pick=function(){for(var t,e=0,i=arguments.length;e<i;e+=1)if((t=arguments[e])||!1===t||0===t)return t};var Ct=n._lastArgIfGroup=function(t,e){var i=t.length-1,r=t[i];if(r&&r.constructor===n.el.constructor&&"group"===r.type)return e&&(t[i]=void 0,delete t[i],_.call(t,i,1)),r}
24,St=n._serializeArgs=function(t){var e,i,r=t[0];if(n.is(r,"object")&&!n.is(r,"array")&&"group"!==r.type)for(e=r,r.path&&(r=r.path)&&!n.is(r,"string")&&n.is(r[0],b),r=1,i=arguments.length;r<i;r+=2)e[arguments[r]]||(e[arguments[r]]=arguments[r+1]);else for(e={},r=1,i=arguments.length;r<i;r+=2)e[arguments[r]]=t[(r-1)/2]||arguments[r+1];return e},kt=n.merge=function(t,e,i,n,r){var o,a,s,l;if(r?(n.push(t),r.push(e)):(n=[t],r=[e]),e instanceof Array)for(o=0;o<e.length;o+=1){try{a=t[o],s=e[o]}catch(t){continue}"object"!=typeof s?i&&void 0===s||(t[o]=s):(null!==a&&"object"==typeof a||(a=t[o]=s instanceof Array?[]:{}),-1!==(l=checkCyclicRef(s,r))?a=t[o]=n[l]:kt(a,s,i,n,r))}else for(o in e){try{a=t[o],s=e[o]}catch(t){continue}null!==s&&"object"==typeof s?"[object Object]"===(l=et.call(s))?(null!==a&&"object"==typeof a||(a=t[o]={}),-1!==(l=checkCyclicRef(s,r))?a=t[o]=n[l]:kt(a,s,i,n,r)):"[object Array]"===l?(null!==a&&a instanceof Array||(a=t[o]=[]),-1!==(l=checkCyclicRef(s,r))?a=t[o]=n[l]:kt(a,s,i,n,r)):t[o]=s:t[o]=s}return t};n.extend=function(t,e,i){return"object"!=typeof t&&"object"!=typeof e?null:("object"!=typeof e||null===e||("object"!=typeof t&&(t=e instanceof Array?[]:{}),kt(t,e,i)),t)};var At=n.is=function(t,e){return"finite"==(e=Q.call(e))?!dt.hasOwnProperty(+t):e==b?t instanceof Array:("object"!==e||null!=t)&&("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||et.call(t).slice(8,-1).toLowerCase()==e)};n.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,(function(t){var e=16*V.random()|0;return("x"==t?e:3&e|8).toString(16)}));var Tt=n.clone=C?function(t){if(Object(t)!==t)return t;var e,i=new t.constructor;for(e in t)"prototype"!==e&&t.hasOwnProperty(e)&&(i[e]=Tt(t[e]));return i}:function(t){if(Object(t)!==t)return t;var e,i=new t.constructor;for(e in t)t.hasOwnProperty(e)&&(i[e]=Tt(t[e]));return i};if(n._g=S,n.type=L.ENABLE_RED_CANVAS&&(L.CanvasRenderingContext2D||T.createElement("canvas").getContext)?"CANVAS":L.SVGAngle||T.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==n.type){var Lt,Dt=T.createElement("div");if(Dt.innerHTML='<v:shape adj="1"/>',(Lt=Dt.firstChild).style.behavior="url(#default#VML)",!Lt||"object"!=typeof Lt.adj)return n.type="";Dt=null}n.svg=!((n.vml="VML"==n.type)||(n.canvas="CANVAS"==n.type)),n._Paper=I,n._id=0,n._oid=0,n.angle=function(t,e,i,r,o,a){return null==o?(e-=r,(t-=i)||e?(V.atan2(-e,-t)*Z+540)%360:0):n.angle(t,e,o,a)-n.angle(i,r,o,a)},n.rad=function(t){return t%360*K},n.deg=function(t){return t*Z%360},n.snapTo=function(t,e,i){var n;if(At(i,"finite")||(i=10),At(t,b)){for(n=t.length;n--;)if(z(t[n]-e)<=i)return t[n]}else{if((n=e%(t=+t))<i)return e-n;if(n>t-i)return e-n+t}return e},n.setWindow=function(t){i("raphael.setWindow",n,S.win,t),L=S.win=t,T=S.doc=S.win.document,n._engine.initWin&&n._engine.initWin(S.win)};var Et=function(t){if(n.vml){var e,i=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write("<body>"),r.close(),e=r.body}catch(t){e=createPopup().document.body}var o=e.createTextRange();Et=Rt((function(t){try{e.style.color=N(t).replace(i,"");var n=o.queryCommandValue("ForeColor");return"#"+("000000"+((255&n)<<16|65280&n|(16711680&n)>>>16).toString(16)).slice(-6)}catch(t){return"none"}}))}else{var a=S.doc.createElement("i");a.title="Rapha\xebl Colour Picker",a.style.display="none",S.doc.body.appendChild(a),Et=Rt((function(t){return a.style.color=t,S.doc.defaultView.getComputedStyle(a,"").getPropertyValue("color")}))}return Et(t)},Pt=function(){return"hsb("+[this.h,this.s,this.b]+")"},It=function(){return"hsl("+[this.h,this.s,this.l]+")"},Mt=function(){return this.hex},Ot=function(t,e,i){return null==e&&At(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),null==e&&At(t,"string")&&(t=(i=n.getRGB(t)).r,e=i.g,i=i.b),(1<t||1<e||1<i)&&(t/=255,e/=255,i/=255),[t,e,i]},Ft=function(t,e,i,r){var o={r:t*=255,g:e*=255,b:i*=255,hex:n.rgb(t,e,i),toString:Mt};return At(r,"finite")&&(o.opacity=r),o};n.color=function(t){var e;return n.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):n.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.hex=e.hex):(n.is(t,"string")&&(t=n.getRGB(t)),n.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=Mt,t}
24,n.hsb2rgb=function(t,e,i,n){var r,o,a;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,n=(t=t.h).o),i=r=o=i-(a=i*e),i+=[a,e=a*(1-z((t=360*t%360/60)%2-1)),0,0,e,a][t=~~t],r+=[e,a,a,e,0,0][t],o+=[0,0,e,a,a,e][t],Ft(i,r,o,n)},n.hsl2rgb=function(t,e,i,n){var r,o,a;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(1<t||1<e||1<i)&&(t/=360,e/=100,i/=100),i=r=o=i-(a=2*e*(.5>i?i:1-i))/2,i+=[a,e=a*(1-z((t=360*t%360/60)%2-1)),0,0,e,a][t=~~t],r+=[e,a,a,e,0,0][t],o+=[0,0,e,a,a,e][t],Ft(i,r,o,n)},n.rgb2hsb=function(t,e,i){var n,r;return t=(i=Ot(t,e,i))[0],e=i[1],i=i[2],{h:t=((0==(r=(n=H(t,e,i))-W(t,e,i))?null:n==t?(e-i)/r:n==e?(i-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/n,b:n,toString:Pt}},n.rgb2hsl=function(t,e,i){var n,r,o;return t=(i=Ot(t,e,i))[0],e=i[1],i=i[2],t=((0==(o=(n=H(t,e,i))-(r=W(t,e,i)))?null:n==t?(e-i)/o:n==e?(i-t)/o+2:(t-e)/o+4)+360)%6*60/360,n=(n+r)/2,{h:t,s:0==o?0:.5>n?o/(2*n):o/(2-2*n),l:n,toString:It}},n._path2string=function(){return this.join(",").replace(st,"$1")};var Rt=n._cacher=function(t,e,i){function n(){var r=(s=w.call(arguments,0)).join("\u2400"),o=n.cache=n.cache||{},a=n.count=n.count||[];if(o.hasOwnProperty(r)){t:for(var s=a,l=(a=r,0),c=s.length;l<c;l++)if(s[l]===a){s.push(s.splice(l,1)[0]);break t}return i?i(o[r]):o[r]}return 1e3<=a.length&&delete o[a.shift()],a.push(r),o[r]=t[m](e,s),i?i(o[r]):o[r]}return n};n._preload=function(t,e){var i=T.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){e.call(this),this.onload=null,T.body.removeChild(this)},i.onerror=function(){T.body.removeChild(this)},T.body.appendChild(i),i.src=t},n.getRGB=Rt((function(t){var e,i,o,a,s;return t&&At(t,"object")&&"opacity"in t&&(e=t.opacity),!t||(t=N(t)).indexOf("-")+1?{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r}:"none"==t?{r:-1,g:-1,b:-1,hex:"none",toString:r}:(!ut.hasOwnProperty(t.toLowerCase().substring(0,2))&&"#"!==t.charAt()&&(t=Et(t)),(t=t.match(rt))?(t[2]&&(a=$(t[2].substring(5),16),o=$(t[2].substring(3,5),16),i=$(t[2].substring(1,3),16)),t[3]&&(a=$((s=t[3].charAt(3))+s,16),o=$((s=t[3].charAt(2))+s,16),i=$((s=t[3].charAt(1))+s,16)),t[4]&&(s=t[4].split(at),i=j(s[0]),"%"==s[0].slice(-1)&&(i*=2.55),o=j(s[1]),"%"==s[1].slice(-1)&&(o*=2.55),a=j(s[2]),"%"==s[2].slice(-1)&&(a*=2.55),"rgba"==t[1].toLowerCase().slice(0,4)&&(e=j(s[3])),s[3]&&"%"==s[3].slice(-1)&&(e/=100)),t[5]?(s=t[5].split(at),i=j(s[0]),"%"==s[0].slice(-1)&&(i*=2.55),o=j(s[1]),"%"==s[1].slice(-1)&&(o*=2.55),a=j(s[2]),"%"==s[2].slice(-1)&&(a*=2.55),"deg"!=s[0].slice(-3)&&"\xb0"!=s[0].slice(-1)||(i/=360),"hsba"==t[1].toLowerCase().slice(0,4)&&(e=j(s[3])),s[3]&&"%"==s[3].slice(-1)&&(e/=100),n.hsb2rgb(i,o,a,e)):t[6]?(s=t[6].split(at),i=j(s[0]),"%"==s[0].slice(-1)&&(i*=2.55),o=j(s[1]),"%"==s[1].slice(-1)&&(o*=2.55),a=j(s[2]),"%"==s[2].slice(-1)&&(a*=2.55),"deg"!=s[0].slice(-3)&&"\xb0"!=s[0].slice(-1)||(i/=360),"hsla"==t[1].toLowerCase().slice(0,4)&&(e=j(s[3])),s[3]&&"%"==s[3].slice(-1)&&(e/=100),n.hsl2rgb(i,o,a,e)):((t={r:i,g:o,b:a,toString:r}).hex="#"+(16777216|a|o<<8|i<<16).toString(16).slice(1),n.is(e,"finite")&&(t.opacity=e),t)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r})}),n),n.tintshade=Rt((function(t,e){var i,o=n.getRGB(t);return i=255,0>e&&(e*=-1,i=0),1<e&&(e=1),(i=0===e?o:{r:i-(i-o.r)*e,g:i-(i-o.g)*e,b:i-(i-o.b)*e,toString:r}).hex=n.rgb(i.r,i.g,i.b),o.error&&(i.error=o.error),"opacity"in o?(i.rgba="rgba("+[i.r,i.g,i.b,o.opacity].join()+")",i.opacity=o.opacity):i.rgba="rgb("+[i.r,i.g,i.b].join()+")",i}),n),n.hsb=Rt((function(t,e,i){return n.hsb2rgb(t,e,i).hex})),n.hsl=Rt((function(t,e,i){return n.hsl2rgb(t,e,i).hex})),n.rgb=Rt((function(t,e,i){return"#"+(16777216|i|e<<8|t<<16).toString(16).slice(1)})),n.getColor=function(t){t=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75};var e=this.hsb2rgb(t.h,t.s,t.b);return t.h+=.075,1<t.h&&(t.h=0,t.s-=.2,0>=t.s&&(this.getColor.start={h:0,s:1,b:t.b})),e.hex},n.getColor.reset=function(){delete this.start},n.parsePathString=function(t){if(!t)return null;var e=Bt(t);if(e.arr)return jt(e.arr);var i={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return n.is(t,b)&&n.is(t[0],b)&&(r=jt(t)),r.length||N(t).replace(lt,(function(t,e,n){var o=[];if(t=e.toLowerCase(),n.replace(ht,(function(t,e){e&&o.push(+e)})),"m"==t&&2<o.length&&(r.push([e].concat(o.splice(0,2))),t="l",e="m"==e?"l":"L"),"r"==t)r.push([e].concat(o));else for(;o.length>=i[t]&&(r.push([e].concat(o.splice(0,i[t]))),i[t]););})),r.toString=n._path2string,e.arr=jt(r),r},n.parseTransformString=Rt((function(t){if(!t)return null;var e=[];return n.is(t,b)&&n.is(t[0],b)&&(e=jt(t)),e.length||N(t).replace(ct,(function(t,i,n){var r=[];Q.call(i),n.replace(ht,(function(t,e){e&&r.push(+e)})),e.push([i].concat(r))})),e.toString=n._path2string,e}));var Bt=function(t){var e=Bt.ps=Bt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var i in e)e.hasOwnProperty(i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])})),e[t]};
24n.findDotsAtSegment=function(t,e,i,n,r,o,a,s,l){var c=1-l,h=(d=q(c,3))*t+3*(u=q(c,2))*l*i+3*c*l*l*r+(p=(g=l*l)*l)*a,d=d*e+3*u*l*n+3*c*l*l*o+p*s,u=t+2*l*(i-t)+g*(r-2*i+t),p=e+2*l*(n-e)+g*(o-2*n+e),f=i+2*l*(r-i)+g*(a-2*r+i),g=n+2*l*(o-n)+g*(s-2*o+n);return t=c*t+l*i,e=c*e+l*n,r=c*r+l*a,o=c*o+l*s,s=90-180*V.atan2(u-f,p-g)/J,(u>f||p<g)&&(s+=180),{x:h,y:d,m:{x:u,y:p},n:{x:f,y:g},start:{x:t,y:e},end:{x:r,y:o},alpha:s}},n.bezierBBox=function(t,e,i,r,o,a,s,l){return n.is(t,"array")||(t=[t,e,i,r,o,a,s,l]),{x:(t=Ut.apply(null,t)).min.x,y:t.min.y,x2:t.max.x,y2:t.max.y,width:t.max.x-t.min.x,height:t.max.y-t.min.y}},n.isPointInsideBBox=function(t,e,i){return e>=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},n.isBBoxIntersect=function(t,e){var i=n.isPointInsideBBox;return i(e,t.x,t.y)||i(e,t.x2,t.y)||i(e,t.x,t.y2)||i(e,t.x2,t.y2)||i(t,e.x,e.y)||i(t,e.x2,e.y)||i(t,e.x,e.y2)||i(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},n.pathIntersection=function(t,e){return l(t,e)},n.pathIntersectionNumber=function(t,e){return l(t,e,1)},n.isPointInsidePath=function(t,e,i){var r=n.pathBBox(t);
24return n.isPointInsideBBox(r,e,i)&&(1==l(t,[["M",e,i],["H",r.x2+10]],1)%2||1==l(t,[["M",e,i],["V",r.y2+10]],1)%2)},n._removedFactory=function(t){return function(){i("raphael.log",null,"Rapha\xebl: you are calling to method \u201c"+t+"\u201d of removed object",t)}};var Nt=n.pathBBox=function(t){var e=Bt(t);if(e.bbox)return e.bbox;if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,n=0,r=0,o=[],a=[],s=0,l=(t=Gt(t)).length;s<l;s++)"M"==(i=t[s])[0]?(n=i[1],r=i[2],o.push(n),a.push(r)):(n=Ut(n,r,i[1],i[2],i[3],i[4],i[5],i[6]),o=o.concat(n.min.x,n.max.x),a=a.concat(n.min.y,n.max.y),n=i[5],r=i[6]);return a={x:t=W[m](0,o),y:i=W[m](0,a),x2:o=H[m](0,o),y2:a=H[m](0,a),width:o-t,height:a-i},e.bbox=Tt(a),a},jt=function(t){return(t=Tt(t)).toString=n._path2string,t},$t=n._pathToRelative=function(t){var e=Bt(t);if(e.rel)return jt(e.rel);n.is(t,b)&&n.is(t&&t[0],b)||(t=n.parsePathString(t));var i=[],r=0,o=0,a=0,s=0,l=0;"M"==t[0][0]&&(a=r=t[0][1],s=o=t[0][2],l++,i.push(["M",r,o]));for(var c=t.length;l<c;l++){var h=i[l]=[],d=t[l];if(d[0]!=Q.call(d[0]))switch(h[0]=Q.call(d[0]),h[0]){case"a":h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=+(d[6]-r).toFixed(3),h[7]=+(d[7]-o).toFixed(3);break;case"v":h[1]=+(d[1]-o).toFixed(3);break;case"m":a=d[1],s=d[2];default:for(var u=1,p=d.length;u<p;u++)h[u]=+(d[u]-(u%2?r:o)).toFixed(3)}else for(i[l]=[],"m"==d[0]&&(a=d[1]+r,s=d[2]+o),h=0,u=d.length;h<u;h++)i[l][h]=d[h];switch(d=i[l].length,i[l][0]){case"z":r=a,o=s;break;case"h":r+=+i[l][d-1];break;case"v":o+=+i[l][d-1];break;default:r+=+i[l][d-2],o+=+i[l][d-1]}}return i.toString=n._path2string,e.rel=jt(i),i},Vt=n._pathToAbsolute=function(t){var e,i=Bt(t);if(i.abs)return jt(i.abs);if(n.is(t,b)&&n.is(t&&t[0],b)||(t=n.parsePathString(t)),!t||!t.length)return(e=["M",0,0]).toString=n._path2string,e;var r=0,a=0,s=0,l=0,c=0;e=[],"M"==t[0][0]&&(s=r=+t[0][1],l=a=+t[0][2],c++,e[0]=["M",r,a]);for(var h,d=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),u=c,p=t.length;u<p;u++){if(e.push(c=[]),(h=t[u])[0]!=tt.call(h[0]))switch(c[0]=tt.call(h[0]),c[0]){case"A":c[1]=h[1],c[2]=h[2],c[3]=h[3],c[4]=h[4],c[5]=h[5],c[6]=+(h[6]+r),c[7]=+(h[7]+a);break;case"V":c[1]=+h[1]+a;break;case"H":c[1]=+h[1]+r;break;case"R":for(var f=[r,a].concat(h.slice(1)),g=2,m=f.length;g<m;g++)f[g]=+f[g]+r,f[++g]=+f[g]+a;e.pop(),e=e.concat(o(f,d));break;case"M":s=+h[1]+r,l=+h[2]+a;default:for(g=1,m=h.length;g<m;g++)c[g]=+h[g]+(g%2?r:a)}else if("R"==h[0])f=[r,a].concat(h.slice(1)),e.pop(),e=e.concat(o(f,d)),c=["R"].concat(h.slice(-2));else for(f=0,g=h.length;f<g;f++)c[f]=h[f];switch(c[0]){case"Z":r=s,a=l;break;case"H":r=c[1];break;case"V":a=c[1];break;case"M":s=c[c.length-2],l=c[c.length-1];default:r=c[c.length-2],a=c[c.length-1]}}return e.toString=n._path2string,i.abs=jt(e),e},Ht=function(t,e,i,n){return[t,e,i,n,i,n]},Wt=function(t,e,i,n,r,o){var a=1/3,s=2/3;return[a*t+s*i,a*e+s*n,a*r+s*i,a*o+s*n,r,o]},zt=function(t,e,i,n,r,o,a,s,l,c){var h,d=120*J/180,u=K*(+r||0),p=[],f=Rt((function(t,e,i){return{x:t*U(i)-e*G(i),y:t=t*G(i)+e*U(i)}}));if(c)m=c[0],h=c[1],o=c[2],g=c[3];else{t=(h=f(t,e,-u)).x,e=h.y,s=(h=f(s,l,-u)).x,l=h.y,U(K*r),G(K*r),1<(g=(h=(t-s)/2)*h/(i*i)+(m=(e-l)/2)*m/(n*n))&&(i*=g=Y(g),n*=g),o=(g=(o==a?-1:1)*Y(z(((g=i*i)*(v=n*n)-g*m*m-v*h*h)/(g*m*m+v*h*h))))*i*m/n+(t+s)/2;var g=g*-n*h/i+(e+l)/2,m=V.asin(((e-g)/n).toFixed(9));h=V.asin(((l-g)/n).toFixed(9)),0>(m=t<o?J-m:m)&&(m=2*J+m),0>(h=s<o?J-h:h)&&(h=2*J+h),a&&m>h&&(m-=2*J),!a&&h>m&&(h-=2*J)}if(z(h-m)>d){p=h;var v=s,b=l;s=o+i*U(h=m+d*(a&&h>m?1:-1)),l=g+n*G(h),p=zt(s,l,i,n,r,0,a,v,b,[h,p,o,g])}if(o=h-m,r=U(m),d=G(m),a=U(h),h=G(h),i=4/3*i*(o=V.tan(o/4)),o*=4/3*n,n=[t,e],t=[t+i*d,e-o*r],e=[s+i*h,l-o*a],s=[s,l],t[0]=2*n[0]-t[0],t[1]=2*n[1]-t[1],c)return[t,e,s].concat(p);for(p=[t,e,s].concat(p).join().split(","),c=[],s=0,l=p.length;s<l;s++)c[s]=s%2?f(p[s-1],p[s],u).y:f(p[s],p[s+1],u).x;return c},qt=function(t,e,i,n,r,o,a,s,l){var c=1-l;return{x:q(c,3)*t+3*q(c,2)*l*i+3*c*l*l*r+q(l,3)*a,y:q(c,3)*e+3*q(c,2)*l*n+3*c*l*l*o+q(l,3)*s}},Ut=Rt((function(t,e,i,n,r,o,a,s){var l=2*(i-t)-2*(r-i),c=t-i,h=(-l+Y(l*l-4*(d=r-2*i+t-(a-2*r+i))*c))/2/d,d=(-l-Y(l*l-4*d*c))/2/d,u=[e,s],p=[t,a];
24return"1e12"<z(h)&&(h=.5),"1e12"<z(d)&&(d=.5),0<h&&1>h&&(h=qt(t,e,i,n,r,o,a,s,h),p.push(h.x),u.push(h.y)),0<d&&1>d&&(h=qt(t,e,i,n,r,o,a,s,d),p.push(h.x),u.push(h.y)),h=(-(l=2*(n-e)-2*(o-n))+Y(l*l-4*(d=o-2*n+e-(s-2*o+n))*(c=e-n)))/2/d,d=(-l-Y(l*l-4*d*c))/2/d,"1e12"<z(h)&&(h=.5),"1e12"<z(d)&&(d=.5),0<h&&1>h&&(h=qt(t,e,i,n,r,o,a,s,h),p.push(h.x),u.push(h.y)),0<d&&1>d&&(h=qt(t,e,i,n,r,o,a,s,d),p.push(h.x),u.push(h.y)),{min:{x:W[m](0,p),y:W[m](0,u)},max:{x:H[m](0,p),y:H[m](0,u)}}})),Gt=n._path2curve=Rt((function(t,e){var i=!e&&Bt(t);if(!e&&i.curve)return jt(i.curve);for(var n=Vt(t),r=e&&Vt(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(t,e){if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(t[0]in{T:1,Q:1}||(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(zt[m](0,[e.x,e.y].concat(t.slice(1))));break;case"S":t=["C",e.x+(e.x-(e.bx||e.x)),e.y+(e.y-(e.by||e.y))].concat(t.slice(1));break;case"T":e.qx=e.x+(e.x-(e.qx||e.x)),e.qy=e.y+(e.y-(e.qy||e.y)),t=["C"].concat(Wt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(Wt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(Ht(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(Ht(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(Ht(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(Ht(e.x,e.y,e.X,e.Y))}return t},l=function(t,e){if(7<t[e].length){t[e].shift();for(var i=t[e];i.length;)t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),d=H(n.length,r&&r.length||0)}},c=function(t,e,i,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],d=H(n.length,r&&r.length||0))},h=0,d=H(n.length,r&&r.length||0);h<d;h++){n[h]=s(n[h],o),l(n,h),r&&(r[h]=s(r[h],a)),r&&l(r,h),c(n,r,o,a,h),c(r,n,a,o,h);var u=n[h],p=r&&r[h],f=u.length,g=r&&p.length;o.x=u[f-2],o.y=u[f-1],o.bx=j(u[f-4])||o.x,o.by=j(u[f-3])||o.y,a.bx=r&&(j(p[g-4])||a.x),a.by=r&&(j(p[g-3])||a.y),a.x=r&&p[g-2],a.y=r&&p[g-1]}return r||(i.curve=jt(n)),r?[n,r]:n}),null,jt);n._parseDots=Rt((function(t){for(var e=[],i=0,r=t.length;i<r;i++){var o={},a=t[i].match(/^([^:]*):?([\d\.]*)/);if(o.color=n.getRGB(a[1]),o.color.error)return null;o.opacity=o.color.opacity,o.color=o.color.hex,a[2]&&(o.offset=a[2]+"%"),e.push(o)}for(i=1,r=e.length-1;i<r;i++)if(!e[i].offset){for(t=j(e[i-1].offset||0),a=0,o=i+1;o<r;o++)if(e[o].offset){a=e[o].offset;break}for(a||(a=100,o=r),a=((a=j(a))-t)/(o-i+1);i<o;i++)t+=a,e[i].offset=t+"%"}return e}));var Yt=n._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)};n._tofront=function(t,e){return e.top!==t&&(Yt(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t,!0)},n._toback=function(t,e){return e.bottom!==t&&(Yt(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t,!0)},n._insertafter=function(t,e,i,n){Yt(t,i),t.parent=n,e===n.top&&(n.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},n._insertbefore=function(t,e,i,n){Yt(t,i),t.parent=n,e===n.bottom&&(n.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e};var Xt=n.toMatrix=function(t,e){var i=Nt(t),n={_:{transform:""},getBBox:function(){return i}};return Jt(n,e),n.matrix};n.transformPath=function(t,e){return _t(t,Xt(t,e))};var Jt=n._extractTransform=function(t,e){if(null==e)return t._.transform;e=N(e).replace(/\.{3}|\u2026/g,t._.transform||"");var i=n.parseTransformString(e),r=0,o=0,a=0,s=1,l=1,h=t._;a=new c;if(h.transform=i||[],i){o=0;for(var d=i.length;o<d;o++){var u,p=i[o],f=p.length,g=N(p[0]).toLowerCase(),m=p[0]!=g,v=m?a.invert():0;"t"==g&&3==f?m?(f=v.x(0,0),g=v.y(0,0),m=v.x(p[1],p[2]),v=v.y(p[1],p[2]),a.translate(m-f,v-g)):a.translate(p[1],p[2]):"r"==g?2==f?(u=u||t.getBBox(1),a.rotate(p[1],u.x+u.width/2,u.y+u.height/2),r+=p[1]):4==f&&(m?(m=v.x(p[2],p[3]),v=v.y(p[2],p[3]),a.rotate(p[1],m,v)):a.rotate(p[1],p[2],p[3]),r+=p[1]):"s"==g?2==f||3==f?(u=u||t.getBBox(1),a.scale(p[1],p[f-1],u.x+u.width/2,u.y+u.height/2),s*=p[1],l*=p[f-1]):5==f&&(m?(m=v.x(p[3],p[4]),v=v.y(p[3],p[4]),a.scale(p[1],p[2],m,v)):a.scale(p[1],p[2],p[3],p[4]),s*=p[1],l*=p[2]):"m"==g&&7==f&&a.add(p[1],p[2],p[3],p[4],p[5],p[6]),h.dirtyT=1,t.matrix=a}}t.matrix=a,h.sx=s,h.sy=l,h.deg=r,h.dx=o=a.e,h.dy=a=a.f,1==s&&1==l&&!r&&h.bbox?(h.bbox.x+=+o,h.bbox.y+=+a):h.dirtyT=1},Kt=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},Zt=n._equaliseTransform=function(t,e){e=N(e).replace(/\.{3}|\u2026/g,t),t=n.parseTransformString(t)||[],e=n.parseTransformString(e)||[];for(var i,r,o,a,s=H(t.length,e.length),l=[],c=[],h=0;h<s;
24h++){if(o=t[h]||Kt(e[h]),a=e[h]||Kt(o),o[0]!=a[0]||"r"==o[0].toLowerCase()&&(o[2]!=a[2]||o[3]!=a[3])||"s"==o[0].toLowerCase()&&(o[3]!=a[3]||o[4]!=a[4]))return;for(l[h]=[],c[h]=[],i=0,r=H(o.length,a.length);i<r;i++)i in o&&(l[h][i]=o[i]),i in a&&(c[h][i]=a[i])}return{from:l,to:c}};n._getContainer=function(t,e,i,r){var o;if(null!=(o=null!=r||n.is(t,"object")?t:S.doc.getElementById(t)))return o.tagName?null==e?{container:o,width:o.style.pixelWidth||o.offsetWidth,height:o.style.pixelHeight||o.offsetHeight}:{container:o,width:e,height:i}:{container:1,x:t,y:e,width:i,height:r}},n.pathToRelative=$t,n._engine={},n.path2curve=Gt,n.matrix=function(t,e,i,n,r,o){return new c(t,e,i,n,r,o)},function(t){function e(t){return t[0]*t[0]+t[1]*t[1]}function i(t){var i=Y(e(t));t[0]&&(t[0]/=i),t[1]&&(t[1]/=i)}t.add=function(t,e,i,n,r,o){var a=[[],[],[]],s=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];for(e=[[t,i,r],[e,n,o],[0,0,1]],t&&t instanceof c&&(e=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),t=0;3>t;t++)for(i=0;3>i;i++){for(n=r=0;3>n;n++)r+=s[t][n]*e[n][i];a[t][i]=r}this.a=a[0][0],this.b=a[1][0],this.c=a[0][1],this.d=a[1][1],this.e=a[0][2],this.f=a[1][2]},t.invert=function(){var t=this.a*this.d-this.b*this.c;return new c(this.d/t,-this.b/t,-this.c/t,this.a/t,(this.c*this.f-this.d*this.e)/t,(this.b*this.e-this.a*this.f)/t)},t.clone=function(){return new c(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,i,n){null==e&&(e=t),(i||n)&&this.add(1,0,0,1,i,n),this.add(t,0,0,e,0,0),(i||n)&&this.add(1,0,0,1,-i,-n)},t.rotate=function(t,e,i){t=n.rad(t),e=e||0,i=i||0;var r=+U(t).toFixed(9);t=+G(t).toFixed(9),this.add(r,t,-t,r,e,i),this.add(1,0,0,1,-e,-i)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[N.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return n.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];t.scalex=Y(e(r[0])),i(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=Y(e(r[1])),i(r[1]),t.shear/=t.scaley;var o=-r[0][1];return 0>(r=r[1][1])?(t.rotate=n.deg(V.acos(r)),0>o&&(t.rotate=360-t.rotate)):t.rotate=n.deg(V.asin(o)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){return(t=t||this.split()).isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[t.dx,t.dy]:"")+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:"")+(t.rotate?"r"+[t.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(c.prototype);var Qt=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."==navigator.vendor&&(Qt&&4>Qt[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&Qt&&8>Qt[1]?M.safari=function(){var t=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});return setTimeout((function(){t.remove()})),!0}:M.safari=vt;for(var te=function(){this.returnValue=!1},ee=function(){return this.originalEvent.preventDefault()},ie=function(){this.cancelBubble=!0},ne=function(){return this.originalEvent.stopPropagation()}
24,re=n.addEvent=S.doc.addEventListener?function(t,e,i,n){var r,o=E&&R[e]||e;return R[B[e]]&&(o=R[B[e]]),r=function(r){var o,a=S.doc.documentElement.scrollTop||S.doc.body.scrollTop,s=S.doc.documentElement.scrollLeft||S.doc.body.scrollLeft;if(D&&R.hasOwnProperty(E?e:B[e]))for(var l=0,c=r.targetTouches&&r.targetTouches.length;l<c;l++)if((o=r.targetTouches[l].target)==t||"tspan"==o.nodeName&&o.parentNode==t){o=r,(r=r.targetTouches[l]).originalEvent=o,r.preventDefault=ee,r.stopPropagation=ne;break}return i.call(n,r,r.clientX+s,r.clientY+a)},t.addEventListener(o,r,!1),function(){return t.removeEventListener(o,r,!1),!0}}:S.doc.attachEvent?function(t,e,i,n){var r=function(t){var e=(t=t||S.win.event).clientX+(S.doc.documentElement.scrollLeft||S.doc.body.scrollLeft),r=t.clientY+(S.doc.documentElement.scrollTop||S.doc.body.scrollTop);return t.preventDefault=t.preventDefault||te,t.stopPropagation=t.stopPropagation||ie,i.call(n,t,e,r)};return t.attachEvent("on"+e,r),function(){return t.detachEvent("on"+e,r),!0}}:void 0,oe=[],ae=function(t){for(var e,r=t.clientX,o=t.clientY,a=S.doc.documentElement.scrollTop||S.doc.body.scrollTop,s=S.doc.documentElement.scrollLeft||S.doc.body.scrollLeft,l=oe.length;l--;){if(e=oe[l],D&&"touchmove"===t.type){for(var c,h=t.touches.length;h--;)if((c=t.touches[h]).identifier==e.el._drag.id){r=c.clientX,o=c.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();if(!e.el.removed){var d=(h=n._engine.getNode(e.el)).nextSibling,u=h.parentNode,p=h.style.display;S.win.opera&&u.removeChild(h),h.style.display="none",c=e.el.paper.getElementByPoint(r,o),h.style.display=p,S.win.opera&&(d?u.insertBefore(h,d):u.appendChild(h)),c&&i("raphael.drag.over."+e.el.id,e.el,c),r+=s,o+=a,i("raphael.drag.move."+e.el.id,e.move_scope||e.el,r-e.el._drag.x,o-e.el._drag.y,r,o,t)}}},se=function(t){n.undragmove(ae).undragend(se),n.unmousemove(ae).unmouseup(se);for(var e,r=oe.length;r--;)(e=oe[r]).el._drag={},i("raphael.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);oe=[]},le=n.el={},ce=F.length;ce--;)!function(t){n[t]=le[t]=function(e,i){return n.is(e,"function")&&(this.events=this.events||[],this.events.push({name:t,f:e,unbind:re(this.shape||this.node||S.doc,t,e,i||this)})),this},n["un"+t]=le["un"+t]=function(e){for(var i=this.events||[],n=i.length;n--;)if(i[n].name==t&&i[n].f==e){i[n].unbind(),i.splice(n,1),!i.length&&delete this.events;break}return this}}(F[ce]);le.data=function(t,e){var r=gt[this.id]=gt[this.id]||{};if(1==arguments.length){if(n.is(t,"object")){for(var o in t)t.hasOwnProperty(o)&&this.data(o,t[o]);return this}return i("raphael.data.get."+this.id,this,r[t],t),r[t]}return r[t]=e,i("raphael.data.set."+this.id,this,e,t),this},le.removeData=function(t){return null==t?delete gt[this.id]:gt[this.id]&&delete gt[this.id][t],this},le.getData=function(){return Tt(gt[this.id]||{})};var he=[],de=function(){this.untrack=re(S.doc,"mouseup",ue,this)},ue=function(){return this.untrack(),this.untrack=null,this.fn&&this.fn.apply(this.scope||this.el,arguments)};le.mouseup=function(t,e,i){return i?(he.push(i={el:this,fn:t,scope:e}),i.unbind=re(this.shape||this.node||S.doc,"mousedown",de,i),this):n.mouseup.apply(this,arguments)},le.unmouseup=function(t){for(var e,i=he.length;i--;)he[i].el===this&&he[i].fn===t&&((e=he[i]).unbind(),e.untrack&&e.untrack(),he.splice(i,1));return e?this:n.unmouseup.apply(this,arguments)},le.hover=function(t,e,i,n){return this.mouseover(t,i).mouseout(e,n||i)},le.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var pe=[];le.drag=function(t,e,r,o,a,s){function l(l){var c=S.doc.documentElement.scrollTop||S.doc.body.scrollTop,h=S.doc.documentElement.scrollLeft||S.doc.body.scrollLeft;this._drag.x=l.clientX+h,this._drag.y=l.clientY+c,this._drag.id=l.identifier,D&&!E&&!oe.length&&n.dragmove(ae).dragend(se),!oe.length&&n.mousemove(ae).mouseup(se),oe.push({el:this,move_scope:o,start_scope:a,end_scope:s}),e&&i.on("raphael.drag.start."+this.id,e),t&&i.on("raphael.drag.move."+this.id,t),r&&i.on("raphael.drag.end."+this.id,r),i("raphael.drag.start."+this.id,a||o||this,l.clientX+h,l.clientY+c,l)}return this._drag={},pe.push({el:this,start:l}),D&&!E&&this.dragstart(l),this.mousedown(l),this},le.onDragOver=function(t){t?i.on("raphael.drag.over."+this.id,t):i.unbind("raphael.drag.over."+this.id
24)},le.undrag=function(){for(var t=pe.length;t--;)pe[t].el==this&&(this.unmousedown(pe[t].start),pe.splice(t,1),i.unbind("raphael.drag.*."+this.id));!pe.length&&n.unmousemove(ae).unmouseup(se),delete this._drag},le.follow=function(t,e,i){return t.removed||t.constructor!==n.el.constructor||(t.followers.push({el:this,stalk:i={before:"insertBefore",after:"insertAfter"}[i],cb:e}),i&&this[i](t)),this},le.unfollow=function(t){if(t.removed||t.constructor!==n.el.constructor)return this
25;for(var e=0,i=t.followers.length;e<i;e++)if(t.followers[e].el===this){t.followers.splice(e,1);break}return this},M.hide=function(){return this.canvas.style.visibility="hidden",this},M.show=function(){return this.canvas.style.visibility="",this},M.group=function(){var t=Ct(e=arguments,!0),e=n._engine.group(this,e[0],t);return this.__set__&&this.__set__.push(e),this._elementsById[e.id]=e},M.circle=function(){var t=Ct(e=arguments,!0),e=St(e,"cx",0,"cy",0,"r",0,"fill","none","stroke","#000");t=n._engine.circle(this,e,t);return this.__set__&&this.__set__.push(t),this._elementsById[t.id]=t},M.rect=function(){var t=Ct(e=arguments,!0),e=St(e,"x",0,"y",0,"width",0,"height",0,"r",0,"fill","none","stroke","#000");t=n._engine.rect(this,e,t);return this.__set__&&this.__set__.push(t),this._elementsById[t.id]=t},M.ellipse=function(){var t=Ct(e=arguments,!0),e=St(e,"x",0,"y",0,"rx",0,"ry",0,"fill","none","stroke","#000");t=n._engine.ellipse(this,e,t);return this.__set__&&this.__set__.push(t),this._elementsById[t.id]=t},M.path=function(){var t=Ct(e=arguments,!0),e=St(e,"path","","fill","none","stroke","#000");t=n._engine.path(this,e,t);return this.__set__&&this.__set__.push(t),this._elementsById[t.id]=t},M.image=function(){var t=Ct(e=arguments,!0),e=St(e,"src","","x",0,"y",0,"width",0,"height",0);return out=n._engine.image(this,e,t),this.__set__&&this.__set__.push(out),this._elementsById[out.id]=out},M.text=function(){var t=Ct(e=arguments,!0),e=St(e,"x",0,"y",0,"text","","stroke","none","fill","#000","text-anchor","middle","vertical-align","middle");t=n._engine.text(this,e,t);return this.__set__&&this.__set__.push(t),this._elementsById[t.id]=t},M.set=function(t){!n.is(t,"array")&&(t=_.call(arguments,0,arguments.length));var e=new Se(t);return this.__set__&&this.__set__.push(e),e},M.setStart=function(t){this.__set__=t||this.set()},M.setFinish=function(t){return t=this.__set__,delete this.__set__,t},M.setSize=function(t,e){return n._engine.setSize.call(this,t,e)},M.setViewBox=function(t,e,i,r,o){return n._engine.setViewBox.call(this,t,e,i,r,o)},M.top=M.bottom=null,M.raphael=n,M.getElementByPoint=function(t,e){var i,n,r=this.canvas,o=S.doc.elementFromPoint(t,e);if(S.win.opera&&"svg"==o.tagName){n=r.getBoundingClientRect();var a=(i=r.ownerDocument).body,s=i.documentElement;i=n.top+(S.win.pageYOffset||s.scrollTop||a.scrollTop)-(s.clientTop||a.clientTop||0),n=n.left+(S.win.pageXOffset||s.scrollLeft||a.scrollLeft)-(s.clientLeft||a.clientLeft||0),(a=r.createSVGRect()).x=t-n,a.y=e-i,a.width=a.height=1,(i=r.getIntersectionList(a,null)).length&&(o=i[i.length-1])}if(!o)return null;for(;o.parentNode&&o!=r.parentNode&&!o.raphael;)o=o.parentNode;return o==this.canvas.parentNode&&(o=r),o&&o.raphael?this.getById(o.raphaelid):null},M.getElementsByBBox=function(t){var e=this.set();return this.forEach((function(i){n.isBBoxIntersect(i.getBBox(),t)&&e.push(i)})),e},M.getById=function(t){return this._elementsById[t]||null},M.forEach=function(t,e){for(var i=this.bottom;i&&!1!==t.call(e,i);)i=i.next;return this},M.getElementsByPoint=function(t,e){var i=this.set();return this.forEach((function(n){n.isPointInside(t,e)&&i.push(n)})),i},le.isPointInside=function(t,e){var i,r=this.realPath=this.realPath||wt[this.type](this);return n.isPointInsidePath((i=this.attr("transform"))&&i.length&&n.transformPath(r,i)||r,t,e)},le.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=wt[this.type](this),e.bboxwt=Nt(this.realPath),e.bboxwt.toString=h,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=wt[this.type](this)),e.bbox=Nt(_t(this.realPath,this.matrix
25)),e.bbox.toString=h,e.dirty=e.dirtyT=0),e.bbox)},le.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},le.glow=function(t){if("text"==this.type)return null;var e=((t=t||{}).width||10)+(+this.attr("stroke-width")||1),i=t.fill||!1,n=t.opacity||.5,r=t.offsetx||0,o=t.offsety||0;t=t.color||"#000";for(var a=e/2,s=this.paper,l=s.set(),c=this.realPath||wt[this.type](this),h=(c=this.matrix?_t(c,this.matrix):c,1);h<a+1;h++)l.push(s.path(c).attr({stroke:t,fill:i?t:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e/a*h).toFixed(3),opacity:+(n/a).toFixed(3)}));return l.insertBefore(this).translate(r,o)};var fe=function(t,e,i,r,o,l,c,h,d){return null==d?a(t,e,i,r,o,l,c,h):n.findDotsAtSegment(t,e,i,r,o,l,c,h,s(t,e,i,r,o,l,c,h,d))},ge=function(t,e){return function(i,r,o){for(var a,s,l,c,h="",d={},u=0,p=0,f=(i=Gt(i)).length;p<f;p++){if("M"==(l=i[p])[0])a=+l[1],s=+l[2];else{if(u+(c=fe(a,s,l[1],l[2],l[3],l[4],l[5],l[6]))>r){if(e&&!d.start){if(h+=["C"+(a=fe(a,s,l[1],l[2],l[3],l[4],l[5],l[6],r-u)).start.x,a.start.y,a.m.x,a.m.y,a.x,a.y],o)return h;d.start=h,h=["M"+a.x,a.y+"C"+a.n.x,a.n.y,a.end.x,a.end.y,l[5],l[6]].join(),u+=c,a=+l[5],s=+l[6];continue}if(!t&&!e)return{x:(a=fe(a,s,l[1],l[2],l[3],l[4],l[5],l[6],r-u)).x,y:a.y,alpha:a.alpha}}u+=c,a=+l[5],s=+l[6]}h+=l.shift()+l}return d.end=h,(a=t?u:e?d:n.findDotsAtSegment(a,s,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(a={x:a.x,y:a.y,alpha:a.alpha}),a}},me=ge(1),ve=ge(),be=ge(0,1);n.getTotalLength=me,n.getPointAtLength=ve,n.getSubpath=function(t,e,i){return 1e-6>this.getTotalLength(t)-i?be(t,e).end:(t=be(t,i,1),e?be(t,e).end:t)},le.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():me(this.attrs.path)},le.getPointAtLength=function(t){if("path"==this.type)return ve(this.attrs.path,t)},le.getSubpath=function(t,e){if("path"==this.type)return n.getSubpath(this.attrs.path,t,e)};var ye=n.easing_formulas={linear:function(t){return t},"<":function(t){return q(t,1.7)},">":function(t){return q(t,.48)},"<>":function(t){var e=.48-t/1.04,i=Y(.1734+e*e);return 3*(1-(t=(t=q(z(t=i-e),1/3)*(0>t?-1:1))+(e=q(z(e=-i-e),1/3)*(0>e?-1:1))+.5))*t*t+t*t*t},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},elastic:function(t){return t==!!t?t:q(2,-10*t)*G(2*(t-.075)*J/.3)+1},bounce:function(t){return t<1/2.75?t*=7.5625*t:t<2/2.75?t=7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?t=7.5625*(t-=2.25/2.75)*t+.9375:t=7.5625*(t-=2.625/2.75)*t+.984375,t}};ye.easeIn=ye["ease-in"]=ye["<"],ye.easeOut=ye["ease-out"]=ye[">"],ye.easeInOut=ye["ease-in-out"]=ye["<>"],ye["back-in"]=ye.backIn,ye["back-out"]=ye.backOut;var xe=[],we=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t){setTimeout(t,16)},_e=function(){for(var t=+new Date,e=0;e<xe.length;e++){var r=xe[e];if(!r.el.removed&&!r.paused){var o,a,s=t-r.start,l=r.ms,c=r.easing,h=r.from,d=r.diff,u=r.to,f=r.el,g={},m={};if(r.initstatus?(s=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*l,r.status=r.initstatus,delete r.initstatus,r.stop&&xe.splice(e--,1)):r.status=(r.prev+s/l*(r.percent-r.prev))/r.anim.top,!(0>s))if(s<l){var b,y=c(s/l);for(b in h)if(h.hasOwnProperty(b)){switch(ft[b]){case v:o=+h[b]+y*l*d[b];break;case"colour":o="rgb("+[Ce(X(h[b].r+y*l*d[b].r)),Ce(X(h[b].g+y*l*d[b].g)),Ce(X(h[b].b+y*l*d[b].b))].join()+")";break;case"path":for(o=[],s=0,c=h[b].length;s<c;s++){for(o[s]=[h[b][s][0]],u=1,m=h[b][s].length;u<m;u++)o[s][u]=(+h[b][s][u]+y*l*d[b][s][u]).toFixed(4);o[s]=o[s].join(" ")}o=o.join(" ");break;case"transform":if(d[b].real)for(o=[],s=0,c=h[b].length;s<c;s++)for(o[s]=[h[b][s][0]],u=1,m=h[b][s].length;u<m;u++)o[s][u]=h[b][s][u]+y*l*d[b][s][u];else o=function(t){return+h[b][t]+y*l*d[b][t]},o=[["m",o(0),o(1),o(2),o(3),o(4),o(5)]];break;case"csv":if("clip-rect"==b)for(o=[],s=4;s--;)o[s]=+h[b][s]+y*l*d[b][s];break;default:for(c=[].concat(h[b]),o=[],s=f.ca[b].length;s--;)o[s]=+c[s]+y*l*d[b][s]}g[b]=o}f.attr(g),function(t,e,n){setTimeout((function(){i("raphael.anim.frame."+t,e,n)}
25))}(f.id,f,r.anim)}else{if(function(t,e,r){setTimeout((function(){i("raphael.anim.frame."+e.id,e,r),i("raphael.anim.finish."+e.id,e,r),n.is(t,"function")&&t.call(e)}))}(r.callback,f,r.anim),f.attr(u),xe.splice(e--,1),1<r.repeat&&!r.next){for(a in u)u.hasOwnProperty(a)&&(m[a]=r.totalOrigin[a]);r.el.attr(m),p(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&p(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}n.svg&&f&&f.paper&&f.paper.safari(),xe.length&&we(_e)},Ce=function(t){return 255<t?255:0>t?0:t};le.animateWith=function(t,e,i,r,o,a){if(this.removed)return a&&a.call(this),this;for(p(i=i instanceof u?i:n.animation(i,r,o,a),this,i.percents[0],null,this.attr()),i=0,r=xe.length;i<r;i++)if(xe[i].anim==e&&xe[i].el==t){xe[r-1].start=xe[i].start;break}return this},le.onAnimation=function(t){return t?i.on("raphael.anim.frame."+this.id,t):i.unbind("raphael.anim.frame."+this.id),this},u.prototype.delay=function(t){var e=new u(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},u.prototype.repeat=function(t){var e=new u(this.anim,this.ms);return e.del=this.del,e.times=V.floor(H(t,0))||1,e},n.animation=function(t,e,i,r){if(t instanceof u)return t;!n.is(i,"function")&&i||(r=r||i||null,i=null),t=Object(t),e=+e||0;var o,a,s={};for(a in t)t.hasOwnProperty(a)&&j(a)!=a&&j(a)+"%"!=a&&(o=!0,s[a]=t[a]);return o?(i&&(s.easing=i),r&&(s.callback=r),new u({100:s},e)):new u(t,e)},le.animate=function(t,e,i,r){return this.removed?(r&&r.call(this),this):(p(t=t instanceof u?t:n.animation(t,e,i,r),this,t.percents[0],null,this.attr()),this)},le.setTime=function(t,e){return t&&null!=e&&this.status(t,W(e,t.ms)/t.ms),this},le.status=function(t,e){var i,n,r=[],o=0;if(null!=e)return p(t,this,-1,W(e,1)),this;for(i=xe.length;o<i;o++)if((n=xe[o]).el.id==this.id&&(!t||n.anim==t)){if(t)return n.status;r.push({anim:n.anim,status:n.status})}return t?0:r},le.pause=function(t){for(var e=0;e<xe.length;e++)xe[e].el.id!=this.id||t&&xe[e].anim!=t||!1===i("raphael.anim.pause."+this.id,this,xe[e].anim)||(xe[e].paused=!0);return this},le.resume=function(t){for(var e=0;e<xe.length;e++)if(xe[e].el.id==this.id&&(!t||xe[e].anim==t)){var n=xe[e];!1!==i("raphael.anim.resume."+this.id,this,n.anim)&&(delete n.paused,this.status(n.anim,n.status))}return this},le.stop=function(t){for(var e=0;e<xe.length;e++)xe[e].el.id!=this.id||t&&xe[e].anim!=t||!1!==i("raphael.anim.stop."+this.id,this,xe[e].anim)&&xe.splice(e--,1);return this},i.on("raphael.remove",f),i.on("raphael.clear",f),le.toString=function(){return"Rapha\xebl\u2019s object"},le.toFront=function(){if(this.removed)return this;var t,e=n._engine.getNode(this),i=this.parent,r=this.followers;for(n._tofront(this,i)&&i.canvas.appendChild(e),e=0,i=r.length;e<i;e++)(t=r[e]).stalk&&t.el[t.stalk](this);return this},le.toBack=function(){if(this.removed)return this;var t,e=n._engine.getNode(this),i=this.parent,r=this.followers;for(n._toback(this,i)&&i.canvas.insertBefore(e,i.canvas.firstChild),e=0,i=r.length;e<i;e++)(t=r[e]).stalk&&t.el[t.stalk](this);return this},le.insertAfter=function(t){if(this.removed)return this;var e,i=n._engine.getNode(this),r=n._engine.getLastNode(t),o=t.parent.canvas,a=this.followers;for(r.nextSibling?o.insertBefore(i,r.nextSibling):o.appendChild(i),n._insertafter(this,t,this.parent,t.parent),i=0,r=a.length;i<r;i++)(e=a[i]).stalk&&e.el[e.stalk](t);return this},le.insertBefore=function(t){if(this.removed)return this;var e,i=n._engine.getNode(this),r=n._engine.getNode(t),o=this.followers;for(t.parent.canvas.insertBefore(i,r),n._insertbefore(this,t,this.parent,t.parent),this.parent=t.parent,i=0,r=o.length;i<r;i++)(e=o[i]).stalk&&e.el[e.stalk](t);return this},le.appendChild=function(t){if(this.removed||"group"!==this.type)return this;var e,i,r,o=this.followers;if(t.parent===this)return t.toFront(),this;for(i=n._engine.getNode(t),n._tear(t,t.parent),this.canvas.appendChild(i),t.parent=this,!this.bottom&&(this.bottom=t),t.prev=this.top,t.next=null,this.top&&(this.top.next=t),this.top=t,i=0,r=o.length;i<r;i++)(e=o[i]).stalk&&e.el[e.stalk](t);return this},le.removeChild=function(t){if(this.removed||"group"!==this.type||t.parent!==this)return this;var e=n._engine.getNode(t),i=this.paper;return n._tear(t,this),i.canvas.appendChild(e),this.parent=i,!i.bottom&&(i.bottom=this),(this.prev=i.top)&&(i.top.next=this),i.top=this,this.next=null,this};var Se=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,i=t.length;e<i;e++)!t[e]||t[e].constructor!=le.constructor&&t[e].constructor!=Se||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},ke=Se.prototype;for(var Ae in ke.push=function(){for(var t,e,i=0,n=arguments.length;i<n;i++)!(t=arguments[i])||t.constructor!=le.constructor&&t.constructor!=Se||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},ke.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},ke.forEach=function(t,e){for(var i=0,n=this.items.length;i<n&&!1!==t.call(e,this.items[i],i);i++);return this},le)le.hasOwnProperty(Ae)&&(ke[Ae]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t][m](i,e)}))}}(Ae));ke.attr=function(t,e){if(t&&n.is(t,b)&&n.is(t[0],"object"))for(var i=0,r=t.length;i<r;i++)this.items[i].attr(t[i]);else for(i=0,r=this.items.length;i<r;i++)this.items[i].attr(t,e);return this},ke.clear=function(){for(;this.length;)this.pop()}
25,ke.splice=function(t,e,i){t=0>t?H(this.length+t,0):t,e=H(0,W(this.length-t,isNaN(e)&&this.length||e));var n,r=[],o=[],a=[];for(n=2;n<arguments.length;n++)a.push(arguments[n]);for(n=0;n<e;n++)o.push(this[t+n]);for(;n<this.length-t;n++)r.push(this[t+n]);var s=a.length;for(n=0;n<s+r.length;n++)this.items[t+n]=this[t+n]=n<s?a[n]:r[n-s];for(n=this.items.length=this.length-=e-s;this[n];)delete this[n++];return new Se(o)},ke.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0},ke.animate=function(t,e,i,r){!n.is(i,"function")&&i||(r=i||null);var o,a=this.items.length,s=a,l=this;if(!a)return this;for(r&&(o=function(){! --a&&r.call(l)}),i=n.is(i,"string")?i:o,e=n.animation(t,e,i,o),t=this.items[--s].animate(e);s--;)this.items[s]&&!this.items[s].removed&&this.items[s].animateWith(t,e,e);return this},ke.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},ke.getBBox=function(){for(var t=[],e=[],i=[],n=[],r=this.items.length;r--;)if(!this.items[r].removed){var o=this.items[r].getBBox();t.push(o.x),e.push(o.y),i.push(o.x+o.width),n.push(o.y+o.height)}return{x:t=W[m](0,t),y:e=W[m](0,e),x2:i=H[m](0,i),y2:n=H[m](0,n),width:i-t,height:n-e}},ke.clone=function(t){t=new Se;for(var e=0,i=this.items.length;e<i;e++)t.push(this.items[e].clone());return t},ke.toString=function(){return"Rapha\xebl\u2018s set"},ke.glow=function(t){var e=this.paper.set();return this.forEach((function(i){var n=i.glow(t);null!=n&&n.forEach((function(t){e.push(t)}))})),e},n.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e,i={w:t.w,face:{},glyphs:{}},n=t.face["font-family"];for(e in t.face)t.face.hasOwnProperty(e)&&(i.face[e]=t.face[e]);if(this.fonts[n]?this.fonts[n].push(i):this.fonts[n]=[i],!t.svg)for(var r in i.face["units-per-em"]=$(t.face["units-per-em"],10),t.glyphs)if(t.glyphs.hasOwnProperty(r)&&(n=t.glyphs[r],i.glyphs[r]={w:n.w,k:{},d:n.d&&"M"+n.d.replace(/[mlcxtrv]/g,(function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"}))+"z"},n.k))for(var o in n.k)n.hasOwnProperty(o)&&(i.glyphs[r].k[o]=n.k[o]);return t},M.getFont=function(t,e,i,r){if(r=r||"normal",i=i||"normal",e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400,n.fonts){var o,a=n.fonts[t];if(!a)for(var s in t=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i"),n.fonts)if(n.fonts.hasOwnProperty(s)&&t.test(s)){a=n.fonts[s];break}if(a)for(s=0,t=a.length;s<t&&((o=a[s]).face["font-weight"]!=e||o.face["font-style"]!=i&&o.face["font-style"]||o.face["font-stretch"]!=r);s++);return o}},M.print=function(t,e,i,r,o,a,s){a=a||"middle",s=H(W(s||0,1),-1);var l=N(i).split(""),c=0,h=0,d="";if(n.is(r,i)&&(r=this.getFont(r)),r){i=(o||16)/r.face["units-per-em"],o=+(f=r.face.bbox.split(it))[0];var u=f[3]-f[1],p=0;a=+f[1]+("baseline"==a?u+ +r.face.descent:u/2);for(var f=0,g=l.length;f<g;f++){if("\n"==l[f])h=v=c=0,p+=u;else{var m=h&&r.glyphs[l[f-1]]||{},v=r.glyphs[l[f]];c=c+(h?(m.w||r.w)+(m.k&&m.k[l[f]]||0)+r.w*s:0),h=1}v&&v.d&&(d+=n.transformPath(v.d,["t",c*i,p*i,"s",i,i,o,a,"t",(t-o)/i,(e-a)/i]))}}return this.path(d).attr({fill:"#000",stroke:"none"})},M.add=function(t){if(n.is(t,"array"))for(var e,i=this.set(),r=0,o=t.length;r<o;r++)e=t[r]||{},O.hasOwnProperty(e.type)&&i.push(this[e.type]().attr(e));return i},n.format=function(t,e){var i=n.is(e,b)?[0].concat(e):arguments;return t&&n.is(t,"string")&&i.length-1&&(t=t.replace(nt,(function(t,e){return null==i[++e]?"":i[e]}))),t||""},n.fullfill=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(t,i,n){var r=n;return i.replace(e,(function(t,e,i,n,o){e=e||n,r&&(e in r&&(r=r[e]),"function"==typeof r&&o&&(r=r()))})),r=(null==r||r==n?t:r)+""};return function(e,n){return String(e).replace(t,(function(t,e){return i(t,e,n)}))}}(),n.ninja=function(){return k?S.win.Raphael=A:delete Raphael,n};var Te=n.vml?.5:0;return n.crispBound=Rt((function(t,e,i,n,r){var o,a={};return t=t||0,e=e||0,i=i||0,n=n||0,o=(r=r||0)%2/2+Te,a.x=X(t+o)-o,a.y=X(e+o)-o,a.width=X(t+i+o)-o-a.x,a.height=X(e+n+o)-o-a.y,a["stroke-width"]=r,0===a.width&&0!==i&&(a.width=1),0===a.height&&0!==n&&(a.height=1),a}),n),le.crisp=function(){var t,e=this.attrs,i=this.attr(["x","y","width","height","stroke-width"]);i=n.crispBound(i.x,i.y,i.width,i.height,i["stroke-width"]);for(t in i)e[t]===i[t]&&delete i[t];return this.attr(i)}
25,n.st=ke,n.define=function(t,e,i,r,o,a){var s;if(n.is(t,b))for(a=0,s=t.length;a<s;a++)n.define(t[a]);else if(n.is(t,"object"))n.define(t.name,t[t.name],t.ca,t.fn,t.e,t.data);else if(t&&!n.fn[t])return n.fn[t]=function(){var a,s=arguments,l=e.apply(this,s);if(r&&n.is(r,"object"))for(a in r)l[a]=r[a];if(o&&n.is(o,"object"))for(a in o)l[a]&&l[a](o[a]);if(i){if(n.is(i,"function"))l.ca[t]=i;else for(a in i)l.ca[a]=i[a];l.ca[t]&&(n._lastArgIfGroup(s,!0),l.attr(t,w.call(s)))}return l},i&&(n.fn[t].ca=i),r&&(n.fn[t].fn=r),o&&(n.fn[t].e=o),a&&(n.fn[t].data=a),n.fn[t]},function(t,e,i){function r(){/in/.test(t.readyState)?setTimeout(r,9):n.eve("raphael.DOMload")}null==t.readyState&&t.addEventListener&&(t.addEventListener(e,i=function(){t.removeEventListener(e,i,!1),t.readyState="complete"},!1),t.readyState="loading"),r()}(document,"DOMContentLoaded"),i.on("raphael.DOMload",(function(){g=!0})),function(){if(n.svg){var t=String,e=parseFloat,i=parseInt,r=Math,o=r.max,a=r.abs,s=r.pow,l=r.sqrt,c=/[, ]+/,h=!(!/AppleWebKit/.test(n._g.win.navigator.userAgent)||/Chrome/.test(n._g.win.navigator.userAgent)&&!(29>n._g.win.navigator.appVersion.match(/Chrome\/(\d+)\./)[1])),d=n.eve,u={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},p={};n.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version},n._url="";var f=function(t,e){var i=t.gradient;if(i){if(i===e)return;i.refCount--,i.refCount||i.parentNode.removeChild(i),delete t.gradient}e&&(t.gradient=e,e.refCount++)},g=n._createNode=function(e,i){if(i)for(var r in"string"==typeof e&&(e=g(e)),i)i.hasOwnProperty(r)&&("xlink:"==r.substring(0,6)?e.setAttributeNS("http://www.w3.org/1999/xlink",r.substring(6),t(i[r])):e.setAttribute(r,t(i[r])));else e=n._g.doc.createElementNS("http://www.w3.org/2000/svg",e);return e},m={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},v={pad:"pad",redlect:"reflect",repeat:"repeat"},b=function(i,c){if(!i.paper||!i.paper.defs)return 0;var h,d,u,p,b,y="linear",x=i.paper,w=(x.id+"-"+c).replace(/[\(\)\s%:,\xb0#]/g,"_"),_=.5,C=.5,S=i.node,k=S.style;if(!(L=n._g.doc.getElementById(w))){if(c=t(c).replace(n._radial_gradient,(function(t,i){y="radial",i=i&&i.split(",")||[],p=i[5],b=i[6];var n,r=i[0],o=i[1],a=i[2],c=i[3],f=i[4],g=r&&o;return a&&(h=/\%/.test(a)?a:e(a)),p===m.userSpaceOnUse?(g&&(_=r,C=o),c&&f&&(d=c,u=f,g||(_=d,C=u)),""):(g&&(_=e(r),r=2*(.5<(C=e(o)))-1,.25<(n=s(_-.5,2))+s(C-.5,2)&&.25>n&&(C=l(.25-n)*r+.5)&&.5!==C&&(C=C.toFixed(5)-1e-5*r)),c&&f&&(d=e(c),r=2*(.5<(u=e(f)))-1,.25<(n=s(d-.5,2))+s(u-.5,2)&&.25>n&&(u=l(.25-n)*r+.5)&&.5!==u&&(u=u.toFixed(5)-1e-5*r),g||(_=d,C=u)),"")})),c=c.split(/\s*\-\s*/),"linear"==y){var A,T=(T=(L=c.shift()).match(/\((.*)\)/))&&T[1]&&T[1].split(/\s*\,\s*/),L=-e(L);if(isNaN(L))return null;T&&T.length?(T[0]in m?(p=T.shift(),T[0]in v&&(b=T.shift())):(T[4]&&(p=T[4]),T[5]&&(b=T[5])),A=[T[0]||"0%",T[1]||"0%",T[2]||"100%",T[3]||"0%"]):(A=[0,0,r.cos(n.rad(L)),r.sin(n.rad(L))],L=1/(o(a(A[2]),a(A[3]))||1),A[2]*=L,A[3]*=L,0>A[2]&&(A[0]=-A[2],A[2]=0),0>A[3]&&(A[1]=-A[3],A[3]=0))}if(!(T=n._parseDots(c)))return null;(L=g(y+"Gradient",{id:w})).refCount=0,p in m&&L.setAttribute("gradientUnits",t(p)),b in v&&L.setAttribute("spreadMethod",t(b)),"radial"===y?(void 0!==h&&L.setAttribute("r",t(h)),void 0!==d&&void 0!==u&&(L.setAttribute("cx",t(d)),L.setAttribute("cy",t(u))),L.setAttribute("fx",t(_)),L.setAttribute("fy",t(C))):g(L,{x1:A[0],y1:A[1],x2:A[2],y2:A[3]}),A=0;for(var D=T.length;A<D;A++)L.appendChild(g("stop",{offset:T[A].offset?T[A].offset:A?"100%":"0%","stop-color":T[A].color||"#fff","stop-opacity":void 0===T[A].opacity?1:T[A].opacity}));x.defs.appendChild(L)}return f(i,L),g(S,{fill:"url('"+n._url+"#"+w+"')",opacity:1,"fill-opacity":1}),k.fill="",k.opacity=1,k.fillOpacity=1},y=function(t){var e=t.getBBox(1);g(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},x=function(e,i,r){if("path"==e.type){for(var o,a,s=t(i).toLowerCase().split("-"),l=e.paper,c=r?"end":"start",h=e.node,d=e.attrs,f=d["stroke-width"],m=s.length,v="classic",b=3,y=3,x=5;m--;)switch(s[m]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":v=s[m];break;case"wide":y=5;break;case"narrow":y=2;break;case"long":b=5;break;case"short":b=2}if("open"==v?(b+=2,y+=2,x+=2,o=1,a=r?4:1,s={fill:"none",stroke:d.stroke}):(a=o=b/2,s={fill:d.stroke,stroke:"none"}),e._.arrows?r?(e._.arrows.endPath&&p[e._.arrows.endPath]--,e._.arrows.endMarker&&p[e._.arrows.endMarker]--):(e._.arrows.startPath&&p[e._.arrows.startPath]--,e._.arrows.startMarker&&p[e._.arrows.startMarker]--):e._.arrows={},"none"!=v){m="raphael-marker-"+v;var w="raphael-marker-"+c+v+b+y+"-obj"+e.id;n._g.doc.getElementById(m)?p[m]++:(l.defs.appendChild(g(g("path"),{"stroke-linecap":"round",d:u[v],id:m})),p[m]=1);var _=n._g.doc.getElementById(w);
25_?(p[w]++,b=_.getElementsByTagName("use")[0]):(_=g(g("marker"),{id:w,markerHeight:y,markerWidth:b,orient:"auto",refX:a,refY:y/2}),b=g(g("use"),{"xlink:href":"#"+m,transform:(r?"rotate(180 "+b/2+" "+y/2+") ":"")+"scale("+b/x+","+y/x+")","stroke-width":(1/((b/x+y/x)/2)).toFixed(4)}),_.appendChild(b),l.defs.appendChild(_),p[w]=1),g(b,s),l=o*("diamond"!=v&&"oval"!=v),r?(r=e._.arrows.startdx*f||0,f=n.getTotalLength(d.path)-l*f):(r=l*f,f=n.getTotalLength(d.path)-(e._.arrows.enddx*f||0)),(s={})["marker-"+c]="url('"+n._url+"#"+w+"')",(f||r)&&(s.d=n.getSubpath(d.path,r,f)),g(h,s),e._.arrows[c+"Path"]=m,e._.arrows[c+"Marker"]=w,e._.arrows[c+"dx"]=l,e._.arrows[c+"Type"]=v,e._.arrows[c+"String"]=i}else r?(r=e._.arrows.startdx*f||0,f=n.getTotalLength(d.path)-r):(r=0,f=n.getTotalLength(d.path)-(e._.arrows.enddx*f||0)),e._.arrows[c+"Path"]&&g(h,{d:n.getSubpath(d.path,r,f)}),delete e._.arrows[c+"Path"],delete e._.arrows[c+"Marker"],delete e._.arrows[c+"dx"],delete e._.arrows[c+"Type"],delete e._.arrows[c+"String"];for(s in p)p.hasOwnProperty(s)&&!p[s]&&(e=n._g.doc.getElementById(s))&&e.parentNode.removeChild(e)}},w={"":["none"],none:["none"],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},_=function(e,i,r){var o,a,s,l=w[t(i).toLowerCase()];if(i=l||void 0!==i&&[].concat(i)){if(r={round:o=e.attrs["stroke-width"]||1,square:o,butt:0}[e.attrs["stroke-linecap"]||r["stroke-linecap"]]||0,a=i.length,s=l?o:1,"none"==i[0])l=i;else for(l=[];a--;)l[a]=i[a]*s+(a%2?1:-1)*r,0>=l[a]&&(l[a]=.01+(1>=o?r:0)),isNaN(l[a])&&(l[a]=0);n.is(i,"array")&&g(e.node,{"stroke-dasharray":l.join(",")})}},C=function(t,e){for(var i in e)d("raphael.attr."+i+"."+t.id,t,e[i],i),t.ca[i]&&t.attr(i,e[i])},S=n._setFillAndStroke=function(e,r){if(e.paper.canvas){var s=e.node,l=e.attrs,d=e.paper,u=s.style,p=u.visibility;for(var m in r&&r.text&&(r.text=r.text.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&<br\/>lt;|&l<br\/>t;|&lt<br\/>;/g,"<<br/>").replace(/&<br\/>gt;|&g<br\/>t;|&gt<br\/>;/g,"><br/>")),u.visibility="hidden",r)if(r.hasOwnProperty(m)&&n._availableAttrs.hasOwnProperty(m)){var v=r[m];switch(l[m]=v,m){case"blur":e.blur(v);break;case"href":case"title":case"target":var w=s.parentNode;if("a"!=w.tagName.toLowerCase()){if(""==v)break;(S=g("a")).raphael=!0,S.raphaelid=s.raphaelid,w.insertBefore(S,s),S.appendChild(s),w=S}"target"==m?w.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==v?"new":v):w.setAttributeNS("http://www.w3.org/1999/xlink",m,v),s.titleNode=w;break;case"cursor":u.cursor=v;break;case"transform":e.transform(v);break;case"rotation":n.is(v,"array")?e.rotate.apply(e,v):e.rotate(v);break;case"arrow-start":x(e,v);break;case"arrow-end":x(e,v,1);break;case"clip-path":var C=!0;case"clip-rect":if(w=!C&&t(v).split(c),e._.clipispath=!!C,C||4==w.length){e.clip&&e.clip.parentNode.parentNode.removeChild(e.clip.parentNode);var S=g("clipPath"),A=g(C?"path":"rect");S.id=n.createUUID(),g(A,C?{d:v?l["clip-path"]=n._pathToAbsolute(v):n._availableAttrs.path,fill:"none"}:{x:w[0],y:w[1],width:w[2],height:w[3],transform:e.matrix.invert()}),S.appendChild(A),d.defs.appendChild(S),g(s,{"clip-path":"url('"+n._url+"#"+S.id+"')"}),e.clip=A}!v&&(v=s.getAttribute("clip-path"))&&((v=n._g.doc.getElementById(v.replace(/(^url\(#|\)$)/g,"")))&&v.parentNode.removeChild(v),g(s,{"clip-path":""}),delete e.clip);break;case"path":"path"==e.type&&(g(s,{d:v?l.path=n._pathToAbsolute(v):n._availableAttrs.path}),e._.dirty=1,e._.arrows&&("startString"in e._.arrows&&x(e,e._.arrows.startString),"endString"in e._.arrows&&x(e,e._.arrows.endString,1)));break;case"width":if(s.setAttribute(m,v),e._.dirty=1,!l.fx)break;m="x",v=l.x;case"x":l.fx&&(v=-l.x-(l.width||0));case"rx":if("rx"==m&&"rect"==e.type)break;case"cx":s.setAttribute(m,v),e.pattern&&y(e),e._.dirty=1;break;case"height":if(s.setAttribute(m,v),e._.dirty=1,!l.fy)break;m="y",v=l.y;case"y":l.fy&&(v=-l.y-(l.height||0));case"ry":if("ry"==m&&"rect"==e.type)break;case"cy":s.setAttribute(m,v),e.pattern&&y(e),e._.dirty=1;break;case"r":"rect"==e.type?g(s,{rx:v,ry:v}):s.setAttribute(m,v),e._.dirty=1;break;case"src":"image"==e.type&&s.setAttributeNS("http://www.w3.org/1999/xlink","href",v);break;case"stroke-width":1==e._.sx&&1==e._.sy||(v/=o(a(e._.sx),a(e._.sy))||1),d._vbSize&&(v*=d._vbSize),h&&0===v&&(v=1e-6),s.setAttribute(m,v),l["stroke-dasharray"]&&_(e,l["stroke-dasharray"],r),e._.arrows&&("startString"in e._.arrows&&x(e,e._.arrows.startString),"endString"in e._.arrows&&x(e,e._.arrows.endString,1));break;case"stroke-dasharray":_(e,v,r);break;case"fill":var T=t(v).match(n._ISURL);if(T){S=g("pattern");var L=g("image");S.id=n.createUUID(),g(S,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),g(L,{x:0,y:0,"xlink:href":T[1]}),S.appendChild(L),function(t){n._preload(T[1],(function(){var e=this.offsetWidth,i=this.offsetHeight;g(t,{width:e,height:i}),g(L,{width:e,height:i}),d.safari()}))}(S),d.defs.appendChild(S),u.fill="url('"+n._url+"#"+S.id+"')",g(s,{fill:u.fill}),e.pattern=S,e.pattern&&y(e);break}if((w=n.getRGB(v)).error){if(("circle"==e.type||"ellipse"==e.type||"r"!=t(v).charAt())&&b(e,v)){("opacity"in l||"fill-opacity"in l)&&(w=n._g.doc.getElementById(s.getAttribute("fill").replace(/^url\(#|\)$/g,"")))&&(w=w.getElementsByTagName("stop"),g(w[w.length-1],{"stop-opacity":("opacity"in l?l.opacity:1)*("fill-opacity"in l?l["fill-opacity"]:1)})),l.gradient=v,l.fill="none",u.fill="";break}}else delete r.gradient,delete l.gradient,!n.is(l.opacity,"undefined")&&n.is(r.opacity,"undefined")&&g(s,{opacity:l.opacity}),!n.is(l["fill-opacity"],"undefined")&&n.is(r["fill-opacity"],"undefined")&&g(s,{"fill-opacity":l["fill-opacity"]}),e.gradient&&f(e);w.hasOwnProperty("opacity")?(g(s,{"fill-opacity":u.fillOpacity=1<w.opacity?w.opacity/100:w.opacity}),e._.fillOpacityDirty=!0):e._.fillOpacityDirty&&n.is(l["fill-opacity"],"undefined")&&n.is(r["fill-opacity"],"undefined")&&(s.removeAttribute("fill-opacity"),u.fillOpacity="",delete e._.fillOpacityDirty);case"stroke":w=n.getRGB(v),s.setAttribute(m,w.hex),u[m]=w.hex,"stroke"==m&&(w.hasOwnProperty("opacity")?(g(s,{"stroke-opacity":u.strokeOpacity=1<w.opacity?w.opacity/100:w.opacity}),e._.strokeOpacityDirty=!0):e._.strokeOpacityDirty&&n.is(l["stroke-opacity"],"undefined")&&n.is(r["stroke-opacity"],"undefined")&&(s.removeAttribute("stroke-opacity"),u.strokeOpacity="",delete e._.
25strokeOpacityDirty),e._.arrows&&("startString"in e._.arrows&&x(e,e._.arrows.startString),"endString"in e._.arrows&&x(e,e._.arrows.endString,1)));break;case"gradient":"circle"!=e.type&&"ellipse"!=e.type&&"r"==t(v).charAt()||b(e,v);break;case"line-height":case"vertical-align":break;case"visibility":"hidden"===v?e.hide():e.show();break;case"opacity":l.gradient&&!l.hasOwnProperty("stroke-opacity")&&g(s,{"stroke-opacity":1<v?v/100:v});case"fill-opacity":if(l.gradient){(w=n._g.doc.getElementById(s.getAttribute("fill").replace(/^url\(#|\)$/g,"")))&&(w=w.getElementsByTagName("stop"),g(w[w.length-1],{"stop-opacity":v}));break}default:"font-size"==m&&(v=i(v,10)+"px"),w=m.replace(/(\-.)/g,(function(t){return t.substring(1).toUpperCase()})),u[w]=v,e._.dirty=1,s.setAttribute(m,v)}}"text"===e.type&&k(e,r),u.visibility=p}},k=function(i,o){if("text"==i.type&&(o.hasOwnProperty("text")||o.hasOwnProperty("font")||o.hasOwnProperty("font-size")||o.hasOwnProperty("x")||o.hasOwnProperty("y")||o.hasOwnProperty("line-height")||o.hasOwnProperty("vertical-align"))){var a=i.attrs,s=i.node,l=s.firstChild&&n._g.doc.defaultView.getComputedStyle(s.firstChild,""),c=l?e(n._g.doc.defaultView.getComputedStyle(s.firstChild,"").getPropertyValue("font-size")):10,h=e(o["line-height"]||a["line-height"])||1.2*c,d=a.hasOwnProperty("vertical-align")?a["vertical-align"]:"middle",u=(o.direction||(l?l.getPropertyValue("direction"):"initial")).toLowerCase(),p=!!document.documentMode;if(isNaN(h)&&(h=1.2*c),n.is(o.text,"array")&&(o.text=o.text.join("<br>")),d="top"===d?-.5:"bottom"===d?.5:0,o.hasOwnProperty("text")&&(o.text!==a.text||i._textdirty)){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var f=t(o.text).split(/\n|<br\s*?\/?>/gi),m=(c=[],0),v=f.length;m<v;m++)l=g("tspan"),g(l,m?{dy:h,x:a.x}:{dy:h*f.length*d,x:a.x}),f[m]||(l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),f[m]=" "),l.appendChild(n._g.doc.createTextNode(f[m])),s.appendChild(l),c[m]=l,!p&&"rtl"===u&&m<v-1&&(l=g("tspan"),g(l,{visibility:"hidden","font-size":"0px"}),l.appendChild(n._g.doc.createTextNode("i")),s.appendChild(l));i._textdirty=!1}else for(m=p=0,v=(c=s.getElementsByTagName("tspan")).length;m<v;m++)(!(u=(l=c[m]).attributes[0])||"visibility"!==u.name&&"visibility"!==u.nodeName||"hidden"!==u.value&&"hidden"!==u.nodeValue)&&(m?g(l,{dy:h,x:a.x}):(!(u=c[1]&&c[1].attributes[0])||"visibility"!==u.name&&"visibility"!==u.nodeName||"hidden"!==u.value&&"hidden"!==u.nodeValue||(p=r.floor(.5*c.length)),g(c[0],{dy:h*(c.length-p)*d,x:a.x})));if(g(s,{x:a.x,y:a.y}),i._.dirty=1,s=i._getBBox(),h=a.y-(s.y+s.height/2),s.isCalculated)switch(a["vertical-align"]){case"top":h=.75*s.height;break;case"bottom":h=-.25*s.height;break;default:h=a.y-(s.y+.25*s.height)}h&&n.is(h,"finite")&&c[0]&&g(c[0],{dy:h})}},A=function(t,e,i){(i=i||e).canvas&&i.canvas.appendChild(t),this.node=this[0]=t,t.raphael=!0,t.raphaelid=this.id=n._oid++,this.matrix=n.matrix(),this.realPath=null,this.attrs=this.attrs||{},this.followers=this.followers||[],this.paper=e,this.ca=this.customAttributes=this.customAttributes||new e._CustomAttributes,this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},this.parent=i,!i.bottom&&(i.bottom=this),(this.prev=i.top)&&(i.top.next=this),i.top=this,this.next=null},T=n.el;A.prototype=T,T.constructor=A,n._engine.getNode=function(t){return(t=t.node||t[0].node).titleNode||t},n._engine.getLastNode=function(t){return(t=t.node||t[t.length-1].node).titleNode||t},T.rotate=function(i,n,r){return this.removed||((i=t(i).split(c)).length-1&&(n=e(i[1]),r=e(i[2])),i=e(i[0]),null==r&&(n=r),null!=n&&null!=r||(n=(r=this.getBBox(1)).x+r.width/2,r=r.y+r.height/2),this.transform(this._.transform.concat([["r",i,n,r]]))),this},T.scale=function(i,n,r,o){
26var a;return this.removed||((i=t(i).split(c)).length-1&&(n=e(i[1]),r=e(i[2]),o=e(i[3])),i=e(i[0]),null==n&&(n=i),null==o&&(r=o),null!=r&&null!=o||(a=this.getBBox(1)),r=null==r?a.x+a.width/2:r,o=null==o?a.y+a.height/2:o,this.transform(this._.transform.concat([["s",i,n,r,o]]))),this},T.translate=function(i,n){return this.removed||((i=t(i).split(c)).length-1&&(n=e(i[1])),i=e(i[0])||0,this.transform(this._.transform.concat([["t",i,+n||0]]))),this},T.transform=function(t){var e=this._;return null==t?e.transform:(n._extractTransform(this,t),this.clip&&!e.clipispath&&g(this.clip,{transform:this.matrix.invert()}),this.pattern&&y(this),this.node&&g(this.node,{transform:this.matrix}),1==e.sx&&1==e.sy||(t=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":t})),this)},T.hide=function(){return!this.removed&&this.paper.safari(this.node.style.display="none"),this},T.show=function(){return!this.removed&&this.paper.safari(this.node.style.display=""),this},T.remove=function(){if(!this.removed&&this.parent.canvas){var t=n._engine.getNode(this),e=this.paper,i=e.defs;for(e.__set__&&e.__set__.exclude(this),d.unbind("raphael.*.*."+this.id
26),this.gradient&&i&&f(this);i=this.followers.pop();)i.el.remove();for(;i=this.bottom;)i.remove();if(this._drag&&this.undrag(),this.events)for(;i=this.events.pop();)i.unbind();for(i in this.parent.canvas.removeChild(t),this.removeData(),delete e._elementsById[this.id],n._tear(this,this.parent),this)this[i]="function"==typeof this[i]?n._removedFactory(i):null;this.removed=!0}},T._getBBox=function(){var t,e,i=this.node,n={},r=this.attrs;"none"===i.style.display&&(this.show(),e=!0);try{n=i.getBBox(),"text"==this.type&&(void 0===n.x&&(n.isCalculated=!0,t=r["text-anchor"],n.x=(r.x||0)-n.width*("start"===t?0:"middle"===t?.5:1)),void 0===n.y&&(n.isCalculated=!0,t=r["vertical-align"],n.y=(r.y||0)-n.height*("bottom"===t?1:"middle"===t?.5:0)))}catch(t){}finally{n=n||{}}return e&&this.hide(),n},T.attr=function(t,e){if(this.removed)return this;if(null==t){var i,r={};for(i in this.attrs)this.attrs.hasOwnProperty(i)&&(r[i]=this.attrs[i]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r.visibility="none"===this.node.style.display?"hidden":"visible",r}if(null==e&&n.is(t,"string")){if("fill"==t&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==t)return this._.transform;if("visibility"==t)return"none"===this.node.style.display?"hidden":"visible";var o={},a=0;for(i=(r=t.split(c)).length;a<i;a++)(t=r[a])in this.attrs?o[t]=this.attrs[t]:n.is(this.ca[t],"function")?o[t]=this.ca[t].def:o[t]=n._availableAttrs[t];return i-1?o:o[r[0]]}if(null==e&&n.is(t,"array")){for(o={},a=0,i=t.length;a<i;a++)o[t[a]]=this.attr(t[a]);return o}for(a in null!=e?(r={})[t]=e:null!=t&&n.is(t,"object")&&(r=t),r)d("raphael.attr."+a+"."+this.id,this,r[a],a);var s={};for(a in this.ca)if(this.ca[a]&&r.hasOwnProperty(a)&&n.is(this.ca[a],"function")&&!this.ca["_invoked"
26+a]){for(o in this.ca["_invoked"+a]=!0,i=this.ca[a].apply(this,[].concat(r[a])),delete this.ca["_invoked"+a],i)i.hasOwnProperty(o)&&(r[o]=i[o]);this.attrs[a]=r[a],!1===i&&(s[a]=r[a],delete r[a])}S(this,r);var l;a=0;for(i=this.followers.length;a<i;a++)(l=this.followers[a]).cb&&!l.cb.call(l.el,r,this)||l.el.attr(r);for(o in s)r[o]=s[o];return this},T.blur=function(t){if(0!=+t){var e=g("filter"),i=g("feGaussianBlur");this.attrs.blur=t,e.id=n.createUUID(),g(i,{stdDeviation:+t||1.5}),e.appendChild(i),this.paper.defs.appendChild(e),this._blur=e,g(this.node,{filter:"url('"+n._url+"#"+e.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")},T.on=function(t,e){if(this.removed)return this;var i=e;return n.supportsTouch&&(t=n._touchMap[t]||"click"===t&&"touchstart"||t,i=function(t){t.preventDefault(),e()}),this.node["on"+t]=i,this},n._engine.path=function(t,e,i){var n=g("path");return(t=new A(n,t,i)).type="path",S(t,e),C(t,e),t},n._engine.group=function(t,e,i){var n=g("g");return(t=new A(n,t,i)).type="group",t.canvas=t.node,t.top=t.bottom=null,t._id=e||"",e&&n.setAttribute("class","raphael-group-"+t.id+"-"+e),t},n._engine.circle=function(t,e,i){var n=g("circle");return(t=new A(n,t,i)).type="circle",S(t,e),C(t,e),t},n._engine.rect=function(t,e,i){var n=g("rect");return(t=new A(n,t,i)).type="rect",e.rx=e.ry=e.r,S(t,e),C(t,e),t},n._engine.ellipse=function(t,e,i){var n=g("ellipse");return(t=new A(n,t,i)).type="ellipse",S(t,e),C(t,e),t},n._engine.image=function(t,e,i){var n=g("image");return(t=new A(n,t,i)).type="image",n.setAttribute("preserveAspectRatio","none"),S(t,e),C(t,e),t},n._engine.text=function(t,e,i){var n=g("text");return(t=new A(n,t,i)).type="text",t._textdirty=!0,S(t,e),C(t,e),t},n._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},n._engine.create=function(){var t=(o=n._getContainer.apply(0,arguments))&&o.container,e=o.x,i=o.y,r=o.width,o=o.height;if(!t)throw Error("SVG container not found.");var a,s=g("svg");e=e||0,i=i||0;return g(s,{height:o=o||342,version:1.1,width:r=r||512,xmlns:"http://www.w3.org/2000/svg"}),1==t?(s.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:absolute;left:"+e+"px;top:"+i+"px",n._g.doc.body.appendChild(s),a=1):(s.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:relative",t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)),(t=new n._Paper).width=r,t.height=o,t.canvas=s,g(s,{id:"raphael-paper-"+t.id}),t.clear(),t._left=t._top=0,a&&(t.renderfix=function(){}),t.renderfix(),t},n._engine.setViewBox=function(t,e,i,n,r){d("raphael.setViewBox",this,this._viewBox,[t,e,i,n,r]);var a,s=o(i/this.width,n/this.height),l=this.top,c=r?"meet":"xMinYMin";for(null==t?(this._vbSize&&(s=1),delete this._vbSize,a="0 0 "+this.width+" "+this.height):(this._vbSize=s,a=t+" "+e+" "+i+" "+n),g(this.canvas,{viewBox:a,preserveAspectRatio:c});s&&l;)c="stroke-width"in l.attrs?l.attrs["stroke-width"]:1,l.attr({"stroke-width":c}),l._.dirty=1,l._.dirtyT=1,l=l.prev;return this._viewBox=[t,e,i,n,!!r],this},n.prototype.renderfix=function(){var t,e=this.canvas,i=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(i){t=e.createSVGMatrix()}e=-t.e%1,t=-t.f%1,(e||t)&&(e&&(this._left=(this._left+e)%1,i.left=this._left+"px"),t&&(this._top=(this._top+t)%1,i.top=this._top+"px"))},n.prototype._desc=function(t){var e=this.desc;if(e)for(;e.firstChild;)e.removeChild(e.firstChild);else this.desc=e=g("desc"),this.canvas.appendChild(e);e.appendChild(n._g.doc.createTextNode(n.is(t,"string")?t:"Created with Red Rapha\xebl "+n.version))},n.prototype.clear=function(){var t;for(d("raphael.clear",this);t=this.bottom;)t.remove();for(t=this.canvas;t.firstChild;)t.removeChild(t.firstChild);this.bottom=this.top=null,t.appendChild(this.desc=g("desc")),t.appendChild(this.defs=g("defs"))},n.prototype.remove=function(){var t;for(d("raphael.remove",this);t=this.bottom;)t.remove();for(t in this.defs&&this.defs.parentNode.removeChild(this.defs),this.desc&&this.desc.parentNode.removeChild(this.desc),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?n._removedFactory(t):null;this.removed=!0};var L,D=n.st;for(L in T)T.hasOwnProperty(L)&&!D.hasOwnProperty(L)&&(D[L]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(L))}}
26(),function(){if(n.vml){var t=String,e=parseFloat,i=(T=Math).round,r=T.max,o=T.min,a=T.sqrt,s=T.abs,l=/[, ]+/,c=n.eve,h={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},d=/([clmz]),?([^clmz]*)/gi,u=/ progid:\S+Blur\([^\)]+\)/g,p=/-?[^,\s-]+/g,f={path:1,rect:1,image:1},g={circle:1,ellipse:1},m=function(e){var r=/[ahqstv]/gi,o=n._pathToAbsolute;if(t(e).match(r)&&(o=n._path2curve),r=/[clmz]/g,o==n._pathToAbsolute&&!t(e).match(r))return(e=t(e).replace(d,(function(t,e,n){var r=[],o="m"==e.toLowerCase(),a=h[e];return n.replace(p,(function(t){o&&2==r.length&&(a+=r+h["m"==e?"l":"L"],r=[]),r.push(i(21600*t))})),a+r})))||"m0,0";var a;r=o(e);e=[];for(var s=0,l=r.length;s<l;s++){o=r[s],"z"==(a=r[s][0].toLowerCase())&&(a="x");for(var c=1,u=o.length;c<u;c++)a+=i(21600*o[c])+(c!=u-1?",":"");e.push(a)}return e.length?e.join(" "):"m0,0"},v=function(t,e,i){var r=n.matrix();return r.rotate(-t,.5,.5),{dx:r.x(e,i),dy:r.y(e,i)}},b=function(t,e,i,n,r,o){var a=t._,l=t.matrix,c=a.fillpos,h=(t=t.node).style,d=1,u="",p=21600/e,f=21600/i;h.visibility="hidden",e&&i&&(t.coordsize=s(p)+" "+s(f),h.rotation=o*(0>e*i?-1:1),o&&(n=(r=v(o,n,r)).dx,r=r.dy),0>e&&(u+="x"),0>i&&(u+=" y")&&(d=-1),h.flip=u,t.coordorigin=n*-p+" "+r*-f,(c||a.fillsize)&&(n=(n=t.getElementsByTagName("fill"))&&n[0])&&(t.removeChild(n),c&&(r=v(o,l.x(c[0],c[1]),l.y(c[0],c[1])),n.position=r.dx*d+" "+r.dy*d),a.fillsize&&(n.size=a.fillsize[0]*s(e)+" "+a.fillsize[1]*s(i)),t.appendChild(n)),h.visibility="visible")};n._url="",n.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version};var w,_=function(e,i,n){n=n?"end":"start";for(var r=(i=t(i).toLowerCase().split("-")).length,o="classic",a="medium",s="medium";r--;)switch(i[r]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":o=i[r];break;case"wide":case"narrow":s=i[r];break;case"long":case"short":a=i[r]}(e=e.node.getElementsByTagName("stroke")[0])[n+"arrow"]=o,e[n+"arrowlength"]=a,e[n+"arrowwidth"]=s},C=function(t,e){for(var i in e)c("raphael.attr."+i+"."+t.id,t,e[i],i),t.ca[i]&&t.attr(i,e[i])},S=n._setFillAndStroke=function(a,s){if(a.paper.canvas){a.attrs=a.attrs||{};var c,h=a.node,d=a.attrs,u=h.style,p=f[a.type]&&(s.x!=d.x||s.y!=d.y||s.width!=d.width||s.height!=d.height||s.cx!=d.cx||s.cy!=d.cy||s.rx!=d.rx||s.ry!=d.ry||s.r!=d.r),v=g[a.type]&&(d.cx!=s.cx||d.cy!=s.cy||d.r!=s.r||d.rx!=s.rx||d.ry!=s.ry),y="group"===a.type;for(c in s)s.hasOwnProperty(c)&&(d[c]=s[c]);if(p&&(d.path=n._getPath[a.type](a),a._.dirty=1),s.href&&(h.href=s.href),s.title&&(h.title=s.title),s.target&&(h.target=s.target),s.cursor&&(u.cursor=s.cursor),"blur"in s&&a.blur(s.blur),(s.path&&"path"==a.type||p)&&(h.path=m(~t(d.path).toLowerCase().indexOf("r")?n._pathToAbsolute(d.path):d.path),"image"==a.type&&(a._.fillpos=[d.x,d.y],a._.fillsize=[d.width,d.height],b(a,1,1,0,0,0))),"transform"in s&&a.transform(s.transform),"rotation"in s&&(u=s.rotation,n.is(u,"array")?a.rotate.apply(a,u):a.rotate(u)),"visibility"in s&&("hidden"===s.visibility?a.hide():a.show()),v&&(u=+d.cx,v=+d.cy,p=+d.rx||+d.r||0,c=+d.ry||+d.r||0,h.path=n.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",i(21600*(u-p)),i(21600*(v-c)),i(21600*(u+p)),i(21600*(v+c)),i(21600*u))),"clip-rect"in s&&(4==(u=t(s["clip-rect"]).split(l)).length&&(u[0]=+u[0],u[1]=+u[1],u[2]=+u[2]+u[0],u[3]=+u[3]+u[1],v=(p=y?h:h.clipRect||n._g.doc.createElement("div")).style,y?(a.clip=u.slice(),p=a.matrix.offset(),p=[e(p[0]),e(p[1])],u[0]-=p[0],u[1]-=p[1],u[2]-=p[0],u[3]-=p[1],v.width="1px",v.height="1px"):h.clipRect||(v.top="0",v.left="0",v.width=a.paper.width+"px",v.height=a.paper.height+"px",h.parentNode.insertBefore(p,h),p.appendChild(h),p.raphael=!0,p.raphaelid=h.raphaelid,h.clipRect=p),v.position="absolute",v.clip=n.format("rect({1}px {2}px {3}px {0}px)",u)),s["clip-rect"]||(y&&a.clip?(h.style.clip="rect(0px 10800px 10800px 0px)",delete a.clip):h.clipRect&&(h.clipRect.style.clip="rect(0px 10800px 10800px 0px)"))),a.textpath&&(y=a.textpath.style,s.font&&(y.font=s.font),s["font-family"]&&(y.fontFamily='"'+s["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),s["font-size"]&&(y.fontSize=s["font-size"]),s["font-weight"]&&(y.fontWeight=s["font-weight"]),s["font-style"]&&(y.fontStyle=s["font-style"])),"arrow-start"in s&&_(a,s["arrow-start"]),"arrow-end"in s&&_(a,s["arrow-end"],1),null==s.opacity&&null==s["stroke-width"]&&null==s.fill&&null==s.src&&null==s.stroke&&null==s["stroke-width"]&&null==s["stroke-opacity"]&&null==s["fill-opacity"]&&null==s["stroke-dasharray"]&&null==s["stroke-miterlimit"]&&null==s["stroke-linejoin"]&&null==s["stroke-linecap"]||(u=-1,!(y=(y=h.getElementsByTagName("fill"))&&y[0])&&(y=w("fill")),"image"==a.type&&s.src&&(y.src=s.src),s.fill&&(y.on=!0),null!=y.on&&"none"!=s.fill&&null!==s.fill||(y.on=!1),y.on&&s.fill&&((v=t(s.fill).match(n._ISURL))?(y.parentNode==h&&h.removeChild(y),y.rotate=!0,y.src=v[1],y.type="tile",p=a.getBBox(1),y.position=p.x+" "+p.y,a._.fillpos=[p.x,p.y],n._preload(v[1],(function(){a._.fillsize=[this.offsetWidth,this.offsetHeight]}))):(v=n.getRGB(s.fill),y.color=v.hex,y.src="",y.type="solid",v.error&&(a.type in{circle:1,ellipse:1}||"r"!=t(s.fill).charAt())&&k(a,s.fill,y)?(d.fill="none",d.gradient=s.fill,y.rotate=!1):"opacity"in v&&!("fill-opacity"in s)&&(u=v.opacity))),(-1!==u||"fill-opacity"in s||"opacity"in s)&&(v=((+d["fill-opacity"]+1||2)-1)*((+d.opacity+1||2)-1)*((+u+1||2)-1),v=o(r(v,0),1),y.opacity=v,y.src&&(y.color="none")),h.appendChild(y),u=!1,!(y=h.getElementsByTagName("stroke")&&h.getElementsByTagName("stroke")[0])&&(u=y=w("stroke")),(s.stroke&&"none"!=s.stroke||s["stroke-width"]||null!=s["stroke-opacity"]||s["stroke-dasharray"]||s["stroke-miterlimit"]||s["stroke-linejoin"]||s["stroke-linecap"])&&(y.on=!0),"none"!=s.stroke&&null!==s.stroke&&null!=y.on&&0!=s.stroke&&0!=s["stroke-width"]||(y.on=!1),v=n.getRGB("stroke"in s?s.stroke:d.stroke),y.on&&s.stroke&&(y.color=v.hex),v=((+d["stroke-opacity"]+1||2)-1)*((+d.opacity+1||2)-1)*((+v.opacity+1||2)-1),p=.75*(e(s["stroke-width"])||1),v=o(r(v,0),1),null==s["stroke-width"]&&(p=d["stroke-width"]),s["stroke-width"]&&(y.weight=p),p&&1>
26p&&(v*=p)&&(y.weight=1),y.opacity=v,s["stroke-linejoin"]&&(y.joinstyle=s["stroke-linejoin"])||u&&(u.joinstyle="miter"),y.miterlimit=s["stroke-miterlimit"]||8,s["stroke-linecap"]&&(y.endcap="butt"==s["stroke-linecap"]?"flat":"square"==s["stroke-linecap"]?"square":"round"),s["stroke-dasharray"]&&(v={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},y.dashstyle=v.hasOwnProperty(s["stroke-dasharray"])?v[s["stroke-dasharray"]]:s["stroke-dasharray"].join&&s["stroke-dasharray"].join(" ")||""),u&&h.appendChild(y)),"text"==a.type){switch(a.paper.canvas.style.display="",h=a.paper.span,y=d.font&&d.font.match(/\d+(?:\.\d*)?(?=px)/),v=d["line-height"]&&(d["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/),u=h.style,d.font&&(u.font=d.font),d["font-family"]&&(u.fontFamily=d["font-family"]),d["font-weight"]&&(u.fontWeight=d["font-weight"]),d["font-style"]&&(u.fontStyle=d["font-style"]),y=e(d["font-size"]||y&&y[0])||10,u.fontSize=100*y+"px",v=e(d["line-height"]||v&&v[0])||12,d["line-height"]&&(u.lineHeight=100*v+"px"),n.is(s.text,"array")&&(s.text=a.textpath.string=s.text.join("\n").replace(/<br\s*?\/?>/gi,"\n")),a.textpath.string&&(h.innerHTML=t(a.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>")),h=h.getBoundingClientRect(),a.W=d.w=(h.right-h.left)/100,a.H=d.h=(h.bottom-h.top)/100,a.X=d.x,a.Y=d.y,d["vertical-align"]){case"top":a.bby=a.H/2;break;case"bottom":a.bby=-a.H/2;break;default:a.bby=0}("x"in s||"y"in s||void 0!==a.bby)&&(a.path.v=n.format("m{0},{1}l{2},{1}",i(21600*d.x),i(21600*(d.y+(a.bby||0))),i(21600*d.x)+1)),y=0;for(u=(h="x y text font font-family font-weight font-style font-size line-height".split(" ")).length;y<u;y++)if(h[y]in s){a._.dirty=1;break}switch(d["text-anchor"]){case"start":a.textpath.style["v-text-align"]="left",a.bbx=a.W/2;break;case"end":a.textpath.style["v-text-align"]="right",a.bbx=-a.W/2;break;default:a.textpath.style["v-text-align"]="center",a.bbx=0}a.textpath.style["v-text-kern"]=!0}}},k=function(i,r,o){i.attrs=i.attrs||{};var s=Math.pow,l="linear",c=".5 .5";if(i.attrs.gradient=r,r=t(r).replace(n._radial_gradient,(function(t,i){l="radial";var n=(i=i&&i.split(",")||[])[3],r=i[4];return n&&r&&(n=e(n),r=e(r),.25<s(n-.5,2)+s(r-.5,2)&&(r=a(.25-s(n-.5,2))*(2*(.5<r)-1)+.5),c=n+" "+r),""})),r=r.split(/\s*\-\s*/),"linear"==l){var h=r.shift();h=-e(h);if(isNaN(h))return null}if(!(r=n._parseDots(r)))return null;if(i=i.shape||i.node,r.length){o.parentNode==i&&i.removeChild(o),o.on=!0,o.method="none",o.color=r[0].color,o.color2=r[r.length-1].color;for(var d=[],u=1,p=void 0===r[0].opacity?1:r[0].opacity,f=0,g=r.length;f<g;f++)r[f].offset&&d.push(r[f].offset+" "+r[f].color),void 0!==r[f].opacity&&(u=r[f].opacity);o.colors=d.length?d.join():"0% "+o.color,o.opacity=u,o["o:opacity2"]=p,"radial"==l?(o.type="gradientTitle",o.focus="100%",o.focussize="0 0",o.focusposition=c,o.angle=0):(o.type="gradient",o.angle=(270-h)%360),i.appendChild(o)}return 1},A=function(t,e,i){var r;(i=i||e).canvas&&i.canvas.appendChild(t),(r=w("skew")).on=!0,t.appendChild(r),this.skew=r,this.node=this[0]=t,t.raphael=!0,t.raphaelid=this.id=n._oid++,this.Y=this.X=0,this.attrs=this.attrs||{},this.followers=this.followers||[],this.paper=e,this.ca=this.customAttributes=this.customAttributes||new e._CustomAttributes,this.matrix=n.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},this.parent=i,!i.bottom&&(i.bottom=this),(this.prev=i.top)&&(i.top.next=this),i.top=this,this.next=null},T=n.el;A.prototype=T,T.constructor=A,T.transform=function(e){if(null==e)return this._.transform;var i,r=(o=this.paper._viewBoxShift)?"s"+[o.scale,o.scale]+"-1-1t"+[o.dx,o.dy]:"";o&&(i=e=t(e).replace(/\.{3}|\u2026/g,this._.transform||"")),n._extractTransform(this,r+e);var o=this.matrix.clone(),a=this.skew;e=this.node;r=~t(this.attrs.fill).indexOf("-");var s=!t(this.attrs.fill).indexOf("url(");return o.translate(-.5,-.5),s||r||"image"==this.type?(a.matrix="1 0 0 1",a.offset="0 0",a=o.split(),r&&a.noRotation||!a.isSimple?(e.style.filter=o.toFilter(),o=this.getBBox(),r=this.getBBox(1),s=o.x2&&r.x2?"x2":"x",a=o.y2&&r.y2?"y2":"y",s=o[s]-r[s],o=o[a]-r[a],e.coordorigin=-21600*s+" "+-21600*o,b(this,1,1,s,o,0)):(e.style.filter="",b(this,a.scalex,a.scaley,a.dx,a.dy,a.rotate))):(e.style.filter="",a.matrix=t(o),a.offset=o.offset()),i&&(this._.transform=i),this},T.rotate=function(i,n,r){return this.removed?this:null!=i?((i=t(i).split(l)).length-1&&(n=e(i[1]),r=e(i[2])),i=e(i[0]),null==r&&(n=r),null!=n&&null!=r||(n=(r=this.getBBox(1)).x+r.width/2,r=r.y+r.height/2),this._.dirtyT=1,this.transform(this._.transform.concat([["r",i,n,r]])),this):void 0},T.translate=function(i,n){return this.removed||((i=t(i).split(l)).length-1&&(n=e(i[1])),i=e(i[0])||0,n=+n||0,this._.bbox&&(this._.bbox.x+=i,this._.bbox.y+=n),this.transform(this._.transform.concat([["t",i,n]]))),this},T.scale=function(i,n,r,o){if(this.removed)return this;if((i=t(i).split(l)).length-1&&(n=e(i[1]),r=e(i[2]),o=e(i[3]),isNaN(r)&&(r=null),isNaN(o)&&(o=null)),i=e(i[0]),null==n&&(n=i),null==o&&(r=o),null==r||null==o)var a=this.getBBox(1);return r=null==r?a.x+a.width/2:r,o=null==o?a.y+a.height/2:o,this.transform(this._.transform.concat([["s",i,n,r,o
26]])),this._.dirtyT=1,this},T.hide=function(){return!this.removed&&(this.node.style.display="none"),this},T.show=function(){return!this.removed&&(this.node.style.display=""),this},T._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}},T.remove=function(){if(!this.removed&&this.parent.canvas){var t=n._engine.getNode(this),e=this.paper,i=this.shape;for(e.__set__&&e.__set__.exclude(this),c.unbind("raphael.*.*."+this.id),i&&i.parentNode.removeChild(i),t.parentNode&&t.parentNode.removeChild(t);t=this.followers.pop();)t.el.remove();for(;t=this.bottom;)t.remove();if(this._drag&&this.undrag(),this.events)for(;t=this.events.pop();)t.unbind();for(t in this.removeData(),delete e._elementsById[this.id],n._tear(this,this.parent),this)this[t]="function"==typeof this[t]?n._removedFactory(t):null;this.removed=!0}},T.attr=function(t,e){if(this.removed)return this;if(null==t){var i,r={};for(i in this.attrs)this.attrs.hasOwnProperty(i)&&(r[i]=this.attrs[i]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r.visibility="none"===this.node.style.display?"hidden":"visible",r}if(null==e&&n.is(t,"string")){if("fill"==t&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("visibility"==t)return"none"===this.node.style.display?"hidden":"visible";var o={},a=0;for(i=(r=t.split(l)).length;a<i;a++)(t=r[a])in this.attrs?o[t]=this.attrs[t]:n.is(this.ca[t],"function")?o[t]=this.ca[t].def:o[t]=n._availableAttrs[t];return i-1?o:o[r[0]]}if(this.attrs&&null==e&&n.is(t,"array")){for(o={},a=0,i=t.length;a<i;a++)o[t[a]]=this.attr(t[a]);return o}for(a in null!=e&&((r={})[t]=e),null==e&&n.is(t,"object")&&(r=t),r)c("raphael.attr."+a+"."+this.id,this,r[a],a);if(r){var s={};for(a in this.ca)if(this.ca[a]&&r.hasOwnProperty(a)&&n.is(this.ca[a],"function")&&!this.ca["_invoked"
26+a]){for(o in this.ca["_invoked"+a]=!0,i=this.ca[a].apply(this,[].concat(r[a])),delete this.ca["_invoked"+a],i)i.hasOwnProperty(o)&&(r[o]=i[o]);this.attrs[a]=r[a],!1===i&&(s[a]=r[a],delete r[a])}"text"in r&&"text"==this.type&&(n.is(r.text,"array")&&(r.text=r.text.join("\n")),this.textpath.string=r.text.replace(/<br\s*?\/?>/gi,"\n")),S(this,r);var h;a=0;for(i=this.followers.length;a<i;a++)(h=this.followers[a]).cb&&!h.cb.call(h.el,r,this)||h.el.attr(r);for(o in s)r[o]=s[o]}return this},T.blur=function(t){var e=this.node.runtimeStyle,r=(r=e.filter).replace(u,"");return 0!=+t?(this.attrs.blur=t,e.filter=r+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+t||1.5)+")",e.margin=n.format("-{0}px 0 0 -{0}px",i(+t||1.5))):(e.filter=r,e.margin=0,delete this.attrs.blur),this},T.on=function(t,e){return this.removed||(this.node["on"+t]=function(){var t=n._g.win.event;t.target=t.srcElement,e(t)}),this},n._engine.getNode=function(t){return(t=t.node||t[0].node).clipRect||t},n._engine.getLastNode=function(t){return(t=t.node||t[t.length-1].node).clipRect||t},n._engine.group=function(t,e,i){var r=n._g.doc.createElement("div"),o=new A(r,t,i);return r.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px",o._id=e||"",e&&(r.className="raphael-group-"+o.id+"-"+e),(i||t).canvas.appendChild(r),o.type="group",o.canvas=o.node,o.transform=n._engine.group.transform,o.top=null,o.bottom=null,o},n._engine.group.transform=function(i){if(null==i)return this._.transform;var r=this.node.style,o=this.clip,a=this.paper._viewBoxShift,s=a?"s"+[a.scale,a.scale]+"-1-1t"+[a.dx,a.dy]:"";return a&&(i=t(i).replace(/\.{3}|\u2026/g,this._.transform||"")),n._extractTransform(this,s+i),s=(i=this.matrix).offset(),a=e(s[0])||0,s=e(s[1])||0,r.left=a+"px",r.top=s+"px",r.zoom=(this._.tzoom=i.get(0))+"",o&&(r.clip=n.format("rect({1}px {2}px {3}px {0}px)",[o[0]-a,o[1]-s,o[2]-a,o[3]-s])),this},n._engine.path=function(t,e,i){var n=w("shape");return n.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px",n.coordsize="21600 21600",n.coordorigin=t.coordorigin,(t=new A(n,t,i)).type=e.type||"path",t.path=[],t.Path="",e.type&&delete e.type,S(t,e),C(t,e),t},n._engine.rect=function(t,e,i){var r=n._rectPath(e.x,e.y,e.w,e.h,e.r);return e.path=r,e.type="rect",e=(t=t.path(e,i)).attrs,t.X=e.x,t.Y=e.y,t.W=e.width,t.H=e.height,e.path=r,t},n._engine.ellipse=function(t,e,i){return e.type="ellipse",e=(t=t.path(e,i)).attrs,t.X=e.x-e.rx,t.Y=e.y-e.ry,t.W=2*e.rx,t.H=2*e.ry,t},n._engine.circle=function(t,e,i){return e.type="circle",e=(t=t.path(e,i)).attrs,t.X=e.x-e.r,t.Y=e.y-e.r,t.W=t.H=2*e.r,t},n._engine.image=function(t,e,i){var r=n._rectPath(e.x,e.y,e.w,e.h);e.path=r,e.type="image",e.stroke="none",i=(t=t.path(e,i)).attrs;var o=(r=t.node).getElementsByTagName("fill")[0];return i.src=e.src,t.X=i.x=e.x,t.Y=i.y=e.y,t.W=i.width=e.w,t.H=i.height=e.h,o.parentNode==r&&r.removeChild(o),o.rotate=!0,o.src=i.src,o.type="tile",t._.fillpos=[i.x,i.y],t._.fillsize=[i.w,i.h],r.appendChild(o),b(t,1,1,0,0,0),t},n._engine.text=function(e,r,o){var a=w("shape"),s=w("path"),l=w("textpath");return x=r.x||0,y=r.y||0,text=r.text,s.v=n.format("m{0},{1}l{2},{1}",i(21600*r.x),i(21600*r.y),i(21600*r.x)+1),s.textpathok=!0,l.string=t(r.text).replace(/<br\s*?\/?>/gi,"\n"),l.on=!0,a.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px",a.coordsize="21600 21600",a.coordorigin="0 0",(e=new A(a,e,o)).shape=a,e.path=s,e.textpath=l,e.type="text",e.attrs.text=t(r.text||""),e.attrs.x=r.x,e.attrs.y=r.y,e.attrs.w=1,e.attrs.h=1,S(e,r),C(e,r),a.appendChild(l),a.appendChild(s),e},n._engine.setSize=function(t,e){var i=this.canvas.style;return this.width=t,this.height=e,t==+t&&(t+="px"),e==+e&&(e+="px"),i.width=t,i.height=e,i.clip="rect(0 "+t+" "+e+" 0)",this._viewBox&&n._engine.setViewBox.apply(this,this._viewBox),this},n._engine.setViewBox=function(t,e,i,n,o){c("raphael.setViewBox",this,this._viewBox,[t,e,i,n,o]);var a,s,l=this.width,h=this.height,d=1/r(i/l,n/h);return o&&(i*(a=h/n)<l&&(t-=(l-i*a)/2/a),n*(s=l/i)<h&&(e-=(h-n*s)/2/s)),this._viewBox=[t,e,i,n,!!o],this._viewBoxShift={dx:-t,dy:-e,scale:d},this.forEach((function(t){t.transform("...")})),this},n._engine.initWin=function(e){var i=e.document;i.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!i.namespaces.rvml&&i.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),w=n._createNode=function(e,n){var r,o=i.createElement("<rvml:"+e+' class="rvml">');for(r in n)o[r]=t(n[r]);return o}}catch(e){w=n._createNode=function(e,n){var r,o=i.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');for(r in n)o[r]=t(n[r]);return o}}},n._engine.initWin(n._g.win),n._engine.create=function(){var t=(o=n._getContainer.apply(0,arguments)).container,e=o.height,i=o.width,r=o.x,o=o.y;if(!t)throw Error("VML container not found.");var a=new n._Paper,s=a.canvas=n._g.doc.createElement("div"),l=s.style;r=r||0,o=o||0,i=i||512,e=e||342;return a.width=i,a.height=e,i==+i&&(i+="px"),e==+e&&(e+="px"),a.coordsize="21600000 21600000",a.coordorigin="0 0",s.id="raphael-paper-"+a.id,a.span=n._g.doc.createElement("span"),a.span.style.cssText="position:absolute;
26left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",s.appendChild(a.span),l.cssText=n.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,e),1==t?(n._g.doc.body.appendChild(s),l.left=r+"px",l.top=o+"px",l.position="absolute"):t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s),a.renderfix=function(){},a},n.prototype.clear=function(){var t;for(c("raphael.clear",this);t=this.bottom;)t.remove();this.canvas.innerHTML="",this.span=n._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},n.prototype.remove=function(){var t;for(c("raphael.remove",this);t=this.bottom;)t.remove();for(t in this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?n._removedFactory(t):null;return!0};var L,D=n.st;for(L in T)T.hasOwnProperty(L)&&!D.hasOwnProperty(L)&&(D[L]=function(t){return function(){var e=arguments;return this.forEach((function(i){i[t].apply(i,e)}))}}(L))}}(),k?S.win.Raphael=n:Raphael=n,n}))}(),e.Raphael=t,e.Raphael.desc="",i&&i!==t?window.Raphael=i:window.Raphael===t&&(window.Raphael=void 0)}]),FusionCharts.register("module",["private","fusioncharts.redraphael.helper",function(){var t={};this.hcLib.Raphael.fn._elementFromEvent=function(e){if(!e||this.removed)return null;var i=e.srcElement||e.target||(e=e.originalEvent)&&(e.srcElement||e.target)||t;return"tspan"===i.nodeName&&(i=i.parentNode),this.getById(i.raphaelid)}}]),FusionCharts.register("module",["private","fusioncharts.redraphael.css",function(){var t,e,i=this.hcLib.Raphael,n=i.eve,r=i._g,o=i.fn,a=i.el,s=/[, ]+/,l=/\B([A-Z]{1})/g;t=function(t){this.styleSheet="",this.rules={},this.ns=t||""},(e=t.prototype).getSheet=function(){var t=this.node;return this.styleSheet=e.getStyleSheet("fusioncharts-raphael-stylesheet"),this.styleSheet||((t=this.node=r.doc.createElement("style")).setAttribute("id",i.format("raphael-stylesheet-{0}",i._oid++)),t.setAttribute("type","text/css"),t.setAttribute("title","fusioncharts-raphael-stylesheet"),(r.doc.head||r.doc.getElementsByTagName("head")[0]).appendChild(this.node),this.styleSheet=e.getStyleSheet("fusioncharts-raphael-stylesheet")),this.styleSheet},e.getStyleSheet=function(t){for(var e,i=r.doc.styleSheets,n=i.length;n--;)if((e=i[n]).title===t)return e},e.applyCSSRule=function(t,e){var i,n=this.styleSheet;if(!n){if(!t||!e)return;n=this.getSheet()}i=(n.rules||n.cssRules||{}).length||0,n.insertRule?n.insertRule(t+"{"+e+"}",i):n.addRule&&n.addRule(t,e,i)},e.removeCSS=function(t){var e,i=this.styleSheet,n=i.rules||i.cssRules||{},r=n.length||0;for(t=t||this.ns;r--;)e=n[r],new RegExp(t).test(e.selectorText)&&(i.removeRule?i.removeRule(r):i.deleteRule(r))},e.destroy=function(){this.removeCSS(),delete this.node,delete this.styleSheet,delete this.ns,delete this.rules},e.clear=function(){this.removeCSS(),this.rules={}},e.add=function(t,e){var i,n=this.rules[t]||(this.rules[t]={});for(i in e)n[i]=e[i]},e.render=function(){this.setCssText()},e.setCssText=function(t){var e=t?"":"\t";t=t?":":": ";var i,n,r="",o="";for(i in this.rules){for(n in r="",o=i.replace(/(^|\,)/g,"$1"+this.ns+" "),i=this.rules[i])i[n]&&(r+=e+n.replace(l,"-$1").toLowerCase()+t+i[n]+";");this.applyCSSRule(o,r)}},n.on("raphael.new",(function(){this._stylesheet=this._stylesheet||new t,this.cssNamespace("")})),n.on("raphael.remove",(function(){this._stylesheet&&this._stylesheet.destroy(),delete this._stylesheet})),o.cssNamespace=function(t){return arguments.length&&(this._stylesheet.ns=i.format("{0}#raphael-paper-{1}",t&&t+" "||"",this.id)),this._stylesheet.ns},o.cssAddRule=function(t,e){if(1===arguments.length&&"object"==typeof t){for(var i in t)this.cssAddRule(i,t[i]);return this}return this._stylesheet.add(t,e),this},o.cssRender=function(){return i.svg&&this._stylesheet.render(),this},o.cssClear=function(){return this._stylesheet.clear(),this},i._availableAttrs.class="",i.svg&&n.on("raphael.attr.class",(function(t){t=t||"",this.node.setAttribute("class","group"===this.type&&this._id?"raphael-group-"+this.id+"-"+this._id+" "+t:t)})),i.vml&&n.on("raphael.attr.class",(function(t){var e,i="."+t,n=(n=this.paper)._stylesheet&&n._stylesheet.rules,r=this.parent,o=this.attrs,a={};if(this.node.className="group"===this.type?t&&this._id+" "+t||this._id:"rvml "+t,i&&n){for(e in t=n[i])"color"===e&&"text"===this.type&&(e="fill"),!o[e]&&(a[e]=t[e]);for(;r&&r.attr;){if(t=r.attr("class"))for(e in t=n[i="."+t+" "+i])"color"===e&&"text"===this.type&&(e="fill"),o[e]||a[e]||(a[e]=t[e]);r=r.parent}this.css(a)}})),a.css=function(t,e){var r,o,a,l;if(this.removed)return this;if(this.styles||(this.styles={}),null==e&&i.is(t,"string")){for(o={},l=0,a=(r=t.split(s)).length;l<a;l++)(t=r[l])in this.styles&&(o[t]=this.styles[t]);return a-1?o:o[r[0]]}if(null==e&&i.is(t,"array")){for(o={},l=0,a=t.length;l<a;l++)o[t[l]]=this.styles(t[l]);return o}for(l in null!=e?(r={})[t]=e:null!=t&&i.is(t,"object")&&(r=t),o={},r)a=l.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),i._availableAttrs.hasOwnProperty(a)||"color"===a?("color"===a&&"text"===this.type&&(a="fill"),o[a]=r[l],o.dirty=!0):(n("raphael.css."+a+"."+this.id,this,r[l],a),this.node.style[a]=r[l],this.styles[a]=r[l]);for(l=0,a=this.followers.length;l<a;l++)this.followers[l].el.attr(r);return o.hasOwnProperty("dirty")&&(delete o.dirty,this.attr(o)),this}}]),FusionCharts.register("module",["private","modules.renderer.js-raphaelexport",function(){var t=this.hcLib,e=t.Raphael,i=t.pluckNumber,n=t.pluck,r=e._availableAttrs,o=/^matrix\(|\)$/g,a=/\,/g,s=/\n|<br\s*?\/?>/gi,l=/[^\d\.]/gi,c=/[\%\(\)\s,\xb0#]/g,h=/group/gi,d=/&/g,u=/"/g,p=/'/g,f=/</g,g=/>/g,m=0;!function(t){var e=Math,v=parseFloat,b=e.max,y=e.abs,x=e.pow,w=String,_=/[, ]+/,C=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/gi,repStr:""},{reg:/^.*<svg /,repStr:'<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" '},{reg:/\/svg>.*$/,repStr:"/svg>"},{reg:/<desc\>[^<]*<\/desc\>/,repStr:""},{reg:/zIndex="[^"]+"/g,repStr:""},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{
27reg:/<ima?ge? ([^\>]+?[^\/])\>/gi,repStr:"<image $1 />"},{reg:/<\/ima?ge?\>/g,repStr:""},{reg:/style="([^"]+)"/g,repStr:function(t){return t.toLowerCase()}}],S={blur:function(){},transform:function(){},src:function(t,e){e.attrSTR+=' xlink:href="'+e.attrs.src+'"'},path:function(e,i){var n=i.attrs.path;n=t._pathToAbsolute(n||"");i.attrSTR+=' d="'+(n.toString&&n.toString()||"").replace(a," ")+'"'},gradient:function(i,n,r){var o,a,s,l,h,d,u,p=i.attrs.gradient,f="linear",g=.5,m=.5,_=a="",C="";if(!r[o=p.replace(c,"_")]){if(p=w(p).replace(t._radial_gradient,(function(t,i){var n,r,o,a,s,c,p;return i=i&&i.split(",")||[],f="radial",n=i[0],r=i[1],o=i[2],a=i[3],s=i[4],u=i[5],p=n&&r,o&&(d=/\%/.test(o)?o:v(o)),"userSpaceOnUse"===u?(p&&(g=n,m=r),a&&s&&(l=a,h=s,p||(g=l,m=h)),""):(p&&(g=v(n),n=2*(.5<(m=v(r)))-1,.25<(c=x(g-.5,2))+x(m-.5,2)&&.25>c&&(m=e.sqrt(.25-c)*n+.5)&&.5!==m&&(m=m.toFixed(5)-1e-5*n)),a&&s&&(l=v(a),n=2*(.5<(h=v(s)))-1,.25<(c=x(l-.5,2))+x(h-.5,2)&&.25>c&&(h=e.sqrt(.25-c)*n+.5)&&.5!==h&&(h=h.toFixed(5)-1e-5*n),p||(g=l,m=h)),"")})),p=p.split(/\s*\-\s*/),"linear"===f){if(a=p.shift(),a=-v(a),isNaN(a))return null;
27s=[0,0,e.cos(t.rad(a)),e.sin(t.rad(a))],a=1/(b(y(s[2]),y(s[3]))||1),s[2]*=a,s[3]*=a,0>s[2]&&(s[0]=-s[2],s[2]=0),0>s[3]&&(s[1]=-s[3],s[3]=0)}if(!(p=t._parseDots(p)))return null;for("radial"===f?(a='<radialGradient fx = "'+g+'" fy = "'+m+'" cy = "'+h+'" cx = "'+l+'" r = "'+d+'" gradientUnits = "'+u+'" id = "'+o+'">',_="</radialGradient>"):(a='<linearGradient x1 = "'+s[0]+'" y1 = "'+s[1]+'" x2 = "'+s[2]+'" y2 = "'+s[3]+'" gradientTransform ="matrix('+i.matrix.invert()+')" id = "'+o+'">',_="</linearGradient>"),i=0,s=p.length;i<s;i++)C+='<stop offset="'+(p[i].offset?p[i].offset:i?"100%":"0%")+'" stop-color="'+(p[i].color||"#fff")+'" stop-opacity="'+(void 0===p[i].opacity?1:p[i].opacity)+'" />';r[o]=!0,r.str+=a+C+_}n.attrSTR+=" fill=\"url('#"+o+"')\""},fill:function(e,i){var n,r=i.attrs,o=r.fill;e.attrs.gradient||(n=(o=t.color(o)).opacity,"text"===e.type?i.styleSTR+="fill:"+o+"; stroke-opacity:0; ":(i.attrSTR+=' fill="'+o+'"',r["fill-opacity"]||!n&&0!==n||(i.attrSTR+=' fill-opacity="'+n+'"')))},stroke:function(e,i){var n,r,o=i.attrs;r=(n=t.color(o.stroke)).opacity,"text"!==e.type&&(i.attrSTR+=' stroke="'+n+'"',o["stroke-opacity"]||!r&&0!==r||(i.attrSTR+=' stroke-opacity="'+r+'"'))},"clip-rect":function(t,e,i){var n=(r=w(e.attrs["clip-rect"])).split(_),r=r.replace(c,"_")+"__"+m++;4===n.length&&(i[r]||(i[r]=!0,i.str+='<clipPath id="'+r+'"><rect x="'+n[0]+'" y="'+n[1]+'" width="'+n[2]+'" height="'+n[3]+'" transform="matrix('+t.matrix.invert().toMatrixString().replace(o,"")+')"/></clipPath>'),e.attrSTR+=' clip-path="url(#'+r+')"')},cursor:function(t,e){var i=e.attrs.cursor;i&&(e.styleSTR+="cursor:"+i+"; ")},font:function(t,e){e.styleSTR+="font:"+e.attrs.font.replace(/\"/gi," ")+"; "},"font-size":function(t,e){var i=n(e.attrs["font-size"],"10");i&&i.replace&&(i=i.replace(l,"")),e.styleSTR+="font-size:"+i+"px; "},"font-weight":function(t,e){e.styleSTR+="font-weight:"+e.attrs["font-weight"]+"; "},"font-family":function(t,e){e.styleSTR+="font-family:"+e.attrs["font-family"]+"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},"vertical-align":function(){},"text-anchor":function(t,e){var i=e.attrs["text-anchor"]||"middle";"text"===t.type&&(e.attrSTR+=' text-anchor="'+i+'"')},title:function(){},text:function(t,e){var r,o,a,c=e.attrs,h=c.text,m=n(c["font-size"],c.font,"10"),v=n(c["line-height"]);for(m&&m.replace&&(m=m.replace(l,"")),m=i(m),v&&v.replace&&(v=v.replace(l,"")),v=i(v,m&&1.2*m),r=m?.85*m:.75*v,m=c.x,o=n(c["vertical-align"],"middle").toLowerCase(),a=(h=w(h).split(s)).length,c=0,r="top"===o?r:"bottom"===o?r-v*a:r-v*a*.5;c<a;c++)e.textSTR+="<tspan ",o=(h[c]||"").replace(d,"&amp;").replace(u,"&quot;").replace(p,"&#39;").replace(f,"&lt;").replace(g,"&gt;"),e.textSTR=c?e.textSTR+'dy="'+v+'" x="'+m+'" ':e.textSTR+'dy="'+r+'"',e.textSTR+=">"+o+"</tspan>"}},k=function(t,e){var i,n,a="",s={attrSTR:"",styleSTR:"",textSTR:"",attrs:t.attr()},l=t.isShadow,c="",d="",u=s.attrs;if("none"===t.node.style.display||l)t.next&&(a+=k(t.next,e));else{for(i in u)"gradient"===i||void 0===r[i]&&!S[i]||void 0===u[i]||(S[i]?S[i](t,s,e):s.attrSTR+=" "+i+'="'+u[i]+'"');for(n in t.attrs.gradient&&S.gradient(t,s,e),"rect"===t.type&&u.r&&(s.attrSTR+=' rx="'+u.r+'" ry="'+u.r+'"'),t.styles)s.styleSTR+=n+":"+t.styles[n]+"; ";"image"===t.type&&(s.attrSTR+=' preserveAspectRatio="none"'),"text"!==t.type||u["text-anchor"]||S["text-anchor"](t,s),t.bottom&&(c=k(t.bottom,e)),t.next&&(d=k(t.next,e)),(l=t.type).match(h)&&(l="g"),a+="<"+l+' transform="matrix('+t.matrix.toMatrixString().replace(o,"")+')" style="'+s.styleSTR+'"'+s.attrSTR+">"+s.textSTR+c+"</"+l+">"+d}return a},A=function(t,e){var i,n="";for(i in t)t.hasOwnProperty(i)&&("init"===e?n+=i+" { "+A(t[i],"attr")+" };":"attr"===e&&"object"!=typeof t[i]&&void 0!==t[i]&&(n+=i+": "+t[i]+";"));return"init"===e?n.slice(0,-1):n};t.fn.toSVG=function(e){var i="",n={str:""},r=0,o=C.length,a="";if(t.svg){if(this.canvas&&this.canvas.parentNode){for(i=this.canvas.parentNode.innerHTML;r<o;r+=1)n=C[r],i=i.replace(n.reg,n.repStr);this._stylesheet&&this._stylesheet.rules&&(i=i.replace(/^(<svg\s[\s\S]*?>)/gi,'$1<style type="text/css">'+A(this._stylesheet.rules,"init")+"</style>"))}}else i='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+this.height+'">',this.bottom&&(a=k(this.bottom,n)),i+="<defs>"+n.str+"</defs>"+a+"</svg>";return e||(i=i.replace(/<image [^\>]*\>/gi,(function(t){return t.match(/href=\"data\:image/i)?t:""}))),i}}(e)}]),FusionCharts.register("module",["private","modules.renderer.js-raphaelshadow",function(){var t,e=(r=this.window).Math.sqrt,i=r.parseFloat,n=r.parseInt,r=r.SVGFilterElement||r.SVGFEColorMatrixElement&&2===r.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE,o=this.hcLib.Raphael,a={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","stroke-linejoin":"stroke-linejoin","shape-rendering":"shape-rendering",transform:"transform"},s=o._createNode;o.svg?(r&&(o.el.dropshadow=function(t,n,r,a){var l,c=this.node,h=this._.shadowFilter,d=this.paper.cacheShadows||(this.paper.cacheShadows={}),u="drop-shadow"+[t,n,r,a].join(" ");if("none"===t){if(h){if(--h.use,this.node.removeAttribute("filter"),!h.use){for(l in u=h.hash,h)(t=h[l]).parentNode&&t.parentNode.removeChild(t),delete h[l];delete d[u]}delete this._.shadowFilter}}else h&&d[u]===h||(h=this.paper.defs.appendChild(s("filter",{id:o.createUUID(),width:"200%",height:"200%"})),(a=o.color(a)).error&&(a=o.color("rgba(0,0,0,1)")),l=o.pick(a.opacity,1),this._.shadowFilter=d[u]={use:1,filter:h,hash:u,offset:h.appendChild(s("feOffset",{result:"offOut",in:"SourceGraphic",dx:i(t),dy:i(n)})),matrix:h.appendChild(s("feColorMatrix",{result:"matrixOut",in:"offOut",type:"matrix",values:"0 0 0 0 "+a.r/255+" 0 0 0 0 "+a.g/255+" 0 0 0 0 "+a.b/255+" 0 0 0 "+l+" 0"})),blur:h.appendChild(s("feGaussianBlur",{result:"blurOut",in:"matrixOut",stdDeviation:e(i(r))})),blend:h.appendChild(s("feComposite",{in:"SourceGraphic",in2:"blurOut",operator:"over"}))},c.setAttribute("filter",'url("'+o._url+"#"+h.id+'")'));return this}),t=function(t,e){var i,n,r=this.__shadowscale,o={};for(n in t)switch(a[n]&&(o[n]=t[n],delete t[n]),n){case"transform":(i=e.matrix.clone()).translate(this.__shadowx,this.__shadowy),this.transform(i.toTransformString());break;case"stroke-width":t[n]=((o[n]||1)+6-2*this.__shadowlevel)*r}for(n in this.attr(t),o)t[n]=o[n]},o.ca["drop-shadow"]=function(e,i,r,a,s,l){var c,h,d,u,p;if(r=this._.shadows||(this._.shadows=[]),!this.__shadowblocked)if("none"===e)for(;h=r.pop();)h.remove();else for((a=o.color(a)).error&&(a=o.color("rgba(0,0,0,1)")),s instanceof Array?(c=s[0],s=s[1]):c=s,c=1/o.pick(c,1),s=1/o.pick(s,1),e=o.pick(e,1)*c,i=o.pick(i,1)*c,c=.05*o.pick(a.opacity,1),d=n(this.attr("stroke-width")||1,10)+6,(u=this.matrix.clone()).translate(e,i),p=1;3>=p;p++)(h=(r[p-1]||this.clone().follow(this,t,!l&&"before")).attr({stroke:a.hex,"stroke-opacity":c*p,"stroke-width":(d-2*p)*s,transform:u.toTransformString(),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"})).__shadowlevel=p,h.__shadowscale=s,h.__shadowx=e,h.__shadowy=i,l&&l.appendChild(h),r.push(h);return!1}
27,o.el.shadow=function(t,e,i,n){var r;if(i&&i.constructor===o.el.constructor&&(n=i,i=void 0),"object"==typeof t&&(e&&e.constructor===o.el.constructor&&(n=e),e=t.opacity,i=t.scalefactor,r=!!t.useFilter,t=void 0===t.apply?!!e:t.apply),void 0===e&&(e=1),this.dropshadow){if(r)return t&&this.dropshadow(1,1,3,"rgb(64,64,64)")||this.dropshadow("none"),this;this._.shadowFilter&&this.dropshadow("none")}return this.attr("drop-shadow",t?[1,1,3,"rgba(64,64,64,"+e+")",i,n]:"none")}):o.vml?(o.ca["drop-shadow"]=function(t,e,n,r,a,s){var l,c,h=this._.shadow;return this.isShadow||("none"===t?h&&(this._.shadow=h.remove()):(h||(h=this._.shadow=this.clone(),s&&s.appendChild(h.follow(this))||h.follow(this,void 0,"before"),h.attr({fill:"none","fill-opacity":.5,"stroke-opacity":1}).isShadow=!0,0>=h.attr("stroke-width")&&h.attr("stroke-width",1)),l=(s=h.node.runtimeStyle).filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),(r=o.color(r)).error&&(r=o.color("rgba(0,0,0,1)")),c=o.pick(r.opacity,1)/5,a=1/o.pick(a,1),t=o.pick(t,1)*a,e=o.pick(e,1)*a,h.translate(t,e),s.filter=l+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+i(.4*n)+" makeShadow=True Color="+r.hex+' shadowOpacity="'+c+'");')),!1},o.el.shadow=function(t,e,i,n){return i&&i.constructor===o.el.constructor&&(n=i,i=void 0),"object"==typeof t&&(e&&"group"===e.type&&(n=e),e=t.opacity,i=t.scalefactor,t=void 0===t.apply?!!e:t.apply),void 0===e&&(e=1),this.attr("drop-shadow",t||!e?[1,1,5,"rgba(64,64,64,"+e+")",i,n]:"none")}):o.canvas&&(o.el.shadow=function(){return this})}]),FusionCharts.register("module",["private","modules.renderer.js-raphaelshapes",function(){var t,e,i,n=this.window,r="createTouch"in n.document,o=/msie/i.test(n.navigator.userAgent)&&!n.opera,a=n.Math,s=a.cos,l=a.sin,c=a.abs,h=a.pow,d=a.atan2,u=a.tan,p=a.acos,f=a.min,g=a.round,m=a.PI,v=a.sqrt,b=2*m,y=n.parseInt,x=n.parseFloat,w=String,_=Array.prototype.slice,C=h(2,-24),S="rgba(192,192,192,"+(o?.002:1e-6)+")",k=this.hcLib.Raphael,A=k.eve,T=k._createNode,L=k._setFillAndStroke,D=k.el.constructor,E={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},P={enabled:!1,false:!1,0:!1,disabled:!0,true:!0,1:!0},I={Q:"L",Z:"X",q:"l",z:"x",",":" "},M=/,?([achlmqrstvxz]),?/gi,O=/\s*\,\s*/g,F=function(){return this.join(",").replace(M,t)},R=k._cacher((function(t,e,i,n){return v(h(i-t,2)+h(n-e,2))})),B=k._cacher((function(t,e,i,n,r){var o=n-e;return{x:t+(i-t)/(i=R(t,e,i,n))*r,y:e+o/i*r}}));k.svg?A.on("raphael.attr.shape-rendering",(function(t,e){var i=this.node;this.attrs[e]=t=E[t]||t||"auto",i.setAttribute(e,t),i.style.shapeRendering=t})):k.vml&&A.on("raphael.attr.shape-rendering",(function(t){this.node.style.antialias="crisp"!==t})),k.define&&k.define([{name:"polypath",polypath:function(){return this.path(void 0,k._lastArgIfGroup(arguments))},ca:{polypath:function(t,e,i,n,r,o){var a,c,h;if(a=[],t=y(t,10)||0,e=x(e)||0,i=x(i)||0,n=x(n)||0,r=null===r||isNaN(r)?.5*m:k.rad(r),o=null===o||isNaN(o)?0:x(o),c=r,2<t)switch(r=2*m/t,o){case 0:for(o=0;o<t;o++)a.push("L",e+n*s(-c),i+n*l(-c)),c+=r;a[0]="M",a.push("Z");break;case 1:for(o=0;o<t;o++)a.push("M",e,i,"L",e+n*s(-c),i+n*l(-c)),c+=r;break;default:for(h=n*s(r*=.5)*(1-o),o=0;o<t;o++)a.push("L",e+n*s(-c),i+n*l(-c)),c+=r,a.push("L",e+h*s(-c),i+h*l(-c)),c+=r;a[0]="M",a.push("Z")}else 0===n?a.push("M",e,i,"L",e,i,"Z"):a.push("M",e-n,i,"A",n,n,0,0,0,e+n,i,"A",n,n,0,0,0,e-n,i,"Z");return{path:a}},r:function(t){var e=this.attrs.polypath;return e[3]=t,this.attr("polypath",e),!1}}},{name:"ringpath",ringpath:function(){return this.path(void 0,k._lastArgIfGroup(arguments))},ca:function(t,e,i,n,r,o){var a,h,d,u,p,f,g=o%b-r%b,v=o-r;return this._.ringangle=.5*(r+o),c(v)<C?i=["M",t+i*(a=s(r)),e+i*(v=l(r)),"L",t+n*a,e+n*v,"Z"]:(c(v)>C&&+(c(v)%b<C||b-c(v)%b<C)?(i=["M",t-i,e,"A",i,i,0,0,0,t+i,e,"A",i,i,0,0,0,t-i,e],0!==n&&(i=i.concat(["M",t-n,e,"A",n,n,0,0,1,t+n,e,"A",n,n,0,0,1,t-n,e]))):(a=s(r),v=l(r),h=s(o),o=l(o),0>(g%=b)&&(g+=b),g=g<m?0:1,p=e+i*v,u=t+i*h,f=e+i*o,h=t+n*h,o=e+n*o,.01>c((d=t+i*a)-u)&&.01>c(p-f)&&(d=t+i*s(r+.0001745329),p=e+i*l(r+.0001745329)),i=["M",d,p,"A",i,i,0,g,1,u,f,"L",h,o],0!==n&&(v=e+n*v,.01>c(h-(a=t+n*a))&&.01>c(o-v)&&(a=t+n*s(r+.0001745329),v=e+n*l(r+.0001745329)),i.push("A",n,n,0,g,0,a,v))),i.push("Z")),{path:i}}},{name:"cubepath",cubepath:function(){var t,e,i={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},n=arguments,r=n.length-1,o=n[r];for(e in o&&o.constructor===k.el.constructor?n[r]=void 0:o=void 0,r=this.path(i,o),t=this.path(i,o),(i=this.path(i,o))._.cubetop=r.follow(i,void 0,"before"),i._.cubeside=t.follow(i,void 0,"before"),k.fn.cubepath.ca)i.ca[e]=k.fn.cubepath.ca[e];return i.attr("cubepath",[n[0],n[1],n[2],n[3],n[4],n[5]])},fn:{_getBBox2:function(){var t=this._.cubeside.getBBox(),e=this._.cubetop.getBBox(),i=this.getBBox();return{x:i.x+e.height,y:i.y-t.width,width:i.width,height:i.height}}}
27,ca:{cubepath:function(t,e,i,n,r,o){var a=this._.cubetop,s=this._.cubeside;return t=t||0,e=e||0,i=i||0,n=n||0,r=r||0,o=o||0,this.attr("path",["M",t+i,e,"l",0,n,-i,0,0,-n,"z"]),a.attr("path",["M",t,e,"l",1,1,i-1,0,0,-1,r,-o,-i,0,"z"]),s.attr("path",["M",t+i-1,e+1,"l",0,n-1,1,0,r,-o,0,-n,-r,o]),!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(t,e,i,n){var r=this._.cubetop,o=this._.cubeside;return this.dropshadow&&(r.dropshadow(t,-e,i,n),o.dropshadow(t,-e,i,n)),!1},fill:function(t,e){var i,n=this._.cubetop,r=this._.cubeside,o=(s=this.attr("cubepath")||[0,0,0,0,0,0])[2],a=s[4],s=s[5];return t=k.color(t),e?(this.attr("fill",t),n.attr("fill",k.tintshade(t,-.78).rgba),r.attr("fill",k.tintshade(t,-.65).rgba)):(i="opacity"in t?"rgba("+[t.r,t.g,t.b,t.opacity]+")":"rgb("+[t.r,t.g,t.b]+")",this.attr("fill",[270,k.tintshade(i,.55).rgba,k.tintshade(i,-.65).rgba].join("-")),r.attr("fill",[270,k.tintshade(i,-.75).rgba,k.tintshade(i,-.35).rgba].join("-")),n.attr("fill",[45+k.deg(d(s,a+o)),k.tintshade(i,-.78).rgba,k.tintshade(i,.22).rgba].join("-"))),!1}}},{name:"scroller",scroller:function(t,e,i,n,r,o,a){var s=this.group("scroller",a),l=s.attrs,h=s._.scroller={};r=r?"horizontal":"vertical";var d,u,p,f,g={};for(f in h.track=this.rect(s).mousedown((function(t){var e=l["scroll-position"];t=((t="horizontal"===l["scroll-orientation"]?t.layerX||t.x:t.layerY||t.y)-h.anchorOffset)/h.trackLength,d=k.animation({"scroll-position":t},2e3*c(e-t),"easeIn"),s.animate(d),A("raphael.scroll.start."+s.id,s,e)})).mouseup(h._mouseupTrack=function(){this.stop(d),A("raphael.scroll.end."+this.id,this,l["scroll-position"])},s,!0),h.anchor=this.rect(s).drag((function(){g["scroll-position"]=u+arguments[p]/h.trackLength,s.animate(g,0)}),(function(t,e,i){p="horizontal"===l["scroll-orientation"]?0:1,A("raphael.scroll.start."+s.id,s,u=l["scroll-position"]),i.stopPropagation()}),(function(){A("raphael.scroll.end."+s.id,s,u=l["scroll-position"])})),k.fn.scroller.fn)s[f]=k.fn.scroller.fn[f];for(f in k.fn.scroller.ca)s.ca[f]=k.fn.scroller.ca[f];return l["scroll-orientation"]=r,l["stroke-width"]=1,s.ca["scroll-repaint"]=s.ca["scroll-repaint-"+r],!k.is(o,"object")&&(o={}),s.attr({ishot:!0,"scroll-display-buttons":o.showButtons?"arrow":"none","scroll-display-style":o.displayStyleFlat?"flat":"3d","scroll-ratio":x(o.scrollRatio)||1,"scroll-position":x(o.scrollPosition)||0,"scroll-repaint":[t,e,i,n]})},fn:{scroll:function(t,e){var i=this._.scroller;return e=e||this,i.callback=function(){return t.apply(e,arguments)},this},remove:function(){var t,e=this._.scroller;for(t in this.attr("scroll-display-buttons","none"),e.track.unmouseup(e._mouseupTrack),e)e[t]&&e[t].remove&&e[t].remove(),e[t]=null;delete this._.scroller,k.el.remove.apply(this,arguments)}},ca:{"stroke-width":function(){return!1},"drop-shadow":function(t,e,i,n,r,o){return this._.scroller.track.attr("drop-shadow",[t,e,i,n,r,o]),!1},"scroll-display-style":function(t){var e=this.attrs,i=e["scroll-display-style"],n=e.fill;return t={flat:"flat","3d":"3d",transparent:"transparent"}[t]||i,n&&t!==i&&(e["scroll-display-style"]=t,this.attr("fill",n)),{"scroll-display-style":t}},"scroll-display-buttons":function(t){var e,i,n=this,r=n.paper,o=n._.scroller,a=n.attrs,s=a["scroll-display-buttons"],l=a["scroll-repaint"];return void 0===s&&(s="none"),(t={none:"none",arrow:"arrow"}[t]||s)!==s&&(a["scroll-display-buttons"]=t,"none"===t&&o.start?(o.arrowstart.remove(),delete o.arrowstart,o.arrowend.remove(),delete o.arrowend,o.start.unmouseup(o._mouseupStart),o.start.remove(),delete o.start,o.end.unmouseup(o._mouseupEnd),o.end.remove(),delete o.end):(o.arrowstart=r.polypath(n),o.arrowend=r.polypath(n),o.start=r.rect(n).mousedown((function(){var t;0!==(t=a["scroll-position"])&&(n.animate({"scroll-position":t-.1},100).animate(e=k.animation({"scroll-position":0},4500*t,"easeIn")),A("raphael.scroll.start."+n.id,n,t))})).mouseup(o._mouseupStart=function(){n.stop(e),A("raphael.scroll.end."+n.id,n,a["scroll-position"])},n,!0),o.end=r.rect(n).mousedown((function(){var t;1!==(t=a["scroll-position"])&&(n.animate({"scroll-position":t+.1},100).animate(i=k.animation({"scroll-position":1},4500*(1-t),"easeIn")),A("raphael.scroll.start."+n.id,n,t))})).mouseup(o._mouseupEnd=function(){n.stop(i),A("raphael.scroll.end."+n.id,n,a["scroll-position"])},n,!0),a.fill&&n.attr("fill",a.fill)),l&&n.attr("scroll-repaint",l)),{"scroll-display-buttons":t}},"scroll-orientation":function(t){var e=this.attrs,i=e["scroll-repaint"],n=e["scroll-orientation"];return n!==(t={horizontal:"horizontal",vertical:"vertical"}[t]||n)&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+t],i&&(i[2]+=i[3],i[3]=i[2]-i[3],i[2]-=i[3],this.attr("scroll-repaint",i)),e.fill&&this.attr("fill",e.fill)),{"scroll-orientation":t}},"scroll-ratio":function(t){var e=this.attrs,i=e["scroll-ratio"],n=e["scroll-repaint"];return t=1<t?1:.01>t?.01:x(t),n&&t!==i&&(e["scroll-ratio"]=t,this.attr("scroll-repaint",n)),{"scroll-ratio":t}},"scroll-position":function(t,e){var i=this.attrs,n="horizontal"===i["scroll-orientation"],r=i["scroll-repaint"],o=i["scroll-position"],a=this._.scroller,s=a.anchor;return t=1<t?1:0>t?0:x(t),isNaN(t)&&(t=o),r&&(o!==t||e)&&(o=a.start&&a.start.attr(n?"width":"height")||0,n&&s.attr("x",r[0]+o+(r[2]-2*o-s.attr("width"))*t+.5)||s.attr("y",r[1]+o+(r[3]-2*o-s.attr("height"))*t+.5),!e&&1>i["scroll-ratio"]&&(A("raphael.scroll.change."+this.id,this,t),a.callback&&a.callback(t))),{"scroll-position":t}},r:function(t){var e=this._.scroller;return e.track.attr("r",t),e.anchor.attr("r","none"===this.attrs["scroll-display-buttons"]&&t||0
27),!1},"scroll-repaint-horizontal":function(t,e,i,n){var r=this.attrs,o=this._.scroller,a=r["scroll-ratio"],s=r["scroll-position"],l=0,c=i*a;r="none"===r["scroll-display-buttons"];i&&--i,t&&(t+=.5),n&&--n,e&&(e+=.5),o.track.attr({width:i,height:n,y:e,x:t}).crisp(),r||(c-=2*(l=f(n,.5*i))*a,o.start.attr({width:l,height:n,x:t,y:e}),o.arrowstart.attr("polypath",[3,t+.5*l,e+.5*n,.25*l,180]),o.end.attr({width:l,height:n,x:t+i-l,y:e}),o.arrowend.attr("polypath",[3,t+i-.5*l,e+.5*l,.25*l,0])),o.trackLength=i-2*l-c,o.trackOffset=t+l+.5,o.anchorOffset=o.trackOffset+.5*(c-1),o.anchor.attr({height:n,width:c-1,y:e,x:o.trackOffset+o.trackLength*s}).crisp()},"scroll-repaint-vertical":function(t,e,i,n){var r=this.attrs,o=this._.scroller,a=r["scroll-ratio"],s=r["scroll-position"],l=0,c=n*a;r="none"===r["scroll-display-buttons"];i&&--i,t&&(t+=.5),n&&--n,e&&(e+=.5),o.track.attr({width:i,height:n,y:e,x:t}).crisp(),r||(c-=2*(l=f(i,.5*n))*a,o.start.attr({width:i,height:l,x:t,y:e}),o.arrowstart.attr("polypath",[3,t+.5*i,e+.5*l,.25*l,90]),o.end.attr({width:i,height:l,x:t,y:e+n-l}),o.arrowend.attr("polypath",[3,t+.5*i,e+n-.5*l,.25*l,-90])),o.trackLength=n-2*l-c,o.trackOffset=e+l+.5,o.anchorOffset=o.trackOffset+.5*(c-1),o.anchor.attr({height:c-1,width:i,y:o.trackOffset+o.trackLength*s,x:t}).crisp()},fill:function(t){var e,i=this.attrs,n=this._.scroller,o=i["scroll-repaint"],a="flat"===i["scroll-display-style"],s="horizontal"===i["scroll-orientation"],l={stroke:"none"};return r&&o&&3<(e=16-o[s?3:2])&&(l.stroke=S,l["stroke-width"]=e),(t=k.color(t)).error&&(t=k.color("#000000")),t="opacity"in t?"rgba("+[t.r,t.g,t.b,t.opacity]+")":"rgb("+[t.r,t.g,t.b]+")",l.fill=a&&t||[90*s,k.tintshade(t,.15).rgba,t].join("-"),l.stroke=k.tintshade(t,-.75).rgba,n.track.attr(l),l.fill=a&&k.tintshade(t,-.6).rgba||[270*s,k.tintshade(t,.3).rgba+":40",k.tintshade(t,-.7).rgba].join("-"),l.stroke=k.tintshade(t,-.6).rgba,n.anchor.attr(l),l.stroke="none","none"!==i["scroll-display-buttons"]&&(l.fill=S,n.start.attr(l),n.end.attr(l),l.fill=k.tintshade(t,-.4).rgba,n.arrowstart.attr(l),n.arrowend.attr(l)),!1}}},{name:"button",button:function(t,e,i,n,r,o){var a;for(a in(o=this.group("button",o))._.button={bound:this.rect(o),tracker:this.rect(o).attr({fill:S,stroke:S,cursor:"pointer"}).data("compositeButton",o)},!k.is(r,"object")&&(r={}),k.fn.button.fn)o[a]=k.fn.button.fn[a];for(a in k.fn.button.ca)o.ca[a]=k.fn.button.ca[a];return o.attr({ishot:!0,"button-padding":[r.horizontalPadding,r.verticalPadding],"button-label":i,"button-symbol":n,"button-disabled":r.disabled||"false","button-symbol-position":r.symbolPosition,"button-symbol-padding":r.symbolPadding}).attr("button-repaint",[t,e,r.width,r.height,r.r])},data:{hoverin:function(){var t=this._.button,e=t.hoverbackIn,i=this._hover||{};i.fill||i.stroke||i["stroke-width"]||i.cursor?(i.fill&&this.bottom.attr("fill",i.fill)&&t.symbol.attr("fill",i.fill),i.stroke&&this.bottom.attr("stroke",i.stroke)&&t.symbol.attr("stroke",i.stroke),i["stroke-width"]&&this.bottom.attr("stroke-width",i["stroke-width"])&&t.symbol.attr("stroke-width",i["stroke-width"]),i.cursor&&t.tracker.attr("cursor",i.cursor),e&&e()):e&&!1===e(arguments)||this.attr("fill","hover"),this.hovered=!0},hoverout:function(){var t=this._.button,e=t.hoverbackOut,i=this._normal||{};i.fill||i.stroke||i["stroke-width"]||i.cursor?(i.fill&&this.bottom.attr("fill",i.fill)&&t.symbol.attr("fill",i.fill),i.stroke&&this.bottom.attr("stroke",i.stroke)&&t.symbol.attr("stroke",i.stroke),i["stroke-width"]&&this.bottom.attr("stroke-width",i["stroke-width"])&&t.symbol.attr("stroke-width",i["stroke-width"]),i.cursor&&t.tracker.attr("cursor",i.cursor),e&&e()):e&&!1===e(arguments)||this.attr("fill",this.pressed||this.active?"active":"normal"),this.hovered=!1},mousedown:function(){var t=this._.button,e=this._pressed||{};e.fill||e.stroke||e["stroke-width"]||e.cursor?(e.fill&&this.bottom.attr("fill",e.fill)&&t.symbol.attr("fill",e.fill),e.stroke&&this.bottom.attr("stroke",e.stroke)&&t.symbol.attr("stroke",e.stroke),e["stroke-width"]&&this.bottom.attr("stroke-width",e["stroke-width"])&&t.symbol.attr("stroke-width",e["stroke-width"]),e.cursor&&t.tracker.attr("cursor",e.cursor)):this.attr("fill","active"),this.pressed=!0},mouseup:function(){var t=this._.button,e=t.callback,i=this._normal||{};i.fill||i.stroke||i["stroke-width"]||i.cursor?(i.fill&&this.bottom.attr("fill",i.fill)&&t.symbol.attr("fill",i.fill),i.stroke&&this.bottom.attr("stroke",i.stroke)&&t.symbol.attr("stroke",i.stroke),i["stroke-width"]&&this.bottom.attr("stroke-width",i["stroke-width"])&&t.symbol.attr("stroke-width",i["stroke-width"]),i.cursor&&t.tracker.attr("cursor",i.cursor)):this.attr("fill",(this.hovered?"hover":this.active&&"active")||"normal"),this.pressed=!1,e&&e(arguments)},mousemove:function(){var t=this._.button.mousemove;t&&t(arguments)}},fn:{tooltip:function(){return k.el.tooltip&&k.el.tooltip.apply(this._.button.tracker,arguments),this},buttonclick:function(t,e){var i=this._.button;return e=e||this,i.callback=function(){return t.apply(e,arguments)},this},labelcss:function(){var t=this._.button,e=t.label;return t.cssArg=arguments,e&&e.css.apply(e,arguments),this.attr("button-repaint",this.attrs["button-repaint"])}
27,buttonhover:function(t,e,i,n,r,o){var a=this._.button;return i=i||this,n=n||this,o=o||this,r&&(a.mousemove=function(){return r.apply(o,arguments)}),a.hoverbackIn=function(){return t.apply(i,arguments)},a.hoverbackOut=function(){return e.apply(n,arguments)},this},remove:function(){var t,e=this._.button;for(t in this.attr("button-disabled","true"),e)e[t]&&e[t].remove&&e[t].remove(),e[t]=null;delete this._.button,k.el.remove.apply(this,arguments)}},ca:{"button-active":function(t){this.attr("fill",(this.active=!!t)?"active":this.hovered?"hover":"normal")},"button-disabled":function(t){var e=this._.button,i=e.tracker,n=this.attrs["button-disabled"],r=this.paper.button.data,o=this._disabled||{};if(t=P[t],n=P[n],void 0!==t&&t!==n)switch(t){case!0:o.fill||o.stroke||o["stroke-width"]||o.cursor?(o.fill&&this.bottom.attr("fill",o.fill)&&e.symbol.attr("fill",o.fill),o.stroke&&this.bottom.attr("stroke",o.stroke)&&e.symbol.attr("stroke",o.stroke),o["stroke-width"]&&this.bottom.attr("stroke-width",o["stroke-width"]&&e.symbol.attr("fill",o.fill)),o.cursor&&e.tracker.attr("cursor",o.cursor)):i.attr("fill","rgba(204,204,205,.5)"),i.unmousedown(r.mousedown).unmouseup(r.mouseup).unhover(r.hoverin,r.hoverout).unmousemove(r.mousemove);break;case!1:i.attr("fill",S).mousedown(r.mousedown,this).mouseup(r.mouseup,this,!0).hover(r.hoverin,r.hoverout,this,this).mousemove(r.mousemove,this)}},"button-label":function(t){var e=this._.button,i=this.attrs,n=e.label,r=e.cssArg,o=this.attrs["button-repaint"];"none"===(t=w(t||""))?n&&(e.label=n.remove()):t&&(!n&&(n=e.label=this.paper.text(this).insertBefore(e.tracker)),n.attr({text:t,"text-anchor":"middle","vertical-align":"middle"}),r&&r.length&&n.css.apply(n,r)),o&&i["button-label"]!==t&&this.attr("button-repaint",o)},"button-symbol":function(t){var e=this._.button,i=e.symbol,n=this.attrs["button-repaint"];"none"===(t=w(t||""))?(i&&(e.symbol=i.remove()),delete e.symbol):t&&!i&&(e.symbol=this.paper.symbol(this).insertAfter(e.bound)),n&&this.attr("button-repaint",n)},"button-symbol-position":function(t){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[w(t).toLowerCase()]||"none"}},"button-symbol-padding":function(t){return{"button-symbol-padding":x(t)}},"button-padding":function(t,e){return{"button-padding":[null==t&&(t=5)||x(t),null==e&&t||x(e)]}},"button-repaint":function(t,e,i,n,r){var o,a,s=this._.button,l=s.bound,c=s.label,h=s.symbol,d=this.attrs,u=d["button-padding"],p=u[0],m=u[1];if(void 0===t&&(t=0),void 0===e&&(e=0),void 0!==i&&void 0!==n||(o=c&&c.getBBox()||{width:0,height:0},void 0===i&&(i=2*p+o.width),void 0===n&&(n=2*m+o.height)),(l=k.crispBound(t,e,i,n,l.attr("stroke-width"))).r=k.pick(r,g(.1*f(n,i))),t=l.x,e=l.y,i=l.width,n=l.height,c&&c.attr({x:t+i/2,y:e+n/2}),h){switch(!k.is(a=d["button-symbol-padding"],"finite")&&(a=.2*n),o=.5*(r=n-m),d["button-symbol-position"]+(c?"+":"-")){case"right+":t=t+(i+(2*o+m))-o-p,e+=.5*n,c.attr("transform",["t",-(r+a),0]);break;case"left+":t=t+p+o,e+=.5*n,c.attr("transform",["t",r+a,0]);break;case"top+":t+=.5*i,e=e+u[1]+o,c.attr("transform",["t",0,r+a]);break;case"bottom+":t+=.5*i,e=e+(n+(2*o+a))-m-o,c.attr("transform",["t",0,-(r+a)]);break;default:t+=.5*i,e+=.5*n}h.attr("symbol",[d["button-symbol"],t,e,o])}s.bound.attr(l),s.tracker.attr(l)},fill:function(t,e,i,n,r){var o=this._.button,a=o.bound,s=o.symbol,l=o.label,c={normal:o.gradient,active:o.gradientActive,hover:o.gradientHover}[t];return c||(r||((t=k.getRGB(t)).error&&(t=k.color("#cccccc")),t="opacity"in t?"rgba("+[t.r,t.g,t.b,t.opacity]+")":"rgb("+[t.r,t.g,t.b]+")"),o.gradient=r?t:[90,k.tintshade(t,-.8).rgba+":0",k.tintshade(t,.8).rgba+":100"].join("-"),o.gradientActive=[270,k.tintshade(t,-.8).rgba+":0",k.tintshade(t,.8).rgba+":100"].join("-"),(n=k.getRGB(n)).error&&(n=t)||(n="opacity"in n?"rgba("+[n.r,n.g,n.b,n.opacity]+")":"rgb("+[n.r,n.g,n.b]+")"),o.gradientHover=r?n:[90,k.tintshade(n,-.9).rgba+":0",k.tintshade(n,.7).rgba+":100"].join("-"),i=i||k.tintshade(t,.2).rgba,e=e||k.tintshade(t,-.2).rgba,o.symbolFill=i,o.labelFill=e,c=(this.pressed||this.active)&&o.gradientActive||this.hovered&&o.gradienthover||o.gradient),a.attr("fill",c),s&&s.attr("fill",o.symbolFill),l&&l.attr("fill",o.labelFill),!1},stroke:function(t,e){var i=this._.button,n=i.symbol;return(t=k.color(t)).error&&(t=k.color("#999999")),i.bound.attr("stroke",t),n&&n.attr("stroke",e||t),!1},"stroke-width":function(t,e){var i=this._.button,n=i.symbol;return i.bound.attr("stroke-width",t),i.tracker.attr("stroke-width",t),n&&n.attr("stroke-width",e),!1},config:function(t){t.hover&&(this._hover={fill:t.hover.fill,stroke:t.hover.stroke,"stroke-width":t.hover["stroke-width"],cursor:t.hover.cursor}),t.disabled&&(this._disabled={fill:t.disabled.fill,stroke:t.disabled.stroke,"stroke-width":t.disabled["stroke-width"],cursor:t.disabled.cursor}),t.pressed&&(this._pressed={fill:t.pressed.fill,stroke:t.pressed.stroke,"stroke-width":t.pressed["stroke-width"],cursor:t.pressed.cursor}),t.normal&&(this._normal={fill:t.normal.fill,stroke:t.normal.stroke,"stroke-width":t.normal["stroke-width"],cursor:t.normal.cursor}),t.symbol&&(t.symbol={stroke:t.normal.stroke,"stroke-width":t.normal["stroke-width"]})}}},{name:"trianglepath",trianglepath:function(){var t=arguments,e=k._lastArgIfGroup(t);return this.path(e).attr("trianglepath",[t[0],t[1],t[2],t[3],t[4],t[5],t[6]||0,t[7]||0,t[8]||0])},fn:{sides:function(){var t=this._args;return[R(t[0],t[1],t[2],t[3]),R(t[2],t[3],t[4],t[5]),R(t[4],t[5],t[0],t[1])]},enclosedAngles:function(){var t=this._sides;return[p((h(t[0],2)+h(t[2],2)-h(t[1],2))/(2*t[0]*t[2])),p((h(t[0],2)+h(t[1],2)-h(t[2],2))/(2*t[0]*t[1])),p((h(t[2],2)+h(t[1],2)-h(t[0],2))/(2*t[2]*t[1]))]},semiperimeter:function(){var t=this._sides||this.sides();return(t[0]+t[1]+t[2])/2}}
27,ca:{trianglepath:function(t,e,i,n,r,o,a,s,l){if(a||s||l){this._args=arguments,this._sides=this.sides();var c,h=this.enclosedAngles();c=this.semiperimeter(),c=v(c*(c-this._sides[0])*(c-this._sides[1])*(c-this._sides[2]))/c,h=[f(a,c)/u(h[0]/2),f(s,c)/u(h[1]/2),f(l,c)/u(h[2]/2)],h=[B(t,e,r,o,h[0]),B(t,e,i,n,h[0]),B(i,n,t,e,h[1]),B(i,n,r,o,h[1]),B(r,o,i,n,h[2]),B(r,o,t,e,h[2])],this.attr({path:["M",h[0].x,h[0].y,"Q",t,e,h[1].x,h[1].y,"L",h[2].x,h[2].y,"Q",i,n,h[3].x,h[3].y,"L",h[4].x,h[4].y,"Q",r,o,h[5].x,h[5].y,"L",h[0].x,h[0].y]})}else this.attr({path:["M",t,e,"L",i,n,r,o,"Z"]})}}}]),k.ca["text-bound"]=function(t,e,i,n,r,o){n=this.paper;var a=this._.textbound;if("text"===this.type)return e&&"none"!==e||t&&"none"!==t?(i&&k.is(i,"finite")||(i=0),r&&k.is(r,"finite")||(r=0),!a&&(a=this._.textbound=n.rect(0,0,0,0,this.group).follow(this,k.ca["text-bound"].reposition,"before")),a.attr({stroke:e,"stroke-width":i,fill:t,"shape-rendering":1===i?"crisp":"",r:r}),o&&a.attr("stroke-dasharray",o),k.ca["text-bound"].reposition.call(a,this.attr(),this),!1):(this._.textbound=a&&a.unfollow(this).remove(),!1)},k.ca["text-bound"].reposition=function(t,e){var i,n,r,o,a,s={};t.hasOwnProperty("visibility")&&this.attr("visibility",t.visibility),(t.hasOwnProperty("text-bound")||t.hasOwnProperty("x")||t.hasOwnProperty("y")||t.hasOwnProperty("text")||t.hasOwnProperty("text-anchor")||t.hasOwnProperty("text-align")||t.hasOwnProperty("font-size")||t.hasOwnProperty("line-height")||t.hasOwnProperty("vertical-align")||t.hasOwnProperty("transform")||t.hasOwnProperty("rotation"))&&(i=e.attrs["text-bound"],n=w(i&&i[3]||"0").split(O),i=x(n[0])||0,n=k.pick(x(n[1]),i),o=(r=e.getBBox()).width,a=r.height,isNaN(o)||(s.x=r.x-i,s.y=r.y-n,s.width=o+2*i,s.height=a+2*n),this.attr(s))},k.fn.symbol=function(){var t=arguments,e=t.length-1,i=t[e];return i&&i.constructor===k.el.constructor?t[e]=void 0:i=void 0,(e=this.path(void 0,i)).ca.symbol=k.fn.symbol.ca.symbol,t.length===!!i+0?e:e.attr("symbol",t)},k.fn.symbol.cache={"":k._cacher((function(t,e,i,n){return 3<arguments.length?["M",t,e,"h",i,"v",n,"h",-i,"v",-n,"z"]:["M",t-i,e-i,"h",i*=2,"v",i,"h",-i,"v",-i,"z"]}))},k.fn.symbol.ca={symbol:function(t){var e,i=k.is(t,"object")&&1===arguments.length&&!k.is(t,"function")?t:arguments;i===t&&(t=i[0]),i=(e=k.is(t,"function")&&t||k.fn.symbol.cache[t]||k.fn.symbol.cache[""])&&e.apply(k,_.call(i,1)),k.is(i,"array")||k.is(i,"string")?this.attr("path",i):i&&this.attr(i)}},k.addSymbol=function(t,e){var i,n=k.is(e,"function")&&((n={})[t]=e,n)||t,r=k.fn.symbol.cache,o=[];for(i in n)e=n[i],r[i]=k.is(e,"function")&&k._cacher(e,k)||(o.push(i),e);for(;i=o.pop();)r[i]=r[r[i]]},k.svg?(t="$1",e=function(e){return e?"string"==typeof e?e=e.replace(M,t):e.toString=F:e="M0,0",this.node.setAttribute("d",e.toString()),this},k._engine.litepath=function(t,e,i,n){return t=T("path"),
28(n||e).canvas.appendChild(t),(e=new D(t,e,n)).type="litepath",e.id=t.raphaelid=k._oid++,t.raphael=!0,L(e,{fill:"none",stroke:"#000"}),e},k._getPath.litepath=function(t){return k.parsePathString(t.node.getAttribute("d"))}):k.vml&&(t=function(t,e){return I[e]||e},i=function(){return this._transform.apply(this,arguments),this._.bcoord&&(this.node.coordsize=this._.bcoord),this},e=function(e){return e?"string"==typeof e?e=e.replace(M,t):e.toString=F:e="M0,0",this.node.path=e,this},k._engine.litepath=function(t,e,n,r){var o=(t=T("shape")).style,a=new D(t,e,r);return o.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;",n=x(n),isNaN(n)?t.coordsize="21600 21600":(a._.bzoom=n,o.width="1px",o.height="1px",t.coordsize=a._.bcoord=n+" "+n),t.coordorigin=e.coordorigin,a.type="litepath",a.id=t.raphaelid=k._oid++,t.raphael=!0,a._transform=a.transform,a.transform=i,k._setFillAndStroke(a,{fill:"none",stroke:"#000"}),(r||e).canvas.appendChild(t),(e=T("skew")).on=!0,t.appendChild(e),a.skew=e,a},k._getPath.litepath=function(t){return k.parsePathString(t.node.path||"")}),k.fn.litepath=function(t,i,n){return i&&i.constructor===D&&(n=i,i=void 0),t&&t.constructor===D&&(n=t,t=""),(i=k._engine.litepath(t,this,i,n)).ca.litepath=e,t&&i.attr("litepath",k.is(t,"array")?[t]:t),this.__set__&&this.__set__.push(i),this._elementsById[i.id]=i}}]),FusionCharts.register("module",["private","modules.renderer.js-htmlrenderer",function(){var t,e,i=this.hcLib,n=i.Raphael,r=i.dem,o=this.window,a=o.document,s=/msie/i.test(o.navigator.userAgent)&&!o.opera,l="VML"===n.type,c=i.hasTouch,h={curs
28or:"cursor"},d={x:"left",y:"top",strokeWidth:"borderThickness","stroke-width":"borderThickness",width:"width",height:"height"},u={fill:"backgroundColor",stroke:"borderColor",color:"color"},p={left:0,top:0,padding:0,border:"none",margin:0,outline:"none","-webkit-apperance":"none",position:"absolute",zIndex:20},f=function(t,e,i,n){for(var r in t=a.createElement(t),e)d[r]?t.style[r]=e[r]:t.setAttribute(r,e[r]);for(r in i)t.style[r]=i[r];return n&&n.appendChild&&n.appendChild(t),t};e=function(t,i,n){i&&i instanceof e&&(i=i.element),(this.element=f(t,n,p,i)).ishot="true",this.nodeName=t.toLowerCase(),this.added=Boolean(i)},e.prototype={attr:function(t){var e,i,n,r,o,c,p,f=this.element,g={};if("object"!=typeof t){if(!(g=this[t])){if("string"==typeof t)f&&f.getAttribute&&(r=f.getAttribute(t));else if(null!=t&&"object"==typeof t)for(n in t)f.setAttribute(n,t[n]);g=r}return g}for(e in t){if(n=t[e],h[e]){if("cursor"===e)"pointer"===n&&l&&(n="hand");f.style[h[e]]=n,i=!0}else if(d[e])f.style[d[e]]=n+"px",i=!0;else if(u[e])f.style[u[e]]=n&&n.replace(/^#?([a-f0-9]+)/gi,"#$1")||"none",i=!0;else if(/^visibility$/i.test(e))i="hidden"===n,f.style.display=i?"none":"",this.hidden=i,i=!0;else if(/^opacity$/i.test(e))f.style.opacity=n,s&&(i=100*Number(n),f.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+i+")"),i=!0;else if(/^innerhtml$/i.test(e)){if(l&&"select"==f.nodeName.toLowerCase()){for(i=n.match(/<option\s?[\s\S]*?(\/>|><\/option>|>[\s\S]*?<\/option>)/gi);f.firstChild;)f.removeChild(f.firstChild);for(o=0,c=i.length;o<c;o+=1)r=i[o],p=a.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/gi.test(r)&&(p.value=r.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/gi,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,"$1")),p.text=r.replace(/<option\s*[\s\S]*[\'\"]?\s*?[\/>|\>]([\s\S]*)<\/option>/gi,"$1 "),f.options.add(p)}else"input"!==f.nodeName.toLowerCase()&&void 0!==n&&(f.innerHTML=n||"");i=!0}else/^text$/i.test(e)?("input"!==f.nodeName.toLowerCase()&&(f.innerHTML="",void 0!==n&&f.appendChild(a.createTextNode(n))),i=!0):/^type$/i.test(e)&&s&&this.added&&(i=!0);i&&(g[e]=n,delete t[e],i=!1)}for(e in t)f.setAttribute(e,t[e]);for(e in g)this[e]=t[e]=g[e],delete g[e];return this},val:function(t){var e=this.element,i=void 0===t;return"input"===this.nodeName&&"checkbox"===e.getAttribute("type")?i?this.checked()?1:0:this.checked(t):i?e.value:(e.value=t,this)},checked:function(t){var e=this.element;return void 0===t?e.checked:(t?e.setAttribute("checked","checked"):e.removeAttribute("checked"),this)},css:function(t,e){var i,n=this.element.style;if("object"==typeof t)for(i in t)n[i]=t[i];else i&&void 0!==e&&(n[i]=e);return this},translate:function(t,e){var i=this.element;return void 0!==t&&(i.style.left=t+"px"),void 0!==e&&(i.style.top=e+"px"),this},add:function(t,e){var i=this.element,n=t.element;return e?n.insertBefore(i,n.firstChild):n.appendChild(i),this.added=!0,this},hide:function(){return this.element.style.display="none",this},show:function(){return this.element.style.display="",this},focus:function(){"function"==typeof this.element.focus?this.element.focus():i.dem.fire(this.element,"focus")},destroy:function(){var e=this.element||{};return e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.onblur=e.onfocus=null,t||(t=f("div")),e&&t.appendChild(e),t.innerHTML="",delete this.element,null},on:l?function(t,e){return this.element["on"+t]=function(){var t=o.event;t.target=t.srcElement,e(t)},this}:function(t,e){var i=e;return c&&"click"===t&&(t="touchstart",i=function(t){t.preventDefault(),e()}),this.element["on"+t]=i,this},bind:function(t,e,i){return r.listen(this.element,t,e,i),this},unbind:function(t,e){return r.unlisten(this.element,t,e),this},trigger:function(t,e){return r.fire(this.element,t,e),this},fadeIn:function(t,e){var n="fast"===t?400:1e3;this.show(),this.attr({opacity:0}),i.danimate.animate(this.element,{opacity:1},n,"linear",e)}},e.prototype.constructor=e,n.fn.html=function(t,i,n,r){var o,a={};for(o in i&&"type"in i&&(a.type=i.type,delete i.type),t=new e(t,r,a).css(n).attr(i),a)i[o]=a[o];return t}}]),FusionCharts.register("module",["private","modules.renderer.js-raphaeltooltip",function(){var t=this,e=t.window,i=e.document,n=i.body||i.getElementsByTagName("body")[0],r=t.hcLib,o=r.Raphael,a=o.eve,s=r.createElement,l=r.addEvent,c=r.removeEvent,h=r.getPosition,d=r.hasTouch,u=r.getTouchEvent,p=e.Math,f=p.ceil,g=p.floor,m={}
28,v=e.screen.availHeight,b=e.screen.availWidth,y={E:1,moz:1,webkit:1,o:1,ms:1},x={borderRadius:"borderRadius",boxShadow:"boxShadow"},w=/\-([a-z])/gi,_=function(t,e){return e.toUpperCase()},C=function(t){var e,i,n,r=S.forbiddenStyle;for(e in t)i=w.test(e)?e.replace(w,_):e,void 0!==t[e]&&!r[i]&&(this[i]=t[e]),o.vml&&/color/gi.test(i)&&(this[i]=o.getRGB(this[i]).toString());for(e in x)if(this[e])for(n in y)this[n+e]=this[e]},S=r.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,prevented:!1,defaultStyle:r.extend2(C.prototype,{backgroundColor:"#ffffee",borderColor:"#000000",borderWidth:"1px",color:"#000000",fontSize:"10px",lineHeight:"12px",padding:"3px",borderStyle:"solid"}),defaultContainerStyle:{position:"absolute",textAlign:"left",margin:"0",zIndex:"99999",pointer:"default",display:"block"},forbiddenStyle:{}},k=function(t){!0===S._oobready?S._oobready=!1:(c(n,"touchstart",k),!S.hidden&&S.currentTarget&&((t=t.srcElement||t.target||m).raphael&&S.currentTarget.paper.getById(t.raphaelid)===S.currentTarget||S.hide()))};o.svg&&(S.defaultContainerStyle.pointerEvents="none",S.defaultStyle.borderRadius="0",S.defaultStyle.boxShadow="none"),o.vml&&(S.forbiddenStyle.borderRadius=!0,S.forbiddenStyle.boxShadow=!0,S.defaultStyle.filter=""),S.setup=function(){var e,n=S.container,r=S.textElement,l=S.style,c=S.defaultContainerStyle,h=S.forbiddenStyle;for(e in n||(n=S.element=s("span"),(i.body||i.getElementsByTagName("body")[0]).appendChild(n),n.setAttribute("id",S.elementId),l=S.containerStyle=n.style,r=S.textElement=s("span"),n.appendChild(r),S.style=o.vml?r.runtimeStyle:r.style,S.style.overflow="hidden",S.style.display="block",S.hidden=!1,S.hide()),c)!h[e]&&(l[e]=c[e]);S.scatted=!0,a.on("raphael.drag.start.*",(function(){S.scatted&&(S.waitingScat=!0)})),a.on("raphael.drag.move.*",(function(){S.waitingScat&&(S.block(),S.waitingScat=!1)})),a.on("raphael.drag.end.*",(function(){S.waitingScat=!1,S.scatted&&S.unblock(!0)})),a.on("raphael.remove",(function(){(S.currentPaper===this||S.currentTarget&&S.currentTarget.paper===this)&&(S.hide(),S.currentTarget=S.currentPaper=null)})),t.addEventListener("LinkedChartInvoked",(function(t){S.currentPaper===t.sender.jsVars.hcObj.paper&&S.hide()})),t.addEventListener("realTimeUpdateComplete",(function(t){S.currentPaper===t.sender.jsVars.hcObj.paper&&S.hide()}))},S.restyle=function(t){var e,i=S.style;for(e in t)i[e]=t[e]},S.onelement=function(t){if(!t.__tipProcessed){var e=this.paper,r="group"===this.type?e&&e._elementFromEvent(t):this,o=e.__tipStyle;r&&o&&r.__tipNeeded&&((t.originalEvent||t).FusionChartsPreventEvent&&S.preventTooltip(),S.hiding&&(S.hiding=clearTimeout(S.hiding)),S.currentPaper!==e&&(e.__tipCp=e.canvas&&h(e.canvas.parentNode,!0)||{},S.restyle(e.__tipStyle),S.currentPaper=e),S.lastTarget=S.currentTarget,S.currentTarget=r,(S.scatted=r.__tipScatted)&&S.unblock(!0),S.onredraw.call(this,t),t.__tipProcessed=!0,d&&(S._oobready=!0,l(n||(n=i.body||i.getElementsByTagName("body")[0]),"touchstart",k)))}},S.onredraw=function(t){t.__tipProcessed||(t.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(t))===S.currentTarget&&(t=u(t),S.x=g(t.pageX||t.clientX+i.body.scrollLeft+i.documentElement.scrollLeft||0),S.y=g(t.pageY||t.clientY+i.body.scrollTop+i.documentElement.scrollTop||0),S.redraw()))},S.onhide=function(t){t.__tipProcessed||(t.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(t))===S.currentTarget&&(S.hiding=setTimeout(S.hide,200)))},S.redraw=function(){if(!S.prevented&&!S.blocked&&S.currentTarget&&S.currentTarget.__tipNeeded){var t,e=(s=S.currentTarget).paper,n=S.textElement,r=S.containerStyle,o=S.style,a=s.__tipText,s=S.pointeroffset,l=e.__tipCp,c=(h=i.documentElement||i.body).scrollLeft,h=h.scrollTop,d=S.x,u=S.y,p=e.width,g=e.height;e=e.__tipConstrain;(100>p||100>g)&&(e=!1),S.hidden&&(S.containerStyle.top="-999em",S.show()),a!==S.text&&(S.text=a,r.width=r.height="",n.innerHTML=a,o.whiteSpace="nowrap",t=f(o.pixelWidth||n.offsetWidth||0),a=f(o.pixelHeight||n.offsetHeight||0),(S.textWidthOverflow=d+t>l.left+p)?(t=p-2*s>t?r.width:p-2*s||0,r.width=t&&t+"px"||"",o.whiteSpace="normal"):r.width="",(S.textHeightOverflow=a>g)?(r.height=(g||0)-2*s+"px",o.whiteSpace="normal"):r.height=""),t=f(o.pixelWidth||n.offsetWidth||0),a=f(o.pixelHeight||n.offsetHeight||0),e?(S.textWidthOverflow?d=(d-t<l.left?l.left:d-t)-c:d+s+t>l.left-c+p-s&&(d=d-t-s),S.textHeightOverflow?u=l.top-h:u+s+a>l.top-h+g-s&&(u=u-a-1.5*s)):(c+b<d+s+t&&(d=d-t-s),h+v<u+s+a&&(u=u-a-1.5*s)),r.left=(d+s||
280)+"px",r.top=(u+s||0)+"px",S.hidden&&S.show()}},S.hide=function(){S.hiding&&(S.hiding=clearTimeout(S.hiding)),S.containerStyle.display="none",S.hidden=!0,S.prevented=!1},S.show=function(){S.blocked||(S.hiding&&(S.hiding=clearTimeout(S.hiding)),S.containerStyle.display="inline",S.hidden=!1)},S.preventTooltip=function(){S.prevented=!0},S.block=function(){S.blocked=!0,S.containerStyle.display="none"},S.unblock=function(t){S.blocked=!1,t&&(S.containerStyle.display=S.hidden?"none":"inline")},o.fn.tooltip=function(t,e,i){return e&&(e=.4*(void 0===e.opacity?1:e.opacity),o.svg?t.boxShadow="1px 1px 3px rgba(64,64,64,"+e+")":t.filter='progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color="#404040", shadowOpacity="'+e/2+'")'),this.__tipStyle=new C(t),this.__tipCp=this.canvas&&h(this.canvas.parentNode,!0)||{},this.__tipConstrain=Boolean(i),this},o.el.trackTooltip=function(t){var e=!!this.__tiptracking;return void 0===t||(t=!!t)===e||(t?d?this.touchstart(S.onelement):(this.mouseover(S.onelement),this.mousemove(S.onredraw),this.mouseout(S.onhide)):d?this.untouchstart(S.onelement):(this.unmouseover(S.onelement),this.unmousemove(S.onredraw),this.unmouseout(S.onhide)),this.__tiptracking=t),this},o.el.tooltip=function(t,e,i,n,r){return S.setup(),o.el.tooltip=function(t,e,i,n,r){return e=!1===t||void 0===t||""===t,this.__tipScatted=void 0===n?this.__tipScatted:!n,void 0===this.__tipScatted&&(this.__tipScatted=!0),null!==r&&(this.__tip_blocked=r),e^!this.__tipText&&(this.__tipNeeded=!e),this.__tipText=t,S.currentTarget!==this||t===S.text||S.hidden||S[e?"hide":"redraw"](),this},o.el.tooltip.call(this,t,e,i,n,r)},t.core._setTooltipZIndex=function(t){t=parseInt(t,10),S&&!isNaN(t)&&(S.defaultContainerStyle.zIndex=t,S.containerStyle&&(S.containerStyle.zIndex=t))}}]),FusionCharts.register("module",["private","modules.renderer.js-smartlabel",function(){var t=this.hcLib,e=t.isIE,i=t.hasSVG,n=Math.max,r=this.window,o=/ HtmlUnit/.test(r.navigator.userAgent),a=r.document,s=/ AppleWebKit\//.test(r.navigator.userAgent),l=!!a.createElement("canvas").getContext,c=!(!l||!a.createElement("canvas").getContext("2d").measureText);r=function(){function r(t,e,i){if(!t||!t.length)return 0;var n=i.getWidthFunction(),r=0,o=0,a=(o=n(t))/t.length;if(i=e,r=Math.ceil(e/a),o<e)return t.length-1;for(r>t.length&&(i=e-o,r=t.length);0<i;){if(i=e-n(t.substr(0,r)),!(o=Math.floor(i/a)))return r;r+=o}for(;0>i&&(i=e-n(t.substr(0,r)),o=Math.floor(i/a));)r+=o;return r}function h(t,e){if(e=5<e?e:5,this.maxContainers=20>e?e:20,this.last=this.first=null,this.containers={},this.length=0,this.rootNode=t,k){var i=a.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink"),i.setAttributeNS("http://www.w3.org/2000/svg","height","0"),i.setAttributeNS("http://www.w3.org/2000/svg","width","0"),this.svgRoot=i,this.rootNode.appendChild(i)}}function d(t,e,i){if(void 0!==t&&"object"!=typeof t){var n;this.id=t,"string"==typeof e&&(e=a.getElementById(e));t:{if(e&&(e.offsetWidth||e.offsetHeight)){if(e.appendChild){e.appendChild(e=a.createElement("div")),e.className="fusioncharts-smartlabel-container",e.setAttribute("aria-hidden","true"),e.setAttribute("role","presentation"),t=e;break t}}else if((t=a.getElementsByTagName("body")[0])&&t.appendChild){(e=a.createElement("div")).className="fusioncharts-smartlabel-container",e.setAttribute("aria-hidden","true"),e.setAttribute("role","presentation"),t.appendChild(e),t=e;break t}t=void 0}for(n in(t=this.parentContainer=t).innerHTML="WgI",(o||!t.offsetHeight&&!t.offsetWidth)&&(k=!0),t.innerHTML="",v)t.style[n]=v[n];this.containerManager=new h(t,10),this.showNoEllipses=!i,this.init=!0,this.style={},this.setStyle()}}var u,p,f,g=t.supportedStyle,m={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,fontSize:1,"font-size":1,fontFamily:1,"font-family":1},v={position:"absolute",top:"-9999em",left:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},b=s?0:4.5,y=0,x=/\b_SmartLabel\b/,w=/\b_SmartLabelBR\b/,_=/(<[^<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/gi,C=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),S=/<[^>][^<]*[^>]+>/i,k=!1,A=0,T=0;return a.getElementsByClassName?(u="getElementsByClassName",p="_SmartLabel",f=!0):(u="getElementsByTagName",p="span",f=!1),h.prototype={get:function(t){var e,i=this.containers,n=this.length,r=this.maxContainers,o="",a="";a=this.getCanvasFont(t);for(e in g)void 0!==t[e]&&(o+=g[e]+":"+t[e]+";");if(!o)return!1;if(i[o])o=i[o],this.first!==o&&(o.prev&&(o.prev.next=o.next),o.next&&(o.next.prev=o.prev),o.next=this.first,o.next.prev=o,this.last===o&&(this.last=o.prev),o.prev=null,this.first=o);else{if(n>=r)for(t=n-r+1;t--;)this.removeContainer(this.last);o=this.addContainer(o,a)}return o},getCanvasFont:function(t){var e,i=[];if(!l||!c)return!1;for(e in m)void 0!==t[e]&&i.push(t[e]);return i.join(" ")},setMax:function(t){var e=this.length;if((t=20>(t=5<t?t:5)?t:20)<e){for(e-=t;e--;)this.removeContainer(this.last);this.length=t}this.maxContainers=t},addContainer:function(t,n){var r,o;return this.containers[t]=o={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:t,canvasStr:n,charCache:{}},o.next=this.first,o.next&&(o.next.prev=o),this.first=o,this.last||(this.last=o),this.length+=1,r=o.node=a.createElement("div"),this.rootNode.appendChild(r),e&&!i?r.style.setAttribute("cssText",t):r.setAttribute("style",t),r.setAttribute("aria-hidden","true"),r.setAttribute("role","presentation"),r.style.display="inline-block",r.innerHTML="WgI",o.lineHeight=r.offsetHeight,o.avgCharWidth=r.offsetWidth/3,k?((r=o.svgText=a.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("style",t),this.svgRoot.appendChild(r),r.textContent="WgI",o.lineHeight=r.getBBox().height,o.avgCharWidth=(r.getBBox().width-b)/3,r.textContent="...",o.ellipsesWidth=r.getBBox().width-b,r.textContent=".",o.dotWidth=r.getBBox().width-b):n?((r=o.canvas=a.createElement("canvas")).style.height=r.style.width="0px",this.rootNode.appendChild(r),o.context=r=r.getContext("2d"),r.font=n,o.ellipsesWidth=r.measureText("...").width,o.dotWidth=r.measureText(".").width):(r.innerHTML="...",o.ellipsesWidth=r.offsetWidth,r.innerHTML=".",o.dotWidth=r.offsetWidth,r.innerHTML=""),o},removeContainer:function(t){var e=t.keyStr;e&&this.length&&t&&(--this.length,t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev),t.node.parentNode.removeChild(t.node),t.canvas&&t.canvas.parentNode.removeChild(t.canvas),delete this.containers[e])},dispose:function(){var t,e=this.containers;for(t in this.maxContainers=null,e)this.removeContainer(e[t]);this.rootNode.parentNode.removeChild(this.rootNode),this.last=this.first=this.rootNode=null}},h.prototype.constructor=h,d.prototype={dispose:function(){this.init&&(this.containerManager.dispose(),delete this.container,delete this.context,delete this.cache,delete this.containerManager,delete this.containerObj,delete this.id,delete this.style,delete this.parentContainer,delete this.showNoEllipses)},useEllipsesOnOverflow:function(t){this.init&&(this.showNoEllipses=!t)},getWidthFunction:function(){var t=this.context,e=this.container,i=this.containerObj.svgText;return i?function(t){var e;return i.textContent=t,1>(e=(t=i.getBBox()).width-b)&&(e=t.width),e}:t?function(e){return t.measureText(e).width}:function(t){return e.innerHTML=t,e.offsetWidth}}
28,getSmartText:function(t,e,i,o){if(!this.init)return!1;null==t&&(t="");var s,l,c,h,d,g={text:t,maxWidth:e,maxHeight:i,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:t,isTruncated:!1},m=!1,v=0,b=-1,L=m=-1;l=this.container;var D,E,P,I=this.context,M=0;d=0,P=[];var O=0,F=this.showNoEllipses?"":"...";h=this.lineHeight;var R;M=[],b=s=-1;if(R=function(t){for(var e=/\s/,i=(t=t.replace(/^\s\s*/,"")).length;e.test(t.charAt(--i)););return t.slice(0,i+1)},m=-1,E=this.getWidthFunction(),l){if(!k){if(l.innerHTML=t,g.oriTextWidth=m=l.offsetWidth,g.oriTextHeight=d=l.offsetHeight,d<=i&&m<=e)return g.width=g.oriTextWidth=m,g.height=g.oriTextHeight=d,g;if(h>i)return g.text="",g.width=g.oriTextWidth=0,g.height=g.oriTextHeight=0,g}if(t=R(t).replace(/(\s+)/g," "),m=S.test(t),h=this.showNoEllipses?e:e-y,!m){if(s=(P=t.split("")).length,l="",c=[],D=P[0],this.cache[D]?A=this.cache[D].width:(A=E(D),this.cache[D]={width:A}),h>A)O=(c=t.substr(0,r(t,h,this)).split("")).length;else{if(A>e)return g.text="",g.width=g.oriTextWidth=g.height=g.oriTextHeight=0,g;F&&((h=e-2*T)>A?F="..":(h=e-T)>A?F=".":(h=0,F=""))}if(M=E(c.join("")),d=this.lineHeight,o){for(;O<s;O+=1)if(D=c[O]=P[O],this.cache[D]?A=this.cache[D].width:(A=E(D),this.cache[D]={width:A}),(M+=A)>h&&(l||(l=c.slice(0,-1).join("")),M>e))return g.text=R(l)+F,g.tooltext=g.oriText,g.width=E(g.text),g.height=this.lineHeight,g;g.text=c.join(""),g.width=M,g.height=this.lineHeight}else{for(;O<s;O+=1)if(" "!==(D=c[O]=P[O])||I||(D="&nbsp;"),this.cache[D]?A=this.cache[D].width:(A=E(D),this.cache[D]={width:A}),(M+=A)>h&&(l||(l=c.slice(0,-1).join("")),M>e)){if(m=t.substr(0,c.length).lastIndexOf(" "),b=t.substr(0,c.length).lastIndexOf("-"),m>L?(M=E(c.slice(L+1,m).join("")),c.splice(m,1,"<br/>"),L=m,o=m+1):b>L?(b===c.length-1?(M=E(c.slice(L+1,m).join("")),c.splice(b,1,"<br/>-")):(M=E(c.slice(L+1,m).join("")),c.splice(b,1,"-<br/>")),L=b,o=b+1):(c.splice(c.length-1,1,"<br/>"+P[O]),m=c.length-2,M=E(c.slice(L+1,m+1).join("")),L=m,o=O),(d+=this.lineHeight)>i)return g.text=R(l)+F,g.tooltext=g.oriText,g.width=e,g.height=d-this.lineHeight,g;v=n(v,M),l=null,D=r(t.substr(o),h,this),M=E(t.substr(o,D||1)),c.length<o+D&&(O=(c=c.concat(t.substr(c.length,o+D-c.length).split(""))).length-1)}v=n(v,M),g.text=c.join(""),g.width=v,g.height=d}return g}for(v=t.replace(_,"$2"),t=(t=t.replace(_,'$1<span class="_SmartLabel">$2</span>')).replace(/(<br\s*\/*\>)/g,'<span class="_SmartLabel _SmartLabelBR">$1</span>'),l.innerHTML=t,I=0,E=(O=l[u](p)).length;I<E;I+=1)t=O[I],(f||x.test(t.className))&&(""!==(R=t.innerHTML)&&(" "===R?b=M.length:"-"===R&&(s=M.length),M.push({spaceIdx:b,dashIdx:s,elem:t}),P.push(R)));if(O=0,s=M.length,(A=M[0].elem.offsetWidth)>e)return g.text="",g.width=g.oriTextWidth=g.height=g.oriTextHeight=0,g;if(A>h&&!this.showNoEllipses&&((h=e-2*T)>A?F="..":(h=e-T)>A?F=".":(h=0,F="")),P=M[0].elem.offsetLeft,I=M[0].elem.offsetTop,o)for(;O<s;O+=1)(E=(t=M[O].elem).offsetLeft-P+t.offsetWidth)>h&&(D||(D=O),l.offsetWidth>e&&(c=O,O=s));else for(;O<s;O+=1)R=(t=M[O].elem).offsetHeight+(t.offsetTop-I),o=null,(E=t.offsetLeft-P+t.offsetWidth)>h?(D||(D=O),E>e&&(m=M[O].spaceIdx,b=M[O].dashIdx,m>L?(M[m].elem.innerHTML="<br/>",L=m):b>L?(M[b].elem.innerHTML=b===O?"<br/>-":"-<br/>",L=b):t.parentNode.insertBefore(o=a.createElement("br"),t),t.offsetHeight+t.offsetTop>i?(o?o.parentNode.removeChild(o):L===b?M[b].elem.innerHTML="-":M[m].elem.innerHTML=" ",c=O,O=s):D=null)):R>i&&(c=O,O=s);if(c<s){for(g.isTruncated=!0,D=D||c,O=s-1;O>=D;--O)(t=M[O].elem).parentNode.removeChild(t);for(;0<=O;--O)t=M[O].elem,w.test(t.className)?t.parentNode.removeChild(t):O=0}g.text=l.innerHTML.replace(C,"$1"),g.isTruncated&&(g.text+=F,g.tooltext=v),g.height=l.offsetHeight,g.width=l.offsetWidth}else g.error=Error("Body Tag Missing!");return g},setStyle:function(t){if(!this.init)return!1;if(t!==this.style||this.styleNotSet){t||(t=this.style);var e=t,i=e.fontSize=e.fontSize||"12px";e.lineHeight=e.lineHeight||e["line-height"]||1.2*parseInt(i,10)+"px",this.style=t,(this.containerObj=t=this.containerManager.get(t))?(this.container=t.node,this.context=t.context,this.cache=t.charCache,this.lineHeight=t.lineHeight,y=t.ellipsesWidth,T=t.dotWidth,this.styleNotSet=!1):this.styleNotSet=!0}}
28,getTextSize:function(t,e,i){if(!this.init)return!1;var n={text:t,width:null,height:null,oriTextWidth:null,oriTextHeight:null,isTruncated:!1},r=this.container;return r&&(r.innerHTML=t,n.oriTextWidth=r.offsetWidth,n.oriTextHeight=r.offsetHeight,n.width=Math.min(n.oriTextWidth,e),n.height=Math.min(n.oriTextHeight,i),n.width<n.oriTextWidth||n.height<n.oriTextHeight)&&(n.isTruncated=!0),n},getOriSize:function(t){if(!this.init)return!1;var e={text:t,width:null,height:null},i=this.container,r=this.getWidthFunction(),o=0;if(k){for(i=(t=t.split(/(<br\s*\/*\>)/g)).length,e.height=this.lineHeight*i;i--;)o=n(o,r(t[i]));e.width=o}else i&&(i.innerHTML=t,e.width=i.offsetWidth,e.height=i.offsetHeight);return e}},d.prototype.constructor=d}();t.SmartLabelManager=r}]),FusionCharts.register("module",["private","modules.renderer.js-numberformatter",function(){var t=this,e=t.hcLib,i=e.pluckNumber,n=e.extend2,r=e.getValidValue,o=e.pluck,a=e.getFirstValue,s=Math.abs,l=Math.pow,c=Math.round,h=function(t){return t&&t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},d={},u=function(t){var e,i=[];for(e in t)i.push(e+"_"+t[e]);return i.sort(),i.join(",")},p=function(t){var e,i={};for(e in t)i[e.toLowerCase()]=t[e];return i};e.NumberFormatter=function(){function t(t,e,i){var n;if(0>=e)return c(t)+"";if(isNaN(e))return 12<(t+="").length&&-1!=t.indexOf(".")&&(e=12-t.split(".")[0].length,n=l(10,e),t=c(t*n)/n+""),t;if(n=l(10,e),t=c(t*n)/n+"",1==i)for(-1==t.indexOf(".")&&(t+=".0"),e-=(i=t.split("."))[1].length,i=1;i<=e;i++)t+="0";return t}function e(t,e,i,n,r){var o=Number(t),a="",s=!1,l="",c="",h=l=0;if(isNaN(o))return"";if(1e15<o)return o.toExponential(r?1:14);if(l=0,h=t.length,-1!=t.indexOf(".")&&(a=t.substring(t.indexOf(".")+1,t.length),h=t.indexOf(".")),0>o&&(s=!0,l=1),l=t.substring(l,h),(t=l.length)<(o=n[r=n.length-1]))c=l;else for(;t>=o;)c=(t-o?i:"")+l.substr(t-o,o)+c,(t-=o)<(o=0>=--r?n[0]:n[r])&&(c=l.substring(t,0)+c);return""!=a&&(c=c+e+a),!0===s&&(c="-"+c),c}var d,u={formatnumber:"1",formatnumberscale:"1",forcenumberscale:"0",defaultnumberscale:"",numberscaleunit:["K","M"],numberscalevalue:[1e3,1e3],numberprefix:"",numbersuffix:"",decimals:"",forcedecimals:"0",yaxisvaluedecimals:"2",decimalseparator:".",thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:"",inthousandseparator:"",sformatnumber:"1",sformatnumberscale:"0",sforcenumberscale:"0",sdefaultnumberscale:"",snumberscaleunit:["K","M"],snumberscalevalue:[1e3,1e3],snumberprefix:"",snumbersuffix:"",sdecimals:"2",sforcedecimals:"0",syaxisvaluedecimals:"2",xFormatNumber:"0",xFormatNumberScale:"0",xforcenumberscale:"0",xDefaultNumberScale:"",xNumberScaleUnit:["K","M"],xNumberScaleValue:[1e3,1e3],xNumberPrefix:"",xNumberSuffix:""},p={mscombidy2d:{formatnumberscale:"1"}},f=function(t,e,s){var l,c,d,f,g,m,v,b,y,x,w,_,C,S,k,A,T,L,D,E,P=e.name,I=n({},u);if((d=p[P])&&(I=n(I,d)),this.csConf=I,this.chartAPI=e,r(t.numberscaleunit)&&(l=t.numberscaleunit.split(",")),(c=r(t.snumberscaleunit,t.numberscaleunit))&&(c=c.split(",")),(d=r(t.xnumberscaleunit,t.numberscaleunit))&&(d=d.split(",")),(f=r(t.ticknumberscaleunit,t.numberscaleunit))&&(f=f.split(",")),(g=r(t.ynumberscaleunit,t.numberscaleunit))&&(g=g.split(",")),r(t.numberscalevalue)&&(m=t.numberscalevalue.split(",")),(w=r(t.snumberscalevalue,t.numberscalevalue))&&(w=w.split(",")),(v=r(t.xnumberscalevalue,t.numberscalevalue))&&(v=v.split(",")),(b=r(t.ticknumberscalevalue,t.numberscalevalue))&&(b=b.split(",")),(y=r(t.ynumberscalevalue,t.numberscalevalue))&&(y=y.split(",")),r(t.thousandseparatorposition))for(_=(x=t.thousandseparatorposition.split(",")).length,S=u.thousandseparatorposition[0];_--;)0>=(C=parseInt(x[_],10))&&(C=S),S=x[_]=C;e||(e={}),_=i(t.scalerecursively,0),C=i(t.sscalerecursively,_),S=i(t.xscalerecursively,_),k=i(t.maxscalerecursion,-1),A=i(t.smaxscalerecursion,k),T=i(t.xmaxscalerecursion,k),L=r(t.scaleseparator," "),D=r(t.sscaleseparator,L),E=r(t.xscaleseparator,L),k||(k=-1),this.baseConf=l={cacheStore:[],formatnumber:o(t.formatnumber,e.formatnumber,I.formatnumber),formatnumberscale:o(t.formatnumberscale,e.formatnumberscale,I.formatnumberscale),forcenumberscale:o(t.forcenumberscale,e.forcenumberscale,I.forcenumberscale),defaultnumberscale:a(t.defaultnumberscale,e.defaultnumberscale,I.defaultnumberscale),numberscaleunit:o(l,e.numberscaleunit,I.numberscaleunit).concat(),numberscalevalue:o(m,e.numberscalevalue,I.numberscalevalue).concat(),numberprefix:a(t.numberprefix,e.numberprefix,I.numberprefix),numbersuffix:a(t.numbersuffix,e.numbersuffix,I.numbersuffix),decimalprecision:parseInt("auto"===t.decimals?I.decimalprecision:o(t.decimals,t.decimalprecision,e.decimals,I.decimals,e.decimalprecision,I.decimalprecision),10),forcedecimals:o(t.forcedecimals,e.forcedecimals,I.forcedecimals),decimalseparator:o(t.decimalseparator,e.decimalseparator,I.decimalseparator),thousandseparator:o(t.thous
28andseparator,e.thousandseparator,I.thousandseparator),thousandseparatorposition:o(x,e.thousandseparatorposition,I.thousandseparatorposition),indecimalseparator:a(t.indecimalseparator,e.indecimalseparator,I.indecimalseparator),inthousandseparator:a(t.inthousandseparator,e.inthousandseparator,I.inthousandseparator),scalerecursively:_,maxscalerecursion:k,scaleseparator:L},r(l.inthousandseparator)&&(this.baseConf._REGinthousandseparator=new RegExp(h(l.inthousandseparator),"g")),r(l.indecimalseparator)&&(this.baseConf._REGindecimalseparator=new RegExp(h(l.indecimalseparator))),this.Y=[],s||(s={cacheStore:[],formatnumber:l.formatnumber,formatnumberscale:l.formatnumberscale,forcenumberscale:l.forcenumberscale,defaultnumberscale:l.defaultnumberscale,numberscaleunit:l.numberscaleunit.concat(),numberscalevalue:l.numberscalevalue.concat(),numberprefix:l.numberprefix,numbersuffix:l.numbersuffix,decimalprecision:l.decimalprecision,forcedecimals:l.forcedecimals,decimalseparator:l.decimalseparator,thousandseparator:l.thousandseparator,thousandseparatorposition:l.thousandseparatorposition,indecimalseparator:l.indecimalseparator,inthousandseparator:l.inthousandseparator,scalerecursively:_,maxscalerecursion:k,scaleseparator:L},e.useScaleRecursively&&(s.numberscalevalue&&s.numberscalevalue.length)==(s.numberscaleunit&&s.numberscaleunit.length)||(s.scalerecursively=_=0),m={cacheStore:[],formatnumber:s.formatnumber,formatnumberscale:s.formatnumberscale,forcenumberscale:s.forcenumberscale,defaultnumberscale:s.defaultnumberscale,numberscaleunit:s.numberscaleunit.concat(),numberscalevalue:s.numberscalevalue.concat(),numberprefix:s.numberprefix,numbersuffix:s.numbersuffix,decimalprecision:parseInt(o(t.yaxisvaluedecimals,s.decimalprecision,2),10),forcedecimals:o(t.forceyaxisvaluedecimals,s.forcedecimals),decimalseparator:s.decimalseparator,thousandseparator:s.thousandseparator,thousandseparatorposition:s.thousandseparatorposition.concat(),indecimalseparator:s.indecimalseparator,inthousandseparator:s.inthousandseparator,scalerecursively:_,maxscalerecursion:k,scaleseparator:L},w={cacheStore:[],formatnumber:o(t.sformatnumber,e.sformatnumber,u.sformatnumber),formatnumberscale:o(t.sformatnumberscale,e.sformatnumberscale,u.sformatnumberscale),forcenumberscale:o(t.sforcenumberscale,e.sforcenumberscale,u.sforcenumberscale),defaultnumberscale:a(t.sdefaultnumberscale,e.sdefaultnumberscale,s.defaultnumberscale),numberscaleunit:o(c,e.snumberscaleunit,u.snumberscaleunit).concat(),numberscalevalue:o(w,e.snumberscalevalue,u.snumberscalevalue).concat(),numberprefix:a(t.snumberprefix,e.snumberprefix,u.snumberprefix),numbersuffix:a(t.snumbersuffix,e.snumbersuffix,u.snumbersuffix),decimalprecision:parseInt(o(t.syaxisvaluedecimals,t.sdecimals,t.decimals,e.sdecimals,u.sdecimals),10),forcedecimals:o(t.forcesyaxisvaluedecimals,t.sforcedecimals,t.forcedecimals,e.sforcedecimals,u.sforcedecimals),decimalseparator:o(t.decimalseparator,e.decimalseparator,u.decimalseparator),thousandseparator:o(t.thousandseparator,e.thousandseparator,u.thousandseparator),thousandseparatorposition:s.thousandseparatorposition.concat(),indecimalseparator:o(t.indecimalseparator,e.indecimalseparator,u.indecimalseparator),inthousandseparator:o(t.inthousandseparator,e.inthousandseparator,u.inthousandseparator),scalerecursively:C,maxscalerecursion:A,scaleseparator:D},(c=n({},w)).decimalprecision=parseInt(o(t.sdecimals,t.decimals,t.syaxisvaluedecimals,e.sdecimals,u.sdecimals),10),c.forcedecimals=o(t.sforcedecimals,t.forcedecimals,t.forcesyaxisvaluedecimals,e.sforcedecimals,u.sforcedecimals),c.cacheStore=[],e.useScaleRecursively&&(w.numberscalevalue&&w.numberscalevalue.length)==(w.numberscaleunit&&w.numberscaleunit.length)||(w.scalerecursively=C=0),/^(bubble|scatter|selectscatter|zoomscatter)$/.test(P)&&(m.formatnumber=o(t.yformatnumber,m.formatnumber),m.formatnumberscale=o(t.yformatnumberscale,m.formatnumberscale),m.forcenumberscale=o(t.yforcenumberscale,m.forcenumberscale),m.defaultnumberscale=a(t.ydefaultnumberscale,m.defaultnumberscale),m.numberscaleunit=o(g,m.numberscaleunit),m.numberscalevalue=o(y,m.numberscalevalue),m.numberprefix=o(t.ynumberprefix,m.numberprefix),m.numbersuffix=o(t.ynumbersuffix,m.numbersuffix),s.formatnumber=o(t.yformatnumber,s.formatnumber),s.formatnumberscale=o(t.yformatnumberscale,s.formatnumberscale),s.forcenumberscale=o(t.yforcenumberscale,s.forcenumberscale),s.defaultnumberscale=a(t.ydefaultnumberscale,s.defaultnumberscale),s.numberscaleunit=o(t.ynumberscaleunit,s.numberscaleunit.concat()),s.numberscalevalue=o(t.ynumberscalevalue,s.numberscalevalue.concat()),s.numberprefix=o(t.ynumberprefix,s.numberprefix),s.numbersuffix=o(t.ynumbersuffix,s.numbersuffix)),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(P)&&(s.decimalprecision=o(t.decimals,"2")),_&&(s.numberscalevalue.push(1),s.numberscaleunit.unshift(s.defaultnumberscale),m.numberscalevalue.push(1),m.numberscaleunit.unshift(m.defaultnumberscale)),C&&(w.numberscalevalue.push(1),w.numberscaleunit.unshift(w.defaultnumberscale),c.numberscalevalue.push(1),c.numberscaleunit.unshift(c.defaultnumberscale)),this.Y[0]={yAxisLabelConf:m,dataLabelConf:s},this.Y[1]={yAxisLabelConf:w,dataLabelConf:c},this.paramLabels=s,this.param1=m,this.param2=w,this.paramLabels2=c),this.paramX={cacheStore:[],formatnumber:o(t.xformatnumber,l.formatnumber),formatnumberscale:o(t.xformatnumberscale,l.formatnumberscale),forcenumberscale:o(t.xforcenumberscale,l.forcenumberscale),defaultnumberscale:a(t.xdefaultnumberscale,l.defaultnumberscale),
29numberscaleunit:o(d,l.numberscaleunit.concat()),numberscalevalue:o(v,l.numberscalevalue.concat()),numberprefix:o(t.xnumberprefix,l.numberprefix),numbersuffix:o(t.xnumbersuffix,l.numbersuffix),decimalprecision:parseInt(o(t.xaxisvaluedecimals,t.xaxisvaluesdecimals,l.decimalprecision,2),10),forcedecimals:o(t.forcexaxisvaluedecimals,0),decimalseparator:l.decimalseparator,thous
29andseparator:l.thousandseparator,thousandseparatorposition:l.thousandseparatorposition.concat(),indecimalseparator:l.indecimalseparator,inthousandseparator:l.inthousandseparator,scalerecursively:S,maxscalerecursion:T,scaleseparator:E},this.paramLegend=n(n({},l),{cacheStore:[],decimalprecision:parseInt(i(t.legendvaluedecimals,l.decimalprecision,2),10),forcedecimals:i(t.legendvalueforcedecimals,l.forcedecimals,0),formatnumberscale:o(t.legendvalueformatnumberscale,l.formatnumberscale),forcenumberscale:o(t.legendvalueforcenumberscale,l.forcenumberscale),formatnumber:o(t.legendvalueformatnumber,l.formatnumber)}),e.useScaleRecursively&&(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)==(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length)||(this.paramX.scalerecursively=S=0),S&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale)),this.paramScale={cacheStore:[],formatnumber:o(t.tickformatnumber,l.formatnumber),formatnumberscale:o(t.tickformatnumberscale,l.formatnumberscale),forcenumberscale:o(t.tickforcenumberscale,l.forcenumberscale),defaultnumberscale:a(t.tickdefaultnumberscale,l.defaultnumberscale),numberscaleunit:o(f,l.numberscaleunit.concat()),numberscalevalue:o(b,l.numberscalevalue.concat()),numberprefix:o(t.ticknumberprefix,l.numberprefix),numbersuffix:o(t.ticknumbersuffix,l.numbersuffix),decimalprecision:parseInt(o(t.tickvaluedecimals,l.decimalprecision,"2"),10),forcedecimals:o(t.forcetickvaluedecimals,l.forcedecimals,0),decimalseparator:l.decimalseparator,thousandseparator:l.thousandseparator,thousandseparatorposition:l.thousandseparatorposition.concat(),indecimalseparator:l.indecimalseparator,inthousandseparator:l.inthousandseparator,scalerecursively:_,maxscalerecursion:k,scaleseparator:L},_&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale)),this.timeConf={inputDateFormat:o(t.inputdateformat,t.dateformat,"mm/dd/yyyy"),outputDateFormat:o(t.outputdateformat,t.inputdateformat,t.dateformat,"mm/dd/yyyy"),days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),months:"January February March April May June July August September October November December".split(" "),daySuffix:" st nd rd th th th th th th th th th th th th th th th th th st nd rd th th th th th th th st".split(" ")},this.cleaneValueCacheStore={},this.percentStrCacheStore={}};return f.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y,this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore,this.percentStrCacheStore&&delete this.percentStrCacheStore,this.paramLabels&&delete this.paramLabels,this.param1&&delete this.param1,this.param2&&delete this.param2,this.paramLabels2&&delete this.paramLabels2,this.csConf&&delete this.csConf,this.chartAPI&&delete this.chartAPI,this.baseConf&&delete this.baseConf,this.timeConf&&delete this.timeConf,this.paramX&&delete this.paramX,this.paramScale&&delete this.paramScale},parseMLAxisConf:function(t,e){var n,l,c,h,d,p,f=this.baseConf,g=this.csConf,m=this.chartAPI,v=i(t.scalerecursively,f.scalerecursively),b=i(t.maxscalerecursion,f.maxscalerecursion),y=r(t.scaleseparator,f.scaleseparator);if(e=i(e,this.Y.length),r(t.numberscaleunit)&&(n=t.numberscaleunit.split(",")),r(t.numberscalevalue)&&(l=t.numberscalevalue.split(",")),b||(b=-1),r(t.thousandseparatorposition))for(h=(c=t.thousandseparatorposition.split(",")).length,p=u.thousandseparatorposition[0];h--;)(d=i(s(c[h])))?p=d:d=p,c[h]=d;f={cacheStore:[],formatnumber:o(t.formatnumber,f.formatnumber),formatnumberscale:o(t.formatnumberscale,f.formatnumberscale),forcenumberscale:o(t.forcenumberscale,f.forcenumberscale),defaultnumberscale:a(t.defaultnumberscale,f.defaultnumberscale),numberscaleunit:o(n,f.numberscaleunit).concat(),numberscalevalue:o(l,f.numberscalevalue).concat(),numberprefix:a(t.numberprefix,f.numberprefix),numbersuffix:a(t.numbersuffix,f.numbersuffix),forcedecimals:o(t.forcedecimals,f.forcedecimals),decimalprecision:parseInt("auto"===t.decimals?g.decimalprecision:o(t.decimals,f.decimalprecision),10),decimalseparator:o(t.decimalseparator,f.decimalseparator),thousandseparator:o(t.thous
29andseparator,f.thousandseparator),thousandseparatorposition:o(c,f.thousandseparatorposition),indecimalseparator:a(t.indecimalseparator,f.indecimalseparator),inthousandseparator:a(t.inthousandseparator,f.inthousandseparator),scalerecursively:v,maxscalerecursion:b,scaleseparator:y},m.useScaleRecursively&&(f.numberscalevalue&&f.numberscalevalue.length)==(f.numberscaleunit&&f.numberscaleunit.length)||(f.scalerecursively=v=0),m={cacheStore:[],formatnumber:f.formatnumber,formatnumberscale:f.formatnumberscale,forcenumberscale:f.forcenumberscale,defaultnumberscale:f.defaultnumberscale,numberscaleunit:f.numberscaleunit.concat(),numberscalevalue:f.numberscalevalue.concat(),numberprefix:f.numberprefix,numbersuffix:f.numbersuffix,decimalprecision:parseInt(o(t.yaxisvaluedecimals,f.decimalprecision,2),10),forcedecimals:o(t.forceyaxisvaluedecimals,f.forcedecimals),decimalseparator:f.decimalseparator,thousandseparator:f.thousandseparator,thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:f.indecimalseparator,inthousandseparator:f.inthousandseparator,scalerecursively:v,maxscalerecursion:b,scaleseparator:y},v&&(f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale),m.numberscalevalue.push(1),m.numberscaleunit.unshift(m.defaultnumberscale)),this.Y[e]={dataLabelConf:f,yAxisLabelConf:m}},percentValue:function(i){var n=this.percentStrCacheStore[i];return void 0===n&&(n=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,n=this.percentStrCacheStore[i]=e(t(i,n,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%"),n},getCleanValue:function(t,e){if(void 0===(n=this.cleaneValueCacheStore[t])){var i=this.baseConf,n=t+"";i._REGinthousandseparator&&(n=n.replace(i._REGinthousandseparator,"")),i._REGindecimalseparator&&(n=n.replace(i._REGindecimalseparator,".")),n=parseFloat(n),n=isFinite(n)?n:NaN,this.cleaneValueCacheStore[t]=n=isNaN(n)?null:e?s(n):n}return n},dataLabels:function(t,e){var i,n;return void 0===(i=(n=(n=this.Y[e]||(e?this.Y[1]:this.Y[0]))&&n.dataLabelConf||this.baseConf).cacheStore[t])&&(i=n.cacheStore[t]=d(t,n)),i},yAxis:function(t,e){var i,n;return void 0===(i=(n=(n=this.Y[e]||(e?this.Y[1]:this.Y[0]))&&n.yAxisLabelConf||this.baseConf).cacheStore[t])&&(i=n.cacheStore[t]=d(t,n,!0)),i},xAxis:function(t){var e=this.paramX.cacheStore[t];return void 0===e&&(e=this.paramX.cacheStore[t]=d(t,this.paramX,!0)),e},sYAxis:function(t){var e,i;return void 0===(e=(i=(i=this.Y[1])&&i.yAxisLabelConf||this.baseConf).cacheStore[t])&&(e=i.cacheStore[t]=d(t,i)),e},scale:function(t){var e=this.paramScale.cacheStore[t];return void 0===e&&(e=this.paramScale.cacheStore[t]=d(t,this.paramScale)),e},getCleanTime:function(t){var e;return this.timeConf.inputDateFormat&&Date.parseExact&&(e=Date.parseExact(t,this.timeConf.inputDateFormat)),e&&e.getTime()},legendValue:function(t){var e=this.paramLegend.cacheStore[t];return void 0===e&&(e=this.paramLegend.cacheStore[t]=d(t,this.paramLegend)),e},legendPercentValue:function(i){var n=this.percentStrCacheStore[i],r=this.paramLegend;return void 0===n&&(n=isNaN(r.decimalprecision)?"2":r.decimalprecision,n=this.percentStrCacheStore[i]=e(t(i,n,r.forcedecimals),r.decimalseparator,r.thousandseparator,r.thousandseparatorposition)+"%"),n},getDateValue:function(t){var e,n,r;return t&&!/\//.test(this.timeConf.inputDateFormat)&&(t=t.replace(new RegExp(this.timeConf.inputDateFormat.replace(/[a-z]/gi,"").slice(0,1),"g"),"/")),t=/^dd/.test(this.timeConf.inputDateFormat)&&t&&t.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||t,!(n=(e=new Date(t)).getTime())&&t&&/\:/.test(t)&&(t=t.split(":"),n=i(t[0],0),r=i(t[1],0),t=i(t[2],0),n=23<n?24===n&&0===r&&0===t?n:23:n,r=59<r?59:r,t=59<t?59:t,(e=new Date).setHours(n),e.setMinutes(r),e.setSeconds(t),n=e.getTime()),{ms:n,date:e}},getFormattedDate:function(t,e){var i="object"==typeof t&&t||new Date(t),n=this.timeConf,r=o(e,n.outputDateFormat),a=i.getFullYear(),s=i.getMonth(),l=i.getDate(),c=i.getDay(),h=9<(h=i.getMinutes())?""+h:"0"+h,d=9<(d=i.getSeconds())?""+d:"0"+d;i=9<(i=i.getHours())?""+i:"0"+i;return r.match(/dnl/)&&(r=r.replace(/dnl/gi,n.days[c])),r.match(/dns/)&&(r=r.replace(/dns/gi,n.days[c]&&n.days[c].substr(0,3))),r.match(/dd/)&&(r=r.replace(/dd/gi,l)),r.match(/mnl/)&&(r=r.replace(/mnl/gi,n.months[s])),r.match(/mns/)&&(r=r.replace(/mns/gi,n.months[s]&&n.months[s].substr(0,3))),r.match(/mm/)&&(r=r.replace(/mm/gi,s+1)),r.match(/yyyy/)&&(r=r.replace(/yyyy/gi,a)),r.match(/yy/)&&(r=r.replace(/yy/gi,(a%1e3%100+"").replace(/^(\d)$/,"0$1"))),r.match(/hh12/)&&(r=r.replace(/hh12/gi,i%12||12)),r.match(/hh/)&&(r=r.replace(/hh/gi,i)),r.match(/mn/)&&(r=r.replace(/mn/gi,h)),r.match(/ss/)&&(r=r.replace(/ss/gi,d)),r.match(/ampm/)&&(r=r.replace(/ampm/gi,12>i?"AM":"PM")),r.match(/ds/)&&(r=r.replace(/ds/gi,n.daySuffix[l])),r}},f.prototype.constructor=f,d=function(n,r,a){if(null!==n){var s,l,c,h,d,u=(n=Number(n))+"";if(s=1==r.formatnumberscale?r.defaultnumberscale:"",d=(d=u.split(".")[1])?d.length:r.forcedecimals?"2":"",1==r.formatnumberscale){u=n,l=r.defaultnumberscale,n=r.numberscalevalue,s=r.numberscaleunit;var p=r.scalerecursively;c=r.forcenumberscale,h={};var f,g=l,m=0,v=[],b=[];if(c=i(c)||0,p){for(g=i(n[0])||1e3,m=0;m<n.length;m++){if(p=i(n[m])||1e3,!(Math.abs(Number(u))>=p&&m<n.length-1)){0===m&&""===l&&c?(u=Number(u)/g,v.push(u),b.push(s[1]||"")):(1===m&&""===l&&c?(p=u+(v.length?v.pop():0),b.pop(),v.push(p)):v.push(u),b.push(s[m]));break}u=(u-(f=u%p))/p,0===m&&0!==f&&""===s[m]&&c?(v.push(f/g),b.push(s[1]||"")):0!==f&&(1===m&&""===l&&c?(p=f+(v.length?v.pop():0),b.pop(),v.push(p)):v.push(f),b.push(s[m]))}v.reverse(),b.reverse(),h.value=v,h.scale=b}else{if(n.length===s.length)for(m=0;m<n.length;m++){if(p=i(n[m])||1e3,!(Math.abs(Number(u))>=p)){0===m&&""===l&&c&&(g=s[0]||"",u=Number(u)/p);break}g=s[m]||"",u=Number(u)/p}h.value=u,h.scale=g}n=u=(l=h).value,s=l.scale}if(r.scalerecursively&&0!==r.formatnumberscale&&"0"!==r.formatnumberscale){if(a=l.value,l=l.scale,n=-1==r.maxscalerecursion?a.length:Math.min(a.length,r.maxscalerecursion),1==r.formatnumber)for(u="",h=0;h<n;h++)c=(s=0===h?a[h]:Math.abs(a[h]))+"",h==n-1&&(c=t(s,o(r.decimalprecision,d),r.forcedecimals)),u=u+e(c,r.decimalseparator,r.thousandseparator,r.thousandseparatorposition)+l[h]+(h<n-1?r.scaleseparator:"");else for(u="",h=0;h<n;
29h++)u=u+(0===h?a[h]:Math.abs(a[h])+"")+l[h]+(h<n-1?r.scaleseparator:"");u=(r.numberprefix||"")+u+(r.numbersuffix||"")}else 1==r.formatnumber&&(u=e(u=t(n,o(r.decimalprecision,d),r.forcedecimals),r.decimalseparator,r.thousandseparator,r.thousandseparatorposition,a)),u=(r.numberprefix||"")+u+s+(r.numbersuffix||"");return u}},f}(),t.extend(t.core,{formatNumber:function(t,i){i=i&&p(i)||{};var n,r=u(i);return d[r]?n=d[r]:d[r]=n=new e.NumberFormatter(i,{useScaleRecursively:!0}),n.dataLabels(t)}},!1),t.extend(t.core,{formatNumber:function(i,r,o,a){o=o&&p(o)||{};var s,l=this.jsVars.instanceAPI||{},c=l.numberFormatter;switch(""===u(o)?c?s=c:(c=(c=(c=this.getChartData(t.dataFormats.JSON,!0)).data||{}).chart||{},o=u(c),d[o]?s=d[o]:d[o]=s=new e.NumberFormatter(c,l)):(c=(c=(c=this.getChartData(t.dataFormats.JSON,!0)).data||{}).chart||{},c=n(n({},c),o),o=u(c),d[o]?s=d[o]:d[o]=s=new e.NumberFormatter(c,l)),(r&&r.toLowerCase?r:"").toLowerCase()){case"yaxisvalues":i=s.yAxis(i,a);break;case"xaxisvalues":i=s.xAxis(i);break;case"scale":i=s.scale(i);break;default:i=s.dataLabels(i,a)}return i}},!0)}]),FusionCharts.register("module",["private","modules.renderer.js-dom",function(){var t=this.hcLib,e=this.window,i=e.document,n=t.extend2,r="ontouchstart"in e;!function(t){var o,a=function(){var t,i={};return i.pointerdrag={start:["mousedown"],end:["mouseup"],onStart:["mousemove"],postHandlers:{},preHandlers:{}},i.pointerhover={start:["mouseover"],end:["mouseout"]},i.click={start:["click"]},i.escape={start:["keydown"],preHandlers:{start:function(t){return!(!(t=t||e.event).keyCode||27!==t.keyCode)}}},r&&((t=i.pointerdrag).start.push("touchstart"),t.end.push("touchend"),t.onStart.push("touchmove"),t.postHandlers.onStart=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1}),i}();o=n({},a),t.dem=new function(){var t={},r={},a=i.addEventListener?function(t,e,i){t.addEventListener(e,i,!1)}:function(t,e,i){t.attachEvent("on"+e,i)},s=i.removeEventListener?function(t,e,i){t.removeEventListener(e,i,!1)}:function(t,e,i){t.detachEvent("on"+e,i)},l=function(t,i,n){var r,a,s,l=[];if(s=o[i],n.start=function(i){i=i||e.event;for(var r=s.onStart,o=s.end,a=[],l=[],h=r&&r.length||0;h--;)a.push(c(t,r[h],n,"onStart"));for(h=o&&o.length||0;h--;)l.push(c(t,o[h],n,"end"));n.startUn=n.startUn?n.startUn.concat(a):a,n.endUn=n.endUn?n.endUn.concat(l):l,n.state="start",n.closure(i)},n.onStart=function(t){t=t||e.event,n.state="on",n.gDef&&n.gDef.preHandlers&&"function"==typeof n.gDef.preHandlers.onStart&&n.gDef.preHandlers.onStart(t),n.closure(t),n.gDef&&n.gDef.postHandlers&&"function"==typeof n.gDef.postHandlers.onStart&&n.gDef.postHandlers.onStart(t)},n.end=function(t){t=t||e.event;for(var i=n.startUn,r=n.endUn,o=i&&i.length||0;o--;)i[o]();for(delete n.startUn,n.startUn=[],o=r&&r.length||0;o--;)r[o]();delete n.endUn,n.endUn=[],n.state="end",n.closure(t)},s)for(a=(i=s.start).length;a--;)(r=i[a])&&l.push(c(t,r,n,"start"));return l},c=function(t,e,i,n){return a(t,e,i[n=n||"closure"]),function(){s(t,e,i[n])}},h=function(t){return function(i){i=i||e.event,t.handler.call(t.context||t.elem,{data:t.data,type:t.type,state:t.state,isGesture:t.isGesture,target:i.target||i.srcElement,originalEvent:i})}};return{listen:function(e,n,a,s,d){var u,p,f,g,m,v=this,b=(n="string"==typeof n?n.split(" "):n).length,y=[],x=function(t,e,i){y.push((function(){v.unlisten(t,e,i)}))};if(e.ownerDocument&&e.ownerDocument===i)for(;b--;)p=n[b],g=Boolean(o[p]),(f={handler:m="function"==typeof a?a:a[b],elem:e,type:p,isGesture:g,gDef:g?o[p]:null,data:s,context:d,start:[],end:[],links:{prev:null,next:null}}).closure=h(f),g?((u=r[p])||(u=r[p]=[]),u.push(f),l(e,p,f)):((u=t[p])||(u=t[p]=[]),u.push(f),c(e,p,f)),x(e,p,m);else for(;b--;)p=n[b],(f={handler:m="function"==typeof a?a:a[b],elem:e,type:p,isGesture:g,data:s,context:d,start:[],end:[],links:{prev:null,next:null}}).closure=h(f),(u=t[p])||(u=t[p]=[]),u.push(f),c(e,p,f),x(e,p,m);return{unlisten:function(){for(var t=y.length;t--;)y[t]();y.length=0,y=null}}},unlisten:function(e,i,n){var a,l,c,h=!1;if(Boolean(o[i])){for(l=(a=r[i])&&a.length||0;l--;)if((c=a[l]).handler===n&&c.elem===e){h=e;var d=void 0,u=void 0,p=void 0;d=void 0;if(d=o[i])for(p=(d=d.start).length;p--;)(u=d[p])&&s(h,u,c.start);a.splice(l,1),h=!0}}else for(l=(a=t[i])&&a.length||0;l--;)(c=a[l]).handler===n&&c.elem===e&&(s(e,i,c.closure),a.splice(l,1),h=!0);return h},fire:function(e,r,o,a){var s;if(e.ownerDocument&&e.ownerDocument===i)i.createEvent?((s=i.createEvent("HTMLEvents")).initEvent(r,!0,!0),o&&(o.originalEvent?o.originalEvent=s:n(s,o)),"function"==typeof e[r]&&e[r].call(e),e.dispatchEvent(s)):((s=i.createEventObject()).eventType=r,o&&(o.originalEvent?o.originalEvent=s:n(s,o)),"function"==typeof e[r]&&e[r].call(e),e.fireEvent("on"+r,s)),a&&!s.returnValue&&a(s);else for(a=(r=t[r])&&r.length||0;a--;)(s=r[a]).elem===e&&s.closure(o)}}}}(t||e),function(t){function r(t,e){var n="";return i.defaultView&&i.defaultView.getComputedStyle?n=i.defaultView.getComputedStyle(t,"").getPropertyValue(e):t.currentStyle&&(e=e.replace(/\-(\w)/g,(function(t,e){return e.toUpperCase()})),n=t.currentStyle[e]),n=parseInt(n,10),isNaN(n)?0:n}function o(t,e,i,n,r,o,a,c){var h=e/40,d=s[o||"linear"](n-i,h),u=0,p=function(){var e;u<h?(e=d[u],t.style[r]=i+e+c,l&&"opacity"===r&&(e=100*Number(e),t.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+e+")"),u+=1,setTimeout(p,40)):a&&a()};c=c||"",setTimeout(p,40)}var a={width:{suffix:"px"},height:{suffix:"px"},opacity:!0,top:{suffix:"px"},left:{suffix:"px"}},s={linear:function(t,e){for(var i=[],n=t/e,r=0;r<e;r+=1)i[r]=n*(r+1);return i}},l=/msie/i.test(e.navigator.userAgent)&&!e.opera;
29t.danimate=n({animate:function(t,e,i,n,s){n={};var l,c,h={},d=function(){(p+=1)===u&&"function"==typeof s&&s()},u=0,p=0;if(40>i){for(c in e)t.style[c]=e[c];s&&s()}else for(c in e)a[c]&&(u+=1,n[c]=e[c],h[c]=r(t,c),l="object"==typeof a[c]&&a[c].suffix,o(t,i,h[c],n[c],c,"linear",d,l))}},{})}(t||e)}]),FusionCharts.register("module",["private","modules.renderer.js-colormanager",function(){var t=this.hcLib,e=t.pluckNumber,i=t.graphics.getDarkColor,n=t.graphics.getLightColor,r="AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),o="8BBA00 F6BD0F FF654F AFD8F8 FDB398 CDC309 B1D0D2 FAD1B9 B8A79E D7CEA5 C4B3CE E9D3BE EFE9AD CEA7A2 B2D9BA".split(" "),a=t.defaultPaletteOptions={paletteColors:[r,r,r,r,r],bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],showShadow:[0,1,1,1,1],divLineColor:["717170","7B7D6D","92CDD6","965B01","68001B"],divLineAlpha:[40,45,65,40,30],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],anchorBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotGradientColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],plotBorderColor:["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],bgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAlpha3D:["100","100","100","100","100"],bgAngle3D:[90,90,90,90,90],bgRatio3D:["","","","",""],canvasBgColor3D:["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],canvasBaseColor3D:["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],divLineColor3D:["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],divLineAlpha3D:[100,100,100,100,100],legendBgColor3D:["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],legendBorderColor3D:["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],toolTipbgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor3D:["49563A","666666","49351D","576373","681C09"],baseFontColor3D:["49563A","4A4A4A","49351D","48505A","681C09"],anchorBgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"]};r=t.colorManager=function(r,o){var s,l=r.chart,c=t.extend2({},a),h=o.defaultPaletteOptions||{};for(s in c||(c={}),h)c[s]=h[s];c=this.paletteOptions=c,h=this.themeEnabled=l.palettethemecolor,this.paletteIndex=(0<l.palette&&6>l.palette?l.palette:e(o.paletteIndex,1))-1,this.iterator=0,this.paletteColors=c.paletteColors[this.themeEnabled?0:this.paletteIndex],null!=(s=l.palettecolors)&&""!==l.palettecolors&&(this.paletteColors=l.palettecolors.split(/\s*\,\s*/)),this.paletteLen=this.paletteColors.length,this.useFlatColors=e(l.useflatdataplotcolor,o.useFlatColor,0),h&&(this.paletteIndex=5,c.bgColor.push(n(h,35)+","+n(h,10)),c.bgAngle.push(270),c.bgRatio.push("0,100"),c.bgAlpha.push("50,50"),c.canvasBgColor.push("FFFFFF"),c.canvasBgAngle.push(0),c.canvasBgAlpha.push("100"),c.canvasBgRatio.push(""),c.canvasBorderColor.push(i(h,80)),c.canvasBorderAlpha.push(100),c.showShadow.push(1),c.divLineColor.push(i(h,20)),c.divLineAlpha.push(40),c.altHGridColor.push(n(h,20)),c.altHGridAlpha.push(15),c.altVGridColor.push(n(h,80)),c.altVGridAlpha.push(10),c.anchorBgColor.push("FFFFFF"),c.toolTipBgColor.push("FFFFFF"),c.toolTipBorderColor.push(i(h,80)),c.baseFontColor.push(h.split&&h.split(",")[0]),c.borderColor.push(i(h,60)),c.borderAlpha.push(50),c.legendBgC
29olor.push("FFFFFF"),c.legendBorderColor.push(i(h,80)),c.plotGradientColor.push("FFFFFF"),c.plotBorderColor.push(i(h,85)),c.plotFillColor.push(i(h,85)),c.bgColor3D.push("FFFFFF"),c.bgAlpha3D.push("100"),c.bgAngle3D.push(90),c.bgRatio3D.push(""),c.canvasBgColor3D.push(n(h,20)),c.canvasBaseColor3D.push(n(h,40)),c.divLineColor3D.push(i(h,20)),c.divLineAlpha3D.push(40),c.legendBgColor3D.push("FFFFFF"),c.legendBorderColor3D.push(i(h,80)),c.toolTipbgColor3D.push("FFFFFF"),c.toolTipBorderColor3D.push(i(h,80)),c.baseFontColor3D.push(h.split&&h.split(",")[0]),c.anchorBgColor3D.push("FFFFFF"),c.tickColor&&c.tickColor.push(i(h,90)),c.trendDarkColor&&c.trendDarkColor.push(i(h,90)),c.trendLightColor&&c.trendLightColor.push(n(h,c.TrendLightShadeOffset)),c.msgLogColor&&c.msgLogColor.push(n(h,80)),c.dialColor&&c.dialColor.push(i(h,95)+",FFFFFF,"+i(h,95)),c.dialBorderColor&&c.dialBorderColor.push(i(h,95)+",FFFFFF,"+i(h,95)),c.pivotColor&&c.pivotColor.push(n(h,95)+",FFFFFF,"+n(h,95)),c.pivotBorderColor&&c.pivotBorderColor.push(i(h,95)+",FFFFFF,"+i(h,95)),c.pointerBorderColor&&c.pointerBorderColor.push(i(h,75)),c.pointerBgColor&&c.pointerBgColor.push(i(h,75)),c.thmBorderColor&&c.thmBorderColor.push(i(h,90)),c.thmFillColor&&c.thmFillColor.push(n(h,55)),c.cylFillColor&&c.cylFillColor.push(n(h,55)),c.periodColor&&c.periodColor.push(n(h,10)),c.winColor&&c.winColor.push("666666"),c.lossColor&&c.lossColor.push("CC0000"),c.drawColor&&c.drawColor.push("666666"),c.scorelessColor&&c.scorelessColor.push("FF0000"),c.gridColor&&c.gridColor.push(n(h,30)),c.categoryBgColor&&c.categoryBgColor.push(n(h,10)),c.dataTableBgColor&&c.dataTableBgColor.push(n(h,10)),c.gridResizeBarColor&&c.gridResizeBarColor.push(i(h,90)),c.scrollBarColor&&c.scrollBarColor.push(n(h,50)))};r.prototype={getColor:function(t){return this.paletteOptions[t][this.paletteIndex]},getPlotColor:function(t){var e=this.paletteColors;return(t=this.useFlatColors?this.getColor("plotFillColor"):e[t%this.paletteLen])||(this.iterator===this.paletteLen&&(this.iterator=0),t=e[this.iterator],this.iterator+=1),t},parseColorMix:function(t,e){var r,o,a,s,l,c,h,d,u,p,f=[];if(""===(e=(e=e.replace(/\s/g,"")).toLowerCase())||null==e)f=[t];else for(o=e.split(","),a=t.split(","),s=Math.max(o.length,a.length,1),l=o[0],c=a[0],u=/[\{\}]/gi,p=0;p<s;p++)h=(o[p]||l).replace(u,""),d=a[p]||c,"color"==h?f.push(d):"light"==h.substr(0,5)?(r=100-(r=-1==(r=h.indexOf("-"))?1:h.substr(r+1,h.length-r)),f.push(n(d,r))):"dark"==h.substr(0,4)?(r=100-(r=-1==(r=h.indexOf("-"))?1:h.substr(r+1,h.length-r)),f.push(i(d,r))):f.push(h);return f},parseAlphaList:function(t,i){var n,r,o=t.split(","),a=[],s=100;for(r=0;r<i;r++)null!=(n=e(o[r]))&&(s=n),a[r]=s;return a.join()},parseRatioList:function(t,e){var i,n,r=t.split(","),o=[],a=0;for(n=0;n<e;n++)i=r[n],i=100<(i=isNaN(i)||void 0===i?0:Math.abs(Number(i)))?100:i,o[n]=i,a+=i;if(a=100<a?100:a,r.length<e)for(n=r.length;n<e;n++)o[n]=(100-a)/(e-r.length);return o[-1]=0,o.join()}},r.prototype.constructor=r,t.defaultGaugePaletteOptions={paletteColors:[o,o,o,o,o],bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendDarkColor:["333333","60634E","025B6A","A15E01","68001B"],trendLightColor:["f1f1f1","F3F5DD","EDFBFE","FFF5E8","FFD1DD"],pointerBorderColor:["545454","60634E","415D6F","845001","68001B"],pointerBgColor:["545454","60634E","415D6F","845001","68001B"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgC
29olor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],msgLogColor:["717170","7B7D6D","92CDD6","965B01","68001B"],TrendLightShadeOffset:30}}]),FusionCharts.register("module",["private","modules.renderer.js-annotations",function(){var t,e,i,n=this,r=n.core,o=n.hcLib,a=n.window,s=/msie/i.test(a.navigator.userAgent)&&!a.opera,l=o.addEvent,c=o.removeEvent,h=o.hasTouch,d=a.Number,u=h?6:5,p="rgba(192,192,192,"+(s?.002:1e-6)+")",f=(s=a.Math).min,g=s.max,m=s.sin,v=s.cos,b=s.PI,y=b/180,x=s.abs,w=n.extend,_=o.pluck,C=o.pluckNumber,S=o.graphics.convertColor,k=o.getValidValue,A=o.parseUnsafeString,T=o.setImageDisplayMode,L=o.graphics.parseColor,D=o.setLineHeight,E=o.getMouseCoordinate,P={style:{}},I=o.toRaphaelColor,M=function(t,e){return{start:-t,end:-e,angle:t-e}},O=function(t,e,i,n,r){var o,a,s,l=0,c=0;if(a=null==e?1:e,!t||!t.toString)return{value:i,hasDynamicMacros:!1};if(i=(t=(t=t.toString()).toLowerCase().replace(/\s/g,"")).match(/^[\+\-]?\d+(\.\d+)?|[\+\-]\d+(\.\d+)?/g)){for(e=0;e<i.length;e+=1)l+=Number(i[e])||0;l*=a}if(i=t.match(/^[\+\-]?(\$[a-z0-9\.]+)|[\+\-](\$[a-z0-9\.]+)/g))for(e=0;e<i.length;e+=1){var h=n,u=r,p=(o=i[e]).split("."),f=void 0,g=void 0,m=0;for(a=void 0;f=p.shift();)switch(typeof(g=h[f])){case"object":h=g[f];break;case"function":g=g(p,u),"-"===o.charAt()&&(g*=-1),a=!0;default:m+=d(g)||0,p.length=0}a&&(s=!0),c+=o=m}if(i=t.match(/^[\+\-]?\$\d+(\.\d+)?|[\+\-]\$\d+(\.\d+)?/g))for(e=0;e<i.length;e+=1)c=c+Number(i[e].replace("$",""))||0;return{value:l+c,hasDynamicMacros:s}},F=function(t,e,i){if(!e.removed){var r=(e=e.data("annotation")).getRenderer(),o=E(r.container,i),a=o.annotationOptions=e.options,s=o.groupOptions=e.group.options;o._shape=e,"id"in a&&(o.annotationId=a.id),"id"in s&&(o.groupId=s.id),n.raiseEvent(t,o,r.fusionCharts,i)}};e=function(t,e,n,r,o){if(this.options=t,this.attrs={},this.css={},this.bounds={},this.shared=e,this.snaps=n||{},this.annotations=o,this.items=e=[],this._idstore=r,t.id&&(this._id=t.id,r[t.id]=this),t=t.items)for(r=0,n=t.length;r<n;r+=1)e.push(new i(t[r],this))},w(e.prototype,{scaleImageX:1,scaleImageY:1,scaleText:1,scaleValue:1,scaleValueComplement:1,scaleX:1,scaleY:1}),e.prototype.setup=function(){var t=this.options,e=this.shared,i=this.getRenderer();i&&(this.isBelow=0!==C(t.showbelow,t.showbelowchart,e.showbelow),this.useTracker=!this.isBelow&&i.layers.tracker&&this.shared.useTracker,this.raiseOwnEvents=e.interactionevents)},e.prototype.scale=function(){var t,i,n,r=this.options,o=this.shared,a=this.bounds,s=this.snaps,l=this.getRenderer(),c=o.rootxscale,h=o.rootyscale,d=a.xs=C(r.xscale,o.xscale,100)/100,u=a.ys=C(r.yscale,o.yscale,100)/100;l&&(this.scaleText*=u,this.scaleImageX*=d,this.scaleImageY*=u,0!==C(r.autoscale,o.autoscale)&&(d=C(r.origw,o.origw),u=C(r.origh,o.origh),t=(d=l.chartWidth/d)<(u=l.chartHeight/u)?d:u,i=(l=0!==C(r.constrainedscale,o.constrainedscale))?t:d,n=l?t:u,this.scaleValue=e.prototype.scaleValue*t,this.scaleValueComplement=e.prototype.scaleValueComplement*(l?t:d<u?u:d),this.scaleX=e.prototype.scaleX*i,this.scaleY=e.prototype.scaleX*n,a.xs*=i,a.ys*=n,c*=i,h*=n,"1"==_(r.scaletext,o.scaletext)&&(this.scaleText=e.prototype.scaleText*n),"1"==_(r.scaleimages,o.scaleimages)&&(this.scaleImageX=e.prototype.scaleImageX*i,this.scaleImageY=e.prototype.scaleImageY*n)),a.x=O(_(r.x,r.xpos),c,0,s,this.isBelow).value+C(r.grpxshift,o.grpxshift,0),a.y=O(_(r.y,r.ypos),h,0,s,this.isBelow).value+C(r.grpyshift,o.grpyshift,0),this.xshift=C(r.xshift,o.xshift,0),this.yshift=C(r.yshift,o.yshift,0))},e.prototype.draw=function(){var t=this.getRenderer(),e=this.options,i=this.bounds,n=this.items,r=t&&t.layers.dataset,o=this.wrapper;if(t){for(o||(this.wrapper=o=t.paper.group("annotations"),r&&(this.isBelow?o.insertBefore(r):o.insertAfter(t.layers.datalabels||r))),this.wrapper.attr({x:0,y:0,visibility:C(e.visible,1)?"":"hidden"}).translate(i.x,i.y),e=0,i=n.length;e<i;e+=1)(t=n[e]).scale(!0),t.queueDraw?t.queue():(t.setup(),t.draw());return this}},e.prototype.destroy=function(){for(var t,e=this.wrapper,i=this.items;t=i.shift();)t.destroy();e&&(this.wrapper=e.remove()),this._idstore[this._id]===this&&delete this._idstore[this._id]},e.prototype.addItem=function(t,e){var n;return this.items.push(n=new i(t,this,this._idstore)),e&&null!==this.getRenderer()&&(n.scale(),n.setup(),n.draw()),n},e.prototype.removeItem=function(t){for(var e=this.items,i=e.length;i--;)if(t===e[i]._id)return e.splice(i,1)},e.prototype.getRenderer=function(){return this.annotations&&this.annotations.getRenderer()||null},i=function(t,e){var n,r=!1;for(n in this.options=t,this.group=e,this.args=[],this.attrs={},this.attrsTracker={},this.style={},this.bounds={}
29,this._idstore=e._idstore,t.id&&(this._id=t.id,e._idstore[t.id]=this),this.type=t.type&&t.type.toLowerCase&&t.type.toLowerCase(),i.eventNames)"function"==typeof t[n]&&(this[n]=t[n],r=!0);this.hasEvents=r,"function"==typeof t.onload&&(this.onload=t.onload)},n.extend(i.prototype,{getAbsoluteBounds:function(){var t=this.bounds,e=t.x1,i=t.y1,n=t.x2,r=t.y2,o=f(e,n),a=f(i,r);return{x:o,width:e=g(e,n)-o,y:a,height:i=g(i,r)-a,r:t.r,unscaled:{width:e/t.xs,height:i/t.ys}}},queue:function(){this.group.annotations.shapesToDraw.push(this)},scale:function(t){var e,n=this,r=n.group,o=r.bounds,a=n.bounds,s=n.options,l=r.snaps,c=_(s.x,s.xpos),h=_(s.y,s.ypos),d=_(s.tox,s.toxpos),u=_(s.toy,s.toypos),p=a.xs=o.xs,f=(o=a.ys=o.ys,C(s.xshift,r.xshift,0)),g=C(s.yshift,r.yshift,0);e=function(e,i,o,a){return(e=O(e,i,o,a,r.isBelow)).hasDynamicMacros&&t&&(n.queueDraw=!0),e.value},n.hasDimension=!0,n.hasDimensionX=!0,n.hasDimensionY=!0,a.x1=e(c,p,0,l)+f,void 0===d?(n.hasDimension=!1,n.hasDimensionX=!1,a.x2=a.x1):a.x2=e(d,p,0,l)+f,a.y1=e(h,o,0,l)+g,void 0===u?(n.hasDimension=!1,n.hasDimensionY=!1,a.y2=a.y1):a.y2=e(u,o,0,l)+g,i.angularShapeTypes[n.type]&&(a.angles=M(e(s.startangle,1,0,l),e(s.endangle,1,360,l))),a.r=e(s.radius,r.scaleValue,0,l)},setup:function(){var t=this.options,e=this.group,n=e.options,r=this.attrs,o=this.style,a=e.scaleValue,s=C(n.fillalpha,n.alpha,100),l=this.fillAlpha=_(t.fillalpha,t.alpha,s),c=this.fillColor=_(t.fillcolor,t.color,n.color),h=this.fillPattern=_(t.fillpattern&&t.fillpattern.toLowerCase&&t.fillpattern.toLowerCase(),n.fillpattern&&n.fillpattern.toLowerCase&&n.fillpattern.toLowerCase()),d=this.bordered=C(t.showborder,i.borderedShapeTypes[this.type],!!k(t.bordercolor)),u=this.borderColor=_(t.bordercolor,n.bordercolor,c),f=(s=this.borderAlpha=C(t.borderalpha,t.alpha,n.borderalpha,s),this.dashed=!!C(t.dashed,0)),g=C(t.borderthickness,t.thickness,2)*a;this.link=_(t.link,n.link),this.shadow="1"==_(t.showshadow,n.showshadow),void 0===c&&(c=i.borderedShapeTypes[this.type]?"none":"#ff0000",void 0===u&&(u="#ff0000")),d&&g?(r.stroke=S(u,s),r["stroke-linecap"]="round",r["stroke-width"]=g,f&&(r["stroke-dasharray"]=[C(t.dashlen,5)*a,C(t.dashgap,3)*a])):r.stroke="none",this.fillOptions={gradientUnits:"objectBoundingBox",color:c,alpha:l,ratio:_(t.fillratio,n.fillratio),angle:360-C(t.fillangle,0),radialGradient:"radial"===h},this.link&&(o.cursor="pointer",o._cursor="hand"),r.visibility=C(t.visible,1)?"":"hidden",this.useTracker=e.useTracker,this.toolText=A(_(t.tooltext,n.tooltext)),(this.useTracker||this.link||this.toolText)&&(w(this.attrsTracker,{stroke:p,fill:p}),this.link&&(this.attrsTracker.ishot=+new Date)),
30this.raiseOwnEvents=e.raiseOwnEvents},draw:function(){var t,e,n=this.getRenderer(),r=this.type,o=this.attrs,a=this.style,s=n&&n.paper,h=i.types[r]&&i.types[r].call&&i.types[r].call(this,n),d=i.imageShapeTypes[h],u=i.textShapeTypes[h],p=d||u||i.trackerShapeTypes[h],f=this.link||this.toolText,m=this.wrapper,v=(r=this.tracker,n&&n.layers.tracker||this.group.wrapper),b=!1,y=r||m,x=i.eventNames,w=i.ownEvents;if(n){if(h){if(m)if(m.elemType!==h){if(this.ownEventsAttached){for(e in w)y["un"+e].apply(m,w[e]);this.ownEventsAttached=!1}m=m.remove()}else if(this.hasEvents)for(t in x)(e=this[t])&&e.eventAttached&&(c(y.node,x[t],e),e.eventAttached=!1);if(d||(o.fill=I(this.fillOptions)),m?m.attr(o).css(a):(this.args.push(this.group.wrapper),(m=this.wrapper=s[h].apply(s,this.args).attr(o).css(a)).elemType=h,m.data("annotation",this),b=!0,this.args.pop()),!this.shadow||this.shadowAdded||d||u?m.shadow(this.shadowAdded=!1):m.shadow(this.shadowAdded=!0,g(this.borderAlpha,this.fillOptions.alpha)/100),f?this.useTracker&&(r||(this.args.push(v),r=this.tracker=p?s.rect(0,0,0,0,0,v):s[h].apply(s,this.args),this.args.pop()),r.attr(o).attr(this.attrsTracker)):r&&(r=r.remove()),y=r||m,this.raiseOwnEvents&&!this.ownEventsAttached){for(e in w)y[e].apply(m,w[e]);this.ownEventsAttached=!0}if(this.link&&y.click(n.linkClickFN,this),this.toolText&&(y.tooltip(this.toolText||""),this.group.wrapper.trackTooltip(!0)),this.hasEvents)for(t in x)(e=this[t])&&!e.eventAttached&&(l(y.node,x[t],e,this),e.eventAttached=!0);d||(r&&p&&(n=m.getBBox(),r.attr({x:n.x,y:n.y,width:n.width,height:n.height})),b&&this.onload&&this.onload(o))}return this}},destroy:function(){var t,e,n=this.wrapper,r=this.tracker,o=r||n,a=i.eventNames,s=i.ownEvents;if(n){if(this.ownEventsAttached){for(e in s)o["un"+e].apply(n,s[e]);this.ownEventsAttached=!1}if(this.hasEvents)for(t in a)(e=this[t])&&e.eventAttached&&(c(o.node,a[t],e),e.eventAttached=!1);r&&(this.tracker=r.remove()),this.wrapper=n.remove()}this._idstore[this._id]===this&&delete this._idstore[this._id]},getRenderer:function(){return this.group&&this.group.getRenderer()||null}}),n.extend(i,{imageShapeTypes:{image:!0}
30,angularShapeTypes:{circle:!0,arc:!0},textShapeTypes:{text:!0},trackerShapeTypes:{image:!0,text:!0},borderedShapeTypes:{path:!0,line:!0},eventNames:{onmouseover:h?"touchstart":"mouseover",onmouseout:"mouseout",onmousemove:h?"touchmove":"mousemove",onclick:"click"},ownEvents:{click:[function(t){F("annotationClick",this,t)}],hover:[function(t){F("annotationRollOver",this,t)},function(t){F("annotationRollOut",this,t)}]},textAlignOptions:{left:"start",right:"end",center:"middle"},textVerticalAlignOptions:{top:"bottom",middle:"middle",bottom:"top"},textRotationOptions:{0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"},types:{rectangle:function(){var t=this.args,e=this.attrs,i=this.getAbsoluteBounds(),n=.5*i.width;return i.r>n&&(i.r=n),t[0]=e.x=i.x,t[1]=e.y=i.y,t[2]=e.width=i.width,t[3]=e.height=i.height,t[4]=e.r=i.r,"rect"},line:function(){var t=this.attrs,e=this.bounds;return this.args[0]=t.path=["M",e.x1,e.y1,"L",e.x2,e.y2],1===t["stroke-width"]&&(t["shape-rendering"]="crisp"),t["stroke-width"]<u&&(this.attrsTracker["stroke-width"]=u),this.bordered&&this.dashed&&(this.attrsTracker["stroke-dasharray"]="solid"),"path"},path:function(){var t=this.attrs,e=this.bounds;return this.args[0]=t.path=this.options.path,t.transform=["T",e.x1,e.y1,"S",e.xs,e.ys,e.x1,e.y1],1===t["stroke-width"]&&(t["shape-rendering"]="crisp"),"path"},polygon:function(){var t=this.args,e=this.attrs,i=this.options,n=this.bounds,r=this.group,o=r.snaps;return t[0]=O(i.sides,1,5,o,r.isBelow).value,t[1]=n.x1,t[2]=n.y1,t[3]=n.r,t[4]=O(i.startangle,1,0,o,r.isBelow).value,t[5]=0,e.polypath=t.slice(0),"polypath"},circle:function(t){var e=this.args,i=this.attrs,n=this.options,r=this.bounds,o=t.chartWidth,a=t.chartHeight,s=this.group.scaleValueComplement,l=this.group.snaps,c=r.angles,h=this.group;return t=r.r,_(n.radius)||(r.r=o<a?o*r.xs:a*r.ys,r.r=t=.3*r.r),n=O(n.yradius,s,t,l,h.isBelow).value,this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial"),"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5),(a=c.angle%360)||t!==n?(a||(c.angle=0<c.angle?c.angle-.001:c.angle+.001,c.start=c.end-c.angle),a||a==c.angle||(a=360),o=c.start*y,c=c.end*y,a*=y,l=r.x1,h=r.y1,r=l+v(o)*t,s=h+m(o)*n,l+=v(c)*t,h+=m(c)*n,t=["M",r,s,"A",t,n,0,x(a)>=b?1:0,o<c?1:0,l,h,"Z"],e[0]=i.path=t,"path"):(e[0]=i.cx=r.x1,e[1]=i.cy=r.y1,e[2]=i.r=r.r,"circle")},arc:function(t){var e=this.options,i=this.args,n=this.attrs,r=this.bounds,o=t.chartWidth;t=t.chartHeight;var a=this.group,s=a.scaleValue,l=r.angles;return _(e.radius)||(r.r=o<t?o*r.xs:t*r.ys,r.r*=.3),r.innerR=O(e.innerradius,s,.8*r.r,this.group.snaps,a.isBelow).value,r.innerR>r.r&&(r.innerR+=r.r,r.r=r.innerR-r.r,r.innerR-=r.r),this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial"),"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5),i[0]=r.x1,i[1]=r.y1,i[2]=r.r,i[3]=r.innerR,i[4]=l.end*y,i[5]=l.start*y,n.ringpath=i.slice(0),"ringpath"},text:function(t){var e,n,r=this.args,o=this.style,a=this.attrs,s=this.group,l=this.bounds,c=this.options,h=this.getAbsoluteBounds(),d=_(c.align,s.options.textalign,"center").toLowerCase(),u=_(c.valign,s.options.textvalign,"middle").toLowerCase(),p=A(_(c.text,c.label)),f=t.logic.smartLabel,g=C(c.wrap,s.options.wraptext,1),m=_(c.rotatetext,s.options.rotatetext,"0").toLowerCase(),v="0"!==(m=i.textRotationOptions[m])?"y":"x",b=t.options.orphanStyles;t=w({},b.defaultStyle.style||{}),b=s.id&&b[s.id.toLowerCase()]||P,t=w(t,b.style);b=parseFloat(t.fontSize);var y=_(c.font,s.options.font,t.fontFamily);s=C(c.fontsize,s.options.fontsize,b)*s.scaleText;return g&&(e=C(c.wrapwidth,this.hasDimensionX?h.width/l.xs:void 0),n=C(c.wrapheight,this.hasDimensionY?h.height/l.ys:void 0),e&&(e*=l.xs),n&&(n*=l.ys)),o.fontFamily=y,o.fontWeight=C(c.bold,c.isbold,0)?"bold":"normal",C(c.italic,c.isitalic,0)&&(o.fontStyle="italic"),c.bgcolor&&(!a["text-bound"]&&(a["text-bound"]=[]),a["text-bound"][0]=L(c.bgcolor)),c.bordercolor&&(!a["text-bound"]&&(a["text-bound"]=[]),a["text-bound"][1]=L(c.bordercolor),a["text-bound"][2]=C(c.borderthickness,1),a["text-bound"][3]=C(c.padding,1)),c.fontcolor&&(a.fill=L(c.fontcolor),this.fillOptions&&(this.fillOptions.color=a.fill)),o.fontSize=s+"px",s===b?o.lineHeight=t.lineHeight:D(o),a["text-anchor"]=i.textAlignOptions[d]||i.textAlignOptions.center,f.setStyle(o),o=f.getSmartText(p,e,n,!1),a["vertical-align"]=i.textVerticalAlignOptions[u]||i.textVerticalAlignOptions.middle,a["text-anchor"]===i.textAlignOptions.left?h[v]+=C(c.leftmargin,0):a["text-anchor"]===i.textAlignOptions.center&&(h[v]+=.5*C(c.leftmargin,0)),"0"!==m&&(a.rotation=[parseFloat(m),h.x,h.y]),r[0]=a.x=h.x,r[1]=a.y=h.y,r[2]=a.text=o.text,o.tooltext&&(a.title=o.tooltext),delete a.stroke,delete a["stroke-weight"],"text"},image:function(t){var e=this,i=e.style,n=t.chartWidth,r=t.chartHeight;t=e.options;var o,s=e.attrs,l=e.args,c=k(t.url),h=e.group.scaleImageX*_(Number(t.xscale),100)/100,d=e.group.scaleImageY*_(Number(t.yscale),100)/100,u=e.getAbsoluteBounds(),p={width:1,height:1};return c?((o=new a.Image).onload=function(){delete(p=T("none","top","left",100,0,n,r,o)).x,delete p.y,p=w(p,{width:(e.hasDimensionX?u.unscaled.width:p.width)*h,height:(e.hasDimensionY?u.unscaled.height:p.height)*d}),setTimeout((function(){var t,n,r;(t=e.wrapper)&&(t.attr(p),(n=e.tracker)&&(r=t.getBBox(),n.attr({x:r.x,y:r.y,width:r.width,height:r.height})),t.css({opacity:i.opacity=g(C(e.fillAlpha,e.borderAlpha),e.borderAlpha)/100})),e.onload&&e.onload(p)}),0)},o.src=c,l[0]=s.src=c,l[1]=s.x=u.x,l[2]=s.y=u.y,l[3]=s.width=(e.hasDimensionX?u.unscaled.width:p.width)*h,l[4]=s.height=(e.hasDimensionY?u.unscaled.height:p.height)*d,i.opacity=g(C(e.fillAlpha,e.borderAlpha),e.borderAlpha)/100,delete s.stroke,delete s.fill,delete s["stroke-linecap"],"image"):(l[0]=s.x=u.x,l[1]=s.y=u.y,l[2]=s.width=u.width,l[3]=s.height=u.height,l[4]=s.r=u.r,"rect")}}}),t=function(){this.groups=[],this._idstore={},this._options={}},o.Annotations=t,n.extend(t.prototype,{reset:function(t,i,n){var r,o=this.groups;if(this.clear(),n){for(var a in r={},n)switch(typeof n[a]){case"object":case"function":r["-$"+a]=r["$"+a]=r["+$"+a]=n[a];break;default:r["$"+a]=r["+$"+a]=n[a],r["-$"+a]=-1*n[a]}r=this._literals=r}if(i&&(this._options=i),t&&t.groups&&o)for(n=0;n<t.groups.length;n+=1)o.push(new e(t.groups[n],i,r,this._idstore,this))},getRenderer:function(){return this._renderer},addGroup:function(t){var i=this.getRenderer();return this.groups.push(t=new e(t,this._options,this._literals,this._idstore,this)),i&&(t.setup(),t.scale(),t.draw()),t}
30,addItem:function(t,e,i){var r,o=this.getRenderer();if("string"==typeof t?r=this._idstore[t]:(i=e,e=t),r&&r.addItem){if(!o&&i)return void n.raiseWarning(this,"04031411430","run","Annotations~addItem()","Cannot draw the shapeif the group has not been drawn. Use Annotations~draw() to draw the group and pass the renderer to it.");t=r.addItem(e,i)}else t=this.addGroup({}).addItem(e,i);return t},draw:function(t){var e,i,n=this.groups;if(n&&(this._renderer=t||this._renderer))for(e=0,i=n.length;e<i;e++)(t=n[e]).setup(),t.scale(),t.draw()},clear:function(){var t,e=this.groups;if(e){for(;t=e.shift();)t.destroy();this.shapesToDraw=[]}},dispose:function(){var t;for(t in this.disposing=!0,this.clear(),this)delete this[t];this.disposed=!0},hide:function(t){if(t=this._idstore[t])return t.attrs.visibility="hidden",t.wrapper&&t.wrapper.hide(),t},show:function(t){if(t=this._idstore[t])return t.attrs.visibility="",t.wrapper&&t.wrapper.show(),t},update:function(t,e,i){var n;if((t=this._idstore[t])&&e){if("object"==typeof e)for(n in e.id&&delete e.id,e.type&&delete e.type,e)t.options[(n+"").toLowerCase()]=e[n]+"";else t.options[(e+"").toLowerCase()]=i+"";return t.wrapper&&(t.scale(),t.setup(),t.draw()),t}},destroy:function(t){var e=this._idstore[t],i=e.group;e&&"function"==typeof e.destroy&&(i&&i.removeItem(t),e.destroy())},shapesToDraw:[]}),n.core.addEventListener("beforeinitialize",(function(e){"javascript"===e.sender.options.renderer&&(e.sender.annotations=new t)})),n.core.addEventListener("disposed",(function(t){t.sender.annotations&&t.sender.annotations.dispose()})),n.addEventListener("internal.animationComplete",(function(t){var e,i,n=(t=t.sender.annotations)&&t.shapesToDraw,r=n&&n.length;if(r){for(i=0;i<r;i++)(e=n[i]).queueDraw=!1,e.scale(),e.setup(),e.draw();t.shapesToDraw=[]}})),r.addEventListener("rendered",(function(t,e){if("javascript"===e.renderer){var i=t.sender,n=i.jsVars||{},r=n.instanceAPI;n.hcObj&&r&&r.drawAnnotations?(i.showAnnotation||(i.showAnnotation=function(){i.annotations.show.apply(i.annotations,arguments)}),i.hideAnnotation||(i.hideAnnotation=function(){i.annotations.hide.apply(i.annotations,arguments)})):(delete i.showAnnotation,delete i.hideAnnotation)}}))}]),FusionCharts.register("module",["private","modules.renderer.js-base",function(){var t=this,e=t.hcLib,i=e.Raphael,n=t.window,r=n.document,o=e.BLANKSTRING,a=e.createTrendLine,s="https:"===n.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",l=e.pluck,c=e.getValidValue,h=e.pluckNumber,d=e.getFirstValue,u=e.getDefinedColor,p=e.parseUnsafeString,f=e.FC_CONFIG_STRING,g=e.extend2,m=e.getDashStyle,v=e.parseTooltext,b=e.toPrecision,y=e.regex.dropHash,x=e.HASHSTRING,w=e.getSentenceCase,_=e.addEvent,C=function(t){return null!=t},S=n.Math,k=e.TOUCH_THRESHOLD_PIXELS,A=e.CLICK_THRESHOLD_PIXELS,T=S.min,L=S.max,D=S.abs,E=S.ceil,P=S.floor,I=S.log,M=S.pow,O=S.sqrt,F=S.round,R=e.graphics.getColumnColor,B=e.getFirstColor,N=e.setLineHeight,j=e.pluckFontSize,$=e.getFirstAlpha,V=e.graphics.getDarkColor,H=e.graphics.getLightColor,W=e.graphics.convertColor,z=e.COLOR_TRANSPARENT,q=e.POSITION_CENTER,U=e.POSITION_TOP,G=e.POSITION_BOTTOM,Y=e.POSITION_RIGHT,X=e.POSITION_LEFT,J=e.parsexAxisStyles,K=e.chartAPI,Z=e.graphics.mapSymbolName,Q=K.singleseries,tt=K.multiseries,et=e.COMMASTRING,it=e.STRINGUNDEFINED,nt=e.ZEROSTRING,rt=e.ONESTRING,ot=e.HUNDREDSTRING,at=e.PXSTRING,st=e.COMMASPACE,lt=n.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),ct=!/fusioncharts\.com$/i.test(n.location.hostname),ht={left:"start",right:"end",center:"middle"},dt=e.BLANKSTRINGPLACEHOLDER,ut=e.BGRATIOSTRING,pt=e.COLOR_WHITE,ft=e.TESTSTR,gt=e.graphics.getAngle,mt=e.axisLabelAdder,vt=e.falseFN,bt=e.NumberFormatter,yt=e.getLinkAction,xt=e.getAxisLimits,wt=e.createDialog,_t=function(t,e){return 0<t?I(t)/I(e||10):null},Ct=e.hasTouch=void 0!==r.documentElement.ontouchstart,St=e.fireEvent=function(t,i,n,r){e.dem.fire(t,i,n,r)},kt={1:"bold",0:"normal"},At={1:"italic",0:"normal"},Tt={1:"underline",0:"none"},Lt={font:function(t,e){e.style.fontFamily=t},size:function(t,e){t&&(e.style.fontSize=j(t)+at)}
30,color:function(t,e,i){e.style.color=t&&t.replace&&t.replace(y,x)||o,i&&(e.color=e.style.color)},bgcolor:function(t,e){e.style.backgroundColor=t&&t.replace&&t.replace(y,x)||o},bordercolor:function(t,e){e.style.border="1px solid",e.style.borderColor=t&&t.replace&&t.replace(y,x)||o},ishtml:o,leftmargin:function(t,e){e.style.marginLeft=h(t,0)+at},letterspacing:function(t,e){e.style.letterSpacing=h(t,0)+at},bold:function(t,e){e.style.fontWeight=kt[t]||""},italic:function(t,e){e.style.fontStyle=At[t]||""},underline:function(t,e){e.style.textDecoration=Tt[t]||""}},Dt=e.chartPaletteStr={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:"divLineAlpha3D",legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},Et=function(){var e,i={},n=function(){var r,o,a,s,l,c,h,d=0,u=parseInt(t.core.options.resizeTrackingInterval,10)||300;for(r in i)d+=1,a=(o=i[r]).jsVars,l=o.ref,!o.disposed&&(s=l&&l.parentNode)&&(c=l.style)&&(/\%/g.test(c.width)||/\%/g.test(c.height))?(l=s.offsetWidth,h=s.offsetHeight,!a.resizeLocked&&(l&&a._containerOffsetW!==l||h&&a._containerOffsetH!==h)&&(o.resizeTo&&o.resizeTo(),a._containerOffsetW=l,a._containerOffsetH=h)):(delete i[r],--d);e=d?setTimeout(n,u):clearTimeout(e)};return function(r,o){var a=r.jsVars,s=o||r.ref&&r.ref.parentNode||{};a._containerOffsetW=s.parentNode.offsetWidth,a._containerOffsetH=s.parentNode.offsetHeight,i[r.id]=r,e||(e=setTimeout(n,parseInt(t.core.options.resizeTrackingInterval,10)||300))}}(),Pt={getExternalInterfaceMethods:function(){var t,e,i="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,lockResize,showChartMessage,";if("string"==typeof(t=(t=K[this.jsVars.type])&&t.eiMethods))i+=t+et;else if(void 0!==t||null!==t)for(e in t)i+=e+et;return i.substr(0,i.length-1)},drawOverlayButton:function(i){var n,o,a=this.jsVars,s=a.overlayButton;if(i&&i.show){for(s||(s=a.overlayButton=r.createElement("span"),e.dem.listen(s,"click",(function(){t.raiseEvent("OverlayButtonClick",i,a.fcObj)}))),n=i.message?i.message:"Back";s.firstChild;)s.removeChild(s.firstChild);for(o in s.appendChild(r.createTextNode(n)),a.overlayButtonMessage=n,n={border:"1px solid "+(i.borderColor?i.borderColor.replace(y,x):"#7f8975"),backgroundColor:i.bgColor?i.bgColor.replace(y,x):"#edefec",fontFamily:i.font?i.font:"Verdana,sans",color:(i.fontColor,i.fontColor),fontSize:(i.fontSize?i.fontSize:"10")+at,padding:(i.padding?i.padding:"3")+at,fontWeight:0===parseInt(i.bold,10)?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"})s.style[o]=n[o];a.hcObj.container.appendChild(s),a.overlayButtonActive=!0}else s&&(a.overlayButton=s.parentNode.removeChild(s),a.overlayButtonActive=!1,delete a.overlayButtonMessage)},print:function(t){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&this.jsVars.hcObj.print(t)},exportChart:function(t){var e=this.jsVars.hcObj;return!!(e&&e.options&&e.options.exporting&&e.options.exporting.enabled)&&e.exportChart(t)},getSVGString:function(){return this.jsVars&&this.jsVars.hcObj&&this.jsVars.hcObj.paper&&this.jsVars.hcObj.paper.toSVG()},resize:function(){var t=this.jsVars,i=t.container,n=t.hcObj;n&&(n&&n.destroy&&n.destroy(),e.createChart(t.fcObj,i,t.type,void 0,void 0,!1,!0),delete t.isResizing)},lockResize:function(t){return"boolean"!=typeof t?!!this.jsVars.resizeLocked:this.jsVars.resizeLocked=t},showChartMessage:function(t,i,n){var r=this.jsVars,o=r.hcObj,a=r.fcObj,s=a.options;return r.msgStore[t]&&(t=r.msgStore[t]),i&&o&&o.hasRendered?t?o.showMessage(t,n):o.hideLoading():(o&&o.destroy&&o.destroy(),a._chartMessageImageStyle={imageHAlign:s.baseChartMessageImageHAlign,imageVAlign:s.baseChartMessageImageVAlign,imageAlpha:s.baseChartMessageImageAlpha,imageScale:s.baseChartMessageImageScale},a._chartMessageStyle={color:s.baseChartMessageColor,fontFamily:s.baseChartMessageFont,fontSize:s.baseChartMessageFontSize},e.createChart(r.fcObj,r.container,r.type,void 0,t)),t},signature:function(){return"FusionCharts/3.4.0 (XT)"}},It=e.HCstub=function(t,i,n,r){t=t.chart;var a=h(t.showborder,1)?h(t.borderthickness,1):0,s=h(t.charttopmargin,r.charttopmargin,15)+a,l=h(t.chartrightmargin,r.chartrightmargin,15)+a,c=h(t.chartbottommargin,r.chartbottommargin,15)+a,d=s+c,u=(a=h(t.chartleftmargin,r.chartleftmargin,15)+a)+l;return d>(n*=.7)&&(s-=(d-n)*s/d,c-=(d-n)*c/d),u>(i*=.7)&&(a-=(u-i)*a/u,l-=(u-i)*l/u),i={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],isSpline:-1!==r.chartInstance.options.chartType.search(/spline/i),noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:s,spacingRight:l,spacingBottom:c,spacingLeft:a,marginTop:s,marginRight:l,marginBottom:c,marginLeft:a,borderRadius:0,plotBackgroun
30dColor:"#FFFFFF",textDirection:"1"===t.hasrtltext?"rtl":"",style:{},animation:!!h(t.defaultanimation,t.animation,1)&&{duration:500*h(t.animationduration,1)}},colors:"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),credits:{href:e.CREDIT_HREF,text:e.CREDIT_STRING,enabled:ct},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:o,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:!!h(t.animation,t.defaultanimation,1)&&{duration:1e3*h(t.animationduration,1)},states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},formatter:function(){return this.point.showPercentValues?r.numberFormatter.percentValue(this.percentage):this.point.displayValue}},point:{events:{}}},area:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},radar:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},areaspline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},line:{shadow:!0,states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},scatter:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},bubble:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},spline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},pie:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:t.interactivelegend===nt?vt:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:t.interactivelegend===nt?vt:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:o,style:{}},symbols:[],title:{text:o,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},text:o},tickWidth:0,scroll:{enabled:!1}},yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:o},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:o},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==dt?this.value:o}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}},t.palettecolors&&"string"==typeof t.palettecolors&&(i.colors=t.palettecolors.split(/\s*\,\s*/)),r.hcJSON=i},Mt=function(t,e,i,n,r){var o=[],a=!1;for(n=n||0,r=r||{max:Number.MIN_VALUE,min:Number.MAX_VALUE};n<t.length;++n)if(a)if(isNaN(t[n].y)||null===t[n].y){if(!i)break}else o.push({index:n,y:t[n].y});else isNaN(t[n].y)||null===t[n].y||(a=!0,o.push({index:n,y:t[n].y}));if(2<o.length){a=r;var s,l,c,h={};for(l=0;l<o.length;++l)h["D"+(s=o[l].index)]=0;for(s=0;10>s;++s)for(l=0;l<o.length;++l)c=0===l?(3*(o[l+1].y-o[l].y)-h["D"+o[l+1].index])/2:l===o.length-1?(3*(o[l].y-o[l-1].y)-h["D"+o[l-1].index])/2:(3*(o[l+1].y-o[l-1].y)-h["D"+o[l+1].index]-h["D"+o[l-1].index])/4,h["D"+o[l].index]=c;for(s=F(e/(o.length-1)),l=1;l<o.length;++l){c=a;var d=void 0,u=void 0,p=void 0,f=void 0,g=u=void 0,m=void 0,v=void 0,b=void 0;for(b=void 0,d=h["D"+o[0].index],u=h["D"+o[l].index],p=o[0].y,f=3*(o[l].y-o[0].y)-2*d-u,u=2*(o[0].y-o[l].y)+d+u,g=c.max,m=c.min,v=0;v<=s;v++)(b=p+d*(b=v/s)+f*b*b+u*b*b*b)<m&&(m=b),b>g&&(g=b);c.max=g,c.min=m}}return n<t.length&&!i&&Mt(t,e,i,n,r),r},Ot=e.placeVerticalAxis=function(t,e,i,n,r,a,s,l,d,u){var p,g,m,v,b,y,x,w,_=(M=i[f]).smartLabel,C=0,S=M.marginRightExtraSpace,k=M.marginLeftExtraSpace,A={},T={},E={},P=t.plotLines,I=t.plotBands,M=e.verticalAxisValuesPadding,O=isNaN(e.fixedValuesPadding)?0:e.fixedValuesPadding,F=M-O,R=e.verticalAxisValuesPadding,B=e.verticalAxisNamePadding,N=e.verticalAxisNameWidth,j=e.rotateVerticalAxisName&&String(e.rotateVerticalAxisName).toLowerCase(),$="none"!==j,V=t.offset?t.offset:0,H=0,W=0,z=0,q=0,U=0,G=0,J=0,K=(M=2,J=s?S+5:k+4,L(h(i.chart.plotBorderWidth,1),0)),Z=t.showLine?t.lineThickness:K,Q=function(t,i){var n,r;t&&t.label&&void 0!==c(t.label.text)&&((x=t.label).style&&x.style!==y&&(y=x.style,_.setStyle(y)),r=(n=(p=_.getOriSize(t.label.text)).width)?n+2:0,t.isGrid?(A[i]={width:n,height:p.height,label:x},q<=r&&(q=r,e.lYLblIdx=i)):t.isTrend&&(s&&x.textAlign===X||x.textAlign===Y?(T[i]={width:n,height:p.height,label:x},U=L(U,r)):(E[i]={width:n,height:p.height,label:x}
30,G=L(G,r))))},tt=function(e,i){var n,a,s=i?C:C+e;return n=t.title.style,g=g||{},0<s?($?(s<g.height&&(_.setStyle(n),g=_.getSmartText(t.title.text,r,s)),n=g.height,a=g.width):(s<g.width&&(_.setStyle(n),g=_.getSmartText(t.title.text,s,r)),n=g.width,a=g.height),t.title._actualWidth=n,t.title._actualHeight=a,t.title.text=g.text,g.tooltext&&(t.title.originalText=g.tooltext),i?s-n+e:s-n):(t.title.text=o,0)},et=function(t,e,i){for(var n in t)t[n].label.x=e,t[n].label.y=i};z=0;for(b=I.length;z<b;z+=1)Q(I[z],z);for(z=0,b=P.length;z<b;z+=1)Q(P[z],z);return t.title&&t.title.text!=o&&(y=t.title.style,_.setStyle(y),m=_.getOriSize(ft).height,t.title._originalText=t.title.text,$?(t.title.rotation="cw"===j?90:270,g=_.getSmartText(t.title.text,r,a),C=g.height,v=m):(t.title.rotation=0,g=_.getSmartText(t.title.text,void 0!==N?N:a,r),C=g.width,v=20)),0<G&&(W=G+R),d&&(1<=(n=h(n.chart.maxlabelwidthpercent,0))&&100>=n&&(q>(d=n*d/100)&&(q=d))),H=L(U,q),H+=H?F+O:0,0<C&&(H+=C+B+J),function(){if(W+H>a){if(w=W+H-a,W){if(R>=w)return void(R-=w);w-=R,R=0}if(F+B>=w)B>=w?B-=w:(F-=w-B,B=0);else{if(w-=F+B,B=F=0,20<G)if(U>q){if(G-U>=w)return void(G-=w);if(U-G>=w)return void(U-=w);if(U>G?(w-=U-G,U=G):(w-=G-U,G=U),2*(U-q)>=w)return G-=w/2,void(U-=w/2);w-=2*(U-q),G=U=q}else{if(G-20>=w)return void(G-=w);w-=G-20,G=20}if(U>q){if(U-q>=w)return void(U-=w);w-=U-q,U=q}C-v>=w?C-=w:(w-=C-v,C=v,G>=w?G=0:(w-=G,G=0,C>=w?C=0:(w-=C,C=0,q>=w&&(U=q-=w))))}}}(),z=function(t,e){var i,n,a=0,s=e?G-2:G+t-2;if(0<G){for(n in E)x=E[n].label,E[n].width>s?(x.style&&x.style!==y&&(y=x.style,_.setStyle(y)),i=_.getSmartText(x.text,s,r,!0),x.text=i.text,i.tooltext&&(x.originalText=i.tooltext),E[n].height=i.height,a=L(a,i.width)):a=L(a,E[n].width);return e?s-a+t:s-a}for(n in E)E[n].label.text=o;return 0}(0,!0),z=function(t){var e,i=0,n=L(q,U)+t-2;if(0<n){for(e in A)x=A[e].label,A[e].width>n?(x.style&&x.style!==y&&(y=x.style,_.setStyle(y)),t=_.getSmartText(x.text,n,r,!0),x.text=t.text,t.tooltext&&(x.originalText=t.tooltext),A[e].height=t.height,i=L(i,t.width)):i=L(i,A[e].width);for(e in T)x=T[e].label,T[e].width>n?(x.style&&x.style!==y&&(y=x.style,_.setStyle(y)),t=_.getSmartText(x.text,n,r,!0),x.text=t.text,t.tooltext&&(x.originalText=t.tooltext),T[e].height=t.height,i=L(i,t.width)):i=L(i,T[e].width);return D(n-i)}for(e in A)A[e].label.text=o;for(e in T)T[e].label.text=o;return 0}(z=tt(z,!0)),z=tt(z),d=e.verticalAxisNamePadding-B,z&&d&&(z>d?(B+=d,z-=d):(B+=z,z=0)),d=e.verticalAxisValuesPadding-(F+O),z&&d&&(z>d?(F+=d,z-=d):(F+=z,z=0)),d=e.verticalAxisValuesPadding-R,z&&d&&(z>d?(R+=d,z-=d):(R+=z,z=0)),0<G&&(W=G+R),H=L(U,q),H+=H?F+O:0,0<C&&(H+=C+B+J),d=L(U,q),d+=0<d?F+O:0,0<C?($?C<g.height&&(g=_.getSmartText(t.title.text,r,C)):(C<g.width&&(g=_.getSmartText(t.title.text,C,r)),t.title.y=-(g.height-m)/2),t.title.text=g.text,g.tooltext&&(t.title.originalText=g.tooltext),t.title.margin=d+B+J+($?C-m:C/2)):t.title.text=o,m=-(F+O+V+k+2),S=S+R+V+2,J=L(U,q),t.labels.style&&(M=.35*parseInt(t.labels.style.fontSize,10)),s?(0<G&&et(E,m,M),0<J&&(et(A,S,M),et(T,
30S,M))):(0<G&&et(E,S,M),0<J&&(et(A,m,M),et(T,m,M))),t.labels._textY=M,t.labels._righttX=S,t.labels._leftX=m,H=H||Z,W=W||(l?0:K),u?(i.chart.marginLeft+=s?W:H-u,i.chart.marginRight+=s?H-u:W):(i.chart.marginLeft+=s?W:H,i.chart.marginRight+=s?H:W),W+H},Ft=e.titleSpaceManager=function(t,e,i,n){var r=this.snapLiterals||(this.snapLiterals={}),a=e.chart,s=p(a.caption);e=p(a.subcaption);var l,c,d=a=h(a.captionpadding,10),u=t[f],g=this.smartLabel||u.smartLabel,m=!1,v=0,b=0,y=0,x=0,w=0,_=t.title,C=t.subtitle,S=L(h(t.chart.plotBorderWidth,1),0),k=0,A=0;return 3<n?(a<S&&(a=S+2),s!==o&&(l=_.style,x=E(h(parseFloat(l.fontHeight,10),parseFloat(l.lineHeight,10),12))),e!==o&&(c=C.style,w=h(parseInt(c.fontHeight,10),parseInt(c.lineHeight,10),12)),(0<x||0<w)&&((v=x+w+a)>(n=L(n,0))?(m=!0,(b=n-v)<a?a=L(b,5):(b-=a,a=0,w>b?(y=w-b+10,w=0,C._originalText=C.text,C.text=""):(b-=w,w=0,x>b&&(y=x-b)))):y=n-v,0<x&&(g.setStyle(l),y=(x+=y)-(n=g.getSmartText(s,i,x)).height,_.height=x=n.height,_.text=n.text,n.tooltext&&(_.originalText=n.tooltext),k=n.width),0<w&&(g.setStyle(c),y=(w+=y)-(i=g.getSmartText(e,i,w)).height,w=i.height,C.text=i.text,C.height=i.height,i.tooltext&&(C.originalText=i.tooltext),A=i.width),m&&0<y&&(a+=T(d-a,y)),v=x+w+a),v=v||S,_.isOnTop?(r.captionstarty=t.chart.marginTop,t.chart.marginTop+=v):(t.chart.marginBottom+=v,r.captionstarty=_.y=u.height-t.chart.marginBottom+a,t.chart.marginTop+=5,v+=5),_._captionWidth=k,C._subCaptionWidth=A,_._lineHeight=x,C._lineHeight=w):(C&&(C.text=""),_&&(_.text="")),v},Rt=e.stepYAxisValues=function(t,e,i,n,r,a){var s=0,l=n.plotLines,c=[],h=0,d=n.plotLines.length,u="W";e=e[f].smartLabel;for(var p,g,m=parseFloat(j(i.basefontsize,10)),v=0;s<d;s+=1)(i=l[s]).isGrid&&i.label&&i.label.text&&(a&&(g=i.label.text.match(/<br \/>/gi))&&(v=L(v,g.length),g=null),c.push(i),0===i.value&&(h=c.length-1));if(a&&0<v&&(u+=Array(v+1).join("<br />W")),(d=c.length)&&((n.labels.style||c[0].label&&c[0].label.style)&&e.setStyle(n.labels.style),s=e.getOriSize(u).height,a||(s+=.4*m),(t/=d-1)<s)){for(a=L(1,E(s/t)),s=t=h;s<d;s+=1)i=c[s],s===r&&((s-t)%a&&p&&(p.label.text=""),t=r),i&&i.label&&((s-t)%a?i.label.text=o:p=i);for(s=t=h;0<=s;--s)i=c[s],s===r&&((t-s)%a&&p&&(p.label.text=""),t=r),i&&i.label&&((t-s)%a?i.label.text=o:p=i)}},Bt=e.placeHorizontalAxis=function(t,e,i,n,r,a,s){var l,d,u,p,g,m,v,b,y,x,w,_,C,S,k,A,D,I,M,F,R,B,N,j,$,V,H,W,z,U,J,K,Z,Q,tt,et,nt,rt,ot,at,st,lt,ct,ht,dt,ut,pt,ft,gt,mt,vt,bt,yt,xt,wt,_t,Ct,St,kt,At,Tt,Lt,Dt,Et,Pt,It,Mt,Ot,Ft,Rt,Bt,Nt,jt,$t,Vt,Ht,Wt,zt,qt=i[f],Ut=n&&n.chart||{},Gt=0,Yt=0,Xt=10,Jt=1,Kt=0,Zt=0,Qt=0,te=0,ee=!1,ie=!1,ne=!1,re=h(Ut.labelstep,0),oe=h(Ut.xaxisminlabelwidth,0),ae=h(Ut.maxlabelheight,a),se=e.labelDisplay,le=e.rotateLabels,ce=e.horizontalLabelPadding,he=qt.marginBottomExtraSpace,de=i.chart.marginLeft,ue=i.chart.marginRight,pe=qt.smartLabel,fe=qt.plotBorderThickness,ge=e.catCount,me=e.slantLabels,ve=r/(t.max-t.min),be=0,ye=0,xe=0,we=0,_e=n&&n.chart||{},Ce=1e3*h(_e.updateinterval,_e.refreshinterval),Se=_e.datastreamurl,ke=Boolean(this.realtimeEnabled&&Ce&&void 0!==Se),Ae=null,Te=null,Le=[],De=[],Ee=0,Pe=0,Ie=e.horizontalAxisNamePadding,Me=0,Oe=e.staggerLines,Fe=be,Re=!1,Be=!1,Ne=0;for(Xt=pt=0,Ct=(ft=t.plotLines).length;pt<Ct;pt+=1)(d=ft[pt])&&d.label&&!d.isTrend&&Xt<(zt=parseFloat(d.label.style.lineHeight,10))&&(Xt=E(zt)+2*(d.label.style.borderThickness||0),m=d.label.style);switch((m||t.labels.style)&&(m=m||t.labels.style,pe.setStyle(m),b=pe.getOriSize("W"),Xt=pe.lineHeight,v=b.width+4,_=pe.getOriSize("WWW").width+4),t.title&&t.title.text!=o&&(m=t.title.style,pe.setStyle(m),Zt=pe.getOriSize("W").height,t.title.rotation=0,Yt=(p=pe.getSmartText(t.title.text,r,a)).height),de!=parseInt(Ut.chartleftmargin,10)&&(ht=!0),ue!=parseInt(Ut.chartrightmargin,10)&&(dt=!0),void 0!==Ut.canvaspadding&&""!==Ut.canvaspadding&&(Be=!0),ut=r-s,se){case"none":ee=ne=!0,le&&(Gt=me?300:270,b=Xt,Xt=v,v=b);break;case"rotate":Gt=me?300:270,b=Xt,Xt=v,v=b,ee=!0;break;case"stagger":ie=ee=!0,(y=P((a-Zt)/Xt))<Oe&&(Oe=y);break;default:le&&(Gt=me?300:270,b=Xt,Xt=v,v=b)}if(qt.isBar&&(ee=!0),pt=0,ft=t.plotLines,typeof i._FCconf.isXYPlot!==it||qt.isBar){for(C={},I=D=0,B=R=null,U={},Re=!0,ve=r/(t.max-t.min),Tt=function(e,n,r){var a,s,l,c,h,u;if(u=e.plotObj,(h=e.labelTextWidth)||((g=u.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),h=pe.getOriSize(g.text).width+4,e.oriWidth=h,h>S&&(h=S),e.labelTextWidth=h,e.leftEdge=u.value*ve-h/2,e.rightEdge=u.value*ve+h/2,r&&(h=T(h,2*(d.value-t.min)*ve+i.chart.marginLeft),e.labelTextWidth=h)),typeof n!==it){if(r=n.plotObj,(g=r.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),n.oriWidth?l=n.oriWidth:(l=pe.getOriSize(g.text).width+4,n.oriWidth=l),l>S&&(l=S),n.labelTextWidth=l,n.leftEdge=r.value*ve-l/2,n.rightEdge=r.value*ve+l/2,s=(a=u.value*ve)+h/2,(l=(c=r.value*ve)-l/2)<s){if(!(a+v<c-v))return n.labelTextWidth=0,r.label.text=o,!1;s-=l,a=c-a,e.labelTextWidth=s>a?T(h,a):L(v,h-s/2),n.labelTextWidth=2*(a-e.labelTextWidth/2),e.leftEdge=u.value*ve-e.labelTextWidth/2,e.rightEdge=u.value*ve+e.labelTextWidth/2,n.leftEdge=r.value*ve-n.labelTextWidth/2,n.rightEdge=r.value*ve+n.labelTextWidth/2}}else r&&(h=T(h,2*(t.max-d.value)*ve+i.chart.marginRight),e.labelTextWidth=h,e.leftEdge=u.value*ve-h/2,e.rightEdge=u.value*ve+h/2);return e.nextCat=n,!0},ie?Oe>bt?Oe=bt:2>Oe&&(Oe=2):Oe=1,Ct=ft.length;pt<Ct;pt+=1)(d=ft[pt])&&d.label&&typeof d.label.text!==it&&(d.isGrid?(A={plotObj:d},d.isCat&&(C[F=pt%Oe]||(C[F]=[]),R?(B=A,C[F].push(B)):(B=R=A,C[F].push(R))),Le.push(A)):d.isTrend&&De.push({plotObj:d}));for(pt=0,Ct=(gt=t.plotBands).length;pt<Ct;pt+=1)(d=gt[pt])&&d.isTrend&&d.label&&typeof d.label.text!==it&&De.push({plotObj:d});if(Le.length)if(ne||Gt){if(Gt)for(pt=0,Ct=Le.length;pt<Ct;pt+=1)if((d=Le[pt].plotObj)&&d.label&&d.label.text){if((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),pt+(u=1)<Ct)for(Mt=Le[u+pt].plotObj;Mt&&(Mt.value-d.value)*ve<v;)if(d.isCat){if(Mt.label){if(Mt.label.text=o,(u+=1)+pt>=Ct-1)break;Mt=ft[u+pt].plotObj}}else if(Mt.isCat){d.label.text=o,pt+=u-1,(g=(d=Mt).label).style&&g.style!==m&&(m=g.style,pe.setStyle(m));break}xe=L(xe,pe.getOriSize(g.text).width+4)}}else if(qt.distributedColumns)for(pt=0,Ct=Le.length;pt<Ct;pt+=1)W=Le[pt],z=pt%Oe,(d=W.plotObj).label&&d.isCat&&(0<=pt-Oe?tt=(j=Le[pt-Oe]).plotObj.value*ve+j.plotObj._weight*ve/2:(j=null,tt=t.min*ve-de),pt+Oe<Ct?et=(N=Le[pt+Oe]).plotObj.value*ve-N.plotObj._weight*ve/2:(N=null,et=t.max*ve+ue),(g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),It=($=d.value*ve)-d._weight*ve/2,Pt=$+d._weight*ve/2,1<Oe?nt=Pt-It+T(K=It-tt,Z=Pt+et):nt=Pt-It,
31(g=d.label).style&&g.style!==m&&pe.setStyle(g.style),nt<v&&v<pe.getOriSize(g.text).width?(d.label.text=o,W.labelTextWidth=0):(W.labelTextWidth=nt,nt=(l=pe.getSmartText(g.text,nt-4,a,ee)).width+4,W.labelTextWidth=nt,we=L(we,l.height)));else{for(u in bt=Le.length,(mt=(Le[vt=Le.length-1].plotObj.value-Le[0].plotObj.value)*ve)?(S=.1*mt,k=L(.2*mt,mt/bt)):k=S=r,C)for(pt=0,
31V=C[u].length;pt<V;){for(M=pt+1;!Tt(C[u][pt],C[u][M]);)M+=1;pt=M}if(R&&(I=(R.plotObj.value-t.min)*ve+de-R.labelTextWidth/2),d=Le[0].plotObj,R&&d===R.plotObj||((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),w=pe.getOriSize(g.text).width+4,$=(d.value-t.min)*ve+de,R&&(w=(rt=I-$)<w&&rt>v/2?2*rt:0),Le[0].labelTextWidth=w,0<w&&(b=$-w/2),b<I&&(I=b)),B&&(w=B.labelTextWidth,D=(t.max-B.plotObj.value)*ve+ue-w/2),d=Le[vt].plotObj,B&&d===B.plotObj||((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),w=pe.getOriSize(g.text).width+4,$=(t.max-d.value)*ve+ue,B&&(w=(rt=$-D)<w&&rt>v/2?2*rt:0),Le[vt].labelTextWidth=w,0<w&&(b=$-w/2),b<D&&(D=b)),0<(_t=(Ee=0>I?-I:0)+(Pe=0>D?-D:0)))for(u in ut>_t?(H=(H=Pe*r/(Pe+r))?H+4:0,i.chart.marginRight+=H,H=(H=Ee*(r-=H)/(Ee+r))?H+4:0,i.chart.marginLeft+=H,ve=(r-=H)/(t.max-t.min)):Ee<Pe?ut>=Pe&&dt?(H=(H=Pe*r/(Pe+r))?H+4:0,i.chart.marginRight+=H,ve=(r-=H)/(t.max-t.min)):ht&&(H=(H=Ee*r/(Ee+r))?H+4:0,i.chart.marginLeft+=H,ve=(r-=H)/(t.max-t.min)):ut>=Ee&&ht?(H=(H=Ee*r/(Ee+r))?H+4:0,i.chart.marginLeft+=H,ve=(r-=H)/(t.max-t.min)):dt&&(H=(H=Pe*r/(Pe+r))?H+4:0,i.chart.marginRight+=H,ve=(r-=H)/(t.max-t.min)),ue=i.chart.marginRight,de=i.chart.marginLeft,mt=(Le[vt].plotObj.value-Le[0].plotObj.value)*ve,S=.1*mt,k=L(.2*mt,mt/bt),C){for(pt=0,V=C[u].length;pt<V;){for(M=pt+1;!Tt(C[u][pt],C[u][M],!0);)M+=1;pt=M}u+=1}for(pt=0,Ct=Le.length;pt<Ct;pt+=1)if(W=Le[pt],z=pt%Oe,(d=W.plotObj).label)if(d.isCat)W.labelTextWidth&&(U[z]=W);else{if(N=(j=U[z])?j.nextCat:C[z]?C[z][0]:null,J=null,pt>=Oe)for(J=Le[Te=pt-Oe];!J.labelTextWidth;){if(!(Te>=Oe)){J=null;break}J=Le[Te-=Oe]}if(tt=J?J.rightEdge:t.min*ve-de,et=N?N.leftEdge:t.max*ve+ue,(g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),w=pe.getOriSize(g.text).width+4,ct=d.value*ve-w/2,qt.isBar&&pt==Ct-1&&J)tt>ct&&(J.plotObj.label.text=o,J.labelTextWidth=0,tt=J.leftEdge);else if(tt>ct||et<ct+w){d.label.text=o,W.labelTextWidth=0;continue}tt=L(tt,ct),$=d.value*ve,(nt=2*T($-tt,et-$)).toFixed&&(nt=nt.toFixed(2)),(g=d.label).style&&g.style!==m&&pe.setStyle(g.style),nt<v&&v<pe.getOriSize(g.text).width?(d.label.text=o,W.labelTextWidth=0):(W.labelTextWidth=nt,nt=(l=pe.getSmartText(g.text,nt-4,a,ee)).width+4,W.labelTextWidth=nt,W.leftEdge=$-nt/2,W.rightEdge=$+nt/2,we=L(we,l.height))}for(J=Q=null,pt=0,Ct=Le.length;pt<Ct;pt+=1)if(W=Le[pt],z=pt%Oe,(d=W.plotObj).isCat&&W.labelTextWidth){if(J=Q=null,$=d.value*ve,pt>=Oe)for(J=Le[Te=pt-Oe];!J.labelTextWidth;){if(!(Te>Oe)){J=null;break}J=Le[Te-=Oe]}if(K=J?$-J.rightEdge:$-t.min*ve+i.chart.marginLeft,pt+Oe<Ct)for(Q=Le[Ae=pt+Oe];!Q.labelTextWidth;){if(!(Ae+Oe<Ct-1)){Q=null;break}Q=Le[Ae+=Oe]}Z=Q?Q.leftEdge-$:t.max*ve+i.chart.marginRight-$,(nt=2*T(K,Z))>k&&(nt=k),nt>W.oriWidth&&(nt=W.oriWidth),W.labelTextWidth=nt,(g=d.label).style&&g.style!==m&&pe.setStyle(g.style),l=pe.getSmartText(g.text,nt-4,a,ee),W.labelTextWidth=l.width+4,we=L(we,l.height),W.rightEdge=$+W.labelTextWidth/2}}for(u=0,Ct=De.length;u<Ct;u+=1)(d=De[u].plotObj)&&d.label&&void 0!==c(d.label.text)&&((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),l=pe.getOriSize(g.text),g.verticalAlign===G?be=L(be,l.height):ye=L(ye,l.height))}else{for(Ct=ft.length;pt<Ct;pt+=1)(d=ft[pt])&&(d.isGrid?Le.push(d):d.isTrend&&De.push(d));for(pt=0,Ct=(gt=t.plotBands).length;pt<Ct;pt+=1)(d=gt[pt])&&De.push(d);if(vt=Le.length-1,bt=Le.length,ie&&(Oe>bt?Oe=bt:2>Oe&&(Oe=2)),bt)for(t.scroll&&t.scroll.viewPortMin&&t.scroll.viewPortMax?(st=t.scroll.viewPortMin,lt=t.scroll.viewPortMax,dt=ht=!1):(st=t.min,lt=t.max),yt=Lt=(mt=(Le[vt].value-Le[0].value)*ve)/(ge-1),xt=(Le[0].value-st)*ve,wt=(lt-Le[vt].value)*ve,"auto"===se?yt<_&&(Gt=me?300:270,b=Xt,Xt=v,v=b,ee=!0):"stagger"===se&&(yt*=Oe),"line"!==this.defaultSeriesType&&("area"===this.defaultSeriesType?qt.drawFullAreaBorder&&(fe>xt&&(st=t.min-=fe/(2*ve),xt+=(Le[0].value-st)*ve),fe>wt&&(wt+=((lt=t.max+=fe/(2*ve))-Le[vt].value)*ve)):(fe>xt&&(st=t.min-=fe/(2*ve),xt+=(Le[0].value-st)*ve),fe>wt&&(wt+=((lt=t.max+=fe/(2*ve))-Le[vt].value)*ve))),v<oe&&(v=oe),Jt=ie||ne?L(1,re):L(1,re,E(v/yt)),qt.x&&(qt.x.stepValue=Jt),yt*=Jt,x=2*(xt+de),(g=ft[0].label)&&g.text&&(g.style&&pe.setStyle(g.style),(w=T(yt,270===Gt?pe.getOriSize(g.text).height+4:pe.getOriSize(g.text).width+4))>x&&(ne||(Ee=(w-x)/2),ht||(Be&&(Ee=0),St=(mt-(At=(yt-=Ee/(ge-1))*(ge-1)))/(ve=yt),lt=t.max+=St,st=t.min-=St,Ee=0,mt=At,xt=(Le[0].value-st)*ve,wt=(lt-Le[vt].value)*ve))),x=2*(wt+ue),(g=ft[vt].label)&&g.text&&(g.style&&pe.setStyle(g.style),(w=T(yt,270===Gt?pe.getOriSize(g.text).height+4:pe.getOriSize(g.text).width+4))>x&&(ne||(Pe=(w-x)/2),dt||(Be&&(Pe=0),St=(mt-(At=(yt-=Pe/(ge-1))*(ge-1)))/(ve=yt),Pe=0,mt=At,xt=(Le[0].value-st)*ve,wt=(lt-Le[vt].value)*ve))),0<(_t=Ee+Pe)&&(ut>_t?(H=(H=Pe*r/(Pe+r))?H+4:0,i.chart.marginRight+=H,H=(H=Ee*(r-=H)/(Ee+r))?H+4:0,i.chart.marginLeft+=H,ve=(r-=H)/(t.max-t.min)):Ee<Pe?ut>=Pe&&dt?(H=(H=Pe*r/(Pe+r))?H+4:0,i.chart.marginRight+=H,ve=(r-=H)/(t.max-t.min)):ht&&(H=(H=Ee*r/(Ee+r))?H+4:0,i.chart.marginLeft+=H,ve=(r-=H)/(t.max-t.min)):ut>=Ee&&ht?(H=(H=Ee*r/(Ee+r))?H+4:0,i.chart.marginLeft+=H,ve=(r-=H)/(t.max-t.min)):dt&&(H=(H=Pe*r/(Pe+r))?H+4:0,i.chart.marginRight+=H,ve=(r-=H)/(t.max-t.min)),yt=(mt=(Le[vt].value-Le[0].value)*ve)/(ge-1),ie&&(yt*=Oe),Jt=ie||ne?L(1,re):L(1,re,E(Gt?Xt/yt:v/yt)),qt.x&&(qt.x.stepValue=Jt),yt*=Jt),u=0;u<bt;u+=1){if(d=Le[u],u%Jt&&d.label){if(d.stepped=!0,d.label.style=t.steppedLabels.style,!ke)continue}else d.stepped=!1;d&&d.label&&void 0!==c(d.label.text)&&((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),Gt&&ne?(l=pe.getOriSize(g.text),xe=L(xe,l.width+4),we=L(we,l.height)):ne||(l=Gt||ie?pe.getOriSize(g.text):pe.getSmartText(g.text,yt-4,a,ee),xe=L(xe,l.width+4),we=L(we,l.height)))}for(u=0,Ct=De.length;u<Ct;u+=1)(d=De[u])&&d.label&&void 0!==c(d.label.text)&&((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),l=pe.getOriSize(g.text),g.verticalAlign===G?be=L(be,l.height):ye=L(ye,l.height));t.scroll&&t.scroll.enabled&&!Gt&&!ne&&(St=xe/2,i.chart.marginLeft<St&&(ut>(kt=St-i.chart.marginLeft)&&(r-=kt,ut-=kt,i.chart.marginLeft+=kt)),i.chart.marginRight<St&&(ut>(kt=St-i.chart.marginRight)&&(r-=kt,ut-=kt,i.chart.marginRight+=kt)))}if(ne?(Me=Xt,Gt&&(Me=xe)):Me=Gt?xe:ie?Oe*we:we,0<Me&&(Me+ce>ae&&(Me=ae-ce,Oe=Math.floor(Me/we)),Fe+=ce+Me),0<Yt&&(Fe+=Yt+Ie),ot=ce-4,b=0,(at=ye+Fe+2)>a&&(Ie>
31(rt=at-a)?(Ie-=rt,rt=0):(rt-=Ie,Ie=0,ot>rt?(ot-=rt,rt=0):(rt-=ot,ot=0),ce=ot+4),ye>rt?(ye-=rt,rt=0):(0<ye&&(rt-=ye,ye=0),0<rt&&(be>rt?(be-=rt,rt=0):(0<be&&(rt-=be,be=0),0<rt&&((b=Yt-Zt)>rt?(Yt-=rt,rt=0):(Yt=Zt,0<(rt-=b)&&((b=Me-Xt)>rt?(Me-=rt,rt=0):(Me=Xt,0<(rt-=b)&&(rt-=Yt+Ie,Yt=0,0<rt&&(rt-=Me,Me=0,0<rt&&(ce-=rt))))))))))),Ft=Me+(ce+=he),jt=Ot=qt.is3d?-i.chart.xDepth:0,$t=.5*Xt,Kt=Xt+ce,Ct=Le.length,Qt=0,Re)if(Gt)for(Wt=Y,Rt=me?ce+8:ce+4,Ct=Le.length,u=0;u<Ct;u+=1)(d=Le[u].plotObj)&&d.label&&void 0!==c(d.label.text)&&((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),pt=1,l=pe.getSmartText(g.text,Me-4,v,ee),g.text=l.text,l.tooltext&&(g.originalText=l.tooltext),jt=Ot+$t/2,g.y=Rt,g.x=jt,g.rotation=Gt,g.textAlign=Wt,Qt+=1);else for(Bt=Me,Wt=q,Rt=Kt,u=0;u<Ct;u+=Jt)d=Le[u].plotObj,Xt=parseInt(d.label.style.lineHeight,10),d&&d.label&&void 0!==c(d.label.text)&&((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),ne||(l=pe.getSmartText(g.text,Le[u].labelTextWidth-4,Bt,ee),g.text=l.text,l.tooltext&&(g.originalText=l.tooltext),ie&&(Rt=Kt+Qt%Oe*Xt)),g.y=Rt,g.x=jt,g.rotation=Gt,g.textAlign=Wt,Qt+=1);else{for(Gt?(Bt=yt,Nt=Me-4,Wt=Y,Rt=me?ce+8:ce+4):ie?(Nt=yt-4,Wt=q):(Bt=Me,Nt=yt-4,Wt=q,Rt=Kt),u=0;u<Ct;u+=Jt)d=Le[u],$t=.5*(Xt=E(parseFloat(d.label.style.lineHeight))),Kt=Xt+ce,d&&d.label&&void 0!==c(d.label.text)&&((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),ne||(ie&&(Bt=Xt),Dt=de+(u-st)*Lt-i.chart.spacingLeft,Et=300===Gt?T(O(2.999*Dt*Dt+Dt*Dt)-ce,Nt):Nt,l=pe.getSmartText(g.text,Et,Bt,ee),Ne=L(Ne,Gt?l.width:l.height),g.text=l.text,l.tooltext&&(g.originalText=l.tooltext),ie&&(Rt=Kt+Qt%Oe*Xt)),Gt?jt=Ot+.5*Xt:ie||(Rt=Xt+ce),g.y=Rt,g.x=jt,g.rotation=Gt,g.textAlign=Wt,Qt+=1);300===Gt&&(Ft=(Me=Ne)+ce),e._labelY=Kt,e._labelX=Ot,e._yShipment=Rt,e._isStagger=ie,e._rotation=Gt,e._textAlign=Wt,e._adjustedPx=$t,e._staggerLines=Oe,e._labelHeight=Xt,e._canvasWidth=r,e._minCanvasWidth=s,e._availableHeight=a}for(Ct=De.length,u=Ht=Vt=0;u<Ct;u+=1)(d=De[u].plotObj?De[u].plotObj:De[u])&&d.label&&void 0!==c(d.label.text)&&((g=d.label).style&&g.style!==m&&(m=g.style,pe.setStyle(m)),g.verticalAlign===G?(l=pe.getSmartText(g.text,r,be,!0),Ht=L(Ht,l.height),g.text=l.text,l.tooltext&&(g.originalText=l.tooltext),g.y=Ft+pe.getOriSize(g.text).height,g.x=jt):(l=pe.getSmartText(g.text,r,ye,!0),Vt=L(Vt,l.height),g.text=l.text,l.tooltext&&(g.originalText=l.tooltext),g.y=-(ye-pe.getOriSize("W").height+ce+2)));if(0<Yt&&(pe.setStyle(t.title.style),p=pe.getSmartText(t.title.text,r,Yt),t.title.text=p.text,p.tooltext&&(t.title.originalText=p.tooltext),t.title.margin=Ft+Ht+Ie),Fe=Ht,0<Me&&(qt.horizontalAxisHeight=ce+Me-he,Fe+=qt.horizontalAxisHeight),0<Yt&&(Fe+=te=Yt+Ie),Fe=Fe||ce-he,i.chart.marginBottom+=Fe,0<Vt&&(i.chart.marginTop+=Vt,Fe+=Vt),t.opposite)for(t.title.margin-=Me-(p&&p.height||0)+ce,Fe-=te,i.chart.marginTop+=Fe,i.chart.marginBottom-=Fe,i.xAxis.opposite=1,Ct=ft.length,pt=0;pt<Ct;pt+=1)(d=ft[pt])&&d.isGrid&&(g=d.label)&&void 0!==g.text&&(g.textAlign=X,g.y-=Rt+ce+4);return Fe},Nt=e.configureLegendOptions=function(t,e,i,n,r){n=t.legend;var a,s=t.chart,c=s.is3D?Dt.chart3D:Dt.chart2D,u=s.useRoundEdges,f=h(e.legendiconscale,1),g=(parseInt(n.itemStyle.fontSize,10)||10)+1,m=this.colorManager;(0>=f||5<f)&&(f=1),n.padding=4,0>=g&&(g=1),a=3*f,0>
31=(g=T(g*f,r-8))&&(a=g=0),n.symbolWidth=g,n.symbolPadding=a,n.textPadding=4,n.legendHeight=r=g+2*a,n.rowHeight=L(parseInt(n.itemStyle.lineHeight,10)||12,r),i?(n.align=Y,n.verticalAlign="middle",n.layout="vertical"):n.x=(s.marginLeft-s.spacingLeft-s.marginRight+s.spacingRight)/2,i=l(e.legendbordercolor,m.getColor(c.legendBorderColor)),r=h(e.legendborderalpha,100),s=h(e.legendbgalpha,100),n.backgroundColor=W(l(e.legendbgcolor,m.getColor(c.legendBgColor)),s),n.borderColor=W(i,r),n.borderWidth=h(e.legendborderthickness,!u||e.legendbordercolor?1:0),n.shadow=Boolean(h(e.legendshadow,1)),n.symbol3DLighting=Boolean(h(e.use3dlighting,e.useplotgradientcolor,1)),n.shadow&&(n.shadow={enabled:n.shadow,opacity:L(r,s)/100}),n.reversed=Boolean(h(e.reverselegend,0)-h(this.reverseLegend,0)),n.style={padding:4},Boolean(h(e.interactivelegend,1))?n.symbolStyle={_cursor:"hand",cursor:"pointer"}:(t.legend.interactiveLegend=!1,n.itemStyle.cursor="default",n.itemHoverStyle={cursor:"inherit"}),n.borderRadius=h(e.legendborderradius,u?3:0),n.legendAllowDrag=Boolean(h(e.legendallowdrag,0)),n.title.text=p(d(e.legendcaption,o)),n.legendScrollBgColor=B(l(e.legendscrollbgcolor,e.scrollcolor,m.getColor("altHGridColor"))),n.legendScrollBarColor=l(e.legendscrollbarcolor,i),n.legendScrollBtnColor=l(e.legendscrollbtncolor,i)},jt=e.placeLegendBlockRight=function(t,e,i,n,r){this.configureLegendOptions(t,e.chart,!0,r,i);var a,s,l=this.snapLiterals||(this.snapLiterals={}),c=0,d=t.series,u=t[f],p=this.smartLabel||u.smartLabel,g=t.chart.spacingRight,m=t.legend,v=m.textPadding,b=m.title.padding,y=m.symbolWidth,x=m.symbolPadding,w=y+2*x,_=2*n,C=0,S=h(e.chart.legendpadding,7);e=S+m.borderWidth/2+h(e.chart.canvasborderthickness,1);var k=2*m.padding,A=k,D=!1,E=[];if(i-=k+S,r&&(d=d&&d[0]&&d[0].data),typeof d===it||typeof d.length===it)return 0;for(r=d.length,c=0;c<r;c+=1)(a=d[c])&&!1!==a.showInLegend&&(a.__i=c,E.push(a));for(E.sort((function(t,e){return t.legendIndex-e.legendIndex||t.__i-e.__i})),r=E.length,0>(s=i-w-S-v)&&(s=0),p.setStyle(m.itemStyle),m.reversed&&E.reverse(),c=0;c<r;c+=1)D=!0,(a=E[c])._legendX=0,a._legendY=A,0===s?(A+=a._legendH=w,a.name=o,a._totalWidth=y+x):(d=p.getSmartText(a.name,s,_),a.name=d.text,d.tooltext&&(a.originalText=d.tooltext),d.height<w&&(a._legendTestY=(w-d.height)/2),a._totalWidth=y+x+v+d.width+S,A+=a._legendH=L(d.height,w),C=L(d.width,C));return D?(m.itemWidth=C+w+S+v,m.width=m.itemWidth+k,m.title.text!==o&&(p.setStyle(m.title.style),d=p.getSmartText(m.title.text,i,_),m.title.text=d.text,d.tooltext&&(m.title.originalText=d.tooltext),c=d.width+k,m.width<c&&(m.initialItemX=(c-m.width)/2,m.width=c),m.initialItemY=d.height+b,A+=m.initialItemY),m.height=m.totalHeight=A,m.height>n&&(m.height=n,m.scroll.enabled=!0,m.scroll.flatScrollBars=u.flatScrollBars,m.scroll.scrollBar3DLighting=u.scrollBar3DLighting,m.width+=(m.scroll.scrollBarWidth=10)+(m.scroll.scrollBarPadding=2)),l.legendstartx=u.width-g-m.width,l.legendwidth=m.width,l.legendendx=l.legendstartx+l.legendwidth,l.legendheight=m.height,e=T(m.width+e,i),t.chart.marginRight+=e+S,e):(m.enabled=!1,0)},$t=e.placeLegendBlockBottom=function(t,e,i,n,r){this.configureLegendOptions(t,e.chart,!1,r,i);var a,s,l,c=this.snapLiterals||(this.snapLiterals={}),d=0,u=t.series,g=t[f],m=g.smartLabel||this.smartLabel,v=(s=t.chart).spacingBottom,b=s.spacingLeft,y=s.spacingRight,x=(d=s.spacingTop,(s=t.legend).textPadding);a=s.title.padding;var w,_=s.symbolWidth,C=s.symbolPadding,S=s.legendHeight,k=e.chart;w=0;var A=2*n,D=s.rowHeight,I=.05*D,M=[];l=h(k.minimisewrappinginlegend,0);var O=h(parseInt(k.legendnumcolumns,10),0),F=0,R=0,B=0,N=0,j=0,$=0,V=0,H=2*(W=s.padding),W=x+C+W;e=h(e.chart.legendpadding,7)+s.borderWidth/2+1;var z,q,U=H,G=!1,Y=[],X=!1,J=0,K=0,Z=(k=h(parseInt(k.alignlegendwithcanvas,10),1),i);q=t.yAxis&&t.yAxis[0].title;var Q,tt=t.yAxis&&t.yAxis[1].title;N=this.origRenderWidth;if(t.chart.isBar?(Q=t.xAxis.title._actualHeight,z=t.xAxis.title._actualWidth):(q||tt)&&(Q=h(q._actualHeight,0)>h(tt._actualHeight,0)?(z=q._actualWidth)&&q._actualHeight:(z=tt._actualWidth)&&tt._actualHeight),0>O&&(O=0),i-=H,m.setStyle(s.itemStyle),q=m.getOriSize(ft).height,e=T(e,n-q-8),(i=k?i:N-(Q+d>this.origRenderHeight-n?2*z+y+b:y+b))<.3*N&&(i=.3*N),r&&(u=u&&u[0]&&u[0].data),typeof u===it||typeof u.length===it)return 0;for(r=u.length,d=0;d<r;d+=1)(z=u[d])&&!1!==z.showInLegend&&(z.__i=d,Y.push(z));for(Y.sort((function(t,e){return t.legendIndex-e.legendIndex||t.__i-e.__i})),r=Y.length,m.setStyle(s.itemStyle),d=0;d<r;d+=1)G=!0,Y[d].name=p(Y[d].name),u=m.getOriSize(Y[d].name),F=L(F,u.width),$=L($,T(u.height,A)),R+=u.width,B+=1;if(N=R/B,R+=(S=S+I+x+C+H)*B,s.x=!k&&R>Z?0:s.x,G){for(N+=S,F+=S,0<O&&B<O&&(O=B),R<=i&&(0>=O||O===B)?(O=B,j=N=R/B,X=!0,$>D&&(V=($-D)/2,D=$)):0<O&&(j=i/O)>N?j>F&&(j=F):i>F&&(l||1.5*N>F)?(B<(O=P(i/F))&&(O=B),j=F):i>=2*N?(B<(O=P(i/N))&&(O=B),(j=P(i/O))>F&&(j=F)):(O=1,j=i),s.itemWidth=j,0>(l=E(j-S))&&(C=l=x=0),s.symbolPadding=C,s.textPadding=x,s.width=j*O-I,s.title.text!==o&&(m.setStyle(s.title.style),u=m.getSmartText(s.title.text,i,A),s.title.text=u.text,u.tooltext&&(s.title.originalText=u.tooltext),w=u.width+H,s.width<w&&(s.initialItemX=(w-s.width)/2,s.width=w),s.initialItemY=w=u.he
31ight+a),m.setStyle(s.itemStyle),s.reversed&&Y.reverse(),d=0;d<r;d+=1){if(a=Y[d],0===l&&(M[J]=!0,a.name=o,x=1,I=parseInt(J/O,10),F=J%O,a._legendX=F*j,a._legendY=I*D+H,a._legendH=x*D,a._totalWidth=_+C),X)(u=m.getOriSize(a.name)).height<D&&(a._legendTestY=(D-u.height)/2),a._markerYGutter=V,a._legendX=K,a._legendY=H,a._legendH=D,a._totalWidth=_+W+u.width,K+=u.width+S;else{for(u=m.getSmartText(a.name,l,A),a.name=u.text,u.tooltext&&(a.originalText=u.tooltext);!0===M[J];)J+=1;for(I=u.height/D,F=J,x=0;x<I;x+=1,F+=O)M[F]=!0;u.height<D&&(a._legendTestY=(D-u.height)/2),I=parseInt(J/O,10),F=J%O,a._legendX=F*j,a._legendY=I*D+H,a._legendH=x*D,a._totalWidth=_+W+u.width}J+=1}return m=X?1:E(M.length/O),s.height=s.totalHeight=U+(m*D+w),s.rowHeight=D,s.legendNumColumns=O,s.height>n&&(s.height=n,s.scroll.enabled=!0,s.scroll.flatScrollBars=g.flatScrollBars,s.scroll.scrollBar3DLighting=g.scrollBar3DLighting,s.width=s.width+12>i?s.width:s.width+12),c.legendstartx=b+.5*(g.width-b-y-s.width)+(s.x||0),c.legendwidth=s.width,c.legendendx=c.legendstartx+c.legendwidth,c.legendstarty=g.height-v-s.height,c.legendheight=s.height,c.legendendy=c.legendstarty+c.legendheight,e+=s.height,t.chart.marginBottom+=e,e}return s.enabled=!1,0},Vt=function(t,e){return t.value-e.value},Ht=function(t,e,i){var n=e._originalText;t=t[f].smartLabel,e.text=e.rotation?t.getSmartText(n,i,e._actualWidth).text:t.getSmartText(n,e._actualWidth,i).text,e.centerYAxisName=!0},Wt=e.adjustVerticalAxisTitle=function(t,e,i){if(e&&e.text){var n=e.text,r=t[f].smartLabel,o=2*T(t.chart.marginTop,t.chart.marginBottom)+i,a=i+t.chart.marginTop+t.chart.marginBottom;e.style&&r.setStyle(e.style),n=r.getOriSize(n),void 0===e.centerYAxisName&&(e.centerYAxisName=!0),e.rotation?n.width>o&&(e.y=a/2-(i/2+t.chart.marginTop),e.centerYAxisName=!1):n.height>o&&(e.y=(a/2-(i/2+t.chart.marginTop))/2,e.centerYAxisName=!1)}},zt=e.adjustVerticalCanvasMargin=function(t,e,i,n){var r=e.chart,o=e=0,a=0,s=h(r.canvastopmargin,0),l=s/(s+(r=h(r.canvasbottommargin,0))),c=t.chart.marginTop,d=t.chart.marginBottom;return r>d&&(e+=r-d),s>c&&(e+=s-c),e>i?s>c&&r>d?(o=i*l,a=i*(1-l)):s>c?o=i:a=i:0<e&&(r>d&&(a=r-d),s>c&&(o=s-c)),o&&(t.chart.marginTop+=o),a&&(t.chart.marginBottom+=a,n&&n.title&&(n.title.margin+=a)),o+a},qt=e.adjustHorizontalCanvasMargin=function(t,e,i,n,r){var o=e.chart,a=(e=h(o.canvasleftmargin,0))/(e+(o=h(o.canvasrightmargin,0))),s=0,l=t.chart.marginLeft,c=t.chart.marginRight,d=0,u=0;return e>l&&(s+=e-l),o>c&&(s+=o-c),s>i?e>l&&o>c?(d=i*a,u=i*(1-a)):o>c?u=i:d=i:0<s&&(e>l&&(d=e-l),o>c&&(u=o-c)),d&&(t.chart.marginLeft+=d,n&&n.title&&(n.title.margin+=d)),u&&(t.chart.marginRight+=u,r&&r.title&&(r.title.margin+=u)),u+d},Ut=function(t,e){return t-e},Gt=e.getDataParser={column:function(t,e,i){var n=t[f],r=e.borderWidth;return function(o,a,s){var c=e.plotgradientcolor,d=e.is3d,u=e.isRoundEdges,p=e.plotBorderColor,f=l(o.color,e.color),g=l(o.ratio,e.ratio),v=$(e.plotBorderAlpha),b=h(o.dashed,e.dashed),y=l(o.dashlen,e.dashLen),x=l(o.dashgap,e.dashGap),w=e.use3DLighting,_=$(l(o.alpha,e.alpha)).toString(),C={opacity:_/100},S=e.isBar,k=e.fillAangle,A=0>s?S?180-k:360-k:k,T=(k=R(f+et+c,_,g,A,u,p,l(o.alpha,v).toString(),S,d),b?m(y,x,r):"none");return a=i.getPointStub(o,s,n.oriCatTmp[a],t,e,e.showValues,e.yAxis),o=i.pointHoverOptions(o,e,{plotType:"column",is3d:d,isBar:S,use3DLighting:w,isRoundEdged:u,color:f,gradientColor:c,alpha:_,ratio:g,angle:A,borderWidth:r,borderColor:p,borderAlpha:v,borderDashed:b,borderDashGap:x,borderDashLen:y,shadow:C}),a.y=s,a.isRoundEdges=u,a.shadow=C,a.color=k[0],a.borderColor=k[1],a.borderWidth=r,a.use3DLighting=w,a.dashStyle=T,a.tooltipConstraint=i.tooltipConstraint,a.hoverEffects=o.enabled&&o.options,a.rolloverProperties=o.enabled&&o.rolloverOptions,a}},line:function(t,e,i){var n=t[f];return function(r,o,a){var s=h(r.alpha,e.lineAlpha),c={opacity:s/100},d=h(r.anchorsides,e.anchorSides,0),u=h(r.anchorborderthickness,e.anchorBorderThickness,1),p=B(l(r.anchorbordercolor,e.anchorBorderColor)),f=B(l(r.anchorbgcolor,e.anchorBgColor)),g=h(r.anchorstartangle,e.anchorStartAngle,90),v=l(r.anchoralpha,e.anchorAlpha),b=l(r.anchorbgalpha,v),y=h(r.anchorradius,e.anchorRadius),x=Boolean(h(r.anchorshadow,e.anchorShadow,
310));o=i.getPointStub(r,a,n.oriCatTmp[o],t,e,e.showValues,e.yAxis);var w=l(r.anchorimageurl,e.imageUrl),_=l(r.anchorimagescale,e.imageScale),C=l(r.anchorimagealpha,e.imageAlpha),S=h(r.anchorimagepadding,e.imagePadding,1),k=h(r.anchorradius,e.isAnchorRadius),A=h(r.hoverradius,r.anchorhoverradius,e.isAnchorHoverRadius);return o.y=a,o.shadow=c,o.anchorShadow=e.anchorShadow,o.dashStyle=h(r.dashed,e.lineDashed)?m(e.lineDashLen,e.lineDashGap,e.lineThickness):"none",o.color={FCcolor:{color:B(l(r.color,e.lineColor)),alpha:s}},o.valuePosition=l(r.valueposition,e.valuePosition),a=i.pointHoverOptions(r,e,{plotType:"anchor",anchorBgColor:f,anchorAlpha:v,anchorBgAlpha:b,anchorAngle:g,anchorBorderThickness:u,anchorBorderColor:p,anchorBorderAlpha:v,anchorSides:d,anchorRadius:y,imageUrl:w,imageScale:_,imageAlpha:C,imagePadding:S,shadow:c}),o.marker={enabled:void 0===e.drawAnchors?0!==s:!!e.drawAnchors,shadow:x&&{opacity:v/100},fillColor:{FCcolor:{color:B(l(r.anchorbgcolor,e.anchorBgColor)),alpha:(l(r.anchorbgalpha,e.anchorBgAlpha)*v/100).toString()}},lineColor:{FCcolor:{color:B(l(r.anchorbordercolor,e.anchorBorderColor)),alpha:v}},imageUrl:w,imageScale:_,imageAlpha:C,imagePadding:S,isAnchorRadius:k,isAnchorHoverRadius:A,lineWidth:h(r.anchorborderthickness,e.anchorBorderThickness),radius:h(r.anchorradius,e.anchorRadius),symbol:Z(h(r.anchorsides,e.anchorSides)),startAngle:l(r.anchorstartangle,e.anchorAngle)},o.hoverEffects=a.enabled&&a.options,o.rolloverProperties=a.enabled&&a.rolloverOptions,o}},area:function(t,e,i){var n=t[f];return function(r,o,a){var s=l(r.alpha,e.fillAlpha),c={opacity:L(s,e.lineAlpha)/100,inverted:!0},d=h(r.anchorsides,e.anchorSides,0),u=h(r.anchorborderthickness,e.anchorBorderThickness,1),p=B(l(r.anchorbordercolor,e.anchorBorderColor)),f=B(l(r.anchorbgcolor,e.anchorBgColor)),g=h(r.anchorstartangle,e.anchorStartAngle,90),m=l(r.anchoralpha,e.anchorAlpha),v=l(r.anchorbgalpha,m),b=h(r.anchorradius,e.anchorRadius),y=Boolean(h(r.anchorshadow,e.anchorShadow,0));o=i.getPointStub(r,a,n.oriCatTmp[o],t,e,e.showValues,e.yAxis);var x=l(r.anchorimageurl,e.imageUrl),w=l(r.anchorimagescale,e.imageScale),_=l(r.anchorimagealpha,e.imageAlpha),C=l(r.anchorimagepadding,e.imagePadding),S=h(r.anchorradius,e.isAnchorRadius),k=h(r.hoverradius,r.anchorhoverradius,e.isAnchorHoverRadius);return o.y=a,o.shadow=c,o.anchorShadow=e.anchorShadow,o.color={FCcolor:{color:B(l(r.color,e.fillColor)),alpha:s}},o.valuePosition=l(r.valueposition,e.valuePosition),a=i.pointHoverOptions(r,e,{plotType:"anchor",anchorBgColor:f,anchorAlpha:m,anchorBgAlpha:v,anchorAngle:g,anchorBorderThickness:u,anchorBorderColor:p,anchorBorderAlpha:m,anchorSides:d,anchorRadius:b,imageUrl:x,imageScale:w,imageAlpha:_,imagePadding:C,shadow:c}),o.marker={enabled:e.drawAnchors,shadow:y&&{opacity:m/100},fillColor:{FCcolor:{color:B(l(r.anchorbgcolor,e.anchorBgColor)),alpha:(l(r.anchorbgalpha,e.anchorBgAlpha)*m/100).toString()}},lineColor:{FCcolor:{color:B(l(r.anchorbordercolor,e.anchorBorderColor)),alpha:m}},imageUrl:x,imageScale:w,imageAlpha:_,imagePadding:C,isAnchorRadius:S,isAnchorHoverRadius:k,lineWidth:h(r.anchorborderthickness,e.anchorBorderThickness),radius:b,symbol:Z(h(r.anchorsides,e.anchorSides)),startAngle:l(r.anchorstartangle,e.anchorAngle)},o.hoverEffects=a.enabled&&a.options,o.rolloverProperties=a.enabled&&a.rolloverOptions,o.events={click:e.getLink},o}}};t.core.options.resizeTrackingInterval=300,t.core.options.preventTrackResize=!1,t.core.options.SVGDefinitionURL="relative",e.createChart=function(i,n,o,a,s,c,d){var u,p,f,g,m=i.jsVars,v=K[o||(o=i.chartType())],b=m.hasNativeMessage,y=i.options,x=i.args;if(g=function(s){var l,c={renderer:"javascript"},h=m.fcObj,u=h.width,p=h.height,g=v&&v.eiMethods,y=m.overlayButton;if(n.jsVars=i.jsVars,m.container=n,m.hcObj=s,m.type=o,m.width=n.offsetWidth,m.height=n.offsetHeight,m.instanceAPI=f,s.hasRendered){if(t.extend(n,Pt),g&&"string"!=typeof g)for(l in g)n[l]=g[l];m.overlayButtonActive&&y&&(y.innerHTML="",y.appendChild(r.createTextNode(m.overlayButtonMessage)),s.container.appendChild(y))}if((/\%/g.test(u)||/\%/g.test(p))&&n&&n.parentNode&&!t.core.options.preventTrackResize&&Et(h,n),a&&(a({success:s.hasRendered,ref:n,id:i.id}
31),s.hasRendered)){if(e.raiseEvent("loaded",{type:o,renderer:"javascript"},i,[i.id]),!0===i.disposed)return;b||(h.__state.firstRenderNotified=!0,setTimeout((function(){e.raiseEvent("rendered",{renderer:"javascript"},h,[h.id])}),0))}s.hasRendered&&m.previousDrawCount<m.drawCount&&(c.width=m.width,c.height=m.height,c.drawCount=m.drawCount,c.displayingMessage=b,c.renderer=h.options.renderer,e.raiseEvent("drawcomplete",c,h,[h.id]),b||d||setTimeout((function(){h.__state&&!h.__state.firstRenderNotified&&e.raiseEvent("rendered",{renderer:"javascript"},h,[h.id]),t.raiseEvent("renderComplete",c,h)}),0))},m.instanceAPI&&m.instanceAPI.dispose&&m.instanceAPI.dispose(),(f=new K(v?o:"stub")).chartInstance=i,f.origRenderWidth=i.__state.renderedWidth,f.origRenderHeight=i.__state.renderedHeight,void 0!==s)"string"==typeof s&&(s=new wt(n,s,i),b=m.hasNativeMessage=!0);else if(!v||!v.init||v&&"stub"===v.name)i._chartMessageImageStyle={imageHAlign:l(x.typeNotSupportedMessageImageHAlign,y.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:l(x.typeNotSupportedMessageImageVAlign,y.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:h(x.typeNotSupportedMessageImageAlpha,y.baseChartMessageImageAlpha),imageScale:h(x.typeNotSupportedMessageImageScale,y.baseChartMessageImageScale)},i._chartMessageStyle={color:x.typeNotSupportedMessageColor||y.baseChartMessageColor,fontFamily:x.typeNotSupportedMessageFont||y.baseChartMessageFont,fontSize:x.typeNotSupportedMessageFontSize||y.baseChartMessageFontSize},s=new wt(n,y.typeNotSupportedMessage,i),b=m.hasNativeMessage=!0;else if(m.message)s=new wt(n,m.message,i),b=m.hasNativeMessage=!0;else if(m.loadError)i._chartMessageImageStyle={imageHAlign:l(x.dataLoadErrorMessageImageHAlign,y.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:l(x.dataLoadErrorMessageImageVAlign,y.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:h(x.dataLoadErrorMessageImageAlpha,y.baseChartMessageImageAlpha),imageScale:h(x.dataLoadErrorMessageImageScale,y.baseChartMessageImageScale)},i._chartMessageStyle={color:x.dataLoadErrorMessageColor||y.baseChartMessageColor,fontFamily:x.dataLoadErrorMessageFont||y.baseChartMessageFont,fontSize:x.dataLoadErrorMessageFontSize||y.baseChartMessageFontSize},s=new wt(n,y.dataLoadErrorMessage,i),b=m.hasNativeMessage=!0;else if(m.stallLoad)i._chartMessageImageStyle={imageHAlign:l(x.dataLoadStartMessageImageHAlign,y.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:l(x.dataLoadStartMessageImageVAlign,y.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:h(x.dataLoadStartMessageImageAlpha,y.baseChartMessageImageAlpha),imageScale:h(x.dataLoadStartMessageImageScale,y.baseChartMessageImageScale)},i._chartMessageStyle={fontFamily:x.dataLoadStartMessageFont||y.baseChartMessageFont,fontSize:x.dataLoadStartMessageFontSize||y.baseChartMessageFontSize,color:x.dataLoadStartMessageColor||y.baseChartMessageColor},s=new wt(n,y.dataLoadStartMessage,i),b=m.hasNativeMessage=!0;else if("zoomscatter"!==o||r.createElement("canvas").getContext)if(t.raiseEvent("internal.drawStart",{chartType:o,logicName:f.name,logicBase:f.base&&f.base.name,defaultSeriesType:f.defaultSeriesType},i),p=(u=i.jsVars&&i.jsVars.themeObject&&i.jsVars.themeObject.getThemedJSONData()||i.getChartData(t.dataFormats.JSON,!0)).data,u.error instanceof Error)i._chartMessageImageStyle={imageHAlign:l(x.dataInvalidMessageImageHAlign,y.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:l(x.dataInvalidMessageImageVAlign,y.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:h(x.dataInvalidMessageImageAlpha,y.baseChartMessageImageAlpha),imageScale:h(x.dataInvalidMessageImageScale,y.baseChartMessageImageScale)},i._chartMessageStyle={fontFamily:x.dataInvalidMessageFont||y.baseChartMessageFont,fontSize:x.dataInvalidMessageFontSize||y.baseChartMessageFontSize,color:x.dataInvalidMessageColor||y.baseChartMessageColor},s=new wt(n,y.dataInvalidMessage,i),b=m.hasNativeMessage=!0,i.__state.dataReady=!1,d||t.raiseEvent("dataInvalid",{error:u.error},m.fcObj,void 0,(function(){e.raiseEvent("dataxmlinvalid",{},i,[i.id])}));else{if(d||e.raiseEvent("dataloaded",{},i,[i.id]),!0===f.chartInstance.disposed)return;s=f.init(n,p,i,g),f.inited=!0,m.previousDrawCount=m.drawCount,m.drawCount+=1,0===s.series.length?(i._chartMessageImageStyle={imageHAlign:l(x.dataEmptyMessageImageHAlign,y.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:l(x.dataEmptyMessageImageVAlign,y.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:h(x.dataEmptyMessageImageAlpha,y.baseChartMessageImageAlpha),imageScale:h(x.dataEmptyMessageImageScale,y.baseChartMessageImageScale)},i._chartMessageStyle={fontFamily:x.dataEmptyMessageFont||y.baseChartMessageFont,fontSize:x.dataEmptyMessageFontSize||y.baseChartMessageFontSize,color:x.dataEmptyMessageColor||y.baseChartMessageColor},s=new wt(n,y.dataEmptyMessage,i),b=m.hasNativeMessage=!0,i.__state.dataReady=!1,d||e.raiseEvent("nodatatodisplay",{},i,[i.id])):(i.__state.dataReady=!0,b=m.hasNativeMessage=!1,delete m.message)}else i._chartMessageImageStyle={imageHAlign:l(x.browserNotSupportedMessageImageHAlign,y.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:l(x.browserNotSupportedMessageImageVAlign,y.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:h(x.browserNotSupportedMessageImageAlpha,y.baseChartMessageImageAlpha),imageScale:h(x.browserNotSupportedMessageImageScale,y.baseChartMessageImageScale)},i._chartMessageStyle={color:x.browserNotSupportedMessageColor||y.baseChartMessageColor,fontFamily:x.browserNotSupportedMessageFont||y.baseChartMessageFont,fontSize:x.browserNotSupportedMessageFontSize||y.baseChartMessageFontSize},s=new wt(n,l(x.browserNotSupportedMessage,y.browserNotSupportedMessage),i),b=m.hasNativeMessage=!0;return s||(i._chartMessageImageStyle={imageHAlign:y.baseChartMessageImageHAlign,imageVAlign:y.baseChartMessageImageVAlign,imageAlpha:y.baseChartMessageImageAlpha,imageScale:y.baseChartMessageImageScale},i._chartMessageStyle={fontFamily:y.baseChartMessageFont,fontSize:y.baseChartMessageFontSize,color:y.baseChartMessageColor},s=new wt(n,"Error rendering chart {0x01}
31",i),b=m.hasNativeMessage=!0),b&&!f.inited&&f.init(n,p,i,g),s.chart=s.chart||{},s.credits=s.credits||{},s.credits.enabled=!(!v||!0!==v.creditLabel),!1===c&&(s.chart.animation=!1,s.plotOptions||(s.plotOptions={}),s.plotOptions.series||(s.plotOptions.series={}),s.plotOptions.series.animation=!1),n.style&&(s.chart.containerBackgroundColor=e.getContainerBackgroundColor(i)),f.draw(s,g)},K("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",canvasPaddingModifiers:["anchor","anchorlabel"],drawAnnotations:!0,draw:function(t,e){var i=this.renderer;return i||(i=this.renderer=new K("renderer."+this.rendererId)),this.updateDefaultAnnotations(),i.init(this,t,e)},init:function(r,a,s){var c=this.chartInstance||s,d=c.jsVars;s=d._reflowData||(d._reflowData={});var u,p,f=d._reflowClean,m=c.options,v=m.args;return/^\s*absolute\s*$/i.test(t.core.options.SVGDefinitionURL)&&(i._url=(i._g&&i._g.win||n).location.href.replace(/#.*?$/,o)),this.dataObj=a=g({},a),p=a.chart=a.chart||a.graph||a.map||{},delete a.graph,delete a.map,s&&!this.stateless&&(u=s.hcJSON,delete s.hcJSON,g(this,s,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),s.hcJSON=u),this.containerElement=r,this.config={},this.smartLabel=d.smartLabel,this.smartLabel.useEllipsesOnOverflow(h(p.useellipseswhenoverflow,p.useellipsewhenoverflow,1)),this.colorManager=new e.colorManager(a,this),this.linkClickFN=yt(a,c),this.numberFormatter=new bt(a.chart,this),this.standaloneInit?(r=this.chart(r.offsetWidth||parseFloat(r.style.width),r.offsetHeight||parseFloat(r.style.height),c),s&&!this.stateless&&(s.hcJSON&&g(r,s.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),f&&this.cleanedData&&(this.cleanedData(this,f),this.cleanedData(s,f))),r):(c._chartMessageImageStyle={imageHAlign:l(v.typeNotSupportedMessageImageHAlign,m.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:l(v.typeNotSupportedMessageImageVAlign,m.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:h(v.typeNotSupportedMessageImageAlpha,m.baseChartMessageImageAlpha),imageScale:h(v.typeNotSupportedMessageImageScale,m.baseChartMessageImageScale)},c._chartMessageStyle={fontFamily:v.typeNotSupportedMessageFont||m.baseChartMessageFont,fontSize:v.typeNotSupportedMessageFontSize||m.baseChartMessageFontSize,color:v.typeNotSupportedMessageColor||m.baseChartMessageColor},new e.createDialog(r,m.typeNotSupportedMessage,c))},postSpaceManager:function(){var t=(s=this.hcJSON)._FCconf,e=s.chart,i=e.marginLeft,n=e.spacingLeft,r=e.spacingRight,o=t.width-i-e.marginRight,a=s.title,s=s.subtitle,l=t.width,c=a.align,d=(t=a.x,a.horizontalPadding),u=a.alignWithCanvas,p=(F(i)||0)+h(o,l)/2,f=(i=this.snapLiterals||(this.snapLiterals={}),o=a._captionWidth,s._subCaptionWidth),g=a._lineHeight,m=s._lineHeight,v=a.text;if(void 0===t){switch(c){case Y:t=u?l-e.marginRight-d:l-d;break;case X:t=u?e.marginLeft+d:d;break;default:t=u?p:n+.5*(l-n-r)||l/2}a.align===X?(r=n=0,a.align="start"):a.align===Y?(n=o,r=f,a.align="end"):(n=o/2,r=f/2,a.align="middle"),a.x=t,a.y=a.y||e.spacingTop||0,s.y=v?a.y+g+2:a.y||e.spacingTop||0,i.captionstartx=t-n-2,i.captionwidth=o+4,
32i.captionendx=i.captionstartx+i.captionwidth,i.captionstarty=a.y||0,i.captionheight=g+2,i.captionendy=i.captionstarty+i.captionheight,i.subcaptionstartx=t-r-2,i.subcaptionwidth=f+4,i.subcaptionendx=i.subcaptionstartx+i.subcaptionwidth,i.subcaptionstarty=s.y||0,i.subcaptionheight=m+2,i.subcaptionendy=i.subcaptionstarty+i.subcaptionheight}},chart:function(e,i){var r,a,s,u,v,b,y,x,w,_,C,S,T,E,P,I,M,O,F,R,$,z,J,K,Z,Q,tt,it,lt,ct,dt,pt,ft,vt,bt,yt,xt,wt,_t,St,At,Tt,Lt,Et,Pt,Mt,Ot,Ft,Rt,Bt,Nt,jt,$t,Vt,Ht,Wt,zt,qt,Ut,Gt,Yt,Xt,Jt,Kt,Zt,Qt,te,ee,ie,ne,re,oe,ae,se,le,ce,he,de,ue,pe,fe,ge,me,ve,be,ye,xe,we,_e,Ce,Se,ke,Ae,Te,Le,De,Ee,Pe,Ie,Me,Oe,Fe,Re,Be,Ne,je,$e,Ve,He,We,ze=this.name,qe=this.dataObj,Ue=qe.chart,Ge=this.colorManager,Ye=this.defaultSeriesType;switch(r=It(qe,e,i,this),I=r.chart,P=r.xAxis,x=r[f],this.snapLiterals||(this.snapLiterals={}),(O=this.snapLiterals).chartstartx=0,O.chartstarty=0,O.chartwidth=e,O.chartheight=i,O.chartendx=e,O.chartendy=i,O.chartcenterx=e/2,O.chartcentery=i/2,O.chartbottommargin=I.spacingBottom,O.chartleftmargin=I.spacingLeft,O.chartrightmargin=I.spacingRight,O.charttopmargin=I.spacingTop,this.updateSnapPoints&&this.updateSnapPoints(),this.postHCJSONCreation&&this.postHCJSONCreation.call(this,r),t.raiseEvent("internal.postlogic",this,this.chartInstance),r.labels.smartLabel=b=x.smartLabel=this.smartLabel,x.width=e,x.height=i,_=r.plotOptions,x.isDual=this.isDual,x.numberFormatter=this.numberFormatter,x.axisGri
32dManager=new mt(Ye,Ue),x.tooltext=Ue.plottooltext,x.trendLineToolText=Ue.trendlinetooltext,I.is3D=a=x.is3d=/3d$/.test(Ye),I.isBar=w=x.isBar=this.isBar,y=/^pie/.test(Ye),E=1==Ue.useroundedges,T=a?Dt.chart3D:Dt.chart2D,I.events.click=r.plotOptions.series.point.events.click=this.linkClickFN,I.defaultSeriesType=Ye,J=0<Ue.palette&&6>Ue.palette?Ue.palette:h(this.paletteIndex,1),--J,I.paletteIndex=J,I.usePerPointLabelColor=Ue.colorlabelsfromplot==rt,I.syncLabelWithAnchor=h(Ue.synclabelwithanchoronhover,1),I.minimizeTendency=h(Ue.minimizetendency,Ue.minimisetendency,0),I.useRoundEdges=E&&!a&&!this.distributedColumns&&"pie"!==this.defaultSeriesType,void 0!==l(Ue.clickurl)&&(I.link=Ue.clickurl,I.style.cursor="pointer",r.plotOptions.series.point.events.click=function(){I.events.click.call({link:Ue.clickurl})}),K=l(Ue.basefont,"Verdana,sans"),Z=j(Ue.basefontsize,10),Q=l(Ue.basefontcolor,Ge.getColor(T.baseFontColor)),tt=l(Ue.outcnvbasefont,K),lt=(it=j(Ue.outcnvbasefontsize,Z))+at,ct=l(Ue.outcnvbasefontcolor,Q).replace(/^#?([a-f0-9]+)/gi,"#$1"),ft=Z,Z+=at,Q=Q.replace(/^#?([a-f0-9]+)/gi,"#$1"),We=(We=d(Ue.trendvaluebordercolor,o))?W(We,h(Ue.trendvalueborderalpha,Ue.trendvaluealpha,100)):o,x.trendStyle=x.outCanvasStyle={fontFamily:l(Ue.trendvaluefont,tt),color:l(Ue.trendvaluefontcolor,ct),fontSize:j(Ue.trendvaluefontsize,it)+at,fontWeight:h(Ue.trendvaluefontbold)?"bold":"normal",fontStyle:h(Ue.trendvaluefontitalic)?"italic":"normal",border:We||Ue.trendvaluebgcolor?h(Ue.trendvalueborderthickness,1)+"px solid":"",borderColor:We,borderThickness:h(Ue.trendvalueborderthickness,1),borderPadding:h(Ue.trendvalueborderpadding,2),borderRadius:h(Ue.trendvalueborderradius,0),backgroundColor:Ue.trendvaluebgcolor?W(Ue.trendvaluebgcolor,h(Ue.trendvaluebgalpha,Ue.trendvaluealpha,100)):o,borderDash:h(Ue.trendvalueborderdashed,0)?m(h(Ue.trendvalueborderdashlen,4),h(Ue.trendvalueborderdashgap,2),h(Ue.trendvalueborderthickness,1)):"none"},dt=N(x.trendStyle),x.inCanvasStyle={fontFamily:K,fontSize:Z,color:Q},pt=N(x.inCanvasStyle),x.divlineStyle={fontFamily:K,fontSize:Z,color:Q,lineHeight:pt},P.labels.style={fontFamily:l(Ue.labelfont,tt),fontSize:h(Ue.labelfontsize,it)+at,color:l(Ue.labelfontcolor,ct)},P.labels.style.lineHeight=N(P.labels.style),P.steppedLabels.style={fontFamily:tt,fontSize:lt,lineHeight:dt,color:ct,visibility:"hidden"},r.yAxis[0].labels.style={fontFamily:tt,fontSize:lt,lineHeight:dt,color:ct},r.yAxis[1].labels.style={fontFamily:tt,fontSize:lt,lineHeight:dt,color:ct},bt=l(Ue.legenditemfont,tt),yt=j(Ue.legenditemfontsize,it),xt=l(Ue.legenditemfontcolor,ct).replace(/^#?([a-f0-9]+)/gi,"#$1"),wt=kt[h(Ue.legenditemfontbold,0)]||"",vt=j(Ue.legendcaptionfontsize,it)+at,yt+=at,r.legend.itemStyle={fontFamily:bt,fontSize:yt,color:xt,fontWeight:wt},N(r.legend.itemStyle),r.legend.itemHiddenStyle={fontFamily:bt,fontSize:yt,color:l(Ue.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1"),fontWeight:wt},N(r.legend.itemHiddenStyle),r.legend.itemHoverStyle={color:l(Ue.legenditemhoverfontcolor,xt).replace(/^#?([a-f0-9]+)/gi,"#$1")},r.legend.title.style={fontFamily:l(Ue.legendcaptionfont,bt),fontSize:vt,color:l(Ue.legendcaptionfontcolor,ct).replace(/^#?([a-f0-9]+)/gi,"#$1"),fontWeight:kt[h(Ue.legendcaptionfontbold,1)]||""},N(r.legend.title.style),r.legend.title.align=ht[Ue.legendcaptionalignment&&Ue.legendcaptionalignment.toLowerCase()||q]||ht.center,M=(M=d(Ue.valuebordercolor,o))?W(M,h(Ue.valueborderalpha,Ue.valuealpha,100)):o,r.plotOptions.series.dataLabels.style={fontFamily:l(Ue.valuefont,K),fontSize:l(Ue.valuefontsize,parseInt(Z,10))+at,lineHeight:pt,color:W(l(Ue.valuefontcolor,Q),h(Ue.valuefontalpha,Ue.valuealpha,100)),fontWeight:h(Ue.valuefontbold)?"bold":"normal",fontStyle:h(Ue.valuefontitalic)?"italic":"normal",border:M||Ue.valuebgcolor?h(Ue.valueborderthickness,1)+"px solid":"",borderColor:M,borderThickness:h(Ue.valueborderthickness,1),borderPadding:h(Ue.valueborderpadding,2),borderRadius:h(Ue.valueborderradius,0),backgroundColor:Ue.valuebgcolor?W(Ue.valuebgcolor,h(Ue.valuebgalpha,Ue.valuealpha,100)):o,borderDash:h(Ue.valueborderdashed,0)?m(h(Ue.valueborderdashlen,4),h(Ue.valueborderdashgap,2),h(Ue.valueborderthickness,1)):"none"},N(r.plotOptions.series.dataLabels.style),qe.labelStyle={fontFamily:l(Ue.valuefont,K),fontSize:l(Ue.valuefontsize,parseInt(Z,10))+at,lineHeight:pt,color:W(l(Ue.valuefontcolor,Q),h(Ue.valuefontalpha,Ue.valuealpha,100)),fontWeight:h(Ue.valuefontbold)?"bold":"normal",fontStyle:h(Ue.valuefontitalic)?"italic":"normal",border:M||Ue.valuebgcolor?h(Ue.valueborderthickness,1)+"px solid":"",borderColor:M,borderThickness:h(Ue.valueborderthickness,1),borderPadding:h(Ue.valueborderpadding,2),borderRadius:h(Ue.valueborderradiu
32s,0),backgroundColor:Ue.valuebgcolor?W(Ue.valuebgcolor,h(Ue.valuebgalpha,Ue.valuealpha,100)):o,borderDash:h(Ue.valueborderdashed,0)?m(h(Ue.valueborderdashlen,4),h(Ue.valueborderdashgap,2),h(Ue.valueborderthickness,1)):"none"},r.plotOptions.series.dataLabels.color=r.plotOptions.series.dataLabels.style.color,r.tooltip.style={fontFamily:K,fontSize:Z,lineHeight:pt,color:Q},r.title.style={fontFamily:l(Ue.captionfont,tt),color:l(Ue.captionfontcolor,ct).replace(/^#?([a-f0-9]+)/gi,"#$1"),fontSize:h(Ue.captionfontsize,it+3)+at,fontWeight:0===h(Ue.captionfontbold)?"normal":"bold"},r.title.align=l(Ue.captionalignment,q),r.title.isOnTop=h(Ue.captionontop,1),r.title.alignWithCanvas=h(Ue.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1),r.title.horizontalPadding=h(Ue.captionhorizontalpadding,r.title.alignWithCanvas?0:15),N(r.title.style),r.subtitle.style={fontFamily:l(Ue.subcaptionfont,Ue.captionfont,tt),color:l(Ue.subcaptionfontcolor,Ue.captionfontcolor,ct).replace(/^#?([a-f0-9]+)/gi,"#$1"),fontSize:h(Ue.subcaptionfontsize,h(L(h(Ue.captionfontsize)-3,-1),it)+h(this.subTitleFontSizeExtender,1))+at,fontWeight:0===h(Ue.subcaptionfontbold,this.subTitleFontWeight,Ue.captionfontbold)?"normal":"bold"},r.subtitle.align=r.title.align,r.subtitle.isOnTop=r.title.isOnTop,r.subtitle.alignWithCanvas=r.title.alignWithCanvas,r.subtitle.horizontalPadding=r.title.horizontalPadding,N(r.subtitle.style),M=(M=d(Ue.xaxisnamebordercolor,o))?W(M,h(Ue.xaxisnameborderalpha,Ue.xaxisnamealpha,100)):o,P.title.style={fontFamily:l(Ue.xaxisnamefont,tt),fontSize:l(Ue.xaxisnamefontsize,parseInt(lt,10))+at,color:W(l(Ue.xaxisnamefontcolor,ct),h(Ue.xaxisnamefontalpha,Ue.xaxisnamealpha,100)),fontWeight:h(Ue.xaxisnamefontbold,1)?"bold":"normal",fontStyle:h(Ue.xaxisnamefontitalic)?"italic":"normal",border:M||Ue.xaxisnamebgcolor?h(Ue.xaxisnameborderthickness,1)+"px solid":void 0,borderColor:M,borderThickness:h(Ue.xaxisnameborderthickness,1),borderPadding:h(Ue.xaxisnameborderpadding,2),borderRadius:h(Ue.xaxisnameborderradius,0),backgroundColor:Ue.xaxisnamebgcolor?W(Ue.xaxisnamebgcolor,h(Ue.xaxisnamebgalpha,Ue.xaxisnamealpha,100)):o,borderDash:h(Ue.xaxisnameborderdashed,0)?m(h(Ue.xaxisnameborderdashlen,4),h(Ue.xaxisnameborderdashgap,2),h(Ue.xaxisnameborderthickness,1)):"none"},N(P.title.style),M=(M=l(Ue.pyaxisnamebordercolor,Ue.yaxisnamebordercolor,o))?W(M,h(Ue.pyaxisnameborderalpha,Ue.yaxisnameborderalpha,Ue.pyaxisnamealpha,Ue.yaxisnamealpha,100)):o,r.yAxis[0].title.style={fontFamily:l(Ue.pyaxisnamefont,Ue.yaxisnamefont,tt),fontSize:l(Ue.pyaxisnamefontsize,Ue.yaxisnamefontsize,parseInt(lt,10))+at,color:W(l(Ue.pyaxisnamefontcolor,Ue.yaxisnamefontcolor,ct),h(Ue.pyaxisnamefontalpha,Ue.yaxisnamefontalpha,Ue.pyaxisnamealpha,Ue.yaxisnamealpha,100)),fontWeight:h(Ue.pyaxisnamefontbold,Ue.yaxisnamefontbold,1)?"bold":"normal",fontStyle:h(Ue.pyaxisnamefontitalic,Ue.yaxisnamefontitalic)?"italic":"normal",border:M||Ue.pyaxisnamebgcolor||Ue.yaxisnamebgcolor?h(Ue.pyaxisnameborderthickness,Ue.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:M,borderThickness:h(Ue.pyaxisnameborderthickness,Ue.yaxisnameborderthickness,1),borderPadding:h(Ue.pyaxisnameborderpadding,Ue.yaxisnameborderpadding,2),borderRadius:h(Ue.pyaxisnameborderradius,Ue.yaxisnameborderradius,0),backgroundColor:Ue.pyaxisnamebgcolor||Ue.yaxisnamebgcolor?W(l(Ue.pyaxisnamebgcolor,Ue.yaxisnamebgcolor),h(Ue.pyaxisnamebgalpha,Ue.yaxisnamebgalpha,Ue.pyaxisnamealpha,Ue.yaxisnamealpha,100)):o,borderDash:h(Ue.pyaxisnameborderdashed,Ue.yaxisnameborderdashed,0)?m(h(Ue.pyaxisnameborderdashlen,Ue.yaxisnameborderdashlen,4),h(Ue.pyaxisnameborderdashgap,Ue.yaxisnameborderdashgap,2),h(Ue.pyaxisnameborderthickness,Ue.yaxisnameborderthickness,1)):"none"},N(r.yAxis[0].title.style),r.yAxis[1].title.style={fontFamily:tt,color:ct,fontSize:lt,lineHeight:void 0,fontWeight:"bold"},M=(M=l(Ue.syaxisnamebordercolor,Ue.yaxisnamebordercolor,o))?W(M,h(Ue.syaxisnameborderalpha,Ue.yaxisnameborderalpha,Ue.syaxisnamealpha,Ue.yaxisnamealpha,100)):o,r.yAxis[1].title.style={fontFamily:l(Ue.syaxisnamefont,Ue.yaxisnamefont,tt),fontSize:l(Ue.syaxisnamefontsize,Ue.yaxisnamefontsize,parseInt(lt,10))+at,color:W(l(Ue.syaxisnamefontcolor,Ue.yaxisnamefontcolor,ct),h(Ue.syaxisnamefontalpha,Ue.yaxisnamefontalpha,Ue.syaxisnamealpha,Ue.yaxisnamealpha,100)),fontWeight:h(Ue.syaxisnamefontbold,Ue.yaxisnamefontbold,1)?"bold":"normal",fontStyle:h(Ue.syaxisnamefontitalic,Ue.yaxisnamefontitalic)?"italic":"normal",border:M||Ue.syaxisnamebgcolor||Ue.yaxisnamebgcolor?h(Ue.syaxisnameborderthickness,Ue.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:M,borderThickness:h(Ue.syaxisnameborderthickness,Ue.yaxisnameborderthickness,1),borderPadding:h(Ue.syaxisnameborderpadding,Ue.yaxisnameborderpadding,2),borderRadius:h(Ue.syaxisnameborderradiu
32s,Ue.yaxisnameborderradius,0),backgroundColor:Ue.syaxisnamebgcolor||Ue.yaxisnamebgcolor?W(l(Ue.syaxisnamebgcolor,Ue.yaxisnamebgcolor),h(Ue.syaxisnamebgalpha,Ue.yaxisnamebgalpha,Ue.syaxisnamealpha,Ue.yaxisnamealpha,100)):o,borderDash:h(Ue.syaxisnameborderdashed,Ue.yaxisnameborderdashed,0)?m(h(Ue.syaxisnameborderdashlen,Ue.yaxisnameborderdashlen,4),h(Ue.syaxisnameborderdashgap,Ue.yaxisnameborderdashgap,2),h(Ue.syaxisnameborderthickness,Ue.yaxisnameborderthickness,1)):"none"},N(r.yAxis[1].title.style),I.overlapColumns=h(Ue[w?"overlapbars":"overlapcolumns"],a?0:1),r.orphanStyles={defaultStyle:{style:g({},x.inCanvasStyle)},connectorlabels:{style:g({},r.plotOptions.series.dataLabels)},vyaxisname:{style:g({},r.yAxis[0].title.style)}},r.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:c(Ue.tlfont,K),color:B(c(Ue.tlfontcolor,Q)),fontSize:j(Ue.tlfontsize,ft)+"px"},N(r.plotOptions.series.dataLabels.tlLabelStyle),r.plotOptions.series.dataLabels.trLabelStyle={fontFamily:c(Ue.trfont,K),color:B(c(Ue.trfontcolor,Q)),fontSize:j(Ue.trfontsize,ft)+"px"},N(r.plotOptions.series.dataLabels.trLabelStyle),r.plotOptions.series.dataLabels.blLabelStyle={fontFamily:c(Ue.blfont,K),color:B(c(Ue.blfontcolor,Q)),fontSize:j(Ue.blfontsize,ft)+"px"},N(r.plotOptions.series.dataLabels.blLabelStyle),r.plotOptions.series.dataLabels.brLabelStyle={fontFamily:c(Ue.brfont,K),color:B(c(Ue.brfontcolor,Q)),fontSize:j(Ue.brfontsize,ft)+"px"},N(r.plotOptions.series.dataLabels.brLabelStyle),this.parseStyles(r),delete r.xAxis.labels.style.backgroundColor,delete r.xAxis.labels.style.borderColor,delete r.yAxis[0].labels.style.backgroundColor,delete r.yAxis[0].labels.style.borderColor,delete r.yAxis[1].labels.style.backgroundColor,delete r.yAxis[1].labels.style.borderColor,x.showTooltip=h(Ue.showtooltip,this.showtooltip,1),x.tooltipSepChar=l(Ue.tooltipsepchar,this.tooltipsepchar,st),x.showValues=h(Ue.showvalues,this.showValues,1),x.seriesNameInToolTip=h(Ue.seriesnameintooltip,1),x.showVLines=h(Ue.showvlines,1),x.showVLinesOnTop=h(Ue.showvlinesontop,0),x.showVLineLabels=h(Ue.showvlinelabels,this.showVLineLabels,1),x.showVLineLabelBorder=h(Ue.showvlinelabelborder,1),x.rotateVLineLabels=h(Ue.rotatevlinelabels,0),x.vLineColor=l(Ue.vlinecolor,"333333"),x.vLineLabelColor=l(Ue.vlinelabelcolor),x.vLineThickness=l(Ue.vlinethickness,1),x.vLineAlpha=h(Ue.vlinealpha,80),x.vLineLabelBgColor=l(Ue.vlinelabelbgcolor,"ffffff"),x.vLineLabelBgAlpha=h(Ue.vlinelabelbgalpha,a?50:100),x.trendlineColor=l(Ue.trendlinecolor,"333333"),x.trendlineThickness=l(Ue.trendlinethickness,1),x.trendlineAlpha=h(Ue.trendlinealpha),x.showTrendlinesOnTop=l(Ue.showtrendlinesontop,0),x.trendlineValuesOnOpp=l(Ue.trendlinevaluesonopp,Ue.trendlinevaluesonright,0),x.trendlinesAreDashed=h(Ue.trendlinesaredashed,0),x.trendlinesDashLen=h(Ue.trendlinedashlen,5),x.trendlinesDashGap=h(Ue.trendlinedashgap,2),x.showTrendlines=h(Ue.showtrendlines,1),x.showTrendlineLabels=h(Ue.showtrendlinelabels,this.showTrendlineLabels,1),x.flatScrollBars=h(Ue.flatscrollbars,0),x.scrollBar3DLighting=h(Ue.scrollbar3dlighting,1),I.anchorTrackingRadius=h(Ue.anchortrackingradius,Ct?k:A),r.plotOptions.series.connectNullData=h(Ue.connectnulldata,0),I.backgroundColor={FCcolor:{color:l(Ue.bgcolor,Ge.getColor(T.bgColor)),alpha:l(Ue.bgalpha,Ge.getColor(T.bgAlpha)),angle:l(Ue.bgangle,Ge.getColor(T.bgAngle)),ratio:l(Ue.bgratio,Ge.getColor(T.bgRatio))}},I.rotateValues=h(Ue.rotatevalues,0),I.placeValuesInside=h(Ue.placevaluesinside,0),I.valuePosition=l(Ue.valueposition,"auto"),I.valuePadding=h(Ue.valuepadding,2),I.managePlotOverflow=h(Ue.manageplotoverflow,1),I.borderColor=W(l(Ue.bordercolor,a?"#666666":Ge.getColor("borderColor")),l(Ue.borderalpha,a?"100":Ge.getColor("borderAlpha"))),C=h(Ue.showborder,a?0:1),I.borderWidth=C?h(Ue.borderthickness,1):0,I.borderRadius=h(Ue.borderradiu
32s,0),I.borderDashStyle=h(Ue.borderdashed,0)?m(h(Ue.borderdashlen,4),h(Ue.borderdashgap,2),I.borderWidth):"none",I.plotBorderColor=W(l(Ue.canvasbordercolor,Ge.getColor("canvasBorderColor")),l(Ue.canvasborderalpha,Ge.getColor("canvasBorderAlpha"))),"0"!==Ue.showcanvasborder&&(S=Boolean(l(Ue.canvasborderthickness,E?0:1)),"1"!==Ue.showaxislines&&"1"!==Ue.showxaxisline&&"1"!==Ue.showyaxisline&&"1"!==Ue.showsyaxisline||"1"===Ue.showcanvasborder||(S=0)),I.plotBorderWidth=a||!S?0:h(Ue.canvasborderthickness,this.canvasborderthickness,I.useRoundEdges?1:2),I.bgSWF=l(Ue.bgimage,Ue.bgswf),I.bgSWFAlpha=h(Ue.bgimagealpha,Ue.bgswfalpha,100),_t=l(Ue.bgimagedisplaymode,"none").toLowerCase(),St=c(Ue.bgimagevalign,o).toLowerCase(),At=c(Ue.bgimagehalign,o).toLowerCase(),"tile"==_t||"fill"==_t||"fit"==_t?(St!=U&&"middle"!=St&&St!=G&&(St="middle"),At!=X&&"middle"!=At&&At!=Y&&(At="middle")):(St!=U&&"middle"!=St&&St!=G&&(St=U),At!=X&&"middle"!=At&&At!=Y&&(At=X)),I.bgImageDisplayMode=_t,I.bgImageVAlign=St,I.bgImageHAlign=At,I.bgImageScale=h(Ue.bgimagescale,100),I.logoURL=c(Ue.logourl),I.logoPosition=l(Ue.logoposition,"tl").toLowerCase(),I.logoAlpha=h(Ue.logoalpha,100),I.logoLink=c(Ue.logolink),I.logoScale=h(Ue.logoscale,100),I.logoLeftMargin=h(Ue.logoleftmargin,0),I.logoTopMargin=h(Ue.logotopmargin,0),(Lt=(Tt=I.toolbar={button:{}}).button).scale=h(Ue.toolbarbuttonscale,1.15),Lt.width=h(Ue.toolbarbuttonwidth,15),Lt.height=h(Ue.toolbarbuttonheight,15),Lt.radius=h(Ue.toolbarbuttonradius,2),Lt.spacing=h(Ue.toolbarbuttonspacing,5),Lt.fill=W(l(Ue.toolbarbuttoncolor,"ffffff")),Lt.labelFill=W(l(Ue.toolbarlabelcolor,"cccccc")),Lt.symbolFill=W(l(Ue.toolbarsymbolcolor,"ffffff")),Lt.hoverFill=W(l(Ue.toolbarbuttonhovercolor,"ffffff")),Lt.stroke=W(l(Ue.toolbarbuttonbordercolor,"bbbbbb")),Lt.symbolStroke=W(l(Ue.toolbarsymbolbordercolor,"9a9a9a")),Lt.strokeWidth=h(Ue.toolbarbuttonborderthickness,1),Lt.symbolStrokeWidth=h(Ue.toolbarsymbolborderthickness,1),Et=Lt.symbolPadding=h(Ue.toolbarsymbolpadding,5),Lt.symbolHPadding=h(Ue.toolbarsymbolhpadding,Et),Lt.symbolVPadding=h(Ue.toolbarsymbolvpadding,Et),Pt=Tt.position=l(Ue.toolbarposition,"tr").toLowerCase()){case"tr":case"rt":case"top right":case"right top":default:Pt="tr";break;case"br":case"rb":case"bottom right":case"right bottom":Pt="br";break;case"tl":case"lt":case"top left":case"left top":Pt="tl";break;case"bl":case"lb":case"bottom left":case"left bottom":Pt="bl"}if(Mt=Tt.hAlign="left"===(o+Ue.toolbarhalign).toLowerCase()?"l":Pt.charAt(1),Ot=Tt.vAlign="bottom"===(o+Ue.toolbarvalign).toLowerCase()?"b":Pt.charAt(0),Tt.hDirection=h(Ue.toolbarhdirection,"r"===Mt?-1:1),Tt.vDirection=h(Ue.toolbarvdirection,"b"===Ot?-1:1),Tt.vMargin=h(Ue.toolbarvmargin,6),Tt.hMargin=h(Ue.toolbarhmargin,10),Tt.x=h(Ue.toolbarx,"l"===Mt?0:e),Tt.y=h(Ue.toolbary,"t"===Ot?0:i),Ft=l(Ue.divlinecolor,Ge.getColor(T.divLineColor)),Rt=l(Ue.divlinealpha,a?Ge.getColor("divLineAlpha3D"):Ge.getColor("divLineAlpha")),Bt=h(Ue.divlinethickness,1),Nt=Boolean(h(Ue.divlinedashed,Ue.divlineisdashed,this.divLineIsDashed,0)),jt=h(Ue.divlinedashlen,4),$t=h(Ue.divlinedashgap,2),r.yAxis[0].gridLineColor=W(Ft,Rt),r.yAxis[0].gridLineWidth=Bt,r.yAxis[0].gridLineDashStyle=Nt?m(jt,$t,Bt):"none",r.yAxis[0].alternateGridColor=w?W(l(Ue.alternatevgridcolor,Ge.getColor("altVGridColor")),1===h(Ue.showalternatevgridcolor,1)?l(Ue.alternatevgridalpha,Ge.getColor("altVGridAlpha")):nt):W(l(Ue.alternatehgridcolor,Ge.getColor("altHGridColor")),"0"===Ue.showalternatehgridcolor?0:l(Ue.alternatehgridalpha,Ge.getColor("altHGridAlpha"))),te=h(Ue.vdivlinethickness,1),ee=Boolean(h(Ue.vdivlinedashed,Ue.vdivlineisdashed,0)),ie=h(Ue.vdivlinedashlen,4),ne=h(Ue.vdivlinedashgap,2),P.gridLineColor=W(l(Ue.vdivlinecolor,Ge.getColor(T.divLineColor)),l(Ue.vdivlinealpha,Ge.getColor("divLineAlpha"))),P.gridLineWidth=te,P.gridLineDashStyle=ee?m(ie,ne,te):"none",P.alternateGridColor=W(l(Ue.alternatevgridcolor,Ge.getColor("altVGridColor")),"1"===Ue.showalternatehgridcolor?l(Ue.alternatevgridalpha,Ge.getColor("altVGridAlpha")):0),Ht=l(Ue.canvasbgcolor,Ge.getColor(T.canvasBgColor)),zt=l(Ue.canvasbgalpha,Ge.getColor("canvasBgAlpha")),l(Ue.showcanvasbg,rt)==nt&&(zt="0"),r.plotOptions.series.shadow=h(Ue.showshadow,Ue.showcolumnshadow,this.defaultPlotShadow,Ge.getColor("showShadow")),this.inversed&&(r.yAxis[0].reversed=!0,r.yAxis[1].reversed=!0),this.isStacked&&(this.distributedColumns?(x.showStackTotal=Boolean(h(Ue.showsum,1)),v=h(Ue.usepercentdistribution,1),Vt=h(Ue.showpercentvalues,0),Wt=h(Ue.showpercentintooltip,v,0),x.showXAxisPercentValues=h(Ue.showxaxispercentvalues,1)):(x.showStackTotal=Boolean(h(this.showSum,Ue.showsum,0)),v=h(this.stack100percent,Ue.stack100percent,0),Vt=h(Ue.showpercentvalues,v,0),Wt=h(Ue.showpercentintooltip,Vt)),x.showPercentValues=Vt,x.showPercentInToolTip=Wt,v?(x.isValueAbs=!0,_[Ye].stacking="percent",x[0].stacking100Percent=!0):_[Ye].stacking="normal"),this.isDual&&("0"===Ue.primaryaxisonleft&&(r.yAxis[0].opposite=!0,r.yAxis[1].opposite=!1),r.yAxis[0].showAlways=!0,r.yAxis[1].showAlways=!0),I.useRoundEdges&&(r.plotOptions.series.shadow=h(Ue.showshadow,Ue.showcolumnshadow,1),r.plotOptions.series.borderRadius=1,r.tooltip.style.borderRadius="2px",I.plotBorderRadius=3,S||(I.plotBorderWidth=0),I.plotShadow=r.plotOptions.series.shadow?{enabled:!0,opacity:zt/100}:0),1===h(Ue.use3dlighting,1)&&(r.legend.lighting3d=!0),r.plotOptions.series.userMaxColWidth=w?Ue.maxbarheight:h(Ue.maxcolwidth,this.maxColWidth),r.plotOptions.series.maxColWidth=D(h(r.plotOptions.series.userMaxColWidth,50))||1,r.title.text=p(Ue.caption),r.subtitle.text=p(Ue.subcaption),0===h(Ue.showtooltip,this.showtooltip)&&(r.tooltip.enabled=!1),(qt=r.tooltip.style).backgroundColor=W(l(qt.backgroundColor,Ue.tooltipbgcolor,Ge.getColor("toolTipBgColor")),l(Ue.tooltipbgalpha,100)),qt.borderColor=W(l(qt.borderColor,Ue.tooltipbordercolor,Ge.getColor("toolTipBorderColor")),l(Ue.tooltipborderalpha,100)),r.tooltip.shadow=!!h(Ue.showtooltipshadow,Ue.showshadow,1)&&{enabled:!0,opacity:L(h(Ue.tooltipbgalpha,100),h(Ue.tooltipborderalpha,100))/100},r.tooltip.constrain=h(Ue.constraintooltip,1),qt.borderWidth=h(Ue.tooltipborderthickness,1)+"px",Ue.tooltipborderradiu
32s&&(qt.borderRadius=h(Ue.tooltipborderradius,1)+"px"),qt.padding=h(Ue.tooltippadding,this.tooltippadding,3)+"px",Ue.tooltipcolor&&(qt.color=B(Ue.tooltipcolor)),x.userPlotSpacePercent=r.plotOptions.series.userPlotSpacePercent=Ue.plotspacepercent,Ut=h(Ue.plotspacepercent,20)%100,x.plotSpacePercent=r.plotOptions.series.groupPadding=Ut/200,a&&!y?(I.series2D3Dshift="mscombi3d"===ze||Boolean(h(Ue.use3dlineshift,0)),I.canvasBaseColor3D=l(Ue.canvasbasecolor,Ge.getColor("canvasBaseColor3D")),I.canvasBaseDepth=h(Ue.canvasbasedepth,10),I.canvasBgDepth=h(Ue.canvasbgdepth,3),I.showCanvasBg=Boolean(h(Ue.showcanvasbg,1)),I.showCanvasBase=Boolean(h(Ue.showcanvasbase,1)),w?(I.xDepth=5,I.yDepth=5,I.showCanvasBg&&(x.marginTopExtraSpace+=I.canvasBgDepth),x.marginLeftExtraSpace+=I.yDepth+(I.showCanvasBase?I.canvasBaseDepth:0),x.marginBottomExtraSpace+=5):(I.xDepth=10,I.yDepth=10,I.showCanvasBg&&(x.marginRightExtraSpace+=I.canvasBgDepth),x.marginBottomExtraSpace+=I.yDepth+(I.showCanvasBase?I.canvasBaseDepth:0)),Ht=Ht.split(et)[0],zt=zt.split(et)[0],I.use3DLighting=Boolean(h(Ue.use3dlighting,1)),I.plotBackgroun
32dColor=I.use3DLighting?{FCcolor:{color:V(Ht,85)+et+H(Ht,55),alpha:zt+et+zt,ratio:ut,angle:gt(e-(I.marginLeft+I.marginRight),i-(I.marginTop+I.marginBottom),1)}}:W(Ht,zt),I.canvasBgColor=W(V(Ht,80),zt),s=l(Ue.zeroplanecolor,Ue.divlinecolor,Ge.getColor(T.divLineColor)),u=l(Ue.zeroplanealpha,Ue.divlinealpha,Ge.getColor("divLineAlpha")),I.zeroPlaneColor=W(s,u),I.zeroPlaneBorderColor=W(l(Ue.zeroplanebordercolor,s),h(Ue.zeroplaneshowborder,1)?u:0),I.zeroPlaneShowBorder=h(Ue.zeroplaneshowborder,1)):(I.is3D=!1,I.plotBackgroundColor={FCcolor:{color:Ht,alpha:zt,angle:l(Ue.canvasbgangle,Ge.getColor("canvasBgAngle")),ratio:l(Ue.canvasbgratio,Ge.getColor("canvasBgRatio"))}}),this.parseExportOptions(r),this.parseHoverEffectOptions(I),this.preSeriesAddition&&this.preSeriesAddition(r,qe,e,i),this.series&&this.series(qe,r,ze,e,i),this.postSeriesAddition(r,qe,e,i),this.spaceManager(r,qe,e,i),this.postSpaceManager&&this.postSpaceManager(r,qe,e,i),Gt=h(Ue.drawquadrant,0),x.isXYPlot&&Gt&&(Yt=P.min,Xt=P.max,Jt=r.yAxis[0].min,Kt=r.yAxis[0].max,Zt=h(Ue.quadrantxval,(Yt+Xt)/2),(Qt=h(Ue.quadrantyval,(Jt+Kt)/2))>=Jt&&Qt<=Kt&&Zt>=Yt&&Zt<=Xt&&(re=W(l(Ue.quadrantlinecolor,I.plotBorderColor),l(Ue.quadrantlinealpha,ot)),oe=h(Ue.quadrantlinethickness,I.plotBorderWidth),ae=h(Ue.quadrantlinedashed,Ue.quadrantlineisdashed,0),se=h(Ue.quadrantlinedashLen,4),le=h(Ue.quadrantlinedashgap,2),ce=c(Ue.quadrantlabeltl,o),he=c(Ue.quadrantlabeltr,o),de=c(Ue.quadrantlabelbl,o),ue=c(Ue.quadrantlabelbr,o),pe=h(Ue.quadrantlabelpadding,3),fe=ae?m(se,le,oe):"none",P.plotLines.push({color:re,value:Zt,width:oe,dashStyle:fe,zIndex:3}),r.yAxis[0].plotLines.push({color:re,value:Qt,width:oe,dashStyle:fe,zIndex:3}),ge=e-I.marginRight-I.marginLeft,me=i-I.marginTop-I.marginBottom,_e=x.inCanvasStyle,be=ge-(ve=ge/(Xt-Yt)*(Zt-Yt)),ye=me-(xe=me/(Kt-Jt)*(Qt-Jt)),ve-=pe,be-=pe,ye-=pe,xe-=pe,Ce=pe+at,Se=me-pe+at,ke=pe+at,Ae=ge-pe+at,b.setStyle(_e),0<ye&&(ce!==o&&0<ve&&(M=d(Ue.quadrantlabeltlbordercolor,Ue.quadrantlabelbordercolor,o),$e=l(Ue.quadrantlabeltlbgcolor,Ue.quadrantlabelbgcolor),Ve=h(Ue.quadrantlabeltlborderthickness,Ue.quadrantlabelborderthickness,1),M=M?W(M,h(Ue.quadrantlabeltlborderalpha,Ue.quadrantlabelborderalpha,Ue.quadrantlabeltlalpha,Ue.quadrantlabelalpha,100)):o,He={left:ke,top:Ce,fontSize:l(h(Ue.quadrantlabeltlfontsize,Ue.quadrantlabelfontsize),parseInt(_e.fontSize,10))+at,lineHeight:_e.lineHeight,fontFamily:l(Ue.quadrantlabeltlfont,Ue.quadrantlabelfont,_e.fontFamily),color:W(l(Ue.quadrantlabeltlfontcolor,Ue.quadrantlabelfontcolor,_e.color),h(Ue.quadrantlabeltlfontalpha,Ue.quadrantlabelfontalpha,100)),fontWeight:h(Ue.quadrantlabeltlfontbold,Ue.quadrantlabelfontbold)?"bold":"normal",fontStyle:h(Ue.quadrantlabeltlfontitalic,Ue.quadrantlabelfontitalic)?"italic":"normal",border:M||$e?Ve+"px solid":o,borderColor:M,borderThickness:Ve,borderPadding:h(Ue.quadrantlabeltlborderpadding,Ue.quadrantlabelborderpadding,2),borderRadius:h(Ue.quadrantlabeltlborderradius,Ue.quadrantlabelborderradius,0),backgroundColor:$e?W($e,h(Ue.quadrantlabeltlbgalpha,Ue.quadrantlabelbgalpha,Ue.quadrantlabeltlalpha,Ue.quadrantlabelalpha,100)):o,borderDash:h(Ue.quadrantlabeltlborderdashed,Ue.quadrantlabelborderdashed,0)?m(h(Ue.quadrantlabeltlborderdashlen,Ue.quadrantlabelborderdashlen,4),h(Ue.quadrantlabeltlborderdashgap,Ue.quadrantlabelborderdashgap,2),Ve):"none"},N(He),b.setStyle(He),we=b.getSmartText(ce,ve,ye),r.labels.items.push({html:we.text,title:we.title,zIndex:3,vAlign:U,style:He})),he!==o&&0<be&&(M=d(Ue.quadrantlabeltrbordercolor,Ue.quadrantlabelbordercolor,o),$e=l(Ue.quadrantlabeltrbgcolor,Ue.quadrantlabelbgcolor),Ve=h(Ue.quadrantlabeltrborderthickness,Ue.quadrantlabelborderthickness,1),M=M?W(M,h(Ue.quadrantlabeltrborderalpha,Ue.quadrantlabelborderalpha,Ue.quadrantlabeltralpha,Ue.quadrantlabelalpha,100)):o,He={left:Ae,top:Ce,fontSize:l(h(Ue.quadrantlabeltrfontsize,Ue.quadrantlabelfontsize),parseInt(_e.fontSize,10))+at,lineHeight:_e.lineHeight,fontFamily:l(Ue.quadrantlabeltrfont,Ue.quadrantlabelfont,_e.fontFamily),color:W(l(Ue.quadrantlabeltrfontcolor,Ue.quadrantlabelfontcolor,_e.color),h(Ue.quadrantlabeltrfontalpha,Ue.quadrantlabelfontalpha,100)),fontWeight:h(Ue.quadrantlabeltrfontbold,Ue.quadrantlabelfontbold)?"bold":"normal",fontStyle:h(Ue.quadrantlabeltrfontitalic,Ue.quadrantlabelfontitalic)?"italic":"normal",border:M||$e?Ve+"px solid":o,borderColor:M,borderThickness:Ve,borderPadding:h(Ue.quadrantlabeltrborderpadding,Ue.quadrantlabelborderpadding,2),borderRadius:h(Ue.quadrantlabeltrborderradiu
32s,Ue.quadrantlabelborderradius,0),backgroundColor:$e?W($e,h(Ue.quadrantlabeltrbgalpha,Ue.quadrantlabelbgalpha,Ue.quadrantlabeltralpha,Ue.quadrantlabelalpha,100)):o,borderDash:h(Ue.quadrantlabeltrborderdashed,Ue.quadrantlabelborderdashed,0)?m(h(Ue.quadrantlabeltrborderdashlen,Ue.quadrantlabelborderdashlen,4),h(Ue.quadrantlabeltrborderdashgap,Ue.quadrantlabelborderdashgap,2),Ve):"none"},N(He),b.setStyle(He),we=b.getSmartText(he,ve,ye),r.labels.items.push({html:we.text,textAlign:Y,title:we.title,zIndex:3,vAlign:U,style:He}))),0<xe&&(de!==o&&0<ve&&(M=d(Ue.quadrantlabelblbordercolor,Ue.quadrantlabelbordercolor,o),$e=l(Ue.quadrantlabelblbgcolor,Ue.quadrantlabelbgcolor),Ve=h(Ue.quadrantlabelblborderthickness,Ue.quadrantlabelborderthickness,1),M=M?W(M,h(Ue.quadrantlabelblborderalpha,Ue.quadrantlabelborderalpha,Ue.quadrantlabelblalpha,Ue.quadrantlabelalpha,100)):o,He={left:ke,top:Se,fontSize:l(h(Ue.quadrantlabelblfontsize,Ue.quadrantlabelfontsize),parseInt(_e.fontSize,10))+at,lineHeight:_e.lineHeight,fontFamily:l(Ue.quadrantlabelblfont,Ue.quadrantlabelfont,_e.fontFamily),color:W(l(Ue.quadrantlabelblfontcolor,Ue.quadrantlabelfontcolor,_e.color),h(Ue.quadrantlabelblfontalpha,Ue.quadrantlabelfontalpha,100)),fontWeight:h(Ue.quadrantlabelblfontbold,Ue.quadrantlabelfontbold)?"bold":"normal",fontStyle:h(Ue.quadrantlabelblfontitalic,Ue.quadrantlabelfontitalic)?"italic":"normal",border:M||$e?Ve+"px solid":o,borderColor:M,borderThickness:Ve,borderPadding:h(Ue.quadrantlabelblborderpadding,Ue.quadrantlabelborderpadding,2),borderRadius:h(Ue.quadrantlabelblborderradius,Ue.quadrantlabelborderradius,0),backgroundColor:$e?W($e,h(Ue.quadrantlabelblbgalpha,Ue.quadrantlabelbgalpha,Ue.quadrantlabelblalpha,Ue.quadrantlabelalpha,100)):o,borderDash:h(Ue.quadrantlabelblborderdashed,Ue.quadrantlabelborderdashed,0)?m(h(Ue.quadrantlabelblborderdashlen,Ue.quadrantlabelborderdashlen,4),h(Ue.quadrantlabelblborderdashgap,Ue.quadrantlabelborderdashgap,2),Ve):"none"},N(He),b.setStyle(He),we=b.getSmartText(de,ve,ye),r.labels.items.push({html:we.text,textAlign:X,title:we.title,zIndex:3,vAlign:G,style:He})),ue!==o&&0<be&&(M=d(Ue.quadrantlabelbrbordercolor,Ue.quadrantlabelbordercolor,o),$e=l(Ue.quadrantlabelbrbgcolor,Ue.quadrantlabelbgcolor),Ve=h(Ue.quadrantlabelbrborderthickness,Ue.quadrantlabelborderthickness,1),M=M?W(M,h(Ue.quadrantlabelbrborderalpha,Ue.quadrantlabelborderalpha,Ue.quadrantlabelbralpha,Ue.quadrantlabelalpha,100)):o,He={left:Ae,top:Se,fontSize:l(h(Ue.quadrantlabelbrfontsize,Ue.quadrantlabelfontsize),parseInt(_e.fontSize,10))+at,lineHeight:_e.lineHeight,fontFamily:l(Ue.quadrantlabelbrfont,Ue.quadrantlabelfont,_e.fontFamily),color:W(l(Ue.quadrantlabelbrfontcolor,Ue.quadrantlabelfontcolor,_e.color),h(Ue.quadrantlabelbrfontalpha,Ue.quadrantlabelfontalpha,100)),fontWeight:h(Ue.quadrantlabelbrfontbold,Ue.quadrantlabelfontbold)?"bold":"normal",fontStyle:h(Ue.quadrantlabelbrfontitalic,Ue.quadrantlabelfontitalic)?"italic":"normal",border:M||$e?Ve+"px solid":o,borderColor:M,borderThickness:Ve,borderPadding:h(Ue.quadrantlabelbrborderpadding,Ue.quadrantlabelborderpadding,2),borderRadius:h(Ue.quadrantlabelbrborderradiu
32s,Ue.quadrantlabelborderradius,0),backgroundColor:$e?W($e,h(Ue.quadrantlabelbrbgalpha,Ue.quadrantlabelbgalpha,Ue.quadrantlabelbralpha,Ue.quadrantlabelalpha,100)):o,borderDash:h(Ue.quadrantlabelbrborderdashed,Ue.quadrantlabelborderdashed,0)?m(h(Ue.quadrantlabelbrborderdashlen,Ue.quadrantlabelborderdashlen,4),h(Ue.quadrantlabelbrborderdashgap,Ue.quadrantlabelborderdashgap,2),Ve):"none"},N(He),b.setStyle(He),we=b.getSmartText(ue,ve,ye),r.labels.items.push({html:we.text,textAlign:Y,vAlign:G,title:we.title,zIndex:3,style:He}))))),this.hasVDivLine&&(Te=h(Ue.showvdivlines,0),Le=h(Ue.numvdivlines,0)+1,Te&&(Le=x.x.catCount-1),1<Le)){for(Pe=P.min,Ie=x.x.catCount-1,Me=P.max,Fe=Ie/Le,Re=!0,Be=Pe,P.scroll&&!isNaN(P.scroll.viewPortMax)&&(Me=P.scroll.viewPortMax),De=l(Ue.vdivlinecolor,Ft),Ee=h(Ue.vdivlinealpha,Rt),te=h(Ue.vdivlinethickness,Bt),ee=h(Ue.vdivlinedashed,Ue.vdivlineisdashed,Nt),ie=h(Ue.vdivlinedashlen,jt),ne=h(Ue.vdivlinedashgap,$t),(je=h(Ue.showalternatevgridcolor,0))&&(Ne=W(l(Ue.alternatevgridcolor,Ge.getColor("altVGridColor")),l(Ue.alternatevgridalpha,Ge.getColor("altVGridAlpha")))),Oe=Fe;Oe<Ie;Oe+=Fe,Re=!Re)Re&&je&&P.plotBands.push({isNumVDIV:!0,color:Ne,from:Be,to:Oe,zIndex:1}),P.plotLines.push({isNumVDIV:!0,width:te,color:W(De,Ee),dashStyle:ee?m(ie,ne,te):"none",value:Oe,zIndex:1}),Be=Oe;Re&&je&&P.plotBands.push({isNumVDIV:!0,color:Ne,from:Be,to:Me,zIndex:1})}return F=I.marginTop,R=I.marginBottom,$=I.marginLeft,z=I.marginRight,O.canvasstartx=$,O.canvasstarty=F,O.canvasendx=e-z,O.canvasendy=i-R,O.canvaswidth=O.canvasendx-O.canvasstartx,O.canvasheight=O.canvasendy-O.canvasstarty,r.legend&&r.legend.enabled&&"vertical"===r.legend.layout&&(O.legendstarty=F+.5*(x.height-R-F-O.legendheight)+(r.legend.y||0),O.legendendy=O.legendstarty+O.legendheight),a&&I.xDepth>I.marginLeft&&(I.marginLeft=I.xDepth),n.console&&n.console.log&&n.FC_DEV_ENVIRONMENT&&console.log(r),r},parseHoverEffectOptions:function(t){var e,i=this.dataObj.chart;t.showHoverEffect=i.showhovereffect,t.plotHoverEffect=h(i.plothovereffect,i.anchorhovereffect,t.showHoverEffect),(e=t.plotHoverEffects={enabled:t.plotHoverEffect}).highlight=h(i.highlightonhover,i.highlightplotonhover,t.plotHoverEffect),e.columnHighlight=h(e.highlight,i.highlightcolumnonhover,i.highlightbaronhover),e.anchorHighlight=h(e.highlight,i.highlightanchoronhover),e.imageHighlight=h(e.highlight,i.highlightanchorimageonhover),e.anchorImageHoverAlpha=l(i.anchorimagehoveralpha),e.anchorImageHoverScale=l(i.anchorimagehoverscale),e.bubbleHighlight=h(e.highlight,i.highlightbubbleonhover),e.color=l(i.plotfillhovercolor,i.columnhovercolor,i.barhovercolor,i.bubblehovercolor),e.alpha=l(i.plotfillhoveralpha,i.columnhoveralpha,i.barhoveralpha,i.bubblehoveralpha),e.scale=l(i.plothoverscale,i.columnhoverscale,i.barhoverscale,i.bubblehoverscale),e.gradientColor=i.plothovergradientcolor,e.ratio=i.plothoverratio,e.angle=i.plothoverangle,e.borderColor=i.plotborderhovercolor,e.borderAlpha=i.plotborderhoveralpha,e.borderThickness=i.plotborderhoverthickness,e.borderDashed=i.plotborderhoverdashed,e.borderDashGap=i.plotborderhoverdashgap,
33e.borderDashLen=i.plotborderhoverdashlen,e.shadow=i.plothovershadow,e.anchorScale=i.anchorhoverscale,e.anchorSides=i.anchorhoversides,e.anchorRadius=i.anchorhoverradius,e.anchorAlpha=i.anchorhoveralpha,e.anchorBgColor=l(i.anch
33orbghovercolor,i.anchorhovercolor),e.anchorBgAlpha=i.anchorbghoveralpha,e.anchorBorderColor=i.anchorborderhovercolor,e.anchorBorderAlpha=i.anchorborderhoveralpha,e.anchorBorderThickness=i.anchorborderhoverthickness,e.anchorStartAngle=i.anchorhoverstartangle,e.anchorDip=h(i.anchorhoverdip),e.anchorAnimation=h(i.anchorhoveranimation,1),e.negativeColor=l(i.negativehovercolor,i.negativecolor),e.is3DBubble=h(i.is3donhover)},parseExportOptions:function(t){var e=this.chartInstance,i=this.dataObj.chart;g(t.exporting,{enabled:h(i.exportenabled,0),bgcolor:e.jsVars.transparent||0===h(e.options.containerBackgroundOpacity,1)?o:e.options.containerBackgroundColor||"#ffffff",bgalpha:(e.jsVars.transparent?0:h(e.options.containerBackgroundOpacity,1))+o,exporttargetwindow:l(i.exporttargetwindow,lt?"_blank":"_self"),exportaction:i.exportaction&&"save"===i.exportaction.toString().toLowerCase()?"save":"download",exportfilename:l(i.exportfilename,"FusionCharts"),exporthandler:l(i.html5exporthandler,i.exporthandler,s),exportparameters:l(i.exportparameters,o),exportformat:l(i.exportformat,"PNG"),exportcallback:l(i.exportcallback,o),exportwithimages:h(i.exportwithimages,1),exportatclientside:h(i.exportatclientside,0),buttons:{printButton:{enabled:!!h(i.printshowbutton,i.showprintmenuitem,0)},exportButton:{enabled:!(!h(i.exportenabled,0)||!h(i.exportshowbutton,i.exportshowmenuitem,1))}}});var n,r,a,c;e=t.exporting;if(i=i.exportformats,t={JPG:(t=w(t.exporting.exportaction))+" as JPEG image",PNG:t+" as PNG image",PDF:t+" as PDF document",SVG:t+" as SVG vector image"},i){for(i=i.split(/\s*?\|\s*?/),c=0;c<i.length;c++)a=(r=i[c].split(/\s*?=\s*?/))&&r[0].toUpperCase()||o,r=r&&r[1]||o,t[a]&&(n||(n={}))&&(n[a]=r||t[a]);n=n||t}else n=t;e.exportformats=n},defaultSeriesType:o,paletteIndex:1,creditLabel:ct,titleSpaceManager:Ft,placeLegendBlockBottom:$t,configureLegendOptions:Nt,placeLegendBlockRight:jt,placeHorizontalAxis:Bt,placeVerticalAxis:Ot,placeHorizontalCanvasMarginAdjustment:qt,placeVerticalCanvasMarginAdjustment:zt,placeHorizontalXYSpaceManager:function(t,e,i,n){var r,o,a,s,c,d,u,p,g,m,v,b=t[f],y=e.chart,x=t.chart,w=b.marginLeftExtraSpace,_=b.marginTopExtraSpace,C=b.marginBottomExtraSpace,S=b.marginRightExtraSpace;s=i-(w+S+x.marginRight+x.marginLeft);var k=n-(C+x.marginBottom+x.marginTop),A=.3*s;i=.3*k;var T=t.xAxis.showLine?t.xAxis.lineThickness:0;a=t.yAxis[0].showLine?t.yAxis[0].lineThickness:0,r=s-A,n=k-i,c=l(y.legendposition,G).toLowerCase(),t.legend.enabled&&c===Y&&(r-=this.placeLegendBlockRight(t,e,r/2,k)),g=h(y.xaxisnamepadding,5),m=h(y.labelpadding,4),v=(v=l(y.rotatexaxisname,"ccw"))===nt?"none":v,d=l(y.showplotborder,b.is3d?nt:rt)===rt,d=b.plotBorderThickness=d?b.is3d?1:h(y.plotborderthickness,1):0,u=L(h(x.plotBorderWidth,1),0),!b.isDual&&x.marginRight<u&&void 0===y.chartrightmargin&&(s>A+(o=u-x.marginRight)&&(x.marginRight=u,r=(s-=o)-(A=.3*s))),o=b.x,m<(p=L(u,d/2))&&(m=p),o.verticalAxisNamePadding=g,o.verticalAxisValuesPadding=m+T,o.rotateVerticalAxisName=v,o.verticalAxisNameWidth=h(y.xaxisnamewidth),r-=Ot(t.xAxis,o,t,e,k,r,!1,!1,s),t.xAxis.lineEndExtension=a,s=(r-=qt(t,e,r,t.xAxis))+A,t.legend.enabled&&c!==Y&&(n-=this.placeLegendBlockBottom(t,e,s,n/2)),n-=this.titleSpaceManager(t,e,s,n/2),(o=b[0]).horizontalAxisNamePadding=h(y.yaxisnamepadding,5),o.horizontalLabelPadding=L(h(y.yaxisvaluespadding,4))+a,o.labelDisplay="auto",o.staggerLines=h(y.staggerlines,2),o.slantLabels=h(y.slantlabels,0),o.horizontalLabelPadding=o.horizontalLabelPadding<u?u:o.horizontalLabelPadding,this.xAxisMinMaxSetter(t,e,s),g=(a=t.xAxis).plotLines,r=n/(a.max-a.min),g&&g.length&&(u=(g[0].value-a.min)*r,g=(a.max-g[g.length-1].value)*r,b.isBar&&(d>u&&(a.min-=(d-u)/(2*r)),d>g&&(a.max+=(d-g)/(2*r)))),n-=this.placeHorizontalAxis(t.yAxis[0],o,t,e,s,n,A),n-=zt(t,e,n,t.yAxis[0]),Rt(i+n,t,y,t.xAxis,b.x.lYLblIdx,!0),Wt(t,t.xAxis.title,n),t.legend.enabled&&c===Y&&(e=i+n,(t=t.legend).height>e&&(t.height=e,t.scroll.enabled=!0,e=(t.scroll.scrollBarWidth=10)+(t.scroll.scrollBarPadding=2),t.width+=e,x.marginRight+=e),t.y=20),x.marginLeft+=w,x.marginTop+=_,x.marginBottom+=C,x.marginRight+=S}
33,placeVerticalXYSpaceManager:function(t,e,i,n){var r,o,a=t[f],s=!0;r=0;var c,d,u,p,g,m,v,b=e.chart,y=!1,x=t.chart,w=a.marginLeftExtraSpace,_=a.marginTopExtraSpace,C=a.marginBottomExtraSpace,S=a.marginRightExtraSpace;p=i-(w+S+x.marginRight+x.marginLeft);var k=n-(C+x.marginBottom+x.marginTop),A=.3*p,T=p-A;i=k-(n=.3*k),r=a.drawFullAreaBorder=h(b.drawfullareaborder,1);var D=l(b.legendposition,G).toLowerCase();g=t.xAxis.showLine?t.xAxis.lineThickness:0,m=t.yAxis[0].showLine?t.yAxis[0].lineThickness:0,v=a.isDual&&t.yAxis[1].showLine?t.yAxis[1].lineThickness:0,c=h(b.yaxisnamepadding,5),d=h(b.yaxisvaluespadding,b.labelypadding,4),o=l(b.showplotborder,a.is3d?nt:rt)===rt,o=a.plotBorderThickness=o?a.is3d?1:h(b.plotborderthickness,1):0,u=L(h(x.plotBorderWidth,1),0),o=L(u,o/2),"area"!==this.defaultSeriesType||r||(o=u),d<u&&(d=u),!a.isDual&&x.marginRight<u&&void 0===b.chartrightmargin&&(p>A+(r=u-t.chart.marginRight)&&(T=(p-=r)-(A=.3*p))),t.legend.enabled&&D===Y&&(T-=this.placeLegendBlockRight(t,e,T/2,k)),a.isDual&&(y=!0,r=a[1],s=t.yAxis[1].opposite,u=(u=l(b.rotateyaxisname,s?"cw":"ccw"))===nt?"none":u,r.verticalAxisNamePadding=c,r.verticalAxisValuesPadding=d+v,r.rotateVerticalAxisName=u,r.verticalAxisNameWidth=h(b.syaxisnamewidth),T-=Ot(t.yAxis[1],r,t,e,k,T/2,s,y)),r=a[0],s=!s,u=(u=l(b.rotateyaxisname,s?"cw":"ccw"))===nt?"none":u,r.verticalAxisNamePadding=c,r.verticalAxisValuesPadding=d+m,r.rotateVerticalAxisName=u,r.verticalAxisNameWidth=h(y?b.pyaxisnamewidth:b.yaxisnamewidth),T-=Ot(t.yAxis[0],r,t,e,k,T,s,y,p),s=(T-=qt(t,e,T,t.yAxis[0],t.yAxis[1]))+A,t.legend.enabled&&D!==Y&&(i-=this.placeLegendBlockBottom(t,e,s,i/2)),i-=this.titleSpaceManager(t,e,s,i/2),(r=a.x).horizontalAxisNamePadding=h(b.xaxisnamepadding,5),r.horizontalLabelPadding=h(b.labelpadding,b.labelxpadding,4)+g,r.labelDisplay=l(b.labeldisplay,"auto").toLowerCase(),r.rotateLabels=h(b.rotatelabels,b.rotatexaxislabels,0),r.staggerLines=h(b.staggerlines,2),r.slantLabels=h(b.slantlabels,b.slantlabel,0),t.yAxis[0].opposite?(t.xAxis.lineEndExtension=m,t.xAxis.lineStartExtension=v):(t.xAxis.lineEndExtension=v,t.xAxis.lineStartExtension=m),r.horizontalLabelPadding<o&&(r.horizontalLabelPadding=o),p={left:0,right:0},(g=(p=x.managePlotOverflow&&this.canvasPaddingModifiers&&this.calculateCanvasOverflow(t,!0)||p).left+p.right)>(m=.6*s)&&(v=p.left/g,p.left-=v*(g-m),p.right-=(1-v)*(g-m)),this.xAxisMinMaxSetter(t,e,s,p.left,p.right),i-=this.placeHorizontalAxis(t.xAxis,r,t,e,s,i,A),i-=zt(t,e,i,t.xAxis),t.title.alignWithCanvas||("left"===t.title.align&&t.yAxis[0].title.text&&Ht(t,t.yAxis[0].title,n+i),"right"===t.title.align&&y&&t.yAxis[1].title.text&&Ht(t,t.yAxis[1].title,n+i)),y&&(Rt(n+i,t,b,t.yAxis[1],a[1].lYLblIdx),Wt(t,t.yAxis[1].title,n+i)),Rt(n+i,t,b,t.yAxis[0],a[0].lYLblIdx),Wt(t,t.yAxis[0].title,n+i),t.legend.enabled&&D===Y&&(e=n+i,(t=t.legend).height>e&&"gradient"!==t.type&&(t.height=e,t.scroll.enabled=!0,e=(t.scroll.scrollBarWidth=10)+(t.scroll.scrollBarPadding=2),t.width+=e,x.marginRight+=e)),x.marginLeft+=w,x.marginTop+=_,x.marginBottom+=C,x.marginRight+=S},placeVerticalAxisTitle:Wt,calculateCanvasOverflow:function(t,e){for(var i,n,r,a,s,l=this.canvasPaddingModifiers,c=t.chart,h=this.smartLabel,d=0,u=0,p=0,f=0,g=d=!1,m=!1,v=l&&l.length||0;v--;)switch(u=l[v],u){case"anchor":g=n=d=!0;break;case"anchorlabel":r=n=d=!0;break;case"errorbar":m=d=!0}if(d&&(v=(l=t.series)&&l.length||0,e))for(;v--;)i=l[v],n&&(1<(d=i&&i.data||[]).length&&(a=d[0],s=d[d.length-1],g&&(d=a&&a.marker&&a.marker.enabled&&(a.marker.radius||0)+(a.marker.lineWidth||0)||0,u=s&&s.marker&&s.marker.enabled&&(s.marker.radius||0)+(s.marker.lineWidth||0)||0,p=L(d+2,p),f=L(u+2,f)),r&&(h.setStyle(t.plotOptions.series.dataLabels.style),c.rotateValues?(d=(u=h.getOriSize(a&&a.displayValue||o)).height/2,u=(u=h.getOriSize(s&&s.displayValue||o)).height/2):(d=(u=h.getOriSize(a&&a.displayValue||o)).width/2,u=(u=h.getOriSize(s&&s.displayValue||o)).width/2),p=L(d+2,p),f=L(u+2,f)))),m&&(u=d=i.errorBarWidth/2+i.errorBarThickness||0,p=L(d+2,p),f=L(u+2,f));return{left:p,right:f}},spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)}
33,axisMinMaxSetter:function(t,e,i,n,r,o,a,s){i=e.stacking100Percent?xt(99,1,100,0,r,o,a,s):xt(h(e.max,i),h(e.min,n),i,n,r,o,a,s),t.min=Number(b(i.Min,10)),t.max=Number(b(i.Max,10)),t.tickInterval=Number(b(i.divGap,10)),e.numdivlines=S.round((t.max-t.min)/t.tickInterval)-1,2>=i.Range/i.divGap&&(t.alternateGridColor=z),this.highValue=e.max,this.lowValue=e.min,delete e.max,delete e.min},configurePlotLines:function(t,e,i,n,r,a,s,c,d,u,p){var g,m=i.min,v=i.max,y=i.tickInterval,x=u?"xAxis":n.stacking100Percent?"percentValue":"yAxis",w=m,_=1,C=i.gridLineColor,S=i.gridLineWidth,k=i.gridLineDashStyle,A=0>m&&0<v,L=0===m,D=0===v,E=0===h(n.showzeroplanevalue,t.showzeroplanevalue),P=!0,I=1,M=0<h(t.numdivlines,0),O=e[f].axisGridManager,F=this.colorManager,R=this.is3D,B=h(t.showaxislimitgridlines,this.showAxisLimitGridLines),N=(R=h(B,R||e.chart.plotBorderWidth?0:1),this.inversed);for(e=e.xAxis,p=h(p,d?1:0),delete i._altGrid,delete i._lastValue,u&&!n.catOccupied&&(n.catOccupied={}),!A||u&&n.catOccupied[0]||(u?(P=h(t.showvzeroplane,1),g=h(t.showvzeroplanevalue,a),M=h(t.vzeroplanethickness,1),F=l(t.vzeroplanealpha,t.vdivlinealpha,F.getColor("divLineAlpha")),t=0<M?W(l(t.vzeroplanecolor,C),F):z):(F=h(t.divlinealpha,F.getColor("divLineAlpha")),g=h(n.showzeroplanevalue,t.showzeroplanevalue,a),!1===this.defaultZeroPlaneHighlighted?(P=h(n.showzeroplane,t.showzeroplane,!(this.defaultZeroPlaneHidden&&!M)),M=S):(M=1===S?2:S,I=5,F=T(2*F,100)),M=h(n.zeroplanethickness,t.zeroplanethickness,M),F=l(n.zeroplanealpha,t.zeroplanealpha,F),t=0<M?W(l(n.zeroplanecolor,t.zeroplanecolor,C),F):z),P&&(g=g?c[x](0,p):o,(I=O.addAxisGridLine(i,0,g,M,k,t,I,u))&&(I.isZeroPlane=!0)),i.effectiveZeroPlaneThickness=P&&parseInt(F,10)&&M),u&&n.catOccupied[m]||(g=!r||L&&E?o:c[x](m,p),(I=B||R&&(N||!e.showLine)?O.addAxisGridLine(i,m,g,S,k,C||z,2,u):O.addAxisGridLine(i,m,g,.1,void 0,z,2,u))&&(I.isMinLabel=!0)),0>=S&&(S=.1,C=z),m=Number(b(w+y,10));m<v;m=Number(b(m+y,10)),_+=1)A&&0>w&&0<m&&!d&&(O.addAxisAltGrid(i,0),_+=1),0===m||u&&n.catOccupied[m]||(g=1===a&&0==_%s?c[x](m,p):o,O.addAxisGridLine(i,m,g,S,k,C,2,u)),w=m,d||O.addAxisAltGrid(i,m);d||O.addAxisAltGrid(i,v),0!=_%s||u&&n.catOccupied[v]||(g=!r||D&&E?o:c[x](v,p),(I=B||R&&(!N||!e.showLine)?O.addAxisGridLine(i,v,g,S,k,C||z,2,u):O.addAxisGridLine(i,v,g,.1,k,z,2,u))&&(I.isMaxLabel=!0)),this.realtimeEnabled&&(i.labels._enabled=i.labels.enabled,i._gridLineWidth=i.gridLineWidth,i._alternateGridColor=i.alternateGridColor),i.labels.enabled=!1,i.gridLineWidth=0,i.alternateGridColor=z,i.plotLines.sort(Vt)},xAxisMinMaxSetter:function(t,e,i,n,r){var o,s,l,c,d=t[f],u=d.x,p=e.chart,g=u.min=h(u.min,0),m=u.max=h(u.max,u.catCount-1),v=0,b=0,y=t.chart.defaultSeriesType,x=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(y),w=/^(line|area|spline|areaspline)$/.test(y),_=(y=/^(scatter|bubble|candlestick|dragnode)$/.test(y),t.xAxis),S=_.scroll,k=S&&S.enabled,A=h(p.canvaspadding),L=C(A),D=E(T(h(A,n,0),i/2-10));A=E(T(h(A,r,0),i/2-10));u.adjustMinMax&&(m=g=!(o=h(p.setadaptivexmin,1)),s=h(this.numVDivLines,p.numvdivlines,4),l=p.adjustvdiv!==nt,c=h(p.showxaxisvalues,p.showxaxisvalue,1),o=h(p.showvlimits,c),c=h(p.showvdivlinevalue,p.showvdivlinevalues,c),this.axisMinMaxSetter(_,u,p.xaxismaxvalue,p.xaxisminvalue,g,m,s,l),g=_.min,m=_.max,u.requiredAutoNumericLabels&&(s=h(parseInt(p.xaxisvaluesstep,10),1),this.configurePlotLines(p,t,_,u,o,c,1>s?1:s,d.numberFormatter,!1,!0)),_.plotLines.sort(Vt)),_.labels.enabled=!1,_.gridLineWidth=0,_.alternateGridColor=z,(x||d.isScroll)&&!d.hasNoColumn&&!L&&C(n)&&C(r)&&(D=0<(b=i/(m-g+1)*.5)-n?0:D,A=0<b-r?0:A,v=0<b-n?.5:0,b=0<b-r?.5:0),x&&!d.hasNoColumn&&(b=v=.5),d.is3d&&(D+=h(t.chart.xDepth,0)),t=(i-(D+A))/((k?S.vxLength:m)-g+(v+b)),_.min=g-(v+D/t),_.max=m+(b+A/t),k&&(v=S.vxLength,t=_.max-_.min,S.viewPortMin=_.min,S.viewPortMax=_.max,S.scrollRatio=v/t,S.flatScrollBars=d.flatScrollBars,S.scrollBar3DLighting=d.scrollBar3DLighting,_.max=_.min+v),w&&_.min===_.max&&(_.min-=.65,_.max+=.65),y&&e.vtrendlines&&a(e.vtrendlines,_,d,!1,!0,!0)},postSeriesAddition:function(t){var e,i,n,r,o,a,s,c,d,u,p,m,b,y,x,w,_,C,S,k,A,T,L,D=t[f],E=D.isBar,P=D.is3d,I=t.chart.rotateValues&&!E?270:0,M=D[0],O=M&&M.stacking100Percent;if(this.isStacked)for(n in e=D.plotSpacePercent,i=t.chart.defaultSeriesType,e=1-2*e,w=t.series,_=this.numberFormatter,A=g({},t.plotOptions.series.dataLabels.style),T=parseFloat(A.fontSize),L=!M.stacking100Percent,A.color=this.newArchitecture?"rgba(0,0,0,0)":t.plotOptions.series.dataLabels.color,A.backgroundColor=this.newArchitecture?"rgba(0,0,0,0)":t.plotOptions.series.dataLabels.backgroundColor,A.borderColor=this.newArchitecture?"rgba(0,0,0,0)":t.plotOptions.series.dataLabels.borderColor,r=M.stack){for(s=-(e-(o=e/(M=r[n].length)))/2,y=[],m=0,c=w.length;m<c;m+=1)(d=w[m]).yAxis||l(d.type,i)!==n||y.push(d);for(a=0;a<M;a+=1,s+=o){for(p=r[n][a],x=[],m=0,c=y.length;m<c;m+=1)d=y[m],h(d.columnPosition,0)===a&&x.push(d.data);if(p&&p.length)for(u=0,d=p.length;u<d;u+=1)if(m=p[u])for(b=(m.n||0)+(m.p||0),D.showStackTotal&&(c=u,c+=s,m=0>b?m.n:m.p,t.xAxis.plotLines.push({value:c,width:0,isVline:L,isTrend:!L,zIndex:4,_isStackSum:1,_catPosition:u,_stackIndex:a,label:{align:q,textAlign:P||270!==I?E?0>b?Y:X:q:0>b?Y:X,offsetScale:L?m:void 0,offsetScaleIndex:0,rotation:I,style:A,verticalAlign:U,y:E?0:0>b?270===I?4:T:-4,x:0,text:D.numberFormatter.yAxis(b)}})),m=0,c=x.length;m<c;m+=1)(S=x[m][u])&&(k=b&&(S.y||0)/b*100,C=_.percentValue(k),S.toolText=v(S.toolText,[14,24,25,112],{percentValue:C,sum:_.dataLabels(b),unformattedSum:b}),(S.y||0===S.y)&&(O&&(S.y=k,S.previousY||0===S.previousY)&&(S.previousY=S.previousY/b*100),S.showPercentValues&&(S.displayValue=C),D.showPercentValues&&(S.displayValueArgs=C)))}}}
33,styleMapForFont:Lt,styleApplicationDefinition_font:function(t,e,i){var n,r,o,a,s=!1,l=this.styleMapForFont;switch(e){case"caption":n=t.title;break;case"datalabels":n=t.xAxis.labels;break;case"datavalues":n=t.plotOptions.series.dataLabels,s=!0;break;case"tldatavalues":n={style:t.plotOptions.series.dataLabels.tlLabelStyle};break;case"trdatavalues":n={style:t.plotOptions.series.dataLabels.trLabelStyle};break;case"bldatavalues":n={style:t.plotOptions.series.dataLabels.blLabelStyle};break;case"brdatavalues":n={style:t.plotOptions.series.dataLabels.brLabelStyle};break;case"subcaption":n=t.subtitle;break;case"tooltip":n=t.tooltip;break;case"trendvalues":n={style:t[f].trendStyle};break;case"xaxisname":n=t.xAxis.title;break;case"yaxisname":case"pyaxisname":case"axistitle":for(n=[],e=0,o=t.yAxis.length;e<o;e+=1)n.push(t.yAxis[e].title);break;case"yaxisvalues":for(n=[],e=0,o=t.yAxis.length;e<o;e+=1)n.push(t.yAxis[e].labels);break;case"vlinelabels":n={style:t[f].divlineStyle};break;case"legend":n={style:t.legend.itemStyle};break;default:(n=t.orphanStyles[e])||(t.orphanStyles[e]=n={text:"",style:{}})}if("object"==typeof n)if(n instanceof Array)for(e=0,o=n.length;e<o;e+=1){for(r in a=n[e],i)"function"==typeof l[t=r.toLowerCase()]&&l[t](i[r],a,s);N(a.style)}else{for(r in i)"function"==typeof l[t=r.toLowerCase()]&&l[t](i[r],n,s);N(n.style)}},parseStyles:function(t){var e,i,n,r,o={},a=this.dataObj;if(a.styles&&a.styles.definition instanceof Array&&a.styles.application instanceof Array){for(e=0;e<a.styles.definition.length;e+=1)(i=a.styles.definition[e]).type&&i.name&&this["styleApplicationDefinition_"+i.type.toLowerCase()]&&(o[i.name.toLowerCase()]=i);for(e=0;e<a.styles.application.length;e+=1)for(i=a.styles.application[e].styles&&a.styles.application[e].styles.split(et)||[],r=0;r<i.length;r+=1)o[n=i[r].toLowerCase()]&&a.styles.application[e].toobject&&this["styleApplicationDefinition_"+o[n].type.toLowerCase()](t,a.styles.application[e].toobject.toLowerCase(),o[n])}},updateDefaultAnnotations:function(){var t,e=this.renderer,i=this.dataObj,n=this.chartInstance,r=i&&i.annotations||{},o={};if(this.drawAnnotations&&n.dataReady()&&i&&i.chart&&h(i.chart.showannotations,1)){t=h(r.scaleonresize,i.chart.scaleonresize,1);var a;e={interactionevents:l(this.annotationInteractionEvents,!0),showbelow:l(r.showbelow,r.showbelowchart),autoscale:r.autoscale,scaletext:r.scaletext,scaleimages:r.scaleimages,constrainedscale:r.constrainedscale,scaleonresize:t,origw:l(r.origw,i.chart.origw,t?this.origRenderWidth:e.chartWidth),origh:l(r.origh,i.chart.origh,t?this.origRenderHeight:e.chartHeight),xshift:r.xshift,yshift:r.yshift,grpxshift:r.grpxshift,grpyshift:r.grpyshift,xscale:r.xscale,yscale:r.yscale,rootxscale:h(r.xscale,100)/100,rootyscale:h(r.yscale,100)/100};for(a in e||(e={}),o)e[a]=o[a];n.annotations.reset(r,e,this.snapLiterals)}else n.annotations.clear()},dispose:function(){var t,e,i,n,r;if(this.disposing=!0,e=this.renderer&&this.renderer.datasets&&this.renderer.datasets.length)for(r=0;r<e;r++)(n=(i=this.renderer.datasets[r].plot)&&i.groupManager)&&n.dispose(),i&&i.dispose&&i.dispose();for(t in this.renderer&&this.renderer.dispose(),this.numberFormatter&&this.numberFormatter.dispose(),this.hcJSON&&this.hcJSON.chart&&this.hcJSON.chart.renderTo&&delete this.hcJSON.chart.renderTo,this)delete this[t];delete this.disposing,this.disposed=!0}}),K("stub",{init:function(t,e,i){this.containerElement=t,this.smartLabel=i.jsVars.smartLabel},standaloneInit:!0},K.base),K("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},K.base),K("singleseries",{series:function(t,e,i){var n,r=t.data||t.dataset&&t.dataset[0]&&t.dataset[0].data;r&&0<r.length&&r instanceof Array&&(n={data:[],hoverEffects:this.parseSeriesHoverOptions(t,e,{},i),colorByPoint:!0},e.legend.enabled=!1,(i=this.point(i,n,r,t.chart,e))instanceof Array?e.series=e.series.concat(i):e.series.push(i),this.configureAxis(e,t),t.trendlines&&a(t.trendlines,e.yAxis,e[f],!1,this.isBar))},defaultSeriesType:o,configureAxis:function(t,e){var i,n,r,o,a,s,c,d,u,g,m,v,b,y,x,w,_,C,S,k,A=t[f],D=t.xAxis,E=e.chart,P=t.chart.is3D,I=0,M=this.numberFormatter,O=h(E.syncaxislimits,0);if(D.title.text=p(E.xaxisname),k=1>(k=h(parseInt(E.yaxisvaluesstep,10),parseInt(E.yaxisvaluestep,10),1))?1:k,i=t.yAxis[0],n=A[0],A.isDual)r=M.getCleanValue(E.pyaxismaxvalue),o=M.getCleanValue(E.pyaxisminvalue),i.title.text=p(E.pyaxisname),O&&!n.stacking100Percent?(v=A[1],m=h(v.max),v=h(v.min),void 0!==m&&void 0!==v&&(n.min=T(n.min,v),n.max=L(n.max,m)),m=M.getCleanValue(E.syaxismaxvalue),null!==(v=M.getCleanValue(E.syaxisminvalue))&&(o=null!==o?T(o,v):v),null!==m&&(r=null!==r?L(r,m):m)):O=0;else{if(r=M.getCleanValue(E.yaxismaxvalue),o=M.getCleanValue(E.yaxisminvalue),A.isSpline)for(v=0;v<t.series.length;v++)m=Mt(t.series[v].data,A.width,t.plotOptions.series.connectNullData),n.min=T(n.min,m.min),n.max=L(n.max,m.max);i.title.text=p(E.yaxisname)}s=a=!(c=h(this.isStacked?0:this.setAdaptiveYMin,E.setadaptiveymin,this.defSetAdaptiveYMin,0)),d=h(A.numdivlines,E.numdivlines,this.numdivlines,4),u=E.adjustdiv!==nt,g=h(this.showYAxisValues,E.showyaxisvalues,E.showyaxisvalue,1),m=h(E.showyaxislimits,E.showlimits,g),v=h(E.showdivlinevalue,E.showdivlinevalues,g),P||(I=h(E.showaxislines,E.drawAxisLines,0),x=h(E.axislinethickness,1),100<(_=h(E.axislinealpha,100))&&(_=100),y=W(l(E.axislinecolor,"#000000"),_),i.showLine
33=h(E.showyaxisline,I),b=D.showLine=h(E.showxaxisline,I),w=D.lineThickness=h(E.xaxislinethickness,x),i.lineThickness=h(E.yaxislinethickness,x),100<(C=D.lineAlpha=h(E.xaxislinealpha,_))&&(C=D.lineAlpha=100),100<(S=i.lineAlpha=h(E.yaxislinealpha,_))&&(S=i.lineAlpha=100),D.lineColor=W(l(E.xaxislinecolor,y),C),i.lineColor=W(l(E.yaxislinecolor,y),S),t.chart.xAxisLineVisible=b&&!!w&&0<C),this.axisMinMaxSetter(i,n,r,o,a,s,d,u),this.configurePlotLines(E,t,i,n,m,v,k,A.numberFormatter,!1),i.reversed&&0<=i.min&&(t.plotOptions.series.threshold=i.max),A.isDual&&(i=t.yAxis[1],n=A[1],m=h(E.showsecondarylimits,m),v=h(E.showdivlinesecondaryvalue,g),O?(D=t.yAxis[0],i.min=D.min,i.max=D.max,i.tickInterval=D.tickInterval,delete n.max,delete n.min):(r=M.getCleanValue(E.syaxismaxvalue),o=M.getCleanValue(E.syaxisminvalue),s=a=!(c=h(E.setadaptivesymin,c)),this.axisMinMaxSetter(i,n,r,o,a,s,d,u)),P||(i.showLine=h(E.showsyaxisline,I),i.lineThickness=h(E.syaxislinethickness,x),100<(P=i.lineAlpha=h(E.syaxislinealpha,_))&&(P=100),i.lineColor=W(l(E.syaxislinecolor,y),P)),this.configurePlotLines(E,t,i,n,m,v,k,A.numberFormatter,!0),i.title.text=p(E.syaxisname))},pointValueWatcher:function(t,e,i,n,r,o,a){var s;if(t=t[f],null!==e)return t[i=h(i,0)]||(t[i]={}),i=t[i],n&&(this.distributedColumns&&(t.marimekkoTotal+=e),n=i.stack,r=h(r,0),o=h(o,0),n[a=l(a,it)]||(n[a]=[]),(a=n[a])[o]||(a[o]=[]),(o=a[o])[r]||(o[r]={}),r=o[r],0<=e?void 0!==r.p?(s=r.p,e=r.p+=e):r.p=e:r.n?(s=r.n,e=r.n+=e):r.n=e),i.max=i.max>e?i.max:e,i.min=i.min<e?i.min:e,s},parseSeriesHoverOptions:function(t,e,i){return t=e.chart.plotHoverEffects,(e={enabled:l(i.showhovereffect,i.hovereffect,t.enabled)}).highlight=h(i.highlightonhover,i.highlightplotonhover,t.highlight),e.columnHighlight=h(e.highlight,i.highlightcolumnonhover,i.highlightbaronhover,t.columnHighlight),e.anchorHighlight=h(e.highlight,i.highlightanchoronhover,t.anchorHighlight),e.anchorHighlight=h(e.highlight,i.highlightimageonhover,t.imageHighlight),e.bubbleHighlight=h(e.highlight,i.highlightbubbleonhover,i.highlightbaronhover,t.bubbleHighlight),e.imageHoverAlpha=l(i.anchorimagehoveralpha,t.anchorImageHoverAlpha),e.imageHoverScale=l(i.anchorimagehoverscale,t.anchorImageHoverScale),e.color=l(i.hovercolor,i.bubblehovercolor,t.color),e.alpha=l(i.hoveralpha,t.alpha),e.scale=l(i.hoverscale,i.bubblehoverscale,t.scale),e.gradientColor=void 0!==i.hovergradientcolor?i.hovergradientcolor:t.gradientColor,e.ratio=l(i.hoverratio,t.ratio),e.angle=l(i.hoverangle,t.angle),e.borderColor=l(i.borderhovercolor,t.borderColor),e.borderAlpha=l(i.borderhoveralpha,t.borderAlpha),e.borderThickness=h(i.borderhoverthickness,t.borderThickness),e.borderDashed=h(i.borderhoverdashed,t.borderDashed),e.borderDashGap=h(i.borderhoverdashgap,t.borderDashGap),e.borderDashLen=h(i.borderhoverdashlen,t.borderDashLen),e.shadow=l(i.hovershadow,t.shadow),e.anchorSides=l(i.anchorhoversides,t.anchorSides),e.anchorRadius=l(i.anchorhoverradius,t.anchorRadius),e.anchorScale=l(i.anchorhoverscale,t.anchorScale),e.anchorAlpha=l(i.anchorhoveralpha,i.hoveralpha,t.anchorAlpha),e.anchorBgColor=l(i.anch
33orbghovercolor,i.anchorhovercolor,t.anchorBgColor),e.anchorBgAlpha=l(i.anchorbghoveralpha,t.anchorBgAlpha),e.anchorBorderColor=l(i.anchorborderhovercolor,t.anchorBorderColor),e.anchorBorderAlpha=l(i.anchorborderhoveralpha,t.anchorBorderAlpha),e.anchorBorderThickness=h(i.anchorborderhoverthickness,t.anchorBorderThickness),e.anchorStartAngle=l(i.anchorhoverstartangle,t.anchorStartAngle),e.anchorDip=l(i.anchorhoverdip,t.anchorDip),e.anchorAnimation=h(i.anchorhoveranimation,t.anchorAnimation,1),e.negativeColor=l(i.negativehovercolor,t.negativeColor),e.is3DBubble=h(i.is3donhover,t.is3DBubble),e},parseLegendOptions:function(t,e){var i={borderColor:l(e.legendiconbordercolor,t.legendiconbordercolor),bgColor:l(e.legendiconbgcolor,t.legendiconbgcolor),alpha:l(e.legendiconalpha,t.legendiconalpha),bgAlpha:l(e.legendiconbgalpha,t.legendiconbgalpha),sides:h(e.legendiconsides,t.legendiconsides),borderThickness:h(e.legendiconborderthickness,t.legendiconborderthickness),startAngle:h(e.legendiconstartangle,t.legendiconstartangle)};return(i.customLegendIcon=h(t.drawcustomlegendicon,e.drawcustomlegendicon))&&(i.startAngle=h(i.startAngle,45),i.symbol=Z(i.sides||4)),i},pointHoverOptions:function(t,e,i){var n,r,a,s={};n=e.hoverEffects,r=!1;var c={enabled:e=h(t.hovereffect,n&&n.enabled)},d=i&&o+i.plotType.toLowerCase();if(void 0===e&&(this.forceHoverEnable?r=e=c.enabled=!0:("anchor"==d&&(r=e=i.imageUrl?c.enabled=void 0!==l(t.anchorimagehoveralpha,n.imageHoverAlpha,t.anchorimagehoverscale,n.imageHoverScale,void 0):c.enabled=void 0!==l(t.hovercolor,t.anchorhovercolor,t.anchorbghovercolor,n.anchorBgColor,n.color,t.hoveralpha,t.anchorhoveralpha,n.anchorAlpha,t.bghoveralpha,t.anchorbghoveralpha,n.anchorBgAlpha,t.anchorborderhovercolor,t.borderhovercolor,n.anchorBorderColor,t.anchorborderhoverthickness,t.borderhoverthickness,n.anchorBorderThickness,t.anchorborderhoveralpha,t.borderhoveralpha,n.anchorBorderAlpha,t.hoverdip,t.anchorhoverdip,n.anchorDip,t.anchorhoverstartangle,n.anchorStartAngle,t.hoversides,t.anchorhoversides,n.anchorSides,t.hoverradius,t.anchorhoverradius,n.anchorRadius,void 0)),"column"!=d&&"bubble"!=d||(r=e=c.enabled=void 0!==l(t.hoveralpha,n.alpha,t.hovergradientcolor,n.gradientColor,t.borderhovercolor,n.borderColor,t.borderhoverthickness,n.borderThickness,t.hoverratio,n.ratio,t.hoverangle,n.angle,t.borderhoveralpha,n.borderAlpha,t.borderhoverdashed,n.borderDashed,t.borderhoverdashgap,n.borderDashGap,t.borderhoverdashlen,n.borderDashLen,t.hovercolor,n.color,void 0)),r||"bubble"!=d||(r=e=c.enabled=void 0!==l(t.negativehovercolor,n.negativeColor,t.is3donhover,n.is3DBubble,t.hoverscale,n.scale,void 0)),"pie"==d&&(r=e=c.enabled=void 0!==l(t.hovercolor,n.color,t.hoveralpha,n.alpha,t.borderhovercolor,n.borderColor,t.borderhoverthickness,n.borderThickness,t.borderhoveralpha,n.borderAlpha,void 0)))),e){if(c.highlight=h(t.highlightonhover,n.highlight),c.columnHighlight=h(c.highlight,t.highlightcolumnonhover,t.highlightbaronhover),c.anchorHighlight=h(c.highlight,t.highlightanchoronhover),c.bubbleHighlight=h(c.highlight,t.highlightbubbleonhover),c.alpha=l(t.hoveralpha,n.alpha,i.alpha),c.scale=l(t.hoverscale,n.scale,1),c.gradientColor=void 0===t.hovergradientcolor?n.gradientColor:t.hovergradientcolor,c.borderColor=l(t.borderhovercolor,n.borderColor,i.borderColor),c.borderThickness=h(t.borderhoverthickness,n.borderThickness,i.borderWidth),c.ratio=l(t.hoverratio,n.ratio,i.ratio),c.angle=l(t.hoverangle,n.angle,i.angle),c.borderAlpha=l(t.borderhoveralpha,n.borderAlpha,i.borderAlpha),c.borderDashed=h(t.borderhoverdashed,n.borderDashed,i.borderDashed,0),c.borderDashGap=h(t.borderhoverdashgap,n.borderDashGap,i.borderDashGap),c.borderDashLen=h(t.borderhoverdashlen,n.borderDashLen,i.borderDashLen),c.shadow=l(t.hovershadow,n.shadow,0),c.color=l(t.hovercolor,n.color),"anchor"==d&&(i.imageUrl&&(c.imageHoverAlpha=h(t.anchorimagehoveralpha,n.imageHoverAlpha,100),c.imageHoverScale=i.imageScale*D(h(t.anchorimagehoverscale,n.imageHoverScale,110))*.01,c.anchorAnimation=h(t.anchorhoveranimation,n.anchorAnimation,1)),c.anchorColor=B(l(t.hovercolor,t.anchorhovercolor,t.anchorbghovercolor,n.anchorBgColor,n.color,i.anchorBgColor)),c.anchorAlpha=l(t.hoveralpha,t.anchorhoveralpha,n.anchorAlpha,i.anchorAlpha),c.anchorBgAlpha=l(t.bghoveralpha,t.anchorbghoveralpha,n.anchorBgAlpha,c.anchorAlpha,i.anchorBgAlpha),c.anchorBorderColor=l(t.anchorborderhovercolor,t.borderhovercolor,n.anchorBorderColor,i.anchorBorderColor),c.anchorBorderThickness=l(t.anchorborderhoverthickness,t.borderhoverthickness,n.anchorBorderThickness,i.anchorBorderThickness),c.anchorBorderAlpha=h(t.anchorborderhoveralpha,t.borderhoveralpha,n.anchorBorderAlpha,c.anchorAlpha,i.anchorBorderAlpha),c.anchorDip=h(t.hoverdip,t.anchorhoverdip,n.anchorDip),c.startAngle=l(t.anchorhoverstartangle,n.anchorStartAngle,i.anchorAngle),c.anchorSides=h(t.hoversides,t.anchorhoversides,n.anchorSides,i.anchorSides),c.anchorRadius=h(t.hoverradius,t.anchorhoverradius,n.anchorRadius),c.anchorScale=h(t.hoverscale,t.anchorhoverscale,n.anchorScale),c.anchorAnimation=h(t.anchorhoveranimation,n.anchorAnimation,1),void 0===c.anch
33orRadius&&(c.anchorRadius=!r||c.anchorHighlight?i.anchorRadius&&i.anchorRadius+1:i.anchorRadius)),(r||(c.columnHighlight||c.bubbleHighlight)&&c.color&&1==c.highlight)&&(c.highlight=0),"column"==d&&(c.color=(l(c.color,i.color)+et+(void 0===c.gradientColor?i.gradientColor:c.gradientColor)).replace(/,+?$/,"")),"pie"===d&&(c.color=l(c.color,i.color).replace(/,+?$/,"")),"bubble"==d&&(c.negativeColor=l(t.negativehovercolor,n.negativeColor,i.negativeColor),c.is3d=h(t.is3donhover,n.is3DBubble,i.is3d),c.color=c.negativeColor&&0>t.z?c.negativeColor:c.color||i.color,a="string"==typeof c.color,c.color=B(a?c.color:c.color.FCcolor.color),c.color=c.is3d?K.bubble.getPointColor(c.color,c.alpha):{FCcolor:{color:c.color,alpha:c.alpha}}),1==c.highlight&&"anchor"!==d){for(n=(t=(a="string"==typeof c.color)?c.color.split(/\s{0,},\s{0,}/):c.color.FCcolor.color.split(/\s{0,},\s{0,}/)).length,r=0;r<n;r++)t[r]=H(t[r],70);a?c.color=t.join(","):c.color.FCcolor.color=t.join(",")}"pie"===d&&(s={color:this.getPointColor(c.color,c.alpha,i.radius3D),alpha:c.alpha,borderColor:W(c.borderColor,c.borderAlpha),borderWidth:c.borderThickness}),"column"==d&&(c.colorArr=R(c.color,c.alpha,c.ratio,c.angle,i.isRoundEdged,c.borderColor,T(c.alpha,c.borderAlpha).toString(),i.isBar,i.is3d),c.dashStyle=c.borderDashed?m(c.borderDashLen,c.borderDashGap,c.borderThickness):"none",s={shadow:c.shadow,color:c.colorArr[0],borderColor:c.colorArr[1],borderWidth:c.borderThickness,use3DLighting:i.use3DLighting,dashStyle:c.dashStyle}),"anchor"==d&&(s=i.imageUrl?{animation:c.anchorAnimation,imageHoverAlpha:c.imageHoverAlpha,imageHoverScale:c.imageHoverScale,shadow:c.shadow,fillColor:{FCcolor:{color:c.anchorColor,alpha:c.anchorBgAlpha*c.anchorAlpha/100+o}},lineColor:{FCcolor:{color:c.anchorBorderColor,alpha:c.anchorBorderAlpha}},lineWidth:c.anchorBorderThickness,radius:c.anchorRadius,symbol:Z(c.anchorSides),startAngle:c.startAngle,sides:c.anchorSides,scale:c.anchorScale,dip:c.anchorDip}:{animation:c.anchorAnimation,shadow:c.shadow,fillColor:{FCcolor:{color:c.anchorColor,alpha:c.anchorBgAlpha*c.anchorAlpha/100+o}},lineColor:{FCcolor:{color:c.anchorBorderColor,alpha:c.anchorBorderAlpha}},lineWidth:c.anchorBorderThickness,radius:c.anchorRadius,symbol:Z(c.anchorSides),startAngle:c.startAngle,sides:c.anchorSides,scale:c.anchorScale,dip:c.anchorDip}),"bubble"==d&&(s={symbol:c.seriesAnchorSymbol,shadow:c.shadow,scale:c.scale,fillColor:c.color,lineColor:{FCcolor:{color:c.borderColor,alpha:c.alpha}},lineWidth:c.borderThickness})}return{enabled:e,options:c,rolloverOptions:s}},getPointStub:function(t,e,i,n){var r=this.dataObj.chart;n=n[f],e=null===e?e:n.numberFormatter.dataLabels(e);var a=c(p(l(t.tooltext,n.tooltext))),s=c(p(t.displayvalue));r=n.showTooltip?void 0!==a?v(a,[1,2,3,5,6,7],{formattedValue:e,label:i,yaxisName:p(r.yaxisname),xaxisName:p(r.xaxisname)},t,r):null!==e&&(i!==o?i+n.tooltipSepChar+e:e):o;return{displayValue:n=h(t.showvalue,n.showValues)?void 0!==s?s:e:o,displayValueArgs:e=l(s,e,o),categoryLabel:i,toolText:r,link:t=l(t.link)}},updateSnapPoints:function(){var t=this,e=t.snapLiterals,i=function(t,e){var i=0;switch(t){case"startx":i=e.x;break;case"starty":i=e.y;break;case"x":case"middlex":case"centerx":i=e.x+e.width/2;break;case"y":case"middley":case"centery":i=e.y+e.height/2;break;case"endx":i=e.x+e.width;break;case"endy":i=e.y+e.height;break;default:i=0}return i};e.dataset=function(e,n){var r,o,a,s,l=t.renderer&&t.renderer.plots;if(a=t.is3D,!l||!l.length)return 0;if(isNaN(e[0])?r=0:(r=Number(e[0]),e=e.slice(1)),"set"===(o=e[0])){if(isNaN(e[1])?(s=0,e=e.slice(1)):(s=Number(e[1]),e=e.slice(2)),o=e[0],!(l=t.newArchitecture?(l=l[r]&&l[r].components.data[s])&&(l.graphics.element||l.graphics.hotElement):(l=l[r]&&l[r].items[s])&&l.graphic))return 0;a=n&&a?l._getBBox2():l.getBBox(),s=i(o,a)}return s},e.xaxis=function(e){var n,r,o=t.renderer&&t.renderer.xAxis&&t.renderer.xAxis[0]&&t.renderer.xAxis[0].labels;if(!o||!o.length)return 0;if("label"===(r=e[0])){if(isNaN(e[1])?(n=0,e=e.slice(1)):(n=Number(e[1]),e=e.slice(2)),r=e[0],!(e=o[n]))return 0;e=e.getBBox(),n=i(r,e)}return n},e.yaxis=function(e){var n,r,o=t.renderer&&t.renderer.yAxis;if(!o||!o.length)return 0;if(isNaN(e[0])?n=0:(n=Number(e[0]),e=e.slice(1)),!(n=o[n]))return 0;if("label"===(o=e[0])){if(r=n.labels,isNaN(e[1])?(n=0,e=e.slice(1)):(n=Number(e[1]),e=e.slice(2)),o=e[0],!(e=r[n]))return 0;e=e.getBBox(),r=i(o,e)}return r}}}
33,K.base),K("multiseries",{series:function(t,e,i){var n,r,o,s,l=e[f];if(e.legend.enabled=Boolean(h(t.chart.showlegend,1)),t.dataset&&0<t.dataset.length){for(this.categoryAdder(t,e),n=0,r=t.dataset.length;n<r;n+=1)o=t.dataset[n],s={__positiionIndex:n,hoverEffects:this.parseSeriesHoverOptions(t,e,o,i),visible:!h(o.initiallyhidden,0),legendCosmetics:this.parseLegendOptions(t.chart,o),data:[]},this.isStacked||(s.numColumns=r),(o=this.point(i,s,o,t.chart,e,l.oriCatTmp.length,n))instanceof Array?e.series=e.series.concat(o):e.series.push(o);this.configureAxis(e,t),
34t.trendlines&&!this.isLog&&a(t.trendlines,e.yAxis,l,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(t,e){var i,n,r,a,s,l,c=0,u=(v=e[f]).axisGridManager,g=t.chart,m=e.xAxis,v=v.x;if(t.categories&&t.categories[0]&&t.categories[0].category)for(t.categories[0].font&&(e.xAxis.labels.style.fontFamily=t.categories[0].font),void 0!==(i=h(t.categories[0].fontsize))&&(1>i&&(i=1),e.xAxis.labels.style.fontSize=i+at,N(e.xAxis.labels.style)),t.categories[0].fontcolor&&(e.xAxis.labels.style.color=t.categories[0].fontcolor.split(et)[0].replace(/^\#?/,"#")),a=e[f].oriCatTmp,s=t.categories[0].category,i=0;i<s.length;i+=1)s[i].vline?u.addVline(m,s[i],c,e):(r=h(s[i].showlabel,g.showlabels,1),l=t.categories[0].category[i],n=p(d(l.label,l.name)),u.addXaxisCat(m,c,c,r?n:o,{},l,g),a[c]=d(p(l.tooltext),n),c+=1);v.catCount=c},getPointStub:function(t,e,i,n,r,a,s,u,g,m){var b,y=this.dataObj.chart,x=this.isDual,w=this.isXY,_=this.isMLAxis,C=this.isStacked,S=this.isErrorChart;n=n[f];var k,A,T,L,D,E,P,I,M,O,F,R,B,N,j=null===e?e:this.numberFormatter.dataLabels(e,s),$=c(p(l(t.tooltext,r.plottooltext,n.tooltext))),V=n.tooltipSepChar,H={};return S&&(E=null===u?u:this.numberFormatter.dataLabels(u,s),O=null===e?o:this.numberFormatter.percentValue(u/e*100),L=[1,2,3,4,5,6,7,99,100,101,102],e={yaxisName:I=p(x?s?y.syaxisname:y.pyaxisname:y.yaxisname),xaxisName:M=p(y.xaxisname),formattedValue:j,label:i,errorDataValue:E,errorPercentValue:O},w?(P=null===g?g:this.numberFormatter.xAxis(g),F=null===m?o:this.numberFormatter.percentValue(g/m*100),L.push(103,104,105,106,107,108,109,110),B=l(t.horizontalerrorvalue,t.errorvalue),e.errorValue=R=l(t.verticalerrorvalue,t.errorvalue),m=c(p(l(t.verticalerrorplottooltext,t.errorplottooltext,r.verticalerrorplottooltext,r.errorplottooltext,y.verticalerrorplottooltext,y.errorplottooltext))),null!==u&&(e.verticalErrorDataValue=E,e.verticalErrorPercentValue=O,e.verticalErrorValue=R),null!==g&&(e.horizontalErrorDataValue=P,e.horizontalErrorPercentValue=F,e.horizontalErrorValue=B),D=c(p(l(t.horizontalerrorplottooltext,t.errorplottooltext,r.horizontalerrorplottooltext,r.errorplottooltext,y.horizontalerrorplottooltext,y.errorplottooltext))),H._hErrortoolText=!!n.showTooltip&&(void 0!==D?v(D,L,{yaxisName:I=p(x?s?y.syaxisname:y.pyaxisname:y.yaxisname),xaxisName:M=p(y.xaxisname),formattedValue:j,label:i,errorDataValue:P,errorPercentValue:F,errorValue:B,verticalErrorDataValue:E,verticalErrorPercentValue:O,verticalErrorValue:R,horizontalErrorDataValue:P,horizontalErrorPercentValue:F,horizontalErrorValue:B},t,y,r):null!==u&&P)):(m=c(p(l(t.errorplottooltext,r.errorplottooltext,y.errorplottooltext))),e.errorValue=R=l(t.errorvalue)),H._errortoolText=!!n.showTooltip&&(void 0!==m?v(m,L,e,t,y,r):null!==u&&E)),n.showTooltip?void 0!==$?(C=[4,5,6,7],s={yaxisName:I||p(x?s?y.syaxisname:y.pyaxisname:_?r._yAxisName:y.yaxisname),xaxisName:M||p(y.xaxisname)},w?(C.push(8,9,10,11),s.yDataValue=j,s.xDataValue=i,S&&(C.push(103,104,105,106,107,108,109,110),null!==u&&(s.verticalErrorDataValue=E,s.verticalErrorPercentValue=O,s.verticalErrorValue=R),null!==g&&(s.horizontalErrorDataValue=P,s.horizontalErrorPercentValue=F,s.horizontalErrorValue=B))):(C.push(1,2,3),s.formattedValue=j,s.label=i,S&&(C.push(99,100,101,102),s.errorValue=R,null!==u&&(s.errorDataValue=E,s.errorPercentValue=O))),r=v($,C,s,t,y,r)):null===j?r=!1:(n.seriesNameInToolTip&&(T=d(r&&r.seriesname)),r=T?T+V:o,r+=i?i+V:o,n.showPercentInToolTip&&C?(A=!0,r+="$percentValue"):r+=j):r=!1,h(t.showvalue,a)?void 0!==c(t.displayvalue)?b=p(t.displayvalue):n.showPercentValues?k=!0:b=j:b=o,n.showPercentValues||(N=l(p(t.displayvalue),j,o)),H.link=l(t.link),H.displayValue=b,H.displayValueArgs=N,H.categoryLabel=i,H.toolText=r,H.showPercentValues=k,H.showPercentInToolTip=A,H}}
34,K.singleseries),K("xybase",{hideRLine:function(){var t=this.chart.series[this.index+1];t&&t.hide&&t.hide()},showRLine:function(){var t=this.chart.series[this.index+1];t&&t.show&&t.show()},getRegressionLineSeries:function(t,e,i){var n,r,o,a;a=t.sumXY;var s=t.sumX,l=t.sumY;return r=t.xValues,o=t.sumXsqure,n=t.yValues,t=t.sumYsqure,e?(r.sort(Ut),n=r[0],r=r[r.length-1],a=(i*a-s*l)/(i*o-M(s,2)),i=[{x:n,y:o=!isNaN(a)&&isFinite(a)?a*(n-s/i)+l/i:l/i},{x:r,y:i=!isNaN(a)&&isFinite(a)?a*(r-s/i)+l/i:l/i}]):(n.sort(Ut),o=n[0],n=n[n.length-1],a=(i*a-s*l)/(i*t-M(l,2)),i=[{x:r=isNaN(a)?s/i:a*(o-l/i)+s/i,y:o},{x:i=isNaN(a)?s/i:a*(n-l/i)+s/i,y:n}]),i},pointValueWatcher:function(t,e,i,n){var r=t[f];null!==e&&((t=r[0]).max=t.max>e?t.max:e,t.min=t.min<e?t.min:e),null!==i&&((t=r.x).max=t.max>i?t.max:i,t.min=t.min<i?t.min:i),n&&(i=i||0,e=e||0,n.sumX+=i,n.sumY+=e,n.sumXY+=i*e,n.sumXsqure+=M(i,2),n.xValues.push(i),n.sumYsqure+=M(e,2),n.yValues.push(e))}},K.multiseries),K("scrollbase",{postSeriesAddition:function(){var t,e,i,n,r,o=this.hcJSON,a=o.xAxis.scroll,s=o[f],c=s.width,d=s.x.catCount,u=this.dataObj.chart,p=this.colorManager;if(s.isScroll=!0,o.chart.hasScroll=!0,this.isStacked)t=1;else{for(e=t=0,n=o.series,r=o.chart.defaultSeriesType,i=n.length;e<i;e++)"column"===l(n[e].type,r)&&(t+=1);1>t&&(t=1)}d*=t,c=h(u.numvisibleplot,P(c/this.avgScrollPointWidth)),a&&2<=c&&c<d&&(a.enabled=!0,a.vxLength=c/t,a.startPercent=T(1,L(0,parseFloat(u.scrolltoend)||0)),a.padding=h(u.scrollpadding,0),a.height=h(u.scrollheight,16),a.showButtons=!!h(u.scrollshowbuttons,1),a.buttonPadding=h(u.scrollbtnpadding,0),a.color=B(l(u.scrollcolor,p.getColor("altHGridColor"))),s.marginBottomExtraSpace+=a.padding+a.height),(Ct||h(u.enabletouchscroll,0))&&(o.chart.zoomType="x",o.chart.nativeZoom=!1,o.chart.selectionMarkerFill="rgba(255,255,255,0)",(o.callbacks||(o.callbacks=[])).push((function(t){_(t.containerElement,"selectionstart selectiondrag",K.scrollbase.performTouchScroll,{})})))},performTouchScroll:function(t){var e=this.xAxis[0].scroller,i=(i=e.config).trackLength/(i.width/i.scrollRatio)*(t.chartX||1);!0!==t.isOutsidePlot&&St(e.elements.anchor.element,"selectionstart"===t.type?"dragstart":"drag",{pageX:-i,pageY:-t.chartY})}},K.multiseries),K("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(t,e){var i,n,r=t[f],s=r.axisGridManager,c=this.numberFormatter,d=t.series,u=t.xAxis,m=t.yAxis[0],v=r[0],b=e.chart,y=!h(b.showyaxislimits,b.showlimits,b.showyaxisvalues,1),x=!h(b.showdivlinevalues,b.showyaxisvalues,1),w=h(b.base,b.logbase,10),_=h(b.yaxismaxvalue),C=h(b.yaxisminvalue),S=this.colorManager,k=1===h(b.showminordivlinevalues),A=l(b.minordivlinecolor,m.gridLineColor,S.getColor("divLineColor")),T=h(b.minordivlinealpha,b.divlinealpha,S.getColor("divLineAlpha")),L=(S=[m,void 0,void 0,h(b.divlinethickness,2),m.gridLineDashStyle,m.gridLineColor,2],A=[m,void 0,void 0,h(b.minordivlinethickness,1),m.gridLineDashStyle,W(l(b.minordivlinecolor,A),h(b.minordivlinealpha,T/2)),2],T=k||T&&A[3],h(b.showaxislimitgridlines,this.showAxisLimitGridLines)),D=h(L,this.is3D||t.chart.plotBorderWidth?0:1);for((0>=w||1===w)&&(w=10),0>=_&&(_=void 0),0>=C&&(C=void 0),_=this.getLogAxisLimits(v.max||w,v.min||1,_,C,w,T?b.numminordivlines:0),u.title.text=p(b.xaxisname),u.showLine=h(b.showxaxisline,b.showaxislines,0),u.lineThickness=h(b.xaxislinethickness,b.axislinethickness,1),u.lineAlpha=h(b.xaxislinealpha,b.axislinealpha,100),u.lineColor=W(l(b.xaxislinecolor,b.axislinecolor,"000")),g(m,{title:{text:p(b.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:z,reversed:"1"===b.invertyaxis,max:_t(_.Max,w),min:_t(_.Min,w),showLine:h(b.showyaxisline,b.showaxislines,0),lineThickness:h(b.yaxislinethickness,b.axislinethickness,1),lineAlpha:h(b.yaxislinealpha,b.axislinealpha,100),lineColor:W(l(b.yaxislinecolor,b.axislinecolor,"000"))}),b=d.length;b--;)if(C=d[b])for(C.threshold=m.min,n=(C=C.data)&&C.length||0;n--;)(i=C[n]).y=_t(i.y,w);for(delete v.max,delete v.min,v.isLog=!0,m.reversed&&0<=m.min&&(t.plotOptions.series.threshold=m.max),e.trendlines&&a(e.trendlines,[{max:_.Max,min:_.Min,plotLines:m.plotLines,plotBands:m.plotBands,title:m.title}],r),b=m.plotLines.length;b--;)(i=m.plotLines[b]).value&&(i.value=_t(i.value,w)),i.from&&(i.from=_t(i.from,w)),i.to&&(i.to=_t(i.to,w));for(b=m.plotBands.length;b--;)(i=m.plotBands[b]).from&&(i.from=_t(i.from,w)),i.to&&(i.to=_t(i.to,w));for(b=_.divArr.length;b--;)(i=_.divArr[b]).ismajor?(S[1]=_t(i.value,w),S[2]=c.yAxis(i.value),s.addAxisGridLine.apply(s,S)):(T||i.isextreme)&&(A[1]=_t(i.value,w),A[2]=k||i.isextreme?c.yAxis(i.value):o,s.addAxisGridLine.apply(s,A)),C=m.plotLines[m.plotLines.length-1],i.isextreme?(C.width=L||D&&(!i.isMin||!u.showLine)?C.width:.1,y&&(C.label.text=o)):x&&C.label&&(C.label.text=o)}
34,getLogAxisLimits:function(t,e,i,n,r,o){var a,s,l,c,h,d,u,p,f=function(t){return null!=t&&""!==t&&!isNaN(t)},g=0,m=[];for(t===e&&(e-=e/100),f(i)&&Number(i)>=t?t=Number(i):(i=1<r?E(I(t)/I(r)):P(I(t)/I(r)),t=M(r,i),s=i),s||(s=1<r?E(I(t)/I(r)):P(I(t)/I(r))),f(n)&&Number(n)<=e?e=Number(n):(i=1<r?P(I(e)/I(r)):E(I(e)/I(r)),e=M(r,i),a=i),a||(a=1<r?P(I(e)/I(r)):E(I(e)/I(r))),n=Number(String(I(r)/I(10))),o=Number(o)||(P(n)==n?8:4),1<r?(l=s,c=a):0<r&&1>r&&(l=a,c=s),n=s,a=l;a>=c;--a)if(e<=(l=M(r,n))&&t>=l&&(m[g++]={value:l,ismajor:!0}),a!=c){for(s=1<r?-1:1,i=(l=M(r,n)-M(r,n+s))/(o+1),f=1;f<=o;++f)e<=(l=M(r,n+s)+i*f)&&t>=l&&(m[g++]={value:l,ismajor:!1});1<r?n--:n++}for(u in m)for(p in m[u])"value"==p&&(h||(h=m[u][p]==e&&(m[u].isextreme=m[u].isMin=!0)),d||(d=m[u][p]==t&&(m[u].isextreme=m[u].isMax=!0)));return h||(m[g++]={value:e,ismajor:!0,isMin:!0,isextreme:!0}),d||(m[g]={value:t,ismajor:!0,isMax:!0,isextreme:!0}),{Max:t,Min:e,divArr:m}},pointValueWatcher:function(t,e,i){t=t[f],i=h(i,0),0<e&&(t[i]||(t[i]={}),(i=t[i]).max=i.max>e?i.max:e,i.min=i.min<e?i.min:e)}},K.mslinebase),Q=K.singleseries,tt=K.multiseries,K("column2dbase",{point:function(t,e,i,n,r){var a=i.length,s=(v=r[f]).axisGridManager,c=r.xAxis,v=v.x,b=this.colorManager,y=/3d$/.test(r.chart.defaultSeriesType),x=this.isBar,w=/^spark/i.test(t);t=l(n.showplotborder,w||y?nt:rt)===rt?y?1:h(n.plotborderthickness,1):0;var _,C,S,k,A,T,L,D,E,P,I,M,O,F,B,N=r.chart.useRoundEdges,j=h(n.plotborderalpha,n.plotfillalpha,100),$=l(n.plotbordercolor,b.getColor("plotBorderColor")).split(et)[0],V=(w=w?"":h(n.useplotgradientcolor,1)?u(n.plotgradientcolor,b.getColor("plotGradientColor")):o,0),H=Boolean(h(n.use3dlighting,1)),W=r[f].numberFormatter,z=h(n.plotborderdashed,0),q=h(n.plotborderdashlen,5),U=h(n.plotborderdashgap,4);for(k=0;k<a;k+=1)(F=i[k]).vline?s.addVline(c,F,V,r):(S=W.getCleanValue(F.value),_=h(F.showlabel,n.showlabels,1),A=p(d(F.label,F.name)),C=l(F.color,b.getPlotColor()),T=l(F.alpha,n.plotfillalpha,ot),L=l(F.ratio,n.plotfillratio),D=l(360-n.plotfillangle,x?180:90),E=l(F.alpha,j),P=h(F.dashed,z),I=l(F.dashgap,U),M=l(F.dashlen,q),s.addXaxisCat(c,V,V,_?A:o,F,{},n,C),V+=1,0>S&&(D=x?180-D:360-D),B={opacity:T/100},O=R(C+et+w.replace(/,+?$/,""),T,L,D,N,$,E+o,x,y),_=P?m(M,I,t):"none",C=this.pointHoverOptions(F,e,{plotType:"column",is3d:y,isBar:x,use3DLighting:H,isRoundEdged:N,color:C,gradientColor:w,alpha:T,ratio:L,angle:D,borderWidth:t,borderColor:$,borderAlpha:E,borderDashed:P,borderDashGap:I,borderDashLen:M,shadow:B}),e.data.push(g(this.getPointStub(F,S,A,r),{y:S,shadow:B,color:O[0],borderColor:O[1],borderWidth:t,use3DLighting:H,dashStyle:_,tooltipConstraint:this.tooltipConstraint,hoverEffects:C.enabled&&C.options,rolloverProperties:C.enabled&&C.rolloverOptions})),this.pointValueWatcher(r,S));return v.catCount=V,e},defaultSeriesType:"column"},Q),K("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(t,e,i,n,r){var a,s,c,u,v,b,y,x,w,_,C,S,k,A,T,L,D,E,P,I,M,O,F,R,N,j;t=r.chart;var $=i.length,V=r.xAxis;a=r[f];var H,W,z,q,U,G,Y,X=this.colorManager,J=a.axisGridManager,K=0,Q=a.x,tt=r[f].numberFormatter;for(A=B(l(n.linecolor,n.palettecolors,X.getColor("plotFillColor"))),T=l(n.linealpha,ot),C=h(n.linethickness,this.lineThickness,4),S=Boolean(h(n.linedashed,0)),y=h(n.linedashlen,5),x=h(n.linedashgap,4),N=h(n.anchorshadow,0),e.color={FCcolor:{color:A,alpha:T}},e.lineWidth=C,e.anchorShadow=N,e.step=l(this.stepLine,e.step),e.drawVerticalJoins=Boolean(h(e.drawVerticalJoins,n.drawverticaljoins,1)),e.useForwardSteps=Boolean(h(e.useForwardSteps,n.useforwardsteps,1)),k=h(n.drawanchors,n.showanchors),s=0;s<$;s+=1)(u=i[s]).vline?J.addVline(V,u,K,r):(a=tt.getCleanValue(u.value),v=h(u.showlabel,n.showlabels,1),c=p(d(u.label,u.name)),J.addXaxisCat(V,K,K,v?c:o,u,{},n),K+=1,w=B(l(u.color,A)),_=h(u.alpha,T),v=h(u.dashed,S)?m(y,x,C):"none",b={opacity:_/100},D=h(u.anchorsides,n.anchorsides,0),R=h(u.anchorstartangle,n.anchorstartangle,90),I=h(u.anchorradius,n.anchorradius,this.anchorRadius,3),P=B(l(u.anchorbordercolor,n.anchorbordercolor,A)),E=h(u.anchorborderthickness,n.anchorborderthickness,this.anchorBorderThickness,1),M=B(l(u.anchorbgcolor,n.anchorbgcolor,X.getColor("anchorBgColor"))),O=l(u.anchoralpha,n.anchoralpha,ot),F=l(u.anchorbgalpha,n.anchorbgalpha,O),W=l(u.anchorimageurl,n.anchorimageurl),z=l(u.anchorimagescale,n.anchorimagescale,100),q=l(u.anchorimagealpha,n.anchorimagealpha,100),U=h(u.anchorimagepadding,n.anchorimagepadding,1),G=h(u.anchorradius,n.anchorradius),Y=h(u.hoverradius,n.hoverradius,u.anchorhoverradius,n.anchorhoverradius),L=void 0===k?0!==_:!!k,j=Boolean(h(u.anchorshadow,N,0)),H=this.pointHoverOptions(u,e,{plotType:"anch
34or",anchorBgColor:M,anchorAlpha:O,anchorBgAlpha:F,anchorAngle:R,anchorBorderThickness:E,anchorBorderColor:P,anchorBorderAlpha:O,anchorSides:D,anchorRadius:I,imageUrl:W,imageScale:z,imageAlpha:q,imagePadding:U,shadow:b}),e.data.push(g(this.getPointStub(u,a,c,r),{y:a,color:{FCcolor:{color:w,alpha:_}},shadow:b,dashStyle:v,valuePosition:l(u.valueposition,t.valuePosition),marker:{enabled:!!L,shadow:j&&{opacity:O/100},fillColor:{FCcolor:{color:M,alpha:F*O/100+o}},lineColor:{FCcolor:{color:P,alpha:O}},lineWidth:E,radius:I,startAngle:R,symbol:Z(D),imageUrl:W,imageScale:z,imageAlpha:q,imagePadding:U,isAnchorRadius:G,isAnchorHoverRadius:Y},tooltipConstraint:this.tooltipConstraint,hoverEffects:H.enabled&&H.options,rolloverProperties:H.enabled&&H.rolloverOptions})),this.pointValueWatcher(r,a));return Q.catCount=K,e},defaultZeroPlaneHighlighted:!1},Q),K("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,parseAnchorVisibility:function(t,e,i){var n=h(t.drawanchors,e.drawanchors,e.showanchors);return C(n)?n:C(l(t.anchorsides,e.anchorsides,t.anchorstartangle,e.anchorstartangle,t.anchorradius,e.anchorradius,t.anchorbordercolor,e.anchorbordercolor,t.anchorborderthickness,e.anchorborderthickness,t.anchorbgcolor,e.anchorbgcolor,t.anchoralpha,e.anchoralpha,t.anchorbgalpha,e.anchorbgalpha,t.anchorshadow,e.anchorshadow))||i},point:function(t,e,i,n,r){t=r.chart;var a,s,v,b,y,x,w,_,C,S,k,A,T,D,E,P,I,M,O,F,R,N,j,V,H,W,z,q,U,G,Y,X,J=i.length,K=r.xAxis,Q=(tt=r[f]).axisGridManager,tt=tt.x,it=r[f].numberFormatter,rt=this.colorManager,at=0;for(y=l(n.plotfillcolor,n.areabgcolor,c(n.palettecolors)?rt.getPlotColor(0):rt.getColor("plotFillColor")).split(/\s*\,\s*/)[0],R=et+(h(n.useplotgradientcolor,1)?u(n.plotgradientcolor,rt.getColor("plotGradientColor")):o),x=l(n.plotfillalpha,n.areaalpha,this.isStacked?ot:"90"),w=h(n.plotfillangle,270),_=l(n.plotbordercolor,n.areabordercolor,c(n.palettecolors)?rt.getPlotColor(0):rt.getColor("plotBorderColor")).split(/\s*\,\s*/)[0],C=n.showplotborder==nt?nt:l(n.plotborderalpha,n.plotfillalpha,n.areaalpha,ot),a=h(n.plotborderangle,270),s=Boolean(h(n.plotborderdashed,0)),v=h(n.plotborderdashlen,5),T=h(n.plotborderdashgap,4),I=h(n.plotborderthickness,n.areaborderthickness,1),N=e.fillColor={FCcolor:{color:y+R.replace(/,+?$/,""),alpha:x,ratio:ut,angle:w}},e.lineWidth=I,e.dashStyle=s?m(v,T,I):"none",e.lineColor={FCcolor:{color:_,alpha:C,ratio:ot,angle:a}},e.step=l(this.stepLine,e.step),e.drawVerticalJoins=Boolean(h(e.drawVerticalJoins,n.drawverticaljoins,1)),e.useForwardSteps=Boolean(h(e.useForwardSteps,n.useforwardsteps,1)),I=Boolean(h(n.drawanchors,n.showanchors,1)),H=Boolean(this.parseAnchorVisibility({},n,0)),e.anchorShadow=j=h(n.anchorshadow,0),s=0;s<J;s+=1)(T=i[s]).vline?Q.addVline(K,T,at,r):(a=it.getCleanValue(T.value),b=h(T.showlabel,n.showlabels,1),v=p(d(T.label,T.name)),Q.addXaxisCat(K,at,at,b?v:o,T,{},n),at+=1,b=h(T.anchorsides,n.anchorsides,0),A=h(T.anchorstartangle,n.anchorstartangle,90),S=h(T.anchorradius,n.anchorradius,3),k=B(l(T.anchorbordercolor,n.anchorbordercolor,_)),M=h(T.anchorborderthickness,n.anchorborderthickness,1),D=B(l(T.anchorbgcolor,n.anchorbgcolor,rt.getColor("anchorBgColor"))),E=l(T.anchoralpha,n.anchoralpha,this.anchorAlpha,H?ot:0),P=l(T.anchorbgalpha,n.anchorbgalpha,E),V=Boolean(h(T.anchorshadow,j,0)),O=c(T.color),F=h(T.alpha),O=void 0!==O||void 0!==F?{FCcolor:{color:O?B(O)+R:y,alpha:void 0===F?$(F)+o:x,ratio:ut,angle:w}}:N,W=l(T.anchorimageurl,n.anchorimageurl),z=l(T.anchorimagescale,n.anchorimagescale,100),q=l(T.anchorimagealpha,n.anchorimagealpha,100),U=l(T.anchorimagepadding,n.anchorimagepadding,1),G=h(T.anchorradius,n.anchorradius),Y=h(T.hoverradius,n.hoverradius,T.anchorhoverradius,n.anchorhoverradius),F={opacity:L(F,C)/100,inverted:!0},X=this.pointHoverOptions(T,e,{plotType:"anchor",anchorBgColor:D,anchorAlpha:E,anchorBgAlpha:P,anchorAngle:A,anchorBorderThickness:M,anchorBorderColor:k,anchorBorderAlpha:E,anchorSides:b,anchorRadius:S,imageUrl:W,imageScale:z,imageAlpha:q,imagePadding:U,shadow:F}),e.data.push(g(this.getPointStub(T,a,v,r),{y:a,shadow:F,color:O,valuePosition:l(T.valueposition,t.valuePosition),marker:{enabled:I,shadow:V&&{opacity:E/100},fillColor:{FCcolor:{color:D,alpha:P*E/100+o}},lineColor:{FCcolor:{color:k,alpha:E}},lineWidth:M,radius:S,symbol:Z(b),startAngle:A,imageUrl:W,imageScale:z,imageAlpha:q,imagePadding:U,isAnchorRadius:G,isAnchorHoverRadius:Y}
34,tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(r,a),hoverEffects:X.enabled&&X.options,rolloverProperties:X.enabled&&X.rolloverOptions})));return tt.catCount=at,e}},Q),K("mscolumn2dbase",{point:function(t,e,i,n,r,a,s,d,p){t=h(n.ignoreemptydatasets,0);var g,m=!1,v=i.data||[],b=r[f],y=l(e.type,this.defaultSeriesType),x=l(e.isStacked,r.plotOptions[y]&&r.plotOptions[y].stacking),w=l(this.isValueAbs,b.isValueAbs,!1),_=h(e.yAxis,0),C=r[f].numberFormatter,S=this.colorManager,k=S.getPlotColor(),A=r._FCconf.isBar,T=e.hoverEffects;for(e.visible=1===h(i.visible,!Number(i.initiallyhidden),1),x||(e.columnPosition=h(p,d,s)),e.name=c(i.seriesname),0!==h(i.includeinlegend)&&void 0!==e.name||(e.showInLegend=!1),e.color=l(i.color,k).split(et)[0].replace(/^#?/g,"#"),s=/3d$/.test(r.chart.defaultSeriesType),e.is3d=s,e.isBar=A,p=l(360-n.plotfillangle,A?180:90),0>g&&(p=360-p),i=e._dataParser=Gt.column(r,{seriesname:e.name,plottooltext:i.plottooltext,color:l(i.color,k),alpha:l(i.alpha,n.plotfillalpha,ot),plotgradientcolor:h(n.useplotgradientcolor,1)?u(n.plotgradientcolor,S.getColor("plotGradientColor")):o,ratio:l(i.ratio,n.plotfillratio),fillAangle:p,isRoundEdges:r.chart.useRoundEdges,plotBorderColor:l(n.plotbordercolor,s?pt:S.getColor("plotBorderColor")).split(et)[0],plotBorderAlpha:n.showplotborder==nt||s&&n.showplotborder!=rt?nt:l(n.plotborderalpha,i.alpha,n.plotfillalpha,ot),isBar:this.isBar,is3d:s,dashed:h(i.dashed,n.plotborderdashed,0),dashLen:h(i.dashlen,n.plotborderdashlen,5),dashGap:h(i.dashgap,n.plotborderdashgap,4),borderWidth:h(n.plotborderthickness,rt),showValues:h(i.showvalues,b.showValues),yAxis:_,use3DLighting:h(n.use3dlighting,1),_sourceDataset:i,hoverEffects:T},this),n=0;n<a;n+=1)(b=v[n])?null===(g=C.getCleanValue(b.value,w))?e.data.push({y:null}):(m=!0,b=i(b,n,g),e.data.push(b),b.previousY=this.pointValueWatcher(r,g,_,x,n,d,y)):e.data.push({y:null});return!t||m||this.realtimeEnabled||(e.showInLegend=!1),e},defaultSeriesType:"column"},tt),K("mslinebase",{hasVDivLine:!0,point:function(t,e,i,n,r,a){t=h(n.ignoreemptydatasets,0);var s,d,u=!1,p=this.colorManager;s=r.chart;var g=i.data||[];d=r[f];var m=l(e.type,this.defaultSeriesType),v=l(e.isStacked,r.plotOptions[m]&&r.plotOptions[m].stacking),b=l(this.isValueAbs,d.isValueAbs,!1),y=h(e.yAxis,0),x=this.numberFormatter,w=B(l(i.color,n.linecolor,p.getPlotColor())),_=h(i.alpha,n.linealpha,ot),C=h(n.showshadow,this.defaultPlotShadow,1),S=h(i.drawanchors,i.showanchors,n.drawanchors,n.showanchors),k=h(i.anchorsides,n.anchorsides,0),A=h(i.anchorstartangle,n.anchorstartangle,90),T=h(i.anchorradius,n.anchorradius,3),L=B(l(i.anchorbordercolor,n.anchorbordercolor,w)),D=h(i.anchorborderthickness,n.anchorborderthickness,1),E=(p=B(l(i.anchorbgcolor,n.anchorbgcolor,p.getColor("anchorBgColor"))),l(i.anchoralpha,n.anchoralpha,ot)),P=l(i.anchorbgalpha,n.anchorbgalpha,E),I=E&&l(i.anchorshadow,n.anchorshadow,0),M=e.hoverEffects;for(e.visible=1===h(i.visible,!Number(i.initiallyhidden),1),e.name=c(i.seriesname),(0===h(i.includeinlegend)||void 0===e.name||0===_&&1!==S)&&(e.showInLegend=!1),e.marker={enabled:Boolean(h(S,1)),fillColor:{FCcolor:{color:p,alph
34a:P*E/100+o}},lineColor:{FCcolor:{color:L,alpha:E+o}},lineWidth:D,radius:T,symbol:Z(k),startAngle:A},e.color={FCcolor:{color:w,alpha:_}},e.shadow=!!C&&{opacity:C?_/100:0},e.anchorShadow=I,e.step=l(this.stepLine,e.step),e.drawVerticalJoins=Boolean(h(e.drawVerticalJoins,n.drawverticaljoins,1)),e.useForwardSteps=Boolean(h(e.useForwardSteps,n.useforwardsteps,1)),e.lineWidth=h(i.linethickness,n.linethickness,2),s=e._dataParser=Gt.line(r,{seriesname:e.name,plottooltext:i.plottooltext,lineAlpha:_,anchorAlpha:E,showValues:h(i.showvalues,d.showValues),yAxis:y,lineDashed:Boolean(h(i.dashed,n.linedashed,0)),lineDashLen:h(i.linedashlen,n.linedashlen,5),lineDashGap:h(i.linedashgap,n.linedashgap,4),lineThickness:e.lineWidth,lineColor:w,valuePosition:l(i.valueposition,s.valuePosition),drawAnchors:S,anchorBgColor:p,anchorBgAlpha:P,anchorBorderColor:L,anchorBorderThickness:D,anchorRadius:T,anchorSides:k,anchorAngle:A,anchorShadow:e.anchorShadow,anchorStartAngle:h(i.anchorstartangle,n.anchorstartangle),_sourceDataset:i,hoverEffects:M,imageUrl:l(i.anchorimageurl,n.anchorimageurl),imageScale:l(i.anchorimagescale,n.anchorimagescale,100),imageAlpha:l(i.anchorimagealpha,n.anchorimagealpha,100),imagePadding:l(i.anchorimagepadding,n.anchorimagepadding,1),isAnchorRadius:h(i.anchorradius,n.anchorradius),isAnchorHoverRadius:h(i.hoverradius,n.hoverradius,i.anchorhoverradius,n.anchorhoverradius)},this),n=0;n<a;n+=1)(d=g[n])?null===(i=x.getCleanValue(d.value,b))?e.data.push({y:null}):(u=!0,d=s(d,n,i),e.data.push(d),d.previousY=this.pointValueWatcher(r,i,y,v,n,0,m)):e.data.push({y:null});return!t||u||this.realtimeEnabled||(e.showInLegend=!1),e},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},tt),K("msareabase",{hasVDivLine:!0,point:function(t,e,i,n,r,a){t=h(n.ignoreemptydatasets,0);var s=!1,c=r.chart,d=i.data||[],p=r[f],g=l(e.type,this.defaultSeriesType),v=l(e.isStacked,r.plotOptions[g]&&r.plotOptions[g].stacking),b=l(this.isValueAbs,p.isValueAbs,!1),y=h(e.yAxis,0),x=r[f].numberFormatter,w=this.colorManager,_=w.getPlotColor(),C=l(i.color,n.plotfillcolor,_).split(et)[0].replace(/^#?/g,"#").split(et)[0],S=l(i.alpha,n.plotfillalpha,n.areaalpha,this.areaAlpha,70),k=h(n.plotfillangle,270),A=(_=l(i.plotbordercolor,n.plotbordercolor,n.areabordercolor,this.isRadar?_:"666666").split(et)[0],l(i.showplotborder,n.showplotborder)==nt?nt:l(i.plotborderalpha,n.plotborderalpha,i.alpha,n.plotfillalpha,n.areaalpha,"95")),T=h(n.plotborderangle,270),L=h(i.anchorsides,n.anchorsides,0),D=h(i.anchorstartangle,n.anchorstartangle,90),E=h(i.anchorradius,n.anchorradius,3),P=B(l(i.anchorbordercolor,n.anchorbordercolor,C)),I=h(i.anchorborderthickness,n.anchorborderthickness,1),M=B(l(i.anchorbgcolor,n.anchorbgcolor,w.getColor("anchorBgColor"))),O=Boolean(K.area2dbase.parseAnchorVisibility(i,n,0)),F=(O=h(i.anchoralpha,n.anchoralpha,this.anchorAlpha,O?ot:0),h(i.anchorbgalpha,n.anchorbgalpha,O)),R=O&&l(i.anchorshadow,n.anchorshadow,0),N=e.hoverEffects;for(e.visible=1===h(i.visible,!Number(i.initiallyhidden),1),this.isRadar||(C=(C+=et+(h(n.useplotgradientcolor,1)?u(n.plotgradientcolor,w.getColor("plotGradientColor")):o)).replace(/,+?$/,"")),e.step=l(this.stepLine,e.step),e.drawVerticalJoins=Boolean(h(e.drawVerticalJoins,n.drawverticaljoins,1)),e.useForwardSteps=Boolean(h(e.useForwardSteps,n.useforwardsteps,1)),e.name=l(i.seriesname),0!==h(i.includeinlegend)&&void 0!==e.name||(e.showInLegend=!1),e.fillColor={FCcolor:{color:C,alpha:S,ratio:ut,angle:k}},e.color=C,e.shadow={opacity:h(n.showshadow,1)?A/100:0},e.anchorShadow=R,e.lineColor={FCcolor:{color:_,alpha:A,ratio:ot,angle:T}},e.lineWidth=l(i.plotborderthickness,n.plotborderthickness,1),e.dashStyle=Boolean(h(i.dashed,n.plotborderdashed,0))?m(h(i.dashlen,n.plotborderdashlen,5),h(i.dashgap,n.plotborderdashgap,4),e.lineWidth):"none",e.marker={fillColor:{FCcolor:{color:M,alpha:F*O/100+o}},lineColor:{FCcolor:{color:P,alpha:O+o}},lineWidth:I,radius:E,symbol:Z(L),startAngle:D}
34,i=e._dataParser=Gt.area(r,{seriesname:e.name,plottooltext:i.plottooltext,lineAlpha:A,anchorAlpha:O,showValues:h(i.showvalues,p.showValues),yAxis:y,fillColor:C,fillAlpha:S,valuePosition:l(i.valueposition,c.valuePosition),drawAnchors:Boolean(h(i.drawanchors,n.drawanchors,n.showanchors,1)),anchorBgColor:M,anchorBgAlpha:F,anchorBorderColor:P,anchorBorderThickness:I,anchorRadius:E,anchorSides:L,anchorAngle:D,anchorShadow:e.anchorShadow,getLink:this.linkClickFN,anchorStartAngle:h(i.anchorstartangle,n.anchorstartangle),_sourceDataset:i,hoverEffects:N,imageUrl:l(i.anchorimageurl,n.anchorimageurl),imageScale:l(i.anchorimagescale,n.anchorimagescale,100),imageAlpha:l(i.anchorimagealpha,n.anchorimagealpha,100),imagePadding:l(i.anchorimagepadding,n.anchorimagepadding,1),isAnchorRadius:h(i.anchorradius,n.anchorradius),isAnchorHoverRadius:h(i.hoverradius,n.hoverradius,i.anchorhoverradius,n.anchorhoverradius)},this),c=0;c<a;c+=1)(p=d[c])?null===(n=p?x.getCleanValue(p.value,b):null)?e.data.push({y:null}):(s=!0,p=i(p,c,n),e.data.push(p),p.previousY=this.pointValueWatcher(r,n,y,v,c,0,g)):e.data.push({y:null});return!t||s||this.realtimeEnabled||(e.showInLegend=!1),e},defaultSeriesType:"area",defaultPlotShadow:0},tt),K("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",canvasPaddingModifiers:["anchorlabel"],point:function(t,e,i,n,r,a,s){t=h(n.ignoreemptydatasets,0);var d,u,p,g,v,b,y,x,w,_,C,S,k,A,T,L,D,E,P,I,M,O=this.colorManager,F=O.getPlotColor();a=!1,v=h(i.drawline,n.drawlines,0),b=h(i.drawprogressioncurve,0),g=i.data||[];var R,N,j,V,H,z,q=h(i.showvalues,r[f].showValues),U=this.numberFormatter,G=e._showRegression=h(i.showregressionline,n.showregressionline,0);for(e.zIndex=1,e.name=c(i.seriesname),0!==h(i.includeinlegend)&&void 0!==e.name||(e.showInLegend=!1),(v||b)&&(p=B(l(i.color,F)),g=l(i.alpha,ot),v=h(i.linethickness,n.linethickness,2),b=Boolean(h(i.linedashed,i.dashed,n.linedashed,0)),y=h(i.linedashlen,n.linedashlen,5),x=h(i.linedashgap,n.linedashgap,4),e.color=W(l(i.linecolor,n.linecolor,p),h(i.linealpha,n.linealpha,g)),e.lineWidth=v,e.dashStyle=b?m(y,x,v):"none"),v=Boolean(h(i.drawanchors,i.showanchors,n.drawanchors,n.showanchors,1)),s=h(i.anchorsides,n.anchorsides,s+3),b=h(i.anchorradius,n.anchorradius,3),p=B(l(i.anchorbordercolor,i.color,n.anchorbordercolor,p,F)),F=h(i.anchorborderthickness,n.anchorborderthickness,1),y=B(l(i.anchorbgcolor,n.anchorbgcolor,O.getColor("anchorBgColor"))),x=l(i.anchoralpha,i.alpha,n.anchoralpha,ot),C=l(i.anchorbgalpha,i.alpha,n.anchorbgalpha,x),I=l(i.anchorstartangle,n.anchorstartangle,90),e.anchorShadow=O=h(n.anchorshadow,0),e.marker={fillColor:this.getPointColor(y,ot),lineColor:{FCcolor:{color:p,alph
34a:x+o}},lineWidth:F,radius:b,symbol:Z(s)},H=(g=i.data||[]).length,G&&(e.events={hide:this.hideRLine,show:this.showRLine},R={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},V=h(i.showyonx,n.showyonx,1),N=B(l(i.regressionlinecolor,n.regressionlinecolor,p)),j=h(i.regressionlinethickness,n.regressionlinethickness,F),d=$(h(i.regressionlinealpha,n.regressionlinealpha,x)),N=W(N,d)),u=0;u<H;u+=1)(w=g[u])?(d=U.getCleanValue(w.y),P=U.getCleanValue(w.x),null===d?e.data.push({y:null,x:P}):(a=!0,M=this.getPointStub(w,d,U.xAxis(P),r,i,q),S=h(w.anchorsides,s),k=h(w.anchorradius,b),A=B(l(w.anchorbordercolor,p)),T=h(w.anchorborderthickness,F),L=B(l(w.anchorbgcolor,y)),D=l(w.anchoralpha,w.alpha,x),E=l(w.anchorbgalpha,C),_=Boolean(h(w.anchorshadow,O,0)),z=this.pointHoverOptions(w,e,{plotType:"anchor",anchorBgColor:L,anchorAlpha:D,anchorBgAlpha:E,anchorAngle:I,anchorBorderThickness:T,anchorBorderColor:A,anchorBorderAlpha:D,anchorSides:S,anchorRadius:k,shadow:void 0}),e.data.push({y:d,x:P,displayValue:M.displayValue,displayValueArgs:M.displayValueArgs,toolText:M.toolText,link:M.link,marker:{enabled:v,shadow:_&&{opacity:D/100},fillColor:{FCcolor:{color:L,alpha:E*D/100+o}},lineColor:{FCcolor:{color:A,alpha:D}}
34,lineWidth:T,radius:k,symbol:Z(S),startAngle:l(w.anchorstartangle,i.anchorstartangle,n.anchorstartangle,90)},hoverEffects:z.enabled&&z.options,rolloverProperties:z.enabled&&z.rolloverOptions}),this.pointValueWatcher(r,d,P,G&&R))):e.data.push({y:null});return G&&(i=this.getRegressionLineSeries(R,V,H),this.pointValueWatcher(r,i[0].y,i[0].x),this.pointValueWatcher(r,i[1].y,i[1].x),e=[e,r={type:"line",color:N,showInLegend:!1,lineWidth:j,enableMouseTracking:!1,marker:{enabled:!1},data:i,zIndex:0}]),t&&!a&&(e.showInLegend=!1),e},postSeriesAddition:function(t,e){for(var i=t.chart,n=e.chart,r=t.series,o=0,a=r.length;o<a;o+=1)r[o]._showRegression&&(r[o].relatedSeries=[o+1]);i.clipBubbles=h(n.clipbubbles,1)},categoryAdder:function(t,e){var i,n,r,a,s,c,u,g,v,b,y,x=0,w=e[f].x,_=e.xAxis,C=t.chart,S=parseInt(C.labelstep,10),k=h(C.showlabels,1),A=l(C.xaxislabelmode,"categories").toLowerCase(),T=this.colorManager,L=e[f].numberFormatter;if(e._FCconf.isXYPlot=!0,S=1<S?S:1,w.catOccupied={},"auto"!==A&&t.categories&&t.categories[0]&&t.categories[0].category){for((s=t.categories[0]).font&&(e.xAxis.labels.style.fontFamily=s.font),void 0!==(n=h(s.fontsize))&&(1>n&&(n=1),e.xAxis.labels.style.fontSize=n+at,N(e.xAxis.labels.style)),s.fontcolor&&(e.xAxis.labels.style.color=s.fontcolor.split(et)[0].replace(/^\#?/,"#")),i=l(s.verticallinecolor,T.getColor("divLineColor")),n=h(s.verticallinethickness,1),r=h(s.verticallinealpha,T.getColor("divLineAlpha")),T=h(s.verticallinedashed,0),c=h(s.verticallinedashlen,4),u=h(s.verticallinedashgap,2),g=W(i,r),i=0;i<s.category.length;i+=1)v=s.category[i],null===(r=L.getCleanValue(v.x))||v.vline||(w.catOccupied[r]=!0,a=h(v.showlabel,v.showname,k),b=h(v.showverticalline,v.showline,v.sl,0),y=h(v.linedashed,T),a=0===a||0!=x%S?o:p(d(v.label,v.name)),_.plotLines.push({isGrid:!0,isCat:!0,isDataLabel:!0,width:b?n:0,color:g,dashStyle:m(c,u,n,y),value:r,label:{text:a,link:l(v.link,C.labellink),style:J({},v,C,_.labels.style),align:q,verticalAlign:G,textAlign:q,rotation:0,x:0,y:0}}),this.pointValueWatcher(e,null,r),x+=1);"mixed"===A&&(w.requiredAutoNumericLabels=h(this.requiredAutoNumericLabels,1))}else w.requiredAutoNumericLabels=h(this.requiredAutoNumericLabels,1);w.adjustMinMax=!0},getPointColor:function(t,e){var i,n;return t=B(t),e=$(e),i=H(t,70),n=V(t,50),{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:i+et+n,alpha:e+et+e,ratio:ut,radialGradient:!0}}}},K.xybase),K("mscombibase",{canvasPaddingModifiers:["anchor","anchorlabel"],series:function(t,e,i){var n,r,o,s,c,u,p,g,m=t.chart,v=[],b=[],y=[],x=e[f],w=this.isDual,_=0;if(e.legend.enabled=Boolean(h(t.chart.showlegend,1)),t.dataset&&0<t.dataset.length){for(this.categoryAdder(t,e),s=x.oriCatTmp.length,n=0,r=t.dataset.length;n<r;n+=1)switch(o=t.dataset[n],u=!(!w||"s"!==l(o.parentyaxis,"p").toLowerCase()),c={__positiionIndex:n,hoverEffects:this.parseSeriesHoverOptions(t,e,o,i),visible:!h(o.initiallyhidden,0),legendIndex:n,data:[]},u?(c.yAxis=1,p=d(o.renderas,this.secondarySeriesType),this.secondarySeriesFilter&&(g=this.secondarySeriesFilter[p])):(p=d(o.renderas,this.defaultSeriesType),this.defaultSeriesFilter&&(g=this.defaultSeriesFilter[p])),p=p.toLowerCase(),p){case"line":case"spline":c.type=!0===g?p:"line",v.push(K.mslinebase.point.call(this,i,c,o,m,e,s,n));break;case"area":case"splinearea":c.type=!0===g?p:"area",e.chart.series2D3Dshift=!0,y.push(K.msareabase.point.call(this,i,c,o,m,e,s,n));break;case"column":case"column3d":b.push(K.mscolumn2dbase.point.call(this,i,c,t.dataset[n],m,e,s,n,void 0,_)),_+=1;break;default:u?(c.type="line",v.push(K.mslinebase.point.call(this,i,c,o,m,e,s,n))):(b.push(K.mscolumn2dbase.point.call(this,i,c,t.dataset[n],m,e,s,n,void 0,_)),_+=1)}if("0"!==m.areaovercolumns?(e.chart.areaOverColumns=!0,e.series=e.series.concat(b,y,v)):(e.chart.areaOverColumns=!1,e.series=e.series.concat(y,b,v)),0===b.length&&1!==s)x.hasNoColumn=!0;else if(!this.isStacked)for(i=0,n=b.length;i<n;i+=1)b[i].numColumns=n;this.configureAxis(e,t),t.trendlines&&a(t.trendlines,e.yAxis,e[f],w,this.isBar)}}},K.mscolumn2dbase)}]),
35FusionCharts.register("module",["private","modules.renderer.jpegtopdf",function(){var t=this.window,e=t.btoa,i=t.atob;this.hcLib.JpegToPdf=function(t,n){var r,o,a,s=[],l=0,c=t||500,h=n||500;r=function(t){l+=t.length+1,s.push(t)},this.addImage=function(t){t=/base64,(.+?)$/g.exec(t),a=i(t[1])},o=function(){var t,e,i=[];for(r("%PDF-1.7"),i[1]=l,r("1 0 obj"),r("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),r("endobj"),i[4]=l,r("4 0 obj"),r("<< /Length 36>>"),r("stream"),r("q "+h+" 0 0 "+c+" 0 0 cm /Im3 Do Q"),r("endstream"),r("endobj"),i[5]=l,r("5 0 obj"),r("<</Type /Page /Parent 2 0 R /MediaBox [0 0 "+h+" "+c+"] /Contents [4 0 R ] /Resources <</ProcSet 1 0 R /Font <<>> /XObject <</Im3 3 0 R >> >> >>"),r("endobj"),i[3]=l,r("3 0 obj"),r("<</Type /XObject /Subtype /Image /Width "+h+" /Height "+c+" /ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter /DCTDecode /Length "+a.length+">>"),r("stream"),r(a),r("endstream"),r("endobj"),i[2]=l,r("2 0 obj"),r("<</Type /Pages /Kids [5 0 R ] /Count 1>>"),r("endobj"),i[6]=l,r("6 0 obj"),r("<</Type /Catalog /Pages 2 0 R >>"),r("endobj"),t=l,r("xref"),r("0 7"),r("0000000000 65535 f "),e=1;6>=e;e++)r(("0000000000"+i[e]).slice(-10)+" 00000 n ");return r("trailer"),r("<</Size 7 /Root 6 0 R >>"),r("startxref"),r(t),r("%%EOF"),s.join("\n")},this.getDataUrl=function(){return"data:application/pdf;base64,"+e(o())}}}]),function(){var t=window,e=t.document,n={},r={};
35t.SvgDeCanvo=function(t,e,i){var n={svg:"",context:"",callBack:"",imageArr:[]};if(!(this instanceof SvgDeCanvo))throw"This function should be used as class";this._getStore=function(t){return void 0!==n[t]&&n[t]},this._setStore=function(t,e){void 0!==n[t]&&(n[t]=e)},t&&this.setSVG(t),e&&this.setContext(e),i&&this.setCallback(i),this.drawOnCanvas()},SvgDeCanvo.prototype.setContext=function(t){var e;if(!t.getContext||!t.getContext("2d"))throw"Please provide valid canvas";(e=t.getContext("2d")).save(),e.fillStyle="#ffffff",e.fillRect(0,0,t.width,t.height),e.restore(),this._setStore("context",e)},SvgDeCanvo.prototype.getContext=function(){return this._getStore("context")},SvgDeCanvo.prototype.setSVG=function(t){if(void 0!==t.documentElement)this._setStore("svg",t);else{if("<"!=t.substr(0,1))throw"Please provide valid SVG";t=r.StrToDom(t),this._setStore("svg",t)}},SvgDeCanvo.prototype.getSVG=function(){return this._getStore("svg")},SvgDeCanvo.prototype.setCallback=function(t){"function"==typeof t&&this._setStore("callBack",t)},SvgDeCanvo.prototype.getCallback=function(){return this._getStore("callBack")},SvgDeCanvo.prototype.drawOnCanvas=function(t,e,i){t&&this.setSVG(t),e&&this.setContext(e),i&&this.setCallback(i),i=this.getCallback(),t=this.getContext(),(e=this.getSVG())&&t&&(r.storeImagesInArr(this),r.drawNodes([e],[],this,t,i))},n.common=function(t,e,o,a,s){var l=t.childNodes,c=function(){t.attributes&&a.restore(),s&&s()};for(i in e)e.hasOwnProperty(i)&&"class"!=e[i].name&&"id"!=e[i].name&&"transform"!=e[i].name&&"clip-path"!=e[i].name&&"object"==typeof e[i]&&t.attributes&&!t.attributes[e[i].name]&&t.setAttribute([e[i].name],e[i].value);if(t.attributes&&t.attributes.style)for(i in styleArr=t.attributes.style.value.replace(/;$/,"").split(";"),styleArr)if(styleArr.hasOwnProperty(i)&&(styleName=styleArr[i].split(":")[0].trim(),!t.attributes[styleName]||"undefined"==t.attributes[styleName].value))try{t.setAttribute(styleName,styleArr[i].split(":")[1].trim())}catch(t){}t.attributes&&(a.save(),t.attributes.transform&&r.startTransform(t.attributes.transform.value,a),t.attributes["clip-path"]&&r.applyClip(t.attributes["clip-path"].value,a,o)),0==l.length||1==l.length&&!l[0].tagName?void 0!==t.tagName?(e="draw"+t.tagName,n[e]?t.attributes.display&&"none"==t.attributes.display.value?c():n[e](t,a,o,"draw",c):c()):c():r.drawNodes(l,"svg"==t.tagName?[]:t.attributes,o,a,c)},n.drawtext=function(t,e,i,n,r){this.drawtspan(t,e,i,n,r)},n.drawtspan=function(i,n,o,a,s){var l,c=i.innerHTML||i.textContent,h=i.attributes.x?i.attributes.x.value:0,d=i.attributes.y?i.attributes.y.value:0,u=i.attributes.dx?i.attributes.dx.value:0,p=i.attributes.dy?i.attributes.dy.value:0,f="serief",g="normal",m="16px",v=[];e.getElementsByTagName("body")[0]&&((l=t.getComputedStyle(e.getElementsByTagName("body")[0],null)).getPropertyValue("font-family")&&(f=l.getPropertyValue("font-family")),l.getPropertyValue("font-weight")&&(g=l.getPropertyValue("font-weight")),l.getPropertyValue("font-size")&&(m=l.getPropertyValue("font-size"))),f=i.attributes["font-family"]?i.attributes["font-family"].value:f,g=i.attributes["font-weight"]?i.attributes["font-weight"].value:g,l=i.attributes["text-anchor"]?i.attributes["text-anchor"].value:"start",m=i.attributes["font-size"]?i.attributes["font-size"].value:m,h=Number(h)+Number(u),d=Number(d)+Number(p),c=c.trim(),l="middle"==l?"center":l,n.save(),n.font=g+" "+m+" "+f,n.textAlign=l,"draw"===a&&((!i.attributes.fill||i.attributes.fill&&"none"!=i.attributes.fill.value)&&(r.applyFillEffect(i,n,o,v),n.fillText(c,h,d),r.endFillEffect(i,n)),(!i.attributes.stroke||i.attributes.stroke&&"none"!=i.attributes.stroke.value)&&(r.applyStrokeEffect(i,n,o,v),n.strokeText(c,h,d),r.endStrokeEffect(i,n))),n.restore(),"function"==typeof s&&s()},n.drawcircle=function(t,e,i,n,o){var a=Number(t.attributes.cx.value),s=Number(t.attributes.cy.value),l=Number(t.attributes.r.value),c=[];e.beginPath(),e.arc(a,s,l,0,2*Math.PI),r.bBoxFromPoint([a,1*a+1*l,1*a-1*l],[s,1*s+1*l,1*s-1*l],c),"draw"===n&&((!t.attributes.fill||t.attributes.fill&&"none"!=t.attributes.fill.value)&&(r.applyFillEffect(t,e,i,c),e.fill(),r.endFillEffect(t,e)),(!t.attributes.stroke||t.attributes.stroke&&"none"!=t.attributes.stroke.value)&&(r.applyStrokeEffect(t,e,i,c),e.stroke(),r.endStrokeEffect(t,e))),e.closePath(),"function"==typeof o&&o()}
vendor: 4,268 bytes, line 35
35,n.drawrect=function(t,e,i,n,o){var a=Number(t.attributes.x.value),s=Number(t.attributes.y.value),l=t.attributes.rx?Number(t.attributes.rx.value):0,c=t.attributes.ry?Number(t.attributes.ry.value):0,h=Number(t.attributes.height.value),d=Number(t.attributes.width.value),u=[];r.bBoxFromPoint([a,a+d],[s,s+h],u),e.beginPath(),e.moveTo(a+l,s),e.lineTo(a+d-l,s),e.quadraticCurveTo(a+d,s,a+d,s+c),e.lineTo(a+d,s+h-c),e.quadraticCurveTo(a+d,s+h,a+d-l,s+h),e.lineTo(a+l,s+h),e.quadraticCurveTo(a,s+h,a,s+h-c),e.lineTo(a,s+c),e.quadraticCurveTo(a,s,a+l,s),"draw"===n&&((!t.attributes.fill||t.attributes.fill&&"none"!=t.attributes.fill.value)&&(r.applyFillEffect(t,e,i,u),e.fill(),r.endFillEffect(t,e)),(!t.attributes.stroke||t.attributes.stroke&&"none"!=t.attributes.stroke.value)&&(r.applyStrokeEffect(t,e,i,u),e.stroke(),r.endStrokeEffect(t,e))),e.closePath(),"function"==typeof o&&o()},n.drawellipse=function(t,e,i,n,o){var a=Number(t.attributes.cx.value),s=Number(t.attributes.cy.value),l=Number(t.attributes.rx.value),c=Number(t.attributes.ry.value),h=.5522848*l,d=.5522848*c,u=a+l,p=s+c,f=[];e.beginPath(),e.moveTo(a-l,s),e.bezierCurveTo(a-l,s-d,a-h,s-c,a,s-c),e.bezierCurveTo(a+h,s-c,u,s-d,u,s),e.bezierCurveTo(u,s+d,a+h,p,a,p),e.bezierCurveTo(a-h,p,a-l,s+d,a-l,s),r.bBoxFromPoint([a+l,a-l],[s+c,s-c],f),"draw"===n&&((!t.attributes.fill||t.attributes.fill&&"none"!=t.attributes.fill.value)&&(r.applyFillEffect(t,e,i,f),e.fill(),r.endFillEffect(t,e)),(!t.attributes.stroke||t.attributes.stroke&&"none"!=t.attributes.stroke.value)&&(r.applyStrokeEffect(t,e,i,f),e.stroke(),r.endStrokeEffect(t,e))),e.closePath(),"function"==typeof o&&o()},n.drawimage=function(t,e,i,n,r){var o,a=t.attributes.x?Number(t.attributes.x.value):0,s=t.attributes.y?Number(t.attributes.y.value):0,l=t.attributes.height?Number(t.attributes.height.value):0,c=t.attributes.width?Number(t.attributes.width.value):0,h=i._getStore("imageArr");e.save(),t.attributes.opacity&&(e.globalAlpha=t.attributes.opacity.value),t.attributes["xlink:href"]?(o=t.attributes["xlink:href"].value,"complete"===h[o].status?(e.drawImage(h[o].obj,a,s,c,l),e.globalAlpha=1,e.restore(),"function"==typeof r&&r()):"error"===h[o].status?(e.globalAlpha=1,e.restore(),"function"==typeof r&&r()):"progress"===h[o].status?(h[o].callback=function(){e.drawImage(h[o].obj,a,s,c,l),e.globalAlpha=1,e.restore(),"function"==typeof r&&r()},h[o].errCallback=function(){e.globalAlpha=1,e.restore(),"function"==typeof r&&r()}):(e.globalAlpha=1,e.restore(),"function"==typeof r&&r())):(e.globalAlpha=1,e.restore(),"function"==typeof r&&r())},n.drawpath=function(t,e,i,n,o){var a,s,l,c,h=t.attributes.d.value.match(/[a-z][^a-z"]*/gi),d=[],u=0,p=0;for(a in e.beginPath(),h)if(h.hasOwnProperty(a))switch(s=h[a].substring(0,1),l=r.getArgsAsArray(h[a].substring(1,h[a].length)),s){case"M":u=Number(l[0]),p=Number(l[1]),e.moveTo(u,p);break;case"m":u+=Number(l[0]),p+=Number(l[1]),e.moveTo(u,p);break;case"L":for(c=0;l[c];c+=2)r.bBoxFromPoint([u,l[c]],[p,l[c+1]],d),u=Number(l[c]),p=Number(l[c+1]),e.lineTo(u,p);break;case"l":for(c=0;l[c];c+=2)r.bBoxFromPoint([u,1*u+1*l[c]],[p,1*p+1*l[c+1]],d),u+=Number(l[c]),p+=Number(l[c+1]),e.lineTo(u,p);break;case"V":for(c=0;l[c];c+=1)r.bBoxFromPoint([u],[p,l[c]],d),p=Number(l[c]),e.lineTo(u,p);break;case"v":for(c=0;l[c];c+=1)r.bBoxFromPoint([u],[p,1*p+1*l[c]],d),p+=Number(l[c]),e.lineTo(u,p);break;case"H":for(c=0;l[c];c+=1)r.bBoxFromPoint([u,l[c]],[p],d),u=Number(l[c]),e.lineTo(u,p);break;case"h":for(c=0;l[c];c+=1)r.bBoxFromPoint([u,1*u+1*l[c]],[p],d),u+=Number(l[c]),e.lineTo(u,p);break;case"Q":for(c=0;l[c];c+=4)r.qBezierBBox(u,p,l[c],l[c+1],l[c+2],l[c+3],d),e.quadraticCurveTo(Number(l[c]),Number(l[c+1]),Number(l[c+2]),Number(l[c+3])),u=Number(l[c+2]),p=Number(l[c+3]);break;case"q":for(c=0;l[c];c+=4)r.qBezierBBox(u,p,u+1*l[c],p+1*l[c+1],1*u+1*l[c+2],1*p+1*l[c+3],d),e.quadraticCurveTo(u+1*l[c],p+1*l[c+1],u+=Number(l[c+2]),p+=Number(l[c+3]));break;case"C":for(c=0;l[c];c+=6)r.cBezierBBox(u,p,l[c],l[c+1],l[c+2],l[c+3],l[c+4],l[c+5],d),e.bezierCurveTo(l[c],l[c+1],l[c+2],l[c+3],l[c+4],l[c+5]),u=Number(l[c+4]),p=Number(l[c+5]);break;case"c":for(c=0;l[c];c+=6)r.cBezierBBox(u,p,u+1*l[c],1*p+1*l[c+1],u+1*l[c+2],1*p+1*l[c+3],u+1*l[c+4],1*p+1*l[c+5],d),e.bezierCurveTo(u+Number(l[c]),p+Number(l[c+1]
35),u+Number(l[c+2]),p+Number(l[c+3]),u+=Number(l[c+4]),p+=Number(l[c+5]));break;case"a":case"A":for(c=0;l[c];c+=7){var f,g,m,v,b,y,x,w,_,C,S,k,A,T,L=Number(l[c]),D=Number(l[c+1]);if(f=Math.PI/180*Number(l[c+2]),g=Number(l[c+3]),m=Number(l[c+4]),v=Number(l[c+5]),b=Number(l[c+6]),y=Math.cos(f)*(u-v)/2+Math.sin(f)*(p-b)/2,x=-Math.sin(f)*(u-v)/2+Math.cos(f)*(p-b)/2,L=0>L?-L:L,D=0>D?-D:D,1<(k=Math.pow(y,2)/Math.pow(L,2)+Math.pow(x,2)/Math.pow(D,2))&&(L*=Math.sqrt(k),D*=Math.sqrt(k)),k=L>D?L:D,A=L>D?1:L/D,T=L>D?D/L:1,g=(g==m?-1:1)*Math.sqrt((Math.pow(L,2)*Math.pow(D,2)-Math.pow(L,2)*Math.pow(x,2)-Math.pow(D,2)*Math.pow(y,2))/(Math.pow(L,2)*Math.pow(x,2)+Math.pow(D,2)*Math.pow(y,2))),isNaN(g)&&(g=0),_=-g*D*y/L,C=(w=g*L*x/D)*Math.cos(f)-_*Math.sin(f)+(u+v)/2,S=w*Math.sin(f)+_*Math.cos(f)+(p+b)/2,g=r.angleBetweenVectors(1,0,(y-w)/L,(x-_)/D),y=r.angleBetweenVectors((y-w)/L,(x-_)/D,(-y-w)/L,(-x-_)/D),0==m&&0<y&&(y-=Math.PI/180*360),1==m&&0>y&&(y+=Math.PI/180*360),0==L&&0==D){e.lineTo(v,b);break}e.save(),L=r.combineTransformMatrix([[1,0,C,0,1,S],[Math.cos(f),Math.sin(f),0,Math.sin(f),Math.cos(f),0],[A,0,0,0,T,0]]),e.transform(L[0],L[3],L[1],L[4],L[2],L[5]),e.arc(0,0,k,g,g+y,1-m),e.restore(),r.arcBBox(0,0,k,g,g+y,1-m,[L[0],L[3],L[1],L[4],L[2],L[5]],d),"A"==s?(u=Number(l[c+5]),p=Number(l[c+6])):(u+=Number(l[c+5]),p+=Number(l[c+6]))}break;case"Z":case"z":e.closePath()}"draw"===n&&((!t.attributes.fill||t.attributes.fill&&"none"!=t.attributes.fill.value)&&(r.applyFillEffect(t,e,i,d),e.fill(),r.endFillEffect(t,e)),(!t.attributes.stroke||t.attributes.stroke&&"none"!=t.attributes.stroke.value)&&(r.applyStrokeEffect(t,e,i,d),e.stroke(),r.endStrokeEffect(t,e)),o())},r.drawNodes=function(t,e,i,r,o){var a=t.length,s=-1,l=0,c=0,h=function(){var d;(s+=1)<a?((d=t[s]).tagName&&"defs"===d.tagName&&(d=t[s+=1]),d.attributes&&(d.attributes.dy&&(c=d.attributes.dy.value=1*d.attributes.dy.value+1*c),d.attributes.dx&&(l=d.attributes.dx.value=1*d.attributes.dx.value+1*l)),n.common(d,e,i,r,h)):o&&o()};h()},r.storeImagesInArr=function(t){var e,i,n=t.getSVG();for(i in e=t._getStore("imageArr"),t=n.getElementsByTagName("image"))t.hasOwnProperty(i)&&t[i].attributes&&t[i].attributes["xlink:href"]&&(n=t[i].attributes["xlink:href"].value,e[n]||(e[n]=[],e[n].status="progress",e[n].callback=null,e[n].obj=new Image,e[n].obj.onload=function(t){return function(){var i=e[t].callback;i?(e[t].status="complete",i()):e[t].status="complete"}}(n),e[n].obj.onerror=function(t){return function(){var i=e[t].errCallback;i?(e[t].status="error",i()):e[t].status="error"}}(n),e[n].obj.src=n))},r.startTransform=function(t,e){var i,n,o=t.match(/[^\s][a-z,0-9.\-(\s]+\)/gi);for(n in o)o.hasOwnProperty(n)&&(-1<o[n].indexOf("matrix")&&(i=r.stringToArgs(o[n]),e.transform(i[0],i[1],i[2],i[3],i[4],i[5])),-1<o[n].indexOf("translate")&&(i=r.stringToArgs(o[n]),e.translate(i[0]||0,i[1]||0)),-1<o[n].indexOf("rotate")&&(3==(i=r.stringToArgs(o[n])).length?(e.translate(i[1],i[2]),e.rotate(Math.PI/180*i[0]),e.translate(-i[1],-i[2])):e.rotate(Math.PI/180*i[0])),-1<o[n].indexOf("scale")&&(1==(i=r.stringToArgs(o[n])).length?e.scale(i[0]||1,i[0]||1):e.scale(i[0]||1,i[1]||1)),-1<o[n].indexOf("skewX")&&(i=r.stringToArgs(o[n]),e.transform(1,0,Math.tan(Math.PI/180*i[0]),1,0,0)),-1<o[n].indexOf("skewY")&&(i=r.stringToArgs(o[n]),e.transform(1,Math.tan(Math.PI/180*i[0]),0,1,0,0)))},r.resetTransform=function(t){t.setTransform(1,0,0,1,0,0)},r.stringToArgs=function(t){return t=/\(([^\)]+)/.exec(t)[1],r.getArgsAsArray(t)},r.getArgsAsArray=function(t){var e;for(t=t.trim().split(/[\s,]+/),e=0;e<t.length;e++)t[e].trim(),0==t[e].length&&t.splice(e,1);return t},r.applyFillEffect=function(t,e,i,n){e.globalAlpha=t.attributes["fill-opacity"]&&"none"!=t.attributes["fill-opacity"].value?t.attributes["fill-opacity"].value:1,t.attributes.fill&&-1<t.attributes.fill.value.indexOf("url(")?(t=r.getFillStyleById(/url\(.*#([^\)'"]+)/.exec(t.attributes.fill.value)[1],e,i,n),e.fillStyle=t):e.fillStyle=t.attributes.fill?t.attributes.fill.value:"#000000"},r.endFillEffect=function(t,e){e.globalAlpha=1},r.applyStrokeEffect=function(t,e){t.attributes["stroke-opacity"]&&"none"!=t.attributes["stroke-opacity"].value&&(e.globalAlpha=t.attributes["stroke-opacity"].value),t.attributes["stroke-width"]&&(e.lineWidth=t.attributes["stroke-width"].value,0==t.attributes["stroke-width"].value&&(e.globalAlpha=0)),t.attributes["stroke-linecap"]&&"none"!=t.attributes["stroke-linecap"].value&&(e.lineCap=t.attributes["stroke-linecap"].value),t.attributes["stroke-linejoin"]&&"none"!=t.attributes["stroke-linejoin"].value&&(e.lineJoin=t.attributes["stroke-linejoin"].value),t.attributes["stroke-dasharray"]&&"none"!=t.attributes["stroke-dasharray"].value&&e.setLineDash&&e.setLineDash(r.getArgsAsArray(t.attributes["stroke-dasharray"].value)),e.strokeStyle=t.attributes.stroke?t.attributes.stroke.value:"#000000"},r.endStrokeEffect=function(t,e){t.attributes["stroke-opacity"]&&"none"!=t.attributes["stroke-opacity"].value&&(e.globalAlpha=1,e.setLineDash&&e.setLineDash([]),e.lineWidth=1),e.globalAlpha=1}
35,r.applyClip=function(t,e,i){var o,a,s=i.getSVG();if(-1!==t.indexOf("url(")){for(o in t=/url\(.*#([^\)'"]+)/.exec(t)[1],(s=s.getElementById(t)).attributes&&(e.save(),s.attributes.transform&&r.startTransform(s.attributes.transform.value,e)),t=s.childNodes)t.hasOwnProperty(o)&&t[o].tagName&&t[o].constructor!==Array&&(a="draw"+t[o].tagName,t[o].attributes&&(e.save(),t[o].attributes.transform&&r.startTransform(t[o].attributes.transform.value,e)),n[a]&&(n[a](t[o],e,i,"clip"),e.closePath()),t[o].attributes&&e.restore());s.attributes&&e.restore(),e.clip()}},r.getFillStyleById=function(t,e,i,n){return"linearGradient"==(t=i.getSVG().getElementById(t)).tagName?r.getLinearGradient(t,e,n):"radialGradient"==t.tagName?r.getRadialGradient(t,e,n):"#FFFFFF"},r.getLinearGradient=function(t,e,i){var n,o=t.attributes.x1?r.getPercentValue(t.attributes.x1.value,i.xMax-i.xMin,i.xMin):0,a=t.attributes.y1?r.getPercentValue(t.attributes.y1.value,i.yMax-i.yMin,i.yMin):0,s=t.attributes.x2?r.getPercentValue(t.attributes.x2.value,i.xMax-i.xMin,i.xMin):0;for(n in i=t.attributes.y2?r.getPercentValue(t.attributes.y2.value,i.yMax-i.yMin,i.yMin):0,linGrad=e.createLinearGradient(o,a,s,i),t=t.childNodes)t.hasOwnProperty(n)&&t[n].attributes&&t[n].attributes["stop-color"]&&(e=r.toRGB(t[n].attributes["stop-color"].value),o=t[n].attributes["stop-opacity"]?t[n].attributes["stop-opacity"].value:1,e.status?linGrad.addColorStop(r.getPercentValue(t[n].attributes.offset.value,1,0),"rgba("+e.r+","+e.g+","+e.b+","+Number(o)+")"):linGrad.addColorStop(r.getPercentValue(t[n].attributes.offset.value,1,0),t[n].attributes["stop-color"].value));return linGrad},r.getRadialGradient=function(t,e,i){var n,o=t.attributes.cx?r.getPercentValue(t.attributes.cx.value,i.xMax-i.xMin,i.xMin):i.xMin+.5*(i.xMax-i.xMin),a=t.attributes.cy?r.getPercentValue(t.attributes.cy.value,i.yMax-i.yMin,i.yMin):i.yMin+.5*(i.yMax-i.yMin),s=t.attributes.fx?r.getPercentValue(t.attributes.fx.value,i.xMax-i.xMin,i.xMin):i.xMin+.5*(i.xMax-i.xMin),l=t.attributes.fy?r.getPercentValue(t.attributes.fy.value,i.yMax-i.yMin,i.yMin):i.yMin+.5*(i.yMax-i.yMin);for(n in i=t.attributes.r?r.getPercentValue(t.attributes.r.value,(i.yMax-i.yMin+i.xMax-i.xMin)/2,0):r.getPercentValue("50%",(i.yMax-i.yMin+i.xMax-i.xMin)/2,0),e=e.createRadialGradient(s,l,0,o,a,i),t=t.childNodes)t.hasOwnProperty(n)&&t[n].attributes&&t[n].attributes["stop-color"]&&(o=r.toRGB(t[n].attributes["stop-color"].value),a=t[n].attributes["stop-opacity"]?t[n].attributes["stop-opacity"].value:1,o.status?e.addColorStop(r.getPercentValue(t[n].attributes.offset.value,1,0),"rgba("+o.r+","+o.g+","+o.b+","+Number(a)+")"):e.addColorStop(r.getPercentValue(t[n].attributes.offset.value,1,0),t[n].attributes["stop-color"].value));return e},r.getPercentValue=function(t,e,i){return-1!=t.indexOf("%")?(100<(t=/(\d.*)%/.exec(t)[1])&&(t=100),t*e/100+1*i):1<t?t:t*e+1*i},r.bBoxFromPoint=function(t,e,i){void 0!==i.xMin&&(t.push(i.xMin,i.xMax),e.push(i.yMin,i.yMax)),i.xMin=Math.min.apply(this,t),i.xMax=Math.max.apply(this,t),i.yMin=Math.min.apply(this,e),i.yMax=Math.max.apply(this,e)},r.arcBBox=function(t,e,i,n,r,o,a,s){var l,c;a instanceof Array&&(t=t*a[0]+t*a[2]+a[4],e=e*a[1]+e*a[3]+a[5]),c=function(t,e,i){return(t=(t+2*Math.PI)%(2*Math.PI))<=(e=(e+2*Math.PI)%(2*Math.PI))?t<=i&&i<=e:t>=e?!(t>=i&&i>=e):void 0},a=n%(2*Math.PI),l=r%(2*Math.PI),o&&(a=r%(2*Math.PI),l=n%(2*Math.PI)),o=t+i*Math.cos(a),n=e+i*Math.sin(a),o=[o,t+i*Math.cos(l)],n=[n,r=e+i*Math.sin(l)],c(a,l,0)&&(o.push(1*t+1*i),n.push(e)),c(a,l,.5*Math.PI)&&(o.push(t),n.push(1*e+1*i)),c(a,l,Math.PI)&&(o.push(t-1*i),n.push(e)),c(a,l,1.5*Math.PI)&&(o.push(t),n.push(e-1*i)),t=Math.max.apply(this,o),e=Math.min.apply(this,o),i=Math.max.apply(this,n),a=Math.min.apply(this,n),void 0!==s.xMin?(s.xMin=Math.min(e,s.xMin),s.xMax=Math.max(t,s.xMax),s.yMin=Math.min(a,s.yMin),s.yMax=Math.max(i,s.yMax)):(s.xMin=e,s.xMax=t,s.yMin=a,s.yMax=i)},r.qBezierBBox=function(t,e,i,n,r,o,a){var s=1*t-2*i+1*r,l=1*e-2*n+1*o;0==s||0==l?(n=Math.max(t,r),t=Math.min(t,r),r=Math.max(e,o),e=Math.min(e,o)):(s=(t-i)/s,l=(e-n)/l,i=t*Math.pow(1-s,2)+2*i*(1-s)*s+r*Math.pow(s,2),l=e*Math.pow(1-l,2)+2*n*(1-l)*l+o*Math.pow(l,2),n=Math.max(t,r,i),t=Math.min(t,r,i),r=Math.max(e,o,l),e=Math.min(e,o,l)),void 0!==a.xMin?(a.xMin=Math.min(t,a.xMin),a.xMax=Math.max(n,a.xMax),a.yMin=Math.min(e,a.yMin),a.yMax=Math.max(r,a.yMax
35)):(a.xMin=t,a.xMax=n,a.yMin=e,a.yMax=r)},r.cBezierBBox=function(t,e,i,n,r,o,a,s,l){var c,h,d,u,p,f,g;null==r&&null==o&&(r=e+2/3*(n-e),n=(i=t+2/3*(i-t))+1/3*(a-t),o=r+1/3*(s-e)),g=function(t,e,i,n,r){return t*Math.pow(1-r,3)+3*e*r*Math.pow(1-r,2)+3*i*r*r*(1-r)+n*r*r*r},d=3*a-9*r+9*i-3*t,u=6*t-12*i+6*r,h=c=t,a<c&&(c=a),a>h&&(h=a),0<=(p=Math.pow(u,2)-4*d*(3*i-3*t))&&(0<(f=(-u+Math.sqrt(p))/(2*d))&&1>f&&((f=g(t,i,r,a,f))<c&&(c=f),f>h&&(h=f)),0<(d=(-u-Math.sqrt(p))/(2*d))&&1>d&&((f=g(t,i,r,a,d))<c&&(c=f),f>h&&(h=f))),d=3*s-9*o+9*n-3*e,u=6*e-12*n+6*o,i=t=e,s<t&&(t=s),s>i&&(i=s),0<=(p=Math.pow(u,2)-4*d*(3*n-3*e))&&(0<(f=(-u+Math.sqrt(p))/(2*d))&&1>f&&((r=g(e,n,o,s,f))<t&&(t=r),r>i&&(i=r)),0<(d=(-u-Math.sqrt(p))/(2*d))&&1>d&&((r=g(e,n,o,s,d))<t&&(t=r),r>i&&(i=r))),void 0!==l.xMin?(l.xMin=Math.min(c,l.xMin),l.xMax=Math.max(h,l.xMax),l.yMin=Math.min(t,l.yMin),l.yMax=Math.max(i,l.yMax)):(l.xMin=c,l.xMax=h,l.yMin=t,l.yMax=i)},r.combineTransformMatrix=function(t){var e,n=t.length-1;if(0>=n)return t[0];for(e=t[0],i=1;i<=n;i++)e[0]=e[0]*t[i][0]+e[1]*t[i][3],e[1]=e[0]*t[i][1]+e[1]*t[i][4],e[2]=e[0]*t[i][2]+e[1]*t[i][5]+1*e[2],e[3]=e[3]*t[i][0]+e[4]*t[i][3],e[4]=e[3]*t[i][1]+e[4]*t[i][4],e[5]=e[3]*t[i][2]+e[4]*t[i][5]+1*e[5];return e},r.angleBetweenVectors=function(t,e,i,n){return(t*n<e*i?-1:1)*Math.acos((t*i+e*n)/(Math.sqrt(Math.pow(t,2)+Math.pow(e,2))*Math.sqrt(Math.pow(i,2)+Math.pow(n,2))))},r.toRGB=function(t){var e,i,n={r:0,g:0,b:0,status:0};return e=function(t){for(i in t)t.hasOwnProperty(i)&&(0>t[i]||isNaN(t[i])?t[i]=0:255<t[i]&&(t[i]=255));return n={r:t[0],g:t[1],b:t[2],status:1}},(t=t.trim()).match(/^rgb\(|^rgba\(/i)?(t=/\(\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})/.exec(t),e([parseInt(t[1]),parseInt(t[2]),parseInt(t[3])])):t.match(/^#/)&&(t=/(\w{2})(\w{2})(\w{2})/.exec(t),e([parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)])),n},r.StrToDom=function(e){var i;return t.DOMParser?i=(i=new DOMParser).parseFromString(e,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async=!1,i.loadXML(e)),i}}(),FusionCharts.register("module",["private","modules.renderer.js-renderer",function(){function t(t,e,i,n){var r=e.paper,o=e.layers,a=i?"y-axis":"x-axis",s=this.layerAboveDataset=o.layerAboveDataset,l=this.layerBelowDataset=o.layerBelowDataset,c=(o=s.bands||(s.bands=[])).length,h=l.bands||(l.bands=[]),d=h.length,u=s.lines||(s.lines=[]),p=u.length,f=l.lines||(l.lines=[]),g=f.length,m=(s=s.labels||(s.labels=[])).length,v=(l=l.labels||(l.labels=[])).length;this.renderer=e,this.axisData=t||{},this.globalOptions=e.options,this.isVertical=i,this.topBandGroup=this.topBandGroup||r.group(a+"-bands",this.layerAboveDataset),this.belowBandGroup=this.belowBandGroup||r.group(a+"-bands",this.layerBelowDataset),o.push(this.topBandGroup),c&&o[c].insertAfter(o[c-1]),h.push(this.belowBandGroup),d&&h[d].insertAfter(h[d-1]),this.topLineGroup=this.topLineGroup||r.group(a+"-lines",this.layerAboveDataset),this.belowLineGroup=this.belowLineGroup||r.group(a+"-lines",this.layerBelowDataset),this.topLabelGroup=this.topLabelGroup||r.group(a+"-labels",this.layerAboveDataset),this.belowLabelGroup=this.belowLabelGroup||r.group(a+"-labels",this.layerBelowDataset),u.push(this.topLineGroup),p&&u[p].insertAfter(u[p-1]),f.push(this.belowLineGroup),g&&f[g].insertAfter(f[g-1]),s.push(this.topLabelGroup),m&&s[m].insertAfter(s[m-1]),l.push(this.belowLabelGroup),v&&l[v].insertAfter(l[v-1]),this.isReverse=n,this.configure()}function e(t,e,i,n){return ot(e-i[1]-n.top,t-i[0]-n.left)}function i(t,e){var i=e?360:gt;return 0>(t=(t||0)%i)?i+t:t}var n,r=this,o=r.window,a=r.hcLib,s=a.Raphael,l=a.chartAPI,c=/msie/i.test(o.navigator.userAgent)&&!o.opera,h=o.document,d=o.Image,u="VML"===s.type,p=a.BLANKSTRING,f=a.getPosition,g="rgba(192,192,192,"+(c?.002:1e-6)+")",m=(c=a.TOUCH_THRESHOLD_PIXELS,a.CLICK_THRESHOLD_PIXELS),v=a.componentDispose,b=a.stubFN,y={pageX:0,pageY:0},x=parseFloat,w=parseInt,_=a.extend2,C=a.addEvent,S=a.getMouseCoordinate,k=a.removeEvent,A=a.pluck,T=a.pluckNumber,L=a.toRaphaelColor,D=a.graphics.convertColor,E=a.getFirstAlpha,P=a.HUNDREDSTRING,I=a.setImageDisplayMode,M=a.FC_CONFIG_STRING,O=/\s\bx\b=['"][^'"]+?['"]/gi,F=/\s\by\b=['"][^'"]+?['"]/gi,R=a.plotEventHandler,B=a.isArray,N=a.JpegToPdf,j=o.SvgDeCanvo,$="createTouch"in h,V=$&&!(o.navigator.maxTouchPoints||o.navigator.msMaxTouchPoints),H=a.each=function(t,e,
35i,n){var r;if(i||(i=t),n||(n={}),B(t)){for(r=0;r<t.length;r+=1)if(!1===e.call(i,t[r],r,t,n))return r}else if(null!=t)for(r in t)if(!1===e.call(i,t[r],r,t,n))return r},W=a.createContextMenu,z=a.hasTouch,q=z?c:m,U=a.getSentenceCase,G=a.getCrispValues,Y=a.getValidValue,X=a.getFirstValue,J=a.parseTooltext,K=a.regex.dropHash,Z=a.HASHSTRING,Q=function(t){return t!==n&&null!==t},tt=function(t,e){return t[1]===t[4]&&(t[1]=t[4]=at(t[1])+e%2/2),t[2]===t[5]&&(t[2]=t[5]=at(t[2])+e%2/2),t},et=8===h.documentMode?"visible":"",it=o.Math,nt=it.sin,rt=it.cos,ot=it.atan2,at=it.round,st=it.min,lt=it.max,ct=it.abs,ht=it.ceil,dt=it.floor,ut=180/it.PI,pt=it.PI,ft=pt/2,gt=2*pt,mt=pt+ft,vt=a.getFirstColor,bt=a.graphics.getLightColor,yt=a.POSITION_TOP,xt=a.POSITION_BOTTOM,wt=a.POSITION_RIGHT,_t=a.POSITION_LEFT;s.ca.ishot=function(t){if(this.removed)return!1;var e=this.node;switch(t=t||"",e.ishot=t,this.type){case"group":for(e=this.bottom;e;)e.attr("ishot",t),e=e.next;break;case"text":if(s.svg)for(e=e.getElementsByTagName("tspan")[0];e;)e.ishot=t,e=e.nextSibling}return!1},s.addSymbol({printIcon:function(t,e,i){var n=.75*i,r=.5*i,o=.33*i,a=at(t-i)+.5,s=at(e-i)+.5,l=at(t+i)+.5;i=at(e+i)+.5;var c=at(t-n)+.5,h=at(e-n)+.5,d=(n=at(t+n)+.5,at(e+r)+.5),u=at(t+r)+.5,p=at(e+o)+.5;return["M",c,s,"L",n,s,n,h,c,h,"Z","M",a,h,"L",a,d,c,d,c,e,n,e,n,d,l,d,l,h,"Z","M",c,e,"L",c,i,n,i,n,e,"Z","M",u,p,"L",t=at(t-r)+.5,p,"M",u,o=at(e+o+o)+.5,"L",t,o]},exportIcon:function(t,e,i){var n=.5*(s=.66*i),r=at(t-i)+.5,o=at(e-i)+.5,a=at(t+i)+.5;i=at(e+i)-.5;var s,l=at(t-n)+.5,c=e<i-3?i-3:at(e)+.5,h=(n=at(t+n)-.5,at(t+s)-.5);return["M",r,c,"L",r,i,a,i,a,c,a,i,r,i,"Z","M",t,i-1,"L",s=at(t-s)+.5,e,l,e,l,o,n,o,n,e,h,e,"Z"]}}),a.rendererRoot=l("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(t,e,i){var n,o,a=this,l=a.container=t&&t.containerElement||e.chart.renderTo,c=e.tooltip,h=a.layer;a.options=e,a.logic=t,a.definition=t.dataObj,a.smartLabel=t.smartLabel,a.numberFormatter=t.numberFormatter,a.fusionCharts=t.chartInstance,a.linkClickFN=t.linkClickFN,o=(n=e.chart)&&n.animation&&n.animation.duration,a.animationCompleteQueue=[],l.innerHTML=p,l=a.paper=a.fusionCharts.jsVars.paper=new s(l,l.offsetWidth||t.width,l.offsetHeight||t.height),!1!==r.core.options._useSVGDescTag&&l._desc&&(n=t.friendlyName||"Vector image",a.definition&&a.definition.chart&&a.definition.chart.caption&&(n+=' with caption "'+a.definition.chart.caption+'"'),l._desc(n)),a.chartWidth=l.width,a.chartHeight=l.height,a.elements||(a.elements={}),h||((h=a.layers={}).background=h.background||l.group("background"),h.dataset=h.dataset||l.group("dataset").insertAfter(h.background),h.tracker=h.tracker||l.group("hot").insertAfter(h.dataset)),c&&!1!==c.enabled&&(l.tooltip(c.style,c.shadow,c.constrain),h.tracker.trackTooltip(!0),h.dataset.trackTooltip(!0)),a.disposeChartStyleSheet(),a.setMargins(),a.drawBackground(),a.drawButtons(),a.drawGraph(),e.legend&&e.legend.enabled&&a.drawLegend(),a.drawCaption(),a.drawLogo(),a.setChartEvents(),a.drawLabels&&a.drawLabels(),H(e.callbacks,(function(t){t.apply(a,this)}),[t]),H(a.callbacks,(function(t){t.apply(a,this)}),[t]),a.fusionCharts.annotations&&a.fusionCharts.annotations.draw(a),a.createChartStyleSheet(),a.options.nativeMessage||o||r.raiseEvent("internal.animationComplete",{}
35,a.fusionCharts),a.hasRendered=!0,i&&i(a)},disposeChartStyleSheet:function(){this.paper.cssClear()},createChartStyleSheet:function(){this.paper.cssRender()},addCSSDefinition:function(t,e){var i=this.paper;e.color&&(e.fill=e.color),i.cssAddRule(t,e)},animationCompleteQueue:[],animationComplete:function(){var t,e,i,n;if(this.animatedElements=this.animatedElements?++this.animatedElements:1,this.animatedElements===this.animatingElementsCount){for(t=0,e=(i=this.animationCompleteQueue).length;t<e;t++)(n=i[t]).fn&&n.fn.call(n.scope);this.animationCompleteQueue=[],r.raiseEvent("internal.animationComplete",{},this.fusionCharts)}},getAnimationCompleteFn:function(){var t=this;return t.animatingElementsCount=t.animatingElementsCount?++t.animatingElementsCount:1,function(){t.animationComplete()}},reinit:function(t,e,i){this.hasRendered||this.init(e,i)},dispose:function(){var t=this.eventListeners,e=t&&t.length;if(this.disposing=!0,e)for(;e--;)t[e].unlisten();if(this.toolbar&&this.toolbar.length){for(;this.toolbar.length;)(t=this.toolbar.pop()).remove();this.toolbar.add=null}if(this.menus&&this.menus.length)for(;this.menus.length;)(t=this.menus.pop()).destroy();this.paper&&(this.paper.clear(),this.paper.remove(),delete this.paper),this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),delete this.exportIframe),delete this.disposing,this.container=null,this.disposed=!0},onContainerClick:function(t){var e=t.target||t.originalTarget||t.srcElement||t.relatedTarget||t.fromElement,i=e&&e.parentElement,n=e&&e.nodeName.toLowerCase(),o=t.data,s=o.fusionCharts;t=a.getMouseCoordinate(o.container,t.originalEvent),s.ref&&(s=_({height:s.args.height,width:s.args.width,pixelHeight:s.ref.offsetHeight,pixelWidth:s.ref.offsetWidth,id:s.args.id,renderer:s.args.renderer,container:s.options.containerElement},t),r.raiseEvent("chartclick",s,o.logic.chartInstance),e&&e.ishot&&o||"tspan"===n&&i&&i.ishot&&o||o.options.chart.link&&o.linkClickFN.call(o,o))},onContainerMouseMove:function(t){var e=t.data,i=e.fusionCharts;t=a.getMouseCoordinate(e.container,t.originalEvent),i.ref&&(i=_({height:i.args.height,width:i.args.width,pixelHeight:i.ref.offsetHeight,pixelWidth:i.ref.offsetWidth,id:i.args.id,renderer:i.args.renderer,container:i.options.containerElement},t),r.raiseEvent("chartMouseMove",i,e.logic.chartInstance))},onContainerRollOver:function(t){var e=t.data,i=e.fusionCharts;t=a.getMouseCoordinate(e.container,t.originalEvent),i.ref&&(i=_({height:i.args.height,width:i.args.width,pixelHeight:i.ref.offsetHeight,pixelWidth:i.ref.offsetWidth,id:i.args.id,renderer:i.args.renderer,container:i.options.containerElement},t),r.raiseEvent("chartRollOver",i,e.logic.chartInstance))},onContainerRollOut:function(t){var e=t.chart,i=e.fusionCharts;t=a.getMouseCoordinate(e.container,t.event),i.ref&&(i=_({height:i.args.height,width:i.args.width,pixelHeight:i.ref.offsetHeight,pixelWidth:i.ref.offsetWidth,id:i.args.id,renderer:i.args.renderer,container:i.options.containerElement},t),r.raiseEvent("chartRollOut",i,e.logic.chartInstance))},mouseStateIn:!1,winMouseHover:function(t){var e=(e=t.originalEvent).target||e.originalTarget||e.srcElement||e.relatedTarget||e.fromElement,i=t.data,n=i.paper;t={chart:i,event:t.originalEvent},u?n.getById(e.parentNode.raphaelid)||(i.onContainerRollOut(t),i.mouseStateIn=!1,k(h,"mouseover",i.winMouseHover)):e.viewportElement||(i.mouseStateIn=!1,i.onContainerRollOut(t),k(o,"mouseover",i.winMouseHover))},chartHoverManager:function(t){var e=t.type,i=t.data,n=i.eventListeners||(i.eventListeners=[]);"mouseover"!==e&&"touchstart"!==e||!1!==i.mouseStateIn||(i.mouseStateIn=!0,i.onContainerRollOver(t),n.push(C(u?h:o,"mouseover",i.winMouseHover,i)))},setChartEvents:function(){var t=this.options,e=this.eventListeners||(this.eventListeners=[]),i=(t=this.link=t.chart.link,this.container),n=T(this.definition&&this.definition.chart.enablechartmousemoveevent,0);k(i,"click",this.onContainerClick),e.push(C(i,"click",this.onContainerClick,this)),k(this.paper.canvas,"mouseover",this.chartHoverManager,this),k(this.paper.canvas,"touchstart",this.chartHoverManager,this),k(this.paper.canvas,"mouseout",this.chartHoverManager,this),k(this.paper.canvas,"touchend",this.chartHoverManager,this),e.push(C(this.paper.canvas,"mouseover touchstart mouseout touchend",this.chartHoverManager,this)),k(i,"mousemove",this.onContainerMouseMove,this),k(i,"touchmove",this.onContainerMouseMove,this),n&&e.push(C(i,"mousemove touchmove",this.onContainerMouseMove,this)),this.paper.canvas.style.cursor=s.svg?t?"pointer":"default":t?"hand":"default"},onOverlayMessageClick:function(){var t=this.elements;s.animation({opacity:0}
35,1e3),t.messageText&&t.messageText.hide(),t.messageVeil&&t.messageVeil.hide()},showMessage:function(t,e){var i=this.paper,n=this.options.chart,r=this.elements,o=r.messageText,a=r.messageVeil,s=i.width,l=i.height;a||(a=r.messageVeil=i.rect(0,0,s,l).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"})),a.show().toFront().attr("cursor",e?"pointer":"default")[e?"click":"unclick"](this.onOverlayMessageClick,this),o||(o=r.messageText=i.text(s/2,l/2,p).attr({fill:"rgba(255,255,255,1)","font-family":"Verdana,sans","font-size":10,"line-height":14,direction:n.textDirection,ishot:!0})),t=t||p,this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana,sans","font-size":"10px"}),i=this.smartLabel.getSmartText(t,s-(n.spacingRight||0)-(n.spacingLeft||0),l-(n.spacingTop||0)-(n.spacingBotton||0)),o.attr({text:i.text,ishot:!0,cursor:e?"pointer":"default"})[e?"click":"unclick"](this.onOverlayMessageClick,this).show().toFront()},drawButtons:function(){
36var t,e,i=this,r="zoomline"===(d=i.logic).rendererId,o=i.paper,a=i.elements,s=i.toolbar||(i.toolbar=[]),l=i.menus||(i.menus=[]),c=i.layers,h=i.options,d=(t=h[M])&&t.outCanvasStyle||d.outCanvasStyle||{},u=(t=h.chart.toolbar||{}).hDirection,p=r?1:t.vDirection,f=t.button||{},g=f.scale,m=f.width*f.scale,v=f.height*f.scale,b=u*(f.spacing*f.scale+m),y=f.radius,x=(w=(h=h.exporting)&&h.buttons||{}).exportButton&&!1!==w.exportButton.enabled,w=w.printButton&&!1!==w.printButton.enabled,_=c.buttons||(c.buttons=o.group("buttons").trackTooltip(!0));s.y||(s.y=(r?0:t.y)+t.vMargin*p+st(0,v*p)),s.x||(s.x=t.x+t.hMargin*u-lt(0,m*u)),s.count=0,s.add=function(t,e,i){i="string"==typeof i?{tooltip:i}:i||{};var r=0===s.count?b-u*f.spacing*f.scale:b,a=(r=i.x||(s.x+=r),i.y||s.y),l=i.tooltip||"",c=f.disableGradient||(f.disableGradient=i.disableGradient||!1);return s.push(t=o.button(r,a,n,t,{width:i.w||m,height:i.h||v,r:y,id:s.count++,verticalPadding:f.symbolHPadding*g,horizontalPadding:f.symbolHPadding},_).attr({ishot:!0,fill:[f.fill,f.labelFill,f.symbolFill,f.hoverFill,c],stroke:[f.stroke,f.symbolStroke],"stroke-width":[f.strokeWidth,f.symbolStrokeWidth]}).tooltip(l).buttonclick(e)),t},x&&(l.push(e=a.exportMenu=W({chart:i,basicStyle:d,items:function(t){var e,n=[],r=function(t){return function(){i.logic.chartInstance.exportChart({exportFormat:t})}};for(e in t)n.push({text:t[e],onclick:r(e)});return n}(h.exportformats)})),a.exportButton=s.add("exportIcon",function(t,i){return function(){e.visible?e.hide():e.show({x:t,y:i+1})}}(s.x+m,s.y+v),{tooltip:"Export chart"})),w&&(a.printButton=s.add("printIcon",(function(){i.print()}),{tooltip:"Print chart"}))},setMargins:function(){var t=this.paper,e=this.options.chart||{},i=at;this.canvasBorderWidth=e.plotBorderWidth||0,this.canvasTop=i(e.marginTop)||0,this.canvasLeft=i(e.marginLeft)||0,this.canvasWidth=i(t.
36width-(e.marginLeft||0)-(e.marginRight||0)),this.canvasHeight=i(t.height-(e.marginTop||0)-(e.marginBottom||0)),this.canvasRight=this.canvasLeft+this.canvasWidth,this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var t,e,i,n,o,a,s,l=this,c=l.paper,h=l.layers,u=l.elements,p=h.background,f=u.background,g=u.chartborder,m=l.options.chart||{},v=x(m.borderWidth)||0,b=.5*v,y=2*v,w=m.borderWidth||0,_=l.chartHeight,C=l.chartWidth,S=u.backgroundImage,k=m.bgSWF,A=m.bgSWFAlpha/100,T=m.bgImageDisplayMode,D=m.bgImageVAlign,E=m.bgImageHAlign,P=m.bgImageScale,M=w+","+w+","+(C-2*w)+","+(_-2*w);c.canvas.style.backgroundColor=m.containerBackgroundColor,!p&&(p=h.background=c.group("background")),h={x:v,y:v,width:c.width-y,height:c.height-y,stroke:"none",fill:L(m.backgroundColor)},f?f.attr(h):f=u.background=c.rect(h,p),h={x:b,y:b,width:c.width-v,height:c.height-v,stroke:m.borderColor,"stroke-width":v,"stroke-dasharray":m.borderDashStyle,fill:"none",r:m.borderRadius||0},g?g.attr(h):g=u.chartborder=c.rect(h,p),k&&(t=new d,o=i=1,S=[],t.onload=function(){if((e=I(T,D,E,P,w,C,_,t))["clip-rect"]=M,e.tileInfo)for(i=e.tileInfo.xCount,o=a=e.tileInfo.yCount,s=e.y,delete e.tileInfo;i&&e.width&&e.height;)--a,n?(S[void 0]=n.clone().attr({x:e.x,y:e.y}),p.appendChild(S[void 0])):S[void 0]=n=c.image(k,p).attr(e).css({opacity:A}),e.y+=e.height,0===a&&(a=o,--i,e.x+=e.width,e.y=s);else{if(l.disposed||c.disposed)return;S[0]=c.image(k,p),S[0].attr(e).css({opacity:A}).attr({visibility:et,"clip-rect":M})}r.raiseEvent("BackgroundLoaded",{url:k,bgImageAlpha:100*A,bgImageDisplayMode:T,bgImageVAlign:D,bgImageHAlign:E,bgImageScale:P,imageWidth:t.width,imageHeight:t.height},l.logic.chartInstance)},t.onerror=function(t){r.raiseEvent("BackgroundLoadError",{url:k,bgImageAlpha:100*A,error:t,bgImageDisplayMode:T,bgImageVAlign:D,bgImageHAlign:E,bgImageScale:P},l.logic.chartInstance)},t.src=k,u.backgroundImage=S)},drawGraph:function(){var t,e,i=this,n=i.paper,r=i.plots=i.elements.plots,o=i.logic,a=i.layers,s=i.options,l=i.elements,c=s.chart,h=(s=i.datasets=s.series,X(c.rendererId,c.defaultSeriesType)),d=a.background,u=a.dataset=a.dataset||n.group("dataset").insertAfter(d),p=(d=function(t,e){return function(i){var n,a=r[t],s={hcJSON:{series:[]}},l=s.hcJSON.series[t]||(s.hcJSON.series[t]={}),c=o.chartInstance.jsVars._reflowData;n=(i=X(i,!a.visible))?"visible":"hidden",H(a.graphics,(function(t){!0!==t.data("alwaysInvisible")&&t.attr("visibility",n)})),a.visible=i,e.visible=i,l.visible=i,_(c,s,!0)}},function(t){return function(e,n){i["legendClick"+h]&&i["legendClick"+h](r[t],e,n)||i.legendClick&&i.legendClick(r[t],e,n)}}),f=function(t){return function(){return i.getEventArgs&&i.getEventArgs(r[t])}},g=function(t,e,n){return function(o,a){e.call(i,r[t],n,{numUpdate:o,hasAxisChanged:a})}};for(a.tracker=a.tracker||n.group("hot").insertAfter(u),i.drawCanvas(),i.drawAxes(),r||(r=i.plots=i.plots||[],l.plots=r),a=0,l=s.length;a<l;a++)u=(n=s[a]||{}).updatePlot="updatePlot"+U(A(n.type,n.plotType,h)),u=i[u],t=n.drawPlot="drawPlot"+U(A(n.type,n.plotType,h)),t=i[t]||i.drawPlot,(e=r[a
36])||(r.push(e={index:a,items:[],data:n.data||[],name:n.name,userID:n.userID,setVisible:d(a,n),legendClick:p(a),getEventArgs:f(a),realtimeUpdate:g(a,u||t,n)}),n.plot=e,n.legendClick=e.legendClick,n.getEventArgs=e.getEventArgs,n.setVisible=e.setVisible),a&&s[a-1]&&(n.previousData=s[a-1].data),t.call(i,e,n);c.hasScroll&&(i.drawScroller(),i.finalizeScrollPlots())},drawPlot:b,drawCanvas:b,drawAxes:b,drawScroller:function(){},drawLegend:function(){var t,e,i,n,r,o,a,l,c=this,h=c.options,d=c.paper,u=h.chart||{},f=h.legend,g=f.scroll,m=(h=c.elements.legend={elements:{}}).elements,v=c.layers.legend,b=m.box,y=m.caption,x=m.elementGroup,w="vertical"===f.layout,C=u.marginBottom,S=u.spacingBottom,k=u.spacingLeft,A=u.spacingRight,L=d.width,D=d.height,E=c.canvasTop,P=f.width,I=f.height,M=f.borderRadius,O=f.backgroundColor,F=f.borderColor,R=f.borderWidth||0,B=.5*R,N=.5*R+2,j=T(f.padding,4),$=.5*j;if(l=g&&g.enabled,w?(w=L-A-P,C=E+.5*(D-C-E-I)+(f.y||0)):(w=k+.5*(L-k-A-P)+(f.x||0),C=D-S-I),w=(S=s.crispBound(w,C,P,I,R)).x,C=S.y,P=S.width,I=S.height,v||(v=c.layers.legend=d.group("legend").insertBefore(c.layers.tracker).translate(w,C).attr("class","fusioncharts-legend")),c.addCSSDefinition(".fusioncharts-legend .fusioncharts-caption",_({"text-anchor":f.title.align},f.title.style)),f.legendAllowDrag&&(c.addCSSDefinition(".fusioncharts-legend",{cursor:"move"}),e=w,i=C,v.drag((function(t,s){(n=o+t)+P+N>L&&(n=L-P-N),(r=a+s)+I+N>D&&(r=D-I-N),n<N&&(n=N),r<N&&(r=N),v.translate(n-e,r-i),e=n,i=r}),(function(){o=e,a=i}))),M={x:0,y:0,width:P,height:I,r:M,stroke:F,"stroke-width":R,fill:O||"none",ishot:f.legendAllowDrag},b?b.attr(M):b=m.box=d.rect(M,v),b.shadow(f&&f.shadow),l?(b=","+P+","+(t=I-j),x=m.elementGroup=d.group("legenditems",v).attr({"clip-rect":"0,"+$+b}),(g=m.scroller||(m.scroller=d.scroller(P-10+$-R,B,10,I-R,!1,{scrollPosition:g.scrollPosition||0,scrollRatio:(t+j)/f.totalHeight,showButtons:!1,displayStyleFlat:g.flatScrollBars},v))).attr("fill",f.legendScrollBgColor).scroll((function(e){x.transform(["T",0,(t-f.totalHeight)*e]),_(c.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:e}}}},!0)}))):x=m.elementGroup=v,f.title&&f.title.text!==p){switch(f.title.align){case"start":l=j;break;case"end":l=P-j-(l?10:0);break;default:l=.5*P}x.trackTooltip(!0),M={class:"fusioncharts-caption","text-anchor":f.title.align,text:f.title.text,x:l,y:j,fill:f.title.style.color,"vertical-align":"top",direction:u.textDirection,"line-height":f.title.style.lineHeight},y?y.attr(M):y=m.caption=d.text(M,x).attr("class","fusioncharts-caption"),y.tooltip(f.title.originalText)}this["draw"+U(f.type||"point")+"LegendItem"](h)},drawPointLegendItem:function(t){var e,i=this,n=i.paper,o=(e=i.options).series,a=(d=e.chart).defaultSeriesType,s=(e=e.legend).legendHeight,l=e.symbolPadding,c=e.textPadding||2,h=T(e.padding,4),d=d.textDirection,u=e.itemHoverStyle,p=e.itemHiddenStyle,f=e.itemStyle,m=f.color,v=(p=p&&p.color||"#CCCCCC",u&&u.color||m),b=(u=e.symbol3DLighting,e.symbolWidth),y=!1!==e.interactiveLegend,x=(J=t.elements).elementGroup;t=t.item=[];var w,C,k,E,I,M,O,F,R,B,N,j,$,V,H,W,z,q,U,G,Y,X,J=J.item=[],Q=[],tt={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0};for($=0,V=o.length;$<V;$+=1)if(F=(w=o[$]).legendCosmetics||{},w&&!1!==w.showInLegend)if(R=w.type||a,"point"===w.legendType)for(k=0,I=(F=w.data||[]).length;k<I;k+=1)!1!==(w=F[k]||{}).showInLegend&&(w._legendType=R,Q.push(w));
36else switch(w._legendType=R,R){case"pie":case"pie3d":case"funnel":case"pyramid":Q=w.data;break;default:Q.push(w)}for(Q.sort((function(t,e){return(t.legendIndex||0)-(e.legendIndex||0)||t.__i-e.__i})),e.reversed&&Q.reverse(),o=e.initialItemX||0,a=e.initialItemY||0,I=function(t){var e,n=this.data("legendItem"),o=n.getEventArgs?n.getEventArgs():{};t=S(i.logic.chartInstance.ref,t),o.chartX=t.chartX,o.chartY=t.chartY,o.pageX=t.pageX,o.pageY=t.pageY,o.preventDefaults=function(){e=!0},r.raiseEvent("LegendItemClicked",o,i.logic.chartInstance),y&&!e&&n.legendClick()},M=function(t){var e=this.data("legendItem"),n=e.getEventArgs?e.getEventArgs():{};t=S(i.logic.chartInstance.ref,t);var o=!1!==e.visible,a=e.plot.legend.elements.legendItemText;n.chartX=t.chartX,n.chartY=t.chartY,n.pageX=t.pageX,n.pageY=t.pageY,void 0!==e.plot.visible&&(o=e.plot.visible),o&&a&&a.attr({fill:v}),r.raiseEvent("LegendItemRollover",n,i.logic.chartInstance)},O=function(t){var e=this.data("legendItem"),n=e.getEventArgs?e.getEventArgs():{};t=S(i.logic.chartInstance.ref,t);var o=!1!==e.visible,a=e.plot.legend.elements.legendItemText;void 0!==e.plot.visible&&(o=e.plot.visible),n.chartX=t.chartX,n.chartY=t.chartY,n.pageX=t.pageX,n.pageY=t.pageY,o&&a&&a.attr({fill:m}),r.raiseEvent("LegendItemRollout",n,i.logic.chartInstance)},i.addCSSDefinition(".fusioncharts-legend .fusioncharts-legenditem",e.itemStyle),$=0,V=Q.length;$<V;$+=1)!1!==Q[$].showInLegend&&(X={elements:{},hiddenColor:p,itemTextColor:m,hoverColor:v},t.push(X),J.push(X.elements),F=(w=Q[$]).legendCosmetics||{},B=o+w._legendX+h,N=a+w._legendY-h,j=w._legendH,C=w._legendType||R,k=!1!==w.visible,E=X.itemLineColor=L(w.color||{}),w.plot.legend=X,X.elements.legendItemText=n.text({class:"fusioncharts-legenditem",x:B+s+c-2,y:N+(w._legendTestY||0),text:w.name,fill:k?m:p,"vertical-align":"top",direction:d,"text-anchor":"start",cursor:f.cursor||"pointer",ishot:y,"line-height":f.lineHeight,"font-size":f.fontSize},x).data("legendItem",w),F.customLegendIcon?(w&&(q=w.marker)&&!1!==q.enabled?(U=q.lineColor,U=D(A(F.borderColor,U.FCcolor&&U.FCcolor.color.split(",")[0]||U,E),A(F.alpha,P)),G=q.fillColor,G=D(A(F.bgColor,G&&G.FCcolor&&G.FCcolor.color.split(",")[0],G,E),A(F.bgAlpha,F.alpha,P))):(G=A(F.bgColor,w.color&&w.color.FCcolor&&w.color.FCcolor.color||w.color),U=bt(G,60).replace(K,Z),U=D(A(F.borderColor,U),A(F.alpha,P)),G=D(G,A(F.bgAlpha,F.alpha,P))),X.symbolColor=L(G),X.symbolStroke=L(U),E=B+l+(H=.5*b),C=N+(w._markerYGutter||0)+l+H,Y&&(H*=.6),z="spoke"===(W=F.symbol.split("_"))[0]?1:0,(C=W[1]?X.elements.legendItemSymbol=n.polypath(W[1],E,C,H,F.startAngle,z,x):X.elements.legendItemSymbol=n.circle(E,C,H,x)).data("legendItem",w).attr({cursor:f.cursor||"pointer",stroke:k?X.symbolStroke:p,fill:k?X.symbolColor:p,"stroke-width":T(F.borderThickness,1),ishot:y})):tt[C]?(C=N+(w._markerYGutter||0)+l+.5*b,w.lineWidth&&(Y=X.elements.legendItemLine=n.path({"stroke-width":w.lineWidth,stroke:k?E:p,cursor:f.cursor||"pointer",ishot:y,path:["M",B+l,C,"L",B+l+b,C]},x).data("legendItem",w)),w&&(q=w.marker)&&!1!==q.enabled&&(X.symbolStroke=L(A((U=q.lineColor)&&(U.FCcolor&&U.FCcolor.color.split(",")[0]||U),E)),u?q.fillColor&&q.fillColor.FCcolor?(F=_({},q.fillColor)).FCcolor.alpha="100":F=A(q.fillColor,E):F={FCcolor:{color:A((G=q.fillColor)&&(G.FCcolor&&G.FCcolor.color.split(",")[0]||G),E),angle:0,ratio:"0",alpha:"100"}},X.symbolColor=L(F),E=B+l+(H=.5*b),C=N+(w._markerYGutter||0)+l+H,Y&&(H*=.6),z="spoke"===(W=q.symbol.split("_"))[0]?1:0,(C=W[1]?X.elements.legendItemSymbol=n.polypath(W[1],E,C,H,q.startAngle,z,x):X.elements.legendItemSymbol=n.circle(E,C,H,x)).data("legendItem",w).attr({cursor:f.cursor||"pointer",stroke:k?X.symbolStroke:p,fill:k?X.symbolColor:p,"stroke-width":1,ishot:y}))):(F=i.getSymbolPath(B+l,N+(w._markerYGutter||0)+l,b,b,C,w,!u),X.symbolColor=L(F.color),X.symbolStroke=L(F.strokeColor),C=X.elements.legendItemSymbol=n.path({path:F.path,"stroke-width":F.strokeWidth,stroke:k?X.symbolStroke:p,fill:k?X.symbolColor:p,cursor:f.cursor||"pointer",ishot:y}
36,x).data("legendItem",w)),X.elements.legendItemBackground=n.rect({x:B,y:N,width:w._totalWidth,height:j,r:0,fill:L(w.legendFillColor||g),"stroke-width":1,stroke:L(w.legendBorderColor||"none"),cursor:f.cursor||"pointer",ishot:y},x).click(I).mouseover(M).mouseout(O).data("legendItem",w));e.reversed&&Q.reverse()},drawCaption:function(){var t,e=this.options.chart,i=this.options.title,n=this.options.subtitle,r=this.paper,o=this.smartLabel,a=this.elements,s=this.layers,l=s.caption,c=a.caption,h=a.subcaption,d=i.text,u=n&&n.text,p=i.x;!d&&!u||l||((l=s.caption=r.group("caption")).trackTooltip(!0),s.tracker?l.insertBefore(s.tracker):l.insertAfter(s.dataset)),d?(this.addCSSDefinition(".fusioncharts-caption",i.style),t={class:"fusioncharts-caption",text:i.text,fill:i.style.color,x:p,y:i.y||e.spacingTop||0,"text-anchor":i.align||"middle","vertical-align":i.verticalAlign||"top",visibility:"visible",direction:e.textDirection},c?c.attr(t):c=a.caption=r.text(t,l).attr("class","fusioncharts-caption"),c.tooltip(i.originalText),c.css(i.style),o?(o.setStyle(i.style),t=o.getOriSize(i.text).height):t=10):c&&(c=a.caption=c.remove()),u?(this.addCSSDefinition(".fusioncharts-subcaption",n.style),t={class:"fusioncharts-subcaption",text:n.text,fill:n.style.color,x:p,y:d?c.attrs.y+t+2:i.y||e.spacingTop||0,"text-anchor":i.align||"middle","vertical-align":"top",direction:e.textDirection,visibility:"visible"},h?h.attr(t):h=a.subcaption=r.text(t,l).attr("class","fusioncharts-subcaption"),h.css(n.style),h.tooltip(n.originalText)):h&&(a.subcaption=h.remove()),d||u||!l||(s.caption=l.remove())},drawLogo:function(){var t,e,i,n=this,a=n.paper,s=n.elements,l=(C=n.options).credits,c=C.chart||{},h=c.borderWidth||0,p=n.chartHeight,f=n.chartWidth,g=s.logoImage,m=c.logoURL,v=c.logoAlpha/100,b=c.logoPosition,y=c.logoLink,x=c.logoScale,w=c.logoLeftMargin,_=c.logoTopMargin,C={tr:{vAlign:yt,hAlign:wt},bl:{vAlign:xt,hAlign:_t},br:{vAlign:xt,hAlign:wt},cc:{vAlign:"middle",hAlign:"middle"}};n.logic&&l.enabled&&a.text().attr({text:l.text,x:6,y:p-4,"vertical-align":xt,direction:c.textDirection,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",title:l.title||""}).css({fontSize:9,fontFamily:"Verdana,sans",cursor:"pointer",_cursor:"hand"}).click((function(){try{o.open(l.href)}catch(t){(o.top||o).location.href=l.href}})),m&&(t=new d,(i=C[b])||(i={vAlign:yt,hAlign:_t}),t.onload=function(){n.disposed||a.disposed||(e=I("none",i.vAlign,i.hAlign,x,h,f,p,t),u&&(e.w=e.width||0,e.h=e.height||0),e.src=m,g=n.paper.image(e).translate(w,_).css("opacity",v),y&&g.css({cursor:"pointer",_cursor:"hand"}),g.mouseover((function(t){t=S(n.logic.chartInstance.ref,t),r.raiseEvent("LogoRollover",{logoURL:m,logoAlpha:100*v,logoPosition:b||"tl",logoScale:x,logoLink:y,chartX:t.chartX,chartY:t.chartY,pageX:t.pageX,pageY:t.pageY},n.logic.chartInstance)})),g.mouseout((function(t){t=S(n.logic.chartInstance.ref,t),r.raiseEvent("LogoRollout",{logoURL:m,logoAlpha:100*v,logoPosition:b||"tl",logoScale:x,logoLink:y,chartX:t.chartX,chartY:t.chartY,pageX:t.pageX,pageY:t.pageY},n.logic.chartInstance)})),g.click((function(t){t=S(n.logic.chartInstance.ref,t),r.raiseEvent("LogoClick",{logoURL:m,logoAlpha:100*v,logoPosition:b||"tl",logoScale:x,logoLink:y,chartX:t.chartX,chartY:t.chartY,pageX:t.pageX,pageY:t.pageY},n.logic.chartInstance,void 0,(function(){y&&c.events.click.call({link:y})}))})),r.raiseEvent("LogoLoaded",{logoURL:m,logoAlpha:100*v,logoPosition:b||"tl",logoScale:x,logoLink:y},n.logic.chartInstance))},t.onerror=function(t){r.raiseEvent("LogoLoadError",{logoURL:m,logoAlpha:100*v,logoPosition:b||"tl",logoScale:x,logoLink:y,error:t},n.logic.chartInstance)},t.src=m,s.logoImage=g)},getEventArgs:function(t){return{datasetName:(t=t||{}).name,datasetIndex:t.index,id:t.userID,visible:t.visible}},legendClick:function(t,e){var i=(r=(h=t.legend)&&h.elements)&&r.legendItemText,n=r&&r.legendItemSymbol,r=r&&r.legendItemLine,o=h&&h.hiddenColor,a=h&&h.itemLineColor,s=h&&h.itemTextColor,l=h&&h.symbolColor,c=h&&h.symbolStroke,h=A(e,!t.visible);if(t.setVisible(e),h?(n&&n.attr({fill:l||a,stroke:c}),i&&i.attr({fill:s}),r&&r.attr({stroke:a})):(n&&n.attr({fill:o,stroke:o}),i&&i.attr({fill:o}),r&&r.attr({stroke:o})),(i=this.datasets&&this.datasets[t.index]&&this.datasets[t.index].relatedSeries
36)&&i instanceof Array&&0<i.length)for(n=i.length;n--;)r=parseFloat(i[n]),(r=this.plots[r]).legendClick.call(r,h,!1)},exportChart:function(t){var e=this,i=e.fusionCharts,n=a.getSvgDataurl,s=a.removeCrossDomainImages,l=a.getBrowserDetails,c=a.downloadCharts,u=e.options;t="object"==typeof t&&function(t){var e,i={};for(e in t)i[e.toLowerCase()]=t[e];return i}(t)||{};var f=_(_({},u.exporting),t),g=(f.exportformat||"png").toLowerCase(),m=f.exporthandler,v=(f.exportaction||p).toLowerCase(),b=f.exporttargetwindow||p,y=f.exportfilename,x=f.exportparameters,w=f.exportcallback,C=f.exportwithimages,S=f.exportatclientside;if(!u.exporting||!u.exporting.enabled||!m)return!1;r.raiseEvent("beforeExport",f,i,void 0,(function(){function t(){-1!==A.indexOf("<image ")&&H?(D=(L=A.match(/<image [^\>]*\>/gi))&&L.length,E=function(t){var e,i;return(i=t.match(/data:image\/(.*);/))?t=i[1]:(e=t&&t.split("/"),t=(e=e[e.length-1]).split("."),e=t[0],"jpg"===(t=t[1]||"png")&&(t="jpeg")),{name:e,type:t}},P=function(t,e,i,n,r){var o=new d;o.onload=function(){var a="image/"+i,s=h.createElement("canvas"),l=s.getContext("2d"),c="";s.width=o.width,s.height=o.height,l.drawImage(o,0,0),c=s.toDataURL(a),q[t]=c,M(c,e,i,n,r)},o.onerror=function(){I()},o.src=t},M=function(t,e,i,n,r){z["image_"+W]={name:e,type:i,encodedData:t,width:n,height:r},I()},I=function(){var t,e,i,n,r,o,a={},s=!1;W<D?((t=L[W].replace(/\"/g,"")).split(" ").forEach((function(t){t=t.split(/=(.+)?/),a[t[0]]=t[1]})),a["xlink:href"]&&(e=(t=E(a["xlink:href"]))&&t.name||"temp_image_"+W,i=t&&t.type||"png",n=parseInt(a.width,10),r=parseInt(a.height,10),o=e+"."+i,q[a["xlink:href"]]&&t&&t.name?s=!0:P(a["xlink:href"],e,i,n,r)),t='xlink:href="'+a["xlink:href"],A=A.replace(t,'xlink:href="temp/'+o),W+=1,s&&I()):(k.encodedImgData=JSON.stringify(z),k.stream=A,c(null,null,null,k,U))},I()):c(null,null,null,k,U)}function a(){var t=y+"."+g;"svg"===g?n(T,(function(e){c("url",e,t)})):_(g,u)}function u(t,e){var i,n=y+"."+g;if("pdf"===t)(i=new N($.height,$.width)).addImage(e),i=i.getDataUrl(),c("url",i,n);else c("url",e,n)}function _(t,e){var i,r=l();(i=h.createElement("canvas")).width=$.width,i.height=$.height,"ie"==r.name?new j(r=T,i,(function(){if("png"===t)e(t,i.toDataURL("image/png"));else e(t,i.toDataURL("image/jpeg"))})):"Chrome"!==r.name&&"Firefox"!==r.name&&"Edge"!==r.name||n(T,(function(i){var n,r,o;n=h.createElement("canvas"),r=n.getContext("2d"),(o=new d).src=i,o.onload=function(){if(n.width=o.width,n.height=o.height,r.drawImage(o,0,0),"png"===t)e(t,n.toDataURL("image/png"));else e(t,n.toDataURL("image/jpeg"))}}))}var k,A,T,L,D,E,P,I,M,R=e.layers.buttons,B=i.id,$=e.paper,V=r&&r.hcLib,H=V&&V.isCanvasElemSupported(),W=0,z={},q={},U={exportAction:v,exportTargetWindow:b,exportCallback:w,fusionCharts:i,paper:$,chartId:B,exportHandler:m};R&&R.attr("visibility","hidden"),A=$.toSVG(C&&H),T=$.toSVG(C&&H),R&&R.attr("visibility","visible"),A=(A=A.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/NS\d+:/gi,"xlink:"),A=s(A),T=(T=(T=(T=s(T)).replace(/NS\d+:/gi,"xlink:")).replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/(xlink:title\s*=\s*)['"].*["']/gi,""),A=(A=(A=A.replace(/[\w\-]+\=\"undefined\"/gi,"")).replace(/(xlink:title\s*=\s*)['"].*["']/gi,"")).replace(/rgba\(([^\)]+)\)/gi,(function(t,e){return"#"+V.graphics.RGBtoHex(e.split(","))})),A=(A=(A=A.replace(/(([\w]+\-)?opacity\s*=\s*)['"][\d\.]+e[\-\+][\d]+["']/gi,'$1"0.001"')).replace(/(([\w]+\-)?opacity\s*:\s*)[\d\.]+e[\-\+][\d]+/gi,"$10.001")).replace(/<text[^\>]+/gi,(function(t){return t.match(/(stroke-width\=[\"\']([a-z0-9\#]+)?[\"\'])|(stroke-width\s*\:\s*([a-z0-9\#]+)?;?)/gi)||(t=(t=(t=(t=(t=(t=t.replace(/stroke\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/stroke-opacity\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke-opacity\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/(<text[^\>]+fill\=)([\"\'][^\"\']+[\"\'])([^\>]+)/gi,'$1$2 stroke=$2 stroke-width="0.2"$3')).replace(/(<text[^\>]+fill-opacity\=)([\"\'][^\"\']+[\"\'])([^\>]+)/gi,"$1$2 stroke-opacity=$2 $3")),t})),A=A.replace(/<(\b[^<>s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/gi,(function(t,e){return t+"<"+e+(O.exec(t)||p)+(F.exec(t)||p)+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'})),k={charttype:i.chartType(),stream:A,stream_type:"svg",meta_bgColor:f.bgcolor||"",meta_bgAlpha:f.bgalpha||"1",meta_DOMId:i.id,meta_width:$.width,meta_height:$.height,parameters:["exportfilename="+y,"exp
36ortformat="+g,"exportaction="+v,"exportparameters="+x].join("|")},S&&"download"===v?(R=l(),void 0===o.btoa||"Chrome"!==R.name&&"Firefox"!==R.name&&"Edge"!==R.name&&"ie"!==R.name?(r.raiseWarning(this,"14038823867","run","Export Feature","Client side export requirement not fulfiled so exporting through server side"),t()):a()):t(),r.raiseEvent("exportDataReady",k,i)}),(function(){r.raiseEvent("exportCancelled",f,i)}))},print:function(t){var e=this,i=_({},t);if(e.isPrinting)return!1;r.raiseEvent("BeforePrint",i,e.logic.chartInstance,void 0,(function(){var t,n=e.container,a=(t=e.elements).printButton,s=t.exportButton,l=[],c=n.parentNode,d=(t=h.body||h.getElementsByTagName("body")[0]).childNodes;e.isPrinting=!0,H(d,(function(t,e){1==t.nodeType&&(l[e]=t.style.display,t.style.display="none")})),!1!==i.hideButtons&&(a&&"hidden"!=a.attrs.visibility&&a.attr({visibility:"hidden"}),s&&"hidden"!=s.attrs.visibility&&s.attr({visibility:"hidden"})),t.appendChild(n),o.print(),setTimeout((function(){a&&a.attr({visibility:"visible"}),s&&s.attr({visibility:"visible"}),c.appendChild(n),H(d,(function(t,e){1==t.nodeType&&(t.style.display=l[e])})),e.isPrinting=!1,r.raiseEvent("PrintComplete",i,e.logic.chartInstance)}),1e3)}),(function(){r.raiseEvent("PrintCancelled",i,e.logic.chartInstance)}))},getSymbolPath:function(t,e,i,n,r,o,a){var s,l,c,h=["M"];switch(s=(o.color&&vt("string"==typeof o.color?o.color:o.color.FCcolor.color)||p).replace(K,""),c=bt(s,60).replace(K,Z),a?s={FCcolor:{color:s,angle:0,ratio:"0",alpha:"100"}}:s={FCcolor:{color:s+","+s+","+(a=bt(s,40))+","+s+","+s,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}},r){case"column":case"dragcolumn":case"column3d":r=.5*(o=.25*i),a=.7*n,l=.4*n,h=h.concat([t,e+n,"l",0,-a,o,0,0,a,"z","m",o+r,0,"l",0,-n,o,0,0,n,"z","m",o+r,0,"l",0,-l,o,0,0,l,"z"]),s.FCcolor.angle=270;break;case"bar":case"bar3d":o=.3*i,r=.6*i,l=(a=n/4)/2,h=h.concat([t,e,"L",t+r,e,t+r,e+a,t,e+a,"Z","M",t,e+a+l,"L",t+i,e+a+l,t+i,e+a+l+a,t,e+2*a+l,"Z","M",t,e+2*(a+l),"L",t+o,e+2*(a+l),t+o,e+n,t,e+n,"Z"]);break;case"area":case"area3d":case"areaspline":case"dragarea":a=.6*n,l=.2*n,n*=.8,h=h.concat([t,e+n,"L",t,e+a,t+.3*i,e+l,t+.6*i,e+a,t+i,e+l,t+i,e+n,"Z"]),s.FCcolor.angle=270;break;case"pie":case"pie3d":r=.9*(o=.5*i),i=t+o+1,n=e+o-1,t=t+o-1,e=e+o+1,h=h.concat(["M",i,n,"L",i,n-r+1,"A",r-1,r-1,0,0,1,i+r-1,n,"Z","M",t,e,"L",t,e-r,"A",r,r,0,1,0,t+r,e,"Z"]),s.FCcolor.radialGradient="1",s.FCcolor.ratio="0,0,0,100,0";break;case"boxandwhisker2d":h=h.concat([t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]),s=o.color,c="#000000";break;default:h=h.concat([t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]),s.FCcolor.angle=270,s.FCcolor.ratio="0,70,30"}return{path:h,color:s,strokeWidth:.5,strokeColor:c}}}),t.prototype={configure:function(){var t=this.axisData,e=this.renderer,i=this.isVertical,n=this.isReverse,r=e.options,o=(a=r.chart).marginBottom,a=a.marginRight,s=e.canvasTop,l=e.canvasLeft,c=this.min=t.min,h=(c=this.span=(this.max=t.max)-c,l=this.startX=T(t.startX,l),s=this.startY=T(t.startY,s),this.endX=T(t.endX,e.canvasRight)),d=(t=this.endY=T(t.endY,e.canvasBottom),c=this.pixelRatio=i?(t-s)/c:(h-l)/c,this.relatedObj={});d.marginObj={top:s,right:a,bottom:o,left:l},d.canvasObj={x:l,y:s,w:h-l,h:t-s,toX:h,toY:t},this.startPixel=n?i?t:h:i?s:l,this.pixelValueRatio=n?-c:c,this.primaryOffset=this.secondaryOffset=0,this.cache={lowestVal:0,highestVal:0,indexArr:[],hashTable:{}},this.elements=this.elements||{},this.belowBandGroup&&(e.elements.axes=e.elements.axes||{},e.elements.axes.belowBandGroup=this.belowBandGroup,r&&r.chart&&r.chart.hasScroll&&this.belowBandGroup.attr({"clip-rect":e.elements["clip-canvas"]})),this.poi={}},draw:function(){var t=this.axisData,e=t&&t.plotLines||[],i=t&&t.plotBands||[],n=t&&t.showLine,r=t&&t.tickLength,o=t&&t.tickWidth;t&&t.title&&this.drawAxisName(),t&&t.labels&&(this.renderer.addCSSDefinition("."+t.labels.className+" .fusioncharts-label",t.labels.style),this.belowLabelGroup&&this.belowLabelGroup.attr("class",t.labels.className),this.topLabelGroup&&this.topLabelGroup.attr("class",t.labels.className)),e&&0<e.length&&this.drawPlotLine(),i&&0<i.length&&this.drawPlotBands(),isNaN(r)||0===r||isNaN(o)||0===o||this.drawTicks(),n&&this.drawLine()},scroll:function(){},setOffset:function(t,e){var i,n,r,o,a,s=this.primaryOffset=t,l=this.secondaryOffset=e||this.secondaryOffset,c=this.isVertical,h=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,this.belowLineGroup,this.topBandGroup,this.belowBandGroup];for(o=0,a=h.length;o<a;o+=1)(r=h[o])&&(i=c?l:s,n=c?s:l,r.attr({transform:"t"+i+","+n}));c||this.drawPlotLine&&this.drawPlotLine()},update:function(){},drawTicks:function(){var t=this.axisData,e=this.renderer.paper,i=this.min,n=this.max,r=this.isVertical,o=this.layerBelowDataset,a=(o=this.tickGroup=this.tickGroup||e.group("axis-ticks",o),this.relatedObj.canvasObj),s=t.offset,l=t.opposite,c=t.showAxis,h=t.tickInterval,d=t.tickLength,u=t.tickWidth,p=(t=t.tickColor,i);if(r&&c)for(i=this.getAxisPosition(i),r=this.getAxisPosition(n),a=l?a.toX+s:a.x-s,e.path(["M",a,i,"L",a,r],o).attr({stroke:t,"stroke-width":u});dt(p)<=n;)s=this.getAxisPosition(p),i=l?a+d:a-d,e.path(["M",a,s,"L",i,s],o).attr({stroke:t,"stroke-width":u}),p+=h},getAxisPosition:function(t,e){var i;return e?i=(t-this.startPixel)/this.pixelValueRatio+this.min:(t=this.axisData.reversed?this.min+(this.max-t):t,i=this.startPixel+(t-this.min)*this.pixelValueRatio),i},drawPlotLine:function(){var t,e,i,n,r,o,a,s,l,c,h,d,u,f,m,v,b,y,x,w,_,C,S,k,A,D,E,P,I,M,O,F,B,N,j,$,V,H,W,z,U,G,Y,X=this.renderer,J=X.smartLabel,K=X.paper,Z=this.isVertical,Q=+!Z,et=this.lines=this.lines||[],it=this.labels=this.labels||[],nt=this.relatedObj.canvasObj,rt=this.globalOptions||{},ot=this.elements||{},at=this.axisData.plotLines||[],st=this.primaryOffset,ct=Z?this.startY:this.startX,ht=Z?this.endY:this.endX,dt=parseFloat(X.canvasBorderWidth)||0,ut=parseFloat(X.canvasTop),pt=lt(at.length,lt(et.length,it.length)),ft=X.layers.datalabels,gt=this.belowLineGroup,mt=this.topLineGroup,vt=this.belowLabelGroup,bt=this.topLabelGroup,wt=!1!==(X.tooltip||{}).enabled,_t=function(t){return function(e){R.call(this,X,e,t)}},Ct=rt.chart.xDepth||0,St=(rt=(St=rt.chart).textDirection,St.rotateValues),kt=[],At=0;for(Y=0;Y<pt;Y+=1)i=n=r=null,i=et[Y],n=it[Y],(a=at[Y])&&(s=a.width,l=a.isVline,c=a.isTrend,h=a.isGrid,d=a.tooltext,u=a.value,f=a.color,m=a.dashStyle,v=c?a.to:null,b=a._isStackSum,t=3<a.zIndex?mt:gt,(y=a.label)&&(x=y.style,w=y.text,_=x&&x.color,C=y.offsetScaleIndex||0,S=y.offsetScale,(k=x&&x.fontSize)&&(-1!==(A=k).indexOf("px")&&(A=A.replace("px",""),A=parseFloat(A))),e=x&&x.lineHeight,k=x?{fontFamily:x.fontFamily,fontSize:x.fontSize,lineHeight:x.lineHeight,fontWeight:x.fontWeight,fontStyle:x.fontStyle}:null,e&&(-1!==(D=e).indexOf("px")&&(D=D.replace("px",""),D=parseFloat(D))),E=y.rotation,P=y.x||0,I=y.y||0,M=y.align,O=y.verticalAlign,F=y.textAlign,B=T(parseInt(y.borderWidth,10),1),e=b?ft:3<=a.zIndex?bt:vt,y.backgroundColor&&(y.labelBgClr=L({color:y.backgroundColor,alpha:100*y.backgroundOpacity})),y.borderColor&&(y.labelBorderClr=L({color:y.borderColor,alpha:"100"})),N=A?.2*A:2,F="left"===F?"start":"right"===F?"end":"middle")),o=U="visible",G=0>T(S,u,0),Z?(W=($=this.getAxisPosition(u))!==(H=c&&this.getAxisPosition(v)||$),z=["M",nt.x,$,"L",nt.toX,H],l?X.logic.isBar&&(j=X.yAxis[C],!b&&!isNaN(S)&&0<=S&&1>=S&&(S=j.min+(j.max-j.min)*S),V=j.getAxisPosition(T(S,u))+P+N*(G?-1:1)):V=j=y?this.axisData.isOpposite||"right"===M?nt.toX+P:nt.x+P:this.axisData.isOpposite?nt.toX:nt.x):(j=this.getAxisPosition(u)||0,V=c&&this.getAxisPosition(v)||j,!c&&!l&&0<Ct&&!X.logic.isBar&&(j+=Ct,V+=Ct,ht+=Ct),W=j!==V,z=["M"+j,nt.y,"L",V,nt.toY],U=j+st<ct||j+st>ht?"hidden":U,l?(j=X.yAxis[C],!b&&!isNaN(S)&&0<=S&&1>=S&&(S=j.min+(j.max-j.min)*(1-S)),$=j.getAxisPosition(T(S,u))+I,J.setStyle(x),H=$-(H=St?J.getOriSize(w).width:J.getOriSize(w).height),b&&H<ut&&($+=ut-H),$-=(dt+parseFloat(B))*(I&&(0<I?-1:1))):this.axisData.opposite||"top"===O&&!h?($=nt.y+I,H="bottom",J.setStyle(x),H=St?J.getOriSize(w).width:J.getOriSize(w).height,b&&H>ut&&($=H-dt)):$=nt.toY+I,H=$),o=Z?o:V+st<ct||V+st>ht?"hidden":o,a&&"visible"===U&&.1<s?(W={path:tt(z,s),stroke:f,"stroke-width":s,"shape-rendering":!W&&1<=s?"crisp":void 0,"stroke-dasharray":m||void 0,visibility:U},i?i.attr(W):(i=et[Y]=K.path(W,t).css(a.style),ot.lines=ot.lines||[],ot.lines[Y]=i),wt&&d&&s<q&&U&&(r=K.path({stroke:g,"stroke-width":q,ishot:!0,path:z,fill:g},X.layers.tracker)),r=r||i,wt&&d&&r.tooltip(d)):(i||n)&&(i&&i.remove(),i=null,et&&(et[Y]=null),ot&&ot.lines&&
36(ot.lines[Y]=null)),y&&a&&!a.stepped&&"visible"===o&&y.text!=p&&" "!=y.text?($=c&&"left"===M?$:H,r=V-+!l*Q*Ct+Q*(P||0),b?(H=Z||E?"middle":"bottom",$+=Z?0:A*(G?-.4:.4),E&&($+=G?4:-2,F=G?"end":"start")):Q&&this.axisData.opposite?(H=xt,F=E?"start":"middle"):H=O,/\n|<br\s*?\/?>/gi.test(w)&&h&&(E?(H="middle",r-=Q*(P||0)):(H=Q&&this.axisData.opposite&&!E?"middle":yt,$-=D)),W={class:"fusioncharts-label",text:w,fill:k?_||f:null,ishot:!0,cursor:y.link?"pointer":p,x:r,y:$,"text-anchor":F,"vertical-align":H,direction:rt,transform:" ","text-bound":[x.backgroundColor||y.labelBgClr,x.borderColor||y.labelBorderClr,x.borderThickness||B,x.borderPadding||N,x.borderRadius,x.borderDash],visibility:o,"line-height":x.lineHeight},n?n.attr(W):(n=it[Y]=K.text(W,e).attr("class","fusioncharts-label"),i&&(i.label=n),ot.labels=ot.labels||[],ot.labels[Y]=n,a.isDataLabel&&n.click(_t("dataLabelClick")).hover(_t("dataLabelRollOver"),_t("dataLabelRollOut"))),y&&n.tooltip(y.originalText),k&&n.css(k),a.isDataLabel&&(o={text:w,index:At,link:y.link},At+=1,n.data("eventArgs",o)),E&&n.attr("transform",["r",E,r,$]),b&&n&&kt.push(n)):n&&(n.isRotationSet=!1,n.remove(),it&&(it[Y]=null),ot&&ot.labels&&(ot.labels[Y]=null)),!i&&!n||a&&null===a.value||(a&&a.isMinLabel?this.poi.min={label:n,index:Y,line:i}:a&&a.isMaxLabel?this.poi.max={label:n,index:Y,line:i}:a&&a.isZeroPlane&&(this.poi.zero={label:n,index:Y,line:i})),i=n=null;T(X.options.plotOptions.series.animation.duration,0)},drawPlotBands:function(){var t,e,i,n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C,S,k,A,D,E,P,I,M=(X=this.renderer).paper,O=this.isVertical,F=this.axisData.plotBands||[],R=this.bands=this.bands||[],B=this.bandLabels=this.bandLabels||[],N=this.relatedObj.canvasObj,j=this.primaryOffset,$=O?this.startY:this.startX,V=O?this.endY:this.endX,H=X.options.chart.hasScroll,W=this.belowBandGroup,z=this.topBandGroup,q=this.belowLabelGroup,U=this.topLabelGroup,G=this.elements||{},Y=X.options.chart.textDirection,X=!1!==(X.tooltip||{}).enabled,J=lt(F.length,R.length);for(I=0;I<J;I+=1){if(P="visible",D=R[I],E=B[I],(t=F[I])&&(e=t.tooltext,i=t.to,n=t.from,r=t.value,o=t.width,a=t.color,k=3<t.zIndex?z:W,(s=t.label)&&((l=s.style)&&((u=l.fontSize)&&-1!==u.indexOf("px")&&(u=u.replace("px",""),parseFloat(u)),(u=l.lineHeight)&&-1!==u.indexOf("px")&&(u=u.replace("px",""),parseFloat(u)),u=l.color),v=(c=s.borderWidth)&&-1!==c.indexOf("px")?c.replace("px",""):1,c=s.align,h=s.x,d=s.y,g=s.text,m=s.originalText,p=s.backgroundColor,f=s.backgroundOpacity,p&&(s.labelBgClr=L({color:p,alph
36a:100*f})),(p=s.borderColor)&&(s.labelBorderClr=L({color:p,alpha:"100"})),p="left"===(p=s.textAlign)?"start":"right"===p?"end":"middle",f=s.verticalAlign,A=3<t.zIndex?U:q)),b=this.getAxisPosition(T(i,r)),y=this.getAxisPosition(T(n,r)),x=O?N.x:y,w=O?b:N.y,_=O?N.w:(this.axisData.reversed?y-b:b-y)||o||1,y=O?y-b||1:N.h,b=x+_,_=ct(_),0>y&&(w-=y=ct(y)),O||(P=H||x+j>V||b+j<$?"hidden":P),s&&(C=O?"right"===c?N.toX+h:N.x+h:x+_/2,S=O?w+y/2:N.toY+d),!D&&t&&"visible"===P)t={x:x,y:w,width:_,height:y,fill:L(a),"stroke-width":0},
37D?D.attr(t):(D=R[I]=M.rect(t,k),G.bands=G.bands||[],G.bands[I]=D),X&&e&&D.tooltip(e);else if(D&&(!t||"hidden"===P)){G.bandLabels&&(B[I]=G.bandLabels[I]=null),D.label&&D.label.remove(),R[I]=G.bands[I]=null,D.remove();continue}D&&s&&s.text&&(t={class:"fusioncharts-label",text:g,title:m||"",fill:u,"text-bound":[l.backgroundColor||s.labelBgClr,l.borderColor||s.labelBorderClr,l.borderThickness||v,l.borderPadding||2,l.borderRadius,l.borderDash],x:C,y:S,"text-anchor":p,direction:Y,"vertical-align":f,"line-height":l.lineHeight},A.trackTooltip(!0),E?E.attr(t):(E=B[I]=D.label=M.text(t,A).attr("class","fusioncharts-label"),l&&E.css(l),G.bandLabels=G.bandLabels||[],G.bandLabels[I]=E),E.tooltip(m))}},drawAxisName:function(){var t,e=(u=this.axisData).title||{},i=e&&e.style,n=e&&e.className,r=e.align,o=e.centerYAxisName||!1,a=this.renderer.paper,s=this.isVertical,l=this.relatedObj.canvasObj,c=T(u.offset,0)+T(e.margin,0),h=e.text||"",d=this.name||void 0,u=u.opposite,p=(p=this.layerBelowDataset).nameGroup=p.nameGroup||a.group("axis-name",p),f=T(e.rotation,u?90:270),g=s?u?l.toX+c:l.x-c:(l.x+l.toX)/2,m={fontFamily:i.fontFamily,fontSize:i.fontSize,lineHeight:i.lineHeight,fontWeight:i.fontWeight,fontStyle:i.fontStyle};o=s?"low"===r?l.toY:o?(l.y+l.toY)/2:this.renderer.chartHeight/2:l.toY+c;h?(!isNaN(f)&&f&&s&&(t=-1!=(t=i.fontSize).indexOf("px")?t.replace("px",""):t,u?(g+=parseFloat(t),t=270===f?"bottom":"top"):(g-=parseFloat(t),t=270===f?"top":"bottom")),this.renderer.addCSSDefinition("."+n,m),n={class:n,x:0,y:0,text:h,fill:i.color,direction:this.renderer.options.chart.textDirection,"text-anchor":"low"===r?90==f?"end":"start":"middle","vertical-align":s?f?t:"middle":u?xt:"top",transform:s?"t"+g+","+o+"r"+f:"t"+g+","+o,"font-size":i.fontSize},d?d.attr(n):d=this.name=a.text(n,p),e.originalText&&d.tooltip(e.originalText),setTimeout((function(){d.attr({"line-height":i.lineHeight,"text-bound":[i.backgroundColor,i.borderColor,i.borderThickness,i.borderPadding,i.borderRadius,i.borderDash]})}),0)):d&&d.remove(),this.elements.name=d},drawLine:function(){var t=this.axisData,e=this.renderer.paper,i=this.min,n=this.max,r=this.isVertical,o=t.opposite,a=this.layerBelowDataset,s=(a=this.lineGroup=this.lineGroup||e.group("axis-lines",a),t.lineColor),l=t.lineThickness,c=t.lineEndExtension||0,h=t.lineStartExtension||0;t=this.relatedObj.canvasObj;r?(i=this.getAxisPosition(i)-h,c=this.getAxisPosition(n)+c,n=r=o?t.toX+l/2:t.x-l/2):(n=t.x-h,r=t.toX+c,i=c=o?t.y-l/2:t.toY+l/2),e=e.path({path:["M",n,i,"L",r,c],stroke:s,"stroke-width":l},a),this.elements.axisLine=e},realtimeUpdateX:function(t){if(0<t){for(var e,i=this.axisData.plotBands,n=this.min+t,r=i.length;r--;)(e=i[r])&&!e.isNumVDIV&&(e.value<n||e.from<n||e.to<n?i.splice(r,1):(void 0!==e.value&&(e.value-=t),void 0!==e.from&&(e.from-=t),void 0!==e.to&&(e.to-=t)));this.drawPlotLine(),this.drawPlotBands()}},realtimeUpdateY:function(t,e){var i=this.axisData,n=this.min=i.min=t;i=this.span=(this.max=i.max=e)-n,i=this.pixelRatio=this.isVertical?this.relatedObj.canvasObj.h/i:this.relatedObj.canvasObj.w/i;this.pixelValueRatio=this.isReverse?-i:i,this.drawPlotLine(),this.drawPlotBands()}},t.prototype.constructor=t,l("renderer.cartesian",{drawCanvas:function(){var t,e=(t=(E=this.options).chart||{}
37).plotBackgroundColor,i=this.paper,n=this.elements,r=n.canvas,o=n.canvas3DBase,a=n.canvas3dbaseline,l=(o=n.canvasBorder,n.canvasBg),c=this.canvasTop,h=this.canvasLeft,d=this.canvasWidth,p=this.canvasHeight,f=T(t.plotBorderRadius,0),g=.5*(l=t.plotBorderWidth),m=t.plotBorderColor,v=t.isBar,b=t.is3D,y=t.use3DLighting,x=t.showCanvasBg,w=t.canvasBgDepth,_=t.showCanvasBase,C=t.canvasBaseColor3D,S=t.canvasBaseDepth,k=t.plotShadow,A=u&&0===l&&k&&k.enabled,D=t.xDepth||0,E=t.yDepth||(E[M]&&E[M].isScroll?c:0),P=(t=this.layers).background,I=t.dataset;t.tracker=t.tracker||i.group("hot").insertAfter(I),t.datalabels=t.datalabels||i.group("datalabels").insertAfter(I),t=t.canvas=t.canvas||i.group("canvas").insertAfter(P),o||(n.canvasBorder=i.rect({x:h-g,y:c-g,width:d+l,height:p+l,r:f,"stroke-width":l,stroke:m,"stroke-linejoin":2<l?"round":"miter"},t).shadow(k)),n["clip-canvas"]=[lt(0,h-D),lt(0,c-E),lt(1,d+2*D),lt(1,p+E)],n["clip-canvas-init"]=[lt(0,h-D),lt(0,c-E),1,lt(1,p+2*E)],b&&(x&&(l=n.canvasBg=v?i.path(["M",h,",",c,"L",h+1.2*w,",",c-w,",",h+d-w,",",c-w,",",h+d,",",c,"Z"],t):i.path(["M",h+d,",",c,"L",h+d+w,",",c+1.2*w,",",h+d+w,",",c+p-w,",",h+d,",",c+p,"Z"],t)).attr({"stroke-width":0,stroke:"none",fill:L(e)}),_&&((o=n.canvas3DBase=v?i.cubepath(h-D-S-1,c+E+1,S,p,D+1,E+1,t):i.cubepath(h-D-1,c+p+E+1,d,S,D+1,E+1,t)).attr({stroke:"none","stroke-width":0,fill:[C.replace(K,Z),!y]}),a||(a=n.canvas3dbaseline=i.path(void 0,t)),a.attr({path:v?["M",h,c,"V",p+c]:["M",h,c+p,"H",d+h],stroke:s.tintshade(C.replace(K,Z),.05).rgba}))),!r&&e&&(n.canvas=i.rect({x:h,y:c,width:d,height:p,r:f,"stroke-width":0,stroke:"none",fill:L(e)},t).shadow(A))},drawAxes:function(){var e=this.logic,i=this.options,n=this.paper,r=(s=this.layers).dataset,o=s.layerBelowDataset=s.layerBelowDataset||n.group("axisbottom").trackTooltip(!0),a=s.layerAboveDataset=s.layerAboveDataset||n.group("axistop").trackTooltip(!0),s=(n=this.xAxis=[],this.yAxis=[]);if(o.insertBefore(r),a.insertAfter(r),i.xAxis&&i.xAxis.length)for(r=0,o=i.xAxis.length;r<o;r+=1)n[r]=this.xAxis[r]=new t(i.xAxis[r],this,e.isBar);else n[0]=this.xAxis[0]=new t(i.xAxis,this,e.isBar);if(i.yAxis)for(r=0,o=i.yAxis.length;r<o;r+=1)s[r]=this.yAxis[r]=new t(i.yAxis[r],this,!e.isBar,!e.isBar);for(r=0,o=s.length;r<o;r+=1)s[r].axisData&&(s[r].axisData.title&&(s[r].axisData.title.className="fusioncharts-yaxis-"+r+"-title"),s[r].axisData.labels&&(s[r].axisData.labels.className="fusioncharts-yaxis-"+r+"-gridlabels")),s[r].draw();for(r=0,o=n.length;r<o;r+=1)n[r].axisData&&(n[r].axisData.title&&(n[r].axisData.title.className="fusioncharts-xaxis-"+r+"-title"),n[r].axisData.labels&&(n[r].axisData.labels.className="fusioncharts-xaxis-"+r+"-gridlabels")),n[r].draw()},drawScroller:function(){var t,e,i,n,o,a,l,c,h,d,u,p,f,g,m,v=this,b=v.options,y=v.paper,x=v.layers,w=v.xAxis[0]||{},C=(P=w.axisData||{}).scroll||{},S=v.canvasTop,k=v.canvasLeft,A=v.canvasWidth,L=v.canvasHeight,D=(I=v.canvasBorderWidth)||(P.showLine?P.lineThickness:0),E=I||P.lineStartExtension,P=I||P.lineEndExtension,I=b.chart.useRoundEdges,O=x.dataset,F=x.datalabels,R=x.tracker;return n=x.layerAboveDataset,C.enabled&&(m=x.scroll=x.scroll||y.group("scroll").insertAfter(n),n=C.scrollRatio,b=T(b[M].xAxisScrollPos,C.startPercent),o=C.viewPortMax,a=C.viewPortMin,e=C.vxLength,ht(e),l=C.showButtons,c=C.height,h=C.padding,d=C.color,u=C.flatScrollBars,e=C.windowedCanvasWidth=w.getAxisPosition(e),t=C.fullCanvasWidth=w.getAxisPosition(o-a)-e,i=at(b*t),p=v.fusionCharts.jsVars._reflowData,g=(f={hcJSON:{_FCconf:{xAxisScrollPos:0}}}).hcJSON._FCconf,x.scroller=y.scroller(k-E,S+L+D+h-!!D,A+E+P,c,!0,{showButtons:l,displayStyleFlat:u,scrollRatio:n,scrollPosition:b},m).data("fullCanvasWidth",t).data("windowedCanvasWidth",e).attr({"scroll-display-style":u,fill:d,r:I?2:0}).scroll((function(e){i=-at(e*t),O&&O.transform(["T",i,0]),F&&F.transform(["T",i,0]),R&&R.transform(["T",i,0]),w.setOffset&&w.setOffset(i),g.xAxisScrollPos=C.lastPos=e,_(p,f,!0)})),function(){var t;s.eve.on("raphael.scroll.start."+x.scroller.id,(function(e){t=e,r.raiseEvent("scrollstart",{scrollPosition:e},v.logic.chartInstance)})),s.eve.on("raphael.scroll.end."+x.scroller.id,(function(e){r.raiseEvent("scrollend",{prevScrollPosition:t,scrollPosition:e},v.logic.chartInstance)}))}()),C.enabled},finalizeScrollPlots:function(){var t,e,i,n=this,o=n.container,s=n.elements,l=(d=n.layers).scroller,c=d.dataset,h=d.datalabels,d=d.tracker,u={},p=n.xAxis[0]||{},g=(p.axisData||{}).scroll||{},m=T(n.options[M].xAxisScrollPos,g.startPercent),v=g.fullCanvasWidth,b=n.logic.hcJSON.chart.animation,x=n.logic.hcJSON.xAxis.scroll.
37startPercent;g.enabled&&(c.attr({"clip-rect":s["clip-canvas"]}),h.attr({"clip-rect":s["clip-canvas"]}),d.attr({"clip-rect":s["clip-canvas"]}),s=function(i){var o=n.elements.canvas,s=t.left,c=t.top,h=i.state,d=z&&a.getTouchEvent(i)||y;switch(s=((i=i.originalEvent).clientX||i.pageX||d.pageX)-s,c=(i.clientY||i.pageY||d.pageY)-c,h){case"start":if(e=o.isPointInside(s,c),u.ox=e&&s||null,!e)return!1;u.prevScrollPosition=l.attrs["scroll-position"],r.raiseEvent("scrollstart",{scrollPosition:u.prevScrollPosition},n.logic.chartInstance);break;case"end":r.raiseEvent("scrollend",{prevScrollPosition:u.prevScrollPosition,scrollPosition:u.scrollPosition},n.logic.chartInstance),e=!1,u={};break;default:if(!e)break;o=s-u.ox,u.ox=s,u.scrollPosition=l.attrs["scroll-position"]-o/v,l.attr({"scroll-position":u.scrollPosition})}},z&&(t=f(o),o&&(k(o,"pointerdrag",s),C(o,"pointerdrag",s))),0<m&&(i=-at(m*v),c&&c.transform(["T",i,0]),d&&d.transform(["T",i,0]),p.setOffset&&p.setOffset(i),b&&x?n.animationCompleteQueue.push({fn:function(){h&&h.transform(["T",i,0])},scope:n}):h&&h.transform(["T",i,0])))},drawPlotColumn:function(t,e,i){var r,o,a,l,c,h,d,u,p,f,m,v,b,y,_,C,S,k,D,E,P,I,O,F,B,N,j,$,V,H,W,z,U,G,Y,X,J,K,Z,tt,et,it,nt,rt,ot=this,dt=t.data,ut=dt.length,pt=t.items,ft=t.graphics||(t.graphics=[]),gt=ot.paper,mt=ot.smartLabel,vt=ot.logic,bt=ot.layers,yt=ot.options,xt=ot.elements,wt=yt.chart,_t=!1!==(yt.tooltip||{}).enabled,Ct=ot.definition.chart,St=yt.plotOptions.series,kt=St.dataLabels.style,At=ot.xAxis[e.xAxis||0],Tt=ot.yAxis[e.yAxis||0],Lt=ot.chartWidth,Dt=ot.chartHeight,Et=Tt.axisData.reversed,Pt=vt.isLog,It=vt.is3D,Mt=vt.isStacked,Ot=vt.isWaterfall,Ft=vt.isCandleStick,Rt=A(At.axisData.scroll,{}),Bt=i||{},Nt=Rt.enabled,jt=T(Bt.position,yt[M].xAxisScrollPos,Rt.startPercent),$t=Bt.vxLength||ht(Rt.vxLength),Vt=Bt.scrollStart||lt(0,at((ut-$t)*jt)-1)||0,Ht=Bt.scrollEnd||st(ut,Vt+$t+2)||ut,Wt=wt.canvasBorderOpacity=s.color(wt.plotBorderColor).opacity,zt=ot.canvasBorderWidth,qt=wt.isCanvasBorder=0!==Wt&&0<zt,Ut=i!==n?0:isNaN(+St.animation)&&St.animation.duration||1e3*St.animation,Gt=e.numColumns||1,Yt=e.columnPosition||0,Xt=wt.use3DLighting,Jt=!1===e.visible?"hidden":"visible",Kt=wt.overlapColumns,Zt=At.getAxisPosition(0),Qt=At.getAxisPosition(1)-Zt,te=Ct&&Ct.plotspacepercent,ee=T(Ct&&Ct.plotpaddingpercent),ie=St.groupPadding,ne=St.maxColWidth,re=(1-.01*te)*Qt||st(Qt*(1-2*ie),ne*Gt),oe=re/2,ae=re/Gt,se=st(ae-1,1<Gt?Kt||ee!==n?0<ee?ae*ee/100:0:4:0),le=Yt*ae-oe+se/2,ce=Tt.max,he=Tt.min,de=0<ce&&0<=he,ue=!Pt&&(0>=ce&&0>he),pe=0<ce&&0>he,fe=ue||Et&&de?ce:Pt||de?he:0,ge=Tt.yBasePos=Tt.getAxisPosition(fe),me=T(wt.useRoundEdges,0),ve=bt.dataset=bt.dataset||gt.group("dataset-orphan"),be=bt.datalabels=bt.datalabels||gt.group("datalabels").insertAfter(ve),ye=bt.tracker,xe=bt.rectHot=bt.rectHot||gt.group("col-hot",ye),we=ot.canvasTop,_e=ot.canvasLeft,Ce=ot.canvasWidth,Se=ot.canvasBottom,ke=ot.canvasRight,Ae={fontFamily:kt.fontFamily,fontSize:kt.fontSize,lineHeight:kt.lineHeight,fontWeight:kt.fontWeight,fontStyle:kt.fontStyle,color:kt.color},Te=T(Ct.variableindex,1),Le=0,De=0,Ee=1,Pe=1,Ie=yt.series,Me=vt.dataObj,Oe=function(t){R.call(this,ot,t)},Fe=function(t,e){return function(i){t.attr(e),R.call(this,ot,i,"DataPlotRollOver")}},Re=function(t,e){return function(i){t.attr(e),R.call(this,ot,i,"DataPlotRollOut")}};if(ot.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",Ae),be.attr("class","fusioncharts-datalabels"),Ut&&(!i&&be.attr({transform:"...t"+Lt+","+Dt}),ot.animationCompleteQueue.push({fn:function(){be.attr({transform:"...t"+-Lt+","+-Dt})},scope:ot})),ae-=se,Nt&&Vt>Ht-$t-2&&(Vt=lt(0,Ht-$t-2)),Mt&&(Z=ve.shadows||(ve.shadows=gt.group("shadows",ve).toBack())),z=ve.column||(ve.column=gt.group("columns",ve)),Ft||It||Nt||z.attrs["clip-rect"]||z.attr({"clip-rect":xt["clip-canvas"]}),Ot&&z.toBack(),It)for(u=wt.xDepth||0,p=wt.yDepth||0,U=z.negative=z.negative||gt.group("negative-values",z),X=z.column=z.column||gt.group("positive-values",z),!(Y=z.zeroPlane)&&0>he&&0<=ce&&(Y=z.zeroPlane=gt.group("zero-plane",z).insertBefore(X),c=wt.zeroPlaneColor,h=wt.zeroPlaneBorderColor,d=wt.zeroPlaneShowBorder,xt.zeroplane=gt.cubepath(_e-u,ge+p,Ce,1,u,p,Y).attr({fill:[c,!Xt],stroke:h||"none","stroke-width":d?1:0}
37)),(G=U.data("categoryplots"))||(U.data("categoryplots",Array(ut)),G=U.data("categoryplots")),(J=X.data("categoryplots"))||(X.data("categoryplots",Array(ut)),J=X.data("categoryplots")),b=0;b<ut;b+=1)G[b]=G[b]||gt.group(U),J[b]=J[b]||gt.group(X);else K=z;for(mt.setStyle({fontFamily:kt.fontFamily,fontSize:kt.fontSize,lineHeight:kt.lineHeight,fontWeight:kt.fontWeight,fontStyle:kt.fontStyle}),1<dt.length&&(y=dt[0],S=T(y.x,0),nt=At.getAxisPosition(y._FCX)||At.getAxisPosition(S)+le,y=dt[1],S=T(y.x,1),rt=At.getAxisPosition(y._FCX)||At.getAxisPosition(S)+le,B=(V=y._FCW*Qt)||ae,1<Ie.length&&(Ee=Ie[0].numColumns||Ee),5>rt-(nt+B*Ee)&&(Pe=0)),"0"==Me.chart.plotspacepercent&&(Pe=1),b=Vt;b<Ht;b+=1)k=(y=dt[b]).y,r=y.toolText,l=t.index+"_"+b,H=W=null,null===k?(v=pt[b])&&(H=v.graphic,It||H.attr({height:0})):(f=!1,S=T(y.x,b),_=y.link,C=x(y.borderWidth)||0,V=y._FCW*Qt,E=At.getAxisPosition(y._FCX)||At.getAxisPosition(S)+le,D=y.previousY,I=Tt.getAxisPosition(D||fe),P=Tt.getAxisPosition(k+(D||0)),F=ct(P-I),B=V||ae,it={index:De=parseInt(Te)?Le++:b,link:_,value:y.y,displayValue:y.displayValueArgs,categoryLabel:y.categoryLabel,toolText:y.toolText,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},It?(0>k&&(P=I,f=!0),K=0>k?G:J,(v=pt[b])||(v=pt[b]={index:b,value:k,graphic:gt.cubepath(K[b]),dataLabel:null,tracker:null,hot:null}),H=v.graphic,j=$={},y.hoverEffects&&(j={fill:[L(y.color),!Xt],stroke:C&&L(y.borderColor)||"NONE","stroke-width":C},N=y.rolloverProperties,$={fill:[L(N.color),!Xt],stroke:N.borderWidth&&L(N.borderColor)||"NONE","stroke-width":N.borderWidth}),H.attr({cubepath:[E-u,Ut?ge+p:P+p,B,Ut?0:F,u,p],fill:[L(y.color),!Xt],ishot:!_t,stroke:C&&L(y.borderColor)||"NONE","stroke-width":C,visibility:Jt}).shadow(St.shadow&&y.shadow,Z).data("BBox",{height:F,width:B,x:E,y:P}),Ut&&H.animate({cubepath:[E-u,P+p,B,F,u,p]},Ut,"normal",ot.getAnimationCompleteFn()),(_||_t)&&(!Mt&&F<q&&(P-=(q-F)/2,F=q),v.tracker||(v.tracker=gt.cubepath(xe)),(W=v.tracker).attr({cubepath:[E-u,P+p,B,F,u,p],cursor:_?"pointer":"",stroke:C&&g||"NONE","stroke-width":C,fill:g,ishot:!0,visibility:Jt})),(W||H).data("eventArgs",it).data("groupId",l).click(Oe).hover(Fe(H,$),Re(H,j)).tooltip(r),(W||H)._.cubetop.data("eventArgs",it).data("groupId",l).click(Oe).hover(Fe(H,$),Re(H,j)).tooltip(r),(W||H)._.cubeside.data("eventArgs",it).data("groupId",l).click(Oe).hover(Fe(H,$),Re(H,j)).tooltip(r),Mt&&f&&(H.toBack(),W&&W.toBack())):(m=!1,(!Pt&&!Et&&0>k||!Pt&&Et&&0<k)&&(P=I,m=!0),Et&&!pe&&0<k&&(P=I-F,m=!1),Ot&&0>k&&Q(D)&&(P-=F,m=!0),Ft||Nt||(w(P)<=we&&(F-=we-P-+qt,P=we-+qt),at(P+F)>=Se&&(F-=at(P+F)-Se+ +!!C+ +qt,wt.xAxisLineVisible&&!qt&&(F+=1)),1>=C&&(at(E)<=_e&&(B+=E,B-=E=_e-C/2+ +!!C-+qt),at(E+B)>=ke&&(B=ke-E+C/2-+!!C+ +qt))),tt=s.crispBound(E,P,B,F,C),Pe&&(E=tt.x,P=tt.y,B=tt.width,F=tt.height),!Ft&&qt&&(!Q(D)||Ot&&D===k&&k===y._FCY)&&(ue&&!Et?(F+=o=P-(we-C/2),ge=P-=o):(Pt||de||Et&&ue)&&(ge=P+(F=Se-P+C/2))),Ot&&D&&0<C&&0!==St.connectorOpacity&&1===St.connectorWidth&&St.connectorDashStyle&&(--F,0>k&&(P+=1)),1>F&&(P+=0>k?1:0===k?0:-(1-F),F=1),e._columnWidth=B,(v=pt[b])||(v=pt[b]={index:De,value:k,width:B,graphic:null,valueBelowPlot:m,dataLabel:null,tracker:null},a=0,Ut||(ge=P,a=F||1),j=$={},y.hoverEffects&&(j={fill:L(y.color),stroke:L(y.borderColor),"stroke-width":C,"stroke-dasharray":y.dashStyle},N=y.rolloverProperties,$={fill:L(N.color),stroke:L(N.borderColor),"stroke-width":N.borderWidth,"stroke-dasharray":N.dashStyle}),et={x:E,y:ge,width:B,height:a,r:me,ishot:!_t,fill:L(y.color),stroke:L(y.borderColor),"stroke-width":C,"stroke-dasharray":y.dashStyle,"stroke-linejoin":"miter",visibility:Jt},H?H.attr(et):H=v.graphic=gt.rect(et,K),H.shadow(St.shadow&&y.shadow,Z).data("BBox",tt),Ut&&H.animate({y:P,height:F||1},Ut,"normal",ot.getAnimationCompleteFn()),(_||_t)&&(!Mt&&F<q&&(P-=(q-F)/2,F=q),et={x:E,y:P,width:B,height:F,r:me,cursor:_?"pointer":"",stroke:g,"stroke-width":C,fill:g,ishot:!0,visibility:Jt},(W=v.tracker)?W.attr(et):W=v.tracker=gt.rect(et,xe)),((W=v.tracker)||H).data("eventArgs",it).data("groupId",l).click(Oe).hover(Fe(H,$),Re(H,j)).tooltip(r))),O=ot.drawPlotColumnLabel(t,e,b,E,P)),O&&ft.push(O),H&&ft.push(H),W&&ft.push(W),ot.drawTracker&&ot.drawTracker.call(ot,t,e,b);return t.visible=!1!==e.visible,t}
37,drawPlotColumnScroll:function(t,e,i){var n,r=t.data.length,o=t.items;n=i.vxLength;var a=lt(0,at((r-n)*i.position)-1)||0;for(a>(r=st(r,a+n+2)||r)-n-2&&(a=lt(0,r-n-2)),i.scrollEnd=r,n=a;n<r;n++)if(!o[n]){i.scrollStart=n,this.drawPlotColumn(t,e,i);break}},drawPlotColumnLabel:function(t,e,i,n,r,o){var a=this.options,s=this.logic;n=a.chart;var l=this.paper,c=this.smartLabel,h=this.layers,d=(a=a.plotOptions.series.dataLabels.style,1===n.rotateValues?270:0),u=this.canvasHeight,f=this.canvasTop,g=t.data[i];t=t.items[i];var m=n.valuePadding+2,v=t.graphic;i=t.dataLabel;var b=A(t.valueBelowPlot,0>g.y),y=s.isStacked,x=(s=s.is3D,n.xDepth||0),w=n.yDepth||0,_=g.displayValue;e=!1===e.visible?"hidden":"visible";var C,S=n.placeValuesInside;return o=o||h.datalabels,Q(_)&&_!==p&&null!==g.y?(t._state&&t._state.labelWidth||(c=c.getOriSize(_),t._state=d?{labelWidth:c.height,labelHeight:c.width}:{labelWidth:c.width,labelHeight:c.height}),h=(v=v.data("BBox")).height,c=C=t._state.labelHeight+m,m=.5*C+m,v=v.x+.5*v.width,C=b?f+u-(r+h):r-f,y?(r=st(f+u-.5*c,r+.5*h+(w||0)),r=lt(f+.5*c,r),v-=x):S?h>=c?(r+=b?h-m:m,g._valueBelowPoint=1,s&&(v-=x,r+=w)):C>=c?(r+=b?h+m:-m,s&&b&&(v-=x,r+=w)):(r+=b?h-m:m,g._valueBelowPoint=1,s&&(v-=x,r+=w)):C>=c?(r+=b?h+m:-m,s&&(b?(v-=x,r+=w):v-=x/2)):(r+=b?h-m:m,g._valueBelowPoint=1,s&&(v-=x,r+=w)),i?i.attr({x:v,y:r,visibility:e}):i=t.dataLabel=l.text({text:_,class:"fusioncharts-label",x:v,y:r,fill:a.color,"font-size":a.fontSize,direction:n.textDirection,visibility:e},o).attr({"line-height":a.lineHeight,"text-bound":[a.backgroundColor,a.borderColor,a.borderThickness,a.borderPadding,a.borderRadius,a.borderDash]}),d&&i.attr("transform","T0,0,R"+d)):i&&i.attr({text:p}),i},drawPlotFloatedcolumn:function(t,e){this.drawPlotColumn.call(this,t,e)},drawPlotColumn3d:function(t,e){this.drawPlotColumn.call(this,t,e)},drawPlotBar:function(t,e){var i,r,o,a,l,c,h,d,u,p,f,m,v,b,y,_,C,S,k,A,D,E,P,I,M,O,F,B,N,j,$,V,H,W,z,U,G,Y,X,J=this,K=t.data,Z=K.length,tt=t.items,et=t.graphics=[],it=J.paper,nt=J.logic,rt=J.layers,ot=J.options,lt=J.elements,ht=ot.chart,dt=!1!==(ot.tooltip||{}).enabled,ut=J.definition.chart,pt=ot.plotOptions.series,ft=pt.dataLabels.style,gt={fontFamily:ft.fontFamily,fontSize:ft.fontSize,lineHeight:ft.lineHeight,fontWeight:ft.fontWeight,fontStyle:ft.fontStyle},mt=J.xAxis[e.xAxis||0],vt=J.yAxis[e.yAxis||0],bt=nt.is3D,yt=nt.isStacked,xt=ht.canvasBorderOpacity=s.color(ht.plotBorderColor).opacity,wt=J.canvasBorderWidth,_t=ht.isCanvasBorder=0!==xt&&0<wt,Ct=isNaN(+pt.animation)&&pt.animation.duration||1e3*pt.animation,St=e.numColumns||1,kt=e.columnPosition||0,At=ht.use3DLighting,Tt=!1===e.visible?"hidden":"visible",Lt=ht.overlapColumns,Dt=mt.getAxisPosition(0),Et=mt.getAxisPosition(1)-Dt,Pt=ut&&ut.plotspacepercent,It=T(ut&&ut.plotpaddingpercent),Mt=pt.groupPadding,Ot=pt.maxColWidth,Ft=(1-.01*Pt)*Et||st(Et*(1-2*Mt),Ot*St),Rt=Ft/2,Bt=Ft/St,Nt=st(Bt-1,1<St?Lt||It!==n?0<It?Bt*It/100:0:4:0),jt=Bt-Nt,$t=kt*Bt-Rt+Nt/2,Vt=vt.max,Ht=vt.min,Wt=0<Vt&&0<Ht,zt=vt.getAxisPosition(0>Vt&&0>Ht?Vt:Wt?Ht:0),qt=T(ht.useRoundEdges,0),Ut=J.canvasTop,Gt=J.canvasLeft,Yt=J.canvasHeight,Xt=J.canvasRight,Jt=J.chartWidth,Kt=J.chartHeight,Zt=vt.axisData.effectiveZeroPlaneThickness,Qt=rt.dataset=rt.dataset||it.group("dataset-orphan"),te=rt.datalabels=rt.datalabels||it.group("datalabels").insertAfter(Qt),ee=rt.tracker,ie=1,ne=1,re=ot.series,oe=nt.dataObj,ae=function(t){R.call(this,J,t)},se=function(t,e){return function(i){t.attr(e),R.call(this,J,i,"DataPlotRollOver")}},le=function(t,e){return function(i){t.attr(e),R.call(this,J,i,"DataPlotRollOut")}};if(J.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",gt),te.attr("class","fusioncharts-datalabels"),Ct&&(J.animationCompleteQueue.push({fn:function(){te.attr({transform:"...t"+-Jt+","+-Kt})},scope:J}),te.attr({transform:"...t"+Jt+","+Kt})),yt&&(z=Qt.shadows||(Qt.shadows=it.group("shadows",Qt).toBack())),B=Qt.column=Qt.column||it.group("bars",Qt),bt)for(r=ht.xDepth||0,o=ht.yDepth||0,N=B.negative=B.negative||it.group("negative-values",B),V=B.column=B.column||it.group("positive-values",B),!($=B.zeroPlane)&&0>Ht&&0<=Vt&&($=B.zeroPlane=it.group("zero-plane",B).insertBefore(V),D=ht.zeroPlaneColor,E=ht.zeroPlaneBorderColor,P=ht.zeroPlaneShowBorder,lt.zeroplane=it.cubepath(zt-r,Ut+o,1,Yt,r,o,$).attr({fill:[D,!At],stroke:E||"none","stroke-width":P?1:0})),(j=N.data("categoryplots"))||(N.data("categoryplots",Array(Z)),j=N.data("categoryplots")),(H=V.data("categoryplots"))||(V.data("categoryplots",Array(Z)),H=V.data("categoryplots")),p=0;p<Z;p+=1)j[p]=j[p]||it.group(N),H[p]=H[p]||it.group(V);else B.attrs["clip-rect"]||B.attr({"clip-rect":lt["clip-canvas"]}),W=B;for(1<K.length&&(_=(m=K[0]).y,y=T(m.x,0),G=mt.getAxisPosition(y)+$t,_=(m=K[1]).y,y=T(m.x,1),Y=mt.getAxisPosition(y)+$t,1<re.length&&(ie=re[0].numColumns||ie),5>Y-(G+jt*ie)&&(ne=0)),"0"==oe.chart.plotspacepercent&&(ne=1),p=0,f=Z-1;p<Z;p+=1,--f)I=M=null,null===(_=(m=K[p]).y)?(u=tt[p])&&(I=u.graphic,bt||I.attr({width:0})):(y=T(m.x,p),v=m.link,i=m.toolText,b=x(m.borderWidth)||0,k=mt.getAxisPosition(y)+$t,A=(C=m.previousY)?vt.getAxisPosition(C):zt,S=vt.getAxisPosition(_+(C||0)),a=ct(S-A),0<_&&(S=A),Q(e.previousData)&&Q(e.previousData[p].y)&&yt&&1>ct(e.previousData[p].y)*vt.pixelValueRatio&&(0<=_?S+=1:--S),O={index:
37p,link:v,value:m.y,displayValue:m.displayValueArgs,categoryLabel:m.categoryLabel,toolText:m.toolText,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},bt?(W=0>_?j:H,(u=tt[p])||(u=tt[p]={index:p,value:_,graphic:it.cubepath(W[f]),dataLabel:null,tracker:null}),I=u.graphic,c=h={},m.hoverEffects&&(c={fill:[L(m.color),!At],stroke:b&&L(m.borderColor)||"NONE","stroke-width":b},l=m.rolloverProperties,h={fill:[L(l.color),!At],stroke:l.borderWidth&&L(l.borderColor)||"NONE","stroke-width":l.borderWidth}),I.attr({cubepath:[Ct?zt-r:S-r,k+o,Ct?0:a,jt,r,o],fill:[L(m.color),!At],ishot:!dt,stroke:b&&L(m.borderColor)||"NONE","stroke-width":b,"stroke-dasharray":m.dashStyle,cursor:v?"pointer":"",visibility:Tt}).shadow(pt.shadow&&m.shadow,z).data("BBox",{height:jt,width:a,x:S,y:k}),Ct&&I.animate({cubepath:[S-r,k+o,a,jt,r,o]},Ct,"normal",J.getAnimationCompleteFn()),(v||dt)&&(!yt&&a<q&&(S-=(q-a)/2,a=q),u.tracker||(u.tracker=it.cubepath(ee)),(M=u.tracker).attr({cubepath:[S-r,k+o,a,jt,r,o],cursor:v?"pointer":"",stroke:b&&g||"NONE","stroke-width":b,fill:g,ishot:!0})),(M||I).data("eventArgs",O).click(ae).hover(se(I,h),le(I,c)).tooltip(i),(M||I)._.cubetop.data("eventArgs",O).click(ae).hover(se(I,h),le(I,c)).tooltip(i),(M||I)._.cubeside.data("eventArgs",O).click(ae).hover(se(I,h),le(I,c)).tooltip(i),(!yt||yt&&0>_)&&(I.toBack(),M&&M.toBack())):(w(S)<=Gt&&(a+=S,S=Gt+b/2+.2,ht.xAxisLineVisible&&!_t&&--S,a-=S),at(S+a)>=Xt&&(a=Xt-S-b/2-.2),U=s.crispBound(S,k,a,jt,b),ne?(S=U.x,k=U.y,a=U.width,X=U.height):X=jt,1>=a&&(a=1,S+=0>_?-a:0===_?0:1<Zt?a:0),(u=tt[p])||(u=tt[p]={index:p,value:_,height:X,graphic:null,dataLabel:null,tracker:null}),I=u.graphic,c=h={},m.hoverEffects&&(c={fill:L(m.color),stroke:L(m.borderColor),"stroke-width":b,"stroke-dasharray":m.dashStyle},l=m.rolloverProperties,h={fill:L(l.color),stroke:L(l.borderColor),"stroke-width":l.borderWidth,"stroke-dasharray":l.dashStyle}),F={x:Ct?zt:S,y:k,width:Ct?0:a||1,height:X,r:qt,fill:L(m.color),ishot:!dt,stroke:L(m.borderColor),"stroke-width":b,"stroke-dasharray":m.dashStyle,"stroke-linejoin":"miter",cursor:v?"pointer":"",visibility:Tt},I?I.attr(F):I=u.graphic=it.rect(F,W),I.shadow(pt.shadow&&m.shadow,z).data("BBox",U),Ct&&I.animate({x:S,width:a||1},Ct,"normal",J.getAnimationCompleteFn()),(v||dt)&&(!yt&&a<q&&(S-=(q-a)/2,a=q),M=u.tracker,F={x:S,y:k,width:a,height:jt,r:qt,cursor:v?"pointer":"",stroke:g,"stroke-width":b,fill:g,ishot:!0},M?M.attr(F):M=u.tracker=it.rect(F,ee),M.data("eventArgs",O)),(M||I).data("eventArgs",O).click(ae).hover(se(I,h),le(I,c)).tooltip(i)),d=J.drawPlotBarLabel(t,e,p,S,k)),d&&et.push(d),I&&et.push(I),M&&et.push(M),J.drawTracker&&J.drawTracker.call(J,t,e,p);return t.visible=!1!==e.visible,t},drawPlotBarLabel:function(t,e,i,n,r,o){var a=this.options,s=this.logic,l=a.chart,c=this.paper,h=this.layers,d=a.plotOptions.series.dataLabels.style,u=(a=this.canvasLeft,this.canvasWidth),f=t.data[i],g=t.items[i];t=l.valuePadding+2;var m=g.graphic;i=g.dataLabel;var v=0>f.y,b=s.isStacked,y=(s=s.is3D,l.xDepth||0),x=l.yDepth||0,w=f.displayValue;e=!1===e.visible?"hidden":"visible";var _=l.placeValuesInside;return(o=o||h.datalabels).trackTooltip(!0),Q(w)&&w!==p&&null!==f.y?(i||(i=g.dataLabel=c.text({class:"fusioncharts-label",text:w,"font-size":d.fontSize,title:f.originalText||"",fill:d.color,direction:l.textDirection,x:0,y:0,"line-height":d.lineHeight},o).tooltip(f.originalText).attr("text-bound",[d.backgroundColor,d.borderColor,d.borderThickness,d.borderPadding,d.borderRadius,d.borderDash])),h=i.getBBox(),d=(o=m.data("BBox")).height,c=o.width,o=b?"middle":v?_?"start":"end":_?"end":"start",l=v?n-a:a+u-(n+c),h=h.width,h+=t,d=r+.5*d,f=n+(v?0:c),r=v?n-a:a+u-(n+c),b?(f=lt(a+.5*h,f+.5*(v?c:-c)),f=st(a+u-.5*h,f),f-=s?y:0,d+=s?x:0):(_?c>=h?(f+=v?t:-t,s&&(d+=x,f-=y)):h<l?(f+=v?-t:t,o=v?"end":"start",s&&v&&(f-=y)):(v?(f=n+c+lt(h-n-c+a,0)-t,o="end",f-=s?y:0):(f=n-lt(h-(a+u-n),0)+t,o="start"),s&&(f-=y,d+=x)):r>=h?(f+=v?-t:t,s&&v&&(f-=y,d+=y)):(f+=v?t+h:-(t+h),s&&(f-=y,d+=x)),(f>a+u||f<a)&&(f=a+4,o="start")),i.attr({x:f,y:d,"text-anchor":o,visibility:e})):i&&i.attr({text:p}),i},drawPlotBar3d:function(t,e){this.drawPlotBar.call(this,t,e)},drawPlotLine:function(t,e){var i,n,r,o,a,l,c,h,u,p,f,m,v,b,y,w,_,C,S,k,A,D,E,P,I,M,O,F,B,N,j,$,V,H,W,z,q,U,Y,X,J,K,Z,Q=this,tt=Q.paper,et=Q.elements,it=Q.options,nt=it.chart,rt=Q.logic,ot=it.plotOptions.series,at=t.items,ct=t.graphics=t.graphics||[],ht=Q.xAxis[e.xAxis||
370],dt=Q.yAxis[e.yAxis||0],ut=rt.multisetRealtime||rt.dragExtended,pt=rt.isWaterfall,ft=0,gt=!1!==(it.tooltip||{}).enabled,mt=isNaN(+ot.animation)&&ot.animation.duration||1e3*ot.animation,vt=ot.dataLabels.style,bt={fontFamily:vt.fontFamily,fontSize:vt.fontSize,lineHeight:vt.lineHeight,fontWeight:vt.fontWeight,fontStyle:vt.fontStyle},yt=nt.xDepth||0,xt=nt.yDepth||0,wt=nt.series2D3Dshift,_t=e.step,Ct=e.drawVerticalJoins,St=e.useForwardSteps,kt=t.data,At=!1===e.visible?"hidden":"visible",Tt=kt.length,Lt=ht.getAxisPosition(0),Dt=ht.getAxisPosition(1)-Lt,Et=Dt*Tt,Pt=ht.axisData.scroll||{},It=nt.hasScroll||!1,Mt=ot.connectNullData,Ot=Q.chartWidth,Ft=Q.chartHeight,Rt=function(){W.attr({"clip-rect":null}),H.show(),V.show(),z.show(),zt.attr({transform:"...t"+-Ot+","+-Ft})},Bt=e.isJDAStep?.5*(ht.getAxisPosition(1)-ht.getAxisPosition(0)):0,Nt=null,jt=ot.connectorWidth=x(e.lineWidth),$t=e.color,Vt=ot.connectorDashStyle=e.dashStyle,Ht=Q.layers,Wt=Ht.dataset=Ht.dataset||tt.group("dataset-orphan"),zt=Ht.datalabels=Ht.datalabels||tt.group("datalabels").insertAfter(Wt),qt=Ht.tracker,Ut=Ht.lineHot=Ht.lineHot||tt.group("line-hot",qt),Gt=et["clip-canvas-init"].slice(0),Yt=et["clip-canvas"].slice(0),Xt=dt.axisData.reversed,Jt=dt.max,Kt=dt.min,Zt=dt.getAxisPosition(0<Jt&&0<Kt?Xt?Jt:Kt:0>Jt&&0>Kt?Xt?Kt:Jt:Xt?Jt:0)+(wt?xt:0),Qt=[],te=nt.anchorTrackingRadius,ee=/drag/gi.test(Q.logic.rendererId),ie=[],ne=function(t){R.call(this,Q,t)},re=function(t){return function(e){Q.hoverPlotAnchor(this,e,"DataPlotRollOver",t,Q)}},oe=function(t){return function(e){Q.hoverPlotAnchor(this,e,"DataPlotRollOut",t,Q)}},ae=function(i,n,r,o,a,s,l,c){return function(){(X=o.dataLabel=Q.drawPlotLineLabel(t,e,c,i,n))&&ct.push(X)}};for(Q.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",bt),zt.attr("class","fusioncharts-datalabels"),ot.connectorOpacity=s.color($t).opacity,dt.yBasePos=Zt,pt&&(n=(r=Q.definition.chart)&&r.plotspacepercent,o=ot.groupPadding,a=ot.maxColWidth,ft=((1-.01*n)*Dt||st(Dt*(1-2*o),1*a))/2),zt.attr({transform:"...t"+Ot+","+Ft}),mt&&Q.animationCompleteQueue.push({fn:Rt,scope:Q}),$=Wt.line||(Wt.line=tt.group("line-connector",Wt)),V=t.lineShadowLayer||(t.lineShadowLayer=tt.group("connector-shadow",$)),H=t.anchorShadowLayer||(t.anchorShadowLayer=tt.group("anchor-shadow",$)),W=t.lineLayer||(t.lineLayer=tt.group("connector",$)),(z=t.anchorLayer||(t.anchorLayer=tt.group("anchors",$))).hide(),V.hide(),H.hide(),h=0;h<Tt;h+=1)b=(p=kt[h]).y,K=kt[h+1]&&kt[h+1].y,y=p.previousY||0,l=p.toolText,N=t.index+"_"+h,B=X=P=I=null,i=at[h]={index:h,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:H,tracker:null},null===b?(ie.length=0,0===Mt&&(Nt=null)):(v=T(p.x,h),f=p.link,"boxandwhisker"===e.relatedSeries&&e.pointStart&&(v+=e.pointStart),C=dt.getAxisPosition(b+y)+(wt?xt:0),_=ht.getAxisPosition(v)-yt,_=G(_,jt,jt).position,C=G(C,jt,jt).position,(A=p.marker)&&A.enabled&&(E="spoke"===(D=A.symbol.split("_"))[0]?1:0,m=A.radius,q=A.shadow,j={index:h,link:f,value:p.y,displayValue:p.displayValueArgs,categoryLabel:p.categoryLabel,toolText:p.toolText,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},O=F={},M=p.rolloverProperties,A.imageUrl?(Z={isTooltip:gt,setLink:f,hotLayer:Ut,groupId:N,clickFunc:ne,isDragable:ee},(J=new d).onload=Q.onAnchorImageLoad(this,t,e,_,C,A,i,j,l,M,h,z,Z),J.onerror=ae(_,C,A,i,j,l,M,h),J.src=A.imageUrl):(M&&(O={polypath:[D[1]||2,_,C,m,A.startAngle,E],fill:L(A.fillColor),"stroke-width":A.lineWidth,stroke:L(A.lineColor)},F={polypath:[M.sides||2,_,C,M.radius,M.startAngle,M.dip],fill:L(M.fillColor),"stroke-width":M.lineWidth,stroke:L(M.lineColor)}),P=i.graphic=tt.polypath(D[1]||2,_,C,m,A.startAngle,E,z).attr({fill:L(A.fillColor),ishot:!gt,"stroke-width":A.lineWidth,stroke:L(A.lineColor),cursor:f?"pointer":"",visibility:m?At:"hidden"}).data("alwaysInvisible",!m).data("setRolloverProperties",M).data("setRolloverAttr",F).data("setRolloutAttr",O).data("anchorRadius",m).data("anchorHoverRadius",M&&M.radius).shadow(q||!1,H),(f||gt||M)&&(m=lt(m,M&&M.radius||0,te),I=i.tracker=tt.circle({cx:_,cy:C,r:m,cursor:f?"pointer":"",stroke:g,"stroke-width":A.lineWidth,fill:g,ishot:!0,visibility:At},Ut)),(I||P).data("eventArgs",j).data("groupId",N).click(ne).hover(re(i),oe(i)).tooltip(l),Q.drawTracker&&Q.drawTracker.call(Q,t,e,h))),U=Y!==[L(p.color||$t),p.dashStyle||Vt].join(":"),null!==Nt?(ie.length&&(Qt=Qt.concat(ie),ie.length=0),(ut||pt||!Qt.join(""))&&Qt.push("M",w,Nt),pt&&Qt.push("m",-ft,0),_t?St?(Qt.push("H",_-Bt),pt&&Qt.push("h",ft),Ct?Qt.push("V",C):Qt.push("m",0,C-Nt),(h===Tt-1||null===K&&Bt)&&Qt.push("H",_)):(Ct&&Qt.push("V",C),Qt.push("M",w,C,"H",_)):Qt.push("L",_,C),(ut||U)&&(B=i.connector=tt.path(Qt,W).attr({"stroke-dasharray":k,"stroke-width":jt,stroke:S,"stroke-linecap":"round","stroke-linejoin":2<jt?"round":"miter",visibility:At}
37).shadow(ot.shadow&&p.shadow,V),Qt=[])):!ut&&ie.push("M",_,C),A&&A.imageUrl||(X=i.dataLabel=Q.drawPlotLineLabel(t,e,h,_,C)),w=_,Nt=C,Y=[S=L(p.color||$t),k=p.dashStyle||Vt].join(":")),X&&ct.push(X),P&&ct.push(P),B&&ct.push(B),I&&ct.push(I);return!ut&&Qt.join("")&&(B=tt.path(Qt,W).attr({"stroke-dasharray":k,"stroke-width":jt,stroke:S,"stroke-linecap":"round","stroke-linejoin":2<=jt?"round":"miter",visibility:At}).shadow(ot.shadow&&p.shadow,V),t.graphic||(t.graphic=B),B&&ct.push(B)),It&&(u=Pt.startPercent,Yt[2]=Et+Gt[0],1===u&&(Gt[0]=Yt[2],Yt[0]=0)),mt?(c=s.animation({"clip-rect":Yt},mt,It?"easeIn":"normal",Q.getAnimationCompleteFn()),W.attr({"clip-rect":Gt}).animate(pt?c.delay(mt):c)):(Rt&&Rt(),Rt=void 0),t.visible=!1!==e.visible,t},hoverPlotAnchor:function(t,e,i,n,r){var o=n.graphic,a=n.dataLabel,s=n.graphicImage;n=1===(y=r.options.chart).rotateValues?270:0;var l,c=o.data("setRolloverProperties"),h=o.data("isRealtime"),d=h&&o.attr("polypath"),u=o.data("setRolloverAttr"),p="image"===o.type,f=o.data("setRolloutAttr"),g=a&&(a.data("isBelow")?1:-1)*(
37p?.5*(u.height-f.height):o.data("anchorHoverRadius")-o.data("anchorRadius")),m={transform:"T0,"+("DataPlotRollOver"===i?g:0)+"R"+n},v={fill:(b="DataPlotRollOver"==i?u:f).fill,"stroke-width":b["stroke-width"],stroke:b.stroke},b=p?b:{polypath:b.polypath},y=y.syncLabelWithAnchor,x=o.data("anchorRadius"),w=o.data("anchorHoverRadius");u=!(/,0\)$/.test(u.fill)&&/,0\)$/.test(f.fill))&&o.data("anchorHoverRadius")-o.data("anchorRadius")&&c.animation&&50;s&&(l=s.data("setRolloverAttr"),f=s.data("setRolloutAttr"),l="DataPlotRollOver"==i?l:f),a&&a.data("isMiddle")&&(m={transform:"T,"+("DataPlotRollOver"===i?g:0)+",0R"+n}),c&&(("DataPlotRollOver"==i&&0!==w||"DataPlotRollOut"==i&&0!==x)&&(o.attr({visibility:"visible"}),s&&s.attr({visibility:"visible"})),s&&s.css({opacity:.01*l.alpha}),p?o.css({opacity:.01*b.alpha}):o.attr(v),h&&!p&&(b.polypath[1]=d[1],b.polypath[2]=d[2]),
38o.stop(),s&&s.stop(),o.animate(b,u,"easeOut",(function(){("DataPlotRollOver"==i&&!w||"DataPlotRollOut"==i&&!x)&&o.attr({visibility:"hidden"})})),s&&s.animate(l,u,"easeOut",(function(){("DataPlotRollOver"==i&&!w||"DataPlotRollOut"==i&&!x)&&s.attr({visibility:"hidden"})})),a&&a.stop(),u&&y&&a&&a.animate(m,u,"easeOut")),R.call(t,r,e,i)},onAnchorImageLoad:function(t,e,i,n,r,o,a,s,l,c,h,d,p){return function(){var f,m,v,b,y,x,w,_,C,S,k,A=t.paper,T=e.graphics=e.graphics||[],D=!1===i.visible?"hidden":"visible",E=t.options.chart.anchorTrackingRadius,P=(P=(P=t.layers).dataset=P.dataset||A.group("dataset-orphan")).line||(P.line=A.group("line-connector",P)),I=e.anchorShadowLayer||(e.anchorShadowLayer=A.group("anchor-shadow",P)),M=(P=o.imageUrl,o.imageScale),O=o.imageAlpha,F=c.imageHoverAlpha,R=c.imageHoverScale,B=this.height*M*.01,N=this.width*M*.01,j=this.width*R*.01,$=this.height*R*.01,V=p.isTooltip,H=p.setLink,W=p.hotLayer,z=p.groupId||"",q=p.isDragable||!1,U=p.clickFunc,G=p.cartesianRenderer,Y=function(e){return function(i){G?G.hoverPlotAnchor(this,i,"DataPlotRollOver",e,t):t.hoverPlotAnchor(this,i,"DataPlotRollOver",e,t)}},X=function(e){return function(i){G?G.hoverPlotAnchor(this,i,"DataPlotRollOut",e,t):t.hoverPlotAnchor(this,i,"DataPlotRollOut",e,t)}};y=function(t){var e,i=t.length,n="";for(e=0;e<i;e+=1)n+=" "+t[e];return n},u?(_={x:n-this.width*M*.005,y:r-this.height*M*.005,width:N,height:B,alpha:O},S={x:n-this.width*R*.005,y:r-this.height*R*.005,width:j,height:this.height*R*.01,alpha:F},E=j>N?S:_,q&&(E={cx:n,cy:r,r:.5*lt(B,N)}),a.graphic&&"image"===a.graphic.type?k=a.graphic.attr("src",P):a.graphic=k=A.image(P,d),k.attr(_).css({opacity:.01*O}).data("alwaysInvisible",!M).data("setRolloverProperties",c).data("setRolloverAttr",S).data("setRolloutAttr",_).data("anchorRadius",M).data("anchorHoverRadius",R),k&&T.push(k),(H||V||c)&&(f=a.tracker?a.tracker:a.tracker=q?A.circle(W):A.rect(W)).attr(E).attr({cursor:H?"pointer":"",stroke:g,"stroke-width":o.lineWidth,fill:g,ishot:!0,visibility:D}).data("eventArgs",s).data("groupId",z).click(U).hover(Y(a),X(a)).tooltip(l)):(m="spoke"===(q=o.symbol.split("_"))[0]?1:0,x=o.isAnchorHoverRadius,v=o.isAnchorRadius,v=o.radius=v?o.radius:st(N,B)/2,b=o.shadow,_=o.imagePadding,c.radius=x?c.radius:v+1,x=c.radius-_-.5*c.lineWidth,w=v-_-.5*o.lineWidth,S=_={},c&&(_={polypath:[q[1]||2,n,r,v,o.startAngle,m],fill:L(o.fillColor),"stroke-width":o.lineWidth,stroke:L(o.lineColor)},S={polypath:[c.sides||2,n,r,c.radius,c.startAngle,c.dip],fill:L(c.fillColor),"stroke-width":c.lineWidth,stroke:L(c.lineColor)},F>(C=lt(c.fillColor.FCcolor.alpha,c.lineColor.FCcolor.alpha))&&(F=C)),o.fillColor.FCcolor&&o.lineColor.FCcolor&&(O>(C=lt(o.fillColor.FCcolor.alpha,o.lineColor.FCcolor.alpha))&&(O=C)),(C=a.graphic&&"path"===a.graphic.type?a.graphic.attr(_):a.graphic=A.polypath(q[1]||2,n,r,v,o.startAngle,m,d)).attr({fill:L(o.fillColor),ishot:!V,"stroke-width":o.lineWidth,stroke:L(o.lineColor),cursor:H?"pointer":"",visibility:v?D:"hidden"}).data("alwaysInvisible",!v).data("setRolloverProperties",c).data("setRolloverAttr",S).data("setRolloutAttr",_).data("anchorRadius",v).data("anchorHoverRadius",c&&c.radius).shadow(b||!1,I),C&&T.push(C),m=y((I=A.polypath(q[1]||2,n,r,0<w?w:0,o.startAngle,m,d).attr({visibility:"hidden"})).attrs.path),I.remove(),y=y((I=A.polypath(q[1]||2,n,r,0<x?x:0,c.startAngle,c.dip,d).attr({visibility:"hidden"})).attrs.path),I.remove(),_={x:n-this.width*M*.005,y:r-this.height*M*.005,width:N,height:B,alpha:O,"clip-path":m},S={x:n-this.width*R*.005,y:r-this.height*R*.005,width:j,height:$,alpha:F,"clip-path":y},a.graphicImage&&"image"===a.graphicImage.type?k=a.graphicImage.attr("src",P):a.graphicImage=k=A.image(P,d),k.attr(_).attr({visibility:v?D:"hidden"}).css({opacity:.01*O}).data("alwaysInvisible",!M).data("setRolloverProperties",c).data("setRolloverAttr",S).data("setRolloutAttr",_).data("anchorRadius",M).data("anchorHoverRadius",R),k&&T.push(k),(H||V||c)&&(v=lt(v,c&&c.radius||0,E),(f=a.tracker&&"circle"===a.tracker.type?a.tracker.attr({cx:n,cy:r,r:v}):a.tracker=A.circle({cx:n,cy:r,r:v},W)).attr({cursor:H?"pointer":"",stroke:g,"stroke-width":o.lineWidth,fill:g,ishot:!0,visibility:D})),(f||k).data("eventArgs",s).data("groupId",z).click(U).hover(Y(a
38),X(a)).tooltip(l)),t.drawTracker&&t.drawTracker.call(t,e,i,h),(A=a.dataLabel=G?G.drawPlotLineLabel.call(t,e,i,h,n,r):t.drawPlotLineLabel(e,i,h,n,r))&&T.push(A)}},drawPlotArea:function(t,e){var i,n,r,o,a,s,l,c,h,u,p,f,m,v,b,y=this,x=y.paper,w=(B=y.options).chart,_=y.logic,C=B.plotOptions.series,S=y.elements,k=t.items,A=t.graphics=t.graphics||[],D=y.xAxis[e.xAxis||0],E=y.yAxis[e.yAxis||0],P=E.axisData.reversed,I=w.xDepth||0,M=w.yDepth||0,O=(_=_.isStacked,!1!==(B.tooltip||{}).enabled),F={fontFamily:(B=C.dataLabels.style).fontFamily,fontSize:B.fontSize,lineHeight:B.lineHeight,fontWeight:B.fontWeight,fontStyle:B.fontStyle,color:B.color},B=isNaN(+C.animation)&&C.animation.duration||1e3*C.animation,N=w.series2D3Dshift,j="0"===y.definition.chart.drawfullareaborder,$=t.data,V=!1===e.visible?"hidden":"visible",H=$.length,W=D.getAxisPosition(0),z=(D.getAxisPosition(1)-W)*H,q=D.axisData.scroll||{},U=(W=w.hasScroll||!1,C.connectNullData),G=E.max,Y=E.min,X=E.getAxisPosition(0<G&&0>Y?0:!P&&0<G&&0<=Y?Y:G)+(N?M:0),J=y.chartWidth,K=y.chartHeight,Z=(P=function(){dt.attr({"clip-rect":null}),ht.show(),st.show(),vt.attr({transform:"...t"+-J+","+-K})},null),Q=(G=e.lineWidth,Y=e.dashStyle,L(e.fillColor)),tt=L(e.lineColor),et=0,it=/drag/gi.test(y.logic.rendererId),nt=[],rt=[],ot=null,at=[];l=(bt=y.layers).dataset=bt.dataset||x.group("dataset-orphan");var st,ct,ht,dt,ut,pt,ft,gt,mt,vt=bt.datalabels=bt.datalabels||x.group("datalabels").insertAfter(l),bt=(ot=bt.tracker,ot=bt.areaHot=bt.areaHot||x.group("area-hot",ot),S["clip-canvas-init"].slice(0)),yt=(S=S["clip-canvas"].slice(0),w=w.anchorTrackingRadius,function(t){R.call(this,y,t)}),xt=function(t){return function(e){y.hoverPlotAnchor(this,e,"DataPlotRollOver",t,y)}},wt=function(t){return function(e){y.hoverPlotAnchor(this,e,"DataPlotRollOut",t,y)}},_t=function(i,n,r,o,a,s,l,c){return function(){(mt=o.dataLabel=y.drawPlotLineLabel(t,e,c,i,n))&&A.push(mt)}};for(y.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",F),vt.attr("class","fusioncharts-datalabels"),E.yBasePos=X,vt.attr({transform:"...t"+J+","+K}),B&&y.animationCompleteQueue.push({fn:P,scope:y}),F=l,_&&(ut=F.shadows||(F.shadows=x.group("shadows",F).toBack())),dt=F.area=F.area||x.group("area",F),F=F.areaConnector||(F.areaConnector=x.group("area-connector",F)),t.lineShadowLayer||(t.lineShadowLayer=x.group("connector-shadow",F)),st=t.anchorShadowLayer||(t.anchorShadowLayer=x.group("anchor-shadow",F)),ct=t.lineLayer||(t.lineLayer=x.group("connector",F)),(ht=t.anchorLayer||(t.anchorLayer=x.group("anchors",F))).hide(),st.hide(),F=l,F=0;F<H;F+=1)l=(o=$[F]).y,i=T(o.x,F),h=D.getAxisPosition(i)-I,p=mt=f=null,i=k[F]={},null===l?(0===U&&(Z=null,0<et&&(1===et?nt.splice(-8,8):(nt=nt.concat(rt)).push("Z"),rt=[])),i.chart=y,i.index=F,i.value=l):(a=o.link,n=o.toolText,r=o.previousY,c=(c=E.getAxisPosition(r)||null)||X,u=E.getAxisPosition(l+(r||0))+(N?M:0),(gt=o.marker)&&gt.enabled&&(r={index:F,link:a,value:o.y,displayValue:o.displayValueArgs,categoryLabel:o.categoryLabel,toolText:o.toolText,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},v=b={},m=o.rolloverProperties,gt.imageUrl?(a={isTooltip:O,setLink:a,hotLayer:ot,clickFunc:yt,isDragable:it},(s=new d).onload=y.onAnchorImageLoad(this,t,e,h,u,gt,i,r,n,m,F,ht,a),s.onerror=_t(h,u,gt,i,r,n,m,F),s.src=gt.imageUrl):(p=gt.symbol.split("_"),s=gt.radius,ft=gt.shadow,m&&(v={polypath:[p[1]||2,h,u,s,gt.startAngle,0],fill:L(gt.fillColor),"stroke-width":gt.lineWidth,stroke:L(gt.lineColor)},b={polypath:[(m=o.rolloverProperties).sides||2,h,u,m.radius,m.startAngle,m.dip],fill:L(m.fillColor),"stroke-width":m.lineWidth,stroke:L(m.lineColor)}),p=i.graphic=x.polypath(p[1]||2,h,u,s,gt.startAngle,0,ht).attr({fill:L(gt.fillColor),ishot:!O,"stroke-width":gt.lineWidth,stroke:L(gt.lineColor),cursor:a?"pointer":"",visibility:s?V:"hidden"}).data("alwaysInvisible",!s).data("setRolloverProperties",m).data("setRolloverAttr",b).data("setRolloutAttr",v).data("anchorRadius",s).data("anchorHoverRadius",m&&m.radius).shadow(ft||!1,st),(a||O||m)&&(_||(s=lt(s,m&&m.radius||0,w)),f=i.tracker=x.circle({cx:h,cy:u,r:s,cursor:a?"pointer":"",stroke:g,"stroke-width":gt.lineWidth,fill:g,ishot:!0,visibility:V},ot)),(f||p).data("eventArgs",r).click(yt).hover(xt(i),wt(i)).tooltip(n),y.drawTracker&&y.drawTracker.call(y,t,e,F))),null===Z?(at.push("M",h,",",u),nt.push("M",h,",",c),et=0):at.push("L",h,",",u),nt.push("L",h,",",u),rt.unshift("L",h,",",c),et++,Z=u,gt&&gt.imageUrl||(mt=i.dataLabel=y.drawPlotLineLabel(t,e,F,h,u)),i.chart=y,i.index=F,i.value=l,i.dataLabel=mt),mt&&A.push(mt),p&&A.push(p),f&&A.push(f);return 0<et&&(1===et?nt.splice(-8,8):(nt=nt.concat(rt)).push("Z")),(ot=t.graphic=x.path(nt,dt).attr({fill:Q,"stroke-dasharray":Y,"stroke-width":j?0:G,stroke:tt,"stroke-linecap":"round","stroke-linejoin":2<G?"round":"miter",visibility:V}).shadow(C.shadow&&o.shadow,ut))&&A.push(ot),W&&(C=q.startPercent,S[2]=z+bt[0],1===C&&(bt[0]=S[2],S[0]=0)),B?pt=dt.attr({"clip-rect":bt}).animate({"clip-rect":S},B,W?"easeIn":"normal",y.getAnimationCompleteFn()):(P&&P(),P=void 0),ut&&(B?ut.attr({"clip-rect":bt}).animateWith(dt,pt,{"clip-rect":S},B,W?"easeIn":"normal",(function(){ut.attr({"clip-rect":null})})):ut.attr({"clip-rect":null})),j&&(x=t.connector=x.path(at,ct).attr({"stroke-dasharray":Y,"stroke-width":G,stroke:tt,"stroke-linecap":"round","stroke-linejoin":2<G?"round":"miter",visibility:V}),B?ct.attr({"clip-rect":bt}).animateWith(dt,pt,{"clip-rect":S},B,W?"easeIn":"normal",(function(){ct.attr({"clip-rect":null})})):ct.attr({"clip-rect":null}),x&&A.push(x)),t.visible=!1!==e.visible,t},drawPlotScatter:function(t,e){var i,n,r,o,a,s,l,c,h,d,u,p,f,m,v,b,y,x,w,_,C=this,S=(F=C.options).chart,k=F.plotOptions.series,A=C.paper,T=C.elements,D=t.items,E=t.graphics=t.graphics||[],P=C.xAxis[e.xAxis||
380],I=C.yAxis[e.yAxis||0],M=t.data,O=!1===e.visible?"hidden":"visible",F=!1!==(F.tooltip||{}).enabled,B={fontFamily:(N=k.dataLabels.style).fontFamily,fontSize:N.fontSize,lineHeight:N.lineHeight,fontWeight:N.fontWeight,fontStyle:N.fontStyle,color:N.color},N=isNaN(+k.animation)&&k.animation.duration||1e3*k.animation,j=C.chartWidth,$=C.chartHeight,V=e.lineWidth,H=0<V,W=e.color,z=e.dashStyle,q=k.connectNullData,U=[],G=(X=C.layers).dataset||(X.dataset=A.group("dataset-orphan")),Y=X.datalabels||(X.datalabels=A.group("datalabels").insertAfter(G)),X=X.tracker,J=(S=S.anchorTrackingRadius,function(t){R.call(this,C,t)}),K=function(t){return function(e){C.hoverPlotAnchor(this,e,"DataPlotRollOver",t,C)}},Z=function(t){return function(e){C.hoverPlotAnchor(this,e,"DataPlotRollOut",t,C)}};for(C.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",B),Y.attr("class","fusioncharts-datalabels"),N&&(C.animationCompleteQueue.push({fn:function(){Y.attr({transform:"...t"+-j+","+-$})},scope:C}),Y.attr({transform:"...t"+j+","+$})),x=G.line||(G.line=A.group("line-connector",G)),t.lineShadowLayer=A.group("connector-shadow",x),G=t.anchorShadowLayer=A.group("anchor-shadow",x),B=t.lineLayer=A.group("connector",x),x=t.anchorLayer=A.group("anchors",x),r=0,o=M.length;r<o;r+=1)d=(a=M[r]).marker,l=c=f=i=m=null,_=t.index+"_"+r,c=a.y,l=a.x,null!==c&&null!==l?(i=D[r]={index:r,x:l,y:c,value:c},c=I.getAxisPosition(c),l=P.getAxisPosition(l),d&&d.enabled&&(s=a.link,n=a.toolText,p=d.radius,w=d.shadow,u={index:r,link:s,y:a.y,x:a.x,displayValue:a.displayValueArgs,categoryLabel:a.categoryLabel,toolText:a.toolText,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},f=d.symbol.split("_"),b=y={},a.hoverEffects&&(b={polypath:[f[1]||2,l,c,p,d.startAngle,0],fill:L(d.fillColor),"stroke-width":d.lineWidth,stroke:L(d.lineColor)},y={polypath:[(v=a.rolloverProperties).sides||2,l,c,v.radius,v.startAngle,v.dip],fill:L(v.fillColor),"stroke-width":v.lineWidth,stroke:L(v.lineColor)}),f=i.graphic=A.polypath(f[1]||2,l,c,p,d.startAngle,0,x).attr({fill:L(d.fillColor),ishot:!F,"stroke-width":d.lineWidth,stroke:L(d.lineColor),cursor:s?"pointer":"",visibility:p?O:"hidden"}).data("alwaysInvisible",!p).data("setRolloverProperties",v).data("setRolloverAttr",y).data("setRolloutAttr",b).data("anchorRadius",p).data("anchorHoverRadius",v&&v.radius).shadow(w||!1,G),(s||F||v)&&(p=lt(p,v&&v.radius||0,S),m=i.tracker=A.circle({cx:l,cy:c,r:p,cursor:s?"pointer":"",stroke:g,"stroke-width":d.lineWidth,fill:g,ishot:!0,visibility:O},X)),(m||f).data("eventArgs",u).data("groupId",_).click(J).hover(K(i),Z(i)).tooltip(n)),H&&((void 0===h||null===h&&0===q)&&l&&c&&U.push("M",l,",",c),l&&c&&U.push("L",l,",",c),h=c),i=i.dataLabel=C.drawPlotLineLabel(t,e,r,l,c)):(H&&0===q&&(h=null),D[r]={chart:C,index:r,x:l,y:c}),i&&E.push(i),f&&E.push(f),m&&E.push(m),C.drawTracker&&C.drawTracker.call(C,t,e,r);return U.length&&(k=t.graphic=A.path(U,B).attr({"stroke-dasharray":z,"stroke-width":V,stroke:W,"stroke-linecap":"round","stroke-linejoin":2<V?"round":"miter",visibility:O}).shadow(k.shadow&&a.shadow),B.attr({"clip-rect":T[N?"clip-canvas-init":"clip-canvas"]}),N&&B.animate({"clip-rect":T["clip-canvas"]},N,"normal"),E.push(k)),N&&x.attr({opacity:0}).animate({opacity:1},N,"normal",C.getAnimationCompleteFn()),t.visible=!1!==e.visible,t},drawPlotLineLabel:function(t,e,i,n,r,o){var a=(h=this.options).chart,s=this.paper,l=this.layers,c=h.plotOptions.series.dataLabels.style,h=1===a.rotateValues?270:0,d=this.canvasHeight,u=this.canvasTop,f=t.data,g=f[i],m=t.items[i],v=Y(g.valuePosition,"auto").toLowerCase();t=this.logic.defaultSeriesType;var b=m.graphic,y=g.marker;b=y&&y.enabled?b&&"image"==b.type&&.5*b.attr("height")||y&&y.radius-3:0,b=a.valuePadding+2+b;switch(e=!1===e.visible?"hidden":"visible",y=m.dataLabel,o=o||l.datalabels,v){case"above":i=0;break;case"below":i=1;break;default:l=f[i-1]||{},f=f[i+1]||{},i=i&&(l.y>g.y||(null==l.y&&f.y)>g.y)?1:0}return l=g.displayValue,Q(l)&&l!==p?(y?h&&y.attr("transform",["r",360-h]):y=m.dataLabel=s.text(o).attr({class:"fusioncharts-label",text:l,fill:c.color,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash],direction:a.textDirection,"font-weight":c.fontWeight,"font-style":c.fontStyle,"font-family":c.fontFamily,"font-size":c.fontSize,"line-height":c.lineHeight}),y.attr({title:g.originalText||"",fill:c.color}),m._state&&m._state.labelWidth||(o=y.getBBox(),m._state={labelWidth:o.width,labelHeight:o.height}),o=r-u,d=u+d-r,a=(a=s=h?m._state.labelWidth:m._state.labelHeight)+b+4,u=.5*s+b,/bubble/i.test(t)||(i?d>a?(r+=u,g._valueBelowPoint=1):o>a&&(r-=u,g._valueBelowPoint=0):o>a?(r-=u,g._valueBelowPoint=0):d>a&&(r+=u,g._valueBelowPoint=1)),y.attr({x:n,y:r,visibility:e}).data("isBelow",g._valueBelowPoint),h&&y.attr("transform","T0,0,R"+h)):y&&y.attr({text:p}),y},drawLabels:function(){for(var t,e,i,n=this.paper,r=(h=this.options).labels&&h.labels.items&&h.labels.items,o=r&&r.length,a=this.layers.layerAboveDataset,s=this.elements.quadran||(this.elements.quadran=[]),l=this.canvasTop,c=this.canvasLeft,h=h.chart.textDirection,d={right:"end",left:"start",undefined:"start"};o--;)e={fontFamily:(t=(i=r[o]).style).fontFamily,fontSize:t.fontSize,lineHeight:t.lineHeight,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fill:t.color},Q(i.html)&&i.html!==p&&(s[o]=n.text({text:i.html},a).css(e).attr({x:parseInt(t.left,10)+c,y:parseInt(t.top,10)+l,"text-anchor":d[i.textAlign],"vertical-align":i.vAlign,direction:h,"text-bound":[t.backgroundColor,t.borderColor,t.borderThickness,t.borderPadding,t.borderRadius,t.borderDash]}))}},l["renderer.root"]),l("renderer.piebase",{isHovered:!1,getPlotData:function(t,e){var i,n,r,o=(i=this.datasets[0]).data[t];if((i=i.userData||(i.userData=[]))[t])i=i[t];else{for(r in i=i[t]={},o)"object"!=typeof(n=o[r])&&"function"!=typeof n&&0!==r.indexOf("_")&&(i[r]=n);i.value=i.y,i.label=i.name,delete i.y,delete i.total,delete i.doNotSlice,delete i.name,delete i.centerAngle,delete i.showInLegend}return i.sliced=e,i},redrawDataLabels:function(t){var e=t.elements.plots[0];return t.placeDataLabels(!0,e.items,e),{}},sliceInOtherPies:function(t){var e,i=this.options.series[0],n=i.plot.items,r=n.length,o=0;for(i.enableMultiSlicing=!0;r--;)r!==t&&(e=n[r]).sliced&&++o&&this.plotGraphicClick.call(e);return i.enableMultiSlicing=!1,!!o},plotGraphicClick:function(t){var e,i,n=this.graphic||this,o=n.plotItem||n.data("plotItem"),a=o.seriesData,s=o.chart,l=s.logic.chartInstance,c=o.index,h=n.data("eventArgs")||{},d=s.options.series[0].enableMultiSlicing,u=a.data[o.index].doNotSlice,p=o.slicedTranslation;if(!a.isRotating&&R.call(n,s,t),!(a.isRotating||a.singletonCase||u||(n=!d&&s.sliceInOtherPies(c),(t=o.sliced)&&n))){if($&&!V){if(n=(new Date).getTime(),o.lastSliceTimeStamp&&400>n-o.lastSliceTimeStamp)return;o.lastSliceTimeStamp=n}return n=o.graphic,a=o.connector,d=o.dataLabel,p="object"==typeof p?"t"+p:p,u=o.connectorPath,e=(t?-1:1)*o.transX,i=(t?-1:1)*o.transY,r.raiseEvent("slicingStart",{slicedState:t,dataIndex:"index"in h&&h.index,data:s.getPlotData(c,t)},l),n.animate({transform:t?"t0,0":p},200,"easeIn",(function(){r.raiseEvent("slicingEnd",{slicedState:o.sliced,dataIndex:"index"in h&&h.index,data:s.getPlotData(c,o.sliced)},l)})),d&&d.x&&d.animate({x:d.x+(t?0:e)},200,"easeIn"),u&&(u[1]+=e,u[2]+=i,u[4]+=e,u[6]+=e,a.animate({path:u},200,"easeIn")),t=o.sliced=!t,(n={hcJSON:{series:[]}}).hcJSON.series[0]={data:p=[]},p[c]={sliced:t},_(l.jsVars._reflowData,n,!0),t}},plotDragStart:function(t,i,n){var r=(a=this.data("plotItem")).chart,a=a.seriesData,s=r.options.series,l=-r.datasets[0].startAngle*ut;if(a.isRotating=!1,s[0].enableRotation){if(s=r.container,r={left:0,top:0},s.getBoundingClientRect)s=s.getBoundingClientRect(),r.top=s.top+(o.pageYOffset||h.scrollTop||0)-(h.clientTop||0),r.left=s.left+(o.pageXOffset||h.scrollLeft||0)-(h.clientLeft||0);else for(;s;)r.left+=s.offsetLeft||0,r.top+=s.offsetTop||0,s!==h.body&&s!==h.documentElement&&(r.left-=s.scrollLeft||0,r.top-=s.scrollTop||0),s=s.offsetParent;a.chartPosition=r,t=e.call(n,t,i,a.pieCenter,a.chartPosition),a.dragStartAngle=t,a.startingAngleOnDragStart=l}},plotDragEnd:function(t){var e=this.data("plotItem"),n=e.chart,o=e.seriesData,a=-n.datasets[0].startAngle*ut,s={hcJSON:{series:[{startAngle:a}]}};n.disposed||(_(n.logic.chartInstance.jsVars._reflowData,s,!0),n.rotate(o,n.options.series[0])),!o.isRotating&&n.plotGraphicClick.call(e,t),o.isRotating&&(setTimeout((function(){o.isRotating=!1}),0),r.raiseEvent("RotationEnd",{startingAngle:i(a,!0),changeInAngle:a-o.startingAngleOnDragStart},n.logic.chartInstance)),!n.isHovered&&n.onPlotHover(this,!1)},plotDragMove:function(t,n,o,a,s){var l=(t=this.data("plotItem")).chart,c=t.seriesData,h=l.options.series;
38h[0].enableRotation&&!c.singletonCase&&(o=e.call(s,o,a,c.pieCenter,c.chartPosition),c.isRotating||(c.dragStartAngle!==o&&(c.isRotating=!0),r.raiseEvent("RotationStart",{startingAngle:i(c.startingAngleOnDragStart,!0)},l.logic.chartInstance)),h[0].startAngle+=o-c.dragStartAngle,c.dragStartAngle=o,c.moveDuration=0,o=(new Date).getTime(),!c._lastTime||c._lastTime+c.timerThreshold<o)&&(setTimeout((function(){l.rotate(c,h[0])}),0),c._lastTime=o)},plotRollOver:function(t){var e,i,n=this.plotItem||this.data("plotItem"),r=n.chart;n.seriesData.isRotating||(R.call(this,r,t,"DataPlotRollOver"),r.onPlotHover(this,!0)),r.isHovered=!0,(t=n.innerDiameter)&&(e=n.centerLabelConfig)&&(i=e.label)&&r.drawDoughnutCenterLabel(i,n.center[0],n.center[1],t,t,e,!1)},plotRollOut:function(t){var e,i,n=this.plotItem||this.data("plotItem"),r=n.chart,o=r.options.series[0];n.seriesData.isRotating||(R.call(this,r,t,"DataPlotRollOut"),r.onPlotHover(this,!1)),r.isHovered=!1,(t=n.innerDiameter)&&(e=o.centerLabelConfig)&&((i=e.label)||!i)&&r.drawDoughnutCenterLabel(i,n.center[0],n.center[1],t,t,e,!1)},onPlotHover:function(t,e){var i=t.data("plotItem"),n=i.rolloverProperties,r=e?n.color:i.color,o=e?n.borderWidth:i.borderWidth,a=e?n.borderColor:i.borderColor;n&&i.graphic.attr({fill:L(r),"stroke-width":o,stroke:a})},getEventArgs:function(t){return{datasetName:(t=t||{}).label,datasetIndex:t.originalIndex,id:t.userID,visible:!0,label:t.label,value:t.value,percentValue:t.percentage,tooltext:t.toolText,link:t.link,sliced:t.sliced}},legendClick:function(t){var e=t.chart;e.elements.plots[0].isRotating=!1,e.plotGraphicClick.call(t)},placeDataLabels:function(){var t=function(t,e){return t.point.value-e.point.value},e=function(t,e){return t.angle-e.angle},i=["start","start","end","end"],n=[-1,1,1,-1],r=[1,1,-1,-1];return function(o,a,s,l){var c,h=(v=this.options.plotOptions).pie,d=this.canvasLeft+.5*this.canvasWidth,u=this.canvasTop+.5*this.canvasHeight,p=this.smartLabel,f=(U=v.series.dataLabels).style,g=T(ht(parseFloat(f.lineHeight)),12),m=X(U.placeLabelsInside,1===a.length),v=U.skipOverlapLabels,b=U.manageLabelOverflow,y=U.connectorPadding,x=U.distance,w=(c=l&&l.metrics||[d,u,h.size,h.innerSize||0])[1],_=c[0];l=.5*c[2];var C=[[],[],[],[]],S=this.canvasLeft,k=this.canvasTop,A=(h=this.canvasWidth,x=s.labelsRadius||(s.labelsRadius=l+x),(u=d=parseInt(f.fontSize,10))/2);y=[y,y,-y,-y];s=s.labelsMaxInQuadrant||(s.labelsMaxInQuadrant=dt(x/u));var L,D,E,P,I,M,O,F,R,B,N,j,$,V,W,z,q,U=U.isSmartLineSlanted,G=c[3]/2;if(c=Number.POSITIVE_INFINITY,N=[],L=[],o||p.setStyle(f),1==a.length&&!G&&m)m=a[0],($=m.dataLabel)&&$.show(),m.slicedTranslation=[S,k],$&&($.attr({visibility:et,align:"middle",transform:["t",_,w]}),$.x=_);else if(m)q=G+(l-G)/2,H(a,(function(t){($=t.dataLabel)&&$.show(),$&&(j=t.angle,B=w+q*nt(j),M=_+q*rt(j),$.x=M,$._x=M,$.y=B,t.sliced&&(z=t.slicedTranslation,V=z[0]-S,W=z[1]-k,M+=V,B+=W),$.attr({visibility:et,align:"middle",transform:["t",M,B]}))}));else{for(H(a,(function(t){($=t.dataLabel)&&$.show(),$&&(0>(j=t.angle%gt)&&(j=gt+j),C[0<=j&&j<ft?1:j<pt?2:j<mt?3:0].push({point:t,angle:j}))})),a=o=4;a--;){if(v&&0<(f=C[a].length-s))for(C[a].sort(t),N=C[a].splice(0,f),f=0,G=N.length;f<G;f+=1)(m=N[f].point).dataLabel.attr({visibility:"hidden"}),m.connector&&m.connector.attr({visibility:"hidden"});C[a].sort(e)}for(a=lt(C[0].length,C[1].length,C[2].length,C[3].length),f=lt(st(a,s)*u,x+u),L=C[0].concat(C[1]),N=C[2].concat(C[3]),a=L.length-1;0<=a;a--)delete(m=L[a].point).clearance,delete m.clearanceShift,E=ct(f*nt(m.angle)),Math.abs(c-E)<2*g&&(m.clearance=0,L[a+1].point.clearanceShift=g/2),c=E;for(c=Number.POSITIVE_INFINITY,a=0,G=N.length;a<G;a++)delete(m=N[a].point).clearance,delete m.clearanceShift,E=ct(f*nt(m.angle)),Math.abs(c-E)<2*g&&(m.clearance=0,N[a-1].point.clearanceShift=g/2),c=E;for(C[1].reverse(),C[3].reverse();o--;){for(G=(N=C[o]).length,v||(A=(u=G>s?f/G:d)/2),g=G*u,c=f,a=0;a<G;a+=1,g-=u)c<(E=ct(f*nt(N[a].angle)))?E=c:E<g&&(E=g),c=(N[a].oriY=E)-u;for(L=i[o],G=f-(G-1)*u,c=0,a=N.length-1;0<=a;--a,G+=u)m=N[a].point,j=N[a].angle,P=m.sliced,$=m.dataLabel,(E=ct(f*nt(j)))<c?E=c:E>G&&(E=G),c=E+u,g=void 0===m.clearance?2*ht(T(parseFloat(m.style.border),12),12):2*ht(T(parseFloat(m.style.border),m.clearance)),F=(E+N[a].oriY)/2,E=_+r[o]*x*rt(it.asin(F/f)),F*=n[o],F+=w,R=w+l*nt(j),I=_+l*rt(j),(2>o&&E<I||1<o&&E>
38I)&&(E=I),M=E+y[o],B=F-A-2,O=M+y[o],$.x=O,$._x=O,b&&(D=1<o?O-this.canvasLeft:this.canvasLeft+h-O,p.setStyle(m.style),g=T(ht(parseFloat(m.style.lineHeight)),12)+g,g=p.getSmartText(m.labelText,D,g),void 0===m.clearance&&g.height>u&&(F+=u),$.attr({text:g.text}).tooltip(g.tooltext)),$.y=B,P&&(V=m.transX,W=m.transY,M+=V,E+=V,I+=V,R+=W,O+=V),$.attr({visibility:et,"text-anchor":L,vAlign:"middle",x:O,y:F}),(g=m.connector)&&(m.connectorPath=m=["M",I,R,"L",U?E:I,F,M,F],g.attr({path:m,visibility:et}))}}}}()},l["renderer.root"]),l("renderer.newcartesian",{drawGraph:function(){var t,e,i=this,n=i.paper,r=i.plots=i.elements.plots,o=i.logic,a=o.dataObj.dataset,s=a&&a.length,l=i.layers,c=i.options,h=i.elements,d=c.chart;t=i.datasets=c.series,e=X(d.rendererId,d.defaultSeriesType);c=l.background;var u,p,f,g=l.dataset=l.dataset||n.group("dataset").insertAfter(c),m=(c=0,t.length),v=d.isBar,b=d.is3D;f=FusionCharts.register("groupManagerType",["ColumnGroupManager"]);var y=o.isStacked,x=FusionCharts.register("dataSetType",["Column"]),w=FusionCharts.register("dataSetType",["Column3D"]),C=FusionCharts.register("dataSetType",["Bar2D"]),S=FusionCharts.register("dataSetType",["Bar3D"]);p=(k=(k=o.chartInstance.jsVars._reflowData).dataObj||(k.dataObj={})).chart||(k.chart={});var k=function(t,e){return function(i){var n,a=r[t],s={hcJSON:{series:[]}},l=s.hcJSON.series[t]||(s.hcJSON.series[t]={}),c=o.chartInstance.jsVars._reflowData;n=(i=X(i,!a.visible))?"visible":"hidden",H(a.graphics,(function(t){!0!==t.data("alwaysInvisible")&&t.attr("visibility",n)})),a.visible=i,e.visible=i,l.visible=i,_(c,s,!0)}},T=function(t){return function(e){var i=r[t],n=(a=(d=i.legend)&&d.elements)&&a.legendItemText,o=a&&a.legendItemSymbol,a=a&&a.legendItemLine,s=d&&d.hiddenColor,l=d&&d.itemLineColor,c=d&&d.itemTextColor,h=d&&d.symbolColor,d=d&&d.symbolStroke;A(e,!i.visible)?(o&&o.attr({fill:h||l,stroke:d}),n&&n.attr({fill:c}),a&&a.attr({stroke:l})):(o&&o.attr({fill:s,stroke:s}),n&&n.attr({fill:s}),a&&a.attr({stroke:s})),r[t].visible?r[t].hide():r[t].show()}},L=function(t){return function(){return i.getEventArgs&&i.getEventArgs(r[t])}},D=function(t,e,n){return function(o,a){e.call(i,r[t],n,{numUpdate:o,hasAxisChanged:a})}};for(l.tracker=l.tracker||n.group("hot").insertAfter(g),p.animation=0,i.drawCanvas(),i.drawAxes(),r||(r=i.plots=i.plots||[],h.plots=r),i.parseCategory(),(l=new f).init(i),l.dataSetsLen=m,n=0;n<m;n++)u=(h=t[n]||{}).updatePlot="updatePlot"+U(A(h.type,h.plotType,e)),f=i[u],u=h.drawPlot="drawPlot"+U(A(h.type,h.plotType,e)),p=i[u]||i.drawPlot,(u=r[n])||(v&&!b?r.push(u=new C):v&&b?r.push(u=new S):!v&&b?r.push(u=new w):r.push(u=new x),u.index=n,u.items=[],u.data=h.data||[],u.name=h.name,u.userID=h.userID,u.setVisible=k(n,h),u.legendClick=T(n),u.getEventArgs=L(n),u.realtimeUpdate=D(n,f||p,h),h.plot=u,h.legendClick=u.legendClick,h.getEventArgs=u.getEventArgs,h.setVisible=u.setVisible),n&&t[n-1]&&(h.previousData=t[n-1].data),u.setContainer(g);for(n=0;n<s;n++)for(e=(t=a[n].dataset)&&t.length||1,g=0;g<e;g++){if(!(u=r[c++]))return;y&&!t?l.addDataSet(u,g,n):l.addDataSet(u,n,g),t?u.init(i,n,g):u.init(i,n)}u.JSONData&&l.draw(),d.hasScroll&&(i.drawScroller(),i.finalizeScrollPlots())},parseCategory:function(){var t,e,i,n=this._catArr=[],r=this.logic.dataObj,o=0,a=r.categories&&r.categories[0].category,s=a&&a.length;for(t=0;t<s;t+=1)a[t].vline||(e=r.categories[0].category[t],i=X(e.label,e.name),n[o]=X(e.tooltext,i),o+=1)}},l["renderer.cartesian"]),l("renderer.newmscombi2d",{drawGraph:function(){var t,e,i,n=this,r=n.paper,o=n.plots=n.elements.plots,a=n.logic,s=(D=a.dataObj).dataset,l=a.isStacked,c=n.layers,h=n.options,d=n.elements,u=h.chart,p=u.is3D,f=(h=n.datasets=h.series,X(u.rendererId,u.defaultSeriesType)),g=c.background,m=(g=c.dataset=c.dataset||r.group("dataset").insertAfter(g),h.length),v=FusionCharts.register("groupManagerType",["ColumnGroupManager"]),b=FusionCharts.register("groupManagerType",["LineGroupManager"]),y=FusionCharts.register("groupManagerType",["AreaGroupManager"]),x=FusionCharts.register("dataSetType",["Column"]),w=FusionCharts.register("dataSetType",["Column3D"]),C=FusionCharts.register("dataSetType",["Line"]);t=FusionCharts.register("dataSetType",["Area"]);var S=0,k=0,L=0,D=T(D.chart.areaovercolumns,1);x={Column:x,Column3d:w,Area:t,Line:C},v={Column:new v,Column3d:new v,Area:new y,Line:new b},b=a.chartInstance.jsVars._reflowData;for(i in t=b.dataObj||(b.dataObj={}),b=function(t,e){return function(i){var n,r=o[t],s={hcJSON:{series:[]}},l=s.hcJSON.series[t]||(s.hcJSON.series[t]={}),c=a.chartInstance.jsVars._reflowData;n=(i=X(i,!r.visible))?"visible":"hidden",H(r.graphics,(function(t){!0!==t.data("alwaysInvisible")&&t.attr("visibility",n)})),r.visible=i,e.visible=i,l.visible=i,_(c,s,!0)}},y=function(t){return function(e){var i=o[t],n=(a=(d=i.legend)&&d.elements)&&a.legendItemText,r=a&&a.legendItemSymbol,a=a&&a.legendItemLine,s=d&&d.hiddenColor,l=d&&d.itemLineColor,c=d&&d.itemTextColor,h=d&&d.symbolColor,d=d&&d.symbolStroke;
38A(e,!i.visible)?(r&&r.attr({fill:h||l,stroke:d}),n&&n.attr({fill:c}),a&&a.attr({stroke:l})):(r&&r.attr({fill:s,stroke:s}),n&&n.attr({fill:s}),a&&a.attr({stroke:s})),o[t].visible?o[t].hide():o[t].show()}},w=function(t){return function(){return n.getEventArgs&&n.getEventArgs(o[t])}},C=function(t,e,i){return function(r,a){e.call(n,o[t],i,{numUpdate:r,hasAxisChanged:a})}},(t.chart||(t.chart={})).animation=0,c.tracker=c.tracker||r.group("hot").insertAfter(g),n.drawCanvas(),n.drawAxes(),o||(o=n.plots=n.plots||[],d.plots=o),v)v[i].init(n);for(n.parseCategory(),c=0;c<m;c++){if(d=(r=h[c]||{}).updatePlot="updatePlot"+U(A(r.type,r.plotType,f)),d=n[d],i=U(A(r.type,r.plotType,f)),t=r.drawPlot="drawPlot"+i,t=n[t]||n.drawPlot,!i||s[c].dataset)return;(e=o[c])||(o.push(e=new x[i]),e.index=c,e.items=[],e.data=r.data||[],e.name=r.name,e.userID=r.userID,e.setVisible=b(c,r),e.legendClick=y(c),e.getEventArgs=w(c),e.renderType=i,e.realtimeUpdate=C(c,d||t,r),e.yAxis=r.yAxis,r.plot=e,r.legendClick=e.legendClick,r.getEventArgs=e.getEventArgs,r.setVisible=e.setVisible),e.index=r.__positiionIndex,"Column"!==i&&"Column3d"!==i||(l?v[i].addDataSet(e,0,S++):v[i].addDataSet(e,S++,0)),"Area"===i&&v[i].addDataSet(e,L++),"Line"===i&&v[i].addDataSet(e,k++),e.init(n,r.__positiionIndex),c&&h[c-1]&&(r.previousData=h[c-1].data),e.setContainer(g)}D?(S&&(p?v.Column3d.draw():v.Column.draw()),L&&v.Area.draw()):(L&&v.Area.draw(),S&&(p?v.Column3d.draw():v.Column.draw())),k&&v.Line.draw(),u.hasScroll&&(n.drawScroller(),n.finalizeScrollPlots())}},l["renderer.newcartesian"]),l("renderer.msstackedcolumn2dlinedy",{drawGraph:function(){var t,e,i,n=this,r=n.paper,o=n.plots=n.elements.plots,a=n.logic,s=n.layers,l=n.options,c=n.elements,h=l.chart,d=(l=n.datasets=l.series,X(h.rendererId,h.defaultSeriesType)),u=s.background,p=(u=s.dataset=s.dataset||r.group("dataset").insertAfter(u),l.length),f=FusionCharts.register("groupManagerType",["ColumnGroupManager"]),g=FusionCharts.register("groupManagerType",["LineGroupManager"]),m=0,v=0,b=0,y={Column:y=FusionCharts.register("dataSetType",["Column"]),Line:x=FusionCharts.register("dataSetType",["Line"])};f={Column:new f,Line:new g};t=(g=a.chartInstance.jsVars._reflowData).dataObj||(g.dataObj={});g=function(t,e){return function(i){var n,r=o[t],s={hcJSON:{series:[]}},l=s.hcJSON.series[t]||(s.hcJSON.series[t]={}),c=a.chartInstance.jsVars._reflowData;n=(i=X(i,!r.visible))?"visible":"hidden",H(r.graphics,(function(t){!0!==t.data("alwaysInvisible")&&t.attr("visibility",n)})),r.visible=i,e.visible=i,l.visible=i,_(c,s,!0)}};var x=function(t){return function(e){var i=o[t],n=(a=(d=i.legend)&&d.elements)&&a.legendItemText,r=a&&a.legendItemSymbol,a=a&&a.legendItemLine,s=d&&d.hiddenColor,l=d&&d.itemLineColor,c=d&&d.itemTextColor,h=d&&d.symbolColor,d=d&&d.symbolStroke;A(e,!i.visible)?(r&&r.attr({fill:h||l,stroke:d}),n&&n.attr({fill:c}),a&&a.attr({stroke:l})):(r&&r.attr({fill:s,stroke:s}),n&&n.attr({fill:s}),a&&a.attr({stroke:s})),o[t].visible?o[t].hide():o[t].show()}},w=function(t){return function(){return n.getEventArgs&&n.getEventArgs(o[t])}},C=function(t,e,i){return function(r,a){e.call(n,o[t],i,{numUpdate:r,hasAxisChanged:a})}};for(i in(t.chart||(t.chart={})).animation=0,s.tracker=s.tracker||r.group("hot").insertAfter(u),n.drawCanvas(),n.drawAxes(),o||(o=n.plots=n.plots||[],c.plots=o),f)f[i].init(n);for(n.parseCategory(),s=0;s<p;s++){if(c=(r=l[s]||{}).updatePlot="updatePlot"+U(A(r.type,r.plotType,d)),i=n[c],c=U(A(r.type,r.plotType,d)),t=r.drawPlot="drawPlot"+c,e=n[t]||n.drawPlot,!c)return;(t=o[s])||(o.push(t=new y[c]),t.index=s,t.items=[],t.data=r.data||[],t.name=r.name,t.userID=r.userID,t.setVisible=g(s,r),t.legendClick=x(s),t.getEventArgs=w(s),t.renderType=c,t.realtimeUpdate=C(s,i||e,r),t.yAxis=r.yAxis,r.plot=t,r.legendClick=t.legendClick,r.getEventArgs=t.getEventArgs,r.setVisible=t.setVisible),"Column"===c?((i=r.__positiionIndex)!=b&&m++,b=i,f[c].addDataSet(t,m,r.__stackIndex||0),t.init(n,m,r.__stackIndex)):("Line"===c&&f[c].addDataSet(t,v),t.init(n,v++,!0)),s&&l[s-1]&&(r.previousData=l[s-1].data),t.setContainer(u)}f.Column.draw(),f.Line.draw(),h.hasScroll&&(n.drawScroller(),n.finalizeScrollPlots())}},l["renderer.newcartesian"]),FusionCharts.register("dataSetType",["Column",{configure:function(){var t,e,i,r,o,s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C,S,k,D,E,I=this.chart,M=I.logic,O=this.conf,F=this.fcJSON,R=this.JSONData,B=R.data,N=F.categories&&F.categories[0].category,j=st(N&&N.length,B&&B.length),$=(F=F.chart,
39I.logic.colorManager),V=$.getPlotColor(this.index||this.positionIndex),H=T(R.dashed,F.plotborderdashed),W=T(F.useplotgradientcolor,1),z=T(F.showtooltip,1),q=a.parseUnsafeString,U=q(F.yaxisname),G=q(F.xaxisname),J=q(A(F.tooltipsepchar,", ")),K=T(F.seriesnameintooltip,1),Z=a.parseTooltext,Q=a.getDashStyle,tt=this.components.data,et=I.numberFormatter,it=M.isBar,nt=M.is3D,rt=M.isStacked;for(l=(t=(t=M.chartInstance.jsVars._reflowData).dataObj||(t.dataObj={})).chart||(t.chart={}),t=O.showplotborder=T(F.showplotborder,nt?0:1),O.plotDashLen=c=T(F.plotborderdashlen,5),O.plotDashGap=h=T(F.plotborderdashgap,4),O.plotfillAngle=u=T(360-F.plotfillangle,it?180:90),O.plotFillAlpha=o=A(R.alph
39a,F.plotfillalpha,P),O.plotColor=A(R.color,V),O.isRoundEdges=d=T(F.useroundedges,0),O.plotRadius=T(F.useRoundEdges,O.isRoundEdges?1:0),O.plotFillRatio=p=A(R.ratio,F.plotfillratio),O.plotgradientcolor=f=a.getDefinedColor(F.plotgradientcolor,$.getColor("plotGradientColor")),!W&&(f=""),O.plotBorderAlpha=g=t?A(F.plotborderalpha,o,P):0,O.plotBorderColor=m=A(F.plotbordercolor,nt?"#ffffff":$.getColor("plotBorderColor")),O.plotBorderThickness=W=T(F.plotborderthickness,1),O.plotBorderDashStyle=H=H?Q(c,h,W):"none",O.showValues=T(R.showvalues,F.showvalues,1),O.valuePadding=T(F.valuepadding,2),O.enableAnimation=V=T(F.animation,F.defaultanimation,1),O.animation=!!V&&{duration:1e3*T(F.animationduration,1)},l.transposeAnimation=O.transposeAnimation=T(F.transposeanimation,l.transposeAnimation,V),O.transposeAnimDuration=1e3*T(F.transposeanimduration,.2),O.showShadow=T(F.showshadow,d||nt?1:$.getColor("showShadow")),O.showHoverEffect=$=T(F.plothovereffect,F.showhovereffect,n),O.showTooltip=T(F.showtooltip,1),O.stack100Percent=M=T(M.stack100percent,F.stack100percent,0),O.definedGroupPadding=T(F.plotspacepercent),O.plotSpacePercent=T(F.plotspacepercent,20)%100,O.maxColWidth=T(it?F.maxbarheight:F.maxcolwidth,50),O.showPercentValues=T(F.showpercentvalues,rt&&M?1:0),O.showPercentInToolTip=T(F.showpercentintooltip,rt&&M?1:0),O.plotPaddingPercent=T(F.plotpaddingpercent),O.rotateValues=T(F.rotatevalues)?270:0,O.placeValuesInside=T(F.placevaluesinside,0),O.zeroPlaneColor=I.options.chart.zeroPlaneColor,O.zeroPlaneBorderColor=I.options.chart.zeroPlaneBorderColor,O.zeroPlaneShowBorder=I.options.chart.zeroPlaneShowBorder,O.use3DLighting=T(F.use3dlighting,1),O.parentYAxis=M="s"===A(R.parentyaxis&&R.parentyaxis.toLowerCase(),"p")?1:0,tt||(tt=this.components.data=[]),rt=0;rt<j;rt++)l=B[rt],I=(V=tt[rt])&&V.config,V||(V=tt[rt]={graphics:{}}),V.config||(I=tt[rt].config={}),I.showValue=T(l.showvalue,O.showValues),I.setValue=i=et.getCleanValue(l.value),I.setLink=A(l.link),I.toolTipValue=V=et.dataLabels(i,M),I.setDisplayValue=o=q(l.displayvalue),I.displayValue=A(o,V),V=T(l.dashed),o=T(l.dashlen,c),e=h=T(l.dashgap,h),I.plotBorderDashStyle=e=1===V?Q(o,e,W):0===V?"none":H,V=A(l.color,O.plotColor),o=A(l.alpha,O.plotFillAlpha),0>i&&!d&&(s=u,u=it?180-u:360-u),I.colorArr=v=a.graphics.getColumnColor(V+","+f,o,p,u,d,m,g.toString(),it?1:0,!!nt),i=Y(q(A(N[rt].tooltext,N[rt].label))),0!==$&&(b=A(l.hovercolor,R.hovercolor,F.plotfillhovercolor,F.columnhovercolor,V),y=A(l.hoveralpha,R.hoveralpha,F.plotfillhoveralpha,F.columnhoveralpha,o),!(x=A(l.hovergradientcolor,R.hovergradientcolor,F.plothovergradientcolor,f))&&(x=""),w=A(l.hoverratio,R.hoverratio,F.plothoverratio,p),_=T(360-l.hoverangle,360-R.hoverangle,360-F.plothoverangle,u),C=A(l.borderhovercolor,R.borderhovercolor,F.plotborderhovercolor,m),S=A(l.borderhoveralpha,R.borderhoveralpha,F.plotborderhoveralpha,g,o),o=T(l.borderhoverthickness,R.borderhoverthickness,F.plotborderhoverthickness,W),k=T(l.borderhoverdashed,R.borderhoverdashed,F.plotborderhoverdashed),D=T(l.borderhoverdashgap,R.borderhoverdashgap,F.plotborderhoverdashgap,c),E=T(l.borderhoverdashlen,R.borderhoverdashlen,F.plotborderhoverdashlen,h),k=k?Q(E,D,o):e,1==$&&b===V&&(b=bt(b,70)),V=a.graphics.getColumnColor(b+","+x,y,w,_,d,C,S.toString(),it?1:0,!!nt),I.setRolloutAttr={fill:nt?[L(v[0]),!O.use3DLighting]:L(v[0]),stroke:t&&L(v[1]),"stroke-width":W,"stroke-dasharray":e},I.setRolloverAttr={fill:nt?[L(V[0]),!O.use3DLighting]:L(V[0]),stroke:t&&L(V[1]),"stroke-width":o,"stroke-dasharray":k}),e=I.toolTipValue,V=Y(q(A(l.tooltext,R.plottooltext,F.plottooltext))),z?null===e?l=!1:void 0!==V?l=Z(V,o=[1,2,3,4,5,6,7],i={yaxisName:U,xaxisName:G,formattedValue:e,label:i},l,F,R):(K&&(r=X(R&&R.seriesname)),l=r?r+J:"",l+=i?i+J:""):l=!1,I.toolText=l,I.setTooltext=l,s&&(u=s)},init:function(t,e,i){var n=(this.fcJSON=t.logic.dataObj).dataset,r=t.logic.isDual?t.yAxis[this.yAxis||0]:t.yAxis[0];if(!n||!n[e])return!1;this.chart=t,this.yAxis=r,this.components={},this.conf={},this.graphics={},Q(i)?this.JSONData=n[e].dataset[i]:this.JSONData=n[e],this.visible=1===T(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure()},draw:function(){var t,e,i=this,n=i.parentContainer,r=i.JSONData,o=(m=i.fcJSON).chart,s=i.conf,l=i.groupManager,c=i.datasetIndex,h=m.categories&&m.categories[0].category,d=r.data,u=h&&h.length,p=d&&d.length,f=m.labelStyle,m=i.visible,v=i.chart,b=v.paper,y=v.xAxis[0],x=i.yAxis,w=v.logic,_=v.elements;t=A(y.axisData.scroll,{}).enabled;w=w.isStacked;var C,S,k,D,E,P,I,M,O,F=v.layers,B=a.parseUnsafeString,N=a.getValidValue,j=a.Raphael,$=s.showTooltip,V=s.animation.duration,H=y.getAxisPosition(0),W=y.getAxisPosition(1)-H,z=s.definedGroupPadding,U=s.plotSpacePercent/200,G=l.getDataSetPosition(i),Y=(H=l.stackSumValue[i.positionIndex],l.manageClip),X=s.maxColWidth,J=s.transposeAnimDuration,K=s.transposeAnimation;W=(1-.01*z)*W||st(W*(1-2*U),1*X),W=T(G.columnWidth,W/1),z=G.xPosOffset||0,G=G.height,U=i.components.data;I={},O={},I={fontFamily:f.fontFamily,fontSize:f.fontSize,lineHeight:f.lineHeight,fontWeight:f.fontWeight,fontStyle:f.fontStyle,color:f.color};X=x.max;var Z=x.min,Q=(f=0<X&&0>Z,X=0>=X&&0>Z?X:0<X&&0<=Z?Z:0,Z=x.yBasePos=x.getAxisPosition(X),0),tt=s.showShadow,et=s.plotBorderThickness,it=(s=s.plotRadius,i.graphics.container),nt=i.graphics.trackerContainer,rt=i.graphics.dataLabelContainer,ot=i.graphics.shadowContainer;O=F.tracker;F=!0;var at=!1,lt=!1,ht=function(t){R.call(this,v,t)},dt=function(t,e){return function(i){t.attr(e),R.call(this,v,i,"DataPlotRollOver")}},ut=function(t,e){return function(i){t.attr(e),R.call(this,v,i,"DataPlotRollOut")}},pt=function(){!1!==i.visible||!1!==i._conatinerHidden&&void 0!==i._conatinerHidden||(it.hide(),nt.hide(),ot.hide(),rt&&rt.hide(),i._conatinerHidden=!0)},ft=v.getAnimationCompleteFn(),gt=function(){i.drawLabel(),l.drawSumValueFlag&&l.drawSumValue(),ft()};for(it||((it=i.graphics.container=b.group("columns",n)).attrs["clip-rect"]||t||it.attr({"clip-rect":_["clip-canvas"]}),m||it.hide()),nt||(nt=i.graphics.trackerContainer=b.group("col-hot",O),m||nt.hide()),v.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",I),ot||((ot=i.graphics.shadowContainer=b.group("shadow",n).toBack()).attrs["clip-rect"]||t||ot.attr({"clip-rect":_["clip-canvas"]}),m||ot.hide()),n=st(u,p),u=0;u<n;u++)t=d[u],C=0<=(I=(O=(p=U[u])&&p.config).setValue),null!==I&&(_=O.setLink,P=O.colorArr,p.graphics||(U[u].graphics={}),M=O.displayValue,C=C?O.previousPositiveY:O.previousNegativeY,E=N(B(A(t.tooltext,r.plottooltext,o.plottooltext))),w&&(C=i._parseValues(u,C,H[u],E),I=O.value),k=x.getAxisPosition(C||X),t=y.getAxisPosition(u)+z,0!==G?(C=x.getAxisPosition(I+(C||0)),D=ct(k-C)):(D=0,C=k),C=st(C,k
39),!f&&Y&&m&&0<et&&(D+=et,l.manageClip=!1),l.isCrisp?(t=(S=j.crispBound(t,C,W,D,et)).x,C=S.y,k=S.width,D=S.height):k=W,E=O.toolText+(E?"":O.toolTipValue),e=O.plotBorderDashStyle,M={index:u,link:_,value:I,displayValue:M,categoryLabel:h[u].label,toolText:E,id:"",datasetIndex:c,datasetName:r.seriesname,visible:m},I=O.setRolloutAttr,O=O.setRolloverAttr,V||(Z=C,Q=D),e={x:t,y:Z,width:k,height:Q||1,r:s,ishot:!$,fill:L(P[0]),stroke:L(P[1]),"stroke-width":et,"stroke-dasharray":e,"stroke-linejoin":"miter",visibility:m},p._xPos=t,p._yPos=C,p._height=D,p._width=k,p.graphics.element?(lt=at=!0,e={x:t,y:C,width:k,height:D||1},K?P=p.graphics.element.animate(e,J,"normal",F&&pt):(P=p.graphics.element.attr(e),F&&pt())):(P=p.graphics.element=b.rect(e,it),V?(P.animate({y:C,height:D||1},V,"normal",F&&gt),F=!1):lt=at=!0),P.shadow({opacity:tt},ot).data("BBox",S),(_||$)&&(D<q&&(C-=(q-D)/2,D=q),e={x:t,y:C,width:k,height:D,r:s,cursor:_?"pointer":"",stroke:g,"stroke-width":et,fill:g,ishot:!0,visibility:m},p.graphics.hotElement?p.graphics.hotElement.attr(e):_=p.graphics.hotElement=b.rect(e,nt)),((_=p.graphics.hotElement)||P).data("eventArgs",M).data("groupId",void 0).click(ht).hover(dt(P,O),ut(P,I)).tooltip(E));at&&i.drawLabel(),l.drawSumValueFlag&&lt&&l.drawSumValueFlag&&l.drawSumValue()},setContainer:function(t){if(!t)return!1;var e=this.graphics&&this.graphics.container;this.parentContainer=t,e&&this.parentContainer.appendChild(e)},dispose:function(){v(this)},show:function(){var t=this.graphics&&this.graphics.container,e=this.graphics&&this.graphics.trackerContainer,i=this.graphics&&this.graphics.dataLabelContainer,n=this.graphics&&this.graphics.shadowContainer,r=this.groupManager,o=this.index,a=this.positionIndex,s=this.stackIndex,l=this.chart.logic.msstackedcolumn2d,c=this.chart.logic.chartInstance.jsVars._reflowData,h=this.chart.logic.is3D,d=this.components.data,u=this.fcJSON.categories&&this.fcJSON.categories[0].category;u=st(this.JSONData.data&&this.JSONData.data.length,u&&u.length);if(this.visible=!0,this._conatinerHidden=!1,c=(c=c.dataObj||(c.dataObj={})).dataset||(c.dataset=[]),l?(s=(o=(o=c[a]||(c[a]={})).dataset||(o.dataset={}))[s]||(o[s]={})).visible=1:(o=c[o]||(c[o]={})).visible=1,h)for(t=0;t<u;t++)d[t].graphics.element&&d[t].graphics.element.attr({visibility:"visible"}),d[t].graphics.hotElement&&d[t].graphics.hotElement.attr({visibility:"visible"});else t.show(),e.show();n.show(),i&&i.show(),r.draw()},hide:function(){var t=this.groupManager,e=this.index,i=this.positionIndex,n=this.stackIndex,r=this.chart.logic.msstackedcolumn2d,o=(o=(o=this.chart.logic.chartInstance.jsVars._reflowData).dataObj||(o.dataObj={})).dataset||(o.dataset=[]);r?(n=(e=(e=o[i]||(o[i]={})).dataset||(e.dataset={}))[n]||(e[n]={})).visible=0:(e=o[e]||(o[e]={})).visible=0,this.visible=!1,t.draw()},drawLabel:function(){var t,e,i,n,r,o,a,s,l=this.chart,c=(h=this.fcJSON).categories&&h.categories[0].category,h=h.labelStyle,d=(u=l.logic).is3D,u=u.isStacked,p=this.JSONData.data,f=this.conf,g=c&&c.length,m=p&&p.length,v=(c=this.components.data,this.visible),b=l.paper,y=l.smartLabel,x=f.rotateValues,w=f.placeValuesInside,_=f.transposeAnimDuration,C=f.transposeAnimation,S=l.canvasTop,k=l.canvasHeight,A=(f=f.valuePadding+2,d?10:0),T=d?10:0,L=this.graphics.dataLabelContainer;l=l.layers.datalabels,k+=A;for(L||(L=this.graphics.dataLabelContainer=b.group("datalabel",l),v||L.hide()),l=st(m,g),y.setStyle(h),g=0;g<l;g++)m=(v=c[g]).graphics,r=v&&v.config,e=p[g],s=v._yPos,o=v._xPos,t=0>(i=r.setValue),n=v._height,a=v._width,v=r.displayValue,(r=r.showValue)&&null!==i&&(e._state&&e._state.labelWidth||(i=y.getOriSize(v),e._state=x?{labelWidth:i.height,labelHeight:i.width}:{labelWidth:i.width,labelHeight:i.height}),e=r=e._state.labelHeight+f,i=n,r=.5*r+f,o+=.5*a,a=t?S+k-(s+n):s-S,u?(n=st(S+k-.5*e,n=s+.5*n+(A||0)),n=lt(S+.5*e,n),o-=T):w?i>=e?(n=s+(t?n-r:r),d&&(o-=T,n+=A)):a>=e?(n=s+(t?n+r:-r),d&&t&&(o-=T,n+=A)):(n=s+(t?n-r:r),d&&(o-=T,n+=A)):a>=e?(n=s+(t?n+r:-r),d&&(t?(o-=T,n+=A):o-=T/2)):(n=s+(t?n-r:r),d&&(o-=T,n+=A)),t={text:v,class:"fusioncharts-label",x:o,y:n,fill:h.color,"font-size":h.fontSize,"font-weight":h.fontWeight,"font-style":h.fontStyle,"font-family":h.fontFamily,visibility:"visible"},m.label?(m.label.attr({text:v}),t={x:o,y:n},C?(t.transform=x&&"T0,0,R"+x,m.label.animate(t,_,"normal")):(m.label.attr(t),x&&m.label.attr("transform","T0,0,R"+x))):(m.label=b.text(t,L).attr({"line-height":h.lineHeight,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash]}),x&&m.label.attr("transform","T0,0,R"+x)))}
39,_parseValues:function(t,e,i,n){var r=this.conf;t=this.components.data[t].config;var o,a=r.showPercentValues,s=r.showPercentInToolTip,l=t.setValue,c=r.stack100Percent,h=this.chart.numberFormatter,d=t.setDisplayValue;r=r.parentYAxis;return o=(this.visible&&l||0)/i*100,l=h.percentValue(o),c&&(t.value=o,e=(e||0)/i*100),s&&(t.toolTipValue=l),a&&!d&&(t.displayValue=l),n&&(t.toolText=J(t.setTooltext,[14,24,25,112],{percentValue:l,sum:h.dataLabels(i,r),unformattedSum:i})),e}}]),FusionCharts.register("dataSetType",["Column3D",{draw:function(){var t,e,i,n,r,o,s,l,c,h,d,u,p,f,m,v,b,y,x,w,_,C,S,k,D,E,P,I,M,O,F,B,N,j,$,V,H,W=this,z=W.parentContainer,U=W.JSONData,G=W.fcJSON,Y=G.chart,X=W.conf,J=W.groupManager,K=W.datasetIndex,Z=G.categories&&G.categories[0].category,Q=U.data,tt=Z&&Z.length,et=Q&&Q.length,it=G.labelStyle,nt=W.chart,rt=nt.paper,ot=nt.xAxis[0],at=W.yAxis,lt=nt.logic.isStacked,ht=nt.layers,dt=a.parseUnsafeString,ut=a.getValidValue,pt=X.showTooltip,ft=X.animation.duration,gt=ot.getAxisPosition(0),mt=ot.getAxisPosition(1)-gt,vt=X.definedGroupPadding,bt=X.plotSpacePercent/200,yt=J.getDataSetPosition(W),xt=J.stackSumValue[W.positionIndex],wt=X.maxColWidth,_t=X.transposeAnimDuration,Ct=X.transposeAnimation,St=(1-.01*vt)*mt||st(mt*(1-2*bt),1*wt),kt=T(yt.columnWidth,St/1),At=yt.xPosOffset||0,Tt=yt.height,Lt=W.components.data,Dt={},Et={},Pt={fontFamily:it.fontFamily,fontSize:it.fontSize,lineHeight:it.lineHeight,fontWeight:it.fontWeight,fontStyle:it.fontStyle,color:it.color},It=at.max,Mt=at.min,Ot=0>=It&&0>Mt?It:0<It&&0<=Mt?Mt:0,Ft=at.yBasePos=at.getAxisPosition(Ot),Rt=0,Bt=X.showShadow,Nt=X.plotBorderThickness,jt=W.graphics.container,$t=W.graphics.dataLabelContainer,Vt=W.graphics.shadowContainer,Ht=nt.numberFormatter,Wt=ht.tracker,zt=X.use3DLighting,qt=!0,Ut=!1,Gt=!1,Yt=W.visible,Xt=function(t){R.call(this,nt,t)},Jt=function(t,e){return function(i){t.attr(e),R.call(this,nt,i,"DataPlotRollOver")}},Kt=function(t,e){return function(i){t.attr(e),R.call(this,nt,i,"DataPlotRollOut")}},Zt=function(){var e;if(!1===W.visible&&(!1===W._conatinerHidden||void 0===W._conatinerHidden)){for(e=W.components.data,n=0;n<t;n++)e[n].graphics.element&&e[n].graphics.element.attr({visibility:"hidden"}),e[n].graphics.hotElement&&e[n].graphics.hotElement.attr({visibility:"hidden"});Vt.hide(),$t&&$t.hide(),W._conatinerHidden=!0}},Qt=nt.getAnimationCompleteFn(),te=function(){W.drawLabel(),J.drawSumValueFlag&&J.drawSumValue(),Qt()};for(jt||(jt=W.graphics.container=nt.datasetLayers=nt.datasetLayers||rt.group("columns",z)),nt.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",Pt),Vt||(Vt=W.graphics.shadowContainer=rt.group("shadow",z).toBack()),t=st(tt,et)||0,k=jt.negative=jt.negative||rt.group("negative-values",jt),D=jt.column=jt.column||rt.group("positive-values",jt),E=Wt.negative=Wt.negative||rt.group("negative-values",Wt),P=Wt.column=Wt.column||rt.group("positive-values",Wt),!(I=jt.zeroPlane)&&0>Mt&&0<=It&&(I=jt.zeroPlane=rt.group("zero-plane",jt).insertBefore(D),nt.elements.zeroplane=rt.cubepath(nt.canvasLeft-10,Ft+10,nt.canvasWidth,1,10,10,I).attr({fill:[X.zeroPlaneColor,!zt],stroke:X.zeroPlaneBorderColor||"none","stroke-width":X.zeroPlaneShowBorder?1:0})),(M=k.data("categoryplots"))||(k.data("categoryplots",Array(t)),M=k.data("categoryplots")),(O=D.data("categoryplots"))||(D.data("categoryplots",Array(t)),O=D.data("categoryplots")),(F=E.data("categoryplots"))||(E.data("categoryplots",Array(t)),F=E.data("categoryplots")),(B=P.data("categoryplots"))||(P.data("categoryplots",Array(t)),B=P.data("categoryplots")),n=0;n<t;n+=1)M[n]=M[n]||rt.group(k),O[n]=O[n]||rt.group(D),F[n]=F[n]||rt.group(E),B[n]=B[n]||rt.group(P);for(n=0;n<t;n++)e=Q[n],m=(y=(h=Lt[n])&&h.config).setValue,f=y.setLink,_=y.colorArr,null!==m&&(h.graphics||(Lt[n].graphics={}),b=y.displayValue,x=0<=m?y.previousPositiveY:y.previousNegativeY,d=ut(dt(A(e.tooltext,U.plottooltext,Y.plottooltext))),lt&&(x=W._parseValues(n,x,xt[n],d),m=y.value),w=at.getAxisPosition(x||Ot),r=ot.getAxisPosition(n)+At,0!==Tt?(s=at.getAxisPosition(m+(x||0)),o=ct(w-s)):(o=0,s=w),s=st(s,w),l=kt,C=(N=0>Ht.getCleanValue(e.value))?M:O,S=N?F:B,c=y.toolText+(d?"":y.toolTipValue),v={index:n,link:f,value:m,displayValue:b,categoryLabel:Z[n].label,toolText:c,id:"",datasetIndex:K,datasetName:U.seriesname,visible:Yt},Dt=y.setRolloutAttr,Et=y.setRolloverAttr,ft||(Ft=s,Rt=o),j=r,$=s,V=l,H=o,r-=10,s+=10,h.graphics.element?(Gt=Ut=!0,u=h.graphics.element,Ct?u.animate({cubepath:[r,s,l,o,10,10]},_t,"normal",qt&&Zt):(u.attr({cubepath:[r,s,l,o,10,10],visibility:Yt?"visible":"hidden"}),qt&&Zt())):((u=h.graphics.element=rt.cubepath(C[n])).attr({cubepath:[r,ft?Ft+10:s,l,ft?0:Rt,10,10],fill:[L(_[0]),!zt],ishot:!0,stroke:X.showplotborder&&L(_[1]),"stroke-width":X.plotBorderThickness,"stroke-dasharray":X.plotBorderDashStyle,cursor:f?"pointer":"",visibility:Yt?"visible":"hidden"}),ft?(u.animate({cubepath:[r,s,l,o,10,10]},ft,"normal",qt&&te),qt=!1):Gt=Ut=!0),u.shadow({opacity:Bt},Vt).data("BBox",{height:Rt,width:l,x:r,y:s}),(f||pt)&&(o<q&&(s-=(q-o)/2,o=q),i={cubepath:[r,s,l,o,10,10],cursor:f?"pointer":"",stroke:Nt&&g||"NONE","stroke-width":Nt,fill:g,ishot:!0,visibility:"visible"},h.graphics.hotElement?h.graphics.hotElement.attr(i):(p=h.graphics.hotElement=rt.cubepath(S[n])).attr(i)),((p=h.graphics.hotElement)||u).data("eventArgs",v).data("groupId",void 0).click(Xt).hover(Jt(u,Et),Kt(u,Dt)).tooltip(c),(p||u)._.cubetop.data("eventArgs",v).click(Xt).hover(Jt(u,Et),Kt(u,Dt)).tooltip(c),(p||u)._.cubeside.data("eventArgs",v).click(Xt).hover(Jt(u,Et),Kt(u,Dt)).tooltip(c),lt&&N&&(u.toBack(),p&&p.toBack()),h._xPos=j,h._yPos=$,h._height=H,h._width=V);Ut&&W.drawLabel(),J.drawSumValueFlag&&Gt&&J.drawSumValueFlag&&J.drawSumValue()}},"Column"]),FusionCharts.register("dataSetType",["Bar2D",{draw:function(){var t,e,i=this,n=i.parentContainer,r=i.JSONData,o=(v=i.fcJSON).chart,s=i.conf,l=i.groupManager,c=i.datasetIndex,h=v.categories&&v.categories[0].category,d=r.data,u=h&&h.length,p=d&&d.length,f=v.labelStyle,m=i.chart,v=m.paper,b=m.xAxis[0],y=i.yAxis,x=m.logic,w=m.elements;t=A(b.axisData.scroll,{}).enabled;x=x.isStacked;var _,C,S,k,D,E,P,I,M,O=m.layers,F=a.parseUnsafeString,B=a.getValidValue,N=a.Raphael,j=s.showTooltip,$=s.animation.duration,V=b.getAxisPosition(0),H=b.getAxisPosition(1)-V,W=s.definedGroupPadding,z=s.plotSpacePercent/200,U=l.getDataSetPosition(i),G=(V=l.stackSumValue[i.positionIndex],l.manageClip),Y=s.maxColWidth,X=s.transposeAnimDuration,J=s.transposeAnimation;H=(1-.01*W)*H||st(H*(1-2*z),1*Y),H=T(U.columnWidth,H/1),W=U.xPosOffset||0,U=U.height,z=i.components.data;P={},M={},P={fontFamily:f.fontFamily,fontSize:f.fontSize,lineHeight:f.lineHeight,fontWeight:f.fontWeight,fontStyle:f.fontStyle,color:f.color};Y=y.max;var K=y.min,Z=(f=0<Y&&0>K,Y=0>=Y&&0>K?Y:0<Y&&0<=K?K:0,K=y.yBasePos=y.getAxisPosition(Y),0),Q=s.showShadow,tt=s.plotBorderThickness,et=(s=s.plotRadius,i.graphics.container),it=i.graphics.trackerContainer,nt=i.graphics.dataLabelContainer,rt=i.graphics.shadowContainer;M=O.tracker;O=i.visible;var ot=!0,at=!1,lt=!1,ct=function(t){R.call(this,m,t)},ht=function(t,e){return function(i){t.attr(e),R.call(this,m,i,"DataPlotRollOver")}},dt=function(t,e){return function(i){t.attr(e),R.call(this,m,i,"DataPlotRollOut")}},ut=function(){!1!==i.visible||!1!==i._conatinerHidden&&void 0!==i._conatinerHidden||(et.hide(),it.hide(),rt.hide(),nt&&nt.hide(),i._conatinerHidden=!0)},pt=m.getAnimationCompleteFn(),ft=function(){i.drawLabel(),l.drawSumValueFlag&&l.drawSumValue(),pt()};for(et||((et=i.graphics.container=v.group("bars",n)).attrs["clip-rect"]||t||et.attr({"clip-rect":w["clip-canvas"]}),O||et.hide()),it||(it=i.graphics.trackerContainer=v.group("bar-hot",M),O||it.hide()),m.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",P),rt||(rt=i.graphics.shadowContainer=v.group("shadow",n).toBack(),O||rt.hide()),n=st(u,p),u=0;u<n;u++)t=d[u],P=(M=(p=z[u])&&p.config).setValue,w=M.setLink,E=M.colorArr,null!==P&&(p.graphics||(z[u].graphics={}),I=M.displayvalue,_=0<=P?M.previousPositiveY:M.previousNegativeY,D=B(F(A(t.tooltext,r.plottooltext,o.plottooltext))),x&&(_=i._parseValues(u,_,V[u],D),P=M.value),k=y.getAxisPosition(_||Y),t=b.getAxisPosition(u)+W,0!==U?(C=y.getAxisPosition(P+(_||0)),_=Math.abs(k-C)):(_=0,C=k),C=Math.min(C,k),!f&&G&&O&&0<tt&&(_+=tt,C-=tt,l.manageClip=!1),l.isCrisp?(t=(S=N.crispBound(t,C,H,_,tt)).x,C=S.y,k=S.width,_=S.height):k=H,D=M.toolText+(D?"":M.toolTipValue),e=M.plotBorderDashStyle,I={index:u,link:w,value:P,displayValue:I,categoryLabel:h[u].label,toolText:D,id:"",datasetIndex:c,datasetName:r.seriesname,visible:O},P=M.setRolloutAttr,M=M.setRolloverAttr,$||(K=C,Z=_),e={x:K,y:t,width:Z||1,height:k,r:s,ishot:!j,fill:L(E[0]),stroke:L(E[1]),"stroke-width":tt,"stroke-dasharray":e,"stroke-linejoin":"miter",visibility:"visible"},p._xPos=C,p._yPos=t,p._height=k,p._width=_,p.graphics.element?(at=lt=!0,E=p.graphics.element,e={x:C,y:t,width:_||1,height:k},J?E.animate(e,X,"normal",ot&&ut):(E.attr(e),ot&&ut())):(E=p.graphics.element=v.rect(e,et),$?(E.animate({x:C,width:_||1},$,"normal",ot&&ft),ot=!1):at=lt=!0),E.shadow({opacity:Q},rt).data("BBox",S),(w||j)&&(_<q&&(C-=(q-_)/2,_=q),e={x:C,y:t,width:_,height:k,r:s,cursor:w?"pointer":"",stroke:g,"stroke-width":tt,fill:g,ishot:!0,visibility:"visible"},p.graphics.hotElement?p.graphics.hotElement.attr(e):w=p.graphics.hotElement=v.rect(e,it)),((w=p.graphics.hotElement)||E).data("eventArgs",I).data("groupId",void 0).click(ct).hover(ht(E,M),dt(E,P)).tooltip(D));at&&i.drawLabel(),l.drawSumValueFlag&&lt&&l.drawSumValueFlag&&l.drawSumValue()},drawLabel:function(){var t,e,i=(L=this.chart).layers,n=(k=this.fcJSON).categories&&k.categories[0].category,r=k.labelStyle,o=(a=L.logic).is3D,a=a.isStacked,s=this.JSONData.data,l=n&&n.length,c=s.length,h=(n=this.components.data,L.paper),d=(u=L.options.chart).xDepth||0,u=u.yDepth||
390,f=L.numberFormatter;t="";var g,m,v,b,y,x,w,_,C,S=this.conf,k=T(k.chart.placevaluesinside,0),A=L.canvasWidth,L=L.canvasLeft,D=S.valuePadding+2,E=S.transposeAnimDuration,P=(S=S.transposeAnimation,this.graphics.dataLabelContainer);for(t=this.visible,i=i.datalabels,P||(P=this.graphics.dataLabelContainer=h.group("datalabel"),t||P.hide()),i&&i.appendChild(P),i=l<c?l:c,l=0;l<i;l++)C=(m=(t=n[l]).graphics).label,g=s[l],b=t._yPos,y=t._xPos,_=t.config,e=f.getCleanValue(g.value),c=0>T(e),v=t._height,x=t._width,(t=_.showValue)&&(w=a?"middle":c?k?"start":"end":k?"end":"start",t=_.displayValue,_.showValue&&Q(t)&&t!==p&&null!==e&&(C||(e={text:t,class:"fusioncharts-label",x:0,y:0,fill:r.color,"text-bound":[r.backgroundColor,r.borderColor,r.borderThickness,r.borderPadding,r.borderRadius,r.borderDash],"font-size":r.fontSize,"font-weight":r.fontWeight,"font-style":r.fontStyle,"font-family":r.fontFamily,"line-height":r.lineHeight,visibility:"visible"},C=m.label=h.text(e,P)),g._state&&g._state.labelWidth||(m=C.getBBox(),g._state={labelWidth:m.width,labelHeight:m.height}),g=g._state.labelWidth,g+=D,m=D,v=b+.5*v,b=y+(c?0:x),e=c?y-L:L+A-(y+x),a?(b=lt(L+.5*g,b+=.5*(c?x:-x)),b=st(L+A-.5*g,b),b-=o?d:0,v+=o?u:0):k?x>=g?(b+=c?m:-m,o&&(v+=u,b-=d)):g<e?(b+=c?-m:m,w=c?"end":"start",o&&c&&(b-=d)):(c?(b=y+x+lt(g-y-x+L,0)-m,w="end"):(b=y-lt(g-(L+A-y),0)+m,w="start"),o&&(b-=d,v+=u)):e>=g?(b+=c?-m:m,o&&c&&(b-=d,v+=d)):(b+=c?m+g:-(m+g),o&&(b-=d,v+=u)),(b>L+A||b<L)&&(b=L+4,w="start"),e={text:t,x:b,y:v,"text-anchor":w},0===C.attrs.x&&0===C.attrs.y?C.attr(e):S?(C.attr({text:t}),C.animate(e,E,"normal")):C.attr(e)))}},"Column"]),FusionCharts.register("dataSetType",["Bar3D",{draw:function(){var t,e,i,n,r,o,s,l,c,h,d,u,p,f,m,v,b,y,x,w,_,C,S,k,D,E,P,I,M,O,F,B,N,j,$,V,H,W,z=this,U=z.parentContainer,G=z.JSONData,Y=z.fcJSON,X=Y.chart,J=z.conf,K=z.groupManager,Z=z.datasetIndex,Q=Y.categories&&Y.categories[0].category,tt=G.data,et=Q&&Q.length,it=tt&&tt.length,nt=Y.labelStyle,rt=z.chart,ot=rt.paper,at=rt.xAxis[0],lt=z.yAxis,ct=rt.logic.isStacked,ht=rt.layers,dt=a.parseUnsafeString,ut=a.getValidValue,pt=J.showTooltip,ft=J.animation.duration,gt=at.getAxisPosition(0),mt=at.getAxisPosition(1)-gt,vt=J.definedGroupPadding,bt=J.plotSpacePercent/200,yt=K.getDataSetPosition(z),xt=K.stackSumValue[z.positionIndex],wt=J.maxColWidth,_t=J.transposeAnimDuration,Ct=J.transposeAnimation,St=(1-.01*vt)*mt||st(mt*(1-2*bt),1*wt),kt=T(yt.columnWidth,St/1),At=yt.xPosOffset||0,Tt=yt.height,Lt=z.components.data,Dt=rt.numberFormatter,Et={},Pt={},It={fontFamily:nt.fontFamily,fontSize:nt.fontSize,lineHeight:nt.lineHeight,fontWeight:nt.fontWeight,fontStyle:nt.fontStyle,color:nt.color},Mt=lt.max,Ot=lt.min,Ft=0>=Mt&&0>Ot?Mt:0<Mt&&0<=Ot?Ot:0,Rt=lt.yBasePos=lt.getAxisPosition(Ft),Bt=0,Nt=J.showShadow,jt=J.plotBorderThickness,$t=z.graphics.container,Vt=z.graphics.dataLabelContainer,Ht=z.graphics.shadowContainer,Wt=ht.tracker,zt=J.use3DLighting,qt=!0,Ut=!1,Gt=!1,Yt=z.visible,Xt=function(t){R.call(this,rt,t)},Jt=function(t,e){return function(i){t.attr(e),R.call(this,rt,i,"DataPlotRollOver")}},Kt=function(t,e){return function(i){t.attr(e),R.call(this,rt,i,"DataPlotRollOut")}},Zt=function(){var e;if(!1===z.visible&&(!1===z._conatinerHidden||void 0===z._conatinerHidden)){for(e=z.components.data,n=0;n<t;n++)e[n].graphics.element&&e[n].graphics.element.attr({visibility:"hidden"}),e[n].graphics.hotElement&&e[n].graphics.hotElement.attr({visibility:"hidden"});Ht.hide(),Vt&&Vt.hide(),z._conatinerHidden=!0}},Qt=rt.getAnimationCompleteFn(),te=function(){var e=z.components.data;for(n=0;n<t;n++)e[n].graphics.element&&e[n].graphics.element.attr({fill:[L(_[0]),!zt]});z.drawLabel(),K.drawSumValueFlag&&K.drawSumValue(),Qt()};for($t||($t=z.graphics.container=rt.datasetLayers=rt.datasetLayers||ot.group("bars",U)),rt.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",It),Ht||(Ht=z.graphics.shadowContainer=ot.group("shadow",U).toBack()),t=st(et,it)||0,k=$t.negative=$t.negative||ot.group("negative-values",$t),D=$t.column=$t.column||ot.group("positive-values",$t),E=Wt.negative=Wt.negative||ot.group("negative-values",Wt),P=Wt.column=Wt.column||ot.group("positive-values",Wt),!(I=$t.zeroPlane)&&0>Ot&&0<=Mt&&(I=$t.zeroPlane=ot.group("zero-plane",$t).insertBefore(D
39),rt.elements.zeroplane=ot.cubepath(Rt-5,rt.canvasTop+5,1,rt.canvasHeight,5,5,I).attr({fill:[J.zeroPlaneColor,!zt],stroke:J.zeroPlaneBorderColor||"none","stroke-width":J.zeroPlaneShowBorder?1:0})),(M=k.data("categoryplots"))||(k.data("categoryplots",Array(t)),M=k.data("categoryplots")),(O=D.data("categoryplots"))||(D.data("categoryplots",Array(t)),O=D.data("categoryplots")),(F=E.data("categoryplots"))||(E.data("categoryplots",Array(t)),F=E.data("categoryplots")),(B=P.data("categoryplots"))||(P.data("categoryplots",Array(t)),B=P.data("categoryplots")),n=0;n<t;n+=1)M[n]=M[n]||ot.group(k),O[n]=O[n]||ot.group(D),F[n]=F[n]||ot.group(E),B[n]=B[n]||ot.group(P);for(n=0,N=t-1;n<t;n++,N--)e=tt[n],m=(y=(h=Lt[n])&&h.config).setValue,f=y.setLink,_=y.colorArr,null!==m&&(h.graphics||(Lt[n].graphics={}),b=y.displayvalue,x=0<=m?y.previousPositiveY:y.previousNegativeY,d=ut(dt(A(e.tooltext,G.plottooltext,X.plottooltext))),ct&&(x=z._parseValues(n,x,xt[n],d),m=y.value),w=lt.getAxisPosition(x||Ft),r=at.getAxisPosition(n)+At,0!==Tt?(s=lt.getAxisPosition(m+(x||0)),o=Math.abs(w-s)):(o=0,s=w),s=Math.min(s,w),l=kt,C=(j=0>Dt.getCleanValue(e.value))?M:O,S=j?F:B,c=y.toolText+(d?"":y.toolTipValue),v={index:n,link:f,value:m,displayValue:b,categoryLabel:Q[n].label,toolText:c,id:"",datasetIndex:Z,datasetName:G.seriesname,visible:Yt},Et=y.setRolloutAttr,Pt=y.setRolloverAttr,ft||(Rt=s,Bt=o),$=r,V=s,H=l,W=o,r+=5,s-=5,h.graphics.element?(Gt=Ut=!0,Ct?u=h.graphics.element.animate({cubepath:[s,r,o,l,5,5]},_t,"normal",qt&&Zt):(u=h.graphics.element.attr({cubepath:[s,r,o,l,5,5],visibility:Yt?"visible":"hidden"}),qt&&Zt())):((u=h.graphics.element=ot.cubepath(C[N])).attr({cubepath:[ft?Rt-5:s,r,ft?0:Bt,l,5,5],fill:[L(_[0]),!zt],ishot:!0,stroke:J.showplotborder&&L(_[1]),"stroke-width":J.plotBorderThickness,"stroke-dasharray":J.plotBorderDashStyle,cursor:f?"pointer":"",visibility:Yt?"visible":"hidden"}),ft?(u.animate({cubepath:[s,r,o,l,5,5]},ft,"normal",qt&&te),qt=!1):Gt=Ut=!0),u.shadow({opacity:Nt},Ht).data("BBox",{height:l,width:Bt,x:s,y:r}),(f||pt)&&(o<q&&(s-=(q-o)/2,o=q),i={cubepath:[s,r,o,l,5,5],cursor:f?"pointer":"",stroke:jt&&g||"NONE","stroke-width":jt,fill:g,ishot:!0,visibility:Yt?"visible":"hidden"},h.graphics.hotElement?h.graphics.hotElement.attr(i):(p=h.graphics.hotElement=ot.cubepath(S[N])).attr(i)),((p=h.graphics.hotElement)||u).data("eventArgs",v).data("groupId",void 0).click(Xt).hover(Jt(u,Pt),Kt(u,Et)).tooltip(c),(p||u)._.cubetop.data("eventArgs",v).click(Xt).hover(Jt(u,Pt),Kt(u,Et)).tooltip(c),(p||u)._.cubeside.data("eventArgs",v).click(Xt).hover(Jt(u,Pt),Kt(u,Et)).tooltip(c),ct&&!j||(u.toBack(),p&&p.toBack()),h._xPos=V,h._yPos=$,h._height=H,h._width=W);Ut&&z.drawLabel(),K.drawSumValueFlag&&Gt&&K.drawSumValueFlag&&K.drawSumValue()}},"Bar2D"]),FusionCharts.register("groupManagerType",["ColumnGroupManager",{init:function(t){this.chart=t,this.positionStackArr=[],this.stackSumValue=[],this.sumValues=[],this.stackConfig=[],this.drawSumValueFlag=!0,this.graphics={sumLabels:[],sumLabelContainer:[]}},addDataSet:function(t,e,i){var n=this.positionStackArr[e];t.groupManager=this,t.positionIndex=e,t.stackIndex=i,n||(n=this.positionStackArr[e]=[]),n[i]={dataSet:t}},removeDataSet:function(){},draw:function(){var t,e,i,n=this.positionStackArr,r=n.length;for(this.preDrawCalculate(),this.drawSumValueFlag=!0,t=0;t<r;t++)for(i=(e=n[t]).length,this.manageClip=!0,e=0;e<i;e++)n[t][e].dataSet.draw()},getDataSetPosition:function(t){var e,i=this.numVisiblePositions,n=this.stackConfig[t.positionIndex||0];return(!t.visible&&n.visible||0===i)&&(e=0),{xPosOffset:n.xPosOffset,columnWidth:n.columnWidth,height:e}},preDrawCalculate:function(){var t,e,i,r,o,a,s,l,c,h,d,u,p,f,g,m,v=(D=this.chart).logic,b=this.stackConfig,y=this.stackSumValue,x=this.positionStackArr,w=this.sumValues,_=!1,C=v.isStacked,S=x.length,k=D.numberFormatter,A=v.isBar,L=v.dataObj.chart,D=D.xAxis[0],E=T(A?L.overlapbars:L.overlapcolumns,v.is3D?0:1),P=(v=D.getAxisPosition(0),D.getAxisPosition(1)-v),I=T(L.plotspacepercent),M=T(L.plotpaddingpercent),O=(v=T(L.plotspacepercent,20)%100)/200,F=!0;for(s=this.numVisiblePositions=0;s<S;s++){for(l=x[s].length,(g=b[s]||(b[s]={})).visible=!1,g.previousVisibleCount=this.numVisiblePositions,m=0;m<l;m++)if((r=x[s][m])&&!1!==r.dataSet.visible&&(g.visible=!0),C){for(a=x[s][m+1],c=m,_=!1;0<=c&&!_;)_=(t=x[s][--c])&&t.dataSet.visible;
39for(o=r&&r.dataSet.JSONData.data,f=a&&a.dataSet.JSONData.data,h=r.dataSet.components.data,d=t&&t.dataSet.components.data,h||(h=r.dataSet.components.data=[]),u=o&&o.length,a=0;a<u;a++){if((p=h[a])||(p=h[a]={config:{}}),!(e=d&&d[a]))for(;0<=c&&!e;)(_=(t=x[s][--c])&&t.dataSet.visible)&&(e=(d=t&&t.dataSet.components.data)&&d[a]);(p=p.config).value=_=k.getCleanValue(o[a].value),e=((i=e&&e.config)&&i.previousPositiveY||0)+(i&&(0<i.value?i.value:0)||0),i=(i&&i.previousNegativeY||0)+(i&&(0>i.value?i.value:0)||0),p.previousPositiveY=e,p.previousNegativeY=i,f&&f[a]||(y[s]||(y[s]=[]),y[s][a]=e+(r.dataSet.visible&&ct(_))+ct(i),!y[s][a]&&(y[s][a]=1),w&&(w[s]||(w[s]=[]),w[s][a]={},w[s][a].positive=e+(0<=_?r.dataSet.visible&&_:0),w[s][a].negative=i+(0>_?r.dataSet.visible&&_:0)))}}g.visible&&(this.numVisiblePositions+=1)}for(b=this.numVisiblePositions,s=T(A?L.maxbarheight:L.maxcolwidth,50),L=(A=(1-.01*I)*P||st(P*(1-2*O),s*(b||1)))/2,E=st((y=0===b?A:A/b)-1,1<b?E||M!==n?0<M?y*M/100:0:4:0),s=0;s<S;s++)M=(x=this.stackConfig[s]).previousVisibleCount,x.xPosOffset=M*y-L+E/2,y-=E,x.columnWidth=x.visible||0===b?y:0,y+=E;S=D.getAxisPosition(0)-L,4>D.getAxisPosition(1)-L-(S+A)&&(F=!1),"0"==v&&(F=!0),this.isCrisp=F},drawSumValue:function(){var t,e,i,n=this.chart,r=n.paper,o=n.logic,a=this.positionStackArr,s=this.stackConfig,l=n.layers.datalabels,c=n.canvasTop,h=n.canvasBottom,d=n.canvasLeft,u=n.canvasWidth,p=o.isBar,f=(g=n.options.chart).xDepth,g=g.yDepth,m=o.is3D,v=n.xAxis[0],b=n.yAxis[0];t=o.isStacked;var y,x,w,_,C,S,k,A,L,D,E,P,I,M,O,F,R,B,N,j=n.numberFormatter,$=!1;if(y=T(a[0][0].dataSet.fcJSON.chart.showsum,0),this.drawSumValueFlag=!1,y&&t)for(k=0;k<a.length;k++){for((t=this.graphics.sumLabelContainer[k])||(t=this.graphics.sumLabelContainer[k]=this.graphics.sumLabelContainer[k]||r.group("sumlabels",l)),B=(A=a[k][0].dataSet).conf.transposeAnimDuration,N=A.conf.transposeAnimation,y=this.sumValues[k],e=A&&A.fcJSON.categories&&A.fcJSON.categories[0].category&&A.fcJSON.categories[0].category.length,P=st(e,y&&y.length),L=this.graphics.sumLabels[k]=this.graphics.sumLabels[k]||[],I=0,s[k].visible||($=!0),E=0;E<P;E++)i=T(o.stack100percent,A.fcJSON.chart.stack100percent,0),x=A.fcJSON.labelStyle,e=T(A.fcJSON.chart.rotatevalues,0)?270:0,t.show(),w=(O=y[E].positive)+(F=y[E].negative),C=j.dataLabels(w,0),p?(R=ct(F)>O?F:O,_=v.getAxisPosition(E)+s[k].xPosOffset,D=s[k].columnWidth,
40w=b.getAxisPosition(i?100:R),_+=.5*D,O===F&&(C=""),e=0):(M=ct(F)>O?F:O,w=v.getAxisPosition(E)+s[k].xPosOffset,D=s[k].columnWidth,_=b.getAxisPosition(i?100:M),w+=.5*D,O===F&&(C="")),(C||""===C)&&(""===C?O=F="rgba(255,255,255,0)":(O=x.backgroundColor,F=x.borderColor),x={text:C,class:"fusioncharts-label",fill:x.color,"text-bound":[O,F,x.borderThickness,x.borderPadding,x.borderRadius,x.borderDash],"font-weight":x.fontWeight,"font-style":x.fontStyle,"font-family":x.fontFamily,"font-size":x.fontSize,"line-height":x.lineHeight,visibility:"visible"},L[I]?L[I].attr(x):L[I]=r.text(x,t),L[I]._state&&L[I]._state.labelWidth||(x=L[I].getBBox(),L[I]._state=e?{labelWidth:x.height,labelHeight:x.width}:{labelWidth:x.width,labelHeight:x.height}),p?(x=(x=C=L[I]._state.labelWidth)/2+2,i?(w=(i=n.chartWidth-n.canvasRight)<=S?w+x:n.canvasRight,L[I].attr({"text-anchor":"start"})):0<=R?(i=d+u-w)<C?(w=w-x+i,m&&(w-=f,_+=g)):w+=x:(i=w-d)<C?(w=w+x-i,w-=m?f:0,_+=m?g:0):(w-=x,m&&(w-=f,_+=g))):(x=(x=S=L[I]._state.labelHeight)/2+2,i?_=c<=S?x:c-x:(0<=M&&(_=(i=_-c)<S?_+x-i:_-x),0>M&&(_=(i=h-_)<S?_-x:_+x,m&&(w-=f,_+=g)))),0===L[I].attrs.x&&0===L[I].attrs.y?(L[I].attr({x:w,y:_}),e&&L[I].attr("transform","T0,0,R"+e)):(x={x:w,y:_},N?(x.transform=e&&"T0,0,R"+e,L[I].animate(x,B,"normal")):(L[I].attr(x),e&&L[I].attr("transform","T0,0,R"+e))),I++);$&&(t.hide(),$=!1)}},dispose:function(){v(this)}}]),l("renderer.newareacartesian",{drawGraph:function(){var t,e,i,n=this,r=n.paper,o=n.plots=n.elements.plots,a=n.logic,s=n.layers,l=n.options,c=n.elements,h=l.chart,d=(l=n.datasets=l.series,X(h.rendererId,h.defaultSeriesType)),u=s.background,p=(u=s.dataset=s.dataset||r.group("dataset").insertAfter(u),FusionCharts.register("dataSetType",["area"])),f=l.length;i=FusionCharts.register("groupManagerType",["AreagroupManager"]),e=(g=a.chartInstance.jsVars._reflowData).dataObj||(g.dataObj={});var g=function(t,e){return function(i){var n,r=o[t],s={hcJSON:{series:[]}},l=s.hcJSON.series[t]||(s.hcJSON.series[t]={}),c=a.chartInstance.jsVars._reflowData;n=(i=X(i,!r.visible))?"visible":"hidden",H(r.graphics,(function(t){!0!==t.data("alwaysInvisible")&&t.attr("visibility",n)})),r.visible=i,e.visible=i,l.visible=i,_(c,s,!0)}},m=function(t){return function(e){var i=o[t],n=(a=(d=i.legend)&&d.elements)&&a.legendItemText,r=a&&a.legendItemSymbol,a=a&&a.legendItemLine,s=d&&d.hiddenColor,l=d&&d.itemLineColor,c=d&&d.itemTextColor,h=d&&d.symbolColor,d=d&&d.symbolStroke;
40A(e,!i.visible)?(r&&r.attr({fill:h||l,stroke:d}),n&&n.attr({fill:c}),a&&a.attr({stroke:l})):(r&&r.attr({fill:s,stroke:s}),n&&n.attr({fill:s}),a&&a.attr({stroke:s})),o[t].visible?o[t].hide():o[t].show()}},v=function(t){return function(){return n.getEventArgs&&n.getEventArgs(o[t])}},b=function(t,e,i){return function(r,a){e.call(n,o[t],i,{numUpdate:r,hasAxisChanged:a})}};for((e.chart||(e.chart={})).animation=0,s.tracker=s.tracker||r.group("hot").insertAfter(u),n.drawCanvas(),n.drawAxes(),o||(o=n.plots=n.plots||[],c.plots=o),n.parseCategory(),(c=new i(n)).init(n),s=0;s<f;s++)t=(r=l[s]||{}).updatePlot="updatePlot"+U(A(r.type,r.plotType,d)),i=n[t],t=r.drawPlot="drawPlot"+U(A(r.type,r.plotType,d)),e=n[t]||n.drawPlot,(t=o[s])||(o.push(t=new p),t.init(n,s),t.index=s,t.items=[],t.data=r.data||[],t.name=r.name,t.userID=r.userID,t.setVisible=g(s,r),t.legendClick=m(s),t.getEventArgs=v(s),t.realtimeUpdate=b(s,i||e,r),r.plot=t,r.legendClick=t.legendClick,r.getEventArgs=t.getEventArgs,r.setVisible=t.setVisible),s&&l[s-1]&&(r.previousData=l[s-1].data),t.setContainer(u),c.addDataSet(t,s);t.JSONData&&c.draw(),h.hasScroll&&(n.drawScroller(),n.finalizeScrollPlots())}},l["renderer.newcartesian"]),FusionCharts.register("groupManagerType",["AreagroupManager",{addDataSet:function(t,e){var i=this.positionStackArr[0];t.groupManager=this,t.stackIndex=e,i||(i=this.positionStackArr[0]=[]),i[e]={dataSet:t}},removeDataSet:function(){},draw:function(){var t,e=this.chart,i=this.positionStackArr,n=i[0].length;for(t=e.layers.dataset,e=e.paper,t.area=t.area||e.group("area",t),t.areaConnector=t.areaConnector||e.group("area-connector",t),this.preDrawCalculate(),t=0;t<n;t++)(e=i[0][t].dataSet).JSONData&&e.JSONData.data&&e.draw()}},"ColumnGroupManager"]),FusionCharts.register("dataSetType",["area",{configure:function(){var t,e,i,r,o=this.chart,s=a.parseUnsafeString,l=this.conf,c=this.JSONData,h=(m=this.fcJSON).chart,d=o.logic.colorManager,u=this.index||this.datasetIndex,p=this.plotType,f=T(c.showplotborder,h.showplotborder||1),g=d.getPlotColor(u),m=(u=c.data,m.categories&&m.categories[0].category),v=st(m&&m.length,u&&u.length),b=o.logic.areaAlpha,y=o.numberFormatter,x=o.logic,w=x.use3dlineshift,_=(o=s(h.yaxisname),s(h.xaxisname)),C=A(h.tooltipsepchar,", "),S=T(c.dashed,h.linedashed);t=x.isStacked,e=this.isLineSet;var k=(k=(k=x.chartInstance.jsVars._reflowData).dataObj||(k.dataObj={})).chart||(k.chart={});for(l.use3dlineshift=void 0!==w?T(h.use3dlineshift,w):1,l.plotColor=g,x=T(x.defaultPlotShadow,d.getColor("showShadow")),l.drawFullAreaBorder=T(h.drawfullareaborder,1),l.parentYAxis=r=e||"s"===A(c.parentyaxis&&c.parentyaxis.toLowerCase(),"p")?1:0,l.connectNullData=T(h.connectnulldata,0),l.enableAnimation=e=T(h.animation,h.defaultanimation,1),l.animation=!!e&&{duration:1e3*T(h.animationduration,1)},k.transposeAnimation=l.transposeanimation=T(h.transposeanimation,k.transposeAnimation,e),l.transposeanimduration=1e3*T(h.transposeanimduration,.2),l.showValues=T(c.showvalues,h.showvalues,1),l.valuePadding=T(h.valuepadding,2),l.valuePosition=A(c.valueposition,h.valueposition,"auto"),l.stack100Percent=e=T(h.stack100percent,0),l.showPercentValues=T(h.showpercentvalues,t&&e?1:0),l.showPercentInToolTip=T(h.showpercentintooltip,t&&e?1:0),l.showTooltip=T(h.showtooltip,1),l.seriesNameInTooltip=T(h.seriesnameintooltip,1),l.plotFillColor=A(c.color,h.plotfillcolor,g),l.plotFillAngle=A(h.plotfillangle,270),l.plotFillAlpha=A(c.alpha,h.plotfillalpha,b,"70"),g=T(h.useplotgradientcolor,1),l.plotGradientColor=0!==g?a.getDefinedColor(h.plotgradientcolor,d.getColor("plotGradientColor")):"",l.fillColor={color:l.plotFillColor+(l.plotGradientColor?","+l.plotGradientColor:""),alpha:l.plotFillAlpha,angle:l.plotFillAngle},l.plotBorderAlpha=f?A(c.plotborderalpha,h.plotborderalpha,c.alpha,"95"):0,l.plotBorderColor=A(c.plotbordercolor,h.plotbordercolor,h.areabordercolor,"666666"),l.dashed=f=T(c.dashed,h.plotborderdashed),l.plotBorderDashLen=A(c.plotborderdashlen,h.plotborderdashlen,5),l.plotBorderDashGap=A(c.plotborderdashgap,h.plotborderdashgap,4),l.plotBorderThickness=T(c.plotborderthickness,h.plotborderthickness,1),l.plotBorderDashStyle=f?a.getDashStyle(l.plotBorderDashLen,l.plotBorderDashGap,l.plotBorderThickness):"none",l.showH
40overEffect=T(h.plothovereffect,h.anchorhovereffect,h.showhovereffect,n),l.rotateValues=T(h.rotatevalues)?270:0,l.lineThickness=T(c.linethickness,h.linethickness,2),l.lineDashLen=T(c.linedashlen,h.linedashlen,5),l.lineDashGap=T(c.linedashgap,h.linedashgap,4),l.lineAlpha=T(c.alpha,h.linealpha,P),l.lineColor=A(c.color,h.linecolor,l.plotColor),f=a.getDashStyle(l.lineDashLen,l.lineDashGap,l.lineThickness),l.lineDashStyle=S?f:"none",l.shadow={opacity:T(h.showshadow,x)?"line"===p?l.lineAlpha/100:l.plotBorderAlpha/100:0},l.drawAnchors=T(c.drawanchors,c.showanchors,h.drawanchors,h.showanchors),l.anchorBgColor=A(c.anchorbgcolor,h.anchorbgcolor,d.getColor("anchorBgColor")),l.anchorBorderColor=A(c.color,c.anchorbordercolor,h.anchorbordercolor,l.plotColor),l.anchorRadius=T(c.anchorradius,h.anchorradius,3),l.anchorAlpha=A(c.alpha,c.anchoralpha,h.anchoralpha),l.anchorBgAlpha=A(c.anchorbgalpha,h.anchorbgalpha,100),l.anchorBorderThickness=A(c.anchorborderthickness,h.anchorborderthickness,1),l.anchorSides=A(c.anchorsides,h.anchorsides,0),l.anchorImageUrl=A(c.anchorimageurl,h.anchorimageurl),l.anchorImageAlpha=T(c.anchorimagealpha,h.anchorimagealpha,100),l.anchorImageScale=T(c.anchorimagescale,h.anchorimagescale,100),l.anchorImagePadding=T(c.anchorimagepadding,h.anchorimagepadding,1),l.anchorStartAngle=T(c.anchorstartangle,h.anchorstartangle,90),l.anchorShadow=T(c.anchorshadow,h.anchorshadow,0),p=this.components.data=[],b=0;b<v;b++)t=u[b],(d=p[b]={}).config={},(g=d.config).setValue=e=y.getCleanValue(t.value),g.setLink=A(t.link),g.anchorProps=this._parseAnchorProperties(b),g.label=a.getValidValue(s(A(m[b].tooltext,m[b].label))),g.showValue=T(t.showvalue,l.showValues),g.dashed=T(t.dashed,S),g.color=A(t.color,l.lineColor),g.alpha=A(t.alpha,l.lineAlpha),g.dashStyle=g.dashed?f:"none",g.toolTipValue=x=y.dataLabels(e,r),g.setDisplayValue=w=s(t.displayvalue),g.displayValue=A(w,x),g.formatedVal=A(t.toolTipValue,y.dataLabels(e,r)),g.setTooltext=a.getValidValue(s(A(t.tooltext,c.plottooltext,h.plottooltext))),l.showTooltip?void 0!==g.setTooltext?(x=[1,2,3,4,5,6,7],e={yaxisName:o,xaxisName:_,formattedValue:void 0,label:g.label},t=a.parseTooltext(g.setTooltext,x,e,t,h,c)):(l.seriesNameInTooltip&&(i=a.getFirstValue(c&&c.seriesname)),t=i?i+C:"",t+=g.label?g.label+C:""):t=!1,g.toolText=t,g.setTooltext=t,d?d.graphics||(p[b].graphics={}):d=p[b]={graphics:{}},g.hoverEffects=this._parseHoverEffectOptions(d),g.anchorProps.isAnchorHoverRadius=g.hoverEffects.anchorRadius},init:function(t,e){var i,n=(this.fcJSON=t.logic.dataObj).dataset;if(!n||!n[e])return!1;i=t.logic.isDual?t.yAxis[this.yAxis||0]:t.yAxis[0],this.chart=t,this.datasetIndex=e,this.yAxis=i,this.components={},this.conf={},this.graphics={},this.plotType="area",this.JSONData=n[e],this.visible=1===T(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure()},draw:function(){var t,e,i,n,r,o,s,l,c,h,u,p,f=this,m=this.chart.logic,v=f.JSONData,b=(P=f.fcJSON).chart,y=f.conf,x=m.isStacked,w=f.groupManager.stackSumValue[0],_=f.datasetIndex,C=P.categories&&P.categories[0].category,S=v.data,k=C&&C.length,T=S.length,D=P.labelStyle,E=f.chart,P=E.paper,I=E.xAxis[0],M=f.yAxis,O=y.animation.duration,F=E.layers,B=y.showTooltip,N=f.components.data,j=y.connectNullData;t={fontFamily:D.fontFamily,fontSize:D.fontSize,lineHeight:D.lineHeight,fontWeight:D.fontWeight,fontStyle:D.fontStyle,color:D.color};D=F.dataset;var $,V,H=M.max,W=M.min,z=0>=H&&0>W?H:0<H&&0<=W?W:0,q=(H=y.plotBorderColor,W=y.plotBorderAlpha,y.plotBorderDashStyle),U=y.plotBorderThickness,G=f.graphics.container,X=f.graphics.trackerContainer;n=F.tracker;var J,K,Z=[],Q=[],tt=a.parseUnsafeString,et=!1,it=[],nt=[],rt=y.fillColor,ot=m.is3D,at=(m=y.transposeanimation,y.transposeanimduration),ct=function(){!1!==f.visible||!1!==f._conatinerHidden&&void 0!==f._conatinerHidden||(G.areaGroup.hide(),bt.hide(),G.lineShadowGroup.hide(),G.anchorShadowGroup.hide(),G.anchorGroup.hide(),X.hide(),xt&&xt.hide(),f._conatinerHidden=!0)},ht=E.getAnimationCompleteFn(),dt=function(){G.areaGroup.attr({"clip-rect":null}),G.lineShadowGroup.show(),G.anchorShadowGroup.show(),G.anchorGroup.show(),xt.show(),ht()},ut=y.shadow,pt=f.visible,ft=function(t){R.call(this,E,t)},gt=function(t,e){return function(i){e&&f._hoverPlotAnchor(t,"DataPlotRollOver",b),R.call(this,E,i,"DataPlotRollOver")}},mt=function(t,e){return function(i){e&&f._hoverPlotAnchor(t,"DataPlotRollOut",b),R.call(this,E,i,"DataPlotRollOut")}},vt=0,bt=G&&G.shadowContainer,yt={},xt=(yt=F.datalabels,f.graphics.dataLabelContainer);F=I.getAxisPosition(0);l=I.getAxisPosition(1)-F;var wt=I.axisData.scroll||{},_t=E.elements,Ct=E.options.chart.hasScroll||!1,St=(F=_t["clip-canvas-init"].slice(0),_t=_t["clip-canvas"].slice(0),ot?10:0),kt=(ot=ot?10:0,!y.drawFullAreaBorder),At=f.graphics.connector;for(G||(G=f.graphics.container={lineShadowGroup:P.group("connector-shadow",D.areaConnector),anchorShadowGroup:P.group("anchor-shadow",D.areaConnector),areaGroup:P.group("area",D.area),anchorGroup:P.group("anchors",D.areaConnector)},pt||(G.lineShadowGroup.hide(),G.anchorShadowGroup.hide(),G.areaGroup.hide(),G.anchorGroup.hide())),bt||(bt=f.graphics.shadowContainer=D.shadows||(D.shadows=P.group("shadows",G.areaGroup).toBack()),pt||bt.hide()),X||(X=f.graphics.trackerContainer=P.group("area-hot"),pt||X.hide()),N||(N=f.components.data),n&&n.appendChild(X),xt||(xt=f.graphics.dataLabelContainer=f.graphics.dataLabelContainer||P.group("datalabel",yt),pt||xt.hide()),E.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",t),T=l*(k=st(k,T)),f.graphics.lineElement||(J=f.graphics.lineElement=P.path(G.areaGroup)),n=0;n<k;n++)e=S[n],t=(s=(l=N[n])&&l.config).showValue,h=s.setValue,i=s.setLink,c=(yt=s.anch
40orProps).shadow,r=Y(tt(A(e.tooltext,v.plottooltext,b.plottooltext))),s&&($=0<=h?s.previousPositiveY:s.previousNegativeY),x&&h&&($=f._parseValues(n,$,w[n],r),h=s.value),null===h?j||(0<vt&&(Q.push("Z"),Z=Z.concat(Q),Q=[]),it=[],nt=[],et=!1):(V=M.getAxisPosition($||z)+ot,o=f.visible?M.getAxisPosition(h+($||0))+ot:V,e=I.getAxisPosition(n)-St,K=s.hoverEffects,r=s.toolText+(r?"":s.toolTipValue),h={index:n,link:i,value:h,displayValue:s.displayValue,categoryLabel:C[n].label,toolText:r,id:f.userID,datasetIndex:_,datasetName:v.seriesname,visible:pt},K.enabled&&(s.setRolloverAttr={polypath:[K.anchorSides||2,e,o,K.anchorRadius,K.startAngle,K.dip],fill:L({color:K.anchorColor,alpha:K.anchorBgAlpha}),stroke:L({color:K.anchorBorderColor,alpha:K.anchorBorderAlpha}),"stroke-width":K.anchorBorderThickness},s.setRolloutAttr={polypath:[yt.symbol[1]||2,e,o,yt.radius,yt.startAngle,0],fill:L({color:yt.bgColor,alpha:yt.bgAlpha}),stroke:L({color:yt.borderColor,alpha:yt.borderAlpha}),"stroke-width":yt.borderThickness},p=s.setRolloverAttr,u=s.setRolloutAttr),yt.imageUrl?(c=new d,i={isTooltip:B,setLink:i,hotLayer:X,groupId:void 0,clickFunc:ft},c.onload=f._onAnchorImageLoad(E,f,y,e,o,yt,l,h,r,!!K.enabled&&K,n,G.anchorGroup,i),c.onerror=f._onErrorSetter(e,o,n,f),c.src=yt.imageUrl):((s=l.graphics.element)?m?s.animate({polypath:[yt.symbol[1]||2,e,o,yt.radius,90,0]},at,"normal"):s.attr({polypath:[yt.symbol[1]||2,e,o,yt.radius,90,0]}):s=l.graphics.element=P.polypath(yt.symbol[1]||2,e,o,yt.radius,yt.startAngle,0,G.anchorGroup).attr({fill:L({color:yt.bgColor,alpha:yt.bgAlpha}),stroke:L({color:yt.borderColor,alpha:yt.borderAlpha}),"stroke-width":yt.borderThickness,visibility:yt.radius?pt:"hidden"}).shadow(c,G.anchorShadowGroup).data("anchorRadius",yt.radius).data("anchorHoverRadius",K.anchorRadius).data("setRolloverAttr",p).data("setRolloutAttr",u),K.enabled&&s&&s.data("anchorRadius",yt.radius).data("anchorHoverRadius",K.anchorRadius).data("setRolloverAttr",p).data("setRolloutAttr",u),i={cx:e,cy:o,r:c=lt(yt.radius,K&&!x&&K.anchorRadius||0),cursor:i?"pointer":"",stroke:g,"stroke-width":yt.borderThickness,fill:g,ishot:!0,visibility:"visible"},(c=l.graphics.hotElement)?c.attr(i):c=l.graphics.hotElement=P.circle(i,X),(c||s).data("eventArgs",h).data("groupId",void 0).click(ft).tooltip(r).hover(gt(l,K.enabled),mt(l,K.enabled))),l._xPos=e,l._yPos=o,et?(it.length&&(Z=Z.concat(it),Q=nt,nt=[],it=[],vt++),Z.push(e,",",o),Q.splice(0,0,e,",",V)):(vt=0,it.push("M",e,",",o,"L"),nt.push(e,",",V),et=!0)),t&&!yt.imageUrl&&this.drawLabel(n);"Z"!==Q[Q.length-1]&&0<vt&&Q.push("Z"),Ct&&(v=wt.startPercent,_t[2]=T+F[0],1===v&&(F[0]=_t[2],_t[0]=0)),_t[3]+=ot,J?(J.attr({path:Z.concat(Q),stroke:L({color:H,alpha:W}),"stroke-width":kt?0:U,fill:L(rt),"stroke-linecap":"round","stroke-linejoin":2<U?"round":"miter","stroke-dasharray":q}).shadow(ut,bt),O&&pt&&(G.anchorGroup.hide(),G.anchorShadowGroup.hide(),xt.hide(),D.area.attr({"clip-rect":F}).animate({"clip-rect":_t},O,"normal",dt))):f.graphics.lineElement&&(m?f.graphics.lineElement.animate({path:Z.concat(Q)},at,"normal",ct):(f.graphics.lineElement.attr({path:Z.concat(Q)}),ct())),kt&&(At?m?At.animate({path:Z},at,"normal"):At.attr({path:Z}):At=f.graphics.connector=P.path({path:Z,stroke:L({color:H,alpha:W}),"stroke-width":U,"stroke-linecap":"round","stroke-linejoin":2<U?"round":"miter","stroke-dasharray":q},G.areaGroup))},_parseAnchorProperties:function(t){var e=this.conf,i="area"===this.plotType?0:1,r=this.JSONData,o=this.fcJSON.chart;t=r.data[t];var s={},l=a.graphics.mapSymbolName;r=A(t.anchorstartangle,r.anchorstartangle,o.anchorstartangle,t.anchorimagealpha,r.anchorimagealpha,o.anchorimagealpha,t.anchorimagescale,r.anchorimagescale,o.anchorimagescale,t.anchorimagepadding,r.anchorimagepadding,o.anchorimagepadding,t.anchorimageurl,r.anchorimageurl,o.anchorimageurl,t.anchorradius,r.anchorradius,o.anchorradius,t.anchorbgcolor,r.anchorbgcolor,o.anchorbgcolor,t.anchorbordercolor,r.anchorbordercolor,o.anchorbordercolor,t.anchoralpha,r.anchoralpha,o.anchoralpha,t.anchorsides,r.anchorsides,o.anchorsides,t.anchorborderthickness,r.anchorborderthickness,o.anchorborderthickness,n)!==n,o=T(t.drawanchors,e.drawAnchors);return s.enabled=T(o,r||i),s.startAngle=T(t.anchorstartangle,e.anchorStartAngle),s.imageAlpha=T(t.anchorimagealpha,e.anchorImageAlpha),s.imageScale=T(t.anchorimagescale,e.anchorImageScale),s.imagePadding=T(t.anchorimagepadding,e.anchorImagePadding),0>s.imagePadding&&(s.imagePadding=0),s.imageUrl=A(t.anchorimageurl,e.anchorImageUrl),s.radius=T(t.anchorradius,e.anchorRadius),s.isAnchorRadius=s.radius,s.bgColor=A(t.anchorbgcolor,e.anchorBgColor),i=s.enabled?E(A(t.anchoralpha,e.anchorAlpha,s.enabled?P:"0")):0,s.bgAlpha=E(A(t.anchorbgalpha,e.anchorBgAlpha,i))*i/100,s.borderColor=A(t.anchorbordercolor,e.anchorBorderColor),s.borderAlpha=i,s.sides=A(t.anchorsides,e.anchorSides),s.borderThickness=A(t.anchorborderthickness,e.anchorBorderThickness),s.symbol=l(s.sides).split("_"),s.shadow=!!(T(t.anchorshadow,e.anchorShadow)&&1<=s.radius)&&{opacity:i/100},s}
40,_onErrorSetter:function(t,e,i,n){return function(){n.components.data[i].config.showValue&&n.drawLabel(i,t,e)}},_onAnchorImageLoad:function(t,e,i,n,r,o,a,s,l,c,h,d,p){return function(){var f,m,v,b,y,x,w,_,C,S=t.paper,k=e.chart,A=e.fcJSON.chart,T=(O=e.components.data[h]).graphics,D=!1===i.visible?"hidden":"visible",E=e.conf.transposeanimation,P=e.conf.transposeanimduration,I=e.graphics.anchorShadowGroup,M=o.imageUrl,O=O.config.showValue,F=o.imageScale,B=o.imageAlpha,N=c.imageHoverAlpha,j=c.imageHoverScale,$=this.height*F*.01,V=this.width*F*.01,H=this.width*j*.01,W=this.height*j*.01,z=p.isTooltip,q=p.setLink,U=p.hotLayer,G=p.groupId||"",Y=p.clickFunc,X=function(t){return function(i){c&&e._hoverPlotAnchor(t,"DataPlotRollOver",A),R.call(this,k,i,"DataPlotRollOver")}},J=function(t){return function(i){c&&e._hoverPlotAnchor(t,"DataPlotRollOut",A),R.call(this,k,i,"DataPlotRollOut")}},K=function(t){var e,i=t.length,n="";for(e=0;e<i;e+=1)n+=" "+t[e];return n};u?(x={x:n-this.width*F*.005,y:r-this.height*F*.005,width:V,height:$,alpha:B},C={x:n-this.width*j*.005,y:r-this.height*j*.005,width:H,height:this.height*j*.01,alpha:N},$=H>V?C:x,(N=T.image)&&"image"===N.type?E?N.animate(x,P,"normal"):N.attr(x):(T.image=N=S.image(M,d),N.attr(x).css({opacity:.01*B}).data("alwaysInvisible",!F).data("setRolloverProperties",c).data("setRolloverAttr",C).data("setRolloutAttr",x).data("anchorRadius",F).data("anchorHoverRadius",j)),(q||z||c)&&(f=T.hotElem?T.hotElem:T.hotElem=S.rect(U)).attr($).attr({cursor:q?"pointer":"",stroke:g,"stroke-width":o.borderThickness,fill:g,ishot:!0,visibility:D}).data("eventArgs",s).data("groupId",G).click(Y).hover(X(a),J(a)).tooltip(l)):(m=o.symbol[1],y=o.isAnchorHoverRadius,v=o.isAnchorRadius,v=o.radius=v?o.radius:st(V,$)/2,b=o.shadow,x=o.imagePadding,c.radius=y?c.anchorRadius:v+1,y=c.radius-x-.5*c.anchorBorderThickness,w=v-x-.5*o.borderThickness,C=x={},x={polypath:[m||2,n,r,v,o.startAngle,void 0],fill:L({color:o.bgColor,alpha:o.bgAlpha}),"stroke-width":o.borderThickness,stroke:L({color:o.borderColor,alpha:o.borderAlpha})},c&&(C={polypath:[c.anchorSides||2,n,r,c.anchorRadius,c.startAngle,c.dip],fill:L({color:c.anchorColor,alpha:c.anchorBgAlpha}),"stroke-width":c.anchorBorderThickness,stroke:L({color:c.anchorBorderColor,alpha:c.anchorBorderAlpha})},N>(_=lt(c.anchorAlpha,c.anchorBorderAlpha))&&(N=_)),o.bgAlpha&&o.borderAlpha&&(B>(_=lt(o.bgAlpha,o.borderAlpha))&&(B=_)),(_=T.element)&&"path"===_.type?E?_.animate(x,P,"normal"):_.attr(x):(_=T.element=S.polypath(m||2,n,r,v,o.startAngle,void 0,d)).attr({fill:L({color:o.bgColor,alpha:o.bgAlpha}),ishot:!z,"stroke-width":o.borderThickness,stroke:L({color:o.borderColor,alpha:o.borderAlpha}),cursor:q?"pointer":"",visibility:v?D:"hidden"}).data("alwaysInvisible",!v).data("setRolloverProperties",c).data("setRolloverAttr",C).data("setRolloutAttr",x).data("anchorRadius",v).data("anchorHoverRadius",c&&c.radius).shadow(b,I),x=K((I=S.polypath(m||2,n,r,0<w?w:0,o.startAngle,void 0,d).attr({visibility:"hidden"})).attrs.path),I.remove(),m=K((I=S.polypath(m||2,n,r,0<y?y:0,c.startAngle,c.dip,d).attr({visibility:"hidden"})).attrs.path),I.remove(),x={x:n-this.width*F*.005,y:r-this.height*F*.005,width:V,height:$,alpha:B,"clip-path":x},C={x:n-this.width*j*.005,y:r-this.height*j*.005,width:H,height:W,alpha:N,"clip-path":m},(N=T.image)&&"image"===N.type?E?N.animate(x,P,"normal"):N.attr(x):(T.image=N=S.image(M,d).attr({visibility:v?D:"hidden"}).css({opacity:.01*B}).data("alwaysInvisible",!F).data("setRolloverProperties",c).data("setRolloverAttr",C).data("setRolloutAttr",x).data("anchorRadius",F).data("anchorHoverRadius",j),N.attr(x)),(q||z||c)&&(v=lt(v,c&&c.anchorRadius||0,2),(f=T.hotElem&&"circle"===T.hotElem.type?T.hotElem.attr({cx:n,cy:r,r:v}):T.hotElem=S.circle({cx:n,cy:r,r:v},U)).attr({cursor:q?"pointer":"",stroke:g,"stroke-width":o.borderThickness,fill:g,ishot:!0,visibility:D})),(f||N).data("eventArgs",s).data("groupId",G).click(Y).hover(X(a),J(a)).tooltip(l)),O&&e.drawLabel(h,n,r)}},show:function(){var t,e=this.graphics&&this.graphics.container,i=this.graphics&&this.graphics.trackerContainer,n=this.graphics&&this.graphics.dataLabelContainer,r=this.graphics&&this.graphics.shadowContainer,o=this.groupManager,a=this.datasetIndex;a=(t=(t=(t=this.chart.logic.chartInstance.jsVars._reflowData).dataObj||(t.dataObj={}
40)).dataset||(t.dataset=[]))[a]||(t[a]={});this._conatinerHidden=!1,e.areaGroup.show(),r.show(),e.lineShadowGroup.show(),e.anchorShadowGroup.show(),e.anchorGroup.show(),i.show(),n.show(),this.visible=!0,a.visible=1,o.draw()},hide:function(){var t,e=this.groupManager,i=this.datasetIndex;i=(t=(t=(t=this.chart.logic.chartInstance.jsVars._reflowData).dataObj||(t.dataObj={})).dataset||(t.dataset=[]))[i]||(t[i]={});this.visible=!1,i.visible=0,e.draw()},_parseHoverEffectOptions:function(t){var e=this.JSONData,i=this.fcJSON.chart,r=this.conf,o=t.config.anchorProps,a={enabled:!1};return 0!==r.showHoverEffect&&(a.enabled=A(t.hovercolor,t.anchorhovercolor,t.anchorbghovercolor,e.anchorbghovercolor,i.anchorbghovercolor,t.hoveralpha,t.anchorhoveralpha,e.anchorhoveralpha,i.anchorhoveralpha,t.bghoveralpha,t.anchorbghoveralpha,e.anchorbghoveralpha,i.anchorbghoveralpha,t.anchorborderhovercolor,t.borderhovercolor,e.anchorborderhovercolor,i.anchorborderhovercolor,t.anchorborderhoverthickness,t.borderhoverthickness,e.anchorborderhoverthickness,i.anchorborderhoverthickness,t.anchorborderhoveralpha,t.borderhoveralpha,e.anchorborderhoveralpha,i.anchorborderhoveralpha,t.hoverdip,t.anchorhoverdip,e.anchorhoverdip,i.anchorhoverdip,t.anchorhoverstartangle,e.anchorhoverstartangle,i.anchorhoverstartangle,t.hoversides,t.anchorhoversides,e.anchorhoversides,i.anchorhoversides,t.hoverradius,t.anchorhoverradius,e.anchorhoverradius,i.anchorhoverradius,r.showHoverEffect,n)!==n,a.startAngle=T(t.anchorhoverstartangle,e.anchorhoverstartangle,i.anchorhoverstartangle,o.startAngle),a.anchorSides=T(t.hoversides,e.anchorhoversides,i.anchorhoversides,o.sides),a.anchorRadius=T(t.anchorhoverradius,e.anchorhoverradius,i.anchorhoverradius,o.radius+2),a.anchorScale=A(t.hoverscale,e.anchorscale,i.anchorscale),a.imageHoverScale=T(t.anchorimagehoverScale,e.anchorimagehoverscale,i.anchorimagehoverscale,110),a.imageHoverAlpha=T(t.anchorimagehoveralpha,e.anchorimaghoverealpha,i.anchorimagehoveralpha),a.anchorAlpha=A(t.anchorhoveralpha,t.hoveralpha,e.anchorhoveralpha,i.anchorhoverAlpha,o.anch
40orAlpha),a.anchorColor=vt(A(t.hovercolor,t.anchorhovercolor,t.anchorbghovercolor,e.anchorbghovercolor,e.anchorhovercolor,i.anchorbghovercolor,i.anchorhovercolor,i.plotfillhovercolor,o.bgColor)),a.anchorBgAlpha=A(t.bghoveralpha,t.anchorbghoveralpha,e.anchorbghoveralpha,i.anchorbghoveralpha,i.plotfillhoveralpha,o.bgAlpha),a.anchorBorderColor=A(t.borderhovercolor,t.anchorborderhovercolor,e.anchorborderhovercolor,i.anchorborderhovercolor,o.borderColor),a.anchorBorderAlpha=A(t.borderhoveralpha,e.anchorborderhoveralpha,i.anchorborderhoveralpha,i.anchorborderalpha,o.borderAlpha),a.anchorBorderThickness=T(t.borderhoverthickness,e.anchorborderhoverthickness,i.anchorborderhoverthickness,i.anchorBorderThickness,o.borderThickness),a.dip=A(t.hoverdip,e.anchorhoverdip,i.anchorhoverdip,o.dip),a.anchorAnimation=T(e.anchorhoveranimation,i.anchorhoveranimation,1)),a},_hoverPlotAnchor:function(t,e,i){var n=t.graphics.element,r=t.graphics.label,o=t.graphics.image,a=n.data("setRolloverAttr"),s=n.data("setRolloutAttr"),l="DataPlotRollOver"===e?n.data("setRolloverAttr"):n.data("setRolloutAttr"),c=T(i.rotatevalues)?270:0;i="image"===n.type;var h,d=n.data("anchorRadius"),u=n.data("anchorHoverRadius"),p=r&&(r.data("isBelow")?1:-1)*(i?.5*(a.height-s.height):u-d),f=t.config.hoverEffects;t={polypath:l.polypath},l={fill:l.fill,"stroke-width":l["stroke-width"],stroke:l.stroke},c={transform:"T0,"+("DataPlotRollOver"===e?p:0)+"R"+c},a=!(/,0\)$/.test(a.fill)&&/,0\)$/.test(s.fill))&&n.data("anchorHoverRadius")-n.data("anchorRadius")&&f.anchorAnimation&&50,o&&(h=o.data("setRolloverAttr"),s=o.data("setRolloutAttr"),h="DataPlotRollOver"==e?h:s),("DataPlotRollOver"==e&&0!==u||"DataPlotRollOut"==e&&0!==d)&&(n.attr({visibility:"visible"}),o&&o.attr({visibility:"visible"})),o&&o.css({opacity:.01*h.alpha}),i?n.css({opacity:.01*t.alpha}):n.attr(l),n.stop(),n.animate(t,a,"easeOut",(function(){("DataPlotRollOver"==e&&!u||"DataPlotRollOut"==e&&!d)&&n.attr({visibility:"hidden"})})),o&&o.animate(h,a,"easeOut",(function(){("DataPlotRollOver"==e&&!u||"DataPlotRollOut"==e&&!d)&&o.attr({visibility:"hidden"})})),r&&r.stop(),a&&r&&r.animate(c,a,"easeOut")},drawLabel:function(t){var e,i,n,r,o,s=this.chart,l=a.getValidValue,c=this.fcJSON.labelStyle,h=this.JSONData.data,d=this.components.data,u=s.paper,f="",g=this.conf,m=g.transposeanimation,v=g.transposeanimduration,b=g.rotateValues,y=s.canvasTop,x=s.canvasHeight,w=g.valuePadding+2,_=g.valuePosition;i=this.graphics.dataLabelContainer,o=s.logic.isStacked;var C=g.stack100Percent;switch(n=(f=(e=d[t]).config).anchorProps,s=e.graphics,h=h[t],r=e._yPos,g=e._xPos,w+=e=s.element?e.graphicImage&&.5*s.element.attr("height")||n.radius-3:0,_=l(h.valueposition,_).toLowerCase()){case"above":t=0;break;case"below":t=1;break;default:l=d[t-1]&&d[t-1].config||{},d=d[t+1]&&d[t+1].config||{},o&&C?(l=l.value,d=d.value,o=f.value):(l=l.setValue,d=d.setValue,o=f.setValue),t=t&&(l>o||(null==d&&d)>o)?1:0}f=f.displayValue,Q(f)&&f!==p&&null!==h.value&&(s.label?s.label.attr({text:f}):(c={text:f,class:"fusioncharts-label",fill:c.color,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash],"font-weight":c.fontWeight,"font-style":c.fontStyle,"font-family":c.fontFamily,"font-size":c.fontSize,"line-height":c.lineHeight,visibility:"visible"},s.label=u.text(c,i)),h._state&&h._state.labelWidth||(u=s.label.getBBox(),h._state=b?{labelWidth:u.height,labelHeight:u.width}:{labelWidth:u.width,labelHeight:u.height}),u=i=h._state.labelHeight,i=.5*i+w,c=r-y,y=y+x-r,x=r,u=u+w+4,t?y>u?(x+=i,h._valueBelowPoint=1):c>u&&(x-=i,h._valueBelowPoint=0):c>u?(x-=i,h._valueBelowPoint=0):y>u&&(x+=i,h._valueBelowPoint=1),0===s.label.attrs.x&&0===s.label.attrs.y?(s.label.attr({x:g,y:x}).data("isBelow",h._valueBelowPoint),b&&s.label.attr("transform","T0,0,R"+b)):m?s.label.animate({x:g,y:x,transform:b&&"T0,0,R"+b},v,"normal"):s.label.attr({x:g,y:x,transform:b&&"T0,0,R"+b}))}},"column"]),FusionCharts.register("dataSetType",["Line",{init:function(t,e,i){var n=this.fcJSON=t.logic.dataObj,r=(n=i?n.lineset:n.dataset,t.logic.isDual);if(!n||!n[e])return!1;this.isLineSet=i,this.chart=t,this.datasetIndex=e,this.yAxis=r?t.yAxis[this.yAxis||0]:t.yAxis[0],this.components={},this.conf={},this.graphics={},this.plotType="line",this.JSONData=n[e],this.visible=1===T(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure()},draw:function(){var t,e,i,r,o,s,l,c,h,u,p,f,m,v,b,y,x,w,_,C,S,k,T,D,E,P,I,M,O,F,B,N,j,$,V,H=this,W=H.JSONData,z=H.fcJSON,q=z.chart,U=H.chart,G=H.conf,Y=H.datasetIndex,X=z.categories&&z.categories[0].category,J=W.data,K=X&&X.length,Z=J&&J.length,Q=H.isLineSet,tt=z.labelStyle,et=U.paper,it=U.xAxis[0],nt=H.yAxis,rt=U.layers,ot=rt.datalabels,at=a.parseUnsafeString,ct=a.getValidValue,ht=G.animation.duration,dt=H.components.data,ut={fontFamily:tt.fontFamily,fontSize:tt.fontSize,lineHeight:tt.lineHeight,fontWeight:tt.fontWeight,fontStyle:tt.fontStyle,color:tt.color},pt=G.lineThickness,ft=H.graphics.container,gt=H.graphics.trackerContainer,mt=rt.tracker,vt=function(t){R.call(this,U,t)},bt=function(t,e){return function(i){e&&H._hoverPlotAnchor(t,"DataPlotRollOver",q),R.call(this,U,i,"DataPlotRollOver")}},yt=function(t,e){return function(i){e&&H._hoverPlotAnchor(t,"DataPlotRollOut",q),R.call(this,U,i,"DataPlotRollOut")}},xt=G.connectNullData,wt=G.showTooltip,_t=rt.dataset,Ct=G.shadow,St=H.graphics.dataLabelContainer,kt={},At=U.logic.is3D,Tt=G.use3dlineshift,Lt=G.transposeanimation,Dt=G.transposeanimduration,Et=function(){!1!==H.visible||!1!==H._conatinerHidden&&void 0!==H._conatinerHidden||(ft.lineGroup.hide(),ft.lineShadowGroup.hide(),ft.anchorShadowGroup.hide(),ft.anchorGroup.hide(),gt.hide(),St&&St.hide(),H._conatinerHidden=!Q||z.lineset._conatinerHidden)},Pt=U.getAnimationCompleteFn(),It=function(){ft.lineGroup.attr({"clip-rect":null}),ft.lineShadowGroup.show(),ft.anchorShadowGroup.show(),ft.anchorGroup.show(),gt.show(),St&&St.
40show(),Pt()},Mt=!0,Ot=nt.max,Ft=nt.min,Rt=0<Ot&&0<=Ft,Bt=nt.yBasePos=nt.getAxisPosition(0>=Ot&&0>Ft?Ot:Rt?Ft:0),Nt=U.elements,jt=it.getAxisPosition(0),$t=it.getAxisPosition(1)-jt,Vt=U.options.chart,Ht=Nt["clip-canvas-init"].slice(0),Wt=Nt["clip-canvas"].slice(0),zt=it.axisData.scroll||{},qt=Vt.hasScroll||!1,Ut=At?10:0,Gt=At&&Tt?10:0,Yt=G.lineDashStyle,Xt={color:G.lineColor,alpha:G.lineAlpha},Jt=[],Kt=0,Zt=[],Qt=null,te=[],ee=!1,ie=H.graphics.lineElement,ne=H.visible;for(ft||(ft=H.graphics.container={lineShadowGroup:et.group("connector-shadow",_t.line),anchorShadowGroup:et.group("anchor-shadow",_t.lineConnector),lineGroup:et.group("line",_t.line),anchorGroup:et.group("anchors",_t.lineConnector)},ne||(ft.lineShadowGroup.hide(),ft.anchorShadowGroup.hide(),ft.lineGroup.hide(),ft.anchorGroup.hide())),gt||(gt=H.graphics.trackerContainer=et.group("line-hot"),ne||gt.hide()),dt||(dt=H.components.data=[]),mt&&mt.appendChild(gt),U.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",ut),St||(St=H.graphics.dataLabelContainer=H.graphics.dataLabelContainer||et.group("datalabel",ot),ne||St.hide()),I=$t*(t=st(K,Z)),i=0;i<t;i++)e=J[i],u=(k=(m=dt[i]).config).setValue,h=k.setLink,D=ct(at(A(e.tooltext,W.plottooltext,q.plottooltext))),T=k.showValue,S=(kt=k.anchorProps).symbol,w=kt.shadow,f=k.displayValue,m||(m=dt[i]={graphics:{}}),null===u?(te.length=0,xt||(Qt=null)):(N={color:k.color,alpha:k.alpha},P=k.dashStyle,r=it.getAxisPosition(i)-Ut,o=H.visible?nt.getAxisPosition(u)+Gt:Bt,x=k.hoverEffects,kt.isAnchorHoverRadius=x.anchorRadius,ct(at(A(X[i].tooltext,X[i].label))),s=s=k.toolText+(D?"":k.toolTipValue),p={index:i,link:h,value:u,displayValue:f,categoryLabel:X[i].label,toolText:s,id:G.userID,datasetIndex:Y,datasetName:W.seriesname,visible:ne},kt.imageUrl&&(_=new d,C={isTooltip:wt,setLink:h,hotLayer:gt,groupId:void 0,clickFunc:vt},_.onload=this._onAnchorImageLoad(U,H,G,r,o,kt,m,p,s,!!x.enabled&&x,i,ft.anchorGroup,C),_.onerror=this._onErrorSetter(r,o,i,H),_.src=kt.imageUrl),l=m.graphics.element,E=m.graphics.connector,l?(Lt?l.animate({polypath:[S[1]||2,r,o,kt.radius,kt.startAngle,0]},Dt,"normal",Mt&&Et):(l.attr({polypath:[S[1]||2,r,o,kt.radius,kt.startAngle,0]}),Mt&&Et()),Mt=!1):(l=m.graphics.element=et.polypath(S[1]||2,r,o,kt.radius,kt.startAngle,0,ft.anchorGroup).attr({fill:L({color:kt.bgColor,alpha:kt.bgAlpha}),stroke:L({color:kt.borderColor,alpha:kt.borderAlpha}),"stroke-width":kt.borderThickness,visibility:kt.radius?ne:"hidden"}).shadow(w,ft.anchorShadowGroup),ee=!0),x.enabled&&(b={polypath:[x.anchorSides||2,r,o,x.anchorRadius,x.startAngle,x.dip],fill:L({color:x.anchorColor,alpha:x.anchorBgAlpha}),stroke:L({color:x.anchorBorderColor,alpha:x.anchorBorderAlpha}),"stroke-width":x.anchorBorderThickness},v={polypath:[kt.sides,r,o,kt.radius,kt.startAngle,0],fill:L({color:kt.bgColor,alpha:kt.bgAlpha}),stroke:L({color:kt.borderColor,alpha:kt.borderAlpha}),"stroke-width":kt.borderThickness},
41l&&l.data("anchorRadius",kt.radius).data("anchorHoverRadius",x.anchorRadius).data("setRolloverAttr",b).data("setRolloutAttr",v)),y={cx:r,cy:o,r:lt(kt.radius,x&&x.anchorRadius||0),cursor:h?"pointer":"",stroke:g,"stroke-width":kt.borderThickness,fill:g,ishot:!0,visibility:ne},c=m.graphics.hotElement,E=m.graphics.connector,m.graphics.hotElement?m.graphics.hotElement.attr(y):c=m.graphics.hotElement=et.circle(y,gt),((c=m.graphics.hotElement)||l).data("eventArgs",p).data("groupId",void 0).click(vt).tooltip(s),x.enabled&&(c||l).hover(bt(m,x.enabled),yt(m,x.enabled)),B=j!==[L(N||Xt),P||Yt].join(":"),null!==Qt?(te.length&&(Jt=Jt.concat(te),te.length=0),Jt.join("")||Jt.push("M",$,Qt),Jt.push("L",r,o),B&&(Kt?Zt=Zt.concat(Jt):E?(Lt?E.animate({path:Jt},Dt,"normal",Mt&&Et):(E.attr({path:Jt}),Mt&&Et()),Mt=!1):(E=m.graphics.connector=et.path(Jt,ft.lineGroup).attr({"stroke-dasharray":F,"stroke-width":pt,stroke:O,"stroke-linecap":"round","stroke-linejoin":2<pt?"round":"miter"}).shadow(V,ft.lineShadowGroup),ee=!0),Jt=[])):te.push("M",r,o),$=r,Qt=o,O=L(N||Xt),V=N?{opacity:N&&N.alpha/100}:Ct,F=P||Yt,Kt=A(e.color,e.alpha,e.dashed)===n?1:0,j=[O,F].join(":"),m._xPos=r,m._yPos=o,T&&!kt.imageUrl&&this.drawLabel(i));Jt.length&&(Zt=Zt.concat(Jt)),Zt.join("")&&(ie?(Lt?ie.animate({path:Zt},Dt,Mt&&Et):(ie.attr({path:Zt}),Mt&&Et()),Mt=!1):(ie=H.graphics.lineElement=et.path({path:Zt,"stroke-dasharray":Yt,"stroke-width":pt,stroke:L(Xt),"stroke-linecap":"round","stroke-linejoin":2<=pt?"round":"miter"},ft.lineGroup).shadow(Ct,ft.lineShadowGroup),ee=!0)),qt&&(M=zt.startPercent,Wt[2]=I+Ht[0],1===M&&(Ht[0]=Wt[2],Wt[0]=0)),Wt[3]+=Gt,ht&&ne&&ee&&(ft.anchorGroup.hide(),ft.lineShadowGroup.hide(),ft.anchorShadowGroup.hide(),St.hide(),_t.line.attr({"clip-rect":Ht}).animate({"clip-rect":Wt},ht,"normal",It))},show:function(){var t,e=this.graphics&&this.graphics.container,i=this.graphics&&this.graphics.trackerContainer,n=this.graphics&&this.graphics.dataLabelContainer,r=this.datasetIndex,o=this.groupManager,a=this.chart.logic.chartInstance.jsVars._reflowData;t=this.isLineSet,a=a.dataObj||(a.dataObj={}),t?((r=(t=a.lineset||(a.lineset=[]))[r]||(t[r]={})).visible=1,t._conatinerHidden=!1):((r=(t=a.dataset||(a.dataset=[]))[r]||(t[r]={})).visible=1,this._conatinerHidden=!1),e.lineGroup.show(),e.anchorGroup.show(),e.anchorShadowGroup.show(),e.lineShadowGroup.show(),i.show(),n.show(),this.visible=!0,o.draw()},hide:function(){var t,e=this.datasetIndex,i=this.groupManager,n=this.chart.logic.chartInstance.jsVars._reflowData;t=this.isLineSet,n=n.dataObj||(n.dataObj={}),(e=(t=t?n.lineset||(n.lineset=[]):n.dataset||(n.dataset=[]))[e]||(t[e]={})).visible=0,this.visible=!1,i.draw()}},"area"]),l("renderer.newlinecartesian",{drawGraph:function(){var t,e,i=this,n=i.paper,r=i.plots=i.elements.plots,o=i.logic,a=i.layers,s=i.options,l=i.elements,c=s.chart,h=(s=i.datasets=s.series,X(c.rendererId,c.defaultSeriesType)),d=a.background,u=(d=a.dataset=a.dataset||n.group("dataset").insertAfter(d),FusionCharts.register("dataSetType",["Line"])),p=s.length;t=(f=(f=o.chartInstance.jsVars._reflowData).dataObj||(f.dataObj={})).chart||(f.chart={});var f=function(t,e){return function(i){var n,a=r[t],s={hcJSON:{series:[]}},l=s.hcJSON.series[t]||(s.hcJSON.series[t]={}),c=o.chartInstance.jsVars._reflowData;n=(i=X(i,!a.visible))?"visible":"hidden",H(a.graphics,(function(t){!0!==t.data("alwaysInvisible")&&t.attr("visibility",n)})),a.visible=i,e.visible=i,l.visible=i,_(c,s,!0)}},g=function(t){return function(e){var i=r[t],n=(a=(d=i.legend)&&d.elements)&&a.legendItemText,o=a&&a.legendItemSymbol,a=a&&a.legendItemLine,s=d&&d.hiddenColor,l=d&&d.itemLineColor,c=d&&d.itemTextColor,h=d&&d.symbolColor,d=d&&d.symbolStroke;
41A(e,!i.visible)?(o&&o.attr({fill:h||l,stroke:d}),n&&n.attr({fill:c}),a&&a.attr({stroke:l})):(o&&o.attr({fill:s,stroke:s}),n&&n.attr({fill:s}),a&&a.attr({stroke:s})),r[t].visible?r[t].hide():r[t].show()}},m=function(t){return function(){return i.getEventArgs&&i.getEventArgs(r[t])}},v=function(t,e,n){return function(o,a){e.call(i,r[t],n,{numUpdate:o,hasAxisChanged:a})}},b=new(FusionCharts.register("groupManagerType",["Linegroupmanager"]))(i);for(t.animation=0,a.tracker=a.tracker||n.group("hot").insertAfter(d),i.drawCanvas(),i.drawAxes(),r||(r=i.plots=i.plots||[],l.plots=r),i.parseCategory(),b.init(i),a=0;a<p;a++)l=(n=s[a]||{}).updatePlot="updatePlot"+U(A(n.type,n.plotType,h)),l=i[l],t=n.drawPlot="drawPlot"+U(A(n.type,n.plotType,h)),t=i[t]||i.drawPlot,(e=r[a])||(r.push(e=new u),e.init(i,a),e.index=a,e.items=[],e.data=n.data||[],e.name=n.name,e.userID=n.userID,e.setVisible=f(a,n),e.legendClick=g(a),e.getEventArgs=m(a),e.realtimeUpdate=v(a,l||t,n),n.plot=e,n.legendClick=e.legendClick,n.getEventArgs=e.getEventArgs,n.setVisible=e.setVisible),a&&s[a-1]&&(n.previousData=s[a-1].data),b.addDataSet(e,a),e.setContainer(d);b.draw(),c.hasScroll&&(i.drawScroller(),i.finalizeScrollPlots())}},l["renderer.newcartesian"]),FusionCharts.register("groupManagerType",["Linegroupmanager",{init:function(t){this.chart=t,this.positionStackArr=[]},addDataSet:function(t,e){var i=this.positionStackArr;t.groupManager=this,t.positionIndex=e,i[e]={dataSet:t}},draw:function(){var t,e=this.chart,i=this.positionStackArr,n=i.length;for(t=e.layers.dataset,e=e.paper,t.line=t.line||e.group("line",t),t.lineConnector=t.lineConnector||e.group("line-connector",t),t=0;t<n;t++)(e=i[t].dataSet).JSONData&&e.JSONData.data&&e.draw()}},"AreagroupManager"])}]),FusionCharts.register("module",["private","modules.renderer.js-interface",function(){var t,e,i=this,n=i.hcLib,r=i.renderer.getRenderer("javascript"),o=n.hasModule,a=n.loadModule,s=n.getMetaSentence,l=n.moduleCmdQueue,c=n.executeWaitingCommands,h=n.injectModuleDependency,d=n.moduleDependencies,u=n.getDependentModuleName;t=function(t){var e,r,o,a,l={};for(e in t=s(t),i.core.items)r=(e=i.core.items[e]).chartType(),o=e.options.chartTypeSourcePath+r,(r=e.jsVars)&&r.waitingModule&&e.__state.rendering&&n.needsModule(t.predicate,o)&&(r.waitingModuleError=!0,(r=u(o).concat(r.userModules)).length&&(l[r=r[r.length-1]]=n.moduleCmdQueue[r]));for(a in l)c(l[a]);i.raiseError(i.core,"11171116151","run","HC-interface~renderer.load","Unable to load required modules and resources: "+t.key)},e=function(t,e,n){var r=t.args,o=t.options;t._chartMessageImageStyle={imageHAlign:r.typeNotSupportedMessageImageHAlign||o.baseChartMessageImageHAlign,imageVAlign:r.typeNotSupportedMessageImageVAlign||o.baseChartMessageImageVAlign,imageAlpha:r.typeNotSupportedMessageImageAlpha||o.baseChartMessageImageAlpha,imageScale:r.typeNotSupportedMessageImageScale||o.baseChartMessageImageScale},t._chartMessageStyle={color:r.typeNotSupportedMessageColor||o.baseChartMessageColor,fontFamily:r.typeNotSupportedMessageFont||o.baseChartMessageFont,fontSize:r.typeNotSupportedMessageFontSize||o.baseChartMessageFontSize},i.hcLib.createChart(t,e,"stub",n,o.typeNotSupportedMessage)},n.eventList=i.extend(i.legacyEventList,{loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",exported:"FC_Exported"}),n.raiseEvent=i.raiseEventWithLegacy,d.charts=i.extend(d.charts||{},{column2d:0,column3d:0,bar2d:0,bar3d:0,pie2d:0,pie3d:0,line:0,area2d:0,doughnut2d:0,doughnut3d:0,pareto2d:0,pareto3d:0,mscolumn2d:0,mscolumn3d:0,msline:0,msarea:0,msbar2d:0,msbar3d:0,stackedcolumn2d:0,marimekko:0,stackedcolumn3d:0,stackedarea2d:0,stackedcolumn2dline:0,stackedcolumn3dline:0,stackedbar2d:0,stackedbar3d:0,msstackedcolumn2d:0,mscombi2d:0,mscombi3d:0,mscolumnline3d:0,mscombidy2d:0,mscolumn3dlinedy:0,stackedcolumn3dlinedy:0,msstackedcolumn2dlinedy:0,scatter:0,bubble:0,ssgrid:0,scrollcolumn2d:0,scrollcolumn3d:0,scrollline2d:0,scrollarea2d:0,scrollstackedcolumn2d:0,scrollcombi2d:0,scrollcombidy2d:0,zoomline:0,zoomlinedy:0,zoomscatter:0}),d.powercharts=i.extend(d.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,mssplinedy:0,multiaxisline:0,multilevelpie:0,waterfall2d:0,msstepline:0,inversemsline:0,inversemscolumn2d:0,inversemsarea:0,errorbar2d:0,errorscatter:0,errorline:0,logmsline:0,logmscolumn2d:0,logstackedcolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0,treemap:0}),d.widgets=i.extend(d.widgets||{},{angulargauge:0,bulb:0,cylinder:0,drawingpad:0,funnel:0,hbullet:0,hled:0,hlineargauge:0,vlineargauge:0,pyramid:0,realtimearea:0,realtimecolumn:0,realtimeline:0,realtimelinedy:0,realtimestackedarea:0,realtimestackedcolumn:0,sparkcolumn:0,sparkline:0,sparkwinloss:0,thermometer:0,vbullet:0,gantt:0,vled:0}),d.maps=i.extend(d.maps||{},{}),i.extend(r,{render:function(t,a){var s,c,d=this.chartType(),p=this.options.chartTypeSourcePath+d,f=this.jsVars,g=this.__state,m=n.chartAPI,v=this.options,b=this.args,y=this.options.showChartLoadingMessage;if(s=u(p).concat(f.userModules),f.isResizing&&(f.isResizing=clearTimeout(f.isResizing)),f.hcObj&&f.hcObj.destroy&&f.hcObj.destroy(),m[d]){if(m[g.lastRenderedType]&&g.lastRenderedType!==d)for(c in i.raiseEvent("chartTypeChanged",{previousType:g.lastRenderedType,newType:d},this),m[g.lastRenderedType].eiMethods)delete this[c];g.lastRenderedType=d,g.lastRenderedSrc=this.src,!f.waitingModuleError&&n.raiseEvent("internal.loaded",{type:d,triggeredModuleLoad:f.drLoadAttempted||f.waitingModule},this,[this.id]),delete f.waitingModule,delete f.waitingModuleError,delete f.drLoadAttempted,i.hcLib.createChart(this,t,d,a)}else{if(d&&o(s)){if(f.drLoadAttempted)return i.raiseError(this,11112822001,"run","HC-interface~renderer.render","Chart runtimes not loaded even when resource is present"),void e(this,t,a);h(p)&&(s=u(p).concat(f.userModules)),f.drLoadAttempted=!0}else{if(!s.length)return void e(this,t,a);if(f.waitingModuleError)return e(this,t,a),delete f.waitingModule,void delete f.waitingModuleError}(d=l[s[s.length-1]])?(d.push({cmd:"render",obj:this,args:arguments}),f.waitingModule||(f=y?v.PBarLoadingText||v.loadMessage:"",this._chartMessageImageStyle={imageHAlign:b.loadMessageImageHAlign||v.baseChartMessageImageHAlign,imageVAlign:b.loadMessageImageVAlign||v.baseChartMessageImageVAlign,imageAlpha:b.loadMessageImageAlpha||v.baseChartMessageImageAlpha,imageScale:b.loadMessageImageScale||v.baseChartMessageImageScale},this._chartMessageStyle={color:b.loadMessageColor||v.baseChartMessageColor,fontFamily:b.loadMessageFont||v.baseChartMessageFont,fontSize:b.loadMessageFontSize||v.baseChartMessageFontSize},i.hcLib.createChart(this,t,"stub",void 0,f),r.load.call(this,t,a))):(i.raiseError(this,12080515551,"run","HC-interface~renderer.render","Unregistered module in dependentModule definition."),this._chartMessageImageStyle={imageHAlign:b.renderErrorMessageImageHAlign||v.baseChartMessageImageHAlign,imageVAlign:b.renderErrorMessageImageVAlign||v.baseChartMessageImageVAlign,imageAlpha:b.renderErrorMessageImageAlpha||v.baseChartMessageImageAlpha,imageScale:b.renderErrorMessageImageScale||v.baseChartMessageImageScale},this._chartMessageStyle={color:b.renderErrorMessageColor||v.baseChartMessageColor,fontFamily:b.renderErrorMessageFont||v.baseChartMessageFont,fontSize:b.renderErrorMessageFontSize||v.baseChartMessageFontSize},i.hcLib.createChart(this,t,"stub",void 0,v.renderErrorMessage))}},update:function(t){var e=this.ref,n=this.jsVars,r=n&&n.fcObj;r=n.container||r&&r.options&&r.options.containerElement&&r.options.containerElement.childNodes[0];n.hcObj&&n.hcObj.destroy&&n.hcObj.destroy(),n.isResizing&&(n.isResizing=clearTimeout(n.isResizing)),void 0===t.error?(delete n.stallLoad,delete n.loadError,this.isActive()?this.src!==this.__state.lastRenderedSrc?this.render():i.hcLib.createChart(this,r):this.__state.rendering&&!n.waitingModule&&i.hcLib.createChart(this,r)):(this.isActive()&&"function"==typeof e.showChartMessage&&e.showChartMessage("InvalidXMLText"),delete n.loadError)},resize:function(t){var e,n=this.ref,r=this.jsVars;n&&n.resize&&(r.isResizing&&(r.isResizing=clearTimeout(r.isResizing)),r.isResizing=setTimeout((function(){e=i.normalizeCSSDimension(t.width,t.height,n),void 0!==t.width&&(n.style.width=e.width),void 0!==t.height&&(n.style.height=e.height),n.resize(),delete r.isResizing}),0))},dispose:function(){var t,e=this.jsVars;e.isResizing&&(e.isResizing=clearTimeout(e.isResizing)),e.instanceAPI&&e.instanceAPI.dispose&&(e.instanceAPI.dispose(),delete e.instanceAPI),(t=this.ref)&&(i.purgeDOM(t),t.parentNode&&t.parentNode.removeChild(t)),e.container=null,n.cleanupWaitingCommands(this)},load:function(r,o){var s=this.jsVars,l=this.chartType(),h=i.hcLib.chartAPI[l],d=(l=u(l).concat(s.userModules))[l.length-1];h||!l||l&&0===l.length?(delete s.waitingModule,r&&e(this,r||this.ref,o)):s.waitingModule||(s.waitingModule=!0,delete s.waitingModuleError,a(l,(function(){delete s.waitingModule,c(n.moduleCmdQueue[d])}),t,this))}})}]),FusionCharts.register("module",["private","modules.api.dynamicchartattributes",function(){var t=this;t.extend(t.core,{setChartAttribute:function(e,i){var n,r,o,a;if("string"==typeof e)n=e,(e={})[n]=i;else if(null===e||"object"!=typeof e)return;if(a=0,o=(n=this.getChartData(t.dataFormats.JSON))&&(n.chart||n.graph||n.map)){for(r in e)a+=1,null===e[r]?delete o[r.toLowerCase()]:o[r.toLowerCase()]=e[r];0<a&&(void 0===o.animation&&(o.animation="0"),this.setChartData(n,t.dataFormats.JSON))}else t.raiseError(this,"2105141421","run","#setChartAttribute()","Could not retrieve attribute list. Is data ready?")},getChartAttribute:function(e){var i,n,r=(r=this.getChartData(t.dataFormats.JSON))&&(r.chart||r.graph||r.map);if(0===arguments.length||void 0===e||void 0===r)return r;if("string"==typeof e)i=r[e.toString().toLowerCase()];else if(e instanceof Array)for(i={},n=0;n<e.length;n+=1)i[e[n]]=r[e[n].toString().toLowerCase()];else t.raiseError(this,"25081429","param","~getChartAttribute()",'Unexpected value of "attribute"');return i}},!0)}]),FusionCharts.register("module",["private","api.linkmanager",function(){var t=this,e=t.FusionChartsDOMInsertModes,i={},n=function(e,n){this.items={},this.root=e,this.parent=n,n instanceof t.core?this.level=this.parent.link.level+1:(i[e.
41id]=[{}],this.level=0)},r=function(t,i){return(t.options.containerElement===i.options.containerElement||t.options.containerElementId===i.options.containerElementId)&&t.options.insertMode===e.REPLACE};t.policies.link=["link",void 0],n.prototype.configuration=function(){return i[this.root.id][this.level]||(i[this.root.id][this.level]={})},t.extend(t.core,{configureLink:function(e,n){var r;if(e instanceof Array){for(r=0;r<e.length;r+=1)"object"!=typeof i[this.link.root.id][r]&&(i[this.link.root.id][r]={}),t.extend(i[this.link.root.id][r],e[r]);i[this.link.root.id].splice(e.length)}else"object"==typeof e?("number"!=typeof n&&(n=this.link.level),void 0===i[this.link.root.id][n]&&(i[this.link.root.id][n]={}),t.extend(i[this.link.root.id][n],e)):t.raiseError(this,"25081731","param","~configureLink()","Unable to update link configuration from set parameters")}},!0),t.addEventListener("beforeInitialize",(function(e){e.sender.link instanceof n?e.sender.link.parent instanceof t.core&&(e.sender.link.parent.link.items[e.sender.id]=e.sender):e.sender.link=new n(e.sender)})),t.addEventListener("linkedChartInvoked",(function(e,i){var o,a=e.sender,s=a.clone({dataSource:i.data,dataFormat:i.linkType,link:new n(a.link.root,a)},!0),l=i.alias;l&&(!s.typeSource&&s.swfUrl&&(s.typeSource=s.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/gi,"$1")),s.type=l),a.args&&0!==parseInt(a.args.animate,10)&&delete s.animate,t.extend(s,a.link.configuration()),t.raiseEvent("beforeLinkedItemOpen",{level:a.link.level},a.link.root,void 0,(function(){t.core.items[s.id]instanceof t.core&&t.core.items[s.id].dispose(),o=new t.core(s),r(o,a)||a.options.overlayButton&&a.options.overlayButton.message||("object"!=typeof a.options.overlayButton&&(a.options.overlayButton={}),a.options.overlayButton.message="Close"),o.render(),t.raiseEvent("linkedItemOpened",{level:a.link.level,item:o},a.link.root)}))})),t.addEventListener("overlayButtonClick",(function(e,i){if("LinkManager"===i.id){var n=e.sender,o=n.link.level-1,a=n.link.parent,s=n.link.root;t.raiseEvent("beforeLinkedItemClose",{level:o,item:n},s,n,(function(){setTimeout((function(){t.core.items[n.id]&&n.dispose(),t.raiseEvent("linkedItemClosed",{level:o},s)}),0),a.disposed||a.isActive()||!r(n,a)||a.render()}))}})),t.addEventListener("Loaded",(function(e){var i;(e=e.sender)&&void 0!==e.link&&e.link.root!==e&&e.link.parent instanceof t.core&&(e.ref&&"function"==typeof e.ref.drawOverlayButton?(i=t.extend({show:!0,id:"LinkManager"},e.link.parent.options.overlayButton),t.extend(i,e.link.parent.link.configuration().overlayButton||{}),e.ref.drawOverlayButton(i)):t.raiseWarning(e,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+e.id))})),t.addEventListener("beforeDispose",(function(e){var r=e.sender;r&&r.link instanceof n&&(r&&r.link&&r.link.parent instanceof t.core&&r.link.parent.link&&r.link.parent.link.items&&delete r.link.parent.link.items[e.sender.id],delete i[r.id])}))}]),FusionCharts.register("module",["private","modules.renderer.js-thememanager",function(){var t,e,i,n=this,r=/\s+!important$/,o=/\\!important$/,a=function(t,e){for(var i=e.length,n=-1;i--;)if(t===e[i]){n=i;break}return n},s=function(t,e,i,n,r){var o,l,c,h;if(r?(n.push(t),r.push(e)):(n=[t],r=[e]),e instanceof Array)for(o=0;o<e.length;o+=1){try{l=t[o],c=e[o]}catch(t){continue}"object"!=typeof c?i&&void 0===c||(t[o]=c):(null!==l&&"object"==typeof l||(l=t[o]=c instanceof Array?[]:{}),-1!==(h=a(c,r))?l=t[o]=n[h]:s(l,c,i,n,r))}else for(o in e){try{l=t[o],c=e[o]}catch(t){continue}null!==c&&"object"==typeof c?"[object Object]"===(h=Object.prototype.toString.call(c))?(null!==l&&"object"==typeof l||(l=t[o]={}),-1!==(h=a(c,r))?l=t[o]=n[h]:s(l,c,i,n,r)):"[object Array]"===h?(null!==l&&l instanceof Array||(l=t[o]=[]),-1!==(h=a(c,r))?l=t[o]=n[h]:s(l,c,i,n,r)):t[o]=c:t[o]=c}return t},l=function(t,e,i){return"object"!=typeof t&&"object"!=typeof e?null:("object"!=typeof e||null===e||("object"!=typeof t&&(t=e instanceof Array?[]:{}),s(t,e,i)),t)},c=function(t){var e={important:!1,str:""};return t?(t=t.toString(),r.test(t)?(t=t.replace(r,""),e.important=!0):(t=t.replace(o,"!imporant"),e.important=!1),e.str=t,e):e},h=function(t,e){var i,n,r,o,a,s,l=0,c=0;for(i in t)if((n=t[i])instanceof Array)for(s=n.length,a=0;a<s;a+=1)"object"==typeof(o=n[a])&&("category"===i?"true"===o.vline?(r=e.component("vline",l,o))&&(d(o,r),l+=1):(r=e.component("category",c,o,s))&&(d(o,r),c+=1):(r=e.component(i,a,o,s))&&(d(o,r),h(o,r)));
41else"object"==typeof n&&(r=e.component(i,null,n))&&(d(n,r),h(n,r))},d=function(t,e){var i,n,r=e.getAll();for(i in r)n=r[i].toString(),((n=c(n)).important||void 0===t[i.toLowerCase()])&&(t[i.toLowerCase()]=n.str)},u=function(t,e){"geo"===e.defaultSeriesType&&p.call(this,t,e)},p=function(t,e){var r,o=t.sender,a=o.getChartData(n.dataFormats.JSON,!0);a.error||((r=a.data.chart.theme)?i.themify(r,o,o.chartType(),a.data,"geo"===e.defaultSeriesType&&"geo"):o.jsVars.themeObject&&o.jsVars.themeObject.dispose())};(t=function(){this.themeStore={}}).prototype={constructor:t,add:function(t){for(var e,i=0,n=t.length;i<n;i+=1)(e=t[i].name)&&(this.themeStore[e]=t[i])},themify:function(t,i,r,o,a){var s,l,c=i.jsVars,h=t.split(","),d=[],f=h.length;if(f){for(l=0;l<f;l+=1){var g;s=this.themeStore;for(var m=/\s/,v=(g=(g=h[l]).replace(/^\s\s*/,"")).length;m.test(g.charAt(--v)););(s=s[g=g.slice(0,v+1)])&&d.push(this.evaluateThemeJSON(s.theme,i,r,a))}d.length?(c.themeObject=new e(d,i,!1,o),this.applyTheme(i),i.addEventListener("chartTypeChanged",p),i.addEventListener("internal.drawstart",u)):n.raiseWarning(i,"14051100501","run","api.themes~themify()",'The theme "'+t+'" requested has not been registered.')}},evaluateThemeJSON:function(t,e,i,n){var r={},o=e.jsVars,a=function(t){var e,i;for(e in t)i=t[e],r[e]=i instanceof Array?l(r[e]||[],i):"object"==typeof i?l(r[e]||{},i):i};return i=i||e.chartType(),o.themeObject&&t!==o.themeObject&&(o.themeObject.dispose(),delete o.themeObject),a(t.base),n&&t[n]&&a(t[n]),i&&t[i]&&a(t[i]),r},applyTheme:function(t){var e=(t=t.jsVars.themeObject).getThemedJSONData().data;e&&h(e,t)}},e=function(t,e,i,n){for(this.themeArray=t,this.themeComponents={},this.base={},this.chartInstance=e,this.isChildInstance=Boolean(i),this.themedData=i?null:l({},n),this.length=t.length,e=0,i=t.length;e<i;e+=1)this.parse(t[e])},e.prototype={constructor:e,pushTheme:function(t){t&&(this.themeArray.push(t),this.parse(t),this.length+=1)},popTheme:function(){},parse:function(t){var i,n,r,o=this.themeComponents,a=this.chartInstance,s=this.base;for(n in t)"string"==typeof t[n]||"number"==typeof t[n]?s[n]?(i=c(t[n]),r=c(s[n]),(i.important||!r.important)&&(s[n]=t[n])):s[n]=t[n]:(o[n]||(o[n]=[]),i=o[n],t[n]instanceof Array?i.push(l([],t[n])):"object"==typeof t[n]?i.push(new e([t[n]],a,!0)):"function"==typeof t[n]&&i.push(t[n]))},merge:function(t){var e,i,n,r=this.base,o=t.base,a=this.themeComponents,s=t.themeComponents;for(n in o)e=c(r[n]),i=c(o[n]),(!e.important||i.important)&&(r[n]=o[n]);for(n in s)a[n]=a[n]?a[n].concat(s[n]):[].concat(s[n]);this.length+=t.length},get:function(t){return this.base[t]},getAll:function(){return l({},this.base)},component:function(t,i,n,r){var o,a,s,l=this.themeComponents,c=this.chartInstance,h=new e([],c,!0);if(!(a=l[t]))return null;for(t=0,l=a.length;t<l;t+=1)"function"==typeof(s=a[t])?(i=i||0,h.pushTheme(s.call(c,i,n,r))):s instanceof Array?(i=i||0,(o=s[i%=o=s.length])instanceof e?h.merge(o):"function"==typeof o?h.pushTheme(o.call(c,i,n,r)):h.pushTheme(o)):s instanceof e?h.merge(s):h.pushTheme(s);return h},getThemedJSONData:function(){return{data:this.themedData}},dispose:function(){var t,e,i=this.themeComponents,n=this.chartInstance;for(t in i)if(e=i[t].length){for(;e--;)i[t][e].dispose&&i[t][e].dispose();delete i[t]}this.isChildInstance||(n.removeEventListener("chartTypeChanged",p),n.removeEventListener("internal.drawstart",u)),this.dataWithoutTheme=this.isChildInstance=this.themeArray=this.base=this.chartInstance=this.themeComponents=null}},i=new t,n.registrars.theme=n.registerTheme=function(t){t&&("[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),i.add(t))},n.addEventListener("beforeDataUpdate",(function(t,e){var r=t.sender,o=n.core.transcodeData(e.data,e.format,n.dataFormats.JSON),a=o.chart&&o.chart.theme;a?i.themify(a,r,r.args.type,o):r.jsVars.themeObject&&(r.jsVars.themeObject.dispose(),delete r.jsVars.themeObject)}))}]),FusionCharts.register("theme",{name:"default",theme:{base:{chart:{labelDisplay:"stagger !important",caption:"Theme Caption \\!important",canvasBgColor:"#56EF22",borderThickness:"5 !important",borderColor:"#E60539",baseFontColor:"#781129"},categories:[{fontColor:"#0F4F40",fontSize:15,category:function(t){return{showLabel:t%2?0:1}},vline:{color:"#000000",thickness:2}}],dataset:[{color:"#8C3146",data:function(t,e){return 8==t&&(e.value=""),{color:32e3>Number(e.value)?"#8C3146":"#FF0000",alpha:"100"}}}],trendlines:[{line:function(t){return t?{color:"#ff0000",thickness:3}:{color:"#ffff00",thickness:3}}}]},pie2d:{chart:{bgColor:"#FF0000"}},msline:{chart:{canvasBgColor:"#ff0000"}},geo:{chart:{canvasBgColor:"#0000ff"}},world:{chart:{canvasBgColor:"#00ff00"}}}}),FusionCharts.register("module",["private","modules.renderer.js-highlightmanager",function(){var t=this.hcLib,e=t.pluckNumber,i=t.toRaphaelColor,n=/^#?[0-9a-f]{6}/i,r=/255,255,255/,o=/FFFFFF/i,a=t.getFirstAlpha,s=function(t){return"#"+("000000"+((t=t.replace("rgba(","").split(","))[0]<<16|t[1]<<8|t[2]).toString(16)).slice(-6)},l=t.pluck,c={},h={},d=function(t){return/rgb/.test(t)?(t=t.match(/[\d\.]+\)/g),parseFloat(t&&t[0])):t.FCcolor?a(t.FCcolor.alpha):void 0},u=function(t){var e,i,n,r,o={};for(e=0,i=(t=t.split(",")).length;e<i;e++)r=(n=t[e].split("="))[0],n=n[1],o[r]=n;return o},p=function(t,e,r){var o,a=e.color;if(/rgb/.test(t))e=l(e.alpha,100*d(t)),/rgb/.test(a)&&(a=s(a)),o=r?i({color:l(a,s(t)),alpha:e}):t;else if(t.FCcolor){if(r){var c,h;for(c in r={},t=t.FCcolor)if("alpha"===c){if(a=c,e.alpha){o=t[c];var u=e.alpha,p=void 0,f=void 0,g=[];if("number"==typeof o)o=u;else{for(f=o.split&&o.split(","),p=0;p<f.length;p++)g.push(u);o=g.join()}}else o=t[c];r[a]=o}else"color"===c?(-1!==t[c].indexOf(",")&&e.color&&(h=e.color+","+t[c].substring(t[c].indexOf(",")+1)),r[c]=l(h||e.color,t[c])):r[c]=t[c];e=i(r)}else e=i(t.FCcolor);o=e}else n.test(t.color||t)&&(o=i(r?{color:l(e.color,t.color,t),alpha:l(e.alpha,t.alpha)}:{color:t.color||t,alpha:t.alpha}));return o},f=function(t,e,n,r){var o,a;t.marker?(o=0!==parseInt(d(t.marker.fillColor))?p(t.marker.fillColor,{color:r.anchorbgcolor,alpha:r.anchorbgalpha||r.alpha},n):i(t.marker.fillColor),a=0!==parseInt(d(t.marker.lineColor))?p(t.marker.lineColor,{color:r.anchorbordercolor||r.color,alpha:r.anchorborderalpha||r.alpha},n):i(t.marker.lineColor)):t.anchors&&(o=p({color:t.anchors.fill,alpha:100*t.anchors["fill-opacity"]},{color:r.anchorbgcolor,alpha:r.anchorbgalpha||r.alpha},n),a=p({color:t.anchors.stroke,alpha:100*t.anchors["stroke-opacity"]},{color:r.anchorbordercolor||r.color,alpha:r.anchorborderalpha||r.alpha},n)),e&&e.attr({stroke:a,fill:o})},g=function(t,i,n,r){var o,a,s,l,c;for((a=t.lineColor||t.attrs||t.color)&&(a.graphics?o=p({color:a.graphics.stroke,alpha:100*a.graphics["stroke-opacity"]},n,i):(a.FCcolor&&r&&(r.alpha=r.color||0!==e(a.FCcolor.alpha)?r.alpha:"0"),o=p(a,r||n,i)),s=d(o)
41),t.fillColor&&(c=p(t.fillColor,n,i)),r=t.plot.components&&t.plot.components.data||t.plot.items,(a=t.plot.graphic||t.plot.graphics.lineElement)&&a.attr({stroke:o,fill:c||"none","drop-shadow":a.attrs["drop-shadow"]&&"none"!==a.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+s+")",a.attrs[4],a.attrs["drop-shadow"][5]]:"none"}),a=0;a<r.length;a++)c=r[a].graphics?r[a].graphics&&r[a].graphics.connector:r[a].connector,r[a-1]&&(l=r[a-1].config||t.plot.data[a-1])&&(l.color||l.alpha)&&(o=l.color.FCcolor?l.color:{color:l.color,alpha:l.alpha},o=p(o,n,i)),c&&c.attr({stroke:o,"drop-shadow":c.attrs["drop-shadow"]&&"none"!==c.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+s+")",c.attrs[4],c.attrs["drop-shadow"][5]]:"none"})},m=function(t,e,i,n,r){var o,a;for(a=0;a<t.length;a++)o=e.errorValue[a].errorBarColor||r,o=p(o,i,n),t[a].attr({stroke:o})},v=function(t,e,i,n){var r,o=[];r=p(e.fill,{color:i.valuefontcolor,alpha:i.alpha},n),e["text-bound"]&&(o[0]=e["text-bound"][0]&&p(e["text-bound"][0],{color:i.valuebgcolor||e["text-bound"][0],alpha:i.alpha},n),o[1]=e["text-bound"][1]&&p(e["text-bound"][1],{color:i.valuebordercolor||e["text-bound"][1],alpha:i.alpha},n),o.push(e["text-bound"][2],e["text-bound"][3],e["text-bound"][4])),t.attr({fill:r,"text-bound":o})},b=function(t,e,a,s){var c=e.symbolColor,h=e.symbolStroke,d=e.itemTextColor,u=t.legendItemText,f=t.legendItemSymbol;t=t.legendItemLine,e=e.itemLineColor,t&&e&&(n.test(e)?t.attr({stroke:s?i({color:l(a.color,e),alpha:a.alpha}):e}):(e=p(e,a,s),t.attr({stroke:e}))),f&&(c&&(c=c.match(n)?s&&!o.test(c)?i({color:a.color||c,alpha:a.alpha}):c:r.test(c)?c:p(c,a,s)),h&&(h=n.test(h)?s&&!o.test(h)?i({color:a.color||h,alpha:a.alpha}):h:s&&!r.test(h)&&a.color?i({color:a.color,alpha:a.alpha}):h),f.attr({fill:c||"none",stroke:h||"none"})),u&&u.attr({fill:i({color:d,alpha:s?a.alpha:100})})},y=function(t,i,n,r){var o;i.marker&&(o=r?n:e(i.marker.imageAlpha,100)),t.attr({opacity:o/100})},x=function(t,e,i){var n,r,o,a,s,l;if(t=u(t),!i)for(t.alpha=t.alpha||30,i={color:t.bordercolor,alpha:t.borderalpha||t.alpha},this.plot.legend&&this.plot.legend.elements&&!0===this.plot.visible&&b(this.plot.legend.elements,this.plot.legend,t,e),g(this,e,t,i),o=0,s=(r=this.plot.items.length?this.plot.items:this.plot.components.data).length;o<s;o++)i=r[o].graphic||r[o].graphics&&r[o].graphics.element,r[o]&&r[o].graphics?(n={marker:{fillColor:{FCcolor:{alpha:(n=r[o].config.anchorProps).bgAlpha,color:n.bgColor}},lineColor:{FCcolor:{alpha:n.borderAlpha,color:n.borderColor}},imageAlpha:n.imageAlpha,imageScale:n.imageScale}},a=r[o].graphics.image):(n=this.data[o],a=r[o].graphicImage),a&&y(a,n,t.alpha,e),(l=r[o].dataLabel||r[o].graphics&&r[o].graphics.label)&&(e&&(c.fill=l.attrs.fill,c["text-bound"]=l.attrs["text-bound"]),a=e?l.attrs:c,v(l,a,t,e)),i&&f(n,i,e,t)},w=function(t,e,n){var r,o,s={};s=u(t);t=this.plot.chart&&this.plot.chart.datasets[0].Pie3DManager,!1===n&&(s.alpha||(s.alpha=30),n={color:s.bordercolor,alpha:s.alpha},this.plot.legend&&this.plot.legend.elements&&b(this.plot.legend.elements,this.plot.legend,s,e),this.plot.dataLabel&&(e&&(c.fill=this.plot.dataLabel.attrs.fill,c["text-bound"]=this.plot.dataLabel.attrs["text-bound"]),r=e?this.plot.dataLabel.attrs:c,v(this.plot.dataLabel,r,s,e)),this.plot.connector&&(r=this.plot.connector,e&&(h=r.attrs.stroke),o=e?r.attrs.stroke.replace(/[\d\.]+\)/g,s.alpha/100+")"):h,r.attr({stroke:o})),t?t.setAttrs(t.pointElemStore[this.plot.index],this,s,e):(t=this.plot.chart&&this.plot.chart.logic.getPointColor,s.color?t?((s=e?t(s.color,l(s.alpha,a(this.color.FCcolor.alpha)),this.radius3D):this.color).FCcolor.cx=this.color.FCcolor.cx,s.FCcolor.cy=this.color.FCcolor.cy,s.FCcolor.r=this.color.FCcolor.r,s.FCcolor.ratio=this.color.FCcolor.ratio,s=i(s)):s=p(this,s,e):s=p(this.color.FCcolor?this.color:this,s,e),e=p(this.borderColor,n,e),n=this.plot.graphic,this.plot&&this.plot.graphic&&this.plot.graphic.attr({fill:s,stroke:e,"drop-shadow":n.attrs["drop-shadow"]&&"none"!==n.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+d(s)+")",n.attrs[4],n.attrs["drop-shadow"][5]]:"none"})))},_=function(t,e,i){var n,r,o,a;if(t=u(t),!i)for(t.alpha||(t.alpha=30),(this.attrs&&this.attrs.graphics||this.lineColor||this.color)&&g(this,e,t),this.plot.legend&&this.plot.legend.elements&&!0===this.plot.visible&&b(this.plot.legend.elements,this.plot.legend,t,e),o=this.plot.anchors||this.plot.components&&this.plot.components.data||this.plot.items,i=0;i<o.length;i++)r=o[i],n=this.data[i],r&&((a=o[i].graphicImage?o[i].graphicImage:o[i].graphics&&o[i].graphics.image)&&y(a,n,t.alpha,e),r.errorBars&&m(r.errorBars,n,t,e,this.errorBarColor),this.attrs&&this.attrs.anchors?f(this.attrs,r,e,t):(a=r.graphic||r.graphics&&r.graphics.element)&&f(n,a,e,t),r=r.dataLabel||r.graphics&&r.graphics.label)&&(e&&(c.fill=r.attrs.fill,c["text-bound"]=r.attrs["text-bound"]),n=e?r.attrs:c,v(r,n,t,e))},C=function(){this.effectStore={}},S=new C;C.prototype.add=function(t){this.effectStore[t.name]=t},C.prototype.applyEffect=function(t,i,n){var r,o,a,s,l,c=t.definition.dataset||t.definition.categories?t.logic.hcJSON.series:t.logic.hcJSON.series[0].data,h=this.effectStore,d=t.options.chart.defaultSeriesType,u=t.definition.chart.plothighlighteffect&&t.definition.chart.plothighlighteffect.toLowerCase();if(t="",u&&(l=(u=u.replace(/\s+/g,"").split("|"))[0],t=u[1]||""),l&&h[l])for(r=0,s=c.length;r<s;r++)d=(u=c[r]).type||d,u.plot&&"undefined"!==(o=e(u.plot.originalIndex,u.plot.index))&&(a=o===i,h[l][d]?h[l][d].call(u,t,n,a):h[l].default.call(u,t,n,a))},this.registrars.highlighteffect=function(t){t&&S.add(t)},this.addEventListener("legenditemrollover",(function(t,e){var i=t.sender.jsVars.hcObj,n=i.options.chart.defaultSeriesType;"candlestick"===n&&"gantt"===n||S.applyEffect(i,e.datasetIndex,!0)})),this.addEventListener("legenditemrollout",(function(t,e){var i=t.sender.jsVars.hcObj,n=i.options.chart.defaultSeriesType;"candlestick"===n&&"gantt"===n||S.applyEffect(i,e.datasetIndex,!1)})),FusionCharts.register("highlightEffect",{name:"fadeout",area:x,radar:x,bubble:function(t,e,n){var r,o,s;if(t=u(t),!1===n)for(t.alpha||(t.alpha=30),this.plot.legend&&this.plot.legend.elements&&!0===this.plot.visible&&b(this.plot.legend.elements,this.plot.legend,t,e),n=0;n<this.plot.items.length;n++)o=this.plot.items[n],r=this.data[n],o&&o.dataLabel&&(e&&(c.fill=o.dataLabel.attrs.fill,c["text-bound"]=o.dataLabel.attrs["text-bound"]),s=e?o.dataLabel.attrs:c,v(o.dataLabel,s,t,e)),this.is3d&&t.color?(r=e?this.getPointColor(t.color,l(t.alpha,a(r.marker.fillColor.FCcolor.alpha))):r.marker.fillColor,o.graphic&&o.graphic.attr({fill:i(r)})):(t.anchorbgcolor=t.color,t.anchorbordercolor=t.bordercolor,o&&o.graphic&&f(r,o.graphic,e,t))},pie:w,line:_,spline:_,areaspline:x,pie3d:w,zoomline:_,funnel:w,pyramid:w,scatter:function(t,e,
41i){var n,r,o;if(t=u(t),!1===i)for(t.alpha||(t.alpha=30),this.plot.graphic&&g(this,e,t),this.plot.legend&&this.plot.legend.elements&&!0===this.plot.visible&&b(this.plot.legend.elements,this.plot.legend,t,e),o=this.plot,i=0;i<o.items.length;i++)r=o.items[i],n=o.data[i],r.errorBars&&m(r.errorBars,n,t,e),n.marker&&f(n,r.graphic,e,t),r.dataLabel&&(e&&(c.fill=r.dataLabel.attrs.fill,c["text-bound"]=r.dataLabel.attrs["text-bound"]),n=e?r.dataLabel.attrs:c,v(r.dataLabel,n,t,e))},heatmap:function(t,e,n){var r,o,a,h,p,f,g;if(t=u(t),!n)for(t.alpha||(t.alpha=30),f={color:t.bordercolor,alpha:t.alpha
42},this.plot.legend&&this.plot.legend.elements&&!0===this.plot.visible&&b(this.plot.legend.elements,this.plot.legend,t,e),h=0,p=this.data.length;h<p;h++){if(r=this.data[h],n=(o=this.plot.items[h]).graphic,o.dataLabels)for(g=0;g<o.dataLabels.length;g++)e&&0===g&&(c.fill=o.dataLabels[g].attrs.fill,c["text-bound"]=o.dataLabels[g].attrs["text-bound"]),a=e?o.dataLabels[g].attrs:c,v(o.dataLabels[g],a,t,e);o=d(r.color),r=s(r.color),a=t.bordercolor?i(f):this.borderColor,t.color&&-1===t.color.indexOf("#")&&(t.color="#"+t.color),n.attr({fill:e?l(t.color,r):r,opacity:e?l(t.alpha/100,o):o,stroke:e?a:this.borderColor})}},boxandwhisker2d:function(e,n,r){var o,a,l,h,f,g;if(e=u(e),!1===r)for(e.alpha||(e.alpha=30),this.plot.legend&&this.plot.legend.elements&&!0===this.plot.visible&&b(this.plot.legend.elements,this.plot.legend,e,n),r=0,o=this.data.length;r<o;r++){for(a=this.data[r],l=this.plot.items[r],(h=this.plot.items.displayValues.medianValues&&this.plot.items.displayValues.medianValues[r])&&(n&&(c.fill=h.attrs.fill,c["text-bound"]=h.attrs["text-bound"]),f=n?h.attrs:c,v(h,f,e,n)),h=l.errorValues,g=0;g<h.length;g++)n&&(c.fill=h[g].attrs.fill,c["text-bound"]=h[g].attrs["text-bound"]),f=n?h[g].attrs:c,v(h[g],f,e,n);f=e,h=n,g=this.isRoundEdges;var m={},y={},x=m=y=void 0,w=void 0,_=void 0,C=void 0,S=void 0,k=void 0,A=void 0,T=void 0;h?(y=t.graphics.getColumnColor(f.color||a.color.FCcolor.color,f.alpha.toString(),a.color.FCcolor.ratio,a.color.FCcolor.angle,g,f.bordercolor||s(a.upperBoxBorder.color),f.borderalpha&&f.borderalpha.toString()||(100*d(a.lowerBoxBorder.color)).toString()),y=i(y[0]),m=t.graphics.getColumnColor(f.color||a.lowerboxColor.FCcolor.color,f.alpha.toString(),a.lowerboxColor.FCcolor.ratio,a.lowerboxColor.FCcolor.angle,g,f.bordercolor||s(a.lowerBoxBorder.color),f.borderalpha&&f.borderalpha.toString()||(100*d(a.lowerBoxBorder.color)).toString()),m=i(m[0]),x=p(a.errorValue[0].errorBarColor,f,h),w=p(a.errorValue[1].errorBarColor,f,h),_=p(a.median.color,f,h),k=p(a.lowerQuartile.color,f,h),A=p(a.upperQuartile.color,f,h)):(y=i(a.color),m=i(a.lowerboxColor),_=a.median.color,x=a.errorValue[0].errorBarColor,w=a.errorValue[1].errorBarColor,C=a.upperBoxBorder.color,S=a.lowerBoxBorder.color,A=a.upperQuartile.color,k=a.lowerQuartile.color),(T=l.upperBox).attr({fill:y,"drop-shadow":T.attrs["drop-shadow"]&&"none"!==T.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+d(y)+")",T.attrs[4],T.attrs["drop-shadow"][5]]:"none"}),(T=l.lowerBox).attr({fill:m,"drop-shadow":T.attrs["drop-shadow"]&&"none"!==T.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+d(m)+")",T.attrs[4],T.attrs["drop-shadow"][5]]:"none"}),(T=l.errorBars&&l.errorBars[0]).attr({stroke:x,"drop-shadow":T.attrs["drop-shadow"]&&"none"!==T.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+d(x)+")",T.attrs[4],T.attrs["drop-shadow"][5]]:"none"}),(T=l.errorBars&&l.errorBars[1]).attr({stroke:w,"drop-shadow":T.attrs["drop-shadow"]&&"none"!==T.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+d(w)+")",T.attrs[4],T.attrs["drop-shadow"][5]]:"none"}),(T=l.lowerBoxBorder).attr({stroke:S}),l.upperBoxBorder&&l.upperBoxBorder.attr({stroke:C}),l.lowerQuartile&&l.lowerQuartile.attr({stroke:k}),l.upperQuartile&&l.upperQuartile.attr({stroke:A}),l.medianBorder&&l.medianBorder.attr({stroke:_})}},default:function(n,r,o){var a,s,l,h,p,f,g,y;n=u(n),g="";var x,w=t.graphics.getColumnColor;if(!1===o)for(n.alpha||(n.alpha="30"),o=n.borderalpha||n.alpha,this.plot.legend&&this.plot.legend.elements&&!0===this.plot.visible&&b(this.plot.legend.elements,this.plot.legend,n,r),l=0,h=(x=this.plot.items.length?this.plot.items:this.plot.components.data).length;l<h;l++)s=x[l],this.plot.components?(a={color:x[l].config.colorArr[0],borderColor:x[l].config.colorArr[1]},f=this.plot.conf.isRoundEdges):f=(a=this.data[l]).isRoundEdges,s&&((g=s.dataLabel||s.graphics&&s.graphics.label)&&(r&&(c.fill=g.attrs.fill,c["text-bound"]=g.attrs["text-bound"]),p=r?g.attrs:c,v(g,p,n,r)),s.errorBars&&m(s.errorBars,a,n,r,this.errorBarColor),(s=s.graphic||s.graphics&&s.graphics.element)&&(g=a.color.FCcolor.color,p=o,this.is3d&&"0"===a.borderColor.FCcolor.alpha&&(p=a.borderColor.FCcolor.alpha),g=-1!==(y=g.indexOf(","))&&n.color?n.color+a.color.FCcolor.color.substring(y):n.color||g,0===e(a.borderColor.FCcolor.alpha)&&
42(p="0"),f=r?w(g,n.alpha,a.color.FCcolor.ratio,a.color.FCcolor.angle,f,n.bordercolor||a.borderColor.FCcolor.color,p,this.isBar,this.is3d):[a.color,a.borderColor],a=i(f[0]),f=i(f[1]),s.attr({stroke:f,fill:a,"drop-shadow":s.attrs["drop-shadow"]&&"none"!==s.attrs["drop-shadow"]?[1,1,3,"rgba(64,64,64,"+d(a)+")",s.attrs[4],s.attrs["drop-shadow"][5]]:"none"})))}})}]),FusionCharts.register("module",["private","modules.renderer.js-charts",function(){function t(t){var e={left:t.offsetLeft,top:t.offsetTop};for(t=t.offsetParent;t;)e.left+=t.offsetLeft,e.top+=t.offsetTop,t!==d.body&&t!==d.documentElement&&(e.left-=t.scrollLeft,e.top-=t.scrollTop),t=t.offsetParent;return e}function e(t,e){for(var i=[],n=0,r=t.length;n<r;n++)i[n]=e.call(t[n],t[n],n,t);return i}function i(t,e){var i=e?360:K;return 0>(t=(t||0)%i)?i+t:t}function n(t,e){return t<=X?t:e<=X?e:e>t?0:e}function r(t,e,i,n,r){return N((e-i[1]-n.top)/r,t-i[0]-n.left)}function o(t,e,i,n,r,o,a,s,l,c){"object"==typeof t&&(e=t.y,i=t.r,n=t.innerR,r=t.radiusYFactor,o=t.depth,a=t.seriesGroup,s=t.renderer,t=t.x),(0>r||1<=r)&&(r=.6),t=t||0,e=e||0,i=i||1,n=n||0,o=o||0,this.renderer=s,this.hasOnePoint=l,this.use3DLighting=c,this.cx=t,this.cy=e,this.rx=i,this.ry=i*r,this.radiusYFactor=r,this.isDoughnut=0<n,this.innerRx=n,this.innerRy=n*r,this.depth=o,this.leftX=t-i,this.rightX=t+i,this.leftInnerX=t-n,this.rightInnerX=t+n,this.depthY=e+o,this.topY=e-this.ry,this.bottomY=this.depthY+this.ry,this.bottomBorderGroup=s.group("bottom-border",a).attr({transform:"t0,"+o}),this.outerBackGroup=s.group("outer-back-Side",a),this.slicingWallsBackGroup=s.group("slicingWalls-back-Side",a),this.innerBackGroup=s.group("inner-back-Side",a),this.innerFrontGroup=s.group("inner-front-Side",a),this.slicingWallsFrontGroup=s.group("slicingWalls-front-Side",a),this.topGroup=s.group("top-Side",a),this.moveCmdArr=["M"],this.lineCmdArr=["L"],this.closeCmdArr=["Z"],this.centerPoint=[t,e],this.leftPoint=[this.leftX,e],this.topPoint=[t,this.topY],this.rightPoint=[this.rightX,e],this.bottomPoint=[t,e+this.ry],this.leftDepthPoint=[this.leftX,this.depthY],this.rightDepthPoint=[this.rightX,this.depthY],this.leftInnerPoint=[this.leftInnerX,e],this.rightInnerPoint=[this.rightInnerX,e],this.leftInnerDepthPoint=[this.leftInnerX,this.depthY],this.rightInnerDepthPoint=[this.rightInnerX,this.depthY],this.pointElemStore=[],this.slicingWallsArr=[],t=["A",this.rx,this.ry,0,0,1,this.rightX,e],i=["A",this.rx,this.ry,0,0,1,this.leftX,e],n=["A",this.rx,this.ry,0,0,0,this.rightX,this.depthY],r=["A",this.rx,this.ry,0,0,0,this.leftX,this.depthY],o=["A",this.innerRx,this.innerRy,0,0,0,this.rightInnerX,e],e=["A",this.innerRx,this.innerRy,0,0,0,this.leftInnerX,e],a=["A",this.innerRx,this.innerRy,0,0,1,this.rightInnerX,this.depthY],s=["A",this.innerRx,this.innerRy,0,0,1,this.leftInnerX,this.depthY],this.isDoughnut?(this.topBorderPath=this.moveCmdArr.concat(this.leftPoint,t,i,this.moveCmdArr,this.leftInnerPoint,o,e),this.topPath=this.moveCmdArr.concat(this.leftPoint,t,i,this.lineCmdArr,this.leftInnerPoint,o,e,this.closeCmdArr),this.innerFrontPath=this.moveCmdArr.concat(this.leftInnerPoint,o,this.lineCmdArr,this.rightInnerDepthPoint,s,this.closeCmdArr),this.innerBackPath=this.moveCmdArr.concat(this.rightInnerPoint,e,this.lineCmdArr,this.leftInnerDepthPoint,a,this.closeCmdArr)):this.topBorderPath=this.topPath=this.moveCmdArr.concat(this.leftPoint,t,i,this.closeCmdArr),this.outerBackPath=this.moveCmdArr.concat(this.leftPoint,t,this.lineCmdArr,this.rightDepthPoint,r,this.closeCmdArr),this.outerFrontPath=this.moveCmdArr.concat(this.rightPoint,i,this.lineCmdArr,this.leftDepthPoint,n,this.closeCmdArr),this.clipPathforOuter=["M",this.leftX,this.topY,"L",this.rightX,this.topY,this.rightX,this.bottomY,this.leftX,this.bottomY,"Z"],this.clipPathforInner=["M",this.leftInnerX,this.topY,"L",this.rightInnerX,this.topY,this.rightInnerX,this.bottomY,this.leftInnerX,this.bottomY,"Z"],this.clipPathforNoClip=["M",this.leftInnerX,this.topY,"L",this.leftInnerX,this.bottomY,"Z"],this.colorObjs=[]}var a,s=this,l=s.hcLib,c=l.Raphael,h=s.window,d=h.document,u=l.BLANKSTRING,p=l.createTrendLine,f=l.pluck,g=l.getValidValue,m=l.parseTooltext,v=l.pluckNumber,b=l.getFirstValue,y=l.getDefinedColor,x=l.parseUnsafeString,w=l.FC_CONFIG_STRING,_=l.extend2,C=l.getDashStyle,S=l.toRaphaelColor,k=l.toPrecision,A=l.stubFN,T=l.hasSVG,L=l.each,D=l.TOUC
42H_THRESHOLD_PIXELS,E=l.CLICK_THRESHOLD_PIXELS,P=l.plotEventHandler,I=l.hasTouch?D:E,M="rgba(192,192,192,"+(l.isIE?.002:1e-6)+")",O=8===h.document.documentMode?"visible":"",F=Math,R=F.sin,B=F.cos,N=F.atan2,j=F.round,$=F.min,V=F.max,H=F.abs,W=F.PI,z=F.ceil,q=F.floor,U=F.sqrt,G=W/180,Y=180/W,X=Math.PI,J=X/2,K=2*X,Z=X+J,Q=l.graphics.getColumnColor,tt=l.getFirstColor,et=l.setLineHeight,it=l.pluckFontSize,nt=l.getFirstAlpha,rt=l.graphics.getDarkColor,ot=l.graphics.getLightColor,at=l.graphics.convertColor,st=l.COLOR_TRANSPARENT,lt=l.POSITION_CENTER,ct=l.POSITION_TOP,ht=l.POSITION_BOTTOM,dt=l.POSITION_RIGHT,ut=l.POSITION_LEFT,pt=l.parsexAxisStyles,ft=l.hashify,gt=l.chartAPI,mt=l.graphics.mapSymbolName,vt=(D=gt.singleseries,l.COMMASTRING),bt=l.ZEROSTRING,yt=l.ONESTRING,xt=l.HUNDREDSTRING,wt=l.PXSTRING,_t=l.COMMASPACE,Ct=!/fusioncharts\.com$/i.test(h.location.hostname);gt("column2d",{standaloneInit:!0,friendlyName:"Column Chart",creditLabel:Ct,rendererId:"cartesian"},gt.column2dbase),gt("column3d",{friendlyName:"3D Column Chart",defaultSeriesType:"column3d",defaultPlotShadow:1,is3D:!0,fireGroupEvent:!0,defaultZeroPlaneHighlighted:!1},gt.column2d),gt("bar2d",{friendlyName:"Bar Chart",isBar:!0,defaultSeriesType:"bar",spaceManager:gt.barbase},gt.column2d),gt("bar3d",{friendlyName:"3D Bar Chart",defaultSeriesType:"bar3d",defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,defaultZeroPlaneHighlighted:!1},gt.bar2d),gt("line",{friendlyName:"Line Chart",standaloneInit:!0,creditLabel:Ct,rendererId:"cartesian"},gt.linebase),gt("area2d",{friendlyName:"Area Chart",standaloneInit:!0,creditLabel:Ct,rendererId:"cartesian"},gt.area2dbase),gt("pie2d",{friendlyName:"Pie Chart",standaloneInit:!0,defaultSeriesType:"pie",defaultPlotShadow:1,reverseLegend:1,alignCaptionWithCanvas:0,sliceOnLegendClick:!0,rendererId:"pie",point:function(t,e,i,n,r){t=r[w];var o,a,s,l,c,h,d,p,b,y,_,S,k,A,T,L,D,E,P,I,M=this.colorManager,O=t.is3d,F=v(n.plotborderthickness),R=v(F,O?.1:1),B=v(n.enablemultislicing,1),N=v(n.use3dlighting,1),j=N?v(n.radius3d,n["3dradius"],90):100,$=v(n.showzeropies,1),V=v(n.showpercentintooltip,1),H=v(n.showlabels,1),W=v(n.showvalues,1),z=v(n.showpercentvalues,n.showpercentagevalues,0),q=f(n.tooltipsepchar,n.hovercapsepchar,_t),U=f(n.labelsepchar,q),G=f(n.plotbordercolor,n.piebordercolor),Y=r[w].numberFormatter,X=i.length,J=v(n.plotborderdashed,0),K=v(n.plotborderdashlen,5),Z=v(n.plotborderdashgap,4),Q=v(n.showvalueinlegend,0),et=v(n.showlabelinlegend,1),it=v(n.valuebeforelabelinlegend,0),nt=v(n.showvalueaspercentinlegend,1),rt=v(n.reverseplotorder,0),st=f(n.legendsepchar,", "),lt=r.plotOptions.series.dataLabels.style,ct=0,ht=[],dt=-1;for(D=e.centerLabelConfig={label:x(f(n.defaultcenterlabel,"")),font:f(n.centerlabelfont,lt.fontFamily),fontSize:v(n.centerlabelfontsize,parseInt(lt.fontSize,10)),color:tt(f(n.centerlabelcolor,n.valuefontcolor,t.inCanvasStyle.color,"555555")),alpha:v(n.centerlabelalpha,100),bold:v(n.centerlabelbold,lt.fontWeight),italic:v(n.centerlabelitalic,lt.style),bgColor:f(n.centerlabelbgcolor,""),bgAlpha:v(n.centerlabelbgalpha,100),borderColor:f(n.centerlabelbordercolor,lt.borderColor),borderAlpha:v(n.centerlabelborderalpha,100),borderThickness:v(n.centerlabelborderthickness,lt.borderThickness),borderRadius:v(n.centerlabelborderradius,lt.borderRadius),textPadding:v(n.centerlabeltextpadding,lt.borderPadding),padding:v(n.centerlabelpadding,2),bgOval:v(n.centerlabelbgoval,0),shadow:v(n.showcenterlabelshadow,
420),hoverColor:n.centerlabelhovercolor&&tt(f(n.centerlabelhovercolor)),hoverAlpha:v(n.centerlabelhoveralpha),toolText:x(f(n.centerlabeltooltext,""))},100<j&&(j=100),0>j&&(j=0),v(n.showlegend,0)&&(r.legend.enabled=!0,r.legend.reversed=!Boolean(v(n.reverselegend,0)),e.showInLegend=!0),a=0;a<X;a+=1)l=i[a],null===(s=Y.getCleanValue(l.value,!0))||!$&&0===s||(ht.push(l),ct+=s);for(0===ct&&(ht=[]),e.enableRotation=1<ht.length?v(n.enablerotation,1):0,e.alphaAnimation=v(n.alphaanimation,1),e.is3D=O,e.placeLabelsInside=n.placevaluesinside,e.use3DLighting=N,e.pieYScale=v(n.pieyscale,40),1>e.pieYScale&&(e.pieYScale=1),100<=e.pieYScale&&(e.pieYScale=80),e.pieYScale/=100,e.pieSliceDepth=v(n.pieslicedepth,15),1>e.pieSliceDepth&&(e.pieSliceDepth=1),e.managedPieSliceDepth=e.pieSliceDepth,e.enableMultiSlicing=!!B,O&&n.showplotborder!=yt&&!F&&(e.showBorderEffect=1),a=ht.length-1;0<=a;--a)l=ht[a],s=Y.getCleanValue(l.value,!0),o=x(f(l.label,l.name,u)),X=f(l.color,M.getPlotColor(a)),h=f(l.alpha,n.plotfillalpha),d=f(l.bordercolor,G),p=f(l.borderalpha,n.plotborderalpha,n.pieborderalpha),O&&(d||void 0!==p)&&(e.showBorderEffect=0),d=f(d,ot(X,O?90:25)).split(vt)[0],p=n.showplotborder==bt?bt:f(p,h,"80"),h=f(h,xt),$={opacity:Math.max(h,p)/100},(i=Boolean(v(l.issliced,n.issliced,0)))&&(B||(-1!==dt&&(e.data[ht.length-dt-1].sliced=!1),dt=a),t.preSliced=i),F=(T=v(l.dashed,J))?C(f(l.dashlen,K),f(l.dashgap,Z),R):"none",c=g(x(f(l.tooltext,t.tooltext))),_=Y.percentValue(s/ct*100),S=Y.dataLabels(s)||u,y=1===v(l.showlabel,H)?o:u,b=1===(k=v(l.showvalue,W))?1===z?_:S:u,A=g(x(l.displayvalue)),I=f(A,o+U+(z?_:S),u),b=void 0!==A&&k?A:b!==u&&y!==u?y+U+b:f(y,b),void 0!==c?c=m(c,[1,2,3,5,6,7,14,24,25],{formattedValue:S,label:o,yaxisName:x(n.yaxisname),xaxisName:x(n.xaxisname),percentValue:_,sum:Y.dataLabels(ct),unformattedSum:ct},l,n):(k=V?_:S,c=(c=o)!=u?c+q+k:k),k=et?o:u,Q&&(L=nt?Y.legendPercentValue(s/ct*100):Y.legendValue(s),k=it?L+(k&&st+k):(k&&k+st)+L),T=this.pointHoverOptions(l,e,{plotType:"pie",use3DLighting:N,color:X,alpha:h,borderWidth:R,borderColor:d,borderAlpha:p,borderDashed:T,borderDashGap:f(l.dashgap,Z),borderDashLen:v(l.dashlen,K),radius3D:j,shadow:$}),o={label:f((E=l.centerlabel||n.centerlabel)&&this.replaceMacros(E,["\\$value","\\$percentValue","\\$displayValue","\\$label"],[S,_,void 0===A?"":A,o]),""),font:D.font,fontSize:v(l.centerlabelfontsize,D.fontSize),color:tt(f(l.centerlabelcolor,D.color)),alpha:v(l.centerlabelalpha,D.alpha),bold:v(l.centerlabelbold,D.bold),italic:v(l.centerlabelitalic,D.italic),bgColor:f(l.centerlabelbgcolor,D.bgColor),bgAlpha:v(l.centerlabelbgalpha,D.bgAlpha),borderColor:f(l.centerlabelbordercolor,D.borderColor),borderAlpha:v(l.centerlabelborderalpha,D.borderAlpha),borderThickness:D.borderThickness,borderRadius:D.borderRadius,textPadding:D.textPadding,padding:D.padding,bgOval:D.bgOval,shadow:D.shadow,hoverColor:(P=f(l.centerlabelhovercolor,D.hoverColor))&&tt(P),hoverAlpha:v(l.centerlabelhoveralpha,D.hoverAlpha),toolText:f(l.centerlabeltooltext,"")},e.data.push({displayValue:b,displayValueArgs:I,style:pt(l,{},n,lt,X),categoryLabel:y,showInLegend:k!==u,y:s,name:k,legendCosmetics:this.parseLegendOptions(n,l),shadow:$,toolText:c,color:this.getPointColor(X,h,j),_3dAlpha:h,borderColor:at(d,p),borderWidth:R,link:g(l.link),sliced:i,dashStyle:F,doNotSlice:f(n.enableslicing,yt)!=yt,hoverEffects:T.enabled&&T.options,rolloverProperties:T.enabled&&T.rolloverOptions,centerLabelConfig:o,radius3D:j});return rt&&(e.reversePlotOrder=!0,e.data&&e.data.reverse()),e.valueTotal=ct,r.legend.enabled=n.showlegend===yt,e.startAngle=v(n.startingangle,0),r.chart.startingAngle=f(1<ht.length?n.startingangle:0,0),e},replaceMacros:function(t,e,i){for(var n,r=e.length||0;r--;)n=new RegExp(e[r],"gi"),t=t.replace(n,i[r]);return t},containsMacro:function(t,e){for(var i,n=e.length||0;n--;)if(i=new RegExp(e[n],"gi"),i=t.match(i))return!0;return!1},getPointColor:function(t,e,i){var n,r;return t=tt(t),e=nt(e),100>i&&T?(n=Math.floor(85*(100-.35*i))/100,n=rt(t,n),r=Math.floor(50*(100+i))/100,e={FCcolor:{color:(t=ot(t,r))+vt+n,alpha:e+vt+e,ratio:i+","+(100-i),radialGradient:!0,gradientUnits:"userSpaceOnUse"}}):e={FCcolor:{color:t+vt+t,alpha:e+vt+e,ratio:"0,100"}},e},configureAxis:function(t,e){var i,n,r=0,o=t[w],a=e.chart,s=t.xAxis.labels.style;if(i=(i=b(a.valuebordercolor,u))?at(i,v(a.valueborderalpha,a.valuealpha,100)):u,s={fontFamily:f(a.valuefont,s.fontFamily),fontSize:f(a.valuefontsize,parseInt(s.fontSize,10))+wt,lineHeight:s.lineHeight,color:at(f(a.valuefontcolor,s.color),v(
42a.valuefontalpha,a.valuealpha,100)),fontWeight:v(a.valuefontbold)?"bold":"normal",fontStyle:v(a.valuefontitalic)?"italic":"normal",border:i||a.valuebgcolor?v(a.valueborderthickness,1)+"px solid":void 0,borderColor:i,borderThickness:v(a.valueborderthickness,1),borderPadding:v(a.valueborderpadding,2),borderRadius:v(a.valueborderradius,0),backgroundColor:a.valuebgcolor?at(a.valuebgcolor,v(a.valuebgalpha,a.valuealpha,100)):u,borderDash:v(a.valueborderdashed,0)?C(v(a.valueborderdashlen,4),v(a.valueborderdashgap,2),v(a.valueborderthickness,1)):"none"},t.plotOptions.series.dataLabels.style=s,delete o.x,delete o[0],delete o[1],t.chart.plotBorderColor=t.chart.plotBackgroundColor=st,o=o.pieDATALabels=[],1===t.series.length&&(n=t.series[0].data)&&0<(r=t.series[0].data.length)&&t.plotOptions.series.dataLabels.enabled)for(;r--;)n[r]&&void 0!==g(n[r].displayValue)&&o.push({text:n[r].displayValue,style:n[r].style})},spaceManager:function(t,e,i,n){var r=t[w],o=r.is3d,a=this.name,s=this.colorManager,l=this.smartLabel||r.smartLabel,c=v(r.pieDATALabels&&r.pieDATALabels.length,0),h=0,d=e.chart,u=v(d.managelabeloverflow,0),p=v(d.slicingdistance),g=r.preSliced||d.enableslicing!==bt||d.showlegend===yt&&d.interactivelegend!==bt?H(v(p,20)):0,m=v(d.pieradius,0),b=v(d.enablesmartlabels,d.enablesmartlabel,1),y=b?v(d.skipoverlaplabels,d.skipoverlaplabel,1):0,x=v(d.issmartlineslanted,1),_=c?v(d.labeldistance,d.nametbdistance,5):g,C=v(d.smartlabelclearance,5);i-=t.chart.marginRight+t.chart.marginLeft;var S=n-(t.chart.marginTop+t.chart.marginBottom);n=$(S,i);var k=f(d.smartlinecolor,s.getColor("plotFillColor")),A=v(d.smartlinealpha,100),L=v(d.smartlinethickness,.7),D=(s=t.plotOptions.series.dataLabels).style,E=c?v(parseInt(D.lineHeight,10),12):0,P=(D=t.series[0]||{}).pieYScale,I=D.pieSliceDepth,M=0;M=2*(n=0===m?.15*n:m);if(s.placeLabelsInside=/doughnut2d/.test(a)?0:1===c&&1,s.connectorWidth=L,s.connectorPadding=v(d.connectorpadding,5),s.connectorColor=at(k,A),c&&(b&&(_=C),_+=g),C=M+2*(E+_),S-=this.titleSpaceManager(t,e,i,V(C<S?S-C:S/2,parseFloat(t.title.style.lineHeight,10))),d.showlegend===yt&&(f(d.legendposition,ht).toLowerCase()!==dt?S-=this.placeLegendBlockBottom(t,e,i,S/2,!0):i-=this.placeLegendBlockRight(t,e,i/3,S,!0)),1!==c)for(;c--;)l.setStyle(r.pieDATALabels[c].style),e=l.getOriSize(r.pieDATALabels[c].text),h=V(h,e.width);if(0===m&&(o?M=$(i/2-h-g,((S-=I)/2-E)/P)-_:M=$(i/2-h-g,S/2-E)-_,M>=n?n=M:p||(g=_=V($(_-(n-M),g),10))),o&&(I>(c=S-2*(n*P+E))&&(D.managedPieSliceDepth=I-c)),t.plotOptions.pie3d.slicedOffset=t.plotOptions.pie.slicedOffset=g,t.plotOptions.pie3d.size=t.plotOptions.pie.size=2*n,s.distance=_,s.isSmartLineSlanted=x,s.enableSmartLabels=b,s.skipOverlapLabels=y,s.manageLabelOverflow=u,("doughnut2d"===a||"doughnut3d"===a)&&(a=v(d.doughnutradius,0),100<(c=(c=v(d.use3dlighting,1))?v(d.radius3d,d["3dradius"],50):100)&&(c=100),0>c&&(c=0),d=0===a||a>=n?n/2:a,t.plotOptions.pie3d.innerSize=t.plotOptions.pie.innerSize=2*d,0<c&&T&&(a=(100-(d=parseInt(d/n*100,10)))/2,c=parseInt(a*c/100,10),d=d+vt+c+vt+2*(a-c)+vt+c,t.series[0]&&t.series[0].data)))for(u=t.series[0].data,t=0,c=u.length;t<c;t+=1)(a=u[t]).color.FCcolor&&(a.color.FCcolor.ratio=d,a.rolloverProperties.color&&(a.rolloverProperties.color.FCcolor.ratio=d))},creditLabel:Ct,eiMethods:{isPlotItemSliced:function(t){var e,i,n,r=this.jsVars.hcObj;return r&&r.datasets&&r.datasets[0]&&(e=r.datasets[0].data)&&(n=e.length)&&e[t=n-t-1]&&(i=e[t].plot)&&i.sliced},slicePlotItem:function(t,e){var i,n,r,o,a=this.jsVars.hcObj;return a&&a.datasets&&(i=a.datasets[0])&&(n=i.data)&&(o=n.length)&&n[t=i.reversePlotOrder?t:o-t-1]&&(r=n[t].plot)&&((!!e!==r.sliced||void 0===e)&&a.plotGraphicClick.call(r)||r.sliced)},centerLabel:function(t,e){var i,n=this.jsVars.hcObj,r=(o=n.options).series[0],o=o.plotOptions.pie.innerSize,a=n.canvasLeft+.5*n.canvasWidth,s=n.canvasTop+.5*n.canvasHeight,l=r.centerLabelConfig;if("object"!=typeof e)e=l;else for(i in l)void 0===e[i]&&(e[i]=l[i]);e.label=t,r.centerLabelConfig=e,o&&n.drawDoughnutCenterLabel(t||"",a,s,o,o,e,!0)},startingAngle:function(t,e){var i,n=this.jsVars.hcObj,r=n.datasets[0].plot,o="pie"===n.options.chart.defaultSeriesType,a=(i=n.datasets[0].startAngle)*(o?-Y:1)+(0>(o?-1:1)*i?360:0);if(!isNaN(t)){if(r.singletonCase||r.isRotating)return;t+=e?a:0,o?((o=n.options.series[0]).startAngle=-t*G,n.rotate(r,o)):n.rotate(t),a=t}return j(100*((a%=360)+(0>a?360:0)))/100}
42}},D),gt.pie2d.eiMethods.togglePieSlice=gt.pie2d.eiMethods.sliceDataItem=gt.pie2d.eiMethods.slicePlotItem,gt.pie2d.eiMethods.enableSlicingMovement=gt.pie2d.eiMethods.enablelink=function(){s.raiseWarning(this,"1301081430","run","JSRenderer~enablelink()","Method deprecated.")},gt("pie3d",{friendlyName:"3D Pie Chart",defaultSeriesType:"pie3d",rendererId:"pie3d",creditLabel:Ct,fireGroupEvent:!0,getPointColor:function(t){return t},defaultPlotShadow:0},gt.pie2d),gt("doughnut2d",{friendlyName:"Doughnut Chart",getPointColor:function(t,e,i){var n;return t=tt(t),e=nt(e),100>i&&T?e={FCcolor:{color:(n=rt(t,q(100*(85-.2*(100-i)))/100))+","+(t=ot(t,q(100*(100-.5*i))/100))+","+t+","+n,alpha:e+","+e+","+e+","+e,radialGradient:!0,gradientUnits:"userSpaceOnUse",r:i}}:e={FCcolor:{color:t+","+t,alpha:e+","+e,ratio:"0,100"}},e}},gt.pie2d),gt("doughnut3d",{friendlyName:"3D Doughnut Chart",defaultSeriesType:"pie3d",rendererId:"pie3d",fireGroupEvent:!0,getPointColor:gt.pie3d,defaultPlotShadow:0},gt.doughnut2d),gt("pareto2d",{standaloneInit:!0,friendlyName:"Pareto Chart",point:function(t,e,i,n,r){t=i.length;var o,a,s,l,c,h,d,p,_,S,k,A,T,L,D,E,P,I,M,O,F,R,B,N,j,$,V=0,H=0,W={},z=this.colorManager,q=/3d$/.test(r.chart.defaultSeriesType),U=this.isBar,G=f(360-n.plotfillangle,90),Y=f(n.showplotborder,q?bt:yt)===yt?q?1:v(n.plotborderthickness,1):0,X=r.chart.useRoundEdges,J=f(n.tooltipsepchar,", "),K=f(n.plotbordercolor,z.getColor("plotBorderColor")).split(vt)[0],Z=n.showplotborder==bt?bt:f(n.plotborderalpha,n.plotfillalpha,xt),et=r.xAxis,it=v(n.showcumulativeline,1),rt=r[w],ot=rt.axisGridManager,at=rt.x,st=n.showtooltip!=bt,lt=[],ct=v(n.use3dlighting,1),ht=r[w].numberFormatter,dt=v(n.showlinevalues,n.showvalues),ut=v(n.plotborderdashed,0),pt=v(n.plotborderdashlen,5),ft=v(n.plotborderdashgap,4),gt=x(n.xaxisname),wt=x(n.yaxisname),_t=rt.numberFormatter,Ct=e;Z=q?n.showplotborder?Z:bt:Z,K=q?f(n.plotbordercolor,"#FFFFFF"):K;for(l=v(n.useplotgradientcolor,1)?y(n.plotgradientcolor,z.getColor("plotGradientColor")):u,E=s=0;s<t;s+=1)R=i[s],i[s].vline?ot.addVline(et,R,E,r):null!==(a=ht.getCleanValue(R.value,!0))&&(H+=R.value=a,lt.push(R),E+=1);for(t=lt.length,lt.sort((function(t,e){return e.value-t.value})),it&&0<H?(k=v(n.linedashed,0),P=tt(f(n.linecolor,z.getColor("plotBorderColor"))),W=f(n.linealpha,100),A=v(n.linedashlen,5),L=v(n.linedashgap,4),s=v(n.linethickness,2),D={opacity:W/100},F=f(n.valueposition,"auto"),void 0===(B=v(n.drawanchors,n.showanchors))&&(B=W!=bt),a=v(n.anchorborderthickness,1),o=v(n.anchorsides,0),O=v(n.anchorradius,3),M=tt(f(n.anchorbordercolor,P)),i=tt(f(n.anchorbgcolor,z.getColor("anchorBgColor"))),I=nt(f(n.anchoralpha,xt)),E=nt(f(n.anchorbgalpha,I))*I/100,k=k?C(A,L,s):"none",L=Boolean(v(R.anchorshadow,n.anchorshadow,0)),A=this.pointHoverOptions(R,e,{plotType:"anchor",anchorBgColor:i,anchorAlpha:I,anchorBgAlpha:E,anchorAngle:f(n.anchorstartangle,90),anchorBorderThickness:a,anchorBorderColor:M,anchorBorderAlpha:I,anchorSides:o,anchorRadius:O,shadow:T}),Ct=[Ct,W={yAxis:1,data:[],type:"line",color:{FCcolor:{color:P,alpha:W}},lineWidth:s,marker:{enabled:B,shadow:!!(L&&1<=O)&&{opacity:I/100},fillColor:{FCcolor:{color:i,alpha:E}},lineColor:{FCcolor:{color:M,alpha:I}},lineWidth:a,radius:O,symbol:mt(o),startAngle:f(n.anchorstartangle,90)}}],rt[1]||(rt[1]={}),rt[1].stacking100Percent=!0):("1"!==n.showsecondarylimits&&(n.showsecondarylimits="0"),"1"!==n.showdivlinesecondaryvalue&&(n.showdivlinesecondaryvalue="0")),rt[1]||(rt[1]={}),rt[1].stacking100Percent=!0,s=0;s<t;s+=1)R=lt[s],T=v(R.showlabel,n.showlabels,1),i=x(T?b(R.label,R.name):u),p=f(R.color,z.getPlotColor()),ot.addXaxisCat(et,s,s,i,R,{},n,p),V+=a=R.value,c=v(R.dashed,ut),h=f(R.dashgap,ft),d=f(R.dashlen,pt),_=f(R.alpha,n.plotfillalpha,xt),S=f(R.ratio,n.plotfillratio),T={opacity:_/100},N=f(R.alpha,Z)+u,B=Q(p+vt+l.replace(/,+?$/,""),_,S,G,X,K+u,N+u,U,q),o=c?C(d,h,Y):"none",E=V/H*100,M=ht.percentValue(E),I=null===a?a:_t.dataLabels(a),P=g(x(R.displayvalue)),O=v(R.showvalue,rt.showValues)?void 0!==P?P:I:u,L=f(P,I,u),rt.showTooltip?void 0!==(P=g(x(f(R.tooltext,rt.tooltext))))?(j={formattedValue:I,label:i,yaxisName:wt,xaxisName:gt,cumulativeValue:V,cumulativeDataValue:_t.dataLabels(V),cumulativePercentValue:M,sum:_t.dataLabels(H),unformattedSum:H},P=m(P,$=[1,2,3,5,6,7,20,21,22,23,24,25],j,R,n)):P=null!==I&&(i!==u?i+rt.tooltipSepChar+I:I):P=u,h=this.pointHoverOptions(R,e,{plotType:"column",is3d:q,isBar:U,use3DLighting:ct,isRoundEdged:X,color:p,gradientColor:l,alpha:_,ratio:S,angle:G,borderWidth:Y,borderColor:K,borderAlpha:N,borderDashed:c,borderDashGap:h,borderDashLen:d,shadow:T}),c=f(R.link),e.data.push({link:c,toolText:P,displayValue:O,displayValueArgs:L,categoryLabel:i,y:a,shadow:T,color:B[0],borderColor:B[1],borderWidth:Y,use3DLighting:ct,dashStyle:o,tooltipConstraint:this.tooltipConstraint,hoverEffects:h.enabled&&h.options,rolloverProperties:h.enabled&&h.rolloverOptions}
42),this.pointValueWatcher(r,a),it&&(a=g(x(f(R.cumulativeplottooltext,n.cumulativeplottooltext))),T=1==dt?M:0===dt||O===u?u:M,O=M,P=st?void 0!==a?m(a,$||[1,2,3,5,6,7,20,21,22,23,24,25],j||{formattedValue:I,label:i,yaxisName:wt,xaxisName:gt,cumulativeValue:V,cumulativeDataValue:_t.dataLabels(V),cumulativePercentValue:M,sum:_t.dataLabels(H),unformattedSum:H},R,n):(i!==u?i+J:u)+M:u,W.data.push({shadow:D,color:W.color,marker:W.marker,y:E,toolText:P,displayValue:T,displayValueArgs:O,valuePosition:F,categoryLabel:i,link:c,dashStyle:k,hoverEffects:A.enabled&&A.options,rolloverProperties:A.enabled&&A.rolloverOptions}));return at.catCount=t,Ct},defaultSeriesType:"column",isDual:!0,creditLabel:Ct,rendererId:"cartesian"},D),gt("pareto3d",{friendlyName:"3D Pareto Chart",defaultSeriesType:"column3d",fireGroupEvent:!0,defaultPlotShadow:1,is3D:!0},gt.pareto2d),gt("_mscolumn2d",{standaloneInit:!0,friendlyName:"Multi-series Column Chart",creditLabel:Ct,rendererId:"cartesian"},gt.mscolumn2dbase),gt("mscolumn2d",{standaloneInit:!0,friendlyName:"Multi-series Column Chart",creditLabel:Ct,newArchitecture:!0,rendererId:"newcartesian"},gt.mscolumn2dbase),gt("mscolumn3d",{defaultSeriesType:"column3d",friendlyName:"Multi-series 3D Column Chart",defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,defaultZeroPlaneHighlighted:!1},gt.mscolumn2d),gt("msbar2d",{friendlyName:"Multi-series Bar Chart",isBar:!0,newArchitecture:!0,defaultSeriesType:"bar",spaceManager:gt.barbase},gt.mscolumn2d),gt("msbar3d",{defaultSeriesType:"bar3d",friendlyName:"Multi-series 3D Bar Chart",fireGroupEvent:!0,defaultPlotShadow:1,is3D:!0,defaultZeroPlaneHighlighted:!1},gt.msbar2d),gt("_msline",{standaloneInit:!0,friendlyName:"Multi-series Line Chart",creditLabel:Ct,rendererId:"cartesian"},gt.mslinebase),gt("_msarea",{standaloneInit:!0,friendlyName:"Multi-series Area Chart",creditLabel:Ct,rendererId:"cartesian"},gt.msareabase),gt("msarea",{standaloneInit:!0,friendlyName:"Multi-series Area Chart",creditLabel:Ct,newArchitecture:!0,rendererId:"newareacartesian"},gt.msareabase),gt("msline",{standaloneInit:!0,friendlyName:"Multi-series Line Chart",creditLabel:Ct,newArchitecture:!0,rendererId:"newlinecartesian"},gt.mslinebase),gt("stackedarea2d",{friendlyName:"New Stacked Area Chart",isStacked:!0,areaAlpha:100,rendererId:"newareacartesian",newArchitecture:!0},gt.msarea),gt("_stackedcolumn2d",{friendlyName:"Stacked Column Chart",isStacked:!0},gt._mscolumn2d),gt("stackedcolumn2d",{friendlyName:"Stacked Column Chart",isStacked:!0,rendererId:"newcartesian",newArchitecture:!0},gt.mscolumn2d),gt("stackedcolumn3d",{friendlyName:"3D Stacked Column Chart",isStacked:!0},gt.mscolumn3d),gt("stackedbar2d",{friendlyName:"Stacked Bar Chart",isStacked:!0,newArchitecture:!0},gt.msbar2d),gt("stackedbar3d",{friendlyName:"3D Stacked Bar Chart",isStacked:!0,newArchitecture:!0},gt.msbar3d),gt("_stackedarea2d",{friendlyName:"Stacked Area Chart",isStacked:!0,areaAlpha:100,showSum:0},gt._msarea),gt("marimekko",{friendlyName:"Marimekko Chart",isValueAbs:!0,distributedColumns:!0,isStacked:!0,xAxisMinMaxSetter:A,postSeriesAddition:function(t,e){var i,n,r,o,a,s,l,c,h,d,u=t[w],p=0,f=t.xAxis,g=100/u.marimekkoTotal,b=[],y=t.series,x=0,C=_({},t.plotOptions.series.dataLabels.style),S=parseInt(C.fontSize,10),A=v(e.chart.plotborderthickness,1),T=t.chart.rotateValues,L=v(e.chart.rotatexaxispercentvalues,0),D=-.5*A-(A%2+(L?1:0)+!t.chart.plotBorderWidth),E=L?S/2*1.2:0,P=T?270:0,I=u[0],M=I.stacking100Percent,O=!M,F=u.inCanvasStyle,R=this.numberFormatter,B=e.categories&&e.categories[0]&&e.categories[0].category||[],N=0,$=[];A=[];for(u.isXYPlot=!0,u.distributedColumns=!0,f.min=0,f.max=100,f.labels.enabled=!1,f.gridLineWidth=0,f.alternateGridColor=st,i=I.stack,e.chart.interactivelegend="0",I=0,n=t.xAxis.plotLines.length;I<n;I+=1)(r=f.plotLines[I]).isGrid&&(r.isCat=!0,b[r.value]=r,r._hideLabel=!0);for(I=n=0;I<B.length;I+=1)B[I].vline||(N+=$[n]=R.getCleanValue(B[I].widthpercent||0),n+=1);if(r=i.floatedcolumn&&i.floatedcolumn[0]||[],100===N&&(r&&r.length)!==n)for(;n--;)r[n]||(r[n]={p:null});if(N=j(N),r)for(a=0,n=r.length;a<n;){for(p+=o=(d=r[a])&&d.p||0,s=x+(l=100===N?$[a]:o*g)/2,c=x+l,A.push(c),I=0;I<y.length;I+=1)t.series[I].visible=!0,(B=t.series[I].data[a])._FCX=x,B._FCW=l,h=R.percentValue(B.y/o*100),B.toolText=m(B.toolText,[14,24,25,111,112],{xAxisPercentValue:R.percentValue(l),percentValue:h,sum:R.dataLabels(o),unformattedSum:o}),M&&((B.y||0===B.y)&&(i=B.y/o*100,B.y=i,B.showPercentValues&&(B.displayValue=h),u.showPercentValues&&(B.displayValueArgs=h)),(B.previousY||0===B.previousY)&&(B.previousY=B.previousY/o*100));u.showStackTotal&&t.xAxis.plotLines.push({value:s,width:0,isVline:O,isTrend:!O,_isStackSum:1,zIndex:4,label:{align:lt,textAlign:lt,rotation:P,style:C,verticalAlign:ct,offsetScale:O?0>o?d.n:d.p:void 0,offsetScaleIndex:0,y:0>o?270===T?4:S:-4,x:0,text:R.yAxis(k(o,10))}}
42),b[a]&&(b[a].value=s,b[a]._weight=l,b[a]._hideLabel=!1),a+=1,u.showXAxisPercentValues&&a<n&&t.xAxis.plotLines.push({value:c,width:0,isVine:!0,label:{align:lt,textAlign:L?ut:lt,rotation:L?270:0,backgroundColor:"#ffffff",backgroundOpacity:1,borderWidth:"1px",borderType:"solid",borderColor:F.color,style:{color:F.color,fontSize:F.fontSize,fontFamily:F.fontFamily,lineHeight:F.lineHeight},verticalAlign:ht,y:D,x:E,text:this.numberFormatter.percentValue(c)},zIndex:5}),x=c}for(a=0,n=b.length;a<n;a+=1)b[a]&&b[a]._hideLabel&&(b[a].value=null);for(I=0,n=t.xAxis.plotLines.length;I<n;I+=1)(r=f.plotLines[I]).isVline&&!r._isStackSum&&(u=r.value)&&(p=A[q(u-=.5)],g=A[z(u)],r.value=p+(g-p)*(u-q(u)))},defaultSeriesType:"floatedcolumn"},gt._stackedcolumn2d),gt("msstackedcolumn2d",{friendlyName:"Multi-series Stacked Column Chart",msstackedcolumn2d:!0,series:function(t,e,i){var n,r,o,a,s,l,c,h=e[w],d=0;if(s=[],e.legend.enabled=Boolean(v(t.chart.showlegend,1)),t.dataset&&0<t.dataset.length){for(this.categoryAdder(t,e),n=0,r=t.dataset.length;n<r;n+=1)if(c=t.dataset[n].dataset)for(o=0,a=c.length;o<a;o+=1,d+=1)s={__positiionIndex:n,__stackIndex:o,hoverEffects:this.parseSeriesHoverOptions(t,e,c[o],i),visible:!v(c[o].initiallyhidden,0),data:[],numColumns:r,columnPosition:n},l=Math.min(h.oriCatTmp.length,c[o].data&&c[o].data.length),s=this.point(i,s,c[o],t.chart,e,l,d,n),e.series.push(s);if(this.isDual&&t.lineset&&0<t.lineset.length)for(o=0,a=t.lineset.length;o<a;o+=1,d+=1)n=t.lineset[o],s={hoverEffects:this.parseSeriesHoverOptions(t,e,n,i),visible:!v(n.initiallyhidden,0),data:[],yAxis:1,type:"line"},l=Math.min(h.oriCatTmp.length,n.data&&n.data.length),e.series.push(gt.msline.point.call(this,"msline",s,n,t.chart,e,l,d));this.configureAxis(e,t),t.trendlines&&p(t.trendlines,e.yAxis,e[w],this.isDual,this.isBar)}},postSpaceManager:function(t,e,i){var n,r,o,a=t[w];if(gt.base.postSpaceManager.call(this),this.isStacked&&a.showStackTotal&&(n=t.chart,t=(e=t.xAxis)&&e.plotLines,n=i-n.marginLeft-n.marginRight,
43r=(1-2*(i=a.plotSpacePercent))/(a=(a=a[0].stack).column&&a.column.length),50<(e=n/(e.max-e.min))*r&&.1==i))for(e=50/e,i=t&&t.length,a=-(a-1)/2*e,o=0;o<i;o+=1)(r=t[o])._isStackSum&&(n=r._catPosition+(a+e*r._stackIndex),r.value=n)}},gt.stackedcolumn2d),gt("_msstackedcolumn2d",{friendlyName:"Multi-series Stacked Column Chart",series:function(t,e,i){var n,r,o,a,s,l,c,h=e[w],d=0;if(s=[],e.legend.enabled=Boolean(v(t.chart.showlegend,1)),t.dataset&&0<t.dataset.length){for(this.categoryAdder(t,e),n=0,r=t.dataset.length;n<r;n+=1)if(c=t.dataset[n].dataset)for(o=0,a=c.length;o<a;o+=1,d+=1)s={hoverEffects:this.parseSeriesHoverOptions(t,e,c[o],i),visible:!v(c[o].initiallyhidden,0),data:[],numColumns:r,columnPosition:n},l=Math.min(h.oriCatTmp.length,c[o].data&&c[o].data.length),s=this.point(i,s,c[o],t.chart,e,l,d,n),e.series.push(s);if(this.isDual&&t.lineset&&0<t.lineset.length)for(o=0,a=t.lineset.length;o<a;o+=1,d+=1)n=t.lineset[o],s={hoverEffects:this.parseSeriesHoverOptions(t,e,n,i),visible:!v(n.initiallyhidden,0),data:[],yAxis:1,type:"line"},l=Math.min(h.oriCatTmp.length,n.data&&n.data.length),e.series.push(gt.msline.point.call(this,"msline",s,n,t.chart,e,l,d));this.configureAxis(e,t),t.trendlines&&p(t.trendlines,e.yAxis,e[w],this.isDual,this.isBar)}},postSpaceManager:function(t,e,i){var n,r,o,a=t[w];if(gt.base.postSpaceManager.call(this),this.isStacked&&a.showStackTotal&&(n=t.chart,t=(e=t.xAxis)&&e.plotLines,n=i-n.marginLeft-n.marginRight,r=(1-2*(i=a.plotSpacePercent))/(a=(a=a[0].stack).column&&a.column.length),50<(e=n/(e.max-e.min))*r&&.1==i))for(e=50/e,i=t&&t.length,a=-(a-1)/2*e,o=0;o<i;o+=1)(r=t[o])._isStackSum&&(n=r._catPosition+(a+e*r._stackIndex),r.value=n)}},gt._stackedcolumn2d),gt("mscombi2d",{friendlyName:"Multi-series Combination Chart",standaloneInit:!0,creditLabel:Ct,newArchitecture:!0,rendererId:"newmscombi2d"},gt.mscombibase),gt("_mscombi2d",{friendlyName:"Multi-series Combination Chart",standaloneInit:!0,creditLabel:Ct,rendererId:"cartesian"},gt.mscombibase),gt("mscombi3d",{friendlyName:"Multi-series 3D Combination Chart",series:gt.mscombi2d.series,rendererId:"newmscombi2d",eiMethods:(a={},L("view2D,view3D,resetView,rotateView,getViewAngles,fitToStage".split(","),(function(t){a[t]=function(){s.raiseWarning(this,"1301081430","run","JSRenderer~"+t+"()","Method not applicable.")}})),a)},gt.mscolumn3d),gt("mscolumnline3d",{friendlyName:"Multi-series Column and Line Chart",use3dlineshift:1},gt.mscombi3d),gt("stackedcolumn2dline",{friendlyName:"Stacked Column and Line Chart",isStacked:!0,stack100percent:0,newArchitecture:!0},gt.mscombi2d),gt("stackedcolumn3dline",{friendlyName:"Stacked 3D Column and Line Chart",isStacked:!0,use3dlineshift:1,stack100percent:0},gt.mscombi3d),gt("mscombidy2d",{friendlyName:"Multi-series Dual Y-Axis Combination Chart",isDual:!0,secondarySeriesType:void 0},gt.mscombi2d),gt("mscolumn3dlinedy",{friendlyName:"Multi-series 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},gt.mscolumnline3d),gt("stackedcolumn3dlinedy",{friendlyName:"Stacked 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},gt.stackedcolumn3dline),gt("msstackedcolumn2dlinedy",{friendlyName:"Multi-series Dual Y-Axis Stacked Column and Line Chart",isDual:!0,stack100percent:0,secondarySeriesType:"line",rendererId:"msstackedcolumn2dlinedy"},gt.msstackedcolumn2d),gt("_msstackedcolumn2dlinedy",{friendlyName:"Multi-series Dual Y-Axis Stacked Column and Line Chart",isDual:!0,stack100percent:0,secondarySeriesType:"line"},gt._msstackedcolumn2d),gt("scrollcolumn2d",{friendlyName:"Scrollable Multi-series Column Chart",postSeriesAddition:gt.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},gt.mscolumn2d),gt("scrollline2d",{friendlyName:"Scrollable Multi-series Line Chart",postSeriesAddition:gt.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},gt.msline),gt("scrollarea2d",{friendlyName:"Scrollable Multi-series Area Chart",postSeriesAddition:gt.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},gt.msarea),gt("scrollstackedcolumn2d",{friendlyName:"Scrollable Stacked Column Chart",postSeriesAddition:function(t,e,
43i,n){gt.base.postSeriesAddition.call(this,t,e,i,n),gt.scrollbase.postSeriesAddition.call(this,t,e,i,n)},canvasborderthickness:1,tooltipConstraint:"plot",avgScrollPointWidth:75},gt.stackedcolumn2d),gt("scrollcombi2d",{friendlyName:"Scrollable Combination Chart",postSeriesAddition:gt.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},gt.mscombi2d),gt("scrollcombidy2d",{friendlyName:"Scrollable Dual Y-Axis Combination Chart",postSeriesAddition:gt.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},gt.mscombidy2d),gt("scatter",{friendlyName:"Scatter Chart",isXY:!0,standaloneInit:!0,defaultSeriesType:"scatter",defaultZeroPlaneHighlighted:!1,creditLabel:Ct},gt.scatterbase),_(l.eventList,{zoomedOut:"FC_ZoomedOut"}),gt("bubble",{friendlyName:"Bubble Chart",standaloneInit:!0,standaloneInut:!0,defaultSeriesType:"bubble",rendererId:"bubble",point:function(t,e,i,n,r){t=v(n.ignoreemptydatasets,0);var o,a,s,l,c,h,d,u,p,m,b,y,x,_,C,S,k=!1,A=this.colorManager,T=v(i.showvalues,r[w].showValues);o=v(n.bubblescale,1);var L=f(n.negativecolor,"FF0000");a=v(n.minbubbleradius);var D,E,P,I,M=r.plotOptions.bubble,O=this.numberFormatter,F=e._showRegression=v(i.showregressionline,n.showregressionline,0);if(e.name=g(i.seriesname),s=Boolean(v(i.drawanchors,i.showanchors,n.drawanchors,1)),u=f(i.plotfillalpha,i.bubblefillalpha,n.plotfillalpha,xt),p=v(i.showplotborder,n.showplotborder,1),m=tt(f(i.plotbordercolor,n.plotbordercolor,"666666")),b=f(i.plotborderthickness,n.plotborderthickness,1),y=f(i.plotborderalpha,n.plotborderalpha,"95"),p=1===p?b:0,A=f(i.color,i.plotfillcolor,n.plotfillcolor,A.getPlotColor()),e.marker={enabled:s,fillColor:this.getPointColor(A,xt),lineColor:at(m,p?y:0),lineWidth:p,symbol:"circle"},e.getPointColor=this.getPointColor,b=i.data){for(S=b.length,M.bubbleScale=o,M.minBubbleRadius=a,0!==v(i.includeinlegend)&&void 0!==e.name||(e.showInLegend=!1),F&&(e.events={hide:this.hideRLine,show:this.showRLine},D={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},E=v(i.showyonx,n.showyonx,1),P=tt(f(i.regressionlinecolor,n.regressionlinecolor,A)),I=v(i.regressionlinethickness,n.regressionlinethickness,1),o=nt(v(i.regressionlinealpha,n.regressionlinealpha,100)),P=at(P,o)),a=0;a<S;a+=1)(l=b[a])?(o=O.getCleanValue(l.y),x=O.getCleanValue(l.x),_=O.getCleanValue(l.z,!0),null===o?e.data.push({y:null,x:x}):(k=!0,d=0!==v(n.use3dlighting,l.is3d,i.is3d,n.is3d),c=tt(f(l.color,0>l.z?L:A)),h=f(l.alpha,u),C=this.getPointStub(l,o,x,r,i,T),c=d?this.getPointColor(c,h):{FCcolor:{color:c,alpha:h}},null!==_&&(M.zMax=M.zMax>_?M.zMax:_,M.zMin=M.zMin<_?M.zMin:_),l=this.pointHoverOptions(l,e,{plotType:"bubble",is3d:d,seriesAnchorSymbol:"circle",color:c,negativeColor:L,alpha:h,borderWidth:p,borderColor:m,borderAlpha:y,shadow:!1}),e.is3d=d,e.data.push({y:o,x:x,z:_,displayValue:C.displayValue,displayValueArgs:C.displayValueArgs,toolText:C.toolText,link:C.link,hoverEffects:l.enabled&&l.options,rolloverProperties:l.enabled&&l.rolloverOptions,marker:{enabled:s,fillColor:c,lineColor:{FCcolor:{color:m,alpha:y}},lineWidth:p,symbol:"circle"}}),this.pointValueWatcher(r,o,x,F&&D))):e.data.push({y:null});F&&(e=[e,i={type:"line",color:P,showInLegend:!1,lineWidth:I,enableMouseTracking:!1,marker:{enabled:!1},data:this.getRegressionLineSeries(D,E,S),zIndex:0}])}return t&&!k&&(e.showInLegend=!1),e},getPointStub:function(t,e,i,n,r,o){var a=this.dataObj.chart;n=n[w],e=null===e?e:n.numberFormatter.dataLabels(e);var s,l=n.tooltipSepChar,c=g(x(f(t.tooltext,r.plottooltext,n.tooltext)));return n.showTooltip?void 0!==c?r=m(c,[4,5,6,7,8,9,10,11,12,13,118],{yDataValue:e,xDataValue:n.numberFormatter.xAxis(i),yaxisName:x(a.yaxisname),xaxisName:x(a.xaxisname),zDataValue:n.numberFormatter.dataLabels(t.z)},t,a,r):null===e?r=!1:(n.seriesNameInToolTip&&(s=f(r&&r.seriesname)),r=s?s+l:u,r=(r+=i?n.numberFormatter.xAxis(i)+l:u)+e+(t.z?l+n.numberFormatter.dataLabels(t.z):u)):r=u,{displayValue:i=v(t.showvalue,o,n.showValues)?void 0!==f(t.displayvalue,t.name,t.label)?x(f(t.displayvalue,t.name,t.label)):e:u,displayValueArgs:o=f(x(f(t.displayvalue,t.name,t.label)),e,u),toolText:r,link:t=g(t.link)}}},gt.scatter),gt("ssgrid",{friendlyName:"Grid Component",standaloneInit:!0,defaultSeriesType:"ssgrid",rendererId:"ssgrid",chart:function(t,e){var i,n,r,o,a,s,c,h,d,p,g,m,y,C,k,A,T,L,D,E,P,I,M,O,F,R=this.containerElement,B=_({},this.dataObj),N=B.chart||(B.chart=B.graph||{}),j=this.chartInstance,$=0,V=[],H=B.data,W=H&&H.length,z=this.smartLabel,q=this.numberFormatter,U=R.offsetHeight,G=R.offsetWidth,Y=this.colorManager,X=0;n=0;var J=(R={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{ignoreHiddenSeries:!1,events:{},spacingTop:0,spacingRight:0,spacingBottom:0,spacingLeft:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,borderRadius:0,borderColor:"#000000",borderWidth:1,defaultSeriesType:"ssgrid",textDirection:"1"===N.hasrtltext?"rtl":"",style:{fontFamily:f(N.basefont,"Verdana,sans"),fontSize:it(N.basefontsize,20)+wt,color:f(N.basefontcolor,Y.getColor("baseFontColor")).replace(/^#?([a-f0-9]+)/gi,"#$1")}
43,plotBackgroundColor:st},labels:{smartLabel:z},colors:"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),credits:{href:l.CREDIT_HREF,text:l.CREDIT_STRING,enabled:Ct},legend:{enabled:!1},series:[],subtitle:{text:u},title:{text:u},tooltip:{enabled:!1},exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}})[w],K=i=n=X=0,Z=$=C=0;switch(F=j.jsVars.cfgStore,s=(a=(j=R.chart).toolbar={button:{}}).button,delete B.graph,et(R.chart.style),j.events.click=this.linkClickFN,s.scale=v(N.toolbarbuttonscale,1.15),s.width=v(N.toolbarbuttonwidth,15),s.height=v(N.toolbarbuttonheight,15),s.radius=v(N.toolbarbuttonradius,2),s.spacing=v(N.toolbarbuttonspacing,5),s.fill=at(f(N.toolbarbuttoncolor,"ffffff")),s.labelFill=at(f(N.toolbarlabelcolor,"cccccc")),s.symbolFill=at(f(N.toolbarsymbolcolor,"ffffff")),s.hoverFill=at(f(N.toolbarbuttonhovercolor,"ffffff")),s.stroke=at(f(N.toolbarbuttonbordercolor,"bbbbbb")),s.symbolStroke=at(f(N.toolbarsymbolbordercolor,"9a9a9a")),s.strokeWidth=v(N.toolbarbuttonborderthickness,1),s.symbolStrokeWidth=v(N.toolbarsymbolborderthickness,1),B=s.symbolPadding=v(N.toolbarsymbolpadding,5),s.symbolHPadding=v(N.toolbarsymbolhpadding,B),s.symbolVPadding=v(N.toolbarsymbolvpadding,B),s=a.position=f(N.toolbarposition,"tr").toLowerCase()){case"tr":case"tl":case"br":case"bl":break;default:s="tr"}for(B=a.hAlign="left"===(u+N.toolbarhalign).toLowerCase()?"l":s.charAt(1),s=a.vAlign="bottom"===(u+N.toolbarvalign).toLowerCase()?"b":s.charAt(0),a.hDirection=v(N.toolbarhdirection,"r"===B?-1:1),a.vDirection=v(N.toolbarvdirection,"b"===s?-1:1),a.vMargin=v(N.toolbarvmargin,6),a.hMargin=v(N.toolbarhmargin,10),a.x=v(N.toolbarx,"l"===B?0:t),a.y=v(N.toolbary,"t"===s?0:e),void 0!==f(N.clickurl)&&(j.link=N.clickurl,j.style.cursor="pointer"),i=v(F.showpercentvalues,N.showpercentvalues,0),n=f(F.numberitemsperpage,N.numberitemsperpage),v(F.showshadow,N.showshadow,0),$=f(F.basefont,N.basefont,"Verdana,sans"),r=it(F.basefontsize,N.basefontsize,10),r+=wt,o=tt(f(F.basefontcolor,N.basefontcolor,Y.getColor("baseFontColor"))),B=tt(f(F.alternaterowbgcolor,N.alternaterowbgcolor,Y.getColor("altHGridColor"))),a=f(F.alternaterowbgalpha,N.alternaterowbgalpha,Y.getColor("altHGridAlpha"))+u,s=v(F.listrowdividerthickness,N.listrowdividerthickness,1),c=tt(f(F.listrowdividercolor,N.listrowdividercolor,Y.getColor("borderColor"))),h=v(F.listrowdivideralpha,N.listrowdivideralpha,Y.getColor("altHGridAlpha"))+15+u,d=v(F.colorboxwidth,N.colorboxwidth,8),p=v(F.colorboxheight,N.colorboxheight,8),g=v(F.navbuttonradius,N.navbuttonradius,7),m=tt(f(F.navbuttoncolor,N.navbuttoncolor,Y.getColor("canvasBorderColor"))),y=tt(f(F.navbuttonhovercolor,N.navbuttonhovercolor,Y.getColor("altHGridColor"))),C=v(F.textverticalpadding,N.textverticalpadding,3),k=v(F.navbuttonpadding,N.navbuttonpadding,5),A=v(F.colorboxpadding,N.colorboxpadding,10),T=v(F.valuecolumnpadding,N.valuecolumnpadding,10),L=v(F.namecolumnpadding,N.namecolumnpadding,5),D=v(F.borderthickness,N.borderthickness,1),E=tt(f(F.bordercolor,N.bordercolor,Y.getColor("borderColor"))),P=f(F.borderalpha,N.borderalpha,Y.getColor("borderAlpha"))+u,I=f(F.bgcolor,N.bgcolor,"FFFFFF"),M=f(F.bgalpha,N.bgalpha,xt),O=f(F.bgratio,N.bgratio,xt),F=f(F.bgangle,N.bgangle,bt),j.borderRadius=D/16,j.borderWidth=D,j.borderColor=S({FCcolor:{color:E,alpha:P}}),j.backgroundColor={FCcolor:{color:I,alpha:M,ratio:O,angle:F}},j.borderRadius=v(N.borderradius,0),et(F={fontFamily:$,fontSize:r,color:o}),z.setStyle(F),$=0;$<W;$+=1)r=H[$],D=q.getCleanValue(r.value),E=x(b(r.label,r.name)),o=tt(f(r.color,Y.getPlotColor())),f(r.alpha,N.plotfillalpha,xt),(E!=u||null!=D)&&(V.push({value:D,label:E,color:o}),X+=D,Z+=1);for($=0;$<Z;$+=1)D=(r=V[$]).value,r.dataLabel=r.label,r.displayValue=i?q.percentValue(D/X*100):q.dataLabels(D),H=z.getOriSize(r.displayValue),K=Math.max(K,H.width+T);for(n?n>=Z?(i=U/Z,n=Z):i=(q=U-2*(k+g))/n:(X=parseInt(F.lineHeight,10),(n=U/(X=Math.max(X+2*C,p)))>=Z?(i=U/Z,n=Z):i=(q=U-2*(k+g))/(n=Math.floor(q/X))),C=G-A-d-L-K-T,$=A+d+L,q=f(N.basefont,"Verdana,sans"),K=it(N.basefontsize,10),Y=f(N.basefontcolor,Y.getColor("baseFontColor")),H=f(N.outcnvbasefont,q),W=(r=it(N.outcnvbasefontsize,K))+wt,N=f(N.outcnvbasefontcolor,Y).replace(/^#?([a-f0-9]+)/gi,"#$1"),K+=wt,Y=Y.replace(/^#?([a-f0-9]+)/gi,"#$1"),J.trendStyle=J.outCanvasStyle={fontFamily:H,color:N,fontSize:W}
43,et(J.trendStyle),J.inCanvasStyle={fontFamily:q,fontSize:K,color:Y},R.tooltip.style={fontFamily:q,fontSize:K,lineHeight:void 0,color:Y},R.tooltip.shadow=!1,j.height=U,j.width=G,j.rowHeight=i,j.labelX=$,j.colorBoxWidth=d,j.colorBoxHeight=p,j.colorBoxX=A,j.valueX=A+d+L+C+T,j.valueColumnPadding=T,j.textStyle=F,j.listRowDividerAttr={"stroke-width":s,stroke:{FCcolor:{color:c,alpha:h}}},j.alternateRowColor={FCcolor:{color:B,alpha:a}},j.navButtonRadius=g,j.navButtonPadding=k,j.navButtonColor=m,j.navButtonHoverColor=y,j.lineHeight=parseInt(F.lineHeight,10),U=[],N=0,J=!0,$=0;$<Z&0!==n;$+=1)0==$%n&&(U.push({data:[],visible:J}),J=!1,N+=1),r=V[$],G=z.getSmartText(r.dataLabel,C,i),U[N-1].data.push({label:G.text,originalText:G.tooltext,displayValue:r.displayValue,y:r.value,color:r.color});return R.series=U,gt.base.parseExportOptions.call(this,R),R.tooltip.enabled=!!R.exporting.enabled,R},creditLabel:Ct},gt.base),gt("renderer.bubble",{drawPlotBubble:function(t,e){var i,n,r,o,a,s,l,c,h,d,u,p,f,g=this,m=(O=g.options).chart,b={fontFamily:(y=(L=O.plotOptions.series).dataLabels&&L.dataLabels.style||{}).fontFamily,fontSize:y.fontSize,lineHeight:y.lineHeight,fontWeight:y.fontWeight,fontStyle:y.fontStyle},y=g.paper,x=g.elements,w=t.items,_=t.graphics=t.graphics||[],C=g.xAxis[e.xAxis||0],k=g.yAxis[e.yAxis||0],A=t.data,T=!1!==(O.tooltip||{}).enabled,L=isNaN(+L.animation)&&L.animation.duration||1e3*L.animation,D=!1===e.visible?"hidden":"visible",E=(F=O.plotOptions.bubble).zMax,O=F.bubbleScale,F=F.minBubbleRadius,R=$(g.canvasHeight,g.canvasWidth)/8;E=U(E);o=(r=g.layers).dataset=r.dataset||y.group("dataset-orphan");var B,N,H=r.tracker,W=function(t){P.call(this,g,t)},z=function(t,e,i){return function(n){t.attr(e),P.call(this,g,n,i)}};for(g.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",b),r.datalabels?r.datalabels.attr("class","fusioncharts-datalabels"):r.datalabels=y.group({class:"fusioncharts-datalabels"},"datalables").insertAfter(o),b=o.bubble=o.bubble||y.group("bubble",o),m.clipBubbles&&!b.attrs["clip-rect"]&&b.attr({"clip-rect":x["clip-canvas"]}),r=0,o=A.length;r<o;r+=1)p=f=N=null,u=(a=A[r]).marker,null!==a.y&&u&&u.enabled?(s=a.link,m=a.toolText,l=v(a.x,r),x={index:r,link:s,value:c=a.y,y:c,x:l,z:a.z,displayValue:a.displayValueArgs,toolText:a.toolText,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},d=k.getAxisPosition(c),h=C.getAxisPosition(l),n=U(a.z),B=j(n*R/E)*O||0,F&&(B=V(B,F)),n=i={},a.hoverEffects&&(n={fill:S(u.fillColor),"stroke-width":u.lineWidth,stroke:S(u.lineColor),r:B},i=a.rolloverProperties,i={fill:S(i.fillColor),"stroke-width":i.lineWidth,stroke:S(i.lineColor),r:B*i.scale}),p=y.circle(h,d,0,b).attr({fill:S(u.fillColor),ishot:!T,"stroke-width":u.lineWidth,stroke:S(u.lineColor),visibility:D}).animate({r:B||0},L,"easeOut",g.getAnimationCompleteFn()),(s||T)&&(B<I&&(B=I),f=y.circle(h,d,B,H).attr({cursor:s?"pointer":"",stroke:M,"stroke-width":u.lineWidth,fill:M,ishot:!!s,visibility:D})),(f||p).data("eventArgs",x).click(W).hover(z(p,i,"DataPlotRollOver"),z(p,n,"DataPlotRollOut")).tooltip(m),w[r]={index:r,x:l,y:c,z:a.z,value:c,graphic:p,dataLabel:N,tracker:f},N=g.drawPlotLineLabel(t,e,r,h,d)):w[r]={index:r,x:l,y:c},N&&_.push(N),p&&_.push(p),f&&_.push(f);return t.visible=!1!==e.visible,t}},gt["renderer.cartesian"]),gt("renderer.ssgrid",{drawGraph:function(){var t,e=this.options.series,i=this.elements,n=i.plots,r=e.length;for(n||(n=this.plots=this.plots||[],i.plots=n),this.drawSSGridNavButton(),t=0;t<r;t++)(i=n[t])||n.push(i={items:[],data:e[t].data}),e[t].data&&e[t].data.length&&this.drawPlot(i,e[t]);1<r&&this.nenagitePage(0)},drawPlot:function(t){var e=t.data,i=this.paper,n=this.options.chart,r=n.colorBoxHeight,o=n.colorBoxWidth,a=n.colorBoxX,s=n.labelX,l=n.valueX,c=n.rowHeight,h=n.width,d=(u=n.listRowDividerAttr)["stroke-width"],u=S(u.stroke),p=d%2/2,f=n.textStyle,g=(g=this.layers).dataset=g.dataset||i.group("dataset-orphan"),m=S(n.alternateRowColor);t=t.items;var v,b,y,x,w=0;for(e&&e.length||(e=[]),u={stroke:u,"stroke-width":d},x=0,d=e.length;x<d;x+=1)b=(y=e[x]).y,v=t[x]={index:x,value:b,graphic:null,dataLabel:null,dataValue:null,alternateRow:null,listRowDivider:null,hot:null},null!=b&&(0==x%2&&(v.alternateRow=i.rect(0,w,h,c,0,g).attr({fill:m,"stroke-width":0})),b=j(w)+p,v.listRowDivider=i.path(["M",0,b,"L",h,b],g).attr(u),v.graphic=i.rect(a,w+c/2-r/2,o,r,0,g).attr({fill:y.color,"stroke-width":0,stroke:"#000000"}),b=v.dataLabel=i.text().attr({text:y.label,title:y.originalText||"",x:s,y:w+c/2,fill:f.color,direction:n.textDirection,"text-anchor":"start"}).css(f),g.appendChild(b),v=v.dataValue=i.text().attr({text:y.displayValue,title:y.originalText||"",x:l,y:w+c/2,fill:f.color,direction:n.textDirection,"text-anchor":"start"}).css(f),g.appendChild(v),w+=c);b=j(w)+p,i.path(["M",0,b,"L",h,b],g).attr(u)},drawSSGridNavButton:function(){var t,e,i,n,r,o=this,a=o.paper,s=(t=o.options).chart,l=t.series,c=s.navButtonColor,h=s.navButtonHoverColor,d=.67*(t=s.navButtonRadius),u=s.navButtonPadding+d+(l&&l[0].data&&l[0].data.length*s.rowHeight)+.5*t;s=s.width-20;1<l.length&&(r=o.naviigator=a.group("navigation"),o.navElePrv=l=a.group(r),e=a.path(["M",20,u,"L",20+t+d,u-d,20+t,u,20+t+d,u+d,"Z"]).attr({fill:c,"stroke-width":0,cursor:"pointer"}),l.appendChild(e),n=a.circle(20+t,u,t).attr({fill:st,"stroke-width":0,cursor:"pointer"}).mouseover((function(){e.attr({fill:h,cursor:"pointer"})})).mouseout((function(){e.attr({fill:c})})).click((function(){o.nenagitePage(-1)})),l.appendChild(n),o.navEleNxt=l=a.group(r),i=a.path(["M",s,u,"L",s-t-d,u-d,s-t,u,s-t-d,u+d,"Z"]).attr({fill:c,"stroke-width":0,cursor:"pointer"}),l.appendChild(i),a=a.circle(s-t,u,t).attr({fill:st,"stroke-width":0,cursor:"pointer"}).mouseover((function(){i.attr({fill:h})})).mouseout((function(){i.attr({fill:c})})).click((function(){o.nenagitePage(1)})),l.appendChild(a))},nenagitePage:function(t){var e,i=this.plots,n=i.length,r=function(t){t.graphic&&t.graphic.hide(),t.dataLabel&&t.dataLabel.hide(),t.dataValue&&t.dataValue.hide(),t.alternateRow&&t.alternateRow.hide(),t.listRowDivider&&t.listRowDivider.hide()};if(i[t=(this.currentSeriesIndex||0)+(t||0)]){for(e=n;e--;)L(i[e].items,r);L(i[t].items,(function(t){t.graphic&&t.graphic.show(),t.dataLabel&&t.dataLabel.show(),t.dataValue&&t.dataValue.show(),t.alternateRow&&t.alternateRow.show(),t.listRowDivider&&t.listRowDivider.show()})),this.currentSeriesIndex=t,s.raiseEvent("pageNavigated",{pageId:t,data:this.options.series[t].data},this.logic.chartInstance),0===t?this.navElePrv.hide():this.navElePrv.show(),t===n-1?this.navEleNxt.hide():this.navEleNxt.show()}}}
43,gt["renderer.root"]),o.prototype={getArcPath:function(t,e,i,n,r,o,a,s,l,c){return i==r&&n==o?[]:["A",a,s,0,c,l,r,o]},parseColor:function(t,e){var i,n,r,o,a,s,l,c,h,d,u,p,f,g,m,v=e/2;return m=3,this.use3DLighting?(i=rt(t,80),n=rt(t,75),s=ot(t,85),l=ot(t,70),c=ot(t,40),h=ot(t,50),ot(t,30),d=ot(t,65),rt(t,85),r=rt(t,69),o=rt(t,75),a=rt(t,95)):(m=10,i=rt(t,90),n=rt(t,87),s=ot(t,93),l=ot(t,87),c=ot(t,80),d=h=ot(t,85),ot(t,80),a=rt(t,85),r=rt(t,75),o=rt(t,80)),u=n+vt+s+vt+l+vt+s+vt+n,f=e+vt+e+vt+e+vt+e+vt+e,p=n+vt+t+vt+s+vt+t+vt+n,g=v+vt+v+vt+v+vt+v+vt+v,c=n+vt+t+vt+c+vt+t+vt+n,r=o+vt+s+vt+h+vt+s+vt+r,o="FFFFFF"+vt+"FFFFFF"+vt+"FFFFFF"+vt+"FFFFFF"+vt+"FFFFFF",m=0+vt+v/m+vt+e/m+vt+v/m+vt+0,{frontOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:r,alpha:f,angle:0,ratio:"0,20,15,15,50"}},backOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:c,alpha:g,angle:0,ratio:"0,62,8,8,22"}},frontInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:p,alph
43a:g,angle:0,ratio:"0,25,5,5,65"}},backInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:u,alpha:f,angle:0,ratio:"0,62,8,8,22"}},topBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:o,alpha:m,angle:0,ratio:"0,20,15,15,50"}},topInnerBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:o,alpha:m,angle:0,ratio:"0,50,15,15,20"}},top:T?{FCcolor:{gradientUnits:"userSpaceOnUse",radialGradient:!0,cx:this.cx,cy:this.cy,r:this.rx,fx:this.cx-.3*this.rx,fy:this.cy+1.2*this.ry,color:d+vt+a,alpha:e+vt+e,ratio:"0,100"}}:{FCcolor:{gradientUnits:"objectBoundingBox",color:l+vt+l+vt+s+vt+n,alpha:e+vt+e+vt+e+vt+e,angle:-72,ratio:"0,8,15,77"}},bottom:S(at(t,v)),startSlice:S(at(i,e)),endSlice:S(at(i,e))}},rotate:function(t){if(!this.hasOnePoint){for(var e,i=this.pointElemStore,n=0,r=i.length;n<r;n+=1)(e=(e=i[n])._confObject).start+=t,e.end+=t,this.updateSliceConf(e);this.refreshDrawing()}},refreshDrawing:function(){var t,e,i,n,r,o=this.slicingWallsArr,a=0,s=o.length,l=this.slicingWallsFrontGroup,c=this.slicingWallsBackGroup;t:{var h,d=o[0]&&o[0]._conf.index;for(r=d<=X,e=1,t=o.length;e<t;e+=1)if((h=o[e]._conf.index)<=X!=r||h<d)break t;e=0}for(;a<s;a+=1,e+=1)e===s&&(e=0),(r=(t=o[e])._conf.index)<J?l.appendChild(t):r<=X?(i?t.insertBefore(i):l.appendChild(t),i=t):r<Z?(n?t.insertBefore(n):c.appendChild(t),n=t):c.appendChild(t)},updateSliceConf:function(t,e){var r,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C,S,k,A,L=this.getArcPath,D=t.start,E=t.end,P=i(D),I=i(E),M=this.cx,O=this.cy,F=this.rx,N=this.ry,j=F+(T?-1:2),$=N+(T?-1:2),V=this.innerRx,H=this.innerRy,W=this.depth,z=this.depthY,q=t.elements;l=M+F*(r=B(P)),h=M+j*r,d=O+$*(o=R(P)),x=(c=O+N*o)+W,w=M+F*(a=B(I)),u=M+j*a,p=O+$*(s=R(I)),C=(_=O+N*s)+W,this.isDoughnut?(f=M+V*r,b=(g=O+H*o)+W,m=M+V*a,y=(v=O+H*s)+W,t.startSlice=["M",l,c,"L",l,x,f,b,f,g,"Z"],t.endSlice=["M",w,_,"L",w,C,m,y,m,v,"Z"]):(t.startSlice=["M",l,c,"L",l,x,M,z,M,O,"Z"],t.endSlice=["M",w,_,"L",w,C,M,z,M,O,"Z"]),T?(L=(P>I?K:0)+I-P,t.clipTopPath=this.isDoughnut?["M",l,c,"A",F,N,0,L>X?1:0,1,w,_,"L",m,v,"A",V,H,0,L>X?1:0,0,f,g,"Z"]:["M",l,c,"A",F,N,0,L>X?1:0,1,w,_,"L",this.cx,this.cy,"Z"],t.clipOuterFrontPath1=this.clipPathforNoClip,t.clipTopBorderPath=["M",h,d,"A",j,$,0,L>X?1:0,1,u,p,"L",w,_,w,_+1,"A",F,N,0,L>X?1:0,0,l,c+1,"L",l,c,"Z"],D!=E?P>I?P<X?(t.clipOuterFrontPath=["M",this.rightX,O,"A",F,N,0,0,1,w,_,"v",W,"A",F,N,0,0,0,this.rightX,O+W,"Z"],t.clipOuterFrontPath1=["M",this.leftX,O,"A",F,N,0,0,0,l,c,"v",W,"A",F,N,0,0,1,this.leftX,O+W,"Z"],t.clipOuterBackPath=["M",this.rightX,O,"A",F,N,0,1,0,this.leftX,O,"v",W,"A",F,N,0,1,1,this.rightX,O+W,"Z"],this.isDoughnut&&(t.clipInnerBackPath=["M",this.rightInnerX,O,"A",V,H,0,1,0,this.leftInnerX,O,"v",W,"A",V,H,0,1,1,this.rightInnerX,O+W,"Z"],t.clipInnerFrontPath=["M",this.rightInnerX,O,"A",V,H,0,0,1,m,v,"v",W,"A",V,H,0,0,0,this.rightInnerX,O+W,"Z","M",this.leftInnerX,O,"A",V,H,0,0,0,f,g,"v",W,"A",V,H,0,0,1,this.leftInnerX,O+W,"Z"])):I>X?(t.clipOuterFrontPath=["M",this.rightX,O,"A",F,N,0,1,1,this.leftX,O,"v",W,"A",F,N,0,1,0,this.rightX,O+W,"Z"],t.clipOuterBackPath=["M",this.leftX,O,"A",F,N,0,0,1,w,_,"v",W,"A",F,N,0,0,0,this.leftX,O+W,"Z","M",this.rightX,O,"A",F,N,0,0,0,l,c,"v",W,"A",F,N,0,0,1,this.rightX,O+W,"Z"],this.isDoughnut&&(t.clipInnerFrontPath=["M",this.rightInnerX,O,"A",V,H,0,1,1,this.leftInnerX,O,"v",W,"A",V,H,0,1,0,this.rightInnerX,O+W,"Z"],t.clipInnerBackPath=["M",this.leftInnerX,O,"A",V,H,0,0,1,m,v,"v",W,"A",V,H,0,0,0,this.leftInnerX,O+W,"Z","M",this.rightInnerX,O,"A",V,H,0,0,0,f,g,"v",W,"A",V,H,0,0,1,this.rightInnerX,O+W,"Z"])):(t.clipOuterFrontPath=["M",this.rightX,O,"A",F,N,0,0,1,w,_,"v",W,"A",F,N,0,0,0,this.rightX,O+W,"Z"],t.clipOuterBackPath=["M",l,c,"A",F,N,0,0,1,this.rightX,O,"v",W,"A",F,N,0,0,0,l,x,"Z"],this.isDoughnut&&(t.clipInnerFrontPath=["M",this.rightInnerX,O,"A",V,H,0,0,1,m,v,"v",W,"A",V,H,0,0,0,this.rightInnerX,O+W,"Z"],t.clipInnerBackPath=["M",f,g,"A",V,H,0,0,1,this.rightInnerX,O,"v",W,"A",V,H,0,0,0,f,b,"Z"])):P<X?I>X?(t.clipOuterFrontPath=["M",l,c,"A",F,N,0,0,1,this.leftX,O,"v",W,"A",F,N,0,0,0,l,x,"Z"],t.clipOuterBackPath=["M",this.leftX,O,"A",F,N,0,0,1,w,_,"v",W,"A",F,N,0,0,0,this.leftX,O+W,"Z"],this.isDoughnut&&(t.clipInnerFrontPath=["M",f,g,"A",V,H,0,0,1,this.leftInnerX,O,"v",W,"A",V,H,0,0,0,f,b,"Z"],t.clipInnerBackPath=["M",this.leftInnerX,O,"A",V,H,0,0,1,m,v,"v",W,"A",V,H,0,0,0,this.leftInnerX,O+W,"Z"])):(t.clipOuterFrontPath=["M",l,c,"A",F,N,0,0,1,w,_,"v",W,"A",F,N,0,0,0,l,x,"Z"],t.clipOuterBackPath=this.clipPathforNoClip,this.isDoughnut&&(t.clipInnerFrontPath=["M",f,g,"A",V,H,0,0,1,m,v,"v",W,"A",V,H,0,0,0,f,b,"Z"],t.clipInnerBackPath=this.clipPathforNoClip)):(t.clipOuterFrontPath=this.clipPathforNoClip,t.clipOuterBackPath=["M",l,c,"A",F,N,0,0,1,w,_,"v",W,"A",F,N,0,0,0,l,x,"Z"],this.isDoughnut&&(t.clipInnerFrontPath=this.clipPathforNoClip,t.clipInnerBackPath=["M",f,g,"A",V,H,0,0,1,m,v,"v",W,"A",V,H,0,0,0,f,b,"Z"])):t.clipOuterFrontPath=t.clipOuterBackPath=t.clipInnerBackPath=t.clipInnerFrontPath=this.clipPathforNoClip,e||(t.elements.startSlice._conf.index=P,t.elements.endSlice._conf.index=I,t.elements.frontOuter._conf.index=n(I,P),t.elements.frontOuter1&&(t.elements.frontOuter1._conf.index=P,t.elements.frontOuter1.attr("litepath",[t.clipOuterFrontPath1])),t.thisElement.attr("litepath",[t.clipTopPath]),t.elements.bottom.attr("litepath",[t.clipTopPath]),t.elements.bottomBorder.attr("litepath",[t.clipTopPath]),t.elements.topBorder&&t.elements.topBorder.attr("litepath",[t.clipTopBorderPath]),t.elements.frontOuter.attr("litepath",[t.clipOuterFrontPath]),t.elements.backOuter.attr("litepath",[t.clipOuterBackPath]),this.isDoughnut&&(t.elements.backInner.attr("litepath",[t.clipInnerBackPath]),t.elements.frontInner.attr("litepath",[t.clipInnerFrontPath]),t.elements.backInner._conf.index=n(I,P)),this.hasOnePoint?(t.elements.startSlice.hide(),t.elements.endSlice.hide()):(t.elements.startSlice.attr("litepath",[t.startSlice]).show(),t.elements.endSlice.attr("litepath",[t.endSlice]).show()))):(h=this.moveCmdArr,d=this.lineCmdArr,u=this.closeCmdArr,S=this.centerPoint,p=this.leftPoint,j=this.topPoint,$=this.rightPoint,W=this.bottomPoint,k=this.leftDepthPoint,A=this.rightDepthPoint,r=this.leftInnerPoint,o=this.rightInnerPoint,a=this.leftInnerDepthPoint,s=this.rightInnerDepthPoint,t.clipOuterFrontPath1=[],D!=E?(P>I?P<X?(D=L(M,O,l,c,this.leftX,O,F,N,1,0),E=L(M,O,this.leftX,O,this.rightX,O,F,N,1,0),_=L(M,O,this.rightX,O,w,_,F,N,1,0),t.clipOuterBackPath=h.concat(p,E,d,A,L(M,z,this.rightX,z,this.leftX,z,F,N,0,0),u),t.clipOuterFrontPath1=h.concat([l,c],D,d,k,L(M,z,this.leftX,z,l,x,F,N,0,0),u),t.clipOuterFrontPath=h.concat($,_,d,[w,C],L(M,z,w,C,this.rightX,z,F,N,0,0),u),t.clipTopBorderPath=h.concat([l,c],D,E,_),this.isDoughnut?(l=L(M,O,m,v,this.rightInnerX,O,V,H,0,0),c=L(M,O,this.rightInnerX,O,this.leftInnerX,O,V,H,0,0),g=L(M,O,this.leftInnerX,O,f,g,V,H,0,0),t.clipInnerBackPath=h.concat(o,c,d,a,L(M,z,this.leftInnerX,z,this.rightInnerX,z,V,H,1,0),u),t.clipInnerFrontPath=h.concat(r,g,d,[f,b],L(M,z,f,b,this.leftInnerX,z,V,H,1,0),u,h,[m,v],l,d,s,L(M,z,this.rightInnerX,z,m,y,V,H,1,0),u),t.clipTopPath=t.clipTopBorderPath.concat(d,[m,v],l,c,g,u),t.clipTopBorderPath=t.clipTopBorderPath.concat(h,[m,v],l,c,g)):t.clipTopPath=t.clipTopBorderPath.concat(d,S,u)):I>X?(D=L(M,O,l,c,this.rightX,O,F,N,1,0),E=L(M,O,this.rightX,O,this.leftX,O,F,N,1,0),_=L(M,O,this.leftX,O,w,_,F,N,1,0),t.clipOuterFrontPath=h.concat($,
43E,d,k,L(M,z,this.leftX,z,this.rightX,z,F,N,0,0),u),t.clipOuterBackPath=h.concat([l,c],D,d,A,L(M,z,this.rightX,z,l,x,F,N,0,0),u,h,p,_,d,[w,C],L(M,z,w,C,this.leftX,z,F,N,0,0),u),t.clipTopBorderPath=h.concat([l,c],D,E,_),this.isDoughnut?(l=L(M,O,m,v,this.leftInnerX,O,V,H,0,0),c=L(M,O,this.leftInnerX,O,this.rightInnerX,O,V,H,0,0),g=L(M,O,this.rightInnerX,O,f,g,V,H,0,0),t.clipInnerFrontPath=h.concat(r,c,d,s,L(M,z,this.rightInnerX,z,this.leftInnerX,z,V,H,1,0),u),t.clipInnerBackPath=h.concat(o,g,d,[f,b],L(M,z,f,b,this.rightInnerX,z,V,H,1,0),u,h,[m,v],l,d,a,L(M,z,this.leftInnerX,z,m,y,V,H,1,0),u),t.clipTopPath=t.clipTopBorderPath.concat(d,[m,v],l,c,g,u),t.clipTopBorderPath=t.clipTopBorderPath.concat(h,[m,v],l,c,g)):t.clipTopPath=t.clipTopBorderPath.concat(d,S,u)):(D=L(M,O,l,c,this.rightX,O,F,N,1,0),E=L(M,O,this.rightX,O,w,_,F,N,1,0),t.clipOuterFrontPath=h.concat($,E,d,[w,C],L(M,z,w,C,this.rightX,z,F,N,0,0),u),t.clipOuterBackPath=h.concat([l,c],D,d,A,L(M,z,this.rightX,z,l,x,F,N,0,0),u),t.clipTopBorderPath=h.concat([l,c],D,E),this.isDoughnut?(l=L(M,O,m,v,this.rightInnerX,O,V,H,0,0),c=L(M,O,this.rightInnerX,O,f,g,V,H,0,0),t.clipInnerFrontPath=h.concat([m,v],l,d,s,L(M,z,this.rightInnerX,z,m,y,V,H,1,0),u),t.clipInnerBackPath=h.concat(o,c,d,[f,b],L(M,z,f,b,this.rightInnerX,z,V,H,1,0),u),t.clipTopPath=t.clipTopBorderPath.concat(d,[m,v],l,c,u),t.clipTopBorderPath=t.clipTopBorderPath.concat(h,[m,v],l,c)):t.clipTopPath=t.clipTopBorderPath.concat(d,S,u)):P<X?I>X?(D=L(M,O,l,c,this.leftX,O,F,N,1,0),E=L(M,O,this.leftX,O,w,_,F,N,1,0),t.clipOuterBackPath=h.concat(p,E,d,[w,C],L(M,z,w,C,this.leftX,z,F,N,0,0),u),t.clipOuterFrontPath=h.concat([l,c],D,d,k,L(M,z,this.leftX,z,l,x,F,N,0,0),u),t.clipTopBorderPath=h.concat([l,c],D,E),this.isDoughnut?(l=L(M,O,m,v,this.leftInnerX,O,V,H,0,0),c=L(M,O,this.leftInnerX,O,f,g,V,H,0,0),t.clipInnerBackPath=h.concat([m,v],l,d,a,L(M,z,this.leftInnerX,z,m,y,V,H,1,0),u),t.clipInnerFrontPath=h.concat(r,c,d,[f,b],L(M,z,f,b,this.leftInnerX,z,V,H,1,0),u),t.clipTopPath=t.clipTopBorderPath.concat(d,[m,v],l,c,u),t.clipTopBorderPath=t.clipTopBorderPath.concat(h,[m,v],l,c)):t.clipTopPath=t.clipTopBorderPath.concat(d,S,u)):(D=L(M,O,l,c,w,_,F,N,1,0),t.clipOuterBackPath=h.concat([l,c]),t.clipTopBorderPath=t.clipOuterBackPath.concat(D),t.clipOuterFrontPath=t.clipTopBorderPath.concat(d,[w,C],L(M,z,w,C,l,x,F,N,0,0),u),this.isDoughnut?(l=L(M,O,m,v,f,g,V,H,0,0),t.clipInnerBackPath=h.concat([m,v]),t.clipTopPath=t.clipTopBorderPath.concat(d,[m,v],l,u),t.clipTopBorderPath=t.clipTopBorderPath.concat(h,[m,v],l),t.clipInnerFrontPath=t.clipInnerBackPath.concat(l,d,[f,b],L(M,z,f,b,m,y,V,H,1,0),u)):t.clipTopPath=t.clipTopBorderPath.concat(d,S,u)):(D=L(M,O,l,c,w,_,F,N,1,0),t.clipOuterFrontPath=h.concat([l,c]),t.clipTopBorderPath=t.clipOuterFrontPath.concat(D),t.clipOuterBackPath=t.clipTopBorderPath.concat(d,[w,C],L(M,z,w,C,l,x,F,N,0,0),u),this.isDoughnut?(l=L(M,O,m,v,f,g,V,H,0,0),t.clipInnerFrontPath=h.concat([m,v]),t.clipTopPath=t.clipTopBorderPath.concat(d,[m,v],l,u),t.clipTopBorderPath=t.clipTopBorderPath.concat(t.clipInnerFrontPath,l),t.clipInnerBackPath=t.clipInnerFrontPath.concat(l,d,[f,b],L(M,z,f,b,m,y,V,H,1,0),u)):t.clipTopPath=t.clipTopBorderPath.concat(d,S,u)),D=h.concat(p,d,$),l=h.concat(j,d,W),t.clipTopPath=t.clipTopPath.concat(D,l),t.clipOuterFrontPath=t.clipOuterFrontPath.concat(D),t.clipOuterFrontPath1=t.clipOuterFrontPath1.concat(D),t.clipOuterBackPath=t.clipOuterBackPath.concat(D),this.isDoughnut&&(l=h.concat(r,d,o),t.clipInnerFrontPath=t.clipInnerFrontPath.concat(l),t.clipInnerBackPath=t.clipInnerBackPath.concat(l))):(t.clipTopPath=t.clipOuterFrontPath=t.clipOuterBackPath=[],
44this.isDoughnut&&(t.clipInnerFrontPath=t.clipInnerBackPath=[])),e||(t.elements.startSlice._conf.index=P,t.elements.endSlice._conf.index=I,t.elements.frontOuter._conf.index=n(I,P),t.elements.frontOuter1&&(t.elements.frontOuter1._conf.index=P,q.frontOuter1.attr({path:t.clipOuterFrontPath1})),t.thisElement.attr({path:t.clipTopPath}),q.topBorder.attr({path:t.clipTopBorderPath}),q.bottom.attr({path:t.clipTopPath}),q.bottomBorder.attr({path:t.clipTopBorderPath}),q.frontOuter.attr({path:t.clipOuterFrontPath}),q.backOuter.attr({path:t.clipOuterBackPath}),this.isDoughnut&&(q.frontInner.attr({path:t.clipInnerFrontPath}),q.backInner.attr({path:t.clipInnerBackPath})),this.hasOnePoint?(t.elements.startSlice.hide(),t.elements.endSlice.hide()):(t.elements.startSlice.attr({path:t.startSlice}).show(),t.elements.endSlice.attr({path:t.endSlice}).show())))},onPlotHover:function(t,e){var n=this.pointElemStore[t]._confObject,r=n.thisElement,o=n.elements,a=(h=this.colorObjs[t]).hoverProps,s=e?a.hoverColorObj:h.color,l=h.showBorderEffect,c=e?a.borderColor:h.borderColor,h=e?a.borderWidth:h.borderWidth;T?(a={fill:S(s.top),"stroke-width":0},1!==l&&(a.stroke=c,a["stroke-width"]=h),r._attr(a),l&&o.topBorder.attr({fill:S(s.topBorder),"stroke-width":0})):(r._attr({fill:S(s.top),"stroke-width":0}),o.topBorder.attr({stroke:c,"stroke-width":h})),o.bottom.attr({fill:S(s.bottom),"stroke-width":0}),o.bottomBorder.attr({stroke:c,"stroke-width":h}),o.frontOuter.attr({fill:S(s.frontOuter),"stroke-width":0}),o.backOuter.attr({fill:S(s.backOuter),"stroke-width":0}),o.startSlice.attr({fill:S(s.startSlice),stroke:c,"stroke-width":h}),o.endSlice.attr({fill:S(s.endSlice),stroke:c,"stroke-width":h}),((r=i(n.start))>(n=i(n.end))?K:0)+n-r>X&&o.frontOuter1.attr({fill:S(s.frontOuter),"stroke-width":0}),this.isDoughnut&&(o.frontInner.attr({fill:S(s.frontInner),"stroke-width":0}),o.backInner.attr({fill:S(s.backInner),"stroke-width":0}))}
44,setAttrs:function(t,e,i,n){t=(r=t._confObject).thisElement;var r=r.elements,o=n?this.parseColor(f(i.color,e.color),f(i.alpha,e._3dAlpha)):this.parseColor(e.color,e._3dAlpha);i=n?l.graphics.convertColor(i.bordercolor||e.borderColor,f(i.alpha,e._3dAlpha)):e.borderColor,e=e.borderWidth,T?((n={fill:S(o.top),"stroke-width":0}).stroke=i,n["stroke-width"]=e,t._attr(n)):(t._attr({fill:S(o.top),"stroke-width":0}),r.topBorder.attr({stroke:i,"stroke-width":e})),r.bottom.attr({fill:S(o.bottom),"stroke-width":0}),r.bottomBorder.attr({stroke:i,"stroke-width":e}),r.frontOuter.attr({fill:S(o.frontOuter),"stroke-width":0}),r.backOuter.attr({fill:S(o.backOuter),"stroke-width":0}),r.startSlice.attr({fill:S(o.startSlice),stroke:i,"stroke-width":e}),r.endSlice.attr({fill:S(o.endSlice),stroke:i,"stroke-width":e}),this.isDoughnut&&(r.frontInner.attr({fill:S(o.frontInner),"stroke-width":0}),r.backInner.attr({fill:S(o.backInner),"stroke-width":0}))},createSlice:function(){var t={stroke:!0,strokeWidth:!0,"stroke-width":!0,dashstyle:!0,"stroke-dasharray":!0,translateX:!0,translateY:!0,"stroke-opacity":!0,transform:!0,fill:!0,opacity:!0,ishot:!0,start:!0,end:!0,cursor:!0},e=function(e,i){var n,r,o,a,s,l=this,c=l._confObject,h=c.elements,d=c.Pie3DManager;if("string"==typeof e&&null!=i&&(n=e,(e={})[n]=i),e&&"string"!=typeof e){for(n in void 0!==e.cx&&(e.start=e.cx),void 0!==e.cy&&(e.end=e.cy),e)if(r=e[n],t[n])if(c[n]=r,"ishot"===n||"cursor"===n){for(a in(o={})[n]=r,h)h[a].attr(o);l._attr(o)}else if("transform"===n){for(a in h)h[a].attr({transform:e[n]});l._attr({transform:e[n]})}else"stroke"===n||"strokeWidth"===n||"stroke-width"===n||"dashstyle"===n||"stroke-dasharray"===n?((o={})[n]=r,h.topBorder&&h.topBorder.attr(o),h.startSlice.attr(o),h.endSlice.attr(o),h.bottomBorder.attr(o)):"fill"===n||"start"!==n&&"end"!==n||(s=!0);else l._attr(n,r);s&&(d.updateSliceConf(c),d.refreshDrawing())}else l=l._attr(e);return l},r=function(t,e,i,n){var r,o=this._confObject.elements;for(r in o)i?o[r].drag(e,i,n):o[r].on(t,e);return i?this.drag(e,i,n):this._on(t,e)},o=function(){var t,e=this._confObject.elements;for(t in e)e[t].hide();return this._hide()},a=function(){var t,e=this._confObject.elements;for(t in e)e[t].show();return this._show()},s=function(){var t,e=this._confObject,i=e.elements;for(t in i)i[t].destroy();return T&&(e.clipTop.destroy(),e.clipOuterFront.destroy(),e.clipOuterBack.destroy(),e.clipOuterFront1&&e.clipOuterFront1.destroy(),e.clipInnerFront&&e.clipInnerFront.destroy(),e.clipInnerBack&&e.clipInnerBack.destroy()),this._destroy()};return function(t,l,c,h,d,u,p,f,g,m){var v=this.renderer;c=this.parseColor(c,h),t={start:t,end:l,elements:{},Pie3DManager:this},l=this.slicingWallsArr,h=t.elements;var b,y=T?"litepath":"path";if(m&&(this.colorObjs[p]={color:c,borderColor:d,borderWidth:u,showBorderEffect:!1},m.hoverColorObj=this.parseColor(m.color,m.alpha),this.colorObjs[p].hoverProps=m),this.updateSliceConf(t,!0),T?(m={fill:S(c.top),"stroke-width":0},1!==g&&(m.stroke=d,m["stroke-width"]=u),m=v[y](t.clipTopPath,this.topGroup).attr(m),g&&(h.topBorder=v[y](t.clipTopBorderPath,this.topGroup).attr({fill:S(c.topBorder),"stroke-width":0}))):(m=v[y](t.clipTopPath,this.topGroup).attr({fill:S(c.top),"stroke-width":0}),h.topBorder=v[y](t.clipTopBorderPath,this.topGroup).attr({stroke:d,"stroke-width":u})),h.bottom=v[y](t.clipTopPath,this.bottomBorderGroup).attr({fill:S(c.bottom),"stroke-width":0}),h.bottomBorder=v[y](T?t.clipTopPath:t.clipTopBorderPath,this.bottomBorderGroup).attr({stroke:d,"stroke-width":u}),h.frontOuter=v[y](t.clipOuterFrontPath,this.slicingWallsFrontGroup).attr({fill:S(c.frontOuter),"stroke-width":0}),h.backOuter=v[y](t.clipOuterBackPath,this.outerBackGroup).attr({fill:S(c.backOuter),"stroke-width":0}),h.startSlice=v[y](t.startSlice,this.slicingWallsFrontGroup).attr({fill:S(c.startSlice),stroke:d,"stroke-width":u}),h.endSlice=v[y](t.endSlice,this.slicingWallsFrontGroup).attr({fill:S(c.endSlice),stroke:d,"stroke-width":u}),(g=((d=i(t.start))>(u=i(t.end))?K:0)+u-d)>X&&(h.frontOuter1=v[y](t.clipOuterFrontPath1,this.slicingWallsFrontGroup).attr({fill:S(c.frontOuter),"stroke-width":0}),h.frontOuter1._conf={index:d,isStart:.5,pIndex:p},T&&(t.clipOuterFront1=t.clipOuterFrontPath1)),h.frontOuter._conf={index:n(u,d),isStart:.5,pIndex:p},h.startSlice._conf={index:d,isStart:0,pIndex:p},h.endSlice._conf={index:u,isStart:1,pIndex:p},this.hasOnePoint&&(h.startSlice.hide(),h.endSlice.hide()),this.isDoughnut?(h.frontInner=v[y](t.clipInnerFrontPath,this.innerFrontGroup).attr({fill:S(c.frontInner),"stroke-width":0}),h.backInner=v[y](t.clipInnerBackPath,this.innerBackGroup).attr({fill:S(c.backInner),"stroke-width":0}),h.backInner._conf={index:n(u,d),isStart:.5,pIndex:p},g>X?T?l.push(h.startSlice,h.frontOuter1,h.frontOuter,h.backInner,h.endSlice):l.push(h.startSlice,h.frontOuter1,h.frontOuter,h.endSlice):T?l.push(h.startSlice,h.frontOuter,h.backInner,h.endSlice):l.push(h.startSlice,h.frontOuter,h.endSlice)):g>X?l.push(h.startSlice,h.frontOuter1,h.frontOuter,h.endSlice):l.push(h.startSlice,h.frontOuter,h.endSlice),void 0!==f){for(b in h)h[b].tooltip(f);m.tooltip(f)}return T&&(t.clipTop=t.clipTopPath,t.clipOuterFront=t.clipOuterFrontPath,t.clipOuterBack=t.clipOuterBackPath,this.isDoughnut&&(t.clipInnerFront=t.clipInnerFrontPath,t.clipInnerBack=t.clipInnerBackPath)),m._confObject=t,t.thisElement=m,m._destroy=m.destroy,m.destroy=s,m._show=m.show,m.show=a,m._hide=m.hide,m.hide=o,m._on=m.on,m.on=r,m._attr=m.attr,m.attr=e,this.pointElemStore.push(m),m}}()},o.prototype.constructor=o,gt("renderer.pie3d",{type:"pie3d",isHovered:!1,translate:function(){var t,i,n,r,a,s,l,c,h=0,d=(_=this.options).series[0],u=_.plotOptions.series.dataLabels,p=_.plotOptions.pie3d,g=f(d.startAngle,0)%360,m=d.managedPieSliceDepth,b=d.slicedOffset=p.slicedOffset,y=this.canvasWidth,x=this.canvasHeight,w=[this.canvasLeft+.5*y,this.canvasTop+.5*x-.5*m],_=d.data,C=$(y,x),S=u.distance,k=d.pieYScale,A=d.pieSliceDepth,T=d.slicedOffsetY=b*k;w.push(p.size,p.innerSize||0),w=e(w,(function(t,e){return/%$/.test(t)?[y,x-m,C,C][e]*parseInt(t,10)/100:t})),w[2]/=2,w[3]/=2,w.push(w[2]*k),w.push((w[2]+w[3])/2),w.push(w[5]*k),d.getX=function(t,e){return n=F.asin((t-w[1])/(w[2]+S)),w[0]+(e?-1:1)*B(n)*(w[2]+S)},d.center=w,L(_,(function(t){h+=t.y})),d.labelsRadius=w[2]+S,d.labelsRadiusY=d.labelsRadius*k,d.quadrantHeight=(x-m)/2,d.quadrantWidth=y/2,r=j(1e3*(r=-g*G))/1e3,a=r+K,p=v(parseInt(u.style.fontSize,10),10)+4,d.maxLabels=q(d.quadrantHeight/p),d.labelFontSize=p,d.connectorPadding=v(u.connectorPadding,5),d.isSmartLineSlanted=f(u.isSmartLineSlanted,!0),d.connectorWidth=v(u.connectorWidth,1),d.enableSmartLabels=u.enableSmartLabels,d.Pie3DManager||(d.Pie3DManager=new o(w[0],w[1],w[2],w[3],k,A,this.layers.dataset,this.paper,1===d.data.length,d.use3DLighting)),L(_,(function(e){t=r,s=h?e.y/h:0,(r=j(1e3*(r+s*K))/1e3)>a&&(r=a),i=r,e.shapeArgs={start:j(1e3*t)/1e3,end:j(1e3*i)/1e3},e.centerAngle=n=(i+t)/2%K,e.slicedTranslation=[j(B(n)*b),j(R(n)*T)],l=B(n)*w[2],d.radiusY=c=R(n)*w[4],e.tooltipPos=[w[0]+.7*l,w[1]+c],e.percentage=100*s,e.total=h}))},drawPlotPie3d:function(e,i){this.translate();var n,r,o,a,s,l,c,h,d,u,p=this,f=e.items,g=e.data,m=(w=(N=p.options).plotOptions).series,b=p.layers,y=p.elements.plots[0],x=p.datasets[0],w=w.series.dataLabels,_=m.dataLabels.style,C=(m=v(e.moveDuration,m.animation.duration),p.paper),k=(k=N.tooltip||{})&&!1!==k.enabled,A=x.slicedOffset,T=x.slicedOffsetY,L=p.plotDragMove,D=p.plotDragStart,E=p.plotDragEnd,P=p.plotRollOver,I=p.plotRollOut,M=!!p.datasets[0].enableRotation,O=i.showBorderEffect,F=g.length,N=(j=N.chart).usePerPointLabelColor,j=j.textDirection,$={fontFamily:_.fontFamily,fontSize:_.fontSize,lineHeight:_.lineHeight,fontWeight:_.fontWeight,fontStyle:_.fontStyle},V=function(t){return function(){p.legendClick(t,!0,!1)}},H=function(t){return function(){return p.getEventArgs(t)}},W=function(t){return function(e,i,n,r,o){L.call(t,e,i,n,r,o)}},z=function(t){return function(e,i,n){D.call(t,e,i,n)}},q=function(t){return function(e){E.call(t,e)}},U=function(t){return function(e){I.call(t,e)}},G=function(t){return function(e){P.call(t,e)}};
44for(g&&F||(g=[]),y.singletonCase=1===F,y.chartPosition=t(p.container),y.pieCenter=x.center,y.timerThreshold=30,u=-1;++u<F;)_=(o=g[u]).y,a=o.displayValue,$=o.sliced,h=o.shapeArgs,n=o.centerAngle,d=o.toolText,l=(s=!!o.link)||M||!o.doNotSlice,null==_||(r=f[u])||(i.data[u].plot=r=f[u]={chart:p,index:u,seriesData:y,value:_,angle:n,link:o.link,shapeArgs:h,slicedX:$&&!y.singletonCase?B(n)*A:0,slicedY:$&&!y.singletonCase?R(n)*T:0,sliced:$,labelText:a,name:o.name,label:o.name,percentage:o.percentage,toolText:d,originalIndex:F-u-1,style:o.style,graphic:x.Pie3DManager.createSlice(h.start,h.end,o.color,o._3dAlpha,o.borderColor,o.borderWidth,u,k?d:"",O,o.rolloverProperties)},i.data[u].legendClick=V(r),i.data[u].getEventArgs=H(r),r.graphic.plotItem=r,r.graphic.data("plotItem",r),r.transX=B(n)*A,r.transY=R(n)*T,r.slicedTranslation="t"+r.transX+","+r.transY,n={index:i.reversePlotOrder?u:F-1-u,link:o.link,value:o.y,displayValue:o.displayValueArgs,categoryLabel:o.categoryLabel,isSliced:o.sliced,toolText:o.toolText},r.graphic.attr({transform:"t"+r.slicedX+","+r.slicedY,ishot:l,cursor:s?"pointer":""}).drag(W(r),z(r),q(r)).data("groupId",u).data("eventArgs",n).mouseover(G(r)).mouseout(U(r)),void 0!==a&&($={fontFamily:(_=o.style).fontFamily,fontSize:_.fontSize,lineHeight:_.lineHeight,fontWeight:_.fontWeight,fontStyle:_.fontStyle},r.dataLabel=C.text(b.dataset).css($).attr({text:a,title:o.originalText||"",fill:(N?S(o.color):_.color)||"#000000","text-bound":[_.backgroundColor,_.borderColor,_.borderThickness,_.borderPadding,_.borderRadius,_.borderDash],visibility:"hidden",direction:j,ishot:l,cursor:s?"pointer":""}).data("eventArgs",n).hover(G(r),U(r)).drag(W(r),z(r),q(r)).data("plotItem",r),0<w.distance&&(c=w.connectorWidth)&&w.enableSmartLabels&&(r.connector=C.path("M 0 0 l 0 0",b.dataset).attr({"stroke-width":c,stroke:w.connectorColor||"#606060",visibility:"hidden",ishot:l,cursor:s?"pointer":""}).data("eventArgs",n).hover(G(r),U(r)).drag(W(r),z(r),q(r)).data("plotItem",r))));x.Pie3DManager.refreshDrawing(),0<m?p.animate(f,m):p.placeDataLabels(!1,f)},rotate:function(t){var e,n=this.datasets[0],r=this.elements.plots[0].items,o=n.slicedOffset,a=n.slicedOffsetY,s=n.startAngle;t=isNaN(t)?-n._lastAngle:t,e=(t-s)%360,n.startAngle=v(t,n.startAngle)%360,e=-e*W/180,n.Pie3DManager&&n.Pie3DManager.rotate(e),L(r,(function(t){var n=t.graphic,r=(s=t.shapeArgs).start+=e,s=s.end+=e,l=t.angle=i((r+s)/2);r=t.sliced,s=B(l),l=R(l);t.slicedTranslation=[j(s*o),j(l*a)],t.transX=t.slicedTranslation[0],t.transY=t.slicedTranslation[1],t.slicedX=r?B(e)*o:0,t.slicedY=r?R(e)*a:0,n&&r&&t.graphic.attr({transform:"t"+t.slicedTranslation[0]+","+t.slicedTranslation[1]})})),this.placeDataLabels(!0,r)},plotRollOver:function(t){var e=this.chart,i=e.datasets[0].Pie3DManager;this.seriesData.isRotating||(P.call(this.graphic,e,t,"DataPlotRollOver"),i.colorObjs[this.index]&&i.onPlotHover(this.index,!0)),e.isHovered=!0},plotRollOut:function(t){var e=this.chart,i=e.datasets[0].Pie3DManager;this.seriesData.isRotating||(P.call(this.graphic,e,t,"DataPlotRollOut"),i.colorObjs[this.index]&&i.onPlotHover(this.index,!1)),e.isHovered=!1},plotDragStart:function(t,e,i){var n=this.seriesData,o=this.chart.datasets[0];n.isRotating=!1,o.enableRotation&&(t=r.call(i,t,e,n.pieCenter,n.chartPosition,o.pieYScale),o.dragStartAngle=t,o._lastAngle=-o.startAngle,o.startingAngleOnDragStart=o.startAngle)},plotDragEnd:function(t){var e=this.chart,n=e.datasets[0],r=n.Pie3DManager,o=n.startAngle,a=this.seriesData,l={hcJSON:{series:[{startAngle:o}]}};e.disposed||_(e.logic.chartInstance.jsVars._reflowData,l,!0),!a.isRotating&&e.plotGraphicClick.call(this,t),a.isRotating&&(setTimeout((function(){a.isRotating=!1}),0),s.raiseEvent("rotationEnd",{startingAngle:i(o,!0),changeInAngle:o-n.startingAngleOnDragStart},e.logic.chartInstance),!e.isHovered&&r.colorObjs[this.index]&&r.onPlotHover(this.index,!1))},plotDragMove:function(t,e,n,o,a){var l=this.chart;t=l.datasets[0],e=this.seriesData,l.options.series[0].enableRotation&&!e.singletonCase&&(n=r.call(a,n,o,e.pieCenter,e.chartPosition,t.pieYScale),e.isRotating||(t.dragStartAngle!==n&&(e.isRotating=!0),s.raiseEvent("rotationStart",{startingAngle:i(t.startAngle,!0)},l.logic.chartInstance)),o=n-t.dragStartAngle,t.dragStartAngle=n,e.moveDuration=0,t._lastAngle+=180*o/W,n=(new Date).getTime(),!t._lastTime||t._lastTime+e.timerThreshold<n)&&(t._lastTime||l.rotate(),e.timerId=setTimeout((function(){l.disposed&&l.disposing||l.rotate()}),e.timerThreshold),t._lastTime=n)},animate:function(t,e){var i,n,r,o,a,s,l,h=t.length,d=this,u=function(){d.disposed||d.disposing||d.placeDataLabels(!1,t)};if(d.datasets[0].alphaAnimation)d.layers.dataset.attr({opacity:0}
44),d.layers.dataset.animate({opacity:1},e,"ease-in",(function(){d.disposed||d.disposing||d.placeDataLabels(!1,t)}));else for(i=0;i<h;i++)a=(o=t[i]).graphic,s=o.shapeArgs,o=2*W,a&&(a.attr({start:o,end:o}),l=s.start,s=s.end,n?a.animateWith(n,r,{cx:l-o,cy:s-o},e,"ease-in"):(r=c.animation({cx:l-o,cy:s-o},e,"ease-in",u),n=a.animate(r)))},placeDataLabels:function(){var t=function(t,e){return t.point.value-e.point.value},e=function(t,e){return t.angle-e.angle},i=["start","start","end","end"],n=[-1,1,1,-1],r=[1,1,-1,-1];return function(o,a){var s,l,c,h,d,u,p,f,g,m,y,x,w,_,C,S,k=this.datasets[0],A=this.smartLabel,T=this.options.plotOptions.series.dataLabels,D=T.style,E=v(z(parseFloat(D.lineHeight)),12),P=b(T.placeInside,!1),I=T.skipOverlapLabels,M=T.manageLabelOverflow,N=T.connectorPadding,W=T.connectorWidth,q=0<T.distance,U=k.center,G=U[1],Y=U[0],Q=U[2],tt=U[4],et=[[],[],[],[]],it=this.canvasLeft,nt=this.canvasTop,rt=this.canvasWidth,ot=k.labelsRadius,at=j(100*k.labelsRadiusY)/100,st=k.labelFontSize,lt=st,ct=lt/2,ht=(N=[N,N,-N,-N],k.maxLabels),dt=k.isSmartLineSlanted,ut=k.enableSmartLabels;k=k.pieSliceDepth/2;if(o||A.setStyle(D),1==a.length)f=a[0],S=f.dataLabel,f.slicedTranslation=[it,nt],S&&(S.attr({visibility:O,"text-anchor":"middle",x:Y,y:G+ct-2}),S.x=Y);else if(P)L(a,(function(t){if(S=t.dataLabel){if(C=t.angle,_=G+U[6]*R(C)+ct-2,y=Y+U[5]*B(C),S.x=y,S._x=y,S.y=_,t.sliced){var e=(t=t.slicedTranslation)[1]-nt;y+=t[0]-it,_+=e}S.attr({visibility:O,align:"middle",x:y,y:_})}}));else{for(L(a,(function(t){(S=t.dataLabel)&&(0>(C=t.angle)&&(C=K+C),et[0<=C&&C<J?1:C<X?2:C<Z?3:0].push({point:t,angle:C}))})),h=P=4;h--;){if(I&&0<(f=et[h].length-ht))for(et[h].sort(t),u=0,p=(c=et[h].splice(0,f)).length;u<p;u+=1)(f=c[u].point).dataLabel.attr({visibility:"hidden"}),f.connector&&f.connector.attr({visibility:"hidden"});et[h].sort(e)}for(h=V(et[0].length,et[1].length,et[2].length,et[3].length),at=V($(h,ht)*lt,at+lt),et[1].reverse(),et[3].reverse(),A.setStyle(D);P--;){for(p=(u=et[P]).length,I||(ct=(lt=p>ht?at/p:st)/2),f=p*lt,D=at,h=0;h<p;h+=1,f-=lt)D<(l=H(at*R(u[h].angle)))?l=D:l<f&&(l=f),D=(u[h].oriY=l)-lt;for(c=i[P],p=at-(p-1)*lt,D=0,h=u.length-1;0<=h;--h,p+=lt)f=u[h].point,C=u[h].angle,g=f.sliced,S=f.dataLabel,(l=H(at*R(C)))<D?l=D:l>p&&(l=p),D=l+lt,x=(l+u[h].oriY)/2,l=Y+r[P]*ot*B(F.asin(x/at)),x*=n[P],x+=G,w=G+tt*R(C),m=Y+Q*B(C),(2>P&&l<m||1<P&&l>m)&&(l=m),y=l+N[P],_=x+ct-2,s=y+N[P],S.x=s,S._x=s,M&&(d=1<P?s-this.canvasLeft:this.canvasLeft+rt-s,A.setStyle(f.style),E=v(z(parseFloat(f.style.lineHeight)),12)+(2*z(parseFloat(f.style.border),12)||0),E=A.getSmartText(f.labelText,d,E),S.attr({text:E.text}).tooltip(E.tooltext)),C<X&&(x+=k,w+=k,_+=k),S.y=_,g&&(E=f.transX,g=f.transY,y+=E,l+=E,m+=E,w+=g,s+=E),S.attr({visibility:O,"text-anchor":c,x:s,y:x}),q&&W&&ut&&(s=f.connector,f.connectorPath=l=["M",m,w,"L",dt?l:m,x,y,x],s?(s.attr({path:l}),s.attr("visibility",O)):f.connector=s=this.paper.path(l).attr({"stroke-width":W,stroke:T.connectorColor||"#606060",visibility:O}))}}}}()},gt["renderer.piebase"]),gt("renderer.pie",{drawDoughnutCenterLabel:function(t,e,i,n,r,o,a){var s=this.options.series[0];o=o||s.lastCenterLabelConfig;var l,c=this.paper,h=this.smartLabel,d=this.layers.dataset,u=this.elements,p=o.padding,f=2*o.textPadding,g={fontFamily:o.font,fontSize:o.fontSize+"px",lineHeight:1.2*o.fontSize+"px",fontWeight:o.bold?"bold":"",fontStyle:o.italic?"italic":""},m=1.414*(.5*n-p)-f;r=1.414*(.5*r-p)-f,h.setStyle(g),h=h.getSmartText(t,m,r),(r=u.doughnutCenterLabel)?(r.attr("text")!==t&&this.centerLabelChange(t),l=u.centerLabelOvalBg):(o.bgOval&&(u.centerLabelOvalBg=l=c.circle(e,i,.5*n-p,d)),(r=u.doughnutCenterLabel=c.text(d).hover(this.centerLabelRollover,this.centerLabelRollout).click(this.centerLabelClick)).chart=this),t?(r.css(g).attr({x:e,y:i,text:h.text,visibility:O,direction:this.options.chart.textDirection,fill:S({FCcolor:{color:o.color,alpha:o.alpha}}),"text-bound":o.bgOval?"none":[S({FCcolor:{color:o.bgColor,alpha:o.bgAlpha}}),S({FCcolor:{color:o.borderColor,alpha:o.borderAlpha}}),o.borderThickness,o.textPadding,o.borderRadius]}).tooltip(o.toolText||h.tooltext),o.bgOval&&l&&l.attr({visibility:O,fill:ft(o.bgColor),"fill-opacity":o.bgAlpha/100,stroke:ft(o.borderColor),"stroke-width":o.borderThickness,"stroke-opacity":o.borderAlpha/100})):(r.attr("visibility","hidden"),l&&l.attr("visibility","hidden")),a&&(s.lastCenterLabelConfig=o)},centerLabelRollover:function(){var t=this.chart,e=t.fusionCharts,i=t.o
44ptions.series[0].lastCenterLabelConfig;e={height:e.args.height,width:e.args.width,pixelHeight:e.ref.offsetHeight,pixelWidth:e.ref.offsetWidth,id:e.args.id,renderer:e.args.renderer,container:e.options.containerElement,centerLabelText:i&&i.label};this.attr("text")&&s.raiseEvent("centerLabelRollover",e,t.logic.chartInstance,this,t.hoverOnCenterLabel)},centerLabelRollout:function(){var t=this.chart,e=t.fusionCharts,i=t.options.series[0].lastCenterLabelConfig;e={height:e.args.height,width:e.args.width,pixelHeight:e.ref.offsetHeight,pixelWidth:e.ref.offsetWidth,id:e.args.id,renderer:e.args.renderer,container:e.options.containerElement,centerLabelText:i&&i.label};this.attr("text")&&s.raiseEvent("centerLabelRollout",e,t.logic.chartInstance,this,t.hoverOffCenterLabel)},centerLabelClick:function(){var t=this.chart,e=t.fusionCharts,i=t.options.series[0].lastCenterLabelConfig;e={height:e.args.height,width:e.args.width,pixelHeight:e.ref.offsetHeight,pixelWidth:e.ref.offsetWidth,id:e.args.id,renderer:e.args.renderer,container:e.options.containerElement,centerLabelText:i&&i.label};this.attr("text")&&s.raiseEvent("centerLabelClick",e,t.logic.chartInstance)},centerLabelChange:function(t){var e=this.fusionCharts;s.raiseEvent("centerLabelChanged",{height:e.args.height,width:e.args.width,pixelHeight:e.ref.offsetHeight,pixelWidth:e.ref.offsetWidth,id:e.args.id,renderer:e.args.renderer,container:e.options.containerElement,centerLabelText:t},this.logic.chartInstance)},hoverOnCenterLabel:function(){var t=this.chart.options.series[0].lastCenterLabelConfig;(t.hoverColor||t.hoverAlpha)&&this.attr({fill:S({FCcolor:{color:t.hoverColor||t.color,alpha:t.hoverAlpha||t.alpha}})})},hoverOffCenterLabel:function(){var t=this.chart.options.series[0].lastCenterLabelConfig;(t.hoverColor||t.hoverAlpha)&&this.attr({fill:S({FCcolor:{color:t.color,alpha:t.alpha}})})},drawPlotPie:function(e,i){var n,r,o,a,s,l,h,d,u,p,f,g,m,b,y,x=this,w=e.items,_=e.data,C=(tt=x.options).series[0],k=(E=tt.plotOptions).pie,A=E.series,T=x.layers,L=T.dataset,D=x.elements.plots[0],E=E.series.dataLabels,P=A.dataLabels.style,I=A.shadow,M=(A=v(e.moveDuration,A.animation.duration),x.paper),F=(F=tt.tooltip||{})&&!1!==F.enabled,N=((i.startAngle*=-X/180)||0)%K,j=k.slicedOffset,$=i.valueTotal,V=K/$,H=x.canvasLeft+.5*x.canvasWidth,W=x.canvasTop+.5*x.canvasHeight,z=.5*k.size,q=(k=.5*(k.innerSize||0),x.plotDragMove),U=x.plotDragStart,G=x.plotDragEnd,Y=x.plotRollOver,J=x.plotRollOut,Z=!!x.datasets[0].enableRotation,Q=_.length,tt=(et=tt.chart).usePerPointLabelColor,et=et.textDirection,it=C.centerLabelConfig,nt=it.label,rt={fontFamily:P.fontFamily,fontSize:P.fontSize,lineHeight:P.lineHeight,fontWeight:P.fontWeight,fontStyle:P.fontStyle},ot=e.shadowGroup,at=function(t){return function(){x.legendClick(t,!0,!1)}},st=function(t){return function(){return x.getEventArgs(t)}},lt=function(){x.disposed||x.disposing||x.paper.ca.redrawDataLabels||(x.placeDataLabels(!1,w,e),x.paper.ca.redrawDataLabels=x.redrawDataLabels)};for(_&&Q||(_=[]),ot||(ot=e.shadowGroup=M.group(L).toBack()),D.singletonCase=1===Q,D.chartPosition||(D.chartPosition=t(x.container)),D.pieCenter=[H,W],D.timerThreshold=30,u=d=N,f=Q;f--;)rt=(r=_[f]).y,o=r.displayValue,s=r.sliced,P=r.toolText,l=(a=!!r.link)||Z||!r.doNotSlice,null!=rt&&((n=r.color.FCcolor).r=z,n.cx=H,n.cy=W,r.rolloverProperties&&((n=r.rolloverProperties.color.FCcolor).r=z,n.cx=H,n.cy=W),u=d,h=.5*((d-=D.singletonCase?K:rt*V)+u),A?b=y=N:(b=d,y=u),(n=w[f])||(i.data[f].plot=n=w[f]={chart:x,index:f,seriesData:D,value:rt,angle:h,slicedX:B(h)*j,slicedY:R(h)*j,sliced:s,labelText:o,toolText:P,label:r.name,link:r.link,percentage:$?rt*$/100:0,originalIndex:Q-f-1,style:r.style,color:r.color,borderColor:r.borderColor,borderWidth:r.borderWidth,rolloverProperties:r.rolloverProperties,center:[H,W],innerDiameter:2*k,centerLabelConfig:r.centerLabelConfig,graphic:M.ringpath(H,W,z,k,b,y,T.dataset).attr({"stroke-width":r.borderWidth,"stroke-linejoin":"round",stroke:r.borderColor,fill:S(r.color),"stroke-dasharray":r.dashStyle,redrawDataLabels:N,ishot:l,cursor:a?"pointer":""}).shadow(I&&r.shadow,ot).drag(q,U,G).hover(Y,J)},F&&n.graphic.tooltip(P),i.data[f].legendClick=at(n),i.data[f].getEventArgs=st(n),n.graphic.data("plotItem",n),a={index:i.reversePlotOrder?f:Q-1-f,link:r.link,value:r.y,displayValue:r.displayValueArgs,categoryLabel:r.categoryLabel,isSliced:r.sliced,toolText:r.toolText},n.graphic.data("eventArgs",a),void 0!==o&&(rt={fontFamily:(P=r.style).fontFamily,fontSize:P.fontSize,lineHeight:P.lineHeight,fontWeight:P.fontWeight,fontStyle:P.fontStyle},n.dataLabel=M.text(L).css(rt).attr({text:o,fill:(tt?S(r.color):P.color)||"#000000","text-bound":[P.backgroundColor,P.borderColor,P.borderThickness,P.borderPadding,P.borderRadius,P.borderDash],ishot:l,direction:et,visibility:"hidden"}).drag(q,U,G).hover(Y,J).data("eventArgs",a).hide(),n.dataLabel.data("plotItem",n),0<E.distance&&(p=E.connectorWidth)&&E.enableSmartLabels&&(n.connector=M.path("M 0 0 l 0 0",L).attr({"stroke-width":p,stroke:E.connectorColor||"#606060",visibility:O,ishot:!0}).data("eventArgs",a).drag(q,U,G).hover(Y,J),n.connector.data("plotItem",n)))),n.angle=h,n.transX=B(h)*j,n.transY=R(h)*j,n.slicedTranslation="t"+B(h)*j+","+R(h)*j,A?g?n.graphic.animateWith(g,m,{ringpath:[H,W,z,k,d,u],transform:n.sliced?n.slicedTranslation:""},A,"easeIn"):(m=c.animation({ringpath:[H,W,z,k,d,u],redrawDataLabels:x,transform:n.sliced?n.slicedTranslation:""},A,"easeIn",lt),g=n.graphic.animate(m)):n.graphic.attr({transform:n.sliced?n.slicedTranslation:""}));nt&&k&&x.drawDoughnutCenterLabel(nt,H,W,2*k,2*k,it,!0),C.lastCenterLabelConfig=it,A?C.doughnutCenterLabel&&C.doughnutCenterLabel.attr({"fill-opacity":0}).animate(c.animation({"fill-opacity":100},100).delay(100<A?A-100:0)):x.placeDataLabels(!1,w,e)},rotate:function(t,e){var i,n,r,o,a,s=t.items,l=t.data,c=(f=this.options.plotOptions.pie).slicedOffset,h=K/e.valueTotal,d=this.canvasLeft+.5*this.canvasWidth,u=this.canvasTop+.5*this.canvasHeight,p=.5*f.size,f
44=.5*(f.innerSize||0);for(r=(e.startAngle||0)%K,a=l.length;a--;)null!=(n=(i=l[a]).y)&&(o=r,n=.5*((r-=(i=s[a]).seriesData.singletonCase?K:n*h)+o),i.angle=n,i.transX=B(n)*c,i.transY=R(n)*c,i.slicedTranslation="t"+B(n)*c+","+R(n)*c,i.graphic.attr({ringpath:[d,u,p,f,r,o],transform:i.sliced?i.slicedTranslation:""}));this.placeDataLabels(!0,s,t)}},gt["renderer.piebase"])},[3,2,2,"sr4"]]),FusionCharts.register("module",["private","modules.renderer.js-zoomline",function(){var t,e=this,i=e.hcLib,n=e.window,r=/msie/i.test(n.navigator.userAgent)&&!n.opera,o=i.chartAPI,a=i.chartAPI,s=i.extend2,l=i.raiseEvent,c=i.pluck,h=i.pluckNumber,d=i.getFirstColor,u=i.graphics.convertColor,p=i.bindSelectionEvent,f=i.createTrendLine,g=i.parseUnsafeString,m=i.regescape,v=i.Raphael,b=i.hasTouch,y=i.getMouseCoordinate,x=i.FC_CONFIG_STRING,w="rgba(192,192,192,"+(r?.002:1e-6)+")",_=n.Math,C=_.ceil,S=_.floor,k=_.max,A=_.min,T=_.cos,L=_.sin,D=n.parseFloat,E=n.parseInt;s(i.eventList,{zoomed:"FC_Zoomed",pinned:"FC_Pinned",resetzoomchart:"FC_ResetZoomChart"}),o("zoomline",{friendlyName:"Zoomable and Panable Multi-series Line Chart",rendererId:"zoomline",standaloneInit:!0,hasVDivLine:!0,defaultSeriesType:"stepzoom",canvasborderthickness:1,defaultPlotShadow:1,chart:function(){for(var t,e=o.msline.chart.apply(this,arguments),i=e[x],n=this.dataObj.chart,r=this.colorManager.getColor("canvasBorderColor"),a=e.chart,l=0,p=e.series,f=p&&p.length||0;f--;)t=p[f],l=k(l,t&&t.showAnchors&&t.attrs&&t.attrs.anchors&&(t.attrs.anchors.r||0)+(t.attrs.anchors["stroke-width"]||0)||0);return s(a,{animation:!1,zoomType:"x",canvasPadding:k(l,h(n.canvaspadding,0)),overFlowingMarkerWidth:l,scrollColor:d(c(n.scrollcolor,this.colorManager.getColor("altHGridColor"))),scrollShowButtons:!!h(n.scrollshowbuttons,1),scrollHeight:h(n.scrollheight,16)||16,scrollBarFlat:i.flatScrollBars,allowPinMode:h(n.allowpinmode,1),skipOverlapPoints:h(n.skipoverlappoints,1),showToolBarButtonTooltext:h(n.showtoolbarbuttontooltext,1),btnResetChartTooltext:c(n.btnresetcharttooltext,"Reset Chart"),btnZoomOutTooltext:c(n.btnzoomouttooltext,"Zoom out one level"),btnSwitchToZoomModeTooltext:c(n.btnswitchtozoommodetooltext,"<strong>Switch to Zoom Mode</strong><br/>Select a subset of data to zoom into it for detailed view"),btnSwitchToPinModeTooltext:c(n.btnswitchtopinmodetooltext,"<strong>Switch to Pin Mode</strong><br/>Select a subset of data and compare with the rest of the view"),pinPaneFill:u(c(n.pinpanebgcolor,r),h(n.pinpanebgalpha,15)),zoomPaneFill:u(c(n.zoompanebgcolor,"#b9d5f1"),h(n.zoompanebgalpha,30)),zoomPaneStroke:u(c(n.zoompanebordercolor,"#3399ff"),h(n.zoompaneborderalpha,80)),showPeakData:h(n.showpeakdata,0),maxPeakDataLimit:h(n.maxpeakdatalimit,n.maxpeaklimit,null),minPeakDataLimit:h(n.minpeakdatalimit,n.minpeaklimit,null),crossline:{enabled:h(n.showcrossline,1),line:{"stroke-width":h(n.crosslinethickness,1),stroke:d(c(n.crosslinecolor,"#000000")),"stroke-opacity":h(n.crosslinealpha,20)/100},labelEnabled:h(n.showcrosslinelabel,n.showcrossline,1),labelstyle:{fontSize:D(n.crosslinelabelsize)?D(n.crosslinelabelsize)+"px":i.outCanvasStyle.fontSize,fontFamily:c(n.crosslinelabelfont,i.outCanvasStyle.fontFamily)},valueEnabled:h(n.showcrosslinevalues,n.showcrossline,1),valuestyle:{fontSize:D(n.crosslinevaluesize)?D(n.crosslinevaluesize)+"px":i.inCanvasStyle.fontSize,fontFamily:c(n.crosslinevaluefont,i.inCanvasStyle.fontFamily)}},useCrossline:h(n.usecrossline,1),tooltipSepChar:c(n.tooltipsepchar,", "),showTerminalValidData:h(n.showterminalvaliddata,0)}),e},preSeriesAddition:function(){var t,e,i,r,o,a,l=this.dataObj,d=l.chart,u=this.hcJSON,p=u[x],f=this.smartLabel,g=h(d.compactdatamode,0),v=c(d.dataseparator,"|"),b=h(d.showlabels,1),y=d.labeldisplay&&d.labeldisplay.toLowerCase(),w=b&&h(d.labelheight),_="rotate"===y||h(d.rotatelabels,1)?270:0,C=u.xAxis.labels.style,S=D(C.lineHeight),k=u.chart.labelPadding=h(d.labelpadding,.2*S)+u.chart.plotBorderWidth,A=0,T=-1;if(0>w&&(w=void 0),0>k&&(k=(u.chart.plotBorderWidth||0)+2),l=(t=(t=l.categories)&&t[0]||{}).category,delete t.category,u.categories=y=s({data:e=g&&l&&l.split&&l.split(v)||l||[],rotate:_,wrap:"none"!==y},t),void 0!==l&&(t.category=l),t=e.length||0,r=!g&&b&&0!==w&&t||0
44){for(;r--;)e[r]=e[r]&&(i=e[r].label||"")&&((o=i.length)>A&&(A=o,T=r,i)||i)||"";A&&(i=e[T])}else if(g&&t&&!w)if(_){for(a in g=n.document.createElement("div"),w=n.document.createElement("span"),g.setAttribute("class","fusioncharts-zoomline-localsmartlabel"),g.style.cssText="display:block;width:1px;position:absolute;",C)g.style[a]=C[a];w.innerHTML=l.replace(/\s*/g,"").replace(/\{br\}/gi,"<br />").replace(new RegExp(m(v),"g")," "),g.appendChild(w),n.document.body.appendChild(g),w=w.offsetWidth||void 0,g.parentNode.removeChild(g)}else i=e[t-1]||e[0];void 0!==w&&0!==w||!b||(i?(f.setStyle(C),i=f.getSmartText(i),w=_?i.width:i.height):w=S*(_?3:1)),w>.3*p.height&&(w=.3*p.height),y.labelHeight=w&&w+6||0,y.show=w&&b||0,y.css=s({},C),_?(y.css.rotation=_,y.css["text-anchor"]="end"):y.css["vertical-align"]="top",u.xAxis.min=0,u.xAxis.max=t&&t-1||0,w+=h(d.scrollheight,16)||16,u.chart.marginBottom+=k,p.marginBottomExtraSpace+=w,c(d.caption,d.subcaption)||(p.marginTopExtraSpace+=16)},series:function(){var t,e,i=this.dataObj,n=i.chart,r=i.dataset,o=this.hcJSON,a=o[x],s=a[0],l=a[1],d=o.series,u=a.isDual,p=h(n.yaxismaxvalue),g=h(n.yaxisminvalue),v=h(n.syaxismaxvalue),b=h(n.syaxisminvalue),y=h(n.pyaxismaxvalue),w=h(n.pyaxisminvalue),_=h(n.forceyaxislimits,0),C=h(n.forcepyaxislimits,0),S=h(n.forcesyaxislimits,0),T=h(n.compactdatamode,0),L=c(n.dataseparator,"|"),P=m(n.indecimalseparator),I=m(n.inthousandseparator),M=!1,O=h(n.drawanchors,n.showanchors,1),F=!!h(n.showlegend,1),R=1/0,B=-1/0,N=1/0,j=-1/0;if(t=o.categories.data.length,r&&r.length&&t){for(P&&(P=new RegExp(P,"g")),I&&(I=new RegExp(I,"g")),!I&&!P&&T&&_&&(u?void 0!==y&&void 0!==w&&void 0!==v&&void 0!==b:void 0!==p&&void 0!==g)?u?(j=k(v,b),N=A(v,b),B=k(y,w),R=A(w,y)):(_=!0,B=k(p,g),R=A(g,p)):_=!1,!I&&!P&&T&&S&&void 0!==v&&void 0!==b?(S=!0,j=k(v,b),N=A(v,b)):S=!1,!I&&!P&&T&&C&&void 0!==y&&void 0!==w?(C=!0,B=k(y,w),R=A(w,y)):C=!1,g=0,v=r.length;g<v;g++){if(b=(p=r[g]).data,delete p.data,T?(y=b||"",I&&(y=y.replace(I,"")),P&&(y=y.replace(P,".")),y=y.split(L)):y=b||[],y.length>t&&(y.length=t),"s"===c(p.parentyaxis,"p").toLowerCase()&&(M=!0),e=y.length,T)if(_||C||"p"!==c(p.parentyaxis,"p").toLowerCase()&&u){if(!(_||S||"s"!==c(p.parentyaxis,"p").toLowerCase()&&u))for(;e--;)w=D(y[e]),isNaN(w)&&(w=void 0),w>j&&(j=w),w<=N&&(N=w),y[e]=w}else for(;e--;)w=D(y[e]),isNaN(w)&&(w=void 0),w>B&&(B=w),w<=R&&(R=w),y[e]=w;else if(_||C||"p"!==c(p.parentyaxis,"p").toLowerCase()&&u){if(!(_||S||"s"!==c(p.parentyaxis,"p").toLowerCase()&&u))for(;e--;)w=y[e]&&y[e].value||"",I&&(w=w.replace(I,"")),P&&(w=w.replace(P,".")),w=D(w),isNaN(w)&&(w=void 0),w>j&&(j=w),w<=N&&(N=w),y[e]=w}else for(;e--;)w=y[e]&&y[e].value||"",I&&(w=w.replace(I,"")),P&&(w=w.replace(P,".")),w=D(w),isNaN(w)&&(w=void 0),w>B&&(B=w),w<=R&&(R=w),y[e]=w;d.push(w={index:g,type:"zoomline",data:y,name:p.seriesname||"",showInLegend:p.seriesname&&h(p.includeinlegend,1)&&F||!1,showAnchors:h(p.drawanchors,p.showanchors,O),visible:!h(p.initiallyhidden,0),lineWidth:2,yAxis:u&&"s"===c(p.parentyaxis,"p").toLowerCase()?1:0}),y.length=t,void 0!==b&&(p.data=b),w.attrs=this.seriesGraphicsAttrs(p),b=w.attrs.anchors,w.color=w.attrs.graphics.stroke,w.ancorRadius=b.r+b["stroke-width"]/2,w.marker={enabled:!!h(p.drawanchors,p.showanchors,O),fillColor:b.fill,lineColor:b.stroke,lineWidth:1,symbol:"circle"}}!M&&u&&(a.isDual=!1,n.yaxismaxvalue=n.pyaxismaxvalue,n.yaxisminvalue=n.pyaxisminvalue),
45-1/0!==B&&1/0!==R||(B=R=void 0),u=E(h(n.displaystartindex,1),10)-1,_=E(h(n.displayendindex,t||2),10)-1,1>(r=h(n.pixelsperpoint,15))&&(r=1),(d=h(n.pixelsperlabel,n.xaxisminlabelwidth,o.categories.rotate?20:60))<r&&(d=r),(0>u||u>=(t-1||1))&&(u=0),(_<=u||_>(t-1||1))&&(_=t-1||1),o.stepZoom={cnd:h(n.connectnulldata,0),amrd:h(n.anchorminrenderdistance,20),nvl:h(n.numvisiblelabels,0),cdm:T,oppp:r,oppl:d,dsi:u,dei:_,vdl:_-u,dmax:s.max=B,dmin:s.min=R,dsecondarymax:l.max=j,dsecondarymin:l.min=N,clen:t,offset:0,step:1,llen:0,alen:0,ddsi:u,ddei:_,ppc:0},this.configureAxis(o,i),i.trendlines&&f(i.trendlines,o.yAxis,a,!1,this.isBar)}},seriesGraphicsAttrs:function(t){var e,i,n=this.dataObj.chart,r="0"!=(t.dashed||n.linedashed||"0");r={"stroke-width":h(t.linethickness,n.linethickness,2),stroke:d(c(t.color,n.linecolor,this.colorManager.getPlotColor())),"stroke-opacity":h(t.alpha,n.linealpha,100)/100,"stroke-dasharray":r?[h(t.linedashlen,n.linedashlen,5),h(t.linedashgap,n.linedashgap,4)]:"none","stroke-linejoin":"round","stroke-linecap":"round"};return e=s({},r),i=r["stroke-width"]+h(n.pinlinethicknessdelta,1),e["stroke-width"]=0<i&&i||0,e["stroke-dasharray"]=[3,2],{graphics:r,pin:e,shadow:{opacity:r["stroke-opacity"],apply:h(n.showshadow,+!v.vml)},anchors:{"stroke-linejoin":"round","stroke-linecap":"round",r:h(t.anchorradius,n.anchorradius,r["stroke-width"]+2),stroke:d(c(t.anchorbordercolor,n.anchorbordercolor,r.stroke)),"stroke-opacity":h(t.anchorborderalpha,n.anchorborderalpha,100)/100,"stroke-width":h(t.anchorborderthickness,n.anchorborderthickness,r["stroke-width"]),fill:d(c(t.anchorbgcolor,n.anchorbgcolor,"#ffffff")),"fill-opacity":h(t.anchorbgalpha,n.anchorbgalpha,100)/100,opacity:h(t.anchoralpha,n.anchoralpha,100)/100},anchorShadow:h(n.anchorshadow,n.showshadow,+!v.vml)&&{apply:!0,opacity:h(t.anchoralpha,n.anchoralpha,100)/100}}},eiMethods:{zoomOut:function(){var t,e=this.jsVars;if(e&&(t=e.hcObj))return t.zoomOut&&e.hcObj.zoomOut()},zoomTo:function(t,e){var i,n=this.jsVars;if(n&&(i=n.hcObj))return i.zoomRange&&n.hcObj.zoomRange(t,e)},resetChart:function(){var t,e=this.jsVars;e&&(t=e.hcObj)&&(t.pinRangePixels&&e.hcObj.pinRangePixels(),t.resetZoom&&e.hcObj.resetZoom())},setZoomMode:function(t){var e,i=this.jsVars;i&&(e=i.hcObj)&&e.activatePin&&e.activatePin(!t)},getViewStartIndex:function(){var t,e=this.jsVars;if(e&&e.hcObj&&(t=e.hcObj._zoominfo))return t.ddsi},getViewEndIndex:function(){var t,e=this.jsVars;if(e&&e.hcObj&&(t=e.hcObj._zoominfo))return((e=t.ddei-1)>=t.clen?t.clen:e)-1}}},o.msline),o("zoomlinedy",{rendererId:"zoomline",isDual:!0,friendlyName:"Zoomable and Panable Multi-series Dual-axis Line Chart"},o.zoomline),a("renderer.zoomline",{resetZoom:function(){var t=this._zoomhistory,e=this.options.stepZoom;return!!t.length&&(t.length=0,this.zoomTo(e.dsi,e.dei)&&l("zoomReset",this._zoomargs,this.fusionCharts,[this.fusionCharts.id]),!0)},zoomOut:function(){var t,i,n,r=this._zoomhistory.pop(),o=this.options.stepZoom;return r?(t=r.dsi,i=r.dei):this._prezoomed&&(t=0,i=o.clen-1),(n=this.zoomTo(t,i))&&e.raiseEvent("zoomedout",n,this.fusionCharts
45),!0},zoomRangePixels:function(t,i){var n,r=this._zoomhistory,o=(a=this._zoominfo).ppp,a=a.ddsi;r.push(this._zoominfo),(n=this.zoomTo(a+S(t/o),a+S(i/o)))?e.raiseEvent("zoomedin",n,this.fusionCharts):r.pop()},zoomRange:function(t,i){var n,r=this._zoomhistory;r.push(this._zoominfo),(n=this.zoomTo(+t,+i))?e.raiseEvent("zoomedin",n,this.fusionCharts):r.pop()},zoomTo:function(t,e){var i=this.xlabels.data,n=this._zoominfo,r=this._zoomhistory,o=n.clen;return 0>t&&(t=0),t>=o-1&&(t=o-1),e<=t&&(e=t+1),e>o-1&&(e=o-1),t!==e&&(t!==n.dsi||e!==n.dei)&&(this.pinRangePixels(),(n=s({},n)).dsi=t,n.dei=e,n=this._zoominfo=n,this.updatePlotZoomline(),this.zoomOutButton[n.vdl===n.clen-1?"hide":"show"](),this.resetButton[r.length?"show":"hide"](),this.elements.zoomscroller.attr({"scroll-ratio":n.vdl/(o-!!o),"scroll-position":[n.dsi/(o-n.vdl-1),!0]}),i={level:r.length+1,startIndex:t,startLabel:i[t],endIndex:e,endLabel:i[e]},l("zoomed",i,this.fusionCharts,[this.fusionCharts.id,t,e,i.startLabel,i.endLabel,i.level]),i)},activatePin:function(t){var e=this._zoominfo,i=this.options.chart,n=this.pinButton;if(n&&e.pinned^(t=!!t))return t||this.pinRangePixels(),l("zoomModeChanged",{pinModeActive:t},this.fusionCharts,[]),i.showToolBarButtonTooltext&&n.tooltip(i[t?"btnSwitchToZoomModeTooltext":"btnSwitchToPinModeTooltext"]||""),n.attr("button-active",t),e.pinned=t},pinRangePixels:function(t,e){var i,n,r=this.paper,o=this.elements,a=this.xlabels.data,s=this._zoominfo,c=this.layers.zoompin,h=o.pinrect,d=o["clip-pinrect"],u=this._pingrouptransform,p=this.plots,f=e-t;if(s&&c&&h){if(t===e)return c.hide(),o.pintracker.hide(),this.pinButton.attr("button-active",!1),s.pinned=!1;for(n=p.length;n--;)(i=(h=p[n]).pinline)||(i=h.pinline=r.path(void 0,c).attr(h.attrPin)),i.attr("path",h.graphic.attrs.path);return d[0]=t+this.canvasLeft,d[2]=f,c.attr({"clip-rect":d,transform:u}).show(),o.pintracker.__pindragdelta=0,o.pintracker.show().attr({transform:u,x:t,width:f}),t=this.getValuePixel(t),e=this.getValuePixel(e),l("pinned",{startIndex:t,endIndex:e,startLabel:a[t],endLabel:a[e]},this.fusionCharts,[this.fusionCharts.id,t,e,a[t],a[e]]),s.pinned=!0}},getValuePixel:function(t){var e=this._zoominfo;return e.ddsi+S(t/e.ppp)},getParsedLabel:function(t){var e=this.xlabels;return e.parsed[t]||(e.parsed[t]=g(e.data[t]||""))},drawGraph:function(){var i,n,r,o,a,l,c,h=this,d=h.paper,u=h.canvasLeft,f=h.canvasTop,g=h.canvasWidth,m=h.canvasHeight,b=h.options,y=b.chart,x=y.plotBorderWidth,_=y.useRoundEdges,C=y.showToolBarButtonTooltext,S=y.crossline,k=h.layers,A=h.toolbar,T=h.elements,L=y.allowPinMode,D=b.categories,E=!1;l=h._zoominfo=s({},b.stepZoom),h._zoomhistory=[],l.clen&&(E=h._prezoomed=l.dei-l.dsi<l.clen-1,a=h._visw=h.canvasWidth-2*y.canvasPadding,o=h._visx=h.canvasLeft+y.canvasPadding,h._visout=-(h.chartHeight+h.canvasHeight+1e3),h.base.drawGraph.apply(h,arguments),h._ypvr=h.yAxis[0]&&h.yAxis[0].pixelValueRatio||0,c=h._ymin||(h._ymin=h.yAxis[0].endY),h._yminValue=h.yAxis[0].min,b=k.dataset.attr("clip-rect",[h._visx-y.overFlowingMarkerWidth,h.canvasTop,h._visw+2*y.overFlowingMarkerWidth,h.canvasHeight]),r=k.scroll||(k.scroll=d.group("scroll").insertAfter(k.layerAboveDataset)),h.xlabels=[],h.xlabels.show=D.show,h.xlabels.height=D.labelHeight,h.xlabels.wrap=D.wrap,h.xlabels.rotate=D.rotate,h.xlabels.data=D.data||[],h.xlabels.parsed=[],h.xlabels.css=D.css,h.xlabels.group=d.group("zoomline-plot-xlabels",k.datalabels),k.datalabels.transform(["T",o,f+m+y.scrollHeight+y.labelPadding]),h._lcmd=D.rotate?"y":"x",L&&(L=v.crispBound(0,f-c,0,m,x),i=T["clip-pinrect"]=[L.x,f,L.width,L.height],n=k.zoompin=d.group("zoompin").insertBefore(b).transform(h._pingrouptransform=["T",o,c]).hide(),T.pinrect=d.rect(0,f-c,h._visw,m,k.zoompin).attr({"stroke-width":0,stroke:"none",fill:y.pinPaneFill,"shape-rendering":"crisp",ishot:!0}),T.pintracker=d.rect(k.tracker).attr({transform:n.transform(),x:0,y:f-c,width:0,height:m,stroke:"none",fill:w,ishot:!0,cursor:v.svg?"ew-resize":"e-resize"}).drag((function(t){var e=o+t+this.__pindragdelta,i=this.__pinboundleft,r=this.__pinboundright,a=this.data("cliprect").slice(0);e<i?e=i:e>r&&(e=r),n.transform(["T",e,c]),T.pintracker.transform(n.transform()),v.svg||(a[0]=a[0]+e-o-this.__pindragdelta,n.attr("clip-rect",a)),this.__pindragoffset=t}),(function(){this.__pinboundleft=0-i[0]+o+u,this.__pinboundright=this.__pinboundleft+a-i[2],this.data("cliprect",n.attr("clip-rect")),n._.clipispath=!0}),(function(){n._.clipispath=!1,this.__pindragdelta=this.__pindragoffset,delete this.__pindragoffset,delete this.__pinboundleft,delete this.__pinboundright})),h.pinButton=A.add("pinModeIcon",(function(){h.activatePin(!h._zoominfo.pinned)}),{tooltip:C&&y.btnSwitchToPinModeTooltext||""})),x++,L=v.crispBound(u-x,f+m+x,g+x+x,y.scrollHeight,x),x--,T.zoomscroller=d.scroller(L.x+(_?-1:x%2),L.y-(_?4:2),L.width-(_?0:2),L.height,!0,{showButtons:y.scrollShowButtons,scrollRatio:l.vdl/(l.clen-!!l.clen),scrollPosition:[l.dsi/(l.clen-l.vdl-1),!1],displayStyleFlat:y.scrollBarFlat},r).attr({fill:y.scrollColor,r:_?2:0}).scroll(h.updatePlotZoomline,h),_&&T.zoomscroller.shadow(!0),function(){var t;v.eve.on("raphael.scroll.start."+T.zoomscroller.id,(function(i){t=i,h.crossline&&h.crossline.disable(!0),e.raiseEvent("scrollstart",{scrollPosition:i},h.logic.chartInstance)})),v.eve.on("raphael.scroll.end."+T.zoomscroller.id,(function(i){h.crossline&&h.crossline.disable(!1),e.raiseEvent("scrollend",{prevScrollPosition:t,scrollPosition:i},h.logic.chartInstance)}))}(),p(h,{attr:{stroke:y.zoomPaneStroke,fill:y.zoomPaneFill,strokeWidth:0},selectionStart:function(){},selectionEnd:function(t){var e=t.selectionLeft-u;
45t=e+t.selectionWidth,h.crossline&&h.crossline.hide(),h[h._zoominfo.pinned?"pinRangePixels":"zoomRangePixels"](e,t)}}),h.zoomOutButton=A.add("zoomOutIcon",(function(){h.zoomOut()}),{tooltip:C&&y.btnZoomOutTooltext||""})[E?"show":"hide"](),h.resetButton=A.add("resetIcon",(function(){h.resetZoom()}),{tooltip:C&&y.btnResetChartTooltext||""}).hide(),(L=h.resetButton.attr("fill"))[2]="rgba(255,255,255,0)",h.resetButton.attr("fill",[L[0],L[1],L[2],L[3]]),S&&0!==S.enabled&&1===y.useCrossline&&(h.crossline=new t(h,S)),h.updatePlotZoomline())},drawPlotZoomline:function(t,e){var i=this.paper,n=e.attrs,r=e.visible,o=r?"show":"hide",a=this.layers.dataset,s=t.group||(t.group=i.group("plot-zoomline-dataset",a)),l=(a=t.anchorGroup||(t.anchorGroup=i.group("plot-zoomline-anchors",a)),i=t.graphic||(t.graphic=i.path(void 0,s)),["T",this._visx,this._ymin||(this._ymin=this.yAxis[0].endY)]);t.yAxis=e.yAxis,s.transform(l)[o](),a.transform(l)[o](),t.graphic=i.attr(n.graphics).shadow(n.shadow),t.attrPin=n.pin,t.visible=r,t.anchors=[],t.anchors.show=e.showAnchors,t.anchors.attrs=n.anchors,t.anchors.attrsShadow=n.anchorShadow,t.anchors.left=-(n.anchors.r+.5*n.anchors["stroke-width"]),t.anchors.right=this._visw-t.anchors.right},updatePlotZoomline:function(t,e){var i,r,o,a,s,l,c,h,d=this.paper,u=this._ypvr,p=this._visw,f=this.xlabels,g=f.css,m=f.group,v=this.plots,b=this.options.chart.textDirection;if(!e&&(e=this._zoominfo),a=e.oppp,s=e.vdl=e.dei-e.dsi,l=e.ppl=e.nvl?p/e.nvl:e.oppl,p=e.step=(o=e.ppp=p/s)<a?C(a/o):1,a=e.lskip=C(k(l,D(g.lineHeight))/o/p),void 0!==t?(l=(e.clen-s-1)*t,e.offset=(l-(l=E(l)))*o,s=l+s):(l=e.dsi,s=e.dei,e.offset=0),c=e.norm=l%p,e.ddsi=l-=c,e.ddei=s=s+2*p-c,e.pvr=u,e._ymin=this._ymin,e._yminValue=this._yminValue,u=f.show?C((s-l)/p/a):0,c=e.llen-1,e.llen=u,h=e.ppc=o*a*p,m.trackTooltip(!0),u>c)for(a=c,c=u;a<c;a++)(i=f[a])&&i.show()||(f[a]=d.text(0,0,"",m).css(g).attr({direction:b}));else for(a=u,c+=1;a<c;a++)f[a].hide();for(g=(u=o*p<e.amrd?0:C((s-l)/p))-e.alen,e.alen=u,f.wrap&&(f.rotate?(f._width=f.height,f._height=h):(f._width=h,f._height=f.height)),i=v.length;i--;){if(m=v[i],e.plotName=m.name||"",b=m.anchors,o=this.yAxis[m.yAxis],e.pvr=o.pixelValueRatio,e._yminValue=o.min,b.show&&g){for(r=b.attrs,a=0,c=u;a<c;a++)b[a]=b[a]&&b[a].show()||d.circle(r,m.anchorGroup);for(a=u,c=b.length;a<c;a++)b[a]&&b[a].hide()}this.drawPlotZoomlineGraphics(e,m.data,m.graphic,b,!i&&f,r,m.anchorGroup)}n.FC_DEV_ENVIRONMENT&&n.jQuery&&(FusionCharts.debugger.enable()?(this.debug=this.debug||(n.jQuery("#fc-zoominfo").length||n.jQuery("body").append('<pre id="fc-zoominfo">'),n.jQuery("#fc-zoominfo").css({position:"absolute",left:"10px",top:"0","pointer-events":"none",opacity:.7,width:"250px",zIndex:"999",border:"1px solid #cccccc","box-shadow":"1px 1px 3px #cccccc",background:"#ffffff"})),this.debug.text(JSON.stringify(e,0,2))):(this.debug&&n.jQuery("#fc-zoominfo").remove(),delete this.debug))},drawPlotZoomlineGraphics:function(t,e,i,n,r,o,a){var s,l,c,h,d,u,p,f,g,m,v,b,x,w,_,C,S,k=this.smartLabel,T=this.paper,L=this.numberFormatter,D=this.options.chart,E=D.useCrossline,P=D.showTerminalValidData,I=D.showPeakData,M=D.maxPeakDataLimit,O=D.minPeakDataLimit,F=[],R=!t.cnd,B=t.ddei,N=t.clen,j=t.step,$=t.lskip,V=t.ppp,H=t.offset,W=t.pvr,z=this._visw,q=this._visout,U=this._lcmd,G="M",Y=r&&r[0],X=n[0],J={},K={},Z=0,Q=-t.norm,tt=t.ddsi,et=0,it=D.tooltipSepChar,nt=e.length,rt=!1,ot=!1,at=!1,st=!1;for(Y&&(r.group.transform(["T",-H,0]),v=r.wrap,h=r._height,d=r._width,v&&k.setStyle(r.css)),r=function(t,e){var i=t&&t.length,n=Math.max.apply(Math,t),r=Math.min.apply(Math,t),o=0;if(n>M||r<O)for(;o<i;)((r=t[o])>M||r<O)&&w(r,n=e+o,n,!0),o+=1},w=function(i,r,c,h){var d=void 0,m=void 0,v=void 0;if(E||(x=b+it+L.yAxis(i),x=t.plotName&&t.plotName+it+x||x),g=Z/3+et,s=(p=c*V)-H,void 0===(l=e[r])){if(R)G="M",u=q,s=p-H,f=q;else{if(0===g){for(d=r;0<d&&(--d,void 0===(m=e[d])););m&&(p=d*V*-1,u=q,F[Z++]=G,F[Z++]=p,F[Z++]=f=(m-t._yminValue)*W,G="L")}if(r===B){for(d=r;d<N&&void 0===(v=e[d+=1]););v&&(p=d*V,u=q,F[Z++]=G,F[Z++]=p,F[Z++]=f=(v-t._yminValue)*W,G="L")}}et++}else F[Z++]=G,rt?(rt=!1,F[Z++]=u=s=C*V/(j*_)*r):ot?(ot=!1,j>=r-C&&(F[Z-1]="L"),t.pppCopy=t.pppCopy||V,F[Z++]=u=s=t.pppCopy*r):F[Z++]=u=s=p-H,F[Z++]=f=(l-t._yminValue)*W,G="L";
45void 0!==u&&void 0!==f||(u=f=q),X&&(X=X.attr((J.cx=u,J.cy=f,J)).next),h&&n.push(T.circle(o,a))};tt<=B;tt+=j,Q+=j){if(b=this.getParsedLabel(tt),m=e[tt],S=tt,P)if(0===tt&&void 0===e[tt]){for(_=0,c=C=tt;c<nt;)if(void 0!==e[c]||at?at=!0:c++,void 0===e[C]&&!st&&C<=nt?(C+=j,_++):st=!0,at&&st){at=st=!1;break}0!=c%j&&(rt=!0,m=e[c],S=c)}else if(tt>=nt&&void 0===e[tt]){for(c=C=tt;0<c&&(void 0!==e[c]||at?at=!0:c--,void 0===e[C]&&!st&&0<=C?C-=j:st=!0,!at||!st););0!=c%j&&(ot=!0,m=e[c],S=c)}w(m,S,Q),!Y||g%$||(m=Y.attrs,c=b,s=0>s||s>z?q:p,Y._prevtext===c?delete K.text:K.text=Y._prevtext=c,m[U]===s?delete K[U]:K[U]=s,v&&c&&(K.text=k.getSmartText(c,d,h).text),Y.tooltip(k.getSmartText(c,d,h).tooltext),Y=Y.attr(K).next),I&&1<j&&(c=A(tt+1,B),r(m=(m=A(c+j,B))===B?e.slice(c):e.slice(c,m),c))}B>=N&&X&&X.attr((J.cx=q,J.cy=q,J)),i.attr("path",F),E||function(t,e,n){var r=n.plotName;i.tooltipListenerAttached||(i.tooltipListenerAttached=!0,i.mousemove((function(n){var o=t._zoominfo,a=t._visx,s=o.step,l=o.ppp*s;n=y(t.container,n).chartX-a;var c;a=D.tooltipSepChar;n=(n+=l/2+o.offset)-n%l,c=(c=t.getValuePixel(n))+c%s,x=t.getParsedLabel(c)+a+L.yAxis(e[c]),x=r&&r+a+x||x,i.tooltip(x)})))}(this,e,t)},legendClick:function(t){var e=!t.visible,i=e?"show":"hide";return t.group[i](),t.anchorGroup[i](),this.base.legendClick.apply(this,arguments),t.visible=e},dispose:function(){var t;this.crossline&&(this.crossline.dispose(),delete this.crossline),(t=this.elements.pintracker)&&(t.undrag(),delete this.elements.pintracker),delete this.zoomOutButton,delete this.resetButton,delete this.pinButton,this.xlabels&&(this.xlabels.length=0),delete this.xlabels,this.base.dispose.apply(this)}},a["renderer.cartesian"]),t=function(t,e){var i,n=t.paper,r=t.options.chart,o=this.left=t._visx,a=this.width=t._visw,l=this.top=t.canvasTop,c=this.height=t.canvasHeight,h=this._visout=t._visout,d=this.plots=t.plots,u=t.layers.dataset,p=e.labelstyle,f=e.valuestyle,g=t.yAxis[0],m=t.yAxis[1];if(i=this.group=n.group("crossline-labels",u).attr({transform:["T",o,t._ymin]}),this.tracker=n.rect(o,l,a,c,u).attr({stroke:"none","stroke-width":0,fill:w}).toFront().mousedown(this.onMouseDown,this).mouseup(this.onMouseUp,this,!0).mouseout(this.onMouseOut,this).mousemove(this.onMouseMove,this),b&&this.tracker.touchstart(this.onMouseMove,this),this.container=t.container,this.line=n.path(void 0,u).attr(s({path:["M",o,l,"l",0,c]},e.line)).toBack(),o=this.labels=e.valueEnabled&&n.set(),e.labelEnabled&&(this.positionLabel=n.text(h,l+c+(r.scrollHeight||0)+2.5,"").insertAfter(t.xlabels.group.parent).css(p).attr({"vertical-align":"top",direction:r.textDirection,"text-bound":["rgba(255,255,255,1)","rgba(0,0,0,1)",1,2.5]})),this.hide(),this.ppixelRatio=t.yAxis[0].pixelValueRatio,this.spixelRatio=t.yAxis[1].pixelValueRatio,this.yminValue=t._yminValue,this.pyaxisminvalue=g.min,this.pyaxismaxvalue=g.max,this.syaxisminvalue=m.min,this.syaxismaxvalue=m.max,this.positionLabels=t.xlabels||{data:[],parsed:[]},this.getZoomInfo=function(){return t._zoominfo},this.getDataIndexFromPixel=function(e){return t.getValuePixel(e)},this.getPositionLabel=function(e){return t.getParsedLabel(e)},e.valueEnabled){for(l=0,c=d.length;l<c;l++)p=(p=d[l]).graphic.attrs.stroke,o.push(n.text(0,h,"",i).css(f).attr({fill:p,direction:r.textDirection,"text-bound":["rgba(255,255,255,0.8)","rgba(0,0,0,0.2)",1,2.5]}));this.numberFormatter=t.numberFormatter}},t.prototype.disable=function(t){return void 0!==t&&(this.disabled=!!t)&&this.visible&&this.hide(),this.disabled},t.prototype.onMouseOut=function(){this.hide()},t.prototype.onMouseDown=function(){!b&&this.hide(),this._mouseIsDown=!0},t.prototype.onMouseUp=function(){!b&&this.hide(),delete this._mouseIsDown},t.prototype.onMouseMove=function(t){if(!(this.disabled||this._mouseIsDown&&!b)){var e,i=this.getZoomInfo(),n=this.line,r=this.left,o=i.step,a=i.ppp*o;t=y(this.container,t).chartX-r,t=(t+=a/2+i.offset)-t%a,e=(e=this.getDataIndexFromPixel(C(t)))+e%o,t-=i.offset,n.transform(["T",S(t),0]),this.hidden&&this.show(),(e!==this.position||this.hidden)&&(this.position=e,this.lineX=t,this.updateLabels())}},t.prototype.updateLabels=function(){var t=this,e=t.labels,i=t.plots,n=t.width,r=t.position,o=t.lineX,a=S(o),s=t.ppixelRatio,l=t.spixelRatio,c=t.yminValue,h=t._visout,d=t.numberFormatter,u=t.pyaxisminvalue,p=t.pyaxismaxvalue,f=t.syaxisminvalue,g
45=t.syaxismaxvalue,m=function(){function e(){this.y=0,this.lRef=void 0,this.__index=this.__shift=0}function i(t){for(var e=0;e<t;)this.push(e++);return this}function n(t){var e,i,n,r,o=Number.POSITIVE_INFINITY;for(e=0;e<this.length;e++)n=0>(i=this[e]-t)?m.NEG:m.POS,(i=f(i))<=o&&(o=i,r={absValue:i,noScaleSide:n});return r}function r(t){this.holes=i.call([],t)}var o,a,l=-1*t.height,d=c*s,u=0,p={},f=Math.abs,g=Math.floor,m={};"function"!=typeof Object.create&&(Object.create=function(){function t(){}var e=Object.prototype.hasOwnProperty;return function(i){var n,r,o;if("object"!=typeof i)throw new TypeError("Object prototype may only be an Object or null");if(t.prototype=i,o=new t,t.prototype=null,1<arguments.length)for(r in n=Object(arguments[1]))e.call(n,r)&&(o[r]=n[r]);return o}}()),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var i,n,r;if(null==this)throw new TypeError('"this" is null or not defined');if(0===(r=(n=Object(this)).length>>>0))return-1;if(i=+e||0,1/0===Math.abs(i)&&(i=0),i>=r)return-1;for(i=Math.max(0<=i?i:r-Math.abs(i),0);i<r;){if(i in n&&n[i]===t)return i;i++}return-1}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var i,n,r,o,a;if(null==this)throw new TypeError(" this is null or not defined");if(o=(r=Object(this)).length>>>0,"function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(i=e),n=0;n<o;)n in r&&(a=r[n],t.call(i,a,n,r)),n++}),e.prototype.constructor=e,e.prototype.applyShift=function(t){this.__shift=t,this.lRef.calcY=this.y+=t*u},e.prototype.applyDirectIndex=function(t){this.__index=t,this.lRef.calcY=this.y=l-t*u*-1};try{Object.defineProperty(m,"POS",{enumerable:!1,configurable:!1,get:function(){return 1}}),Object.defineProperty(m,"NEG",{enumerable:!1,configurable:!1,get:function(){return-1}})}catch(t){m.POS=1,m.NEG=-1}r.prototype=Object.create(Array.prototype),r.prototype.constructor=r,r.prototype.repositionHoles=function(){var t,e=0;for(t=this.holes.length=0;t<this.length;t++)!this[t]&&(this.holes[e++]=t)},r.prototype.attachShift=function(t,i,r){var o,a=this.length;if(t===h)r.calcY=h;else if(o=this[a=i>a-1?a-1:i],(i=new e).y=t,i.lRef=r,o){if(r=a+(t=n.call(this.holes,a)).absValue*t.noScaleSide,t.noScaleSide===m.POS)return i.applyDirectIndex(r),this.splice(r,1,i),this.holes.splice(this.holes.indexOf(r),1),r;if(t.noScaleSide===m.NEG){for(t=this.splice(r+1,this.length-1),this.pop(),t.forEach((function(t){t&&t.applyShift(-1)})),[].push.apply(this,t);this[r];)r++;return this.push(0),this.repositionHoles(),r+=(t=n.call(this.holes,r)).absValue*t.noScaleSide,i.applyDirectIndex(r),this.splice(r,1,i),this.repositionHoles(),this.length-1}}else i.applyDirectIndex(a),this.splice(a,1,i),this.holes.splice(this.holes.indexOf(a),1)};try{Object.defineProperty(p,"top",{enumerable:!1,configurable:!1,get:function(){return l}}),Object.defineProperty(p,"bottom",{enumerable:!1,configurable:!1,get:function(){return d}})}catch(t){p.top=l,p.bottom=d}return p.init=function(t){var e;for(a=g(f(l+=(u=t+2)/2)/u),o=new r(a),e=0;e<a;e++)o.push(0)},p.occupy=function(t,e){var i=g(f(l-t)/u);o.attachShift(t,i,e)},p}();e&&(e[0].attr({text:d.yAxis("0")}),m.init(e[0].getBBox().height,e.length),e.forEach((function(t,e){var n=i[e],o=n.data[r],a=n.yAxis;m.occupy(void 0===o||!n.visible||(a?o>g||o<f:o>p||o<u)?h:a?(o-f)*l:(o-u)*s,t)}))),e&&e.forEach((function(t,e){var s;t.attr({text:d.yAxis(i[e].data[r])}),s=.5*t.getBBox().width+10,t.attr({x:k(0,A(a,n)),y:t.calcY,"text-anchor":(o<=s?"start":o+s>=n&&"end")||"middle"})})),t.positionLabel&&t.positionLabel.attr({x:o+t.left,text:t.getPositionLabel(r)})},t.prototype.show=function(){this.disabled||(this.hidden=!1,this.group.attr("visibility","visible"),this.line.attr("visibility","visible"),this.positionLabel&&this.positionLabel.attr("visibility","visible"))},t.prototype.hide=function(){this.hidden=!0,this.group.attr("visibility","hidden"),this.line.attr("visibility","hidden"),this.positionLabel&&this.positionLabel.attr("visibility","hidden")},t.prototype.dispose=function(){for(var t in this)this.hasOwnProperty(t)&&delete this[t]}
45,v.addSymbol({pinModeIcon:function(t,e,i){var n,r=t-i,o=t+i,a=t-(n=.5*i),s=t+n,l=t+.5,c=l+1,h=l+1.5,d=e-i,u=e+n,p=e-n;return["M",r,d,"L",a,p,a,n=e+(i-n),r,u,t-.5,u,t,e+i+.5,l,u,o,u,s,n,s,p,o,d,h,d,h,p,h,n,c,n,c,p,h,p,h,d,"Z"]},zoomOutIcon:function(t,e,i){t-=.2*i,e-=.2*i;var n=.8*i,r=v.rad(43),o=v.rad(48),a=t+n*T(r),s=(r=e+n*L(r),t+n*T(o)),l=(o=e+n*L(o),v.rad(45));return["M",a,r,"A",n,n,0,1,0,s,o,"Z","M",a+1,r+1,"L",a+i*T(l),r+i*L(l),s+i*T(l),i=o+i*L(l),s+1,o+1,"Z","M",t-2,e,"L",t+2,e,"Z"]},resetIcon:function(t,e,i){var n=t-i,r=(_.PI/2+_.PI)/2,o=2*i/3;return["M",n,e,"A",i,i,0,1,1,t+=i*T(r),r=e+i*L(r),"L",t+o,r-1,t+2,r+o-.5,t,r]}})}]),FusionCharts.register("module",["private","modules.renderer.js-messagelogger",function(){var t,e,i,n,r,o,a,s,l,c,h,d,u,p,f,g=this.hcLib,m=g.Raphael,v=g.isIE,b=g.graphics.HEXtoRGB,y=g.graphics.convertColor,x=this.window,w=x.document,_=8===w.documentMode,C=!0,S=!1,k=g.pluck,A=g.pluckNumber,T=g.FC_CONFIG_STRING,L={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"},D=function(t,e){var i,n=this;for(e||(e=""),i=n.indexOf(t);-1!==i;)i=(n=n.replace(t,e)).indexOf(t);return n};f=function(t,e,i){var n,c=(n=t.hcJSON)&&n[T],h=e&&e.chartWidth,d=e&&e.chartHeight,p=o/100*d,f=(h-(n=r/100*h))/2,v=(d-p)/2,b=n-18-22,x=p-18-22,w=l,_=l;return(t=i.html("div",{fill:"transparent",width:h,height:d},{fontSize:"10px",lineHeight:"15px",fontFamily:(c&&c.inCanvasStyle||t.inCanvasStyle).fontFamily},e&&e.container)).veil=i.html("div",{id:"veil",fill:"000000",width:h,height:d,opacity:.1},void 0,t).on("click",(function(){u&&g.messageLogger.close()})),s&&a&&(t.title=i.html("p",{id:"Title",innerHTML:s,x:5,y:5},{"font-weight":"bold"},t)),t.dialog=i.html("div",{id:"dialog",x:f,y:v,fill:"ffffff",strokeWidth:1,stroke:w,width:n,height:p},{borderRadius:"5px",boxShadow:"1px 1px 3px #000000","-webkit-border-radius":"5px","-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'}
45,t),t.logBackground=i.html("div",{id:"dialogBackground",x:0,y:0,fill:_,width:n,height:p},void 0,t.dialog),u&&(t.closeBtnContainer=i.html("div",{id:"closeBtnContainer",width:18,height:18,x:f+n-21,y:v+3},{},t),h=(e=new m("closeBtnContainer",18,18)).group("closeGroup"),t.closeButton=e.symbol("closeIcon",0,0,6,h).attr({transform:"t9,9","stroke-width":2,stroke:y("999999"),ishot:!0,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).click((function(){g.messageLogger.close()}))),t.logWrapper=i.html("div",{id:"logWrapper",x:(n-b)/2,y:(p-x)/2,width:b,height:x},{overflow:"auto"},t.dialog).on("scroll",(function(){var t=this&&this.scrollTop,e=this&&this.scrollHeight,i=this&&this.offsetHeight;S?S=!1:C=e-t===i})),t.log=i.html("div",{id:"log",x:0,y:0},{},t.logWrapper),t.hide(),t},t=function(t,e,i,n){if(g.messageLogger)return g.messageLogger;this.chart=t,this.instanceAPI=e,this.renderer=i,this.paper=n,this.menuCreated=!1,this.log=(t=this.ui=f(e,i,n))&&t.log,t&&this.updateStatus("INITIALIZED")},t.prototype={STATUS:"",updateStatus:function(t){var i=(i=this.renderer)&&i.menu instanceof Array&&i.menu[0];switch(this.status=t,i&&this.status.toLowerCase()){case"initialized":e?i.hideItem(4):i.hideItem(1);break;case"closed":e?i.showItem(3):i.showItem(0),e?i.hideItem(4):i.hideItem(1);break;case"active":e?i.showItem(4):i.showItem(1),e?i.hideItem(3):i.hideItem(0)}},appendMessage:function(t){var e=this.status,i=k(t.msgid,""),r=k(t.msgtitle,""),o=k(t.msgtext,""),a=t&&k(t.msgtype,"literal"),s=t&&!!A(t.clearlog,0),l=t&&!!A(t.hidelog,0),u=t&&!!A(t.showlog,0),p=t&&!!A(t.msggoestolog,n),f=t&&!!A(t.msggoestojs,c);if(p&&"INITIALIZED"===e&&this.updateStatus("CLOSED"),l&&this.close(),s&&this.clear(),u&&this.open(),p&&"ACTIVE"!==this.status&&this.show(),(""!==r&&void 0!==r||""!==o&&void 0!==o)&&this.log&&p){var g,m,b,y,T;e=this.log,s=t&&t.msgtitle,l=t&&t.msgtext,u=t&&k(t.msgtype,"literal");switch(t="",e&&e.element&&(b=e.element),b&&(y=b.parentElement),s&&(s+=" : "),u.toLowerCase()){case"info":case"literal":default:s&&(g='<span style="color: #005900">$titleVal$</span>'),l&&(m="<span>$msgVal$</span>");break;case"error":s&&(g='<span style="color: #CC0000">$titleVal$</span>'),l&&(m='<span style="color: #CC0000">$msgVal$</span>');break;case"link":s&&(g='<span style="color: #005900">$titleVal$</span>'),l&&(m='<a href="$msgVal$">$msgVal$</a>')}if(g&&(t+=g=g.replace("$titleVal$",s)),m&&(t+=m=D.call(m,"$msgVal$",l)),b&&t){for(T in g=w.createElement("span"),L)g.style[T]=L[T];g.innerHTML=t,b.appendChild&&b.appendChild(g),v&&_&&(T=b.innerHTML,b.innerHTML=T),C&&(S=!0,b=y.scrollHeight,y.scrollTop=b)}v||(this.ui.element.scrollHeight+=30,this.ui.element.scrollTop=this.ui.element.scrollHeight)}f&&h&&("function"==typeof(f=x[h])&&(d?f(i,r,o,a):f(o)))},hide:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("BEFORE CLOSE"))},close:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("CLOSED"))},open:function(){"ACTIVE"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},show:function(){"ACTIVE"!==this.status&&"CLOSED"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},clear:function(){var t=this.log;if(t=t&&t.element)for(;t.hasChildNodes();)t.removeChild(t.lastChild)},destroy:function(){return this.hide(),this.updateStatus("DESTROYED"),g.messageLogger=null,delete g.messageLogger,null}},t.prototype.constructor=t,this.core.addEventListener(["rendered","dataupdated","resized"],(function(f){var m=f&&f.sender;f=f&&f.eventType;var v,y=(_=(D=m&&m.jsVars)&&D.hcObj)&&_.options,x=D&&D.instanceAPI,w=x&&x.renderer,_=w&&w.paper,C=(y=y&&y.chart,(C=m&&m.options)&&C.renderer),S=g&&g.messageLogger,k=S&&S.status,T=D&&D._reflowData,L=T&&T._messageLogger||{},D=L&&L.appendedMessages;if((!C||"javascript"===C.toLowerCase())&&(i=y&&y.useMessageLog)){if(y&&(e=y.showRTMenuItem,n=y.messageGoesToLog,c=y.messageGoesToJS,h=y.messageJSHandler,d=y.messagePassAllToJS,r=y.messageLogWPercent,o=y.messageLogHPercent,a=y.messageLogShowTitle,s=y.messageLogTitle,u=y.messageLogIsCancelable,l=(l=y.messageLogColor).replace(/^#?([a-f0-9]+)/gi,"$1"),b(l),p=y.alwaysShowMessageLogMenu),S&&(S=g.messageLogger=S.destroy()),v=(S=g.messageLogger=new t(m,x,w,_))&&S.ui&&S.ui.log&&S.ui.log.element,"resized"===f)switch(D&&(v.innerHTML=D),k.toLowerCase()){case"active":S.ui.show(),S.updateStatus(k);break;case"closed":S.updateStatus(k)}
45p&&(S.menuCreated=!0),m.addEventListener("RealTimeUpdateComplete",(function(t,r){var o=r&&r.updateObject,a=o&&o.msgtitle,s=o&&o.msgtext,l=o&&A(o.showlog,0),c=o&&A(o.hidelog,0),h=o&&A(o.clearlog,0);(a||s||l||c||h)&&(!i||e||!n||p||S.menuCreated||(x.drawMLMenuButtons.call(w,m),S.menuCreated=!0),S.appendMessage(o),L.appendedMessages=v&&v.innerHTML,T._messageLogger=L)})),m.addEventListener("beforeDispose",(function(){S&&S.destroy()}))}}))}]),FusionCharts.register("module",["private","modules.renderer.js-realtime",function(){var V=this,mb=V.window,Fa=Math,eb=Fa.random,qa=Fa.max,I=V.hcLib.pluckNumber,Ga=function(t,e,i){return clearTimeout(i),setTimeout(t,e)},J,Ta;J=function(I){var q=I.sender,E=q.jsVars;I=q.__state;var h=E.instanceAPI,J=h.hcJSON,Ba=h.numberFormatter,U=J&&J.alerts&&J.alerts.alert||[],E=E._rtLastUpdatedData&&E._rtLastUpdatedData.values,Y=U.length,fa;if(E&&E.length){for(h=function(h){var E,I=Ba.getCleanValue(h),J,fa=function(h){return function(){eval(h.param)}};for(J=0;J<Y;J+=1)if(h=U[J],E=h.action&&h.action.toLowerCase(),h.minvalue<=I&&h.maxvalue>=I){if("1"!==h.occuronce||!h.hasOccurred){switch(h.hasOccurred=!0,h.state="1",E){case"calljs":setTimeout(fa(h),0);break;case"showannotation":q.showAnnotation&&q.showAnnotation(h.param)}V.raiseEvent("AlertComplete",{alertValue:I,alertMaxValue:h.maxvalue,alertMinValue:h.minvalue},q)}}else"showannotation"===E&&"1"===h.state&&q.hideAnnotation&&q.hideAnnotation(h.param),h.state="2"},J=qa(E.length,0),fa=0;fa<J;fa+=1)I.lastSetValues&&E[fa]===I.lastSetValues[fa]||h(E[fa]);I.lastSetValues=E}},Ta=function(t){var e,i,n,r,o,a,s,l,c,h,d,u,p=t.sender,f=p.__state;f.dataSetDuringConstruction&&!f.rtStateChanged&&void 0===f.rtPreInit&&(p.dataReady()?(f.rtStateChanged=!0,f.rtPreInit=!0):f.rtPreInit=!1),f.rtStateChanged&&(f.rtStateChanged=!1,e=p.jsVars,i=e.hcObj)&&(n=i.logic,o=(r=i.options)&&r.chart||{},a=1e3*I(o.updateInterval,o.refreshInterval),s=1e3*I(o.clearInterval,0),l=o.dataStreamURL,c=o.dataStamp,o=Boolean(n&&n.realtimeEnabled&&0<a&&void 0!==l&&o),r=r&&r.plotOptions&&r.plotOptions.series.animation&&r.plotOptions.series.animation.duration||0,h=f._rtAjaxObj,d=function(){p.clearChart&&p.clearChart(),s&&(f._toClearChart=setTimeout(d,s))},u=function(){var t=(t=l)+(-1===l.indexOf("?")?"?num=":"&num=")+eb();c&&(t+="&dataStamp="+c),h.open&&h.abort(),h.get(t),f._rtAjaxLatencyStart=new Date},0>=a?(f._toRealtime=clearTimeout(f._toRealtime),h&&h.abort()):10>a&&(a=10),f._toClearChart=clearTimeout(f._toClearChart),0<s&&(10>s?s=10:f._toClearChart=setTimeout(d,s)),f._rtStaticRefreshMS=a,o&&(void 0===f._rtPaused&&(f._rtPaused=!1),f._rtDataUrl=l,f.lastSetValues=null,(h=f._rtAjaxObj||(f._rtAjaxObj=new V.ajax)).onSuccess=function(n,r,o,s){if(!p.disposed){var l=e.hcObj&&e.hcObj.logic;if(o=l.linearDataParser&&l.linearDataParser(n,l.multisetRealtime),f._rtAjaxLatencyStart&&(f._rtAjaxLatency=new Date-f._rtAjaxLatencyStart),p.isActive()&&o&&i&&(i.realtimeUpdate||l.realtimeUpdate)){c=o.dataStamp?o.dataStamp:null,o.interval=1e3>a?a:1e3,r=p.getDataJSON(),i.realtimeUpdate?i.realtimeUpdate(o):l.realtimeUpdate(o),e._rtLastUpdatedData=l.multisetRealtime?o:p.getDataJSON(),l=(l.realtimeDrawingLatency||0)+(f._rtAjaxLatency||0),V.raiseEvent("realtimeUpdateComplete",{data:n,updateObject:o,prevData:r.values,source:"XmlHttpRequest",url:s,networkLatency:f._rtAjaxLatency,latency:l},t.sender);try{mb.FC_ChartUpdated&&mb.FC_ChartUpdated(t.sender.id)}catch(t){setTimeout((function(){throw t}),1)}f._rtPaused||(l>=f._rtStaticRefreshMS&&(l=f._rtStaticRefreshMS-1),f._toRealtime=setTimeout(u,f._rtStaticRefreshMS-l))}else f._toRealtime=clearTimeout(f._toRealtime)}},h.onError=function(e,i,n,r){f._rtAjaxLatencyStart&&(f._rtAjaxLatency=new Date-f._rtAjaxLatencyStart),V.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:r,xmlHttpRequestObject:i.xhr,error:e,httpStatus:i.xhr&&i.xhr.status?i.xhr.status:-1,networkLatency:f._rtAjaxLatency},t.sender),f._toRealtime=p.isActive()?setTimeout(u,a):clearTimeout(f._toRealtime)},f._rtPaused||(f._toRealtime=Ga(u,r>a?r:a,f._toRealtime))),p.removeEventListener("realtimeUpdateComplete",J),n.dataObj&&n.dataObj.alerts&&n.dataObj.alerts&&n.dataObj.alerts.alert&&n.dataObj.alerts.alert.length&&p.addEventListener("realtimeUpdate
45Complete",J))},V.addEventListener(["beforeDataUpdate","beforeRender"],(function(t){var e=(t=t.sender).__state;t.jsVars&&(t.jsVars._rtLastUpdatedData=null),e._toRealtime&&(e._toRealtime=clearTimeout(e._toRealtime)),e._toClearChart&&(e._toClearChart=clearTimeout(e._toClearChart)),e._rtAjaxLatencyStart=null,e._rtAjaxLatency=null})),V.addEventListener(["renderComplete","dataUpdated"],(function(t){var e=t.sender.__state;e&&(void 0===e.rtPreInit&&(e.rtPreInit=!1),e._rtPaused&&delete e._rtPaused,e.rtStateChanged||(e.rtStateChanged=!0,Ta.apply(this,arguments)))})),V.core.addEventListener("beforeDispose",(function(t){(t=t.sender.__state)._toRealtime&&(t._toRealtime=clearTimeout(t._toRealtime)),
46t._toClearChart&&(t._toClearChart=clearTimeout(t._toClearChart))})),V.core.addEventListener("drawComplete",Ta)}]),FusionCharts.register("module",["private","modules.renderer.js-widgets",function(){function t(){}function e(t,e,i,n){return e=A(e,n),t=A(t,i),e&&t?t/i==e/n?i/t:Math.min(i/t,n/e):1}function i(t,e){var i,n,r=(a=t.labels)._textY,o=a._righttX,a=a._leftX,s=e.length;for(i=0;i<s;i+=1)(n=e[i]&&e[i].label)&&(n.y=r,n.x=n.align===Nt?o:a)}function n(t,e,i,n){var o,a,s,l,c,h;if(i instanceof Array||(i=this.colorManager.getPlotColor(0)),t&&0<t.length){for(a=s=t.length-1;0<=a;--a)(o=t[a])&&(o.minvalue=n.numberFormatter.getCleanValue(o.minvalue),o.maxvalue=n.numberFormatter.getCleanValue(o.maxvalue),null===o.minvalue&&(null!==o.maxvalue?o.minvalue=o.maxvalue:a!==s&&t.splice(a,1)),void 0!==o.label&&(o.label=J(o.label)),void 0!==o.name&&(o.name=J(o.name)),null!==o.maxvalue&&o.minvalue>o.maxvalue&&(l=o.minvalue,o.minvalue=o.maxvalue,o.maxvalue=l));for(t.sort(r),t[0].code||(t[0].code=i[0]),void 0===k(t[0].alpha)&&(t[0].alpha=Vt),a=0,s=t.length-1;a<s;a+=1)if(l=a+1,o=t[a],(n=t[l]).code||(n.code=i[l]),void 0===k(n.alpha)&&(n.alpha=Vt),null===o.maxvalue&&(o.maxvalue=n.minvalue),o.maxvalue>n.minvalue){if(o.maxvalue>n.maxvalue){for((l=E(o)).maxvalue=o.maxvalue,h=l.minvalue=n.maxvalue,c=a+2;c<s&&t[c].minvalue<h;c+=1);t.splice(c,0,l),s+=1}o.maxvalue=n.minvalue}null===(o=t[a]).maxvalue&&(o.maxvalue=o.minvalue)}t&&0<t.length||(e||(e={code:"CCCCCC",alpha:"100",bordercolor:"000000",borderalpha:"100"}),t=[e],this.defaultAsigned=!0),this.colorArr=t}var r,o,a,s,l,c,h,d,u,p,f,g,m,v,b=this,y=b.hcLib,x=y.Raphael,w=y.BLANKSTRING,_=y.createTrendLine,C=y.createContextMenu,S=y.pluck,k=y.getValidValue,A=y.pluckNumber,T=y.getFirstDefinedValue,L=y.getColorCodeString,D=y.FC_CONFIG_STRING,E=y.extend2,P=y.getDashStyle,I=y.hashify,M=y.hasSVG,O=y.falseFN,F=y.getFirstValue,R=y.getFirstColor,B=y.graphics.getDarkColor,N=y.graphics.getLightColor,j=y.graphics.convertColor,$=y.graphics.parseColor,V=y.graphics.parseAlpha,H=y.COLOR_TRANSPARENT,W=y.chartAPI,z=y.parseTooltext,q=W.singleseries,U=y.COMMASTRING,G=y.ZEROSTRING,Y=y.ONESTRING,X=/\\,/gi,J=y.parseUnsafeString,K=y.HCstub,Z=b.window,Q=/msie/i.test(Z.navigator.userAgent)&&!Z.opera,tt=y.regex.hexcode,et="rgba(192,192,192,"+(Q?.002:1e-6)+")",it=parseFloat,nt=parseInt,rt=(bt=Math).round,ot=bt.ceil,at=bt.max,st=bt.min,lt=bt.abs,ct=bt.atan2,ht=bt.pow,dt=bt.sqrt,ut=bt.PI/180,pt=y.regex.dropHash,ft=y.toPrecision,gt=y.isArray,mt=y.HASHSTRING,vt=y.toRaphaelColor,bt=y.TOUCH_THRESHOLD_PIXELS,yt=y.CLICK_THRESHOLD_PIXELS,xt=void 0!==Z.document.documentElement.ontouchstart,wt=xt?bt:yt,_t=y.getPosition,Ct=y.plotEventHandler,St={left:"start",right:"end",center:"middle"},kt={true:void 0,false:"crisp"},At=function(t,e,i){var n=0,r=t.length;if(i){for(;n<r;n++)if(!1===e.call(i,t[n],n,t))return n}else for(;n<r;n++)if(!1===e.call(t[n],t[n],n,t))return n},Tt=function(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t},Lt=function(t){return"object"==typeof t},Dt=function(t){return"string"==typeof t},Et=function(t){return null!=t},Pt=Q&&!M?"visible":"",It=y.regex.startsRGBA,Mt=y.setLineHeight,Ot=y.pluckFontSize,Ft=y.POSITION_MIDDLE,Rt=y.POSITION_TOP,Bt=y.POSITION_BOTTOM,Nt=y.POSITION_RIGHT,jt=y.POSITION_LEFT,$t=y.POSITION_MIDDLE,Vt=y.HUNDREDSTRING,Ht=y.PXSTRING,Wt=y.COMMASPACE,zt={right:"end",left:"start",middle:"middle",start:"start",end:"end",center:"middle",undefined:"","":""},qt=(Q=!/fusioncharts\.com$/i.test(Z.location.hostname),function(){return function(t,e,
46i){var n,r,o=this,a=this._Attr,s=x.vml?-1.5:0,l=x.vml?-1.5:0;if(a||(a=o._Attr={}),Dt(t)&&Et(e)&&(n=t,(t={})[n]=e),Dt(t)||void 0===t)o="angle"==t?o._Attr[t]:o._attr(t);else for(n in t)e=t[n],"angle"===n?(a[n]=e,r=e*ut,a.tooltipPos[0]=a.cx+a.toolTipRadius*Math.cos(r),a.tooltipPos[1]=a.cy+a.toolTipRadius*Math.sin(r),a.prevValue=e,i&&i.duration?o.animate({transform:"R"+e+","+s+","+l},i.duration,"easeIn"):o.attr({transform:"R"+e+","+s+","+l})):o._attr(n,e);return o}}),Ut=function(t){var e,i=[];return function(t){(e=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(t))?i=[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]:(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))&&(i=[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),1])}(t),{get:function(e){return i&&!isNaN(i[0])?"rgb"===e?"rgb("+i[0]+","+i[1]+","+i[2]+")":"hex"===e?"#"+("000000"+(i[0]<<16|i[1]<<8|i[2]).toString(16)).slice(-6):"a"===e?i[3]:"rgba("+i.join(",")+")":t},brighten:function(t){var e;if(!isNaN(t)&&0!==t)for(e=0;3>e;e++)i[e]+=parseInt(255*t,10),0>i[e]&&(i[e]=0),255<i[e]&&(i[e]=255);return this},setOpacity:function(t){return i[3]=t,this}}};bt=E({},y.defaultGaugePaletteOptions);t.prototype={numDecimals:function(t){return t=ft(t,10),t=Math.abs(t),t=ft(t-Math.floor(t),10),0>(t=String(t).length-2)?0:t},toRadians:function(t){return t/180*Math.PI},toDegrees:function(t){return t/Math.PI*180},flashToStandardAngle:function(t){return-1*t},standardToFlashAngle:function(t){return-1*t},flash180ToStandardAngle:function(t){var e=360-(0>(t%=360)?t+360:t);return 360==e?0:e},getAngularPoint:function(t,e,i,n){return n*=Math.PI/180,{x:t+i*Math.cos(n),y:e-i*Math.sin(n)}},remainderOf:function(t,e){var i=t%e,n=ht(10,void 0===(n=void 0)?2:n);return(i=rt(Number(String(i*n))))/n},boundAngle:function(e){return 0<=e?t.prototype.remainderOf(e,360):360-t.prototype.remainderOf(Math.abs(e),360)},toNearestTwip:function(t){var e=0>t?-1:1;t=rt(100*Math.abs(t));var i=Math.floor(t/5);return(2<Number(String(t-5*i))?5*i+5:5*i)/100*e},roundUp:function(t,e){var i=ht(10,void 0===e?2:e);return(t=rt(Number(String(t*i))))/i}},t.prototype.constructor=t,y.MathExt=t,o=function(t,e,i,n,r,o,a,s){var l,c,h=t[D].smartLabel,d=e.chart,u=t.chart,p=0;e=t.title,a=t.subtitle;var f=e.text,g=a.text;r=A(d.captionpadding,r,2);var m=0,v=0,b=(p=0,A(d.captiononright,0)),y=k(d.captionposition,"top").toLowerCase(),x=(d=0,{left:0,right:0});s=s.snapLiterals||(s.snapLiterals={});var _=0,C=0;if(f!==w&&(l=e.style,m=A(parseInt(l.fontHeight,10),parseInt(l.lineHeight,10),12),A(parseInt(l.fontSize,10),10)),g!==w&&(c=a.style,v=A(parseInt(c.fontHeight,10),parseInt(c.lineHeight,10),12),p=A(parseInt(c.fontSize,10),10)),0<m||0<v){switch(h.setStyle(l),0<(l=h.getSmartText(e.text,i,n)).width&&(l.width+=2,d=l.height),h.setStyle(c),0<(c=h.getSmartText(a.text,i,n-d)).width&&(c.width+=2),h=l.height+0+p/2,y){case"middle":e.y=n/2-l.height,a.y=e.y+h;break;case"bottom":a.y=n-u.marginBottom-u.marginTop-c.height,e.y=a.y-(0<l.height?h:0);break;default:e.y=0,a.y=h}p=Math.max(l.width,c.width),t.title.text=l.text,l.tooltext&&(t.title.originalText=l.tooltext),t.subtitle.text=c.text,c.tooltext&&(t.subtitle.originalText=c.tooltext),0<p&&(p+=r),t=Math.min(p,i),b?(e.align=a.align=zt.start,x.right=t,e.x=o-p+r,a.x=o-p+r):(e.align=a.align=zt.end,x.left=t,e.x=p-r,a.x=p-r,_=t,C=c.width),e._captionWidth=l.width,a._subCaptionWidth=c.width,s.captionstartx=e.x-_,s.captionstarty=e.y,s.captionwidth=l.width,s.captionheight=d||0,s.captionendx=s.captionstartx+s.captionwidth,s.captionendy=s.captionstarty+s.captionheight,s.subcaptionstartx=a.x-C,s.subcaptionstarty=a.y,s.subcaptionwidth=0<c.width?c.width:0,s.subcaptionheight=0<c.height?c.height:0,s.subcaptionendx=s.subcaptionstartx+s.subcaptionwidth,s.subcaptionendy=s.subcaptionstarty+s.subcaptionheight}return x},a=function(t,e,i,n,r,o){var a=t.chart,s=e.chart;e=t.title;var l=A(s.captionpadding,2);s=A(s.captiononright,0);t=t.subtitle,o=o.snapLiterals;var c=0,h=0;a.spacingRight=a.spacingLeft=0,Et(n)||(n=0),Et(r)||(r=0),s?(i-=a.marginRight,t.align=e.align=zt.start,e.x=t.x=i+l+r+2):(t.align=e.align=zt.end,e.x=t.x=a.marginLeft-a.spacingLeft-l-n-2,c=e._captionWidth,h=t._subCaptionWidth),o.captionstartx=e.x-c,o.subcaptionstartx=t.x-h,o.captionendx=o.captionstartx+o.captionwidth,o.subcaptionendx=o.subcaptionstartx+o.subcaptionwidth},s=function(e,i,n,r,o){this.userMin=e,this.userMax=i,this.numMajorTM=A(r.majorTMNumber,-1),this.numMinorTM=A(r.minorTMNumber,5),this.adjustTM=r.adjustTM,this.tickValueStep=A(r.tickValueStep,1),this.showLimits=A(r.showLimits,1),this.showTickValues=A(r.showTickValues,1),this.nf=o,this.stopMaxAtZero=n,this.setMinAsZero=!r.setAdaptiveMin,this.upperLimitDisplay=r.upperLimitDisplay,this.lowerLimitDisplay=r.lowerLimitDisplay,this.userMaxGiven=null!==this.userMax&&void 0!==this.userMax&&""!==this.userMax,this.userMinGiven=null!==this.userMin&&void 0!==this.userMin&&""!==this.userMin,this.majorTM=[],this.minorTM=[],this.MathExt=new t},s.prototype={setAxisCoords:function(t,e){this.startAxisPos=t,this.endAxisPos=e},calculateLimits:function(t,e){var i,n,r=!0,o=!0,a=Number(this.userMax),s=Number(this.userMin);this.userMaxGiven&&this.userMinGiven?(a>t&&(t=a),s<e&&(e=s)):(isNaN(t)&&(t=.9,o=!1),isNaN(e)&&(e=0,r=!1),t===e&&0===t&&(isNaN(a)||
46(t=a),isNaN(a)||0===a)&&(t=.9)),i=Math.max(Math.floor(Math.log(Math.abs(e))/Math.LN10),Math.floor(Math.log(Math.abs(t))/Math.LN10)),s=ht(10,i),2>Math.abs(t)/s&&2>Math.abs(e)/s&&(i--,s=ht(10,i)),i=ht(10,Math.floor(Math.log(t-e)/Math.LN10)),0<t-e&&10<=s/i&&(s=i),i=(Math.floor(t/s)+1)*s,0>e?n=-1*(Math.floor(Math.abs(e/s))+1)*s:this.setMinAsZero?n=0:n=0>(n=Math.floor(Math.abs(e/s)-1)*s)?0:n,this.stopMaxAtZero&&0>=t&&(i=0),this.max=!1===this.userMaxGiven||!0===this.userMaxGiven&&a<t&&o?i:a,this.min=!1===this.userMinGiven||!0===this.userMinGiven&&Number(this.userMin)>e&&r?n:Number(this.userMin),this.min>this.max?this.min==Number(this.userMin)&&this.max==a?(r=this.min,this.min=this.max,this.max=r):this.min==Number(this.userMin)?this.max=this.min+1:this.max==a&&(this.min=this.max-1):this.min==this.max&&(this.max=this.min+1),this.range=Math.abs(this.max-this.min),this.interval=s,this.calcTickInterval()},calcTickInterval:function(){var t,e,i=0;-1!=this.numMajorTM&&2>this.numMajorTM&&(this.numMajorTM=2),!1===this.userMinGiven&&!1===this.userMaxGiven&&-1!==this.numMajorTM?(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,e=(t=this.getDivisibleRange(this.min,this.max,this.numMajorTM,this.interval,!0))-this.range,this.range=t,0<this.max?this.max+=e:this.min-=e):(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,!0===this.adjustTM&&(t=function(t,e){for(var i,n=0,r=1;i=0===(i=e.numMajorTM+n*r)?1:i,!e.isRangeDivisible(t,i,e.interval);){if(25<(n=-1==r||n>e.numMajorTM?++n:n)){i=e.numMajorTM;break}r=n<=e.numMajorTM?-1*r:1}e.numMajorTM=1<i?i:e.numMajorTM},e=this.numMajorTM,t(this.range,this),2===this.numMajorTM&&(this.numMajorTM=e,t(this.range+1,this),i=1))),this.majorTickInt=(this.max-this.min+i)/(this.numMajorTM-1)},isRangeDivisible:function(t,e,i){return!(this.MathExt.numDecimals(t/(e-1))>this.MathExt.numDecimals(i))},getDivisibleRange:function(t,e,i,n,r){return 3>i?this.range:(e=(t=Math.abs(e-t))/(i-1),this.isRangeDivisible(t,i,n)||(r&&Number(e)/Number(n)<(1<n?2:.5)&&(n/=10),t=(e=(Math.floor(e/n)+1)*n)*(i-1)),t)},calculateTicks:function(){this.majorTM=[],this.minorTM=[];for(var t,e,i=0,n=this.numMajorTM,r=this.numMinorTM,o=this.nf,a=this.tickValueStep,s=J(this.lowerLimitDisplay),l=J(this.upperLimitDisplay),c=this.majorTickInt,h=this.min,d=this.showTickValues,u=!1,p=A(this.showLimits,d);i<n;i+=1)t=i<n-1?ft(Number(h+c*i),10):this.max,e=o.scale(t),u=!1,0!=i%a&&i!==n-1?e=w:0===i||i===n-1?p?0===i&&s?(e=s,u=!0):i==n-1&&l&&(e=l,u=!0):e=w:d||(e=w),this.majorTM.push({displayValue:e,isString:u,value:t});for(e=c/(r+1),i=0;i<n-1;i+=1)for(t=1;t<=r;t+=1)this.minorTM.push(this.majorTM[i].value+e*t)},returnDataAsTick:function(t,e){var i={};return i.value=t,i.displayValue=this.nf.dataLabels(t),i.showValue=e,i},getMax:function(){return this.max},getMin:function(){return this.min},getMajorTM:function(){return this.majorTM},getMinorTM:function(){return this.minorTM},getAxisPosition:function(t){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate position, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");return this.startAxisPos+(this.endAxisPos-this.startAxisPos)/(this.max-this.min)*(t-this.min)},getValueFromPosition:function(t){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate value, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");var e,i;return e=this.max-this.min,(i=t-this.startAxisPos)/(i+(this.endAxisPos-t))*e+this.min}},W("gaugebase",{creditLabel:Q,defaultPaletteOptions:bt,multiValueGauge:!1,decimals:2,formatnumberscale:0,drawAnnotations:!0,useScaleRecursively:!0,includeColorRangeInLimits:!1,init:function(t,e,i){var n=i.jsVars;return this.rtLatestSeriesData=n&&n._rtLastUpdatedData?n._rtLastUpdatedData:null,W.base.init.apply(this,arguments)},chart:function(t,i){var r,o,a,s,l,c,h,d,u,p,f,g,m,v,b=this.name,x=this.dataObj||{},_=x.chart||{},C=this.defaultSeriesType,L=this.realtimeEnabled,M=this.colorManager,O=x.alerts;switch(a=K(x,t,i,this),c=a.chart,o=a[D],a.labels.smartLabel=o.smartLabel=this.smartLabel,this.width=t,this.height=i,o.width=t,o.height=i,l=a.plotOptions,c.useRoundEdges=1==_.useroundedges,o.tooltext=_.plottooltext,o.targettooltext=_.targettooltext,r=(c.is3D=s=o.is3d=/3d$/.test(C))?y.chartPaletteStr.chart3D:y.chartPaletteStr.chart2D,c.defaultSeriesType=C,h=0<_.palette&&6>_.palette?_.palette:A(this.paletteIndex,1),--h,c.paletteIndex=h,C=E({},x.colorrange),this.colorRangeGetter=new n(C.color,void 0,this.defaultPaletteOptions.paletteColors[h],this),c.events.click=a.plotOptions.series.point.events.click=this.linkClickFN,void 0!==S(_.clickurl)&&(c.link=_.clickurl,c.style.cursor="pointer",a.plotOptions.series.point.events.click=function(){c.events.click.call({link:_.clickurl})}),d=S(_.basefont,"Verdana,sans"),u=Ot(_.basefontsize,10),p=S(_.basefontcolor,M.getColor("baseFontColor")),C=S(_.outcnvbasefont,d),h=(g=Ot(_.outcnvbasefontsize,u))+Ht,f=S(_.outcnvbasefontcolor,p).replace(/^#?([a-f0-9]+)/gi,"#$1"),u+=Ht,p=p.replace(/^#?([a-f0-9]+)/gi,"#$1"),this.trendStyle=this.outCanvasStyle={fontFamily:C,
46color:f,fontSize:h},m=Mt(this.trendStyle),this.inCanvasStyle={fontFamily:d,fontSize:u,color:p},v=Mt(this.inCanvasStyle),o.trendStyle=o.outCanvasStyle={fontFamily:C,color:f,fontSize:h},E(a.legend,{title:{style:{fontFamily:S(_.legendcaptionfont,C),fontSize:A(_.legendcaptionfontsize,g)+"px",color:I(S(_.legendcaptionfontcolor,f)),fontWeight:A(_.legendcaptionfontbold,1)?"bold":"normal"},align:St[S(_.legendcaptionalignment)]},itemStyle:{fontFamily:S(_.legenditemfont,C),fontSize:A(_.legenditemfontsize,g)+"px",color:I(S(_.legenditemfontcolor,f)),fontWeight:A(_.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:C,fontSize:g+"px",color:I(S(_.legenditemhiddencolor,f))},itemHoverStyle:{color:I(S(_.legenditemhoverfontcolor,_.legenditemfontcolor,f))}}),a.legend.title.style.lineHeight=Mt(a.legend.title.style),a.legend.itemStyle.lineHeight=Mt(a.legend.itemStyle),a.legend.itemHiddenStyle.lineHeight=Mt(a.legend.itemHiddenStyle),o=(o=F(_.valuebordercolor,w))?j(o,A(_.valueborderalpha,_.valuealpha,100)):w,o=l.series.dataLabels.style={fontFamily:S(_.valuefont,d),fontSize:S(_.valuefontsize,parseInt(u,10))+Ht,color:j(S(_.valuefontcolor,p),A(_.valuefontalpha,_.valuealpha,100)),fontWeight:A(_.valuefontbold)?"bold":"normal",fontStyle:A(_.valuefontitalic)?"italic":"normal",border:o||_.valuebgcolor?A(_.valueborderthickness,1)+"px solid":void 0,borderColor:o,borderThickness:A(_.valueborderthickness,1),borderPadding:A(_.valueborderpadding,2),borderRadius:A(_.valueborderradius,0),backgroundColor:_.valuebgcolor?j(_.valuebgcolor,A(_.valuebgalpha,_.valuealpha,100)):w,borderDash:A(_.valueborderdashed,0)?P(A(_.valueborderdashlen,4),A(_.valueborderdashgap,2),A(_.valueborderthickness,1)):"none"},Mt(o),l.series.dataLabels.color=o.color,this.isDataLabelBold&&(o.fontWeight="bold",delete o.lineHeight,Mt(o)),a.tooltip.style={fontFamily:d,fontSize:u,lineHeight:v,color:p},a.title.style={fontFamily:S(_.captionfont,C),color:S(_.captionfontcolor,f).replace(/^#?([a-f0-9]+)/gi,"#$1"),fontSize:A(_.captionfontsize,g+3)+Ht,fontWeight:0===A(_.captionfontbold)?"normal":"bold"},a.title.align=S(_.captionalignment,Ft),a.title.isOnTop=A(_.captionontop,1),a.title.alignWithCanvas=A(_.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1),a.title.horizontalPadding=A(_.captionhorizontalpadding,a.title.alignWithCanvas?0:15),Mt(a.title.style),a.subtitle.style={fontFamily:S(_.subcaptionfont,_.captionfont,C),color:S(_.subcaptionfontcolor,_.captionfontcolor,f).replace(/^#?([a-f0-9]+)/gi,"#$1"),fontSize:A(_.subcaptionfontsize,A(at(A(_.captionfontsize)-3,-1),g)+A(this.subTitleFontSizeExtender,1))+Ht,fontWeight:0===A(_.subcaptionfontbold,this.subTitleFontWeight,_.captionfontbold)?"normal":"bold"},a.subtitle.align=a.title.align,a.subtitle.isOnTop=a.title.isOnTop,a.subtitle.alignWithCanvas=a.title.alignWithCanvas,a.subtitle.horizontalPadding=a.title.horizontalPadding,Mt(a.subtitle.style),a.chart.trendPointStyle={style:this.trendStyle},a.orphanStyles={defaultStyle:{style:E({},this.inCanvasStyle)}},a.chart.colorRangeStyle={style:{fontFamily:d,fontSize:u,lineHeight:v,color:p}},Mt(a.chart.colorRangeStyle),o=A(_.scaleonresize,1),c.origW=l=A(_.origw,o?this.origRenderWidth:t),c.origH=o=A(_.origh,o?this.origRenderHeight:i),l=(c.autoScale=d=A(_.autoscale,1))?e(l,o,t,i):1,this.scaleFactor=c.scaleFactor=l,this.createGaugeAxis&&this.createGaugeAxis(x,a,{fontFamily:C,fontSize:h,lineHeight:m,color:f}),this.parseStyles(a),delete a.xAxis.labels.style.backgroundColor,delete a.xAxis.labels.style.borderColor,delete a.yAxis[0].labels.style.backgroundColor,delete a.yAxis[0].labels.style.borderColor,delete a.yAxis[1].labels.style.backgroundColor,delete a.yAxis[1].labels.style.borderColor,this.showTooltip=A(_.showtooltip,this.showtooltip,1),this.tooltipSepChar=S(_.tooltipsepchar,Wt),this.showValues=A(_.showvalues,_.showvalue,this.showValues,1),this.seriesNameInToolTip=A(_.seriesnameintooltip,1),this.showTooltip||(a.tooltip.enabled=!1),a.plotOptions.series.connectNullData=A(_.connectnulldata,0),c.backgroundColor={FCcolor:{color:S(_.bgcolor,M.getColor(r.bgColor)),alpha:S(_.bgalpha,M.getColor(r.bgAlpha)),angle:S(_.bgangle,M.getColor(r.bgAngle)),ratio:S(_.bgratio,M.getColor(r.bgRatio))}},r=A(_.showborder,s?0:1),c.borderWidth=r?A(_.borderthickness,1):0,c.borderRadius=A(_.borderradiu
46s,0),c.borderDashStyle=A(_.borderdashed,0)?P(A(_.borderdashlen,4),A(_.borderdashgap,2),c.borderWidth):"none",c.borderColor=j(S(_.bordercolor,s?"#666666":M.getColor("borderColor")),S(_.borderalpha,s?"100":M.getColor("borderAlpha"))),c.plotBackgroundColor=c.plotBorderColor=H,c.plotBorderWidth=0,c.plotShadow=0,c.bgSWF=S(_.bgimage,_.bgswf),c.bgSWFAlpha=A(_.bgimagealpha,_.bgswfalpha,100),s=S(_.bgimagedisplaymode,"none").toLowerCase(),r=k(_.bgimagevalign,w).toLowerCase(),C=k(_.bgimagehalign,w).toLowerCase(),"tile"==s||"fill"==s||"fit"==s?(r!=Rt&&r!=$t&&r!=Bt&&(r=$t),"left"!=C&&C!=$t&&"right"!=C&&(C=$t)):(r!=Rt&&r!=$t&&r!=Bt&&(r=Rt),"left"!=C&&C!=$t&&"right"!=C&&(C="left")),c.bgImageDisplayMode=s,c.bgImageVAlign=r,c.bgImageHAlign=C,c.bgImageScale=A(_.bgimagescale,100),c.logoURL=k(_.logourl),c.logoPosition=S(_.logoposition,"tl").toLowerCase(),c.logoAlpha=A(_.logoalpha,100),c.logoLink=k(_.logolink),c.logoScale=A(_.logoscale,100),c.logoLeftMargin=A(_.logoleftmargin,0),c.logoTopMargin=A(_.logotopmargin,0),c.annRenderDelay=k(_.annrenderdelay),(s=a.tooltip.style).backgroundColor=j(S(s.backgroundColor,_.tooltipbgcolor,_.hovercapbgcolor,_.hovercapbg,M.getColor("toolTipBgColor")),S(_.tooltipbgalpha,100)),s.borderColor=j(S(s.borderColor,_.tooltipbordercolor,_.hovercapbordercolor,_.hovercapborder,M.getColor("toolTipBorderColor")),S(_.tooltipborderalpha,100)),a.tooltip.constrain=A(_.constraintooltip,1),a.tooltip.shadow=!!A(_.showtooltipshadow,_.showshadow,1)&&{enabled:!0,opacity:at(A(_.tooltipbgalpha,100),A(_.tooltipborderalpha,100))/100},s.borderWidth=A(_.tooltipborderthickness,1)+"px",_.tooltipborderradius&&(s.borderRadius=A(_.tooltipborderradius,1)+"px"),a.tooltip.style.padding=A(_.tooltippadding,this.tooltippadding,3)+"px",_.tooltipcolor&&(s.color=R(_.tooltipcolor)),c.rotateValues=A(_.rotatevalues,0),c.placeValuesInside=A(_.placevaluesinside,0),c.valuePosition=_.valueposition,c.valuePadding=A(_.valuepadding,4),a.plotOptions.series.shadow=A(_.showshadow,_.showcolumnshadow,this.defaultPlotShadow,this.colorManager.getColor("showShadow")),c.useRoundEdges&&(a.plotOptions.series.shadow=A(_.showshadow,_.showcolumnshadow,1),a.plotOptions.series.borderRadius=1,a.tooltip.borderRadius=2),a.title.text=J(_.caption),a.subtitle.text=J(_.subcaption),_.showtooltip==G&&(a.tooltip.enabled=!1),(80<(M=A(_.plotspacepercent,20))||0>M)&&(M=20),this.plotSpacePercent=a.plotOptions.series.groupPadding=M/200,this.parseExportOptions(a),c.dataStreamURL=S(_.datastreamurl,""),c.refreshInterval=A(_.refreshinterval,1),c.dataStamp=_.datastamp,c.useMessageLog=A(_.usemessagelog,0),c.messageLogWPercent=st(A(_.messagelogwpercent,80),100),c.messageLogHPercent=st(A(_.messageloghpercent,70),100),c.messageLogShowTitle=A(_.messagelogshowtitle,1),c.messageLogTitle=S(_.messagelogtitle,"Message Log"),c.messageLogColor=S(_.messagelogcolor,"#fbfbfb"),c.messageGoesToJS=A(_.messagegoestojs,0),c.messageGoesToLog=A(_.messagegoestolog,1),c.messageJSHandler=S(_.messagejshandler,""),c.messagePassAllToJS=A(_.messagepassalltojs,0),c.messageLogIsCancelable=A(_.messagelogiscancelable,1),c.alwaysShowMessageLogMenu=A(_.alwaysshowmessagelogmenu,c.useMessageLog),c.showRTMenuItem=A(_.showrtmenuitem,0),M=A(_.showgaugeborder,1),c.gaugeBorderColor=S(_.gaugebordercolor,this.gaugeBorderColor,"333333"),c.gaugeBorderThickness=M?A(_.gaugeborderthickness,this.gaugeBorderThickness,2):0,c.gaugeBorderAlpha=S(_.gaugeborderalpha,Vt),c.gaugeFillColor=S(_.gaugefillcolor,_.ledbgcolor,"000000"),c.useSameFillColor=A(_.usesamefillcolor,0),c.useSameFillBgColor=A(_.usesamefillbgcolor,c.useSameFillColor),c.colorRangeFillMix=T(_.colorrangefillmix,_.gaugefillmix,this.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}"),c.colorRangeFillRatio=T(_.colorrangefillratio,_.gaugefillratio,this.colorRangeFillRatio,_.gaugefillratio,"0,10,80,10"),c.showColorRangeBorder=A(_.showcolorrangeborder,_.showgaugeborder,this.showColorRangeBorder,0),c.colorRangeBorderColor=S(_.colorrangebordercolor,_.gaugebordercolor,"{dark-20}"),c.colorRangeBorderThickness=M?A(_.colorrangeborderthickness,_.gaugeborderthickness,1):0,c.colorRangeBorderAlpha=A(_.colorrangeborderalpha,_.gaugeborderalpha,100),c.roundRadius=A(_.roundradius,_.gaugeroundradius,0),c.showShadow=A(_.showshadow,1),c.gaugeType=A(_.gaugetype,this.gaugeType,1),this.preSeriesAddition&&this.preSeriesAddition(a,x,t,i),this.series(x,a,b,t,i),this.postSeriesAddition&&this.postSeriesAddition(a,x,t,i),this.configureAxis&&this.configureAxis(a,x),this.spaceManager&&this.spaceManager(a,x,t,i),this.postSpaceManager&&this.postSpaceManager(),this.updateSnapPoints&&this.updateSnapPoints(a),this.latestDataUpdater&&this.latestDataUpdater(a,x,t,i),(M=(b=c.toolbar={button:{}}).button).scale=A(_.toolbarbuttonscale,1.15),M.width=A(_.toolbarbuttonwidth,15),M.height=A(_.toolbarbuttonheight,15),M.radius=A(_.toolbarbuttonradius,2),M.spacing=A(_.toolbarbuttonspacing,5),M.fill=j(S(_.toolbarbuttoncolor,"ffffff")),M.labelFill=j(S(_.toolbarlabelcolor,"cccccc")),M.symbolFill=j(S(_.toolbarsymbolcolor,"ffffff")),M.hoverFill=j(S(_.toolbarbuttonhovercolor,"ffffff")),M.stroke=j(S(_.toolbarbuttonbordercolor,"bbbbbb")),M.symbolStroke=j(S(_.toolbarsymbolbordercolor,"9a9a9a")),M.strokeWidth=A(_.toolbarbuttonborderthickness,1),M.symbolStrokeWidth=A(_.toolbarsymbolborderthickness,1),x=M.symbolPadding=A(_.toolbarsymbolpadding,5),M.symbolHPadding=A(_.toolbarsymbolhpadding,x),M.symbolVPadding=A(_.toolbarsymbolvpadding,x),M=b.position=S(_.toolbarposition,"tr").toLowerCase()){case"tr":case"tl":case"br":case"bl":break;default:M="tr"}return x=b.hAlign="left"===(w+_.toolbarhalign).toLowerCase()?"l":M.charAt(1),M=b.vAlign="bottom"===(w+_.toolbarvalign).toLowerCase()?"b":M.charAt(0),b.hDirection=A(_.toolbarhdirection,"r"===x?-1:1),b.vDirection=A(_.toolbarvdirection,"b"===M?-1:1),b.vMargin=A(_.toolbarvmargin,6),b.hMargin=A(_.toolbarhmargin,10),b.x=A(_.toolbarx,"l"===x?0:t),b.y=A(_.toolbary,"t"===M?0:i),Z.console&&Z.console.log&&Z.FC_DEV_ENVIRONMENT&&console.log(a),A(_.showrtmenuitem,0)?(a.callbacks||(a.c
46allbacks=[])).push(this.drawRTMenuButtons):c.useMessageLog&&c.alwaysShowMessageLogMenu&&c.messageGoesToLog&&(a.callbacks||(a.callbacks=[])).push(this.drawMLMenuButtons),L&&O&&(this.hcJSON.alerts=this.parseAlertObj(O)),a},parseAlertObj:function(){return l.parseAlertObj.apply(this,arguments)},drawMLMenuButtons:function(){var t,e=(r=this.options).chart,i=this.menu||(this.menu=[]),n=this.toolbar,r=r[D];i.push(t=C({chart:this,basicStyle:r&&r.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open(),t.showItem(4),t.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.close(),t.showItem(3),t.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}})),t.hideItem(1),this.elements.configureButton=n.add("loggerIcon",function(e,i){return function(){t.visible?t.hide():t.show({x:e,y:i+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},drawRTMenuButtons:function(){var t,e=(s=this.logic).chartInstance,i=(a=this.options).chart,n=i&&i.alwaysShowMessageLogMenu,r=this.menu||(this.menu=[]),o=this.toolbar,a=(a=a[D])&&a.outCanvasStyle||this.outCanvasStyle||{},s=(s=e.isUpdateActive||s.eiMethods.isUpdateActive)&&s.call(e);r.push(t=C({chart:this,basicStyle:a,items:[{text:"Stop Update",visibility:s?Pt:"hidden",onclick:function(){t.hideItem(0),t.showItem(1),e.stopUpdate()}},{text:"Start Update",visibility:s?"hidden":Pt,onclick:function(){t.hideItem(1),t.showItem(0),e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open(),t.showItem(4),t.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.close(),t.showItem(3),t.hideItem(4)}}],position:{x:i.spacingLeft,y:this.chartHeight-i.spacingBottom+(i.showFormBtn||i.showRestoreBtn?10:-15)}})),t.hideItem(2),t.hideItem(0),t.hideItem(1),t.showItem(s?0:1),!n&&t.hideItem(3),t.hideItem(4),this.elements.configureButton=o.add("configureIcon",function(e,i){return function(){t.visible?t.hide():t.show({x:e,y:i+1})}}(),{x:i.spacingLeft,y:this.chartHeight-i.spacingBottom+(i.showFormBtn||i.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},latestDataUpdater:function(t){var e,i,n,r=this.chartInstance;if(t=(t=t.series&&t.series)&&t[0]&&t[0].data,(r=r&&r.jsVars&&r.jsVars._rtLastUpdatedData)&&t)for(e=0,i=r.values&&r.values.length;e<i;e+=1)(n=t[e])&&(n.y=r.values[e],n.displayValue=r.labels[e],n.toolText=r.toolTexts[e])},styleApplicationDefinition_font:function(t,e,i){var n,r,o,a,s=!1,l=this.styleMapForFont;switch(e){case"caption":t=t.title;break;case"datalabels":case"value":t=t.plotOptions.series.dataLabels;break;case"datavalues":t=t.plotOptions.series.dataLabels,s=!0;break;case"subcaption":t=t.subtitle;break;case"tooltip":t=t.tooltip;break;case"trendvalues":t=t.chart.trendPointStyle;break;case"xaxisname":t=t.xAxis.title;break;case"vlinelabels":t={style:t[D].divlineStyle};break;case"gaugelabels":t=t.chart.colorRangeStyle;break;case"tickvalues":t=t.scale.tickValues;break;case"limitvalues":t=t.scale.limitValues;break;case"openvalue":t=t.chart.openValue;break;case"closevalue":t=t.chart.closeValue;break;case"highlowvalue":t=t.chart.highLowValue;break;case"legend":t={style:t.legend.itemStyle};break;default:t.orphanStyles[e]=t={text:"",style:{}}}if("object"==typeof t)if(t instanceof Array)for(r=0,o=t.length;r<o;r+=1){for(n in a=t[r],i)"function"==typeof l[e=n.toLowerCase()]&&l[e](i[n],a,s);Mt(a.style)}else{for(n in i)"function"==typeof l[e=n.toLowerCase()]&&l[e](i[n],t,s);Mt(t.style)}},createGaugeAxis:function(t,e,i){t=t.chart;var n=this.colorManager,r=this.numberFormatter,o=this.isHorizontal?A(t.ticksbelowgauge,t.ticksbelowgraph,this.ticksbelowgauge,1)?3:1:A(t.ticksonright,this.ticksOnRight,1)?2:4,a=(n=S(t.majortmcolor,n.getColor("tickColor")),A(t.majortmalpha,100)),s=A(A(t.majortmheight)*this.scaleFactor,this.majorTMHeight,6),l=A(t.tickvaluestep,t.tickvaluesstep,1),c=A(t.showtickmarks,1),h=c?A(t.connecttickmarks,this.connectTickMarks,1):0,d=A(t.showtickvalues,c),u=A(t.majortmthickness,1),p=A(r.getCleanValue(t.upperlimit)),f=(r=A(r.getCleanValue(t.lowerlimit)),1==A(t.reversescale,0));this.isHorizontal||(f=!f),l=1>l?1:l,e.scale={min:null,max:null,axisPosition:o,showTickMarks:c,showTickValues:d,showLimits:A(t.showlimits,d),adjustTM:Boolean(A(t.adjusttm,1)),majorTMNumber:A(t.majortmnumber,-1),majorTMColor:j(n,a),majorTMHeight:c?s:0,majorTMThickness:u,minorTMNumber:A(t.minortmnumber,this.minorTMNumber,4),minorTMColor:j(S(t.minortmcolor,n),A(t.minortmalpha,a)),minorTMHeight:c?A(A(t.minortmheight,t.minortmwidth)*this.scaleFactor,rt(s/2)):0,minorTMThickness:A(t.minortmthickness,1),tickMarkDistance:A(A(t.tickmarkdistance,t.tickmarkgap)*this.scaleFactor,this.tickMarkDistance,3),tickValueDistance:A(A(t.tickvaluedistance,t.displayvaluedistance)*this.scaleFactor,2)+2,placeTicksInside:A(t.placeticksinside,0),placeValuesInside:A(t.placevaluesinside,0),tickValueStep:l,setAdaptiveMin:A(t.setadaptivemin,0),upperLimit:p,lowerLimit:r,upperLimitDisplay:k(t.upperlimitdisplay),lowerLimitDisplay:k(t.lowerlimitdisplay),reverseScale:f,connectorColor:j(S(t.connectorcolor,n),A(t.connectoralpha,a)),connectorThickness:h?A(t.connectorthickness,u):0,majorTM:[],minorTM:[],trendPoint:[],labels:{style:E({},i)},tickValues:{style:E({},i)},limitValues:{style:E({},i)}}},configureAxis:function(t,e){var i,n,r,o,a,l,c,h,d,u=e.chart,p=this.colorManager,f=this.colorRangeGetter,g=(f=f&&f.colorArr)&&f.length;n=f&&f[0],i=f&&f[g-1],o=this.minDataValue,l=this.maxDataValue,c=(f=t.scale).lowerLimit,h=f.upperLimit;var m;g=this.numberFormatter;if(t.series[0]&&(Et(o)&&Et(l)?(c=c<=o?c:n&&n.minvalue,h=h>=l?h:i&&i.maxvalue):(c=A(c,n&&n.minvalue),h=A(h,i&&i.maxvalue)),(i=new s(c,h,!1,f,this.numberFormatter)).calculateLimits(this.maxDataValue,this.minDataValue),i.calculateTicks(),f.majorTM=i.getMajorTM(),f.minorTM=i.getMinorTM(),n=f.min=i.min,i=f.max=i.max,e.trendpoints&&(r=e.trendpoints.point)&&0<(a=r.length))){for(f.trendPoint=[],l=0;l<a;l+=1)o=r[l],d=A(o.dashed,0)?P(S(Math.max(o.dashlen,o.thickness),4),A(o.dashgap,3),A(o.thickness,1)):"none",m=(c=A(o.startvalue,o.value))!==(h=A(o.endvalue,c)),c<=i&&c>=n&&h<=i&&h>=n&&(f.trendPoint.push({style:E(E(t.chart.trendPointStyle.style),{}),startValue:c,endValue:h,tooltext:k(J(o.markertooltext)),displayValue:k(J(o.displayvalue),m?w:g.scale(c)),showOnTop:A(o.showontop,u.ticksbelowgauge,u.ticksbelowgraph,1
46),color:S(o.color,p.getColor("trendLightColor")),alpha:A(o.alpha,99),thickness:A(o.thickness,1),dashStyle:d,useMarker:A(o.usemarker,0),markerColor:j(S(o.markercolor,o.color,p.getColor("trendLightColor")),100),markerBorderColor:j(S(o.markerbordercolor,o.bordercolor,p.getColor("trendDarkColor")),100),markerRadius:A(A(o.markerradius)*this.scaleFactor,5),markerToolText:F(o.markertooltext),trendValueDistance:A(A(o.trendvaluedistance,u.trendvaluedistance)*this.scaleFactor,f.tickValueDistance),isZone:m,valueInside:A(o.valueinside,u.placevaluesinside,0),showBorder:A(o.showborder,1),borderColor:j(S(o.bordercolor,o.color,p.getColor("trendDarkColor")),A(o.borderalpha,o.alpha,100)),radius:A(A(o.radius)*this.scaleFactor),innerRadius:A(A(o.innerradius)*this.scaleFactor)}),$(S(o.bordercolor,o.color,p.getColor("trendDarkColor"))));"lineargauge"===this.defaultSeriesType&&y.stableSort&&y.stableSort(f.trendPoint,(function(t,e){return t.startValue-e.startValue}))}},placeTickMark:function(t,e,i){var n,r=this.smartLabel,o=t.chart,a=this.width-(o.marginRight+o.marginLeft),s=this.height-(o.marginTop+o.marginBottom),l=(t=t.scale).min,c=t.max,h=t.axisPosition,d=t.showLimits,u=t.showTickValues,p=t.tickMarkDistance,f=t.tickValueDistance,g=Math.max(t.majorTMHeight,t.minorTMHeight),m=t.placeTicksInside,v=t.placeValuesInside,b=t.reverseScale,y=0,x=0,w=1,_=t.majorTM.length-1,C=2!==h&&4!==h,S=6;e=C?s-i:a-e,i=0;var k=t.tickValues.style,T=t.limitValues.style;if(t.majorTM[0]&&t.majorTM[1]&&(n=t.majorTM[1].value-t.majorTM[0].value),m||(y+=p+g),u||d)for(r.setStyle(T),d=A(parseInt(T.fontSize,10),10),u=A(parseInt(T.lineHeight,10),12),u/=2,v||(y+=f),3===h&&(x=d),C?(s=e-y,a=a/(c-l)*n/2+6):(a=e-y,s=s/(c-l)*n+u),t.majorTM[0]&&((n=t.majorTM[0]).isString?n.displayValue&&(l=r.getSmartText(n.displayValue,a,s),n.displayValue=l.text,n._oriText=l.oriText,
47l.tooltext&&(n.originalText=l.tooltext),C?(i=Math.max(i,l.height),n.labelY=1===h&&!v||3===h&&v?d-l.height:x,S=Math.min(6,l.width/2)):(i=Math.max(i,l.width),n.labelY=d-(b?l.height-u:u),n.labelX=0)):w=0,C&&(b?(n.labelX=S,n.align=Nt):(n.labelX=-S,n.align=jt))),t.majorTM[_]&&((n=t.majorTM[_]).isString?n.displayValue&&(l=r.getSmartText(n.displayValue,a,s),n.displayValue=l.text,n._oriText=l.oriText,l.tooltext&&(n.originalText=l.tooltext),C?(i=Math.max(i,l.height),n.labelY=1===h&&!v||3===h&&v?d-l.height:x,S=Math.min(6,l.width/2)):(i=Math.max(i,l.width),n.labelY=d-(b?u:l.height-u),n.labelX=0)):(S=6,_+=1),C&&(b?(n.labelX=-S,n.align=jt):(n.labelX=S,n.align=Nt)));w<_;w++)0===w||w===_-1?(r.setStyle(T),d=A(parseInt(T.fontSize,10),10),u=A(parseInt(T.lineHeight,10),12)):(r.setStyle(k),d=A(parseInt(k.fontSize,10),10),u=A(parseInt(k.lineHeight,10),12)),C&&(x=1===h&&v||3===h&&!v?d:0),(n=t.majorTM[w]).displayValue&&(n.labelX=A(n.labelX,0),C?(i=Math.max(i,u),n.labelY=x):(l=r.getOriSize(n.displayValue),i=Math.max(i,l.width),n.labelY=d-l.height/2));switch(r=y,v||(y+=i),y=Math.min(e,y),t._labelUsedSpace=v?i:y-r,h){case 1:o.marginTop+=y;break;case 2:o.marginRight+=y;break;case 3:o.marginBottom+=y;break;case 4:o.marginLeft+=y}return y},eiMethods:{feedData:function(t){var e,i,n=this.jsVars,r=n.hcObj,o=r.logic,a=r.options&&r.options.series&&r.options.series[0];if(this.isActive()&&o&&o.linearDataParser&&(i=o.linearDataParser(t,o.multisetRealtime))){e=this.getDataJSON(),r.realtimeUpdate?r.realtimeUpdate(i):r.logic.realtimeUpdate?r.logic.realtimeUpdate(i):a&&a.realtimeUpdate&&a.realtimeUpdate(i),n._rtLastUpdatedData=o.multisetRealtime?i:this.getDataJSON(),b.raiseEvent("realtimeUpdateComplete",{data:t,updateObject:i,prevData:e.values,source:"feedData",url:null},n.fcObj);try{Z.FC_ChartUpdated&&Z.FC_ChartUpdated(n.fcObj.id)}catch(t){setTimeout((function(){throw t}),0)}return!0}return!1},getData:function(){var t,e=(t=this.jsVars)&&(t=t.hcObj)&&(t=t.options)&&(t=t.series)&&(t=t[0])&&t.data;return(t=e&&e[0])?A(t.value,t.y):null},setData:function(t,e){var i="";(t&&t.toString||""===t||0===t)&&(i="value="+t.toString()),(e&&e.toString||""===e)&&(i=i+"&label="+e.toString()),i&&this.feedData(i)},stopUpdate:function(t){var e=this.__state;clearTimeout(e._toRealtime),e._rtAjaxObj&&e._rtAjaxObj.abort(),e._rtPaused=!0,b.raiseEvent("realimeUpdateStopped",{source:t},this)}
47,restartUpdate:function(){var t=this.__state;t._rtDataUrl&&t._rtPaused&&(t._rtPaused=!1,t._rtAjaxObj.get(t._rtDataUrl))},isUpdateActive:function(){return!this.__state._rtPaused},clearChart:function(t){var e,i=this.jsVars;t=t&&t.toString&&t.toString(),(e=i.hcObj)&&(e=e.options)&&(e=e.scale)&&(i=e.min,isNaN(i)||(this.jsVars.hcObj.fusionCharts.feedData("&showLabel=0&value="+i),y.raiseEvent("chartCleared",{source:t},this,[this.id,t])))},getDataJSON:function(){var t,e,i=0,n=[],r=[],o=[],a=(t=this.jsVars)&&(t=t.hcObj)&&(t=t.options)&&(t=t.series)&&(t=t[0])&&t.data;for(t=a&&a.length?a.length:0;i<t;i+=1)e=a[i],n.push(A(e.value,e.y)),r.push(e.displayValue||""),o.push(e.toolText||"");return{values:n,labels:r,toolTexts:o}},showLog:function(){return this.feedData("showLog=1")},hideLog:function(){return this.feedData("hideLog=1")},clearLog:function(){return this.feedData("clearLog=1")}},linearDataParser:function(t,e){var i,n,r,o,a,s={values:U,colors:U,toolTexts:U,links:function(t){var e,i=[];for(i=(t=t.replace(X,"_fc_escaped_comma_")).split(","),t=0,e=i.length;t<e;t+=1)i[t]=i[t].replace(/_fc_escaped_comma_/gi,",");return i},valueVisibility:U},l=this.chartInstance,c={},h=0;for(o=0,a=(i=(t=t&&t.toString&&t.toString()||"").split("&")).length;o<a;o+=1)if(r=(n=i[o].split("="))[1],(n=n[0])!==w&&void 0!==n&&void 0!==r&&(r!==w||e))switch(n=n.toLowerCase(),n){case"label":c.labels=r.split(",");break;case"vline":c.vlines=r.split(",");break;case"vlinelabel":c.vlineLabels=r.split(",");break;case"vlinecolor":c.vlineColors=r.split(",");break;case"vlinethickness":c.vlineThickness=r.split(",");break;case"vlinedashed":c.vlineDashed=r.split(",");break;case"value":c.values=r.split("|"),h=1;break;case"showlabel":c.showLabels=r.split(",");break;case"showvalue":c.valueVisibility=r.split("|");break;case"tooltext":c.toolTexts=r.split("|");break;case"link":c.links=r.split("|");break;case"color":c.colors=r.split("|");break;case"datastamp":c.dataStamp=r;break;case"stopupdate":c.pause="1"==r;break;case"clear":c.clear="1"==r;break;default:c[n]=r}if(e)for(c.values||(c.values=[]),o=c.values.length;o--;){for(n in s)c[n]?"function"==typeof s[n]?c[n][o]&&(c[n][o]=s[n].call(this,c[n][o])):c[n][o]&&(c[n][o]=c[n][o].split(s[n])):c[n]=[];h=at(c.values[o].length,h)}return c.labels&&(h=at(h,c.labels.length)),c.dimension=h,c.pause&&l.stopUpdate&&l.stopUpdate("datastream"),c},series:function(){var t,e,i=this.dataObj,n=this.hcJSON,r=i.pointers&&i.pointers.pointer||i.value,o=i.chart,a=this.colorRangeGetter,s=(a=a&&a.colorArr)&&a.length,l={},c=l.data=[];for(n.legend.enabled=!1,gt(r)||(r="object"!=typeof r?[{value:r}]:[r]),t=0,e=this.multiValueGauge?r.length:1;t<e;t++)c.push(this.getPointStub(r[t],t,n,i));n.series[0]=l,s&&this.pointValueWatcher&&A(o.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(i=A(a[0].minvalue),Et(i)&&this.pointValueWatcher(i),i=A(a[s-1].maxvalue),Et(i)&&this.pointValueWatcher(i))},pointValueWatcher:function(t){null!==t&&(this.maxDataValue=this.maxDataValue>t?this.maxDataValue:t,this.minDataValue=this.minDataValue<t?this.minDataValue:t)},updateSnapPoints:function(t){var e=t.chart,i=this.width,n=this.height,r=e.marginBottom;t=e.marginLeft;var o=e.marginRight;e=e.marginTop;(i=Tt(this.snapLiterals||(this.snapLiterals={}),{chartstartx:0,chartstarty:0,chartwidth:i,chartheight:n,chartendx:i,chartendy:n,chartcenterx:i/2,chartcentery:n/2,chartbottommargin:r,chartleftmargin:t,chartrightmargin:o,charttopmargin:e,canvasstartx:t,canvasstarty:e,canvaswidth:i-t-o,canvasheight:n-e-r,canvasendx:i-o,canvasendy:n-r})).gaugestartx=i.canvasstartx,i.gaugestarty=i.canvasstarty,i.gaugeendx=i.canvasendx,i.gaugeendy=i.canvasendy,i.gaugecenterx=i.canvascenterx=t+i.canvaswidth/2,i.gaugecentery=i.canvascentery=e+i.canvasheight/2}},W.base),W("linearscalegauge",{spaceManager:function(t,e,i,n){var r,o,a,s=t.chart,l=i-(s.marginRight+s.marginLeft),c=n-(s.marginTop+s.marginBottom),h=s.marginRight,d=s.marginLeft,u=s.marginTop,p=s.marginBottom,f=st(at(.3*l,5),l),g=st(at(.3*c,5),c),m=0;5>f&&10<i&&(f=l=5,a=h+d,h=s.marginRight=(i-l)*h/a,d=s.marginLeft=(i-l)*d/a),5>g&&10<n&&(g=c=5,a=u+p,u=s.marginRight=(n-c)*u/a,p=s.marginLeft=(n-c)*p/a),this.manageTitleSpace&&t.title.alignCaptionWithCanvas&&(o=this.manageTitleSpace(t,e,f,g)),this.placeTickMark&&(r=this.placeTickMark(t,f,g)),this.manageTitleSpace&&!t.title.alignCaptionWithCanvas&&(o=this.manageTitleSpace(t,e,f,g)),this.placeDataLabels&&(m=this.placeDataLabels(t,f,g,u,h,p,d,r)),this.postDataLabelsPlacement&&this.postDataLabelsPlacement(t,f,g),y.adjustVerticalCanvasMargin(t,e,n-(s.marginTop+s.marginBottom),t.xAxis),this.fixCaptionAlignment&&this.fixCaptionAlignment(o,t,e,i,0,m)}
47,manageTitleSpace:function(t,e,i,n){return i=t.chart,this.titleSpaceManager(t,e,this.width-(i.marginRight+i.marginLeft),this.height-(i.marginTop+i.marginBottom)-n)},placeDataLabels:function(t,e,i,n,r,o){var a=this.smartLabel;e=t.chart;var s=this.width-(e.marginRight+e.marginLeft),l=this.height-(e.marginTop+e.marginBottom);n=e.marginBottom;var c=(r=t.plotOptions.series.dataLabels).style,h=A(parseInt(c.lineHeight,10),12);i=l-i;l=e.valuePadding;var d=0;return(t=t.series[0].data[0])&&t.displayValue!==w&&(a.setStyle(c),t.isLabelString?(a=a.getSmartText(t.displayValue,s,i-l),t.displayValue=a.text,a.tooltext&&(t.originalText=a.tooltext)):a=a.getOriSize(t.displayValue)," "===t.displayValue&&(a={height:h}),0<a.height&&(d=a.height+l),d>i&&(l=(t=d-i)<l?l-t:0,d=i),e.marginBottom+=d,r.align=Ft,e.valuePadding=n-o+l),d},postDataLabelsPlacement:function(t){var e,i=this.smartLabel,n=t.chart,r=this.width-(n.marginRight+n.marginLeft),o=this.height-(n.marginTop+n.marginBottom),a=(t=t.scale).min,s=t.max,l=t.axisPosition,c=t.limitValues.style,h=(n=t.reverseScale,t.majorTM.length-1),d=(l=2!==l&&4!==l,A(parseInt(c.fontSize,10),10)),u=A(parseInt(c.lineHeight,10),12)/2;t.majorTM[0]&&t.majorTM[1]&&(e=t.majorTM[1].value-t.majorTM[0].value),l?(o=t._labelUsedSpace,r=r/(s-a)*e/2+6):(r=t._labelUsedSpace,o=o/(s-a)*e+u),i.setStyle(c),t.majorTM[0]&&t.majorTM[0].isString&&((e=t.majorTM[0]).displayValue&&(a=i.getSmartText(e._oriText,r,o),e.displayValue=a.text,a.tooltext&&(e.originalText=a.tooltext),l?(a=Math.min(6,a.width/2),e.labelX=n?a:-a):e.labelY=d-(n?a.height-u:u))),t.majorTM[h]&&t.majorTM[h].isString&&((e=t.majorTM[h]).displayValue&&(a=i.getSmartText(e._oriText,r,o),e.displayValue=a.text,a.tooltext&&(e.originalText=a.tooltext),l?(a=Math.min(6,a.width/2),e.labelX=n?-a:a):e.labelY=d-(n?u:a.height-u)))},getPointStub:function(t,e,i,n,r){var o=i[D];e=this.colorManager,i=(p=this.numberFormatter).getCleanValue(t.value);var a,s,l,c,h=k(t.link),d=k(J(S(t.tooltext,o.tooltext))),u=(o=k(J(t.displayvalue)),p.dataLabels(i)),p=n.chart;return n=A(p.showhovereffect),this.showTooltip?void 0!==d?(r=z(d,[1,2],{formattedValue:u},t,p),c=!0):r=null!==u&&(void 0!==r?r+this.tooltipSepChar+u:u):r=!1,t=A(t.showvalue,this.showValues)?void 0!==o?o:k(u," "):w,u=S(o,u,w),this.pointValueWatcher&&this.pointValueWatcher(i),this.getPointColorObj&&(a=this.getPointColorObj(p,i)),0!==n&&(n||p.gaugefillhovercolor||p.plotfillhovercolor||p.gaugefillhoveralpha||p.plotfillhoveralpha||0===p.gaugefillhoveralpha)&&(n=!0,o=S(p.gaugefillhovercolor,p.plotfillhovercolor,"{dark-10}"),p=A(p.gaugefillhoveralpha,p.plotfillhoveralpha),s={},(l={}).fluidColor=a.code,l.fluidAlpha=a.alpha,o=(d=/\{/.test(o))?e.parseColorMix(k(a.code,w),o)[0]:o,s.fluidColor=o,s.fluidAlpha=A(p,a.alpha)),{y:i,displayValue:t,displayValueArgs:u,toolText:r,isLabelString:c,color:j(a.code,a.alpha),link:h,colorRange:a,doNotSlice:!0,rolloverProperties:{enabled:n,hoverAttr:s,outAttr:l}}},getPointColorObj:function(t,e){return this.colorRangeGetter.getColorObj(e)}},W.gaugebase),W("led",{singleValued:!0,isDataLabelBold:!0,preSeriesAddition:function(t,e){var i=e.chart,n=t.chart;n.ledGap=A(i.ledgap,2),n.ledSize=A(i.ledsize,2),n.plotHoverEffect=A(i.showhovereffect,0)}},W.linearscalegauge),W("vled",{friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,rendererId:"led",creditLabel:Q},W.led),W("hled",{friendlyName:"Horizontal LED Gauge",defaultPlotShadow:1,standaloneInit:!0,creditLabel:Q,isHorizontal:!0,rendererId:"led",connectTickMarks:1,realtimeEnabled:!0},W.vled),W("bullet",{creditLabel:Q,defaultSeriesType:"bullet",defaultPlotShadow:1,drawAnnotations:!0,realtimeEnabled:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,connectTickMarks:0,minorTMNumber:0,majorTMHeight:4,chartleftmargin:10,chartrightmargin:15,charttopmargin:5,chartbottommargin:5,isDataLabelBold:!0,defaultPaletteOptions:Tt(E({},bt),{paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]}),preSeriesAddition:function(){var t=this.dataObj.chart;this.hcJSON.chart.colorRangeBorderThickness=A(t.showgaugeborder,t.showcolorrangeborder,0)?A(t.colorrangeborderthickness,t.gaugeborderthickness,this.gaugeBorderThickness,2):0},postSeriesAddition:function(t){var e,i,n,r,o=this.dataObj,a=this.colorManager,s=t.series[0],l=o.chart,c=A(l.showhovereffect),h={value:o.target},d=A(l.targetthickness,3),u=S(l.targetcolor,a.getColor("plotFillColor")),p=k(l.targetalpha,100),f=j(u,p),g=A(l.targetfillpercent,60);0!==c&&(c||l.targethovercolor||l.targethoveralpha||0===l.targethoveralpha||l.targethoverthickness||0===l.targethoverthickness)&&(c=!0,n={},r={},d!==(i=A(l.targethoverthickness,d+2))&&(n["stroke-width"]=i,r["stroke-width"]=d),e=S(l.targethovercolor,"{dark-10}"),p=A(l.targethoveralpha,p),i&&(r.stroke=f,i=/\{/.test(e),n.stroke=j(i?a.parseColorMix(u,e)[0]:e,p)),e=!!A(l.showhoveranimation,1)),delete(t=this.getPointStub(h,1,t,o)).rolloverProperties,s.data.push(E(t,{borderColor:f,borderWidth:d,targetThickness:d,targetFillPercent:g,rolloverProperties:{enabled:c,hoverAttr:n,outAttr:r,showH
47overAnimation:e}}))},getPointStub:function(t,e,i,n,r){var o=this.numberFormatter,a=this.colorManager,s=i[D];i=o.getCleanValue(t.value);var l=k(t.link),c=k(J(e?s.targettooltext:s.tooltext)),h=k(J(t.displayvalue)),d=o.dataLabels(i),u=(s=this.colorRangeGetter.getColorObj(i),n.chart),p=e?o.dataLabels(o.getCleanValue(n.value)):d,f=e?i:o.getCleanValue(n.target),g=e?d:o.dataLabels(f),m=S(u.plotfillcolor,a.getColor("plotFillColor"));e=A(u.plotasdot,0);o=A(u.showhovereffect);var v,b,y,x,_=A(u.showplotborder,0),C=_?A(u.plotborderthickness,1):0,T=A(u.plotfillpercent,e?25:40);return n=this.showTooltip?void 0!==c?z(c,[1,2,26,27],{formattedValue:p,targetValue:f,targetDataValue:g},n,u):null!==d&&(void 0!==r?r+this.tooltipSepChar+d:d):w,t=A(t.showvalue,this.showValues)?void 0!==h?h:k(d," "):w,c=S(h,d,w),this.pointValueWatcher&&this.pointValueWatcher(i),/\{/.test(r=S(u.plotbordercolor,"{dark-20}"))&&(b=!0,r=a.parseColorMix(m,r).join()),f=A(u.plotfillalpha,100),h=j(m,f),p=A(u.plotborderalpha,100),d=j(r,p),0!==o&&(o||u.plotfillhovercolor||u.plotfillhoveralpha||0===u.plotfillhoveralpha||u.showplotborderonhover||0===u.showplotborderonhover||u.plotborderhovercolor||u.plotborderhoverthickness||0===u.plotborderhoverthickness||u.plotborderhoveralpha||0===u.plotborderhoveralpha)&&(o=!0,y={},x={},v=S(u.plotfillhovercolor,"{dark-10}"),f=A(u.plotfillhoveralpha,f),v=/\{/.test(v)?a.parseColorMix(m,v)[0]:v,y.fill=j(v,f),x.fill=h,void 0===(m=A(u.showplotborderonhover))&&(m=u.plotborderhoverthickness||u.plotborderhovercolor||u.plotborderhoveralpha?1:_),C!==(m=m?A(u.plotborderhoverthickness,C||1):0)&&(y["stroke-width"]=m,x["stroke-width"]=C),_=S(u.plotborderhovercolor,"{dark-10}"),p=A(u.plotborderhoveralpha,p),m&&(x.stroke=d,m=/\{/.test(_),y.stroke=j(m?a.parseColorMix(b?v:r,_)[0]:_,p)),v=!!A(u.showhoveranimation,1)),{y:i,displayValue:t,displayValueArgs:c,toolText:n,plotAsDot:e,plotFillPercent:T,color:h,borderColor:d,borderWidth:C,link:l,colorRange:s,doNotSlice:!0,rolloverProperties:{enabled:o,hoverAttr:y,outAttr:x,showHoverAnimation:v}}}},W.linearscalegauge),W("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:Q,defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,rendererId:"bullet",standaloneInit:!0},W.bullet),W("hbullet",{friendlyName:"Horizontal Bullet Gauge",creditLabel:Q,defaultSeriesType:"hbullet",gaugeType:1,standaloneInit:!0,isHorizontal:!0,defaultCaptionPadding:5,rendererId:"hbullet",placeDataLabels:function(t,e){var i=this.smartLabel,n=t.chart,r=this.width-(n.marginRight+n.marginLeft),o=this.height-(n.marginTop+n.marginBottom),a=t.plotOptions.series.dataLabels,s=a.style,l=A(parseInt(s.fontSize,10),10),c=(r=r-e,n.valuePadding),h=0,d=t.series[0].data[0];return d&&d.displayValue!==w&&(i.setStyle(s),d.isLabelString?(i=i.getSmartText(d.displayValue,r-c,o),d.displayValue=i.text,i.tooltext&&(d.originalText=i.tooltext)):i=i.getOriSize(d.displayValue),0<i.height&&(h=i.width+c),h>r&&(h=r),n.marginRight+=h,a.align=jt,a.x=0,a.y=l-i.height/2),h},manageTitleSpace:function(t,e,i){var n=t.chart,r=e.chart,a=this.width-(n.marginRight+n.marginLeft),s=(n=this.height-(n.marginTop+n.marginBottom),A(r.captionpadding,2));r=A(A(r.captiononright,0)?r.canvasrightmargin:r.canvasleftmargin);return Et(r)&&(r-=s),i=A(r,a-i),o(t,e,i,n,this.defaultCaptionPadding,this.width,this.height,this)},fixCaptionAlignment:function(t,e,i,n,r,o){n=e.chart;var s=i.chart,l=A(s.canvasleftmargin);s=A(s.canvasrightmargin);n.marginRight+=t.right,n.marginLeft+=t.left,Et(l)&&(n.spacingLeft=n.marginLeft=l,n.spacingLeft-=t.left+0-1),Et(s)&&(n.spacingRight=n.marginRight=s,n.spacingRight-=t.right+0-1),a(e,i,this.width,r,o,this)}},W.bullet),W("lineargauge",{creditLabel:Q,defaultSeriesType:"lineargauge",multiValueGauge:!0,realtimeEnabled:!0,gaugeType:1,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,colorRangeFillMix:"{light-10},{dark-20},{light-50},{light-85}",colorRangeFillRatio:"0,8,84,8",isDataLabelBold:!0,eiMethods:E(E({},W.gaugebase.eiMethods),{getData:function(t){var e,i=(e=this.jsVars)&&(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&(e=e[0])&&e.data;return e=i&&i.length?i.length:0,void 0!==t&&0<t&&t<=e?(t=i[t-1],A(t.value,t.y)):null},getDataForId:function(t){var e,i=(e=this.jsVars)&&(e=e.hcObj)&&e.dataById;return i[t]&&i[t].point?(t=i[t].point,A(t.value,t.y)):null}
47,setData:function(t,e,i){var n,r="",o=(n=this.jsVars)&&(n=n.hcObj)&&(n=n.options)&&(n=n.series)&&(n=n[0])&&n.data;if(n=o&&o.length||0,o=0,0<t&&t<=n&&(e&&e.toString()||""===e||0===e)){for(o=t;--o;)r+="|";t="value="+(r+e),(i&&i.toString||""===i)&&(t+="&label="+r+i.toString()),this.feedData(t)}},setDataForId:function(t,e,i){var n,r=(n=this.jsVars)&&(n=n.hcObj)&&n.dataById;r[t]&&void 0!==r[t].index&&this.setData(r[t].index+1,e,i)}}),placeDataLabels:function(t,e,i,n,r,o,a,s){n=t.scale,r=this.smartLabel,o=t.chart,a=this.width-(o.marginRight+o.marginLeft);var l,c=this.height-(o.marginTop+o.marginBottom),h=t.plotOptions.series.dataLabels;l=h.style;var d=t.scale&&t.scale.labels&&t.scale.labels.style,u=A(parseInt(l.lineHeight,10),12);i=c-i,e=a-e;var p,f=o.valuePadding,g=0,m=0,v=0,b=0,y=0,x=0,_=t.series&&t.series[0]&&t.series[0].data||[];t=t.scale&&t.scale.trendPoint||[];var C,S=0,k=_.length;for(r.setStyle(l);S<k;S+=1)(C=_[S])&&C.displayValue!==w&&(p=f+C.radius*(3>=C.sides?.5:C.sides%2?1.1-1/C.sides:1),o.valuePadding=Math.max(o.valuePadding,p),this.isHorizontal?(C.isLabelString?(l=r.getSmartText(C.displayValue,a,i-f),C.displayValue=l.text,l.tooltext&&(C.originalText=l.tooltext)):l=r.getOriSize(C.displayValue)," "===C.displayValue&&(l={height:u}),0<l.height&&(g=l.height+p),g>i&&(g=i),o.pointerOnOpp?(3===n.axisPosition&&(b=Math.max(s,b),g=Math.max(s,g)),m=Math.max(m,g)):(1===n.axisPosition&&(y=Math.max(s,y),g=Math.max(s,g)),v=Math.max(g,v))):(C.isLabelString?(l=r.getSmartText(C.displayValue,e-f,c),C.displayValue=l.text,l.tooltext&&(C.originalText=l.tooltext)):l=r.getOriSize(C.displayValue),0<l.width&&(x=l.width+p),x>e&&(x=e),o.pointerOnOpp?2===n.axisPosition?(o.marginRight-=s,o.marginRight+=Math.max(s,x)):o.marginRight+=x:4===n.axisPosition?(o.marginLeft-=s,o.marginLeft+=Math.max(s,x)):o.marginLeft+=x),h.align=Ft);for(r.setStyle(d),S=0,k=t.length;S<k;S+=1)(C=t[S])&&C.displayValue!==w&&(p=f+.5*C.markerRadius,o.valuePadding=Math.max(p,o.valuePadding),this.isHorizontal&&(0<(l=r.getOriSize(C.displayValue)).height&&(g=l.height+p),g>i&&(g=i),C.showOnTop?(1===n.axisPosition&&(y=Math.max(s,y),g=Math.max(s,g)),v=Math.max(v,g)):(3===n.axisPosition&&(b=Math.max(s,b),g=Math.max(s,g)),m=Math.max(g,m)),h.align=Ft));
47return this.isHorizontal&&(o.marginBottom+=m-b,o.marginTop+=v-y,g=v+m-b-y),g},preSeriesAddition:function(t,e){var i=t.chart,n=e.chart,r=this.colorManager,o=t.scale;i.pointerRadius=A(n.pointerradius,10),i.pointerBgColor=S(n.pointerbgcolor,n.pointercolor,r.getColor("pointerBgColor")),i.pointerBgAlpha=A(n.pointerbgalpha,100),i.pointerBorderColor=S(n.pointerbordercolor,r.getColor("pointerBorderColor")),i.pointerBorderThickness=A(n.pointerborderthickness,1),i.pointerBorderAlpha=A(n.pointerborderalpha,100),i.pointerSides=A(n.pointersides,3),i.showGaugeLabels=A(n.showgaugelabels,1),i.showPointerShadow=A(n.showpointershadow,n.showshadow,1),i.valuePadding=A(n.valuepadding,2),this.isHorizontal?(i.pointerOnOpp=A(n.pointerontop,1==o.axisPosition?0:1)?0:1,i.gaugeType=o.reverseScale?2:1,i.valueAbovePointer=A(n.valueabovepointer,i.pointerOnOpp?0:1,1),i.valueInsideGauge=i.valueAbovePointer===i.pointerOnOpp?1:0):(i.pointerOnOpp=A(n.pointeronright,2==o.axisPosition?0:1),i.gaugeType=o.reverseScale?4:3)},getPointStub:function(t,e,i,n,r){var o=this.numberFormatter,a=this.colorManager,s=i.chart,l=i[D];i=o.getCleanValue(t.value);var c=k(t.link),h=k(J(S(t.tooltext,l.tooltext))),d=k(J(t.displayvalue)),u=o.dataLabels(i);o=this.colorRangeGetter.getColorObj(i);n=n.chart;l=A(t.alpha,t.bgalpha,s.pointerBgAlpha);var p,f,g,m,v,b,y,x,_,C,T=S(t.color,t.bgcolor,s.pointerBgColor),L=j(T,l),E=A(t.showborder,n.showplotborder,1),P=A(t.borderalpha,s.pointerBorderAlpha),I=S(t.bordercolor,s.pointerBorderColor),M=j(I,P),O=E?A(t.borderthickness,s.pointerBorderThickness):0,F=A(t.radius,s.pointerRadius),R=A(t.showhovereffect,n.showhovereffect),B=!1,N=!1;return this.showTooltip?void 0!==h?(r=z(h,[1,2],{formattedValue:u},t,n),N=!0):r=null!==u&&(void 0!==r?r+this.tooltipSepChar+u:u):r=w,A(t.showvalue,this.showValues)?void 0!==d?(h=d,B=!0):h=k(u," "):h=w,u=S(d,u,w),3>(d=A(t.sides,s.pointerSides))&&(d=3),this.pointValueWatcher&&this.pointValueWatcher(i),0!==R&&(R||t.bghovercolor||n.pointerbghovercolor||n.plotfillhovercolor||t.bghoveralpha||n.pointerbghoveralpha||n.plotfillhoveralpha||0===t.bghoveralpha||0===n.pointerbghoveralpha||t.showborderonhover||n.showborderonhover||0===t.showborderonhover||0===n.showborderonhover||t.borderhoverthickness||n.pointerborderhoverthickness||0===t.borderhoverthickness||0===n.pointerborderhoverthickness||t.borderhovercolor||n.pointerborderhovercolor||t.borderhoveralpha||n.pointerborderhoveralpha||0===t.borderhoveralpha||0===n.pointerborderhoveralpha||t.hoverradius||n.pointerhoverradius||0===t.hoverradius||0===n.pointerhoverradius)&&(R=!0,g=S(t.bghovercolor,n.pointerbghovercolor,n.plotfillhovercolor,"{dark-10}"),m=A(t.bghoveralpha,n.pointerbghoveralpha,n.plotfillhoveralpha),void 0===(p=A(t.showborderonhover,n.showborderonhover))&&(p=t.borderhoverthickness||0===t.borderhoverthickness||t.borderhovercolor||t.borderhoveralpha||0===t.borderhoveralpha?1:E),E=S(t.borderhovercolor,n.pointerborderhovercolor,"{dark-10}"),b=A(t.borderhoveralpha,n.pointerborderhoveralpha),v=p?A(t.borderhoverthickness,n.pointerborderhoverthickness,O||1):0,f=A(t.hoverradius,n.pointerhoverradius,F+2),y=!!A(t.showhoveranimation,n.showhoveranimation,1),p={},_={},O!==v&&(p["stroke-width"]=v,_["stroke-width"]=O),_.fill=L,g=/\{/.test(g)?a.parseColorMix(T,g)[0]:g,p.fill=j(g,A(m,l)),v&&(_.stroke=M,T=/\{/.test(E),p.stroke=j(T?a.parseColorMix(I,E)[0]:E,A(b,P))),f&&(y?(x={r:f},C={r:F}):(p.r=f,_.r=F))),{y:i,displayValue:h,displayValueArgs:u,id:S(t.id,"pointer_"+e),editMode:A(t.editmode,n.editmode),isLabelString:B,isTooltextString:N,toolText:r,_tooltext:t.tooltext,plotFillPercent:S(n.plotfillpercent,40),bgalpha:l,color:L,borderAlpha:A(n.showplotborder,1)?s.pointerBorderAlpha:0,borderColor:M,borderWidth:O,radius:F,sides:d,link:c,colorRange:o,doNotSlice:!0,tooltipConstraint:this.tooltipConstraint,rolloverProperties:{enabled:R,hoverAttr:p,hoverAnimAttr:x,outAttr:_,outAnimAttr:C}}}},W.linearscalegauge),W("hlineargauge",{friendlyName:"Horizontal Linear Gauge",creditLabel:Q,defaultSeriesType:"lineargauge",rendererId:"hlinear",standaloneInit:!0,isHorizontal:!0},W.lineargauge),W("vlineargauge",{friendlyName:"Vertical Linear Gauge",creditLabel:Q,defaultSeriesType:"lineargauge",connectTickMarks:0,standaloneInit:!0},W.lineargauge),W("thermometer",{friendlyName:"Thermometer Gauge",creditLabel:Q,defaultSeriesType:"thermometer",rendererId:"thermometer",connectTickMarks:0,tickMarkDistance:0,standaloneInit:!0,realtimeEnabled:!0,isDataLabelBold:!0,defaultPlotShadow:0,alignCaptionWithCanvas:0,defaultPaletteOptions:Tt(E({},bt),{thmBorderColor:["545454","60634E","415D6F","845001","68001B"],thmFillColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),preSeriesAddition:function(t,e){var i,n=t.chart,r=e.chart,o=this.colorManager;i=this.numberFormatter;var a=A(r.showhovereffect);n.thmOriginX=A(r.thmoriginx,r.gaugeoriginx),n.thmOriginY=A(r.thmoriginy,r.gaugeoriginy),n.thmBulbRadius=A(i.getCleanValue(r.thmbulbradius,!0)),n.thmHeight=A(i.getCleanValue(A(r.thmheight,r.gaugeheight),!0)),n.gaugeFillColor=S(r.gaugefillcolor,r.thmfillcolor,o.getColor("thmFillColor")),n.gaugeFillAlpha=A(r.gaugefillalpha,r.thmfillalpha,Vt),0!==a&&(a||r.thmfillhovercolor||r.plotfillhovercolor||r.thmfillhoveralpha||r.plotfillhoveralpha||0===r.thmfillhoveralpha)&&
47(n.plotHoverEffects={},n.plotHoverEffects.enabled=!0,i=S(r.thmfillhovercolor,r.plotfillhovercolor,"{dark-10}"),n.plotHoverEffects.thmFillHoverColor=/\{/.test(i)?o.parseColorMix(n.gaugeFillColor,i)[0]:i,n.plotHoverEffects.thmFillHoverAlpha=S(r.thmfillhoveralpha,r.plotfillhoveralpha,n.gaugeFillAlpha)),i=A(r.showgaugeborder,1)?A(r.gaugeborderalpha,40):0,n.gaugeBorderColor=j(S(r.gaugebordercolor,o.getColor("thmBorderColor")),i),n.gaugeBorderThickness=A(r.gaugeborderthickness,1),n.thmGlassColor=S(r.thmglasscolor,N(n.gaugeFillColor,30)),n.use3DLighting=!A(r.use3dlighting,1)},getPointColorObj:function(t){return{code:S(t.gaugefillcolor,t.thmfillcolor,this.colorManager.getColor("thmFillColor")),alpha:A(t.gaugefillalpha,t.thmfillalpha,100)}},getPointStub:W.linearscalegauge,placeDataLabels:W.linearscalegauge,manageTitleSpace:W.linearscalegauge,spaceManager:function(t,e,i,n){var r=t.chart,o=i-(r.marginRight+r.marginLeft);n-=r.marginTop+r.marginBottom;var a,s,l=r.marginRight,c=r.marginLeft,h=r.marginTop,d=r.marginBottom,u=.3*o,p=.3*n,f=r.thmOriginX,g=r.thmOriginY,m=r.thmBulbRadius,v=r.thmHeight,b=Et(f),y=Et(g),x=Et(m),w=Et(v),_=4===t.scale.axisPosition,C=0,S=0,k=0;t.title.alignWithCanvas||(n-=k=this.manageTitleSpace(t,e,0,n/2)),this.placeTickMark&&(o-=C=this.placeTickMark(t,2*A(m,4),p)),x||(r.thmBulbRadius=m=Math.min(o/2,.13*A(v,n)),x=!0),x&&(u=a=2*(s=.643*m),x=(2*m-a)/2,b?r.marginLeft=_?r.marginLeft+(S=f-s-C):r.marginLeft+(S=f-s):_?(r.marginLeft+=(i-c-l-x-a)/2-C/2,r.marginRight-=(i-c-l-x-a)/2-C/2,r.marginRight+=S=Math.min(m,o/2)-s):(r.marginLeft+=(i-c-l-x-a)/2-C/2,r.marginRight-=(i-c-l-x-a)/2-C/2,r.marginLeft+=S=Math.min(m,o/2)-s),o-=S),r.marginRight+=o-a,t.title.alignWithCanvas&&(n-=k=this.manageTitleSpace(t,e,0,n/2)),y&&(p=g-k+m),this.placeDataLabels&&(n-=this.placeDataLabels(t,u,p,h,l,d,c)),w||(r.thmHeight=v=y?Math.max(g-k+m-s,3*m):Math.max(n-s,3*m)),r.marginTop=y?r.marginTop+(g-k+m-v):r.marginTop+(n-v),e=1.766*m,r.marginBottom+=e,r.valuePadding+=e,r.thmHeight=r.plotHeight=v-e,this.postDataLabelsPlacement&&this.postDataLabelsPlacement(t,u,p),r.marginBottom+=y?n-g-m+k:0}},W.gaugebase),W("cylinder",{friendlyName:"Cylinder Gauge",creditLabel:Q,defaultSeriesType:"cylinder",connectTickMarks:0,rendererId:"cylinder",tickMarkDistance:2,standaloneInit:!0,charttopmargin:10,chartbottommargin:10,chartrightmargin:10,chartleftmargin:10,isDataLabelBold:!0,realtimeEnabled:!0,alignCaptionWithCanvas:0,defaultPaletteOptions:Tt(E({},bt),{cylFillColor:["CCCCCC","ADB68F","E1F5FF","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]}),preSeriesAddition:function(t,e){var i=t.chart,n=e.chart,r=this.colorManager,o=A(n.showhovereffect);i.cylFillColor=S(n.gaugefillcolor,n.cylfillcolor,r.getColor("cylFillColor")),i.cylFillAlpha=S(n.gaugefillalpha,n.cylfillalpha,100),0!==o&&(o||n.cylfillhovercolor||n.plotfillhovercolor||n.cylfillhoveralpha||n.plotfillhoveralpha||0===n.cylfillhoveralpha)&&(i.plotHoverEffects={},i.plotHoverEffects.enabled=!0,o=S(n.cylfillhovercolor,n.plotfillhovercolor,"{dark-10}"),i.plotHoverEffects.cylFillHoverColor=/\{/.test(o)?r.parseColorMix(i.cylFillColor,o)[0]:o,i.plotHoverEffects.cylFillHoverAlpha=S(n.cylfillhoveralpha,n.plotfillhoveralpha,i.cylFillAlpha)),i.cylGlassColor=S(n.cylglasscolor,"FFFFFF"),i.cyl3DLighting=A(n.use3dlighting,"1")},getPointColorObj:function(t){return{code:S(t.gaugefillcolor,t.thmfillcolor,this.colorManager.getColor("cylFillColor")),alpha:A(t.gaugefillalpha,t.thmfillalpha,100)}},getPointStub:W.linearscalegauge,placeDataLabels:W.linearscalegauge,manageTitleSpace:W.linearscalegauge,spaceManager:function(t,e,i,n){var r=t.chart,o=e.chart,a=i-(r.marginRight+r.marginLeft),s=n-(r.marginTop+r.marginBottom),l=r.marginRight,c=r.marginLeft,h=r.marginTop,d=r.marginBottom,u=.2*a,p=.3*s,f=A(o.cylyscale,30),g=this.scaleFactor,m=this.numberFormatter;t.title.alignWithCanvas||(s-=this.manageTitleSpace(t,e,a/2,s/2)),this.placeTickMark&&(a-=this.placeTickMark(t,u,p)),this.placeDataLabels&&(s-=this.placeDataLabels(t,u,p,h,l,d,c)+8,r.valuePadding+=8),this.postDataLabelsPlacement&&this.postDataLabelsPlacement(t,u,p),r.cylHeight=k(o.cylheight),(50<f||0>f)&&(f=30),r.cylYScale=f/=100,l=Math.max(st(a,1.2*s)/2,5),l=A(k(m.getCleanValue(o.cylradius,!0))*g,l),r.marginLeft=A(k(o.cyloriginx)*g,r.marginLeft),r.marginLeft+=a/2-l,r.marginRight=i-(r.marginLeft+2*l),t.title.alignWithCanvas&&(s-=this.manageTitleSpace(t,e,a/2,s/2)),t=s-l*f*2,m=A(k(m.getCleanValue(o.cylheight,!0))*g,t),f=r.yScaleRadius=l*f,s=s-(t=r.cylinderTotalHeight=2*f+m)+r.marginTop,r.marginTop=A(k(o.cyloriginy)*g-m,f+s),r.marginBottom=n-(r.marginTop+m),r.cylRadius=l,r.cylHeight=m,r.yScaleRadius=f}},W.gaugebase),W("angulargauge",{friendlyName:"Angular Gauge",standaloneInit:!0,drawAnnotations:!0,defaultSeriesType:"angulargauge",creditLabel:Q,rendererId:"angular",isAngular:!0,eiMethods:W.lineargauge.eiMethods,multiValueGauge:!0,realtimeEnabled:!0,defaultPaletteOptions:Tt(E({},bt),{dialColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],dialBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],pivotColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],pivotBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),subTitleFontSizeExtender:0,charttopmargin:5,chartrightmargin:5,chartbottommargin:5,chartleftmargin:5,defaultPlotShadow:1,gaugeBorderColor:"{dark-20}",gaugeBorderThickness:1,updateSnapPoints:function(t){W.gaugebase.updateSnapPoints.apply(this,arguments);var e=t.series[0],i=this.snapLiterals;i.gaugestartangle=t.chart.gaugeStartAngle/ut,i.gaugeendangle=t.chart.gaugeEndAngle/ut,i.chartcenterx=t.chart.origW/2,i.chartcentery=t.chart.origH/2,i.gaugecenterx=e.gaugeOriginX,i.gaugecentery=e.gaugeOriginY,i.gaugeinnerradiu
47s=e.gaugeInnerRadius,i.gaugeouterradius=e.gaugeOuterRadius,i.dial=function(e){var i=t.series[0],n=e[1]||e[0],r=(e=i.data[Number(e[0])||0])&&e.graphic;if(r){switch(r=r.matrix,n){case"startx":i=i.gaugeOriginX+r.x(-e.rearExtension,0);break;case"starty":i=i.gaugeOriginY+r.y(-e.rearExtension,0);break;case"endx":i=i.gaugeOriginX+r.x(e.radius,0);break;case"endy":i=i.gaugeOriginY+r.y(e.radius,0);break;default:i=0}return i}return 0}},preSeriesAddition:function(t,e){var i=e.chart,n=A(i.gaugescaleangle,180),r=A(i.gaugestartangle),o=(i=A(i.gaugeendangle),Et(r)),a=M?.001:.01,s=Et(i);(360<n||-360>n)&&(n=0<n?360:-360),(360<i||-360>i)&&(i%=360),(360<r||-360>r)&&(r%=360),o&&s?(360<(n=r-i)||-360>n)&&(i=r-(n%=360)):o?(360<(i=r-n)||-360>i)&&(r+=0<(i%=360)?-360:360):s?(360<(r=i+n)||-360>r)&&(i+=0<(r%=360)?-360:360):360===n?(r=180,i=-180):-360===n?i=r=-180:i=(r=90+n/2)-n,360===Math.abs(n)&&(i=r-(n+=0<n?-a:a)),i=360-i,(360<(r=360-r)||360<i)&&(r-=360,i-=360),t.chart.gaugeStartAngle=r*ut,t.chart.gaugeEndAngle=i*ut,t.chart.gaugeScaleAngle=-n*ut},series:function(t,e){var i,n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x,_,C,T,L,E,P,I,M,O,F,R,B={data:[],colorByPoint:!0},N=t.chart,$=this.colorRangeGetter,V=($=$&&$.colorArr)&&$.length,H=e[D],W=this.numberFormatter,q=this.colorManager,U=B.showValue=A(N.showvalue,N.showrealtimevalue,0),G=this.scaleFactor,Y=0,X=t.dials&&t.dials.dial,K=A(N.showhovereffect),Z=A(N.editmode,0);for(_=Y=A(k(N.pivotradius)*G,5),B.pivotRadius=_,C=0,F=0,(T=X&&X.length)||(C=-1,T=0,X=[]),0!==K&&(K||N.dialborderhovercolor||N.dialborderhoveralpha||0===N.dialborderhoveralpha||N.dialborderhoverthickness||0===N.dialborderhoverthickness||N.dialbghovercolor||N.plotfillhovercolor||N.dialbghoveralpha||N.plotfillhoveralpha||0===N.dialbghoveralpha)&&(K=1);C<T;C+=1)L=X[C]||{},i=W.getCleanValue(L.value),this.pointValueWatcher&&this.pointValueWatcher(i),E=A(L.rearextension,0),Y=Math.max(Y,E*G),r=W.dataLabels(i),P=k(r,w),M=A(L.showvalue,U),O=A(k(L.valuey)*G),I=!!S(L.tooltext,L.hovertext),M&&!Et(O)&&(F+=1),n=(n=k(J(S(L.tooltext,L.hovertext,H.tooltext))))?z(n,[1,2],{formattedValue:r},L,N):P,y=S(L.color,L.bgcolor,q.getColor("dialColor")),
48d=A(L.alpha,L.bgalpha,100),x=vt({FCcolor:{color:y,alpha:d,angle:90}}),o=S(L.bordercolor,q.getColor("dialBorderColor")),R=A(L.borderalpha,100),r=j(o,R),a=A(L.borderthickness,1),f=A(L.radius),g=A(L.basewidth),v=A(L.topwidth,0),m=A(L.baseradius,0),0!==(s=A(L.showhovereffect,K))&&(s||L.borderhovercolor||L.borderhoveralpha||0===L.borderhoveralpha||L.borderhoverthickness||0===L.borderhoverthickness||L.bghovercolor||L.bghoveralpha||0===L.bghoveralpha)&&(s=!0,b={},p={},l=S(L.borderhovercolor,N.dialborderhovercolor,"{dark-10}"),h=A(L.borderhoveralpha,N.dialborderhoveralpha,R),(c=A(L.borderhoverthickness,N.dialborderhoverthickness,a))&&(b.stroke=r,u=/\{/.test(l),p.stroke=j(u?q.parseColorMix(o,l)[0]:l,h)),c!==a&&(p["stroke-width"]=c,b["stroke-width"]=a),o=S(L.bghovercolor,N.dialbghovercolor,N.plotfillhovercolor,"{dark-10}"),d=A(L.bghoveralpha,N.dialbghoveralpha,N.plotfillhoveralpha,d),b.fill=x,o=(l=/\{/.test(o))?q.parseColorMix(y,o).join():o,l={FCcolor:{color:o,alpha:d,angle:90}},p.fill=vt(l)),B.data.push({rolloverProperties:{enabled:s,hasHoverSizeChange:void 0,hoverRadius:A(NaN*G),baseHoverWidth:A(NaN*G,1.6*_),topHoverWidth:A(NaN*G),rearHoverExtension:A(NaN*G),hoverFill:l,hoverAttr:p,outAttr:b},_tooltext:S(L.tooltext,L.hovertext),y:i,id:S(L.id,C),color:x,showValue:M,editMode:A(L.editmode,Z),borderColor:r,shadowAlpha:R,borderThickness:a,baseWidth:A(g*G,1.6*_),topWidth:A(v*G),baseRadius:A(m*G),rearExtension:E*G,valueX:A(k(L.valuex)*G),valueY:O,radius:A(f*G),link:S(L.link,w),isLabelString:I,toolText:n,displayValue:M?S(P," "):w,displayValueArgs:S(P,w),doNotSlice:!0});B.displayValueCount=F,B.compositPivotRadius=Y,e.series[0]=B,V&&this.pointValueWatcher&&A(N.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(B=A($[0].minvalue),Et(B)&&this.pointValueWatcher(B),B=A($[V-1].maxvalue),Et(B)&&this.pointValueWatcher(B))},postSeriesAddition:function(t,e){var i,n=e.chart,r=t.series[0],o=this.colorManager;r.valueBelowPivot=A(n.valuebelowpivot,0),r.gaugeFillMix=n.gaugefillmix,r.gaugeFillRatio=n.gaugefillratio,void 0===r.gaugeFillMix&&(r.gaugeFillMix="{light-10},{light-70},{dark-10}"),void 0===r.gaugeFillRatio?r.gaugeFillRatio=",6":""!==r.gaugeFillRatio&&(r.gaugeFillRatio=","+r.gaugeFillRatio),i=o.parseColorMix(S(n.pivotfillcolor,n.pivotcolor,n.pivotbgcolor,o.getColor("pivotColor")),S(n.pivotfillmix,"{light-10},{light-30},{dark-20}")),r.pivotFillAlpha=o.parseAlphaList(S(n.pivotfillalpha,Vt),i.length),r.pivotFillRatio=o.parseRatioList(S(n.pivotfillratio,G),i.length),r.pivotFillColor=i.join(),r.pivotFillAngle=A(n.pivotfillangle,0),r.isRadialGradient="radial"==S(n.pivotfilltype,"radial").toLowerCase(),r.showPivotBorder=A(n.showpivotborder,0),r.pivotBorderThickness=A(n.pivotborderthickness,1),r.pivotBorderColor=j(S(n.pivotbordercolor,o.getColor("pivotBorderColor")),1==r.showPivotBorder?S(n.pivotborderalpha,Vt):G),this.parseColorMix=o.parseColorMix,this.parseAlphaList=o.parseAlphaList,this.parseRatioList=o.parseRatioList}
48,spaceManager:function(t,e,i,n){var r,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C,S,T,L,D,E,P,I,O,F,R,B,N,j,$,V,H,W,z,q,U,G=t.chart,Y=e.chart,X=t.scale,J=t.series[0],K=J.displayValueCount,Z=X.tickValues.style,Q=A(parseInt(Z.lineHeight,10),12),tt=A(parseInt(Z.fontSize,10),10),et=.8*tt,it=.1*Q,nt=M?0:.1*Q,rt=A(parseInt(t.plotOptions.series.dataLabels.style.lineHeight,10),12),ot=i-(G.marginRight+G.marginLeft),at=n-(G.marginTop+G.marginBottom),st=this.scaleFactor,lt=J.compositPivotRadius,ct=G.gaugeStartAngle,ht=G.gaugeEndAngle,dt=K*rt+2+J.pivotRadius,pt=0,ft=J.valueBelowPivot;a=/^\d+\%$/.test(Y.gaugeinnerradius)?parseInt(Y.gaugeinnerradius,10)/100:.7,at-=this.titleSpaceManager(t,e,ot,at/2),ft||(pt=dt,dt=0),J.gaugeOuterRadius=A(Math.abs(k(Y.gaugeouterradius)*st)),J.gaugeInnerRadius=A(Math.abs(k(Y.gaugeinnerradius)*st),J.gaugeOuterRadius*a);var gt,mt,vt,bt,yt,xt,wt,_t,Ct,St,kt,At,Tt,Lt,Dt,Pt=G.gaugeStartAngle,It=G.gaugeEndAngle,Mt=at,Ot=J.gaugeOuterRadius,Rt=A(k(Y.gaugeoriginx)*st-G.marginLeft),Bt=A(k(Y.gaugeoriginy)*st-G.marginTop),$t=Math.max(lt,tt),Vt=dt,Ht=pt,Wt=Et(Ot),zt=Et(Rt),qt=Et(Bt),Ut=2*Math.PI,Gt=Math.PI,Yt=Math.PI/2,Xt=Gt+Yt,Jt=Rt,Kt=Bt,Zt=!1,Qt=Pt%Ut;if(0>Qt&&(Qt+=Ut),($t=$t||0)&&$t<ot/2&&$t<Mt/2&&(Zt=!0),Vt>Mt/2&&(Vt=Mt/2),Ht>Mt/2&&(Ht=Mt/2),wt=Math.cos(Pt),_t=Math.sin(Pt),Ct=Math.cos(It),St=Math.sin(It),vt=Math.min(wt,Ct,0),yt=Math.max(wt,Ct,0),bt=Math.min(_t,St,0),xt=Math.max(_t,St,0),Wt&&zt&&qt||(((At=Qt+(Dt=It-Pt))>Ut||0>At)&&(yt=1),0<Dt?((Qt<Yt&&At>Yt||At>Ut+Yt)&&(xt=1),(Qt<Gt&&At>Gt||At>Ut+Gt)&&(vt=-1),(Qt<Xt&&At>Xt||At>Ut+Xt)&&(bt=-1)):((Qt>Yt&&At<Yt||At<-Xt)&&(xt=1),(Qt>Gt&&At<Gt||At<-Gt)&&(vt=-1),(Qt>Xt&&At<Xt||At<-Yt)&&(bt=-1)),zt?Wt||(Tt=ot-Rt,Lt=-Rt,gt=vt?Math.min(Tt/yt,Lt/vt):Tt/yt):(Rt=-(kt=ot/(yt-vt))*vt,gt=kt,Zt&&(ot-Rt<$t?(Tt=ot-(Rt=ot-$t),Lt=-Rt,gt=vt?Math.min(Tt/yt,Lt/vt):Tt/yt):Rt<$t&&(Tt=ot-(Rt=$t),Lt=-Rt,gt=vt?Math.min(Tt/yt,Lt/vt):Tt/yt)),Jt=Rt),qt?Wt||(Tt=Mt-Bt,Lt=-Bt,gt=Math.min(gt,bt?Math.min(Tt/xt,Lt/bt):Tt/xt)):(Bt=-(kt=Mt/(xt-bt))*bt,Zt&&(Mt-Bt<$t?(Tt=Mt-(Bt=Mt-$t),Lt=-Bt,gt=Math.min(gt,bt?Math.min(Tt/xt,Lt/bt):Tt/xt)):Bt<$t&&(Tt=Mt-(Bt=$t),Lt=-Bt,gt=Math.min(gt,bt?Math.min(Tt/xt,Lt/bt):Tt/xt))),Mt-Bt<Vt?(Tt=Mt-(Bt=Mt-Vt),Lt=-Bt,gt=Math.min(gt,bt?Math.min(Tt/xt,Lt/bt):Tt/xt)):Bt<Ht&&(Tt=Mt-(Bt=Ht),Lt=-Bt,gt=Math.min(gt,bt?Math.min(Tt/xt,Lt/bt):Tt/xt)),gt=Math.min(gt,kt),Kt=Bt),0>=(mt=gt)&&(mt=Math.min(ot/2,Mt/2))),r=J.gaugeOriginX=Jt,o=J.gaugeOriginY=Kt,l=0,c=(s=X.majorTM).length,d=t.labels.smartLabel,v=X.min,b=X.max-X.min,C=ot-r,S=at-o,T=X.placeValuesInside,D=-(L=Math.cos(89.98*ut)),E=Et(J.gaugeOuterRadius),P=X.tickValueDistance,I=X.showTickValues,O=X.showLimits,F=A(J.gaugeOuterRadius,mt),R=A(J.gaugeInnerRadius,F*a),B=F,N=.2*F,z=1.5*Q,U=(ht-ct)/b,I||O)for(T?R>P+Q?j=R-P:(j=R,P=0):(B+=P,E||(N+=P)),d.setStyle(Z);l<c;l+=1)q=ct+((m=s[l]).value-v)*U,y=Math.cos(q),x=Math.sin(q),h=m.displayValue,p=(u=d.getOriSize(h)).width,g=(f=u.height)/2,0<p&&0<f&&(m.x=0,T?(m.align=y>L?Nt:y<D?jt:Ft,m.isString&&(w=j*y,($=Math.abs(w))<p&&(u=d.getSmartText(h,Math.max($,Q),z),m.displayValue=u.text,u.tooltext&&(m.originalText=u.tooltext),g=(f=u.height)/2)),y>L||y<D?(m.y=tt-g+nt,m.y-=.4*f*x):m.y=et-(0>x?0:f-it)):(m.align=y>L?jt:y<D?Nt:Ft,w=B*y,_=B*x,E||(0<_?S<_+(W=g+g*x)&&(_=S-W,B=Math.max(_/x,N)):0>_&&(o<-_+(W=g-g*x)&&(_=W-o,B=Math.max(_/x,N)))),y>L?(w+p>C&&(E?m.isString&&(u=d.getSmartText(h,C-w,z),m.displayValue=u.text,u.tooltext&&(m.originalText=u.tooltext),g=(f=u.height)/2):(w=C-p,w=(B=Math.max(w/y,N))*y,m.isString&&w+p>C&&(u=d.getSmartText(h,C-w,z),m.displayValue=u.text,u.tooltext&&(m.originalText=u.tooltext),g=(f=u.height)/2,w=C-(p=u.width),B=Math.max(w/y,N)))),m.y=tt-g+nt+.4*f*x):y<D?(p-w>r&&(E?m.isString&&(u=d.getSmartText(h,r+w,z),m.displayValue=u.text,u.tooltext&&(m.originalText=u.tooltext),g=(f=u.height)/2):(w=p-r,w=(B=Math.max(w/y,N))*y,m.isString&&p-w>r&&(u=d.getSmartText(h,r+w,z),m.displayValue=u.text,u.tooltext&&(m.originalText=u.tooltext),p=u.width,g=(f=u.height)/2,w=p-r,B=Math.max(w/y,N)))),m.y=tt-g+nt+.4*f*x):(0<x?(V=S,H=f+_):(V=o,H=f-_),E?(m.isString&&H>V||p>ot)&&(u=d.getSmartText(h,ot,Math.max(f-H+V,Q)),m.displayValue=u.text,u.tooltext&&(m.originalText=u.tooltext),f=u.height):(H>V&&(H=f+(B=Math.max(V-f,N))),(m.isString&&H>V||p>ot)&&(u=d.getSmartText(h,ot,Math.max(V-N,Q)),m.displayValue=u.text,u.tooltext&&(m.originalText=u.tooltext),f=u.height,B=Math.max(V-f,N))),m.y=et-(0<x?0:f-it))));E||(J.gaugeOuterRadius=T?B:B-P,0>=J.gaugeOuterRadius&&(J.gaugeOuterRadius=Math.abs(N))),J.gaugeInnerRadius=A(J.gaugeInnerRadius,J.gaugeOuterRadius*a)}},W.gaugebase),W("bulb",{friendlyName:"Bulb Gauge",defaultSeriesType:"bulb",defaultPlotShadow:1,standaloneInit:!0,drawAnnotations:!0,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isDataLabelBold:!0,rendererId:"bulb",preSeriesAddition:function(t){(t=t.chart).colorRangeGetter=this.colorRangeGetter,t.defaultColors=this.colorManager.getPlotColor(0),t.defaultColLen=t.defaultColors.length}
48,getPointColor:function(t,e,i){return i?{FCcolor:{cx:.4,cy:.4,r:"80%",color:N(t,65)+U+N(t,75)+U+B(t,65),alpha:e+U+e+U+e,ratio:"0,30,70",radialGradient:!0}}:j(t,e)},getPointStub:function(t,e,i,n,r){var o=i.chart,a=i[D];e=n.chart,n=(i=this.numberFormatter).getCleanValue(t.value);var s=i.dataLabels(n);i=k(t.link);var l,c,h,d,u,p,f,g,m=k(J(S(t.tooltext,a.tooltext))),v=k(J(t.displayvalue)),b=(a=this.colorRangeGetter.getColorObj(n),o.useColorNameAsValue=A(e.usecolornameasvalue,0)),y=a.colorObj||a.prevObj||a.nextObj||{},x=this.colorManager,w=J(S(y.label,y.name)),_=S(e.gaugefillalpha,y.alpha,Vt),C=S(y.bordercolor,e.gaugebordercolor,B(y.code,70)),T=A(y.borderalpha,e.gaugeborderalpha,"90")*_/100,L=A(e.showgaugeborder,0),E=L?A(e.gaugeborderthickness,1):0,P=o.is3D=A(e.is3d,1),I=this.getPointColor(y.code,_,P),M=A(e.showhovereffect);return a.isOnMeetPoint&&(y=a.nextObj),o.gaugeFillAlpha=_,C=(f=/\{/.test(C))?x.parseColorMix(S(y.bordercolor,y.code),C)[0]:C,o=j(C,T),0!==M&&(M||e.gaugefillhovercolor||e.plotfillhovercolor||e.gaugefillhoveralpha||e.plotfillhoveralpha||0===e.gaugefillhoveralpha||e.is3donhover||0===e.is3donhover||e.showgaugeborderonhover||0===e.showgaugeborderonhover||e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness)&&(M=!0,l=S(e.gaugefillhovercolor,e.plotfillhovercolor,"{dark-10}"),c=A(e.gaugefillhoveralpha,e.plotfillhoveralpha),void 0===(h=A(e.showgaugeborderonhover))&&(h=e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness?1:L),L=S(e.gaugeborderhovercolor,"{dark-10}"),u=A(e.gaugeborderhoveralpha),d=h?A(e.gaugeborderhoverthickness,E||1):0,P=!!A(e.is3donhover,P),A(e.showhoveranimation,1),h={},g={},E!==d&&(h["stroke-width"]=d,g["stroke-width"]=E),g.fill=vt(I),l=/\{/.test(l)?x.parseColorMix(y.code,l)[0]:S(l,y.code),h.fill=vt(this.getPointColor(l,A(c,_),P)),d&&(g.stroke=o,y=/\{/.test(L),h.stroke=j(y?x.parseColorMix(f?l:C,L)[0]:L,A(u,T)))),this.showTooltip?void 0!==m?(t=z(m,[1,2],{formattedValue:s},t,e),p=!0):t=b?w:null!==s&&(void 0!==r?r+this.tooltipSepChar+s:s):t=!1,r=void 0!==v?v:b?w:s,this.pointValueWatcher&&this.pointValueWatcher(n),{y:n,displayValue:r,displayValueArgs:r,toolText:t,isLabelString:p,colorName:w,color:I,borderWidth:E,borderColor:o,colorRange:a,link:i,doNotSlice:!0,rolloverProperties:{enabled:M,hoverAttr:h,hoverAnimAttr:void 0,outAttr:g}}},spaceManager:function(t,e,i,n){var r=this.smartLabel,o=(a=t.series[0])&&a.data[0],a=t.chart,s=e.chart,l=a.scaleFactor=this.scaleFactor;i-=a.marginRight+a.marginLeft,n-=a.marginTop+a.marginBottom;var c,h,d=a.marginLeft,u=a.marginTop,p=A(s.valuepadding,4),f=a.useColorNameAsValue,g=0;o.y=k(o.y,t.scale.min),o.displayValue=this.showValues?k(o.displayValue,this.numberFormatter.dataLabels(t.scale.min)):w,h=o.displayValue,a.gaugeOriginX=A(s.gaugeoriginx,s.bulboriginx,-1),a.gaugeOriginY=A(s.gaugeoriginy,s.bulboriginy,-1),a.gaugeRadius=A(s.gaugeradius,s.bulbradius,-1),s=-1!==a.gaugeRadius,n-=e=this.titleSpaceManager(t,e,i,.3*n),u+=e,a.dataLabels={style:t.plotOptions.series.dataLabels.style},e=a.dataLabels.style,r.setStyle(e),1==a.placeValuesInside?(t=s?a.gaugeRadius*l:Math.min(i,n)/2,c=Math.sqrt(ht(2*t,2)/2),r=r.getSmartText(h,c,c)):(c=(s?n-2*a.gaugeRadius*l:.7*n)-p,g=(r=r.getSmartText(h,i,c)).height+p,t=Math.min(i,n-g)/2),f&&(o.displayValue=r.text,r.tooltext&&(o.originalText=r.tooltext)),a.valuePadding=p,a.valueTextHeight=r.height,a.labelLineHeight=parseInt(e.lineHeight,10),t=s?a.gaugeRadius*l:t,r=-1===a.gaugeOriginX?d+i/2:a.gaugeOriginX*l,l=-1===a.gaugeOriginY?u+(n-g)/2:a.gaugeOriginY*l,a.marginTop=a.marginLeft=0,a.gaugeRadius=t,a.gaugeOriginX=r,a.gaugeOriginY=l},updateSnapPoints:function(t){W.gaugebase.updateSnapPoints.apply(this,arguments),this.snapLiterals.gaugeradius=t.chart.gaugeRadius}},W.gaugebase),W("drawingpad",{friendlyName:"DrawingPad Component",standaloneInit:!0,defaultSeriesType:"drawingpad",rendererId:"drawingpad",defaultPlotShadow:1,drawAnnotations:!0,chartleftmargin:0,charttopmargin:0,chartrightmargin:0,chartbottommargin:0,chart:function(){return E(this.dataObj.chart,{bgcolor:this.dataObj.chart.bgcolor||"#ffffff",bgalpha:this.dataObj.chart.bgalpha||"100"}),this.base.chart.apply(this,arguments)},series:function(){E(this.hcJSON,{legend:{enabled:!1}
48,chart:{plotBackgroundColor:H,plotBorderColor:H},series:[{data:[]}]})},spaceManager:function(){},creditLabel:Q},W.bulb),W("funnel",{friendlyName:"Funnel Chart",standaloneInit:!0,defaultSeriesType:"funnel",sliceOnLegendClick:!0,defaultPlotShadow:1,subTitleFontSizeExtender:0,tooltippadding:3,drawAnnotations:!0,isDataLabelBold:!1,formatnumberscale:1,rendererId:"funnel",alignCaptionWithCanvas:0,defaultPaletteOptions:Tt(E({},bt),{paletteColors:y.defaultPaletteOptions.paletteColors}),preSeriesAddition:function(t,e){var i=e.chart,n=this.colorManager,r=t.plotOptions.series.dataLabels;r.connectorWidth=A(i.smartlinethickness,1),r.connectorColor=j(S(i.smartlinecolor,n.getColor("baseFontColor")),A(i.smartlinealpha,100)),A(i.showlegend,0)?(t.legend.enabled=!0,t.legend.reversed=!Boolean(A(i.reverselegend,0))):t.legend.enabled=!1,t.plotOptions.series.point.events.legendItemClick=i.interactivelegend===G?O:function(){this.slice()}},series:function(t,e,i){t.data&&0<t.data.length&&(t=this.point(i,{data:[],colorByPoint:!0,showInLegend:!0},t.data,t.chart,e))&&e.series.push(t)},pointHoverOptions:function(t,e,i){var n=A(t.showhovereffect,e.showhovereffect),r={enabled:n},o={};if(void 0===n&&(n=r.enabled=void 0!==S(t.hovercolor,e.plotfillhovercolor,t.hoveralpha,e.plotfillhoveralpha,t.borderhovercolor,e.plotborderhovercolor,t.borderhoverthickness,e.plotborderhoverthickness,t.borderhoveralpha,e.plotborderhoveralpha)),n){if(r.highlight=A(t.highlightonhover,e.highlightonhover),r.color=S(t.hovercolor,e.plotfillhovercolor),r.alpha=S(t.hoveralpha,e.plotfillhoveralpha,i.alpha),r.borderColor=S(t.borderhovercolor,e.plotborderhovercolor,i.borderColor),r.borderThickness=A(t.borderhoverthickness,e.plotborderhoverthickness,i.borderWidth),r.borderAlpha=S(t.borderhoveralpha,e.plotborderhoveralpha,i.borderAlpha),0!==r.highlight&&void 0===r.color&&(r.highlight=1),r.color=S(r.color,i.color).replace(/,+?$/,w),1===r.highlight){for(e=(t=r.color.split(/\s{0,},\s{0,}/)).length,i=0;i<e;i+=1)t[i]=N(t[i],70);r.color=t.join(",")}o={color:r.color,alpha:r.alpha,borderColor:j(r.borderColor,r.borderAlpha),borderWidth:r.borderThickness}}return{enabled:n,options:r,rolloverOptions:o}},point:function(t,e,i,n,r){t=r[D];var o,a,s,l,c,h,d,u,p,f,g,m,v,b,x,_,C,T=0,L=w,E=[],P=S(n.plotborderthickness,Y),I=!0,M=!1,O=w,F=r.chart,R=this.isPyramid,B=A(n.showpercentintooltip,1),$=A(n.showlabels,1),V=A(n.showvalues,1),H=A(n.showpercentvalues,n.showpercentagevalues,0),q=S(n.tooltipsepchar,n.hovercapsepchar,Wt),X=S(n.labelsepchar,q),K=S(n.plotbordercolor,n.piebordercolor),Z=this.smartLabel,Q=this.numberFormatter,tt=i.length,et=this.colorManager,it=(F=F.issliced=A(n.issliced,0),0),nt=A(n.showvalueinlegend,0),rt=A(n.showlabelinlegend,1),ot=A(n.valuebeforelabelinlegend,0),at=A(n.showvalueaspercentinlegend,1),st=S(n.legendsepchar,", "),lt=r.plotOptions.series.dataLabels.style,ct={apply:n.showshadow==Y,opacity:1};for(e.isPyramid=R,b=e.streamlinedData=A(n.streamlineddata,1),e.is2d=A(n.is2d,0),e.use3DLighting=1===A(n.use3dlighting,1),e.isHollow=A(n.ishollow,b?1:0),m=A(n.percentofprevious,0),g=A(this.isPyramid?n.pyramidyscale:n.funnelyscale),e.labelDistance=Math.abs(A(n.labeldistance,n.nametbdistance,50)),e.showLabelsAtCenter=A(n.showlabelsatcenter,0),e.yScale=0<=g&&40>=g?g/200:.2,$||V||(r.plotOptions.series.dataLabels.enabled=!1,!1===r.tooltip.enabled&&(I=!1)),e.useSameSlantAngle=A(n.usesameslantangle,b?0:1),r=0;r<tt;r+=1)a=i[r],i[r].vline||(a.cleanValue=g=Q.getCleanValue(a.value,!0),null!==g&&(M=!0,_=_||g,E.push(a),T+=g,_=Math.max(_,g)));if(M){for(e.valueSum=T,i=Q.dataLabels(T),tt=E.length,!R&&b&&E.sort((function(t,e){return e.cleanValue-t.cleanValue})),R||b||e.data.push({showInLegend:!1,y:T,name:"",shadow:ct,smartTextObj:o,color:s,alpha:l,borderColor:j(c,h),borderWidth:P,link:k(a.link),style:y.parsexAxisStyles(a,{},n,lt,s),displayValue:w,doNotSlice:0===A(n.enableslicing,1)}),r=0;r<E.length;r+=1)M=(a=E[r]).cleanValue,v=r?E[r-1].value:M,tt=J(S(a.label,a.name,w)),o=Z.getOriSize(tt),s=r&&!R&&b?r-1:r,s=S(a.color,et.getPlotColor(s)),l=S(a.alpha,n.plotfillalpha,Vt),c=S(a.bordercolor,K,N(s,25)).split(U)[0],h=1!=n.showplotborder?G:S(a.borderalpha,n.plotborderalpha,n.pieborderalpha,"80"),ct.opacity=Math.max(l,h)/100,(g=A(a.issliced,F))&&(it+=1,t.preSliced=g),x=R||!b?T:m?v:_,I&&(u=Q.percentValue(M/x*100),p=Q.dataLabels(M)||w,d=1===$?tt:w,L=1===A(a.showvalue,V)?1===H?u:p:w,f=k(J(a.displayvalue)),C=S(f,tt+X+(H?u:p),w),L=f||(L!==w&&d!==w?d+X+L:S(d,L)||w),b&&(O=m?u:Q.percentValue(M/v*100)),void 0!==(d=k(J(S(a.tooltext,t.tooltext))))?d=z(d,[1,2,3,7,14,24,25,37],{formattedValue:p,label:tt,percentValue:m?Q.percentValue(M/_*100):u,sum:i,unformattedSum:T,percentOfPrevValue:O}
48,a,n):(d=1===B?u:p,d=tt!==w?tt+q+d:d)),v=rt?tt:w,nt&&(x=at?Q.legendPercentValue(M/x*100):Q.legendValue(M),v=ot?x+(v&&st+v):(v&&v+st)+x),x=this.pointHoverOptions(a,n,{color:s,alpha:l,borderColor:c,borderAlpha:h,borderWidth:P}),o={displayValue:L,displayValueArgs:C,style:y.parsexAxisStyles(a,{},n,lt,s),categoryLabel:tt,toolText:d,legendCosmetics:W.singleseries.parseLegendOptions(n,a),showInLegend:v!==w,y:M,name:v,shadow:ct,smartTextObj:o,color:s,alpha:l,borderColor:j(c,h),borderWidth:P,link:k(a.link),isSliced:g,doNotSlice:0===A(n.enableslicing,1),tooltipConstraint:this.tooltipConstraint,hoverEffects:x.enabled&&x.options,rolloverProperties:x.enabled&&x.rolloverOptions},r||R||!b||(o.showInLegend=!1),e.data.push(o);return T||(e.data=[]),e.labelMaxWidth=0,e.noOFSlicedElement=it,e}return null},spaceManager:function(t,e,i,n){var r=this.smartLabel,o=e.chart,a=t.chart,s=S(o.legendposition,Bt).toLowerCase(),l=i-(a.marginRight+a.marginLeft);n-=a.marginTop+a.marginBottom;var c,h,d,u,p,f,g,m,v,b,y,x,w,_,C,k,T,L,D,E,P,I,M,O=this.isPyramid,F=0,R=0,B=t.series[0],N=a.marginLeft;if(B){for(d=this._tempSnap={top3DSpace:0,bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0},t.legend.enabled&&(s===Nt?l-=this.placeLegendBlockRight(t,e,l/2,n,!0):n-=this.placeLegendBlockBottom(t,e,l,n/2,!0)),h=.1*n,h=(c=A(o.slicingdistance,h))>2*h?0:c,o=Math.min(2*(n-h),l),a.marginTop+=h/2,a.marginBottom+=h/2,B.SlicingDistance=c,v=(R=B.data).length,b=O?0:1,h=B.labelDistance+3,c=B.showLabelsAtCenter,f=l-(_=Math.min(o,.3*l)),C=l-_
48-h,T=0,L=(u=R[0])&&R[0].y?R[0].y:1,D=B.valueSum?B.valueSum:1,E=O?0:1,P=.8/L,I=1==B.useSameSlantAngle,w=(M=!O&&!B.streamlinedData)?R[0].y-R[1].y:0,!O&&u&&R[0].displayValue&&(y=R[0],u=t.plotOptions.series.dataLabels.style,k=A(ot(parseFloat(u.lineHeight)+u.borderPadding+u.borderThickness),10),r.setStyle(u),p=r.getSmartText(y.displayValue,l,k),y.displayValue=p.text,p.tooltext&&(y.originalText=p.tooltext),y.labelWidht=r.getOriSize(p.text).width,a.marginTop+=d.topLabelSpace=k+4);b<v;b+=1)u=(y=R[b]).style,k=A(ot(parseFloat(u.lineHeight)+u.borderPadding+u.borderThickness),10),r.setStyle(u),c?r.getSmartText(y.displayValue,l,k):(m=O?(u=w+y.y/2)?u/D:1:M?.2+P*w:y.y?I?y.y/L:Math.sqrt(y.y/L):1,x=C+(_-(u=_*m))/2,p=r.getSmartText(y.displayValue,x,k),y.displayValue=p.text,p.tooltext&&(y.originalText=p.tooltext),T=Math.max(T,p.width),0<f&&(u=1/(m+1)*(u+2*(p=0<p.width?x-p.width:x+h)+_),f=Math.min(f,u-_)),w+=M?-(R[b+1]&&R[b+1].y||0):y.y);if(y&&(g=O?1:M?.2:y.y?I?y.y/L:Math.sqrt(y.y/L):1),(f=_+f)>o&&(f=o),w=M?R[0].y-R[1].y:0,!c)for(b=O?0:1,v=R.length;b<v;b+=1)y=R[b],m=O?(u=w+y.y/2)?u/D:1:M?.2+P*w:y.y?I?y.y/L:dt(y.y/L):1,x=C+(_-(u=f*m))/2,p=r.getSmartText(y.displayValue,x,k),F=at(F,.5*u+p.width+h),w+=M?-(R[b+1]&&R[b+1].y||0):y.y;0<T?(d.rightLabelSpace=l-f,0<(R=F-(.5*i-a.marginRight))&&(a.marginRight+=R,a.marginLeft-=R),t.legend.enabled&&s===Nt?a.marginLeft<N&&(a.marginLeft=N):(a.marginRight+=.5*d.rightLabelSpace,a.marginLeft+=.5*d.rightLabelSpace),l-=t.title.alignWithCanvas?d.rightLabelSpace:0):h=0,B.labelDistance=B.connectorWidth=h,this.titleSpaceManager(t,e,l,n/2),(c||!T)&&o<l&&(a.marginLeft+=.5*(l-o-h),a.marginRight+=.5*(l-o-h)),B.is2d||(a.marginTop+=d.top3DSpace=f*B.yScale*E/2,a.marginBottom+=d.bottom3DSpace=f*B.yScale*g/2)}},updateSnapPoints:function(){W.gaugebase.updateSnapPoints.apply(this,arguments);var t=this.snapLiterals,e=this._tempSnap||{};t.plotwidth=t.canvaswidth,t.plotsemiwidth=t.canvaswidth/2,t.plotheight=t.canvasheight+e.top3DSpace+e.bottom3DSpace,t.plotstartx=t.canvasstartx,t.plotstarty=t.canvasstarty-e.top3DSpace,t.plotendx=t.canvasendx,t.plotendy=t.canvasendy+e.bottom3DSpace,t.canvaswidth+=e.rightLabelSpace,t.canvasheight=t.plotheight+e.topLabelSpace,t.canvasstarty=t.plotstarty-e.topLabelSpace,t.canvasendy=t.plotendy,t.canvasendx+=e.rightLabelSpace},eiMethods:{sliceDataItem:function(t){var e,i=this.jsVars.hcObj;if(i&&i.series&&(e=i.series[0])&&e.data&&e.data[t]&&e.data[t].slice)return e.data[e.xIncrement-1-t].slice()}},useSortedData:!0,creditLabel:Q},W.gaugebase),W("pyramid",{friendlyName:"Pyramid Chart",subTitleFontSizeExtender:0,drawAnnotations:!0,standaloneInit:!0,defaultSeriesType:"pyramid",defaultPlotShadow:1,useSortedData:!1,isPyramid:1,creditLabel:Q,rendererId:"pyramid"},W.funnel),W("sparkbase",{defaultPlotShadow:0,useSortedData:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,drawAnnotations:!0,showYAxisValues:0,numdivlines:0,chartrightmargin:3,chartleftmargin:3,charttopmargin:3,chartbottommargin:3,decimals:2,showTrendlineLabel:0,zeroplanethickness:0,tooltippadding:1,useScaleRecursively:!0,showTrendlineLabels:0,showAxisLimitGridLines:0,styleApplicationDefinition_font:W.gaugebase.styleApplicationDefinition_font,defaultPaletteOptions:Tt(E({},bt),{paletteColors:[["555555","A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["BCBCBC","BEC5A7","93ADBF","C97901","FF97B1"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["666666","60634E","415D6F","845001","68001B"],plotFillColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"],winColor:["666666","60634E","025B6A","A15E01","FF97B1"],lossColor:["CC0000","CC0000","CC0000","CC0000","CC0000"],drawColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],scorelessColor:["FF0000","FF0000","FF0000","FF0000","FF0000"]}),preSeriesAddition:function(t,e){var i,n,r,o,a=t.plotOptions.series.dataLabels.style,s=t.chart,l=e.chart;a={fontFamily:a.fontFamily,fontSize:a.fontSize,lineHeight:a.lineHeight,fontWeight:a.fontWeight,fontStyle:a.fontStyle};if("sparkwinloss"==this.name&&(n={w:1,l:-1,d:.1},0<(r=(i=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data)&&i.length)))for(;r;)(o=i[--r]).value=n[o.value.toLowerCase()];s.borderWidth=A(l.showborder,this.showBorder,0)?A(l.borderthickness,1):0,s.plotBorderWidth=A(l.canvasborderthickness,1),i=s.openColor=$(S(l.opencolor,"0099FF")),n=s.closeColor=$(S(l.closecolor,"0099FF")),s.highColor=$(S(l.highcolor,"00CC00")),s.lowColor=$(S(l.lowcolor,"CC0000")),s.openHoverColor=j($(S(l.openhovercolor,l.anchorhovercolor,l.plotfillhovercolor,N(i,70))),A(l.openhoveralpha,l.anchorhoveralpha,l.plotfillhoveralpha,100)),s.closeHoverColor=j($(S(l.closehovercolor,l.anchorhovercolor,l.plotfillhovercolor,N(n,70))),A(l.closehoveralpha,l.anchorhoveralpha,l.plotfillhoveralpha,100)),s.highHoverColor=j($(S(l.highhovercolor,l.anchorhovercolor,l.plotfillhovercolor,N(s.highColor,70))),A(l.highhoveralpha,l.anchorhoveralpha,l.plotfillhoveralpha,100)),s.lowHoverColor=j($(S(l.lowhovercolor,l.anchorhovercolor,l.plotfillhovercolor,N(s.lowColor,70))),A(l.lowhoveralpha,l.anchorhoveralpha,l.plotfillhoveralpha,100)),this.forceHoverEnable=S(l.openhovercolor,l.closehovercolor,l.highhovercolor,l.lowhovercolor,l.openhoveralpha,l.closehoveralpha,l.highhoveralpha,l.lowhoveralpha,l.winhovercolor,l.losshovercolor,l.drawhovercolor,l.scorelesshovercolor),t.chart.openValue={style:E({},a)},Mt(t.chart.openValue.style),t.chart.openValue.style.color=i,t.chart.closeValue={style:E({},a)},Mt(t.chart.openValue.style),t.chart.closeValue.style.color=n,t.chart.highLowValue={style:E({},a)}
48,this.parseStyles(t),0===this.showCanvas&&(s.plotBackgroundColor=H),this.showCanvasBorder||(s.plotBorderWidth=0),s.useRoundEdges||(s.plotShadow=0),l.zeroplanethickness=S(l.zeroplanethickness,this.zeroplanethickness),delete l.yaxisname,delete l.xaxisname,l.showlabels=S(l.showlabels,G)},spaceManager:function(t,e,i,n){var r,s,l=t[D],c=this.smartLabel||l.smartLabel,h=e.chart,d=t.series[0],u=t.chart,p=i-(u.marginRight+u.marginLeft),f=A(h.canvasleftmargin),g=A(h.canvasrightmargin),m=t.valuePadding=A(h.valuepadding,2),v=t.plotOptions.series.dataLabels.style,b=parseInt(v.lineHeight,10),y=p,x=l=0;if(d){if(y-=(n=o(t,e,.7*p,n,void 0,i,n,this)).left+n.right,p=i-(u.marginRight+u.marginLeft),s=r=d=0,c.setStyle(v),Et(u.openValue.label)&&(c.setStyle(u.openValue.style),b=A(parseInt(u.openValue.style.lineHeight,10),10),0<(v=c.getSmartText(u.openValue.label,y,1.5*b)).width&&(l=d=v.width+m,y-=d)),Et(u.closeValue.label)&&(c.setStyle(u.closeValue.style),b=A(parseInt(u.closeValue.style.lineHeight,10),10),0<(v=c.getSmartText(u.closeValue.label,y,1.5*b)).width&&(x=r=v.width+m,y-=r)),Et(u.highLowValue.label)&&(c.setStyle(u.highLowValue.style),b=A(parseInt(u.highLowValue.style.lineHeight,10),10),0<(c=c.getSmartText(u.highLowValue.label,y,1.5*b)).width&&(x+=s=c.width+m)),u.marginRight+=s+r,u.marginLeft+=d,Et(f)?(u.spacingLeft=u.marginLeft=f,u.spacingLeft-=n.left+d):u.marginLeft+=n.left,Et(g)?(u.spacingRight=u.marginRight=g,u.spacingRight-=n.right+s+r):u.marginRight+=n.right,this.xAxisMinMaxSetter(t,e,p),g=(u=t.xAxis).min,p=u.max,f=A(h.periodlength,0),h=j(S(h.periodcolor,this.colorManager.getColor("periodColor")),A(h.periodalpha,100)),m=1,0<f)for(;g<=p;g+=f)m?(u.plotBands.push({color:h,from:g,to:Math.min(p,g+f),zIndex:1}),m=0):m=1;a(t,e,i,l,x,this)}}},q),W("sparkline",{friendlyName:"Spark Line Chart",standaloneInit:!0,defaultSeriesType:"line",rendererId:"sparkline",creditLabel:Q,showtooltip:0,showCanvas:0,point:W.linebase.point,lineThickness:1,anchorRadius:2,anchorBorderThickness:0,postSeriesAddition:function(t,e){var i,n,r,o,a=t.chart,s=e.chart,l=this.colorManager,c=t.series&&t.series[0],h=c&&t.series[0].data,d=this.highValue,u=this.lowValue,p=this.numberFormatter,f=a.openColor,g=a.closeColor,m=a.highColor,v=a.lowColor,b=a.openHoverColor,y=a.closeHoverColor,x=a.highHoverColor,_=a.lowHoverColor;o=$(S(s.anchorcolor,l.getColor("plotFillColor")));var C,k,T,L,D,E=A(s.showopenanchor,s.drawanchors,s.showanchors,1),P=A(s.showcloseanchor,s.drawanchors,s.showanchors,1),I=A(s.showhighanchor,s.drawanchors,s.showanchors,1),M=A(s.showlowanchor,s.drawanchors,s.showanchors,1),O=A(s.anchoralpha,100),F=A(s.drawanchors,s.showanchors,0),R=F?A(s.anchoralpha,100):0,B=0,V=S(s.linecolor,l.getColor("plotFillColor")),H=A(s.linealpha,100);if(0<(l=i=h&&h.length)){for(n=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data,c.color=j(V,H),L=h[0]&&h[0].y||w,D=h[l-1]&&h[l-1].y||w;i;)c=h[--i],r=n[i],o=void 0,C=A(c.anchorbgalpha,O),c.color=j(S(r.color,V),A(r.alpha,H)),c.marker.fillColor=j(S(c.anchorbgcolor,o),A(c.anchorbgalpha,R)),o=j($(S(s.anchorhovercolor,s.plotfillhovercolor,N(V,70))),A(s.lowhoveralpha,s.anchorhoveralpha,s.plotfillhoveralpha,100)),A(s.anchorhoverradius,c.marker.radius),c.marker.enabled=!!F,c.y==u&&(o=S(c.anchorbgcolor,v),c.marker.fillColor=j(o,C),o=_,c.marker.enabled=!!M,T=p.dataLabels(c.y)),c.y==d&&(o=S(c.anchorbgcolor,m),c.marker.fillColor=j(o,C),o=x,c.marker.enabled=!!I,k=p.dataLabels(c.y)),void 0!==c.toolText&&(c.toolText=z(c.toolText,[54,55,56,57,58,59,60,61],{openDataValue:p.dataLabels(L),closeDataValue:p.dataLabels(D),highDataValue:p.dataLabels(d),lowDataValue:p.dataLabels(u),openValue:L,closeValue:D,highValue:d,lowValue:u},{},s)),A(r.showvalue,s.showvalue,s.showvalues,0)||(c.displayValue=w),Et(c.y)&&(B=1),r=c.hoverEffects,c.marker.enabled&&r&&(r.anchorColor=o,(r=c.rolloverProperties).radius=A(s.anchorhoverradius,c.marker.radius),r.lineWidth=0,r.lineColor=r.fillColor=o);(c=h[0]).marker.fillColor=j(S(c.anchorbgcolor,f),C),c.marker.enabled=!!E,r=c.hoverEffects,c.marker.enabled&&r&&(r.anchorColor=b,(r=c.rolloverProperties).radius=A(s.anchorhoverradius,c.marker.radiu
48s),r.lineWidth=0,r.lineColor=r.fillColor=b),f=p.dataLabels(c.y),c.y==u&&M&&(c.marker.fillColor=j(S(c.anchorbgcolor,v),C),c.marker.enabled=!!M),c.y==d&&I&&(c.marker.fillColor=j(S(c.anchorbgcolor,m),C),c.marker.enabled=!!I),(c=h[l-1]).marker.fillColor=j(S(c.anchorbgcolor,g),C),c.marker.enabled=!!P,r=c.hoverEffects,c.marker.enabled&&r&&(r.anchorColor=y,(r=c.rolloverProperties).radius=A(s.anchorhoverradius,c.marker.radius),r.lineWidth=0,r.lineColor=r.fillColor=y),h=p.dataLabels(c.y),c.y==u&&M&&(c.marker.fillColor=j(S(c.anchorbgcolor,v),C),c.marker.enabled=!!M),c.y==d&&I&&(c.marker.fillColor=j(S(c.anchorbgcolor,m),C),c.marker.enabled=!!I),a.openValue.label=a.closeValue.label=a.highLowValue.label=a.highLowValue.highLabel=void 0,B&&(a.openValue.label=A(s.showopenvalue,1)?f:w,a.closeValue.label=A(s.showclosevalue,1)?h:w,A(s.showhighlowvalue,1)&&(a.highLowValue.label="["+k+" | "+T+"]",a.highLowValue.highLabel=k,a.highLowValue.lowLabel=T))}}},W.sparkbase),W("sparkcolumn",{friendlyName:"Spark Column Chart",standaloneInit:!0,rendererId:"cartesian",defaultSeriesType:"column",creditLabel:Q,showCanvasBorder:!0,point:W.column2dbase.point,useFlatColor:!0,postSeriesAddition:function(t,e){var i,n,r,o,a,s,l,c,h,d,u,p=e.chart,f=this.colorManager,g=t.series&&t.series[0]&&t.series[0].data,m=this.highValue,v=this.lowValue,b=this.numberFormatter,y=S(p.plotfillalpha,Vt),x=S(p.plotfillcolor,f.getColor("plotFillColor")),_=S(p.plotborderalpha,Vt),C=S(p.plotbordercolor),k=S(p.highcolor,"000000"),T=S(p.lowcolor,"000000"),L=S(p.highbordercolor,C),D=S(p.lowbordercolor,C),E=A(p.showplotborder,0)?A(p.plotborderthickness,1):0;if(0<(f=g&&g.length))for(n=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;f;)i=g[--f],r=n[f],s=S(r.color,x),l=S(r.alpha,y),c=S(r.bordercolor,C),h=S(r.borderalpha,_),d=S(r.ratio,p.plotfillratio),u=S(360-p.plotfillangle,90),i.y==m&&(s=S(r.color,k),c=S(r.bordercolor,L),o=i.hoverEffects)&&(o.color=S(r.hovercolor,p.highhovercolor,p.plotfillhovercolor,N(s,70)),o.borderColor=S(r.borderhovercolor,p.highborderhovercolor,p.plotborderhovercolor,c),o.colorArr=o=this.getColumnColor(r,o.color,S(r.hoveralpha,p.highhoveralpha,p.plotfillhoveralpha,l),o.borderColor,h,d,u,t.chart.useRoundEdges),(a=i.rolloverProperties).color=o[0],a.borderColor=o[1]),i.y==v&&(s=S(r.color,T),c=S(r.bordercolor,D),o=i.hoverEffects)&&(o.color=S(r.hovercolor,p.lowhovercolor,p.plotfillhovercolor,N(s,70)),o.borderColor=S(r.borderhovercolor,p.lowborderhovercolor,p.plotborderhovercolor,c),o.colorArr=o=this.getColumnColor(r,i.hoverEffects.color,S(r.hoveralpha,p.lowhoveralpha,p.plotfillhoveralpha,l),i.hoverEffects.borderColor,h,d,u,t.chart.useRoundEdges),(a=i.rolloverProperties).color=o[0],a.borderColor=o[1]),void 0!==i.toolText&&(i.toolText=z(i.toolText,[56,57,60,61],{highValue:m,lowValue:v,highDataValue:b.dataLabels(m),lowDataValue:b.dataLabels(v)},{},p)),o=this.getColumnColor(r,s,l,c,h,d,u,t.chart.useRoundEdges),i.color=o[0],i.borderColor=o[1],i.borderWidth=E,A(r.showvalue,p.showvalue,p.showvalues,0)||(i.displayValue=w)},getColumnColor:function(t,e,i,n,r,o,a,s,l,c){var h;return n=S(n,B(e,60)),h=e.split(U),t=i.split(U),n=n.split(U),r=r.split(U),c?l={FCcolor:{color:h[0],alpha:t[0]}}:s?(e=h[0],i=t[0],l={FCcolor:{color:B(e,75)+U+N(e,25)+U+B(e,80)+U+N(e,65)+U+B(e,80),alpha:i+U+i+U+i+U+i+U+i,ratio:"0,10,13,57,20",angle:l?"-180":"0"}},n=[B(e,70)]):l={FCcolor:{color:e,alpha:i=V(i,h.length),ratio:o,angle:l?180-a:a}},[l,{FCcolor:{color:n[0],alpha:r[0]}}]}},W.sparkbase),W("sparkwinloss",{friendlyName:"Spark Win-Loss Chart",standaloneInit:!0,defaultSeriesType:"column",rendererId:"sparkwinloss",creditLabel:Q,showCanvasBorder:!1,showCanvas:0,showtooltip:0,postSeriesAddition:function(t,e){
49var i,n,r,o,a,s,l,c,h,d,u,p,f=t.chart,g=e.chart,m=this.colorManager,v=t.series&&t.series[0]&&t.series[0].data,b=S(g.plotfillalpha,Vt),y=S(g.plotfillcolor,m.getColor("plotFillColor")),x=S(g.plotborderalpha,Vt),_=S(g.plotbordercolor),C=A(g.showplotborder,0)?A(g.plotborderthickness,1):0,k=S(g.wincolor,m.getColor("winColor")),T=S(g.losscolor,m.getColor("lossColor")),L=S(g.drawcolor,m.getColor("drawColor")),D=(m=S(g.scorelesscolor,m.getColor("scorelessColor")),g.winhovercolor),P=g.losshovercolor,I=g.drawhovercolor,M=g.scorelesshovercolor,O=w,F=0,R=0,B=0;if(n=t.yAxis[0],t.tooltip.enabled=!1,n.min=-1.1,n.max=1.1,0<(d=v&&v.length)){for(u=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;d;){switch(l=v[--d],(p=u[d]).value){case 1:O=S(p.color,k,y),i=S(p.hovercolor,D,O),F+=1;break;case-1:O=S(p.color,T,y),i=S(p.hovercolor,P,O),R+=1;break;case.1:O=S(p.color,L,y),i=S(p.hovercolor,I,O),B+=1}1==p.scoreless&&(O=S(p.color,m,y),i=S(p.hovercolor,M,p.color,m,i)),n=S(p.alph
49a,b),r=S(p.bordercolor,_),o=S(p.borderalpha,x),a=S(p.ratio,g.plotfillratio),s=S(360-g.plotfillangle,90),h=this.getColumnColor(p,O,n,r,o,a,s,t.chart.useRoundEdges),l.color=h[0],l.borderColor=h[1],l.borderWidth=C,A(p.showvalue,0)||(l.displayValue=w),(c=l.hoverEffects)&&(l=l.rolloverProperties,c.color=N(i,70),h=c.colorArr=this.getColumnColor(p,c.color,n,r,o,a,s,t.chart.useRoundEdges),l.color=h[0],l.borderColor=h[1],c.borderThickness=C,l.borderWidth=C)}1==A(g.showvalue,1)&&(f.closeValue.style=E({},t.plotOptions.series.dataLabels.style),f.closeValue.label=F+"-"+R+(0<B?"-"+B:w))}}},W.sparkcolumn),l={realtimeEnabled:!0,canvasPaddingModifiers:null,linearDataParser:W.gaugebase.linearDataParser,eiMethods:Tt({},W.gaugebase.eiMethods),decimals:2,prepareRealtimeValueText:function(){var t=this.hcJSON,e=this.hcJSON[D],i=e.rtLabel,n=t.chart.realtimeValueSeparator,r=new RegExp(n+"$","g");i&&i.label&&(n=e.realtimeValues.join(n).replace(r,w),e=A(parseInt(e.outCanvasStyle.fontSize,10),10),i.label.y=.8*e+(t.xAxis.title.margin||0),i.label.text=n,t.xAxis.plotLines&&(t.xAxis.plotLines[0]=i))},chart:function(){var t,e,i,n,r,o=this.dataObj.chart,a=this.numberFormatter,s=A(o.showrealtimevalue,1),l=A(o.realtimevaluepadding);if((o=this.dataObj.chart).adjustdiv="0",s&&(o.xaxisname=o.xaxisname?"<br/>"+o.xaxisname:"<br/>"),i=(t=W.msareabase.chart.apply(this,arguments)).chart,e=t[D],n=t.series,e.isDual?(e._userPMin=A(o.pyaxisminvalue),e._userPMax=A(o.pyaxismaxvalue),e._userSMin=A(o.syaxisminvalue),e._userSMax=A(o.syaxismaxvalue)):(e._userMin=A(o.yaxisminvalue),e._userMax=A(o.yaxismaxvalue)),i.dataStreamURL=S(o.datastreamurl,""),i.refreshInterval=A(o.refreshinterval,1),i.updateInterval=A(o.updateinterval,i.refreshInterval),i.clearInterval=A(o.clearchartinterval,0),i.dataStamp=o.datastamp,i.useMessageLog=A(o.usemessagelog,0),i.messageLogWPercent=st(A(o.messagelogwpercent,80),100),i.messageLogHPercent=st(A(o.messageloghpercent,70),100),i.messageLogShowTitle=A(o.messagelogshowtitle,1),i.messageLogTitle=S(o.messagelogtitle,"Message Log"),i.messageLogColor=S(o.messagelogcolor,"#fbfbfb"),i.messageGoesToJS=A(o.messagegoestojs,0),i.messageGoesToLog=A(o.messagegoestolog,1),i.messageJSHandler=S(o.messagejshandler,""),i.messagePassAllToJS=A(o.messagepassalltojs,0),i.messageLogIsCancelable=A(o.messagelogiscancelable,1),i.alwaysShowMessageLogMenu=A(o.alwaysshowmessagelogmenu,i.useMessageLog),i.showRTMenuItem=A(o.showrtmenuitem,0),i.showRealtimeValue=s,i.realtimeValueSeparator=S(o.realtimevaluesep,", "),i.realtimeValuePadding=l,i.realtimeValueFont=S(o.realtimevaluefont,""),i.realtimeValueFontBold=S(o.realtimevaluefontbold,0),i.realtimeValueFontColor=S(o.realtimevaluefontcolor,""),i.realtimeValueFontSize=A(o.realtimevaluefontsize,""),s){if(!e.realtimeValues)for(e.realtimeValues=[],s=0,l=n.length;s<l;s++)r=(r=(o=n[s]).data)&&r.length&&r[r.length-1]&&r[r.length-1].y,e.realtimeValues[s]=a.dataLabels(r,o.yAxis);e.rtLabel||((a=E({},e.outCanvasStyle)).fontWeight=i.realtimeValueFontBold?"bold":"normal",i.realtimeValueFontColor&&(a.color=i.realtimeValueFontColor.replace(pt,mt)),i.realtimeValueFontSize&&(a.fontSize=i.realtimeValueFontSize+Ht),i.realtimeValueFont&&(a.fontFamily=i.realtimeValueFont),n=A(parseInt(a.fontSize,10),10),e.rtLabel={color:et,alwaysVisible:!0,isTrend:!0,value:(e.x.catCount-1)/2,width:.01,label:{align:Ft,textAlign:Ft,rotation:0,textVAlign:Rt,text:" ",x:0,y:.8*n+(0|t.xAxis.title.margin),style:a}},t.xAxis.plotLines.splice(0,0,e.rtLabel))}return i.showRTMenuItem?(t.callbacks||(t.callbacks=[])).push(this.drawRTMenuButtons):i.useMessageLog&&i.alwaysShowMessageLogMenu&&i.messageGoesToLog&&(t.callbacks||(t.callbacks=[])).push(this.drawMLMenuButtons),this.dataObj.alerts&&(this.hcJSON.alerts=this.parseAlertObj(this.dataObj.alerts)),t},parseAlertObj:function(t){var e,i,n,r,o,a=this.numberFormatter,s=t&&t.alert,l=s.length,c={alert:[]};for(t=0;t<l;t+=1)r=s[t],e=a.getCleanValue(r.minvalue),i=a.getCleanValue(r.maxvalue),n=S(r.action,""),r=S(r.param,""),null!==e&&null!==i&&""!==n&&(e>i&&(o=i,i=e,e=o),c.alert.push({minvalue:e,maxvalue:i,param:r,action:n}));return c},drawMLMenuButtons:function(){var t,e=(r=this.options).chart,i=this.menu||(this.menu=[]),n=this.toolbar,r=r[D];i.push(t=C({chart:this,basicStyle:r&&r.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open(),t.showItem(4),t.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.close(),t.showItem(3),t.hideItem(4)}}
49],position:{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}})),t.hideItem(1),this.elements.configureButton=n.add("loggerIcon",function(e,i){return function(){t.visible?t.hide():t.show({x:e,y:i+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},drawRTMenuButtons:function(){var t,e=this.logic,i=e.chartInstance,n=(s=this.options).chart,r=n&&n.alwaysShowMessageLogMenu,o=this.menu||(this.menu=[]),a=this.toolbar,s=(s=s[D])&&s.outCanvasStyle||this.outCanvasStyle||{},l=(l=i.isUpdateActive||e.eiMethods.isUpdateActive)&&l.call(i);o.push(t=C({chart:this,basicStyle:s,items:[{text:"Stop Update",visibility:l?Pt:"hidden",onclick:function(){t.hideItem(0),t.showItem(1),i.stopUpdate()}},{text:"Start Update",visibility:l?"hidden":Pt,onclick:function(){t.hideItem(1),t.showItem(0),i.restartUpdate()}},{text:"Clear Chart",onclick:function(){i.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open(),t.showItem(4),t.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.close(),t.showItem(3),t.hideItem(4)}}],position:{x:n.spacingLeft,y:this.chartHeight-n.spacingBottom+(n.showFormBtn||n.showRestoreBtn?10:-15)}})),A(e.dataObj.chart.allowclear,1)||t.hideItem(2),t.hideItem(0),t.hideItem(1),!r&&t.hideItem(3),t.hideItem(4),t.showItem(l?0:1),this.elements.configureButton=a.add("configureIcon",function(e,i){return function(){t.visible?t.hide():t.show({x:e,y:i+1})}}(),{x:n.spacingLeft,y:this.chartHeight-n.spacingBottom+(n.showFormBtn||n.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},shiftPlotLines:function(t,e,i,n){var r,o,a,s=[],l=n[0],c=l&&l.RTValueArr,h=c&&c.length||0,d=(n=n[1])&&n.RTValueArr,u=d&&d.length||0,p=t&&t.length||0;for(i=A(i,-.5),a=0;a<p;a+=1)((r=t[a]).isGrid||r.isVline)&&(((o=r.value+=e)<i||o===i&&r.isVline)&&(t.splice(a,1),r.isGrid&&s.push(r),--a,--p));if(l&&c&&h)for(c.splice(0,-e),h=c.length,delete l.min,delete l.max,a=0;a<h;a+=1)(t=c[a])&&void 0!==t.min&&(!1==l.min<t.min&&(l.min=t.min),!1==l.max>t.max&&(l.max=t.max));if(n&&d&&u)for(d.splice(0,-e),u=d.length,delete n.min,delete n.max,a=0;a<u;a+=1)(t=d[a])&&void 0!==t.min&&(!1==n.min<t.min&&(n.min=t.min),!1==n.max>t.max&&(n.max=t.max));return s},configureAxis:function(t){var e,i,n=t[D],r=t.xAxis,o=n.x,a=n.axisGridManager,s=o.catCount,l=n.oriCatTmp,c=n[0],h=c&&c.RTValueArr,d=n[1],u=d&&d.RTValueArr,p=(e=this.dataObj).chart||(e.chart={}),f=(e=t.series)[0].data.length,g=(p=this.numDisplaySets=A(p.numdisplaysets,at(f,15)),r.plotLines),m=g&&g.length||0,v=[],b=this.chartInstance.jsVars._reflowData;if(b.hcJSON&&(i=b.hcJSON[D])&&(c.min=i[0]&&i[0].min,c.max=i[0]&&i[0].max,d.min=i[1]&&i[1].min,d.max=i[1]&&i[1].max),d=((this.dataObj.categories||(this.dataObj.categories=[{category:[]}]))[0]||(this.dataObj.categories[0]={category:[]})).category||(this.dataObj.categories[0].category=[]),0===s&&(this.chartInstance.jsVars._forceReflow=!0),0<(c=p-f)){for(;m--;)g[m].value+=c;for(r.plotLines=[];c--;)v[c]={y:null},a.addXaxisCat(r,c,c," ",{},{},{}),h&&h.unshift(null),u&&u.unshift(null),l.unshift(null),d.unshift({label:" "});r.plotLines=r.plotLines.reverse().concat(g)}else c&&(this.shiftPlotLines(r.plotLines,c,-.5,n),l.splice(0,-c));for(c=e.length;c--;)n=(r=e[c]).data,r.data=v.concat(n.slice(-p));return this.needsRedraw=0===s,o.catCount=p,W.msareabase.configureAxis&&W.msareabase.configureAxis.apply(this,arguments)},postSeriesAddition:function(t,e,i,n,r){i=(e=t[D]).isBar,n=t.chart.rotateValues&&!i?270:0;var o,a,s,l,c,h,d,u,p,f=e[0],g=f.RTValueArr,m=f&&f.stacking100Percent;if(this.isStacked&&g&&(e.showStackTotal||m))for(r=r||0,h=t.series,d=E({},t.plotOptions.series.dataLabels.style),u=parseFloat(d.fontSize),p=!f.stacking100Percent,d.color=t.plotOptions.series.dataLabels.color,f=g.length;r<f;r+=1)if((a=g[r])&&(c=(a.n||0)+(a.p||0),e.showStackTotal&&(o=r,a=0>c?a.n:a.p,t.xAxis.plotLines.push({value:o,width:0,isVline:p,isTrend:!p,zIndex:4,_isStackSum:1,_catPosition:r,label:{align:Ft,textAlign:270===n?0>c?Nt:jt:Ft,offsetScale:p?a:void 0,offsetScaleIndex:0,rotation:n,style:d,verticalAlign:Rt,y:i?0:0>c?270===n?4:u:-4,x:0,text:e.numberFormatter.yAxis(c)}})),m))for(a=0,o=h.length;a<o;a+=1)h[a].data&&(((s=h[a].data[r]).y||0===s.y)&&(l=s.y/c*100,s.y=l,s.showPercentValues&&(s.displayValue=this.numberFormatter.percentValue(l)),e.showPercentValues&&(s.displayValueArgs=this.numberFormatter.percentValue(l)),s.showPercentInToolTip&&(s.toolText=s.toolText+parseInt(100*l,10)/100+"%")),(s.previousY||0===s.previousY)&&(s.previousY=s.previousY/c*100))}
49,pointValueWatcher:function(t,e,i,n,r){if(null!==e){var o,a=t[D];return(t=a[i||(i=0)])||(t=a[i]={}),(i=t.RTValueArr)||(i=t.RTValueArr=[]),(a=i[r])||(a=i[r]={}),n&&(0<=e?a.p?(o=a.p,e=a.p+=e):a.p=e:a.n?(o=a.n,e=a.n+=e):a.n=e),!1==a.max>e&&(a.max=e,!1==t.max>e&&(t.max=e)),!1==a.min<e&&(a.min=e,!1==t.min<e&&(t.min=e)),o}},realtimeUpdate:function(t,e){var n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,b,x,C,S=this.hcJSON,T=this.dataObj,L=T.chart,P="0"===L.allowclear?0:1,I=S[D],M=this.numberFormatter,O=(r=I.x)._labelY,F=r._labelX,R=r._yShipment,B=r._isStagger,N=r._rotation,j=r._textAlign,$=r._adjustedPx,V=r._staggerLines,H=r._labelHeight,W=I.axisGridManager,z=r.catCount,q=this.renderer,U=this.chartInstance.jsVars,Y=t.values,X=t.labels||[],K=t.showLabels||[],Z=t.colors,Q=t.toolTexts,tt=t.links,et=S.xAxis,it="0"===T.chart.showlabels,nt=S.chart.showRealtimeValue,rt=T.categories,ot=U._reflowData,at=[],st=A(I._startIndex,0),lt=r.stepValue,ct=z-(r=t.dimension>z?z:t.dimension),ht=(at=[],t.vlines),dt=y.placeHorizontalAxis,ut=new Date;if(t.clear&&P&&this.realtimeUpdate({dimension:this.numDisplaySets,values:[],labels:[]},0<t.dimension),t.dimension){for(S.plotOptions.series.animation=!1,ht?(o=t.vlineColors||[],a=t.vlineLabels||[],s=t.vlineThickness||[],l=t.vlineDashed||[]):ht=[],rt||(rt=T.categories=[]),rt[0]?rt[0].category||(rt[0].category=[]):rt[0]={category:[]},rt=rt[0].category,P=(at=this.shiftPlotLines(et.plotLines,-r,-.5,I)).length;P--;)(f=at[P]).label&&((c=f.label).text="0"===K[P]||it?"":J(X[P]||w),n=ct+P,f.value=n,(n=0==(d=z+P+st)%lt)?(c.style=et.labels.style,c.y=B?O+d/lt%V*H:R,c.x=F+(N?$:0),c.rotation=N,c.textAlign=j):c.style=et.steppedLabels.style,et.plotLines.push(E({},f)),rt.shift(),rt.push({label:c.text})),"1"===ht[P]&&W.addVline(et,{color:o[P]&&decodeURIComponent(o[P]),label:a[P]&&decodeURIComponent(a[P]),thickness:s[P]&&decodeURIComponent(s[P]),dashed:l[P]&&decodeURIComponent(l[P])},ct+P,S);for(at=[],I._startIndex=(r+st)%(B?lt*V:lt),st=S.series&&S.series.length,r&&I.oriCatTmp.splice(0,r),I._skipValueWatcher=!1,P=0;P<st;P+=1){for(o=S.series[P],s=Y&&Y[P]||[],l=Z&&Z[P]||[],lt=tt&&tt[P]||[],ct=Q&&Q[P]||[],K=o.yAxis||0,I._rtCounter||(I._rtCounter=1),!at[P]&&(at[P]=[]),W=at[P],it=(h=(a=o.data).length)-r,rt=0;it<h;it+=1,rt+=1)ht=decodeURIComponent(k(s[rt],null)),p=M.getCleanValue(ht),c=decodeURIComponent(X[rt]||""),I.oriCatTmp[it]=c,a.shift(),(ht=o._dataParser({value:ht,label:c,color:l&&l[rt]&&decodeURIComponent(l[rt]),link:lt&&lt[rt]&&decodeURIComponent(lt[rt]),tooltext:ct&&ct[rt]&&decodeURIComponent(ct[rt])},it,p)).y=p,a.push(ht),W.push(ht),ht.previousY=this.pointValueWatcher(S,p,K,this.isStacked,it);nt&&(I.realtimeValues[P]=M.dataLabels(p,o.yAxis))}if(I._rtCounter+=r,this.postSeriesAddition(S,void 0,void 0,void 0,h-r),M=S.yAxis[0],Y=I[0],Z=X=!(Q=A(this.isStacked?0:this.setAdaptiveYMin,L.setadaptiveymin,0)),tt=(M.max-M.min)/4,I.isDual?((Y.max>M.max||Y.min<M.min||(!Z||0!==M.min)&&M.min!==I._userPMin&&Y.min-M.min>tt||(!X||0!==M.max)&&M.max!==I._userPMax&&M.max-Y.max>tt)&&(U._forceReflow=!0,I._skipValueWatcher=!0),M=S.yAxis[1],Y=I[1],Z=X=!A(L.setadaptivesymin,Q),tt=(M.max-M.min)/4,(Y.max>M.max||Y.min<M.min||(!Z||0!==M.min)&&M.min!==I._userSMin&&Y.min-M.min>tt||(!X||0!==M.max)&&M.max!==I._userSMax&&M.max-Y.max>tt)&&(U._forceReflow=!0,I._skipValueWatcher=!0)):(Y.max>M.max||Y.min<M.min||(!Z||0!==M.min)&&M.min!==I._userMin&&Y.min-M.min>tt||(!X||0!==M.max)&&M.max!==I._userMax&&M.max-Y.max>tt)&&(U._forceReflow=!0,I._skipValueWatcher=!0),g=I[0]&&I[0].RTValueArr,m=I[1]&&I[1].RTValueArr,U._forceReflow&&(M=S.yAxis[0],Y=I[0],v=I[0]&&I[0].min,b=I[0]&&I[0].max,x=I[1]&&I[1].min,C=I[1]&&I[1].max,st=M.min,o=M.max,tt=A(I.numdivlines,L.numdivlines,this.numdivlines,4),h=L.adjustdiv!==G,p=A(I._userMax,I._userPMax),P=A(I._userMin,I._userPMin),W=A(L.showyaxisvalues,L.showyaxisvalue,1),K=A(L.showlimits,W),it=A(L.showdivlinevalue,L.showdivlinevalues,W),rt=1>(rt=A(parseInt(L.yaxisvaluesstep,10),parseInt(L.yaxisvaluestep,10),1))?1:rt,this.axisMinMaxSetter(M,Y,p,P,X,Z,tt,h),M.plotLines=[],M.plotBands=[],M.labels.enabled=M.labels._enabled,M.gridLineWidth=M._gridLineWidth,M.alternateGridColor=M._alternateGridColor,this.configurePlotLines(L,S,M,Y,K,it,rt,I.numberFormatter,!1),st===M.min&&o===M.max&&(u=!0),I.isDual?(p=I._userSMax,P=I._userSMin,Z=X=!(Q=A(L.setadaptivesymin,Q)),K=A(L.showsecondarylimits,K),it=A(L.showdivlinesecondaryvalue,W),M=S.yAxis[1],Y=I[1],st=M.min,o=M.max,this.axisMinMaxSetter(M,Y,p,P,X,Z,tt,h),M.plotLines=[],M.plotBands=[],M.labels.enabled=M.labels._enabled,M.gridLineWidth=M._gridLineWidth,M.alternateGridColor=M._alternateGridColor,this.configurePlotLines(L,S,M,Y,K,it,rt,I.numberFormatter,!0),st===M.min&&o===M.max&&u&&(U._forceReflow=!1)):u&&(U._forceReflow=!1),T.trendlines&&_(T.trendlines,S.yAxis,I,I.isDual,this.isBar)),ot.hcJSON&&(L=ot.hcJSON[D],delete ot.hcJSON[D],E(S.series,ot.hcJSON.series,!0),ot.hcJSON[D]=L,L=null),E(ot,{preReflowAdjustments:function(){this.dataObj.categories=T.categories},postReflowAdjustments:function(){var t,e=S.series,i=e&&e.length;if(this.hcJSON.xAxis.plotLines=et.plotLines,this.hcJSON._FCconf[0].RTValueArr=g,this.hcJSON._FCconf[1].RTValueArr=m,e)for(t=0;t<i;t+=1)this.hcJSON.series[t].data=e[t].data},postHCJSONCreation:function(t){E(t,{_FCconf:{0:{min:v,max:b},1:{min:x,max:C},_skipValueWatcher:!0,realtimeValues:I.realtimeValues,rtvHTMLWrapper:I.rtvHTMLWrapper}},!0)},hcJSON:{_FCconf:{_userMax:I._userMax,_userMin:I._userMin,_userPMax:I._userPMax,_userSMax:I._userSMax,_userPMin:I._userPMin,_userSMin:I._userSMin,_chartState:I._chartState,_rtCounter:I._rtCounter,_startIndex:I._startIndex,oriCatTmp:I.oriCatTmp,x:{catCount:z,_labelY:O,_labelX:F,_yShipment:R,_isStagger:B,_rotation:N,_textAlign:j,_adju
49stedPx:$,_staggerLines:V,_labelHeight:H},0:{min:A(v,I[0]&&I[0].min),max:A(b,I[0]&&I[0].max)},1:{min:A(x,I[1]&&I[1].min),max:A(C,I[1]&&I[1].max)}}}},!0),!e){for(U._forceReflow&&(U._forceReflow=!1,O=(M=S.yAxis[0]).plotBands.concat(M.plotLines),i(M,O),q.yAxis[0].realtimeUpdateY(M.min,M.max),I.isDual&&(O=(M=S.yAxis[1]).plotBands.concat(M.plotLines),i(M,O),q.yAxis[1].realtimeUpdateY(M.min,M.max)),this.containerElement.resizeTo()),dt.call(this,S.xAxis,I.x,S,this.dataObj,I.x._canvasWidth,I.x._availableHeight,I.x._minCanvasWidth),nt&&this.prepareRealtimeValueText(),q.xAxis[0].realtimeUpdateX(r),P=0,it=at.length;P<it;P+=1)q.plots[P]&&q.plots[P].realtimeUpdate&&q.plots[P].realtimeUpdate(r,U._forceReflow);this.realtimeDrawingLatency=new Date-ut}}},extractTrendLines:function(t){var e=t.plotLines;t=t.plotBands;for(var i,n=e.length,r=[],o=[];n;)(i=e[i=n-1]).isTrend&&o.push(i),--n;for(n=t.length;n;)(e=t[i=n-1]).isTrend&&r.push(e),--n;return{trendLines:o,trendBands:r}}},Tt(l.eiMethods,{clearChart:function(t){t=t&&t.toString&&t.toString(),this.feedData("clear=1"),y.raiseEvent("ChartCleared",{source:t},this.FusionCharts,[this.id,t])},getDataJSON:function(){return this.jsVars._rtLastUpdatedData||{values:[]}},getData:function(){var t,e,i,n,r,o=this.jsVars.hcObj.options,a=o[D].oriCatTmp,s=[];if(!o||!o.series)return s;for(e=[],n=(o=o.series).length;n--;)for(e[(t=o[n]).index]=t.name,i=t.data,r=a.length;r--;)(t=s[r]||(s[r]=[a[r]]))[n+1]=i[r].y;return e.unshift(null),s.unshift(e),s}}),W("realtimearea",Tt({friendlyName:"Realtime Data Streaming Area Chart",standaloneInit:!0,multisetRealtime:!0,defaultPlotShadow:1,creditLabel:Q,rendererId:"realtimecartesian"},l),W.msareabase),W("realtimecolumn",Tt({friendlyName:"Realtime Data Streaming Column Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:Q,rendererId:"realtimecartesian"},l),W.mscolumn2dbase),W("realtimeline",Tt({friendlyName:"Realtime Data Streaming Line Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:Q,rendererId:"realtimecartesian"},l),W.mslinebase),W("realtimelinedy",Tt({friendlyName:"Realtime Data Streaming Dual Y-Axis Line Chart",standaloneInit:!0,multisetRealtime:!0,isDual:!0,creditLabel:Q,series:W.mscombibase,rendererId:"realtimecartesian"},l),W.mslinebase),W("realtimestackedarea",{friendlyName:"Realtime Data Streaming Stacked Area Chart",isStacked:!0,showSum:0,areaAlpha:100,creditLabel:Q},W.realtimearea),W("realtimestackedcolumn",{friendlyName:"Realtime Data Streaming Column Chart",isStacked:!0,creditLabel:Q},W.realtimecolumn),r=function(t,e){return t.minvalue-e.minvalue},n.prototype={getColorObj:function(t){for(var e,i,n=this.colorArr,r=0,o=n.length,a={};r<o;r+=1){if(a.index=r,e=n[r],i=n[r+1],t<e.minvalue)return a.nextObj=e,a;if(t>=e.minvalue&&t<=e.maxvalue)return a.colorObj=e,i&&t==i.minvalue&&(a.nextObj=i,a.isOnMeetPoint=!0),a;a.prevObj=e}return a.index=r-1,a},getColorRangeArr:function(t,e){var i,n,r,o,a,s=this.colorArr,l=[];if(!this.defaultAsigned&&(t>e&&(i=t,t=e,e=i),t<e&&(n=this.getColorObj(t),r=this.getColorObj(e),n&&r))){for(i=t,n=n.index,r=r.index;n<=r;n+=1)(o=E({},s[n])).minvalue!==i&&(o.minvalue=i),l.push(o),a=o,i=o.maxvalue;a.maxvalue=e}return l}},n.prototype.constructor=n,u={fluidHRatio:!0,fluidColor:!0,fluidAlpha:!0,fluidFill:!0},p=[],f=0,g=function(t){f=Boolean(t)?t.duration:0},m=function(t,e){var i,n,r,o,a=this,s=!1,l=!1,c=this._3dAttr;if(Dt(t)&&Et(e)&&(i=t,(t={})[i]=e),Dt(t))a=u[t]?a._3dAttr[t]:a._attr(t);else for(i in t)n=t[i],u[i]?("fluidFill"===i?(n&&n.linearGradient&&n.stops&&n.stops[0]&&(n=n.stops[0][1]),It.test(n)?(r=(o=new Ut(n)).get("hex"),o=100*o.get("a")):n&&n.FCcolor?(r=n.FCcolor.color.split(U)[0],o=n.FCcolor.alpha.split(U)[0]):tt.test(n)&&(r=n.replace(pt,mt)),c.fluidColor=S(r,c.fluidColor,"000000"),c.fluidAlpha=A(o,c.fluidAlpha,100),s=!0):"fluidColor"===i?(c.fluidColor=S(n,c.fluidColor,"000000"),s=!0):"fluidAlpha"===i?(c.fluidAlpha=A(n,c.fluidAlpha,100),s=!0):0<=n&&1>=n&&(c.fluidHRatio=n,l=!0),s&&(n=B(c.fluidColor,c.is2D?80:70),a.fluid.attr({fill:j(n,c.fluidAlpha)}),a.fluidTop.attr({fill:j(n,c.fluidAlpha)}),a.topLight.attr({stroke:j(n,.4*c.fluidAlpha)}),a.topLightBorder.attr({fill:vt({FCcolor:{color:n+U+n,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})}
49)),l&&(n=c.scaleY+c.h*(1-c.fluidHRatio),f?(a.fluid.animate({path:c.fluidPath.concat(["L",c.lx2,n,c.lx1,n,"Z"])},f,"easeIn"),a.fluidTop.animate({path:p.concat(["M",c.lx1,n,"A",c.lCylWidthHalf,1,0,1,0,c.lx2,n,"Z"])},f,"easeIn")):(a.fluid.attr({path:c.fluidPath.concat(["L",c.lx2,n,c.lx1,n,"Z"])}),a.fluidTop.attr({path:p.concat(["M",c.lx1,n,"A",c.lCylWidthHalf,1,0,1,0,c.lx2,n,"Z"])})))):this._attr(i,n);return a},v=function(t,e,i){this.border.shadow(t,e,i)},c=function(t,e,i,n,r,o,a,s,l,c,h,d,u){var f,b,y,x,w,_,C,k,T,L,D,E,P,I,M,O;return Lt(t)&&(e=t.y,i=t.r,n=t.h,o=t.renderer,a=t.fluidHRatio,s=t.conColor,l=t.conBorderColor,c=t.conBorderThickness,h=t.fluidColor,d=t.fluidAlpha,u=t.is2D,t=t.x),0<=a&&1>=a||(a=0),O={x:t,y:e,r:i,h:n,renderer:o,fluidHRatio:a,conColor:s=S(s,"FFFFFF"),conBorderColor:l=S(l,"#000000"),conBorderThickness:c=A(c,1),fluidStroke:3,fluidColor:h=S(h,"000000"),is2D:u,fluidAlpha:d=A(d,100)},r._attr=r.attr,r.attr=m,r._setAnimate=g,r.shadow=v,r._3dAttr=O,f=B(s,80),h=B(h,u?80:70),s=N(s,80),w=t-(b=.643*i),_=t+b,C=t-(x=b-(y=.33*b)),x=t+x,L=(T=(k=e+b)+n)+.766*i,D=e+y,n=k+n*(1-a),E=i+(a=.9*b)-b,P=t-a,I=t+a,L-=Math.abs(Math.sqrt(E*E-a*a)),M=parseInt(t-.6*b,10),b=t+b/2,O.fluidPath=["M",P,L,"A",E,E,0,1,0,I,L],O.scaleY=k,O.lx1=P,O.lx2=I,O.lCylWidthHalf=a,r.topLight=o.path(["M",P,k,"L",I,k],r).attr({"stroke-width":1,stroke:j(h,40)}),r.topLightBorder=o.path(["M",P,k,"L",I,k,I,D,P,D,"Z"],r).attr({"stroke-width":0,fill:vt({FCcolor:{color:h+U+h,alpha:u?"0,0":"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})}),r.fluid=o.path(O.fluidPath.concat(["L",I,n,P,n,"Z"]),r).attr({"stroke-width":0,fill:j(h,d)}),r.fluidTop=o.path(p.concat(["M",P,n,"A",a,1,0,1,0,I,n,"Z"]),r).attr({"stroke-width":0,fill:j(h,d)}),r.border=o.path(p.concat(["M",C,e,"A",y,y,0,0,0,w,D],["L",w,T],["A",i,i,0,1,0,_,T],["L",_,D],["A",y,y,0,0,0,x,e,"Z"]),r).attr({"stroke-width":c,stroke:l}),u||(r.bulbBorderLight=o.path(p.concat(["M",w,T,"A",i,i,0,0,1,_,T],["M",_,T,"A",i,i,0,0,0,w,T],["M",w,T,"A",i,i,0,1,0,_,T,"Z"]),r).attr({"stroke-width":0,stroke:"#00FF00",fill:vt({FCcolor:{cx:.5,cy:.5,r:"50%",color:f+U+s,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),r.bulbTopLight=o.path(p.concat(["M",w,T,"A",i,i,0,0,1,_,T],["A",i,i,0,0,0,w,T],["A",i,i,0,1,0,_,T,"Z"]),r).attr({"stroke-width":0,fill:vt({FCcolor:{cx:.3,cy:.1,r:"100%",color:s+U+f,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),r.bulbCenterLight=o.path(p.concat(["M",w,T,"A",i,i,0,1,0,_,T],["A",i,i,0,0,0,w,T],["A",i,i,0,0,1,_,T,"Z"]),r).attr({"stroke-width":0,fill:vt({FCcolor:{cx:.25,cy:.7,r:"100%",color:s+U+f,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),r.cylLeftLight=o.path(p.concat(["M",t,e,"L",C,e],["A",y,y,0,0,0,w,D],["L",w,T,t,T,"Z"]),r).attr({"stroke-width":0,fill:vt({FCcolor:{color:s+U+f,alpha:"50,0",ratio:"0,80",angle:0}})}),r.cylRightLight=o.path(p.concat(["M",w,e,"L",x,e],["A",y,y,0,0,1,_,D],["L",_,T,w,T,"Z"]),r).attr({"stroke-width":0,fill:vt({FCcolor:{color:s+U+f+U+f,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),r.cylLeftLight1=o.path(["M",M,D,"L",w,D,w,T,M,T,"Z"],r).attr({"stroke-width":0,fill:vt({FCcolor:{color:s+U+f,alpha:"60,0",ratio:"0,100",angle:180}})}),r.cylRightLight1=o.path(["M",M-.01,D,"L",b,D,b,T,M-.01,T,"Z"],r).attr({"stroke-width":0,fill:vt({FCcolor:{color:s+U+f,alpha:"60,0",ratio:"0,100",angle:0}})})),r},h=function(){var t={fluidHRatio:!0,color:!0,alpha:!0,fill:!0},e=[],i=0,n=function(t){i=Boolean(t)?t.duration:0},r=function(n,r){var o,a,s,l,c,h,d,u,p,f,g,m,v=this,b=!1,y=!1,x=this._3dAttr;if(Dt(n)&&Et(r)&&(o=n,(n={})[o]=r),Dt(n))v=t[n]?v._3dAttr[n]:v._attr(n);else for(o in n)a=n[o],t[o]?("fill"===o?(a&&a.linearGradient&&a.stops&&a.stops[0]&&(a=a.stops[0][1]),It.test(a)?(s=(l=new Ut(a)).get("hex"),l=100*l.get("a")):a&&a.FCcolor?(s=a.FCcolor.color.split(U)[0],l=a.FCcolor.alpha.split(U)[0]):tt.test(a)&&(s=a.replace(pt,mt)),x.fluidColor=S(s,x.fluidColor,"000000"),x.fluidAlpha=A(l,x.fluidAlpha,100),b=!0):"color"===o?(x.fluidColor=S(a,x.fluidColor,"000000"),b=!0):"alpha"===o?(x.fluidAlpha=A(a,x.fluidAlpha,100),b=!0):0<=a&&1>=a&&(x.fluidHRatio=a,y=!0),b&&(a=B(x.fluidColor,70),c=N(x.fluidColor,70),d=B(x.c
49onColor,80),h=N(x.conColor,80),u=(l=x.fluidAlpha)+U+l,v.fluid.attr({"stroke-width":0,fill:vt({FCcolor:{cx:.5,cy:0,r:"100%",color:c+U+a,alpha:u,ratio:"0,100",radialGradient:!0}})}),v.fluidTop.attr({"stroke-width":3,stroke:j(c,l),fill:vt({FCcolor:{cx:.5,cy:.7,r:"100%",color:c+U+a,alpha:u,ratio:"0,100",radialGradient:!0}})}),v.btnBorderLight.attr({fill:vt({FCcolor:{color:h+U+d+U+h+U+h+U+d+U+a+U+d+U+h,alpha:"50,50,50,50,50,"+.7*l+",50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})})),y&&(d=x.x,a=x.r,h=(c=x.fluidStroke)/2,p=x.h*x.fluidHRatio,u=(c=d-a)+h,f=(d+=a)-h,p=(g=x.y+x.h)-p,m=a*x.r3dFactor,h=a-h,i?(v.fluid.animate({path:e.concat(["M",c,g],["A",a,at(m,1),0,0,0,d,g],["L",d,p],["A",a,at(m,1),0,0,0,c,p,"Z"])},i,"easeIn"),v.fluidTop.animate({path:e.concat(["M",u,p],["A",h,m,0,0,0,f,p],["L",f,p],["A",h,m,0,0,0,u,p,"Z"])},i,"easeIn")):(v.fluid.attr({path:e.concat(["M",c,g],["A",a,m,0,0,0,d,g],["L",d,p],["A",a,m,0,0,1,c,p,"Z"])}),v.fluidTop.attr({path:e.concat(["M",u,p],["A",h,m,0,0,0,f,p],["L",f,p],["A",h,m,0,0,0,u,p,"Z"])})))):this._attr(o,a);return v},o=function(){};return function(t,i,a,s,l,c,h,d,u,p,f,g,m){var v,b,y,w,_,C,k,T,L,D,E,P,I,M,O,F,R,$;return Lt(t)&&(i=t.y,a=t.r,s=t.h,l=t.r3dFactor,c=t.parentGroup,h=t.renderer,d=t.fluidHRatio,u=t.conColor,p=t.conAlpha,f=t.fluidColor,g=t.fluidAlpha,t=t.x),l=A(l,.15),x.vml&&(l=l||.001),0<=d&&1>=d||(d=0),p={x:t,y:i,r:a,h:s,r3dFactor:l,renderer:h,fluidHRatio:d,conColor:u=S(u,"FFFFFF"),conAlpha:p=A(p,30),fluidStroke:3,fluidColor:f=S(f,"000000"),fluidAlpha:g=A(g,100)},(c=h.group("graphic",c))._attr=c.attr,c.attr=r,c._setAnimate=n,c.shadow=o,c._3dAttr=p,p=a-1.5,s=(v=i+s)-s*d,y=(d=t-a)+1.5,w=(b=t+a)-1.5,_=d-2,C=b+2,k=a+2,T=(l*=a)+2,D=(L=v+4)+.001,E=B(u,80),P=B(u,90),u=N(u,80),I=B(f,70),f=N(f,70),M=B(I,90),F=t-(O=.85*a),t+=O,O=i+(R=Math.sqrt((1-O*O/(a*a))*l*l)),R=v+R,$=i-1,c.btnBorder=h.path(e.concat(["M",_,L],["A",k,T,0,0,0,C,L],["L",C,D],["A",k,T,0,0,0,_,D,"Z"]),c).attr({"stroke-width":4,stroke:j(E,80)}),c.btnBorder1=h.path(e.concat(["M",d,L],["A",a,l,0,0,0,b,L],["L",b,D],["A",a,l,0,0,0,d,D,"Z"]),c).attr({"stroke-width":4,stroke:j(E,50)}),c.btnBorderLight=h.path(e.concat(["M",d,v],["A",a,l,0,0,0,b,v],["A",a,l,0,0,0,d,v,"Z"]),c).attr({"stroke-width":0,fill:vt({FCcolor:{color:u+U+E+U+u+U+u+U+E+U+I+U+E+U+u,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})}),_=m?u+U+E+U+u+U+E+U+P+U+P+U+E+U+u:u+U+E+U+E+U+E+U+E+U+E+U+E+U+u,c.back=h.path(e.concat(["M",d,v],["A",a,l,0,0,0,b,v],["L",b,i],["A",a,l,0,0,0,d,i,"Z"]),c).attr({"stroke-width":1,stroke:j(E,50),fill:vt({FCcolor:{color:_,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})}),_=m?f+U+I:I+U+I,c.fluid=h.path(e.concat(["M",d,v],["A",a,at(l,1),0,0,0,b,v],["L",b,s],["A",a,at(l,1),0,0,0,d,s,"Z"]),c).attr({"stroke-width":0,fill:vt({FCcolor:{cx:.5,cy:0,r:"100%",color:_,alpha:g+U+g,ratio:"0,100",radialGradient:!0}})}),_=m?f+U+I:I+U+I,c.fluidTop=h.path(e.concat(["M",y,s],["A",p,l,0,0,0,w,s],["L",w,s],["A",p,l,0,0,0,y,s,"Z"]),c).attr({"stroke-width":2,stroke:m?j(f,g):j(M),fill:vt({FCcolor:{cx:.5,cy:.7,r:"100%",color:_,alpha:g+U+g,ratio:"0,100",radialGradient:!0}})}),_=m?u+U+E+U+u+U+u+U+E+U+u+U+E+U+u:E+U+E+U+E+U+E+U+E+U+E+U+E+U+E,c.front=h.path(e.concat(["M",d,v],["A",a,l,0,0,0,b,v],["L",b,i],["A",a,l,0,0,1,d,i,"Z"]),c).attr({"stroke-width":1,stroke:j(E,50),fill:vt({FCcolor:{color:_,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",angle:0}})}),m&&(c.frontLight=h.path(e.concat(["M",d,v],["A",a,l,1,0,0,F,R],["L",F,O],["A",a,l,0,0,1,d,i,"Z"]),c).attr({"stroke-width":0,stroke:"#"+E,fill:vt({FCcolor:{color:_,alpha:"40,0",ratio:"0,100",angle:0}})})),m&&(c.frontLight1=h.path(e.concat(["M",t,R],["A",a,l,0,0,0,b,v],["L",b,i],["A",a,l,1,0,0,t,O,"Z"]),c).attr({"stroke-width":0,stroke:"#"+E,fill:vt({FCcolor:{color:_,alpha:"40,0",ratio:"0,100",angle:180}})})),c.cylinterTop=h.path(e.concat(["M",d,$],["A",a,l,0,0,0,b,$],["L",b,$],["A",a,l,0,0,0,d,$,"Z"]),c).attr({"stroke-width":2,stroke:j(E,40)}),c}}(),d=function(){var t={value:!0},e=0,i=function(t){e=Boolean(t)?t.duration:0},n=function(i,n){var r,o,a,s,l,c,h,d,u,p=this,f=this._3dAttr;if(Dt(i)&&Et(n)&&(r=i,(i={})[r]=n),Dt(i))p=t[i]?p._3dAttr[i]:p._attr(i);else for(r in i)if(o=i[r],t[r]){if(o>=f.minValue&&o<=f.maxValue){if(f[r]=o,a=(o-f.minValue)/f.perLEDValueLength,o=rt(a)*f.sizeGapSum-f.ledGap,f.LEDCase){for(c=(s=p.colorArr).length,l=0;l<c;l+=1)(h=s[l]).maxLEDNoFrac<=a?u=f.LEDLowerFN:d?u=f.LEDUpperFN:(u=void 0,d=h),u&&(h[u](),"show"===u&&h.attr(h.oriShapeArg));d||(d=h),d.show(),d.attr(d.hoverShapeArg)}p.darkShade&&(a={},f.isXChange?(a.width=Math.ceil(f.w-o),f.isIncrement&&(a.x=f.x+o)):(a.height=Math.ceil(f.h-o),f.isIncrement&&(a.y=f.y+o)),e?p.darkShade.animate(a,e,"easeIn"):p.darkShade.attr(a))}}else this._attr(r,o);return p},r=function(){};return function(t,e,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C){var k,T,L,D,E,P,I,M,O,F,R,$,V,H,W,z,q,U,G,Y,X,J,K,Z,Q=function(t){var e,i,n=0;return function(){for(n=0,e=t.colorArr.length;n<e;n+=1)(i=t.colorArr[n]).attr(i.data("rollover"))}},tt=function(t){var e,i,n=0;return function(){for(n=0,e=t.colorArr.length;n<e;n+=1)(i=t.colorArr[n]).attr(i.data("rollout"))}};for(Lt(t)&&(e=t.y,o=t.w,a=t.h,s=t.wGroup,l=t.renderer,c=t.value,h=t.gaugeFillColor,d=t.gaugeBorderColor,u=t.gaugeBorderAlpha,p=t.gaugeBorderThickness,f=t.colorRangeManager,g=t.minValue,m=t.maxValue,v=t.useSameFillColor,b=t.useSameFillBg
49Color,y=t.ledSize,x=t.ledGap,w=t.type,t=t.x),c>=g&&c<=m||(c=g),Z={x:t,y:e,w:o,h:a,wGroup:s,renderer:l,value:c,gaugeFillColor:h=S(h,"FFFFFF"),gaugeBorderColor:d=S(d,"000000").replace(pt,mt),gaugeBorderAlpha:u=A(u,1),gaugeBorderThickness:p=A(p,2),colorRangeManager:f,minValue:g,maxValue:m,ledGap:x,ledSize:y,type:w,useSameFillColor:v,useSameFillBgColor:b},(s=l.group("graphic",s))._attr=s.attr,s.attr=n,s._setAnimate=i,s.shadow=r,s._3dAttr=Z,f=f.getColorRangeArr(g,m),k=t,T=e,D=L=!0,P=x+y,M=(I=x/2)/2,O=(E=2===w||4===w?a:o)-y,F=m-g,m=0,R=f.length,H=V=0,W=!1,q=z="show",U=t,G=e,X=t-(Y=p/2),J=e-Y,K=t+o+Y,Y=e+a+Y,v&&(H+=1,z="hide"),b&&(H+=2,q="hide"),0>O?(v=1,y=E):P=(y+=O%P/(v=parseInt(O/P,10)+1))+x,b=F/v,s.colorArr=[],E=[],1===w?U+=P-x/2:2===w?(D=!1,G+=P-x/2):3===w?(k=t+o,L=!1,U+=P-x/2):(T=e+a,D=L=!1,G+=P-x/2),Z.ledGap=x,Z.ledSize=y,Z.sizeGapSum=P,Z.perLEDValueLength=b,Z.isIncrement=L,Z.isXChange=D,Z.LEDLowerFN=z,Z.LEDUpperFN=q,(Z.LEDCase=H)&&(3===H?$={x:t,y:e,width:o,height:a}:W=!0),s.border=l.path(["M",X,J,"L",K,J,K,Y,X,Y,"Z"],s).attr({stroke:j(d,u),"stroke-width":p}).shadow({apply:_});m<R;m+=1)(d=f[m])&&Et(d.maxvalue)&&(y=(u=rt((d.maxvalue-g)/b))-V,V=u,0<y)&&(p={r:0},W&&($={}),y*=P,D?(p.y=T,p.width=y-x,p.height=a,L?(p.x=k,k+=y):(p.x=k-p.width,k-=y),W&&($.width=p.x-t,L&&1===H||!L&&2===H?($.x=t,$.width+=p.width):$.width=o-$.width),0===m||m===R-1?(p.width+=M,(L&&m===R-1||!L&&0===m)&&(p.x-=M,p.width=Math.ceil(p.width))):(p.width+=I,p.x-=M)):(p.x=k,p.width=o,p.height=y-x,L?(p.y=T,T+=y):(p.y=T-p.height,T-=y),W&&($.height=p.y-e,L&&1===H||!L&&2===H?($.y=e,$.height+=p.height):$.height=a-$.height),0===m||m===R-1?(p.height+=M,(L&&m===R-1||!L&&0===m)&&(p.y-=M,p.height=Math.ceil(p.height))):(p.height+=I,p.y-=M)),(y=l.rect(p.x,p.y,p.width,p.height,s).attr({"stroke-width":0,fill:vt({FCcolor:{color:S(d.code,"000000"),alpha:A(d.alpha,100)}})})).oriShapeArg=p,y.hoverShapeArg=$,y.maxLEDNo=u,y.maxLEDNoFrac=(d.maxvalue-g)/b,C&&(y.data("rollover",{"stroke-width":0,fill:vt({FCcolor:{color:B(S(d.code,"000000"),80)+","+N(S(d.code,"000000"),80),alpha:A(d.alpha,100),angle:w%2?90:0}})}),y.data("rollout",{"stroke-width":0,fill:vt({FCcolor:{color:S(d.code,"000000"),alpha:A(d.alpha,100)}})})),s.colorArr.push(y));for(s.darkShade=l.rect(t,e,o,a,0,s).attr({"stroke-width":0,fill:j(h,50)}),m=1;m<v;m+=1)D?(E.push("M",U,G,"L",U,G+a),U+=P):(E.push("M",U,G,"L",U+o,G),G+=P);return s.LEDGap=l.path(E,s).attr({stroke:j(h,100),"stroke-width":x}),s.tracker=l.rect(t,e,o,a,0,s).attr({fill:et}),C&&s.tracker.hover(Q(s),tt(s)),s.attr({value:c}),s}}(),W("renderer.drawingpad",{deleteme:function(t){this.container.innerHTML="called from drawingpad: "+t}},W["renderer.root"]),W("renderer.widgetbase",{drawLegend:function(){},drawGraph:function(){var t=this.elements,e=this.paper,i=this.layers,n=this.options,r=i.dataset;n.nativeMessage||(i.dataset||(r=t.widgetGroup=i.dataset=e.group("dataset"),i.tracker=e.group("hot"),i.tracker.insertAfter(i.dataset)),i.datalabels||(i.datalabels=e.group("datalabels").insertAfter(r)),r.translate(this.canvasLeft,this.canvasTop),i.datalabels.translate(this.canvasLeft,this.canvasTop),
50n.tooltip&&!1!==n.tooltip.enabled&&e.tooltip(n.tooltip.style,n.tooltip.shadow,n.tooltip.constrain),this.drawWidget(),this.drawScale(),this.drawValue())},drawWidgetValue:function(){},drawValue:function(t,e){var i,n=this.options,r=e||n.plotOptions.series.animation;if((n=n.series&&n.series[0]&&n.series[0].data||[]).length){if(t&&(i=t.length))for(;i--;)n[i]&&(n[i]=t[i]);this.drawWidgetValue(n,r),this.drawWidgetLabel(n,r)}},drawWidgetLabel:function(t){var e=this.paper,i=(o=this.options).chart,n=this.elements,r=this.layers;t=t[0];r=r.datalabels||(r.datalabels=e.group("datalabels").insertAfter(r.dataset));var o,a=this.canvasWidth,s=this.canvasHeight,l=i.valuePadding,c=t.displayValue,h=A(i.yScaleRadius,0),d={fontFamily:(o=o.plotOptions.series.dataLabels.style).fontFamily,fontSize:o.fontSize,lineHeight:o.lineHeight,fontWeight:o.fontWeight,fontStyle:o.fontStyle};s=s+l+h;null!==t.y&&!isNaN(t.y)&&Et(c)&&c!==w&&(n.dataLabel?n.dataLabel.attr({text:c}):n.dataLabel=e.text(r).attr({"vertical-align":"top",text:c,x:a/2,y:s,"text-anchor":zt[$t],fill:o.color,direction:i.textDirection,"text-bound":[o.backgroundColor,o.borderColor,o.borderThickness,o.borderPadding,o.borderRadius,o.borderDash]}).css(d).tooltip(t.originalText),0>(e=n.dataLabel.getBBox()).x+i.spacingLeft&&(e=e.width-i.spacingLeft,i.origW<e&&(e=i.origW-i.spacingLeft),n.dataLabel.attr({x:e/2})))},drawScale:function(){var t,e=this.paper,i=this.elements,n=this.layers.dataset,r=this.options,o=this.canvasWidth,a=this.canvasHeight,s=r.scale,l=s.minorTM,c=(r=r.chart.textDirection,s.min),h=s.max,d=s.majorTM,u=s.axisPosition,p=s.minorTMHeight,f=s.majorTMHeight,g
50=s.connectorColor,m=s.connectorThickness,v=s.minorTMColor,b=s.minorTMThickness,y=s.majorTMColor,x=s.majorTMThickness,_=s.tickMarkDistance,C=s.tickValueDistance,S=s.placeTicksInside,k=s.placeValuesInside,A=Math.max(f,p),T=(n=i.scaleGroup||(i.scaleGroup=e.group("scale",n)),Ft),L=$t,D=s.reverseScale,E=c,P=b/2,I=x/2,M=(c=h-c,0),O=0,F=0,R=0,B=0,N=0,j=0,$=0,V=0,H=0,W=0,z=0,q=0,U=0,G=0,Y=0,X={},J=this.smartLabel;switch(S?(_=-_,f=-f,p=-p,k?(A=-A,C=-C):A=-_):k&&(A=-_,C=-C),D&&(c=-c,E=h),u){case 1:M=o/c,N=(R=-_)-I,$=R-P,H=R-f,z=R-p,U=R-A-C,T=Ft,L=k?Rt:Bt;break;case 2:O=a/c,B=(F=_)+I,j=F+P,V=F+f,W=F+p,q=F+A+C,G=o,T=k?Nt:jt,L=$t;break;case 3:M=o/c,N=(R=_)+I,$=R+P,H=R+f,z=R+p,U=R+A+C,Y=a,T=Ft,L=k?Bt:Rt;break;case 4:O=a/c,B=(F=-_)-I,j=F-P,V=F-f,W=F-p,q=F-A-C,T=k?jt:Nt,L=$t}if(i.minorTM||(i.minorTM=[]),i.majorTM||(i.majorTM=[]),this.tmLabel||(i.tmLabel=[]),p)for(o=0,h=l.length;o<h;o+=1)_=(f=l[o]-E)*M,f*=O,i.minorTM[o]=e.path(["M",_+j,f+$,"L",_+W,f+z],n).attr({"shape-rendering":kt[1>b],stroke:v,"stroke-linecap":"round","stroke-width":b});for(o=0,h=d.length;o<h;o+=1)if(f=(b=d[o]).value-E,W=b.displayValue,_=f*M,f*=O,p&&(i.majorTM[o]=e.path(["M",_+B,f+N,"L",_+V,f+H],n).attr({"shape-rendering":kt[1>x],stroke:y,"stroke-linecap":"round","stroke-width":x})),W!==w){if(v=0===o||o===h-1?s.limitValues.style:s.tickValues.style,l=b.labelX||0,j=_+q,J.getSmartText(W),z=J.getSmartText(W.charAt(0)).height,$=f+U,D?(o==d.length-1?(f=(a=d[o-1]).value-E,a=(f*=O)+U,a-=z/2):o||(f=(a=d[o+1]).value-E,a=$-(a=(f*=O)+U)-z/2),a=Math.max(a,z),W=J.getSmartText(W,Number.POSITIVE_INFINITY,a),z=J.getSmartText(W.text).height,o==d.length-1&&.5*z>this.canvasTop?$=.5*z-this.canvasTop:!o&&.5*z>this.chartHeight-this.canvasBottom&&($-=.5*z-(this.chartHeight-this.canvasBottom))):W=this.smartLabel.getSmartText(W,Number.POSITIVE_INFINITY,a),X[o]=W.width,1===u||3===u)if(z=o===h-1?j+l-W.width:j-(W.width/2+l),0===o?f=Number.NEGATIVE_INFINITY:(C=C=_=void 0,0>(f=void 0===t?o-1:t)?f=Number.NEGATIVE_INFINITY:(_=i.tmLabel[f],C=X[f],C=0===f?_?_.node.scrollWidth&&_.node.scrollWidth>C?_.node.scrollWidth:C:0:_?_.node.scrollWidth?(_.node.scrollWidth>C?_.node.scrollWidth:C)/2:C/2:0,f=_?_.attrs.x+C:0)),f>=z){if(o!==h-1)continue;i.tmLabel[t].remove()}else t=o;i.tmLabel[o]=e.text(j+l,$,W.text,n).attr({"text-anchor":zt[b.align||T],direction:r,"vertical-align":L}).css(v).tooltip(W.tooltext)}return m&&(i.tmConnector=e.path(["M",F,R,"L",c*M+F,c*O+R],n).attr({"shape-rendering":kt[1>m],stroke:g,"stroke-linecap":"round","stroke-width":m})),n.translate(G,Y),n},realtimeUpdate:function(t){if(t===this.lastUpdatedObj)return!1;var e,i=this.options,n=i.series,r=this.logic,o=(n=n&&n[0]&&n[0].data,t.values||[]),a=t.labels||[],s=t.toolTexts||[],l=t.showLabels||[],c=n&&n.length||0,h=[];if(c){for(;c--;)e={},void 0!==o[c]&&""!==o[c]?(e.value=o[c],e.hasNewData=!0):e.value=n[c].y,a[c]&&(e.displayvalue=a[c],e.hasNewData=!0),s[c]&&(e.tooltext=s[c],e.hasNewData=!0),e.hasNewData&&(h[c]=r.getPointStub(e,c,i,this.definition)),"0"!=l[c]&&n[c].displayValue||(h[c].displayValue=w);return h.length&&(this.lastUpdatedObj=t)&&this.drawValue(h),Boolean(h.length)}}},W["renderer.root"]),W("renderer.bulb",{drawWidget:function(){var t,e,i=this,n=(t=i.options).chart,r=i.paper,o=i.elements,a=n.gaugeRadius,s=(t=t.series[0]&&t.series[0].data&&t.series[0].data[0]||{}).rolloverProperties||{},l={cx:n.gaugeOriginX,cy:n.gaugeOriginY,stroke:t.borderColor,"stroke-linecap":"round","stroke-width":t.borderWidth,r:n.animation?.001:a},c={r:a};null===t.y||isNaN(t.y)||(e=o.bulb=(e=o.bulb)?e.attr(l):r.circle(l,i.layers.dataset),n.animation&&e.animate(c,n.animation.duration,"easeIn"),e.click((function(t){Ct.call(this,i,t)})).hover((function(t){Ct.call(this,i,t,"DataPlotRollOver")}),(function(t){Ct.call(this,i,t,"DataPlotRollOut")})),s.enabled&&e.mouseover((function(){e.attr(s.hoverAttr),s.hoverAnimAttr&&e.animate(s.hoverAnimAttr,100,"easeIn")}
50)).data("hoverAttr",s.hoverAttr).mouseout((function(){e.attr(s.outAttr),s.hoverAnimAttr?e.animate(c,100,"easeIn"):e.attr(c)})).data("outAttr",s.outAttr))},drawWidgetValue:function(t){var e=this.elements,i=(t=t[0]).rolloverProperties||{},n=i.hoverAttr,r=i.outAttr,o={fill:vt(t.color),ishot:!0},a=(e=e.bulb).data("hoverAttr"),s=e.data("outAttr");i.enabled&&(n&&n.stroke&&(a.stroke=n.stroke,s.stroke=r.stroke),n&&n.fill&&(a.fill=n.fill,s.fill=r.fill)),e||this.drawWidget(),i={value:t.y,displayValue:t.displayValueArgs,toolText:t.toolText},null===t.y||isNaN(t.y)||e.attr(o).tooltip(t.toolText).data("eventArgs",i)},drawScale:function(){},drawWidgetLabel:function(t){var e=this.options.chart,i=this.paper,n=this.elements,r=this.layers,o=e.gaugeRadius,a=e.gaugeOriginX,s=e.gaugeOriginY;t=t[0];var l=n.dataLabel,c=e.dataLabels.style,h={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle};r.datalabels||(r.datalabels=i.group("datalabels").insertAfter(r.dataset)),e.placeValuesInside?(r=s,o=$t):(r=s+o+e.valuePadding,o=Rt),null===t.y||isNaN(t.y)||t.displayValue===w||(l||(n.dataLabel=l=i.text(this.layers.dataset)),l.attr({text:t.displayValue,"text-anchor":"middle",x:a,y:r,"vertical-align":o,fill:c.color,direction:e.textDirection,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]}).css(h).tooltip(t.originalText))}},W["renderer.widgetbase"]),W("renderer.thermometer",{drawWidget:function(){var t,e=this.options,i=e.chart,n=this.paper,r=e.series[0].data[0],o=i.plotHoverEffects||{},a=i.thmBulbRadius,s=.643*a,l=(h=new Ut(r.color)).get("hex").replace(pt,w),h=100*h.get("a");r.minValue=e.scale.min,r.maxValue=e.scale.max,t=this.elements.thermometer=c(0+s,0-s,a,i.thmHeight,this.layers.dataset,n,0,i.thmGlassColor,i.gaugeBorderColor,i.gaugeBorderThickness,l,h,i.use3DLighting),o.enabled&&t.data("hoverInAttrs",{fluidColor:o.thmFillHoverColor,fluidAlpha:o.thmFillHoverAlpha}).data("hoverOutAttrs",{fluidColor:l,fluidAlpha:h}).hover((function(){t.attr(t.data("hoverInAttrs"))}),(function(){t.attr(t.data("hoverOutAttrs"))}))},drawWidgetValue:function(t,e){var i,n=this,r=n.elements,o=(s=n.options.scale).max,a=s.min,s=t[0];o=(A(s.y,a)-a)/(o-a);if(r.thermometer||n.drawWidget(),s.fluidHRatio=o,a={value:s.y,displayValue:s.displayValueArgs,toolText:s.toolText},e&&r.thermometer._setAnimate(e),r.thermometer.attr({fluidHRatio:o,ishot:!0}).click((function(t){Ct.call(this,n,t)})).hover((function(t){Ct.call(this,n,t,"DataPlotRollOver")}),(function(t){Ct.call(this,n,t,"DataPlotRollOut")})).data("eventArgs",a),s.toolText&&(i=r.thermometer.bottom))do{i.tooltip(s.toolText)}while(i=i.next)}},W["renderer.widgetbase"]),W("renderer.cylinder",{drawWidget:function(){var t,e,i,n=(t=this.options).chart,r=n.plotHoverEffects||{},o=this.paper,a=this.elements,s=this.layers.dataset,l=t.scale,c=l.max;(t=t.series[0].data[0]).minValue=l.min,t.maxValue=c,a.cylinder=h(n.cylRadius,0,n.cylRadius,n.cylHeight,n.cylYScale,s,o,0,n.cylGlassColor,"100",n.cylFillColor,n.cylFillAlpha,n.cyl3DLighting),r.enabled&&(e={color:r.cylFillHoverColor,alpha:r.cylFillHoverAlpha},i={color:n.cylFillColor,alpha:n.cylFillAlpha},a.cylinder.hover((function(){a.cylinder.attr(e)}),(function(){a.cylinder.attr(i)})))},drawWidgetValue:function(t,e){var i,n=this,r=n.elements,o=(s=n.options.scale).max,a=s.min,s=t[0];o=(A(s.y,a)-a)/(o-a);if(r.cylinder||n.drawWidget(),a={value:s.y,displayValue:s.displayValueArgs,toolText:s.toolText},s.fluidHRatio=o,e&&r.cylinder._setAnimate(e),r.cylinder.attr({fluidHRatio:o,ishot:!0}).click((function(t){Ct.call(this,n,t)})).hover((function(t){Ct.call(this,n,t,"DataPlotRollOver")}),(function(t){Ct.call(this,n,t,"DataPlotRollOut")})).data("eventArgs",a),s.toolText&&(i=r.cylinder.bottom))do{i.tooltip(s.toolText)}while(i=i.next)}},W["renderer.widgetbase"]),W("renderer.led",{drawWidget:function(){var t=this.options,e=this.paper,i=this.logic,n=t.chart,r=this.elements,o=t.scale,a=o.max,s=o.min,l=(t=t.series[0].data[0],this.layers.dataset);t.minValue=s,t.maxValue=a,r.led=d(0,0,this.canvasWidth,this.canvasHeight,l,e,0,n.gaugeFillColor,n.gaugeBorderColor,n.gaugeBorderAlpha,n.gaugeBorderThickness,i.colorRangeGetter,s,a,n.use
50SameFillColor,n.useSameFillBgColor,n.ledSize,n.ledGap,i.isHorizontal?o.reverseScale?3:1:o.reverseScale?4:2,n.showShadow,n.plotHoverEffect)},drawWidgetValue:function(t,e){var i=this.elements,n=t[0].y;i.led||this.drawWidget(),e&&i.led._setAnimate(e),i.led.attr({value:n})}},W["renderer.widgetbase"]),W("renderer.bullet",{drawWidget:function(){var t,e,i,n,r,o,a,s,l=this.options,c=this.paper,h=this.logic,d=l.chart,u=l.scale,p=(l=this.elements,this.layers.dataset),f=this.canvasWidth,g=this.canvasHeight,m=u.min,v=u.max,b=u&&u.trendPoint||[],y=d.colorRangeFillMix,x=d.colorRangeFillRatio,w=d.colorRangeBorderColor,_=d.colorRangeBorderAlpha,C=d.colorRangeBorderThickness,S=h.colorRangeGetter.getColorRangeArr(m,v),k=(d=d.showShadow,h.colorManager);for(l.linear||(l.linear=t=c.group("colorrange",p),l.outerRect=c.rect(t)),l.outerRect.attr({x:0,y:0,width:f,height:g,stroke:"none",r:0}),1===(h=h.isHorizontal?u.reverseScale?3:1:u.reverseScale?4:2)?(p=function(t,e){return{x:t*f/(v-m),y:0,width:(e-t)*f/(v-m),height:g}},e=270):2===h?(p=function(t,e){return{x:0,y:t*g/(v-m),width:f,height:(e-t)*g/(v-m)}},e=180):3===h?(p=function(t,e){return{x:f-e*f/(v-m),y:0,width:(e-t)*f/(v-m),height:g}},e=270):(p=function(t,e){return{x:0,y:g-e*g/(v-m),width:f,height:(e-t)*g/(v-m)}},e=180),l.colorRangeElems||(l.colorRangeElems=[]),h=0,u=S.length;h<u;h+=1)r=p((n=S[h]).minvalue-m,n.maxvalue-m),n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height,i=n.code,i=j(L(i,w),_),o=k.parseColorMix(n.code,y),a=k.parseAlphaList(n.alpha,o.length),s=A(n.borderAlpha,_),n=a.split(U),n=at.apply(Math,n),n=at(C&&s||0,n),l.colorRangeElems[h]||(l.colorRangeElems[h]=c.rect(t)),l.colorRangeElems[h].attr({x:r.x,y:r.y,width:r.width,height:r.height,r:0,"stroke-width":C,stroke:i,fill:vt({FCcolor:{color:o.toString(),ratio:x,alpha:a,angle:e}})}).shadow({apply:d,opacity:n/100});for(;l.colorRangeElems[h];)l.colorRangeElems[h].remove(),l.colorRangeElems.splice(h,1);for(l.trendObjElems||(l.trendObjElems=[]),h=0,u=b.length;h<u;h+=1)r=p((y=b[h]).startValue-m,y.endValue-m),y.isZone?(l.trendObjElems[h]||(l.trendObjElems[h]=c.rect(t)),l.trendObjElems[h].attr({x:r.x,y:r.y,width:0<r.width?r.width:0,height:0<r.height?r.height:0,r:0,fill:vt({FCcolor:{color:y.color,alpha:y.alpha}})})):l.trendObjElems[h]=this.path(["M",r.x,r.y,"L",r.x,r.y+r.height],t).attr({stroke:j(y.color,y.alpha),"stroke-width":y.thickness,"stroke-dasharray":y.dashStyle});for(;l.trendObjElems[h];)l.trendObjElems[h].remove(),l.trendObjElems.splice(h,1)},drawWidgetValue:function(t){var e,i,n,r=this,o=r.paper,a=r.layers.dataset,s=r.canvasWidth,l=r.canvasHeight,c=r.options.scale,h=c.max,d=c.min,u=h-d,p=t[0],f=t[1],g=c&&c.trendPoint||[],m=f.borderWidth,v=r.logic.isHorizontal;i=t.length;var b,y,x,w,_,C,S=0,k=0,T=0,L=0,D=d;for(v?(S=s/u,L=l/2):(k=l/u,T=s/2),c.reverseScale&&(S=-S,k=-k,D=h);i--;)n=t[i],c=A(n.y,D)-D,n.plotX=n.origX=c*S+T,n.plotY=n.origY=c*k+L;for(i=g.length;i--;)c=(n=g[i]).startValue-d,n.plotX=n.origX=c*S+T,n.plotY=n.origY=c*k+L;c=function(t){return{x:(t=A(t,D)-D)*S+T,y:t*k+L}}(Math.min(Math.max(d,0),h)),Et(p.y)&&(p.plotAsDot?(g=i=p.plotFillPercent/100*(v?l:s),t=p.plotX-i/2,h=p.plotY-g/2,v?(p.animInitAttr={x:c.x},p.animAttr={x:t}):(p.animInitAttr={y:c.y},p.animAttr={y:h})):(t=Math.min(p.plotX,c.x),h=Math.min(p.plotY,c.y),g=Math.abs(p.plotY-c.y),i=Math.abs(p.plotX-c.x),v?(p.animInitAttr={x:c.x,width:0},p.animAttr={x:t,width:i},h-=(g=p.plotFillPercent/100*l)/2):(p.animInitAttr={y:c.y,height:0},p.animAttr={y:h,height:g},t-=(i=p.plotFillPercent/100*s)/2)),d={link:n.link,value:p.y,displayValue:p.displayValueArgs,toolText:n.toolText},n.shapeType="rect",n.shapeArgs={x:t,y:h,height:g,width:i,endY:e,r:0},(x=p.rolloverProperties||{}).enabled&&void 0!==x.plotFillHoverPercent&&(x.showHoverAnimation?(b={},y={}):(b=x.hoverAttr,y=x.outAttr),p.plotAsDot?(b.width=b.height=x.plotFillHoverPercent/100*(v?l:s),b.x=p.plotX-b.width/2,b.y=p.plotY-b.width/2,y.width=y.height=i,y.x=t,y.y=h):v?(b.height=x.plotFillHoverPercent/100*l,b.y=Math.min(p.plotY,c.y)-b.height/2,y.height=g,y.y=h):(b.width=x.plotFillHoverPercent/100*s,b.x=Math.min(p.plotX,c.x)-b.width/2,y.width=i,y.x=t)),n.graphic=o.rect(t,h,i,g,0,a).attr({fill:n.color,stroke:n.borderColor,ishot:!0,"stroke-width":n.borderWidth}).click((function(t){Ct.call(this,r,t)})).hover((function(t){Ct.call(this,r,t,"DataPlotRollOver"),x.enabled&&(this.attr(x.hoverAttr),x.showHoverAnimation&&this.animate(b,100,"easeOut"))}),(function(t){Ct.call(this,r,t,"DataPlotRollOut"),x.enabled&&(this.attr(x.outAttr),x.showHoverAnimation&&this.animate(y,100,"easeOut"))})).tooltip(n.toolText).data("eventArgs",d)),Et(f.y)&&(v?(g=(i=l*f.targetFillPercent/100)/2,p=t=f.plotX,d=h=f.plotY-g,e=f.plotY+g,g=i,i=m,n=t-m/2,c=[t+m,f.plotY]):(g=(i=s*f.targetFillPercent/100)/2,n=t=f.plotX-g,h=e=f.plotY,p=f.plotX+g,g=m,d=h-m/2,c=[f.plotX,h+m+10]),f.shapeType="rect",f.tooltipPos=c,f.trackerArgs={x:n,y:d,height:g,width:i,r:0},f.shapeArgs=["M",t,h,"L",p,e],f.animInitAttr={d:["M",f.plotX,f.plotY,"L",f.plotX,f.plotY]},f.animAttr={d:f.shapeArgs},d={link:f.link,value:f.y,displayValue:f.displayValueArgs,toolText:f.toolText},(w=f.rolloverProperties||{}).enabled&&void 0!==w.plotFillHoverPercent&&(w.showHoverAnimation?(C={},_={d:f.shapeArgs}):(C=w.hoverAttr,w.outAttr.d=f.shapeArgs),v?(g=(i=l*f.plotFillHoverPercent/100)/2,C.d=["M",t,f.plotY-g,"L",p,f.plotY+g]):(g=(i=s*f.plotFillHoverPercent/100)/2,C.d=["M",f.plotX-g,h,"L",f.plotX+g,e])),f.graphic=o.path(f.shapeArgs,a).attr({stroke:f.borderColor,"stroke-width":m,"stroke-linecap":"round",ishot:!0,"shape-rendering":kt[1>m]}).click((function(t){Ct.call(this,r,t)})).hover((function(t){Ct.call(this,r,t,"DataPlotRollOver"),w.enabled&&(this.attr(w.hoverAttr),w.showHoverAnimation&&this.animate(C,100,"easeOut"))}),(function(t){Ct.call(this,r,t,"DataPlotRollOut"),w.enabled&&(this.attr(w.outAttr),w.showHoverAnimation&&this.animate(_,100,"easeOut"))})).tooltip(f.toolText).data("eventArgs",d))}},W["renderer.widgetbase"]),W("renderer.hbullet",{drawWidgetLabel:function(t){var e=(o=this.options).chart,i=this.layers,n=this.paper,r=i.datalabels;t=t[0];var o,a=this.canvasWidth,s=this.canvasHeight,l=e.valuePadding,c={fontFamily:(o=o.plotOptions.series.dataLabels.style).fontFamily,fontSize:o.fontSize,lineHeight:o.lineHeight,fontWeight:o.fontWeight,fontStyle:o.fontStyle};r||(r=i.datalabels=n.group("datalabels").insertAfter(i.dataset)),i=a+l,void 0===t.y||isNaN(t.y)||t.displayValue===w||(t.dataLabel=n.text(i,s/2,t.displayValue,r).attr({"text-anchor":zt[jt],fill:o.color,direction:e.textDirection,"text-bound":[o.backgroundColor,o.borderColor,o.borderThickness,o.borderPadding,o.borderRadius,o.borderDash]}).css(c).tooltip(t.originalText))}},W["renderer.bullet"]),W("renderer.hlinear",{drawWidget:function(){var t,e,i,n,r,o,a,s,l,c=this.options,h=this.paper,d=this.logic,u=c.chart,p=c.scale,f=(c=this.elements,this.layers.dataset),g=this.canvasWidth,m=this.canvasHeight,v=p.min,b=p.max,y=(p=p&&p.trendPoint||[],u.colorRangeFillMix),x=u.colorRangeFillRatio,w=u.colorRangeBorderColor,_=u.colorRangeBorderAlpha,C=u.colorRangeBorderThickness,k=d.colorRangeGetter.getColorRangeArr(v,b),T=u.showShadow,D=this.pointOrientation={top:1,bottom:3},E=d.colorManager;for(c.linear||(c.linear=e=h.group("colorrange",f),c.outerRect=h.rect(e)),c.outerRect.attr({x:0,y:0,width:g,height:m,stroke:"none",r:0}),i=function(t,e){return{x:t*g/(b-v),y:0,width:(e-t)*g/(b-v),height:m}}
50,c.colorRangeElems||(c.colorRangeElems=[]),d=0,t=k.length;d<t;d+=1)o=i((r=k[d]).minvalue-v,r.maxvalue-v),r.x=o.x,r.y=o.y,r.width=o.width,r.height=o.height,n=r.code,n=j(L(S(r.bordercolor,n),w),A(r.borderalpha,_)),a=E.parseColorMix(r.code,y),s=E.parseAlphaList(r.alpha,a.length),r=A(r.borderAlpha,_),l=s.split(U),l=at.apply(Math,l),l=at(C&&r||0,l),c.colorRangeElems[d]||(c.colorRangeElems[d]=h.rect(e)),c.colorRangeElems[d].attr({x:o.x,y:o.y,width:o.width,height:o.height,r:0,"stroke-width":C,stroke:n,fill:vt({FCcolor:{color:a.toString(),ratio:x,alpha:s,angle:270}})}).shadow({apply:T,opacity:l/100});for(;c.colorRangeElems[d];)c.colorRangeElems[d].remove(),c.colorRangeElems.splice(d,1);for(c.trendObjElems||(c.trendObjElems=[]),d=0,t=p.length;d<t;d+=1)o=i((y=p[d]).startValue-v,y.endValue-v),y.isZone?(c.trendObjElems[d]||(c.trendObjElems[d]=h.rect(e)),c.trendObjElems[d].attr({x:o.x,y:o.y,width:0<o.width?o.width:0,height:0<o.height?o.height:0,r:0,"stroke-width":0,fill:vt({FCcolor:{color:y.color,alpha:y.alpha}})}).tooltip(y.tooltext)):c.trendObjElems[d]=h.path(["M",o.x,o.y,"L",o.x,o.y+o.height],e).attr({stroke:j(y.color,y.alpha),"stroke-width":y.thickness,"stroke-dasharray":y.dashStyle}).tooltip(y.tooltext),y.useMarker&&(y.showOnTop?(w="bottom",x=0):(w="top",x=m),w=90*D[w],y.graphic=h.polypath(3,o.x,x,y.markerRadius,w,0,f).attr({fill:y.markerColor,stroke:y.markerBorderColor,"stroke-width":1}).shadow({apply:u.showShadow}).tooltip(y.tooltext));for(;c.trendObjElems[d];)c.trendObjElems[d].remove(),c.trendObjElems.splice(d,1)},drawWidgetValue:function(t,e){var i=t&&t.length||0,n=this.options.chart,r=this.pointOrientation,o={point:[],showPointerShadow:n.showPointerShadow};n=n.pointerOnOpp?"top":"bottom";for(this.dataById={};i--;)o.point[i]={startAngle:90*r[n]};this.drawPointerValues(null,e,o)},drawPointerValues:function(t,e,i){var n=this;t=n.layers.dataset;var r,o,a,s,l,c,h,d,u,p,f=n.options,g=n.elements,m=n.paper,v=f.scale,y=f.series&&f.series[0]&&f.series[0].data||[],x=n.canvasWidth,w=n.canvasHeight,_=(w=f.chart.pointerOnOpp?w:0,f.chart.showPointerShadow),C=(f=!1!==f.tooltip.enabled,(v.max-v.min)/x),S=v.min,k=v.max,T=y.length,L={pageX:0,pageY:0},D=function(t){o=n.fusionCharts.getDataJSON(),this.dragStartX=t},E=function(){var t,e=n.fusionCharts;(t=e&&e.jsVars)&&(t._rtLastUpdatedData=e.getDataJSON()),b.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:o.values,source:"editMode",url:null},e);try{Z.FC_ChartUpdated&&Z.FC_ChartUpdated(e.id)}catch(t){setTimeout((function(){throw t}),1)}this.graphic.tooltip(this.toolText)},P=function(t,e,i,r,o){t=xt&&(xt&&o.sourceEvent&&o.sourceEvent.touches&&o.sourceEvent.touches[0]||o)||L;var a=0,s=[];for((r=(e=A(this.y,v.min))-(this.dragStartX-i)*C)<v.min?r=v.min:r>v.max&&(r=v.max);a<this.index;a+=1)s.push("");s.push(r),e!==r&&n.realtimeUpdate({values:s},{duration:0})&&(this.updatedValStr=s.join("|"),this.dragStartX=i||o.pageX||t.pageX)};for(d=function(t){Ct.call(this,n,t)},u=function(t){var e=this.data("rolloverProperties");e.enabled&&(this.attr(e.hoverAttr),e.hoverAnimAttr&&this.animate(e.hoverAnimAttr,100,"easeIn")),Ct.call(this,n,t,"DataPlotRollOver")},p=function(t){var e=this.data("rolloverProperties");e.enabled&&(this.attr(e.outAttr),e.outAnimAttr&&this.animate(e.outAnimAttr,100,"easeIn")),Ct.call(this,n,t,"DataPlotRollOut")};T--;)c=(r=y[T]).rolloverProperties||{},s=i&&i.point[T]&&i.point[T].startAngle||r._startAngle,s+=.2,g.pointers||(g.pointers=[]),g.pointers[T]||(void 0!==r.id&&(n.dataById[r.id]={index:T,point:r}),a=!!_&&{opacity:Math.max(r.bgalpha,r.borderalpha)/100},h={link:l=r.editMode?void 0:r.link,value:r.y,displayValue:r.displayValueArgs,toolText:r.toolText},r.graphic=g.pointers[T]=m.polypath(r.sides,0,w||0,r.radius,s,0,t).attr({fill:r.color,stroke:r.borderColor,ishot:!0,r:r.radius,"stroke-width":r.borderWidth}).shadow(!!a,a&&a.opacity).click(d).hover(u,p).data("eventArgs",h).data("rolloverProperties",c),l&&r.graphic.css({cursor:"pointer",_cursor:"hand"}),r._startAngle=s,r.editMode&&(r.index=T,r.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),r.graphic.drag(P,D,E,r,r,r))),r.graphic=g.pointers[T],f&&r.graphic.tooltip(r.toolText),e&&e.duration?r.graphic.animate({polypath:[r.sides,x*(A(r.y,S)-S)/(k-S),w||0,r.radius,s,0]},e.duration,"easeIn"):r.graphic.attr({polypath:[r.sides,x*(A(r.y,S)-S)/(k-S),w||0,r.radius,s,0]})},drawWidgetLabel:function(t,e){var i,n=(O=this.options).scale,r=this.layers,o=this.paper,a=O.chart,s=this.logic,l=(r=r.datalabels||(r.datalabels=o.group("datalabels").insertAfter(r.dataset)),n.min),c=n.max,h=a.textDirection,d=s.colorRangeGetter.getColorRangeArr(l,c),u=(s=s.numberFormatter,a.colorRangeStyle.style||{}
50),p=this.canvasWidth,f=this.canvasHeight,g=a.marginRight,m=(n=n&&n.trendPoint||[],a.pointerOnOpp),v=a.valueInsideGauge;i=a.showGaugeLabels;var b,y,x,_,C,k,T,L,D,E=O.plotOptions.series.dataLabels.style;L=!1;var P,I,M,O=this.smartLabel;M=A(parseInt(E.fontHeight,10),parseInt(E.lineHeight,10),12);var F,R=a.valuePadding+.5*M,B=(a=a.valuePadding,R);E={fontFamily:E.fontFamily,fontSize:E.fontSize,lineHeight:E.lineHeight,fontWeight:E.fontWeight,fontStyle:E.fontStyle},R=v===m?R-M/4:R+M/4;if(O.setStyle(E),I=O.getOriSize("W...").width,_=this.getPointerLabelXY=function(t,e,i,n,r){return(F=(t-l)*p/(c-l))+r>p+g&&(F=p-r+g),{x:F,y:e=i?e?f-n-R:f+R:e?R:-(R+n),align:"middle"}},C=function(t,e){return{x:(t-l+(e-t)/2)*p/(c-l),y:f/2,width:(e-t)*p/(c-l),height:f}},t&&t.length)for(E=t.length;E--;)if(0!==(x=t[E]).showvalue&&x.displayValue!==w&&(P=O.getOriSize(x.displayValue),x.setWidth&&(P=O.getSmartText(x.displayValue,x.setWidth,P.height,!0)),k=this.getPointerLabelXY(x.y,v,m,P.height/2,P.width/2),x.isLabelString)){for(L=!1,D=1;!L&&(T=t[E+D]);)T.isLabelString?L=!0:D+=1;T&&(L=O.getOriSize(T.displayValue),D=(b=_(T.y,v,m,L.height/2)).x-L.width/2-(k.x+P.width/2),b=b.x-k.x,0>D&&((y=P.width+D)>b&&(x.setWidth=y=b),y>I?(k=x.setWidth&&x.setWidth<=y?O.getSmartText(x.displayValue,x.setWidth,P.height,!0):O.getSmartText(x.displayValue,y,P.height,!0),x.displayValue=k.text,k.tooltext&&(x.originalText=k.tooltext)):(k=O.getSmartText(x.displayValue,I,P.height,!0),x.displayValue=k.text,k.tooltext&&(x.originalText=k.tooltext),D=2*D+I-4),x.setWidth=null,y=L.width+D-4,T.setWidth=y>b?b:y>I?y:I)),x.setWidth&&(k=O.getSmartText(x.displayValue,x.setWidth,P.height,!0),x.displayValue=k.text,k.tooltext&&(x.originalText=k.tooltext),x.setWidth=null)}if(this.drawPointerLabels(null,e),u=u||{},O.setStyle(u),d&&i)for(E=0,m=d.length;E<m;E+=1)i=d[E],v=S(i.label,i.name),Et(v)&&v!==w&&(P=(k=C(i.minvalue,i.maxvalue)).width-4>I&&k.height-4>M?O.getSmartText(v,k.width-4,k.height-4):O.getSmartText(v,k.width,k.height),o.text(r).attr({"text-anchor":$t,"vertical-align":$t,text:P.text,x:k.x,y:k.y,direction:h,fill:u.color}).css(u).tooltip(P.tooltext));if(n)for(E=0,m=n.length;E<m;E+=1){for((d=n[E]).displayValue=S(d.displayValue,s.dataLabels(d.startValue)),O.setStyle(d.style),M=O.getOriSize("Wg").height,P=O.getOriSize(d.displayValue),k=_(d.startValue,0,!d.showOnTop),d.setWidth&&(P=O.getSmartText(d.displayValue,d.setWidth,P.height,!0)),L=!1,D=1;!L&&(T=n[E+D]);)T.showOnTop===d.showOnTop?L=!0:D+=1;T&&(L=O.getOriSize(T.displayValue),0>(D=(b=_(T.startValue,0,!T.showOnTop)).x-L.width/2-(k.x+P.width/2))&&(b=b.x-k.x,(y=P.width+D)>b&&(d.setWidth=y=b),y>I?(P=d.setWidth&&d.setWidth<=y?O.getSmartText(d.displayValue,d.setWidth,P.height,!0):O.getSmartText(d.displayValue,P.width+D-4,P.height,!0),d.displayValue=P.text,P.tooltext&&(d.originalText=P.tooltext)):(P=O.getSmartText(d.displayValue,I,P.height,!0),d.displayValue=P.text,P.tooltext&&(d.originalText=P.tooltext),D=2*D+I-4),d.setWidth=null,y=L.width+D-4,T.setWidth=y>b?b:y>I?y:I)),d.setWidth&&(P=O.getSmartText(d.displayValue,d.setWidth,P.height,!0),d.displayValue=P.text,P.tooltext&&(d.originalText=P.tooltext),d.setWidth=null),M=d.showOnTop?-(a+P.height/2):f+B,u=d.isZone?C(d.startValue,d.endValue).x:k.x,d.dataLabel=o.text(0,M,d.displayValue,r).attr({"text-anchor":zt[k.align],direction:h}).css(d.style).tooltip(d.originalText),d.dataLabel.attr({x:u})}},drawPointerLabels:function(t,e){for(var i,n,r,o,a=this.layers.datalabels,s=this.paper,l=(d=(f=this.options).chart).marginLeft,c=d.pointerOnOpp,h=d.valueInsideGauge,d=d.textDirection,u=this.smartLabel,p=f.series&&f.series[0]&&f.series[0].data||[],f=f.plotOptions.series.dataLabels.style,g=p.length,m={fontFamily:f.fontFamily,fontSize:f.fontSize,lineHeight:f.lineHeight,fontWeight:f.fontWeight,fontStyle:f.fontStyle};g--;)i=(n=p[g]).displayValue,0!==n.showvalue&&i!==w&&(u.setStyle(m),o=u.getOriSize(i),r=this.getPointerLabelXY(n.y,h,c,o.height/2,o.width/2),n.dataLabel?n.dataLabel.attr({text:i,title:n.originalText||""}):n.dataLabel=s.text(a).attr({"text-anchor":zt[r.align],text:i,x:0,y:r.y,fill:f.color,direction:d,"text-bound":[f.backgroundColor,f.borderColor,f.borderThickness,f.borderPadding,f.borderRadius,f.borderDash]}).css(m).tooltip(n.originalText),r.x+l<o.width/2&&(r.x=o.width/2-l),e&&e.duration?n.dataLabel.animate({x:r.x},e.duration,"easeIn"):n.dataLabel.attr({x:r.x}))}
50,realtimeUpdate:function(t,e){if(t===this.lastUpdatedObj)return!1;var i,n,r,o=this.options,a=o[D],s=o.series,l=this.numberFormatter,c=(s=s&&s[0]&&s[0].data,t.values||[]),h=t.labels||[],d=t.toolTexts||[],u=t.showLabels||[],p=s&&s.length||0,f=null,g=[];if(e=e||o.plotOptions.series.animation,p){for(;p--;)o={},r={},i=s[p],void 0!==c[p]&&""!==c[p]?(o.value=r.value=c[p],f=r.displayvalue=r.tooltext=l.dataLabels(r.value),r.hasNewData=!0):r.value=i.y,h[p]&&(r.displayvalue=h[p],r.hasNewData=!0),"0"==u[p]&&(r.displayvalue=w,r.hasNewData=!0),n=k(J(S(i._tooltext,a.tooltext))),d[p]&&(n=k(J(d[p])),r.hasNewData=!0),r.hasNewData&&(g[p]=r,E(i,{y:r.value,displayValue:i.displayValue||"1"==u[p]?r.displayvalue:w,toolText:void 0!==n?z(n,[1,2],{formattedValue:f},o):f}));return g.length&&(this.lastUpdatedObj=t,this.drawPointerValues(s,e),this.drawPointerLabels(s,e)),Boolean(g.length)}}},W["renderer.widgetbase"]),W("renderer.angular",{drawWidget:function(){var t,e,i=(o=this.options).chart,n=o.scale,r=o.series[0],o=this.paper,a=this.elements,s=this.layers.dataset,l=r.gaugeOuterRadius,c=r.gaugeInnerRadius,h=r.gaugeFillRatio,d=i.gaugeBorderColor,u=i.gaugeBorderThickness,p=i.gaugeBorderAlpha,f=r.gaugeFillMix,g=r.gaugeOriginX,m=r.gaugeOriginY,v=i.gaugeStartAngle,b=i.gaugeEndAngle,y=i.showShadow,x=(i=i.textDirection,n.min),_=n.max,C=this.logic,k=C.colorRangeGetter.getColorRangeArr(x,_),T=0,L=k.length,D=_-x,E=(b=b-v,v),P=g+l*(O=Math.cos(v));e=m+l*(F=Math.sin(v));var I,M,O=g+c*O,F=m+c*F,R=(n=n.trendPoint,this.smartLabel);for(a.trendPointGroup||(a.trendPointGroup=o.group("trendpoint",s));T<L;T+=1)t=k[T],e=v+(Math.min(t.maxvalue,_)-x)/D*b,O=C.parseColorMix(t.code,f),F=C.parseAlphaList(t.alpha,O.length),P=C.parseRatioList(c/l*100+h,O.length),M=t.bordercolor,I=A(t.borderAlpha,p),M=M&&-1==M.indexOf("{")?j(M,I):C.parseColorMix(t.code,S(M,d))[0],M=j(M,I),t=F.split(U),t=at.apply(Math,t),t=y?at(u&&I||0,t):0,I=e,E>e&&(E+=e,E-=e=E-e),o.ringpath(g,m,l,c,E,e,s).attr({fill:vt({FCcolor:{cx:g,cy:m,r:l,gradientUnits:"userSpaceOnUse",color:O.join(),alpha:F,ratio:P,radialGradient:!0}}),"stroke-width":u,stroke:M}).shadow({apply:y,opacity:t/100}),E=I;for(a.tickMarkGroup||(a.tickMarkGroup=o.group("tickmark",s)),a.trendMarkerGroup||(a.trendMarkerGroup=o.group("trendmarker",s)),a.pointGroup||(a.pointGroup=o.group("pointers",s).translate(g,m)),a.pivot||(a.pivot=o.circle(s)),a.pivot.attr({cx:g,cy:m,r:r.pivotRadius,fill:vt({FCcolor:r.isRadialGradient?{color:r.pivotFillColor,alpha:r.pivotFillAlpha,ratio:r.pivotFillRatio,radialGradient:!0,angle:r.pivotFillAngle,cx:.5,cy:.5,r:"50%"}:{color:r.pivotFillColor,alpha:r.pivotFillAlpha,ratio:r.pivotFillRatio,radialGradient:!1,angle:r.pivotFillAngle}}),"stroke-width":r.pivotBorderThickness,stroke:r.pivotBorderColor}).shadow({apply:y}),h=-(s=Math.cos(89.99*ut)),T=0,L=n.length;T<L;T+=1)y=(r=n[T]).isZone,f=v+(r.startValue-x)/D*b,d=A(r.radius,l),u=A(r.innerRadius,y?Math.max(c-15,0):c),p=A(r.trendValueDistance,0),P=g+d*(O=Math.cos(f)),e=m+d*(F=Math.sin(f)),O=g+u*O,F=m+u*F,y?(f>(F=v+(r.endValue-x)/D*b)&&(f+=F,f-=F=f-F),r.graphic=o.ringpath(g,m,d,u,f,F,a.trendPointGroup).attr({fill:j(r.color,r.alpha),"stroke-width":r.showBorder?r.thickness:0,stroke:r.borderColor,"stroke-dasharray":r.dashStyle})):r.graphic=o.path(["M",P,e,"L",O,F],a.tickMarkGroup).attr({"stroke-width":r.showBorder?r.thickness:0,stroke:r.borderColor,"stroke-linecap":"round","stroke-dasharray":r.dashStyle}),r.useMarker&&(r.markerElement=o.polypath("3",P,e,r.markerRadius,(-f+Math.PI)/ut,0,a.trendMarkerGroup).attr({fill:r.markerColor,"stroke-width":1,stroke:r.markerBorderColor}),""!==r.markerToolText&&r.markerElement.tooltip(r.markerToolText)),r.displayValue!==w&&(F=v+((e=(r.endValue+r.startValue)/2)-x)/D*b,O=Math.cos(F),F=Math.sin(F),f=R.getSmartText(r.displayValue).width,P=g+(e=r.valueInside?u-2-p:d+2+p)*O,e=m+e*F,d=R.getSmartText(r.displayValue).height,d=R.getSmartText(r.displayValue,this.canvasWidth,d),P=this.canvasWidth<P+f?this.canvasWidth-f/2:P<f?f/2:P,f>this.canvasWidth&&(P=this.canvasWidth/2),u=r.style,r.textElement=o.text(a.trendMarkerGroup).attr({x:P,y:e,text:d.text,direction:i,"text-anchor":Ft,"vertical-align":Rt}).css(u).tooltip(d.oriText),P=(P=r.textElement.getBBox()).height,e=O>s||O<h?e+(-P/2+.4*P*F*(r.valueInside?-1:1)):r.valueInside?e+-(0>F?0:P):e+-(0<F?0:P),r.textElement.attr({y:e}))},drawWidgetValue:function(t,e){var i,n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,y,x,w=this,_=(I=w.options).chart,C=I.scale,S=I.series[0],k=w.paper,T=w.elements,L=Number(S.gaugeOriginX),D=Number(S.gaugeOriginY),E=_.gaugeStartAngle,P=_.gaugeEndAngle,I=(_=_.showShadow,!1!==I.tooltip.enabled),M=C.min,O=C.max,F=T.pointGroup,R=O-M,B=P-E,N=R/B,j=0,$=t&&t.length,V=qt(E,P),H=_t(w.container),W=function(t,e){var i;i=ct((i=[L,D])[1]-e+H.top,i[0]-t+H.left),w.rotationStartAngle=i,c=w.fusionCharts.getDataJSON()},z=function(){var t,e=w.fusionCharts;(t=e&&e.jsVars)&&(t._rtLastUpdatedData=e.getDataJSON()),b.raiseEvent("RealTimeUpdate
50Complete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:c.values,source:"editMode",url:null},e);try{Z.FC_ChartUpdated&&Z.FC_ChartUpdated(e.id)}catch(t){setTimeout((function(){throw t}),1)}},q=function(t,e,i,n){var r;for(i=ct((t=[L,D])[1]-n+H.top,t[0]-i+H.left),n=w.rotationStartAngle,n=0>i&&0<n?lt(i)-w.rotationStartAngle:0<i&&0>n?lt(w.rotationStartAngle)-i:w.rotationStartAngle-i,n=this.y-n*N,t=[],e=0,r=this.index,n<C.min?n=C.min:n>C.max&&(n=C.max);e<r;e+=1)t.push("");t.push(n),n!==this.value&&w.realtimeUpdate({values:t},{duration:0})&&(this.updatedValStr=t.join("|"),w.rotationStartAngle=i)};for(void 0===w.dataById&&(w.dataById={}),T.pointers||(T.pointers=[]),v=function(t){Ct.call(this,w,t)},y=function(t){var e=this.data("rolloverProperties");Ct.call(this,w,t,"DataPlotRollOver"),e.enabled&&(t=this.attr("transform"),this.attr("transform",""),this.attr(e.hoverAttr),this.attr("transform",t))},x=function(t){var e=this.data("rolloverProperties");Ct.call(this,w,t,"DataPlotRollOut"),e.enabled&&(t=this.attr("transform"),this.attr("transform",""),this.attr(e.outAttr),this.attr("transform",t))};j<$;j+=1)d=(P=t[j]).rolloverProperties||{},Et(P.y)||(P.y=M,Et(P.toolText)||(P.toolText=M)," "===P.displayValue&&(P.displayValue=M)),void 0!==P.id&&(w.dataById[P.id]={index:j,point:P}),P.index=j,i=A(P.radius,(Number(S.gaugeOuterRadius)+Number(S.gaugeInnerRadius))/2),s=(n=P.baseWidth)/2,l=(r=P.topWidth)/2,a=P.rearExtension,o=P.baseRadius,P.tooltipPos=[L,D],T.pointers[j]?o=T.pointers[j]:(h=P.editMode?void 0:P.link,u=["M",i,-l,"L",i,l,-a,s,-a,-s,"Z"],d.hasHoverSizeChange&&(d.outAttr.path=u,p=A(d.hoverRadius,i),
51f=d.baseHoverWidth,f/=2,g=d.topHoverWidth,g/=2,m=d.rearHoverExtension,d.hoverAttr.path=["M",p,-g,"L",p,g,-m,f,-m,-f,"Z"]),h={link:h,value:P.y,displayValue:P.displayValueArgs,toolText:P.toolText},T.pointers[j]=r?k.path(u,F):k.trianglepath(i,l,-a,s,-a,-s,0,o,o,F),P.graphic=o=T.pointers[j],P.graphic.attr({fill:P.color,stroke:P.borderColor,ishot:!0,"stroke-width":P.borderThickness}).click(v).hover(y,x).data("eventArgs",h).data("rolloverProperties",d),(n||r||P.borderThickness)&&P.graphic.shadow({apply:_}),o._attr=o.attr,o.attr=V,o._Attr={tooltipPos:P.tooltipPos,cx:L,cy:D,toolTipRadius:i-a,color:P.color},i=E/ut,o.attr({angle:i}),P.editMode&&(P.index=j,P.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),P.graphic.drag(q,W,z,P,P,P))),P.y>=M&&P.y<=O&&(i=(E+(i=(P.y-M)/R*B))/ut,o.attr({angle:i},null,e),I&&o.tooltip(P.toolText))},drawWidgetLabel:function(t){var e,i,n,r=this.paper,o=this.layers,a=o.datalabels,s=this.options,l=s.series[0],c=s.plotOptions.series.dataLabels.style,h=l.pivotRadius,d=A(parseInt(c.lineHeight,10),12),u=l.valueBelowPivot,p=l.gaugeOriginX,f=s.chart.textDirection,g={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},m=l.gaugeOriginY+(u?d/2+h+2:-d/2-h-2);a||(a=o.datalabels=r.group("datalabels").insertAfter(o.dataset)),At(t,(function(t,o){e=t.displayValue,n=t.valueY,i=A(t.valueX,p),Et(n)||(n=u?m+d*o:m-d*
51o),Et(e)&&e!==w&&(t.dataLabel?t.dataLabel.attr({text:e,title:t.originalText||""}):t.dataLabel=r.text(a).attr({x:i,y:n,text:e,"text-anchor":zt[Ft],direction:f,fill:c.color,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]}).css(g).tooltip(t.originalText))}))},drawScale:function(){var t,e,i,n,r,o,a=(d=this.options).chart,s=d.scale,l=this.paper,c=this.elements,h=d.series[0],d=Number(h.gaugeOriginX),u=Number(h.gaugeOriginY),p=a.gaugeStartAngle,f=s.min,g=a.textDirection,m=Number(h.gaugeInnerRadius),v=Number(h.gaugeOuterRadius),b=(h=s.max-f,a=a.gaugeEndAngle-p,0),y=s.majorTM,x=s.minorTM,w=c.tickMarkGroup,_=Math.cos,C=Math.sin,S=Number(s.minorTMHeight),k=Number(s.majorTMHeight),T=s.placeTicksInside;b=s.placeValuesInside;r=s.tickValueDistance;var L,D,E=s.limitValues.style,P=s.tickValues.style,I=.75*A(parseInt(E.lineHeight,10),12),M=.75*A(parseInt(P.lineHeight,10),12);for(T?(S=(T=m)+S,k=T+k):(S=(T=v)-S,k=T-k),L=b?m-r:v+r,c.majorTM||(c.majorTM=[]),c.tmLabel||(c.tmLabel=[]),b=0,m=y.length;b<m;b+=1)t=(v=y[b]).value,r=v.displayValue,t=d+T*(D=_(o=(t-f)*a/h+p)),e=u+T*(o=C(o)),i=d+k*D,n=u+k*o,c.majorTM[b]=l.path(["M",t,e,"L",i,n],w).attr({stroke:j(s.majorTMColor,s.majorTMAlpha),"stroke-width":s.majorTMThickness,"stroke-linecap":"round"}),""!==r&&(0===b||b===m-1?(i=E,e=u+L*o+(v.y||0)-I):(i=P,e=u+L*o+(v.y||0)-M),t=d+L*D+(v.x||0),c.tmLabel[b]=l.text(t,e,r,w).attr({"text-anchor":zt[v.align||Ft],direction:g,"vertical-align":Rt}).css(i).tooltip(v.originalText));for(c.minorTM||(c.minorTM=[]),b=0,m=x.length;b<m;b+=1)t=d+T*_(o=((t=x[b])-f)*a/h+p),e=u+T*C(o),i=d+S*_(o),n=u+S*C(o),c.minorTM[b]=l.path(["M",t,e,"L",i,n],w).attr({stroke:j(s.minorTMColor,s.minorTMAlpha),"stroke-width":s.minorTMThickness,"stroke-linecap":"round"})},realtimeUpdate:function(t,e){if(t===this.lastUpdatedObj)return!1;var i,n,r,o,a=this.options,s=a[D],l=a.series,c=this.numberFormatter,h=(l=l&&l[0]&&l[0].data,t.values||[]),d=t.labels||[],u=t.toolTexts||[],p=t.showLabels||[],f=l&&l.length||0,g=null,m=[];if(e=e||a.plotOptions.series.animation,f){for(;f--;)r={},a={},o=!1,n=(i=l[f]).id&&(i.id.toLowerCase&&i.id.toLowerCase()||i.id),void 0!==h[f]&&""!==h[f]&&(o=!0)||n&&t[n]?(a.value=r.value=o?h[f]:t[n],g=r.displayvalue=r.tooltext=c.dataLabels(r.value),r.hasNewData=!0):r.value=i.y,d[f]&&(r.displayvalue=d[f],r.hasNewData=!0),"0"==p[f]&&(r.displayvalue=w,r.hasNewData=!0),n=k(J(S(i._tooltext,s.tooltext))),u[f]&&(n=k(J(u[f])),r.hasNewData=!0),r.hasNewData&&(m[f]=r,E(i,{y:r.value,displayValue:i.displayValue||"1"===p[f]?r.displayvalue:w,toolText:void 0!==n?z(n,[1,2],{formattedValue:g},a):g}));return m.length&&(this.lastUpdatedObj=t,this.drawWidgetValue(l,e),this.drawWidgetLabel(l,e)),Boolean(m.length)}}},W["renderer.widgetbase"]),W("renderer.funnel",{type:"funnel",pyramidFunnelShape:function(){var t={y:!0,R1:!0,R2:!0,h:!0,r3dFactor:!0,color:!0,opacity:!0,fill:!0,stroke:!0,strokeColor:!0,strokeAlpha:!0,"stroke-width":!0},e=function(t,e,i,n,r,o,a,s,l,c,h){Lt(t)&&(e=t.y,i=t.R1,n=t.R2,r=t.h,o=t.r3dFactor,a=t.is2D,c=t.isHollow,l=t.isFunnel,t=t.x),s=t-i,h=t+i;var d,u,p=t-n,f=t+n,g=e+r;if(a)d={silhuette:["M",s,e,"L",h,e,f,g,p,g,"Z"]},l||(t=Math.round(t),d.lighterHalf=["M",s,e,"L",t,e,t,g,p,g,"Z"],d.darkerHalf=["M",t,e,"L",h,e,f,g,t,g,"Z"]);else if(l){for(d in p=t,f=e,t=c,s=(e=i||.01)*o,o*=h=n||.01,r=f+r,g=ht(h,2)-ht(e,2),i=-2*(ht(h,2)*f-ht(e,2)*r),n=ht(e*o,2)+ht(h*f,2)-ht(h*s,2)-ht(e*r,2),n=(-i+(c=dt(ht(i,2)-4*g*n)))/(2*g),g=(-i-c)/(2*g),n<r&&n>f?u=g:g<r&&g>f&&(u=n),i=-(n=dt((ht(u-f,2)-ht(s,2))/ht(e,2))),g={x:rt(ht(e,2)*n/(u-f)*100)/100,y:rt(100*(ht(s,2)/(u-f)+f))/100},n={x:rt(ht(h,2)*n/(u-r)*100)/100,y:rt(100*(ht(o,2)/(u-r)+r))/100},g={topLeft:c={x:rt(ht(e,2)*i/(u-f)*100)/100,y:rt(100*(ht(s,2)/(u-f)+f))/100},bottomLeft:u={x:rt(ht(h,2)*i/(u-r)*100)/100,y:rt(100*(ht(o,2)/(u-r)+r))/100},topRight:g,bottomRight:n})(isNaN(g[d].x)||isNaN(g[d].y))&&(g[d].x="topLeft"===d||"bottomLeft"===d?-e:e,g[d].y="bottomRight"===d||"bottomLeft"===d?r:f);r=g.topLeft,i=g.bottomLeft,d=p+r.x,u=p+g.topRight.x,f=p+i.x,p+=g.bottomRight.x,g=["A",e,s,0,0,0,u,r=r.y],n=["A",e,s,0,1,1,u,r],c=["A",h,o,0,0,1,f,i=i.y],h=["A",h,o,0,1,0,f,i],h={front:["M",d,r].concat(g,["L",p,i],c,["Z"]),back:["M",d,r].concat(n,["L",p,i],h,["Z"]),silhuette:["M",d,r].concat(n,["L",p,i],c,["Z"])},t||(h.top=["M",d,r].concat(g,["L",u,r],["A",e,s,0,1,0,d,r],["Z"])),d=h}else d=i*o,u=n*o,r=st(5,i),d={top:["M",s,e,"L",t,e+d,h,e,t,e-d,"Z"],front:["M",s,e,"L",t,e+d,h,e,f,g,t,g+u,p,g,"Z"],topLight:["M",s,e+.5,"L",t,e+d+.5,t,e+d-(i=st(2,2*d)),s+(o=(n=st(2,i))/o),e,"Z"],topLight1:["M",h,e+.5,"L",t,e+d+.5,t,e+d-n,h-o,e,"Z"],silhuette:["M",s,e,"L",t,e-d,h,e,f,g,t,g+u,p,g,"Z"],centerLight:["M",t,e+d,"L",t,g+u,t-5,g+u,t-r,e+d,"Z"],centerLight1:["M",t,e+d,"L",t,g+u,t+5,g+u,t+r,e+d,"Z"]};return d},i=function(i,n){var r,o,a,s,l,c=this,h=!1,d=!1,u=this._3dAttr;if(Dt(i)&&Et(n)&&(r=i,(i={})[r]=n),Dt(i))c=t[i]?this._3dAttr[i]:this._attr(i);else{for(r in i)o=i[r],t[r]?(u[r]=o,"fill"===r?(o&&o.linearGradient&&o.stops&&o.stops[0]&&(o=o.stops[0][1]),It.test(o)?(a=(s=new Ut(o)).get("hex"),s=100*s.get("a")):o&&o.FCcolor?(a=o.FCcolor.color.split(U)[0],s=o.FCcolor.opacity.split(U)[0]):tt.test(o)&&(a=o.replace(pt,mt),s=A(u.opacity,100)),u.color=a,u.opacity=s,d=!0):"color"===r||"opacity"===r?(u.fill=vt(j(u.color,A(u.opacity,100))),d=!0):"stroke"===r||"strokeColor"===r||"strokeAlpha"===r?u.is2D&&("stroke"===r?(o&&o.linearGradient&&o.stops&&o.stops[0]&&(o=o.stops[0][1]),It.test(o)?(a=(s=new Ut(o)).get("hex"),s=100*s.get("a")):o&&o.FCcolor?(a=o.FCcolor.color.split(U)[0],s=o.FCcolor.opacity.split(U)[0]):tt.test(o)&&(a=o.replace(pt,mt),s=A(u.opacity,100)),u.strokeColor=a,u.strokeAlpha=s):u.stroke=j(u.strokeColor,A(u.strokeAlpha,100)),u.isFunnel?this.funnel2D.attr("stroke",u.stroke):this.borderElement.attr("stroke",u.stroke)):"stroke-width"===r?u.is2D&&(u.isFunnel?this.funnel2D.attr(r,o):this.borderElement.attr(r,o)):h=!0):this._attr(r,o);u.is2D?(h&&(a=e(u.x,u.y,u.R1,u.R2,u.h,u.r3dFactor,u.is2D),c.shadowElement.attr({path:a.silhuette}),u.isFunnel?c.funnel2D.attr({path:a.silhuette}):(c.lighterHalf.attr({path:a.lighterHalf}),c.darkerHalf.attr({path:a.darkerHalf}),c.borderElement.attr({path:a.silhuette}))),d&&(u.isFunnel?c.funnel2D.attr("fill",vt(j(u.color,A(u.opacity,100)))):(!1===u.use3DLighting?a=s=u.color:(a=B(u.color,80),s=N(u.color,80)),c.lighterHalf.attr("fill",vt(j(s,A(u.opacity,100)))),c.darkerHalf.attr("fill",vt(j(a,A(u.opacity,100))))))):(h&&(a=e(u.x,u.y,u.R1,u.R2,u.h,u.r3dFactor,u.is2D),c.shadowElement.attr("path",a.silhuette),u.isFunnel?(c.front.attr("path",a.front),c.back.attr("path",a.back),c.toptop&&a.top&&c.toptop.attr("path",a.top)):(c.front.attr("path",a.front),c.toptop.attr("path",a.top),c.topLight.attr("path",a.topLight),c.topLight1.attr("path",a.topLight1),c.centerLight.attr("path",a.centerLight),c.centerLight1.attr("path",a.centerLight1))),d&&(a=u.color,s=u.opacity,u.isFunnel?(d=N(a,60),h=B(a,60),c.back.attr("fill",vt({FCcolor:{color:h+U+d+U+a,alpha:s+U+s+U+s,ratio:"0,60,40",angle:0}})),c.front.attr("fill",vt({FCcolor:{color:a+U+d+U+h,alpha:s+U+s+U+s,ratio:"0,40,60",angle:0}})),c.toptop&&c.toptop.attr("fill",vt({FCcolor:{color:d+U+h,alpha:s+U+s,ratio:"0,100",angle:-65}}))):(d=N(a,80),r=N(a,70),h=B(a,80),o="0,"+s,l=a+U+r,u=5/(u.R1*u.r3dFactor)*100,c.centerLight.attr("fill",vt({FCcolor:{color:l,alpha:o,ratio:"0,100",angle:0}})),c.centerLight1.attr("fill",vt({FCcolor:{color:l,alpha:o,ratio:"0,100",angle:180}})),c.topLight.attr("fill",vt({FCcolor:{color:r+U+r+U+a+U+a,alpha:s+U+s+U+0+U+0,ratio:"0,50,"+u+U+(50-u),angle:-45}})),c.topLight1.attr("fill",vt({FCcolor:{color:r+U+a+U+h,alpha:s+U+s+U+s,ratio:"0,50,50",angle:0}})),c.front.attr("fill",vt({FCcolor:{color:a+U+a+U+h+U+h,alpha:s+U+s+U+s+U+s,ratio:"0,50,0,50",angle:0}})),c.toptop.attr("fill",vt({FCcolor:{color:d+U+a+U+h+U+h,alpha:s+U+s+U+s+U+s,ratio:"0,25,30,45",angle:-45}})))))}return c},n=function(){var t=this.shadowElement;n&&t.shadow.apply(t,arguments)};return function(t,r,o,a,s,l,c,h,d,u,p,f){var g=this.layers.dataset;return Lt(t)&&(r=t.y,o=t.R1,a=t.R2,s=t.h,l=t.r3dFactor,c=t.gStr,h=t.is2D,f=t.use3DLighting,d=t.renderer,p=t.isHollow,u=t.is
51Funnel,t=t.x),l=A(l,.15),r=e(t={x:t,y:r,R1:o,R2:a,h:s,r3dFactor:l,is2D:h,use3DLighting:f,isHollow:p,isFunnel:u,renderer:d}),(c=d.group(c,g)).Shapeargs=r,c.shadowElement=d.path(r.silhuette,c).attr({fill:et,stroke:"none"}),c._attr=c.attr,c.attr=i,c.shadow=n,c._3dAttr=t,u?h?c.funnel2D=d.path(r.silhuette,c):(c.back=d.path(r.back,c).attr({"stroke-width":0,stroke:"none"}),c.front=d.path(r.front,c).attr({"stroke-width":0,stroke:"none"}),r.top&&(c.toptop=d.path(r.top,c).attr({"stroke-width":0,stroke:"none"}))):h?(c.lighterHalf=d.path(r.lighterHalf,c).attr({"stroke-width":0}),c.darkerHalf=d.path(r.darkerHalf,c).attr({"stroke-width":0}),c.borderElement=d.path(r.silhuette,c).attr({fill:et,stroke:"none"})):(c.front=d.path(r.front,c).attr({"stroke-width":0}),c.centerLight=d.path(r.centerLight,c).attr({"stroke-width":0}),c.centerLight1=d.path(r.centerLight1,c).attr({"stroke-width":0}),c.toptop=d.path(r.top,c).attr({"stroke-width":0}),c.topLight=d.path(r.topLight,c).attr({"stroke-width":0}),c.topLight1=d.path(r.topLight1,c).attr({"stroke-width":0})),c}}(),getPlotData:function(t){var e,i=(r=this.datasets[0]).data[t],n=r.userData||(r.userData=[]),r="y name color alpha borderColor borderWidth link displayValue datasetIndex toolText".split(" ");if(n[t])t=n[t];else{for(t=n[t]={},n=0;n<r.length;n++)t[e=r[n]]=i[e];t.value=t.y,t.label=t.name,delete t.y,delete t.name}return t},translate:function(){function t(){var e=[],i=0;this.set=function(t,n){i++,e[t]=n},this.get=function(t){return e[t]},this.getAll=function(){return e},this.mergeWith=function(i){var n,r,o=e.slice(0);if(!(i instanceof Array)){if(!(i instanceof t))return;i=i.getAll()}for(n in i)r=i[n],o[n]||(o[n]=r);return o},this.getEffectiveLength=function(){return i}}function e(t){this.distributionLength=t,this.distributedMatrix=[],this.altDistributedMatrix=[],this.nonDistributedMatrix={},this.forcePushObj={},this.flags={exhaustion:!1}}function i(t,e){var i,c,h,d,u=!1,p=0;i={flag:!1,point:void 0,sLabel:void 0,setAll:function(t,e,i){this.flag=t,this.point=e,this.sLabel=i}};var f={point:void 0,sLabel:void 0,set:function(t,e){return function(i,n){var r,o;i.dontPlot||(this.point&&this.sLabel?(r=t(this.point,this.sLabel),o=t(i,n),e(r,o)&&(this.point=i,this.sLabel=n)):(this.point=i,this.sLabel=n))}}},g={},v={},w={},_={};for(b.extend(g,i),b.extend(v,i),g.setAll=function(t,e,i){var n=this.point,r=this.sLabel;this.flag=t,n&&r?(t=n.labelX-(r.oriTextWidth-r.width))>(n=e.labelX-(i.oriTextWidth-i.width))&&(this.point=e,this.sLabel=i):(this.point=e,this.sLabel=i)},v.setAll=function(t,e,i){var n=this.point,r=this.sLabel;this.flag=t,n&&r?(t=n.labelX+r.oriTextWidth)<(n=e.labelX+i.oriTextWidth)&&(this.point=e,this.sLabel=i):(this.point=e,this.sLabel=i)},b.extend(w,f),b.extend(_,f),w.set=f.set.apply(w,[function(t){return t.labelX},function(t,e){return t>e}]),_.set=f.set.apply(_,[function(t,e){return t.labelX+e.oriTextWidth},function(t,e){return t<e}]),i=0,c=t.length;i<c;i++)(h=t[i])&&((h.x=i)?(e&&(u=!u),h.isSliced&&(1<(l=h.x)&&!O[l]&&(O[l]=!0,N+=1),l<S&&(O[l+1]=!0,N+=1)),F?(a=1==y.useSameSlantAngle?T?C*h.y/T:C:T?C*dt(h.y/T):C,s=r*(x[i-1].y-h.y)||1):(I+=s=r*x[i].y,a=C*(1-I*B)),h.shapeArgs={x:j,y:L,R1:o,R2:a,h:s||1,r3dFactor:D,isHollow:E,gStr:"point",is2D:P,renderer:M,isFunnel:!0},m.smartLabel.setStyle(h.style),h.oriText=h.displayValue,d=d=m.smartLabel.getSmartText(h.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),$?(h.labelAline="middle",h.labelX=j,h.labelY=(P?L:L+D*o)+s/2+V):(h.labelAline="start",(h.alignmentSwitch=u)?(h.labelX=j-(R+a+3+d.width),w.set(h,d)):(h.labelX=j+R+a+3,_.set(h,d)),h.distributionFactor=h.distributionFactor||0,p=h.distributionFactor*H,h.labelY=L+V+s+p),e&&(u&&0>h.labelX?(p=h.labelX+d.width,p=m.smartLabel.getSmartText(h.displayValue,p,Number.POSITIVE_INFINITY,!0),h.labelX=2,h.isLabelTruncated=!0,h.displayValue=p.text,h.virtualWidth=p.maxWidth,g.setAll(!0,h,p)):!u&&h.labelX+d.width>m.chartWidth&&(p=m.smartLabel.getSmartText(h.displayValue,m.chartWidth-h.labelX,Number.POSITIVE_INFINITY,!0),h.isLabelTruncated=!0,h.displayValue=p.text,h.virtualWidth=p.maxWidth,v.setAll(!0,h,p))),h.pWidth=h.virtualWidth=h.virtualWidth||d.width,L+=s,o=a):(h.oriText=h.displayValue,a=1==y.useSameSlantAngle?T?C*x[0].y/T:C:T?C*dt(x[0].y/T):C,h.labelWidht>
512*a&&!e?(h.labelAline="start",h.labelX=0):(h.labelAline="middle",h.labelX=j),d=2*R,h.displayValue=m.smartLabel.getSmartText(h.displayValue,2*a+d,Number.POSITIVE_INFINITY,!0).text,h.labelY=(P?L:L-D*o)-V-3),h.plotX=j,h.plotY=L);n(t,{lTrimmedInfo:g,rTrimmedInfo:v,lLargestLabel:w,rLargestLabel:_})}function n(t,e){var i=0,n=e.lTrimmedInfo,r=e.rTrimmedInfo,o=e.lLargestLabel,a=e.rLargestLabel,s=0;if(!n.flag||!r.flag){if(r.flag){if(!o.point)return;i=(i=r.sLabel).oriTextWidth-i.width,o=o.point.labelX-3,i=-Math.ceil(Math.min(i,o))}else if(n.flag){if(!a.point)return;i=(i=n.sLabel).oriTextWidth-i.width,o=z-(a.point.labelX+a.sLabel.width),i=Math.ceil(Math.min(i,o))}if(i)for(a=0,n=t.length;a<n;a++)o=t[a],!a&&F?o.labelX+=i:(o.alignmentSwitch?(r=0>i?m.smartLabel.getSmartText(o.oriText,o.pWidth,Number.POSITIVE_INFINITY,!0):m.smartLabel.getSmartText(o.oriText,o.pWidth+i,Number.POSITIVE_INFINITY,!0),o.isLabelTruncated&&(s=r.width-o.pWidth)):r=0<i?m.smartLabel.getSmartText(o.oriText,o.pWidth,Number.POSITIVE_INFINITY,!0):m.smartLabel.getSmartText(o.oriText,o.pWidth-i,Number.POSITIVE_INFINITY,!0),o.virtualWidth=r.width,o.displayValue=r.text,o.labelX+=i-s,o.shapeArgs&&(o.shapeArgs.x+=i),s=0);else for(a=0,n=t.length;a<n;a++)0<(s=(o=t[a]).labelX+o.pWidth-z)&&(o.lOverflow=s,o.labelX-=s,m.isLegendRight?o.displayValue=m.smartLabel.getSmartText(o.oriText,o.pWidth-s,Number.POSITIVE_INFINITY,!0).text:(o.lOverflow=s,o.labelX-=s))}}var r,o,a,s,l,c,h,d,u,p,f,g,m=this,v=m.options,y=m.datasets[0],x=y.data,w=m.canvasWidth,_=m.canvasHeight,C=w/2,S=x.length-1,k=(q=x[0])&&x[S].y,T=q&&x[0].y,L=m.canvasTop,D=y.yScale,E=y.isHollow,P=y.is2d,I=0,M=m.paper,O={},F=y.streamlinedData,R=y.labelDistance,B=.8/_,N=0,j=C+m.canvasLeft,$=y.showLabelsAtCenter,V=.3*A(parseInt(v.plotOptions.series.dataLabels.style.fontSize,10),10),H=Number(m.options.plotOptions.series.dataLabels.style.lineHeight.split(/px/)[0]),W=0,z=m.chartWidth-3,q=0;if(Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),i="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),n=i.length;return function(r){if("object"!=typeof r&&("function"!=typeof r||null===r))throw new TypeError("Object.keys called on non-object");var o,a=[];for(o in r)t.call(r,o)&&a.push(o);if(e)for(o=0;o<n;o++)t.call(r,i[o])&&a.push(i[o]);return a}}()),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var i,n,r,o,a;if(null==this)throw new TypeError(" this is null or not defined");if(o=(r=Object(this)).length>>>0,"function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(i=e),n=0;n<o;)n in r&&(a=r[n],t.call(i,a,n,r)),n++}),F){for(r=_/(T-k),h=0,k=x.length;h<k;h++)q+=x[h].y;h=q?_/q:_}else r=T?_/T:_;o=C,m.globalMinXShift=0,m.alignmentType={};try{Object.defineProperty(m.alignmentType,"default",{configurable:!1,enumerable:!0,get:function(){return 1}})}catch(t){m.alignmentType.default=1}try{Object.defineProperty(m.alignmentType,"alternate",{configurable:!1,enumerable:!0,get:function(){return 2}})}catch(t){m.alignmentType.alternate=2}if(t.prototype.constructor=t,e.prototype.constructor=e,e.prototype.push=function(t,e){this.nonDistributedMatrix[e]=this.nonDistributedMatrix[e]||[],this.nonDistributedMatrix[e].push(t)},e.prototype.forcePush=function(t,e){this.forcePushObj[e]=t},e.prototype.distribute=function(e){var i,n,r,o,a,s,l=!0,c=new t,h=new t,d=new t,u=new t,p=this.flags,f=0;if(e){if(0<x.length-this.distributionLength)for(r in this.nonDistributedMatrix)for(i=this.nonDistributedMatrix[r],a=1;a<i.length;a++)(s=i[a]).dontPlot=!0,s.displayValue=""}else if(0<x.length-2*this.distributionLength)for(r in this.nonDistributedMatrix)for(i=this.nonDistributedMatrix[r],a=1;a<i.length-1;a++)(s=i[a]).dontPlot=!0,s.displayValue="";if(x.length>this.distributionLength&&!e){for(r in p.exhaustion=!0,this.nonDistributedMatrix)for(a=0,e=(i=this.nonDistributedMatrix[r]).length;a<e;a++)(s=i[a]).dontPlot?n=l?d:u:(n=l?c:h).getEffectiveLength()>parseInt(r,10)?s.distributionFactor=n.getEffectiveLength()-1-r:s.distributionFactor=0,n.set(f++,s),l=!l;this.distributedMatrix=c.mergeWith(d),this.altDistributedMatrix=h.mergeWith(u)}else{for(o in this.nonDistributedMatrix)for(a=0,e=(i=this.nonDistributedMatrix[o]).length;a<e;a++)(s=i[a]).dontPlot?n=d:(n=c).getEffectiveLength()>parseInt(o,10)?s.distributionFactor=n.getEffectiveLength()-1-o:s.distributionFactor=0,n.set(f++,s);this.distributedMatrix=c.mergeWith(d)}},e.prototype.getDistributedResult=function(){var t,e=[],i=(t=m.options.legend)&&"right"===t.align?1:0;
51return t.width?i&&(z-=t.width+v.chart.spacingRight):i=0,m.isLegendRight=i,this.distribute(i),i?(t=m.alignmentType.default,e.push(this.distributedMatrix)):(t=this.flags.exhaustion?m.alignmentType.alternate:m.alignmentType.default,this.flags.exhaustion?[].push.call(e,this.distributedMatrix,this.altDistributedMatrix):e.push(this.distributedMatrix)),{forceMatrix:this.forcePushObj,suggestion:t,matrix:e}},c=new e(Math.floor(_/H)),g=F?h:r,x.forEach((function(t,e){var i;i=0,!F&&0===e||!F&&e===x.length-1?c.forcePush(t,e):(i=t.y*g,i=(W+=t.y*g)-i+i/2,i=Math.floor(i/H),c.push(t,i))})),_=c.getDistributedResult(),x.length=0,void 0===_.matrix[1])[].push.apply(x,_.matrix[0]);else for(h=_.matrix[0],d=_.matrix[1],k=Math.max(h.length,d.length),q=0;q<k;q++)p=h[q],u=d[q],x.push(p||u);if(0<Object.keys(_.forceMatrix).length)for(f in _.forceMatrix)[].splice.apply(x,[parseInt(f,10),0].concat(_.forceMatrix[f]));switch(_.suggestion){case m.alignmentType.default:i(x,!1);break;case m.alignmentType.alternate:m.labelAlignment=m.alignmentType.alternate,C=w/3,m.canvasLeft=m.chartWidth/2-C,j=m.canvasLeft+C,o=C,i(x,!0)}y._temp={slicingGapPosition:O,noOfGap:N}},drawPlotFunnel:function(t,e){this.translate();var i,n,r,o,a,s,l,c,h,d,u=this,p=t.items,f=t.data,g=(D=u.options).plotOptions,m=u.elements.plots[0],v=g.series.dataLabels,b=u.paper,y=(y=D.tooltip||{})&&!1!==y.enabled,x=(g=g.series.animation.duration||0,(w=u.layers).tracker),w=w.datalabels||(w.datalabels=b.group("datalabels").insertAfter(w.dataset)),_=m.showLabelsAtCenter,C=(S=e._temp||{}).slicingGapPosition,S=S.noOfGap,k=e.SlicingDistance,A=k/2,T=0,L=D.chart.issliced,D=D.chart.textDirection,E={fontFamily:(E=v.style).fontFamily,fontSize:E.fontSize,lineHeight:E.lineHeight,fontWeight:E.fontWeight,fontStyle:E.fontStyle},P=function(t,e){return function(i){t.graphic.attr(e),Ct.call(this,u,i,"DataPlotRollOver")}},I=function(t,e){return function(i){t.graphic.attr(e),Ct.call(this,u,i,"DataPlotRollOut")}};if(!(a=u.datasets[0].streamlinedData&&2>f.length)){for(S&&(n=st(1.5*A,k/S),T=A),k=function(t){return function(){u.legendClick(t,!0,!1)}},A=function(t){return function(){return u.getEventArgs(t)}},d=function(t){return function(){t.attr({visibility:"visible"})}},w.trackTooltip(!0),f&&f.length||(f=[]),m.singletonCase=a&&2==f.length||1==f.length,e.data||(e.data=[]),h=f.length;h--;)r=(s=f[h]).y,o=s.displayValue,i=s.toolText,c=!!s.link,l=L?0:s.isSliced,null!=r&&s.shapeArgs?((a=p[h])||(e.data[h].plot=a=p[h]={value:r,displayValue:o,sliced:!!l,chart:u,plotItems:p,seriesData:m,cursor:c?"pointer":"",x:s.x,index:h,graphic:u.pyramidFunnelShape(s.shapeArgs).attr({fill:s.color,opacity:0,"stroke-width":s.borderWidth,stroke:s.borderColor}),dataLabel:b.text(w).attr({text:o,ishot:!0,cursor:c?"pointer":"",direction:D,x:0,y:0}).css(E).tooltip(s.originalText),trackerObj:b.path(x)},e.data[h].legendClick=k(a),e.data[h].getEventArgs=A(a),r=o={},s.hoverEffects&&(r={color:s.color,opacity:s.alpha,"stroke-width":s.borderWidth,stroke:s.borderColor},o={color:(o=s.rolloverProperties).color,opacity:o.alpha,"stroke-width":o.borderWidth,stroke:o.borderColor}),!s.doNotSlice&&a.trackerObj.click(u.slice,a),a.trackerObj.mouseup(u.plotMouseUp,a),a.trackerObj.hover(P(a,o),I(a,r)),a.dataLabel.hover(P(a,o),I(a,r)),y&&a.trackerObj.tooltip(i),!s.doNotSlice&&a.dataLabel.click(u.slice,a),a.dataLabel.mouseup(u.plotMouseUp,a),_&&0===h&&"funnel"==u.type&&m.streamlinedData||(a.connector=b.path(w).attr({"stroke-width":v.connectorWidth,stroke:v.connectorColor,ishot:!0,cursor:c?"pointer":""}).click(u.slice,a).mouseup(u.plotMouseUp,a).hover(P(a,o),I(a,r))),a.dy=0,S&&(T&&(a._startTranslateY=i="t0,"+T,a.dy=a.DistanceAvailed=T,a.graphic.attr({transform:i}),a.dataLabel.attr({transform:i}),a.connector.attr({transform:i})),C[s.x]&&(T-=n))),g?(w.attr({visibility:"hidden"}),a.graphic.animate({opacity:s.alpha},g,"easeIn",h===f.length-1&&d(w))):a.graphic.attr({opacity:s.alpha})):e.data[h].plot=p[h]={dataLabel:b.text(w).attr({text:o,direction:D,x:0,y:0}).css(E).tooltip(s.originalText)};u.drawDataLabels(),u.drawTracker(t,e)}},slice:function(t,e,i,n){var r=this.chart;t=r.datasets[0].SlicingDistance/2,i=e=0;var o,a,s,l,c,h,d,u,p=this.plotItems,f=p.length;for((h={hcJSON:{chart:{issliced:!1}
51,series:[]}}).hcJSON.series[0]={data:s=[]},n=this.sliced=Et(n)?n:!this.sliced,d=-t,u=function(t,e){return function(){b.raiseEvent("SlicingEnd",{slicedState:t,data:r.getPlotData(e)},r.logic.chartInstance)}},e=0;e<f;e+=1)(a=p[e])!==this?(a.sliced=!1,s[e]={isSliced:!1},l=!1):(s[e]={isSliced:n},l=!0,c=e),a.graphic&&(o=-(o=a.dy),n&&(a.x<this.x?(o+=d,i+=1):a.x==this.x?i?e==f-1&&(o+=.5*t):o+=.5*-t:o+=t),a.graphic.attr({transform:"t0,"+a.dy}),a.dy+=o,o={transform:"...t0,"+o},l&&b.raiseEvent("SlicingStart",{slicedState:!n,data:r.getPlotData(c)},r.logic.chartInstance),a.graphic.animate(o,300,"easeIn",l&&u(n,c)),a.dataLabel&&a.dataLabel.animate(o,300,"easeIn"),a.connector&&a.connector.animate(o,300,"easeIn"),a.trackerObj&&a.trackerObj.animate(o,300,"easeIn"),1==e&&!p[0].graphic&&p[0].dataLabel&&p[0].dataLabel.animate(o,300,"easeIn"));E(r.logic.chartInstance.jsVars._reflowData,h,!0)},drawDataLabels:function(){var t,e,i,n,r,o,a,s,l,c,h=this.datasets[0],d=h.data,u=this.options.plotOptions.series.dataLabels,p=this.elements.plots[0].items,f=h.showLabelsAtCenter,g=Number(u.style.lineHeight.split(/px/)[0]),m=A(parseInt(u.style.fontSize,10),10),v=.3*m,b=.3*g,y=h.labelDistance,x={};for(s=d.length-1;0<=s;--s)c=(n=d[s]).displayValue,u=p[s],e=n.labelY,t=n.labelX,i=n.labelAline,l=n.style,v=.3*(m=A(parseInt(l.fontSize,10),10)),m={fontFamily:l.fontFamily,fontSize:l.fontSize,lineHeight:l.lineHeight,fontWeight:l.fontWeight,fontStyle:l.fontStyle},f?e=0===s&&"funnel"==this.type&&h.streamlinedData?e-b+(p[1].DistanceAvailed||0):e-b+(u.DistanceAvailed||0):(a=e-v-n.distributionFactor*g,v=e-v,o=x[n.alignmentSwitch],void 0!==r&&void 0!==o&&o-v<g&&(e=v=o-g),n.displayValue&&(x[n.alignmentSwitch]=v),r=n.plotY,this.labelAlignment===this.alignmentType.alternate&&n.alignmentSwitch?n=(o=t+3+n.virtualWidth)+y+n.distributionFactor*this.globalMinXShift:n=(o=t-3)-(y-(n.lOverflow||0))-n.distributionFactor*this.globalMinXShift,void 0===c||c===w||0===s&&"funnel"==this.type&&h.streamlinedData||(n=["M",n,a,"L",o,v],u.connector.attr({path:n,"shape-rendering":a===v&&1>v?"crisp":""})),e=0===s&&"funnel"==this.type&&h.streamlinedData?e+(p[1].DistanceAvailed||0):v+(u.DistanceAvailed||0)),c!==w&&u.dataLabel.attr({transform:"t"+t+","+e,"text-anchor":zt[i],text:c,fill:l.color,"font-size":l.fontSize,"text-bound":[l.backgroundColor,l.borderColor,l.borderThickness,l.borderPadding,l.borderRadius,l.borderDash]}).css(m)},drawTracker:function(t){var e=this.paper,i=t.items;t=t.data;for(var n,r,o,a,s,l=+new Date,c=t.length-1,h=this.layers.tracker;0<=c;--c)o=i[c],s=t[c],r=o.trackerObj,o.graphic&&(n=o.graphic.Shapeargs.silhuette,a={link:s.link,value:s.y,displayValue:s.displayValueArgs,categoryLabel:s.categoryLabel,dataIndex:o.index||"",toolText:s.toolText},s.datasetIndex=o.index,r?r.attr({path:n,isTracker:l,fill:et,stroke:"none",transform:"t0,"+(o._startTranslateY||0),ishot:!0,cursor:o.cursor}):o.trackerObj=e.path(n,h).attr({isTracker:l,fill:et,stroke:"none",transform:"t0,"+(o._startTranslateY||0),ishot:!0,cursor:o.cursor}),r.data("eventArgs",a))},getEventArgs:function(t){return t.chart.getPlotData(t.index)},legendClick:function(t){var e=t.chart;e.slice.call(e.plots[0].items[t.index])},plotMouseUp:function(t){Ct.call(this.trackerObj,this.chart,t)}},W["renderer.piebase"]),W("renderer.pyramid",{type:"pyramid",translate:function(){function t(){var e=[],i=0;this.set=function(t,n){i++,e[t]=n},this.get=function(t){return e[t]},this.getAll=function(){return e},this.mergeWith=function(i){var n,r,o=e.slice(0);if(!(i instanceof Array)){if(!(i instanceof t))return;i=i.getAll()}for(n in i)r=i[n],o[n]||(o[n]=r);return o},this.getEffectiveLength=function(){return i}}function e(t){this.distributionLength=t,this.distributedMatrix=[],this.altDistributedMatrix=[],this.nonDistributedMatrix={},this.flags={exhaustion:!1}}function i(t,e){var i,s,l,c,h=0,d=!1;i={flag:!1,point:void 0,sLabel:void 0,setAll:function(t,e,i){this.flag=t,this.point=e,this.sLabel=i}};var u={point:void 0,sLabel:void 0,set:function(t,e){return function(i,n){var r,o;i.dontPlot||(this.point&&this.sLabel?(r=t(this.point,this.sLabel),o=t(i,n),e(r,o)&&(this.point=i,this.sLabel=n)):(this.point=i,this.sLabel=n))}}},p={},g={},m={},v={};
51for(b.extend(p,i),b.extend(g,i),p.setAll=function(t,e,i){var n=this.point,r=this.sLabel;this.flag=t,n&&r?(t=n.labelX-(r.oriTextWidth-r.width))>(n=e.labelX-(i.oriTextWidth-i.width))&&(this.point=e,this.sLabel=i):(this.point=e,this.sLabel=i)},g.setAll=function(t,e,i){var n=this.point,r=this.sLabel;this.flag=t,n&&r?(t=n.labelX+r.oriTextWidth)<(n=e.labelX+i.oriTextWidth)&&(this.point=e,this.sLabel=i):(this.point=e,this.sLabel=i)},b.extend(m,u),b.extend(v,u),m.set=u.set.apply(m,[function(t){return t.labelX},function(t,e){return t>e}]),v.set=u.set.apply(v,[function(t,e){return t.labelX+e.oriTextWidth},function(t,e){return t<e}]),i=0,s=t.length;i<s;i++)l=i,(c=t[i])&&(c.x=l,e&&(d=!d),c.isSliced&&((a=c.x)&&!P[a]&&(P[a]=!0,I+=1),a<_&&(P[a+1]=!0,I+=1)),c.oriText=c.displayValue,f.smartLabel.setStyle(c.style),l=f.smartLabel.getSmartText(c.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),E+=c.y,r=w*E/D,o=B*c.y,c.shapeArgs={x:R,y:C,R1:j,R2:r,h:o,r3dFactor:S,gStr:"point",is2D:k,use3DLighting:T,renderer:L},O?(c.labelAline="middle",c.labelX=R,c.labelY=(k?C:C+S*j)+o/2+F):(c.labelAline="start",(c.alignmentSwitch=d)?(c.labelX=R-((j+r)/2+3+M+l.width),c.labelX-=c.distributionFactor*f.globalMinXShift,m.set(c,l)):(c.labelX=R+M+(j+r)/2+3,c.labelX+=c.distributionFactor*f.globalMinXShift,v.set(c,l)),e&&(d&&0>c.labelX?(h=c.labelX+l.width,h=f.smartLabel.getSmartText(c.displayValue,h,Number.POSITIVE_INFINITY,!0),c.labelX=2,c.displayValue=h.text,c.virtualWidth=h.width,p.setAll(!0,c,h)):!d&&c.labelX+l.width>f.chartWidth&&(h=f.smartLabel.getSmartText(c.displayValue,f.chartWidth-c.labelX,Number.POSITIVE_INFINITY,!0),c.displayValue=h.text,c.virtualWidth=h.width,g.setAll(!0,c,h))),c.pWidth=c.virtualWidth||l.width,h=c.distributionFactor*N,c.labelY=C+F+o/2+h),C+=o,c.plotX=R,c.plotY=C-o/2,j=r,c.virtualWidth=c.virtualWidth||l.width);n(t,{lTrimmedInfo:p,rTrimmedInfo:g,lLargestLabel:m,rLargestLabel:v})}function n(t,e){var i=0,n=e.lTrimmedInfo,r=e.rTrimmedInfo,o=e.lLargestLabel,a=e.rLargestLabel;if(!n.flag||!r.flag){if(r.flag){if(!o.point)return;i=(i=r.sLabel).oriTextWidth-i.width,a=o.point.labelX-3,i=-Math.ceil(Math.min(i,a))}else if(n.flag){if(!a.point)return;o=n.point,i=(i=n.sLabel).oriTextWidth-i.width,a=V-(a.point.labelX+a.sLabel.width),i=Math.ceil(Math.min(i,a)),o.labelX-=i}if(i)for(o=0,n=t.length;o<n;o++)r=(a=t[o]).alignmentSwitch?0>i?f.smartLabel.getSmartText(a.oriText,a.pWidth,Number.POSITIVE_INFINITY,!0):f.smartLabel.getSmartText(a.oriText,a.pWidth+i,Number.POSITIVE_INFINITY,!0):0<i?f.smartLabel.getSmartText(a.oriText,a.pWidth,Number.POSITIVE_INFINITY,!0):f.smartLabel.getSmartText(a.oriText,a.pWidth-i,Number.POSITIVE_INFINITY,!0),a.virtualWidth=r.width,a.displayValue=r.text,a.labelX+=i,a.shapeArgs.x+=i;else for(o=0,n=t.length;o<n;o++)0<(i=(a=t[o]).labelX+a.pWidth-V)&&(f.isLegendRight?a.displayValue=f.smartLabel.getSmartText(a.oriText,a.pWidth-i,Number.POSITIVE_INFINITY,!0).text:(a.lOverflow=i,a.labelX-=i))}}var r,o,a,s,l,c,h,d,u,p,f=this,g=f.options,m=f.datasets[0],v=m.data,y=f.canvasWidth,x=f.canvasHeight,w=y/2,_=v.length-1,C=f.canvasTop,S=m.yScale,k=m.is2d,T=m.use3DLighting,L=f.paper,D=m.valueSum?m.valueSum:1,E=0,P={},I=0,M=m.labelDistance,O=m.showLabelsAtCenter,F=.3*A(parseInt(g.plotOptions.series.dataLabels.style.fontSize,10),10),R=0,B=x/D,N=Number(f.options.plotOptions.series.dataLabels.style.lineHeight.split(/px/)[0]),j=0,$=0,V=f.chartWidth-3;Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var i,n,r,o,a;if(null==this)throw new TypeError(" this is null or not defined");if(o=(r=Object(this)).length>>>0,"function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(i=e),n=0;n<o;)n in r&&(a=r[n],t.call(i,a,n,r)),n++}),f.globalMinXShift=Math.floor(N/Math.cos(Math.atan(w/2/x))),f.alignmentType={};try{Object.defineProperty(f.alignmentType,"default",{configurable:!1,enumerable:!0,get:function(){return 1}})}catch(t){f.alignmentType.default=1}try{Object.defineProperty(f.alignmentType,"alternate",{configurable:!1,enumerable:!0,get:function(){return 2}})}catch(t){f.alignmentType.alternate=2}if(t.prototype.constructor=t,e.prototype.constructor=e,e.prototype.push=function(t,e){this.nonDistributedMatrix[e]=this.nonDistributedMatrix[e]||[],this.nonDistributedMatrix[e].push(t)},e.prototype.distribute=function(e){var i,n,r,o,a,s,l=!0,c=new t,h=new t,d=new t,u=new t,p=this.flags,f=0;if(e){if(0<v.length-this.distributionLength)for(r in this.nonDistributedMatrix)for(i=this.nonDistributedMatrix[r],a=1;a<i.length;a++)(s=i[a]).dontPlot=!0,s.displayValue=""}else if(0<v.length-2*this.distributionLength)for(r in this.nonDistributedMatrix)for(i=this.nonDistributedMatrix[r],a=1;a<i.length-1;a++)(s=i[a]).dontPlot=!0,s.displayValue="";if(v.length>this.distributionLength&&!e){for(r in p.exhaustion=!0,this.nonDistributedMatrix)for(a=0,e=(i=this.nonDistributedMatrix[r]).length;a<e;a++)(s=i[a]).dontPlot?n=l?d:u:(n=l?c:h).getEffectiveLength()>parseInt(r,10)?s.distributionFactor=n.getEffectiveLength()-1-r:s.distributionFactor=0,n.set(f++,s),l=!l;this.distributedMatrix=c.mergeWith(d),this.altDistributedMatrix=h.mergeWith(u)}else{for(o in this.nonDistributedMatrix)for(a=0,e=(i=this.nonDistributedMatrix[o]).length;a<e;a++)(s=i[a]).dontPlot?n=d:(n=c).getEffectiveLength()>parseInt(o,10)?s.distributionFactor=n.getEffectiveLength()-1-o:s.distributionFactor=0,n.set(f++,s);this.distributedMatrix=c.mergeWith(d)}},e.prototype.getDistributedResult=function(){var t,e=[],i=(t=f.options.legend)&&"right"===t.align?1:0;
51return t.width?i&&(V-=t.width+g.chart.spacingRight):i=0,f.isLegendRight=i,this.distribute(i),i?(t=f.alignmentType.default,e.push(this.distributedMatrix)):(t=this.flags.exhaustion?f.alignmentType.alternate:f.alignmentType.default,this.flags.exhaustion?[].push.call(e,this.distributedMatrix,this.altDistributedMatrix):e.push(this.distributedMatrix)),{suggestion:t,matrix:e}},s=new e(Math.floor(x/N)),v.forEach((function(t){var e=0;e=t.y*B
52;$+=t.y*B,s.push(t,Math.floor(($-e+e/2)/N))})),x=s.getDistributedResult(),v.length=0,void 0===x.matrix[1])[].push.apply(v,x.matrix[0]);else for(c=x.matrix[0],h=x.matrix[1],d=Math.max(c.length,h.length),l=0;l<d;l++)p=c[l],u=h[l],v.push(p||u);switch(x.suggestion){case f.alignmentType.default:R=f.canvasLeft+w,i(v,!1);break;case f.alignmentType.alternate:f.labelAlignment=f.alignmentType.alternate,w=y/3,f.canvasLeft=f.chartWidth/2-w,R=f.canvasLeft+w,i(v,!0)}m._temp={slicingGapPosition:P,noOfGap:I}},drawPlotPyramid:function(t,e){this.translate();var i,n,r,o,a,s,l,c,h,d,u=this,p=t.items,f=t.data,g=(D=u.options).plotOptions,m=u.elements.plots[0],v=u.datasets[0],b=g.series.dataLabels,y=m.showLabelsAtCenter,x=(g=g.series.animation.duration||0,u.paper),w=(w=D.tooltip||{})&&!1!==w.enabled,_=(C=u.layers).tracker,C=C.datalabels||(C.datalabels=x.group("datalabels").insertAfter(C.dataset)),S=(k=v._temp||{}).slicingGapPosition,k=k.noOfGap,A=v.SlicingDistance,T=A/2,L=(v=0,D.chart.issliced),D=D.chart.textDirection,E={fontFamily:(E=b.style).fontFamily,fontSize:E.fontSize,lineHeight:E.lineHeight,fontWeight:E.fontWeight,fontStyle:E.fontStyle},P=function(t,e){return function(i){t.graphic.attr(e),Ct.call(this,u,i,"DataPlotRollOver")}},I=function(t,e){return function(i){t.graphic.attr(e),Ct.call(this,u,i,"DataPlotRollOut")}};for(c=function(t){return function(){u.legendClick(t,!0,!1)}},h=function(t){return function(){return u.getEventArgs(t)}},d=function(t){return function(){t.attr({visibility:"visible"})}},C.trackTooltip(!0),k&&(n=st(1.5*T,A/k),v=T),f&&f.length||(f=[]),m.singletonCase=1==f.length,l=f.length;l--;)r=(T=f[l]).y,o=T.displayValue,i=T.toolText,a=!!T.link,s=L?0:T.isSliced,null!=r&&T.shapeArgs?((A=p[l])||(e.data[l].plot=A=p[l]={value:r,sliced:!!s,cursor:a?"pointer":"",chart:u,plotItems:p,seriesData:m,x:T.x,index:l,graphic:u.pyramidFunnelShape(T.shapeArgs).attr({fill:T.color,opacity:g?0:T.alpha,"stroke-width":T.borderWidth,stroke:T.borderColor}),dataLabel:x.text(C).attr({text:o,direction:D,ishot:!0,cursor:a?"pointer":"",x:0,y:0}).css(E).tooltip(T.originalText),trackerObj:x.path(_)},r=o={},T.hoverEffects&&(r={color:T.color,opacity:T.alpha,"stroke-width":T.borderWidth,stroke:T.borderColor},o={color:(o=T.rolloverProperties).color,opacity:o.alpha,"stroke-width":o.borderWidth,stroke:o.borderColor}),e.data[l].legendClick=c(A),e.data[l].getEventArgs=h(A),!T.doNotSlice&&A.trackerObj.click(u.slice,A),A.trackerObj.mouseup(u.plotMouseUp,A).hover(P(A,o),I(A,r)),w&&A.trackerObj.tooltip(i),!T.doNotSlice&&A.dataLabel.click(u.slice,A),A.dataLabel.mouseup(u.plotMouseUp,A).hover(P(A,o),I(A,r)),y&&0===l&&"funnel"==u.type&&m.streamlinedData||(A.connector=x.path(C).attr({"stroke-width":b.connectorWidth,stroke:b.connectorColor,ishot:!0,cursor:a?"pointer":""}).click(u.slice,A).mouseup(u.plotMouseUp,A).hover(P(A,o),I(A,r))),A.dy=0,k&&(v&&(A._startTranslateY=i="t,0,"+v,A.dy=A.DistanceAvailed=v,A.graphic.attr({transform:i}),A.dataLabel.attr({transform:i}),A.connector.attr({transform:i})),S[T.x]&&(v-=n))),g&&(C.attr("visibility","hidden"),A.graphic.animate({opacity:T.alpha},g,"easeIn",l===f.length-1&&d(C)))):e.data[l].plot=p[l]={dataLabel:x.text(C).attr({text:o,direction:D,x:0,y:0}).css(E).tooltip(T.originalText)};u.drawDataLabels(),u.drawTracker(t,e)}},W["renderer.funnel"]),W("renderer.sparkline",{callbacks:[function(){if(!this.options.nativeMessage){var t,e=this.options,i=this.layers,n=this.paper,r=e.series[0]&&e.series[0].data&&e.series[0].data[0],o=i.limitlabels,a=this.smartLabel,s=(e=e.chart).highLowValue.highLabel,l=e.highLowValue.lowLabel,c=e.valuePadding,h=this.canvasHeight/2;r&&(o||(o=i.limitlabels=n.group("limitlabels").insertAfter(i.dataset)),o.translate(this.canvasLeft,this.canvasTop),Et
52(e.openValue.label)&&(r.openValue=n.text(-c,h,e.openValue.label,o).attr({direction:e.textDirection,"text-anchor":zt[Nt]}).css(e.openValue.style)),i=e.closeValue.label,t=this.canvasWidth+c,Et(i)&&(r.closeValue=n.text(this.canvasWidth+c,h,i,o).attr({direction:e.textDirection,"text-anchor":zt[jt]}).css(e.closeValue.style),a.setStyle(e.closeValue.style),t+=a.getOriSize(i).width+c),Et(s)&&(n.text(t,h,"[",o).attr({direction:e.textDirection,"text-anchor":zt[jt]}).css(e.highLowValue.style),a.setStyle(e.highLowValue.style),t+=a.getOriSize("[").width+1,r.highLabel=n.text(t,h,s,o).attr({direction:e.textDirection,"text-anchor":zt[jt]}).css(e.highLowValue.style).css({color:e.highColor}),t+=a.getOriSize(s).width+1),Et(l)&&(n.text(t,h,"|",o).attr({direction:e.textDirection,"text-anchor":zt[jt]}).css(e.highLowValue.style),t+=a.getOriSize("|").width+1,r.dataLabel=n.text(t,h,l,o).attr({direction:e.textDirection,"text-anchor":zt[jt]}).css(e.highLowValue.style).css({color:e.lowColor}),t+=a.getOriSize(l).width+1,n.text(t,h,"]",o).attr({direction:e.textDirection,"text-anchor":zt[jt]}).css(e.highLowValue.style)))}}]},W["renderer.cartesian"]),W("renderer.sparkwinloss",{callbacks:[function(){if(!this.options.nativeMessage){var t=this.options,e=this.layers,i=this.paper,n=t.series[0]&&t.series[0].data&&t.series[0].data[0],r=e.limitlabels,o=t.plotOptions.series.dataLabels&&t.plotOptions.series.dataLabels.style||{},a=(t=t.chart).closeValue.label,s={fontFamily:o.fontFamily,fontSize:o.fontSize,lineHeight:o.lineHeight,fontWeight:o.fontWeight,fontStyle:o.fontStyle};n&&(r||(r=e.limitlabels=i.group("limitlabels").insertAfter(e.dataset)),r.translate(this.canvasLeft,this.canvasTop),Et(a)&&a!==w&&(n.dataLabel=i.text(this.canvasWidth+t.valuePadding,this.canvasHeight/2,a,r).attr({"text-anchor":zt[jt],fill:o.color,direction:t.textDirection,"text-bound":[o.backgroundColor,o.borderColor,o.borderThickness,o.borderPadding,o.borderRadius,o.borderDash]}).css(s)))}}]},W["renderer.cartesian"]),W("renderer.realtimecartesian",{updatePlotColumn:function(t,e,i){var n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,b=this,y=t.data,_=y.length,C=t.items,S=t.graphics||(t.graphics=[]),k=b.paper,T=b.layers,L=(P=b.options).chart,D=!1!==(P.tooltip||{}).enabled,E=b.definition.chart,P=P.plotOptions.series,I=b.xAxis[e.xAxis||0],M=b.yAxis[e.yAxis||0],O=b.logic.isStacked,F=e.numColumns||1,R=e.columnPosition||0,B=L.canvasBorderOpacity=x.color(L.plotBorderColor).opacity,N=b.canvasBorderWidth,j=(B=L.isCanvasBorder||(L.isCanvasBorder=0!==B&&0<N),N=!1===e.visible?"hidden":"visible",L.overlapColumns),$=I.getAxisPosition(0),V=I.getAxisPosition(1)-$,H=E&&E.plotspacepercent,W=P.groupPadding,z=P.maxColWidth,q=($=A(E&&E.plotpaddingpercent),V=(H=(1-.01*H)*V||st(V*(1-2*W),z*F))/2,F=(H=H/F)-(j=st(H-1,1<F?j||void 0!==$?0<$?H*$/100:0:4:0)),R=R*H-V+j/2,V=M.max,H=M.min,j=0<V&&0<=H,$=0>=V&&0>H,V=0>V&&0>H?V:0<V&&0<H?H:0,L=A(L.useRoundEdges,0),T.dataset=T.dataset||k.group("dataset-orphan")),U=(T=T.tracker,H=b.canvasTop,W=b.canvasLeft,z=b.canvasBottom,b.canvasRight),G=A(E.variableindex,1),Y=-1;E=function(t,e){return function(i){t.attr(e),Ct.call(this,b,i,"dataplotrollover")}};if(m=function(t,e){return function(i){t.attr(e),Ct.call(this,b,i,"dataplotrollout")}},v=function(t){Ct.call(this,b,t)},O&&(p=q.shadows||(q.shadows=k.group("shadows",q).toBack())),q=q.column=q.column||k.group("columns",q),f=i.numUpdate||0)for(i=0;i<f;i+=1)(r=C.shift())&&delete r._state,r&&delete r.tracker,C.push(r);for(i=0;i<_;i+=1)h=i+f,c=(o=y[i]).y,r=A(o.x,i),d=I.getAxisPosition(r)+R,r=C[i],l=o.toolText,a=o.link,s=o.displayValue||w,n=it(o.borderWidth)||0,g={index:u=parseInt(G)?r&&r.index||(Y+1)%_:i,link:a,value:c,displayValue:o.displayValueArgs,categoryLabel:o.categoryLabel,toolText:l,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},h>=_&&(r||(r=C[i]={index:u,value:c,width:F,graphic:null,dataLabel:null,tracker:null}),r&&(r.valueBelowPlot=0>c),h=u={},o.hoverEffects&&(h={fill:vt(o.color),stroke:vt(o.borderColor),"stroke-width":n,"stroke-dasharray":o.dashStyle},u=o.rolloverProperties,u={fill:vt(u.color),stroke:vt(u.borderColor),"stroke-width":u.borderWidth,"stroke-dasharray":u.dashStyle}),r.graphic||(r.graphic=k.rect(q).attr({visibility:N}),S.push(r.graphic),r.graphic.shadow(P.shadow&&o.shadow,p)),r.graphic.attr({r:L,fill:vt(o.color||""),stroke:vt(o.borderColor||""),"stroke-width":n,"stroke-dasharray":o.dashStyle,"stroke-linejoin":"miter"}),r.tracker||(r.tracker=k.rect(T).attr({stroke:et,fill:et,visibility:N}),S.push(r.tracker)),r._attrHoverInFn&&r.tracker.unhover(r._attrHoverInFn,r._attrHoverOutFn),r._attrClickFn&&r.tracker.unclick(r._attrClickFn),r.tracker.attr({height:0,width:0,r:L,"stroke-width":n,stroke:et,cursor:a?"pointer":"",ishot:!0}).data("eventArgs",g).click(r._attrClickFn=v).hover(r._attrHoverInFn=E(r.graphic,u),r._attrHoverOutFn=m(r.graphic,h)).tooltip(l)),null===c?r&&(r.graphic&&r.graphic.attr({height:0,"stroke-width":0}),r.tracker&&r.tracker.attr({height:0,"stroke-width":0}),r.dataLabel&&r.dataLabel.attr({text:""})):(h=o.previousY,u=M.getAxisPosition(h||V),o=M.getAxisPosition(c+(h||0)),l=lt(o-u),0>c&&(o=u),nt(o)<=H&&(l-=H-o-+B,o=H-+B),rt(o+l)>=z&&(l-=rt(o+l)-z+ +!!n+ +B),1>=n&&(rt(d)<=W&&(F+=d,F-=d=W-n/2+ +!!n-+B),rt(d+F)>=U&&(F=U-d+n/2-+!!n+ +B)),d=(u=x.crispBound(d,o,F,l,n)).x,o=u.y,F=u.width,l=u.height,B&&!Et(h)&&($?(l+=n=o-(H-n/2),o-=n):j&&(l=z-o+n/2)),1>=l&&(l=1,o+=0>c?0:-l),r&&r.graphic&&(r.graphic.attr({x:d,y:o,width:F,height:l}).data("BBox",u),r.tracker.data("eventArgs",g),r.dataLabel&&r.dataLabel.attrs.text!==s&&r.dataLabel.attr({text:s}),b.drawPlotColumnLabel(t,e,i,d,o),a||D)&&(!O&&l<wt&&(o-=(wt-l)/2,l=wt),r.tracker&&r.tracker.attr({x:d,y:o,width:F,height:l}))),Y=r&&(Y=r.index)||Y;return t}
52,updateRealtimeAnchorImage:function(t,e,i,n,r,o,a,s,l,c){var h,d,u,p,f,g,m,v,b,y,x,w=r.graphic;i=!1===i.visible?"hidden":"visible";var _=function(t){var e,i=t.length,n="";for(e=0;e<i;e+=1)n+=" "+t[e];return n};h=(h=(h=this.layers).dataset=h.dataset||s.group("dataset-orphan")).line||(h.line=s.group("line-connector",h)),n=n.anchorShadowLayer||(n.anchorShadowLayer=s.group("anchor-shadow",h)),(d=r.graphicImage)?(u="spoke"===(h=o.symbol.split("_"))[0]?1:0,p=o.radius,f=o.shadow,g=o.imagePadding,m=v=b=y={},b=d.data("setRolloverAttr"),y=d.data("setRolloutAttr"),x=a.rolloverProperties.radius-g-a.rolloverProperties.lineWidth,g=p-g-o.lineWidth,m&&(g=_((u=s.polypath(h[1]||2,t,e,0<g?g:0,o.startAngle,u).attr({visibility:"hidden"})).attrs.path),u.remove(),u=s.polypath(h[1]||2,t,e,0<x?x:0,a.rolloverProperties.startAngle,a.rolloverProperties.dip).attr({visibility:"hidden"}),s=_(u.attrs.path),u.remove(),b.x=t-.5*b.width,b.y=e-.5*b.height,b["clip-path"]=s,d&&d.stop(),r.dataLabel&&r.dataLabel.stop(),y.x=t-.5*y.width,y.y=e-.5*y.height,y["clip-path"]=g,d.attr(y)),(s=a.rolloverProperties)&&(v={polypath:[h[1]||2,t,e,p,o.startAngle,0],fill:vt(o.fillColor),"stroke-width":o.lineWidth,stroke:vt(o.lineColor)},m={polypath:[(s=a.rolloverProperties).sides||2,t,e,s.radius,s.startAngle,s.dip],fill:vt(s.fillColor),"stroke-width":s.lineWidth,stroke:vt(s.lineColor)}),w&&w.attr({polypath:[h[1]||2,t,e,p,o.startAngle,0],visibility:0===p?"hidden":i}).data("isRealtime",!0).data("alwaysInvisible",0===p).data("setRolloverProperties",s).data("setRolloverAttr",m).data("setRolloutAttr",v).data("anchorRadius",p).data("anchorHoverRadius",s&&s.radius).shadow(f||!1,n),(l||c)&&r.tracker&&r.tracker.attr({cx:t,cy:e})):(m=w.data("setRolloverAttr"),v=w.data("setRolloutAttr"),m&&(m.x=t-.5*m.width,m.y=e-.5*m.height,w&&w.stop(),r.dataLabel&&r.dataLabel.stop(),v.x=t-.5*v.width,v.y=e-.5*v.height,w.attr(v),r.tracker&&r.tracker.attr({x:v.x,y:v.y,fill:et})))},updatePlotLine:function(t,e,i){var n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x,_,C,S,k,T,L,D,E,P,I,M,O,F=this,R=F.paper,B=(W=F.options).chart,N=W.plotOptions.series,j=t.items,$=t.graphics||(t.graphics=[]),V=F.xAxis[e.xAxis||0],H=F.yAxis[e.yAxis||0],W=!1!==(W.tooltip||{}).enabled,z=t.data,q=!1===e.visible?"hidden":"visible",G=z.length,Y=N.connectNullData,X=null,J=e.lineWidth,K=e.color,Q=(tt=F.layers).dataset=tt.dataset||R.group("dataset-orphan"),tt=tt.tracker;if(P=function(t){Ct.call(this,F,t)},I=function(t){return function(e){F.hoverPlotAnchor(this,e,"DataPlotRollOver",t,F)}},M=function(t){return function(e){F.hoverPlotAnchor(this,e,"DataPlotRollOut",t,F)}},O=function(i,n,r,o,a,s,l,c){return function(){(x=o.dataLabel=F.drawPlotLineLabel(t,e,c,i,n))&&$.push(x)}},_=Q.line||(Q.line=R.group("line-connector",Q)),C=t.lineShadowLayer||(t.lineShadowLayer=R.group("connector-shadow",_)),S=t.anchorShadowLayer||(t.anchorShadowLayer=R.group("anchor-shadow",_)),Q=t.lineLayer||(t.lineLayer=R.group("connector",_)),_=t.anchorLayer||(t.anchorLayer=R.group("anchors",_)),L=i.numUpdate||0)for(i=0;i<L;i+=1)(n=j.shift())&&delete n._state,j.push(n);for(i=0;i<G;i+=1)T=i+L,c=(r=z[i]).y,l=A(r.x,i),l=V.getAxisPosition(l),s=r.toolText,o=r.link,a=r.displayValue||w,f=g=(p=r.marker||{}).radius||0,k=p.shadow,m=p.lineWidth||0,v=p.fillColor||"",b=p.lineColor||"",E=!!(n=p.imageUrl),(n=j[i])._state||(n._state={}),T>=G&&(n||(n=j[i]={index:i,value:c,graphic:null,connector:null,dataLabel:null,tracker:null}),n.graphic&&"image"===n.graphic.type&&!E&&(n.graphic&&n.graphic.remove(),n.tracker&&n.tracker.remove(),n.graphic=n.tracker=null),n.graphicImage&&n.graphicImage.remove(),n.graphic||(n.graphic=(E?R.image(_):R.polypath(_)).attr({visibility:q}),$.push(n.graphic)),E||n.graphic.attr({fill:vt(v),"stroke-width":m,stroke:vt(b)}),n.connector||(n.connector=R.path(Q).attr({visibility:q}),n.connector.shadow(N.shadow&&r.shadow,C),$.push(n.connector)),n.connector.attr({"stroke-dasharray":u,stroke:vt(d||K),"stroke-width":J,"stroke-linecap":"round","stroke-linejoin":2<J?"round":"miter"}),n.tracker||(n.tracker=(E?R.rect(tt):R.circle(tt)).attr({stroke:et,fill:et,visibility:q}),$.push(n.tracker)),g=at(g,y&&y.radius||0,B.anchorTrackingRadius),D={index:i,link:o,value:r.y,displayValue:r.displayValueArgs,categoryLabel:r.categoryLabel,toolText:r.toolText,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},n._attrClickFn&&n.tracker.unclick(n._attrClickFn),n._attrHoverInFn&&n.tracker.unhover(n._attrHoverInFn,n._attrHoverOutFn),n.tracker.attr({r:g,"stroke-width":m,stroke:et,cursor:o?"pointer":"",ishot:!0}).data("eventArgs",D).click(n._attrClickFn=P).hover(n._attrHoverInFn=I(n),n._attrHoverOutFn=M(n)).tooltip(s)),n&&(n.index=i),null===c?(n&&(n.graphic&&n.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),n.dataLabel&&n.dataLabel.attr({text:""}),n.connector&&n.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0}),n.tracker&&n.tracker.attr({r:0,"stroke-width":0})),0===Y&&(X=null)):(d=H.getAxisPosition(c),p&&p.enabled&&(g=p.symbol.split("_"),m=n.graphic,u=c={},y=r.rolloverProperties,E?T>=G?(o={isTooltip:W,setLink:o,hotLayer:tt},(u=new Z.Image).onload=F.onAnchorImageLoad(this,t,e,l,d,p,n,D,s,y,i,_,o),u.onerror=O(l,d,p,n,D,s,y,i),u.src=p.imageUrl):this.updateRealtimeAnchorImage(l,d,e,t,n,p,r,R,o,W):((y=r.rolloverProperties)&&(u={polypath:[g[1]||2,l,d,f,p.startAngle,0],fill:vt(p.fillColor),"stroke-width":p.lineWidth,stroke:vt(p.lineColor)},c={polypath:[(y=r.rolloverProperties).sides||2,l,d,y.radius,y.startAngle,y.dip],fill:vt(y.fillColor),"stroke-width":y.lineWidth,stroke:vt(y.lineColor)}),m&&m.attr({polypath:[g[1]||2,l,d,f,p.startAngle,0],visibility:0===f?"hidden":q}).data("isRealtime",!0).data("alwaysInvisible",0===f).data("setRolloverProperties",y).data("setRolloverAttr",c).data("setRolloutAttr",u).data("anchorRadius",f).data("anchorHoverRadius",y&&y.radius).shadow(k||!1,S),(o||W)&&n.tracker&&n.tracker.attr({cx:l,cy:d}))),n.dataLabel&&n.dataLabel.attrs.text!=a&&n.dataLabel.attr({text:a}),x=F.drawPlotLineLabel(t,e,i,l,d),null!==X?((h=["M",h,U,X]).push("L",l,U,d),(X=n.connector)&&X.attr({path:h,"stroke-width":J})):n.connector&&n.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0}),h=l,X=d,d=r.color,u=r.dashStyle||e.dashStyle);return t}
52,updatePlotArea:function(t,e,i){var n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x,_,C,S,k,T,L,D,E,P,I,M=this,O=M.paper,F=(z=M.options).chart,R=M.logic,B=z.plotOptions.series,N=t.items,j=t.graphics||(t.graphics=[]),$=M.xAxis[e.xAxis||0],V=M.yAxis[e.yAxis||0],H=V.axisData.reversed,W=R.isStacked,z=!1!==(z.tooltip||{}).enabled,q=(R="0"===M.definition.chart.drawfullareaborder,t.data),G=!1===e.visible?"hidden":"visible",Y=q.length,X=B.connectNullData,J=V.max,K=V.min,Q=(H=V.getAxisPosition(0<J&&0<K?H?J:K:0>J&&0>K?H?K:J:H?J:0),J=null,K=e.lineWidth,e.dashStyle),tt=vt(e.lineColor),it=0,nt=[],rt=[],ot=[],st=(lt=M.layers).dataset=lt.dataset||O.group("dataset-orphan"),lt=lt.tracker;if(V.yBasePos=H,D=function(t){Ct.call(this,M,t)},E=function(t){return function(e){M.hoverPlotAnchor(this,e,"DataPlotRollOver",t,M)}},P=function(t){return function(e){M.hoverPlotAnchor(this,e,"DataPlotRollOut",t,M)}},I=function(i,n,r,o,a,s,l,c){return function(){(_=o.dataLabel=M.drawPlotLineLabel(t,e,c,i,n))&&j.push(_)}},W&&(x=st.shadows||(st.shadows=O.group("shadows",st).toBack())),b=st.line||(st.line=O.group("line-connector",st)),t.lineShadowLayer||(t.lineShadowLayer=O.group("connector-shadow",b)),st=t.anchorShadowLayer||(t.anchorShadowLayer=O.group("anchor-shadow",b)),W=t.lineLayer||(t.lineLayer=O.group("connector",b)),b=t.anchorLayer||(t.anchorLayer=O.group("anchors",b)),S=i.numUpdate||0)for(i=0;i<S;i+=1)(n=N.shift())&&delete n._state,N.push(n);for(i=0;i<Y;i+=1)C=i+S,l=(r=q[i]).y,n=A(r.x,i),d=$.getAxisPosition(n),s=r.toolText,o=r.link,a=r.displayValue||w,p=h=(u=r.marker||{}).radius||0,y=u.shadow,c=u.lineWidth||0,f=u.fillColor||"",g=u.lineColor||"",L=!!(T=u.imageUrl),n=N[i],C>=Y&&(n||(n=N[i]={index:i,graphic:null,connector:null,dataLabel:null,tracker:null}),n.graphic&&"image"===n.graphic.type&&!L&&(n.graphic&&n.graphic.remove(),n.tracker&&n.tracker.remove(),n.graphic=n.tracker=null),n.graphicImage&&!L&&(n.graphicImage&&n.graphicImage.remove(),n.graphic&&n.graphic.remove(),n.tracker&&n.tracker.remove(),n.graphic=n.tracker=null),n.graphic||(n.graphic=(L?O.image(b):O.polypath(b)).attr({visibility:G}),j.push(n.graphic)),L||n.graphic.attr({fill:vt(f),"stroke-width":c,stroke:vt(g)}),n.tracker||(n.tracker=(L?O.rect(lt):O.circle(lt)).attr({stroke:et,fill:et,visibility:G}),j.push(n.tracker)),h=at(h,m&&m.radius||0,F.anchorTrackingRadius),k={index:i,link:o,value:r.y,displayValue:r.displayValueArgs,categoryLabel:r.categoryLabel,toolText:r.toolText,id:t.userID,datasetIndex:t.index,datasetName:t.name,visible:t.visible},n._attrHoverInFn&&n.tracker.unhover(n._attrHoverInFn,n._attrHoverOutFn),n._attrClickFn&&n.tracker.unclick(n._attrClickFn),n.tracker.attr({r:h,"stroke-width":c,cursor:o?"pointer":"",ishot:!0}).data("eventArgs",k).click(n._attrClickFn=D).hover(n._attrHoverInFn=E(n),n._attrHoverOutFn=P(n)).tooltip(s)),n&&(n.index=i),null===l?(n&&(n.graphic&&n.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),n.dataLabel&&n.dataLabel.attr({text:""}),n.tracker&&n.tracker.attr({r:0,"stroke-width":0})),0===X&&(J=null,0<it&&(1===it?nt.splice(-8,8):(nt=nt.concat(rt)).push("Z"),rt=[]))):(o=r.link,c=r.previousY,h=(h=V.getAxisPosition(c)||null)||H,l=V.getAxisPosition(l+(c||0)),u&&u.enabled&&(g=u.symbol.split("_"),v=n.graphic,c=f={},m=r.rolloverProperties,L&&v?C>=Y?(o={isTooltip:z,setLink:o,hotLayer:lt},(C=new Z.Image).onload=M.onAnchorImageLoad(this,t,e,d,l,u,n,k,s,m,i,b,o),C.onerror=I(d,l,u,n,k,s,m,i),C.src=T):this.updateRealtimeAnchorImage(d,l,e,t,n,u,r,O,o,z):(m&&(c={polypath:[g[1]||2,d,l,p,u.startAngle,0],fill:vt(u.fillColor),"stroke-width":u.lineWidth,stroke:vt(u.lineColor)},f={polypath:[(m=r.rolloverProperties).sides||2,d,l,m.radius,m.startAngle,m.dip],fill:vt(m.fillColor),"stroke-width":m.lineWidth,stroke:vt(m.lineColor)}),v&&v.attr({polypath:[g[1]||2,d,l,p,u.startAngle,0],visibility:0===p?"hidden":G}).data("isRealtime",!0).data("alwaysInvisible",0===p).data("setRolloverProperties",m).data("setRolloverAttr",f).data("setRolloutAttr",c).data("anchorRadius",p).data("anchorHoverRadius",m&&m.radius).shadow(y||!1,st),(o||z)&&n.tracker&&n.tracker.attr({cx:d,cy:l}))),n.dataLabel&&n.dataLabel.attrs.text!==a&&n.dataLabel.attr({text:a}),_=M.drawPlotLineLabel(t,e,i,d,l),null===J?(ot.push("M",d,U,l),nt.push("M",d,U,h),it=0):ot.push("L",d,U,l),nt.push("L",d,U,l),rt.unshift("L",d,U,h),it++,J=l);return 0<it&&(1===it?nt.splice(-8,8):(nt=nt.concat(rt)).push("Z")),t.graphic||(t.graphic=O.path(void 0).attr({"stroke-dasharray":Q,"stroke-width":R?0:K,stroke:tt,"stroke-linecap":"round","stroke-linejoin":2<K?"round":"miter"}).shadow(B.shadow&&r.shadow,x),j.push(t.graphic)),t.graphic.attr({path:nt}),R&&(t.connector||(t.connector=O.path(W).attr({"stroke-dasharray":Q,"stroke-width":K,stroke:tt,"stroke-linecap":"round","stroke-linejoin":2<K?"round":"miter"}),j.push(t.connector)),t.connector.attr({path:ot})),t}},W["renderer.cartesian"])},[3,2,0,"sr2"]]),FusionCharts.register("theme",{name:"fint",theme:{base:{chart:{paletteColors:"#0075c2,#1aaf5d,#f2c500,#f45b00,#8e0000,#0e948c,#8cbb2c,#f3de00,#c02d00,#5b0101",labelDisplay:"auto",baseFontColor:"#333333",baseFont:"Helvetica Neue,Arial",captionFontSize:"14",subcaptionFontSize:"14",subcaptionFontBold:"0",showBorder:"0",bgColor:"#ffffff",showShadow:"0",canvasBgColor:"#ffffff",showCanvasBorder:"0",useplotgradientcolor:"0",useRoundEdges:"0",showPlotBorder:"0",showAlternateHGridColor:"0",showAlternateVGridColor:"0",toolTipColor:"#ffffff",toolTipBorderThickness:"0",toolTipBgColor:"#000000",toolTipBgAlpha:"80",toolTipBorderRadius:"2",toolTipPadding:"5",legendBgAlpha:"0",legendBorderAlpha:"0",legendShadow:"0",legendItemFontSize:"10",legendItemFontColor:"#666666",legendCaptionFontSize:"9",divlineAlpha:"100",divlineColor:"#999999",divlineThickness:"1",divLineIsDashed:"1",divLineDashLen:"1",divLineGapLen:"1",scrollheight:"10",flatScrollBars:"1",scrollShowButtons:"0",scrollC
52olor:"#cccccc",showHoverEffect:"1",valueFontSize:"10",showXAxisLine:"1",xAxisLineThickness:"1",xAxisLineColor:"#999999"},dataset:[{}],trendlines:[{}]},geo:{chart:{showLabels:"0",fillColor:"#0075c2",showBorder:"1",borderColor:"#eeeeee",borderThickness:"1",borderAlpha:"50",entityFillhoverColor:"#0075c2",entityFillhoverAlpha:"80",connectorColor:"#cccccc",connectorThickness:"1.5",markerFillHoverAlpha:"90"}},pie2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",captionPadding:"15"},data:function(t,e,i){return e=window.Math,{alpha:100-(50<i?e.round(100/e.ceil(i/10)):20)*e.floor(t/10)}}},doughnut2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",centerLabelFontSize:"12",centerLabelBold:"1",centerLabelFontColor:"#333333",captionPadding:"15"},data:function(t,e,i){return e=window.Math,{alpha:100-(50<i?e.round(100/e.ceil(i/10)):20)*e.floor(t/10)}}},line:{chart:{lineThickness:"2"}},spline:{chart:{lineThickness:"2"}},column2d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},bar2d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1"}},column3d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},bar3d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1"}},area2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},splinearea:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},mscolumn2d:{chart:{valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},mscolumn3d:{chart:{showValues:"0"}},msstackedcolumn2dlinedy:{chart:{showValues:"0"}},stackedcolumn2d:{chart:{showValues:"0"}},stackedarea2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},stackedbar2d:{chart:{showValues:"0"}},msstackedcolumn2d:{chart:{showValues:"0"}},mscombi3d:{chart:{showValues:"0"}},mscombi2d:{chart:{showValues:"0"}},mscolumn3dlinedy:{chart:{showValues:"0"}},stackedcolumn3dline:{chart:{showValues:"0"}},stackedcolumn2dline:{chart:{showValues:"0"}},scrollstackedcolumn2d:{chart:{valueFontColor:"#ffffff"}},scrollcombi2d:{chart:{showValues:"0"}},scrollcombidy2d:{chart:{showValues:"0"}},logstackedcolumn2d:{chart:{showValues:"0"}},logmsline:{chart:{showValues:"0"}},logmscolumn2d:{chart:{showValues:"0"}},msstackedcombidy2d:{chart:{showValues:"0"}},scrollcolumn2d:{chart:{valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},pareto2d:{chart:{paletteColors:"#0075c2",showValues:"0"}},pareto3d:{chart:{paletteColors:"#0075c2",showValues:"0"}},angulargauge:{chart:{pivotFillColor:"#ffffff",pivotRadius:"4",gaugeFillMix:"{light+0}",showTickValues:"1",majorTMHeight:"12",majorTMThickness:"2",majorTMColor:"#000000",minorTMNumber:"0",tickValueDistance:"10",valueFontSize:"24",valueFontBold:"1",gaugeInnerRadius:"50%",showHoverEffect:"0"},dials:{dial:[{baseWidth:"10",rearExtension:"7",bgColor:"#000000",bgAlpha:"100",borderColor:"#666666",bgHoverAlpha:"20"}]}},hlineargauge:{chart:{pointerFillColor:"#ffffff",gaugeFillMix:"{light+0}",showTickValues:"1",majorTMHeight:"3",majorTMColor:"#000000",minorTMNumber:"0",valueFontSize:"18",valueFontBold:"1"},pointers:{pointer:[{}]}},bubble:{chart:{use3dlighting:"0",showplotborder:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0",plotFillHoverColor:"#2b8ecf"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},scatter:{chart:{use3dlighting:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},boxandwhisker2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},thermometer:{chart:{gaugeFillColor:"#0075c2"}},cylinder:{chart:{cylFillColor:"#0075c2"}},sparkline:{chart:{linecolor:"#0075c2"}},sparkcolumn:{chart:{plotFillColor:"#0075c2"}}
vendor: 4,131 bytes, line 52
52,sparkwinloss:{chart:{winColor:"#0075c2",lossColor:"#1aaf5d",drawColor:"#f2c500",scoreLessColor:"#f45b00"}},hbullet:{chart:{plotFillColor:"#0075c2",targetColor:"#1aaf5d"}},vbullet:{chart:{plotFillColor:"#0075c2",targetColor:"#1aaf5d"}}}}),function(t,e){"object"==typeof module&&module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,(function(){"use strict";function t(t,e){var i,n=document.createElement(t||"div");for(i in e)n[i]=e[i];return n}function e(t){for(var e=1,i=arguments.length;i>e;e++)t.appendChild(arguments[e]);return t}function i(t,e,i,n){var r=["opacity",e,~~(100*t),i,n].join("-"),o=.01+i/n*100,a=Math.max(1-(1-t)/e*(100-o),t),s=c.substring(0,c.indexOf("Animation")).toLowerCase(),l=s&&"-"+s+"-"||"";return u[r]||(h.insertRule("@"+l+"keyframes "+r+"{0%{opacity:"+a+"}"+o+"%{opacity:"+t+"}"+(o+.01)+"%{opacity:1}"+(o+e)%100+"%{opacity:"+t+"}100%{opacity:"+a+"}}",h.cssRules.length),u[r]=1),r}function n(t,e){var i,n,r=t.style;if(void 0!==r[e=e.charAt(0).toUpperCase()+e.slice(1)])return e;for(n=0;n<d.length;n++)if(void 0!==r[i=d[n]+e])return i}function r(t,e){for(var i in e)t.style[n(t,i)||i]=e[i];return t}function o(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)void 0===t[n]&&(t[n]=i[n])}return t}function a(t,e){return"string"==typeof t?t:t[e%t.length]}function s(t){this.opts=o(t||{},s.defaults,p)}function l(){function i(e,i){return t("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',i)}h.addRule(".spin-vml","behavior:url(#default#VML)"),s.prototype.lines=function(t,n){function o(){return r(i("group",{coordsize:h+" "+h,coordorigin:-c+" "+-c}),{width:h,height:h})}function s(t,s,l){e(u,e(r(o(),{rotation:360/n.lines*t+"deg",left:~~s}),e(r(i("roundrect",{arcsize:n.corners}),{width:c,height:n.scale*n.width,left:n.scale*n.radius,top:-n.scale*n.width>>1,filter:l}),i("fill",{color:a(n.color,t),opacity:n.opacity}),i("stroke",{opacity:0}))))}var l,c=n.scale*(n.length+n.width),h=2*n.scale*c,d=-(n.width+n.length)*n.scale*2+"px",u=r(o(),{position:"absolute",top:d,left:d});if(n.shadow)for(l=1;l<=n.lines;l++)s(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=n.lines;l++)s(l);return e(t,u)},s.prototype.opacity=function(t,e,i,n){var r=t.firstChild;n=n.shadow&&n.lines||0,r&&e+n<r.childNodes.length&&((r=(r=(r=r.childNodes[e+n])&&r.firstChild)&&r.firstChild)&&(r.opacity=i))}}var c,h,d=["webkit","Moz","ms","O"],u={},p={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",opacity:.25,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"};if(s.defaults={},o(s.prototype,{spin:function(e){this.stop();var i=this,n=i.opts,o=i.el=t(null,{className:n.className});if(r(o,{position:n.position,width:0,zIndex:n.zIndex,left:n.left,top:n.top}),e&&e.insertBefore(o,e.firstChild||null),o.setAttribute("role","progressbar"),i.lines(o,i.opts),!c){var a,s=0,l=(n.lines-1)*(1-n.direction)/2,h=n.fps,d=h/n.speed,u=(1-n.opacity)/(d*n.trail/100),p=d/n.lines;!function t(){s++;for(var e=0;e<n.lines;e++)a=Math.max(1-(s+(n.lines-e)*p)%d*u,n.opacity),i.opacity(o,e*n.direction+l,a,n);i.timeout=i.el&&setTimeout(t,~~(1e3/h))}()}return i},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(n,o){function s(e,i){return r(t(),{position:"absolute",width:o.scale*(o.length+o.width)+"px",height:o.scale*o.width+"px",background:e,boxShadow:i,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*h+o.rotate)+"deg) translate("+o.scale*o.radius+"px,0)",borderRadius:(o.corners*o.scale*o.width>>1)+"px"})}for(var l,h=0,d=(o.lines-1)*(1-o.direction)/2;h<o.lines;h++)l=r(t(),{position:"absolute",top:1+~(o.scale*o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:c&&i(o.opacity,o.trail,d+h*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"}),o.shadow&&e(l,r(s("#000","0 0 4px #000"),{top:"2px"})),e(n,e(l,s(a(o.color,h),"0 0 1px rgba(0,0,0,.1)")));return n}
52,opacity:function(t,e,i){e<t.childNodes.length&&(t.childNodes[e].style.opacity=i)}}),"undefined"!=typeof document){h=function(){var i=t("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],i),i.sheet||i.styleSheet}();var f=r(t("group"),{behavior:"url(#default#VML)"});!n(f,"transform")&&f.adj?l():c=n(f,"animation")}return s})),function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():window.noUiSlider=t()}((function(){"use strict";function t(t){return t.filter((function(t){return!this[t]&&(this[t]=!0)}),{})}function e(t,e){return Math.round(t/e)*e}function i(t){var e=t.getBoundingClientRect(),i=t.ownerDocument.documentElement,n=d();return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(n.x=0),{top:e.top+n.y-i.clientTop,left:e.left+n.x-i.clientLeft}}function n(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function r(t,e,i){l(t,e),setTimeout((function(){c(t,e)}),i)}function o(t){return Math.max(Math.min(t,100),0)}function a(t){return Array.isArray(t)?t:[t]}function s(t){var e=t.split(".");return e.length>1?e[1].length:0}function l(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function c(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function h(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function d(){var t=void 0!==window.pageXOffset,e="CSS1Compat"===(document.compatMode||"");return{x:t?window.pageXOffset:e?document.documentElement.scrollLeft:document.body.scrollLeft,y:t?window.pageYOffset:e?document.documentElement.scrollTop:document.body.scrollTop}}function u(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function p(t,e){return 100/(e-t)}function f(t,e){return 100*e/(t[1]-t[0])}function g(t,e){return f(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}function m(t,e){return e*(t[1]-t[0])/100+t[0]}function v(t,e){for(var i=1;t>=e[i];)i+=1;return i}function b(t,e,i){if(i>=t.slice(-1)[0])return 100;var n,r,o,a,s=v(i,t);return n=t[s-1],r=t[s],o=e[s-1],a=e[s],o+g([n,r],i)/p(o,a)}function y(t,e,i){if(i>=100)return t.slice(-1)[0];var n,r=v(i,e);return m([t[r-1],t[r]],(i-(n=e[r-1]))*p(n,e[r]))}function x(t,i,n,r){if(100===r)return r;var o,a,s=v(r,t);return n?r-(o=t[s-1])>((a=t[s])-o)/2?a:o:i[s-1]?t[s-1]+e(r-t[s-1],i[s-1]):r}function w(t,e,i){var r;if("number"==typeof e&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(e))throw new Error("noUiSlider: 'range' contains invalid value.")
53;if(!n(r="min"===t?0:"max"===t?100:parseFloat(t))||!n(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");i.xPct.push(r),i.xVal.push(e[0]),r?i.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(i.xSteps[0]=e[1])}function _(t,e,i){if(!e)return!0;i.xSteps[t]=f([i.xVal[t],i.xVal[t+1]],e)/p(i.xPct[t],i.xPct[t+1])}function C(t,e,i,n){this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=e,this.direction=i;var r,o=[];for(r in t)t.hasOwnProperty(r)&&o.push([t[r],r]);for(o.length&&"object"==typeof o[0][0]?o.sort((function(t,e){return t[0][0]-e[0][0]})):o.sort((function(t,e){return t[0]-e[0]})),r=0;r<o.length;r++)w(o[r][1],o[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)_(r,this.xNumSteps[r],this)}function S(t,e){if(!n(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function k(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider: 'range' 'min' and 'max' cannot be equal.");t.spectrum=new C(e,t.snap,t.dir,t.singleStep)}function A(t,e){if(e=a(e),!Array.isArray(e)||!e.length||e.length>2)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function T(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.")}function L(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.")}function D(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.")}function E(t,e){if("lower"===e&&1===t.handles)t.connect=1;else if("upper"===e&&1===t.handles)t.connect=2;else if(!0===e&&2===t.handles)t.connect=3;else{if(!1!==e)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t.connect=0}}function P(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invali
53d.")}}function I(t,e){if(!n(e))throw new Error("noUiSlider: 'margin' option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.")}function M(t,e){if(!n(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders.")}function O(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1,t.connect=[0,2,1,3][t.connect];break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function F(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var i=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,a=e.indexOf("hover")>=0;if(n&&!t.connect)throw new Error("noUiSlider: 'drag' behaviour must be used with 'connect': true.");t.events={tap:i||o,drag:n,fixed:r,snap:o,hover:a}}function R(t,e){var i;if(!1!==e)if(!0===e)for(t.tooltips=[],i=0;i<t.handles;i++)t.tooltips.push(!0);else{if(t.tooltips=a(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.tooltips.forEach((function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}))}}function B(t,e){if(t.format=e,"function"==typeof e.to&&"function"==typeof e.from)return!0;throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.")}function N(t,e){if(void 0!==e&&"string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function j(t,e){if(void 0!==e&&"object"!=typeof e)throw new Error("noUiSlider: 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix)for(var i in t.cssClasses={},e)e.hasOwnProperty(i)&&(t.cssClasses[i]=t.cssPrefix+e[i]);else t.cssClasses=e}function $(t){var e,i={margin:0,limit:0,animate:!0,animationDuration:300,format:W};e={step:{r:!1,t:S},start:{r:!0,t:A},connect:{r:!0,t:E},direction:{r:!0,t:O},snap:{r:!1,t:T},animate:{r:!1,t:L},animationDuration:{r:!1,t:D},range:{r:!0,t:k},orientation:{r:!1,t:P},margin:{r:!1,t:I},limit:{r:!1,t:M},behaviour:{r:!0,t:F},format:{r:!1,t:B},tooltips:{r:!1,t:R},cssPrefix:{r:!1,t:N}
53,cssClasses:{r:!1,t:j}};var n={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",stacking:"stacking",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}};return Object.keys(e).forEach((function(r){if(void 0===t[r]&&void 0===n[r]){if(e[r].r)throw new Error("noUiSlider: '"+r+"' is required.");return!0}e[r].t(i,void 0===t[r]?n[r]:t[r])})),i.pips=t.pips,i.style=i.ort?"top":"left",i}function V(e,n,p){function f(t,e,i){var n=t+e[0],r=t+e[1];return i?(n<0&&(r+=Math.abs(n)),r>100&&(n-=r-100),[o(n),o(r)]):[n,r]}function g(t,e){t.preventDefault();var i,n,r=0===t.type.indexOf("touch"),o=0===t.type.indexOf("mouse"),a=0===t.type.indexOf("pointer"),s=t;return 0===t.type.indexOf("MSPointer")&&(a=!0),r&&(i=t.changedTouches[0].pageX,n=t.changedTouches[0].pageY),e=e||d(),(o||a)&&(i=t.clientX+e.x,n=t.clientY+e.y),s.pageOffset=e,s.points=[i,n],s.cursor=o||a,s}function m(t,e){var i=document.createElement("div"),r=document.createElement("div"),o=[n.cssClasse
53s.handleLower,n.cssClasses.handleUpper];return t&&o.reverse(),l(r,n.cssClasses.handle),l(r,o[e]),l(i,n.cssClasses.origin),i.appendChild(r),i}function v(t,e,i){switch(t){case 1:l(e,n.cssClasses.connect),l(i[0],n.cssClasses.background);break;case 3:l(i[1],n.cssClasses.background);case 2:l(i[0],n.cssClasses.connect);case 0:l(e,n.cssClasses.background)}}function b(t,e,i){var n,r=[];for(n=0;n<t;n+=1)r.push(i.appendChild(m(e,n)));return r}function y(t,e,i){l(i,n.cssClasses.target),l(i,0===t?n.cssClasses.ltr:n.cssClasses.rtl),l(i,0===e?n.cssClasses.horizontal:n.cssClasses.vertical);var r=document.createElement("div");return l(r,n.cssClasses.base),i.appendChild(r),r}function x(t,e){if(!n.tooltips[e])return!1;var i=document.createElement("div");return i.className=n.cssClasses.tooltip,t.firstChild.appendChild(i)}function w(){n.dir&&n.tooltips.reverse();var t=Y.map(x);n.dir&&(t.reverse(),n.tooltips.reverse()),z("update",(function(e,i,r){t[i]&&(t[i].innerHTML=!0===n.tooltips[i]?e[i]:n.tooltips[i].to(r[i]))}))}function _(t,e,i){if("range"===t||"steps"===t)return Q.xVal;if("count"===t){var n,r=100/(e-1),o=0;for(e=[];(n=o++*r)<=100;)e.push(n);t="positions"}return"positions"===t?e.map((function(t){return Q.fromStepping(i?Q.getStep(t):t)})):"values"===t?i?e.map((function(t){return Q.fromStepping(Q.getStep(Q.toStepping(t)))})):e:void 0}function C(e,i,n){function r(t,e){return(t+e).toFixed(7)/1}var o=Q.direction,a={},s=Q.xVal[0],l=Q.xVal[Q.xVal.length-1],c=!1,h=!1,d=0;return Q.direction=0,(n=t(n.slice().sort((function(t,e){return t-e}))))[0]!==s&&(n.unshift(s),c=!0),n[n.length-1]!==l&&(n.push(l),h=!0),n.forEach((function(t,o){var s,l,u,p,f,g,m,v,b,y=t,x=n[o+1];if("steps"===i&&(s=Q.xNumSteps[o]),s||(s=x-y),!1!==y&&void 0!==x)for(l=y;l<=x;l=r(l,s)){for(m=(f=(p=Q.toStepping(l))-d)/e,b=f/(v=Math.round(m)),u=1;u<=v;u+=1)a[(d+u*b).toFixed(5)]=["x",0];g=n.indexOf(l)>-1?1:"steps"===i?2:0,!o&&c&&(g=0),l===x&&h||(a[p.toFixed(5)]=[l,g]),d=p}})),Q.direction=o,a}function S(t,e,i){function r(t,e){var i=e===n.cssClasses.value,r=i?h:d;return e+" "+(i?u:p)[n.ort]+" "+r[t]}function o(t,e,i){return'class="'+r(i[1],e)+'" style="'+n.style+": "+t+'%"'}function a(t,r){Q.direction&&(t=100-t),r[1]=r[1]&&e?e(r[0],r[1]):r[1],c+="<div "+o(t,n.cssClasses.marker,r)+"></div>",r[1]&&(c+="<div "+o(t,n.cssClasses.value,r)+">"+i.to(r[0])+"</div>")}
53var s=document.createElement("div"),c="",h=[n.cssClasses.valueNormal,n.cssClasses.valueLarge,n.cssClasses.valueSub],d=[n.cssClasses.markerNormal,n.cssClasses.markerLarge,n.cssClasses.markerSub],u=[n.cssClasses.valueHorizontal,n.cssClasses.valueVertical],p=[n.cssClasses.markerHorizontal,n.cssClasses.markerVertical];return l(s,n.cssClasses.pips),l(s,0===n.ort?n.cssClasses.pipsHorizontal:n.cssClasses.pipsVertical),Object.keys(t).forEach((function(e){a(e,t[e])})),s.innerHTML=c,s}function k(t){var e=t.mode,i=t.density||1,n=t.filter||!1,r=C(i,e,_(e,t.values||!1,t.stepped||!1)),o=t.format||{to:Math.round};return K.appendChild(S(r,n,o))}function A(){var t=G.getBoundingClientRect(),e="offset"+["Width","Height"][n.ort];return 0===n.ort?t.width||G[e]:t.height||G[e]}function T(t,e,i){var r;for(r=0;r<n.handles;r++)if(-1===Z[r])return;void 0!==e&&1!==n.handles&&(e=Math.abs(e-n.dir)),Object.keys(et).forEach((function(n){var r=n.split(".")[0];t===r&&et[n].forEach((function(t){t.call(X,a(V()),e,a(L(Array.prototype.slice.call(tt))),i||!1,Z)}))}))}function L(t){return 1===t.length?t[0]:n.dir?t.reverse():t}function D(t,e,i,r){var o=function(e){return!K.hasAttribute("disabled")&&(!h(K,n.cssClasse
53s.tap)&&(e=g(e,r.pageOffset),!(t===J.start&&void 0!==e.buttons&&e.buttons>1)&&((!r.hover||!e.buttons)&&(e.calcPoint=e.points[n.ort],void i(e,r)))))},a=[];return t.split(" ").forEach((function(t){e.addEventListener(t,o,!1),a.push([t,o])})),a}function E(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return P(t,e);var i,n,r=e.handles||Y,o=!1,a=100*(t.calcPoint-e.start)/e.baseSize,s=r[0]===Y[0]?0:1;if(i=f(a,e.positions,r.length>1),o=B(r[0],i[s],1===r.length),r.length>1){if(o=B(r[1],i[s?0:1],!1)||o)for(n=0;n<e.handles.length;n++)T("slide",n)}else o&&T("slide",s)}function P(t,e){var i=G.querySelector("."+n.cssClasses.active),r=e.handles[0]===Y[0]?0:1;null!==i&&c(i,n.cssClasses.active),t.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener));var o=document.documentElement;o.noUiListeners.forEach((function(t){o.removeEventListener(t[0],t[1])})),c(K,n.cssClasses.drag),T("set",r),T("change",r),void 0!==e.handleNumber&&T("end",e.handleNumber)}function I(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&P(t,e)}function M(t,e){var i=document.documentElement;if(1===e.handles.length){if(e.handles[0].hasAttribute("disabled"))return!1;
53l(e.handles[0].children[0],n.cssClasses.active)}t.preventDefault(),t.stopPropagation();var r=D(J.move,i,E,{start:t.calcPoint,baseSize:A(),pageOffset:t.pageOffset,handles:e.handles,handleNumber:e.handleNumber,buttonsProperty:t.buttons,positions:[Z[0],Z[Y.length-1]]}),o=D(J.end,i,P,{handles:e.handles,handleNumber:e.handleNumber}),a=D("mouseout",i,I,{handles:e.handles,handleNumber:e.handleNumber});if(i.noUiListeners=r.concat(o,a),t.cursor){document.body.style.cursor=getComputedStyle(t.target).cursor,Y.length>1&&l(K,n.cssClasses.drag);var s=function(){return!1};document.body.noUiListener=s,document.body.addEventListener("selectstart",s,!1)}void 0!==e.handleNumber&&T("start",e.handleNumber)}function O(t){var e,o,a=t.calcPoint,s=0;if(t.stopPropagation(),Y.forEach((function(t){s+=i(t)[n.style]})),e=a<s/2||1===Y.length?0:1,Y[e].hasAttribute("disabled")&&(e=e?0:1),o=100*(a-=i(G)[n.style])/A(),n.events.snap||r(K,n.cssClasses.tap,n.animationDuration),Y[e].hasAttribute("disabled"))return!1;B(Y[e],o),T("slide",e,!0),T("set",e,!0),T("change",e,!0),n.events.snap&&M(t,{handles:[Y[e]]})}function F(t){var e=t.calcPoint-i(G)[n.style],r=Q.getStep(100*e/A()),o=Q.fromStepping(r);Object.keys(et).forEach((function(t){"hover"===t.split(".")[0]&&et[t].forEach((function(t){t.call(X,o)}))}))}function R(t){if(t.fixed||Y.forEach((function(t,e){D(J.start,t.children[0],M,{handles:[t],handleNumber:e})})),t.tap&&D(J.start,G,O,{handles:Y}),t.hover&&D(J.move,G,F,{hover:!0}),t.drag){var e=[G.querySelector("."+n.cssClasses.connect)];
53l(e[0],n.cssClasses.draggable),t.fixed&&e.push(Y[e[0]===Y[0]?1:0].children[0]),e.forEach((function(t){D(J.start,t,M,{handles:Y})}))}}function B(t,e,i){var r=t!==Y[0]?1:0,a=Z[0]+n.margin,s=Z[1]-n.margin,h=Z[0]+n.limit,d=Z[1]-n.limit;return Y.length>1&&(e=r?Math.max(e,a):Math.min(e,s)),!1!==i&&n.limit&&Y.length>1&&(e=r?Math.min(e,h):Math.max(e,d)),(e=o(e=Q.getStep(e)))!==Z[r]&&(window.requestAnimationFrame?window.requestAnimationFrame((function(){t.style[n.style]=e+"%"})):t.style[n.style]=e+"%",t.previousSibling||(c(t,n.cssClasses.stacking),e>50&&l(t,n.cssClasses.stacking)),Z[r]=e,tt[r]=Q.fromStepping(e),T("update",r),!0)}function N(t,e){var i,r,o;for(n.limit&&(t+=1),i=0;i<t;i+=1)null!==(o=e[r=i%2])&&!1!==o&&("number"==typeof o&&(o=String(o)),(!1===(o=n.format.from(o))||isNaN(o)||!1===B(Y[r],Q.toStepping(o),i===3-n.dir))&&T("update",r))}function j(t,e){var i,o,s=a(t);for(e=void 0===e||!!e,n.dir&&n.handles>1&&s.reverse(),n.animate&&-1!==Z[0]&&r(K,n.cssClasses.tap,n.animationDuration),i=Y.length>1?3:1,1===s.length&&(i=1),N(i,s),o=0;o<Y.length;o++)null!==s[o]&&e&&T("set",o)}function V(){var t,e=[];for(t=0;t<n.handles;t+=1)e[t]=n.format.to(tt[t]);return L(e)}function H(){for(var t in n.cssClasses)n.cssClasses.hasOwnProperty(t)&&c(K,n.cssClasse
53s[t]);for(;K.firstChild;)K.removeChild(K.firstChild);delete K.noUiSlider}function W(){return L(Z.map((function(t,e){var i=Q.getApplicableStep(t),n=s(String(i[2])),r=tt[e],o=100===t?null:i[2],a=Number((r-i[2]).toFixed(n));return[0===t?null:a>=i[1]?i[2]:i[0]||!1,o]})))}function z(t,e){et[t]=et[t]||[],et[t].push(e),"update"===t.split(".")[0]&&Y.forEach((function(t,e){T("update",e)}))}function q(t){var e=t&&t.split(".")[0],i=e&&t.substring(e.length);Object.keys(et).forEach((function(t){var n=t.split(".")[0],r=t.substring(n.length);e&&e!==n||i&&i!==r||delete et[t]}))}function U(t,e){var i=V(),r=$({start:[0,0],margin:t.margin,limit:t.limit,step:void 0===t.step?n.singleStep:t.step,range:t.range,animate:t.animate,snap:void 0===t.snap?n.snap:t.snap});["margin","limit","range","animate"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),r.spectrum.direction=Q.direction,Q=r.spectrum,Z=[-1,-1],j(t.start||i,e)}var G,Y,X,J=u(),K=e,Z=[-1,-1],Q=n.spectrum,tt=[],et={};if(K.noUiSlider)throw new Error("Slider was already initialized.");return G=y(n.dir,n.ort,K),Y=b(n.handles,n.dir,G),v(n.connect,K,Y),n.pips&&k(n.pips),n.tooltips&&w(),X={destroy:H,steps:W,on:z,off:q,get:V,set:j,updateOptions:U,options:p,target:K,pips:k},R(n.events),X}function H(t,e){if(!t.nodeName)throw new Error("noUiSlider.create requires a single element.");var i=$(e,t),n=V(t,i,e);return n.set(i.start),t.noUiSlider=n,n}C.prototype.getMargin=function(t){return 2===this.xPct.length&&f(this.xVal,t)},C.prototype.toStepping=function(t){return t=b(this.xVal,this.xPct,t),this.direction&&(t=100-t),t},C.prototype.fromStepping=function(t){return this.direction&&(t=100-t),y(this.xVal,this.xPct,t)},C.prototype.getStep=function(t){return this.direction&&(t=100-t),t=x(this.xPct,this.xSteps,this.snap,t),this.direction&&(t=100-t),t},C.prototype.getApplicableStep=function(t){var e=v(t,this.xPct),i=100===t?2:1;return[this.xNumSteps[e-2],this.xVal[e-i],this.xNumSteps[e-i]]},C.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var W={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};return{create:H}})),function(){var t=[].slice;!function(e,i){"use strict";var n;n=function(){function t(t,i){var n;null==i&&(i={}),this.$element=e(t),this.options=e.extend({},e.fn.bootstrapSwitch.defaults,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),readonly:this.$element.is("[readonly]"),indeterminate:this.$element.data("indeterminate"),inverse:this.$element.data("inverse"),radioAllOff:this.$element.data("radio-all-off"),onColor:this.$element.data("on-color"),offColor:this.$element.data("off-color"),onText:this.$element.data("on-text"),offText:this.$element.data("off-text"),labelText:this.$element.data("label-text"),handleWidth:this.$element.data("handle-width"),labelWidth:this.$element.data("label-width"),baseClass:this.$element.data("base-class"),wrapperClass:this.$element.data("wrapper-class")},i),this.$wrapper=e("<div>",{class:(n=this,function(){var t;return(t=[""+n.options.baseClass].concat(n._getClasses(n.options.wrapperClass))).push(n.options.state?n.options.baseClass+"-on":n.options.baseClass+"-off"),null!=n.options.size&&t.push(n.options.baseClass+"-"+n.options.size),n.options.disabled&&t.push(n.options.baseClass+"-disabled"),n.options.readonly&&t.push(n.options.baseClass+"-readonly"),n.options.indeterminate&&t.push(n.options.baseClass+"-indeterminate"),n.options.inverse&&t.push(n.options.baseClass+"-inverse"),n.$element.attr("id")&&t.push(n.options.baseClass+"-id-"+n.$element.attr("id")),t.join(" ")})()}),this.$container=e("<div>",{class:this.options.baseClass+"-container"}),this.$on=e("<span>",{html:this.options.onText,class:this.options.baseClass+"-handle-on "+this.options.baseClass+"-"+this.options.onColor}),this.$off=e("<span>",{html:this.options.offText,class:this.options.baseClass+"-handle-off "+this.options.baseClass+"-"+this.options.offColor}),this.$label=e("<span>",{html:this.options.labelText,class:this.options.baseClass+"-label"}),this.$element.on("init.bootstrapSwitch",function(e){return function(){return e.options.onInit.apply(t,arguments)}}(this)),this.$element.on("switchChange.bootstrapSwitch",function(e){return function(){return e.options.onSwitchChange.apply(t,arguments)}}(this)),this.$container=this.$element.wrap(this.$container).parent(),this.$wrapper=this.$container.wrap(this.$wrapper).parent(),this.$element.before(this.options.inverse?this.$off:this.$on).before(this.$label).before(this.options.inverse?this.$on:this.$off),this.options.indeterminate&&this.$element.prop("indeterminate",!0),this._init(),this._elementHandlers(),this._handleHandlers(),this._labelHandlers(),this._formHandler(),this._externalLabelHandler(),this.$element.trigger("init.bootstrapSwitch")}return t.prototype._constructor=t,t.prototype.state=function(t,e){return void 0===t?this.options.state:(this.options.disabled||this.options.readonly||this.options.state&&!this.options.radioAllOff&&this.$element.is(":radio")||(this.options.indeterminate&&this.indeterminate(!1),t=!!t,this.$element.prop("checked",t).trigger("change.bootstrapSwitch",e)),this.$element)},t.prototype.toggleState=function(t){return this.options.disabled||this.options.readonly?this.$element:this.options.indeterminate?(this.indeterminate(!1),this.state(!0)):this.$element.prop("checked",!this.options.state).trigger("change.bootstrapSwitch",t)},t.prototype.size=function(t){return void 0===t?this.options.size:(null!=this.options.size&&this.$wrapper.removeClass(this.options.baseClass+"-"+this.options.size),t&&this.$wrapper.addClass(this.options.baseClass+"-"+t),this._width(),this._containerPosition(),this.options.size=t,this.$element)},t.prototype.animate=function(t){return void 0===t?this.options.animate:(t=!!t)===this.options.animate?this.$element:this.toggleAnimate()},t.prototype.toggleAnimate=function(){return this.options.animate=!this.options.animate,this.$wrapper.toggleClass(this.options.baseClass+"-animate"),this.$element},t.prototype.disabled=function(t){return void 0===t?this.options.disabled:(t=!!t)===this.options.disabled?this.$element:this.toggleDisabled()},t.prototype.toggleDisabled=function(){return this.options.disabled=!this.options.disabled,this.$element.prop("disabled",this.options.disabled),this.$wrapper.toggleClass(this.options.baseClass+"-disabled"),this.$element},t.prototype.readonly=function(t){return void 0===t?this.options.readonly:(t=!!t)===this.options.readonly?this.$element:this.toggleReadonly()},t.prototype.toggleReadonly=function(){return this.options.readonly=!this.options.readonly,this.$element.prop("readonly",this.options.readonly),this.$wrapper.toggleClass(this.options.baseClass+"-readonly"),this.$element},t.prototype.indeterminate=function(t){return void 0===t?this.options.indeterminate:(t=!!t)===this.options.indeterminate?this.$element:this.toggleIndeterminate()},t.prototype.toggleIndeterminate=function(){return this.options.indeterminate=!this.options.indeterminate,this.$element.prop("indeterminate",this.options.indeterminate),this.$wrapper.toggleClass(this.options.baseClass+"-indeterminate"),this._containerPosition(),this.$element},t.prototype.inverse=function(t){return void 0===t?this.options.inverse:(t=!!t)===this.options.inverse?this.$element:this.toggleInverse()},t.prototype.toggleInverse=function(){var t,e;return this.$wrapper.toggleClass(this.options.baseClass+"-inverse"),e=this.$on.clone(!0),t=this.$off.clone(!0),this.$on.replaceWith(t),this.$off.replaceWith(e),this.$on=t,this.$off=e,this.options.inverse=!this.options.inverse,this.$element},t.prototype.onColor=function(t){var e;return e=this.options.onColor,void 0===t?e:(null!=e&&this.$on.removeClass(this.options.baseClass+"-"+e),this.$on.addClass(this.options.baseClass+"-"+t),this.options.onColor=t,this.$element)},t.prototype.offColor=function(t){var e;return e=this.options.offColor,void 0===t?e:(null!=e&&this.$off.removeClass(this.options.baseClass+"-"+e),this.$off.addClass(this.options.baseClass+"-"+t),this.options.offColor=t,this.$element)},t.prototype.onText=function(t){return void 0===t?this.options.onText:(this.$on.html(t),this._width(),this._containerPosition(),this.options.onText=t,this.$element)},t.prototype.offText=function(t){return void 0===t?this.options.offText:(this.$off.html(t),this._width(),this._containerPosition(),this.options.offText=t,this.$element)},t.prototype.labelText=function(t){return void 0===t?this.options.labelText:(this.$label.html(t),this._width(),this.options.labelText=t,this.$element)},t.prototype.handleWidth=function(t){return void 0===t?this.options.handleWidth:(this.options.handleWidth=t,this._width(),this._containerPosition(),this.$element)},t.prototype.labelWidth=function(t){return void 0===t?this.options.labelWidth:(this.options.labelWidth=t,this._width(),this._containerPosition(),this.$element)},t.prototype.baseClass=function(){return this.options.baseClass},t.prototype.wrapperClass=function(t){return void 0===t?this.options.wrapperClass:(t||(t=e.fn.bootstrapSwitch.defaults.wrapperClass),this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" ")),this.$wrapper.addClass(this._getClasses(t).join(" ")),this.options.wrapperClass=t,this.$element)},t.prototype.radioAllOff=function(t){return void 0===t?this.options.radioAllOff:((t=!!t)===this.options.radioAllOff||(this.options.radioAllOff=t),this.$element)},t.prototype.onInit=function(t){return void 0===t?this.options.onInit:(t||(t=e.fn.bootstrapSwitch.defaults.onInit),this.options.onInit=t,this.$element)},t.prototype.onSwitchChange=function(t){return void 0===t?this.options.onSwitchChange:(t||(t=e.fn.bootstrapSwitch.defaults.onSwitchChange),this.options.onSwitchChange=t,this.$element)},t.prototype.destroy=function(){var t;return(t=this.$element.closest("form")).length&&t.off("reset.bootstrapSwitch").removeData("bootstrap-switch"),this.$container.children().not(this.$element).remove(),this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch"),this.$element},t.prototype._width=function(){var t,e,i;return(t=this.$on.add(this.$off)).add(this.$label).css("width",""),e="auto"===this.options.handleWidth?Math.max(this.$on.width(),this.$off.width()):this.options.handleWidth,t.width(e),this.$label.
53width((i=this,function(t,n){return"auto"!==i.options.labelWidth?i.options.labelWidth:n<e?e:n})),this._handleWidth=this.$on.outerWidth(),this._labelWidth=this.$label.outerWidth(),this.$container.width(2*this._handleWidth+this._labelWidth),this.$wrapper.width(this._handleWidth+this._labelWidth)},t.prototype._containerPosition=function(t,e){var i;if(null==t&&(t=this.options.state),this.$container.css("margin-left",(i=this,function(){var e;return e=[0,"-"+i._handleWidth+"px"],i.options.indeterminate?"-"+i._handleWidth/2+"px":t?i.options.inverse?e[1]:e[0]:i.options.inverse?e[0]:e[1]})),e)return setTimeout((function(){return e()}),50)},t.prototype._init=function(){var t,e,n;return n=this,t=function(){return n._width(),n._containerPosition(null,(function(){if(n.options.animate)return n.$wrapper.addClass(n.options.baseClass+"-animate")}))},this.$wrapper.is(":visible")?t():e=i.setInterval(function(n){return function(){if(n.$wrapper.is(":visible"))return t(),i.clearInterval(e)}}(this),50)},t.prototype._elementHandlers=function(){return this.$element.on({"change.bootstrapSwitch":(t=this,function(i,n){var r;if(i.preventDefault(),i.stopImmediatePropagation(),r=t.$element.is(":checked"),t._containerPosition(r),r!==t.options.state)return t.options.state=r,t.$wrapper.toggleClass(t.options.baseClass+"-off").toggleClass(t.options.baseClass+"-on"),n?void 0:(t.$element.is(":radio")&&e("[name='"+t.$element.attr("name")+"']").not(t.$element).prop("checked",!1).trigger("change.bootstrapSwitch",!0),t.$element.trigger("switchChange.bootstrapSwitch",[r]))}),"focus.bootstrapSwitch":function(t){return function(e){return e.preventDefault(),t.$wrapper.addClass(t.options.baseClass+"-focused")}}(this),"blur.bootstrapSwitch":function(t){return function(e){return e.preventDefault(),t.$wrapper.removeClass(t.options.baseClass+"-focused")}}(this),"keydown.bootstrapSwitch":function(t){return function(e){if(e.which&&!t.options.disabled&&!t.options.readonly)switch(e.which){case 37:return e.preventDefault(),e.stopImmediatePropagation(),t.state(!1);case 39:return e.preventDefault(),e.stopImmediatePropagation(),t.state(!0)}}}(this)});var t},t.prototype._handleHandlers=function(){var t;return this.$on.on("click.bootstrapSwitch",(t=this,function(e){return e.preventDefault(),e.stopPropagation(),t.state(!1),t.$element.trigger("focus.bootstrapSwitch")})),this.$off.on("click.bootstrapSwitch",function(t){return function(e){return e.preventDefault(),e.stopPropagation(),t.state(!0),t.$element.trigger("focus.bootstrapSwitch")}}(this))},t.prototype._labelHandlers=function(){return this.$label.on({"mousedown.bootstrapSwitch touchstart.bootstrapSwitch":(t=this,function(e){if(!(t._dragStart||t.options.disabled||t.options.readonly))return e.preventDefault(),e.stopPropagation(),t._dragStart=(e.pageX||e.originalEvent.touches[0].pageX)-parseInt(t.$container.css("margin-left"),10),t.options.animate&&t.$wrapper.removeClass(t.options.baseClass+"-animate"),t.$element.trigger("focus.bootstrapSwitch")}),"mousemove.bootstrapSwitch touchmove.bootstrapSwitch":function(t){return function(e){var i;if(null!=t._dragStart&&(e.preventDefault(),!((i=(e.pageX||e.originalEvent.touches[0].pageX)-t._dragStart)<-t._handleWidth||i>0)))return t._dragEnd=i,t.$container.css("margin-left",t._dragEnd+"px")}}(this),"mouseup.bootstrapSwitch touchend.bootstrapSwitch":function(t){return function(e){var i;if(t._dragStart)return e.preventDefault(),t.options.animate&&t.$wrapper.addClass(t.options.baseClass+"-animate"),t._dragEnd?(i=t._dragEnd>-t._handleWidth/2,t._dragEnd=!1,t.state(t.options.inverse?!i:i)):t.state(!t.options.state),t._dragStart=!1}}(this),"mouseleave.bootstrapSwitch":function(t){return function(){return t.$label.trigger("mouseup.bootstrapSwitch")}}(this)});var t},t.prototype._externalLabelHandler=function(){var t,e;return(t=this.$element.closest("label")).on("click",(e=this,function(i){if(i.preventDefault(),i.stopImmediatePropagation(),i.target===t[0])return e.toggleState()}))},t.prototype._formHandler=function(){var t;if(!(t=this.$element.closest("form")).data("bootstrap-switch"))return t.on("reset.bootstrapSwitch",(function(){return i.setTimeout((function(){return t.find("input").filter((function(){return e(this).data("bootstrap-switch")})).each((function(){return e(this).bootstrapSwitch("state",this.checked)}))}),1)})).data("bootstrap-switch",!0)},t.prototype._getClasses=function(t){var i,n,r,o;
53if(!e.isArray(t))return[this.options.baseClass+"-"+t];for(n=[],r=0,o=t.length;r<o;r++)i=t[r],n.push(this.options.baseClass+"-"+i);return n},t}(),e.fn.bootstrapSwitch=function(){var i,r,o;return r=arguments[0],i=2<=arguments.length?t.call(arguments,1):[],o=this,this.each((function(){var t,a;if((a=(t=e(this)).data("bootstrap-switch"))||t.data("bootstrap-switch",a=new n(this,r)),"string"==typeof r)return o=a[r].apply(a,i)})),o},e.fn.bootstrapSwitch.Constructor=n,e.fn.bootstrapSwitch.defaults={state:!0,size:null,animate:!0,disabled:!1,readonly:!1,indeterminate:!1,inverse:!1,radioAllOff:!1,onColor:"primary",offColor:"default",onText:"ON",offText:"OFF",labelText:"&nbsp;",handleWidth:"auto",labelWidth:"auto",baseClass:"bootstrap-switch",wrapperClass:"wrapper",onInit:function(){},onSwitchChange:function(){}}}(window.jQuery,window)}.call(this),function(t){"use strict";function e(t,e){for(var i=0;i<t.length;++i)e(t[i],i)}function i(e,i){this.$select=t(e),this.$select.attr("data-placeholder")&&(i.nonSelectedText=this.$select.data("placeholder")),this.options=this.mergeOptions(t.extend({},i,this.$select.data())),this.originalOptions=this.$select.clone()[0].options,this.query="",this.searchTimeout=null,this.lastToggledInput=null,this.options.multiple="multiple"===this.$select.attr("multiple"),this.options.onChange=t.proxy(this.options.onChange,this),this.options.onDropdownShow=t.proxy(this.options.onDropdownShow,this),this.options.onDropdownHide=t.proxy(this.options.onDropdownHide,this),this.options.onDropdownShown=t.proxy(this.options.onDropdownShown,this),this.options.onDropdownHidden=t.proxy(this.options.onDropdownHidden,this),this.options.onInitialized=t.proxy(this.options.onInitialized,this),this.buildContainer(),this.buildButton(),this.buildDropdown(),this.buildSelectAll(),this.buildDropdownOptions(),this.buildFilter(),this.updateButtonText(),this.updateSelectAll(!0),this.options.disableIfEmpty&&t("option",this.$select).length<=0&&this.disable(),this.$select.hide().after(this.$container),this.options.onInitialized(this.$select,this.$container)}"undefined"!=typeof ko&&ko.bindingHandlers&&!ko.bindingHandlers.multiselect&&(ko.bindingHandlers.multiselect={after:["options","value","selectedOptions","enable","disable"],init:function(e,i,n){var r=t(e),o=ko.toJS(i());if(r.multiselect(o),n.has("options")){var a=n.get("options");ko.isObservable(a)&&ko.computed({read:function(){a(),setTimeout((function(){var t=r.data("multiselect");t&&t.updateOriginalOptions(),r.multiselect("rebuild")}),1)},disposeWhenNodeIsRemoved:e})}if(n.has("value")){var s=n.get("value");ko.isObservable(s)&&ko.computed({read:function(){s(),setTimeout((function(){r.multiselect("refresh")}),1)},disposeWhenNodeIsRemoved:e}).extend({rateLimit:100,notifyWhenChangesStop:!0})}if(n.has("selectedOptions")){var l=n.get("selectedOptions");ko.isObservable(l)&&ko.computed({read:function(){l(),setTimeout((function(){r.multiselect("refresh")}),1)},disposeWhenNodeIsRemoved:e}).extend({rateLimit:100,notifyWhenChangesStop:!0})}var c=function(t){setTimeout((function(){t?r.multiselect("enable"):r.multiselect("disable")}))};if(n.has("enable")){var h=n.get("enable");ko.isObservable(h)?ko.computed({read:function(){c(h())},disposeWhenNodeIsRemoved:e}).extend({rateLimit:100,notifyWhenChangesStop:!0}):c(h)}if(n.has("disable")){var d=n.get("disable");ko.isObservable(d)?ko.computed({read:function(){c(!d())},disposeWhenNodeIsRemoved:e}).extend({rateLimit:100,notifyWhenChangesStop:!0}):c(!d)}ko.utils.domNodeDisposal.addDisposeCallback(e,(function(){r.multiselect("destroy")}))},update:function(e,i){var n=t(e),r=ko.toJS(i());n.multiselect("setOptions",r),n.multiselect("rebuild")}}),i.prototype={defaults:{buttonText:function(e,i){if(this.disabledText.length>0&&(this.disableIfEmpty||i.prop("disabled"))&&0==e.length)return this.disabledText;if(0===e.length)return this.nonSelectedText;if(this.allSelectedText&&e.length===t("option",t(i)).length&&1!==t("option",t(i)).length&&this.multiple)return this.selectAllNumber?this.allSelectedText+" ("+e.length+")":this.allSelectedText;if(e.length>this.numberDisplayed)return e.length+" "+this.nSelectedText;var n="",r=this.delimiterText;return e.each((function(){var e=void 0!==t(this).attr("label")?t(this).attr("label"):t(this).text();n+=e+r})),n.substr(0,n.length-2)},buttonTitle:function(e){
54if(0===e.length)return this.nonSelectedText;var i="",n=this.delimiterText;return e.each((function(){var e=void 0!==t(this).attr("label")?t(this).attr("label"):t(this).text();i+=e+n})),i.substr(0,i.length-2)},optionLabel:function(e){return t(e).attr("label")||t(e).text()},optionClass:function(e){return t(e).attr("class")||""},onChange:function(){},onDropdownShow:function(){},onDropdownHide:function(){},onDropdownShown:function(){},onDropdownHidden:function(){},onSelectAll:function(){},onInitialized:function(){},enableHTML:!1,buttonClass:"btn btn-default",inheritClass:!1,buttonWidth:"auto",buttonContainer:'<div class="btn-group" />',dropRight:!1,dropUp:!1,selectedClass:"active",maxHeight:!1,checkboxName:!1,includeSelectAllOption:!1,includeSelectAllIfMoreThan:0,selectAllText:" Select all",selectAllValue:"multiselect-all",selectAllName:!1,selectAllNumber:!0,selectAllJustVisible:!0,enableFiltering:!1,enableCaseInsensitiveFiltering:!1,enableFullValueFiltering:!1,enableClickableOptGroups:!1,enableCollapsibelOptGroups:!1,filterPlaceholder:"Search",filterBehavior:"text",includeFilterClearBtn:!0,preventInputChangeEvent:!1,nonSelectedText:"None selected",nSelectedText:"selected",allSelectedText:"All selected",numberDis
54played:3,disableIfEmpty:!1,disabledText:"",delimiterText:", ",templates:{button:'<button type="button" class="multiselect dropdown-toggle" data-bs-toggle="dropdown"><span class="multiselect-selected-text"></span> <b class="caret"></b></button>',ul:'<ul class="multiselect-container dropdown-menu"></ul>',filter:'<li class="multiselect-item filter"><div class="input-group"><span class="input-group-prepend"><i class="fa fa-search"></i></span><input class="form-control multiselect-search" type="text"></div></li>',filterClearBtn:'<span class="input-group-btn"><button class="btn btn-default multiselect-clear-filter" type="button"><i class="fa fa-times-circle"></i></button></span>',li:'<li><a tabindex="0"><label></label></a></li>',divider:'<li class="multiselect-item divider"></li>',liGroup:'<li class="multiselect-item multiselect-group"><label></label></li>'}},constructor:i,buildContainer:function(){this.$container=t(this.options.buttonContainer),this.$container.on("show.bs.dropdown",this.options.onDropdownShow),this.$container.on("hide.bs.dropdown",this.options.onDropdownHide),this.$container.on("shown.bs.dropdown",this.options.onDropdownShown),this.$container.on("hidden.bs.dropdown",this.options.onDropdownHidden)},buildButton:function(){this.$button=t(this.options.templates.button).addClass(this.options.buttonClass),this.$select.attr("class")&&this.options.inheritClass&&this.$button.addClass(this.$select.attr("class")),this.$select.prop("disabled")?this.disable():this.enable(),this.options.buttonWidth&&"auto"!==this.options.buttonWidth&&(this.$button.css({width:this.options.buttonWidth,overflow:"hidden","text-overflow":"ellipsis"}),this.$container.css({width:this.options.buttonWidth}));var e=this.$select.attr("tabindex");e&&this.$button.attr("tabindex",e),this.$container.prepend(this.$button)},buildDropdown:function(){if(this.$ul=t(this.options.templates.ul),this.options.dropRight&&this.$ul.addClass("pull-right"),this.options.maxHeight&&this.$ul.css({"max-height":this.options.maxHeight+"px","overflow-y":"auto","overflow-x":"hidden"}),this.options.dropUp){var e=Math.min(this.options.maxHeight,26*t('option[data-role!="divider"]',this.$select).length+19*t('option[data-role="divider"]',this.$select).length+(this.options.includeSelectAllOption?26:0)+(this.options.enableFiltering||this.options.enableCaseInsensitiveFiltering?44:0)),i=e+34;this.$ul.css({"max-height":e+"px","overflow-y":"auto","overflow-x":"hidden","margin-top":"-"+i+"px"})}this.$container.append(this.$ul)},buildDropdownOptions:function(){this.$select.children().each(t.proxy((function(e,i){var n=t(i),r=n.prop("tagName").toLowerCase();n.prop("value")!==this.options.selectAllValue&&("optgroup"===r?this.createOptgroup(i):"option"===r&&("divider"===n.data("role")?this.createDivider():this.createOptionValue(i)))}),this)),t("li input",this.$ul).on("change",t.proxy((function(e){var i=t(e.target),n=i.prop("checked")||!1,r=i.val()===this.options.selectAllValue;this.options.selectedClass&&(n?i.closest("li").addClass(this.options.selectedClass):i.closest("li").removeClass(this.options.selectedClass));var o=i.val(),a=this.getOptionByValue(o),s=t("option",this.$select).not(a),l=t
54("input",this.$container).not(i);if(r?n?this.selectAll(this.options.selectAllJustVisible):this.deselectAll(this.options.selectAllJustVisible):(n?(a.prop("selected",!0),this.options.multiple?a.prop("selected",!0):(this.options.selectedClass&&t(l).closest("li").removeClass(this.options.selectedClass),t(l).prop("checked",!1),s.prop("selected",!1),this.$button.click()),"active"===this.options.selectedClass&&s.closest("a").css("outline","")):a.prop("selected",!1),this.options.onChange(a,n)),this.$select.change(),this.updateButtonText(),this.updateSelectAll(),this.options.preventInputChangeEvent)return!1}),this)),t("li a",this.$ul).on("mousedown",(function(t){if(t.shiftKey)return!1})),t("li a",this.$ul).on("touchstart click",t.proxy((function(e){e.stopPropagation();var i=t(e.target);if(e.shiftKey&&this.options.multiple){i.is("label")&&(e.preventDefault(),(i=i.find("input")).prop("checked",!i.prop("checked")));var n=i.prop("checked")||!1;if(null!==this.lastToggledInput&&this.lastToggledInput!==i){var r=i.closest("li").index(),o=this.lastToggledInput.closest("li").index();if(r>o){var a=o;o=r,r=a}++o;var s=this.$ul.find("li").slice(r,o).find("input");s.prop("checked",n),this.options.selectedClass&&s.closest("li").toggleClass(this.options.selectedClass,n);for(var l=0,c=s.length;l<c;l++){var h=t(s[l]);this.getOptionByValue(h.val()).prop("selected",n)}}i.trigger("change")}i.is("input")&&!i.closest("li").is(".multiselect-item")&&(this.lastToggledInput=i),i.blur()}),this)),this.$container.off("keydown.multiselect").on("keydown.multiselect",t.proxy((function(e){if(!t('input[type="text"]',this.$container).is(":focus"))if(9===e.keyCode&&this.$container.hasClass("open"))this.$button.click();else{var i=t(this.$container).find("li:not(.divider):not(.disabled) a").filter(":visible");if(!i.length)return;var n=i.index(i.filter(":focus"));38===e.keyCode&&n>0?n--:40===e.keyCode&&n<i.length-1?n++:~n||(n=0);var r=i.eq(n);if(r.focus(),32===e.keyCode||13===e.keyCode){var o=r.find("input");o.prop("checked",!o.prop("checked")),o.change()}e.stopPropagation(),e.preventDefault()}}),this)),this.options.enableClickableOptGroups&&this.options.multiple&&t("li.multiselect-group",this.$ul).on("click",t.proxy((function(e){e.stopPropagation(),console.log("test");var i=t(e.target).parent().nextUntil("li.multiselect-group").filter(":visible:not(.disabled)"),n=!0,r=i.find("input"),o=[];r.each((function(){n=n&&t(this).prop("checked"),o.push(t(this).val())})),n?this.deselect(o,!1):this.select(o,!1),this.options.onChange(r,!n)}),this)),this.options.enableCollapsibleOptGroups&&this.options.multiple&&(t("li.multiselect-group input",this.$ul).off(),t("li.multiselect-group",this.$ul).siblings().not("li.multiselect-group, li.multiselect-all",this.$ul).each((function(){t(this).toggleClass("hidden",!0)})),t("li.multiselect-group",this.$ul).on("click",t.proxy((function(t){t.stopPropagation()}),this)),t("li.multiselect-group > a > b",this.$ul).on("click",t.proxy((function(e){e.stopPropagation();var i=t(e.target).closest("li").nextUntil("li.multiselect-group"),n=!0;i.each((function(){n=n&&t(this).hasClass("hidden")})),i.toggleClass("hidden",!n)}),this)),t("li.multiselect-group > a > input",this.$ul).on("change",t.proxy((function(e){e.stopPropagation();var i=t(e.target).closest("li").nextUntil("li.multiselect-group",":not(.disabled)").find("input"),n=!0;i.each((function(){n=n&&t(this).prop("checked")})),i.prop("checked",!n).trigger("change")}),this)),t("li.multiselect-group",this.$ul).each((function(){var e=t(this).nextUntil("li.multiselect-group",":not(.disabled)").find("input"),i=!0;e.each((function(){i=i&&t(this).prop("checked")})),t(this).find("input").prop("checked",i)})),t("li input",this.$ul).on("change",t.proxy((function(e){e.stopPropagation();var i=t(e.target).closest("li"),n=i.prevUntil("li.multiselect-group",":not(.disabled)"),r=i.nextUntil("li.multiselect-group",":not(.disabled)"),o=n.find("input"),a=r.find("input"),s=t(e.target).prop("checked");o.each((function(){s=s&&t(this).prop("checked")})),a.each((function(){s=s&&t(this).prop("checked")})),i.prevAll(".multiselect-group").find("input").prop("checked",s)}),this)),t("li.multiselect-all",this.$ul).css("background","#f3f3f3").css("border-bottom","1px solid #eaeaea"),t("li.multiselect-group > a, li.multiselect-all > a > label.checkbox",this.$ul).css("padding","3px 20px 3px 35px"),t("li.multiselect-group > a > input",this.$ul).css("margin","4px 0px 5px -20px"))},createOptionValue:function(e){var i=t(e);i.is(":selected")&&i.prop("selected",!0);var n=this.options.optionLabel(e),r=this.options.optionClass(e),o=i.val(),a=this.options.multiple?"checkbox":"radio",s=t(this.options.templates.li),l=t("label",s);l.addClass(a),s.addClass(r),this.options.enableHTML?l.html(" "+n):l.text(" "+n);var c=t("<input/>").attr("type",a);this.options.checkboxName&&c.attr("name",this.options.checkboxName),l.prepend(c);var h=i.prop("selected")||!1;c.val(o),o===this.options.selectAllValue&&(s.addClass("multiselect-item multiselect-all"),c.parent().parent().addClass("multiselect-all")),l.attr("title",i.attr("title")),this.$ul.append(s),i.is(":disabled")&&c.attr("disabled","disabled").prop("disabled",!0).closest("a").attr("tabindex","-1").closest("li").addClass("disabled"),c.prop("checked",h),h&&this.options.selectedClass&&c.closest("li").addClass(this.options.selectedClass)},createDivider:function(){var e=t(this.options.templates.divider);this.$ul.append(e)},createOptgroup:function(e){if(this.options.enableCollapsibleOptGroups&&this.options.multiple){var i=t(e).attr("label"),n=t(e).attr("value"),r=t('<li class="multiselect-item multiselect-group"><a href="javascript:void(0);"><input type="checkbox" value="'+n+'"/><b> '+i+'<b class="caret"></b></b></a></li>');this.options.enableClickableOptGroups&&r.addClass("multiselect-group-clickable"),this.$ul.append(r),t(e).is(":disabled")&&r.addClass("disabled"),t("option",e).each(t.proxy((function(t,e){this.createOptionValue(e)}),this))}else{var o=t(e).prop("label"),a=t(this.options.templates.liGroup);this.options.enableHTML?t("label",a).html(o):t("label",a).text(o),this.options.enableClickableOptGroups&&a.addClass("multiselect-group-clickable"),this.$ul.append(a),t(e).is(":disabled")&&a.addClass("disabled"),t("option",e).each(t.proxy((function(t,e){this.createOptionValue(e)}),this))}},buildSelectAll:function(){if("number"==typeof this.options.selectAllValue&&(this.options.selectAllValue=this.options.selectAllValue.toString()),!this.hasSelectAll()&&this.options.includeSelectAllOption&&this.options.multiple&&t("option",this.$select).length>this.options.includeSelectAllIfMoreThan){this.options.includeSelectAllDivider&&this.$ul.prepend(t(this.options.templates.divider));var e=t(this.options.templates.li);t("label",e).addClass("checkbox"),this.options.enableHTML?t("label",e).html(" "+this.options.selectAllText):t("label",e).text(" "+this.options.selectAllText),this.options.selectAllName?t("label",e).prepend('<input type="checkbox" name="'+this.options.selectAllName+'" />'):t("label",e).prepend('<input type="checkbox" />');var i=t("input",e);i.val(this.options.selectAllValue),e.addClass("multiselect-item multiselect-all"),i.parent().parent().addClass("multiselect-all"),this.$ul.prepend(e),i.prop("checked",!1)}},buildFilter:function(){if(this.options.enableFiltering||this.options.enableCaseInsensitiveFiltering){var e=Math.max(this.options.enableFiltering,this.options.enableCaseInsensitiveFiltering);if(this.$select.find("option").length>=e){if(this.$filter=t(this.options.templates.filter),t("input",this.$filter).attr("placeholder",this.options.filterPlaceholder),this.options.includeFilterClearBtn){var i=t(this.options.templates.filterClearBtn);i.on("click",t.proxy((function(){clearTimeout(this.searchTimeout),this.$filter.find(".multiselect-search").val(""),t("li",this.$ul).show().removeClass("filter-hidden"),this.updateSelectAll()}
54),this)),this.$filter.find(".input-group").append(i)}this.$ul.prepend(this.$filter),this.$filter.val(this.query).on("click",(function(t){t.stopPropagation()})).on("input keydown",t.proxy((function(e){13===e.which&&e.preventDefault(),clearTimeout(this.searchTimeout),this.searchTimeout=this.asyncFunction(t.proxy((function(){var i,n;this.query!==e.target.value&&(this.query=e.target.value,t.each(t("li",this.$ul),t.proxy((function(e,r){var o=t("input",r).length>0?t("input",r).val():"",a=t("label",r).text(),s="";if("text"===this.options.filterBehavior?s=a:"value"===this.options.filterBehavior?s=o:"both"===this.options.filterBehavior&&(s=a+"\n"+o),o!==this.options.selectAllValue&&a){var l=!1;if(this.options.enableCaseInsensitiveFiltering&&(s=s.toLowerCase(),this.query=this.query.toLowerCase()),this.options.enableFullValueFiltering&&"both"!==this.options.filterBehavior){var c=s.trim().substring(0,this.query.length);this.query.indexOf(c)>-1&&(l=!0)}else s.indexOf(this.query)>-1&&(l=!0);t(r).toggle(l).toggleClass("filter-hidden",!l),t(r).hasClass("multiselect-group")?(i=r,n=l):(l&&t(i).show().removeClass("filter-hidden"),!l&&n&&t(r).show().removeClass("filter-hidden"))}}),this)));this.updateSelectAll()}),this),300,this)}),this))}}},destroy:function(){this.$container.remove(),this.$select.show(),this.$select.data("multiselect",null)},refresh:function(){var e=t.map(t("li input",this.$ul),t);t("option",this.$select).each(t.proxy((function(i,n){for(var r,o=t(n),a=o.val(),s=e.length;0<s--;)if(a===(r=e[s]).val()){o.is(":selected")?(r.prop("checked",!0),this.options.selectedClass&&r.closest("li").addClass(this.options.selectedClass)):(r.prop("checked",!1),this.options.selectedClass&&r.closest("li").removeClass(this.options.selectedClass)),o.is(":disabled")?r.attr("disabled","disabled").prop("disabled",!0).closest("li").addClass("disabled"):r.prop("disabled",!1).closest("li").removeClass("disabled");break}}),this)),this.updateButtonText(),this.updateSelectAll()},select:function(e,i){t.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(null!=r){var o=this.getOptionByValue(r),a=this.getInputByValue(r);void 0!==o&&void 0!==a&&(this.options.multiple||this.deselectAll(!1),this.options.selectedClass&&a.closest("li").addClass(this.options.selectedClass),a.prop("checked",!0),o.prop("selected",!0),i&&this.options.onChange(o,!0))}}this.updateButtonText(),this.updateSelectAll()},clearSelection:function(){this.deselectAll(!1),this.updateButtonText(),this.updateSelectAll()},deselect:function(e,i){t.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(null!=r){var o=this.getOptionByValue(r),a=this.getInputByValue(r);void 0!==o&&void 0!==a&&(this.options.selectedClass&&a.closest("li").removeClass(this.options.selectedClass),a.prop("checked",!1),o.prop("selected",!1),i&&this.options.onChange(o,!1))}}this.updateButtonText(),this.updateSelectAll()},selectAll:function(e,i){e=void 0===(e=(!this.options.enableCollapsibleOptGroups||!this.options.multiple)&&e)||e;var n=t("li input[type='checkbox']:enabled",this.$ul),r=n.filter(":visible"),o=n.length,a=r.length;if(e?(r.prop("checked",!0),t("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").addClass(this.options.selectedClass)):(n.prop("checked",!0),t("li:not(.divider):not(.disabled)",this.$ul).addClass(this.options.selectedClass)),o===a||!1===e)t("option:not([data-role='divider']):enabled",this.$select).prop("selected",!0);else{var s=r.map((function(){return t(this).val()})).get();t("option:enabled",this.$select).filter((function(){return-1!==t.inArray(t(this).val(),s)})).prop("selected",!0)}i&&this.options.onSelectAll()},deselectAll:function(e){if(e=void 0===(e=(!this.options.enableCollapsibleOptGroups||!this.options.multiple)&&e)||e){var i=t("li input[type='checkbox']:not(:disabled)",this.$ul).filter(":visible");i.prop("checked",!1);var n=i.map((function(){return t(this).val()})).get();t("option:enabled",this.$select).filter((function(){return-1!==t.inArray(t(this).val(),n)})).prop("selected",!1),this.options.selectedClass&&t("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").removeClass(this.options.selectedClass)}else t("li input[type='checkbox']:enabled",this.$ul).prop("checked",!1),t("option:enabled",this.$select).prop("selected",!1),this.options.selectedClass&&t("li:not(.divider):not(.disabled)",this.$ul).removeClass(this.options.selectedClass)},rebuild:function(){this.$ul.html(""),this.options.multiple="multiple"===this.$select.attr("multiple"),this.buildSelectAll(),this.buildDropdownOptions(),this.buildFilter(),this.updateButtonText(),this.updateSelectAll(!0),this.options.disableIfEmpty&&t("option",this.$select).length<=0?this.disable():this.enable(),this.options.dropRight&&this.$ul.addClass("pull-right")},dataprovider:function(i){var n=0,r=this.$select.empty();t.each(i,(function(i,o){var a;t.isArray(o.children)?(n++,a=t("<optgroup/>").attr({label:o.label||"Group "+n,disabled:!!o.disabled}),e(o.children,(function(e){a.append(t("<option/>").attr({value:e.value,label:e.label||e.value,title:e.title,selected:!!e.selected,disabled:!!e.disabled}))}))):(a=t("<option/>").attr({value:o.value,label:o.label||o.value,title:o.title,class:o.class,selected:!!o.selected,disabled:!!o.disabled})).text(o.label||o.value),r.append(a)})),this.rebuild()},enable:function(){this.$select.prop("disabled",!1),this.$button.prop("disabled",!1).removeClass("disabled")},disable:function(){this.$select.prop("disabled",!0),this.$button.prop("disabled",!0).addClass("disabled")},setOptions:function(t){this.options=this.mergeOptions(t)},mergeOptions:function(e){return t.extend(!0,{},this.defaults,this.options,e)},hasSelectAll:function(){return t("li.multiselect-all",this.$ul).length>0},updateSelectAll:function(e){if(this.hasSelectAll()){var i=t("li:not(.multiselect-item):not(.filter-hidden) input:enabled",this.$ul),n=i.length,r=i.filter(":checked").length,o=t("li.multiselect-all",this.$ul),a=o.find("input");r>0&&r===n?(a.prop("checked",!0),o.addClass(this.options.selectedClass),this.options.onSelectAll(!0)):(a.prop("checked",!1),o.removeClass(this.options.selectedClass),0===r&&(e||this.options.onSelectAll(!1)))}},updateButtonText:function(){var e=this.getSelected();this.options.enableHTML?t(".multiselect .multiselect-selected-text",this.$container).html(this.options.buttonText(e,this.$select)):t(".multiselect .multiselect-selected-text",this.$container).text(this.options.buttonText(e,this.$select)),t(".multiselect",this.$container).attr("title",this.options.buttonTitle(e,this.$select))},getSelected:function(){return t("option",this.$select).filter(":selected")},getOptionByValue:function(e){for(var i=t("option",this.$select),n=e.toString(),r=0;r<i.length;r+=1){var o=i[r];if(o.value===n)return t(o)}},getInputByValue:function(e){for(var i=t("li input",this.$ul),n=e.toString(),r=0;r<i.length;r+=1){var o=i[r];if(o.value===n)return t(o)}},updateOriginalOptions:function(){this.originalOptions=this.$select.clone()[0].options}
54,asyncFunction:function(t,e,i){var n=Array.prototype.slice.call(arguments,3);return setTimeout((function(){t.apply(i||window,n)}),e)},setAllSelectedText:function(t){this.options.allSelectedText=t,this.updateButtonText()}},t.fn.multiselect=function(e,n,r){return this.each((function(){var o=t(this).data("multiselect");o||(o=new i(this,"object"==typeof e&&e),t(this).data("multiselect",o)),"string"==typeof e&&(o[e](n,r),"destroy"===e&&t(this).data("multiselect",!1))}))},t.fn.multiselect.Constructor=i,t((function(){t("select[data-role=multiselect]").multiselect()}))}(window.jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,(function(){"use strict";function t(t){return null==t}function e(t){return null!=t}function i(t){return!0===t}function n(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function r(t){return null!==t&&"object"==typeof t}function o(t){return"[object Object]"===Mi.call(t)}function a(t){var e=parseFloat(String(t));return 0<=e&&Math.floor(e)===e&&isFinite(t)}function s(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function l(t){var e=parseFloat(t);return isNaN(e)?t:e}function c(t,e){for(var i=Object.create(null),n=t.split(","),r=0;r<n.length;r++)i[n[r]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}function h(t,e){if(t.length){var i=t.indexOf(e);if(-1<i)return t.splice(i,1)}}function d(t,e){return Ri.call(t,e)}function u(t){var e=Object.create(null);return function(i){return e[i]||(e[i]=t(i))}}function p(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function f(t,e){for(var i in e)t[i]=e[i];return t}function g(t){for(var e={},i=0;i<t.length;i++)t[i]&&f(e,t[i]);return e}function m(){}function v(t,e){if(t===e)return!0;var i=r(t),n=r(e);if(!i||!n)return!i&&!n&&String(t)===String(e);try{var o=Array.isArray(t),a=Array.isArray(e);if(o&&a)return t.length===e.length&&t.every((function(t,i){return v(t,e[i])}));if(o||a)return!1;var s=Object.keys(t),l=Object.keys(e);return s.length===l.length&&s.every((function(i){return v(t[i],e[i])}))}catch(i){return!1}}function b(t,e){for(var i=0;i<t.length;i++)if(v(t[i],e))return i;return-1}function y(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function x(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function w(t){return"function"==typeof t&&/native code/.test(t.toString())}function _(t){gn.target&&mn.push(gn.target),gn.target=t}function C(){gn.target=mn.pop()}function S(t){return new vn(void 0,void 0,void 0,String(t))}function k(t){var e=new vn(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.isCloned=!0,e}function A(t){Cn=t}function T(t,e){t.__proto__=e}function L(t,e,i){for(var n=0,r=i.length;n<r;n++){var o=i[n];x(t,o,e[o])}}function D(t,e){var i;if(r(t)&&!(t instanceof vn))return d(t,"__ob__")&&t.__ob__ instanceof Sn?i=t.__ob__:Cn&&!hn()&&(Array.isArray(t)||o(t))&&Object.isExtensible(t)&&!t._isVue&&(i=new Sn(t)),e&&i&&i.vmCount++,i}function E(t,e,i,n,r){var o=new gn,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get;s||2!==arguments.length||(i=t[e]);var l=a&&a.set,c=!r&&D(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):i;return gn.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&function t(e){for(var i=void 0,n=0,r=e.length;n<r;n++)(i=e[n])&&i.__ob__&&i.__ob__.dep.depend(),Array.isArray(i)&&t(i)}(e))),e},set:function(e){var n=s?s.call(t):i;e===n||e!=e&&n!=n||(l?l.call(t,e):i=e,c=!r&&D(e),o.notify())}})}}function P(t,e,i){if(Array.isArray(t)&&a(e))return t.length=Math.max(t.length,e),t.splice(e,1,i),i;if(e in t&&!(e in Object.prototype))return t[e]=i;var n=t.__ob__;return t._isVue||n&&n.vmCount?i:n?(E(n.value,e,i),n.dep.notify(),i):t[e]=i}function I(t,e){if(Array.isArray(t)&&a(e))t.splice(e,1);else{var i=t.__ob__;t._isVue||i&&i.vmCount||d(t,e)&&(delete t[e],i&&i.dep.notify())}}function M(t,e){if(!e)return t;for(var i,n,r,a=Object.keys(e),s=0;s<a.length;s++)n=t[i=a[s]],r=e[i],d(t,i)?o(n)&&o(r)&&M(n,r):P(t,i,r);return t}function O(t,e,i){return i?function(){var n="function"==typeof e?e.call(i,i):e,r="function"==typeof t?t.call(i,i):t;return n?M(n,r):r}:e?t?function(){return M("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function F(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function R(t,e){var i=Object.create(t||null);return e?f(i,e):i}function B(t,e,i){function n(n){var r=kn[n]||Ln;c[n]=r(t[n],e[n],i,n)}"function"==typeof e&&(e=e.options),function(t){var e=t.props;if(e){var i,n,r={};if(Array.isArray(e))for(i=e.length;i--;
vendor: 6,569 bytes, line 54
54)"string"==typeof(n=e[i])&&(r[Ni(n)]={type:null});else if(o(e))for(var a in e)n=e[a],r[Ni(a)]=o(n)?n:{type:n};t.props=r}}(e),function(t){var e=t.inject;if(e){var i=t.inject={};if(Array.isArray(e))for(var n=0;n<e.length;n++)i[e[n]]={from:e[n]};else if(o(e))for(var r in e){var a=e[r];i[r]=o(a)?f({from:r},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var i in e){var n=e[i];"function"==typeof n&&(e[i]={bind:n,update:n})}}(e);var r=e.extends;if(r&&(t=B(t,r,i)),e.mixins)for(var a=0,s=e.mixins.length;a<s;a++)t=B(t,e.mixins[a],i);var l,c={};for(l in t)n(l);for(l in e)d(t,l)||n(l);return c}function N(t,e,i){if("string"==typeof i){var n=t[e];if(d(n,i))return n[i];var r=Ni(i);if(d(n,r))return n[r];var o=ji(r);return d(n,o)?n[o]:n[i]||n[r]||n[o]}}function j(t,e,i,n){var r=e[t],o=!d(i,t),a=i[t],s=H(Boolean,r.type);if(-1<s)if(o&&!d(r,"default"))a=!1;else if(""===a||a===Vi(t)){var l=H(String,r.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(t,e,i){if(d(e,"default")){var n=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[i]&&void 0!==t._props[i]?t._props[i]:"function"==typeof n&&"Function"!==$(e.type)?n.call(t):n}}(n,r,t);var c=Cn;A(!0),D(a),A(c)}return a}function $(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function V(t,e){return $(t)===$(e)}function H(t,e){if(!Array.isArray(e))return V(e,t)?0:-1;for(var i=0,n=e.length;i<n;i++)if(V(e[i],t))return i;return-1}function W(t,e,i){if(e)for(var n=e;n=n.$parent;){var r=n.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{if(!1===r[o].call(n,t,e,i))return}catch(t){z(t,n,"errorCaptured hook")}}z(t,e,i)}function z(t,e,i){if(Yi.errorHandler)try{return Yi.errorHandler.call(null,t,e,i)}catch(t){q(t,null,"config.errorHandler")}q(t,e,i)}function q(t){if(!Ki&&!Zi||"undefined"==typeof console)throw t;console.error(t)}function U(){En=!1;for(var t=Dn.slice(0),e=Dn.length=0;e<t.length;e++)t[e]()}function G(t,e){var i;if(Dn.push((function(){if(t)try{t.call(e)}catch(t){W(t,e,"nextTick")}else i&&i(e)})),En||(En=!0,Pn?Tn():An()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){i=t}))}function Y(t){!function t(e,i){var n,o,a=Array.isArray(e);if(!(!a&&!r(e)||Object.isFrozen(e)||e instanceof vn)){if(e.__ob__){var s=e.__ob__.dep.id;if(i.has(s))return;i.add(s)}if(a)for(n=e.length;n--;)t(e[n],i);else for(n=(o=Object.keys(e)).length;n--;)t(e[o[n]],i)}}(t,Rn),Rn.clear()}function X(t){function e(){var t=arguments,i=e.fns;if(!Array.isArray(i))return i.apply(null,arguments);for(var n=i.slice(),r=0;r<n.length;r++)n[r].apply(null,t)}return e.fns=t,e}function J(e,i,n,r){var o,a,s,l;for(o in e)a=e[o],s=i[o],l=Bn(o),t(a)||(t(s)?(t(a.fns)&&(a=e[o]=X(a)),n(l.name,a,l.once,l.capture,l.passive,l.params)):a!==s&&(s.fns=a,e[o]=s));for(o in i)t(e[o])&&r((l=Bn(o)).name,i[o],l.capture)}function K(n,r,o){function a(){o.apply(this,arguments),h(s.fns,a)}var s;n instanceof vn&&(n=n.data.hook||(n.data.hook={}));var l=n[r];t(l)?s=X([a]):e(l.fns)&&i(l.merged)?(s=l).fns.push(a):s=X([l,a]),s.merged=!0,n[r]=s}function Z(t,i,n,r,o){if(e(i)){if(d(i,n))return t[n]=i[n],o||delete i[n],!0;if(d(i,r))return t[n]=i[r],o||delete i[r],!0}return!1}function Q(r){return n(r)?[S(r)]:Array.isArray(r)?function r(o,a){var s,l,c,h,d=[];for(s=0;s<o.length;s++)t(l=o[s])||"boolean"==typeof l||(h=d[c=d.length-1],Array.isArray(l)?0<l.length&&(tt((l=r(l,(a||"")+"_"+s))[0])&&tt(h)&&(d[c]=S(h.text+l[0].text),l.shift()),d.push.apply(d,l)):n(l)?tt(h)?d[c]=S(h.text+l):""!==l&&d.push(S(l)):tt(l)&&tt(h)?d[c]=S(h.text+l.text):(i(o._isVList)&&e(l.tag)&&t(l.key)&&e(a)&&(l.key="__vlist"+a+"_"+s+"__"),d.push(l)));return d}(r):void 0}function tt(t){return e(t)&&e(t.text)&&!1===t.isComment}function et(t,e){return(t.__esModule||un&&"Module"===t[Symbol.toStringTag])&&(t=t.default),r(t)?e.extend(t):t}function it(t){return t.isComment&&t.asyncFactory}function nt(t){if(Array.isArray(t))for(var i=0;i<t.length;i++){var n=t[i];if(e(n)&&(e(n.componentOptions)||it(n)))return n}}function rt(t,e,i){i?Fn.$once(t,e):Fn.$on(t,e)}function ot(t,e){Fn.$off(t,e)}function at(t,e,i){Fn=t,J(e,i||{},rt,ot),Fn=void 0}function st(t,e){var i={};if(!t)return i;for(var n=0,r=t.length;n<r;n++){var o=t[n],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(i.default||(i.default=[])).push(o);else{var s=a.slot,l=i[s]||(i[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in i)i[c].every(lt)&&delete i[c];return i}function lt(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ct(t,e){e=e||{};for(var i=0;i<t.length;i++)Array.isArray(t[i])?ct(t[i],e):e[t[i].key]=t[i].fn;return e}function ht(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function dt(t,e){if(e){if(t._directInactive=!1,ht(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var i=0;i<t.$children.length;i++)dt(t.$children[i]);ut(t,"activated")}}function ut(t,e){_();var i=t.$options[e];if(i)for(var n=0,r=i.length;n<r;n++)try{i[n].call(t)}catch(i){W(i,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e),C()}function pt(){var t,e;for(Wn=!0,jn.sort((function(t,e){return t.id-e.id})),zn=0;zn<jn.length;zn++)e=(t=jn[zn]).id,Vn[e]=null,t.run();var i=$n.slice(),n=jn.slice();zn=jn.length=$n.length=0,Vn={},Hn=Wn=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,dt(t[e],!0)}(i),function(t){for(var e=t.length;e--;){var i=t[e],n=i.vm;n._watcher===i&&n._isMounted&&ut(n,"updated")}}(n),dn&&Yi.devtools&&dn.emit("flush")}function ft(t,e,i){Gn.get=function(){return this[e][i]},Gn.set=function(t){this[e][i]=t},Object.defineProperty(t,i,Gn)}function gt(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var i=t.$options.propsData||{},n=t._props={},r=t.$options._propKeys=[];t.$parent&&A(!1);var o=function(o){r.push(o);var a=j(o,e,i,t);E(n,o,a),o in t||ft(t,"_props",o)};for(var a in e)o(a);A(!0)}(t,e.props),e.methods&&function(t,e){for(var i in t.$options.props,e)t[i]=null==e[i]?m:Hi(e[i],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;o(e=t._data="function"==typeof e?function(t,e){_();try{return t.call(e,e)}catch(t){return W(t,e,"data()"),{}}finally{C()}}(e,t):e||{})||(e={});for(var i,n=Object.keys(e),r=t.$options.props,a=(t.$options.methods,n.length);a--;){var s=n[a];r&&d(r,s)||36!==(i=(s+"").charCodeAt(0))&&95!==i&&ft(t,"_data",s)}D(e,!0)}(t):D(t._data={},!0),e.computed&&function(t,e){var i=t._computedWatchers=Object.create(null),n=hn();for(var r in e){var o=e[r],a="function"==typeof o?o:o.get;n||(i[r]=new Un(t,a||m,m,Yn)),r in t||mt(t,r,o)}}
54(t,e.computed),e.watch&&e.watch!==an&&function(t,e){for(var i in e){var n=e[i];if(Array.isArray(n))for(var r=0;r<n.length;r++)bt(t,i,n[r]);else bt(t,i,n)}}(t,e.watch)}function mt(t,e,i){var n=!hn();"function"==typeof i?(Gn.get=n?vt(e):i,Gn.set=m):(Gn.get=i.get?n&&!1!==i.cache?vt(e):i.get:m,Gn.set=i.set?i.set:m),Object.defineProperty(t,e,Gn)}function vt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gn.target&&e.depend(),e.value}}function bt(t,e,i,n){return o(i)&&(i=(n=i).handler),"string"==typeof i&&(i=t[i]),t.$watch(e,i,n)}function yt(t,e){if(t){for(var i=Object.create(null),n=un?Reflect.ownKeys(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})):Object.keys(t),r=0;r<n.length;r++){for(var o=n[r],a=t[o].from,s=e;s;){if(s._provided&&d(s._provided,a)){i[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in t[o]){var l=t[o].default;i[o]="function"==typeof l?l.call(e):l}}return i}}function xt(t,i){var n,o,a,s,l;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),o=0,a=t.length;o<a;o++)n[o]=i(t[o],o);else if("number"==typeof t)for(n=new Array(t),o=0;o<t;o++)n[o]=i(o+1,o);else if(r(t))for(s=Object.keys(t),n=new Array(s.length),o=0,a=s.length;o<a;o++)l=s[o],n[o]=i(t[l],l,o);return e(n)&&(n._isVList=!0),n}function wt(t,e,i,n){var r,o=this.$scopedSlots[t];if(o)i=i||{},n&&(i=f(f({},n),i)),r=o(i)||e;else{var a=this.$slots[t];a&&(a._rendered=!0),r=a||e}var s=i&&i.slot;return s?this.$createElement("template",{slot:s},r):r}function _t(t){return N(this.$options,"filters",t)||zi}function Ct(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function St(t,e,i,n,r){var o=Yi.keyCodes[e]||i;return r&&n&&!Yi.keyCodes[e]?Ct(r,n):o?Ct(o,t):n?Vi(n)!==e:void 0}function kt(t,e,i,n,o){if(i&&r(i)){var a;Array.isArray(i)&&(i=g(i));var s=function(r){if("class"===r||"style"===r||Fi(r))a=t;else{var s=t.attrs&&t.attrs.type
55;a=n||Yi.mustUseProp(e,s,r)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}r in a||(a[r]=i[r],o&&((t.on||(t.on={}))["update:"+r]=function(t){i[r]=t}))};for(var l in i)s(l)}return t}function At(t,e){var i=this._staticTrees||(this._staticTrees=[]),n=i[t];return n&&!e||Lt(n=i[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),n}function Tt(t,e,i){return Lt(t,"__once__"+e+(i?"_"+i:""),!0),t}function Lt(t,e,i){if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]&&"string"!=typeof t[n]&&Dt(t[n],e+"_"+n,i);else Dt(t,e,i)}function Dt(t,e,i){t.isStatic=!0,t.key=e,t.isOnce=i}function Et(t,e){if(e&&o(e)){var i=t.on=t.on?f({},t.on):{};for(var n in e){var r=i[n],a=e[n];i[n]=r?[].concat(r,a):a}}return t}function Pt(t){t._o=Tt,t._n=l,t._s=s,t._l=xt,t._t=wt,t._q=v,t._i=b,t._m=At,t._f=_t,t._k=St,t._b=kt,t._v=S,t._e=yn,t._u=ct,t._g=Et}function It(t,e,n,r,o){var a,s=o.options;d(r,"_uid")?(a=Object.create(r))._original=r:r=(a=r)._original;var l=i(s._compiled),c=!l;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||Ii,this.injections=yt(s.inject,r),this.slots=function(){return st(n,r)},l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=t.scopedSlots||Ii),s._scopeId?this._c=function(t,e,i,n){var o=Rt(a,t,e,i,n,c);return o&&!Array.isArray(o)&&(o.fnScopeId=s._scopeId,o.fnContext=r),o}:this._c=function(t,e,i,n){return Rt(a,t,e,i,n,c)}}function Mt(t,e,i,n){var r=k(t);return r.fnContext=i,r.fnOptions=n,e.slot&&((r.data||(r.data={})).slot=e.slot),r}function Ot(t,e){for(var i in e)t[Ni(i)]=e[i]}function Ft(n,o,a,s,l){if(!t(n)){var c=a.$options._base;if(r(n)&&(n=c.extend(n)),"function"==typeof n){var h,d,u,p,f,g,m;if(t(n.cid)&&void 0===(n=function(n,o,a){if(i(n.error)&&e(n.errorComp))return n.errorComp;if(e(n.resolved))return n.resolved;if(i(n.loading)&&e(n.loadingComp))return n.loadingComp;if(!e(n.contexts)){var s=n.contexts=[a],l=!0,c=function(){for(var t=0,e=s.length;t<e;t++)s[t].$forceUpdate()},h=y((function(t){n.resolved=et(t,o),l||c()})),d=y((function(){e(n.errorComp)&&(n.error=!0,c())})),u=n(h,d);return r(u)&&("function"==typeof u.then?t(n.resolved)&&u.then(h,d):e(u.component)&&"function"==typeof u.component.then&&(u.component.then(h,d),e(u.error)&&(n.errorComp=et(u.error,o)),e(u.loading)&&(n.loadingComp=et(u.loading,o),0===u.delay?n.loading=!0:setTimeout((function(){t(n.resolved)&&t(n.error)&&(n.loading=!0,c())}),u.delay||200)),e(u.timeout)&&setTimeout((function(){t(n.resolved)&&d(null)}),u.timeout))),l=!1,n.loading?n.loadingComp:n.resolved}n.contexts.push(a)}(h=n,c,a)))return d=h,u=o,p=a,f=s,g=l,(m=yn()).asyncFactory=d,m.asyncMeta={data:u,context:p,children:f,tag:g},m;o=o||{},Bt(n),e(o.model)&&function(t,i){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(i.props||(i.props={}))[n]=i.model.value;var o=i.on||(i.on={});e(o[r])?o[r]=[i.model.callback].concat(o[r]):o[r]=i.model.callback}(n.options,o);var v=function(i,n){var r=n.options.props;if(!t(r)){var o={},a=i.attrs,s=i.props;if(e(a)||e(s))for(var l in r){var c=Vi(l);Z(o,s,l,c,!0)||Z(o,a,l,c,!1)}return o}}(o,n);if(i(n.options.functional))return function(t,i,n,r,o){var a=t.options,s={},l=a.props;if(e(l))for(var c in l)s[c]=j(c,l,i||Ii);else e(n.attrs)&&Ot(s,n.attrs),e(n.props)&&Ot(s,n.props);var h=new It(n,s,o,r,t),d=a.render.call(null,h._c,h);if(d instanceof vn)return Mt(d,n,h.parent,a);if(Array.isArray(d)){for(var u=Q(d)||[],p=new Array(u.length),f=0;f<u.length;f++)p[f]=Mt(u[f],n,h.parent,a);return p}}(n,v,o,a,s);var b=o.on;if(o.on=o.nativeOn,i(n.options.abstract)){var x=o.slot;o={},x&&(o.slot=x)}!function(t){for(var e=t.hook||(t.hook={}),i=0;i<nr.length;i++){var n=nr[i];e[n]=ir[n]}}(o);var w=n.options.name||l;return new vn("vue-component-"+n.cid+(w?"-"+w:""),o,void 0,void 0,void 0,a,{Ctor:n,propsData:v,listeners:b,tag:l,children:s},h)}}}function Rt(o,a,s,l,c,h){return(Array.isArray(s)||n(s))&&(c=l,l=s,s=void 0),i(h)&&(c=or),function(n,o,a,s,l){if(e(a)&&e(a.__ob__))return yn();if(e(a)&&e(a.is)&&(o=a.is),!o)return yn();var c,h,d;(Array.isArray(s)&&"function"==typeof s[0]&&((a=a||{}).scopedSlots={default:s[0]},s.length=0),l===or?s=Q(s):l===rr&&(s=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(s)),"string"==typeof o)?(h=n.$vnode&&n.$vnode.ns||Yi.getTagNamespace(o),c=Yi.isReservedTag(o)?new vn(Yi.parsePlatformTagName(o),a,s,void 0,void 0,n):e(d=N(n.$options,"components",o))?Ft(d,a,n,s,o):new vn(o,a,s,void 0,void 0,n)):c=Ft(o,a,n,s);return Array.isArray(c)?c:e(c)?(e(h)&&function n(r,o,a){if(r.ns=o,"foreignObject"===r.tag&&(o=void 0,a=!0),e(r.children))for(var s=0,l=r.children.length;s<l;s++){var c=r.children[s];e(c.tag)&&(t(c.ns)||i(a)&&"svg"!==c.tag)&&n(c,o,a)}}(c,h),e(a)&&function(t){r(t.style)&&Y(t.style),r(t.class)&&Y(t.class)}(a),c):yn()}(o,a,s,l,c)}function Bt(t){var e=t.options;if(t.super){var i=Bt(t.super);
55if(i!==t.superOptions){t.superOptions=i;var n=function(t){var e,i=t.options,n=t.extendOptions,r=t.sealedOptions;for(var o in i)i[o]!==r[o]&&(e||(e={}),e[o]=Nt(i[o],n[o],r[o]));return e}(t);n&&f(t.extendOptions,n),(e=t.options=B(i,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Nt(t,e,i){if(Array.isArray(t)){var n=[];i=Array.isArray(i)?i:[i],e=Array.isArray(e)?e:[e];for(var r=0;r<t.length;r++)(0<=e.indexOf(t[r])||i.indexOf(t[r])<0)&&n.push(t[r]);return n}return t}function jt(t){this._init(t)}function $t(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,n=i.cid,r=t._Ctor||(t._Ctor={});if(r[n])return r[n];var o=t.name||i.options.name,a=function(t){this._init(t)};return((a.prototype=Object.create(i.prototype)).constructor=a).cid=e++,a.options=B(i.options,t),a.super=i,a.options.props&&function(t){var e=t.options.props;for(var i in e)ft(t.prototype,"_props",i)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var i in e)mt(t.prototype,i,e[i])}(a),a.extend=i.extend,a.mixin=i.mixin,a.use=i.use,Ui.forEach((function(t){a[t]=i[t]})),o&&(a.options.components[o]=a),a.superOptions=i.options,a.extendOptions=t,a.sealedOptions=f({},a.options),r[n]=a}}function Vt(t){return t&&(t.Ctor.options.name||t.tag)}function Ht(t,e){return Array.isArray(t)?-1<t.indexOf(e):"string"==typeof t?-1<t.split(",").indexOf(e):(i=t,"[object RegExp]"===Mi.call(i)&&t.test(e));var i}function Wt(t,e){var i=t.cache,n=t.keys,r=t._vnode;for(var o in i){var a=i[o];if(a){var s=Vt(a.componentOptions);s&&!e(s)&&zt(i,o,n,r)}}}function zt(t,e,i,n){var r=t[e];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),t[e]=null,h(i,e)}function qt(t){for(var i=t.data,n=t,r=t;e(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(i=Ut(r.data,i));for(;e(n=n.parent);)n&&n.data&&(i=Ut(i,n.data));return function(t,i){return e(t)||e(i)?Gt(t,Yt(i)):""}(i.staticClass,i.class)}function Ut(t,i){return{staticClass:Gt(t.staticClass,i.staticClass),class:e(t.class)?[t.class,i.class]:i.class}}function Gt(t,e){return t?e?t+" "+e:t:e||""}function Yt(t){return Array.isArray(t)?function(t){for(var i,n="",r=0,o=t.length;r<o;r++)e(i=Yt(t[r]))&&""!==i&&(n&&(n+=" "),n+=i);return n}(t):r(t)?function(t){var e="";for(var i in t)t[i]&&(e&&(e+=" "),e+=i);return e}(t):"string"==typeof t?t:""}function Xt(t){return Pr(t)?"svg":"math"===t?"math":void 0}function Jt(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}function Kt(t,i){var n=t.data.ref;if(e(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;i?Array.isArray(a[n])?h(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}function Zt(n,r){return n.key===r.key&&(n.tag===r.tag&&n.isComment===r.isComment&&e(n.data)===e(r.data)&&function(t,i){if("input"!==t.tag)return!0;var n,r=e(n=t.data)&&e(n=n.attrs)&&n.type,o=e(n=i.data)&&e(n=n.attrs)&&n.type;return r===o||Or(r)&&Or(o)}(n,r)||i(n.isAsyncPlaceholder)&&n.asyncFactory===r.asyncFactory&&t(r.asyncFactory.error))}function Qt(t,i,n){var r,o,a={};for(r=i;r<=n;++r)e(o=t[r].key)&&(a[o]=r);return a}function te(t,e){(t.data.directives||e.data.directives)&&function(t,e){var i,n,r,o=t===Br,a=e===Br,s=ee(t.data.directives,t.context),l=ee(e.data.directives,e.context),c=[],h=[];for(i in l)n=s[i],r=l[i],n?(r.oldValue=n.value,ie(r,"update",e,t),r.def&&r.def.componentUpdated&&h.push(r)):(ie(r,"bind",e,t),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var i=0;i<c.length;i++)ie(c[i],"inserted",e,t)};o?K(e,"insert",d):d()}if(h.length&&K(e,"postpatch",(function(){for(var i=0;i<h.length;i++)ie(h[i],"componentUpdated",e,t)})),!o)for(i in s)l[i]||ie(s[i],"unbind",t,t,a)}(t,e)}function ee(t,e){var i,n,r,o=Object.create(null);if(!t)return o;for(i=0;i<t.length;i++)(n=t[i]).modifiers||(n.modifiers=$r),(o[(r=n,r.rawName||r.name+"."+Object.keys(r.modifiers||{}).join("."))]=n).def=N(e.$options,"directives",n.name);return o}function ie(t,e,i,n,r){var o=t.def&&t.def[e];if(o)try{o(i.elm,t,i,n,r)}catch(n){W(n,i.context,"directive "+t.name+" "+e+" hook")}}function ne(i,n){var r=n.componentOptions;if(!(e(r)&&!1===r.Ctor.options.inheritAttrs||t(i.data.attrs)&&t(n.data.attrs))){var o,a,s=n.elm,l=i.data.attrs||{},c=n.data.attrs||{};for(o in e(c.__ob__)&&(c=n.data.attrs=f({}
55,c)),c)a=c[o],l[o]!==a&&re(s,o,a);for(o in(en||rn)&&c.value!==l.value&&re(s,"value",c.value),l)t(c[o])&&(Ar(o)?s.removeAttributeNS(kr,Tr(o)):Cr(o)||s.removeAttribute(o))}}function re(t,e,i){-1<t.tagName.indexOf("-")?oe(t,e,i):Sr(e)?Lr(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):Cr(e)?t.setAttribute(e,Lr(i)||"false"===i?"false":"true"):Ar(e)?Lr(i)?t.removeAttributeNS(kr,Tr(e)):t.setAttributeNS(kr,e,i):oe(t,e,i)}function oe(t,e,i){if(Lr(i))t.removeAttribute(e);else{if(en&&!nn&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,i)}}function ae(i,n){var r=n.elm,o=n.data,a=i.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=qt(n),l=r._transitionClasses;e(l)&&(s=Gt(s,Yt(l))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}function se(t){function e(){(a||(a=[])).push(t.slice(f,r).trim()),f=r+1}var i,n,r,o,a,s=!1,l=!1,c=!1,h=!1,d=0,u=0,p=0,f=0;for(r=0;r<t.length;r++)if(n=i,i=t.charCodeAt(r),s)39===i&&92!==n&&(s=!1);else if(l)34===i&&92!==n&&(l=!1);else if(c)96===i&&92!==n&&(c=!1);else if(h)47===i&&92!==n&&(h=!1);else if(124!==i||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||d||u||p){switch(i){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:u++;break;case 93:u--;break;case 123:d++;break;case 125:d--}if(47===i){for(var g=r-1,m=void 0;0<=g&&" "===(m=t.charAt(g));g--);m&&zr.test(m)||(h=!0)}}else void 0===o?(f=r+1,o=t.slice(0,r).trim()):e();if(void 0===o?o=t.slice(0,r).trim():0!==f&&e(),a)for(r=0;r<a.length;r++)o=le(o,a[r]);return o}function le(t,e){var i=e.indexOf("(");if(i<0)return'_f("'+e+'")('+t+")";var n=e.slice(0,i),r=e.slice(i+1);return'_f("'+n+'")('+t+(")"!==r?","+r:r)}function ce(t){console.error("[Vue compiler]: "+t)}function he(t,e){return t?t.map((function(t){return t[e]})).filter((function(t){return t})):[]}function de(t,e,i){(t.props||(t.props=[])).push({name:e,value:i}),t.plain=!1}function ue(t,e,i){(t.attrs||(t.attrs=[])).push({name:e,value:i}),t.plain=!1}function pe(t,e,i){t.attrsMap[e]=i,t.attrsList.push({name:e,value:i})}function fe(t,e,i,n,r){var o;(n=n||Ii).capture&&(delete n.capture,e="!"+e),n.once&&(delete n.once,e="~"+e),n.passive&&(delete n.passive,e="&"+e),"click"===e&&(n.right?(e="contextmenu",delete n.right):n.middle&&(e="mouseup")),n.native?(delete n.native,o=t.nativeEvents||(t.nativeEvents={})):o=t.events||(t.events={});var a={value:i.trim()};n!==Ii&&(a.modifiers=n);var s=o[e];Array.isArray(s)?r?s.unshift(a):s.push(a):o[e]=s?r?[a,s]:[s,a]:a,t.plain=!1}function ge(t,e,i){var n=me(t,":"+e)||me(t,"v-bind:"+e);if(null!=n)return se(n);if(!1!==i){var r=me(t,e);if(null!=r)return JSON.stringify(r)}}function me(t,e,i){var n;if(null!=(n=t.attrsMap[e]))for(var r=t.attrsList,o=0,a=r.length;o<a;o++)if(r[o].name===e){r.splice(o,1);break}return i&&delete t.attrsMap[e],n}function ve(t,e,i){var n=i||{},r=n.number,o="$$v";n.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(o="_n("+o+")");var a=be(e,o);t.model={value:"("+e+")",expression:'"'+e+'"',callback:"function ($$v) {"+a+"}"}}function be(t,e){var i=function(t){if(t=t.trim(),ur=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<ur-1)return-1<(gr=t.lastIndexOf("."))?{exp:t.slice(0,gr),key:'"'+t.slice(gr+1)+'"'}:{exp:t,key:null};for(pr=t,gr=mr=vr=0;!xe();)we(fr=ye())?Ce(fr):91===fr&&_e(fr);return{exp:t.slice(0,mr),key:t.slice(mr+1,vr)}}(t);return null===i.key?t+"="+e:"$set("+i.exp+", "+i.key+", "+e+")"}function ye(){return pr.charCodeAt(++gr)}function xe(){return ur<=gr}function we(t){return 34===t||39===t}function _e(t){var e=1;for(mr=gr;!xe();)if(we(t=ye()))Ce(t);else if(91===t&&e++,93===t&&e--,0===e){vr=gr;break}}function Ce(t){for(var e=t;!xe()&&(t=ye())!==e;);}function Se(t,e,i,n,r){var o,a,s,l,c;e=(o=e)._withTask||(o._withTask=function(){Pn=!0;var t=o.apply(null,arguments);return Pn=!1,t}),i&&(a=e,s=t,l=n,c=br,e=function t(){null!==a.apply(null,arguments)&&ke(s,t,l,c)}),br.addEventListener(t,e,sn?{capture:n,passive:r}:n)}function ke(t,e,i,n){(n||br).removeEventListener(t,e._withTask||e,i)}
vendor: 7,290 bytes, line 55
55function Ae(i,n){if(!t(i.data.on)||!t(n.data.on)){var r=n.data.on||{},o=i.data.on||{};br=n.elm,function(t){if(e(t[qr])){var i=en?"change":"input";t[i]=[].concat(t[qr],t[i]||[]),delete t[qr]}e(t[Ur])&&(t.change=[].concat(t[Ur],t.change||[]),delete t[Ur])}(r),J(r,o,Se,ke,n.context),br=void 0}}function Te(i,n){if(!t(i.data.domProps)||!t(n.data.domProps)){var r,o,a,s,c=n.elm,h=i.data.domProps||{},d=n.data.domProps||{};for(r in e(d.__ob__)&&(d=n.data.domProps=f({},d)),h)t(d[r])&&(c[r]="");for(r in d){if(o=d[r],"textContent"===r||"innerHTML"===r){if(n.children&&(n.children.length=0),o===h[r])continue;1===c.childNodes.length&&c.removeChild(c.childNodes[0])}if("value"===r){var u=t(c._value=o)?"":String(o);s=u,(a=c).composing||"OPTION"!==a.tagName&&!function(t,e){var i=!0;try{i=document.activeElement!==t}catch(t){}return i&&t.value!==e}(a,s)&&!function(t,i){var n=t.value,r=t._vModifiers;if(e(r)){if(r.lazy)return!1;if(r.number)return l(n)!==l(i);if(r.trim)return n.trim()!==i.trim()}return n!==i}(a,s)||(c.value=u)}else c[r]=o}}}function Le(t){var e=De(t.style);return t.staticStyle?f(t.staticStyle,e):e}function De(t){return Array.isArray(t)?g(t):"string"==typeof t?Xr(t):t}function Ee(i,n){var r=n.data,o=i.data;if(!(t(r.staticStyle)&&t(r.style)&&t(o.staticStyle)&&t(o.style))){var a,s,l=n.elm,c=o.staticStyle,h=o.normalizedStyle||o.style||{},d=c||h,u=De(n.data.style)||{};n.data.normalizedStyle=e(u.__ob__)?f({},u):u;var p=function(t){var e,i={};if(!0)for(var n=t;n.componentInstance;)(n=n.componentInstance._vnode)&&n.data&&(e=Le(n.data))&&f(i,e);(e=Le(t.data))&&f(i,e);for(var r=t;r=r.parent;)r.data&&(e=Le(r.data))&&f(i,e);return i}(n);for(s in d)t(p[s])&&Zr(l,s,"");for(s in p)(a=p[s])!==d[s]&&Zr(l,s,null==a?"":a)}}function Pe(t,e){if(e&&(e=e.trim()))if(t.classList)-1<e.indexOf(" ")?e.split(/\s+/).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function Ie(t,e){if(e&&(e=e.trim()))if(t.classList)-1<e.indexOf(" ")?e.split(/\s+/).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";0<=i.indexOf(n);)i=i.replace(n," ");(i=i.trim())?t.setAttribute("class",i):t.removeAttribute("class")}}function Me(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&f(e,io(t.name||"v")),f(e,t),e}return"string"==typeof t?io(t):void 0}}function Oe(t){ho((function(){ho(t)}))}function Fe(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),Pe(t,e))}function Re(t,e){t._transitionClasses&&h(t._transitionClasses,e),Ie(t,e)}function Be(t,e,i){var n=Ne(t,e),r=n.type,o=n.timeout,a=n.propCount;if(!r)return i();var s=r===ro?so:co,l=0,c=function(){t.removeEventListener(s,h),i()},h=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l<a&&c()}),o+1),t.addEventListener(s,h)}function Ne(t,e){var i,n=window.getComputedStyle(t),r=n[ao+"Delay"].split(", "),o=n[ao+"Duration"].split(", "),a=je(r,o),s=n[lo+"Delay"].split(", "),l=n[lo+"Duration"].split(", "),c=je(s,l),h=0,d=0;return e===ro?0<a&&(i=ro,h=a,d=o.length):e===oo?0<c&&(i=oo,h=c,d=l.length):d=(i=0<(h=Math.max(a,c))?c<a?ro:oo:null)?i===ro?o.length:l.length:0,{type:i,timeout:h,propCount:d,hasTransform:i===ro&&uo.test(n[ao+"Property"])}}function je(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,i){return $e(e)+$e(t[i])})))}function $e(t){return 1e3*Number(t.slice(0,-1))}function Ve(i,n){var o=i.elm;e(o._leaveCb)&&(o._leaveCb.cancelled=!0,o._leaveCb());var a=Me(i.data.transition);if(!t(a)&&!e(o._enterCb)&&1===o.nodeType){for(var s=a.css,c=a.type,h=a.enterClass,d=a.enterToClass,u=a.enterActiveClass,p=a.appearClass,f=a.appearToClass,g=a.appearActiveClass,m=a.beforeEnter,v=a.enter,b=a.afterEnter,x=a.enterCancelled,w=a.beforeAppear,_=a.appear,C=a.afterAppear,S=a.appearCancelled,k=a.duration,A=Nn,T=Nn.$vnode;T&&T.parent;)A=(T=T.parent).context;var L=!A._isMounted||!i.isRootInsert;if(!L||_||""===_){var D=L&&p?p:h,E=L&&g?g:u,P=L&&f?f:d,I=L&&w||m,M=L&&"function"==typeof _?_:v,O=L&&C||b,F=L&&S||x,R=l(r(k)?k.enter:k),B=!1!==s&&!nn,N=ze(M),j=o._enterCb=y((function(){B&&(Re(o,P),Re(o,E)),j.cancelled?(B&&Re(o,D),F&&F(o)):O&&O(o),o._enterCb=null}));i.data.show||K(i,"insert",(function(){var t=o.parentNode,e=t&&t._pending&&t._pending[i.key];e&&e.tag===i.tag&&e.elm._leaveCb&&e.elm._leaveCb(),M&&M(o,j)})),I&&I(o),B&&(Fe(o,D),Fe(o,E),Oe((function(){Re(o,D),j.cancelled||(Fe(o,P),N||(We(R)?setTimeout(j,R):Be(o,c,j)))}))),i.data.show&&(n&&n(),M&&M(o,j)),B||N||j()}}}function He(i,n){function o(){S.cancelled||(i.data.show||((a.parentNode._pending||(a.parentNode._pending={}))[i.key]=i),f&&f(a),w&&(Fe(a,d),Fe(a,p),Oe((function(){Re(a,d),S.cancelled||(Fe(a,u),_||(We(C)?setTimeout(S,C):Be(a,h,S)))}))),g&&g(a,S),w||_||S())}var a=i.elm;e(a._enterCb)&&(a._enterCb.cancelled=!0,a._enterCb());var s=Me(i.data.transition);if(t(s)||1!==a.nodeType)return n();if(!e(a._leaveCb)){var c=s.css,h=s.type,d=s.leaveClass,u=s.leaveToClass,p=s.leaveActiveClass,f=s.beforeLeave,g=s.leave,m=s.afterLeave,v=s.leaveCancelled,b=s.delayLeave,x=s.duration,w=!1!==c&&!nn,_=ze(g),C=l(r(x)?x.leave:x),S=a._leaveCb=y((function(){a.parentNode&&a.parentNode._pending&&(a.parentNode._pending[i.key]=null),w&&(Re(a,u),Re(a,p)),S.cancelled?(w&&Re(a,d),v&&v(a)):(n(),m&&m(a)),a._leaveCb=null}));b?b(o):o()}}function We(t){return"number"==typeof t&&!isNaN(t)}function ze(i){if(t(i))return!1;var n=i.fns;return e(n)?ze(Array.isArray(n)?n[0]:n):1<(i._length||i.length)}function qe(t,e){!0!==e.data.show&&Ve(e)}function Ue(t,e,i){Ge(t,e,i),(en||rn)&&setTimeout((function(){Ge(t,e,i)}),0)}function Ge(t,e){var i=e.value,n=t.multiple;if(!n||Array.isArray(i)){for(var r,o,a=0,s=t.options.length;a<s;a++)if(o=t.options[a],n)r=-1<b(i,Xe(o)),o.selected!==r&&(o.selected=r);else if(v(Xe(o),i))return void(t.selectedIndex!==a&&(t.selectedIndex=a));n||(t.selectedIndex=-1)}}function Ye(t,e){return e.every((function(e){return!v(e,t)}))}function Xe(t){return"_value"in t?t._value:t.value}function Je(t){t.target.composing=!0}function Ke(t){t.target.composing&&(t.target.composing=!1,Ze(t.target,"input"))}function Ze(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function Qe(t){return!t.componentInstance||t.data&&t.data.transition?t:Qe(t.componentInstance._vnode)}function ti(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ti(nt(e.children)):t}function ei(t){var e={},i=t.$options;for(var n in i.propsData)e[n]=t[n];var r=i._parentListeners;for(var o in r)e[Ni(o)]=r[o];return e}function ii(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function ni(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ri(t){t.data.newPos=t.elm.getBoundingClientRect()}function oi(t){var e=t.data.pos,i=t.data.newPos,n=e.left-i.left,r=e.top-i.top;if(n||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+r+"px)",o.transitionDuration="0s"}}function ai(t,e,i){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},i=0,n=t.length;i<n;i++)e[t[i].name]=t[i].value;return e}
55(e),parent:i,children:[]}}function si(t,e){function i(t){t.pre&&(s=!1),qo(t.tag)&&(l=!1);for(var i=0;i<zo.length;i++)zo[i](t,e)}$o=e.warn||ce,qo=e.isPreTag||Wi,Uo=e.mustUseProp||Wi,Go=e.getTagNamespace||Wi,Ho=he(e.modules,"transformNode"),Wo=he(e.modules,"preTransformNode"),zo=he(e.modules,"postTransformNode"),Vo=e.delimiters;var n,r,o=[],a=!1!==e.preserveWhitespace,s=!1,l=!1;return function(t,e){function i(e){u+=e,t=t.substring(e)}function n(){var e=t.match(Mo);if(e){var n,r,o={tagName:e[1],attrs:[],start:u};for(i(e[0].length);!(n=t.match(Oo))&&(r=t.match(Eo));)i(r[0].length),o.attrs.push(r);if(n)return o.unarySlash=n[1],i(n[0].length),o.end=u,o}}function r(t){var i=t.tagName,n=t.unarySlash;c&&("p"===s&&Do(i)&&o(s),d(i)&&s===i&&o(i));for(var r,a,u,p=h(i)||!!n,f=t.attrs.length,g=new Array(f),m=0;m<f;m++){var v=t.attrs[m];jo&&-1===v[0].indexOf('""')&&(""===v[3]&&delete v[3],""===v[4]&&delete v[4],""===v[5]&&delete v[5]);var b=v[3]||v[4]||v[5]||"",y="a"===i&&"href"===v[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;g[m]={name:v[1],value:(r=b,a=y,u=a?ea:ta,r.replace(u,(function(t){return Qo[t]})))}}p||(l.push({tag:i,lowerCasedTag:i.toLowerCase(),attrs:g}),s=i),e.start&&e.start(i,g,p,t.start,t.end)}function o(t,i,n){var r,o;if(null==i&&(i=u),null==n&&(n=u),t&&(o=t.toLowerCase()),t)for(r=l.length-1;0<=r&&l[r].lowerCasedTag!==o;r--);else r=0;if(0<=r){for(var a=l.length-1;r<=a;a--)e.end&&e.end(l[a].tag,i,n);l.length=r,s=r&&l[r-1].tag}else"br"===o?e.start&&e.start(t,[],!0,i,n):"p"===o&&(e.start&&e.start(t,[],!1,i,n),e.end&&e.end(t,i,n))}for(var a,s,l=[],c=e.expectHTML,h=e.isUnaryTag||Wi,d=e.canBeLeftOpenTag||Wi,u=0;t;){if(a=t,s&&Ko(s)){var p=0,f=s.toLowerCase(),g=Zo[f]||(Zo[f]=new RegExp("([\\s\\S]*?)(</"+f+"[^>]*>)","i")),m=t.replace(g,(function(t,i,n){return p=n.length,Ko(f)||"noscript"===f||(i=i.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),na(f,i)&&(i=i.slice(1)),e.chars&&e.chars(i),""}));u+=t.length-m.length,t=m,o(f,u-p,u)}else{var v=t.indexOf("<");if(0===v){if(Bo.test(t)){var b=t.indexOf("-->");if(0<=b){e.shouldKeepComment&&e.comment(t.substring(4,b)),i(b+3);continue}}if(No.test(t)){var y=t.indexOf("]>");if(0<=y){i(y+2);continue}}var x=t.match(Ro);if(x){i(x[0].length);continue}var w=t.match(Fo);if(w){var _=u;i(w[0].length),o(w[1],_,u);continue}var C=n();if(C){r(C),na(s,t)&&i(1);continue}}var S=void 0,k=void 0,A=void 0;if(0<=v){for(k=t.slice(v);!(Fo.test(k)||Mo.test(k)||Bo.test(k)||No.test(k)||(A=k.indexOf("<",1))<0);)v+=A,k=t.slice(v);S=t.substring(0,v),i(v)}v<0&&(S=t,t=""),e.chars&&S&&e.chars(S)}if(t===a){e.chars&&e.chars(t);break}}o()}(t,{warn:$o,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,start:function(t,a,c){var h=r&&r.ns||Go(t);en&&"svg"===h&&(a=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];pa.test(n.name)||(n.name=n.name.replace(fa,""),e.push(n))}return e}(a));var d,u,p,f,g,m=ai(t,a,r);h&&(m.ns=h),"style"!==(d=m).tag&&("script"!==d.tag||d.attrsMap.type&&"text/javascript"!==d.attrsMap.type)||hn()||(m.forbidden=!0);for(var v=0;v<Wo.length;v++)m=Wo[v](m,e)||m;if(s||(null!=me(u=m,"v-pre")&&(u.pre=!0),m.pre&&(s=!0)),qo(m.tag)&&(l=!0),s?function(t){var e=t.attrsList.length;if(e)for(var i=t.attrs=new Array(e),n=0;n<e;n++)i[n]={name:t.attrsList[n].name,value:JSON.stringify(t.attrsList[n].value)};else t.pre||(t.plain=!0)}(m):m.processed||(ci(m),function(t){var e=me(t,"v-if");if(e)t.if=e,hi(t,{exp:e,block:t});else{null!=me(t,"v-else")&&(t.else=!0);var i=me(t,"v-else-if");i&&(t.elseif=i)}}(m),null!=me(p=m,"v-once")&&(p.once=!0),li(m,e)),n?o.length||n.if&&(m.elseif||m.else)&&hi(n,{exp:m.elseif,block:m}):n=m,r&&!m.forbidden)if(m.elseif||m.else)f=m,(g=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children))&&g.if&&hi(g,{exp:f.elseif,block:f});else if(m.slotScope){r.plain=!1;var b=m.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[b]=m}else r.children.push(m),m.parent=r;c?i(m):(r=m,o.push(m))},end:function(){var t=o[o.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&!l&&t.children.pop(),o.length-=1,r=o[o.length-1],i(t)},chars:function(t){if(r&&(!en||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var e,i,n=r.children;(t=l||t.trim()?"script"===(e=r).tag||"style"===e.tag?t:ua(t):a&&n.length?" ":"")&&(!s&&" "!==t&&(i=function(t,e){var i=e?C
55o(e):wo;if(i.test(t)){for(var n,r,o,a=[],s=[],l=i.lastIndex=0;n=i.exec(t);){l<(r=n.index)&&(s.push(o=t.slice(l,r)),a.push(JSON.stringify(o)));var c=se(n[1].trim());a.push("_s("+c+")"),s.push({"@binding":c}),l=r+n[0].length}return l<t.length&&(s.push(o=t.slice(l)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(t,Vo))?n.push({type:2,expression:i.expression,tokens:i.tokens,text:t}):" "===t&&n.length&&" "===n[n.length-1].text||n.push({type:3,text:t}))}},comment:function(t){r.children.push({type:3,text:t,isComment:!0})}}),n}function li(t,e){var i,n,r,o;(n=ge(i=t,"key"))&&(i.key=n),t.plain=!t.key&&!t.attrsList.length,(o=ge(r=t,"ref"))&&(r.ref=o,r.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(r)),function(t){if("slot"===t.tag)t.slotName=ge(t,"name");else{var e;"template"===t.tag?(e=me(t,"scope"),t.slotScope=e||me(t,"slot-scope")):(e=me(t,"slot-scope"))&&(t.slotScope=e);var i=ge(t,"slot");i&&(t.slotTarget='""'===i?'"default"':i,"template"===t.tag||t.slotScope||ue(t,"slot",i))}}(t),function(t){var e;(e=ge(t,"is"))&&(t.component=e),null!=me(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var a=0;a<Ho.length;a++)t=Ho[a](t,e)||t;!function(t){var e,i,n,r,o,a,s,l,c,h,d,u,p,f=t.attrsList;for(e=0,i=f.length;e<i;e++)if(n=r=f[e].name,o=f[e].value,oa.test(n))if(t.hasBindings=!0,(a=di(n))&&(n=n.replace(da,"")),ha.test(n))n=n.replace(ha,""),o=se(o),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(n=Ni(n))&&(n="innerHTML")),a.camel&&(n=Ni(n)),a.sync&&fe(t,"update:"+Ni(n),be(o,"$event"))),s||!t.component&&Uo(t.tag,t.attrsMap.type,n)?de(t,n,o):ue(t,n,o);else if(ra.test(n))fe(t,n=n.replace(ra,""),o,a,!1);else{var g=(n=n.replace(oa,"")).match(ca),m=g&&g[1];m&&(n=n.slice(0,-(m.length+1))),c=n,h=r,d=o,u=m,p=a,((l=t).directives||(l.directives=[])).push({name:c,rawName:h,value:d,arg:u,modifiers:p}),l.plain=!1}else ue(t,n,JSON.stringify(o)),!t.component&&"muted"===n&&Uo(t.tag,t.attrsMap.type,n)&&de(t,n,"true")}(t)}function ci(t){var e;if(e=me(t,"v-for")){var i=function(t){var e=t.match(aa);if(e){var i={};i.for=e[2].trim();var n=e[1].trim().replace(la,""),r=n.match(sa);return r?(i.alias=n.replace(sa,""),i.iterator1=r[1].trim(),r[2]&&(i.iterator2=r[2].trim())):i.alias=n,i}}(e);i&&f(t,i)}}function hi(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function di(t){var e=t.match(da);if(e){var i={};return e.forEach((function(t){i[t.slice(1)]=!0})),i}}function ui(t){return ai(t.tag,t.attrsList.slice(),t.parent)}function pi(t,e){t&&(Xo=va(e.staticKeys||""),Jo=e.isReservedTag||Wi,function t(e){if(e.static=function(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||Oi(t.tag)||!Jo(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(Xo))))}(e),1===e.type){if(!Jo(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var i=0,n=e.children.length;i<n;i++){var r=e.children[i];t(r),r.static||(e.static=!1)}if(e.ifConditions)for(var o=1,a=e.ifConditions.length;o<a;o++){var s=e.ifConditions[o].block;t(s),s.static||(e.static=!1)}}}(t),function t(e,i){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=i),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)t(e.children[n],i||!!e.for);if(e.ifConditions)for(var o=1,a=e.ifConditions.length;o<a;o++)t(e.ifConditions[o].block,i)}}(t,!1))}function fi(t,e){var i=e?"nativeOn:{":"on:{";for(var n in t)i+='"'+n+'":'+gi(n,t[n])+",";return i.slice(0,-1)+"}"}function gi(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return gi(t,e)})).join(",")+"]";var i=ya.test(e.value),n=ba.test(e.value);if(e.modifiers){var r="",o="",a=[];for(var s in e.modifiers)if(Ca[s])o+=Ca[s],xa[s]&&a.push(s);else if("exact"===s){var l=e.modifiers;o+=_a(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(r+="if(!('button' in $event)&&"+a.map(mi).join("&&")+")return null;"),o&&(r+=o),"function($event){"+r+(i?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":e.value)+"}"}return i||n?e.value:"function($event){"+e.value+"}"}function mi(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var i=xa[t],n=wa[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(i)+",$event.key,"+JSON.stringify(n)+")"}function vi(t,e){var i=new ka(e);return{render:"with(this){return "+(t?bi(t,i):'_c("div")')+"}",staticRenderFns:i.staticRenderFns}}function bi(t,e){if(t.staticRoot&&!t.staticProcessed)return yi(t,e);if(t.once&&!t.onceProcessed)return xi(t,e);if(t.for&&!t.forProcessed)return d=e,f=(h=t).for,g=h.alias,m=h.iterator1?","+h.iterator1:"",v=h.iterator2?","+h.iterator2:"",h.forProcessed=!0,(p||"_l")+"(("+f+"),function("+g+m+v+"){return "+(u||bi)(h,d)+"})";if(t.if&&!t.ifProcessed)return wi(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return function(t,e){var i=t.slotName||'"default"',n=Si(t,e),r="_t("+i+(n?","+n:""),o=t.attrs&&"{"+t.attrs.map((function(t){return Ni(t.name)+":"+t.value})).join(",")+"}",a=t.attrsMap["v-bind"];return!o&&!a||n||(r+=",null"),o&&(r+=","+o),a&&(r+=(o?"":",null")+","+a),r+")"}(t,e);var i;if(t.component)a=t.component,l=e,c=(s=t).inlineTemplate?null:Si(s,l,!0),i="_c("+a+","+_i(s,l)+(c?","+c:"")+")";else{var n=t.plain?void 0:_i(t,e),r=t.inlineTemplate?null:Si(t,e,!0);i="_c('"+t.tag+"'"+(n?","+n:"")+(r?","+r:"")+")"}for(var o=0;o<e.transforms.length;o++)i=e.transforms[o](t,i);return i}return Si(t,e)||"void 0";var a,s,l,c,h,d,u,p,f,g,m,v}function yi(t,e){return t.staticProcessed=!0,e.staticRenderFns.push("with(this){return "+bi(t,e)+"}"),"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function xi(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return wi(t,e);if(t.staticInFor){for(var i="",n=t.parent;n;){if(n.for){i=n.key;break}n=n.parent}return i?"_o("+bi(t,e)+","+e.onceId+++","+i+")":bi(t,e)}return yi(t,e)}
55function wi(t,e,i,n){return t.ifProcessed=!0,function t(e,i,n,r){function o(t){return n?n(t,i):t.once?xi(t,i):bi(t,i)}if(!e.length)return r||"_e()";var a=e.shift();return a.exp?"("+a.exp+")?"+o(a.block)+":"+t(e,i,n,r):""+o(a.block)}(t.ifConditions.slice(),e,i,n)}function _i(t,e){var i,n,r="{",o=function(t,e){var i=t.directives;if(i){var n,r,o,a,s="directives:[",l=!1;for(n=0,r=i.length;n<r;n++){o=i[n],a=!0;var c=e.directives[o.name];c&&(a=!!c(t,o,e.warn)),a&&(l=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return l?s.slice(0,-1)+"]":void 0}}(t,e);o&&(r+=o+","),t.key&&(r+="key:"+t.key+","),t.ref&&(r+="ref:"+t.ref+","),t.refInFor&&(r+="refInFor:true,"),t.pre&&(r+="pre:true,"),t.component&&(r+='tag:"'+t.tag+'",');for(var a=0;a<e.dataGenFns.length;a++)r+=e.dataGenFns[a](t);if(t.attrs&&(r+="attrs:{"+Ti(t.attrs)+"},"),t.props&&(r+="domProps:{"+Ti(t.props)+"},"),t.events&&(r+=fi(t.events,!1,e.warn)+","),t.nativeEvents&&(r+=fi(t.nativeEvents,!0,e.warn)+","),t.slotTarget&&!t.slotScope&&(r+="slot:"+t.slotTarget+","),t.scopedSlots&&(r+=(i=t.scopedSlots,n=e,"scopedSlots:_u(["+Object.keys(i).map((function(t){return Ci(t,i[t],n)})).join(",")+"]),")),t.model&&(r+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var s=function(t,e){
56var i=t.children[0];if(1===i.type){var n=vi(i,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);s&&(r+=s+",")}return r=r.replace(/,$/,"")+"}",t.wrapData&&(r=t.wrapData(r)),t.wrapListeners&&(r=t.wrapListeners(r)),r}function Ci(t,e,i){return e.for&&!e.forProcessed?(n=t,o=i,a=(r=e).for,s=r.alias,l=r.iterator1?","+r.iterator1:"",c=r.iterator2?","+r.iterator2:"",r.forProcessed=!0,"_l(("+a+"),function("+s+l+c+"){return "+Ci(n,r,o)+"})"):"{key:"+t+",fn:function("+String(e.slotScope)+"){return "+("template"===e.tag?e.if?e.if+"?"+(Si(e,i)||"undefined")+":undefined":Si(e,i)||"undefined":bi(e,i))+"}}";var n,r,o,a,s,l,c}function Si(t,e,i,n,r){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag)return(n||bi)(a,e);var s=i?function(t,e){for(var i=0,n=0;n<t.length;n++){var r=t[n];if(1===r.type){if(ki(r)||r.ifConditions&&r.ifConditions.some((function(t){return ki(t.block)}))){i=2;break}(e(r)||r.ifConditions&&r.ifConditions.some((function(t){return e(t.block)})))&&(i=1)}}return i}(o,e.maybeComponent):0,l=r||Ai;return"["+o.map((function(t){return l(t,e)})).join(",")+"]"+(s?","+s:"")}}function ki(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Ai(t,e){return 1===t.type?bi(t,e):3===t.type&&t.isComment?(n=t,"_e("+JSON.stringify(n.text)+")"):"_v("+(2===(i=t).type?i.expression:Li(JSON.stringify(i.text)))+")";var i,n}function Ti(t){for(var e="",i=0;i<t.length;i++){var n=t[i];e+='"'+n.name+'":'+Li(n.value)+","}return e.slice(0,-1)}function Li(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Di(t,e){try{return new Function(t)}catch(i){return e.push({err:i,code:t}),m}}function Ei(t){return(Ta=Ta||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',0<Ta.innerHTML.indexOf("&#10;")}var Pi,Ii=Object.freeze({}),Mi=Object.prototype.toString,Oi=c("slot,component",!0),Fi=c("key,ref,slot,slot-scope,is"),Ri=Object.prototype.hasOwnProperty,Bi=/-(\w)/g,Ni=u((function(t){return t.replace(Bi,(function(t,e){return e?e.toUpperCase():""}))})),ji=u((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),$i=/\B([A-Z])/g,Vi=u((function(t){return t.replace($i,"-$1").toLowerCase()})),Hi=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function i(i){var n=arguments.length;return n?1<n?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i},Wi=function(){return!1},zi=function(t){return t},qi="data-server-rendered",Ui=["component","directive","filter"],Gi=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],Yi={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Wi,isReservedAttr:Wi,isUnknownElement:Wi,getTagNamespace:m,parsePlatformTagName:zi,mustUseProp:Wi,_lifecycleHooks:Gi},Xi=/[^\w.$]/,Ji="__proto__"in{},Ki="undefined"!=typeof window,Zi="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Qi=Zi&&WXEnvironment.platform.toLowerCase(),tn=Ki&&window.navigator.userAgent.toLowerCase(),en=tn&&/msie|trident/.test(tn),nn=tn&&0<tn.indexOf("msie 9.0"),rn=tn&&0<tn.indexOf("edge/"),on=(tn&&tn.indexOf("android"),tn&&/iphone|ipad|ipod|ios/.test(tn)||"ios"===Qi),an=(tn&&/chrome\/\d+/.test(tn),{}.watch),sn=!1;if(Ki)try{var ln={};Object.defineProperty(ln,"passive",{get:function(){sn=!0}}),window.addEventListener("test-passive",null,ln)}catch(u){}var cn,hn=function(){return void 0===Pi&&(Pi=!Ki&&!Zi&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),Pi},dn=Ki&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,un="undefined"!=typeof Symbol&&w(Symbol)&&"undefined"!=typeof Reflect&&w(Reflect.ownKeys);cn="undefined"!=typeof Set&&w(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pn=m,fn=0,gn=function(){this.id=fn++,this.subs=[]};gn.prototype.addSub=function(t){this.subs.push(t)},gn.prototype.removeSub=function(t){h(this.subs,t)}
56,gn.prototype.depend=function(){gn.target&&gn.target.addDep(this)},gn.prototype.notify=function(){for(var t=this.subs.slice(),e=0,i=t.length;e<i;e++)t[e].update()},gn.target=null;var mn=[],vn=function(t,e,i,n,r,o,a,s){this.tag=t,this.data=e,this.children=i,this.text=n,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},bn={child:{configurable:!0}};bn.child.get=function(){return this.componentInstance},Object.defineProperties(vn.prototype,bn);var yn=function(t){void 0===t&&(t="");var e=new vn;return e.text=t,e.isComment=!0,e},xn=Array.prototype,wn=Object.create(xn);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=xn[t];x(wn,t,(function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];var r,o=e.apply(this,i),a=this.__ob__;switch(t){case"push":case"unshift":r=i;break;case"splice":r=i.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o}))}));var _n=Object.getOwnPropertyNames(wn),Cn=!0,Sn=function(t){this.value=t,this.dep=new gn,this.vmCount=0,x(t,"__ob__",this),Array.isArray(t)?((Ji?T:L)(t,wn,_n),this.observeArray(t)):this.walk(t)};Sn.prototype.walk=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)E(t,e[i])},Sn.prototype.observeArray=function(t){for(var e=0,i=t.length;e<i;e++)D(t[e])};var kn=Yi.optionMergeStrategies;kn.data=function(t,e,i){return i?O(t,e,i):e&&"function"!=typeof e?t:O(t,e)},Gi.forEach((function(t){kn[t]=F})),Ui.forEach((function(t){kn[t+"s"]=R})),kn.watch=function(t,e){if(t===an&&(t=void 0),e===an&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var n in f(i,t),e){var r=i[n],o=e[n];r&&!Array.isArray(r)&&(r=[r]),i[n]=r?r.concat(o):Array.isArray(o)?o:[o]}return i},kn.props=kn.methods=kn.inject=kn.computed=function(t,e){if(!t)return e;var i=Object.create(null);return f(i,t),e&&f(i,e),i},kn.provide=O;var An,Tn,Ln=function(t,e){return void 0===e?t:e},Dn=[],En=!1,Pn=!1;if("undefined"!=typeof setImmediate&&w(setImmediate))Tn=function(){setImmediate(U)};else if("undefined"==typeof MessageChannel||!w(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())Tn=function(){setTimeout(U,0)};else{var In=new MessageChannel,Mn=In.port2;In.port1.onmessage=U,Tn=function(){Mn.postMessage(1)}}if("undefined"!=typeof Promise&&w(Promise)){var On=Promise.resolve();An=function(){On.then(U),on&&setTimeout(m)}}else An=Tn;var Fn,Rn=new cn,Bn=u((function(t){var e="&"===t.charAt(0),i="~"===(t=e?t.slice(1):t).charAt(0),n="!"===(t=i?t.slice(1):t).charAt(0);return{name:t=n?t.slice(1):t,once:i,capture:n,passive:e}})),Nn=null,jn=[],$n=[],Vn={},Hn=!1,Wn=!1,zn=0,qn=0,Un=function(t,e,i,n,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++qn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new cn,this.newDepIds=new cn,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!Xi.test(t)){var e=t.split(".");return function(t){for(var i=0;i<e.length;i++){if(!t)return;t=t[e[i]]}return t}}}(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Un.prototype.get=function(){var t;_(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;W(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Y(t),C(),this.cleanupDeps()}return t},Un.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Un.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},Un.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.i
vendor: 3,810 bytes, line 56
56d;if(null==Vn[e]){if(Vn[e]=!0,Wn){for(var i=jn.length-1;zn<i&&jn[i].id>t.id;)i--;jn.splice(i+1,0,t)}else jn.push(t);Hn||(Hn=!0,G(pt))}}(this)},Un.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||r(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){W(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Un.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Un.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Un.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Gn={enumerable:!0,configurable:!0,get:m,set:m},Yn={lazy:!0};Pt(It.prototype);var Xn,Jn,Kn,Zn,Qn,tr,er,ir={init:function(t,i,n,r){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var o=t;ir.prepatch(o,o)}else(t.componentInstance=function(t,i,n,r){var o={_isComponent:!0,parent:i,_parentVnode:t,_parentElm:n||null,_refElm:r||null},a=t.data.inlineTemplate;return e(a)&&(o.render=a.render,o.staticRenderFns=a.staticRenderFns),new t.componentOptions.Ctor(o)}(t,Nn,n,r)).$mount(i?t.elm:void 0,i)},prepatch:function(t,e){var i=e.componentOptions;!function(t,e,i,n,r){var o=!!(r||t.$options._renderChildren||n.data.scopedSlots||t.$scopedSlots!==Ii);if(t.$options._parentVnode=n,t.$vnode=n,t._vnode&&(t._vnode.parent=n),t.$options._renderChildren=r,t.$attrs=n.data.attrs||Ii,t.$listeners=i||Ii,e&&t.$options.props){A(!1);for(var a=t._props,s=t.$options._propKeys||[],l=0;l<s.length;l++){var c=s[l],h=t.$options.props;a[c]=j(c,h,e,t)}A(!0),t.$options.propsData=e}i=i||Ii;var d=t.$options._parentListeners;t.$options._parentListeners=i,at(t,i,d),o&&(t.$slots=st(r,n.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,i.propsData,i.listeners,e,i.children)},insert:function(t){var e,i=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,ut(n,"mounted")),t.data.keepAlive&&(i._isMounted?((e=n)._inactive=!1,$n.push(e)):dt(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,i){if(!(i&&(e._directInactive=!0,ht(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)t(e.$children[n]);ut(e,"deactivated")}}(e,!0):e.$destroy())}},nr=Object.keys(ir),rr=1,or=2,ar=0;jt.prototype._init=function(t){var e,i,n,r,o=this;o._uid=ar++,o._isVue=!0,t&&t._isComponent?function(t,e){var i=t.$options=Object.create(t.constructor.options),n=e._parentVnode;i.parent=e.parent,i._parentVnode=n,i._parentElm=e._parentElm,i._refElm=e._refElm;var r=n.componentOptions;i.propsData=r.propsData,i._parentListeners=r.listeners,i._renderChildren=r.children,i._componentTag=r.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}(o,t):o.$options=B(Bt(o.constructor),t||{},o),function(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}((o._renderProxy=o)._self=o),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&at(t,e)}(o),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,n=i&&i.context;t.$slots=st(e._renderChildren,n),t.$scopedSlots=Ii,t._c=function(e,i,n,r){return Rt(t,e,i,n,r,!1)},t.$createElement=function(e,i,n,r){return Rt(t,e,i,n,r,!0)};var r=i&&i.data;E(t,"$attrs",r&&r.attrs||Ii,null,!0),E(t,"$listeners",e._parentListeners||Ii,null,!0)}(o),ut(o,"beforeCreate"),(i=yt((e=o).$options.inject,e))&&(A(!1),Object.keys(i).forEac
56h((function(t){E(e,t,i[t])})),A(!0)),gt(o),(r=(n=o).$options.provide)&&(n._provided="function"==typeof r?r.call(n):r),ut(o,"created"),o.$options.el&&o.$mount(o.$options.el)},Xn=jt,Jn={get:function(){return this._data}},Kn={get:function(){return this._props}},Object.defineProperty(Xn.prototype,"$data",Jn),Object.defineProperty(Xn.prototype,"$props",Kn),Xn.prototype.$set=P,Xn.prototype.$delete=I,Xn.prototype.$watch=function(t,e,i){if(o(e))return bt(this,t,e,i);(i=i||{}).user=!0;var n=new Un(this,t,e,i);return i.immediate&&e.call(this,n.value),function(){n.teardown()}},Qn=/^hook:/,(Zn=jt).prototype.$on=function(t,e){if(Array.isArray(t))for(var i=0,n=t.length;i<n;i++)this.$on(t[i],e);else(this._events[t]||(this._events[t]=[])).push(e),Qn.test(t)&&(this._hasHookEvent=!0);return this},Zn.prototype.$once=function(t,e){function i(){n.$off(t,i),e.apply(n,arguments)}var n=this;return i.fn=e,n.$on(t,i),n},Zn.prototype.$off=function(t,e){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)this.$off(t[n],e);return i}var o=i._events[t];if(!o)return i;if(!e)return i._events[t]=null,i;if(e)for(var a,s=o.length;s--;)if((a=o[s])===e||a.fn===e){o.splice(s,1);break}return i},Zn.prototype.$emit=function(t){var e=this,i=e._events[t];if(i){i=1<i.length?p(i):i;for(var n=p(arguments,1),r=0,o=i.length;r<o;r++)try{i[r].apply(e,n)}catch(i){W(i,e,'event handler for "'+t+'"')}}return e},(tr=jt).prototype._update=function(t,e){var i=this;i._isMounted&&ut(i,"beforeUpdate");var n=i.$el,r=i._vnode,o=Nn;(Nn=i)._vnode=t,r?i.$el=i.__patch__(r,t):(i.$el=i.__patch__(i.$el,t,e,!1,i.$options._parentElm,i.$options._refElm),i.$options._parentElm=i.$options._refElm=null),Nn=o,n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i),i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode&&(i.$parent.$el=i.$el)},tr.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},tr.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){ut(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||h(e.$children,t),t._watcher&&t._watcher.teardown();for(var i=t._watchers.length;i--;)t._watchers[i].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),ut(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}},Pt((er=jt).prototype),er.prototype.$nextTick=function(t){return G(t,this)},er.prototype._render=function(){var t,e=this,i=e.$options,n=i.render,r=i._parentVnode;r&&(e.$scopedSlots=r.data.scopedSlots||Ii),e.$vnode=r;try{t=n.call(e._renderProxy,e.$createElement)}catch(i){W(i,e,"render"),t=e._vnode}return t instanceof vn||(t=yn()),t.parent=r,t};var sr,lr,cr,hr=[String,RegExp,Array],dr={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:hr,exclude:hr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)zt(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Wt(t,(function(t){return Ht(e,t)}))})),this.$watch("exclude",(function(e){Wt(t,(function(t){return!Ht(e,t)}))}))},render:function(){var t=this.$slots.default,e=nt(t),i=e&&e.componentOptions;if(i){var n=Vt(i),r=this.include,o=this.exclude;if(r&&(!n||!Ht(r,n))||o&&n&&Ht(o,n))return e;var a=this.cache,s=this.keys,l=null==e.key?i.Ctor.cid+(i.tag?"::"+i.tag:""):e.key;a[l]?(e.componentInstance=a[l].componentInstance,h(s,l),s.push(l)):(a[l]=e,s.push(l),this.max&&s.length>parseInt(this.max)&&zt(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};sr=jt,cr={get:function(){return Yi}},Object.defineProperty(sr,"config",cr),sr.util={warn:pn,extend:f,mergeOptions:B,defineReactive:E},sr.set=P,sr.delete=I,sr.nextTick=G,sr.options=Object.create(null),Ui.forEach((function(t){sr.options[t+"s"]=Object.create(null)})),f((sr.options._base=sr).options.components,dr),sr.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(-1<e.indexOf(t))return this;var i=p(arguments,1);return i.unshift(this),"function"==typeof t.install?t.install.apply(t,i):"function"==typeof t&&t.apply(null,i),e.push(t),this},sr.mixin=function(t){return this.options=B(this.options,t),this},$t(sr),lr=sr,Ui.forEach((function(t){lr[t]=function(e,i){return i?("component"===t&&o(i)&&(i.name=i.name||e,i=this.options._base.extend(i)),"directive"===t&&"function"==typeof i&&(i={bind:i,update:i}),this.options[t+"s"][e]=i):this.options[t+"s"][e]}})),Object.defineProperty(jt.prototype,"$isServer",{get:hn}),Object.defineProperty(jt.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(jt,"FunctionalRenderContext",{value:It}),jt.version="2.5.17";var ur,pr,fr,gr,mr,vr,br,yr,xr=c("style,class"),wr=c("input,textarea,option,select,progress"),_r=function(t,e,
vendor: 14,246 bytes, line 56
56i){return"value"===i&&wr(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},Cr=c("contenteditable,draggable,spellcheck"),Sr=c("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),kr="http://www.w3.org/1999/xlink",Ar=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Tr=function(t){return Ar(t)?t.slice(6,t.length):""},Lr=function(t){return null==t||!1===t},Dr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Er=c("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Pr=c("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ir=function(t){return Er(t)||Pr(t)},Mr=Object.create(null),Or=c("text,number,password,search,email,tel,url"),Fr=Object.freeze({createElement:function(t,e){var i=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i},createElementNS:function(t,e){return document.createElementNS(Dr[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,i){t.insertBefore(e,i)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Rr={create:function(t,e){Kt(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Kt(t,!0),Kt(e))},destroy:function(t){Kt(t,!0)}},Br=new vn("",{},[]),Nr=["create","activate","update","remove","destroy"],jr={create:te,update:te,destroy:function(t){te(t,Br)}},$r=Object.create(null),Vr=[Rr,jr],Hr={create:ne,update:ne},Wr={create:ae,update:ae},zr=/[\w).+\-_$\]]/,qr="__r",Ur="__c",Gr={create:Ae,update:Ae},Yr={create:Te,update:Te},Xr=u((function(t){var e={},i=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(i);1<n.length&&(e[n[0].trim()]=n[1].trim())}})),e})),Jr=/^--/,Kr=/\s*!important$/,Zr=function(t,e,i){if(Jr.test(e))t.style.setProperty(e,i);else if(Kr.test(i))t.style.setProperty(e,i.replace(Kr,""),"important");else{var n=to(e);if(Array.isArray(i))for(var r=0,o=i.length;r<o;r++)t.style[n]=i[r];else t.style[n]=i}},Qr=["Webkit","Moz","ms"],to=u((function(t){if(yr=yr||document.createElement("div").style,"filter"!==(t=Ni(t))&&t in yr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<Qr.length;i++){var n=Qr[i]+e;if(n in yr)return n}})),eo={create:Ee,update:Ee},io=u((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),no=Ki&&!nn,ro="transition",oo="animation",ao="transition",so="transitionend",lo="animation",co="animationend";no&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ao="WebkitTransition",so="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(lo="WebkitAnimation",co="webkitAnimationEnd"));var ho=Ki?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()},uo=/\b(transform|all)(,|$)/,po=function(r){function o(t){var i=T.parentNode(t);e(i)&&T.removeChild(i,t)}function a(t,n,r,o,a,c,d){if(e(t.elm)&&e(c)&&(t=c[d]=k(t)),t.isRootInsert=!a,!function(t,n,r,o){var a=t.data;if(e(a)){var c=e(t.componentInstance)&&a.keepAlive;if(e(a=a.hook)&&e(a=a.init)&&a(t,!1,r,o),e(t.componentInstance))return s(t,n),i(c)&&function(t,i,n,r){for(var o,a=t;a.componentInstance;)if(e(o=(a=a.componentInstance._vnode).data)&&e(o=o.transition)){for(o=0;o<S.activate.length;++o)S.activate[o](Br,a);i.push(a);break}l(n,t.elm,r)}(t,n,r,o),!0}}(t,n,r,o)){var f=t.data,g=t.children,m=t.tag;e(m)?(t.elm=t.ns?T.createElementNS(t.ns,m):T.createElement(m,t),p(t),h(t,g,n),e(f)&&u(t,n)):i(t.isComment)?t.elm=T.createComment(t.text):t.elm=T.createTextNode(t.text),l(r,t.elm,o)}}function s(t,i){e(t.data.pendingInsert)&&(i.push.apply(i,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,d(t)?(u(t,i),p(t)):(Kt(t),i.push(t))}function l(t,i,n){e(t)&&(e(n)?n.parentNode===t&&T.insertBefore(t,i,n):T.appendChild(t,i))}function h(t,e,i){if(Array.isArray(e))for(var r=0;r<e.length;++r)a(e[r],i,t.elm,null,!0,e,r);else n(t.text)&&T.appendChild(t.elm,T.createTextNode(String(t.text)))}function d(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return e(t.tag)}function u(t,i){for(var n=0;n<S.create.length;++n)S.create[n](Br,t);e(_=t.data.hook)&&(e(_.create)&&_.create(Br,t),e(_.insert)&&i.push(t))}function p(t){var i;if(e(i=t.fnScopeId))T.setStyleScope(t.elm,i);else for(var n=t;n;)e(i=n.context)&&e(i=i.$options._scopeId)&&T.setStyleScope(t.elm,i),n=n.parent;e(i=Nn)&&i!==t.context&&i!==t.fnContext&&e(i=i.$options._scopeId)&&T.setStyleScope(t.elm,i)}function f(t,e,i,n,r,o){for(;n<=r;++n)a(i[n],o,t,e,!1,i,n)}function g(t){var i,n,r=t.data;if(e(r))for(e(i=r.hook)&&e(i=i.destroy)&&i(t),i=0;i<S.destroy.length;++i)S.destroy[i](t);if(e(i=t.children))for(n=0;n<t.children.length;++n)g(t.children[n])}function m(t,i,n,r){for(;n<=r;++n){var a=i[n];e(a)&&(e(a.tag)?(v(a),g(a)):o(a.elm))}}function v(t,i){if(e(i)||e(t.data)){var n,r=S.remove.length+1;for(e(i)?i.listeners+=r:i=function(t,e){function i(){0==--i.listeners&&o(t)}return i.listeners=e,i}(t.elm,r),e(n=t.componentInstance)&&e(n=n._vnode)&&e(n.data)&&v(n,i),n=0;n<S.remove.length;++n)S.remove[n](t,i);e(n=t.data.hook)&&e(n=n.remove)?n(t,i):i()}else o(t.elm)}function b(t,i,n,r){for(var o=n;o<r;o++){var a=i[o];if(e(a)&&Zt(t,a))return o}}function y(n,r,o,s){if(n!==r){var l=r.elm=n.elm;if(i(n.isAsyncPlaceholder))e(r.asyncFactory.resolved)?w(n.elm,r,o):r.isAsyncPlaceholder=!0;else if(i(r.isStatic)&&i(n.isStatic)&&r.key===n.key&&(i(r.isCloned)||i(r.isOnce)))r.componentInstance=n.componentInstance;else{var c,h=r.data;e(h)&&e(c=h.hook)&&e(c=c.prepatch)&&c(n,r);var u=n.children,p=r.children;if(e(h)&&d(r)){for(c=0;c<S.update.length;++c)S.update[c](n,r);e(c=h.hook)&&e(c=c.update)&&c(n,r)}t(r.text)?e(u)&&e(p)?u!==p&&function(i,n,r,o,s){for(var l,c,h,d=0,u=0,p=n.length-1,g=n[0],v=n[p],x=r.length-1,w=r[0],_=r[x],C=!s;d<=p&&u<=x;)t(g)?g=n[++d]:t(v)?v=n[--p]:Zt(g,w)?(y(g,w,o),g=n[++d],w=r[++u]):Zt(v,_)?(y(v,_,o),v=n[--p],_=r[--x]):Zt(g,_)?(y(g,_,o),C&&T.insertBefore(i,g.elm,T.nextSibling(v.elm)),g=n[++d],_=r[--x]):(Zt(v,w)?(y(v,w,o),C&&T.insertBefore(i,v.elm,g.elm),v=n[--p]):(t(l)&&(l=Qt(n,d,p)),t(c=e(w.key)?l[w.key]:b(w,n,d,p))?a(w,o,i,g.elm,!1,r,u):Zt(h=n[c],w)?(y(h,w,o),n[c]=void 0,C&&T.insertBefore(i,h.elm,g.elm)):a(w,o,i,g.elm,!1,r,u)),w=r[++u]);p<d?f(i,t(r[x+1])?null:r[x+1].elm,r,u,x,o):x<u&&m(0,n,d,p)}(l,u,p,o,s):e(p)?(e(n.text)&&T.setTextContent(l,""),f(l,null,p,0,p.length-1,o)):e(u)?m(0,u,0,u.length-1):e(n.text)&&T.setTextContent(l,""):n.text!==r.text&&T.setTextContent(l,r.text),e(h)&&e(c=h.hook)&&e(c=c.postpatch)&&c(n,r)}}}function x(t,n,r){if(i(r)&&e(t.parent))t.parent.data.pendingInsert=n;else for(var o=0;o<n.length;++o)n[o].data.hook.insert(n[o])}function w(t,n,r,o){var a,l=n.tag,c=n.data,d=n.children;if(o=o||c&&c.pre,n.elm=t,i(n.isComment)&&e(n.asyncFactory))return n.isAsyncPlaceholder=!0;if(e(c)&&(e(a=c.hook)&&e(a=a.init)&&a(n,!0),e(a=n.componentInstance)))return s(n,r),!0;if(e(l)){if(e(d))if(t.hasChildNodes())if(e(a=c)&&e(a=a.domProps)&&e(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var p=!0,f=t.firstChild,g=0;g<d.length;g++){if(!f||!w(f,d[g],r,o)){p=!1;break}f=f.nextSibling}if(!p||f)return!1}else h(n,d,r);if(e(c)){var m=!1;for(var v in c)if(!L(v)){m=!0,u(n,r);break}!m&&c.class&&Y(c.class)}}else t.data!==n.text&&(t.data=n.text);return!0}var _,C,S={},A=r.modules,T=r.nodeOps;for(_=0;_<Nr.length;++_)for(S[Nr[_]]=[],C=0;C<A.length;++C)e(A[C][Nr[_]])&&S[Nr[_]].push(A[C][Nr[_]]);var L=c("attrs,class,staticClass,staticStyle,key");return function(n,r,o,s,l,c){if(!t(r)){var h,u=!1,p=[];if(t(n))u=!0,a(r,p,l,c);else{var f=e(n.nodeType);if(!f&&Zt(n,r))y(n,r,p,s);else{if(f){if(1===n.nodeType&&n.hasAttribute(qi)&&(n.removeAttribute(qi),o=!0),i(o)&&w(n,r,p))return x(r,p,!0),n;h=n,n=new vn(T.tagName(h).toLowerCase(),{},[],void 0,h)}var v=n.elm,b=T.parentNode(v);if(a(r,p,v._leaveCb?null:b,T.nextSibling(v)),e(r.parent))for(var _=r.parent,C=d(r);_;){for(var k=0;k<S.destroy.length;++k)S.destroy[k](_);if(_.elm=r.elm,C){for(var A=0;A<S.create.length;++A)S.create[A](Br,_);var L=_.data.hook.insert;if(L.merged)for(var D=1;D<L.fns.length;D++)L.fns[D]()}else Kt(_);_=_.parent}e(b)?m(0,[n],0,0):e(n.tag)&&g(n)}}return x(r,p,u),r.elm}e(n)&&g(n)}}({nodeOps:Fr,modules:[Hr,Wr,Gr,Yr,eo,Ki?{create:qe,activate:qe,remove:function(t,e){!0!==t.data.show?He(t,e):e()}}:{}].concat(Vr)});nn&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Ze(t,"input")}));var fo={inserted:function(t,e,i,n){"select"===i.tag?(n.elm&&!n.elm._vOptions?K(i,"postpatch",(function(){fo.componentUpdated(t,e,i)})):Ue(t,e,i.context),t._vOptions=[].map.call(t.options,Xe)):("textarea"===i.tag||Or(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Je),t.addEventListener("compositionend",Ke),t.addEventListener("change",Ke),nn&&(t.vmodel=!0)))},componentUpdated:function(t,e,i){if("select"===i.tag){Ue(t,e,i.context);var n=t._vOptions,r=t._vOptions=[].map.call(t.options,Xe);r.some((function(t,e){return!v(t,n[e])}))&&(t.multiple?e.value.some((function(t){return Ye(t,r)})):e.value!==e.oldValue&&Ye(e.value,r))&&Ze(t,"change")}}},go={model:fo,show:{bind:function(t,e,i){var n=e.value,r=(i=Qe(i)).data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&r?(i.data.show=!0,Ve(i,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,i){var n=e.value;!n!=!e.oldValue&&((i=Qe(i)).data&&i.data.transition?(i.data.show=!0,n?Ve(i,(function(){t.style.display=t.__vOriginalDisplay})):He(i,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,i,n,r){r||(t.style.display=t.__vOriginalDisplay)}}},mo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},vo={name:"transition",props:mo,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter((function(t){return t.tag||it(t)}))).length){var r=this.mode,o=i[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var a=ti(o);if(!a)return o;if(this._leaving)return ii(t,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:n(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var l,c,h=(a.data||(a.data={})).transition=ei(this),d=this._vnode,u=ti(d);if(a.data.directives&&a.data.directives.some((function(t){return"show"===t.name}))&&(a.data.show=!0),u&&u.data&&(l=a,(c=u).key!==l.key||c.tag!==l.tag)&&!it(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var p=u.data.transition=f({},h);if("out-in"===r)return this._leaving=!0,K(p,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ii(t,o);if("in-out"===r){if(it(a))return d;var g,m=function(){g()};K(h,"afterEnter",m),K(h,"enterCancelled",m),K(p,"delayLeave",(function(t){g=t}))}}return o}}},bo=f({tag:String,moveClass:String},mo);delete bo.mode;var yo={Transition:vo,TransitionGroup:{props:bo,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=ei(this),s=0;s<r.length;s++){var l=r[s];l.tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(o.push(l),((i[l.key]=l).data||(l.data={})).transition=a)}if(n){for(var c=[],h=[],d=0;d<n.length;d++){var u=n[d];u.data.transition=a,u.data.pos=u.elm.getBoundingClientRect(),i[u.key]?c.push(u):h.push(u)}this.kept=t(e,null,c),this.removed=h}return t(e,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ni),t.forEach(ri),t.forEach(oi),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var i=t.elm,n=i.style;Fe(i,e),n.transform=n.WebkitTransform=n.transitionDuration="",i.addEventListener(so,i._moveCb=function t(n){n&&!/transform$/.test(n.propertyName)||(i.removeEventListener(so,t),i._moveCb=null,Re(i,e))})}})))},methods:{hasMove:function(t,e){if(!no)return!1;if(this._hasMove)return this._hasMove;var i=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Ie(i,t)})),Pe(i,e),i.style.display="none",this.$el.appendChild(i);var n=Ne(i);return this.$el.removeChild(i),this._hasMove=n.hasTransform}}}};jt.config.mustUseProp=_r,jt.config.isReservedTag=Ir,jt.config.isReservedAttr=xr,jt.config.getTagNamespace=Xt,jt.config.isUnknownElement=function(t){if(!Ki)return!0;
56if(Ir(t))return!1;if(t=t.toLowerCase(),null!=Mr[t])return Mr[t];var e=document.createElement(t);return-1<t.indexOf("-")?Mr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Mr[t]=/HTMLUnknownElement/.test(e.toString())},f(jt.options.directives,go),f(jt.options.components,yo),jt.prototype.__patch__=Ki?po:m,jt.prototype.$mount=function(t,e){return n=t=t&&Ki?Jt(t):void 0,r=e,(i=this).$el=n,i.$options.render||(i.$options.render=yn),ut(i,"beforeMount"),new Un(i,(function(){i._update(i._render(),r)}),m,null,!0),r=!1,null==i.$vnode&&(i._isMounted=!0,ut(i,"mounted")),i;var i,n,r},Ki&&setTimeout((function(){Yi.devtools&&dn&&dn.emit("init",jt)}),0);var xo,wo=/\{\{((?:.|\n)+?)\}\}/g,_o=/[-.*+?^${}()|[\]\/\\]/g,Co=u((function(t){var e=t[0].replace(_o,"\\$&"),i=t[1].replace(_o,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+i,"g")})),So={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var i=me(t,"class");i&&(t.staticClass=JSON.stringify(i));var n=ge(t,"class",!1);n&&(t.classBinding=n)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},ko={staticKeys:["staticStyle"],
57transformNode:function(t,e){e.warn;var i=me(t,"style");i&&(t.staticStyle=JSON.stringify(Xr(i)));var n=ge(t,"style",!1);n&&(t.styleBinding=n)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},Ao=function(t){return(xo=xo||document.createElement("div")).innerHTML=t,xo.textContent},To=c("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Lo=c("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Do=c("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Eo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Po="[a-zA-Z_][\\w\\-\\.]*",Io="((?:"+Po+"\\:)?"+Po+")",Mo=new RegExp("^<"+Io),Oo=/^\s*(\/?)>/,Fo=new RegExp("^<\\/"+Io+"[^>]*>"),Ro=/^<!DOCTYPE [^>]+>/i,Bo=/^<!\--/,No=/^<!\[/,jo=!1;"x".replace(/x(.)?/g,(function(t,e){jo=""===e}));var $o,Vo,Ho,Wo,zo,qo,Uo,Go,Yo,Xo,Jo,Ko=c("script,style,textarea",!0),Zo={},Qo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t"},ta=/&(?:lt|gt|quot|amp);/g,ea=/&(?:lt|gt|quot|amp|#10|#9);/g,ia=c("pre,textarea",!0),na=function(t,e){return t&&ia(t)&&"\n"===e[0]},ra=/^@|^v-on:/,oa=/^v-|^@|^:/,aa=/([^]*?)\s+(?:in|of)\s+([^]*)/,sa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,la=/^\(|\)$/g,ca=/:(.*)$/,ha=/^:|^v-bind:/,da=/\.[^.]+/g,ua=u(Ao),pa=/^xmlns:NS\d+/,fa=/^NS\d+:/,ga=[So,ko,{preTransformNode:function(t,e){if("input"===t.tag){var i,n=t.attrsMap;if(!n["v-model"])return;if((n[":type"]||n["v-bind:type"])&&(i=ge(t,"type")),n.type||i||!n["v-bind"]||(i="("+n["v-bind"]+").type"),i){var r=me(t,"v-if",!0),o=r?"&&("+r+")":"",a=null!=me(t,"v-else",!0),s=me(t,"v-else-if",!0),l=ui(t);ci(l),pe(l,"type","checkbox"),li(l,e),l.processed=!0,l.if="("+i+")==='checkbox'"+o,hi(l,{exp:l.if,block:l});var c=ui(t);me(c,"v-for",!0),pe(c,"type","radio"),li(c,e),hi(l,{exp:"("+i+")==='radio'"+o,block:c});var h=ui(t);return me(h,"v-for",!0),pe(h,":type",i),li(h,e),hi(l,{exp:r,block:h}),a?l.else=!0:s&&(l.elseif=s),l}}}}],ma={expectHTML:!0,modules:ga,directives:{model:function(t,e){var i,n,r,o,a,s,l,c,h,d,u,p,f,g,m=e.value,v=e.modifiers,b=t.tag,y=t.attrsMap.type;if(t.component)return ve(t,m,v),!1;if("select"===b)f=m,fe(t,"change",'var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+((g=v)&&g.number?"_n(val)":"val")+"});"+" "+be(f,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0);else if("input"===b&&"checkbox"===y)s=t,l=m,h=(c=v)&&c.number,d=ge(s,"value")||"null",u=ge(s,"true-value")||"true",p=ge(s,"false-value")||"false",de(s,"checked","Array.isArray("+l+")?_i("+l+","+d+")>-1"+("true"===u?":("+l+")":":_q("+l+","+u+")")),fe(s,"change","var $$a="+l+",$$el=$event.target,$$c=$$el.checked?("+u+"):("+p+");if(Array.isArray($$a)){var $$v="+(h?"_n("+d+")":d)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+be(l,"$$a.concat([$$v])")+")}else{$$i>-1&&("+be(l,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+be(l,"$$c")+"}",null,!0);else if("input"===b&&"radio"===y)i=t,n=m,o=(r=v)&&r.number,a=ge(i,"value")||"null",de(i,"checked","_q("+n+","+(a=o?"_n("+a+")":a)+")"),fe(i,"change",be(n,a),null,!0);
vendor: 2,182 bytes, line 57
57else if("input"===b||"textarea"===b)!function(t,e,i){var n=t.attrsMap.type,r=i||{},o=r.lazy,a=r.number,s=r.trim,l=!o&&"range"!==n,c=o?"change":"range"===n?qr:"input",h="$event.target.value";s&&(h="$event.target.value.trim()"),a&&(h="_n("+h+")");var d=be(e,h);l&&(d="if($event.target.composing)return;"+d),de(t,"value","("+e+")"),fe(t,c,d,null,!0),(s||a)&&fe(t,"blur","$forceUpdate()")}(t,m,v);else if(!Yi.isReservedTag(b))return ve(t,m,v),!1;return!0},text:function(t,e){e.value&&de(t,"textContent","_s("+e.value+")")},html:function(t,e){e.value&&de(t,"innerHTML","_s("+e.value+")")}},isPreTag:function(t){return"pre"===t},isUnaryTag:To,mustUseProp:_r,canBeLeftOpenTag:Lo,isReservedTag:Ir,getTagNamespace:Xt,staticKeys:(Yo=ga,Yo.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(","))},va=u((function(t){return c("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))})),ba=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,ya=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,xa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},wa={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},_a=function(t){return"if("+t+")return null;"},Ca={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:_a("$event.target !== $event.currentTarget"),ctrl:_a("!$event.ctrlKey"),shift:_a("!$event.shiftKey"),alt:_a("!$event.altKey"),meta:_a("!$event.metaKey"),left:_a("'button' in $event && $event.button !== 0"),middle:_a("'button' in $event && $event.button !== 1"),right:_a("'button' in $event && $event.button !== 2")},Sa={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(i){return"_b("+i+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:m},ka=function(t){this.options=t,this.warn=t.warn||ce,this.transforms=he(t.modules,"transformCode"),this.dataGenFns=he(t.modules,"genData"),this.directives=f(f({}
57,Sa),t.directives);var e=t.isReservedTag||Wi;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]};new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var Aa,Ta,La=(Aa=function(t,e){var i=si(t.trim(),e);!1!==e.optimize&&pi(i,e);var n=vi(i,e);return{ast:i,render:n.render,staticRenderFns:n.staticRenderFns}},function(t){function e(e,i){var n=Object.create(t),r=[],o=[];if(n.warn=function(t,e){(e?o:r).push(t)},i)for(var a in i.modules&&(n.modules=(t.modules||[]).concat(i.modules)),i.directives&&(n.directives=f(Object.create(t.directives||null),i.directives)),i)"modules"!==a&&"directives"!==a&&(n[a]=i[a]);var s=Aa(e,n);return s.errors=r,s.tips=o,s}return{compile:e,compileToFunctions:(i=e,n=Object.create(null),function(t,e){(e=f({},e)).warn,delete e.warn;var r=e.delimiters?String(e.delimiters)+t:t;if(n[r])return n[r];var o=i(t,e),a={},s=[];return a.render=Di(o.render,s),a.staticRenderFns=o.staticRenderFns.map((function(t){return Di(t,s)})),n[r]=a})};var i,n})(ma).compileToFunctions,Da=!!Ki&&Ei(!1),Ea=!!Ki&&Ei(!0),Pa=u((function(t){var e=Jt(t);return e&&e.innerHTML})),Ia=jt.prototype.$mount;return jt.prototype.$mount=function(t,e){if((t=t&&Jt(t))===document.body||t===document.documentElement)return this;var i=this.$options;if(!i.render){var n=i.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=Pa(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){var r=La(n,{shouldDecodeNewlines:Da,shouldDecodeNewlinesForHref:Ea,delimiters:i.delimiters,comments:i.comments},this),o=r.render,a=r.staticRenderFns;i.render=o,i.staticRenderFns=a}}return Ia.call(this,t,e)},jt.compile=La,jt})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Vuex=e()}(this,(function(){"use strict";function t(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var i=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,i.call(this,t)}}}function e(t){A&&(t._devtoolHook=A,A.emit("vuex:init",t),A.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){A.emit("vuex:mutation",t,e)})))}function i(t,e){Object.keys(t).forEach((function(i){return e(t[i],i)}))}function n(t){return null!==t&&"object"==typeof t}function r(t){return t&&"function"==typeof t.then}function o(t,e){if(!t)throw new Error("[vuex] "+e)}function a(t,e){return function(){return t(e)}}function s(t,e,i){if(l(t,i),e.update(i),i.modules)for(var n in i.modules){if(!e.getChild(n))return void console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");s(t.concat(n),e.getChild(n),i.modules[n])}}function l(t,e){Object.keys(I).forEach((function(n){if(e[n]){var r=I[n];i(e[n],(function(e,i){o(r.assert(e),c(t,n,i,e,r.expected))}))}}))}function c(t,e,i,n,r){var o=e+" should be "+r+' but "'+e+"."+i+'"';return t.length>0&&(o+=' in module "'+t.join(".")+'"'),o+=" is "+JSON.stringify(n)+"."}function h(t,e){return e.indexOf(t)<0&&e.push(t),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function d(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var i=t.state;p(t,i,[],t._modules.root,!0),u(t,i,e)}function u(t,e,n){var r=t._vm;t.getters={};var o=t._wrappedGetters,s={};i(o,(function(e,i){s[i]=a(e,t),Object.defineProperty(t.getters,i,{get:function(){return t._vm[i]},enumerable:!0})}
57));var l=E.config.silent;E.config.silent=!0,t._vm=new E({data:{$$state:e},computed:s}),E.config.silent=l,t.strict&&y(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),E.nextTick((function(){return r.$destroy()})))}function p(t,e,i,n,r){var o=!i.length,a=t._modules.getNamespace(i);if(n.namespaced&&(t._modulesNamespaceMap[a]=n),!o&&!r){var s=x(e,i.slice(0,-1)),l=i[i.length-1];t._withCommit((function(){E.set(s,l,n.state)}))}var c=n.context=f(t,a,i);n.forEachMutation((function(e,i){m(t,a+i,e,c)})),n.forEachAction((function(e,i){var n=e.root?i:a+i,r=e.handler||e;v(t,n,r,c)})),n.forEachGetter((function(e,i){b(t,a+i,e,c)})),n.forEachChild((function(n,o){p(t,e,i.concat(o),n,r)}))}function f(t,e,i){var n=""===e,r={dispatch:n?t.dispatch:function(i,n,r){var o=w(i,n,r),a=o.payload,s=o.options,l=o.type;if(s&&s.root||(l=e+l,t._actions[l]))return t.dispatch(l,a);console.error("[vuex] unknown local action type: "+o.type+", global type: "+l)},commit:n?t.commit:function(i,n,r){var o=w(i,n,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l,t._mutations[l])?t.commit(l,a,s):console.error("[vuex] unknown local mutation type: "+o.type+", global type: "+l)}};return Object.defineProperties(r,{getters:{get:n?function(){return t.getters}:function(){return g(t,e)}},state:{get:function(){return x(t.state,i)}}}),r}function g(t,e){var i={},n=e.length;return Object.keys(t.getters).forEach((function(r){if(r.slice(0,n)===e){var o=r.slice(n);Object.defineProperty(i,o,{get:function(){return t.getters[r]},enumerable:!0})}})),i}function m(t,e,i,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){i.call(t,n.state,e)}))}function v(t,e,i,n){(t._actions[e]||(t._actions[e]=[])).push((function(e,o){var a=i.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e,o);return r(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):a}))}function b(t,e,i,n){t._wrappedGetters[e]?console.error("[vuex] duplicate getter key: "+e):t._wrappedGetters[e]=function(t){return i(n.state,n.getters,t.state,t.getters)}}function y(t){t._vm.$watch((function(){return this._data.$$state}),(function(){o(t._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,sync:!0})}function x(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function w(t,e,i){return n(t)&&t.type&&(i=e,e=t,t=t.type),o("string"==typeof t,"expects string as the type, but found "+typeof t+"."),{type:t,payload:e,options:i}}function _(e){E&&e===E?console.error("[vuex] already installed. Vue.use(Vuex) should be called only once."):t(E=e)}function C(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function S(t){return function(e,i){return"string"!=typeof e?(i=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,i)}}function k(t,e,i){var n=t._modulesNamespaceMap[i];return n||console.error("[vuex] module namespace not found in "+e+"(): "+i),n}var A=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__,T=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"==typeof i?i():i)||{}},L={namespaced:{configurable:!0}};L.namespaced.get=function(){return!!this._rawModule.namespaced},T.prototype.addChild=function(t,e){this._children[t]=e},T.prototype.removeChild=function(t){delete this._children[t]},T.prototype.getChild=function(t){return this._children[t]},T.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},T.prototype.forEachChild=function(t){i(this._children,t)},T.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},T.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},T.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(T.prototype,L);var D=function(t){this.register([],t,!1)};D.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},D.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,i){return t+((e=e.getChild(i)).namespaced?i+"/":"")}
57),"")},D.prototype.update=function(t){s([],this.root,t)},D.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0),l(t,e);var o=new T(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&i(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},D.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];e.getChild(i).runtime&&e.removeChild(i)};var E,P={assert:function(t){return"function"==typeof t},expected:"function"},I={getters:P,mutations:P,actions:{assert:function(t){return"function"==typeof t||"object"==typeof t&&"function"==typeof t.handler},expected:'function or object with "handler" function'}},M=function t(i){var n=this;void 0===i&&(i={}),!E&&"undefined"!=typeof window&&window.Vue&&_(window.Vue),o(E,"must call Vue.use(Vuex) before creating a store instance."),o("undefined"!=typeof Promise,"vuex requires a Promise polyfill in this browser."),o(this instanceof t,"store must be called with the new operator.");var r=i.plugins;void 0===r&&(r=[]);var a=i.strict;void 0===a&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new D(i),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new E;var s=this,l=this,c=l.dispatch,h=l.commit;this.dispatch=function(t,e){return c.call(s,t,e)},this.commit=function(t,e,i){return h.call(s,t,e,i)},this.strict=a;var d=this._modules.root.state;p(this,d,[],this._modules.root),u(this,d),r.forEach((function(t){return t(n)})),(void 0!==i.devtools?i.devtools:E.config.devtools)&&e(this)},O={state:{configurable:!0}};O.state.get=function(){return this._vm._data.$$state},O.state.set=function(){o(!1,"use store.replaceState() to explicit replace store state.")},M.prototype.commit=function(t,e,i){var n=this,r=w(t,e,i),o=r.type,a=r.payload,s=r.options,l={type:o,payload:a},c=this._mutations[o];c?(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(l,n.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+o)},M.prototype.dispatch=function(t,e){var i=this,n=w(t,e),r=n.type,o=n.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.filter((function(t){return t.before})).forEach((function(t){return t.before(a,i.state)}))}catch(t){console.warn("[vuex] error in before action subscribers: "),console.error(t)}return(s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o)).then((function(t){try{i._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,i.state)}))}catch(t){console.warn("[vuex] error in after action subscribers: "),console.error(t)}return t}))}console.error("[vuex] unknown action type: "+r)},M.prototype.subscribe=function(t){return h(t,this._subscribers)},M.prototype.subscribeAction=function(t){return h("function"==typeof t?{before:t}:t,this._actionSubscribers)},M.prototype.watch=function(t,e,i){var n=this;return o("function"==typeof t,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,i)},M.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},M.prototype.registerModule=function(t,e,i){void 0===i&&(i={}),"string"==typeof t&&(t=[t]),o(Array.isArray(t),"module path must be a string or an Array."),o(t.length>0,"cannot register the root module by using registerModule."),this._modules.register(t,e),p(this,this.state,t,this._modules.get(t),i.preserveState),u(this,this.state)},M.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),o(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit((function(){var i=x(e.state,t.slice(0,-1));E.delete(i,t[t.length-1])})),d(this)},M.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},M.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(M.prototype,O);var F=S((function(t,e){var i={};return C(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=this.$store.state,i=this.$store.getters;if(t){var n=k(this.$store,"mapState",t);if(!n)return;
57e=n.context.state,i=n.context.getters}return"function"==typeof r?r.call(this,e,i):e[r]},i[n].vuex=!0})),i})),R=S((function(t,e){var i={};return C(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];var n=this.$store.commit;if(t){var o=k(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"==typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}})),i})),B=S((function(t,e){var i={};return C(e).forEach((function(e){var n=e.key,r=e.val;r=t+r,i[n]=function(){if(!t||k(this.$store,"mapGetters",t)){if(r in this.$store.getters)return this.$store.getters[r];console.error("[vuex] unknown getter: "+r)}},i[n].vuex=!0})),i})),N=S((function(t,e){var i={};return C(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];var n=this.$store.dispatch;if(t){var o=k(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"==typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}})),i})),j=function(t){return{mapState:F.bind(null,t),mapGetters:B.bind(null,t),mapMutations:R.bind(null,t),mapActions:N.bind(null,t)}};return{Store:M,install:_,version:"3.1.1",mapState:F,mapMutations:R,mapGetters:B,mapActions:N,createNamespacedHelpers:j}})),$((function(){$("#inventory-edit-button").click((function(){$("#inventory-edit-off").hide(),$("#inventory-edit-on").show(),$(".quantity-show").hide(),$(".quantity-edit").show()})),$("#inventory-cancel-button").click((function(){$("#inventory-edit-on").hide(),$("#inventory-edit-off").show(),$(".quantity-edit").hide(),$(".quantity-show").show()})),$("#inventory-save-button").click((function(){$("#inventory-form").submit()}))})),function(){}.call(this),function(){null==window.Set&&(window.Set=function(){function t(){this.clear()}return t.prototype.clear=function(){return this.values=[]},t.prototype.has=function(t){return-1!==this.values.indexOf(t)},t.prototype.add=function(t){return this.has(t)||this.values.push(t),this},t.prototype.delete=function(t){var e;return-1!==(e=this.values.indexOf(t))&&(this.values.splice(e,1),!0)},t.prototype.forEach=function(){var t;return(t=this.values).forEach.apply(t,arguments)},t}())}.call(this),function(t){function e(){}function i(t,e){return function(){t.apply(e,arguments)}}function n(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function r(t,e){for(;3===t._state;)t=t._value;return 0===t._state?void t._deferreds.push(e):(t._handled=!0,void d((function(){var i=1===t._state?e.onFulfilled:e.onRejected;if(null!==i){var n;try{n=i(t._value)}catch(t){return void a(e.promise,t)}o(e.promise,n)}else(1===t._state?o:a)(e.promise,t._value)})))}function o(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if(e instanceof n)return t._state=3,t._value=e,void s(t);if("function"==typeof r)return void c(i(r,e),t)}t._state=1,t._value=e,s(t)}catch(e){a(t,e)}}function a(t,e){t._state=2,t._value=e,s(t)}function s(t){2===t._state&&0===t._deferreds.length&&setTimeout((function(){t._handled||u(t._value)}),1);for(var e=0,i=t._deferreds.length;i>e;e++)r(t,t._deferreds[e]);t._deferreds=null}function l(t,e,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=i}function c(t,e){var i=!1;try{t((function(t){i||(i=!0,o(e,t))}),(function(t){i||(i=!0,a(e,t))}))}catch(t){if(i)return;i=!0,a(e,t)}}var h=setTimeout,d="function"==typeof setImmediate&&setImmediate||function(t){h(t,1)},u=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};n.prototype.catch=function(t){return this.then(null,t)},n.prototype.then=function(t,i){var o=new n(e);return r(this,new l(t,i,o)),o},n.all=function(t){var e=Array.prototype.slice.call(t);
57return new n((function(t,i){function n(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(t){n(o,t)}),i)}e[o]=a,0==--r&&t(e)}catch(t){i(t)}}if(0===e.length)return t([]);for(var r=e.length,o=0;o<e.length;o++)n(o,e[o])}))},n.resolve=function(t){return t&&"object"==typeof t&&t.constructor===n?t:new n((function(e){e(t)}))},n.reject=function(t){return new n((function(e,i){i(t)}))},n.race=function(t){return new n((function(e,i){for(var n=0,r=t.length;r>n;n++)t[n].then(e,i)}))},n._setImmediateFn=function(t){d=t},n._setUnhandledRejectionFn=function(t){u=t},"undefined"!=typeof module&&module.exports?module.exports=n:t.Promise||(t.Promise=n)}(this),function(){var t="object"==typeof window.customElements,e="function"==typeof document.registerElement;t||e||("undefined"==typeof WeakMap&&function(){var t=Object.defineProperty,e=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+e+++"__"};i.prototype={set:function(e,i){var n=e[this.name];return n&&n[0]===e?n[1]=i:t(e,this.name,{value:[e,i],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];return!(!e||e[0]!==t)&&(e[0]=e[1]=void 0,!0)},has:function(t){var e=t[this.name];return!!e&&e[0]===t}},window.WeakMap=i}(),function(t){function e(t){_.push(t),w||(w=!0,g(n))}function i(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}function n(){w=!1;var t=_;_=[],t.sort((function(t,e){return t.uid_-e.uid_}));var e=!1;t.forEach((function(t){var i=t.takeRecords();r(t),i.length&&(t.callback_(i,t),e=!0)})),e&&n()}function r(t){t.nodes_.forEach((function(e){var i=m.get(e);i&&i.forEach((function(e){e.observer===t&&e.removeTransientObservers()}))}))}function o(t,e){for(var i=t;i;i=i.parentNode){var n=m.get(i);if(n)for(var r=0;r<n.length;r++){var o=n[r],a=o.options;if(i===t||a.subtree){var s=e(a);s&&o.enqueue(s)}}}}function a(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++C}function s(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function l(t){var e=new s(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}function c(t,e){return y=new s(t,e)}function h(t){return x||((x=l(y)).oldValue=t,x)}function d(){y=x=void 0}function u(t){return t===x||t===y}function p(t,e){return t===e?t:x&&u(t)?x:null}function f(t,e,i){this.observer=t,this.target=e,this.options=i,this.transientObservedNodes=[]}if(!t.JsMutationObserver){var g,m=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))g=setTimeout;else if(window.setImmediate)g=window.setImmediate;else{var v=[],b=String(Math.random());window.addEventListener("message",(function(t){if(t.data===b){var e=v;v=[],e.forEach((function(t){t()}))}})),g=function(t){v.push(t),window.postMessage(b,"*")}}var y,x,w=!1,_=[],C=0;a.prototype={observe:function(t,e){if(t=i(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var n=m.get(t);n||m.set(t,n=[]);for(var r,o=0;o<n.length;o++)if(n[o].observer===this){(r=n[o]).removeListeners(),r.options=e;break}r||(r=new f(this,t,e),n.push(r),this.nodes_.push(t)),r.addListeners()},disconnect:function(){this.nodes_.forEach((function(t){for(var e=m.get(t),i=0;i<e.length;i++){var n=e[i];if(n.observer===this){n.removeListeners(),e.splice(i,1);break}}}),this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},f.prototype={enqueue:function(t){var i=this.observer.records_,n=i.length;if(i.length>0){var r=p(i[n-1],t);if(r)return void(i[n-1]=r)}else e(this.observer);i[n]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;
57e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=m.get(t);e||m.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach((function(t){this.removeListeners_(t);for(var e=m.get(t),i=0;i<e.length;i++)if(e[i]===this){e.splice(i,1);break}}),this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,i=t.relatedNode.namespaceURI,n=t.target;(a=new c("attributes",n)).attributeName=e,a.attributeNamespace=i;var r=t.attrChange===MutationEvent.ADDITION?null:t.prevValue;o(n,(function(t){return!t.attributes||t.attributeFilter&&t.attributeFilter.length&&-1===t.attributeFilter.indexOf(e)&&-1===t.attributeFilter.indexOf(i)?void 0:t.attributeOldValue?h(r):a}));break;case"DOMCharacterDataModified":var a=c("characterData",n=t.target);r=t.prevValue;o(n,(function(t){return t.characterData?t.characterDataOldValue?h(r):a:void 0}));break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var s,l,u=t.target;"DOMNodeInserted"===t.type?(s=[u],l=[]):(s=[],l=[u]);var p=u.previousSibling,f=u.nextSibling;(a=c("childList",t.target.parentNode)).addedNodes=s,a.removedNodes=l,a.previousSibling=p,a.nextSibling=f,o(t.relatedNode,(function(t){return t.childList?a:void 0}))}d()}},t.JsMutationObserver=a,t.MutationObserver||(t.MutationObserver=a,a._isPolyfilled=!0)}}(self),function(){"use strict";if(!window.performance||!window.performance.now){var t=Date.now();window.performance={now:function(){return Date.now()-t}}}window.requestAnimationFrame||(window.requestAnimationFrame=function(){var t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return t?function(e){return t((function(){e(performance.now())}))}:function(t){return window.setTimeout(t,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAnimationFrame=window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)});var e=function(){var t=document.createEvent("Event");return t.initEvent("foo",!0,!0),t.preventDefault(),t.defaultPrevented}();if(!e){var i=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(i.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var n=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||n&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,Boolean(e.bubbles),Boolean(e.cancelable),e.detail),i},window.CustomEvent.prototype=window.Event.prototype),!window.Event||n&&"function"!=typeof window.Event){var r=window.Event;window.Event=function(t,e){e=e||{};var i=document.createEvent("Event");return i.initEvent(t,Boolean(e.bubbles),Boolean(e.cancelable)),i},window.Event.prototype=r.prototype}}(window.WebComponents),window.CustomElements=window.CustomElements||{flags:{}},function(t){var e=t.flags,i=[],n=function(t){i.push(t)},r=function(){i.forEach((function(e){e(t)}))};t.addModule=n,t.initializeModules=r,t.hasNative=Boolean(document.registerElement),t.isIE=/Trident/.test(navigator.userAgent),t.useNative=!e.register&&t.hasNative&&!window.ShadowDOMPolyfill&&(!window.HTMLImports||window.HTMLImports.useNative)}(window.CustomElements),window.CustomElements.addModule((function(t){function e(t,e){i(t,(function(t){return!!e(t)||void n(t,e)})),n(t,e)}function i(t,e,n){var r=t.firstElementChild;if(!r)for(r=t.firstChild;r&&r.nodeType!==Node.ELEMENT_NODE;)r=r.nextSibling;for(;r;)!0!==e(r,n)&&i(r,e,n),r=r.nextElementSibling;return null}function n(t,i){for(var n=t.shadowRoot;n;)e(n,i),n=n.olderShadowRoot}function r(t,e){o(t,e,[])}function o(t,e,i){if(t=window.wrap(t),!(i.indexOf(t)>=0)){i.push(t);for(var n,r=t.querySelectorAll("link[rel="+a+"]"),s=0,l=r.length;l>s&&(n=r[s]);s++)n.import&&o(n.import,e,i);e(t)}}var a=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";t.forDocumentTree=r,t.forSubtree=e})),window.CustomElements.addModule((function(t){function e(t,e){return i(t,e)||n(t,e)}function i(e,i){return!!t.upgrade(e,i)||void(i&&a(e))}function n(t,e){y(t,(function(t){return!!i(t,e)||void 0}))}function r(t){C.push(t),_||(_=!0,setTimeout(o))}function o(){_=!1;for(var t,e=C,i=0,n=e.length;n>i&&(t=e[i]);i++)t();C=[]}function a(t){w?r((function(){s(t)})):s(t)}function s(t){t.__upgraded__&&!t.__attached&&(t.__attached=!0,t.attachedCallback&&t.attachedCallback())}function l(t){c(t),y(t,(function(t){c(t)}))}function c(t){w?r((function(){h(t)})):h(t)}function h(t){t.__upgraded__&&t.__attached&&(t.__attached=!1,t.detachedCallback&&t.detachedCallback())}function d(t){for(var e=t,i=window.wrap(document);e;){if(e==i)return!0;e=e.parentNode||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host}}function u(t){if(t.shadowRoot&&!t.shadowRoot.__watched){b.dom&&console.log("watching shadow-root for: ",t.localName);for(var e=t.shadowRoot;e;)g(e),e=e.olderShadowRoot}}function p(t,i){if(b.dom){var n=i[0];if(n&&"childList"===n.type&&n.addedNodes&&n.addedNodes){for(var r=n.addedNodes[0];r&&r!==document&&!r.host;)r=r.parentNode
58;var o=r&&(r.URL||r._URL||r.host&&r.host.localName)||"";o=o.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",i.length,o||"")}var a=d(t);
58i.forEach((function(t){"childList"===t.type&&(S(t.addedNodes,(function(t){t.localName&&e(t,a)})),S(t.removedNodes,(function(t){t.localName&&l(t)})))})),b.dom&&console.groupEnd()}function f(t){for((t=window.wrap(t))||(t=window.wrap(document));t.parentNode;)t=t.parentNode;var e=t.__observer;e&&(p(t,e.takeRecords()),o())}function g(t){if(!t.__observer){var e=new MutationObserver(p.bind(this,t));e.observe(t,{childList:!0,subtree:!0}),t.__observer=e}}function m(t){t=window.wrap(t),b.dom&&console.group("upgradeDocument: ",t.baseURI.split("/").pop()),e(t,t===window.wrap(document)),g(t),b.dom&&console.groupEnd()}function v(t){x(t,m)}var b=t.flags,y=t.forSubtree,x=t.forDocumentTree,w=window.MutationObserver._isPolyfilled&&b["throttle-attached"];t.hasPolyfillMutations=w,t.hasThrottledAttached=w;var _=!1,C=[],S=Array.prototype.forEach.call.bind(Array.prototype.forEach),k=Element.prototype.createShadowRoot;k&&(Element.prototype.createShadowRoot=function(){var t=k.call(this);return window.CustomElements.watchShadow(this),t}),t.watchShadow=u,t.upgradeDocumentTree=v,t.upgradeDocument=m,t.upgradeSubtree=n,t.upgradeAll=e,t.attached=a,t.takeRecords=f})),window.CustomElements.addModule((function(t){function e(e,n){if("template"===e.localName&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e),!e.__upgraded__&&e.nodeType===Node.ELEMENT_NODE){var r=e.getAttribute("is"),o=t.getRegisteredDefinition(e.localName)||t.getRegisteredDefinition(r);if(o&&(r&&o.tag==e.localName||!r&&!o.extends))return i(e,o,n)}}function i(e,i,r){return a.upgrade&&console.group("upgrade:",e.localName),i.is&&e.setAttribute("is",i.is),n(e,i),e.__upgraded__=!0,o(e),r&&t.attached(e),t.upgradeSubtree(e,r),a.upgrade&&console.groupEnd(),e}function n(t,e){Object.__proto__||r(t,e.prototype,e.native),t.__proto__=e.prototype}function r(t,e,i){for(var n={},r=e;r!==i&&r!==HTMLElement.prototype;){for(var o,a=Object.getOwnPropertyNames(r),s=0;o=a[s];s++)n[o]||(Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o)),n[o]=1);r=Object.getPrototypeOf(r)}}function o(t){t.createdCallback&&t.createdCallback()}var a=t.flags;t.upgrade=e,t.upgradeWithDefinition=i,t.implementPrototype=n})),window.CustomElements.addModule((function(t){function e(e,n){var l=n||{};if(!e)throw new Error("document.registerElement: first argument `name` must not be empty");if(e.indexOf("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(e)+"'.");if(r(e))throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed for type '"+String(e)+"'. The type name is invalid.");if(c(e))throw new Error("DuplicateDefinitionError: a type with name '"+String(e)+"' is already registered");return l.prototype||(l.prototype=Object.create(HTMLElement.prototype)),l.__name=e.toLowerCase(),l.extends&&(l.extends=l.extends.toLowerCase()),l.lifecycle=l.lifecycle||{},l.ancestry=o(l.extends),a(l),s(l),i(l.prototype),h(l.__name,l),l.ctor=d(l),l.ctor.prototype=l.prototype,l.prototype.constructor=l.ctor,t.ready&&m(document),l.ctor}function i(t){if(!t.setAttribute._polyfilled){var e=t.setAttribute;t.setAttribute=function(t,i){n.call(this,t,i,e)};var i=t.removeAttribute;t.removeAttribute=function(t){n.call(this,t,null,i)},t.setAttribute._polyfilled=!0}}function n(t,e,i){t=t.toLowerCase();var n=this.getAttribute(t);i.apply(this,arguments);var r=this.getAttribute(t);this.attributeChangedCallback&&r!==n&&this.attributeChangedCallback(t,n,r)}function r(t){for(var e=0;e<w.length;e++)if(t===w[e])return!0}function o(t){var e=c(t);return e?o(e.extends).concat([e]):[]}function a(t){for(var e,i=t.extends,n=0;e=t.ancestry[n];n++)i=e.is&&e.tag;t.tag=i||t.__name,i&&(t.is=t.__name)}function s(t){if(!Object.__proto__){var e=HTMLElement.prototype;if(t.is){var i=document.createElement(t.tag);e=Object.getPrototypeOf(i)}for(var n,r=t.prototype,o=!1;r;
58)r==e&&(o=!0),(n=Object.getPrototypeOf(r))&&(r.__proto__=n),r=n;o||console.warn(t.tag+" prototype not found in prototype chain for "+t.is),t.native=e}}function l(t){return b(S(t.tag),t)}function c(t){return t?_[t.toLowerCase()]:void 0}function h(t,e){_[t]=e}function d(t){return function(){return l(t)}}function u(t,e,i){return t===C?p(e,i):k(t,e)}function p(t,e){t&&(t=t.toLowerCase()),e&&(e=e.toLowerCase());var i,n=c(e||t);if(n){if(t==n.tag&&e==n.is)return new n.ctor;if(!e&&!n.is)return new n.ctor}return e?((i=p(t)).setAttribute("is",e),i):(i=S(t),t.indexOf("-")>=0&&y(i,HTMLElement),i)}function f(t,e){var i=t[e];t[e]=function(){var t=i.apply(this,arguments);return v(t),t}}var g,m=(t.isIE,t.upgradeDocumentTree),v=t.upgradeAll,b=t.upgradeWithDefinition,y=t.implementPrototype,x=t.useNative,w=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],_={},C="http://www.w3.org/1999/xhtml",S=document.createElement.bind(document),k=document.createElementNS.bind(document);g=Object.__proto__||x?function(t,e){return t instanceof e}:function(t,e){if(t instanceof e)return!0;for(var i=t;i;){if(i===e.prototype)return!0;i=i.__proto__}return!1},f(Node.prototype,"cloneNode"),f(document,"importNode"),document.registerElement=e,document.createElement=p,document.createElementNS=u,t.registry=_,t.instanceof=g,t.reservedTagList=w,t.getRegisteredDefinition=c,document.register=document.registerElement})),function(t){function e(){o(window.wrap(document)),window.CustomElements.ready=!0,(window.requestAnimationFrame||function(t){setTimeout(t,16)})((function(){setTimeout((function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}))}))}var i=t.useNative,n=t.initializeModules;if(t.isIE,i){var r=function(){};t.watchShadow=r,t.upgrade=r,t.upgradeAll=r,t.upgradeDocumentTree=r,t.upgradeSubtree=r,t.takeRecords=r,t.instanceof=function(t,e){return t instanceof e}}else n();var o=t.upgradeDocumentTree,a=t.upgradeDocument;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=window.ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=window.unwrap=function(t){return t}),window.HTMLImports&&(window.HTMLImports.__importsParsingHook=function(t){t.import&&a(wrap(t.import))}),"complete"===document.readyState||t.flags.eager)e();else if("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var s=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(s,e)}else e()}(window.CustomElements))}.call(this),function(){}.call(this),function(){var t=this;(function(){(function(){this.Trix={VERSION:"1.2.3",ZERO_WIDTH_SPACE:"\ufeff",NON_BREAKING_SPACE:"\xa0",OBJECT_REPLACEMENT_CHARACTER:"\ufffc",browser:{composesExistingText:/Android.*Chrome/.test(navigator.userAgent),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:function(){var t,e,i;if("undefined"==typeof InputEvent)return!1;for(t=0,e=(i=["data","getTargetRanges","inputType"]).length;e>t;t++)if(!(i[t]in InputEvent.prototype))return!1;return!0}()},config:{}}}).call(this)}).call(t);var e=t.Trix;(function(){(function(){e.BasicObject=function(){function t(){}var e,i,n;return t.proxyMethod=function(t){var n,r,o,a,s;return o=i(t),n=o.name,a=o.toMethod,s=o.toProperty,r=o.optional,this.prototype[n]=function(){var t,i;return t=null!=a?r?"function"==typeof this[a]?this[a]():void 0:this[a]():null!=s?this[s]:void 0,r?null!=(i=null!=t?t[n]:void 0)?e.call(i,t,arguments):void 0:(i=t[n],e.call(i,t,arguments))}},i=function(t){var e,i;if(!(i=t.match(n)))throw new Error("can't parse @proxyMethod expression: "+t);return e={name:i[4]},null!=i[2]?e.toMethod=i[1]:e.toProperty=i[1],null!=i[3]&&(e.optional=!0),e},e=Function.prototype.apply,n=/^(.+?)(\(\))?(\?)?\.(.+?)$/,t}()}).call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.Object=function(i){function n(){this.id=++r}var r;return t(n,i),r=0,n.fromJSONString=function(t){return this.fromJSON(JSON.parse(t))},n.prototype.hasSameConstructorAs=function(t){return this.constructor===(null!=t?t.constructor:void 0)},n.prototype.isEqualTo=function(t){return this===t},n.prototype.inspect=function(){var t,e,i;return t=function(){var t,n,r;for(e in r=[],n=null!=(t=this.contentsForInspection())?t:{})i=n[e],r.push(e+"="+i);return r}.call(this),"#<"+this.constructor.name+":"+this.id+(t.length?" "+t.join(", "):"")+">"},n.prototype.contentsForInspection=function(){},n.prototype.toJSONString=function(){return JSON.stringify(this)},n.prototype.toUTF16String=function(){return e.UTF16String.box(this)},n.prototype.getCacheKey=function(){return this.id.toString()},n}(e.BasicObject)}.call(this),function(){e.extend=function(t){var e,i;for(e in t)i=t[e],this[e]=i;return this}}.call(this),function(){e.extend({defer:function(t){return setTimeout(t,1)}})}.call(this),function(){var t,i;e.extend({normalizeSpaces:function(t){return t.replace(RegExp(""+e.ZERO_WIDTH_SPACE,"g"),"").replace(RegExp(""+e.NON_BREAKING_SPACE,"g")," ")},normalizeNewlines:function(t){return t.replace(/\r\n/g,"\n")},breakableWhitespacePattern:RegExp("[^\\S"+e.NON_BREAKING_SPACE+"]"),squishBreakableWhitespace:function(t){return t.replace(RegExp(""+e.breakableWhitespacePattern.source,"g")," ").replace(/\ {2,}/g," ")},escapeHTML:function(t){var e;return(e=document.createElement("div")).textContent=t,e.innerHTML},summarizeStringChange:function(t,n){var r,o,a,s;return t=e.UTF16String.box(t),(n=e.UTF16String.box(n)).length<t.length?(s=(o=i(t,n))[0],r=o[1]):(r=(a=i(n,t))[0],s=a[1]),{added:r,removed:s}}}),i=function(i,n){var r,o,a,s,l;return i.isEqualTo(n)?["",""]:(a=(s=(o=t(i,n)).utf16String.length)?(l=o.offset,r=i.codepoints.slice(0,l).concat(i.codepoints.slice(l+s)),t(n,e.UTF16String.fromCodepoints(r))):t(n,i),[o.utf16String.toString(),a.utf16String.toString()])},t=function(t,e){var i,n,r;for(i=0,n=t.length,r=e.length;n>i&&t.charAt(i).isEqualTo(e.charAt(i));)i++;for(;n>i+1&&t.charAt(n-1).isEqualTo(e.charAt(r-1));)n--,r--;return{utf16String:t.slice(i,n),offset:i}}}.call(this),function(){e.extend({copyObject:function(t){var e,i,n;for(e in null==t&&(t={}),i={},t)n=t[e],i[e]=n;return i},objectsAreEqual:function(t,e){var i;if(null==t&&(t={}),null==e&&(e={}),Object.keys(t).length!==Object.keys(e).length)return!1;for(i in t)if(t[i]!==e[i])return!1;return!0}})}.call(this),function(){var t=[].slice;e.extend({arraysAreEqual:function(t,e){var i,n,r;if(null==t&&(t=[]),null==e&&(e=[]),t.length!==e.length)return!1;for(n=i=0,r=t.length;r>i;n=++i)if(t[n]!==e[n])return!1;return!0},arrayStartsWith:function(t,i){return null==t&&(t=[]),null==i&&(i=[]),e.arraysAreEqual(t.slice(0,i.length),i)},spliceArray:function(){var e,i,n;
58return i=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],(n=i.slice(0)).splice.apply(n,e),n},summarizeArrayChange:function(t,e){var i,n,r,o,a,s,l,c,h,d,u;for(null==t&&(t=[]),null==e&&(e=[]),i=[],d=[],r=new Set,o=0,l=t.length;l>o;o++)u=t[o],r.add(u);for(n=new Set,a=0,c=e.length;c>a;a++)u=e[a],n.add(u),r.has(u)||i.push(u);for(s=0,h=t.length;h>s;s++)u=t[s],n.has(u)||d.push(u);return{added:i,removed:d}}})}.call(this),function(){var t,i,n,r;t=null,i=null,r=null,n=null,e.extend({getAllAttributeNames:function(){return null!=t?t:t=e.getTextAttributeNames().concat(e.getBlockAttributeNames())},getBlockConfig:function(t){return e.config.blockAttributes[t]},getBlockAttributeNames:function(){return null!=i?i:i=Object.keys(e.config.blockAttributes)},getTextConfig:function(t){return e.config.textAttributes[t]},getTextAttributeNames:function(){return null!=r?r:r=Object.keys(e.config.textAttributes)},getListAttributeNames:function(){var t,i;return null!=n?n:n=function(){var n,r;for(t in r=[],n=e.config.blockAttributes)null!=(i=n[t].listAttribute)&&r.push(i);return r}()}})}.call(this),function(){var t,i,n,r,o,a=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};t=document.documentElement,i=null!=(n=null!=(r=null!=(o=t.matchesSelector)?o:t.webkitMatchesSelector)?r:t.msMatchesSelector)?n:t.mozMatchesSelector,e.extend({handleEvent:function(i,n){var r,o,a,s,l,c,h,d,u,p,f;return l=(h=null!=n?n:{}).onElement,s=h.matchingSelector,f=h.withCallback,a=h.inPhase,c=h.preventDefault,u=h.times,r=null!=l?l:t,d=s,f,p="capturing"===a,o=function(t){var i;return null!=u&&0==--u&&o.destroy(),null!=(i=e.findClosestElementFromNode(t.target,{matchingSelector:d}))&&(null!=f&&f.call(i,t,i),c)?t.preventDefault():void 0},o.destroy=function(){return r.removeEventListener(i,o,p)},r.addEventListener(i,o,p),o},handleEventOnce:function(t,i){return null==i&&(i={}),i.times=1,e.handleEvent(t,i)},triggerEvent:function(i,n){var r,o,a,s,l,c,h;return c=(h=null!=n?n:{}).onElement,o=h.bubbles,a=h.cancelable,r=h.attributes,s=null!=c?c:t,o=!1!==o,a=!1!==a,(l=document.createEvent("Events")).initEvent(i,o,a),null!=r&&e.extend.call(l,r),s.dispatchEvent(l)},elementMatchesSelector:function(t,e){return 1===(null!=t?t.nodeType:void 0)?i.call(t,e):void 0},findClosestElementFromNode:function(t,i){var n,r,o;for(n=(r=null!=i?i:{}).matchingSelector,o=r.untilNode;null!=t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.parentNode;if(null!=t){if(null==n)return t;if(t.closest&&null==o)return t.closest(n);for(;t&&t!==o;){if(e.elementMatchesSelector(t,n))return t;t=t.parentNode}}},findInnerElement:function(t){for(;null!=t?t.firstElementChild:void 0;)t=t.firstElementChild;return t},innerElementIsActive:function(t){return document.activeElement!==t&&e.elementContainsNode(t,document.activeElement)},elementContainsNode:function(t,e){if(t&&e)for(;e;){if(e===t)return!0;e=e.parentNode}},findNodeFromContainerAndOffset:function(t,e){var i;if(t)return t.nodeType===Node.TEXT_NODE?t:0===e?null!=(i=t.firstChild)?i:t:t.childNodes.item(e-1)},findElementFromContainerAndOffset:function(t,i){var n;return n=e.findNodeFromContainerAndOffset(t,i),e.findClosestElementFromNode(n)},findChildIndexOfNode:function(t){var e;if(null!=t?t.parentNode:void 0){for(e=0;t=t.previousSibling;)e++;return e}},removeNode:function(t){var e;return null!=t&&null!=(e=t.parentNode)?e.removeChild(t):void 0},walkTree:function(t,e){var i,n,r,o,a;return n=(r=null!=e?e:{}).onlyNodesOfType,o=r.usingFilter,i=r.expandEntityReferences,a=function(){switch(n){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}}(),document.createTreeWalker(t,a,null!=o?o:null,!0===i)},tagName:function(t){var e;return null!=t&&null!=(e=t.tagName)?e.toLowerCase():void 0},makeElement:function(t,e){var i,n,r,o,a,s,l,c,h,d;if(null==e&&(e={}),"object"==typeof t?t=(e=t).tagName:e={attributes:e},n=document.createElement(t),null!=e.editable&&(null==e.attributes&&(e.attributes={}),e.attributes.contenteditable=e.editable),e.attributes)for(o in s=e.attributes)d=s[o],n.setAttribute(o,d);if(e.style)for(o in l=e.style)d=l[o],n.style[o]=d;if(e.data)for(o in c=e.data)d=c[o],n.dataset[o]=d;if(e.className)for(r=0,a=(h=e.className.split(" ")).length;a>r;r++)i=h[r],n.classList.add(i);return e.textContent&&(n.textContent=e.textContent),n},getBlockTagNames:function(){var t,i;return null!=e.blockTagNames?e.blockTagNames:e.blockTagNames=function(){var n,r;for(t in r=[],n=e.config.blockAttributes)(i=n[t].tagName)&&r.push(i);return r}()}
58,nodeIsBlockContainer:function(t){return e.nodeIsBlockStartComment(null!=t?t.firstChild:void 0)},nodeProbablyIsBlockContainer:function(t){var i,n;return i=e.tagName(t),a.call(e.getBlockTagNames(),i)>=0&&(n=e.tagName(t.firstChild),a.call(e.getBlockTagNames(),n)<0)},nodeIsBlockStart:function(t,i){return(null!=i?i:{strict:!0}).strict?e.nodeIsBlockStartComment(t):e.nodeIsBlockStartComment(t)||!e.nodeIsBlockStartComment(t.firstChild)&&e.nodeProbablyIsBlockContainer(t)},nodeIsBlockStartComment:function(t){return e.nodeIsCommentNode(t)&&"block"===(null!=t?t.data:void 0)},nodeIsCommentNode:function(t){return(null!=t?t.nodeType:void 0)===Node.COMMENT_NODE},nodeIsCursorTarget:function(t,i){var n;return n=(null!=i?i:{}).name,t?e.nodeIsTextNode(t)?t.data===e.ZERO_WIDTH_SPACE?!n||t.parentNode.dataset.trixCursorTarget===n:void 0:e.nodeIsCursorTarget(t.firstChild):void 0},nodeIsAttachmentElement:function(t){return e.elementMatchesSelector(t,e.AttachmentView.attachmentSelector)},nodeIsEmptyTextNode:function(t){return e.nodeIsTextNode(t)&&""===(null!=t?t.data:void 0)},nodeIsTextNode:function(t){return(null!=t?t.nodeType:void 0)===Node.TEXT_NODE}})}.call(this),function(){var t,i,n,r,o;t=e.copyObject,r=e.objectsAreEqual,e.extend({normalizeRange:n=function(t){var e;if(null!=t)return Array.isArray(t)||(t=[t,t]),[i(t[0]),i(null!=(e=t[1])?e:t[0])]},rangeIsCollapsed:function(t){var e,i,r;if(null!=t)return r=(i=n(t))[0],e=i[1],o(r,e)},rangesAreEqual:function(t,e){var i,r,a,s,l,c;if(null!=t&&null!=e)return r=(a=n(t))[0],i=a[1],c=(s=n(e))[0],l=s[1],o(r,c)&&o(i,l)}}),i=function(e){return"number"==typeof e?e:t(e)},o=function(t,e){return"number"==typeof t?t===e:r(t,e)}}.call(this),function(){var t,i,n,r,o,a,s;e.registerElement=function(t,e){var i,n;return null==e&&(e={}),t=t.toLowerCase(),e=s(e),(i=(n=a(e)).defaultCSS)&&(delete n.defaultCSS,r(i,t)),o(t,n)},r=function(t,e){return n(e).textContent=t.replace(/%t/g,e)},n=function(e){var i,n;return(i=document.createElement("style")).setAttribute("type","text/css"),i.setAttribute("data-tag-name",e.toLowerCase()),(n=t())&&i.setAttribute("nonce",n),document.head.insertBefore(i,document.head.firstChild),i},t=function(){var t;return(t=i("trix-csp-nonce")||i("csp-nonce"))?t.getAttribute("content"):void 0},i=function(t){return document.head.querySelector("meta[name="+t+"]")},a=function(t){var e,i,n;for(e in i={},t)n=t[e],i[e]="function"==typeof n?{value:n}:n;return i},s=function(){var t;return t=function(t){var e,i,n,r,o;for(e={},i=0,r=(o=["initialize","connect","disconnect"]).length;r>i;i++)e[n=o[i]]=t[n],delete t[n];return e},window.customElements?function(e){var i,n,r,o,a;return a=t(e),r=a.initialize,i=a.connect,n=a.disconnect,r&&(o=i,i=function(){return this.initialized||(this.initialized=!0,r.call(this)),null!=o?o.call(this):void 0}),i&&(e.connectedCallback=i),n&&(e.disconnectedCallback=n),e}:function(e){var i,n,r,o;return r=(o=t(e)).initialize,i=o.connect,n=o.disconnect,r&&(e.createdCallback=r),i&&(e.attachedCallback=i),n&&(e.detachedCallback=n),e}}(),o=window.customElements?function(t,e){var i;return i=function(){return"object"==typeof Reflect?Reflect.construct(HTMLElement,[],i):HTMLElement.apply(this)},Object.setPrototypeOf(i.prototype,HTMLElement.prototype),Object.setPrototypeOf(i,HTMLElement),Object.defineProperties(i.prototype,e),window.customElements.define(t,i),i}:function(t,e){var i,n;return n=Object.create(HTMLElement.prototype,e),i=document.registerElement(t,{prototype:n}),Object.defineProperty(n,"constructor",{value:i}),i}}.call(this),function(){var t,i;e.extend({getDOMSelection:function(){var t;return(t=window.getSelection()).rangeCount>0?t:void 0},getDOMRange:function(){var i,n;return(i=null!=(n=e.getDOMSelection())?n.getRangeAt(0):void 0)&&!t(i)?i:void 0},setDOMRange:function(t){var i;return(i=window.getSelection()).removeAllRanges(),i.addRange(t),e.selectionChangeObserver.update()}}),t=function(t){return i(t.startContainer)||i(t.endContainer)},i=function(t){return!Object.getPrototypeOf(t)}}.call(this),function(){var t;t={"application/x-trix-feature-detection":"test"},e.extend({dataTransferIsPlainText:function(t){var e,i,n;return n=t.getData("text/plain"),i=t.getData("text/html"),n&&i?(e=(new DOMParser).parseFromString(i,"text/html").body).textContent===n?!e.querySelector("*"):void 0:null!=n?n.length:void 0},dataTransferIsWritable:function(e){var i,n;if(null!=(null!=e?e.setData:void 0)){for(i in t)if(n=t[i],!function(){try{return e.setData(i,n),e.getData(i)===n}catch(t){}}())return;return!0}},keyEventIsKeyboardCommand:/Mac|^iP/.test(navigator.platform)?function(t){return t.metaKey}:function(t){return t.ctrlKey}})}.call(this),function(){}.call(this),function(){var t,i=function(t,e){function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;t=e.arraysAreEqual,e.Hash=function(n){function r(t){null==t&&(t={}),this.values=a(t),r.__super__.constructor.apply(this,arguments)}var o,a,s,l,c;return i(r,n),r.fromCommonAttributesOfObjects=function(t){var e,i,n,r,a,s;if(null==t&&(t=[]),!t.length)return new this;for(n=(e=o(t[0])).getKeys(),i=0,r=(s=t.slice(1)).length;r>i;i++)a=s[i],n=e.getKeysCommonToHash(o(a)),e=e.slice(n);return e},r.box=function(t){return o(t)}
58,r.prototype.add=function(t,e){return this.merge(l(t,e))},r.prototype.remove=function(t){return new e.Hash(a(this.values,t))},r.prototype.get=function(t){return this.values[t]},r.prototype.has=function(t){return t in this.values},r.prototype.merge=function(t){return new e.Hash(s(this.values,c(t)))},r.prototype.slice=function(t){var i,n,r,o;for(o={},i=0,r=t.length;r>i;i++)n=t[i],this.has(n)&&(o[n]=this.values[n]);return new e.Hash(o)},r.prototype.getKeys=function(){return Object.keys(this.values)},r.prototype.getKeysCommonToHash=function(t){var e,i,n,r,a;for(t=o(t),a=[],e=0,n=(r=this.getKeys()).length;n>e;e++)i=r[e],this.values[i]===t.values[i]&&a.push(i);return a},r.prototype.isEqualTo=function(e){return t(this.toArray(),o(e).toArray())},r.prototype.isEmpty=function(){return 0===this.getKeys().length},r.prototype.toArray=function(){var t,e,i;return(null!=this.array?this.array:this.array=function(){var n;for(t in e=[],n=this.values)i=n[t],e.push(t,i);return e}.call(this)).slice(0)},r.prototype.toObject=function(){return a(this.values)},r.prototype.toJSON=function(){return this.toObject()},r.prototype.contentsForInspection=function(){return{values:JSON.stringify(this.values)}},l=function(t,e){var i;return(i={})[t]=e,i},s=function(t,e){var i,n,r;for(i in n=a(t),e)r=e[i],n[i]=r;return n},a=function(t,e){var i,n,r,o,a;for(o={},i=0,r=(a=Object.keys(t).sort()).length;r>i;i++)(n=a[i])!==e&&(o[n]=t[n]);return o},o=function(t){return t instanceof e.Hash?t:new e.Hash(t)},c=function(t){return t instanceof e.Hash?t.values:t},r}(e.Object)}.call(this),function(){e.ObjectGroup=function(){function t(t,e){var i,n;this.objects=null!=t?t:[],n=e.depth,(i=e.asTree)&&(this.depth=n,this.objects=this.constructor.groupObjects(this.objects,{asTree:i,depth:this.depth+1}))}return t.groupObjects=function(t,e){var i,n,r,o,a,s,l,c,h;for(null==t&&(t=[]),r=(h=null!=e?e:{}).depth,(i=h.asTree)&&null==r&&(r=0),c=[],a=0,s=t.length;s>a;a++){if(l=t[a],o){if(("function"==typeof l.canBeGrouped?l.canBeGrouped(r):void 0)&&("function"==typeof(n=o[o.length-1]).canBeGroupedWith?n.canBeGroupedWith(l,r):void 0)){o.push(l);continue}c.push(new this(o,{depth:r,asTree:i})),o=null}("function"==typeof l.canBeGrouped?l.canBeGrouped(r):void 0)?o=[l]:c.push(l)}return o&&c.push(new this(o,{depth:r,asTree:i})),c},t.prototype.getObjects=function(){return this.objects},t.prototype.getDepth=function(){return this.depth},t.prototype.getCacheKey=function(){var t,e,i,n,r;for(e=["objectGroup"],t=0,i=(r=this.getObjects()).length;i>t;t++)n=r[t],e.push(n.getCacheKey());return e.join("/")},t}()}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.ObjectMap=function(e){function i(t){var e,i,n,r,o;for(null==t&&(t=[]),this.objects={},n=0,r=t.length;r>n;n++)o=t[n],i=JSON.stringify(o),null==(e=this.objects)[i]&&(e[i]=o)}return t(i,e),i.prototype.find=function(t){var e;return e=JSON.stringify(t),this.objects[e]},i}(e.BasicObject)}.call(this),function(){e.ElementStore=function(){function t(t){this.reset(t)}var e;return t.prototype.add=function(t){var i;return i=e(t),this.elements[i]=t},t.prototype.remove=function(t){var i,n;return i=e(t),(n=this.elements[i])?(delete this.elements[i],n):void 0},t.prototype.reset=function(t){var e,i,n;for(null==t&&(t=[]),this.elements={},i=0,n=t.length;n>i;i++)e=t[i],this.add(e);return t},e=function(t){return t.dataset.trixStoreKey},t}()}.call(this),function(){}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.Operation=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i.prototype.isPerforming=function(){return!0===this.performing},i.prototype.hasPerformed=function(){return!0===this.performed},i.prototype.hasSucceeded=function(){return this.performed&&this.succeeded},i.prototype.hasFailed=function(){return this.performed&&!this.succeeded},i.prototype.getPromise=function(){return null!=this.promise?this.promise:this.promise=new Promise(function(t){return function(e,i){return t.performing=!0,t.perform((function(n,r){return t.succeeded=n,t.performing=!1,t.performed=!0,t.succeeded?e(r):i(r)}))}}(this))},i.prototype.perform=function(t){return t(!1)},i.prototype.release=function(){var t;return null!=(t=this.promise)&&"function"==typeof t.cancel&&t.cancel(),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null},i.proxyMethod("getPromise().then"),i.proxyMethod("getPromise().catch"),i}(e.BasicObject)}.call(this),function(){var t,i,n,r,o,a=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},s={}.hasOwnProperty;e.UTF16String=function(t){function e(t,e){this.ucs2String=t,this.co
58depoints=e,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}return a(e,t),e.box=function(t){return null==t&&(t=""),t instanceof this?t:this.fromUCS2String(null!=t?t.toString():void 0)},e.fromUCS2String=function(t){return new this(t,r(t))},e.fromCodepoints=function(t){return new this(o(t),t)},e.prototype.offsetToUCS2Offset=function(t){return o(this.codepoints.slice(0,Math.max(0,t))).length},e.prototype.offsetFromUCS2Offset=function(t){return r(this.ucs2String.slice(0,Math.max(0,t))).length},e.prototype.slice=function(){var t;return this.constructor.fromCodepoints((t=this.codepoints).slice.apply(t,arguments))},e.prototype.charAt=function(t){return this.slice(t,t+1)},e.prototype.isEqualTo=function(t){return this.constructor.box(t).ucs2String===this.ucs2String},e.prototype.toJSON=function(){return this.ucs2String},e.prototype.getCacheKey=function(){return this.ucs2String},e.prototype.toString=function(){return this.ucs2String},e}(e.BasicObject),t=1===("function"==typeof Array.from?Array.from("\ud83d\udc7c").length:void 0),i=null!=("function"==typeof" ".codePointAt?" ".codePointAt(0):void 0),n=" \ud83d\udc7c"===("function"==typeof String.fromCodePoint?String.fromCodePoint(32,128124):void 0),r=t&&i?function(t){return Array.from(t).map((function(t){return t.codePointAt(0)}))}:function(t){var e,i,n,r,o;for(r=[],e=0,n=t.length;n>e;)(o=t.charCodeAt(e++))>=55296&&56319>=o&&n>e&&(56320==(64512&(i=t.charCodeAt(e++)))?o=((1023&o)<<10)+(1023&i)+65536:e--),r.push(o);return r},o=n?function(t){return String.fromCodePoint.apply(String,t)}:function(t){var e,i,n;return e=function(){var e,r,o;for(o=[],e=0,r=t.length;r>e;e++)n=t[e],i="",n>65535&&(n-=65536,i+=String.fromCharCode(n>>>10&1023|55296),n=56320|1023&n),o.push(i+String.fromCharCode(n));return o}(),e.join("")}}.call(this),function(){}.call(this),function(){}.call(this),function(){e.config.lang={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption\u2026",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL\u2026",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"}}.call(this),function(){e.config.css={attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"}}.call(this),function(){var t;e.config.blockAttributes=t={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test:function(i){return e.tagName(i.parentNode)===t[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test:function(i){return e.tagName(i.parentNode)===t[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}}}.call(this),function(){var t,i;t=e.config.lang,i=[t.bytes,t.KB,t.MB,t.GB,t.TB,t.PB],e.config.fileSize={prefix:"IEC",precision:2,formatter:function(e){var n,r;switch(e){case 0:return"0 "+t.bytes;case 1:return"1 "+t.byte;default:return n=function(){switch(this.prefix){case"SI":return 1e3;case"IEC":return 1024}}
58.call(this),r=Math.floor(Math.log(e)/Math.log(n)),(e/Math.pow(n,r)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"")+" "+i[r]}}}}.call(this),function(){e.config.textAttributes={bold:{tagName:"strong",inheritable:!0,parser:function(t){var e;return"bold"===(e=window.getComputedStyle(t)).fontWeight||e.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:function(t){return"italic"===window.getComputedStyle(t).fontStyle}},href:{groupTagName:"a",parser:function(t){var i,n;return n="a:not("+e.AttachmentView.attachmentSelector+")",(i=e.findClosestElementFromNode(t,{matchingSelector:n}))?i.getAttribute("href"):void 0}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}}}.call(this),function(){var t,i,n,r,o;o="[data-trix-serialize=false]",r=["contenteditable","data-trix-id","data-trix-store-key","data-trix-mutable","data-trix-placeholder","tabindex"],n="["+(i="data-trix-serialized-attributes")+"]",t=new RegExp("<!--block-->","g"),e.extend({serializers:{"application/json":function(t){var i;if(t instanceof e.Document)i=t;else{if(!(t instanceof HTMLElement))throw new Error("unserializable object");i=e.Document.fromHTML(t.innerHTML)}return i.toSerializableDocument().toJSONString()},"text/html":function(a){var s,l,c,h,d,u,p,f,g,m,v,b,y,x,w,_,C;if(a instanceof e.Document)h=e.DocumentView.render(a);else{if(!(a instanceof HTMLElement))throw new Error("unserializable object");h=a.cloneNode(!0)}for(d=0,g=(x=h.querySelectorAll(o)).length;g>d;d++)c=x[d],e.removeNode(c);for(u=0,m=r.length;m>u;u++)for(s=r[u],p=0,v=(w=h.querySelectorAll("["+s+"]")).length;v>p;p++)(c=w[p]).removeAttribute(s);for(f=0,b=(_=h.querySelectorAll(n)).length;b>f;f++){c=_[f];try{for(y in l=JSON.parse(c.getAttribute(i)),c.removeAttribute(i),l)C=l[y],c.setAttribute(y,C)}catch(t){}}return h.innerHTML.replace(t,"")}},deserializers:{"application/json":function(t){return e.Document.fromJSONString(t)},"text/html":function(t){return e.Document.fromHTML(t)}},serializeToContentType:function(t,i){var n;if(n=e.serializers[i])return n(t);throw new Error("unknown content type: "+i)},deserializeFromContentType:function(t,i){var n;if(n=e.deserializers[i])return n(t);throw new Error("unknown content type: "+i)}})}.call(this),function(){var t;t=e.config.lang,e.config.toolbar={getDefaultHTML:function(){
59return'<div class="trix-button-row">\n  <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-bold" data-trix-attribute="bold" data-trix-key="b" title="'+t.bold+'" tabindex="-1">'+t.bold+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-italic" data-trix-attribute="italic" data-trix-key="i" title="'+t.italic+'" tabindex="-1">'+t.italic+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-strike" data-trix-attribute="strike" title="'+t.strike+'" tabindex="-1">'+t.strike+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-link" data-trix-attribute="href" data-trix-action="link" data-trix-key="k" title="'+t.link+'" tabindex="-1">'+t.link+'</button>\n  </span>\n\n  <span class="trix-button-group trix-button-group--block-tools" data-trix-button-group="block-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-attribute="heading1" title="'+t.heading1+'" tabindex="-1">'+t.heading1+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-quote" data-trix-attribute="quote" title="'+t.quote+'" tabindex="-1">'+t.quote+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-code" data-trix-attribute="code" title="'+t.code+'" tabindex="-1">'+t.code+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-bullet-list" data-trix-attribute="bullet" title="'+t.bullets+'" tabindex="-1">'+t.bullets+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-number-list" data-trix-attribute="number" title="'+t.numbers+'" tabindex="-1">'+t.numbers+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-decrease-nesting-level" data-trix-action="decreaseNestingLevel" title="'+t.outdent+'" tabindex="-1">'+t.outdent+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-increase-nesting-level" data-trix-action="increaseNestingLevel" title="'+t.indent+'" tabindex="-1">
59'+t.indent+'</button>\n  </span>\n\n  <span class="trix-button-group trix-button-group--file-tools" data-trix-button-group="file-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-attach" data-trix-action="attachFiles" title="'+t.attachFiles+'" tabindex="-1">'+t.attachFiles+'</button>\n  </span>\n\n  <span class="trix-button-group-spacer"></span>\n\n  <span class="trix-button-group trix-button-group--history-tools" data-trix-button-group="history-tools">\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-undo" data-trix-action="undo" data-trix-key="z" title="'+t.undo+'" tabindex="-1">'+t.undo+'</button>\n    <button type="button" class="trix-button trix-button--icon trix-button--icon-redo" data-trix-action="redo" data-trix-key="shift+z" title="'+t.redo+'" tabindex="-1">'+t.redo+'</button>\n  </span>\n</div>\n\n<div class="trix-dialogs" data-trix-dialogs>\n  <div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">\n    <div class="trix-dialog__link-fields">\n      <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="'+t.urlPlaceholder+'" aria-label="'+t.url+'" required data-trix-input>\n      <div class="trix-button-group">\n        <input type="button" class="trix-button trix-button--dialog" value="'+t.link+'" data-trix-method="setAttribute">\n        <input type="button" class="trix-button trix-button--dialog" value="'+t.unlink+'" data-trix-method="removeAttribute">\n      </div>\n    </div>\n  </div>\n</div>'}}}.call(this),function(){e.config.undoInterval=5e3}.call(this),function(){e.config.attachments={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}}}.call(this),function(){e.config.keyNames={8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"}}.call(this),function(){e.config.input={level2Enabled:!0,getLevel:function(){return this.level2Enabled&&e.browser.supportsInputEvents?2:0},pickFiles:function(t){var i;return(i=e.makeElement("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId})).addEventListener("change",(function(){return t(i.files),e.removeNode(i)})),e.removeNode(document.getElementById(this.fileInputId)),document.body.appendChild(i),i.click()},fileInputId:"trix-file-input-"+Date.now().toString(16)}}.call(this),function(){}.call(this),function(){e.registerElement("trix-toolbar",{defaultCSS:"%t {\n  display: block;\n}\n\n%t {\n  white-space: nowrap;\n}\n\n%t [data-trix-dialog] {\n  display: none;\n}\n\n%t [data-trix-dialog][data-trix-active] {\n  display: block;\n}\n\n%t [data-trix-dialog] [data-trix-validate]:invalid {\n  background-color: #ffdddd;\n}",initialize:function(){return""===this.innerHTML?this.innerHTML=e.config.toolbar.getDefaultHTML():void 0}})}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty,n=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};e.ObjectView=function(i){function r(t,e){this.object=t,this.options=null!=e?e:{},this.childViews=[],this.rootView=this}return t(r,i),r.prototype.getNodes=function(){var t,e,i,n,r;for(null==this.nodes&&(this.nodes=this.createNodes()),r=[],t=0,e=(n=this.nodes).length;e>t;t++)i=n[t],r.push(i.cloneNode(!0));return r},r.prototype.invalidate=function(){var t;return this.nodes=null,this.childViews=[],null!=(t=this.parentView)?t.invalidate():void 0},r.prototype.invalidateViewForObject=function(t){var e;return null!=(e=this.findViewForObject(t))?e.invalidate():void 0},r.prototype.findOrCreateCachedChildView=function(t,e){var i;return(i=this.getCachedViewForObject(e))?this.recordChildView(i):(i=this.createChildView.apply(this,arguments),this.cacheViewForObject(i,e)),i},r.prototype.createChildView=function(t,i,n){var r;return null==n&&(n={}),i instanceof e.ObjectGroup&&(n.viewClass=t,t=e.ObjectGroupView),r=new t(i,n),this.recordChildView(r)},r.prototype.recordChildView=function(t){return t.parentView=this,t.rootView=this.root
59View,this.childViews.push(t),t},r.prototype.getAllChildViews=function(){var t,e,i,n,r;for(r=[],e=0,i=(n=this.childViews).length;i>e;e++)t=n[e],r.push(t),r=r.concat(t.getAllChildViews());return r},r.prototype.findElement=function(){return this.findElementForObject(this.object)},r.prototype.findElementForObject=function(t){var e;return(e=null!=t?t.id:void 0)?this.rootView.element.querySelector("[data-trix-id='"+e+"']"):void 0},r.prototype.findViewForObject=function(t){var e,i,n,r;for(e=0,i=(n=this.getAllChildViews()).length;i>e;e++)if((r=n[e]).object===t)return r},r.prototype.getViewCache=function(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?null!=this.viewCache?this.viewCache:this.viewCache={}:void 0},r.prototype.isViewCachingEnabled=function(){return!1!==this.shouldCacheViews},r.prototype.enableViewCaching=function(){return this.shouldCacheViews=!0},r.prototype.disableViewCaching=function(){return this.shouldCacheViews=!1},r.prototype.getCachedViewForObject=function(t){var e;return null!=(e=this.getViewCache())?e[t.getCacheKey()]:void 0},r.prototype.cacheViewForObject=function(t,e){var i;return null!=(i=this.getViewCache())?i[e.getCacheKey()]=t:void 0},r.prototype.garbageCollectCachedViews=function(){var t,e,i,r,o,a;if(t=this.getViewCache()){for(e in a=this.getAllChildViews().concat(this),i=function(){var t,e,i;for(i=[],t=0,e=a.length;e>t;t++)o=a[t],i.push(o.object.getCacheKey());return i}(),r=[],t)n.call(i,e)<0&&r.push(delete t[e]);return r}},r}(e.BasicObject)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.ObjectGroupView=function(e){function i(){i.__super__.constructor.apply(this,arguments),this.objectGroup=this.object,this.viewClass=this.options.viewClass,delete this.options.viewClass}return t(i,e),i.prototype.getChildViews=function(){var t,e,i,n;if(!this.childViews.length)for(t=0,e=(n=this.objectGroup.getObjects()).length;e>t;t++)i=n[t],this.findOrCreateCachedChildView(this.viewClass,i,this.options);return this.childViews},i.prototype.createNodes=function(){var t,e,i,n,r,o,a,s;for(t=this.createContainerElement(),e=0,n=(a=this.getChildViews()).length;n>e;e++)for(i=0,r=(s=a[e].getNodes()).length;r>i;i++)o=s[i],t.appendChild(o);return[t]},i.prototype.createContainerElement=function(t){return null==t&&(t=this.objectGroup.getDepth()),this.getChildViews()[0].createContainerElement(t)},i}(e.ObjectView)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.Controller=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,e),i}(e.BasicObject)}.call(this),function(){var t,i,n,r,o,a,s=function(t,e){return function(){return t.apply(e,arguments)}},l=function(t,e){function i(){this.constructor=t}for(var n in e)c.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},c={}.hasOwnProperty,h=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};t=e.findClosestElementFromNode,n=e.nodeIsEmptyTextNode,i=e.nodeIsBlockStartComment,r=e.normalizeSpaces,o=e.summarizeStringChange,a=e.tagName,e.MutationObserver=function(e){function c(t){this.element=t,this.didMutate=s(this.didMutate,this),this.observer=new window.MutationObserver(this.didMutate),this.start()}var d,u,p,f;return l(c,e),p="["+(u="data-trix-mutable")+"]",f={attributes:!0,childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},c.prototype.start=function(){return this.reset(),this.observer.observe(this.element,f)},c.prototype.stop=function(){return this.observer.disconnect()},c.prototype.didMutate=function(t){var e,i;return(e=this.mutations).push.apply(e,this.findSignificantMutations(t)),this.mutations.length?(null!=(i=this.delegate)&&"function"==typeof i.elementDidMutate&&i.elementDidMutate(this.getMutationSummary()),this.reset()):void 0},c.prototype.reset=function(){return this.mutations=[]},c.prototype.findSignificantMutations=function(t){var e,i,n,r;for(r=[],e=0,i=t.length;i>e;e++)n=t[e],this.mutationIsSignificant(n)&&r.push(n);return r},c.prototype.mutationIsSignificant=function(t){var e,i,n,r;if(this.nodeIsMutable(t.target))return!1;for(e=0,i=(r=this.nodesModifiedByMutation(t)).length;i>e;e++)if(n=r[e],this.nodeIsSignificant(n))return!0;return!1},c.prototype.nodeIsSignificant=function(t){return t!==this.element&&!this.nodeIsMutable(t)&&!n(t)},c.prototype.nodeIsMutable=function(e){return t(e,{matchingSelector:p})},c.prototype.nodesModifiedByMutation=function(t){var e;switch(e=[],t.type){case"attributes":t.attributeName!==u&&e.push(t.target);break;case"characterData":e.push(t.target.parentNode),e.push(t.target);break;case"childList":e.push.apply(e,t.addedNodes),e.push.apply(e,t.removedNodes
59)}return e},c.prototype.getMutationSummary=function(){return this.getTextMutationSummary()},c.prototype.getTextMutationSummary=function(){var t,e,i,n,r,o,a,s,l,c,d;for(i=(s=this.getTextChangesFromCharacterData()).additions,r=s.deletions,o=0,a=(l=(d=this.getTextChangesFromChildList()).additions).length;a>o;o++)e=l[o],h.call(i,e)<0&&i.push(e);return r.push.apply(r,d.deletions),c={},(t=i.join(""))&&(c.textAdded=t),(n=r.join(""))&&(c.textDeleted=n),c},c.prototype.getMutationsByType=function(t){var e,i,n,r,o;for(o=[],e=0,i=(r=this.mutations).length;i>e;e++)(n=r[e]).type===t&&o.push(n);return o},c.prototype.getTextChangesFromChildList=function(){var t,e,n,o,a,s,l,c,h,u;for(t=[],l=[],e=0,o=(s=this.getMutationsByType("childList")).length;o>e;e++)a=s[e],t.push.apply(t,a.addedNodes),l.push.apply(l,a.removedNodes);return 0===t.length&&1===l.length&&i(l[0])?(h=[],u=["\n"]):(h=d(t),u=d(l)),{additions:function(){var t,e,i;for(i=[],n=t=0,e=h.length;e>t;n=++t)(c=h[n])!==u[n]&&i.push(r(c));return i}(),deletions:function(){var t,e,i;for(i=[],n=t=0,e=u.length;e>t;n=++t)(c=u[n])!==h[n]&&i.push(r(c));return i}()}},c.prototype.getTextChangesFromCharacterData=function(){var t,e,i,n,a,s,l,c;return(e=this.getMutationsByType("characterData")).length&&(c=e[0],i=e[e.length-1],a=r(c.oldValue),n=r(i.target.data),t=(s=o(a,n)).added,l=s.removed),{additions:t?[t]:[],deletions:l?[l]:[]}},d=function(t){var e,i,n,r;for(null==t&&(t=[]),r=[],e=0,i=t.length;i>e;e++)switch(n=t[e],n.nodeType){case Node.TEXT_NODE:r.push(n.data);break;case Node.ELEMENT_NODE:"br"===a(n)?r.push("\n"):r.push.apply(r,d(n.childNodes))}return r},c}(e.BasicObject)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.FileVerificationOperation=function(e){function i(t){this.file=t}return t(i,e),i.prototype.perform=function(t){var e;return(e=new FileReader).onerror=function(){return t(!1)},e.onload=function(i){return function(){e.onerror=null;try{e.abort()}catch(t){}return t(!0,i.file)}}(this),e.readAsArrayBuffer(this.file)},i}(e.Operation)}.call(this),function(){var t,i,n=function(t,e){function i(){this.constructor=t}for(var n in e)r.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},r={}.hasOwnProperty;t=e.handleEvent,i=e.innerElementIsActive,e.InputController=function(r){function o(i){var n;for(n in this.element=i,this.mutationObserver=new e.MutationObserver(this.element),this.mutationObserver.delegate=this,this.events)t(n,{onElement:this.element,withCallback:this.handlerFor(n)})}return n(o,r),o.prototype.events={},o.prototype.elementDidMutate=function(){},o.prototype.editorWillSyncDocumentView=function(){return this.mutationObserver.stop()},o.prototype.editorDidSyncDocumentView=function(){return this.mutationObserver.start()},o.prototype.requestRender=function(){var t;return null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidRequestRender?t.inputControllerDidRequestRender():void 0},o.prototype.requestReparse=function(){var t;return null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidRequestReparse&&t.inputControllerDidRequestReparse(),this.requestRender()},o.prototype.attachFiles=function(t){var i,n;return n=function(){var n,r,o;for(o=[],n=0,r=t.length;r>n;n++)i=t[n],o.push(new e.FileVerificationOperation(i));return o}(),Promise.all(n).then(function(t){return function(e){return t.handleInput((function(){var t,i;return null!=(t=this.delegate)&&t.inputControllerWillAttachFiles(),null!=(i=this.responder)&&i.insertFiles(e),this.requestRender()}))}}(this))},o.prototype.handlerFor=function(t){return function(e){return function(n){return n.defaultPrevented?void 0:e.handleInput((function(){return i(this.element)?void 0:(this.eventName=t,this.events[t].call(this,n))}))}}(this)},o.prototype.handleInput=function(t){var e,i;try{return null!=(e=this.delegate)&&e.inputControllerWillHandleInput(),t.call(this)}finally{null!=(i=this.delegate)&&i.inputControllerDidHandleInput()}},o}(e.BasicObject)}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d,u,p=function(t,e){function i(){this.constructor=t}for(var n in e)f.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},f={}.hasOwnProperty,g=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};c=e.makeElement,h=e.objectsAreEqual,e.tagName,i=e.browser,s=e.keyEventIsKeyboardCommand,r=e.dataTransferIsWritable,n=e.dataTransferIsPlainText,l=e.config.keyNames,e.Level0InputController=function(i){function a(){a.__super__.constructor.apply(this,arguments),this.resetInputSummary()}var f;return p(a,i),f=0,a.prototype.setInputSummary=function(t){var e,i;for(e in null==t&&(t={}),this.inputSummary.eventName=this.eventName,t)i=t[e],this.inputSummary[e]=i;return this.inputSummary},a.prototype.resetInputSummary=function(){return this.inputSummary={}},a.prototype.reset=function(){return this.resetInputSummary(),e.selectionChangeObserver.reset()},a.prototype.elementDidMutate=function(t){var e;return this.isComposing()?null!=(e=this.delegate)&&"function"==typeof e.inputControllerDidAllowUnhandledInput?e.inputControllerDidAllowUnhandledInput():void 0:this.handleInput((function(){return this.mutationIsSignificant(t)&&(this.mutationIsExpected(t)?this.requestRender():this.requestReparse()),this.reset()}))},a.prototype.mutationIsExpected=function(t){var e,i,n,r,o,a,s,l,c;return a=t.textAdded,s=t.textDeleted,!!this.inputSummary.preferDocument||(e=null!=a?a===this.inputSummary.textAdded:!this.inputSummary.textAdded,i=null!=s?this.inputSummary.didDelete:!this.inputSummary.didDelete,c="\n"===s&&!i,!!(((l=("\n"===a||" \n"===a)&&!e)&&!c||c&&!l)&&(r=this.getSelectedRange())&&(n=l?a.replace(/\n$/,"").length||-1:(null!=a?a.length:void 0)||1,null!=(o=this.responder)?o.positionIsBlockBreak(r[1]+n):void 0))||e&&i)},a.prototype.mutationIsSignificant=function(t){var e,i,n;return n=Object.keys(t).length>0,e=""===(null!=(i=this.compositionInput)?i.getEndData():void 0),n||!e},a.prototype.events={keydown:function(t){var i,n,r,o,a,c,h,d,u;if(this.isComposing()||this.resetInputSummary(),this.inputSummary.didInput=!0,o=l[t.keyCode]){for(n=this.keys,r=0,c=(d=["ctrl","alt","shift","meta"]).length;c>r;r++)h=d[r],t[h+"Key"]&&("ctrl"===h&&(h="control"),n=null!=n?n[h]:void 0);null!=(null!=n?n[o]:void 0)&&(this.setInputSummary({keyName:o}),e.selectionChangeObserver.reset(),n[o].call(this,t))}return s(t)&&(i=String.fromCharCode(t.keyCode).toLowerCase())&&(a=function(){var e,i,n,r;for(r=[],e=0,i=(n=["alt","shift"]).length;i>e;e++)h=n[e],t[h+"Key"]&&r.push(h);return r}(),a.push(i),null!=(u=this.delegate)?u.inputControllerDidReceiveKeyboardCommand(a):void 0)?t.preventDefault():void 0},keypress:function(t){var e,i,n;if(null==this.inputSummary.eventName&&!t.metaKey&&(!t.ctrlKey||t.altKey))return(n=u(t))?(null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(i=this.responder)&&i.insertString(n),this.setInputSummary({textAdded:n,didDelete:this.selectionIsExpanded()})):void 0},textInput:function(t){var e,i,n,r;return e=t.data,(r=this.inputSummary.textAdded)&&r!==e&&r.toUpperCase()===e?(i=this.getSelectedRange(),this.setSelectedRange([i[0],i[1]+r.length]),null!=(n=this.responder)&&n.insertString(e),this.setInputSummary({textAdded:e}),this.setSelectedRange(i)):void 0},dragenter:function(t){return t.preventDefault()},dragstart:function(t){var e;return t.target,this.serializeSelectionToDataTransfer(t.dataTransfer),this.draggedRange=this.getSelectedRange(),null!=(e=this.delegate)&&"function"==typeof e.inputControllerDidStartDrag?e.inputControllerDidStartDrag():void 0},dragover:function(t){var e,i;return!this.draggedRange&&!this.canAcceptDataTransfer(t.dataTransfer)||(t.preventDefault(),e={x:t.clientX,y:t.clientY},h(e,this.draggingPoint))?void 0:(this.draggingPoint=e,null!=(i=this.delegate)&&"function"==typeof i.inputControllerDidReceiveDragOverPoint?i.inputControllerDidReceiveDragOverPoint(this.draggingPoint):void 0)},dragend:function(){var t;return null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidCancelDrag&&t.inputControllerDidCancelDrag(),this.draggedRange=null,this.draggingPoint=null},drop:function(t){var i,n,r,o,a,s,l,c,h;
59return t.preventDefault(),r=null!=(a=t.dataTransfer)?a.files:void 0,o={x:t.clientX,y:t.clientY},null!=(s=this.responder)&&s.setLocationRangeFromPointRange(o),(null!=r?r.length:void 0)?this.attachFiles(r):this.draggedRange?(null!=(l=this.delegate)&&l.inputControllerWillMoveText(),null!=(c=this.responder)&&c.moveTextFromRange(this.draggedRange),this.draggedRange=null,this.requestRender()):(n=t.dataTransfer.getData("application/x-trix-document"))&&(i=e.Document.fromJSONString(n),null!=(h=this.responder)&&h.insertDocument(i),this.requestRender()),this.draggedRange=null,this.draggingPoint=null},cut:function(t){var e,i;return(null!=(e=this.responder)?e.selectionIsExpanded():void 0)&&(this.serializeSelectionToDataTransfer(t.clipboardData)&&t.preventDefault(),null!=(i=this.delegate)&&i.inputControllerWillCutText(),this.deleteInDirection("backward"),t.defaultPrevented)?this.requestRender():void 0},copy:function(t){var e;return(null!=(e=this.responder)?e.selectionIsExpanded():void 0)&&this.serializeSelectionToDataTransfer(t.clipboardData)?t.preventDefault():void 0},paste:function(t){var i,r,a,s,l,c,h,u,p,m,v,b,y,x,w,_,C,S,k,A,T,L;return i=null!=(u=t.clipboardData)?u:t.testClipboardData,h={clipboard:i},null==i||d(t)?void this.getPastedHTMLUsingHiddenElement(function(t){return function(e){var i,n,r;return h.type="text/html",h.html=e,null!=(i=t.delegate)&&i.inputControllerWillPaste(h),null!=(n=t.responder)&&n.insertHTML(h.html),t.requestRender(),null!=(r=t.delegate)?r.inputControllerDidPaste(h):void 0}}(this)):((s=i.getData("URL"))?(h.type="URL",h.href=s,h.string=(c=i.getData("public.url-name"))?e.squishBreakableWhitespace(c).trim():s,null!=(p=this.delegate)&&p.inputControllerWillPaste(h),this.setInputSummary({textAdded:h.string,didDelete:this.selectionIsExpanded()}),null!=(w=this.responder)&&w.insertText(e.Text.textForStringWithAttributes(h.string,{href:h.href})),this.requestRender(),null!=(_=this.delegate)&&_.inputControllerDidPaste(h)):n(i)?(h.type="text/plain",h.string=i.getData("text/plain"),null!=(C=this.delegate)&&C.inputControllerWillPaste(h),this.setInputSummary({textAdded:h.string,didDelete:this.selectionIsExpanded()}),null!=(S=this.responder)&&S.insertString(h.string),this.requestRender(),null!=(k=this.delegate)&&k.inputControllerDidPaste(h)):(l=i.getData("text/html"))?(h.type="text/html",h.html=l,null!=(A=this.delegate)&&A.inputControllerWillPaste(h),null!=(T=this.responder)&&T.insertHTML(h.html),this.requestRender(),null!=(L=this.delegate)&&L.inputControllerDidPaste(h)):g.call(i.types,"Files")>=0&&(a=null!=(m=i.items)&&null!=(v=m[0])&&"function"==typeof v.getAsFile?v.getAsFile():void 0)&&(!a.name&&(r=o(a))&&(a.name="pasted-file-"+ ++f+"."+r),h.type="File",h.file=a,null!=(b=this.delegate)&&b.inputControllerWillAttachFiles(),null!=(y=this.responder)&&y.insertFile(h.file),this.requestRender(),null!=(x=this.delegate)&&x.inputControllerDidPaste(h)),t.preventDefault())},compositionstart:function(t){return this.getCompositionInput().start(t.data)},compositionupdate:function(t){return this.getCompositionInput().update(t.data)},compositionend:function(t){return this.getCompositionInput().end(t.data)},beforeinput:function(){return this.inputSummary.didInput=!0},input:function(t){return this.inputSummary.didInput=!0,t.stopPropagation()}},a.prototype.keys={backspace:function(t){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.deleteInDirection("backward",t)},delete:function(t){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.deleteInDirection("forward",t)},return:function(){var t,e;return this.setInputSummary({preferDocument:!0}),null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),null!=(e=this.responder)?e.insertLineBreak():void 0},tab:function(t){var e,i;return(null!=(e=this.responder)?e.canIncreaseNestingLevel():void 0)?(null!=(i=this.responder)&&i.increaseNestingLevel(),this.requestRender(),t.preventDefault()):void 0},left:function(t){var e;return this.selectionIsInCursorTarget()?(t.preventDefault(),null!=(e=this.responder)?e.moveCursorInDirection("backward"):void 0):void 0},right:function(t){var e;return this.selectionIsInCursorTarget()?(t.preventDefault(),null!=(e=this.responder)?e.moveCursorInDirection("forward"):void 0):void 0},control:{d:function(t){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.deleteInDirection("forward",t)},h:function(t){var e;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),this.deleteInDirection("backward",t)},o:function(t){var e,i;return t.preventDefault(),null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(i=this.responder)&&i.insertString("\n",{updatePosition:!1}),this.requestRender()}},shift:{return:function(t){var e,i;return null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(i=this.responder)&&i.insertString("\n"),this.requestRender(),t.preventDefault()},tab:function(t){var e,i;return(null!=(e=this.responder)?e.canDecreaseNestingLevel():void 0)?(null!=(i=this.responder)&&i.decreaseNestingLevel(),this.requestRender(),t.preventDefault()):void 0},left:function(t){return this.selectionIsInCursorTarget()?(t.preventDefault(),this.expandSelectionInDirection("backward")):void 0},right:function(t){return this.selectionIsInCursorTarget()?(t.preventDefault(),this.expandSelectionInDirection("forward")):void 0}},alt:{backspace:function(){var t;return this.setInputSummary({preferDocument:!1}),null!=(t=this.delegate)?t.inputControllerWillPerformTyping():void 0}},meta:{backspace:function(){var t;return this.setInputSummary({preferDocument:!1}),null!=(t=this.delegate)?t.inputControllerWillPerformTyping():void 0}}},a.prototype.getCompositionInput=function(){return this.isComposing()?this.compositionInput:this.compositionInput=new t(this)},a.prototype.isComposing=function(){return null!=this.compositionInput&&!this.compositionInput.isEnded()},a.prototype.deleteInDirection=function(t,e){var i;return!1!==(null!=(i=this.responder)?i.deleteInDirection(t):void 0)?this.setInputSummary({didDelete:!0}):e?(e.preventDefault(),this.requestRender()):void 0},a.prototype.serializeSelectionToDataTransfer=function(t){var i,n;if(r(t))return i=null!=(n=this.responder)?n.getSelectedDocument().toSerializableDocument():void 0,t.setData("application/x-trix-document",JSON.stringify(i)),t.setData("text/html",e.DocumentView.render(i).innerHTML),t.setData("text/plain",i.toString().replace(/\n$/,"")),!0},a.prototype.canAcceptDataTransfer=function(t){var e,i,n,r,o;for(o={},e=0,i=(r=null!=(n=null!=t?t.types:void 0)?n:[]).length;i>e;
59e++)o[r[e]]=!0;return o.Files||o["application/x-trix-document"]||o["text/html"]||o["text/plain"]},a.prototype.getPastedHTMLUsingHiddenElement=function(t){var i,n,r;return n=this.getSelectedRange(),r={position:"absolute",left:window.pageXOffset+"px",top:window.pageYOffset+"px",opacity:0},i=c({style:r,tagName:"div",editable:!0}),document.body.appendChild(i),i.focus(),requestAnimationFrame(function(r){return function(){var o;return o=i.innerHTML,e.removeNode(i),r.setSelectedRange(n),t(o)}}(this))},a.proxyMethod("responder?.getSelectedRange"),a.proxyMethod("responder?.setSelectedRange"),a.proxyMethod("responder?.expandSelectionInDirection"),a.proxyMethod("responder?.selectionIsInCursorTarget"),a.proxyMethod("responder?.selectionIsExpanded"),a}(e.InputController),o=function(t){var e,i;return null!=(e=t.type)&&null!=(i=e.match(/\/(\w+)$/))?i[1]:void 0},a=null!=("function"==typeof" ".codePointAt?" ".codePointAt(0):void 0),u=function(t){var i;return t.key&&a&&t.key.codePointAt(0)===t.keyCode?t.key:(null===t.which?i=t.keyCode:0!==t.which&&0!==t.charCode&&(i=t.charCode),null!=i&&"escape"!==l[i]?e.UTF16String.fromCodepoints([i]).toString():void 0)},d=function(t){var e,i,n,r,o,a,s,l,c;if(s=t.clipboardData){if(g.call(s.types,"text/html")>=0){for(n=0,a=(l=s.types).length;a>n;n++)if(c=l[n],e=/^CorePasteboardFlavorType/.test(c),i=/^dyn\./.test(c)&&s.getData(c),e||i)return!0;return!1}return r=g.call(s.types,"com.apple.webarchive")>=0,o=g.call(s.types,"com.apple.flat-rtfd")>=0,r||o}},t=function(t){function e(t){var e;this.inputController=t,e=this.inputController,this.responder=e.responder,this.delegate=e.delegate,this.inputSummary=e.inputSummary,this.data={}}return p(e,t),e.prototype.start=function(t){var e,i;return this.data.start=t,this.isSignificant()?("keypress"===this.inputSummary.eventName&&this.inputSummary.textAdded&&null!=(e=this.responder)&&e.deleteInDirection("left"),this.selectionIsExpanded()||(this.insertPlaceholder(),this.requestRender()),this.range=null!=(i=this.responder)?i.getSelectedRange():void 0):void 0},e.prototype.update=function(t){var e;return this.data.update=t,this.isSignificant()&&(e=this.selectPlaceholder())?(this.forgetPlaceholder(),this.range=e):void 0},e.prototype.end=function(t){var e,i,n,r;return this.data.end=t,this.isSignificant()?(this.forgetPlaceholder(),this.canApplyToDocument()?(this.setInputSummary({preferDocument:!0,didInput:!1}),null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(i=this.responder)&&i.setSelectedRange(this.range),null!=(n=this.responder)&&n.insertString(this.data.end),null!=(r=this.responder)?r.setSelectedRange(this.range[0]+this.data.end.length):void 0):null!=this.data.start||null!=this.data.update?(this.requestReparse(),this.inputController.reset()):void 0):this.inputController.reset()},e.prototype.getEndData=function(){return this.data.end},e.prototype.isEnded=function(){return null!=this.getEndData()},e.prototype.isSignificant=function(){return!i.composesExistingText||this.inputSummary.didInput},e.prototype.canApplyToDocument=function(){var t,e;return 0===(null!=(t=this.data.start)?t.length:void 0)&&(null!=(e=this.data.end)?e.length:void 0)>0&&null!=this.range},e.proxyMethod("inputController.setInputSummary"),e.proxyMethod("inputController.requestRender"),e.proxyMethod("inputController.requestReparse"),e.proxyMethod("responder?.selectionIsExpanded"),e.proxyMethod("responder?.insertPlaceholder"),e.proxyMethod("responder?.selectPlaceholder"),e.proxyMethod("responder?.forgetPlaceholder"),e}(e.BasicObject)}.call(this),function(){var t,i,n,r=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty,s=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};t=e.dataTransferIsPlainText,i=e.keyEventIsKeyboardCommand,n=e.objectsAreEqual,e.Level2InputController=function(a){function l(){return this.render=r(this.render,this),l.__super__.constructor.apply(this,arguments)}var c,h,d,u,p,f;return o(l,a),l.prototype.elementDidMutate=function(){var t;return this.scheduledRender?this.composing&&null!=(t=this.delegate)&&"function"==typeof t.inputControllerDidAllowUnhandledInput?t.inputControllerDidAllowUnhandledInput():void 0:this.reparse()},l.prototype.scheduleRender=function(){return null!=this.scheduledRender?this.scheduledRender:this.scheduledRender=requestAnimationFrame(this.render)},l.prototype.render=function(){var t;return cancelAnimationFrame(this.scheduledRender),this.scheduledRender=null,this.composing||null!=(t=this.delegate)&&t.render(),"function"==typeof this.afterRender&&this.afterRender(),this.afterRender=null},l.prototype.reparse=function(){var t;return null!=(t=this.delegate)?t.reparse():void 0},l.prototype.events={keydown:function(t){var e,n,r,o;
59if(i(t)){if(e=h(t),null!=(o=this.delegate)?o.inputControllerDidReceiveKeyboardCommand(e):void 0)return t.preventDefault()}else if(r=t.key,t.altKey&&(r+="+Alt"),t.shiftKey&&(r+="+Shift"),n=this.keys[r])return this.withEvent(t,n)},paste:function(t){var i,n,r,o,a,s,l,c,h;return d(t)?(t.preventDefault(),this.attachFiles(t.clipboardData.files)):u(t)?(t.preventDefault(),n={type:"text/plain",string:t.clipboardData.getData("text/plain")},null!=(r=this.delegate)&&r.inputControllerWillPaste(n),null!=(o=this.responder)&&o.insertString(n.string),this.render(),null!=(a=this.delegate)?a.inputControllerDidPaste(n):void 0):(i=null!=(s=t.clipboardData)?s.getData("URL"):void 0)?(t.preventDefault(),n={type:"URL",href:i,string:i},null!=(l=this.delegate)&&l.inputControllerWillPaste(n),null!=(c=this.responder)&&c.insertText(e.Text.textForStringWithAttributes(n.string,{href:n.href})),this.render(),null!=(h=this.delegate)?h.inputControllerDidPaste(n):void 0):void 0},beforeinput:function(t){var e;return(e=this.inputTypes[t.inputType])?(this.withEvent(t,e),this.scheduleRender()):void 0},input:function(){return e.selectionChangeObserver.reset()},dragstart:function(t){var e,i;return(null!=(e=this.responder)?e.selectionContainsAttachments():void 0)?(t.dataTransfer.setData("application/x-trix-dragging",!0),this.dragging={range:null!=(i=this.responder)?i.getSelectedRange():void 0,point:p(t)}):void 0},
60dragenter:function(t){return c(t)?t.preventDefault():void 0},dragover:function(t){var e,i;return this.dragging&&(t.preventDefault(),e=p(t),!n(e,this.dragging.point))?(this.dragging.point=e,null!=(i=this.responder)?i.setLocationRangeFromPointRange(e):void 0):void 0},drop:function(t){var e,i,n,r;return this.dragging?(t.preventDefault(),null!=(i=this.delegate)&&i.inputControllerWillMoveText(),null!=(n=this.responder)&&n.moveTextFromRange(this.dragging.range),this.dragging=null,this.scheduleRender()):c(t)?(t.preventDefault(),e=p(t),null!=(r=this.responder)&&r.setLocationRangeFromPointRange(e),this.attachFiles(t.dataTransfer.files)):void 0},dragend:function(){var t;return this.dragging?(null!=(t=this.responder)&&t.setSelectedRange(this.dragging.range),this.dragging=null):void 0},compositionend:function(){return this.composing?(this.composing=!1,this.scheduleRender()):void 0}},l.prototype.keys={ArrowLeft:function(){var t,e;return(null!=(t=this.responder)?t.shouldManageMovingCursorInDirection("backward"):void 0)?(this.event.preventDefault(),null!=(e=this.responder)?e.moveCursorInDirection("backward"):void 0):void 0},ArrowRight:function(){var t,e;return(null!=(t=this.responder)?t.shouldManageMovingCursorInDirection("forward"):void 0)?(this.event.preventDefault(),null!=(e=this.responder)?e.moveCursorInDirection("forward"):void 0):void 0},Backspace:function(){var t,e,i;return(null!=(t=this.responder)?t.shouldManageDeletingInDirection("backward"):void 0)?(this.event.preventDefault(),null!=(e=this.delegate)&&e.inputControllerWillPerformTyping(),null!=(i=this.responder)&&i.deleteInDirection("backward"),this.render()):void 0},Tab:function(){var t,e;return(null!=(t=this.responder)?t.canIncreaseNestingLevel():void 0)?(this.event.preventDefault(),null!=(e=this.responder)&&e.increaseNestingLevel(),this.render()):void 0},"Tab+Shift":function(){var t,e;return(null!=(t=this.responder)?t.canDecreaseNestingLevel():void 0)?(this.event.preventDefault(),null!=(e=this.responder)&&e.decreaseNestingLevel(),this.render()):void 0}},l.prototype.inputTypes={deleteByComposition:function(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteByCut:function(){return this.deleteInDirection("backward")},deleteByDrag:function(){return this.event.preventDefault(),this.withTargetDOMRange((function(){var t;return this.deleteByDragRange=null!=(t=this.responder)?t.getSelectedRange():void 0}))},deleteCompositionText:function(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteContent:function(){return this.deleteInDirection("backward")},deleteContentBackward:function(){return this.deleteInDirection("backward")},deleteContentForward:function(){return this.deleteInDirection("forward")},deleteEntireSoftLine:function(){return this.deleteInDirection("forward")},deleteHardLineBackward:function(){return this.deleteInDirection("backward")},deleteHardLineForward:function(){return this.deleteInDirection("forward")},deleteSoftLineBackward:function(){return this.deleteInDirection("backward")},deleteSoftLineForward:function(){return this.deleteInDirection("forward")},deleteWordBackward:function(){return this.deleteInDirection("backward")}
60,deleteWordForward:function(){return this.deleteInDirection("forward")},formatBackColor:function(){return this.activateAttributeIfSupported("backgroundColor",this.event.data)},formatBold:function(){return this.toggleAttributeIfSupported("bold")},formatFontColor:function(){return this.activateAttributeIfSupported("color",this.event.data)},formatFontName:function(){return this.activateAttributeIfSupported("font",this.event.data)},formatIndent:function(){var t;return(null!=(t=this.responder)?t.canIncreaseNestingLevel():void 0)?this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.increaseNestingLevel():void 0})):void 0},formatItalic:function(){return this.toggleAttributeIfSupported("italic")},formatJustifyCenter:function(){return this.toggleAttributeIfSupported("justifyCenter")},formatJustifyFull:function(){return this.toggleAttributeIfSupported("justifyFull")},formatJustifyLeft:function(){return this.toggleAttributeIfSupported("justifyLeft")},formatJustifyRight:function(){return this.toggleAttributeIfSupported("justifyRight")},formatOutdent:function(){var t;return(null!=(t=this.responder)?t.canDecreaseNestingLevel():void 0)?this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.decreaseNestingLevel():void 0})):void 0},formatRemove:function(){return this.withTargetDOMRange((function(){var t,e,i,n;for(t in n=[],null!=(e=this.responder)?e.getCurrentAttributes():void 0)n.push(null!=(i=this.responder)?i.removeCurrentAttribute(t):void 0);return n}))},formatSetBlockTextDirection:function(){return this.activateAttributeIfSupported("blockDir",this.event.data)},formatSetInlineTextDirection:function(){return this.activateAttributeIfSupported("textDir",this.event.data)},formatStrikeThrough:function(){return this.toggleAttributeIfSupported("strike")},formatSubscript:function(){return this.toggleAttributeIfSupported("sub")},formatSuperscript:function(){return this.toggleAttributeIfSupported("sup")},formatUnderline:function(){return this.toggleAttributeIfSupported("underline")},historyRedo:function(){var t;return null!=(t=this.delegate)?t.inputControllerWillPerformRedo():void 0},historyUndo:function(){var t;return null!=(t=this.delegate)?t.inputControllerWillPerformUndo():void 0},insertCompositionText:function(){return this.composing=!0,this.insertString(this.event.data)},insertFromComposition:function(){return this.composing=!1,this.insertString(this.event.data)},insertFromDrop:function(){var t,e;return(t=this.deleteByDragRange)?(this.deleteByDragRange=null,null!=(e=this.delegate)&&e.inputControllerWillMoveText(),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.moveTextFromRange(t):void 0}))):void 0},insertFromPaste:function(){var i,n,r,o,a,s,l,c,h,d;return i=this.event.dataTransfer,a={dataTransfer:i},(n=i.getData("URL"))?(a.type="URL",a.href=n,a.string=(o=i.getData("public.url-name"))?e.squishBreakableWhitespace(o).trim():n,null!=(s=this.delegate)&&s.inputControllerWillPaste(a),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertText(e.Text.textForStringWithAttributes(a.string,{href:a.href})):void 0})),this.afterRender=function(t){return function(){var e;return null!=(e=t.delegate)?e.inputControllerDidPaste(a):void 0}}(this)):t(i)?(a.type="text/plain",a.string=i.getData("text/plain"),null!=(l=this.delegate)&&l.inputControllerWillPaste(a),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertString(a.string):void 0})),this.afterRender=function(t){return function(){var e;return null!=(e=t.delegate)?e.inputControllerDidPaste(a):void 0}}(this)):(r=i.getData("text/html"))?(a.type="text/html",a.html=r,null!=(c=this.delegate)&&c.inputControllerWillPaste(a),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertHTML(a.html):void 0})),this.afterRender=function(t){return function(){var e;return null!=(e=t.delegate)?e.inputControllerDidPaste(a):void 0}}(this)):(null!=(h=i.files)?h.length:void 0)?(a.type="File",a.file=i.files[0],null!=(d=this.delegate)&&d.inputControllerWillPaste(a),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertFile(a.file):void 0})),this.afterRender=function(t){return function(){var e;return null!=(e=t.delegate)?e.inputControllerDidPaste(a):void 0}}(this)):void 0},insertFromYank:function(){return this.insertString(this.event.data)},insertLineBreak:function(){return this.insertString("\n")},insertLink:function(){return this.activateAttributeIfSupported("href",this.event.data)},insertOrderedList:function(){return this.toggleAttributeIfSupported("number")},insertParagraph:function(){var t;return null!=(t=this.delegate)&&t.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var t;return null!=(t=this.responder)?t.insertLineBreak():void 0}))},insertReplacementText:function(){return this.insertString(this.event.dataTransfer.getData("text/plain"),{updatePosition:!1})},insertText:function(){var t,e;return this.insertString(null!=(t=this.event.data)?t:null!=(e=this.event.dataTransfer)?e.getData("text/plain"):void 0)},insertTranspose:function(){return this.insertString(this.event.data)},insertUnorderedList:function(){return this.toggleAttributeIfSupported("bullet")}},l.prototype.insertString=function(t,e){var i;return null==t&&(t=""),null!=(i=this.delegate)&&i.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var i;return null!=(i=this.responder)?i.insertString(t,e):void 0}))},l.prototype.toggleAttributeIfSupported=function(t){var i;return s.call(e.getAllAttributeNames(),t)>=0?(null!=(i=this.delegate)&&i.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.toggleCurrentAttribute(t):void 0}))):void 0},l.prototype.activateAttributeIfSupported=function(t,i){var n;return s.call(e.getAllAttributeNames(),t)>=0?(null!=(n=this.delegate)&&n.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var e;return null!=(e=this.responder)?e.setCurrentAttribute(t,i):void 0}))):void 0},l.prototype.deleteInDirection=function(t,e){var i,n,r;return(null!=e?e:{recordUndoEntry:!0}).recordUndoEntry&&null!=(r=this.delegate)&&r.inputControllerWillPerformTyping(),n=function(e){return function(){var i;return null!=(i=e.responder)?i.deleteInDirection(t):void 0}}(this),(i=this.getTargetDOMRange({minLength:2}))?this.withTargetDOMRange(i,n):n()},l.prototype.withTargetDOMRange=function(t,i){var n;return"function"==typeof t&&(i=t,t=this.getTargetDOMRange()),t?null!=(n=this.responder)?n.withTargetDOMRange(t,i.bind(this)):void 0:(e.selectionChangeObserver.reset(),i.call(this))},l.prototype.getTargetDOMRange=function(t){var e,i,n,r;return n=(null!=t?t:{minLength:0}).minLength,(r="function"==typeof(e=this.event).getTargetRanges?e.getTargetRanges():void 0)&&r.length&&(i=f(r[0]),0===n||i.toString().length>=n)?i:void 0},f=function(t){var e;return(e=document.createRange()).setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),e},l.prototype.withEvent=function(t,e){var i;this.event=t;try{i=e.call(this)}finally{this.event=null}return i},c=function(t){var e,i;return s.call(null!=(e=null!=(i=t.dataTransfer)?i.types:void 0)?e:[],"Files")>=0},d=function(t){var e;return(e=t.clipboardData)?s.call(e.types,"Files")>=0&&1===e.types.length&&e.files.length>=1:void 0},u=function(t){var e;return(e=t.clipboardData)?s.call(e.types,"text/plain")>=0&&1===e.types.length:void 0},h=function(t){var e;return e=[],t.altKey&&e.push("alt"),t.shiftKey&&e.push("shift"),e.push(t.key),e},p=function(t){return{x:t.clientX,y:t.clientY}},l}(e.InputController)}.call(this),function(){var t,i,n,r,o,a,s,l,c,h=function(t,e){return function(){return t.apply(e,arguments)}},d=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;i=e.defer,n=e.escapeHTML,r=e.handleEvent,s=e.makeElement,c=e.tagName,l=e.config,a=l.lang,t=l.css,o=l.keyNames,e.AttachmentEditorController=function(l){function u(t,e,i,n){this.attachmentPiece=t,this.element=e,this.container=i,this.options=null!=n?n:{},this.didBlurCaption=h(this.didBlurCaption,this),this.didChangeCaption=h(this.didChangeCaption,this),this.didInputCaption=h(this.didInputCaption,this),this.didKeyDownCaption=h(this.didKeyDownCaption,this),this.didClickActionButton=h(this.didClickActionButton,this),this.didClickToolbar=h(this.didClickToolbar,this),this.attachment=this.attachmentPiece.attachment,"a"===c(this.element)&&(this.element=this.element.firstChild),this.install()}var p;return d(u,l),p=function(t){return function(){var e;return(e=t.apply(this,arguments)).do(),null==this.undos&&(this.undos=[]),this.undos.push(e.undo)}},u.prototype.install=function(){return this.makeElementMutable(),this.addToolbar(),this.attachment.isPreviewable()?this.installCaptionEditor():void 0},u.prototype.uninstall=function(){var t,e;for(this.savePendingCaption();e=this.undos.pop();)e();return null!=(t=this.delegate)?t.didUninstallAttachmentEditor(this):void 0},u.prototype.savePendingCaption=function(){var t,e,i;return null!=this.pendingCaption?(t=this.pendingCaption,this.pendingCaption=null,t?null!=(e=this.delegate)&&"function"==typeof e.attachmentEditorDidRequestUpdatingAttributesForAttachment?e.attachmentEditorDidRequestUpdatingAttributesForAttachment({caption:t},this.attachment):void 0:null!=(i=this.delegate)&&"function"==typeof i.attachmentEditorDidRequestRemovingAttributeForAttachment?i.attachmentEditorDidRequestRemovingAttributeForAttachment("caption",this.attachment):void 0):void 0},u.prototype.makeElementMutable=p((function(){return{do:function(t){return function(){return t.element.dataset.trixMutable=!0}}(this),undo:function(t){return function(){return delete t.element.dataset.trixMutable}}(this)}})),u.prototype.addToolbar=p((function(){var i,o,l;return(i=s({tagName:"div",className:t.attachmentToolbar,data:{trixMutable:!0}})).innerHTML='<div class="trix-button-row">\n  <span class="trix-button-group trix-button-group--actions">\n    <button type="button" data-trix-action="remove" class="trix-button trix-button--remove" title="'+a.remove+'">'+a.remove+"</button>\n  </span>\n</div>",this.attachment.isPreviewable()&&(o=n(this.attachment.getFilename()),l=n(this.attachment.getFormattedFilesize()),i.innerHTML+='<div class="'+t.attachmentMetadataContainer+'">\n  <span class="'+t.attachmentMetadata+'">\n    <span class="'+t.attachmentName+'" title="'+o+'">'+o+'</span>\n    <span class="'+t.attachmentSize+'">'+l+"</span>\n  </span>\n</div>"),r("click",{onElement:i,withCallback:this.didClickToolbar}),r("click",{onElement:i,matchingSelector:"[data-trix-action]",withCallback:this.didClickActionButton}),{do:function(t){return function(){return t.element.appendChild(i)}}(this),undo:function(){return e.removeNode(i)}}})),u.prototype.installCaptionEditor=p((function(){var n,o,l,c,h;return(c=s({tagName:"textarea",className:t.attachmentCaptionEditor,attributes:{placeholder:a.captionPlaceholder},data:{trixMutable:!0}})).value=this.attachmentPiece.getCaption(),(h=c.cloneNode()).classList.add("trix-autoresize-clone"),h.tabIndex=-1,n=function(){return h.value=c.value,c.style.height=h.scrollHeight+"px"},r("input",{onElement:c,withCallback:n}),r("input",{onElement:c,withCallback:this.didInputCaption}),r("keydown",{onElement:c,withCallback:this.didKeyDownCaption}),r("change",{onElement:c,withCallback:this.didChangeCaption}),r("blur",{onElement:c,withCallback:this.didBlurCaption}),l=this.element.querySelector("figcaption"),o=l.cloneNode(),{do:function(e){return function(){return l.style.display="none",o.appendChild(c),o.appendChild(h),o.classList.add(t.attachmentCaption+"--editing"),l.parentElement.insertBefore(o,l),n(),e.options.editCaption?i((function(){return c.focus()})):void 0}}(this),undo:function(){return e.removeNode(o),l.style.display=null}}})),u.prototype.didClickToolbar=function(t){return t.preventDefault(),t.stopPropagation()},u.prototype.didClickActionButton=function(t){var e;if("remove"===t.target.getAttribute("data-trix-action"))return null!=(e=this.delegate)?e.attachmentEditorDidRequestRemovalOfAttachment(this.attachment):void 0},u.prototype.didKeyDownCaption=function(t){var e;return"return"===o[t.keyCode]?(t.preventDefault(),this.savePendingCaption(),null!=(e=this.delegate)&&"function"==typeof e.attachmentEditorDidRequestDeselectingAttachment?e.attachmentEditorDidRequestDeselectingAttachment(this.attachment):void 0):void 0},u.prototype.didInputCaption=function(t){return this.pendingCaption=t.target.value.replace(/\s/g," ").trim()},u.prototype.didChangeCaption=function(){return this.savePendingCaption()},u.prototype.didBlurCaption=function(){return this.savePendingCaption()},u}(e.BasicObject)}.call(this),function(){var t,i,n,r=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=e.makeElement,t=e.config.css,e.AttachmentView=function(o){function a(){a.__super__.constructor.apply(this,arguments),this.attachment=this.object,this.attachment.uploadProgressDelegate=this,this.attachmentPiece=this.options.piece}var s;return r(a,o),a.attachmentSelector="[data-trix-attachment]",a.prototype.createContentNodes=function(){return[]},a.prototype.createNodes=function(){var e,i,r,o,a,l,c;if(e=o=n({tagName:"figure",className:this.getClassName(),data:this.getData(),editable:!1}),(i=this.getHref())&&(o=n({tagName:"a",editable:!1,attributes:{href:i,tabindex:-1}}),e.appendChild(o)),this.attachment.hasContent())o.innerHTML=this.attachment.getContent();else for(r=0,a=(c=this.createContentNodes()).length;a>r;r++)l=c[r],o.appendChild(l);return o.appendChild(this.createCaptionElement()),this.attachment.isPending()&&(this.progressElement=n({tagName:"progress",attributes:{class:t.attachmentProgress,value:this.attachment.getUploadProgress(),max:100},data:{trixMutable:!0,trixStoreKey:["progressElement",this.attachment.id].join("/")}}),e.appendChild(this.progressElement)),[s("left"),e,s("right")]},a.prototype.createCaptionElement=function(){var e,i,r,o,a,s,l;return r=n({tagName:"figcaption",className:t.attachmentCaption}),(e=this.attachmentPiece.getCaption())?(r.classList.add(t.attachmentCaption+"--edited"),r.textContent=e):((i=this.getCaptionConfig()).name&&(o=this.attachment.getFilename()),i.size&&(s=this.attachment.getFormattedFilesize()),o&&(a=n({tagName:"span",className:t.attachmentName,textContent:o}),r.appendChild(a)),s&&(o&&r.appendChild(document.createTextNode(" ")),l=n({tagName:"span",className:t.attachmentSize,textContent:s}),r.appendChild(l))),r},a.prototype.getClassName=function(){var e,i;return i=[t.attachment,t.attachment+"--"+this.attachment.getType()],(e=this.attachment.getExtension())&&i.push(t.attachment+"--"+e),i.join(" ")},a.prototype.getData=function(){var t,e;return e={trixAttachment:JSON.stringify(this.attachment),trixContentType:this.attachment.getContentType(),trixId:this.attachment.id},(t=this.attachmentPiece.attributes).isEmpty()||(e.trixAttributes=JSON.stringify(t)),this.attachment.isPending()&&(e.trixSerialize=!1),e},a.prototype.getHref=function(){return i(this.attachment.getContent(),"a")?void 0:this.attachment.getHref()},a.prototype.getCaptionConfig=function(){var t,i,n;return n=this.attachment.getType(),t=e.copyObject(null!=(i=e.config.attachments[n])?i.caption:void 0),"file"===n&&(t.name=!0),t},a.prototype.findProgressElement=function(){var t;return null!=(t=this.findElement())?t.querySelector("progress"):void 0},s=function(t){return n({tagName:"span",textContent:e.ZERO_WIDTH_SPACE,data:{trixCursorTarget:t,trixSerialize:!1}})},a.prototype.attachmentDidChangeUploadProgress=function(){var t,e;return e=this.attachment.getUploadProgress(),null!=(t=this.findProgressElement())?t.value=e:void 0},a}(e.ObjectView),i=function(t,e){var i;return(i=n("div")).innerHTML=null!=t?t:"",i.querySelector(e)}}.call(this),function(){var t,i=function(t,e){function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;t=e.makeElement,e.PreviewableAttachmentView=function(n){function r(){r.__super__.constructor.apply(this,arguments),this.attachment.previewDelegate=this}return i(r,n),r.protot
60ype.createContentNodes=function(){return this.image=t({tagName:"img",attributes:{src:""},data:{trixMutable:!0}}),this.refresh(this.image),[this.image]},r.prototype.createCaptionElement=function(){var t;return(t=r.__super__.createCaptionElement.apply(this,arguments)).textContent||t.setAttribute("data-trix-placeholder",e.config.lang.captionPlaceholder),t},r.prototype.refresh=function(t){var e;return null==t&&(t=null!=(e=this.findElement())?e.querySelector("img"):void 0),t?this.updateAttributesForImage(t):void 0},r.prototype.updateAttributesForImage=function(t){var e,i,n,r,o,a;return o=this.attachment.getURL(),i=this.attachment.getPreviewURL(),t.src=i||o,i===o?t.removeAttribute("data-trix-serialized-attributes"):(n=JSON.stringify({src:o}),t.setAttribute("data-trix-serialized-attributes",n)),a=this.attachment.getWidth(),e=this.attachment.getHeight(),null!=a&&(t.width=a),null!=e&&(t.height=e),r=["imageElement",this.attachment.id,t.src,t.width,t.height].join("/"),t.dataset.trixStoreKey=r},r.prototype.attachmentDidChangeAttributes=function(){return this.refresh(this.image),this.refresh()},r}(e.AttachmentView)}.call(this),function(){var t,i,n,r=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=e.makeElement,t=e.findInnerElement,i=e.getTextConfig,e.PieceView=function(o){function a(){var t;a.__super__.constructor.apply(this,arguments),this.piece=this.object,this.attributes=this.piece.getAttributes(),t=this.options,this.textConfig=t.textConfig,this.context=t.context,this.piece.attachment?this.attachment=this.piece.attachment:this.string=this.piece.toString()}var s;return r(a,o),a.prototype.createNodes=function(){var e,i,n,r,o,a;if(a=this.attachment?this.createAttachmentNodes():this.createStringNodes(),e=this.createElement()){for(n=t(e),i=0,r=a.length;r>i;i++)o=a[i],n.appendChild(o);a=[e]}return a},a.prototype.createAttachmentNodes=function(){var t;return t=this.attachment.isPreviewable()?e.PreviewableAttachmentView:e.AttachmentView,this.createChildView(t,this.piece.attachment,{piece:this.piece}).getNodes()},a.prototype.createStringNodes=function(){var t,e,i,r,o,a,s,l,c;if(null!=(s=this.textConfig)?s.plaintext:void 0)return[document.createTextNode(this.string)];for(a=[],i=e=0,r=(l=this.string.split("\n")).length;r>e;i=++e)c=l[i],i>0&&(t=n("br"),a.push(t)),c.length&&(o=document.createTextNode(this.preserveSpaces(c)),a.push(o));return a},a.prototype.createElement=function(){var t,e,r,o,a,s,l,c,h;for(o in c={},s=this.attributes)if(h=s[o],(t=i(o))&&(t.tagName&&(a=n(t.tagName),r?(r.appendChild(a),r=a):e=r=a),t.styleProperty&&(c[t.styleProperty]=h),t.style))for(o in l=t.style)h=l[o],c[o]=h;if(Object.keys(c).length)for(o in null==e&&(e=n("span")),c)h=c[o],e.style[o]=h;return e},a.prototype.createContainerElement=function(){var t,e,r,o,a;for(r in o=this.attributes)if(a=o[r],(e=i(r))&&e.groupTagName)return(t={})[r]=a,n(e.groupTagName,t)},s=e.NON_BREAKING_SPACE,a.prototype.preserveSpaces=function(t){return this.context.isLast&&(t=t.replace(/\ $/,s)),t=t.replace(/(\S)\ {3}(\S)/g,"$1 "+s+" $2").replace(/\ {2}/g,s+" ").replace(/\ {2}/g," "+s),(this.context.isFirst||this.context.followsWhitespace)&&(t=t.replace(/^\ /,s)),t},a}(e.ObjectView)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.TextView=function(i){function n(){n.__super__.constructor.apply(this,arguments),this.text=this.object,this.textConfig=this.options.textConfig}var r;return t(n,i),n.prototype.createNodes=function(){var t,i,n,o,a,s,l,c,h,d;for(s=[],o=(c=e.ObjectGroup.groupObjects(this.getPieces())).length-1,n=i=0,a=c.length;a>i;n=++i)l=c[n],t={},0===n&&(t.isFirst=!0),n===o&&(t.isLast=!0),r(h)&&(t.followsWhitespace=!0),d=this.findOrCreateCachedChildView(e.PieceView,l,{textConfig:this.textConfig,context:t}),s.push.apply(s,d.getNodes()),h=l;return s},n.prototype.getPieces=function(){var t,e,i,n,r;for(r=[],t=0,e=(n=this.text.getPieces()).length;e>t;t++)(i=n[t]).hasAttribute("blockBreak")||r.push(i);return r},r=function(t){return/\s$/.test(null!=t?t.toString():void 0)},n}(e.ObjectView)}.call(this),function(){var t,i,n,r=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=e.makeElement,i=e.getBlockConfig,t=e.config.css,e.BlockView=function(o){function a(){a.__super__.constructor.apply(this,arguments),this.block=this.object,this.attributes=this.block.getAttributes()}return r(a,o),a.prototype.createNodes=function(){var t,r,o,a,s,l,c,h;if(s=[document.createComment("block")],this.block.isEmpty()?s.push(n("br")):(c=null!=(l=i(this.block.getLastAttribute()))?l.text:void 0,h=this.findOrCreateCachedChildView(e.TextView,this.block.text,{textConfig:c}
60),s.push.apply(s,h.getNodes()),this.shouldAddExtraNewlineElement()&&s.push(n("br"))),this.attributes.length)return s;for(t=n(e.config.blockAttributes.default.tagName),r=0,o=s.length;o>r;r++)a=s[r],t.appendChild(a);return[t]},a.prototype.createContainerElement=function(e){var r,o,a;return r=this.attributes[e],o={tagName:i(r).tagName},"attachmentGallery"===r&&(a=this.block.getBlockBreakPosition(),o.className=t.attachmentGallery+" "+t.attachmentGallery+"--"+a),n(o)},a.prototype.shouldAddExtraNewlineElement=function(){return/\n\n$/.test(this.block.toString())},a}(e.ObjectView)}.call(this),function(){var t,i,n=function(t,e){function i(){this.constructor=t}for(var n in e)r.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},r={}.hasOwnProperty;t=e.defer,i=e.makeElement,e.DocumentView=function(r){function o(){o.__super__.constructor.apply(this,arguments),this.element=this.options.element,this.elementStore=new e.ElementStore,this.setDocument(this.object)}var a,s,l;return n(o,r),o.render=function(t){var e,n;return(n=new this(t,{element:e=i("div")})).render(),n.sync(),e},o.prototype.setDocument=function(t){return t.isEqualTo(this.document)?void 0:this.document=this.object=t},o.prototype.render=function(){var t,n,r,o,a,s,l;if(this.childViews=[],this.shadowElement=i("div"),!this.document.isEmpty()){for(s=[],t=0,n=(a=e.ObjectGroup.groupObjects(this.document.getBlocks(),{asTree:!0})).length;n>t;t++)o=a[t],l=this.findOrCreateCachedChildView(e.BlockView,o),s.push(function(){var t,e,i,n;for(n=[],t=0,e=(i=l.getNodes()).length;e>t;t++)r=i[t],n.push(this.shadowElement.appendChild(r));return n}.call(this));return s}},o.prototype.isSynced=function(){return a(this.shadowElement,this.element)},o.prototype.sync=function(){var t;for(t=this.createDocumentFragmentForSync();this.element.lastChild;)this.element.removeChild(this.element.lastChild);return this.element.appendChild(t),this.didSync()},o.prototype.didSync=function(){return this.elementStore.reset(s(this.element)),t(function(t){return function(){return t.garbageCollectCachedViews()}}(this))},o.prototype.createDocumentFragmentForSync=function(){var t,e,i,n,r,o,a,l,c,h;for(e=document.createDocumentFragment(),i=0,r=(l=this.shadowElement.childNodes).length;r>i;i++)a=l[i],e.appendChild(a.cloneNode(!0));for(n=0,o=(c=s(e)).length;o>n;n++)t=c[n],(h=this.elementStore.remove(t))&&t.parentNode.replaceChild(h,t);return e},s=function(t){return t.querySelectorAll("[data-trix-store-key]")},a=function(t,e){return l(t.innerHTML)===l(e.innerHTML)},l=function(t){return t.replace(/&nbsp;/g," ")},o}(e.ObjectView)}.call(this),function(){var t,i,n,r,o,a=function(t,e){return function(){return t.apply(e,arguments)}},s=function(t,e){function i(){this.constructor=t}for(var n in e)l.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},l={}.hasOwnProperty;
60n=e.findClosestElementFromNode,r=e.handleEvent,o=e.innerElementIsActive,i=e.defer,t=e.AttachmentView.attachmentSelector,e.CompositionController=function(l){function c(i,n){this.element=i,this.composition=n,this.didClickAttachment=a(this.didClickAttachment,this),this.didBlur=a(this.didBlur,this),this.didFocus=a(this.didFocus,this),this.documentView=new e.DocumentView(this.composition.document,{element:this.element}),r("focus",{onElement:this.element,withCallback:this.didFocus}),r("blur",{onElement:this.element,withCallback:this.didBlur}),r("click",{onElement:this.element,matchingSelector:"a[contenteditable=false]",preventDefault:!0}),r("mousedown",{onElement:this.element,matchingSelector:t,withCallback:this.didClickAttachment}),r("click",{onElement:this.element,matchingSelector:"a"+t,preventDefault:!0})}return s(c,l),c.prototype.didFocus=function(){var t,e,i;return t=function(t){return function(){var e;return t.focused?void 0:(t.focused=!0,null!=(e=t.delegate)&&"function"==typeof e.compositionControllerDidFocus?e.compositionControllerDidFocus():void 0)}}(this),null!=(e=null!=(i=this.blurPromise)?i.then(t):void 0)?e:t()},c.prototype.didBlur=function(){return this.blurPromise=new Promise(function(t){return function(e){return i((function(){var i;return o(t.element)||(t.focused=null,null!=(i=t.delegate)&&"function"==typeof i.compositionControllerDidBlur&&i.compositionControllerDidBlur()),t.blurPromise=null,e()}))}}(this))},c.prototype.didClickAttachment=function(t,e){var i,r,o;return i=this.findAttachmentForElement(e),r=null!=n(t.target,{matchingSelector:"figcaption"}),null!=(o=this.delegate)&&"function"==typeof o.compositionControllerDidSelectAttachment?o.compositionControllerDidSelectAttachment(i,{editCaption:r}):void 0},c.prototype.getSerializableElement=function(){return this.isEditingAttachment()?this.documentView.shadowElement:this.element},c.prototype.render=function(){var t,e,i;return this.revision!==this.composition.revision&&(this.documentView.setDocument(this.composition.document),this.documentView.render(),this.revision=this.composition.revision),this.canSyncDocumentView()&&!this.documentView.isSynced()&&(null!=(t=this.delegate)&&"function"==typeof t.compositionControllerWillSyncDocumentView&&t.compositionControllerWillSyncDocumentView(),this.documentView.sync(),null!=(e=this.delegate)&&"function"==typeof e.compositionControllerDidSyncDocumentView&&e.compositionControllerDidSyncDocumentView()),null!=(i=this.delegate)&&"function"==typeof i.compositionControllerDidRender?i.compositionControllerDidRender():void 0},c.prototype.rerenderViewForObject=function(t){return this.invalidateViewForObject(t),this.render()},c.prototype.invalidateViewForObject=function(t){return this.documentView.invalidateViewForObject(t)},c.prototype.isViewCachingEnabled=function(){return this.documentView.isViewCachingEnabled()},c.prototype.enableViewCaching=function(){return this.documentView.enableViewCaching()},c.prototype.disableViewCaching=function(){return this.documentView.disableViewCaching()},c.prototype.refreshViewCache=function(){return this.documentView.garbageCollectCachedViews()},c.prototype.isEditingAttachment=function(){return null!=this.attachmentEditor},c.prototype.installAttachmentEditorForAttachment=function(t,i){var n,r,o;if((null!=(o=this.attachmentEditor)?o.attachment:void 0)!==t&&(r=this.documentView.findElementForObject(t)))return this.uninstallAttachmentEditor(),n=this.composition.document.getAttachmentPieceForAttachment(t),this.attachmentEditor=new e.AttachmentEditorController(n,r,this.element,i),this.attachmentEditor.delegate=this},c.prototype.uninstallAttachmentEditor=function(){var t;return null!=(t=this.attachmentEditor)?t.uninstall():void 0},c.prototype.didUninstallAttachmentEditor=function(){return this.attachmentEditor=null,this.render()},c.prototype.attachmentEditorDidRequestUpdatingAttributesForAttachment=function(t,e){var i;return null!=(i=this.delegate)&&"function"==typeof i.compositionControllerWillUpdateAttachment&&i.compositionControllerWillUpdateAttachment(e),this.composition.updateAttributesForAttachment(t,e)},c.prototype.attachmentEditorDidRequestRemovingAttributeForAttachment=function(t,e){var i;return null!=(i=this.delegate)&&"function"==typeof i.compositionControllerWillUpdateAttachment&&i.compositionControllerWillUpdateAttachment(e),this.composition.removeAttributeForAttachment(t,e)},c.prototype.attachmentEditorDidRequestRemovalOfAttachment=function(t){var e;return null!=(e=this.delegate)&&"function"==typeof e.compositionControllerDidRequestRemovalOfAttachment?e.compositionControllerDidRequestRemovalOfAttachment(t):void 0},c.prototype.attachmentEditorDidRequestDeselectingAttachment=function(t){var e;return null!=(e=this.delegate)&&"function"==typeof e.compositionControllerDidRequestDeselectingAttachment?e.compositionControllerDidRequestDeselectingAttachment(t):void 0},c.prototype.canSyncDocumentView=function(){return!this.isEditingAttachment()},c.prototype.findAttachmentForElement=function(t){return this.composition.document.getAttachmentById(parseInt(t.dataset.trixId,10))},c}(e.BasicObject)}.call(this),function(){var t,i,n,r=function(t,e){return function(){return t.apply(e,arguments)}},o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n])
61;return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty;i=e.handleEvent,n=e.triggerEvent,t=e.findClosestElementFromNode,e.ToolbarController=function(e){function a(t){this.element=t,this.didKeyDownDialogInput=r(this.didKeyDownDialogInput,this),this.didClickDialogButton=r(this.didClickDialogButton,this),this.didClickAttributeButton=r(this.didClickAttributeButton,this),this.didClickActionButton=r(this.didClickActionButton,this),this.attributes={},this.actions={},this.resetDialogInputs(),i("mousedown",{onElement:this.element,matchingSelector:s,withCallback:this.didClickActionButton}),i("mousedown",{onElement:this.element,matchingSelector:c,withCallback:this.didClickAttributeButton}),i("click",{onElement:this.element,matchingSelector:v,preventDefault:!0}),i("click",{onElement:this.element,matchingSelector:h,withCallback:this.didClickDialogButton}),i("keydown",{onElement:this.element,matchingSelector:d,withCallback:this.didKeyDownDialogInput})}var s,l,c,h,d,u,p,f,g,m,v;return o(a,e),v=(c="[data-trix-attribute]")+", "+(s="[data-trix-action]"),l=(u="[data-trix-dialog]")+"[data-trix-active]",h=u+" [data-trix-method]",d=u+" [data-trix-input]",a.prototype.didClickActionButton=function(t,e){var i,n,r;return null!=(n=this.delegate)&&n.toolbarDidClickButton(),t.preventDefault(),i=p(e),this.getDialog(i)?this.toggleDialog(i):null!=(r=this.delegate)?r.toolbarDidInvokeAction(i):void 0},a.prototype.didClickAttributeButton=function(t,e){var i,n,r;return null!=(n=this.delegate)&&n.toolbarDidClickButton(),t.preventDefault(),i=f(e),this.getDialog(i)?this.toggleDialog(i):null!=(r=this.delegate)&&r.toolbarDidToggleAttribute(i),this.refreshAttributeButtons()},a.prototype.didClickDialogButton=function(e,i){var n;return n=t(i,{matchingSelector:u}),this[i.getAttribute("data-trix-method")].call(this,n)},a.prototype.didKeyDownDialogInput=function(t,e){var i,n;return 13===t.keyCode&&(t.preventDefault(),i=e.getAttribute("name"),n=this.getDialog(i),this.setAttribute(n)),27===t.keyCode?(t.preventDefault(),this.hideDialog()):void 0},a.prototype.updateActions=function(t){return this.actions=t,this.refreshActionButtons()},a.prototype.refreshActionButtons=function(){return this.eachActionButton(function(t){return function(e,i){return e.disabled=!1===t.actions[i]}}(this))},a.prototype.eachActionButton=function(t){var e,i,n,r,o;for(o=[],i=0,n=(r=this.element.querySelectorAll(s)).length;n>i;i++)e=r[i],o.push(t(e,p(e)));return o},a.prototype.updateAttributes=function(t){return this.attributes=t,this.refreshAttributeButtons()},a.prototype.refreshAttributeButtons=function(){return this.eachAttributeButton(function(t){return function(e,i){return e.disabled=!1===t.attributes[i],t.attributes[i]||t.dialogIsVisible(i)?(e.setAttribute("data-trix-active",""),e.classList.add("trix-active")):(e.removeAttribute("data-trix-active"),e.classList.remove("trix-active"))}}(this))},a.prototype.eachAttributeButton=function(t){var e,i,n,r,o;for(o=[],i=0,n=(r=this.element.querySelectorAll(c)).length;n>i;i++)e=r[i],o.push(t(e,f(e)));return o},a.prototype.applyKeyboardCommand=function(t){var e,i,r,o,a,s;for(o=JSON.stringify(t.sort()),r=0,a=(s=this.element.querySelectorAll("[data-trix-key]")).length;a>r;r++)if(i=(e=s[r]).getAttribute("data-trix-key").split("+"),JSON.stringify(i.sort())===o)return n("mousedown",{onElement:e}),!0;return!1},a.prototype.dialogIsVisible=function(t){var e;return(e=this.getDialog(t))?e.hasAttribute("data-trix-active"):void 0},a.prototype.toggleDialog=function(t){return this.dialogIsVisible(t)?this.hideDialog():this.showDialog(t)}
61,a.prototype.showDialog=function(t){var e,i,n,r,o,a,s,l,c;for(this.hideDialog(),null!=(a=this.delegate)&&a.toolbarWillShowDialog(),(i=this.getDialog(t)).setAttribute("data-trix-active",""),i.classList.add("trix-active"),n=0,o=(s=i.querySelectorAll("input[disabled]")).length;o>n;n++)s[n].removeAttribute("disabled");return(e=f(i))&&(r=m(i,t))&&(r.value=null!=(l=this.attributes[e])?l:"",r.select()),null!=(c=this.delegate)?c.toolbarDidShowDialog(t):void 0},a.prototype.setAttribute=function(t){var e,i,n;return e=f(t),(i=m(t,e)).willValidate&&!i.checkValidity()?(i.setAttribute("data-trix-validate",""),i.classList.add("trix-validate"),i.focus()):(null!=(n=this.delegate)&&n.toolbarDidUpdateAttribute(e,i.value),this.hideDialog())},a.prototype.removeAttribute=function(t){var e,i;return e=f(t),null!=(i=this.delegate)&&i.toolbarDidRemoveAttribute(e),this.hideDialog()},a.prototype.hideDialog=function(){var t,e;return(t=this.element.querySelector(l))?(t.removeAttribute("data-trix-active"),t.classList.remove("trix-active"),this.resetDialogInputs(),null!=(e=this.delegate)?e.toolbarDidHideDialog(g(t)):void 0):void 0},a.prototype.resetDialogInputs=function(){var t,e,i,n,r;for(r=[],t=0,i=(n=this.element.querySelectorAll(d)).length;i>t;t++)(e=n[t]).setAttribute("disabled","disabled"),e.removeAttribute("data-trix-validate"),r.push(e.classList.remove("trix-validate"));return r},a.prototype.getDialog=function(t){return this.element.querySelector("[data-trix-dialog="+t+"]")},m=function(t,e){return null==e&&(e=f(t)),t.querySelector("[data-trix-input][name='"+e+"']")},p=function(t){return t.getAttribute("data-trix-action")},f=function(t){var e;return null!=(e=t.getAttribute("data-trix-attribute"))?e:t.getAttribute("data-trix-dialog-attribute")},g=function(t){return t.getAttribute("data-trix-dialog")},a}(e.BasicObject)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.ImagePreloadOperation=function(e){function i(t){this.url=t}return t(i,e),i.prototype.perform=function(t){var e;return(e=new Image).onload=function(i){return function(){return e.width=i.width=e.naturalWidth,e.height=i.height=e.naturalHeight,t(!0,e)}}(this),e.onerror=function(){return t(!1)},e.src=this.url},i}(e.Operation)}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}},i=function(t,e){function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;e.Attachment=function(n){function r(i){null==i&&(i={}),this.releaseFile=t(this.releaseFile,this),r.__super__.constructor.apply(this,arguments),this.attributes=e.Hash.box(i),this.didChangeAttributes()}return i(r,n),r.previewablePattern=/^image(\/(gif|png|jpe?g)|$)/,r.attachmentForFile=function(t){var e;return(e=new this(this.attributesForFile(t))).setFile(t),e},r.attributesForFile=function(t){return new e.Hash({filename:t.name,filesize:t.size,contentType:t.type})},r.fromJSON=function(t){return new this(t)},r.prototype.getAttribute=function(t){return this.attributes.get(t)},r.prototype.hasAttribute=function(t){return this.attributes.has(t)},r.prototype.getAttributes=function(){return this.attributes.toObject()},r.prototype.setAttributes=function(t){var e,i,n;return null==t&&(t={}),e=this.attributes.merge(t),this.attributes.isEqualTo(e)?void 0:(this.attributes=e,this.didChangeAttributes(),null!=(i=this.previewDelegate)&&"function"==typeof i.attachmentDidChangeAttributes&&i.attachmentDidChangeAttributes(this),null!=(n=this.delegate)&&"function"==typeof n.attachmentDidChangeAttributes?n.attachmentDidChangeAttributes(this):void 0)},r.prototype.didChangeAttributes=function(){return this.isPreviewable()?this.preloadURL():void 0},r.prototype.isPending=function(){return null!=this.file&&!(this.getURL()||this.getHref())},r.prototype.isPreviewable=function(){return this.attributes.has("previewable")?this.attributes.get("previewable"):this.constructor.previewablePattern.test(this.getContentType())},r.prototype.getType=function(){return this.hasContent()?"content":this.isPreviewable()?"preview":"file"},r.prototype.getURL=function(){return this.attributes.get("url")},r.prototype.getHref=function(){return this.attributes.get("href")},r.prototype.getFilename=function(){var t;return null!=(t=this.attributes.get("filename"))?t:""},r.prototype.getFilesize=function(){return this.attributes.get("filesize")},r.prototype.getFormattedFilesize=function(){var t;return"number"==typeof(t=this.attributes.get("filesize"))?e.config.fileSize.formatter(t):""},r.prototype.getExtension=function(){var t;return null!=(t=this.getFilename().match(/\.(\w+)$/))?t[1].toLowerCase():void 0},r.prototype.getContentType=function(){return this.attributes.get("contentType")},r.prototype.hasContent=function(){return this.attributes.has("content")},r.prototype.getContent=function(){return this.attributes.get("content")},r.prototype.getWidth=function(){return this.attributes.get("width")},r.prototype.getHeight=function(){return this.attributes.get("height")},r.prototype.getFile=function(){return this.file},r.prototype.setFile=function(t){return this.file=t,this.isPreviewable()?this.preloadFile():void 0},r.prototype.releaseFile=function(){return this.releasePreloadedFile(),this.file=null},r.prototype.getUploadProgress=function(){var t;return null!=(t=this.uploadProgress)?t:0},r.prototype.setUploadProgress=function(t){var e;return this.uploadProgress!==t?(this.uploadProgress=t,null!=(e=this.uploadProgressDelegate)&&"function"==typeof e.attachmentDidChangeUploadProgress?e.attachmentDidChangeUploadProgress(this):void 0):void 0},r.prototype.toJSON=function(){return this.getAttributes()},r.prototype.getCacheKey=function(){return[r.__super__.getCacheKey.apply(this,arguments),this.attributes.getCacheKey(),this.getPreviewURL()].join("/")},r.prototype.getPreviewURL=function(){return this.previewURL||this.preloadingURL},r.prototype.setPreviewURL=function(t){var e,i;
61return t!==this.getPreviewURL()?(this.previewURL=t,null!=(e=this.previewDelegate)&&"function"==typeof e.attachmentDidChangeAttributes&&e.attachmentDidChangeAttributes(this),null!=(i=this.delegate)&&"function"==typeof i.attachmentDidChangePreviewURL?i.attachmentDidChangePreviewURL(this):void 0):void 0},r.prototype.preloadURL=function(){return this.preload(this.getURL(),this.releaseFile)},r.prototype.preloadFile=function(){return this.file?(this.fileObjectURL=URL.createObjectURL(this.file),this.preload(this.fileObjectURL)):void 0},r.prototype.releasePreloadedFile=function(){return this.fileObjectURL?(URL.revokeObjectURL(this.fileObjectURL),this.fileObjectURL=null):void 0},r.prototype.preload=function(t,i){return t&&t!==this.getPreviewURL()?(this.preloadingURL=t,new e.ImagePreloadOperation(t).then(function(e){return function(n){var r,o;return o=n.width,r=n.height,e.getWidth()&&e.getHeight()||e.setAttributes({width:o,height:r}),e.preloadingURL=null,e.setPreviewURL(t),"function"==typeof i?i():void 0}}(this)).catch(function(t){return function(){return t.preloadingURL=null,"function"==typeof i?i():void 0}}(this))):void 0},r}(e.Object)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.Piece=function(i){function n(t,i){null==i&&(i={}),n.__super__.constructor.apply(this,arguments),this.attributes=e.Hash.box(i)}return t(n,i),n.types={},n.registerType=function(t,e){return e.type=t,this.types[t]=e},n.fromJSON=function(t){var e;return(e=this.types[t.type])?e.fromJSON(t):void 0},n.prototype.copyWithAttributes=function(t){return new this.constructor(this.getValue(),t)},n.prototype.copyWithAdditionalAttributes=function(t){return this.copyWithAttributes(this.attributes.merge(t))},n.prototype.copyWithoutAttribute=function(t){return this.copyWithAttributes(this.attributes.remove(t))},n.prototype.copy=function(){return this.copyWithAttributes(this.attributes)},n.prototype.getAttribute=function(t){return this.attributes.get(t)},n.prototype.getAttributesHash=function(){return this.attributes},n.prototype.getAttributes=function(){return this.attributes.toObject()},n.prototype.getCommonAttributes=function(){var t,e,i;return(i=pieceList.getPieceAtIndex(0))?(t=i.attributes,e=t.getKeys(),pieceList.eachPiece((function(i){return e=t.getKeysCommonToHash(i.attributes),t=t.slice(e)})),t.toObject()):{}},n.prototype.hasAttribute=function(t){return this.attributes.has(t)},n.prototype.hasSameStringValueAsPiece=function(t){return null!=t&&this.toString()===t.toString()},n.prototype.hasSameAttributesAsPiece=function(t){return null!=t&&(this.attributes===t.attributes||this.attributes.isEqualTo(t.attributes))},n.prototype.isBlockBreak=function(){return!1},n.prototype.isEqualTo=function(t){return n.__super__.isEqualTo.apply(this,arguments)||this.hasSameConstructorAs(t)&&this.hasSameStringValueAsPiece(t)&&this.hasSameAttributesAsPiece(t)},n.prototype.isEmpty=function(){return 0===this.length},n.prototype.isSerializable=function(){return!0},n.prototype.toJSON=function(){return{type:this.constructor.type,attributes:this.getAttributes()}},n.prototype.contentsForInspection=function(){return{type:this.constructor.type,attributes:this.attributes.inspect()}},n.prototype.canBeGrouped=function(){return this.hasAttribute("href")},n.prototype.canBeGroupedWith=function(t){return this.getAttribute("href")===t.getAttribute("href")},n.prototype.getLength=function(){return this.length},n.prototype.canBeConsolidatedWith=function(){return!1},n}(e.Object)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.Piece.registerType("attachment",e.AttachmentPiece=function(i){function n(t){this.attachment=t,n.__super__.constructor.apply(this,arguments),this.length=1,this.ensureAttachmentExclusivelyHasAttribute("href"),this.attachment.hasContent()||this.removeProhibitedAttributes()}return t(n,i),n.fromJSON=function(t){return new this(e.Attachment.fromJSON(t.attachment),t.attributes)},n.permittedAttributes=["caption","presentation"],n.prototype.ensureAttachmentExclusivelyHasAttribute=function(t){return this.hasAttribute(t)?(this.attachment.hasAttribute(t)||this.attachment.setAttributes(this.attributes.slice(t)),this.attributes=this.attributes.remove(t)):void 0},n.prototype.removeProhibitedAttributes=function(){var t;return(t=this.attributes.slice(this.constructor.permittedAttributes)).isEqualTo(this.attributes)?void 0:this.attributes=t},n.prototype.getValue=function(){return this.attachment},n.prototype.isSerializable=function(){return!this.attachment.isPending()},n.prototype.getCaption=function(){var t;return null!=(t=this.attributes.get("caption"))?t:""},n.prototype.isEqualTo=function(t){var e;return n.__super__.isEqualTo.apply(this,arguments)&&this.attachment.id===(null!=t&&null!=(e=t.attachment)?e.id:void 0)},n.prototype.toString=function(){return e.OBJECT_REPLACEMENT_CHARACTER},n.prototype.toJSON=function(){var t;return(t=n.__super__.toJSON.apply(this,arguments)).attachment=this.attachment,t},n.prototype.getCacheKey=function(){return[n.__super__.getCacheKey.apply(this,arguments),this.attachment.getCacheKey()].join("/")},n.prototype.toConsole=function(){return JSON.stringify(this.toString())},n}(e.Piece))}.call(this),function(){var t,i=function(t,e){function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty;t=e.normalizeNewlines,e.Piece.registerType("string",e.StringPiece=function(e){function n(e){n.__super__.constructor.apply(this,arguments),this.string=t(e),this.length=this.string.length}return i(n,e),n.fromJSON=function(t){return new this(t.string,t.attributes)},n.prototype.getValue=function(){return this.string},n.prototype.toString=function(){return this.string.toString()},n.prototype.isBlockBreak=function(){return"\n"===this.toString()&&!0===this.getAttribute("blockBreak")},n.prototype.toJSON=function(){var t;
61return(t=n.__super__.toJSON.apply(this,arguments)).string=this.string,t},n.prototype.canBeConsolidatedWith=function(t){return null!=t&&this.hasSameConstructorAs(t)&&this.hasSameAttributesAsPiece(t)},n.prototype.consolidateWith=function(t){return new this.constructor(this.toString()+t.toString(),this.attributes)},n.prototype.splitAtOffset=function(t){var e,i;return 0===t?(e=null,i=this):t===this.length?(e=this,i=null):(e=new this.constructor(this.string.slice(0,t),this.attributes),i=new this.constructor(this.string.slice(t),this.attributes)),[e,i]},n.prototype.toConsole=function(){var t;return(t=this.string).length>15&&(t=t.slice(0,14)+"\u2026"),JSON.stringify(t.toString())},n}(e.Piece))}.call(this),function(){var t,i=function(t,e){function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},n={}.hasOwnProperty,r=[].slice;t=e.spliceArray,e.SplittableList=function(e){function n(t){null==t&&(t=[]),n.__super__.constructor.apply(this,arguments),this.objects=t.slice(0),this.length=this.objects.length}var o,a,s;return i(n,e),n.box=function(t){return t instanceof this?t:new this(t)},n.prototype.indexOf=function(t){return this.objects.indexOf(t)},n.prototype.splice=function(){var e;return e=1<=arguments.length?r.call(arguments,0):[],new this.constructor(t.apply(null,[this.objects].concat(r.call(e))))},n.prototype.eachObject=function(t){var e,i,n,r,o,a;for(a=[],i=e=0,n=(o=this.objects).length;n>e;i=++e)r=o[i],a.push(t(r,i));return a},n.prototype.insertObjectAtIndex=function(t,e){return this.splice(e,0,t)},n.prototype.insertSplittableListAtIndex=function(t,e){return this.splice.apply(this,[e,0].concat(r.call(t.objects)))},n.prototype.insertSplittableListAtPosition=function(t,e){var i,n,r;return n=(r=this.splitObjectAtPosition(e))[0],i=r[1],new this.constructor(n).insertSplittableListAtIndex(t,i)},n.prototype.editObjectAtIndex=function(t,e){return this.replaceObjectAtIndex(e(this.objects[t]),t)},n.prototype.replaceObjectAtIndex=function(t,e){return this.splice(e,1,t)},n.prototype.removeObjectAtIndex=function(t){return this.splice(t,1)},n.prototype.getObjectAtIndex=function(t){return this.objects[t]},n.prototype.getSplittableListInRange=function(t){var e,i,n,r;return i=(n=this.splitObjectsAtRange(t))[0],e=n[1],r=n[2],new this.constructor(i.slice(e,r+1))},n.prototype.selectSplittableList=function(t){var e,i;return i=function(){var i,n,r,o;for(o=[],i=0,n=(r=this.objects).length;n>i;i++)e=r[i],t(e)&&o.push(e);return o}.call(this),new this.constructor(i)},n.prototype.removeObjectsInRange=function(t){var e,i,n,r;return i=(n=this.splitObjectsAtRange(t))[0],e=n[1],r=n[2],new this.constructor(i).splice(e,r-e+1)},n.prototype.transformObjectsInRange=function(t,e){var i,n,r,o,a,s,l;return a=this.splitObjectsAtRange(t),o=a[0],n=a[1],s=a[2],l=function(){var t,a,l;for(l=[],i=t=0,a=o.length;a>t;i=++t)r=o[i],l.push(i>=n&&s>=i?e(r):r);return l}(),new this.constructor(l)},n.prototype.splitObjectsAtRange=function(t){var e,i,n,r,a;return i=(r=this.splitObjectAtPosition(s(t)))[0],e=r[1],n=r[2],[i=(a=new this.constructor(i).splitObjectAtPosition(o(t)+n))[0],e,a[1]-1]},n.prototype.getObjectAtPosition=function(t){var e,i;return e=(i=this.findIndexAndOffsetAtPosition(t)).index,i.offset,this.objects[e]},n.prototype.splitObjectAtPosition=function(t){var e,i,n,r,o,a,s,l,c;return e=(o=this.findIndexAndOffsetAtPosition(t)).index,r=o.offset,n=this.objects.slice(0),null!=e?0===r?(l=e,c=0):(i=(a=this.getObjectAtIndex(e).splitAtOffset(r))[0],s=a[1],n.splice(e,1,i,s),l=e+1,c=i.getLength()-r):(l=n.length,c=0),[n,l,c]},n.prototype.consolidate=function(){var t,e,i,n,r,o;for(n=[],r=this.objects[0],t=0,e=(o=this.objects.slice(1)).length;e>t;t++)i=o[t],("function"==typeof r.canBeConsolidatedWith?r.canBeConsolidatedWith(i):void 0)?r=r.consolidateWith(i):(n.push(r),r=i);return null!=r&&n.push(r),new this.constructor(n)},n.prototype.consolidateFromIndexToIndex=function(t,e){var i,n;return n=this.objects.slice(0).slice(t,e+1),i=new this.constructor(n).consolidate().toArray(),this.splice.apply(this,[t,n.length].concat(r.call(i)))},n.prototype.findIndexAndOffsetAtPosition=function(t){var e,i,n,r,o,a;for(e=0,n=i=0,r=(a=this.objects).length;r>i;n=++i){if(o=e+a[n].getLength(),t>=e&&o>t)return{index:n,offset:t-e};e=o}return{index:null,offset:null}},n.prototype.findPositionAtIndexAndOffset=function(t,e){var i,n,r,o,a,s;for(a=0,i=n=0,r=(s=this.objects).length;r>n;i=++n)if(o=s[i],t>i)a+=o.getLength();else if(i===t){a+=e;break}return a},n.prototype.getEndPosition=function(){var t,e;return null!=this.endPosition?this.endPosition:this.endPosition=function(){var i,n,r;for(e=0,i=0,n=(r=this.objects).length;n>i;i++)t=r[i],e+=t.getLength();return e}.call(this)},n.prototype.toString=function(){return this.objects.join("")},n.prototype.toArray=function(){return this.objects.slice(0)},n.prototype.toJSON=function(){return this.toArray()},n.prototype.isEqualTo=function(t){return n.__super__.isEqualTo.apply(this,arguments)||a(this.objects,null!=t?t.objects:void 0)},a=function(t,e){var i,n,r,o,a;if(null==e&&(e=[]),t.length!==e.length)return!1;for(a=!0,n=i=0,r=t.length;r>i;n=++i)o=t[n],a&&!o.isEqualTo(e[n])&&(a=!1);return a},n.prototype.contentsForInspection=function(){var t;return{objects:"["+function(){var e,i,n,r;for(r=[],e=0,i=(n=this.objects).length;i>e;e++)t=n[e],r.push(t.inspect());return r}.call(this).join(", ")+"]"}},s=function(t){return t[0]},o=function(t){return t[1]},n}(e.Object)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.Text=function(i){function n(t){var i;null==t&&(t=[]),n.__super__.constructor.apply(this,arguments),this.pieceList=new e.SplittableList(function(){var e,n,r;for(r=[],e=0,n=t.length;n>e;e++)(i=t[e]).isEmpty()||r.push(i);return r}())}return t(n,i),n.textForAttachmentWithAttributes=function(t,i){return new this([new e.AttachmentPiece(t,i)])},n.textForStringWithAttributes=function(t,i){return new this([new e.StringPiece(t,i)])},n.fromJSON=function(t){var i;return new this(function(){var n,r,o;for(o=[],n=0,r=t.length;r>n;n++)i=t[n],o.push(e.Piece.fromJSON(i));return o}())},n.prototype.copy=function(){return this.copyWithPieceList(this.pieceList)},n.prototype.copyWithPieceList=function(t){return new this.constructor(t.consolidate().toArray())},n.prototype.copyUsingObjectMap=function(t){var e,i;return i=function(){var i,n,r,o,a;for(a=[],i=0,n=(r=this.getPieces()).length;n>i;i++)e=r[i],a.push(null!=(o=t.find(e))?o:e);return a}.call(this),new this.constructor(i)},n.prototype.appendText=function(t){return this.insertTextAtPosition(t,this.getLength())},n.prototype.insertTextAtPosition=function(t,e){return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(t.pieceList,e))},n.prototype.removeTextAtRange=function(t){return this.copyWithPieceList(this.pieceList.removeObjectsInRange(t))},n.prototype.replaceTextAtRange=function(t,e){return this.removeTextAtRange(e).insertTextAtPosition(t,e[0])},n.prototype.moveTextFromRangeToPosition=function(t,e){var i,n;if(!(t[0]<=e&&e<=t[1]))return i=(n=this.getTextAtRange(t)).getLength(),t[0]<e&&(e-=i),this.removeTextAtRange(t).insertTextAtPosition(n,e)}
61,n.prototype.addAttributeAtRange=function(t,e,i){var n;return(n={})[t]=e,this.addAttributesAtRange(n,i)},n.prototype.addAttributesAtRange=function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithAdditionalAttributes(t)})))},n.prototype.removeAttributeAtRange=function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithoutAttribute(t)})))},n.prototype.setAttributesAtRange=function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithAttributes(t)})))},n.prototype.getAttributesAtPosition=function(t){var e,i;return null!=(e=null!=(i=this.pieceList.getObjectAtPosition(t))?i.getAttributes():void 0)?e:{}},n.prototype.getCommonAttributes=function(){var t,i;return t=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.pieceList.toArray()).length;e>t;t++)i=n[t],r.push(i.getAttributes());return r}.call(this),e.Hash.fromCommonAttributesOfObjects(t).toObject()},n.prototype.getCommonAttributesAtRange=function(t){var e;return null!=(e=this.getTextAtRange(t).getCommonAttributes())?e:{}},n.prototype.getExpandedRangeForAttributeAtOffset=function(t,e){var i,n,r;for(i=r=e,n=this.getLength();i>0&&this.getCommonAttributesAtRange([i-1,r])[t];)i--;for(;n>r&&this.getCommonAttributesAtRange([e,r+1])[t];)r++;return[i,r]},n.prototype.getTextAtRange=function(t){return this.copyWithPieceList(this.pieceList.getSplittableListInRange(t))},n.prototype.getStringAtRange=function(t){return this.pieceList.getSplittableListInRange(t).toString()},n.prototype.getStringAtPosition=function(t){return this.getStringAtRange([t,t+1])},n.prototype.startsWithString=function(t){return this.getStringAtRange([0,t.length])===t},n.prototype.endsWithString=function(t){var e;
61return e=this.getLength(),this.getStringAtRange([e-t.length,e])===t},n.prototype.getAttachmentPieces=function(){var t,e,i,n,r;for(r=[],t=0,e=(n=this.pieceList.toArray()).length;e>t;t++)null!=(i=n[t]).attachment&&r.push(i);return r},n.prototype.getAttachments=function(){var t,e,i,n,r;for(r=[],t=0,e=(n=this.getAttachmentPieces()).length;e>t;t++)i=n[t],r.push(i.attachment);return r},n.prototype.getAttachmentAndPositionById=function(t){var e,i,n,r,o,a;for(r=0,e=0,i=(o=this.pieceList.toArray()).length;i>e;e++){if((null!=(a=(n=o[e]).attachment)?a.id:void 0)===t)return{attachment:n.attachment,position:r};r+=n.length}return{attachment:null,position:null}},n.prototype.getAttachmentById=function(t){var e,i;return e=(i=this.getAttachmentAndPositionById(t)).attachment,i.position,e},n.prototype.getRangeOfAttachment=function(t){var e,i;return t=(i=this.getAttachmentAndPositionById(t.id)).attachment,e=i.position,null!=t?[e,e+1]:void 0},n.prototype.updateAttributesForAttachment=function(t,e){var i;return(i=this.getRangeOfAttachment(e))?this.addAttributesAtRange(t,i):this},n.prototype.getLength=function(){return this.pieceList.getEndPosition()},n.prototype.isEmpty=function(){return 0===this.getLength()},n.prototype.isEqualTo=function(t){var e;return n.__super__.isEqualTo.apply(this,arguments)||(null!=t&&null!=(e=t.pieceList)?e.isEqualTo(this.pieceList):void 0)},n.prototype.isBlockBreak=function(){return 1===this.getLength()&&this.pieceList.getObjectAtIndex(0).isBlockBreak()},n.prototype.eachPiece=function(t){return this.pieceList.eachObject(t)},n.prototype.getPieces=function(){return this.pieceList.toArray()},n.prototype.getPieceAtPosition=function(t){return this.pieceList.getObjectAtPosition(t)},n.prototype.contentsForInspection=function(){return{pieceList:this.pieceList.inspect()}},n.prototype.toSerializableText=function(){var t;return t=this.pieceList.selectSplittableList((function(t){return t.isSerializable()})),this.copyWithPieceList(t)},n.prototype.toString=function(){return this.pieceList.toString()},n.prototype.toJSON=function(){return this.pieceList.toJSON()},n.prototype.toConsole=function(){var t;return JSON.stringify(function(){var e,i,n,r;for(r=[],e=0,i=(n=this.pieceList.toArray()).length;i>e;e++)t=n[e],r.push(JSON.parse(t.toConsole()));return r}.call(this))},n}(e.Object)}.call(this),function(){var t,i,n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty,s=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1},l=[].slice;t=e.arraysAreEqual,r=e.spliceArray,i=e.getBlockConfig,e.getBlockAttributeNames,n=e.getListAttributeNames,e.Block=function(a){function c(t,i){null==t&&(t=new e.Text),null==i&&(i=[]),c.__super__.constructor.apply(this,arguments),this.text=d(t),this.attributes=i}var h,d,u,p,f,g,m,v,b;return o(c,a),c.fromJSON=function(t){return new this(e.Text.fromJSON(t.text),t.attributes)},c.prototype.isEmpty=function(){return this.text.isBlockBreak()},c.prototype.isEqualTo=function(e){return c.__super__.isEqualTo.apply(this,arguments)||this.text.isEqualTo(null!=e?e.text:void 0)&&t(this.attributes,null!=e?e.attributes:void 0)},c.prototype.copyWithText=function(t){return new this.constructor(t,this.attributes)},c.prototype.copyWithoutText=function(){return this.copyWithText(null)},c.prototype.copyWithAttributes=function(t){return new this.constructor(this.text,t)},c.prototype.copyWithoutAttributes=function(){return this.copyWithAttributes(null)},c.prototype.copyUsingObjectMap=function(t){var e;return this.copyWithText((e=t.find(this.text))?e:this.text.copyUsingObjectMap(t))},c.prototype.addAttribute=function(t){var e;return e=this.attributes.concat(p(t)),this.copyWithAttributes(e)},c.prototype.removeAttribute=function(t){var e,n;return n=i(t).listAttribute,e=g(g(this.attributes,t),n),this.copyWithAttributes(e)},c.prototype.removeLastAttribute=function(){return this.removeAttribute(this.getLastAttribute())},c.prototype.getLastAttribute=function(){return f(this.attributes)},c.prototype.getAttributes=function(){return this.attributes.slice(0)},c.prototype.getAttributeLevel=function(){return this.attributes.length},c.prototype.getAttributeAtLevel=function(t){return this.attributes[t-1]},c.prototype.hasAttribute=function(t){return s.call(this.attributes,t)>=0},c.prototype.hasAttributes=function(){return this.getAttributeLevel()>0},c.prototype.getLastNestableAttribute=function(){return f(this.getNestableAttributes())},c.prototype.getNestableAttributes=function(){var t,e,n,r,o;for(o=[],e=0,n=(r=this.attributes).length;n>e;e++)t=r[e],i(t).nestable&&o.push(t);return o},c.prototype.getNestingLevel=function(){return this.getNestableAttributes().length},c.prototype.decreaseNestingLevel=function(){var t;return(t=this.getLastNestableAttribute())?this.removeAttribute(t):this},c.prototype.increaseNestingLevel=function(){var t,e,i;return(t=this.getLastNestableAttribute())?(i=this.attributes.lastIndexOf(t),e=r.apply(null,[this.attributes,i+1,0].c
61oncat(l.call(p(t)))),this.copyWithAttributes(e)):this},c.prototype.getListItemAttributes=function(){var t,e,n,r,o;for(o=[],e=0,n=(r=this.attributes).length;n>e;e++)t=r[e],i(t).listAttribute&&o.push(t);return o},c.prototype.isListItem=function(){var t;return null!=(t=i(this.getLastAttribute()))?t.listAttribute:void 0},c.prototype.isTerminalBlock=function(){var t;return null!=(t=i(this.getLastAttribute()))?t.terminal:void 0},c.prototype.breaksOnReturn=function(){var t;return null!=(t=i(this.getLastAttribute()))?t.breakOnReturn:void 0},c.prototype.findLineBreakInDirectionFromPosition=function(t,e){var i,n;return n=this.toString(),-1!==(i=function(){switch(t){case"forward":return n.indexOf("\n",e);case"backward":return n.slice(0,e).lastIndexOf("\n")}}())?i:void 0},c.prototype.contentsForInspection=function(){return{text:this.text.inspect(),attributes:this.attributes}},c.prototype.toString=function(){return this.text.toString()},c.prototype.toJSON=function(){return{text:this.text,attributes:this.attributes}},c.prototype.getLength=function(){return this.text.getLength()},c.prototype.canBeConsolidatedWith=function(t){return!this.hasAttributes()&&!t.hasAttributes()},c.prototype.consolidateWith=function(t){var i,n;return i=e.Text.textForStringWithAttributes("\n"),n=this.getTextWithoutBlockBreak().appendText(i),this.copyWithText(n.appendText(t.text))},c.prototype.splitAtOffset=function(t){var e,i;return 0===t?(e=null,i=this):t===this.getLength()?(e=this,i=null):(e=this.copyWithText(this.text.getTextAtRange([0,t])),i=this.copyWithText(this.text.getTextAtRange([t,this.getLength()]))),[e,i]},c.prototype.getBlockBreakPosition=function(){return this.text.getLength()-1},c.prototype.getTextWithoutBlockBreak=function(){return m(this.text)?this.text.getTextAtRange([0,this.getBlockBreakPosition()]):this.text.copy()},c.prototype.canBeGrouped=function(t){return this.attributes[t]},c.prototype.canBeGroupedWith=function(t,e){var r,o,a,l;return o=(a=t.getAttributes())[e],(r=this.attributes[e])===o&&!(!1===i(r).group&&(l=a[e+1],s.call(n(),l)<0))},d=function(t){return t=b(t),h(t)},b=function(t){var i,n,r,o,a,s;return o=!1,s=t.getPieces(),n=2<=s.length?l.call(s,0,i=s.length-1):(i=0,[]),null==(r=s[i++])?t:(n=function(){var t,e,i;for(i=[],t=0,e=n.length;e>t;t++)(a=n[t]).isBlockBreak()?(o=!0,i.push(v(a))):i.push(a);return i}(),o?new e.Text(l.call(n).concat([r])):t)},u=e.Text.textForStringWithAttributes("\n",{blockBreak:!0}),h=function(t){return m(t)?t:t.appendText(u)},m=function(t){var e;return 0!==(e=t.getLength())&&t.getTextAtRange([e-1,e]).isBlockBreak()},v=function(t){return t.copyWithoutAttribute("blockBreak")},p=function(t){
62var e;return null!=(e=i(t).listAttribute)?[e,t]:[t]},f=function(t){return t.slice(-1)[0]},g=function(t,e){var i;return-1===(i=t.lastIndexOf(e))?t:r(t,i,1)},c}(e.Object)}.call(this),function(){var t,i,n,r=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},o={}.hasOwnProperty,a=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1},s=[].slice;i=e.tagName,n=e.walkTree,t=e.nodeIsAttachmentElement,e.HTMLSanitizer=function(o){function l(t,e){var i;i=null!=e?e:{},this.allowedAttributes=i.allowedAttributes,this.forbiddenProtocols=i.forbiddenProtocols,null==this.allowedAttributes&&(this.allowedAttributes=c),null==this.forbiddenProtocols&&(this.forbiddenProtocols=h),this.body=d(t)}var c,h,d,u;return r(l,o),c="style href src width height class".split(" "),h="javascript:".split(" "),l.sanitize=function(t,e){var i;return(i=new this(t,e)).sanitize(),i},l.prototype.sanitize=function(){return this.sanitizeElements(),this.normalizeListElementNesting()},l.prototype.getHTML=function(){return this.body.innerHTML},l.prototype.getBody=function(){return this.body},l.prototype.sanitizeElements=function(){var t,i,r,o,a;for(a=n(this.body),o=[];a.nextNode();)switch(r=a.currentNode,r.nodeType){case Node.ELEMENT_NODE:u(r)?o.push(r):this.sanitizeElement(r);break;case Node.COMMENT_NODE:o.push(r)}for(t=0,i=o.length;i>t;t++)r=o[t],e.removeNode(r);return this.body},l.prototype.sanitizeElement=function(t){var e,i,n,r,o;for(t.hasAttribute("href")&&(r=t.protocol,a.call(this.forbiddenProtocols,r)>=0&&t.removeAttribute("href")),e=0,i=(o=s.call(t.attributes)).length;i>e;e++)n=o[e].name,a.call(this.allowedAttributes,n)>=0||0===n.indexOf("data-trix")||t.removeAttribute(n);return t},l.prototype.normalizeListElementNesting=function(){var t,e,n,r,o;for(t=0,e=(o=s.call(this.body.querySelectorAll("ul,ol"))).length;e>t;t++)(r=(n=o[t]).previousElementSibling)&&"li"===i(r)&&r.appendChild(n);return this.body},u=function(e){return(null!=e?e.nodeType:void 0)!==Node.ELEMENT_NODE||t(e)?void 0:"script"===i(e)||"false"===e.getAttribute("data-trix-serialize")},d=function(t){var e,i,n,r,o;for(null==t&&(t=""),t=t.replace(/<\/html[^>]*>[^]*$/i,"</html>"),(e=document.implementation.createHTMLDocument("")).documentElement.innerHTML=t,n=0,r=(o=e.head.querySelectorAll("style")).length;r>n;n++)i=o[n],e.body.appendChild(i);return e.body},l}(e.BasicObject)}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d,u=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty,f=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};t=e.arraysAreEqual,a=e.makeElement,h=e.tagName,o=e.getBlockTagNames,d=e.walkTree,r=e.findClosestElementFromNode,n=e.elementContainsNode,s=e.nodeIsAttachmentElement,l=e.normalizeSpaces,i=e.breakableWhitespacePattern,c=e.squishBreakableWhitespace,e.HTMLParser=function(p){function g(t,e){this.html=t,this.referenceElement=(null!=e?e:{}).referenceElement,this.blocks=[],this.blockElements=[],this.processedElements=[]}var m,v,b,y,x,w,_,C,S,k,A,T;return u(g,p),g.parse=function(t,e){var i;return(i=new this(t,e)).parse(),i},g.prototype.getDocument=function(){return e.Document.fromJSON(this.blocks)},g.prototype.parse=function(){var t,i;try{for(this.createHiddenContainer(),t=e.HTMLSanitizer.sanitize(this.html).getHTML(),this.containerElement.innerHTML=t,i=d(this.containerElement,{usingFilter:C});i.nextNode();)this.processNode(i.currentNode);return this.translateBlockElementMarginsToNewlines()}finally{this.removeHiddenContainer()}},g.prototype.createHiddenContainer=function(){return this.referenceElement?(this.containerElement=this.referenceElement.cloneNode(!1),this.containerElement.removeAttribute("id"),this.containerElement.setAttribute("data-trix-internal",""),this.containerElement.style.display="none",this.referenceElement.parentNode.insertBefore(this.containerElement,this.referenceElement.nextSibling)):(this.containerElement=a({tagName:"div",style:{display:"none"}}),document.body.appendChild(this.containerElement))},g.prototype.removeHiddenContainer=function(){return e.removeNode(this.containerElement)},C=function(t){return"style"===h(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},g.prototype.processNode=function(t){switch(t.nodeType){case Node.TEXT_NODE:if(!this.isInsignificantTextNode(t))return this.appendBlockForTextNode(t),this.processTextNode(t);break;case Node.ELEMENT_NODE:return this.appendBlockForElement(t),this.processElement(t)}},g.prototype.appendBlockForTextNode=function(e){var i,n,r;return(n=e.parentNode)===this.currentBlockElement||n!==this.containerElement&&!this.isBlockElement(n)?void 0:(i=this.getBlockAttributes(n),t(i,null!=(r=this.currentBlock)?r.attributes:void 0)?void 0:(this.currentBlock=this.appendBlockForAttributesWithElement(i,n),this.currentBlockElement=n))},g.prototype.appendBlockForElement=function(e){var i,r,o,a;if(o=this.isBlockElement(e),r=n(this.currentBlockElement,e),o&&!this.isBlockElement(e.firstChild)){if(!(this.isInsignificantTextNode(e.firstChild)&&this.isBlockElement(e.firstElementChild)||(i=this.getBlockAttributes(e),r&&t(i,this.currentBlock.attributes))))return this.currentBlock=this.appendBlockForAttributesWithElement(i,e),this.currentBlockElement=e}else if(this.currentBlockElement&&!r&&!o)return(a=this.findParentBlockElement(e))?this.appendBlockForElement(a):(this.currentBlock=this.appendEmptyBlock(),this.currentBlockElement=null)},g.prototype.findParentBlockElement=function(t){var e;
62for(e=t.parentElement;e&&e!==this.containerElement;){if(this.isBlockElement(e)&&f.call(this.blockElements,e)>=0)return e;e=e.parentElement}return null},g.prototype.processTextNode=function(t){var e,i;return i=t.data,v(t.parentNode)||(i=c(i),A(null!=(e=t.previousSibling)?e.textContent:void 0)&&(i=w(i))),this.appendStringWithAttributes(i,this.getTextAttributes(t.parentNode))},g.prototype.processElement=function(t){var e,i,n,r,o;if(s(t))return e=b(t),Object.keys(e).length&&(r=this.getTextAttributes(t),this.appendAttachmentWithAttributes(e,r),t.innerHTML=""),this.processedElements.push(t);switch(h(t)){case"br":return this.isExtraBR(t)||this.isBlockElement(t.nextSibling)||this.appendStringWithAttributes("\n",this.getTextAttributes(t)),this.processedElements.push(t);case"img":for(i in e={url:t.getAttribute("src"),contentType:"image"},n=x(t))o=n[i],e[i]=o;return this.appendAttachmentWithAttributes(e,this.getTextAttributes(t)),this.processedElements.push(t);case"tr":if(t.parentNode.firstChild!==t)return this.appendStringWithAttributes("\n");break;case"td":if(t.parentNode.firstChild!==t)return this.appendStringWithAttributes(" | ")}},g.prototype.appendBlockForAttributesWithElement=function(t,e){var i;return this.blockElements.push(e),i=m(t),this.blocks.push(i),i},g.prototype.appendEmptyBlock=function(){return this.appendBlockForAttributesWithElement([],null)},g.prototype.appendStringWithAttributes=function(t,e){return this.appendPiece(k(t,e))},g.prototype.appendAttachmentWithAttributes=function(t,e){return this.appendPiece(S(t,e))},g.prototype.appendPiece=function(t){return 0===this.blocks.length&&this.appendEmptyBlock(),this.blocks[this.blocks.length-1].text.push(t)},g.prototype.appendStringToTextAtIndex=function(t,e){var i,n;return"string"===(null!=(i=(n=this.blocks[e].text)[n.length-1])?i.type:void 0)?i.string+=t:n.push(k(t))},g.prototype.prependStringToTextAtIndex=function(t,e){var i,n;return"string"===(null!=(i=(n=this.blocks[e].text)[0])?i.type:void 0)?i.string=t+i.string:n.unshift(k(t))},k=function(t,e){var i;return null==e&&(e={}),i="string",{string:t=l(t),attributes:e,type:i}},S=function(t,e){return null==e&&(e={}),{attachment:t,attributes:e,type:"attachment"}},m=function(t){return null==t&&(t={}),{text:[],attributes:t}},g.prototype.getTextAttributes=function(t){var i,n,o,a,l,c,h,d,u,p,f,g,m;for(i in o={},p=e.config.textAttributes)if((l=p[i]).tagName&&r(t,{matchingSelector:l.tagName,untilNode:this.containerElement}))o[i]=!0;else if(l.parser){if(m=l.parser(t)){for(n=!1,c=0,u=(f=this.findBlockElementAncestors(t)).length;u>c;c++)if(a=f[c],l.parser(a)===m){n=!0;break}n||(o[i]=m)}}else l.styleProperty&&(m=t.style[l.styleProperty])&&(o[i]=m);if(s(t)&&(h=t.getAttribute("data-trix-attributes")))for(d in g=JSON.parse(h))m=g[d],o[d]=m;return o},g.prototype.getBlockAttributes=function(t){var i,n,r,o;for(n=[];t&&t!==this.containerElement;){for(i in o=e.config.blockAttributes)!1!==(r=o[i]).parse&&h(t)===r.tagName&&(("function"==typeof r.test?r.test(t):void 0)||!r.test)&&(n.push(i),r.listAttribute&&n.push(r.listAttribute));t=t.parentNode}return n.reverse()},g.prototype.findBlockElementAncestors=function(t){var e,i;for(e=[];t&&t!==this.containerElement;)i=h(t),f.call(o(),i)>=0&&e.push(t),t=t.parentNode;return e},b=function(t){return JSON.parse(t.getAttribute("data-trix-attachment"))},x=function(t){var e,i,n;return n=t.getAttribute("width"),i=t.getAttribute("height"),e={},n&&(e.width=parseInt(n,10)),i&&(e.height=parseInt(i,10)),e},g.prototype.isBlockElement=function(t){var e;if((null!=t?t.nodeType:void 0)===Node.ELEMENT_NODE&&!s(t)&&!r(t,{matchingSelector:"td",untilNode:this.containerElement}))return e=h(t),f.call(o(),e)>=0||"block"===window.getComputedStyle(t).display},g.prototype.isInsignificantTextNode=function(t){var e,i,n;if((null!=t?t.nodeType:void 0)===Node.TEXT_NODE&&T(t.data)&&(i=t.parentNode,n=t.previousSibling,e=t.nextSibling,(!_(i.previousSibling)||this.isBlockElement(i.previousSibling))&&!v(i)))return!n||this.isBlockElement(n)||!e||this.isBlockElement(e)},g.prototype.isExtraBR=function(t){return"br"===h(t)&&this.isBlockElement(t.parentNode)&&t.parentNode.lastChild===t},v=function(t){var e;return"pre"===(e=window.getComputedStyle(t).whiteSpace)||"pre-wrap"===e||"pre-line"===e},_=function(t){return t&&!A(t.textContent)},g.prototype.translateBlockElementMarginsToNewlines=function(){var t,e,i,n,r,o,a;for(t=this.getMarginOfDefaultBlockElement(),a=[],i=e=0,n=(o=this.blocks).length;n>e;i=++e)o[i],(r=this.getMarginOfBlockElementAtIndex(i))&&(r.top>2*t.top&&this.prependStringToTextAtIndex("\n",i),a.push(r.bottom>2*t.bottom?this.appendStringToTextAtIndex("\n",i):void 0));return a},g.prototype.getMarginOfBlockElementAtIndex=function(t){var e,i;return!(e=this.blockElements[t])||!e.textContent||(i=h(e),f.call(o(),i)>=0||f.call(this.processedElements,e)>=0)?void 0:y(e)},g.prototype.getMarginOfDefaultBlockElement=function(){var t;return t=a(e.config.blockAttributes.default.tagName),this.containerElement.appendChild(t),y(t)},y=function(t){var e;return"block"===(e=window.getComputedStyle(t)).display?{top:parseInt(e.marginTop),bottom:parseInt(e.marginBottom)}:void 0},w=function(t){return t.replace(RegExp("^"+i.source+"+"),"")},T=function(t){return RegExp("^"+i.source+"*$").test(t)},A=function(t){return/\s$/.test(t)},g}(e.BasicObject)}.call(this),function(){var t,i,n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty,s=[].slice,l=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};t=e.arraysAreEqual,n=e.normalizeRange,r=e.rangeIsCollapsed,i=e.getBlockConfig,e.Document=function(a){function c(t){null==t&&(t=[]),c.__super__.constructor.apply(this,arguments),0===t.length&&(t=[new e.Block]),this.blockList=e.SplittableList.box(t)}var h;return o(c,a),c.fromJSON=function(t){var i,n;return n=function(){var n,r,o;for(o=[],n=0,r=t.length;r>n;n++)i=t[n],o.push(e.Block.fromJSON(i));return o}(),new this(n)},c.fromHTML=function(t,i){return e.HTMLParser.parse(t,i).getDocument()},c.fromString=function(t,i){var n;return n=e.Text.textForStringWithAttributes(t,i),new this([new e.Block(n)])},c.prototype.isEmpty=function(){var t;return 1===this.blockList.length&&((t=this.getBlockAtIndex(0)).isEmpty()&&!t.hasAttributes())},c.prototype.copy=function(t){var e;return null==t&&(t={}),e=t.consolidateBlocks?this.blockList.consolidate().toArray():this.blockList.toArray(),new this.constructor(e)},c.prototype.copyUsingObjectsFromDocument=function(t){var i;return i=new e.ObjectMap(t.getObjects()),this.copyUsingObjectMap(i)},c.prototype.copyUsingObjectMap=function(t){var e,i,n;return i=function(){var i,r,o,a;for(a=[],i=0,r=(o=this.getBlocks()).length;r>i;i++)e=o[i],a.push((n=t.find(e))?n:e.copyUsingObjectMap(t));return a}.call(this),new this.constructor(i)},c.prototype.copyWithBaseBlockAttributes=function(t){var e,i,n;return null==t&&(t=[]),n=function(){var n,r,o,a;for(a=[],n=0,r=(o=this.getBlocks()).length;r>n;n++)i=o[n],e=t.concat(i.getAttributes()),a.push(i.copyWithAttributes(e));return a}.call(this),new this.constructor(n)},c.prototype.replaceBlock=function(t,e){var i;return-1===(i=this.blockList.indexOf(t))?this:new this.constructor(this.blockList.replaceObjectAtIndex(e,i))},c.prototype.insertDocumentAtRange=function(t,e){var i,o,a,s,l,c,h;return o=t.blockList,l=(e=n(e))[0],a=(c=this.locationFromPosition(l)).index,s=c.offset,h=this,i=this.getBlockAtPosition(l),r(e)&&i.isEmpty()&&!i.hasAttributes()?h=new this.constructor(h.blockList.removeObjectAtIndex(a)):i.getBlockBreakPosition()===s&&l++,h=h.removeTextAtRange(e),new this.constructor(h.blockList.insertSplittableListAtPosition(o,l))},c.prototype.mergeDocumentAtRange=function(e,i){var r,o,a,s,l,c,h,d,u,p,f,g;return f=(i=n(i))[0],p=this.locationFromPosition(f),o=this.getBlockAtIndex(p.index).getAttributes(),r=e.getBaseBlockAttributes(),g=
62o.slice(-r.length),t(r,g)?(h=o.slice(0,-r.length),c=e.copyWithBaseBlockAttributes(h)):c=e.copy({consolidateBlocks:!0}).copyWithBaseBlockAttributes(o),a=c.getBlockCount(),s=c.getBlockAtIndex(0),t(o,s.getAttributes())?(l=s.getTextWithoutBlockBreak(),u=this.insertTextAtRange(l,i),a>1&&(c=new this.constructor(c.getBlocks().slice(1)),d=f+l.getLength(),u=u.insertDocumentAtRange(c,d))):u=this.insertDocumentAtRange(c,i),u},c.prototype.insertTextAtRange=function(t,e){var i,r,o,a,s;return s=(e=n(e))[0],r=(a=this.locationFromPosition(s)).index,o=a.offset,i=this.removeTextAtRange(e),new this.constructor(i.blockList.editObjectAtIndex(r,(function(e){return e.copyWithText(e.text.insertTextAtPosition(t,o))})))},c.prototype.removeTextAtRange=function(t){var e,i,o,a,s,l,c,h,d,u,p,f,g,m,v,b,y,x;return h=(u=t=n(t))[0],b=u[1],r(t)?this:(l=(p=this.locationRangeFromRange(t))[0],m=p[1],s=l.index,c=l.offset,a=this.getBlockAtIndex(s),g=m.index,v=m.offset,f=this.getBlockAtIndex(g),b-h==1&&a.getBlockBreakPosition()===c&&f.getBlockBreakPosition()!==v&&"\n"===f.text.getStringAtPosition(v)?o=this.blockList.editObjectAtIndex(g,(function(t){return t.copyWithText(t.text.removeTextAtRange([v,v+1]))})):(d=a.text.getTextAtRange([0,c]),y=f.text.getTextAtRange([v,f.getLength()]),x=d.appendText(y),i=s!==g&&0===c&&a.getAttributeLevel()>=f.getAttributeLevel()?f.copyWithText(x):a.copyWithText(x),e=g+1-s,o=this.blockList.splice(s,e,i)),new this.constructor(o))},c.prototype.moveTextFromRangeToPosition=function(t,e){var i,r,o,a,l,c,h,d,u,p;return u=(c=t=n(t))[0],o=c[1],e>=u&&o>=e?this:(r=this.getDocumentAtRange(t),d=this.removeTextAtRange(t),(l=e>u)&&(e-=r.getLength()),a=(h=r.getBlocks())[0],0===(i=2<=h.length?s.call(h,1):[]).length?(p=a.getTextWithoutBlockBreak(),l&&(e+=1)):p=a.text,d=d.insertTextAtRange(p,e),0===i.length?d:(r=new this.constructor(i),e+=p.getLength(),d.insertDocumentAtRange(r,e)))},c.prototype.addAttributeAtRange=function(t,e,n){var r;return r=this.blockList,this.eachBlockAtRange(n,(function(n,o,a){return r=r.editObjectAtIndex(a,(function(){return i(t)?n.addAttribute(t,e):o[0]===o[1]?n:n.copyWithText(n.text.addAttributeAtRange(t,e,o))}))})),new this.constructor(r)},c.prototype.addAttribute=function(t,e){var i;return i=this.blockList,this.eachBlock((function(n,r){return i=i.editObjectAtIndex(r,(function(){return n.addAttribute(t,e)}))})),new this.constructor(i)},c.prototype.removeAttributeAtRange=function(t,e){var n;return n=this.blockList,this.eachBlockAtRange(e,(function(e,r,o){return i(t)?n=n.editObjectAtIndex(o,(function(){return e.removeAttribute(t)})):r[0]!==r[1]?n=n.editObjectAtIndex(o,(function(){return e.copyWithText(e.text.removeAttributeAtRange(t,r))})):void 0})),new this.constructor(n)},c.prototype.updateAttributesForAttachment=function(t,e){var i,n,r;return n=this.getRangeOfAttachment(e)[0],i=this.locationFromPosition(n).index,r=this.getTextAtIndex(i),new this.constructor(this.blockList.editObjectAtIndex(i,(function(i){return i.copyWithText(r.updateAttributesForAttachment(t,e))})))},c.prototype.removeAttributeForAttachment=function(t,e){var i;return i=this.getRangeOfAttachment(e),this.removeAttributeAtRange(t,i)},c.prototype.insertBlockBreakAtRange=function(t){var i,r,o,a;return a=(t=n(t))[0],o=this.locationFromPosition(a).offset,r=this.removeTextAtRange(t),0===o&&(i=[new e.Block]),new this.constructor(r.blockList.insertSplittableListAtPosition(new e.SplittableList(i),a))},c.prototype.applyBlockAttributeAtRange=function(t,e,n){var r,o,a,s;return o=(a=this.expandRangeToLineBreaksAndSplitBlocks(n)).document,n=a.range,(r=i(t)).listAttribute?(s=(o=o.removeLastListAttributeAtRange(n,{exceptAttributeName:t})).convertLineBreaksToBlockBreaksInRange(n),o=s.document,n=s.range):o=r.exclusive?o.removeBlockAttributesAtRange(n):r.terminal?o.removeLastTerminalAttributeAtRange(n):o.consolidateBlocksAtRange(n),o.addAttributeAtRange(t,e,n)},c.prototype.removeLastListAttributeAtRange=function(t,e){var n;return null==e&&(e={}),n=this.blockList,this.eachBlockAtRange(t,(function(t,r,o){var a;if((a=t.getLastAttribute())&&i(a).listAttribute&&a!==e.exceptAttributeName)return n=n.editObjectAtIndex(o,(function(){return t.removeAttribute(a)}))})),new this.constructor(n)},c.prototype.removeLastTerminalAttributeAtRange=function(t){var e;return e=this.blockList,this.eachBlockAtRange(t,(function(t,n,r){var o;if((o=t.getLastAttribute())&&i(o).terminal)return e=e.editObjectAtIndex(r,(function(){return t.removeAttribute(o)}
62))})),new this.constructor(e)},c.prototype.removeBlockAttributesAtRange=function(t){var e;return e=this.blockList,this.eachBlockAtRange(t,(function(t,i,n){return t.hasAttributes()?e=e.editObjectAtIndex(n,(function(){return t.copyWithoutAttributes()})):void 0})),new this.constructor(e)},c.prototype.expandRangeToLineBreaksAndSplitBlocks=function(t){var e,i,r,o,a,s,l,c,h;return h=(s=t=n(t))[0],o=s[1],c=this.locationFromPosition(h),r=this.locationFromPosition(o),l=(e=this).getBlockAtIndex(c.index),null!=(c.offset=l.findLineBreakInDirectionFromPosition("backward",c.offset))&&(a=e.positionFromLocation(c),e=e.insertBlockBreakAtRange([a,a+1]),r.index+=1,r.offset-=e.getBlockAtIndex(c.index).getLength(),c.index+=1),c.offset=0,0===r.offset&&r.index>c.index?(r.index-=1,r.offset=e.getBlockAtIndex(r.index).getBlockBreakPosition()):("\n"===(i=e.getBlockAtIndex(r.index)).text.getStringAtRange([r.offset-1,r.offset])?r.offset-=1:r.offset=i.findLineBreakInDirectionFromPosition("forward",r.offset),r.offset!==i.getBlockBreakPosition()&&(a=e.positionFromLocation(r),e=e.insertBlockBreakAtRange([a,a+1]))),h=e.positionFromLocation(c),o=e.positionFromLocation(r),{document:e,range:t=n([h,o])}},c.prototype.convertLineBreaksToBlockBreaksInRange=function(t){var e,i,r;return i=(t=n(t))[0],r=this.getStringAtRange(t).slice(0,-1),e=this,r.replace(/.*?\n/g,(function(t){return i+=t.length,e=e.insertBlockBreakAtRange([i-1,i])})),{document:e,range:t}},c.prototype.consolidateBlocksAtRange=function(t){var e,i,r,o,a;return a=(r=t=n(t))[0],i=r[1],o=this.locationFromPosition(a).index,e=this.locationFromPosition(i).index,new this.constructor(this.blockList.consolidateFromIndexToIndex(o,e))},c.prototype.getDocumentAtRange=function(t){var e;return t=n(t),e=this.blockList.getSplittableListInRange(t).toArray(),new this.constructor(e)},c.prototype.getStringAtRange=function(t){var e,i;return(i=t=n(t))[i.length-1]!==this.getLength()&&(e=-1),this.getDocumentAtRange(t).toString().slice(0,e)},c.prototype.getBlockAtIndex=function(t){return this.blockList.getObjectAtIndex(t)},c.prototype.getBlockAtPosition=function(t){var e;return e=this.locationFromPosition(t).index,this.getBlockAtIndex(e)},c.prototype.getTextAtIndex=function(t){var e;return null!=(e=this.getBlockAtIndex(t))?e.text:void 0},c.prototype.getTextAtPosition=function(t){var e;return e=this.locationFromPosition(t).index,this.getTextAtIndex(e)},c.prototype.getPieceAtPosition=function(t){var e,i,n;return e=(n=this.locationFromPosition(t)).index,i=n.offset,this.getTextAtIndex(e).getPieceAtPosition(i)},c.prototype.getCharacterAtPosition=function(t){var e,i,n;return e=(n=this.locationFromPosition(t)).index,i=n.offset,this.getTextAtIndex(e).getStringAtRange([i,i+1])},c.prototype.getLength=function(){return this.blockList.getEndPosition()},c.prototype.getBlocks=function(){return this.blockList.toArray()},c.prototype.getBlockCount=function(){return this.blockList.length},c.prototype.getEditCount=function(){return this.editCount},c.prototype.eachBlock=function(t){return this.blockList.eachObject(t)},c.prototype.eachBlockAtRange=function(t,e){var i,r,o,a,s,l,c,h,d,u,p,f;if(p=(l=t=n(t))[0],o=l[1],u=this.locationFromPosition(p),r=this.locationFromPosition(o),u.index===r.index)return i=this.getBlockAtIndex(u.index),f=[u.offset,r.offset],e(i,f,u.index);for(d=[],s=a=c=u.index,h=r.index;h>=c?h>=a:a>=h;s=h>=c?++a:--a)(i=this.getBlockAtIndex(s))?(f=function(){switch(s){case u.index:return[u.offset,i.text.getLength()];case r.index:return[0,r.offset];default:return[0,i.text.getLength()]}}(),d.push(e(i,f,s))):d.push(void 0);return d},c.prototype.getCommonAttributesAtRange=function(t){var i,o,a;return o=(t=n(t))[0],r(t)?this.getCommonAttributesAtPosition(o):(a=[],i=[],this.eachBlockAtRange(t,(function(t,e){return e[0]!==e[1]?(a.push(t.text.getCommonAttributesAtRange(e)),i.push(h(t))):void 0})),e.Hash.fromCommonAttributesOfObjects(a).merge(e.Hash.fromCommonAttributesOfObjects(i)).toObject())},c.prototype.getCommonAttributesAtPosition=function(t){var i,n,r,o,a,s,c,d,u,p;if(a=(u=this.locationFromPosition(t)).index,d=u.offset,!(r=this.getBlockAtIndex(a)))return{};for(c in o=h(r),i=r.text.getAttributesAtPosition(d),n=r.text.getAttributesAtPosition(d-1),s=function(){var t,i;for(c in i=[],t=e.config.textAttributes)(p=t[c]).inheritable&&i.push(c);return i}(),n)((p=n[c])===i[c]||l.call(s,c)>=0)&&(o[c]=p);return o},c.prototype.getRangeOfCommonAttributeAtPosition=function(t,e){var i,r,o,a,s,l,c,h;return o=(s=this.locationFromPosition(e)).index,a=s.offset,h=(l=this.getTextAtIndex(o).getExpandedRangeForAttributeAtOffset(t,a))[0],r=l[1],c=this.positionFromLocation({index:o,offset:h}),i=this.positionFromLocation({index:o,offset:r}),n([c,i])},c.prototype.getBaseBlockAttributes=function(){var t,e,i,n,r,o,a;for(t=this.getBlockAtIndex(0).getAttributes(),i=n=1,a=this.getBlockCount();a>=1?a>n:n>a;i=a>=1?++n:--n)e=this.getBlockAtIndex(i).getAttributes(),o=Math.min(t.length,e.length),t=function(){var i,n,a;for(a=[],r=i=0,n=o;(n>=0?n>i:i>n)&&e[r]===t[r];r=n>=0?++i:--i)a.push(e[r]);return a}();return t},h=function(t){var e,i;return i={},(e=t.getLastAttribute())&&(i[e]=!0),i},c.prototype.getAttachmentById=function(t){var e,i,n,r;for(i=0,n=(r=this.getAttachments()).length;n>i;i++)if((e=r[i]).id===t)return e},c.prototype.getAttachmentPieces=function(){var t;return t=[],this.blockList.eachObject((function(e){var i;return i=e.text,t=t.concat(i.getAttachmentPieces())})),t},c.prototype.getAttachments=function(){var t,e,i,n,r;for(r=[],t=0,e=(n=this.getAttachmentPieces()).length;e>t;t++)i=n[t],r.push(i.attachment);return r},c.prototype.getRangeOfAttachment=function(t){var e,i,r,o,a,s,l;for(o=0,i=e=0,r=(a=this.blockList.toArray()).length;r>e;i=++e){if(l=(s=a[i].text).getRangeOfAttachment(t))return n([o+l[0],o+l[1]]);o+=s.getLength()}},c.prototype.getLocationRangeOfAttachment=function(t){var e;return e=this.getRangeOfAttachment(t),this.locationRangeFromRange(e)},c.prototype.getAttachmentPieceForAttachment=function(t){var e,i,n,r;for(e=0,i=(r=this.getAttachmentPieces()).length;i>e;e++)if((n=r[e]).attachment===t)return n},c.prototype.findRangesForBlockAttribute=function(t){var e,i,n,r,o,a,s;for(o=0,a=[],i=0,n=(s=this.getBlocks()).length;n>i;i++)r=(e=s[i]).getLength(),e.hasAttribute(t)&&a.push([o,o+r]),o+=r;return a},c.prototype.findRangesForTextAttribute=function(t,e){var i,n,r,o,a,s,l,c,h,d;for(d=(null!=e?e:{}).withValue,s=0,l=[],c=[],o=function(e){return null!=d?e.getAttribute(t)===d:e.hasAttribute(t)},i=0,n=(h=this.getPieces()).length;n>i;i++)r=(a=h[i]).getLength(),o(a)&&(l[1]===s?l[1]=s+r:c.push(l=[s,s+r])),s+=r;return c},c.prototype.locationFromPosition=function(t){var e,i;return null!=(i=this.blockList.findIndexAndOffsetAtPosition(Math.max(0,t))).index?i:{index:(e=this.getBlocks()).length-1,offset:e[e.length-1].getLength()}},c.prototype.positionFromLocation=function(t){return this.blockList.findPositionAtIndexAndOffset(t.index,t.offset)},c.prototype.locationRangeFromPosition=function(t){return n(this.locationFromPosition(t))},c.prototype.locationRangeFromRange=function(t){var e,i,r,o;
62if(t=n(t))return o=t[0],i=t[1],r=this.locationFromPosition(o),e=this.locationFromPosition(i),n([r,e])},c.prototype.rangeFromLocationRange=function(t){var e,i;return t=n(t),e=this.positionFromLocation(t[0]),r(t)||(i=this.positionFromLocation(t[1])),n([e,i])},c.prototype.isEqualTo=function(t){return this.blockList.isEqualTo(null!=t?t.blockList:void 0)},c.prototype.getTexts=function(){var t,e,i,n,r;for(r=[],e=0,i=(n=this.getBlocks()).length;i>e;e++)t=n[e],r.push(t.text);return r},c.prototype.getPieces=function(){var t,e,i,n,r;for(i=[],t=0,e=(n=this.getTexts()).length;e>t;t++)r=n[t],i.push.apply(i,r.getPieces());return i},c.prototype.getObjects=function(){return this.getBlocks().concat(this.getTexts()).concat(this.getPieces())},c.prototype.toSerializableDocument=function(){var t;return t=[],this.blockList.eachObject((function(e){return t.push(e.copyWithText(e.text.toSerializableText()))})),new this.constructor(t)},c.prototype.toString=function(){return this.blockList.toString()},c.prototype.toJSON=function(){return this.blockList.toJSON()},c.prototype.toConsole=function(){var t;return JSON.stringify(function(){var e,i,n,r;for(r=[],e=0,i=(n=this.blockList.toArray()).length;i>e;e++)t=n[e],r.push(JSON.parse(t.text.toConsole()));return r}.call(this))},c}(e.Object)}.call(this),function(){e.LineBreakInsertion=function(){function t(t){var e;this.composition=t,this.document=this.composition.document,e=this.composition.getSelectedRange(),this.startPosition=e[0],this.endPosition=e[1],this.startLocation=this.document.locationFromPosition(this.startPosition),this.endLocation=this.document.locationFromPosition(this.endPosition),this.block=this.document.getBlockAtIndex(this.endLocation.index),this.breaksOnReturn=this.block.breaksOnReturn(),this.previousCharacter=this.block.text.getStringAtPosition(this.endLocation.offset-1),this.nextCharacter=this.block.text.getStringAtPosition(this.endLocation.offset)}return t.prototype.shouldInsertBlockBreak=function(){return this.block.hasAttributes()&&this.block.isListItem()&&!this.block.isEmpty()?0!==this.startLocation.offset:this.breaksOnReturn&&"\n"!==this.nextCharacter},t.prototype.shouldBreakFormattedBlock=function(){return this.block.hasAttributes()&&!this.block.isListItem()&&(this.breaksOnReturn&&"\n"===this.nextCharacter||"\n"===this.previousCharacter)},t.prototype.shouldDecreaseListLevel=function(){return this.block.hasAttributes()&&this.block.isListItem()&&this.block.isEmpty()},t.prototype.shouldPrependListItem=function(){return this.block.isListItem()&&0===this.startLocation.offset&&!this.block.isEmpty()},t.prototype.shouldRemoveLastBlockAttribute=function(){return this.block.hasAttributes()&&!this.block.isListItem()&&this.block.isEmpty()},t}()}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d=function(t,e){function i(){this.constructor=t}for(var n in e)u.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},u={}.hasOwnProperty;a=e.normalizeRange,c=e.rangesAreEqual,l=e.rangeIsCollapsed,s=e.objectsAreEqual,t=e.arrayStartsWith,h=e.summarizeArrayChange,n=e.getAllAttributeNames,r=e.getBlockConfig,o=e.getTextConfig,i=e.extend,e.Composition=function(u){function p(){this.document=new e.Document,this.attachments=[],this.currentAttributes={},this.revision=0}var f;return d(p,u),p.prototype.setDocument=function(t){var e;return t.isEqualTo(this.document)?void 0:(this.document=t,this.refreshAttachments(),this.revision++,null!=(e=this.delegate)&&"function"==typeof e.compositionDidChangeDocument?e.compositionDidChangeDocument(t):void 0)},p.prototype.getSnapshot=function(){return{document:this.document,selectedRange:this.getSelectedRange()}},p.prototype.loadSnapshot=function(t){var i,n,r,o;return i=t.document,o=t.selectedRange,null!=(n=this.delegate)&&"function"==typeof n.compositionWillLoadSnapshot&&n.compositionWillLoadSnapshot(),this.setDocument(null!=i?i:new e.Document),this.setSelection(null!=o?o:[0,0]),null!=(r=this.delegate)&&"function"==typeof r.compositionDidLoadSnapshot?r.compositionDidLoadSnapshot():void 0},p.prototype.insertText=function(t,e){var i,n,r,o;return o=(null!=e?e:{updatePosition:!0}).updatePosition,n=this.getSelectedRange(),this.setDocument(this.document.insertTextAtRange(t,n)),i=(r=n[0])+t.getLength(),o&&this.setSelection(i),this.notifyDelegateOfInsertionAtRange([r,i])},p.prototype.insertBlock=function(t){var i;return null==t&&(t=new e.Block),i=new e.Document([t]),this.insertDocument(i)},p.prototype.insertDocument=function(t){var i,n,r;return null==t&&(t=new e.Document),n=this.getSelectedRange(),this.setDocument(this.document.insertDocumentAtRange(t,n)),i=(r=n[0])+t.getLength(),this.setSelection(i),this.notifyDelegateOfInsertionAtRange([r,i])},p.prototype.insertString=function(t,i){var n,r;return n=this.getCurrentTextAttributes(),r=e.Text.textForStringWithAttributes(t,n),this.insertText(r,i)},p.prototype.insertBlockBreak=function(){var t,e,i;return e=this.getSelectedRange(),this.setDocument(this.document.insertBlockBreakAtRange(e)),t=(i=e[0])+1,this.setSelection(t),this.notifyDelegateOfInsertionAtRange([i,t])},p.prototype.insertLineBreak=function(){var t,i;return(i=new e.LineBreakInsertion(this)).shouldDecreaseListLevel()?(this.decreaseListLevel(),this.setSelection(i.startPosition)):i.shouldPrependListItem()?(t=new e.Document([i.block.copyWithoutText()]),this.insertDocument(t)):i.shouldInsertBlockBreak()?this.insertBlockBreak():i.shouldRemoveLastBlockAttribute()?this.removeLastBlockAttribute():i.shouldBreakFormattedBlock()?this.breakFormattedBlock(i):this.insertString("\n")},p.prototype.insertHTML=function(t){var i,n,r,o;return i=e.Document.fromHTML(t),r=this.getSelectedRange(),this.setDocument(this.document.mergeDocumentAtRange(i,r)),n=(o=r[0])+i.getLength()-1,this.setSelection(n),this.notifyDelegateOfInsertionAtRange([o,n])},p.prototype.replaceHTML=function(t){var i,n,r;return i=e.Document.fromHTML(t).copyUsingObjectsFromDocument(this.document),n=this.getLocationRange({strict:!1}),r=this.document.rangeFromLocationRange(n),this.setDocument(i),this.setSelection(r)},p.prototype.insertFile=function(t){return this.insertFiles([t])},p.prototype.insertFiles=function(t){var i,n,r,o,a,s;for(n=[],o=0,a=t.length;a>o;o++)r=t[o],(null!=(s=this.delegate)?s.compositionShouldAcceptFile
62(r):void 0)&&(i=e.Attachment.attachmentForFile(r),n.push(i));return this.insertAttachments(n)},p.prototype.insertAttachment=function(t){return this.insertAttachments([t])},p.prototype.insertAttachments=function(t){var i,n,r,o,a,s,l,c,h;for(c=new e.Text,o=0,a=t.length;a>o;o++)h=(i=t[o]).getType(),s=null!=(l=e.config.attachments[h])?l.presentation:void 0,r=this.getCurrentTextAttributes(),s&&(r.presentation=s),n=e.Text.textForAttachmentWithAttributes(i,r),c=c.appendText(n);return this.insertText(c)},p.prototype.shouldManageDeletingInDirection=function(t){var e;if(e=this.getLocationRange(),l(e)){if("backward"===t&&0===e[0].offset)return!0;if(this.shouldManageMovingCursorInDirection(t))return!0}else if(e[0].index!==e[1].index)return!0;return!1},p.prototype.deleteInDirection=function(t,e){var i,n,r,o,a,s,c,h;return o=(null!=e?e:{}).length,a=this.getLocationRange(),s=this.getSelectedRange(),(c=l(s))?r="backward"===t&&0===a[0].offset:h=a[0].index!==a[1].index,!(r&&this.canDecreaseBlockAttributeLevel()&&(n=this.getBlock(),n.isListItem()?this.decreaseListLevel():this.decreaseBlockAttributeLevel(),this.setSelection(s[0]),n.isEmpty()))&&(c&&(s=this.getExpandedRangeInDirection(t,{length:o}),"backward"===t&&(i=this.getAttachmentAtRange(s))),i?(this.editAttachment(i),
63!1):(this.setDocument(this.document.removeTextAtRange(s)),this.setSelection(s[0]),!r&&!h&&void 0))},p.prototype.moveTextFromRange=function(t){var e;return e=this.getSelectedRange()[0],this.setDocument(this.document.moveTextFromRangeToPosition(t,e)),this.setSelection(e)},p.prototype.removeAttachment=function(t){var e;return(e=this.document.getRangeOfAttachment(t))?(this.stopEditingAttachment(),this.setDocument(this.document.removeTextAtRange(e)),this.setSelection(e[0])):void 0},p.prototype.removeLastBlockAttribute=function(){var t,e,i,n;return n=(i=this.getSelectedRange())[0],e=i[1],t=this.document.getBlockAtPosition(e),this.removeCurrentAttribute(t.getLastAttribute()),this.setSelection(n)},f=" ",p.prototype.insertPlaceholder=function(){return this.placeholderPosition=this.getPosition(),this.insertString(f)},p.prototype.selectPlaceholder=function(){return null!=this.placeholderPosition?(this.setSelectedRange([this.placeholderPosition,this.placeholderPosition+f.length]),this.getSelectedRange()):void 0},p.prototype.forgetPlaceholder=function(){return this.placeholderPosition=null},p.prototype.hasCurrentAttribute=function(t){var e;return null!=(e=this.currentAttributes[t])&&!1!==e},p.prototype.toggleCurrentAttribute=function(t){var e;return(e=!this.currentAttributes[t])?this.setCurrentAttribute(t,e):this.removeCurrentAttribute(t)},p.prototype.canSetCurrentAttribute=function(t){return r(t)?this.canSetCurrentBlockAttribute(t):this.canSetCurrentTextAttribute(t)},p.prototype.canSetCurrentTextAttribute=function(){var t,e,i,n;if(t=this.getSelectedDocument()){for(e=0,i=(n=t.getAttachments()).length;i>e;e++)if(!n[e].hasContent())return!1;return!0}},p.prototype.canSetCurrentBlockAttribute=function(){var t;if(t=this.getBlock())return!t.isTerminalBlock()},p.prototype.setCurrentAttribute=function(t,e){return r(t)?this.setBlockAttribute(t,e):(this.setTextAttribute(t,e),this.currentAttributes[t]=e,this.notifyDelegateOfCurrentAttributesChange())},p.prototype.setTextAttribute=function(t,i){var n,r;if(n=this.getSelectedRange())return n[0]!==n[1]?this.setDocument(this.document.addAttributeAtRange(t,i,n)):"href"===t?(r=e.Text.textForStringWithAttributes(i,{href:i}),this.insertText(r)):void 0},p.prototype.setBlockAttribute=function(t,e){var i;if(i=this.getSelectedRange())return this.canSetCurrentAttribute(t)?(this.getBlock(),this.setDocument(this.document.applyBlockAttributeAtRange(t,e,i)),this.setSelection(i)):void 0},p.prototype.removeCurrentAttribute=function(t){return r(t)?(this.removeBlockAttribute(t),this.updateCurrentAttributes()):(this.removeTextAttribute(t),delete this.currentAttributes[t],this.notifyDelegateOfCurrentAttributesChange())},p.prototype.removeTextAttribute=function(t){var e;if(e=this.getSelectedRange())return this.setDocument(this.document.removeAttributeAtRange(t,e))},p.prototype.removeBlockAttribute=function(t){var e;if(e=this.getSelectedRange())return this.setDocument(this.document.removeAttributeAtRange(t,e))},p.prototype.canDecreaseNestingLevel=function(){var t;return(null!=(t=this.getBlock())?t.getNestingLevel():void 0)>0},p.prototype.canIncreaseNestingLevel=function(){var e,i,n;if(e=this.getBlock())return null!=(n=r(e.getLastNestableAttribute()))&&n.listAttribute?(i=this.getPreviousBlock())?t(i.getListItemAttributes(),e.getListItemAttributes()):void 0:e.getNestingLevel()>0},p.prototype.decreaseNestingLevel=function(){var t;if(t=this.getBlock())return this.setDocument(this.document.replaceBlock(t,t.decreaseNestingLevel()))},p.prototype.increaseNestingLevel=function(){var t;if(t=this.getBlock())return this.setDocument(this.document.replaceBlock(t,t.increaseNestingLevel()))},p.prototype.canDecreaseBlockAttributeLevel=function(){var t;return(null!=(t=this.getBlock())?t.getAttributeLevel():void 0)>0},p.prototype.decreaseBlockAttributeLevel=function(){var t,e;return(t=null!=(e=this.getBlock())?e.getLastAttribute():void 0)?this.removeCurrentAttribute(t):void 0},p.prototype.decreaseListLevel=function(){var t,e,i,n,r,o;for(o=this.getSelectedRange()[0],i=r=this.document.locationFromPosition(o).index,t=this.getBlock().getAttributeLevel();(e=this.document.getBlockAtIndex(i+1))&&e.isListItem()&&e.getAttributeLevel()>t;)i++;return o=this.document.positionFromLocation({index:r,offset:0}),n=this.document.positionFromLocation({index:i,offset:0}),this.setDocument(this.document.removeLastListAttributeAtRange([o,n]))},p.prototype.updateCurrentAttributes=function(){var t,e,i,r,o,a;if(a=this.getSelectedRange({ignoreLock:!0})){for(e=this.document.getCommonAttributesAtRange(a),i=0,r=(o=n()).length;r>i;i++)e[t=o[i]]||this.canSetCurrentAttribute(t)||(e[t]=!1);if(!s(e,this.currentAttributes))return this.currentAttributes=e,this.notifyDelegateOfCurrentAttributesChange()}},p.prototype.getCurrentAttributes=function(){return i.call({},this.currentAttributes)},p.prototype.getCurrentTextAttributes=function(){var t,e,i,n;for(e in t={},i=this.currentAttributes)!1!==(n=i[e])&&o(e)&&(t[e]=n);return t},p.prototype.freezeSelection=function(){return this.setCurrentAttribute("frozen",!0)},p.prototype.thawSelection=function(){return this.removeCurrentAttribute("frozen")},p.prototype.hasFrozenSelection=function(){return this.hasCurrentAttribute("frozen")},p.proxyMethod("getSelectionManager().getPointRange"),p.proxyMethod("getSelectionManager().setLocationRangeFromPointRange"),p.proxyMethod("getSelectionManager().createLocationRangeFromDOMRange"),p.proxyMethod("getSelectionManager().locationIsCursorTarget"),p.proxyMethod("getSelectionManager().selectionIsExpanded"),p.proxyMethod("delegate?.getSelectionManager"),p.prototype.setSelection=function(t){var e,i;return e=this.document.locationRangeFromRange(t),null!=(i=this.delegate)?i.compositionDidRequestChangingSelectionToLocationRange(e):void 0},p.prototype.getSelectedRange=function(){var t;return(t=this.getLocationRange())?this.document.rangeFromLocationRange(t):void 0},p.prototype.setSelectedRange=function(t){var e;
63return e=this.document.locationRangeFromRange(t),this.getSelectionManager().setLocationRange(e)},p.prototype.getPosition=function(){var t;return(t=this.getLocationRange())?this.document.positionFromLocation(t[0]):void 0},p.prototype.getLocationRange=function(t){var e,i;return null!=(e=null!=(i=this.targetLocationRange)?i:this.getSelectionManager().getLocationRange(t))?e:a({index:0,offset:0})},p.prototype.withTargetLocationRange=function(t,e){var i;this.targetLocationRange=t;try{i=e()}finally{this.targetLocationRange=null}return i},p.prototype.withTargetRange=function(t,e){var i;return i=this.document.locationRangeFromRange(t),this.withTargetLocationRange(i,e)},p.prototype.withTargetDOMRange=function(t,e){var i;return i=this.createLocationRangeFromDOMRange(t,{strict:!1}),this.withTargetLocationRange(i,e)},p.prototype.getExpandedRangeInDirection=function(t,e){var i,n,r,o;return n=(null!=e?e:{}).length,o=(r=this.getSelectedRange())[0],i=r[1],"backward"===t?n?o-=n:o=this.translateUTF16PositionFromOffset(o,-1):n?i+=n:i=this.translateUTF16PositionFromOffset(i,1),a([o,i])},p.prototype.shouldManageMovingCursorInDirection=function(t){var e;return!!this.editingAttachment||(e=this.getExpandedRangeInDirection(t),null!=this.getAttachmentAtRange(e))},p.prototype.moveCursorInDirection=function(t){var e,i,n,r;return this.editingAttachment?n=this.document.getRangeOfAttachment(this.editingAttachment):(r=this.getSelectedRange(),n=this.getExpandedRangeInDirection(t),i=!c(r,n)),this.setSelectedRange("backward"===t?n[0]:n[1]),i&&(e=this.getAttachmentAtRange(n))?this.editAttachment(e):void 0},p.prototype.expandSelectionInDirection=function(t,e){var i,n;return i=(null!=e?e:{}).length,n=this.getExpandedRangeInDirection(t,{length:i}),this.setSelectedRange(n)},p.prototype.expandSelectionForEditing=function(){return this.hasCurrentAttribute("href")?this.expandSelectionAroundCommonAttribute("href"):void 0},p.prototype.expandSelectionAroundCommonAttribute=function(t){var e,i;return e=this.getPosition(),i=this.document.getRangeOfCommonAttributeAtPosition(t,e),this.setSelectedRange(i)},p.prototype.selectionContainsAttachments=function(){var t;return(null!=(t=this.getSelectedAttachments())?t.length:void 0)>0},p.prototype.selectionIsInCursorTarget=function(){return this.editingAttachment||this.positionIsCursorTarget(this.getPosition())},p.prototype.positionIsCursorTarget=function(t){var e;return(e=this.document.locationFromPosition(t))?this.locationIsCursorTarget(e):void 0},p.prototype.positionIsBlockBreak=function(t){var e;return null!=(e=this.document.getPieceAtPosition(t))?e.isBlockBreak():void 0},p.prototype.getSelectedDocument=function(){var t;return(t=this.getSelectedRange())?this.document.getDocumentAtRange(t):void 0},p.prototype.getSelectedAttachments=function(){var t;return null!=(t=this.getSelectedDocument())?t.getAttachments():void 0},p.prototype.getAttachments=function(){return this.attachments.slice(0)},p.prototype.refreshAttachments=function(){var t,e,i,n,r,o,a,s,l,c,d,u;for(i=this.document.getAttachments(),t=(s=h(this.attachments,i)).added,d=s.removed,this.attachments=i,n=0,o=d.length;o>n;n++)(e=d[n]).delegate=null,null!=(l=this.delegate)&&"function"==typeof l.compositionDidRemoveAttachment&&l.compositionDidRemoveAttachment(e);for(u=[],r=0,a=t.length;a>r;r++)(e=t[r]).delegate=this,u.push(null!=(c=this.delegate)&&"function"==typeof c.compositionDidAddAttachment?c.compositionDidAddAttachment(e):void 0);return u},p.prototype.attachmentDidChangeAttributes=function(t){var e;return this.revision++,null!=(e=this.delegate)&&"function"==typeof e.compositionDidEditAttachment?e.compositionDidEditAttachment(t):void 0},p.prototype.attachmentDidChangePreviewURL=function(t){var e;return this.revision++,null!=(e=this.delegate)&&"function"==typeof e.compositionDidChangeAttachmentPreviewURL?e.compositionDidChangeAttachmentPreviewURL(t):void 0},p.prototype.editAttachment=function(t,e){var i;if(t!==this.editingAttachment)return this.stopEditingAttachment(),this.editingAttachment=t,null!=(i=this.delegate)&&"function"==typeof i.compositionDidStartEditingAttachment?i.compositionDidStartEditingAttachment(this.editingAttachment,e):void 0},p.prototype.stopEditingAttachment=function(){var t;if(this.editingAttachment)return null!=(t=this.delegate)&&"function"==typeof t.compositionDidStopEditingAttachment&&t.compositionDidStopEditingAttachment(this.editingAttachment),this.editingAttachment=null},p.prototype.updateAttributesForAttachment=function(t,e){return this.setDocument(this.document.updateAttributesForAttachment(t,e))},p.prototype.removeAttributeForAttachment=function(t,e){return this.setDocument(this.document.removeAttributeForAttachment(t,e))},p.prototype.breakFormattedBlock=function(t){var i,n,r,o,a;return n=t.document,i=t.block,a=[(o=t.startPosition)-1,o],i.getBlockBreakPosition()===t.startLocation.offset?(i.breaksOnReturn()&&"\n"===t.nextCharacter?o+=1:n=n.removeTextAtRange(a),a=[o,o]):"\n"===t.nextCharacter?"\n"===t.previousCharacter?a=[o-1,o+1]:(a=[o,o+1],o+=1):t.startLocation.offset-1!=0&&(o+=1),r=new e.Document([i.removeLastAttribute().copyWithoutText()]),this.setDocument(n.insertDocumentAtRange(r,a)),this.setSelection(o)},p.prototype.getPreviousBlock=function(){var t,e;return(e=this.getLocationRange())&&(t=e[0].index)>0?this.document.getBlockAtIndex(t-1):void 0},p.prototype.getBlock=function(){var t;return(t=this.getLocationRange())?this.document.getBlockAtIndex(t[0].index):void 0},p.prototype.getAttachmentAtRange=function(t){var i;return(i=this.document.getDocumentAtRange(t)).toString()===e.OBJECT_REPLACEMENT_CHARACTER+"\n"?i.getAttachments()[0]:void 0},p.prototype.notifyDelegateOfCurrentAttributesChange=function(){var t;return null!=(t=this.delegate)&&"function"==typeof t.compositionDidChangeCurrentAttributes?t.compositionDidChangeCurrentAttributes(this.currentAttributes):void 0},p.prototype.notifyDelegateOfInsertionAtRange=function(t){var e;return null!=(e=this.delegate)&&"function"==typeof e.compositionDidPerformInsertionAtRange?e.compositionDidPerformInsertionAtRange(t):void 0},p.prototype.translateUTF16PositionFromOffset=function(t,e){var i,n;return i=(n=this.document.toUTF16String()).offsetFromUCS2Offset(t),n.offsetToUCS2Offset(i+e)},p}(e.BasicObject)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.UndoManager=function(e){function i(t){this.composition=t,this.undoEntries=[],this.redoEntries=[]}var n;return t(i,e),i.prototype.recordUndoEntry=function(t,e){var i,r,o,a,s;return r=(a=null!=e?e:{}).context,i=a.consolidatable,o=this.undoEntries.slice(-1)[0],i&&n(o,t,r)?void 0:(s=this.createEntry({description:t,context:r}),this.undoEntries.push(s),this.redoEntries=[])},i.prototype.undo=function(){var t,e;return(e=this.undoEntries.pop())?(t=this.createEntry(e),this.redoEntries.push(t),this.composition.loadSnapsh
63ot(e.snapshot)):void 0},i.prototype.redo=function(){var t,e;return(t=this.redoEntries.pop())?(e=this.createEntry(t),this.undoEntries.push(e),this.composition.loadSnapshot(t.snapshot)):void 0},i.prototype.canUndo=function(){return this.undoEntries.length>0},i.prototype.canRedo=function(){return this.redoEntries.length>0},i.prototype.createEntry=function(t){var e,i,n;return i=(n=null!=t?t:{}).description,e=n.context,{description:null!=i?i.toString():void 0,context:JSON.stringify(e),snapshot:this.composition.getSnapshot()}},n=function(t,e,i){return(null!=t?t.description:void 0)===(null!=e?e.toString():void 0)&&(null!=t?t.context:void 0)===JSON.stringify(i)},i}(e.BasicObject)}.call(this),function(){var t;e.attachmentGalleryFilter=function(e){var i;return(i=new t(e)).perform(),i.getSnapshot()},t=function(){function t(t){this.document=t.document,this.selectedRange=t.selectedRange}var e,i,n;return e="attachmentGallery",i="presentation",n="gallery",t.prototype.perform=function(){return this.removeBlockAttribute(),this.applyBlockAttribute()},t.prototype.getSnapshot=function(){return{document:this.document,selectedRange:this.selectedRange}},t.prototype.removeBlockAttribute=function(){var t,i,n,r,o;for(o=[],t=0,i=(r=this.findRangesOfBlocks()).length;i>t;t++)n=r[t],o.push(this.document=this.document.removeAttributeAtRange(e,n));return o},t.prototype.applyBlockAttribute=function(){var t,i,n,r,o,a;for(n=0,a=[],t=0,i=(o=this.findRangesOfPieces()).length;i>t;t++)(r=o[t])[1]-r[0]>1&&(r[0]+=n,r[1]+=n,"\n"!==this.document.getCharacterAtPosition(r[1])&&(this.document=this.document.insertBlockBreakAtRange(r[1]),r[1]<this.selectedRange[1]&&this.moveSelectedRangeForward(),r[1]++,n++),0!==r[0]&&"\n"!==this.document.getCharacterAtPosition(r[0]-1)&&(this.document=this.document.insertBlockBreakAtRange(r[0]),r[0]<this.selectedRange[0]&&this.moveSelectedRangeForward(),r[0]++,n++),a.push(this.document=this.document.applyBlockAttributeAtRange(e,!0,r)));return a},t.prototype.findRangesOfBlocks=function(){return this.document.findRangesForBlockAttribute(e)},t.prototype.findRangesOfPieces=function(){return this.document.findRangesForTextAttribute(i,{withValue:n})},t.prototype.moveSelectedRangeForward=function(){return this.selectedRange[0]+=1,this.selectedRange[1]+=1},t}()}.call(this),function(){var t=function(t,e){return function(){return t.apply(e,arguments)}};e.Editor=function(){function i(i,r,o){this.composition=i,this.selectionManager=r,this.element=o,this.insertFiles=t(this.insertFiles,this),this.undoManager=new e.UndoManager(this.composition),this.filters=n.slice(0)}var n;return n=[e.attachmentGalleryFilter],i.prototype.loadDocument=function(t){return this.loadSnapshot({document:t,selectedRange:[0,0]})},i.prototype.loadHTML=function(t){return null==t&&(t=""),this.loadDocument(e.Document.fromHTML(t,{referenceElement:this.element}))},i.prototype.loadJSON=function(t){var i,n;return i=t.document,n=t.selectedRange,i=e.Document.fromJSON(i),this.loadSnapshot({document:i,selectedRange:n})},i.prototype.loadSnapshot=function(t){return this.undoManager=new e.UndoManager(this.composition),this.composition.loadSnapshot(t)},i.prototype.getDocument=function(){return this.composition.document},i.prototype.getSelectedDocument=function(){return this.composition.getSelectedDocument()},i.prototype.getSnapshot=function(){return this.composition.getSnapshot()},i.prototype.toJSON=function(){return this.getSnapshot()},i.prototype.deleteInDirection=function(t){return this.composition.deleteInDirection(t)},i.prototype.insertAttachment=function(t){return this.composition.insertAttachment(t)},i.prototype.insertAttachments=function(t){return this.composition.insertAttachments(t)},i.prototype.insertDocument=function(t){return this.composition.insertDocument(t)},i.prototype.insertFile=function(t){return this.composition.insertFile(t)},i.prototype.insertFiles=function(t){return this.composition.insertFiles(t)},i.prototype.insertHTML=function(t){return this.composition.insertHTML(t)},i.prototype.insertString=function(t){return this.composition.insertString(t)},i.prototype.insertText=function(t){return this.composition.insertText(t)},i.prototype.insertLineBreak=function(){return this.composition.insertLineBreak()},i.prototype.getSelectedRange=function(){return this.composition.getSelectedRange()},i.prototype.getPosition=function(){return this.composition.getPosition()},i.prototype.getClientRectAtPosition=function(t){var e;return e=this.getDocument().locationRangeFromRange([t,t+1]),this.selectionManager.getClientRectAtLocationRange(e)},i.prototype.expandSelectionInDirection=function(t){return this.composition.expandSelectionInDirection(t)},i.prototype.moveCursorInDirection=function(t){return this.composition.moveCursorInDirection(t)},i.prototype.setSelectedRange=function(t){return this.composition.setSelectedRange(t)}
63,i.prototype.activateAttribute=function(t,e){return null==e&&(e=!0),this.composition.setCurrentAttribute(t,e)},i.prototype.attributeIsActive=function(t){return this.composition.hasCurrentAttribute(t)},i.prototype.canActivateAttribute=function(t){return this.composition.canSetCurrentAttribute(t)},i.prototype.deactivateAttribute=function(t){return this.composition.removeCurrentAttribute(t)},i.prototype.canDecreaseNestingLevel=function(){return this.composition.canDecreaseNestingLevel()},i.prototype.canIncreaseNestingLevel=function(){return this.composition.canIncreaseNestingLevel()},i.prototype.decreaseNestingLevel=function(){return this.canDecreaseNestingLevel()?this.composition.decreaseNestingLevel():void 0},i.prototype.increaseNestingLevel=function(){return this.canIncreaseNestingLevel()?this.composition.increaseNestingLevel():void 0},i.prototype.canRedo=function(){return this.undoManager.canRedo()},i.prototype.canUndo=function(){return this.undoManager.canUndo()},i.prototype.recordUndoEntry=function(t,e){var i,n,r;return n=(r=null!=e?e:{}).context,i=r.consolidatable,this.undoManager.recordUndoEntry(t,{context:n,consolidatable:i})},i.prototype.redo=function(){return this.canRedo()?this.undoManager.redo():void 0},i.prototype.undo=function(){return this.canUndo()?this.undoManager.undo():void 0},i}()}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.ManagedAttachment=function(e){function i(t,e){var i;this.attachmentManager=t,this.attachment=e,i=this.attachment,this.id=i.id,this.file=i.file}return t(i,e),i.prototype.remove=function(){return this.attachmentManager.requestRemovalOfAttachment(this.attachment)},i.proxyMethod("attachment.getAttribute"),i.proxyMethod("attachment.hasAttribute"),i.proxyMethod("attachment.setAttribute"),i.proxyMethod("attachment.getAttributes"),i.proxyMethod("attachment.setAttributes"),i.proxyMethod("attachment.isPending"),i.proxyMethod("attachment.isPreviewable"),i.proxyMethod("attachment.getURL"),i.proxyMethod("attachment.getHref"),i.proxyMethod("attachment.getFilename"),i.proxyMethod("attachment.getFilesize"),i.proxyMethod("attachment.getFormattedFilesize"),i.proxyMethod("attachment.getExtension"),i.proxyMethod("attachment.getContentType"),i.proxyMethod("attachment.getFile"),i.proxyMethod("attachment.setFile"),i.proxyMethod("attachment.releaseFile"),i.proxyMethod("attachment.getUploadProgress"),i.proxyMethod("attachment.setUploadProgress"),i}(e.BasicObject)}.call(this),function(){var t=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e.AttachmentManager=function(i){function n(t){var e,i,n;for(null==t&&(t=[]),this.managedAttachments={},i=0,n=t.length;n>i;i++)e=t[i],this.manageAttachment(e)}return t(n,i),n.prototype.getAttachments=function(){var t,e,i,n;for(e in n=[],i=this.managedAttachments)t=i[e],n.push(t);return n},n.prototype.manageAttachment=function(t){var i,n;return null!=(i=this.managedAttachments)[n=t.id]?i[n]:i[n]=new e.ManagedAttachment(this,t)},n.prototype.attachmentIsManaged=function(t){return t.id in this.managedAttachments},n.prototype.requestRemovalOfAttachment=function(t){var e;return this.attachmentIsManaged(t)&&null!=(e=this.delegate)&&"function"==typeof e.attachmentManagerDidRequestRemovalOfAttachment?e.attachmentManagerDidRequestRemovalOfAttachment(t):void 0},n.prototype.unmanageAttachment=function(t){var e;return e=this.managedAttachments[t.id],delete this.managedAttachments[t.id],e},n}(e.BasicObject)}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d;t=e.elementContainsNode,i=e.findChildIndexOfNode,o=e.nodeIsBlockStart,a=e.nodeIsBlockStartComment,r=e.nodeIsBlockContainer,s=e.nodeIsCursorTarget,l=e.nodeIsEmptyTextNode,c=e.nodeIsTextNode,n=e.nodeIsAttachmentElement,h=e.tagName,d=e.walkTree,e.LocationMapper=function(){function e(t){this.element=t}var u,p,f,g;return e.prototype.findLocationFromContainerAndOffset=function(e,n,r){var a,l,h,u,g,m,v;for(m=(null!=r?r:{strict:!0}).strict,l=0,h=!1,u={index:0,offset:0},(a=this.findAttachmentElementParentForNode(e))&&(e=a.parentNode,n=i(a)),v=d(this.element,{usingFilter:f});v.nextNode();){if((g=v.currentNode)===e&&c(e)){s(g)||(u.offset+=n);break}if(g.parentNode===e){if(l++===n)break}else if(!t(e,g)&&l>0)break;
63o(g,{strict:m})?(h&&u.index++,u.offset=0,h=!0):u.offset+=p(g)}return u},e.prototype.findContainerAndOffsetFromLocation=function(t){var e,n,a,l,h;if(0===t.index&&0===t.offset){for(e=this.element,l=0;e.firstChild;)if(e=e.firstChild,r(e)){l=1;break}return[e,l]}if(n=(h=this.findNodeAndOffsetFromLocation(t))[0],a=h[1],n){if(c(n))0===p(n)?(e=n.parentNode.parentNode,l=i(n.parentNode),s(n,{name:"right"})&&l++):(e=n,l=t.offset-a);else{if(e=n.parentNode,!o(n.previousSibling)&&!r(e))for(;n===e.lastChild&&(n=e,e=e.parentNode,!r(e)););l=i(n),0!==t.offset&&l++}return[e,l]}},e.prototype.findNodeAndOffsetFromLocation=function(t){var e,i,n,r,o,a,l,h;for(l=0,i=0,n=(h=this.getSignificantNodesForIndex(t.index)).length;n>i;i++){if(e=h[i],r=p(e),t.offset<=l+r)if(c(e)){if(o=e,a=l,t.offset===a&&s(o))break}else o||(o=e,a=l);if((l+=r)>t.offset)break}return[o,a]},e.prototype.findAttachmentElementParentForNode=function(t){for(;t&&t!==this.element;){if(n(t))return t;t=t.parentNode}},e.prototype.getSignificantNodesForIndex=function(t){var e,i,n,r,o;for(n=[],o=d(this.element,{usingFilter:u}),r=!1;o.nextNode();)if(i=o.currentNode,a(i)){if(null!=e?e++:e=0,e===t)r=!0;else if(r)break}else r&&n.push(i);return n},p=function(t){return t.nodeType===Node.TEXT_NODE?s(t)?0:t.textContent.length:"br"===h(t)||n(t)?1:0},u=function(t){return g(t)===NodeFilter.FILTER_ACCEPT?f(t):NodeFilter.FILTER_REJECT},g=function(t){return l(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},f=function(t){return n(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},e}()}.call(this),function(){var t,i,n=[].slice;t=e.getDOMRange,i=e.setDOMRange,e.PointMapper=function(){function e(){}return e.prototype.createDOMRangeFromPoint=function(e){var n,r,o,a,s,l,c,h;if(c=e.x,h=e.y,document.caretPositionFromPoint)return o=(s=document.caretPositionFromPoint(c,h)).offsetNode,r=s.offset,(n=document.createRange()).setStart(o,r),n;if(document.caretRangeFromPoint)return document.caretRangeFromPoint(c,h);if(document.body.createTextRange){a=t();try{(l=document.body.createTextRange()).moveToPoint(c,h),l.select()}catch(t){}return n=t(),i(a),n}},e.prototype.getClientRectsForDOMRange=function(t){var e;return[(e=n.call(t.getClientRects()))[0],e[e.length-1]]},e}()}.call(this),function(){var t,i=function(t,e){return function(){return t.apply(e,arguments)}},n=function(t,e){function i(){this.constructor=t}for(var n in e)r.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},r={}.hasOwnProperty,o=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};t=e.getDOMRange,e.SelectionChangeObserver=function(e){function r(){this.run=i(this.run,this),this.update=i(this.update,this),this.selectionManagers=[]}var a;return n(r,e),r.prototype.start=function(){return this.started?void 0:(this.started=!0,"onselectionchange"in document?document.addEventListener("selectionchange",this.update,!0):this.run())},r.prototype.stop=function(){return this.started?(this.started=!1,document.removeEventListener("selectionchange",this.update,!0)):void 0},r.prototype.registerSelectionManager=function(t){return o.call(this.selectionManagers,t)<0?(this.selectionManagers.push(t),this.start()):void 0},r.prototype.unregisterSelectionManager=function(t){var e;return this.selectionManagers=function(){var i,n,r,o;for(o=[],i=0,n=(r=this.selectionManagers).length;n>i;i++)(e=r[i])!==t&&o.push(e);return o}.call(this),0===this.selectionManagers.length?this.stop():void 0},r.prototype.notifySelectionManagersOfSelectionChange=function(){var t,e,i,n,r;for(n=[],t=0,e=(i=this.selectionManagers).length;e>t;t++)r=i[t],n.push(r.selectionDidChange());return n},r.prototype.update=function(){var e;return e=t(),a(e,this.domRange)?void 0:(this.domRange=e,this.notifySelectionManagersOfSelectionChange())},r.prototype.reset=function(){return this.domRange=null,this.update()},r.prototype.run=function(){return this.started?(this.update(),requestAnimationFrame(this.run)):void 0},a=function(t,e){return(null!=t?t.startContainer:void 0)===(null!=e?e.startContainer:void 0)&&(null!=t?t.startOffset:void 0)===(null!=e?e.startOffset:void 0)&&(null!=t?t.endContainer:void 0)===(null!=e?e.endContainer:void 0)&&(null!=t?t.endOffset:void 0)===(null!=e?e.endOffset:void 0)},r}(e.BasicObject),null==e.selectionChangeObserver&&(e.selectionChangeObserver=new e.SelectionChangeObserver)}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d=function(t,e){return function(){return t.apply(e,arguments)}},u=function(t,e){function i(){this.constructor=t}for(var n in e)p.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},p={}.hasOwnProperty;n=e.getDOMSelection,i=e.getDOMRange,h=e.setDOMRange,t=e.elementContainsNode,a=e.nodeIsCursorTarget,o=e.innerElementIsActive,r=e.handleEvent,s=e.normalizeRange,l=e.rangeIsCollapsed,c=e.rangesAreEqual,e.SelectionManager=function(p){function f(t){this.element=t,this.selectionDidChange=d(this.selectionDidChange,this),this.didMouseDown=d(this.didMouseDown,this),this.locationMapper=new e.LocationMapper(this.element),this.pointMapper=new e.PointMapper,this.lockCount=0,r("mousedown",{onElement:this.element,withCallback:this.didMouseDown})}return u(f,p),f.prototype.getLocationRange=function(t){var e;return null==t&&(t={}),!1===t.strict?this.createLocationRangeFromDOMRange(i(),{strict:!1}):t.ignoreLock?this.currentLocationRange:null!=(e=this.lockedLocationRange)?e:this.currentLocationRange},f.prototype.setLocationRange=function(t){var e;if(!this.lockedLocationRange)return t=s(t),(e=this.createDOMRangeFromLocationRange(t))?(h(e),this.updateCurrentLocationRange(t)):void 0},f.prototype.setLocationRangeFromPointRange=function(t){var e,i;return t=s(t),i=this.getLocationAtPoint(t[0]),e=this.getLocationAtPoint(t[1]),this.setLocationRange([i,e])},f.prototype.getClientRectAtLocationRange=function(t){var e;return(e=this.createDOMRangeFromLocationRange(t))?this.getClientRectsForDOMRange(e)[1]:void 0},f.prototype.locationIsCursorTarget=function(t){var e,i;return e=(i=this.findNodeAndOffsetFromLocation(t))[0],i[1],a(e)},f.prototype.lock=function(){return 0==this.lockCount++?(this.updateCurrentLocationRange(),this.lockedLocationRange=this.getLocationRange()):void 0},f.prototype.unlock=function(){var t;return 0==--this.lockCount&&(t=this.lockedLocationRange,this.lockedLocationRange=null,null!=t)?this.setLocationRange(t):void 0},f.prototype.clearSelection=function(){var t;return null!=(t=n())?t.removeAllRanges():void 0},f.prototype.selectionIsCollapsed=function(){var t;return!0===(null!=(t=i())?t.collapsed:void 0)},f.prototype.selectionIsExpanded=function(){return!this.selectionIsCollapsed()},f.prototype.createLocationRangeFromDOMRange=function(t,e){var i,n;if(null!=t&&this.domRangeWithinElement(t)&&(n=this.findLocationFromContainerAndOffset(t.startContainer,t.startOffset,e)))return t.collapsed||(i=this.findLocationFromContainerAndOffset(t.endContainer,t.endOffset,e)),s([n,i])},f.proxyMethod("locationMapper.findLocationFromContainerAndOffset"),f.proxyMethod("locationMapper.findContainerAndOffsetFromLocation"),f.proxyMethod("locationMapper.findNodeAndOffsetFromLocation"),f.proxyMethod("pointMapper.createDOMRangeFromPoint"),f.proxyMethod("pointMapper.getClientRectsForDOMRange"),f.prototype.didMouseDown=function(){return this.pauseTemporarily()},f.prototype.pauseTemporarily=function(){var e,i,n,o;return this.paused=!0,i=function(e){return function(){var i,r;for(e.paused=!1,clearTimeout(o),i=0,r=n.length;r>i;i++)n[i].destroy();return t(document,e.element)?e.selectionDidChange():void 0}}(this),o=setTimeout(i,200),n=function(){var t,n,o,a;for(a=[],t=0,n=(o=["mousemove","keydown"]).length;n>t;t++)e=o[t],a.push(r(e,{onElement:document,withCallback:i}));return a}()},f.prototype.selectionDidChange=function(){return this.paused||o(this.element)?void 0:this.updateCurrentLocationRange()},f.prototype.updateCurrentLocationRange=function(t){var e;return(null!=t?t:t=this.createLocationRangeFromDOMRange(i()))&&!c(t,this.currentLocationRange)?(this.currentLocationRange=t,null!=(e=this.delegate)&&"function"==typeof e.locationRangeDidChange?e.locationRangeDidChange(this.currentLocationRange.slice(0)):void 0):void 0},f.prototype.createDOMRangeFromLocationRange=function(t){var e,i,n,r;return n=this.findContainerAndOffsetFromLocation(t[0]),i=l(t)?n:null!=(r=this.findContainerAndOffsetFromLocation(t[1]))?r:n,null!=n&&null!=i?((e=document.createRange()).setStart.apply(e,n),e.setEnd.apply(e,i),e):void 0},f.prototype.getLocationAtPoint=function(t){var e,i;return(e=this.createDOMRangeFromPoint(t))&&null!=(i=this.createLocationRangeFromDOMRange(e))?i[0]:void 0},f.prototype.domRangeWithinElement=function(e){return e.collapsed?t(this.element,e.startContainer):t(this.element,e.startContainer)&&t(this.element,e.endContainer)},f}(e.BasicObject)}.call(this),function(){var t,i,n,r,o=function(t,e){function i(){this.constructor=t}for(var n in e)a.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},a={}.hasOwnProperty,s=[].slice;n=e.rangeIsCollapsed,r=e.rangesAreEqual,i=e.objectsAreEqual,t=e.getBlockConfig,e.EditorController=function(a){function l(t){var i,n;this.editorElement=t.editorElement,i=t.document,n=t.html,this.selectionManager=new e.SelectionManager(this.editorElement),this.selectionManager.delegate=this,this.composition=new e.Composition,this.composition.delegate=this,this.attachmentManager=new e.AttachmentManager(this.composition.getAttachments()),this.attachmentManager.delegate=this,this.inputController=new(e["Level"+e.config.input.getLevel()+"InputController"])(this.editorElement),this.inputController.delegate=this,this.inputController.responder=this.composition,this.compositionController=new e.CompositionController(this.editorElement,this.composition),this.compositionController.delegate=this,this.toolbarController=new e.ToolbarController(this.editorElement.toolbarElement),this.toolbarController.delegate=this,this.editor=new e.Editor(this.composition,this.selectionManager,this.editorElement),null!=i?this.editor.loadDocument(i):this.editor.loadHTML(n)}var c;return o(l,a),l.prototype.registerSelectionManager=function(){return e.selectionChangeObserver.registerSelectionManager(this.selectionManager)},l.prototype.unregisterSelectionManager=function(){return e.selectionChangeObserver.unregisterSelectionManager(this.selectionManager)},l.prototype.render=function(){return this.compositionController.render()},l.prototype.reparse=function(){
64return this.composition.replaceHTML(this.editorElement.innerHTML)},l.prototype.compositionDidChangeDocument=function(){return this.notifyEditorElement("document-change"),this.handlingInput?void 0:this.render()},l.prototype.compositionDidChangeCurrentAttributes=function(t){return this.currentAttributes=t,this.toolbarController.updateAttributes(this.currentAttributes),this.updateCurrentActions(),this.notifyEditorElement("attributes-change",{attributes:this.currentAttributes})},l.prototype.compositionDidPerformInsertionAtRange=function(t){return this.pasting?this.pastedRange=t:void 0},l.prototype.compositionShouldAcceptFile=function(t){return this.notifyEditorElement("file-accept",{file:t})},l.prototype.compositionDidAddAttachment=function(t){var e;return e=this.attachmentManager.manageAttachment(t),this.notifyEditorElement("attachment-add",{attachment:e})},l.prototype.compositionDidEditAttachment=function(t){var e;return this.compositionController.rerenderViewForObject(t),e=this.attachmentManager.manageAttachment(t),this.notifyEditorElement("attachment-edit",{attachment:e}),this.notifyEditorElement("change")},l.prototype.compositionDidChangeAttachmentPreviewURL=function(t){return this.compositionController.invalidateViewForObject(t),this.notifyEditorElement("change")},l.prototype.compositionDidRemoveAttachment=function(t){var e;return e=this.attachmentManager.unmanageAttachment(t),this.notifyEditorElement("attachment-remove",{attachment:e})},l.prototype.compositionDidStartEditingAttachment=function(t,e){return this.attachmentLocationRange=this.composition.document.getLocationRangeOfAttachment(t),this.compositionController.installAttachmentEditorForAttachment(t,e),this.selectionManager.setLocationRange(this.attachmentLocationRange)},l.prototype.compositionDidStopEditingAttachment=function(){return this.compositionController.uninstallAttachmentEditor(),this.attachmentLocationRange=null},l.prototype.compositionDidRequestChangingSelectionToLocationRange=function(t){return!this.loadingSnapshot||this.isFocused()?(this.requestedLocationRange=t,this.compositionRevisionWhe
64nLocationRangeRequested=this.composition.revision,this.handlingInput?void 0:this.render()):void 0},l.prototype.compositionWillLoadSnapshot=function(){return this.loadingSnapshot=!0},l.prototype.compositionDidLoadSnapshot=function(){return this.compositionController.refreshViewCache(),this.render(),this.loadingSnapshot=!1},l.prototype.getSelectionManager=function(){return this.selectionManager},l.proxyMethod("getSelectionManager().setLocationRange"),l.proxyMethod("getSelectionManager().getLocationRange"),l.prototype.attachmentManagerDidRequestRemovalOfAttachment=function(t){return this.removeAttachment(t)},l.prototype.compositionControllerWillSyncDocumentView=function(){return this.inputController.editorWillSyncDocumentView(),this.selectionManager.lock(),this.selectionManager.clearSelection()},l.prototype.compositionControllerDidSyncDocumentView=function(){return this.inputController.editorDidSyncDocumentView(),this.selectionManager.unlock(),this.updateCurrentActions(),this.notifyEditorElement("sync")},l.prototype.compositionControllerDidRender=function(){return null!=this.requestedLocationRange&&(this.compositionRevisionWhenLocationRangeRequested===this.composition.revision&&this.selectionManager.setLocationRange(this.requestedLocationRange),this.requestedLocationRange=null,this.compositionRevisionWhenLocationRangeRequested=null),this.renderedCompositionRevision!==this.composition.revision&&(this.runEditorFilters(),this.composition.updateCurrentAttributes(),this.notifyEditorElement("render")),this.renderedCompositionRevision=this.composition.revision},l.prototype.compositionControllerDidFocus=function(){return this.toolbarController.hideDialog(),this.notifyEditorElement("focus")},l.prototype.compositionControllerDidBlur=function(){return this.notifyEditorElement("blur")},l.prototype.compositionControllerDidSelectAttachment=function(t,e){return this.toolbarController.hideDialog(),this.composition.editAttachment(t,e)},l.prototype.compositionControllerDidRequestDeselectingAttachment=function(t){var e,i;return e=null!=(i=this.attachmentLocationRange)?i:this.composition.document.getLocationRangeOfAttachment(t),this.selectionManager.setLocationRange(e[1])},l.prototype.compositionControllerWillUpdateAttachment=function(t){return this.editor.recordUndoEntry("Edit Attachment",{context:t.id,consolidatable:!0})},l.prototype.compositionControllerDidRequestRemovalOfAttachment=function(t){return this.removeAttachment(t)},l.prototype.inputControllerWillHandleInput=function(){return this.handlingInput=!0,this.requestedRender=!1},l.prototype.inputControllerDidRequestRender=function(){return this.requestedRender=!0},l.prototype.inputControllerDidHandleInput=function(){return this.handlingInput=!1,this.requestedRender?(this.requestedRender=!1,this.render()):void 0},l.prototype.inputControllerDidAllowUnhandledInput=function(){return this.notifyEditorElement("change")},l.prototype.inputControllerDidRequestReparse=function(){return this.reparse()},l.prototype.inputControllerWillPerformTyping=function(){return this.recordTypingUndoEntry()},l.prototype.inputControllerWillPerformFormatting=function(t){return this.recordFormattingUndoEntry(t)},l.prototype.inputControllerWillCutText=function(){return this.editor.recordUndoEntry("Cut")},l.prototype.inputControllerWillPaste=function(t){return this.editor.recordUndoEntry("Paste"),this.pasting=!0,this.notifyEditorElement("before-paste",{paste:t})},l.prototype.inputControllerDidPaste=function(t){return t.range=this.pastedRange,this.pastedRange=null,this.pasting=null,this.notifyEditorElement("paste",{paste:t})},l.prototype.inputControllerWillMoveText=function(){return this.editor.recordUndoEntry("Move")},l.prototype.inputControllerWillAttachFiles=function(){return this.editor.recordUndoEntry("Drop Files")},l.prototype.inputControllerWillPerformUndo=function(){return this.editor.undo()},l.prototype.inputControllerWillPerformRedo=function(){return this.editor.redo()},l.prototype.inputControllerDidReceiveKeyboardCommand=function(t){return this.toolbarController.applyKeyboardCommand(t)},l.prototype.inputControllerDidStartDrag=function(){return this.locationRangeBeforeDrag=this.selectionManager.getLocationRange()},l.prototype.inputControllerDidReceiveDragOverPoint=function(t){return this.selectionManager.setLocationRangeFromPointRange(t)},l.prototype.inputControllerDidCancelDrag=function(){return this.selectionManager.setLocationRange(this.locationRangeBeforeDrag),this.locationRangeBeforeDrag=null},l.prototype.locationRangeDidChange=function(t){return this.composition.updateCurrentAttributes(),this.updateCurrentActions(),this.attachmentLocationRange&&!r(this.attachmentLocationRange,t)&&this.composition.stopEditingAttachment(),this.notifyEditorElement("selection-change")},l.prototype.toolbarDidClickButton=function(){return this.getLocationRange()?void 0:this.setLocationRange({index:0,offset:0})},l.prototype.toolbarDidInvokeAction=function(t){return this.invokeAction(t)},l.prototype.toolbarDidToggleAttribute=function(t){return this.recordFormattingUndoEntry(t),this.composition.toggleCurrentAttribute(t),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarDidUpdateAttribute=function(t,e){return this.recordFormattingUndoEntry(t),this.composition.setCurrentAttribute(t,e),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarDidRemoveAttribute=function(t){return this.recordFormattingUndoEntry(t),this.composition.removeCurrentAttribute(t),this.render(),this.selectionFrozen?void 0:this.editorElement.focus()},l.prototype.toolbarWillShowDialog=function(){return this.composition.expandSelectionForEditing(),this.freezeSelection()},l.prototype.toolbarDidShowDialog=function(t){return this.notifyEditorElement("toolbar-dialog-show",{dialogName:t})},l.prototype.toolbarDidHideDialog=function(t){return this.thawSelection(),this.editorElement.focus(),this.notifyEditorElement("toolbar-dialog-hide",{dialogName:t})},l.prototype.freezeSelection=function(){return this.selectionFrozen?void 0:(this.selectionManager.lock(),this.composition.freezeSelection(),this.selectionFrozen=!0,this.render())},l.prototype.thawSelection=function(){return this.selectionFrozen?(this.composition.thawSelection(),this.selectionManager.unlock(),this.selectionFrozen=!1,this.render()):void 0},l.prototype.actions={undo:{test:function(){return this.editor.canUndo()},perform:function(){return this.editor.undo()}},redo:{test:function(){return this.editor.canRedo()},perform:function(){return this.editor.redo()}},link:{test:function(){return this.editor.canActivateAttribute("href")}},increaseNestingLevel:{test:function(){return this.editor.canIncreaseNestingLevel()},perform:function(){return this.editor.increaseNestingLevel()&&this.render()}},decreaseNestingLevel:{test:function(){return this.editor.canDecreaseNestingLevel()},perform:function(){return this.editor.decreaseNestingLevel()&&this.render()}},attachFiles:{test:function(){return!0},perform:function(){return e.config.input.pickFiles(this.editor.insertFiles)}}},l.prototype.canInvokeAction=function(t){var e,i;return!!this.actionIsExternal(t)||!!(null!=(e=this.actions[t])&&null!=(i=e.test)?i.call(this):void 0)},l.prototype.invokeAction=function(t){var e,i;return this.actionIsExternal(t)?this.notifyEditorElement("action-invoke",{actionName:t}):null!=(e=this.actions[t])&&null!=(i=e.perform)?i.call(this):void 0},l.prototype.actionIsExternal=function(t){return/^x-./.test(t)},l.prototype.getCurrentActions=function(){var t,e;for(t in e={},this.actions)e[t]=this.canInvokeAction(t);return e},l.prototype.updateCurrentActions=function(){var t;return t=this.getCurrentActions(),i(t,this.currentActions)?void 0:(this.currentActions=t,this.toolbarController.updateActions(this.currentActions),this.notifyEditorElement("actions-change",{actions:this.currentActions}))},l.prototype.runEditorFilters=function(){var t,e,i,n,r,o,a,s;for(s=this.composition.getSnapshot(),i=0,n=(r=this.editor.filters).length;n>i;i++)e=r[i],t=s.document,a=s.selectedRange,null==(s=null!=(o=e.call(this.editor,s))?o:{}).document&&(s.document=t),null==s.selectedRange&&(s.selectedRange=a);return c(s,this.composition.getSnapshot())?void 0:this.composition.loadSnapsh
64ot(s)},c=function(t,e){return r(t.selectedRange,e.selectedRange)&&t.document.isEqualTo(e.document)},l.prototype.updateInputElement=function(){var t,i;return t=this.compositionController.getSerializableElement(),i=e.serializeToContentType(t,"text/html"),this.editorElement.setInputElementValue(i)},l.prototype.notifyEditorElement=function(t,e){switch(t){case"document-change":this.documentChangedSinceLastRender=!0;break;case"render":this.documentChangedSinceLastRender&&(this.documentChangedSinceLastRender=!1,this.notifyEditorElement("change"));break;case"change":case"attachment-add":case"attachment-edit":case"attachment-remove":this.updateInputElement()}return this.editorElement.notify(t,e)},l.prototype.removeAttachment=function(t){return this.editor.recordUndoEntry("Delete Attachment"),this.composition.removeAttachment(t),this.render()},l.prototype.recordFormattingUndoEntry=function(e){var i,r;return i=t(e),r=this.selectionManager.getLocationRange(),i||!n(r)?this.editor.recordUndoEntry("Formatting",{context:this.getUndoContext(),consolidatable:!0}):void 0},l.prototype.recordTypingUndoEntry=function(){return this.editor.recordUndoEntry("Typing",{context:this.getUndoContext(this.currentAttributes),consolidatable:!0})},l.prototype.getUndoContext=function(){var t;return t=1<=arguments.length?s.call(arguments,0):[],[this.getLocationContext(),this.getTimeContext()].concat(s.call(t))},l.prototype.getLocationContext=function(){var t;return t=this.selectionManager.getLocationRange(),n(t)?t[0].index:t},l.prototype.getTimeContext=function(){return e.config.undoInterval>0?Math.floor((new Date).getTime()/e.config.undoInterval):0},l.prototype.isFocused=function(){var t;return this.editorElement===(null!=(t=this.editorElement.ownerDocument)?t.activeElement:void 0)},l}(e.Controller)}.call(this),function(){var t,i,n,r,o,a,s,l,c,h,d,u,p,f;i=e.browser,o=e.makeElement,a=e.triggerEvent,n=e.handleEvent,r=e.handleEventOnce,t=e.AttachmentView.attachmentSelector,e.registerElement("trix-editor",(u=0,l=function(t){return!document.querySelector(":focus")&&t.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===t?t.focus():void 0},p=function(t){return t.hasAttribute("contenteditable")?void 0:(t.setAttribute("contenteditable",""),r("focus",{onElement:t,withCallback:function(){return c(t)}}))},s=function(t){return t.hasAttribute("role")?void 0:t.setAttribute("role","textbox")},c=function(t){return d(t),f(t)},d=function(t){return("function"==typeof document.queryCommandSupported?document.queryCommandSupported("enableObjectResizing"):void 0)?(document.execCommand("enableObjectResizing",!1,!1),n("mscontrolselect",{onElement:t,preventDefault:!0})):void 0},f=function(){var t;return!("function"==typeof document.queryCommandSupported?document.queryCommandSupported("DefaultParagraphSeparator"):void 0)||"div"!==(t=e.config.blockAttributes.default.tagName)&&"p"!==t?void 0:document.execCommand("DefaultParagraphSeparator",!1,t)},h=i.forcesObjectResizing?{display:"inline",width:"auto"}:{display:"inline-block",width:"1px"},{defaultCSS:"%t {\n  display: block;\n}\n\n%t:empty:not(:focus)::before {\n  content: attr(placeholder);\n  color: graytext;\n  cursor: text;\n}\n\n%t a[contenteditable=false] {\n  cursor: text;\n}\n\n%t img {\n  max-width: 100%;\n  height: auto;\n}\n\n%t "+t+" figcaption textarea {\n  resize: none;\n}\n\n%t "+t+" figcaption textarea.trix-autoresize-clone {\n  position: absolute;\n  left: -9999px;\n  max-height: 0px;\n}\n\n%t "+t+" figcaption[data-trix-placeholder]:empty::before {\n  content: attr(data-trix-placeholder);\n  color: graytext;\n}\n\n%t [data-trix-cursor-target] {\n  display: "+h.display+" !important;\n  width: "+h.width+" !important;\n  padding: 0 !important;\n  margin: 0 !important;\n  border: none !important;\n}\n\n%t [data-trix-cursor-target=left] {\n  vertical-align: top !important;\n  margin-left: -1px !important;\n}\n\n%t [data-trix-cursor-target=right] {\n  vertical-align: bottom !important;\n  margin-right: -1px !important;\n}",trixId:{get:function(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++u),this.trixId)}},toolbarElement:{get:function(){var t,e,i;return this.hasAttribute("toolbar")?null!=(e=this.ownerDocument)?e.getElementById(this.getAttribute("toolbar")):void 0:this.parentNode?(i="trix-toolbar-"+this.trixId,this.setAttribute("toolbar",i),t=o("trix-toolbar",{id:i}),this.parentNode.insertBefore(t,this),t):void 0}},inputElement:{get:function(){var t,e,i;return this.hasAttribute("input")?null!=(i=this.ownerDocument)?i.getElementById(this.getAttribute("input")):void 0:this.parentNode?(e="trix-input-"+this.trixId,this.setAttribute("input",e),t=o("input",{type:"hidden",id:e}),this.parentNode.insertBefore(t,this.nextElementSibling),t):void 0}},editor:{get:function(){var t;return null!=(t=this.editorController)?t.editor:void 0}},name:{get:function(){var t;return null!=(t=this.inputElement)?t.name:void 0}},value:{get:function(){var t;return null!=(t=this.inputElement)?t.value:void 0},set:function(t){var e;return this.defaultValue=t,null!=(e=this.editor)?e.loadHTML(this.defaultValue):void 0}},notify:function(t,e){return this.editorController?a("trix-"+t,{onElement:this,attributes:e}):void 0},setInputElementValue:function(t){var e;return null!=(e=this.inputElement)?e.value=t:void 0},initialize:function(){return p(this),s(this)},connect:function(){return this.hasAttribute("data-trix-internal")?void 0:(this.editorController||(a("trix-before-initialize",{onElement:this}),this.editorController=new e.EditorController({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame(function(t){return function(){return a("trix-initialize",{onElement:t})}}(this))),this.editorController.registerSelectionManager(),this.registerResetListener(),l(this))},disconnect:function(){var t;return null!=(t=this.editorController)&&t.unregisterSelectionManager(),this.unregisterResetListener()},registerResetListener:function(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)},unregisterResetListener:function(){return window.removeEventListener("reset",this.resetListener,!1)},resetBubbled:function(t){var e;return t.target!==(null!=(e=this.inputElement)?e.form:void 0)||t.defaultPrevented?void 0:this.reset()},reset:function(){return this.value=this.defaultValue}}))}.call(this),function(){}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd&&define(e)}.call(this),function(t,e){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"object"==("undefined"==typeof module?"undefined":_typeof(module))?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==("undefined"==typeof exports?"undefined":_typeof(exports))?exports.Pickr=e():t.Pickr=e()}(window,(function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};
64return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==_typeof(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)e.d(n,r,function(e){return t[e]}.bind(null,r));return n},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t){t.exports=JSON.parse('{"a":"1.7.2"}')},function(t,e,i){"use strict";function n(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_instanceof(e,HTMLCollection)||_instanceof(e,NodeList)?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(i)||(i=[i]);var o,a=_createForOfIteratorHelper(e);try{for(a.s();!(o=a.n()).done;){var s,l=o.value,c=_createForOfIteratorHelper(i);try{for(c.s();!(s=c.n()).done;){var h=s.value;l[t](h,n,_objectSpread({capture:!1},r))}}catch(t){c.e(t)}finally{c.f()}}}catch(t){a.e(t)}finally{a.f()}return Array.prototype.slice.call(arguments,1)}function r(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstElementChild}function o(t){var e=function(t,e){var i=t.getAttribute(e);return t.removeAttribute(e),i},i=function t(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e(i,":obj"),o=e(i,":ref"),a=r?n[r]={}:n;o&&(n[o]=i);for(var s=0,l=Array.from(i.children);s<l.length;s++){var c=l[s],h=e(c,":arr"),d=t(c,h?{}:a);h&&(a[h]||(a[h]=[])).push(Object.keys(d).length?d:c)}return n};return i(r(t))}function a(t){var e=t.path||t.composedPath&&t.composedPath();if(e)return e;var i=t.target.parentElement;for(e=[t.target,i];i=i.parentElement;)e.push(i);return e.push(document,window),e}function s(t){return _instanceof(t,Element)?t:"string"==typeof t?t.split(/>>/g).reduce((function(t,e,i,n){return t=t.querySelector(e),i<n.length-1?t.shadowRoot:t}),document):null}function l(t){function e(e){var n=[.001,.01,.1][Number(e.shiftKey||2*e.ctrlKey)]*(e.deltaY<0?1:-1),r=0,o=t.selectionStart;t.value=t.value.replace(/[\d.]+/g,(function(t,e){return e<=o&&e+t.length>=o?(o=e,i(Number(t),n,r)):(r++,t)})),t.focus(),t.setSelectionRange(o,o),e.preventDefault(),t.dispatchEvent(new Event("input"))}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};w(t,"focus",(function(){return w(window,"wheel",e,{passive:!1})})),w(t,"blur",(function(){return _(window,"wheel",e)}))}function c(t,e,i){e/=100,i/=100;var n=A(t=t/360*6),r=t-n,o=i*(1-e),a=i*(1-r*e),s=i*(1-(1-r)*e),l=n%6;return[255*[i,a,o,o,s,i][l],255*[s,i,i,a,o,o][l],255*[o,o,s,i,i,a][l]]}function h(t,e,i){var n=(2-(e/=100))*(i/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*i/(2*n):e*i/(2-2*n)),[t,100*e,100*n]}function d(t,e,i){var n,r,o=S(t/=255,e/=255,i/=255),a=k(t,e,i),s=a-o;if(0===s)n=r=0;else{r=s/a;var l=((a-t)/6+s/2)/s,c=((a-e)/6+s/2)/s,h=((a-i)/6+s/2)/s;t===a?n=h-c:e===a?n=1/3+l-h:i===a&&(n=2/3+c-l),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*a]}function u(t,e,i,n){return e/=100,i/=100,_toConsumableArray(d(255*(1-S(1,(t/=100)*(1-(n/=100))+n)),255*(1-S(1,e*(1-n)+n)),255*(1-S(1,i*(1-n)+n))))}function p(t,e,i){e/=100;var n=2*(e*=(i/=100)<.5?i:1-i)/(i+e)*100,r=100*(i+e);return[t,isNaN(n)?0:n,r]}function f(t){return d.apply(void 0,_toConsumableArray(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function g(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000"===e.fillStyle?null:e.fillStyle}(t):t;var e,i={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},n=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};
64t:for(var r in i)if(e=i[r].exec(t)){var o=function(t){return!!e[2]==("number"==typeof t)};switch(r){case"cmyk":var a=_slicedToArray(n(e),5),s=a[1],l=a[2],c=a[3],h=a[4];if(s>100||l>100||c>100||h>100)break t;return{values:u(s,l,c,h),type:r};case"rgba":var g=_slicedToArray(n(e),7),m=g[3],v=g[4],b=g[5],y=g[6];if(m>255||v>255||b>255||y<0||y>1||!o(y))break t;return{values:[].concat(_toConsumableArray(d(m,v,b)),[y]),a:y,type:r};case"hexa":var x=_slicedToArray(e,2)[1];4!==x.length&&3!==x.length||(x=x.split("").map((function(t){return t+t})).join(""));var w=x.substring(0,6),_=x.substring(6);return _=_?parseInt(_,16)/255:void 0,{values:[].concat(_toConsumableArray(f(w)),[_]),a:_,type:r};case"hsla":var C=_slicedToArray(n(e),7),S=C[3],k=C[4],A=C[5],T=C[6];if(S>360||k>100||A>100||T<0||T>1||!o(T))break t;return{values:[].concat(_toConsumableArray(p(S,k,A)),[T]),a:T,type:r};case"hsva":var L=_slicedToArray(n(e),7),D=L[3],E=L[4],P=L[5],I=L[6];if(D>360||E>100||P>100||I<0||I>1||!o(I))break t;return{values:[D,E,P,I],a:I,type:r}}}return{values:null,type:null}}function m(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=function(t,e){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return e(~i?t.map((function(t){return Number(t.toFixed(i))})):t)}},o={h:t,s:e,v:i,a:n,toHSVA:function(){var t=[o.h,o.s,o.v,o.a];return t.toString=r(t,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(o.a,")")})),t},toHSLA:function(){var t=[].concat(_toConsumableArray(h(o.h,o.s,o.v)),[o.a]);return t.toString=r(t,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(o.a,")")})),t},toRGBA:function(){var t=[].concat(_toConsumableArray(c(o.h,o.s,o.v)),[o.a]);return t.toString=r(t,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(o.a,")")})),t},toCMYK:function(){var t=function(t,e,i){var n=c(t,e,i),r=n[0]/255,o=n[1]/255,a=n[2]/255,s=S(1-r,1-o,1-a);return[100*(1===s?0:(1-r-s)/(1-s)),100*(1===s?0:(1-o-s)/(1-s)),100*(1===s?0:(1-a-s)/(1-s)),100*s]}(o.h,o.s,o.v);return t.toString=r(t,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),t},toHEXA:function(){var t=function(t,e,i){return c(t,e,i).map((function(t){return T(t).toString(16).padStart(2,"0")}))}(o.h,o.s,o.v),e=o.a>=1?"":Number((255*o.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return m(o.h,o.s,o.v,o.a)}};return o}function v(t){var e={options:Object.assign({lock:null,onchange:function(){return 0},onstop:function(){return 0}},t),_keyboard:function(t){var i=e.options,n=t.type,r=t.key;if(document.activeElement===i.wrapper){var o=e.options.lock,a="ArrowUp"===r,s="ArrowRight"===r,l="ArrowDown"===r,c="ArrowLeft"===r;if("keydown"===n&&(a||s||l||c)){var h=0,d=0;"v"===o?h=a||s?1:-1:"h"===o?h=a||s?-1:1:(d=a?-1:l?1:0,h=c?-1:s?1:0),e.update(L(e.cache.x+.01*h),L(e.cache.y+.01*d)),t.preventDefault()}else r.startsWith("Arrow")&&(e.options.onstop(),t.preventDefault())}},_tapstart:function(t){w(document,["mouseup","touchend","touchcancel"],e._tapstop),w(document,["mousemove","touchmove"],e._tapmove),t.cancelable&&t.preventDefault(),e._tapmove(t)},_tapmove:function(t){var i=e.options,n=e.cache,r=i.lock,o=i.element,a=i.wrapper.getBoundingClientRect(),s=0,l=0;if(t){var c=t&&t.touches&&t.touches[0];s=t?(c||t).clientX:0,l=t?(c||t).clientY:0,s<a.left?s=a.left:s>a.left+a.width&&(s=a.left+a.width),l<a.top?l=a.top:l>a.top+a.height&&(l=a.top+a.height),s-=a.left,l-=a.top}else n&&(s=n.x*a.width,l=n.y*a.height);"h"!==r&&(o.style.left="calc(".concat(s/a.width*100,"% - ").concat(o.offsetWidth/2,"px)")),"v"!==r&&(o.style.top="calc(".concat(l/a.height*100,"% - ").concat(o.offsetHeight/2,"px)")),e.cache={x:s/a.width,y:l/a.height};var h=L(s/a.width),d=L(l/a.height);switch(r){case"v":return i.onchange(h);case"h":return i.onchange(d);default:return i.onchange(h,d)}},_tapstop:function(){e.options.onstop(),_(document,["mouseup","touchend","touchcancel"],e._tapstop),_(document,["mousemove","touchmove"],e._tapmove)},trigger:function(){e._tapmove()},update:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.options.wrapper.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,s=n.height;"h"===e.options.lock&&(i=t),e._tapmove({clientX:r+a*t,clientY:o+s*i})},destroy:function(){var t=e.options,i=e._tapstart,n=e._keyboard;_(document,["keydown","keyup"],n),_([t.wrapper,t.element],"mousedown",i),_([t.wrapper,t.element],"touchstart",i,{passive:!1})}},i=e.options,n=e._tapstart,r=e._keyboard;return w([i.wrapper,i.element],"mousedown",n),w([i.wrapper,i.element],"touchstart",n,{passive:!1}),w(document,["keydown","keyup"],r),e}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({onchange:function(){return 0},className:"",elements:[]},t);
64var e=w(t.elements,"click",(function(e){t.elements.forEach((function(i){return i.classList[e.target===i?"add":"remove"](t.className)})),t.onchange(e)}));return{destroy:function(){return _.apply(void 0,_toConsumableArray(e))}}}function y(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.r(e);var x={};i.r(x),i.d(x,"on",(function(){return w})),i.d(x,"off",(function(){return _})),i.d(x,"createElementFromString",(function(){return r})),i.d(x,"createFromTemplate",(function(){return o})),i.d(x,"eventPath",(function(){return a})),i.d(x,"resolveElement",(function(){return s})),i.d(x,"adjustableInputNumbers",(function(){return l}));var w=n.bind(null,"addEventListener"),_=n.bind(null,"removeEventListener"),C=i(0),S=Math.min,k=Math.max,A=Math.floor,T=Math.round,L=function(t){return Math.max(Math.min(t,1),0)},D=function(){var t=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.positionFlipOrder,o=void 0===r?t.defaultPositionFlipOrder:r,a=n.variantFlipOrder,s=void 0===a?t.defaultVariantFlipOrder:a,l=n.container,c=void 0===l?document.documentElement.getBoundingClientRect():l,h=n.forceApplyOnFailure,d=void 0!==h&&h,u=n.margin,p=void 0===u?8:u,f=n.position,g=void 0===f?"bottom-start":f;_classCallCheck(this,t),this.o={positionFlipOrder:o,variantFlipOrder:s,reference:e,popper:i,position:g,container:c,forceApplyOnFailure:d,margin:p}}return _createClass(t,[{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.o,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.o=_objectSpread(_objectSpread({},this.o),t),n=i.container,r=i.reference,o=i.popper,a=i.margin,s=i.position,l=i.forceApplyOnFailure,c=i.variantFlipOrder,h=i.positionFlipOrder;o.style.left="0",o.style.top="0";var d,u=r.getBoundingClientRect(),p=o.getBoundingClientRect(),f={t:u.top-p.height-a,b:u.bottom+a,r:u.right+a,l:u.left-p.width-a},g={vm:-p.width/2+(u.left+u.width/2),vs:u.left,ve:u.left+u.width-p.width,hs:u.bottom-u.height,he:u.bottom-p.height,hm:u.bottom-u.height/2-p.height/2},m=_slicedToArray(s.split("-"),2),v=m[0],b=m[1],y=void 0===b?"middle":b,x=h[v],w=c[y],_=n.top,C=n.left,S=n.bottom,k=n.right,A=_createForOfIteratorHelper(x);try{for(A.s();!(d=A.n()).done;){var T=d.value,L="t"===T||"b"===T,D=f[T],E=_slicedToArray(L?["top","left"]:["left","top"],2),P=E[0],I=E[1],M=_slicedToArray(L?[p.height,p.width]:[p.width,p.height],2),O=M[0],F=M[1],R=_slicedToArray(L?[S,k]:[k,S],2),B=R[0],N=R[1],j=_slicedToArray(L?[_,C]:[C,_],2),$=j[0],V=j[1];if(e||!(D<$||D+O>B)){var H,W=_createForOfIteratorHelper(w);try{for(W.s();!(H=W.n()).done;){var z=H.value,q=g[(L?"v":"h")+z];if(e||!(q<V||q+F>N))return o.style[I]=q-p[I]+"px",o.style[P]=D-p[P]+"px",T+z}}catch(t){W.e(t)}finally{W.f()}}}}catch(t){A.e(t)}finally{A.f()}return l?this.update(void 0,!0):null}}]),t}();return t.version="1.3.0",t.defaultVariantFlipOrder={start:"sme",middle:"mse",end:"ems"},t.defaultPositionFlipOrder={top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},t}(),E=function(){function t(e){var i=this;_classCallCheck(this,t),y(this,"_initializingActive",!0),y(this,"_recalc",!0),y(this,"_nanopop",null),y(this,"_root",null),y(this,"_color",m()),y(this,"_lastColor",m()),y(this,"_swatchColors",[]),y(this,"_eventListener",{init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]}),this.options=e=Object.assign(_objectSpread({},t.DEFAULT_OPTIONS),e);var n=e,r=n.swatches,o=n.components,a=n.theme,s=n.sliders,l=n.lockOpacity,c=n.padding;["nano","monolith"].includes(a)&&!s&&(e.sliders="h"),o.interaction||(o.interaction={});var h=o.preview,d=o.opacity,u=o.hue,p=o.palette;o.opacity=!l&&d,o.palette=p||h||d||u,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),r&&r.length&&r.forEach((function(t){return i.addSwatch(t)}));var f=this._root,g=f.button,v=f.app;this._nanopop=new D(g,v,{margin:c}),g.setAttribute("role","button"),g.setAttribute("aria-label",this._t("btn:toggle"));var b=this;requestAnimationFrame((function t(){if(!v.offsetWidth)return requestAnimationFrame(t);b.setColor(e.default),b._rePositioningPicker(),e.defaultRepresentation&&(b._representation=e.defaultRepresentation,b.setColorRepresentation(b._representation)),e.showAlways&&b.show(),b._initializingActive=!1,b._emit("init")}))}return _createClass(t,[{key:"_preBuild",value:function(){for(var t=this.options,e=0,i=["el","container"];e<i.length;e++){var n=i[e];t[n]=s(t[n])}this._root=function(t){var e=t.options,i=e.components,n=e.useAsButton,r=e.inline,a=e.appClass,s=e.theme,l=e.lockOpacity,c=function(t){return t?"":'style="display:none" hidden'},h=function(e){return t._t(e)
65},d=o('\n      <div :ref="root" class="pickr">\n\n        '.concat(n?"":'<button type="button" :ref="button" class="pcr-button"></button>','\n\n        <div :ref="app" class="pcr-app ').concat(a||"",'" data-theme="').concat(s,'" ').concat(r?'style="position: unset"':"",' aria-label="').concat(h("ui:dialog"),'" role="window">\n          <div class="pcr-selection" ').concat(c(i.palette),'>\n            <div :obj="preview" class="pcr-color-preview" ').concat(c(i.preview),'>\n              <button type="button" :ref="lastColor" class="pcr-last-color" aria-label="').concat(h("btn:last-color"),'"></button>\n              <div :ref="currentColor" class="pcr-current-color"></div>\n            </div>
65\n\n            <div :obj="palette" class="pcr-color-palette">\n              <div :ref="picker" class="pcr-picker"></div>\n              <div :ref="palette" class="pcr-palette" tabindex="0" aria-label="').concat(h("aria:palette"),'" role="listbox"></div>\n            </div>\n\n            <div :obj="hue" class="pcr-color-chooser" ').concat(c(i.hue),'>\n              <div :ref="picker" class="pcr-picker"></div>\n              <div :ref="slider" class="pcr-hue pcr-slider" tabindex="0" aria-label="').concat(h("aria:hue"),'" role="slider"></div>\n            </div>\n\n            <div :obj="opacity" class="pcr-color-opacity" ').concat(c(i.opacity),'>\n              <div :ref="picker" class="pcr-picker"></div>\n              <div :ref="slider" class="pcr-opacity pcr-slider" tabindex="0" aria-label="').concat(h("aria:opacity"),'" role="slider"></div>\n            </div>\n          </div>\n\n          <div class="pcr-swatches ').concat(i.palette?"":"pcr-last",'" :ref="swatches"></div>\n\n          <div :obj="interaction" class="pcr-interaction" ').concat(c(Object.keys(i.interaction).length),'>\n            <input :ref="result" class="pcr-result" type="text" spellcheck="false" ').concat(c(i.interaction.input),' aria-label="').concat(h("aria:input"),'">\n\n            <input :arr="options" class="pcr-type" data-type="HEXA" value="').concat(l?"HEX":"HEXA",'" type="button" ').concat(c(i.interaction.hex),'>\n            <input :arr="options" class="pcr-type" data-type="RGBA" value="').concat(l?"RGB":"RGBA",'" type="button" ').concat(c(i.interaction.rgba),'>\n            <input :arr="options" class="pcr-type" data-type="HSLA" value="').concat(l?"HSL":"HSLA",'" type="button" ').concat(c(i.interaction.hsla),'>\n            <input :arr="options" class="pcr-type" data-type="HSVA" value="').concat(l?"HSV":"HSVA",'" type="button" ').concat(c(i.interaction.hsva),'>\n            <input :arr="options" class="pcr-type" data-type="CMYK" value="CMYK" type="button" ').concat(c(i.interaction.cmyk),'>\n\n            <input :ref="save" class="pcr-save" value="').concat(h("btn:save"),'" type="button" ').concat(c(i.interaction.save),' aria-label="').concat(h("aria:btn:save"),'">\n            <input :ref="cancel" class="pcr-cancel" value="').concat(h("btn:cancel"),'" type="button" ').concat(c(i.interaction.cancel),' aria-label="').concat(h("aria:btn:cancel"),'">\n            <input :ref="clear" class="pcr-clear" value="').concat(h("btn:clear"),'" type="button" ').concat(c(i.interaction.clear),' aria-label="').concat(h("aria:btn:clear"),'">\n          </div>\n        </div>\n      </div>\n    ')),u=d.interaction;return u.options.find((function(t){return!t.hidden&&!t.classList.add("active")})),u.type=function(){return u.options.find((function(t){return t.classList.contains("active")}))},d}(this),t.useAsButton&&(this._root.button=t.el),t.container.appendChild(this._root.root)}},{key:"_finalBuild",value:function(){var t=this.options,e=this._root;if(t.container.removeChild(e.root),t.inline){var i=t.el.parentElement;t.el.nextSibling?i.insertBefore(e.app,t.el.nextSibling):i.appendChild(e.app)}else t.container.appendChild(e.app);t.useAsButton?t.inline&&t.el.remove():t.el.parentNode.replaceChild(e.root,t.el),t.disabled&&this.disable(),t.comparison||(e.button.style.transition="none",t.useAsButton||(e.preview.lastColor.style.transition="none")),this.hide()}},{key:"_buildComponents",value:function(){var t=this,e=this,i=this.options.components,n=(e.options.sliders||"v").repeat(2),r=_slicedToArray(n.match(/^[vh]+$/g)?n:[],2),o=r[0],a=r[1],s=function(){return t._color||(t._color=t._lastColor.clone())},l={palette:v({element:e._root.palette.picker,wrapper:e._root.palette.palette,onstop:function(){return e._emit("changestop",e)},onchange:function(t,n){if(i.palette){var r=s(),o=e._root,a=e.options,l=o.preview,c=l.lastColor,h=l.currentColor;e._recalc&&(r.s=100*t,r.v=100-100*n,r.v<0&&(r.v=0),e._updateOutput());var d=r.toRGBA().toString(0);this.element.style.background=d,this.wrapper.style.background="\n                        linear-gradient(to top, rgba(0, 0, 0, ".concat(r.a,"), transparent),\n                        linear-gradient(to left, hsla(").concat(r.h,", 100%, 50%, ").
65concat(r.a,"), rgba(255, 255, 255, ").concat(r.a,"))\n                    "),a.comparison?a.useAsButton||e._lastColor||(c.style.color=d):(o.button.style.color=d,o.button.classList.remove("clear"));var u,p=r.toHEXA().toString(),f=_createForOfIteratorHelper(e._swatchColors);try{for(f.s();!(u=f.n()).done;){var g=u.value,m=g.el,v=g.color;m.classList[p===v.toHEXA().toString()?"add":"remove"]("pcr-active")}}catch(t){f.e(t)}finally{f.f()}h.style.color=d}}}),hue:v({lock:"v"===a?"h":"v",element:e._root.hue.picker,wrapper:e._root.hue.slider,onstop:function(){return e._emit("changestop",e)},onchange:function(t){if(i.hue&&i.palette){var n=s();e._recalc&&(n.h=360*t),this.element.style.backgroundColor="hsl(".concat(n.h,", 100%, 50%)"),l.palette.trigger()}}}),opacity:v({lock:"v"===o?"h":"v",element:e._root.opacity.picker,wrapper:e._root.opacity.slider,onstop:function(){return e._emit("changestop",e)},onchange:function(t){if(i.opacity&&i.palette){var n=s();e._recalc&&(n.a=Math.round(100*t)/100),this.element.style.background="rgba(0, 0, 0, ".concat(n.a,")"),l.palette.trigger()}}}),selectable:b({elements:e._root.interaction.options,className:"active",onchange:function(t){e._representation=t.target.getAttribute("data-type").toUpperCase(),e._recalc&&e._updateOutput()}})};this._components=l}},{key:"_bindEvents",value:function(){var t=this,e=this._root,i=this.options,n=[w(e.interaction.clear,"click",(function(){return t._clearColor()})),w([e.interaction.cancel,e.preview.lastColor],"click",(function(){t._emit("cancel",t),t.setHSVA.apply(t,_toConsumableArray((t._lastColor||t._color).toHSVA()).concat([!0]))})),w(e.interaction.save,"click",(function(){!t.applyColor()&&!i.showAlways&&t.hide()})),w(e.interaction.result,["keyup","input"],(function(e){t.setColor(e.target.value,!0)&&!t._initializingActive&&t._emit("change",t._color),e.stopImmediatePropagation()})),w(e.interaction.result,["focus","blur"],(function(e){t._recalc="blur"===e.type,t._recalc&&t._updateOutput()})),w([e.palette.palette,e.palette.picker,e.hue.slider,e.hue.picker,e.opacity.slider,e.opacity.picker],["mousedown","touchstart"],(function(){return t._recalc=!0}),{passive:!0})];if(!i.showAlways){var r=i.closeWithKey;n.push(w(e.button,"click",(function(){return t.isOpen()?t.hide():t.show()})),w(document,"keyup",(function(e){return t.isOpen()&&(e.key===r||e.code===r)&&t.hide()})),w(document,["touchstart","mousedown"],(function(i){t.isOpen()&&!a(i).some((function(t){return t===e.app||t===e.button}))&&t.hide()}),{capture:!0}))}if(i.adjustableNumbers){var o={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};l(e.interaction.result,(function(e,i,n){var r=o[t.getColorRepresentation().toLowerCase()];if(r){var a=r[n],s=e+(a>=100?1e3*i:i);return s<=0?0:Number((s<a?s:a).toPrecision(3))}return e}))}if(i.autoReposition&&!i.inline){var s=null,c=this;n.push(w(window,["scroll","resize"],(function(){c.isOpen()&&(i.closeOnScroll&&c.hide(),null===s?(s=setTimeout((function(){return s=null}),100),requestAnimationFrame((function t(){c._rePositioningPicker(),null!==s&&requestAnimationFrame(t)}))):(clearTimeout(s),s=setTimeout((function(){return s=null}),100)))}),{capture:!0}))}this._eventBindings=n}},{key:"_rePositioningPicker",value:function(){var t=this.options;if(!t.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:t.position,forceApplyOnFailure:!this._recalc})){var e=this._root.app,i=e.getBoundingClientRect();e.style.top="".concat((window.innerHeight-i.height)/2,"px"),e.style.left="".concat((window.innerWidth-i.width)/2,"px")}}},{key:"_updateOutput",value:function(){var t=this._root,e=this._color,i=this.options;if(t.interaction.type()){var n="to".concat(t.interaction.type().getAttribute("data-type"));t.interaction.result.value="function"==typeof e[n]?e[n]().toString(i.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",e)}},{key:"_clearColor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._root,i=this.options;i.useAsButton||(e.button.style.color="rgba(0, 0, 0, 0.15)"),e.button.classList.add("clear"),i.showAlways||this.hide(),this._lastColor=null,this._initializingActive||t||(this._emit("save",null),this._emit("clear",this))}},{key:"_parseLocalColor",value:function(t){var e=g(t),i=e.values,n=e.type,r=e.a,o=this.options.lockOpacity,a=void 0!==r&&1!==r;return i&&3===i.length&&(i[3]=void 0),{values:!i||o&&a?null:i,type:n}}},{key:"_t",value:function(e){return this.options.i18n[e]||t.I18N_DEFAULTS[e]}},{key:"_emit",value:function(t){for(var e=this,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this._eventListener[t].forEach((function(t){return t.apply(void 0,n.concat([e]))}))}},{key:"on",value:function(t,e){return this._eventListener[t].push(e),this}},{key:"off",value:function(t,e){var i=this._eventListener[t]||[],n=i.indexOf(e);return~n&&i.splice(n,1),this}},{key:"addSwatch",value:function(t){var e=this,i=this._parseLocalColor(t).values;if(i){var n=this._swatchColors,o=this._root,a=m.apply(void 0,_toConsumableArray(i)),s=r('<button type="button" style="color: '.concat(a.toRGBA().toString(0),'" aria-label="').concat(this._t("btn:swatch"),'"/>'));return o.swatches.appendChild(s),n.push({el:s,color:a}),this._eventBindings.push(w(s,"click",(function(){e.setHSVA.apply(e,_toConsumableArray(a.toHSVA()).concat([!0])),e._emit("swatchselect",a),e._emit("change",a)}))),!0}return!1}},{key:"removeSwatch",value:function(t){var e=this._swatchColors[t];if(e){var i=e.el;return this._root.swatches.removeChild(i),this._swatchColors.splice(t,1),!0}return!1}},{key:"applyColor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._root,i=e.preview,n=e.button,r=this._color.toRGBA().toString(0);return i.lastColor.style.color=r,this.options.useAsButton||(n.style.color=r),n.classList.remove("clear"),this._lastColor=this._color.clone(),this._initializingActive||t||this._emit("save",this._color),this}},{key:"destroy",value:function(){var t=this;
65this._eventBindings.forEach((function(t){return _.apply(void 0,_toConsumableArray(t))})),Object.keys(this._components).forEach((function(e){return t._components[e].destroy()}))}},{key:"destroyAndRemove",value:function(){var t=this;this.destroy();var e=this._root,i=e.root,n=e.app;i.parentElement&&i.parentElement.removeChild(i),n.parentElement.removeChild(n),Object.keys(this).forEach((function(e){return t[e]=null}))}},{key:"hide",value:function(){return this._root.app.classList.remove("visible"),this._emit("hide",this),this}},{key:"show",value:function(){return this.options.disabled||(this._root.app.classList.add("visible"),this._rePositioningPicker(),this._emit("show",this)),this}},{key:"isOpen",value:function(){return this._root.app.classList.contains("visible")}},{key:"setHSVA",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:360,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this._recalc;if(this._recalc=!1,t<0||t>360||e<0||e>100||i<0||i>100||n<0||n>1)return!1;this._color=m(t,e,i,n);var a=this._components,s=a.hue,l=a.opacity,c=a.palette;return s.update(t/360),l.update(n),c.update(e/100,1-i/100),r||this.applyColor(),o&&this._updateOutput(),this._recalc=o,!0}},{key:"setColor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===t)return this._clearColor(e),!0;var i=this._parseLocalColor(t),n=i.values,r=i.type;if(n){var o=r.toUpperCase(),a=this._root.interaction.options,s=a.find((function(t){return t.getAttribute("data-type")===o}));if(s&&!s.hidden){var l,c=_createForOfIteratorHelper(a);try{for(c.s();!(l=c.n()).done;){var h=l.value;h.classList[h===s?"add":"remove"]("active")}}catch(t){c.e(t)}finally{c.f()}}return!!this.setHSVA.apply(this,_toConsumableArray(n).concat([e]))&&this.setColorRepresentation(o)}return!1}},{key:"setColorRepresentation",value:function(t){return t=t.toUpperCase(),!!this._root.interaction.options.find((function(e){return e.getAttribute("data-type").startsWith(t)&&!e.click()}))}},{key:"getColorRepresentation",value:function(){return this._representation}},{key:"getColor",value:function(){return this._color}},{key:"getSelectedColor",value:function(){return this._lastColor}},{key:"getRoot",value:function(){return this._root}},{key:"disable",value:function(){return this.hide(),this.options.disabled=!0,this._root.button.classList.add("disabled"),this}},{key:"enable",value:function(){return this.options.disabled=!1,this._root.button.classList.remove("disabled"),this}}]),t}();y(E,"utils",x),y(E,"version",C.a),y(E,"I18N_DEFAULTS",{"ui:dialog":"color picker dialog","btn:toggle":"toggle color picker dialog","btn:swatch":"color swatch","btn:last-color":"use previous color","btn:save":"Save","btn:cancel":"Cancel","btn:clear":"Clear","aria:btn:save":"save and close","aria:btn:cancel":"cancel and close","aria:btn:clear":"clear and close","aria:input":"color input field","aria:palette":"color selection area","aria:hue":"hue selection slider","aria:opacity":"selection slider"}),y(E,"DEFAULT_OPTIONS",{appClass:null,theme:"classic",useAsButton:!1,padding:8,disabled:!1,comparison:!0,closeOnScroll:!1,outputPrecision:0,lockOpacity:!1,autoReposition:!0,container:"body",components:{interaction:{}},i18n:{},swatches:null,inline:!1,sliders:null,default:"#42445a",defaultRepresentation:null,position:"bottom-middle",adjustableNumbers:!0,showAlways:!1,closeWithKey:"Escape"}),y(E,"create",(function(t){return new E(t)})),e.default=E}]).default}));var colorFactory=new ColorFactory,foregroundColorPickr={},backgroundColorPickr={};document.addEventListener("trix-file-accept",(function(t){if(["image/jpeg","image/png","image/jpg","image/gif","application/pdf"].includes(t.file.type)){var e=document.getElementById("file-format-not-accepted-error-message");e&&e.classList.add("hidden")}else t.preventDefault(),document.getElementById("file-format-not-accepted-error-message").classList.remove("hidden"),window.scrollTo(0,0)})),document.addEventListener("trix-attachment-add",(function(t){var e=document.querySelector("trix-editor"),i=t.attachment;t.composed;const n=t.path||t.composedPath();var r=n[0].attributes["domain-id"].value,o=void 0!==n[0].attributes["trixattachable-id"]?n[0].attributes["trixattachable-id"].value:null,a=n[0].attributes["trixattachable-type"].value,s=document.querySelector("[name='csrf-token']").content;i.file&&r&&a&&s&&("application/pdf"==i.attachment.attributes.values.contentType?uploadPdfAttachment(i,r,o,a,s,e.editor):genBlob(i,r,o,a,s)),console.log(t)}),!0),Trix.config.blockAttributes.heading2={tagName:"h2",terminal:!0,breakOnReturn:!0,group:!1},Trix.config.blockAttributes.heading3={tagName:"h3",terminal:!0,breakOnReturn:!0,group:!1},Trix.config.blockAttributes.heading4={tagName:"h4",terminal:!0,breakOnReturn:!0,group:!1},Trix.config.textAttributes.underline={tagName:"u"},Trix.config.textAttributes.span={tagName:"highlight"},Trix.config.blockAttributes.paragraph={tagName:"p"},Trix.config.textAttributes.foregroundColor={styleProperty:"color",inheritable:!0},Trix.config.textAttributes.backgroundColor={styleProperty:"backgroundColor",inheritable:!0},Trix.config.textAttributes.borderRadius={styleProperty:"borderRadius",inheritable:!0},Trix.config.textAttributes.padding={styleProperty:"padding",inheritable:!0},document.addEventListener("trix-initialize",(t=>{if(t.target.dataset.loaded)return;t.target.dataset.loaded=!0,console.log(t),checkTrixCustomButtons();const{editor:e}=t.target;""===t.target.value&&e.insertHTML("<br>");var i=t.target.classList.contains("text-only");const n=t.target.toolbarElement,r=n.querySelector("[data-trix-button-group=text-tools]"),o=n.querySelector("[data-trix-button-group=block-tools]"),a=n.querySelector("[data-trix-button-group=file-tools]");if(r.querySelector(".trix-button--icon-strike")&&r.querySelector(".trix-button--icon-strike").remove(),o.querySelector(".trix-button--icon-heading-1")&&o.querySelector(".trix-button--icon-heading-1").remove(),o.querySelector(".trix-button--icon-code")&&o.querySelector(".trix-button--icon-code").remove(),a){var s=a;a.remove()}const l='<button type="button" class="trix-button" data-trix-attribute="underline" title="u"><span style="text-decoration: underline;">U</span></button>';r.insertAdjacentHTML("afterbegin",l);const c=t.target.toolbarElement.querySelector(".trix-button-row"),h='\n    <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">\n      <button type="button" class="trix-button" data-trix-attribute="heading1" title="h1" tabindex="-1">h1</button>\n      <button type="button" class="trix-button" data-trix-attribute="heading2" title="h2" tabindex="-1">h2</button>\n      <button type="button" class="trix-button" data-trix-attribute="heading3" title="h3" tabindex="-1">h3</button>\n      <button type="button" class="trix-button" data-trix-attribute="heading4" title="h4" tabindex="-1">h4</button>\n      <button type="button" class="trix-button" data-trix-attribute="paragraph" title="p" tabindex="-1">p</button>\n    </span>\n  ';addForegroundButton(t.target.attributes.input.value,r),addBackgroun
65dButton(t.target.attributes.input.value,r),c.insertAdjacentHTML("afterbegin",h);const d=document.createElement("span");if(d.classList.add("trix-button-group"),d.classList.add("trix-button-group--button-tools"),d.dataset.trixButtonGroup="button-tools",!i){var u=s||a,p=d;addImageSizeButtons(t.target.editor,u),addVideoButton(t.target.editor,u),addButtonLink(t.target.editor,p),c.insertBefore(p,c.getElementsByClassName("trix-button-group--block-tools")[0].nextSibling),c.insertAdjacentHTML("afterbegin",u.outerHTML)}o.insertAdjacentHTML("afterbegin",'\n    <button type="button" class="trix-button" data-trix-action="x-horizontal-rule" title="Horizontal Rule" tabindex="-1">\u2501</button>\n  '),document.querySelectorAll("input[type=url]").forEach((t=>{t.addEventListener("input",(function(e){let i=e.target.value;null==i.match(/^https?\:\/\//)&&(t.value="http://"+i)}))})),initImageSizes(),disableClickForEditorCustomLinks(e.element)})),document.addEventListener("trix-action-invoke",(t=>{if("x-horizontal-rule"==t.actionName){const{editor:e}=t.target,i=new Trix.Attachment({content:"<hr>",contentType:"application/vnd.trix.horizontal-rule.html"});e.composition.positionIsBlockBreak(e.getPosition())&&e.composition.insertBlockBreak();Object.entries(e.composition.getCurrentAttributes()).filter((t=>t[1])).forEach((t=>{e.deactivateAttribute(t[0])})),e.insertAttachment(i)}console.log(t),"x-plus-size"==t.actionName&&incrementSelectedImage(t),"x-minus-size"==t.actionName&&decrementSelectedImage(t),"x-add-video-url"==t.actionName&&console.log("agregar vide"),"custom-link"==t.actionName&&console.log("CUSTOM LINK")})),document.addEventListener("trix-selection-change",(t=>{if(null!=t.target.editor.composition.editingAttachment){var e=t.target.editor.composition.editingAttachment;e.attributes.values.contentType.startsWith("image")&&e.attributes.values.url?showPlusMinusBtns(t,JSON.stringify(t.target.editor.composition.editingAttachment.attributes.values)):hidePlusMinusBtns()}else hidePlusMinusBtns();initImageSizes()})),document.addEventListener("trix-change",(t=>{if("true"==t.target.dataset.triggerChange){var e=t.target.attributes.input.nodeValue,i=document.getElementById(e);i.value=t.target.value;var n=new Event("change");i.dispatchEvent(n)}disableClickForEditorCustomLinks(t.target)})),document.addEventListener("trix-blur",(t=>{t.target&&t.target.value&&""==t.target.value.replace(/(<([^>]+)>)/gi,"")&&(t.target.value=t.target.value.replace(/(<([^>]+)>)/gi,""))})),Array.prototype.contains=function(t){for(var e=0;e<this.length;e++)if(this[e]===t)return!0;return!1},Array.prototype.unique=function(){for(var t=[],e=0;e<this.length;e++)t.contains(this[e])||t.push(this[e]);return t},function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ActiveStorage={})}(this,(function(t){"use strict";function e(t){const e=n(document.head,`meta[name="${t}"]`);if(e)return e.getAttribute("content")}function i(t,e){"string"==typeof t&&(e=t,t=document);return o(t.querySelectorAll(e))}function n(t,e){return"string"==typeof t&&(e=t,t=document),t.querySelector(e)}function r(t,e,i={}){const{disabled:n}=t,{bubbles:r,cancelable:o,detail:a}=i,s=document.createEvent("Event");s.initEvent(e,r||!0,o||!0),s.detail=a||{};try{t.disabled=!1,t.dispatchEvent(s)}finally{t.disabled=n}return s}function o(t){return Array.isArray(t)?t:Array.from?Array.from(t):[].slice.call(t)}function a(t,e,...i){if(t&&"function"==typeof t[e])return t[e](...i)}function s(){D||(D=!0,document.addEventListener("click",l,!0),document.addEventListener("submit",c,!0),document.addEventListener("ajax:before",h))}function l(t){const{target:e}=t;"INPUT"!=e.tagName&&"BUTTON"!=e.tagName||"submit"!=e.type||!e.form||L.set(e.form,e)}function c(t){d(t)}function h(t){"FORM"==t.target.tagName&&d(t)}function d(t){const e=t.target;if(e.hasAttribute(T))return void t.preventDefault();const i=new A(e),{inputs:n}=i;n.length&&(t.preventDefault(),e.setAttribute(T,""),n.forEach(p),i.start((t=>
vendor: 5,119 bytes, line 65
65{e.removeAttribute(T),t?n.forEach(f):u(e)})))}function u(t){let e=L.get(t)||n(t,"input[type=submit], button[type=submit]");if(e){const{disabled:t}=e;e.disabled=!1,e.focus(),e.click(),e.disabled=t}else e=document.createElement("input"),e.type="submit",e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e);L.delete(t)}function p(t){t.disabled=!0}function f(t){t.disabled=!1}function g(){window.ActiveStorage&&s()}var m={exports:{}};!function(t){var e;e=function(t){function e(t,e){var i=t[0],n=t[1],r=t[2],o=t[3];n=((n+=((r=((r+=((o=((o+=((i=((i+=(n&r|~n&o)+e[0]-680876936|0)<<7|i>>>25)+n|0)&n|~i&r)+e[1]-389564586|0)<<12|o>>>20)+i|0)&i|~o&n)+e[2]+606105819|0)<<17|r>>>15)+o|0)&o|~r&i)+e[3]-1044525330|0)<<22|n>>>10)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n&r|~n&o)+e[4]-176418897|0)<<7|i>>>25)+n|0)&n|~i&r)+e[5]+1200080426|0)<<12|o>>>20)+i|0)&i|~o&n)+e[6]-1473231341|0)<<17|r>>>15)+o|0)&o|~r&i)+e[7]-45705983|0)<<22|n>>>10)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n&r|~n&o)+e[8]+1770035416|0)<<7|i>>>25)+n|0)&n|~i&r)+e[9]-1958414417|0)<<12|o>>>20)+i|0)&i|~o&n)+e[10]-42063|0)<<17|r>>>15)+o|0)&o|~r&i)+e[11]-1990404162|0)<<22|n>>>10)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n&r|~n&o)+e[12]+1804603682|0)<<7|i>>>25)+n|0)&n|~i&r)+e[13]-40341101|0)<<12|o>>>20)+i|0)&i|~o&n)+e[14]-1502002290|0)<<17|r>>>15)+o|0)&o|~r&i)+e[15]+1236535329|0)<<22|n>>>10)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n&o|r&~o)+e[1]-165796510|0)<<5|i>>>27)+n|0)&r|n&~r)+e[6]-1069501632|0)<<9|o>>>23)+i|0)&n|i&~n)+e[11]+643717713|0)<<14|r>>>18)+o|0)&i|o&~i)+e[0]-373897302|0)<<20|n>>>12)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n&o|r&~o)+e[5]-701558691|0)<<5|i>>>27)+n|0)&r|n&~r)+e[10]+38016083|0)<<9|o>>>23)+i|0)&n|i&~n)+e[15]-660478335|0)<<14|r>>>18)+o|0)&i|o&~i)+e[4]-405537848|0)<<20|n>>>12)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n&o|r&~o)+e[9]+568446438|0)<<5|i>>>27)+n|0)&r|n&~r)+e[14]-1019803690|0)<<9|o>>>23)+i|0)&n|i&~n)+e[3]-187363961|0)<<14|r>>>18)+o|0)&i|o&~i)+e[8]+1163531501|0)<<20|n>>>12)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n&o|r&~o)+e[13]-1444681467|0)<<5|i>>>27)+n|0)&r|n&~r)+e[2]-51403784|0)<<9|o>>>23)+i|0)&n|i&~n)+e[7]+1735328473|0)<<14|r>>>18)+o|0)&i|o&~i)+e[12]-1926607734|0)<<20|n>>>12)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n^r^o)+e[5]-378558|0)<<4|i>>>28)+n|0)^n^r)+e[8]-2022574463|0)<<11|o>>>21)+i|0)^i^n)+e[11]+1839030562|0)<<16|r>>>16)+o|0)^o^i)+e[14]-35309556|0)<<23|n>>>9)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n^r^o)+e[1]-1530992060|0)<<4|i>>>28)+n|0)^n^r)+e[4]+1272893353|0)<<11|o>>>21)+i|0)^i^n)+e[7]-155497632|0)<<16|r>>>16)+o|0)^o^i)+e[10]-1094730640|0)<<23|n>>>9)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n^r^o)+e[13]+681279174|0)<<4|i>>>28)+n|0)^n^r)+e[0]-358537222|0)<<11|o>>>21)+i|0)^i^n)+e[3]-722521979|0)<<16|r>>>16)+o|0)^o^i)+e[6]+76029189|0)<<23|n>>>9)+r|0,n=((n+=((r=((r+=((o=((o+=((i=((i+=(n^r^o)+e[9]-640364487|0)<<4|i>>>28)+n|0)^n^r)+e[12]-421815835|0)<<11|o>>>21)+i|0)^i^n)+e[15]+530742520|0)<<16|r>>>16)+o|0)^o^i)+e[2]-995338651|0)<<23|n>>>9)+r|0,n=((n+=((o=((o+=(n^((i=((i+=(r^(n|~o))+e[0]-198630844|0)<<6|i>>>26)+n|0)|~r))+e[7]+1126891415|0)<<10|o>>>22)+i|0)^((r=((r+=(i^(o|~n))+e[14]-1416354905|0)<<15|r>>>17)+o|0)|~i))+e[5]-57434055|0)<<21|n>>>11)+r|0,n=((n+=((o=((o+=(n^((i=((i+=(r^(n|~o))+e[12]+1700485571|0)<<6|i>>>26)+n|0)|~r))+e[3]-1894986606|0)<<10|o>>>22)+i|0)^((r=((r+=(i^(o|~n))+e[10]-1051523|0)<<15|r>>>17)+o|0)|~i))+e[1]-2054922799|0)<<21|n>>>11)+r|0,n=((n+=((o=((o+=(n^((i=((i+=(r^(n|~o))+e[8]+1873313359|0)<<6|i>>>26)+n|0)|~r))+e[15]-30611744|0)<<10|o>>>22)+i|0)^((r=((r+=(i^(o|~n))+e[6]-1560198380|0)<<15|r>>>17)+o|0)|~i))+e[13]+1309151649|0)<<21|n>>>11)+r|0,n=((n+=((o=((o+=(n^((i=((i+=(r^(n|~o))+e[4]-145523070|0)<<6|i>>>26)+n|0)|~r))+e[11]-1120210379|0)<<10|o>>>22)+i|0)^((r=((r+=(i^(o|~n))+e[2]+718787259|0)<<15|r>>>17)+o|0)|~i))+e[9]-343485551|0)<<21|n>>>11)+r|0,t[0]=i+t[0]|0,t[1]=n+t[1]|0,t[2]=r+t[2]|0,t[3]=o+t[3]|0}function i(t){var e,i=[];for(e=0;e<64;e+=4)i[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return i}function n(t){var e,i=[];for(e=0;e<64;e+=4)i[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return i}function r(t){var n,r,o,a,s,l,c=t.length,h=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=c;n+=64)e(h,i(t.substring(n-64,n)));for(r=(t=t.substring(n-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<r;n+=1)o[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(e(h,o),n=0;n<16;n+=1)o[n]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,e(h,o),h}function o(t){var i,r,o,a,s,l,c=t.length,h=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=c;i+=64)e(h,n(t.subarray(i-64,i)));for(r=(t=i-64<c?t.subarray(i-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=0;i<r;i+=1)o[i>>2]|=t[i]<<(i%4<<3);if(o[i>>2]|=128<<(i%4<<3),i>55)for(e(h,o),i=0;i<16;i+=1)o[i]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,e(h,o),h}function a(t){var e,i="";for(e=0;e<4;e+=1)i+=f[t>>8*e+4&15]+f[t>>8*e&15];return i}function s(t){var e;
vendor: 4,101 bytes, line 65
65for(e=0;e<t.length;e+=1)t[e]=a(t[e]);return t.join("")}function l(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function c(t,e){var i,n=t.length,r=new ArrayBuffer(n),o=new Uint8Array(r);for(i=0;i<n;i+=1)o[i]=t.charCodeAt(i);return e?o:r}function h(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function d(t,e,i){var n=new Uint8Array(t.byteLength+e.byteLength);return n.set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),i?n:n.buffer}function u(t){var e,i=[],n=t.length;for(e=0;e<n-1;e+=2)i.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,i)}function p(){this.reset()}var f=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return s(r("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(i,n){var r,o,a,s,l=this.byteLength,c=e(i,l),h=l;return n!==t&&(h=e(n,l)),c>h?new ArrayBuffer(0):(r=h-c,o=new ArrayBuffer(r),a=new Uint8Array(o),s=new Uint8Array(this,c,r),a.set(s),o)}}(),p.prototype.append=function(t){return this.appendBinary(l(t)),this},p.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var n,r=this._buff.length;for(n=64;n<=r;n+=64)e(this._hash,i(this._buff.substring(n-64,n)));return this._buff=this._buff.substring(n-64),this},p.prototype.end=function(t){var e,i,n=this._buff,r=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r;e+=1)o[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,r),i=s(this._hash),t&&(i=u(i)),this.reset(),i},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(t,i){var n,r,o,a=i;if(t[a>>2]|=128<<(a%4<<3),a>55)for(e(this._hash,t),a=0;a<16;a+=1)t[a]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(n[2],16),o=parseInt(n[1],16)||0,t[14]=r,t[15]=o,e(this._hash,t)},p.hash=function(t,e){return p.hashBinary(l(t),e)},p.hashBinary=function(t,e){var i=s(r(t));return e?u(i):i},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(t){var i,r=d(this._buff.buffer,t,!0),o=r.length;for(this._length+=t.byteLength,i=64;i<=o;i+=64)e(this._hash,n(r.subarray(i-64,i)));return this._buff=i-64<o?new Uint8Array(r.buffer.slice(i-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(t){var e,i,n=this._buff,r=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r;e+=1)o[e>>2]|=n[e]<<(e%4<<3);return this._finish(o,r),i=s(this._hash),t&&(i=u(i)),this.reset(),i},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var t=p.prototype.getState.call(this);return t.buff=h(t.buff),t},p.ArrayBuffer.prototype.setState=function(t){return t.buff=c(t.buff,!0),p.prototype.setState.call(this,t)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(t,e){var i=s(o(new Uint8Array(t)));return e?u(i):i},p},t.exports=e()}(m);var v=m.exports;const b=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice;class y{static create(t,e){new y(t).create(e)}constructor(t){this.file=t,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}create(t){this.callback=t,this.md5Buffer=new v.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",(t=>this.fileReaderDidLoad(t))),this.fileReader.addEventListener("error",(t=>this.fileReaderDidError(t))),this.readNextChunk()}fileReaderDidLoad(t){if(this.md5Buffer.append(t.target.result),!this.readNextChunk()){const t=this.md
655Buffer.end(!0),e=btoa(t);this.callback(null,e)}}fileReaderDidError(t){this.callback(`Error reading ${this.file.name}`)}readNextChunk(){if(this.chunkIndex<this.chunkCount||0==this.chunkIndex&&0==this.chunkCount){const t=this.chunkIndex*this.chunkSize,e=Math.min(t+this.chunkSize,this.file.size),i=b.call(this.file,t,e);return this.fileReader.readAsArrayBuffer(i),this.chunkIndex++,!0}return!1}}class x{constructor(t,i,n){this.file=t,this.attributes={filename:t.name,content_type:t.type||"application/octet-stream",byte_size:t.size,checksum:i},this.xhr=new XMLHttpRequest,this.xhr.open("POST",n,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");const r=e("csrf-token");null!=r&&this.xhr.setRequestHeader("X-CSRF-Token",r),this.xhr.addEventListener("load",(t=>this.requestDidLoad(t))),this.xhr.addEventListener("error",(t=>this.requestDidError(t)))}get status(){return this.xhr.status}get response(){const{responseType:t,response:e}=this.xhr;return"json"==t?e:JSON.parse(e)}create(t){this.callback=t,this.xhr.send(JSON.stringify({blob:this.attributes}))}
66requestDidLoad(t){if(this.status>=200&&this.status<300){const{response:t}=this,{direct_upload:e}=t;delete t.direct_upload,this.attributes=t,this.directUploadData=e,this.callback(null,this.toJSON())}else this.requestDidError(t)}requestDidError(t){this.callback(`Error creating Blob for "${this.file.name}". Status: ${this.status}`)}toJSON(){const t={};for(const e in this.attributes)t[e]=this.attributes[e];return t}}class w{constructor(t){this.blob=t,this.file=t.file;const{url:e,headers:i}=t.directUploadData;this.xhr=new XMLHttpRequest,this.xhr.open("PUT",e,!0),this.xhr.responseType="text";for(const t in i)this.xhr.setRequestHeader(t,i[t]);this.xhr.addEventListener("load",(t=>this.requestDidLoad(t))),this.xhr.addEventListener("error",(t=>this.requestDidError(t)))}create(t){this.callback=t,this.xhr.send(this.file.slice())}requestDidLoad(t){const{status:e,response:i}=this.xhr;e>=200&&e<300?this.callback(null,i):this.requestDidError(t)}requestDidError(t){this.callback(`Error storing "${this.file.name}". Status: ${this.xhr.status}`)}}let _=0;class C{constructor(t,e,i){this.id=++_,this.file=t,this.url=e,this.delegate=i}create(t){y.create(this.file,((e,i)=>{if(e)return void t(e);const n=new x(this.file,i,this.url);a(this.delegate,"directUploadWillCreateBlobWithXHR",n.xhr),n.create((e=>{if(e)t(e);else{const e=new w(n);a(this.delegate,"directUploadWillStoreFileWithXHR",e.xhr),e.create((e=>{e?t(e):t(null,n.toJSON())}))}}))}))}}class S{constructor(t,e){this.input=t,this.file=e,this.directUpload=new C(this.file,this.url,this),this.dispatch("initialize")}start(t){const e=document.createElement("input");e.type="hidden",e.name=this.input.name,this.input.insertAdjacentElement("beforebegin",e),this.dispatch("start"),this.directUpload.create(((i,n)=>{i?(e.parentNode.removeChild(e),this.dispatchError(i)):e.value=n.signed_id,this.dispatch("end"),t(i)}))}uploadRequestDidProgress(t){const e=t.loaded/t.total*100;e&&this.dispatch("progress",{progress:e})}get url(){return this.input.getAttribute("data-direct-upload-url")}dispatch(t,e={}){return e.file=this.file,e.id=this.directUpload.id,r(this.input,`direct-upload:${t}`,{detail:e})}dispatchError(t){this.dispatch("error",{error:t}).defaultPrevented||alert(t)}directUploadWillCreateBlobWithXHR(t){this.dispatch("before-blob-request",{xhr:t})}directUploadWillStoreFileWithXHR(t){this.dispatch("before-storage-request",{xhr:t}),t.upload.addEventListener("progress",(t=>this.uploadRequestDidProgress(t)))}}const k="input[type=file][data-direct-upload-url]:not([disabled])";class A{constructor(t){this.form=t,this.inputs=i(t,k).filter((t=>t.files.length))}start(t){const e=this.createDirectUploadControllers(),i=()=>{const n=e.shift();n?n.start((e=>{e?(t(e),this.dispatch("end")):i()})):(t(),this.dispatch("end"))};this.dispatch("start"),i()}createDirectUploadControllers(){const t=[];return this.inputs.forEach((e=>
66{o(e.files).forEach((i=>{const n=new S(e,i);t.push(n)}))})),t}dispatch(t,e={}){return r(this.form,`direct-uploads:${t}`,{detail:e})}}const T="data-direct-uploads-processing",L=new WeakMap;let D=!1;setTimeout(g,1),t.DirectUpload=C,t.start=s,Object.defineProperty(t,"__esModule",{value:!0})})),Vue.component("address-options-selector",{template:'<div>\n              <div class="m-checkbox-list">\n                <label class="m-checkbox">\n                  <input name="address_type"\n                    type="radio"\n                    :value="HAS_ADDRESS"\n                    @change="onAddressTypeChange"\n                    default\n                  />\n                  <p style="padding-left:15px;line-height: 35px;font-weight: bold;">{{ optionsTexts[HAS_ADDRESS] }}</p>\n                  <span></span>\n                </label>\n                <label class="m-checkbox">\n                  <input name="address_type"\n                    type="radio"\n                    :value="HAS_NO_ADDRESS"\n                    @change="onAddressTypeChange"\n                  />\n                  <p style="padding-left:15px;line-height: 35px;font-weight: bold;">{{ optionsTexts[HAS_NO_ADDRESS] }}</p>\n                  <span></span>\n                </label>\n                <label class="m-checkbox">\n                  <input name="address_type"\n                    type="radio"\n                    :value="INTERNET_COMPANY"\n                    @change="onAddressTypeChange"\n                  />\n                  <p style="padding-left:15px;line-height: 35px;font-weight: bold;">{{ optionsTexts[INTERNET_COMPANY] }}</p>\n                  <span></span>\n                </label>\n              </div>\n              <div v-if="show_address_number">\n                <div class="own-address-label">{{ officeAddressLabel }}</div>\n                <div style="border: 1px solid #acacac; padding: 5px;">\n                  {{ noteAddressLabel }}\n                </div>\n              </div>\n              <div v-if="address_going_to_customer">\n                <div class="customer-label">{{ customerAddressLabel }}</div>\n\n              </div>\n              <vue-google-autocomplete\n                v-if="show_google_autocomplete"\n                ref="address"\n                classname="form-control"\n                :reference="\'autocomplete\'"\n                :force-autofocus="focusAutocomplete"\n                :input-placeholder="autocompletePlaceholder"\n                :input-name="\'landing_page_business[full_address]\'"\n                :input-id="\'landing_page_business_full_address\'"\n                :validate-street-number="validateStreetNumber"\n                @invalid-address="showAutocompleteErrorMessage"\n                @input="setAutocompleteHelpMessageVisibility"\n              />\n\n              <div v-if="show_autocomplete_error_message && !show_autocomplete_help_message && show_google_autocomplete" class="text-warning office-number-label">{{ autocompleteErrorMessage }}</div>\n              <div v-show="show_autocomplete_help_message && show_google_autocomplete" id="autocomplete_help_message" class="text-warning office-number-label">{{ autocompleteHelpMessage }}</div>\n\n              <div class="mailing-autocomplete margin-top-40" v-if="show_mail_address_autocomplete">\n                <div class="customer-label">{{ mailingAutocompleteLabel }}</div>\n                <div style="border: 1px solid #acacac; padding: 5px;">\n                  {{ noteAddressLabel }}\n                </div>\n                <vue-google-autocomplete\n                  ref="mailing_address"\n                  :reference="\'mailing_autocomplete\'"\n                  :input-placeholder="autocompletePlaceholder"\n                  :validate-street-number="true"\n                  :input-name="\'landing_page_business[mailing_full_address]\'"\n                  :input-id="\'landing_page_business_mailing_full_address\'"\n                  :is-mailing-address="true"\n                  :addressCount="addressCount"\n                  @invalid-address="setMailingAutocompleteErrorMessage"\n                  @input
66="setMailingAutocompleteHelpMessageVisibility"\n                />\n                <div v-if="show_mailing_autocomplete_error_message && !show_mailing_autocomplete_help_message" class="text-warning office-number-label mailing-help-message">{{ autocompleteErrorMessage }}</div>\n                <div v-show="show_mailing_autocomplete_help_message" id="mailing_autocomplete_help_message" class="text-warning">{{ autocompleteMailErrorMessage }}</div>\n              </div>\n              <div v-if="show_office_number">\n                <div class="office-num-label">{{ officeNumberLabel }}</div>\n                <input autocomplete="no"\n                  type="text"\n                  :maxlength="80 - addressCount"\n                  name="landing_page_business[office_number]"\n                  id="landing_page_business_office_number"\n                  class="form-control office-number"\n                  v-model="business.office_number" />\n                <div :class="charactersRemainingClass">{{ maxCharactersAllowed }} {{ charactersRemainingMessage }}</div>\n              </div>\n            </div>',props:{officeNumberLabel:{type:String,required:!0},officeAddressLabel:{type:String,required:!0},noteAddressLabel:{type:String,required:!0},charactersRemainingLabel:{type:String,required:!0},noCharactersRemainingLabel:{type:String,required:!0},customerAddressLabel:{type:String,required:!0},optionsTexts:{type:Array,required:!0},focusAutocomplete:{type:Boolean,default:!1},autocompleteErrorMessage:{type:String,required:!0},autocompleteMailErrorMessage:{type:String,required:!0},autocompletePlaceholder:{type:String,required:!0},autocompleteHelpMessage:{type:String,required:!0},mailingAutocompleteLabel:{type:String,required:!0},addressType:{type:String,default:null}},data(){return{addressCount:0,HAS_ADDRESS:0,HAS_NO_ADDRESS:1,INTERNET_COMPANY:2,address_types:["with_address","without_address","internet_business"],show_google_autocomplete:!0,show_address_number:!0,show_office_number:!0,address_going_to_customer:!1,selected_option:null,show_autocomplete_error_message:!1,show_autocomplete_help_message:this.focusAutocomplete,show_mail_address_autocomplete:!1,show_mailing_autocomplete_error_message:!1,show_mailing_autocomplete_help_message:this.show_mail_address_autocomplete&&this.focusAutocomplete,business:$("#landing-page-business-app").data("landingPageBusiness")}},computed:{defaultOption:()=>$('input[name="address_type"][default]').val(),validateStreetNumber(){return this.show_google_autocomplete&&this.show_address_number},maxCharactersAllowed(){var t=80;return 0==this.addressCount?(0==this.selected_option&&this.business.address&&this.business.address.length>0&&(t-=this.business.address.length),1==this.selected_option&&this.business.mailing_address&&this.business.mailing_address.length>0&&(t-=this.business.mailing_address.length)):t-=this.addressCount,this.business.office_number?t-this.business.office_number.length:t},charactersRemainingMessage(){return 0==this.maxCharactersAllowed?this.noCharactersRemainingLabel:this.charactersRemainingLabel},charactersRemainingClass(){return 0==this.maxCharactersAllowed?"text-warning":""}},watch:{show_autocomplete_error_message(t){t?this.addErrorClassFromAutoCompleteInputs("#landing_page_business_full_address.auto-address"):this.removeErrorClassFromAutoCompleteInputs("#landing_page_business_full_address.auto-address")},show_mailing_autocomplete_error_message(t){t?this.addErrorClassFromAutoCompleteInputs("#landing_page_business_mailing_full_address.auto-address"):this.removeErrorClassFromAutoCompleteInputs("#landing_page_business_mailing_full_address.auto-address")}},methods:{onAddressTypeChange(t){this.selected_option=t.target.value,this.applyVisibilityRules(),this.trimOfficeNumber()},trimOfficeNumber(){0==this.addressCount?(0==this.selected_option&&this.business.address&&this.business.address.length>0&&(this.business.office_number=this.business.office_number.substr(0,80-this.business.address.length)),1==this.selected_option&&this.business.mailing_address&&this.business.mailing_address.length>0&&(this.business.office_number=this.business.office_number.substr(0,80-this.business.mailing_address.length))):this.business.office_number=this.business.office_number.substr(0,80-this.addressCount)},applyVisibilityRules(){void 0!==this.selected_option&&null!==this.selected_option||(this.selected_option=this.defaultOption,this.addressGoingToCustomer(!1)),this.selected_option==this.HAS_ADDRESS?(this.googleAutocompleteVisibility(!0),this.addressNumberVisibility(!0),this.officeNumberVisibility(!0),this.addressGoingToCustomer(!1),this.mailAddressAutocompleteVisibility(!1),this.hideAutocompleteHelpMessageJquery()):this.selected_option==this.HAS_NO_ADDRESS?(this.googleAutocompleteVisibility(!0),this.addressNumberVisibility(!1),this.officeNumberVisibility(!1),this.addressGoingToCustomer(!0),this.mailAddressAutocompleteVisibility(!1),this.hideMailingAutocompleteHelpMessageJquery()):this.selected_option==this.INTERNET_COMPANY&&(this.googleAutocompleteVisibility(!1),this.addressNumberVisibility(!1),this.officeNumberVisibility(!1),this.addressGoingToCustomer(!1),this.mailAddressAutocompleteVisibility(!1)),this.setSelectedOption()},googleAutocompleteVisibility(t){this.show_google_autocomplete=t},addressGoingToCustomer(t){this.address_going_to_customer=t},addressNumberVisibility(t){this.show_address_number=t},officeNumberVisibility(t){this.show_office_number=t},resetClearSelectedAddress(){this.clear_autocomplete_address=!1},mailAddressAutocompleteVisibility(t){this.show_mail_address_autocomplete=t},clearSelectedAddress(){this.clear_autocomplete_address=!0},setSelectedOption(){$("#landing_page_business_address_type").val(this.address_types[this.selected_option])},selectStoredOption(){this.selected_option&&this.selected_option>=0?$('input[name="address_type"][value="'+this.selected_option+'"]').prop("checked",!0):$('input[name="address_type"][value="'+this.HAS_ADDRESS+'"]').prop("checked",!0)},storedSeletedOption(){this.business=$("#landing-page-business-app").data("landingPageBusiness");let t=this.business.address_type;null!==this.addressType&&(t=this.addressType),t&&(this.selected_option=this.address_types.findIndex((e=>e==t)))},storeSelectedOption(){this.business=$("#landing-page-business-app").data("landingPageBusiness"),this.business.address_type=this.address_types[this.selected_option],$("#landing-page-business-app").data("landingPageBusiness",this.business)},showAutocompleteErrorMessage(t){this.show_autocomplete_error_message=t},setMailingAutocompleteErrorMessage(t){this.show_mailing_autocomplete_error_message=t},setAutocompleteHelpMessageVisibility(t){this.show_autocomplete_help_message=t,this.hideAutocompleteHelpMessageJquery()},setMailingAutocompleteHelpMessageVisibility(t){this.show_mailing_autocomplete_help_message=t},hideAutocompleteHelpMessageJquery(){},hideMailingAutocompleteHelpMessageJquery(){$("#mailing_autocomplete_help_message").hide()},addErrorClassFromAutoCompleteInputs(t){input=$(t),parent=$(input).closest(".form-group"),parent.addClass("has-warning")},removeErrorClassFromAutoCompleteInputs(t){input=$(t),parent=$(input).closest(".form-group"),parent.removeClass("has-warning")}},mounted(){this.storedSeletedOption(),this.selectStoredOption(),this.applyVisibilityRules()},beforeDestroy(){this.storeSelectedOption()}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Cropper=e()}(this,(function(){"use strict";function t(e){return(t="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)}function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
vendor: 4,212 bytes, line 66
66e%2?i(n,!0).forEach((function(e){var i,r,o;i=t,o=n[r=e],r in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t){return"number"==typeof t&&!wt(t)}function a(t){return void 0===t}function s(e){return"object"===t(e)&&null!==e}function l(t){if(!s(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&Ct.call(i,"isPrototypeOf")}catch(t){return!1}}function c(t){return"function"==typeof t}function h(t){return Array.from?Array.from(t):St.call(t)}function d(t,e){return t&&c(e)&&(Array.isArray(t)||o(t.length)?h(t).forEach((function(i,n){e.call(t,i,n,t)})):s(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}function u(t,e){var i=1<arguments.length&&void 0!==e?e:1e11;return At.test(t)?Math.round(t*i)/i:t}function p(t,e){var i=t.style;d(e,(function(t,e){Tt.test(e)&&o(t)&&(t="".concat(t,"px")),i[e]=t}))}function f(t,e){if(e)if(o(t.length))d(t,(function(t){f(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function g(t,e){e&&(o(t.length)?d(t,(function(t){g(t,e)})):t.classList?t.classList.remove(e):0<=t.className.indexOf(e)&&(t.className=t.className.replace(e,"")))}function m(t,e,i){e&&(o(t.length)?d(t,(function(t){m(t,e,i)})):i?f(t,e):g(t,e))}function v(t){return t.replace(Lt,"$1-$2").toLowerCase()}function b(t,e){return s(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(v(e)))}function y(t,e,i){s(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(v(e)),i)}function x(t,e,i,n){var r=3<arguments.length&&void 0!==n?n:{},o=i;e.trim().split(Dt).forEach((function(e){if(!Et){var n=t.listeners;n&&n[e]&&n[e][i]&&(o=n[e][i],delete n[e][i],0===Object.keys(n[e]).length&&delete n[e],0===Object.keys(n).length&&delete t.listeners)}t.removeEventListener(e,o,r)}))}function w(t,e,i,n){var r=3<arguments.length&&void 0!==n?n:{},o=i;e.trim().split(Dt).forEach((function(e){if(r.once&&!Et){var n=t.listeners,a=void 0===n?{}:n;o=function(){delete a[e][i],t.removeEventListener(e,o,r);for(var n=arguments.length,s=new Array(n),l=0;l<n;l++)s[l]=arguments[l];i.apply(t,s)},a[e]||(a[e]={}),a[e][i]&&t.removeEventListener(e,a[e][i],r),a[e][i]=o,t.listeners=a}t.addEventListener(e,o,r)}))}function _(t,e,i){var n;return c(Event)&&c(CustomEvent)?n=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(n)}function C(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function S(t){var e=t.match(It);return null!==e&&(e[1]!==Pt.protocol||e[2]!==Pt.hostname||e[3]!==Pt.port)}function k(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function A(t){var e=t.rotate,i=t.scaleX,n=t.scaleY,r=t.translateX,a=t.translateY,s=[];o(r)&&0!==r&&s.push("translateX(".concat(r,"px)")),o(a)&&0!==a&&s.push("translateY(".concat(a,"px)")),o(e)&&0!==e&&s.push("rotate(".concat(e,"deg)")),o(i)&&1!==i&&s.push("scaleX(".concat(i,")")),o(n)&&1!==n&&s.push("scaleY(".concat(n,")"));var l=s.length?s.join(" "):"none";return{WebkitTransform:l,msTransform:l,transform:l}}function T(t,e){var i=t.pageX,r=t.pageY,o={endX:i,endY:r};return e?o:n({startX:i,startY:r},o)}function L(t,e){var i=t.aspectRatio,n=t.height,r=t.width,o=1<arguments.length&&void 0!==e?e:"contain",a=_t(r),s=_t(n);if(a&&s){var l=n*i;"contain"===o&&r<l||"cover"===o&&l<r?n=r/i:r=n*i}else a?n=r/i:s&&(r=n*i);return{width:r,height:n}}function D(t){var e,i=new DataView(t);try{var n,r,o;
vendor: 30,421 bytes, lines 66-67
66if(255===i.getUint8(0)&&216===i.getUint8(1))for(var a=i.byteLength,s=2;s+1<a;){if(255===i.getUint8(s)&&225===i.getUint8(s+1)){r=s;break}s+=1}if(r){var l=r+10;if("Exif"===function(t,e,i){var n="";i+=e;for(var r=e;r<i;r+=1)n+=Mt(t.getUint8(r));return n}(i,r+4,4)){var c=i.getUint16(l);if(((n=18761===c)||19789===c)&&42===i.getUint16(l+2,n)){var h=i.getUint32(l+4,n);8<=h&&(o=l+h)}}}if(o){var d,u,p=i.getUint16(o,n);for(u=0;u<p;u+=1)if(d=o+12*u+2,274===i.getUint16(d,n)){d+=8,e=i.getUint16(d,n),i.setUint16(d,1,n);break}}}catch(t){e=1}return e}var E="undefined"!=typeof window&&void 0!==window.document,P=E?window:{},I=E&&"ontouchstart"in P.document.documentElement,M=E&&"PointerEvent"in P,O="cropper",F="all",R="crop",B="move",N="zoom",j="e",$="w",V="s",H="n",W="ne",z="nw",q="se",U="sw",G="".concat(O,"-crop"),Y="".concat(O,"-disabled"),X="".concat(O,"-hidden"),J="".concat(O,"-hide"),K="".concat(O,"-invisible"),Z="".concat(O,"-modal"),Q="".concat(O,"-move"),tt="".concat(O,"Action"),et="".concat(O,"Preview"),it="crop",nt="move",rt="none",ot="crop",at="cropend",st="cropmove",lt="cropstart",ct="dblclick",ht=M?"pointerdown":I?"touchstart":"mousedown",dt=M?"pointermove":I?"touchmove":"mousemove",ut=M?"pointerup pointercancel":I?"touchend touchcancel":"mouseup",pt="ready",ft="zoom",gt="image/jpeg",mt=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,vt=/^data:/,bt=/^data:image\/jpeg;base64,/,yt=/^img|canvas$/i,xt={viewMode:0,dragMode:it,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},wt=Number.isNaN||P.isNaN,_t=function(t){return 0<t&&t<1/0},Ct=Object.prototype.hasOwnProperty,St=Array.prototype.slice,kt=Object.assign||function(t){for(var e=arguments.length,i=new Array(1<e?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return s(t)&&0<i.length&&i.forEach((function(e){s(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},At=/\.\d*(?:0|9){12}\d*$/,Tt=/^width|height|left|top|marginLeft|marginTop$/,Lt=/([a-z\d])([A-Z])/g,Dt=/\s\s*/,Et=function(){var t=!1;if(E){var e=!1,i=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});P.addEventListener("test",i,n),P.removeEventListener("test",i,n)}return t}(),Pt=P.location,It=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i,Mt=String.fromCharCode,Ot=/^data:.*,/,Ft={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,n=this.cropper;f(n,X),g(t,X);var r={width:Math.max(i.offsetWidth,Number(e.minContainerWidth)||200),height:Math.max(i.offsetHeight,Number(e.minContainerHeight)||100)};p(n,{width:(this.containerData=r).width,height:r.height}),f(t,X),g(n,X)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,n=Math.abs(e.rotate)%180==90,r=n?e.naturalHeight:e.naturalWidth,o=n?e.naturalWidth:e.naturalHeight,a=r/o,s=t.width,l=t.height;t.height*a>t.width?3===i?s=t.height*a:l=t.width/a:3===i?l=t.width/a:s=t.height*a;var c={aspectRatio:a,naturalWidth:r,naturalHeight:o,width:s,height:l};c.left=(t.width-s)/2,c.top=(t.height-l)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),this.initialImageData=kt({},e),this.initialCanvasData=kt({},c)},limitCanvas:function(t,e){var i=this.options,n=this.containerData,r=this.canvasData,o=this.cropBoxData,a=i.viewMode,s=r.aspectRatio,l=this.cropped&&o;if(t){var c=Number(i.minCanvasWidth)||0,h=Number(i.minCanvasHeight)||0;1<a?(c=Math.max(c,n.width),h=Math.max(h,n.height),3===a&&(c<h*s?c=h*s:h=c/s)):0<a&&(c?c=Math.max(c,l?o.width:0):h?h=Math.max(h,l?o.height:0):l&&((c=o.width)<(h=o.height)*s?c=h*s:h=c/s));var d=L({aspectRatio:s,width:c,height:h});c=d.width,h=d.height,r.minWidth=c,r.minHeight=h,r.maxWidth=1/0,r.maxHeight=1/0}if(e)if((l?0:1)<a){var u=n.width-r.width,p=n.height-r.height;r.minLeft=Math.min(0,u),r.minTop=Math.min(0,p),r.maxLeft=Math.max(0,u),r.maxTop=Math.max(0,p),l&&this.limited&&(r.minLeft=Math.min(o.left,o.left+(o.width-r.width)),r.minTop=Math.min(o.top,o.top+(o.height-r.height)),r.maxLeft=o.left,r.maxTop=o.top,2===a&&(r.width>=n.width&&(r.minLeft=Math.min(0,u),r.maxLeft=Math.max(0,u)),r.height>=n.height&&(r.minTop=Math.min(0,p),r.maxTop=Math.max(0,p))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=n.width,r.maxTop=n.height},renderCanvas:function(t,e){var i=this.canvasData,n=this.imageData;if(e){var r=function(t){var e=t.width,i=t.height,n=t.degree;if(90==(n=Math.abs(n)%180))return{width:i,height:e};var r=n%90*Math.PI/180,o=Math.sin(r),a=Math.cos(r),s=e*a+i*o,l=e*o+i*a;return 90<n?{width:l,height:s}:{width:s,height:l}}({width:n.naturalWidth*Math.abs(n.scaleX||1),height:n.naturalHeight*Math.abs(n.scaleY||1),degree:n.rotate||0}),o=r.width,a=r.height,s=i.width*(o/i.naturalWidth),l=i.height*(a/i.naturalHeight);i.left-=(s-i.width)/2,i.top-=(l-i.height)/2,i.width=s,i.height=l,i.aspectRatio=o/a,i.naturalWidth=o,i.naturalHeight=a,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,p(this.canvas,kt({width:i.width,height:i.height},A({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,n=i.naturalWidth*(e.width/e.naturalWidth),r=i.naturalHeight*(e.height/e.naturalHeight);kt(i,{width:n,height:r,left:(e.width-n)/2,top:(e.height-r)/2}),p(this.image,kt({width:i.width,height:i.height},A(kt({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,n=Number(t.autoCropArea)||.8,r={width:e.width,height:e.height};i&&(e.height*i>e.width?r.height=r.width/i:r.width=r.height*i),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*n),r.height=Math.max(r.minHeight,r.height*n),r.left=e.left+(e.width-r.width)/2,r.top=e.top+(e.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=kt({},r)},limitCropBox:function(t,e){var i=this.options,n=this.containerData,r=this.canvasData,o=this.cropBoxData,a=this.limited,s=i.aspectRatio;if(t){var l=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,h=a?Math.min(n.width,r.width,r.width+r.left,n.width-r.left):n.width,d=a?Math.min(n.height,r.height,r.height+r.top,n.height-r.top):n.height;l=Math.min(l,n.width),c=Math.min(c,n.height),s&&(l&&c?l<c*s?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),h<d*s?d=h/s:h=d*s),o.minWidth=Math.min(l,h),o.minHeight=Math.min(c,d),o.maxWidth=h,o.maxHeight=d}e&&(a?(o.minLeft=Math.max(0,r.left),o.minTop=Math.max(0,r.top),o.maxLeft=Math.min(n.width,r.left+r.width)-o.width,o.maxTop=Math.min(n.height,r.top+r.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=n.width-o.width,o.maxTop=n.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&y(this.face,tt,i.width>=e.width&&i.height>=e.height?B:F),p(this.cropBox,kt({width:i.width,height:i.height},A({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),_(this.element,ot,this.getData())}},Rt={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,n=e?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=n,o.alt=r,this.viewBox.appendChild(o),this.viewBoxImage=o,i){var a=i;"string"==typeof i?a=t.ownerDocument.querySelectorAll(i):i.querySelector&&(a=[i]),d(this.previews=a,(function(t){var i=document.createElement("img");y(t,et,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=n,i.alt=r,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(i)}))}},resetPreview:function(){d(this.previews,(function(t){var e=b(t,et);p(t,{width:e.width,height:e.height}),t.innerHTML=e.html,function(t,e){if(s(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(v(e)))}(t,et)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,n=i.width,r=i.height,o=t.width,a=t.height,s=i.left-e.left-t.left,l=i.top-e.top-t.top;this.cropped&&!this.disabled&&(p(this.viewBoxImage,kt({width:o,height:a},A(kt({translateX:-s,translateY:-l},t)))),d(this.previews,(function(e){var i=b(e,et),c=i.width,h=i.height,d=c,u=h,f=1;n&&(u=r*(f=c/n)),r&&h<u&&(d=n*(f=h/r),u=h),p(e,{width:d,height:u}),p(e.getElementsByTagName("img")[0],kt({width:o*f,height:a*f},A(kt({translateX:-s*f,translateY:-l*f},t))))})))}},Bt={bind:function(){var t=this.element,e=this.options,i=this.cropper;c(e.cropstart)&&w(t,lt,e.cropstart),c(e.cropmove)&&w(t,st,e.cropmove),c(e.cropend)&&w(t,at,e.cropend),c(e.crop)&&w(t,ot,e.crop),c(e.zoom)&&w(t,ft,e.zoom),w(i,ht,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&w(i,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&w(i,ct,this.onDblclick=this.dblclick.bind(this)),w(t.ownerDocument,dt,this.onCropMove=this.cropMove.bind(this)),w(t.ownerDocument,ut,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&w(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;c(e.cropstart)&&x(t,lt,e.cropstart),c(e.cropmove)&&x(t,st,e.cropmove),c(e.cropend)&&x(t,at,e.cropend),c(e.crop)&&x(t,ot,e.crop),c(e.zoom)&&x(t,ft,e.zoom),x(i,ht,this.onCropStart),e.zoomable&&e.zoomOnWheel&&x(i,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&x(i,ct,this.onDblclick),x(t.ownerDocument,dt,this.onCropMove),x(t.ownerDocument,ut,this.onCropEnd),e.responsive&&x(window,"resize",this.onResize)}},Nt={resize:function(){var t=this.options,e=this.container,i=this.containerData,n=Number(t.minContainerWidth)||200,r=Number(t.minContainerHeight)||100;if(!(this.disabled||i.width<=n||i.height<=r)){var o,a,s=e.offsetWidth/i.width;1==s&&e.offsetHeight===i.height||(t.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(d(o,(function(t,e){o[e]=t*s}))),this.setCropBoxData(d(a,(function(t,e){a[e]=t*s})))))}},dblclick:function(){this.disabled||this.options.dragMode===rt||this.setDragMode(function(t,e){return t.classList?t.classList.contains(e):-1<t.className.indexOf(e)}(this.dragBox,G)?nt:it)},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,n=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?n=0<t.deltaY?1:-1:t.wheelDelta?n=-t.wheelDelta/120:t.detail&&(n=0<t.detail?1:-1),this.zoom(-n*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(o(e)&&1!==e||o(i)&&0!==i||t.ctrlKey))){var n,r=this.options,a=this.pointers;t.changedTouches?d(t.changedTouches,(function(t){a[t.identifier]=T(t)})):a[t.pointerId||0]=T(t),n=1<Object.keys(a).length&&r.zoomable&&r.zoomOnTouch?N:b(t.target,tt),mt.test(n)&&!1!==_(this.element,lt,{originalEvent:t,action:n})&&(t.preventDefault(),this.action=n,this.cropping=!1,n===R&&(this.cropping=!0,f(this.dragBox,Z)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==_(this.element,st,{originalEvent:t,action:e})&&(t.changedTouches?d(t.changedTouches,(function(t){kt(i[t.identifier]||{},T(t,!0))})):kt(i[t.pointerId||0]||{},T(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?d(t.changedTouches,(function(t){delete i[t.identifier]
67})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,m(this.dragBox,Z,this.cropped&&this.options.modal)),_(this.element,at,{originalEvent:t,action:e}))}}},jt={change:function(t){function e(t){switch(t){case j:v+A.x>w&&(A.x=w-v);break;case $:u+A.x<y&&(A.x=y-u);break;case H:p+A.y<x&&(A.y=x-p);break;case V:b+A.y>_&&(A.y=_-b)}}var i,r=this.options,o=this.canvasData,a=this.containerData,s=this.cropBoxData,l=this.pointers,c=this.action,h=r.aspectRatio,u=s.left,p=s.top,f=s.width,m=s.height,v=u+f,b=p+m,y=0,x=0,w=a.width,_=a.height,S=!0;!h&&t.shiftKey&&(h=f&&m?f/m:1),this.limited&&(y=s.minLeft,x=s.minTop,w=y+Math.min(a.width,o.width,o.left+o.width),_=x+Math.min(a.height,o.height,o.top+o.height));var k=l[Object.keys(l)[0]],A={x:k.endX-k.startX,y:k.endY-k.startY};switch(c){case F:u+=A.x,p+=A.y;break;case j:if(0<=A.x&&(w<=v||h&&(p<=x||_<=b))){S=!1;break}e(j),(f+=A.x)<0&&(c=$,u-=f=-f),h&&(m=f/h,p+=(s.height-m)/2);break;case H:if(A.y<=0&&(p<=x||h&&(u<=y||w<=v))){S=!1;break}e(H),m-=A.y,p+=A.y,m<0&&(c=V,p-=m=-m),h&&(f=m*h,u+=(s.width-f)/2);break;case $:if(A.x<=0&&(u<=y||h&&(p<=x||_<=b))){S=!1;break}e($),f-=A.x,u+=A.x,f<0&&(c=j,u-=f=-f),h&&(m=f/h,p+=(s.height-m)/2);break;case V:if(0<=A.y&&(_<=b||h&&(u<=y||w<=v))){S=!1;break}e(V),(m+=A.y)<0&&(c=H,p-=m=-m),h&&(f=m*h,u+=(s.width-f)/2);break;case W:if(h){if(A.y<=0&&(p<=x||w<=v)){S=!1;break}e(H),m-=A.y,p+=A.y,f=m*h}else e(H),e(j),0<=A.x?v<w?f+=A.x:A.y<=0&&p<=x&&(S=!1):f+=A.x,A.y<=0?x<p&&(m-=A.y,p+=A.y):(m-=A.y,p+=A.y);f<0&&m<0?(c=U,p-=m=-m,u-=f=-f):f<0?(c=z,u-=f=-f):m<0&&(c=q,p-=m=-m);break;case z:if(h){if(A.y<=0&&(p<=x||u<=y)){S=!1;break}e(H),m-=A.y,p+=A.y,f=m*h,u+=s.width-f}else e(H),e($),A.x<=0?y<u?(f-=A.x,u+=A.x):A.y<=0&&p<=x&&(S=!1):(f-=A.x,u+=A.x),A.y<=0?x<p&&(m-=A.y,p+=A.y):(m-=A.y,p+=A.y);f<0&&m<0?(c=q,p-=m=-m,u-=f=-f):f<0?(c=W,u-=f=-f):m<0&&(c=U,p-=m=-m);break;case U:if(h){if(A.x<=0&&(u<=y||_<=b)){S=!1;break}e($),f-=A.x,u+=A.x,m=f/h}else e(V),e($),A.x<=0?y<u?(f-=A.x,u+=A.x):0<=A.y&&_<=b&&(S=!1):(f-=A.x,u+=A.x),0<=A.y?b<_&&(m+=A.y):m+=A.y;f<0&&m<0?(c=W,p-=m=-m,u-=f=-f):f<0?(c=q,u-=f=-f):m<0&&(c=z,p-=m=-m);break;case q:if(h){if(0<=A.x&&(w<=v||_<=b)){S=!1;break}e(j),m=(f+=A.x)/h}else e(V),e(j),0<=A.x?v<w?f+=A.x:0<=A.y&&_<=b&&(S=!1):f+=A.x,0<=A.y?b<_&&(m+=A.y):m+=A.y;f<0&&m<0?(c=z,p-=m=-m,u-=f=-f):f<0?(c=U,u-=f=-f):m<0&&(c=W,p-=m=-m);break;case B:this.move(A.x,A.y),S=!1;break;case N:this.zoom(function(t){var e=n({},t),i=[];return d(t,(function(t,n){delete e[n],d(e,(function(e){var n=Math.abs(t.startX-e.startX),r=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),a=Math.abs(t.endY-e.endY),s=Math.sqrt(n*n+r*r),l=(Math.sqrt(o*o+a*a)-s)/s;i.push(l)}))})),i.sort((function(t,e){return Math.abs(t)<Math.abs(e)})),i[0]}(l),t),S=!1;break;case R:if(!A.x||!A.y){S=!1;break}i=C(this.cropper),u=k.startX-i.left,p=k.startY-i.top,f=s.minWidth,m=s.minHeight,0<A.x?c=0<A.y?q:W:A.x<0&&(u-=f,c=0<A.y?U:z),A.y<0&&(p-=m),this.cropped||(g(this.cropBox,X),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}S&&(s.width=f,s.height=m,s.left=u,s.top=p,this.action=c,this.renderCropBox()),d(l,(function(t){t.startX=t.endX,t.startY=t.endY}))}},$t={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&f(this.dragBox,Z),g(this.cropBox,X),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=kt({},this.initialImageData),this.canvasData=kt({},this.initialCanvasData),this.cropBoxData=kt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(kt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),g(this.dragBox,Z),f(this.cropBox,X)),this},replace:function(t,e){var i=1<arguments.length&&void 0!==e&&e;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),i?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,d(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,g(this.cropper,Y)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,f(this.cropper,Y)),this},destroy:function(){var t=this.element;return t[O]&&(t[O]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate()),this},move:function(t,e){var i=1<arguments.length&&void 0!==e?e:t,n=this.canvasData,r=n.left,o=n.top;return this.moveTo(a(t)?t:r+Number(t),a(i)?i:o+Number(i))},moveTo:function(t,e){var i=1<arguments.length&&void 0!==e?e:t,n=this.canvasData,r=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.movable&&(o(t)&&(n.left=t,r=!0),o(i)&&(n.top=i,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var n=this.options,r=this.canvasData,a=r.width,s=r.height,c=r.naturalWidth,h=r.naturalHeight;if(0<=(t=Number(t))&&this.ready&&!this.disabled&&n.zoomable){var u=c*t,p=h*t;if(!1===_(this.element,ft,{ratio:t,oldRatio:a/c,originalEvent:i}))return this;if(i){var f=this.pointers,g=C(this.cropper),m=f&&Object.keys(f).length?function(t){var e=0,i=0,n=0;return d(t,(function(t){var r=t.startX,o=t.startY;e+=r,i+=o,n+=1})),{pageX:e/=n,pageY:i/=n}}(f):{pageX:i.pageX,pageY:i.pageY};r.left-=(u-a)*((m.pageX-g.left-r.left)/a),r.top-=(p-s)*((m.pageY-g.top-r.top)/s)}else l(e)&&o(e.x)&&o(e.y)?(r.left-=(u-a)*((e.x-r.left)/a),r.top-=(p-s)*((e.y-r.top)/s)):(r.left-=(u-a)/2,r.top-=(p-s)/2);r.width=u,r.height=p,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return o(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,o(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(o(e)?e:1,t)},scale:function(t,e){var i=1<arguments.length&&void 0!==e?e:t,n=this.imageData,r=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.scalable&&(o(t)&&(n.scaleX=t,r=!0),o(i)&&(n.scaleY=i,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(t){var e,i=0<arguments.length&&void 0!==t&&t,n=this.options,r=this.imageData,o=this.canvasData,a=this.cropBoxData;if(this.ready&&this.cropped){e={x:a.left-o.left,y:a.top-o.top,width:a.width,height:a.height};var s=r.width/r.naturalWidth;if(d(e,(function(t,i){e[i]=t/s})),i){var l=Math.round(e.y+e.height),c=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=c-e.x,e.height=l-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(t){var e=this.options,i=this.imageData,n=this.canvasData,r={};if(this.ready&&!this.disabled&&l(t)){var a=!1;e.rotatable&&o(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,a=!0),e.scalable&&(o(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,a=!0),o(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,a=!0)),a&&this.renderCanvas(!0,!0);var s=i.width/i.naturalWidth;o(t.x)&&(r.left=t.x*s+n.left),o(t.y)&&(r.top=t.y*s+n.top),o(t.width)&&(r.width=t.width*s),o(t.height)&&(r.height=t.height*s),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?kt({},this.containerData):{}},getImageData:function(){return this.sized?kt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&d(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&l(t)&&(o(t.left)&&(e.left=t.left),o(t.top)&&(e.top=t.top),o(t.width)?(e.width=t.width,e.height=t.width/i):o(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,i,n=this.cropBoxData,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&l(t)&&(o(t.left)&&(n.left=t.left),o(t.top)&&(n.top=t.top),o(t.width)&&t.width!==n.width&&(e=!0,n.width=t.width),o(t.height)&&t.height!==n.height&&(i=!0,n.height=t.height),r&&(e?n.height=n.width/r:i&&(n.width=n.height*r)),this.renderCropBox()),this},getCroppedCanvas:function(t){var e=0<arguments.length&&void 0!==t?t:{};if(!this.ready||!window.HTMLCanvasElement)return null;var i=this.canvasData,n=function(t,e,i,n){var o=e.aspectRatio,a=e.naturalWidth,s=e.naturalHeight,l=e.rotate,c=void 0===l?0:l,h=e.scaleX,d=void 0===h?1:h,p=e.scaleY,f=void 0===p?1:p,g=i.aspectRatio,m=i.naturalWidth,v=i.naturalHeight,b=n.fillColor,y=void 0===b?"transparent":b,x=n.imageSmoothingEnabled,w=void 0===x||x,_=n.imageSmoothingQuality,C=void 0===_?"low":_,S=n.maxWidth,k=void 0===S?1/0:S,A=n.maxHeight,T=void 0===A?1/0:A,D=n.minWidth,E=void 0===D?0:D,P=n.minHeight,I=void 0===P?0:P,M=document.createElement("canvas"),O=M.getContext("2d"),F=L({aspectRatio:g,width:k,height:T}),R=L({aspectRatio:g,width:E,height:I},"cover"),B=Math.min(F.width,Math.max(R.width,m)),N=Math.min(F.height,Math.max(R.height,v)),j=L({aspectRatio:o,width:k,height:T}),$=L({aspectRatio:o,width:E,height:I},"cover"),V=Math.min(j.width,Math.max($.width,a)),H=Math.min(j.height,Math.max($.height,s)),W=[-V/2,-H/2,V,H];return M.width=u(B),M.height=u(N),O.fillStyle=y,O.fillRect(0,0,B,N),O.save(),O.translate(B/2,N/2),O.rotate(c*Math.PI/180),O.scale(d,f),O.imageSmoothingEnabled=w,O.imageSmoothingQuality=C,O.drawImage.apply(O,[t].concat(r(W.map((function(t){return Math.floor(u(t))}))))),O.restore(),M}(this.image,this.imageData,i,e);if(!this.cropped)return n;var o=this.getData(),a=o.x,s=o.y,l=o.width,c=o.height,h=n.width/Math.floor(i.naturalWidth);1!=h&&(a*=h,s*=h,l*=h,c*=h);var d=l/c,p=L({aspectRatio:d,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),f=L({aspectRatio:d,width:e.minWidth||0,height:e.minHeight||0},"cover"),g=L({aspectRatio:d,width:e.width||(1!=h?n.width:l),height:e.height||(1!=h?n.height:c)}),m=g.width,v=g.height;m=Math.min(p.width,Math.max(f.width,m)),v=Math.min(p.height,Math.max(f.height,v));var b=document.createElement("canvas"),y=b.getContext("2d");b.width=u(m),b.height=u(v),y.fillStyle=e.fillColor||"transparent",y.fillRect(0,0,m,v);var x=e.imageSmoothingEnabled,w=void 0===x||x,_=e.imageSmoothingQuality;y.imageSmoothingEnabled=w,_&&(y.imageSmoothingQuality=_);var C,S,k,A,T,D,E=n.width,P=n.height,I=a,M=s;I<=-l||E<I?T=k=C=I=0:I<=0?(k=-I,I=0,T=C=Math.min(E,l+I)):I<=E&&(k=0,T=C=Math.min(l,E-I)),C<=0||M<=-c||P<M?D=A=S=M=0:M<=0?(A=-M,M=0,D=S=Math.min(P,c+M)):M<=P&&(A=0,D=S=Math.min(c,P-M));var O=[I,M,C,S];if(0<T&&0<D){var F=m/l;O.push(k*F,A*F,T*F,D*F)}return y.drawImage.apply(y,[n].concat(r(O.map((function(t){return Math.floor(u(t))}))))),b},setAspectRatio:function(t){var e=this.options;return this.disabled||a(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,n=this.face;if(this.ready&&!this.disabled){var r=t===it,o=e.movable&&t===nt;t=r||o?t:rt,e.dragMode=t,y(i,tt,t),m(i,G,r),m(i,Q,o),e.cropBoxMovable||(y(n,tt,t),m(n,G,r),m(n,Q,o))}return this}},Vt=P.Cropper,Ht=function(){function t(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e||!yt.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=kt({},xt,l(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return function(t,i,n){i&&e(t.prototype,i),n&&e(t,n)}(t,[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[O]){if(e[O]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",!(this.originalUrl=t))return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var i=this.element,n=this.options;if(n.rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer)if(vt.test(t))bt.test(t)?this.read(function(t){var e=t.replace(Ot,""),i=atob(e),n=new ArrayBuffer(i.length),r=new Uint8Array(n);return d(r,(function(t,e){r[e]=i.charCodeAt(e)})),n}(t)):this.clone();else{var r=new XMLHttpRequest,o=this.clone.bind(this);this.reloading=!0,(this.xhr=r).onabort=o,r.onerror=o,r.ontimeout=o,r.onprogress=function(){r.getResponseHeader("content-type")!==gt&&r.abort()},r.onload=function(){e.read(r.response)},r.onloadend=function(){e.reloading=!1,e.xhr=null},n.checkCrossOrigin&&S(t)&&i.crossOrigin&&(t=k(t)),r.open("GET",t),r.responseType="arraybuffer",r.withCredentials="use-credentials"===i.crossOrigin,r.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,n=D(t),r=0,o=1,a=1;if(1<n){this.url=function(t,e){for(var i=[],n=new Uint8Array(t);0<n.length;)i.push(Mt.apply(null,h(n.subarray(0,8192)))),n=n.subarray(8192);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}(t,gt);var s=function(t){var e=0,i=1,n=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:n}}(n);r=s.rotate,o=s.scaleX,a=s.scaleY}e.rotatable&&(i.rotate=r),e.scalable&&(i.scaleX=o,i.scaleY=a),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,n=e;this.options.checkCrossOrigin&&S(e)&&(i=i||"anonymous",n=k(e)),this.crossOrigin=i,this.crossOriginUrl=n;var r=document.createElement("img");i&&(r.crossOrigin=i),r.src=n||e,r.alt=t.alt||"The image to crop",(this.image=r).onload=this.start.bind(this),r.onerror=this.stop.bind(this),f(r,J),t.parentNode.insertBefore(r,t.nextSibling)}},{key:"start",value:function(){function t(t,i){kt(e.imageData,{naturalWidth:t,naturalHeight:i,aspectRatio:t/i}),e.sizing=!1,e.sized=!0,e.build()}var e=this,i=this.image;i.onload=null,i.onerror=null,this.sizing=!0;var n=P.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(P.navigator.userAgent);if(!i.naturalWidth||n){var r=document.createElement("img"),o=document.body||document.documentElement;(this.sizingImage=r).onload=function(){t(r.width,r.height),n||o.removeChild(r)},r.src=i.src,n||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(r))}else t(i.naturalWidth,i.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,i=this.image,n=t.parentNode,r=document.createElement("div");r.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=r.querySelector(".".concat(O,"-container")),a=o.querySelector(".".concat(O,"-canvas")),s=o.querySelector(".".concat(O,"-drag-box")),l=o.querySelector(".".concat(O,"-crop-box")),h=l.querySelector(".".concat(O,"-face"));this.container=n,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=l,this.viewBox=o.querySelector(".".concat(O,"-view-box")),this.face=h,a.appendChild(i),f(t,X),n.insertBefore(o,t.nextSibling),this.isImg||g(i,J),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewM
67ode)))||0,f(l,X),e.guides||f(l.getElementsByClassName("".concat(O,"-dashed")),X),e.center||f(l.getElementsByClassName("".concat(O,"-center")),X),e.background&&f(o,"".concat(O,"-bg")),e.highlight||f(h,K),e.cropBoxMovable&&(f(h,Q),y(h,tt,F)),e.cropBoxResizable||(f(l.getElementsByClassName("".concat(O,"-line")),X),f(l.getElementsByClassName("".concat(O,"-point")),X)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),c(e.ready)&&w(t,pt,e.ready,{once:!0}),_(t,pt)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),g(this.element,X))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=Vt,t}},{key:"setDefaults",value:function(t){kt(xt,l(t)&&t)}}]),t}();return kt(Ht.prototype,Ft,Rt,Bt,Nt,jt,$t),Ht})),function(t){"object"==typeof module&&module.exports?module.exports=t():window.intlTelInput=t()}((function(t){"use strict";return function(){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}for(var r=[["Afghanistan (\u202b\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646\u202c\u200e)","af","93"],["Albania (Shqip\xebri)","al","355"],["Algeria (\u202b\u0627\u0644\u062c\u0632\u0627\u0626\u0631\u202c\u200e)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (\u0540\u0561\u0575\u0561\u057d\u057f\u0561\u0576)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (\xd6sterreich)","at","43"],["Azerbaijan (Az\u0259rbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (\u202b\u0627\u0644\u0628\u062d\u0631\u064a\u0646\u202c\u200e)","bh","973"],["Bangladesh (\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c)","by","375"],["Belgium (Belgi\xeb)","be","32"],["Belize","bz","501"],["Benin (B\xe9nin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (\u0f60\u0f56\u0fb2\u0f74\u0f42)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (\u0411\u043e\u0441\u043d\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (\u1780\u1798\u17d2\u1796\u17bb\u1787\u17b6)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (R\xe9publique centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (\u4e2d\u56fd)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (\u202b\u062c\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202c\u200e)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xf4te d\u2019Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599",0],["Cyprus (\u039a\u03cd\u03c0\u03c1\u03bf\u03c2)","cy","357"],["Czech Republic (\u010cesk\xe1 republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]
67],["Dominican Republic (Rep\xfablica Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (\u202b\u0645\u0635\u0631\u202c\u200e)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (F\xf8royar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane fran\xe7aise)","gf","594"],["French Polynesia (Polyn\xe9sie fran\xe7aise)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (\u0395\u03bb\u03bb\u03ac\u03b4\u03b1)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guin\xe9e)","gn","224"],["Guinea-Bissau (Guin\xe9 Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (\u9999\u6e2f)","hk","852"],["Hungary (Magyarorsz\xe1g)","hu","36"],["Iceland (\xcdsland)","is","354"],["India (\u092d\u093e\u0930\u0924)","in","91"],["Indonesia","id","62"],["Iran (\u202b\u0627\u06cc\u0631\u0627\u0646\u202c\u200e)","ir","98"],["Iraq (\u202b\u0627\u0644\u0639\u0631\u0627\u0642\u202c\u200e)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (\u202b\u05d9\u05e9\u05e8\u05d0\u05dc\u202c\u200e)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (\u65e5\u672c)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (\u202b\u0627\u0644\u0623\u0631\u062f\u0646\u202c\u200e)","jo","962"],["Kazakhstan (\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (\u202b\u0627\u0644\u0643\u0648\u064a\u062a\u202c\u200e)","kw","965"],["Kyrgyzstan (\u041a\u044b\u0440\u0433\u044b\u0437\u0441\u0442\u0430\u043d)","kg","996"],["Laos (\u0ea5\u0eb2\u0ea7)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (\u202b\u0644\u0628\u0646\u0627\u0646\u202c\u200e)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (\u202b\u0644\u064a\u0628\u064a\u0627\u202c\u200e)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (\u6fb3\u9580)","mo","853"],["Macedonia (FYROM) (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (\u202b\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627\u202c\u200e)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (M\xe9xico)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (\u041c\u043e\u043d\u0433\u043e\u043b)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (\u202b\u0627\u0644\u0645\u063a\u0631\u0628\u202c\u200e)","ma","212",0],["Mozambique (Mo\xe7ambique)","mz","258"],["Myanmar (Burma) (\u1019\u103c\u1014\u103a\u1019\u102c)","mm","95"],["Namibia (Namibi\xeb)","na","264"],["Nauru","nr","674"],["Nepal (\u0928\u0947\u092a\u093e\u0932)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Cal\xe9donie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (\uc870\uc120 \ubbfc\uc8fc\uc8fc\uc758 \uc778\ubbfc \uacf5\ud654\uad6d)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (\u202b\u0639\u064f\u0645\u0627\u0646\u202c\u200e)","om","968"],["Pakistan (\u202b\u067e\u0627\u06a9\u0633\u062a\u0627\u0646\u202c\u200e)","pk","92"],["Palau","pw","680"],["Palestine (\u202b\u0641\u0644\u0633\u0637\u064a\u0646\u202c\u200e)","ps","970"],["Panama (Panam\xe1)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Per\xfa)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (\u202b\u0642\u0637\u0631\u202c\u200e)","qa","974"],["R\xe9union (La R\xe9union)","re","262",0],["Romania (Rom\xe2nia)","ro","40"],["Russia (\u0420\u043e\u0441\u0441\u0438\u044f)","ru","7",0],["Rwanda","rw","250"],["Saint Barth\xe9lemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie fran\xe7aise))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe (S\xe3o Tom\xe9 e Pr\xedncipe)","st","239"],["Saudi Arabia (\u202b\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629\u202c\u200e)","sa","966"],["Senegal (S\xe9n\xe9gal)","sn","221"],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["S
67omalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (\ub300\ud55c\ubbfc\uad6d)","kr","82"],["South Sudan (\u202b\u062c\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062f\u0627\u0646\u202c\u200e)","ss","211"],["Spain (Espa\xf1a)","es","34"],["Sri Lanka (\u0dc1\u0dca\u200d\u0dbb\u0dd3 \u0dbd\u0d82\u0d9a\u0dcf\u0dc0)","lk","94"],["Sudan (\u202b\u0627\u0644\u0633\u0648\u062f\u0627\u0646\u202c\u200e)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (\u202b\u0633\u0648\u0631\u064a\u0627\u202c\u200e)","sy","963"],["Taiwan (\u53f0\u7063)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (\u0e44\u0e17\u0e22)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (\u202b\u062a\u0648\u0646\u0633\u202c\u200e)","tn","216"],["Turkey (T\xfcrkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (\u0423\u043a\u0440\u0430\u0457\u043d\u0430)","ua","380"],["United Arab Emirates (\u202b\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0645\u062a\u062d\u062f\u0629\u202c\u200e)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (O\u02bbzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Citt\xe0 del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Vi\u1ec7t Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (\u202b\u0627\u0644\u0635\u062d\u0631\u0627\u0621 \u0627\u0644\u063a\u0631\u0628\u064a\u0629\u202c\u200e)","eh","212",1,["5288","5289"]],["Yemen (\u202b\u0627\u0644\u064a\u0645\u0646\u202c\u200e)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xc5land Islands","ax","358",1,["18"]]],o=0;o<r.length;o++){var a=r[o];r[o]={name:a[0],iso2:a[1],dialCode:a[2],priority:a[3]||0,areaCodes:a[4]||null}}var s={getInstance:function(t){var e=t.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[e]},instances:{}};"object"==typeof window&&(window.intlTelInputGlobals=s);var l=0,c={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},h=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];"object"==typeof window&&window.addEventListener("load",(function(){window.intlTelInputGlobals.windowLoaded=!0}));var d=function(t,e){for(var i=Object.keys(t),n=0;n<i.length;n++)e(i[n],t[i[n]])},u=function(t){d(window.intlTelInputGlobals.instances,(function(e){window.intlTelInputGlobals.instances[e][t]()}))},p=function(){function i(t,n){var r=this;e(this,i),this.id=l++,this.telInput=t,this.activeItem=null,this.highlightedItem=null;var o=n||{};this.options={},d(c,(function(t,e){r.options[t]=o.hasOwnProperty(t)?o[t]:e})),this.hadInitialPlaceholder=Boolean(t.getAttribute("placeholder"))}return n(i,[{key:"_init",value:function(){var t=this;if(this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(document.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),"undefined"!=typeof Promise){var e=new Promise((function(e,i){t.resolveAutoCountryPromise=e,t.rejectAutoCountryPromise=i})),i=new Promise((function(e,i){t.resolveUtilsScriptPromise=e,t.rejectUtilsScriptPromise=i}));this.promise=Promise.all([e,i])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(e,i,n){i.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=i.length),this.countryCodes.hasOwnProperty(i)||(this.countryCodes[i]=[]);for(var r=0;r<this.countryCodes[i].length;r++)if(this.countryCodes[i][r]===e)return;var o=n!==t?n:this.countryCodes[i].length;this.countryCodes[i][o]=e}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){
68var t=this.options.onlyCountries.map((function(t){return t.toLowerCase()}));this.countries=r.filter((function(e){return t.indexOf(e.iso2)>-1}))}else if(this.options.excludeCountries.length){var e=this.options.excludeCountries.map((function(t){return t.toLowerCase()}));this.countries=r.filter((function(t){return-1===e.indexOf(t.iso2)}))}else this.countries=r}},{key:"_translateCountriesByLocale",value:function(){for(var t=0;t<this.countries.length;t++){var e=this.countries[t].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(e)&&(this.countries[t].name=this.options.localizedCountries[e])}}},{key:"_countryNameSort",value:function(t,e){return t.name.localeCompare(e.name)}
68},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var t=0;t<this.countries.length;t++){var e=this.countries[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._addCountryCode(e.iso2,e.dialCode,e.priority)}for(var i=0;i<this.countries.length;i++){var n=this.countries[i];if(n.areaCodes)for(var r=this.countryCodes[n.dialCode][0],o=0;o<n.areaCodes.length;o++){for(var a=n.areaCodes[o],s=1;s<a.length;s++){var l=n.dialCode+a.substr(0,s);this._addCountryCode(r,l),this._addCountryCode(n.iso2,l)}this._addCountryCode(n.iso2,n.dialCode+a)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var t=0;t<this.options.preferredCountries.length;t++){var e=this.options.preferredCountries[t].toLowerCase(),i=this._getCountryData(e,!1,!0);i&&this.preferredCountries.push(i)}}},{key:"_createEl",value:function(t,e,i){var n=document.createElement(t);return e&&d(e,(function(t,e){return n.setAttribute(t,e)})),i&&i.appendChild(n),n}},{key:"_generateMarkup",value:function(){this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");var t="iti";this.options.allowDropdown&&(t+=" iti--allow-dropdown"),this.options.separateDialCode&&(t+=" iti--separate-dial-code"),this.options.customContainer&&(t+=" ",t+=this.options.customContainer);var e=this._createEl("div",{class:t});if(this.telInput.parentNode.insertBefore(e,this.telInput),this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},e),e.appendChild(this.telInput),this.selectedFlag=this._createEl("div",{class:"iti__selected-flag",role:"combobox","aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.flagsContainer),this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag),this.options.separateDialCode&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),this.options.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),this.options.dropdownContainer?(this.dropdown=this._createEl("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList)),this.options.hiddenInput){var i=this.options.hiddenInput,n=this.telInput.getAttribute("name");if(n){var r=n.lastIndexOf("[");-1!==r&&(i="".concat(n.substr(0,r),"[").concat(i,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:i}),e.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(t,e,i){for(var n="",r=0;r<t.length;r++){var o=t[r],a=i?"-preferred":"";n+="<li class='iti__country ".concat(e,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(o.iso2).concat(a,"' role='option' data-dial-code='").concat(o.dialCode,"' data-country-code='").concat(o.iso2,"'>"),n+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(o.iso2,"'></div></div>"),n+="<span class='iti__country-name'>".concat(o.name,"</span>"),n+="<span class='iti__dial-code'>+".concat(o.dialCode,"</span>"),n+="</li>"}this.countryList.insertAdjacentHTML("beforeend",n)}},{key:"_setInitialState",value:function(){var t=this.telInput.value,e=this._getDialCode(t),i=this._isRegionlessNanp(t),n=this.options,r=n.initialCountry,o=n.nationalMode,a=n.autoHideDialCode,s=n.separateDialCode;e&&!i?this._updateFlagFromNumber(t):"auto"!==r&&(r?this._setFlag(r.toLowerCase()):e&&i?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,t||this._setFlag(this.defaultCountry)),t||o||a||s||(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),t&&this._updateV
vendor: 5,445 bytes, line 68
68alFromNumber(t)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var t=this;this._handleHiddenInputSubmit=function(){t.hiddenInput.value=t.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var t=this.telInput;t&&"LABEL"!==t.tagName;)t=t.parentNode;return t}},{key:"_initDropdownListeners",value:function(){var t=this;this._handleLabelClick=function(e){t.countryList.classList.contains("iti__hide")?t.telInput.focus():e.preventDefault()};var e=this._getClosestLabel();e&&e.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!t.countryList.classList.contains("iti__hide")||t.telInput.disabled||t.telInput.readOnly||t._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(e){t.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),t._showDropdown()),"Tab"===e.key&&t._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var t=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.windowLoaded?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(t.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((function(t){window.intlTelInputGlobals.autoCountry=t.toLowerCase(),setTimeout((function(){return u("handleAutoCountry")}))}),(function(){return u("rejectAutoCountryPromise")})))}},{key:"_initKeyListeners",value:function(){var t=this;this._handleKeyupEvent=function(){t._updateFlagFromNumber(t.telInput.value)&&t._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(t._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(t){var e=this.telInput.getAttribute("maxlength");return e&&t.length>e?t.substr(0,e):t}},{key:"_initBlurListeners",value:function(){var t=this;this._handleSubmitOrBlurEvent=function(){t._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var t=this._getNumeric(this.telInput.value);t&&this.selectedCountryData.dialCode!==t||(this.telInput.value="")}}},{key:"_getNumeric",value:function(t){return t.replace(/\D/g,"")}},{key:"_trigger",value:function(t){var e=document.createEvent("Event");e.initEvent(t,!0,!0),this.telInput.dispatchEvent(e)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(t,e,i){i&&!t.classList.contains(e)?t.classList.add(e):!i&&t.classList.contains(e)&&t.classList.remove(e)}},{key:"_setDropdownPosition",value:function(){var t=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var e=this.telInput.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,n=e.top+i,r=this.countryList.offsetHeight,o=n+this.telInput.offsetHeight+r<i+window.innerHeight,a=n-r>i;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!o&&a),this.options.dropdownContainer){var s=!o&&a?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(n+s,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return t._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(t){for(var e=t;e&&e!==this.countryList&&!e.classList.contains("iti__country");)e=e.parentNode;return e===this.countryList?null:e}},{key:"_bindDropdownListeners",value:function(){var t=this;this._handleMouseoverCountryList=function(e){var i=t._getClosestListItem(e.target);i&&t._highlightListItem(i,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(e){var i=t._getClosestListItem(e.target);i&&t._selectListItem(i)},this.countryList.addEventListener("click",this._handleClickCountryList);var e=!0;
68this._handleClickOffToClose=function(){e||t._closeDropdown(),e=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var i="",n=null;this._handleKeydownOnDropdown=function(e){e.preventDefault(),"ArrowUp"===e.key||"Up"===e.key||"ArrowDown"===e.key||"Down"===e.key?t._handleUpDownKey(e.key):"Enter"===e.key?t._handleEnterKey():"Escape"===e.key?t._closeDropdown():/^[a-zA-Z\xc0-\xff\u0430-\u044f\u0410-\u042f ]$/.test(e.key)&&(n&&clearTimeout(n),i+=e.key.toLowerCase(),t._searchForCountry(i),n=setTimeout((function(){i=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(t){var e="ArrowUp"===t||"Up"===t?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;e&&(e.classList.contains("iti__divider")&&(e="ArrowUp"===t||"Up"===t?e.previousElementSibling:e.nextElementSibling),this._highlightListItem(e,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(t){for(var e=0;e<this.countries.length;e++)if(this._startsWith(this.countries[e].name,t)){var i=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[e].iso2));this._highlightListItem(i,!1),this._scrollTo(i,!0);break}}},{key:"_startsWith",value:function(t,e){return t.substr(0,e.length).toLowerCase()===e}},{key:"_updateValFromNumber",value:function(t){var e=t;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var i=!this.options.separateDialCode&&(this.options.nationalMode||"+"!==e.charAt(0)),n=intlTelInputUtils.numberFormat,r=n.NATIONAL,o=n.INTERNATIONAL,a=i?r:o;e=intlTelInputUtils.formatNumber(e,this.selectedCountryData.iso2,a)}e=this._beforeSetNumber(e),this.telInput.value=e}},{key:"_updateFlagFromNumber",value:function(t){var e=t,i=this.selectedCountryData.dialCode,n="1"===i;e&&this.options.nationalMode&&n&&"+"!==e.charAt(0)&&("1"!==e.charAt(0)&&(e="1".concat(e)),e="+".concat(e)),this.options.separateDialCode&&i&&"+"!==e.charAt(0)&&(e="+".concat(i).concat(e));var r=this._getDialCode(e,!0),o=this._getNumeric(e),a=null;if(r){var s=this.countryCodes[this._getNumeric(r)],l=-1!==s.indexOf(this.selectedCountryData.iso2)&&o.length<=r.length-1;if(!("1"===i&&this._isRegionlessNanp(o))&&!l)for(var c=0;c<s.length;c++)if(s[c]){a=s[c];break}}else"+"===e.charAt(0)&&o.length?a="":e&&"+"!==e||(a=this.defaultCountry);return null!==a&&this._setFlag(a)}},{key:"_isRegionlessNanp",value:function(t){var e=this._getNumeric(t);if("1"===e.charAt(0)){var i=e.substr(1,3);return-1!==h.indexOf(i)}return!1}},{key:"_highlightListItem",value:function(t,e){var i=this.highlightedItem;i&&i.classList.remove("iti__highlight"),this.highlightedItem=t,this.highlightedItem.classList.add("iti__highlight"),e&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(t,e,i){for(var n=e?r:this.countries,o=0;o<n.length;o++)if(n[o].iso2===t)return n[o];if(i)return null;throw new Error("No country data for '".concat(t,"'"))}},{key:"_setFlag",value:function(t){var e=this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=t?this._getCountryData(t,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(t));var i=t?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",i),this.options.separateDialCode){var n=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=n;var r=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.telInput.style.paddingLeft="".concat(r+6,"px")}if(this._updatePlaceholder(),this.options.allowDropdown){var o=this.activeItem;if(o&&(o.classList.remove("iti__active"),o.setAttribute("aria-selected","false")),t){var a=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(t));a.setAttribute("aria-selected","true"),a.classList.add("iti__active"),this.activeItem=a,this.selectedFlag.setAttribute("aria-activedescendant",a.getAttribute("id"))}}return e.iso2!==t}},{key:"_getHiddenSelectedFlagWidth",value:function(){var t=this.telInput.parentNode.cloneNode();t.style.visibility="hidden",document.body.appendChild(t);var e=this.flagsContainer.cloneNode();t.appendChild(e);var i=this.selectedFlag.cloneNode(!0);e.appendChild(i);var n=i.offsetWidth;return t.parentNode.removeChild(t),n}},{key:"_updatePlaceholder",value:function(){var t="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder;if(window.intlTelInputUtils&&t){var e=intlTelInputUtils.numberType[this.options.placeholderNumberType],i=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,e):"";i=this._beforeSetNumber(i),"function"==typeof this.options.customPlaceholder&&(i=this.options.customPlaceholder(i,this.selectedCountryData)),this.telInput.setAttribute("placeholder",i)}}},{key:"_selectListItem",value:function(t){var e=this._setFlag(t.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(t.getAttribute("data-dial-code"),!0),this.telInput.focus();var i=this.telInput.value.length;this.telInput.setSelectionRange(i,i),e&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","fal
68se"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.isMobile||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(t,e){var i=this.countryList,n=window.pageYOffset||document.documentElement.scrollTop,r=i.offsetHeight,o=i.getBoundingClientRect().top+n,a=o+r,s=t.offsetHeight,l=t.getBoundingClientRect().top+n,c=l+s,h=l-o+i.scrollTop,d=r/2-s/2;if(l<o)e&&(h-=d),i.scrollTop=h;else if(c>a){e&&(h+=d);var u=r-s;i.scrollTop=h-u}}},{key:"_updateDialCode",value:function(t,e){var i,n=this.telInput.value,r="+".concat(t);if("+"===n.charAt(0)){var o=this._getDialCode(n);i=o?n.replace(o,r):r}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(n)i=r+n;else{if(!e&&this.options.autoHideDialCode)return;i=r}}this.telInput.value=i}},{key:"_getDialCode",value:function(t,e){var i="";if("+"===t.charAt(0))for(var n="",r=0;r<t.length;r++){var o=t.charAt(r);if(!isNaN(parseInt(o,10))){if(n+=o,e)this.countryCodes[n]&&(i=t.substr(0,r+1));else if(this.dialCodes[n]){i=t.substr(0,r+1);break}if(n.length===this.countryCodeMaxLen)break}}return i}},{key:"_getFullNumber",value:function(){var t=this.telInput.value.trim(),e=this.selectedCountryData.dialCode,i=this._getNumeric(t);return(this.options.separateDialCode&&"+"!==t.charAt(0)&&e&&i?"+".concat(e):"")+t}},{key:"_beforeSetNumber",value:function(t){var e=t;if(this.options.separateDialCode){var i=this._getDialCode(e);if(i){var n=" "===e[(i="+".concat(this.selectedCountryData.dialCode)).length]||"-"===e[i.length]?i.length+1:i.length;e=e.substr(n)}}return this._cap(e)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var t=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var e=this._getClosestLabel();e&&e.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoHideDialCode&&(t&&t.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var i=this.telInput.parentNode;i.parentNode.insertBefore(this.telInput,i),i.parentNode.removeChild(i),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(t){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),e,t)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),t)}return-99}},{key:"isValidNumber",value:function(){var t=this._getFullNumber().trim(),e=this.options.nationalMode?this.selectedCountryData.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(t,e):null}},{key:"setCountry",value:function(t){var e=t.toLowerCase();this.selectedFlagInner.classList.contains("iti__".concat(e))||(this._setFlag(e),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())}},{key:"setNumber",value:function(t){var e=this._updateFlagFromNumber(t);
68this._updateValFromNumber(t),e&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}}]),i}();s.getCountryData=function(){return r};var f=function(t,e,i){var n=document.createElement("script");n.onload=function(){u("handleUtils"),e&&e()},n.onerror=function(){u("rejectUtilsScriptPromise"),i&&i()},n.className="iti-load-utils",n.async=!0,n.src=t,document.body.appendChild(n)};return s.loadUtils=function(t){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise((function(e,i){return f(t,e,i)}));f(t)}return null},s.defaults=c,s.version="17.0.3",function(t,e){var i=new p(t,e);return i._init(),t.setAttribute("data-intl-tel-input-id",i.id),window.intlTelInputGlobals.instances[i.id]=i,i}}()}));var EventBus=new Vue,pexelsSearchComponent=Vue.component("pexels-search-component",{template:"#pexels-component",props:{keywords:{required:!1},loadingResults:{required:!1,default:!1},fullInstance:{required:!0},buttonInstance:{required:!0},searchInstance:{required:!0},instanceName:{required:!0},searchInstanceName:{required:!1},apiKey:{required:!1},blockType:{required:!1,default:!1},canClose:{required:!1,default:!0},instanceId:{required:!1,default:""},orientation:{required:!1}},data:function(){return{images:[],uploadedImage:null,fileLoading:!1,showModal:!1,showSearchImages:!0,showUploadImages:!1,pexelsPage:1,acceptedFileTypes:"image/x-png,image/png,image/gif,image/jpeg,image/webp"}},computed:{},beforeDestroy(){EventBus.$off(`show-search-pexels${this.instanceId}`,this.openPexelsSearchModal),EventBus.$off(`close-background-pexels-search${this.instanceId}`,this.closePexelsSearchModal)},mounted(){console.log("API KEY",this.apiKey),console.log(this.instanceId),null==this.keywords&&(this.keywords=this.$el.dataset.industry),console.log(this.$el),console.log(this.$el.dataset),this.$el.dataset.overrideTypes&&(this.acceptedFileTypes=this.$el.dataset.overrideTypes),this.searchImages(),this.searchInstance&&(EventBus.$on(`show-search-pexels${this.instanceId}`,this.openPexelsSearchModal),EventBus.$on(`close-background-pexels-search${this.instanceId}`,this.closePexelsSearchModal))},methods:{openPexelsSearchModal:function(t=null){console.log("OPENING",this.instanceId),console.log(t),console.log(this.instanceName),this.fullInstance||null!=t&&t===this.instanceName?this.showModal=!0:this.buttonInstance&&(EventBus.$emit(`show-search-pexels${this.instanceId}`,this.searchInstanceName),window.innerWidth<1366&&this.$nextTick((()=>{document.getElementById("tool-search-pexels").scrollIntoView({behavior:"smooth"})}))),this.searchInstance&&t===this.instanceName&&(document.getElementById("tool-language-menu")&&(document.getElementById("tool-language-menu").style.display="none"),document.getElementById("tool-background-menu")&&(document.getElementById("tool-background-menu").style.display="none"),document.getElementById("tool-text-menu")&&(document.getElementById("tool-text-menu").style.display="none"))},closePexelsSearchModal:function(){EventBus.$emit(`close-search-pexels${this.instanceId}`,this.searchInstanceName),this.showModal=!1,this.searchInstance&&(document.getElementById("tool-language-menu")&&(document.getElementById("tool-language-menu").style.display="block"),document.getElementById("tool-background-menu")&&(document.getElementById("tool-background-menu").style.display="block"),document.getElementById("tool-text-menu")&&(document.getElementById("tool-text-menu").style.display="block"))},openShowSearchImages:function(){this.showSearchImages=!0,this.showUploadImages=!1},openShowUploadImages:function(){this.showSearchImages=!1,this.showUploadImages=!0},searchImages:function(){var t=`https://api.pexels.com/v1/search?locale=es-ES&per_page=78&page=${this.pexelsPage}&query=${this.keywords}`;this.orientation&&(t+=`&orientation=${this.orientation}`);var e=`/utilities/jumbotron_image_sources?query=${this.keywords}&image_type=${this.blockType}`;if(this.loadingResults=!0,this.blockType)$.ajax({url:e,type:"GET",success:e=>{this.images=e.photos;let i={Authorization:this.apiKey};$.ajax({headers:i,url:t,type:"GET",success:t=>{this.images=this.images.concat(t.photos),this.loadingResults=!1},error:()=>{},complete:()=>{}})}});else{var i={Authorization:this.apiKey};$.ajax({headers:i,url:t,type:"GET",success:t=>{this.images=t.photos,this.loadingResults=!1},error:()=>{},complete:()=>{}})}},checkFile:function(t){var e=!1;if("image/gif"===t.type){var i=Math.round(t.size/1024).toFixed(2);i>512?(EventBus.$emit(`error-image-gif-size${this.instanceId}`,{id:Date.now(),file:t,fileSize:i,type:"error",message:"Tu GIF no debe ser mayor a 500kb"}),e=!0):i>150&&EventBus.$emit(`warning-image-gif-size${this.instanceId}`,{id:Date.now(),file:t,fileSize:i,type:"warning",message:"Recomendamos que el tama\xf1o del gif sea menor de 150kb"})}return{errors:e}},fileLoaderSpinnerStart:function(){this.fileLoading=!0},fileLoaderSpinnerEnd:function(){this.fileLoading=!1},fileLoader:function(t){if(!this.checkFile(t).errors){this.fileLoaderSpinnerStart();const e=new FileReader;e.onloadend=e=>{var i=new Image;i.addEventListener("load",(()=>{this.uploadedImage=this.loaderBase64(i,t),this.canClose&&this.closePexelsSearchModal(),this.fileLoaderSpinnerEnd()})),i.src=e.target.result,EventBus.$emit(`uploaded-image${this.instanceId}`,{id:Date.now(),instance:this.instanceName,image:i.src})};
68e.readAsDataURL(t);window.innerWidth<1366&&document.body.scrollIntoView({behavior:"smooth"})}},loaderBase64:function(t,e,i=1280){var n=document.createElement("canvas"),r=t.width,o=t.height;return r>o?r>i&&(o*=i/r,r=i):o>i&&(r*=i/o,o=i),n.width=r,n.height=o,n.getContext("2d").drawImage(t,0,0,r,o),n.toDataURL(e.type)},selectImage:function(t){window.innerWidth<1366&&document.body.scrollIntoView({behavior:"smooth"}),EventBus.$emit(`pexels-image-selected${this.instanceId}`,{id:Date.now(),instance:this.instanceName,image:t}),this.canClose&&this.closePexelsSearchModal()}}}),iconSearchComponent=Vue.component("icon-search-component",{template:"#icon-search-component",props:{keywords:{required:!1},fullInstance:{required:!0},buttonInstance:{required:!0},searchInstance:{required:!0},instanceName:{required:!1},instanceId:{required:!1,default:""},searchInstanceName:{required:!1},canClose:{required:!1,default:!0},generalIconsCategories:{required:!1,default:null},searchIndustryButton:{required:!1,default:!0},openInSearchIndustry:{required:!1,default:!0},openInGeneralIcons:{required:!1,default:!1},openInCategory:{required:!1,default:null},openInCustom:{required:!1,default:!1},domainId:{required:!1,default:null},locale:{required:!1,default:"es"},uploadImage:{required:!1,default:!1},canScroll:{required:!1,default:!0}},data:function(){return{categories:[],icons:[],showModal:!1,icons:[],setIcons:[],industries:[],showIndustrySelection:!1,showIndustry:!0,showGeneral:!1,showCustom:!1,selectedCategory:null,uploadedImage:null,breadcrumbs:[],subcategories:[],loadingContent:!1}},computed:{},beforeDestroy(){this.searchInstance&&(EventBus.$off(`show-search-icons-${this.instanceName}`,this.openIconSearchModal),EventBus.$off(`close-search-icons-${this.instanceName}`,this.closeIconSearchModal))},mounted(){console.log("upload image",this.uploadImage),null==this.domainId&&(this.domainId=this.$el.dataset.domainId),null==this.locale&&(this.locale=this.$el.dataset.locale),null==this.keywords&&(this.keywords=this.$el.dataset.industry),this.searchInstance&&(EventBus.$on(`show-search-icons-${this.instanceName}`,this.openIconSearchModal),EventBus.$on(`close-search-icons-${this.instanceName}`,this.closeIconSearchModal))},methods:{openIconSearchModal:function(t=null){console.log("ICONS",t,this.instanceName),this.fullInstance||null!=t&&t===this.instanceName?(this.showModal=!0,this.showIndustry=this.openInSearchIndustry,this.showGeneral=this.openInGeneralIcons,this.showCustom=this.openInCustom,this.showIndustry?this.searchIcons():this.getGeneralIconCategories(),document.querySelector(`[data-instance-name="${this.instanceName}"]`)&&document.querySelector(`[data-instance-name="${this.instanceName}"]`).scrollIntoView({behavior:"smooth"})):this.buttonInstance&&(EventBus.$emit("show-search-icons-"+this.searchInstanceName,this.searchInstanceName),this.$nextTick((()=>{window.innerWidth<1366&&document.getElementById("tool-search-icons").scrollIntoView({behavior:"smooth"})}))),this.searchInstance&&t===this.instanceName&&(document.getElementById("tool-language-menu")&&(document.getElementById("tool-language-menu").style.display="none"),document.getElementById("tool-background-menu")&&(document.getElementById("tool-background-menu").style.display="none"),document.getElementById("tool-text-menu")&&(document.getElementById("tool-text-menu").style.display="none"))},closeIconSearchModal:function(){this.showModal=!1,EventBus.$emit("closing-icon-search"+this.instanceName,this.instanceName),this.searchInstance&&(document.getElementById("tool-language-menu")&&(document.getElementById("tool-language-menu").style.display="block"),document.getElementById("tool-background-menu")&&(document.getElementById("tool-background-menu").style.display="block"),document.getElementById("tool-text-menu")&&(document.getElementById("tool-text-menu").style.display="block"))},searchIcons:function(){console.log("show loader");let t="/account/domains/"+this.domainId+"/web_builder/icons?keywords="+this.keywords;$.ajax({url:t,type:"GET",success:t=>{this.setIcons=[],this.icons=t.icons},error:()=>{},complete:()=>{console.log("hide loader")}})},getGeneralIconCategories:function(){this.loadingContent=!0;let t=`/account/domains/${this.domainId}/web_builder/icons?icon_type=category`;$.ajax({url:t,type:"GET",success:t=>{this.categories=[],this.categories=t.categories},error:()=>{},complete:()=>{this.loadingContent=!1,this.$nextTick((()=>
68{if(console.log(this.categories),console.log(this.openInCategory),null!==this.openInCategory){var t=this.categories.filter((t=>t.value===this.openInCategory))[0];console.log(t),null!=t&&(this.searchGeneralIcons(t),this.openInCategory=null)}}))}})},searchGeneralIcons:function(t){this.breadcrumbs=[],this.breadcrumbs.push("Iconos generales"),this.breadcrumbs.push(t.text),console.log(this.breadcrumbs),this.selectedCategory=t;let e=`/account/domains/${this.domainId}/web_builder/icons?icon_type=${t.value}`;console.log("show loader"),this.loadingContent=!0,$.ajax({url:e,type:"GET",success:t=>{this.icons=[],this.icons=t.icons.sort(((t,e)=>t.subcategory>e.subcategory?1:-1)),this.subcategories=Array.from(new Set(this.icons.map((t=>t.sub_category_i18n)))).filter((t=>null!=t)),console.log(this.subcategories)},error:()=>{},complete:()=>{this.loadingContent=!1,console.log("hide loader")}})},selectIcon:function(t){console.log("SELECTED",this.instanceId);var e=t;window.innerWidth<1366&&this.canScroll&&document.body.scrollIntoView({behavior:"smooth"}),EventBus.$emit("selected-icon"+this.instanceId,{id:Date.now(),icon:e,instance:this.instanceName})},searchIndustries:function(){this.keywords.length>1&&$.ajax({data:{term:this.keywords,locale:this.locale},type:"GET",url:"/business_full_categories",success:t=>{this.industries=t,this.showIndustrySelection=!0}})},selectIndustry:function(t){this.keywords=t.value,this.industries=[],this.searchIcons()},openShowIndustry:function(){this.showIndustry=!0,this.showGeneral=!1,this.showCustom=!1,this.searchIcons()},openShowGeneral:function(){this.deselectCategory(),this.showIndustry=!1,this.showGeneral=!0,this.showCustom=!1,this.getGeneralIconCategories()},openShowCustom:function(){this.showIndustry=!1,this.showGeneral=!1,this.showCustom=!0},deselectCategory:function(){this.breadcrumbs=[],this.selectedCategory=null,this.icons=[]},getCategories:function(){
69return this.generalIconsCategories&&this.generalIconsCategories.length>0?(console.log("filters"),this.categories.filter((t=>this.generalIconsCategories.includes(t.value)))):(console.log(this.categories),this.categories)},getIconsWithSubcategory(t){return this.icons.filter((e=>e.sub_category_i18n===t))},getIconsWithoutSubcategory(){return this.icons.filter((t=>null==t.subcategory))},fileLoader:function(t){const e=new FileReader;e.onloadend=e=>{var i=new Image;i.addEventListener("load",(()=>{this.uploadedImage=this.loaderBase64(i,t)})),i.src=e.target.result,EventBus.$emit(`uploaded-icon${this.instanceId}`,{id:Date.now(),instance:this.instanceName,image:i.src})};e.readAsDataURL(t)},loaderBase64:function(t,e,i=1280){var n=document.createElement("canvas"),r=t.width,o=t.height;return r>o?r>i&&(o*=i/r,r=i):o>i&&(r*=i/o,o=i),n.width=r,n.height=o,n.getContext("2d").drawImage(t,0,0,r,o),n.toDataURL(e.type)}}}),trixVueComponent=Vue.component("vue-trix-editor",{template:'<trix-editor class="trix-content text-only" v-on:change="showTrixChange" style="font-family: \'Open Sans\'; min-height: 150px; line-height: 1.9em; background: white;" :input="field_id" :domain-id="domain_id" :trixattachable-id="trixattachable_id" :trixattachable-type="trixattachable_type" @keyup="validate" :data-trigger-change="triggerChange"></trix-editor>',props:{field_id:{required:!0},domain_id:{required:!0},trixattachable_id:{required:!0},trixattachable_type:{required:!0},validateable:{required:!1,default:!1},only_visible:{required:!1,default:!1},only_selector:{required:!1},triggerChange:{default:!1}},data:function(){return{}},computed:{},beforeDestroy(){},mounted(){this.$nextTick((function(){this.$forceUpdate()}))},methods:{showTrixChange:function(t){console.log("CHANGES"),console.log(t)},validate:function(){this.validateable&&this.onlySelector&&(console.log("validating.."),EventBus.$emit("validate-field",{id:Date.now(),onlyVisible:this.only_visible,onlySelector:this.only_selector}))}}});(function(){Vue.config.devtools=!0,window.vueApp={},vueApp.scrollPageToTop=function(){window.scrollTo(0,0)},vueApp.browserNavAction=function(){var t;t=function(t){var e,i;if(t&&t.state&&"string"==typeof(e=t.state.path)&&(e=e.trim())&&"undefined"!==e){try{i=new URL(e,window.location.origin)}catch(t){return}i.origin===window.location.origin&&"/undefined"!==i.pathname&&(window.location.href=i.pathname+i.search+i.hash)}},window.addEventListener("popstate",t)},vueApp.resolveBusinessLogoUrl=function(t){var e,i;if(!t)return null;if(i=null,"string"==typeof t.logo?i=t.logo:t.logo&&(i=t.logo.identifier||t.logo.url),!i)return null;
69if(/^https?:\/\//i.test(i)){if(0===(e=i.replace(/^https?:\/\/[^\/]+/i,"")).indexOf("/uploads/landing_page_business/logo/"))return i;i=e.replace(/^\//,"")}else if("/"===i.charAt(0)){if(0===i.indexOf("/uploads/landing_page_business/logo/"))return i;i=i.replace(/^\//,"")}return"https://"+(t.bucket||"landingwebimg")+".s3.amazonaws.com/"+(e=i.indexOf("/")>=0?i:"uploads/landing_page_business/logo/"+t.id+"/"+i)},vueApp.legacyImageUrl=function(t){var e;return t?t.display_image_url?t.display_image_url:t.image_url?t.image_url:t.url_cache?t.url_cache:(e=t.image)?"string"==typeof e?/^https?:\/\//i.test(e)||"/"===e.charAt(0)||0===e.indexOf("uploads/")?e:null:e.url?e.url:e.thumb&&e.thumb.url?e.thumb.url:null:null:null},vueApp.variantPersistedContractImageUrl=function(t){return t?t.persisted_image_url||vueApp.legacyImageUrl(t):null},vueApp.variantRenderableContractImageUrl=function(t){return t?t.renderable_image_url||vueApp.variantPersistedContractImageUrl(t):null},vueApp.initVue=function(){var t,e,i,n,r,o,a,s,l,c,h,d,u,p,f,g,m,v;if(n="#landing-page-business-app",document.querySelector(n)&&(t=$(n).data("landingPageBusiness"))){if(u=$("#periods-translations").data())for((h=[{text:u.weekdaysTranslation,value:[1,2,3,4,5]}]).push({text:u.allWeekTranslation,value:[0,1,2,3,4,5,6]}),p=u.daysTranslations,o=a=0,l=p.length;a<l;o=++a)r=p[o],h.push({text:r,value:[o]});return e=vueApp.resolveBusinessLogoUrl(t),v=t.landing_page_videos&&t.landing_page_videos[0],i=t.landing_page_calendars&&t.landing_page_calendars[0],g=t.domain_landing_page_schedule,console.log(t.contact_form),g?(m=t.domain_landing_page_schedule.id,d=g.domain_landing_page_schedule_periods||[]):(m=null,d=[]),console.log(t.landing_page_products),null!==t.landing_page_products&&void 0!==t.landing_page_products||(t.landing_page_products=[]),null!==t.landing_page_icons&&void 0!==t.landing_page_icons||(t.landing_page_icons=[]),null!==t.landing_page_benefits&&void 0!==t.landing_page_benefits||(t.landing_page_benefits=[]),null!==t.landing_page_bios&&void 0!==t.landing_page_bios||(t.landing_page_bios=[]),null!==t.landing_page_images&&void 0!==t.landing_page_images||(t.landing_page_images=[]),console.log(t.landing_page_products),c=$(n).data("originalTemplate")||"custom_template",new Vue({el:n,data:{container:"#landing-page-business-app",formLoaded:!1,lastIconSelected:null,step:0,periodRangesOptions:h,hoursOptions:function(){for(f=[],s=0;s<=23;s++)f.push(s);return f}.apply(this),minutesOptions:[0,15,30,45],template_modal:!1,contact_form_modal:!1,template_image:null,contact_form_image:null,image:{},cropper:{},saving_image:!1,verified_picture:!1,new_template_image:!1,showVariantsWithImages:!1,pexelsSearchInstance:{},pexelsApiKey:null,pexelsOpen:!1,openHeaderPexels:!1,opts:{lines:13,length:28,width:14,radius:42,scale:1,corners:.5,color:"#0F9948",opacity:.25,rotate:0,direction:1,speed:1,trail:60,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"},spinner:{},intlPhoneNumber:null,phoneInput:document.querySelector("#landing_page_business_landing_page_phone_number_attributes_number"),contactPickr:{},contactTextPickr:{},contactBackgroundPickr:{},connectSocialPickr:{},callSchedulePickr:{},addressPickr:{},sectionTitlePickr:{},business:{id:t.id,name:t.name,address:t.address,city_address:t.city_address,administrative_area:t.administrative_area,postalCode:t.postalCode,latitude:t.latitude,longitude:t.longitude,target_location:t.target_location,country_address:t.country_address,email:t.email,slug:t.slug,office_number:t.office_number,remove_logo:!1,countryCode:t.country_code,color_palette:t.color_palette,slugLengthError:!1,emailError:!1,slugLengthWarn:!1,logo:e?{url:e}:null,logo_preview:null,logo_blob_url:null,logo_original_url:e,logo_name:t.logo_name,imgLayout:t.img_layout,imgTitleStyle:t.img_title_style,imgTitleColor:t.img_title_color,imgTitleIcon:t.img_title_icon,imgTitleText:t.img_title_text,biosLayout:t.bios_layout,biosLayoutColor:t.bios_layout_color,biosLayoutIcon:t.bios_layout_icon,biosLayoutImageIcon:t.bios_layout_image_icon,biosTitleStyle:t.bios_title_style,biosTitleColor:t.bios_title_color,biosTitleAlignment:t.bios_title_alignment,benefitsTitleStyle:t.benefits_title_style,benefitsTitleColor:t.benefits_title_color,benefitsTitleIcon:t.benefits_title_icon,benefitsTitleImageIcon:t.benefits_title_image_icon,benefitsImagesLayout:t.benefits_images_layout,benefitsMainImage:t.benefits_main_image,benefitsSecondImage:t.benefits_second_image,iconsPosition:t.icons_position,coloredIcons:t.colored_icons,singleBiosPage:t.single_bios_page,singleBiosPageHeader:t.single_bios_page_header,singleBiosPageUpperContentActive:t.single_bios_page_upper_content_active,singleBiosPageLowerContentActive:t.single_bios_page_lower_content_active,schedule:{id:m,starting_on_monday:!t.domain_landing_page_schedule||t.domain_landing_page_schedule.starting_on_monday,
69complete_day_name:!!t.domain_landing_page_schedule&&t.domain_landing_page_schedule.complete_day_name,periods:d.map((function(t){return{id:t.id,days:t.days,fromHour:t.from_hour,fromMinute:t.from_minute,toHour:t.to_hour,toMinute:t.to_minute,_destroy:!1}}))},landingPage:{id:t.landing_page?t.landing_page.id:null,title:t.landing_page?t.landing_page.title:"",title_seo:t.landing_page&&t.landing_page.title_seo||"",mainHeader:t.landing_page&&t.landing_page.main_header||"",description_seo:t.landing_page&&t.landing_page.description_seo||"",mainHeaderLang:t.landing_page&&t.landing_page.main_header_lang||"",tagline:t.landing_page?t.landing_page.tagline:"",taglineLang:t.landing_page?t.landing_page.tagline_lang:"",sectionTitle:t.landing_page?t.landing_page.section_title:"",sectionTitleLang:t.landing_page?t.landing_page.section_title_lang:"",sectionTitleColor:t.landing_page?t.landing_page.section_title_color:"",sectionTitleSize:t.landing_page?t.landing_page.section_title_size:"",showSectionTitle:t.landing_page?t.landing_page.show_section_title:"",description:t.landing_page?t.landing_page.description:"",description_lang:t.landing_page?t.landing_page.description_lang:"",description_two:t.landing_page?t.landing_page.description_two:"",description_two_lang:t.landing_page?t.landing_page.description_two_lang:"",description_three:t.landing_page?t.landing_page.description_three:"",description_three_lang:t.landing_page?t.landing_page.description_three_lang:"",chamber_assoc:t.landing_page?t.landing_page.chamber_assoc:"",facebook_link:t.landing_page?t.landing_page.facebook_link:"",twitter_link:t.landing_page?t.landing_page.twitter_link:"",instagram_link:t.landing_page?t.landing_page.instagram_link:"",is_tinified:t.landing_page?t.landing_page.is_tinified:"",is_picture_ligth:t.landing_page?t.landing_page.is_picture_ligth:"",is_picture_too_small:t.landing_page?t.landing_page.is_picture_too_small:"",template:t.landing_page.template,template_image:t.landing_page&&t.landing_page.image?t.landing_page.image.url:"",image:t.landing_page?t.landing_page.image.url?t.landing_page.image.url:t.landing_page.image:"",contactFormOverlapPosition:t.landing_page?t.landing_page.contact_form_overlap_position:"",contactFormType:t.landing_page?t.landing_page.contact_form_type:"",contactFormTitle:t.landing_page?t.landing_page.contact_form_title:"",contactFormTitleText:t.landing_page?t.landing_page.contact_form_title_text:"",contactFormTitleTextLang:t.landing_page?t.landing_page.contact_form_title_text_lang:"",contactFormBackgroun
69d:t.landing_page?t.landing_page.contact_form_background:"",contactFormTitleSize:t.landing_page?t.landing_page.contact_form_title_size:"",contactFormTitleColor:t.landing_page?t.landing_page.contact_form_title_color:"",contactFormTitleAlignment:t.landing_page?t.landing_page.contact_form_title_alignment:t.color_palette,contactFormButtonTextColor:t.landing_page?t.landing_page_contact_form_button_text_color:t.color_palette,contactFormButtonBackgroundColor:t.landing_page?t.landing_page_contact_form_button_background_color:"",contactFormImage:t.contact_form&&t.contact_form.contact_form_image&&t.contact_form.contact_form_image.url?t.contact_form.contact_form_image.url:"",contactFormImageAlignment:t.landing_page?t.landing_page.contact_form_image_alignment:"",connectSocialTextSize:t.landing_page?t.landing_page.connect_social_text_size:"",connectSocialTextColor:t.landing_page?t.landing_page.connect_social_text_color:"",callScheduleTextSize:t.landing_page?t.landing_page.call_schedule_text_size:"",callScheduleTextColor:t.landing_page?t.landing_page.call_schedule_text_color:"",addressTextSize:t.landing_page?t.landing_page.address_text_size:"",addressTextColor:t.landing_page?t.landing_page.address_text_color:"",mapZoom:t.landing_page?t.landing_page.map_zoom:"",imageChanged:!1,originalTemplate:c},phoneNumber:t.landing_page_phone_number.number,countryCodeNumber:t.landing_page_phone_number.country_code,whatsappPhoneNumber:t.landing_page_phone_number.whatsapp_number,whatsappCountryCodeNumber:t.landing_page_phone_number.whatsapp_country_code,products:t.landing_page_products.map((function(t){return{id:t.id,image:t.image,image_pending:t.image_pending,collection:t.collection,title:t.title,collection_description:t.collection_description,sku:t.sku,colorForm:null,colors:t.landing_page_product_variants.filter((function(t){return null!==t.color})).map((function(t){return t.color})),sizeForm:null,sizes:t.landing_page_product_variants.filter((function(t){return null!==t.size})).map((function(t){return t.size})),has_color:t.landing_page_product_variants.some((function(t){return null!==t.color})),has_size:t.landing_page_product_variants.some((function(t){return null!==t.size})),default_variant:t.landing_page_product_variants.find((function(t){return t.is_default}))||t.landing_page_product_variants[0],variants:t.landing_page_product_variants.map((function(t){var e,i;return e=vueApp.variantPersistedContractImageUrl(t),i=vueApp.variantRenderableContractImageUrl(t),{id:t.id,image:e?{url:e}:null,display_image_url:t.display_image_url||e,persisted_image_url:e,renderable_image_url:i,has_persisted_image:null==t.has_persisted_image?!!e:!!t.has_persisted_image,has_renderable_image:null==t.has_renderable_image?!!i:!!t.has_renderable_image,image_source_kind:t.image_source_kind||null,preview:null,color:t.color,size:t.size,is_default:t.is_default,price:t.price,price_start:t.price_start,price_end:t.price_end,price_decimal:t.price_decimal,price_start_decimal:t.price_start_decimal,price_end_decimal:t.price_end_decimal,image_uuid:t.image_uuid,related_image_uuid:t.related_image_uuid,_destroy:!1}})),is_shippable:t.is_shippable,show_messaging_button:t.show_messaging_button,shipping_natl_price:t.shipping_natl_price,shipping_natl_price_decimal:t.shipping_natl_price_decimal,shipping_intl_price:t.shipping_intl_price,shipping_intl_price_decimal:t.shipping_intl_price_decimal,price:t.price,price_decimal:t.price_decimal,price_start:t.price_start,price_start_decimal:t.price_start_decimal,price_end:t.price_end,price_end_decimal:t.price_end_decimal,description:t.description,purchase_option:t.purchase_option||"",preview:null,price_range:!1,paypal_button:t.paypal_button,variantsWithImages:[],_destroy:!1}})),icons:t.landing_page_icons.map((function(t){return{id:t.id,icon:t.icon,icon_title:t.icon_title,icon_title_lang:t.icon_title_lang,icon_desc:t.icon_desc,icon_desc_lang:t.icon_desc_lang,feature_icons_id:t.feature_icons_id,position:t.position,svg:t.svg,image:t.image.url?t.image:null,opacity:t.opacity,_destroy:!1,preview:null}})),benefits:t.landing_page_benefits.map((function(t){return{id:t.id,title:t.title,title_lang:t.title_lang,subtitle:t.subtitle,subtitle_lang:t.subtitle_lang,block_col:t.block_col,position:t.position,selected_background:t.selected_background,text_color:t.text_color,_destroy:!1}})),bios:t.landing_page_bios.map((function(t){return{id:t.id,image:t.image.url?t.image:null,image_pending:t.image_pending,person:t.person,role:t.role,role_lang:t.role_lang,de
69scription:t.description,description_lang:t.description_lang,position:t.position,_destroy:!1,preview:null}})),images:t.landing_page_images.map((function(t){return{id:t.id,image:t.image.url?t.image:null,imgCol:t.img_col,imgRow:t.img_row,position:t.position,image_pending:t.image_pending,description:t.description,description_lang:t.description_lang,_destroy:!1,preview:null}})),video:{id:v?v.id:null,url:v?v.url:null,description:v?v.description:null,description_lang:v?v.description_lang:null,_destroy:!1},calendar:{id:i?i.id:null,url:i?i.url:null,description:i?i.description:null,_destroy:!1}},activeProducts:function(){return this.business.products.filter((function(t){return!t._destroy}))},activeBios:function(){return this.business.bios.filter((function(t){return!t._destroy}))},activeImages:function(){return this.business.images.filter((function(t){return!t._destroy}))},activePeriods:function(){return this.business.schedule.periods.filter((function(t){return!t._destroy}))}},computed:{imgTemplate:function(){return"custom_template"!==this.business.landingPage.template},emptyImage:function(){return(!this.business.landingPage.image||null!==this.business.landingPage.image.url)&&(null!==this.business.landingPage.image&&void 0!==this.business.landingPage.image)},activeImagesChunks:function(){var t,e;return e=3,(t=(t=this.activeImages()).map((function(i,n){return n%e==0?t.slice(n,n+e):null}))).filter((function(t){return t}))},availableCollections:function(){var t,e,i,n,r,o,a;if(a={},i=[],this.business.products.length>0){for(n=r=0,o=(t=this.business.products).length;0<=o?r<o:r>o;n=0<=o?++r:--r)t[n].collection&&(void 0===a[e=t[n].collection]&&(i.push(e),$(".product-collection-autocomplete").autocomplete({source:i.sort()})),a[e]=0);return i.sort()}}},created:function(){return $(document).on("shown.bs.collapse",(t=this,function(e){return t.step=parseInt(e.target.id.match(/(\d+)$/)[0])}));var t},mounted:function(){var t,e,i,n,r,o,a,s,l,c,h,d,u,p,f,g,m,v,b;for(console.log("mounting component"),console.log(this.business.landingPage),this.spinner=new Spinner(this.opts),console.log("load colors and sizes"),console.log(this.business.products),this.business.products.length>0&&this.setFirstVariantAsDefault(),this.removeColorDuplicates(),this.removeSizeDuplicates(),this.previewTemplateHeader(),$(".icon-error").show(),this.business.icons.length>0&&this.business.icons.forEach((function(t){return $("#landing_page_business_landing_page_icons_attributes_"+t.feature_icons_id+"_icon_title").val(t.icon_title),$("#landing_page_business_landing_page_icons_attributes_"+t.feature_icons_id+"_icon_desc").val(t.icon_desc)})),h=0,c=(f=this.business.products).length;h<c;h++)(p=f[h]).price_range=null===p.default_variant.price&&null!==p.default_variant.price_start&&null!==p.default_variant.price_end;if(this.phoneInput=document.querySelector("#phone-view"),console.log("benefits",this.business.benefits),this.phoneInput&&(this.intlPhoneNumber=window.intlTelInput(this.phoneInput,{nationalMode:!1,separateDialCode:!0,utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.3/js/utils.min.js"}),this.intlPhoneNumber.setCountry(this.business.countryCode.toLowerCase()),this.phoneInput.style.fontSize="19px",d=this.business.phoneNumber,this.business.countryCodeNumber&&this.business.phoneNumber&&(d="+"+this.business.countryCodeNumber+this.business.phoneNumber),this.intlPhoneNumber.setNumber(d),this.business.countryCodeNumber=this.intlPhoneNumber.getSelectedCountryData().dialCode,this.business.phoneNumber=this.phoneInput.value,this.checkPhone()),this.whatsappPhoneInput=document.querySelector("#whatsapp-phone-view"),this.whatsappPhoneInput&&(this.intlWhatsappPhoneNumber=window.intlTelInput(this.whatsappPhoneInput,{nationalMode:!1,separateDialCode:!0,utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.3/js/utils.min.js"}),this.intlWhatsappPhoneNumber.setCountry(this.business.countryCode.toLowerCase()),this.whatsappPhoneInput.style.fontSize="19px",d=this.business.whatsappPhoneNumber,this.business.whatsappCountryCodeNumber&&this.business.whatsappPhoneNumber&&(d="+"+this.business.whatsappCountryCodeNumber+this.business.whatsappPhoneNumber),this.intlWhatsappPhoneNumber.setNumber(d),this.business.whatsappCountryCodeNumber=this.intlWhatsappPhoneNumber.getSelectedCountryData().dialCode,this.business.whatsappPhoneNumber=this.whatsappPhoneInput.value,this.checkWhatsappPhone()),this.colorPickr=document.getElementById("color-picker"),o=document.getElementById("contact-form-color-picker"),a=document.getElementById("contact-form-text-color-picker"),r=document.getElementById("contact-form-background-color-picker"),n=document.getElementById("connect-social-color-picker"),e=document.getElementById("call-schedule-color-picker"),t=document.getElementById("address-color-picker"),m=document.getElementById("section-title-color-picker"),this.colorPickr&&(this.initColorPickr(),this.pickr.on("save",(b=this,function(t){var e;return console.log(t),b.business.color_palette=t?t.toHEXA().toString():"#0F9948",(e=document.getElementById("landing_page_business_color_palette"))&&(e.value=b.business.color_palette),b.colorPickr.style.color=b.business.color_palette,b.pickr.hide()}))),o&&(this.initContactFormColorPicker(),l=this.business.landingPage,u=this.contactPickr,this.contactPickr.on("save",(function(t){return t?l.contactFormTitleColor=t.toHEXA().toString():l.contactFormColorPicker="#525252",u.hide()}))),a&&(this.initContactFormTextColorPicker(),l=this.business.landingPage,u=this.contactTextPickr,this.contactTextPickr.on("save",(function(t){return l.contactFormButtonTextColor=t?t.toHEXA().toString():"#525252",u.hide()}
69))),r&&(this.initContactFormBackgroundColorPicker(),l=this.business.landingPage,u=this.contactBackgroundPickr,this.contactBackgroundPickr.on("save",(function(t){return l.contactFormButtonBackgroundColor=t?t.toHEXA().toString():"#525252",u.hide()}))),n&&(this.initConnectSocialColorPicker(),l=this.business.landingPage,u=this.connectSocialPickr,this.connectSocialPickr.on("save",(function(t){return l.connectSocialTextColor=t?t.toHEXA().toString():"#212529",u.hide()}))),e&&(this.initCallScheduleColorPicker(),l=this.business.landingPage,u=this.callSchedulePickr,this.callSchedulePickr.on("save",(function(t){return l.callScheduleTextColor=t?t.toHEXA().toString():"#212529",u.hide()}))),t&&(this.initAddressColorPicker(),l=this.business.landingPage,u=this.addressPickr,this.addressPickr.on("save",(function(t){return l.addressTextColor=t?t.toHEXA().toString():"#212529",u.hide()}))),m&&(this.initSectionTitlePicker(),l=this.business.landingPage,u=this.sectionTitlePickr,this.sectionTitlePickr.on("save",(function(t){return l.sectionTitleColor=t?t.toHEXA().toString():"#727272",u.hide()}))),document.getElementById("benefits-edit-section")&&this.business.benefits.length>0&&this.initBenefitPickers(),v=$("#validate-slug")[0],i=$("#check-email")[0],console.log(i),i&&this.checkEmail(),v&&this.validateSlug(),this.business.landingPage.title_seo&&$("#counterTitle").text(this.business.landingPage.title_seo.length),this.business.landingPage.description_seo&&$("#counterDescription").text(this.business.landingPage.description_seo.length),document.getElementById("pexels-select")&&null===this.business.landingPage.image.url&&this.mountPexels(),(s=document.getElementById("imagespreview"))&&(g=s.querySelector(".section-title")))return g.querySelector("b").style.backgroundColor=this.business.color_palette},watch:{"business.landingPage.template":function(){return this.previewTemplateHeader()},"business.name":function(t){var e;return e=+$("#maxLengthTitle").text(),this.business.landingPage.title_seo=t.substring(0,e)},"business.landingPage.tagline":function(t){var e;return console.log(t),e=+$("#maxLengthDescription").text(),this.business.landingPage.description_seo=t.substring(0,e)},"business.landingPage.title_seo":function(t){var e;return $("#counterTitle").text(t.length),e=+$("#maxLengthTitle").text(),t.length>=e?document.getElementById("maxLengthTitleReachedMessage").style.display="block":document.getElementById("maxLengthTitleReachedMessage").style.display="none"},"business.landingPage.description_seo":function(t){var e;return $("#counterDescription").text(t.length),e=+$("#maxLengthDescription").text(),t.length>=e?document.getElementById("maxLengthDescriptionReachedMessage").style.display="block":document.getElementById("maxLengthDescriptionReachedMessage").style.display="none"},template_image:function(t){var e,i;if(t)return console.log(t),e=document.getElementById("template_image_preview"),this.toDataURL(t,(function(t){var i;e=document.getElementById("template_image_preview"),i=1280,console.log(t),e.onload=function(){var t,n,r;t=document.createElement("canvas"),(r=e.naturalWidth)>(n=e.naturalHeight)?r>i&&(n*=i/r,r=i):n>i&&(r*=i/n,n=i),t.width=r,t.height=n,t.getContext("2d").drawImage(e,0,0,r,n),e.src=t.toDataURL("image/jpeg")},e.src=t,this.cropper=new Cropper(e,{aspectRatio:3.75,viewMode:1})})),setTimeout((i=this,function(){return i.saving_image=!1}),500)}},beforeDestroy:function(){this.releaseLogoBlobUrl()},methods:{changeToMobile:function(){return document.getElementById("imagesPreviewModal").querySelector(".modal-dialog").classList.remove("container"),document.getElementById("imagesPreviewModal").querySelector(".modal-dialog").classList.add("container-mobile"),document.querySelectorAll("[data-element-image-mobile-classic]").forEach((function(t){return t.classList.remove("col-md-3")})),document.querySelectorAll("[data-element-image-mobile]").forEach((function(t){return t.classList.remove("col-sm-6"),t.classList.remove("col-md-4")}))},changeToDesktop:function(){return document.getElementById("imagesPreviewModal").querySelector(".modal-dialog").classList.add("container"),document.getElementById("imagesPreviewModal").querySelector(".modal-dialog").classList.remove("container-mobile"),document.querySelectorAll("[data-element-image-mobile]").forEach((function(t){return t.classList.add("col-sm-6"),t.classList.add("col-md-4")})),document.querySelectorAll("[data-element-image-mobile-classic]").forEach((function(t){return t.classList.add("col-md-3")}))},sorter:function(t,e){return t.position>e.position?1:t.position<e.position?-1:0},generateStyles:function(){var t,e;return e=(t=document.getElementById("imagespreview")).querySelector(".section-title"),"classic"!==this.business.imgTitleStyle?e.querySelectorAll("b").forEach(function(t){return console.log(t),t.style.backgroundColor=this.business.color_palette}.bind(this)):e.querySelectorAll("b").forEach(function(t){return console.log(t),t.style.backgroundColor="none"}.bind(this)),"border"===this.business.imgTitleStyle?t.querySelector(".section-title-bold-center").querySelector("span").style.border="2px s
69olid "+this.business.color_palette:"borderless"===this.business.imgTitleStyle&&(t.querySelector(".section-title-center").querySelector("span").style.border="none"),this.business.images=this.business.images.sort(this.sorter)},variantPersistedImageUrl:function(t){return!t||t.remove_image?null:t.persisted_image_url?t.persisted_image_url:vueApp.legacyImageUrl(t)},variantRenderableImageUrl:function(t){return!t||t.remove_image?null:t.preview?t.preview:t.renderable_image_url?t.renderable_image_url:this.variantPersistedImageUrl(t)},variantHasPersistedImage:function(t){return!(!t||t.remove_image)&&(!0===t.has_persisted_image||!1===t.has_persisted_image?t.has_persisted_image:!!this.variantPersistedImageUrl(t))},variantHasRenderableImage:function(t){return!(!t||t.remove_image)&&(!!t.preview||(!0===t.has_renderable_image||!1===t.has_renderable_image?t.has_renderable_image:!!this.variantRenderableImageUrl(t)))},variantHasPendingUpload:function(t){return!(!t||!t.image||t.image.url)},checkIfVariantsHaveImages:function(t){var e,i,n,r;console.log("check if variants"),console.log(t.variants),t.variants&&t.variants.length>0&&(e=t.variants.filter((function(t){return!t._destroy})),console.log("variants"),console.log(e),i=e.filter((r=this,function(t){return r.variantHasPersistedImage(t)})),n=e.filter((function(t){return t.preview})),t.variantsWithImages=i.concat(n),console.log("variants with images"),console.log(t.variantsWithImages),this.showVariantsWithImages=t.variantsWithImages.length>0)},toDataURL:function(t,e){var i;(i=new XMLHttpRequest).onload=function(){var t;(t=new FileReader).onloadend=function(){e(t.result)},t.readAsDataURL(i.response)},i.open("GET",t),i.responseType="blob",i.send()},checkPhone:function(){var t,e,i;return t=this.intlPhoneNumber.getSelectedCountryData(),i=this.phoneInput.value,console.log(i),i!==(e=t.dialCode)&&i!=="00"+e||(i=""),i.startsWith(e)&&(i=i.substring(e.length)),i.startsWith("+"+e)&&(i=i.substring(e.length+1)),i.startsWith("00"+e)&&(i=i.substring(e.lengt+2)),console.log(i),this.intlPhoneNumber.setNumber(i),this.business.phoneNumber=i,this.business.countryCodeNumber=e},checkWhatsappPhone:function(){var t,e,i;return t=this.intlWhatsappPhoneNumber.getSelectedCountryData(),(i=this.whatsappPhoneInput.value)!==(e=t.dialCode)&&i!=="00"+e||(i=""),i.startsWith(e)&&(i=i.substring(e.length)),i.startsWith("+"+e)&&(i=i.substring(e.length+1)),i.startsWith("00"+e)&&(i=i.substring(e.lengt+2)),this.intlWhatsappPhoneNumber.setNumber(i),this.business.whatsappPhoneNumber=i,this.business.whatsappCountryCodeNumber=e},mountPexels:function(){return this.openHeaderPexels=!0,console.log("mounting"),EventBus.$emit("show-search-pexels","onboarding-search-instance"),EventBus.$on("pexels-image-selected",this.customTemplatePexels),EventBus.$on("uploaded-image",this.customTemplatePexels),EventBus.$on("close-search-pexels",this.closePexelsSearch)},mountContactFormPexels:function(){return EventBus.$emit("show-search-pexels","contact-form-search-instance"),EventBus.$on("pexels-image-selected",this.contactFormImagePexels),EventBus.$on("uploaded-image",this.contactFormImagePexels),EventBus.$on("close-search-pexels",this.closePexelsSearch)},mountIconSearch:function(){return console.log("mounting icons"),EventBus.$emit("show-search-icons","icons-search-instance")},showContactFormPickr:function(){return this.contactPickr.isOpen()?this.contactPickr.hide():this.contactPickr.show()},showConnectSocialFormPickr:function(){return this.connectSocialPickr.isOpen()?this.connectSocialPickr.hide():this.connectSocialPickr.show()},showSectionTitlePickr:function(){return this.sectionTitlePickr.isOpen()?this.sectionTitlePickr.hide():this.sectionTitlePickr.show()},showCallScheduleFormPickr:function(){return this.callSchedulePickr.isOpen()?this.callSchedulePickr.hide():this.callSchedulePickr.show()},showAddressFormPickr:function(){return this.addressPickr.isOpen()?this.addressPickr.hide():this.addressPickr.show()},showPickr:function(){if(this.pickr&&"function"==typeof this.pickr.isOpen)return this.pickr.isOpen()?this.pickr.hide():this.pickr.show()},setColor:function(t){return this.pickr.setColor(t),this.pickr.applyColor(!1)},initAddressColorPicker:function(){return this.addressPickr=Pickr.create({el:"#address-color-picker",theme:"nano",closeOnScroll:!0,default:this.business.landingPage.addressTextColor,useAsButton:!1,lockOpacity:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}})},initSectionTitlePicker:function(){return this.sectionTitlePickr=Pickr.create({el:"#section-title-color-picker",theme:"nano",closeOnScroll:!0,default:this.business.landingPage.sectionTitleColor,useAsButton:!1,lockOpacity:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}})}
69,initCallScheduleColorPicker:function(){return this.callSchedulePickr=Pickr.create({el:"#call-schedule-color-picker",theme:"nano",closeOnScroll:!0,default:this.business.landingPage.callScheduleTextColor,useAsButton:!1,lockOpacity:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}})},initConnectSocialColorPicker:function(){return this.connectSocialPickr=Pickr.create({el:"#connect-social-color-picker",theme:"nano",closeOnScroll:!0,default:this.business.landingPage.connectSocialTextColor,useAsButton:!1,lockOpacity:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}})},initContactFormTextColorPicker:function(){return console.log("STARTING"),this.contactTextPickr=Pickr.create({el:"#contact-form-text-color-picker",theme:"nano",closeOnScroll:!0,default:this.business.landingPage.contactFormButtonTextColor||"#fff",useAsButton:!1,lockOpacity:!0,
70swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}})}
70,initContactFormBackgroundColorPicker:function(){return console.log("STARTING"),this.contactBackgroundPickr=Pickr.create({el:"#contact-form-background-color-picker",theme:"nano",closeOnScroll:!0,default:this.business.landingPage.contactFormButtonBackgroundColor||this.business.color_palette,useAsButton:!1,lockOpacity:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}})},initContactFormColorPicker:function(){return console.log("STARTING"),this.contactPickr=Pickr.create({el:"#contact-form-color-picker",theme:"nano",closeOnScroll:!0,default:this.business.landingPage.contactFormTitleColor,useAsButton:!1,lockOpacity:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}})},initBenefitPickers:function(){return this.business.benefits.forEach((function(t,e){if(console.log(e),void 0===t.colorPickr)return t.colorPickr=Pickr.create({el:"#benefit-"+e+"text-color-picker",theme:"nano",closeOnScroll:!0,default:t.text_color,useAsButton:!1,lockOpacity:!0,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}}),t.colorPickr.on("save",(function(e){return t.text_color=e?e.toHEXA().toString():"#0F9948",t.colorPickr.hide()}))}))},initColorPickr:function(){var t,e;return this.colorPickr=document.getElementById("color-picker"),e=!window.location.href.includes("edit"),t=this.business.color_palette||"#0F9948",this.pickr=Pickr.create({el:"#color-picker",theme:"nano",appClass:"lpb-primary-color-picker",closeOnScroll:!1,default:t,useAsButton:!0,lockOpacity:!0,showAlways:e,swatches:["rgba(244, 67, 54, 1)","rgba(233, 30, 99, 1)","rgba(156, 39, 176, 1)","rgba(103, 58, 183, 1)","rgba(63, 81, 181, 1)","rgba(33, 150, 243, 1)","rgba(3, 169, 244, 1)","rgba(0, 188, 212, 1)","rgba(0, 150, 136, 1)","rgba(76, 175, 80, 1)","rgba(139, 195, 74, 1)","rgba(205, 220, 57, 1)","rgba(255, 235, 59, 1)","rgba(255, 193, 7, 1)"],components:{preview:!0,opacity:!1,hue:!0,interaction:{hex:!1,rgba:!1,hsla:!1,hsva:!1,cmyk:!1,input:!0,clear:!0,save:!0}},i18n:{"btn:save":"Guardar","btn:cancel":"Cancelar","btn:clear":"Limpiar"}}),this.pickr.setColor(t),this.colorPickr.style.color=t,this.colorPickr.disabled=!1,this.colorPickr.setAttribute("aria-disabled","false"),this.colorPickr.setAttribute("data-picker-ready","true"),this.pickr},titleCase:function(t){return t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))},onloadImage:function(t){console.log(t),$("#"+t).removeClass("loading")},setFirstVariantAsDefault:function(){var t,e,i,n;if(console.log(this.business.products),null===this.business.products[0].id)this.business.products[0].variants[0].is_default=!0,this.business.products[0].default_variant=this.business.products[0].variants[0];else for(e=0,t=(n=this.business.products).length;e<t;e++)i=n[e],console.log("VARIANTS"),console.log(i.variants),i.default_variant=i.variants.find((function(t){return t.is_default})),void 0===i.default_variant&&(i.variants[0].is_default=!0,i.default_variant=i.variants[0]),console.log(i);return console.log(this.business.products[0].variants)},removeEmptyVariant:function(){var t,e,i,n,r;for(r=[],e=0,t=(n=this.business.products).length;e<t;
70e++)i=n[e],r.push(console.log(i.variants));return r},removeColorDuplicates:function(){var t,e,i,n,r;for(r=[],e=0,t=(n=this.business.products).length;e<t;e++)i=n[e],r.push(i.colors=this.removeDuplicates(i.colors));return r},removeSizeDuplicates:function(){var t,e,i,n,r;for(r=[],e=0,t=(n=this.business.products).length;e<t;e++)i=n[e],r.push(i.sizes=this.removeDuplicates(i.sizes));return r},removeDuplicates:function(t){var e,i,n,r,o,a;if(0===t.length)return[];for(r={},e=i=0,n=t.length-1;0<=n?i<=n:i>=n;e=0<=n?++i:--i)r[t[e]]=t[e];for(e in o=[],r)a=r[e],o.push(a);return o},showSingleImage:function(t){return!(t.variants.filter((function(t){return!t._destroy})).length>1||t.has_color||t.has_size)},showSingleVariant:function(t){return console.log("show single"),!(t.has_color||t.has_size||t.variants.length>1)},addProduct:function(){var t;return(t=[]).push({id:null,image:null,color:null,_destroy:!1,size:null,is_default:!0,price:null,price_start:null,price_end:null,price_decimal:null,price_start_decimal:null,price_end_decimal:null,preview:null}),this.business.products.push({id:null,title:null,description:null,_destroy:!1,image:null,image_pending:!1,collection:null,collection_description:null,sku:null,default_variant:null,variants:t.map((function(t){return t})),is_shippable:!1,show_messaging_button:!1,shipping_natl_price:null,shipping_natl_price_decimal:null,shipping_intl_price:null,shipping_intl_price_decimal:null,price:null,price_decimal:null,price_start:null,price_start_decimal:null,price_end:null,price_end_decimal:null,purchase_option:"",preview:null,price_range:!1,paypal_button:!1,has_color:!1,colorForm:null,colors:[],sizeForm:null,sizes:[],has_size:!1,variantsWithImages:[]}),this.business.products[this.business.products.length-1].default_variant=this.business.products[this.business.products.length-1].variants[0],console.log(this.business.products),this.$nextTick((function(){return $(".product-collection-autocomplete").autocomplete({source:this.availableCollections})}))},findIndex:function(t,e,i){var n;return(n=this.business.products[t][e].filter((function(t){return t===i}))).length>0?this.business.products[t][e].indexOf(n[0]):void 0},verifyCompositeVariantExists:function(t,e){return this.business.products[t].variants.some((function(t){return t.color===e.color&&t.size===e.size&&!t._destroy}))},verifySimpleVariantExists:function(t,e,i){return this.business.products[t].variants.some((function(t){return t[e]===i&&!t._destroy}))},convertVariantsToNotDefault:function(t){var e,i,n,r,o;for(i=0,e=(r=(n=this.business.products[t]).variants).length;i<e;i++)o=r[i],n.variants.fitler((function(t){return t.is_default})).length>1&&(o.is_default=!1);return console.log(n.variants)},ensureOneDefault:function(t){var e;return(e=this.business.products[t]).variants.filter((function(t){return t.is_default})).length>1&&this.convertVariantsToNotDefault(t),console.log(e.variants)},addVariant:function(t,e,i){var n;return null==i&&(i=!1),console.log("adding new variant"),(n=this.business.products[t]).variants.push({id:null,image:null,color:e.color||null,size:e.size||null,is_default:i,price:n.default_variant.price,price_start:n.default_variant.price_start,price_end:n.default_variant.price_end,price_decimal:n.default_variant.price_decimal,price_start_decimal:n.default_variant.price_start_decimal,price_end_decimal:n.default_variant.price_end_decimal,preview:null,image_uuid:null,related_image_uuid:null,_destroy:!1}),this.checkIfVariantsHaveImages(n)},defaultVariant:function(t){return this.business.products[t].variants.filter((function(t){return!0===t.is_default}))[0]},generateTypeVariants:function(t,e,i){var n,r,o,a,s,l,c;for(console.log("color variants"),l=[],o=0,r=(s=(a=this.business.products[t])[e]).length;o<r;o++)c=s[o],n={},console.log("member",a.default_variant[i]),console.log("simple variant exists",this.verifySimpleVariantExists(t,i,c)),console.log("default variant null",null===this.defaultVariant(t)[i]),this.verifySimpleVariantExists(t,i,c)||null===this.defaultVariant(t)[i]?(n[i]=c,l.push(this.updateVariants(t,n))):(n[i]=c,l.push(this.addVariant(t,n)));return l},generateMixedVariants:function(t){var e,i,n,r,o,a,s,l;for(console.log("mixed variants"),s=[],r=0,n=(a=(o=this.business.products[t]).colors).length;r<n;r++)e=a[r],s.push(function(){var n,r,a,s;for(s=[],r=0,n=(a=o.sizes).length;r<n;r++)l=a[r],i={color:e,size:l},this.verifyCompositeVariantExists(t,i)||null===o.default_variant.color||null===o.default_variant.size?s.push(this.updateV
70ariants(t,i)):s.push(this.addVariant(t,i));return s}.call(this));return s},generateDefaultVariant:function(t){var e;return console.log("default variant"),!(e=this.business.products[t]).variants.some((function(t){return t.is_default}))&&e.variants.length<1?this.addVariant(t,{color:null,size:null},!0):this.ensureOneDefault(t)},generateVariantsTable:function(t){var e;switch(e=this.business.products[t],!1){case!(e.colors.length>0&&0===e.sizes.length):return this.generateTypeVariants(t,"colors","color");case!(0===e.colors.length&&e.sizes.length>0):return this.generateTypeVariants(t,"sizes","size");case!(e.colors.length>0&&e.sizes.length>0):return this.generateMixedVariants(t);default:return this.generateDefaultVariant(t)}},clearProductForm:function(t,e){return this.business.products[t][e]=null},setTypeToProduct:function(t,e,i){var n;return console.log("set type"),console.log(e),console.log(i),(n=this.business.products[t])[e].push(n[i]),console.log(n[e]),this.clearProductForm(t,i)},removeMultipleVariants:function(t,e){var i;return i=this.business.products[t],console.log("array of variants to remove"),console.log(e.length),i.variants=i.variants.filter((function(t){return-1===e.indexOf(t)})),console.log(i.variants),console.log(i.variants.filter((function(t){return t._destroy})))},searchFor:function(t,e,i){var n;return console.log("searchFor"),console.log(e),console.log(i),(n=this.business.products[t])[i]=n[i].replace(/^\s+|\s+$/g,""),n[i]=n[i].toUpperCase(),n[e].some((function(t){return t===n[i]&&!t.destroy}))?n[i]=null:this.setTypeToProduct(t,e,i)},checkVariantType:function(t,e){switch(console.log("type"),console.log(e),this.business.products[t],!1,!1){case"color"!==e:return this.searchFor(t,"colors","colorForm");case"size"!==e:return this.searchFor(t,"sizes","sizeForm");default:return!1}},checkPreviewImage:function(t){var e;if(0===(e=this.business.products[t]).colors.length&&0===e.sizes.length)return e.default_variant.preview=null},addVariantType:function(t,e){var i;return i=this.business.products[t],this.checkVariantType(t,e),this.generateVariantsTable(t),console.log("product variants"),console.log(i.variants)},alt:function(t){return"color"===t?"size":"color"},findVariantsWithType:function(t,e,i){return this.business.products[t].variants.filter((function(t){return t[e]===i}))},checkProductHasTypes:function(t){var e;return(e=this.business.products[t]).colors<=0?e.has_color=!1:e.has_color=!0,e.sizes<=0?e.has_size=!1:e.has_size=!0},removeVariantType:function(t,e,i,n){var r,o,a;return console.log("remove variant type"),console.log(i),(r=this.business.products[t])[e]=r[e].filter((function(t){return t!==n})),a=this.findVariantsWithType(t,i,n),console.log("variants found"),console.log(a),o=this.removeTypeOfVariants(t,e,i,n,a),console.log("returned variants"),console.log(o),this.removeMultipleVariants(t,o),this.checkProductHasTypes(t),this.checkHasDefault(t)},removeTypeOfVariants:function(t,e,i,n,r){var o,a,s,l,c,h;for(console.log("remove type of variants"),l=this.business.products[t],c=[],s=0,a=r.length;s<a;s++)h=r[s],console.log("variant"),console.log(h),0===l[e].length?h[i]=null:null===h.id?c.push(h):(o=l.variants.indexOf(h),this.removeVariant(t,o));return c},removeVariant:function(t,e){var i,n,r,o;return i=(o=(n=this.business.products[t]).variants[e]).color,r=o.size,null===o.id?(console.log("splice"),n.variants.splice(e,1)):!o.is_default||o.is_default&&n.variants.filter((function(t){return!t._destroy})).length>1?(console.log("_destroy"),o.is_default=!1,o._destroy=!0,console.log(o)):(o.color=null,o.size=null),null!==i&&this.checkIfLastType(t,"colors","color",i),null!==r&&this.checkIfLastType(t,"sizes","size",r),console.log("default variants"),console.log(n.default_variant),console.log(n.variants.filter((function(t){return t.is_default}))),this.checkProductHasTypes(t),this.checkHasDefault(t)},checkIfLastType:function(t,e,i,n){var r;if(!(r=this.business.products[t]).variants.some((function(t){return t[i]===n&&!t._destroy})))return r[e]=r[e].filter((function(t){return t!==n}))},updateVariants:function(t,e){var i,n,r,o,a,s,l,c;for(console.log("updating variants new"),console.log(this.business.products[t].variants),r=this.business.products[t],console.log(e),console.log(r.variants.filter((function(t){return!t._destroy}))),o=r.variants.filter((function(t){return!t._destroy})),a=[],n=0,i=o.length;n<i;n++)s=o[n],console.log(s),null===s.size&&void 0!==e.size?(console.log("size"),s.size=e.size,console.log(s),c=r.variants.indexOf(s),a.push(this.updateV
70ariantWithProduct(t,r,c))):null===s.color&&void 0!==e.color?(console.log("color"),s.color=e.color,console.log(s),c=r.variants.indexOf(s),a.push(this.updateVariantWithProduct(t,r,c))):void 0!==e.size?(console.log("add variant size"),console.log(e),l=r.variants.some((function(t){return t.color===s.color&&t.size===e.size&&!t._destroy})),console.log(l),console.log(r.variants.filter((function(t){return t.color===s.color&&t.size===e.size&&!t._destroy}))),l?a.push(void 0):a.push(this.addVariant(t,{color:s.color,size:e.size}))):(console.log("add variant color"),(l=r.variants.some((function(t){return t.color===e.color&&t.size===s.size&&!t._destroy})))?a.push(void 0):a.push(this.addVariant(t,{color:e.color,size:s.size})));return a},clearVariantType:function(t,e,i,n,r){var o,a,s,l,c,h,d,u,p,f;for(d=[],s=0,o=(h=(c=this.business.products[t])[e]).length;s<o;s++)for(u=h[s],f=c.variants.filter((function(t){return t[i]===u})),l=0,a=f.length;l<a;l++)(p=f[l])[i]=null,null===p.id?d.push(p):p.is_default&&null===p[this.alt(i)]?(p.color=null,p.size=null,p._destroy=!1):p.is_default&&null!==p[this.alt(i)]||(null===p[this.alt(i)]?p._destroy=!0:(r=this.alt(i),c.variants.filter((function(t){return t[r]===p[r]})).length>1&&(p._destroy=!0)));return console.log("variantes a remover"),console.log(d),console.log("variants"),console.log(c.variants),this.removeMultipleVariants(t,d),this.missingAltTypes(t,e,i,n,r),c[e]=[],this.checkProductHasTypes(t),this.checkHasDefault(t)},variantsToDestroy:function(t){return this.business.products[t].variants.filter((function(t){return t._destroy}))},checkHasDefault:function(t){var e;if(console.log("check product has default"),e=this.business.products[t],console.log(e.variants),!e.variants.some((function(t){return t.is_default&&!t._destroy})))return e.variants.length>0?(e.variants[0].is_default=!0,e.default_variant=e.variants[0]):this.addVariant(t,{color:null,size:null},!0)},missingAltTypes:function(t,e,i,n,r){var o,a,s,l,c,h,d,u;for(h=this.business.products[t],u=h.variants.filter((function(t){return!t._destroy})).map((function(t){return t[r]})),console.log("variants with alt"),console.log(u),d=[],l=0,s=(c=h[n].filter((function(t){return-1===u.indexOf(t)}))).length;l<s;l++)o=c[l],(a={})[i]=null,a[r]=o,d.push(this.addVariant(t,a));return d},updateVariantWithProduct:function(t,e,i){var n;return console.log(e.default_variant),(n=this.business.products[t].variants[i]).price=e.default_variant.price,n.price_start=e.default_variant.price_start,n.price_end=e.default_variant.price_end,n.price_decimal=e.default_variant.price_decimal,n.price_start_decimal=e.default_variant.price_start_decimal,n.price_end_decimal=e.default_variant.price_end_decimal},removeProduct:function(t){return null!==this.business.products[t].id?this.business.products[t]._destroy=!0:this.business.products.splice(t,1),$("#removal-success").addClass("show-mssg-error"),$("#removal-success")[0].scrollIntoView(),setTimeout((function(){$("#removal-success").fadeOut("slow",(function(){return $(this).removeClass("show-mssg-error")}))}),3e3)},removeBioImage:function(t,e){return t.image=t.preview=null,$("[name='landing_page_business[landing_page_bios_attributes][][remove_image]']")[e].value=!0,console.log("=============>>>",t),this.business.bios.splice(e,1,t),console.log("I am here ====",this.business.bios[e])},removeProductImage:function(t){return t.image=t.preview=null},removeContactFormImage:function(){return null!==this.business.landingPage.contactFormImage&&(this.business.landingPage.imageChanged=!0),this.business.landingPage.contactFormImage=null},removeVariantImage:function(t,e){return e.persisted_image_url=null,e.renderable_image_url=null,e.has_persisted_image=!1,e.has_renderable_image=!1,e.image_source_kind=null,e.display_image_url=null,e.image=null,e.preview=null,e.remove_image=!0,t.variants.forEac
70h((function(t){if(t.related_image_uuid===e.image_uuid)return t.related_image_uuid=null})),e.image_uuid=null,this.checkIfVariantsHaveImages(t)},productVariantDefaultInputName:function(t,e){return"landing_page_business[landing_page_products_attributes][][landing_page_prodct_variants_attributes]"+"[]["+e+"]"},productVariantDefaultIndexId:function(t,e){return"landing_page_business[landing_page_products_attributes][][landing_page_product_variants_attributes]"+(t+"_")+e},productVariantInputName:function(t,e){return"landing_page_business[landing_page_products_attributes][][landing_page_product_variants_attributes]"+"[]["+e+"]"},productVariantInputId:function(t,e,i){var n;return n="landing_page_business_landing_page_products_attributes_landing_page_product_variants_attributes_",null!==t.id?null!==e.id?n+=t.id+"_"+e.id+"_"+i:n+=t.id+"_"+t.variants.indexOf(e)+"_"+i:n+=this.business.products.indexOf(t)+"_"+t.variants.indexOf(e)+"_"+i,n},productInputName:function(t,e){return"landing_page_business[landing_page_products_attributes]"+"[]["+e+"]"},updateText:function(t,e){return this.business.products[this.business.products.indexOf(e)].description=t.target.value},productInputId:function(t,e){var i;if(null!==t.id)return i="landing_page_business_landing_page_products_attributes_",i+=t.id+"_"+e},productIndexId:function(t,e){return"landing_page_business_landing_page_products_attributes_"+(t+"_")+e},periodInputName:function(t,e){var i;return i="landing_page_business[domain_landing_page_schedule_attributes]",(i+="[domain_landing_page_schedule_periods_attributes]")+"[]["+e+"]"},periodInputId:function(t,e){var i;return i="landing_page_business_landing_page_schedule_attributes_",(i+="domain_landing_page_schedule_periods_attributes")+"_"+t.id+"_"+e},periodPreviewText:function(t){var e,i,n,r,o,a;return e=t.days.slice(),r=this.periodRangesOptions.find((function(t){return t.value.slice().toString()===e.toString()})),i=(""+t.fromHour).padStart(2,"0"),n=(""+t.fromMinute).padStart(2,"0"),o=(""+t.toHour).padStart(2,"0"),a=(""+t.toMinute).padStart(2,"0"),r.text+": "+i+":"+n+" - "+o+":"+a},addBio:function(){return this.business.bios.push({id:null,image:"",image_pending:!1,person:null,role:null,description:null,position:1,_destroy:!1,preview:null})},removeBio:function(t){return null!==this.business.bios[t].id?(this.business.bios[t]._destroy=!0,$("#removal-bio-success").addClass("show-mssg-error"),$("#removal-bio-success")[0].scrollIntoView(),setTimeout((function(){$("#removal-bio-success").fadeOut("slow",(function(){return $(this).removeClass("show-mssg-error")}))}),3e3)):(this.business.bios.splice(t,1),$("#removal-bio-success").addClass("show-mssg-error"),$("#removal-bio-success")[0].scrollIntoView(),setTimeout((function(){$("#removal-bio-success").fadeOut("slow",(function(){return $(this).removeClass("show-mssg-error")}))}),3e3))},addImage:function(){return this.business.images.push({id:null,image:null,image_pending:!1,imgCol:1,imgRow:1,position:1,description:null,_destroy:!1,preview:null})},addBenefit:function(){return this.business.benefits.push({id:null,title:null,title_lang:null,subtitle:null,subtitle_lang:null,block_col:1,position:1,selected_background:"main_image",_destroy:!1,text_color:"#808080"}),this.$nextTick((function(){return this.initBenefitPickers()}))},removeBenefit:function(t){return null!==t.id?t._destroy=!0:(o=this.business.benefits.indexOf(t),this.business.benefits.splice(o,1))},removeBenefitsImage:function(t){return this.business[t].url=null,this.business[t]=null,this.business[t+"Preview"]=null},displayableRelatedVariants:function(t,e){return t.variantsWithImages.filter((function(t){return t!==e}))},setRelatedUUID:function(t,e,i){return this.removeVariantImage(t,e),e.related_image_uuid=i.image_uuid},checkIfVariantsWithImagesHaveUuid:function(t){if(t.variants)return t.variants.forEac
70h((t=>{this.variantHasPersistedImage(t)&&!t.image_uuid&&(t.image_uuid=this.generateUuid())}))},generateUuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e;return e=16*Math.random()|0,("x"===t?e:3&e|8).toString(16)}))},removeImage:function(t){return this.business.images[t]._destroy=!0,$("#removal-img-success").addClass("show-mssg-error"),$("#removal-img-success")[0].scrollIntoView(),setTimeout((function(){$("#removal-img-success").fadeOut("slow",(function(){return $(this).removeClass("show-mssg-error")}))}),3e3)},removeLogo:function(){return this.business.remove_logo=!0,this.releaseLogoBlobUrl(),this.business.logo_preview=null,this.business.logo=null},resolveLogoUrl:function(t){var e,i;return t?"string"==typeof t?0===t.indexOf("data:")?null:t:(e=t.url||t.preview||t.identifier||null)&&0!==e.indexOf("data:")?0===e.indexOf("http://")||0===e.indexOf("https://")||"/"===e.charAt(0)?e:(i=this.business||{},vueApp.resolveBusinessLogoUrl({id:i.id,bucket:i.bucket,logo:e})):null:null},logoImageSrc:function(){return this.business.logo_preview||this.resolveLogoUrl(this.business.logo)||this.business.logo_original_url||null},hasLogoImage:function(){return!!this.logoImageSrc()},releaseLogoBlobUrl:function(){return this.business.logo_blob_url&&window.URL&&"function"==typeof window.URL.revokeObjectURL&&window.URL.revokeObjectURL(this.business.logo_blob_url),this.business.logo_blob_url=null},addPeriod:function(){return this.business.schedule.periods.push({id:null,days:this.periodRangesOptions[0].value,fromHour:8,fromMinute:0,toHour:15,toMinute:30,_destroy:!1})},removePeriod:function(t){return this.business.schedule.periods[t]._destroy=!0},textSelected:function(t,e){if(!this.iconIsSelected(t))return this.lastIconSelected=t,this.business.icons.push({feature_icons_id:t,icon_title:$("#landing_page_business_landing_page_icons_attributes_"+t+"_icon_title").val(),icon_desc:$("#landing_page_business_landing_page_icons_attributes_"+t+"_icon_desc").val()}),this.$nextTick((function(){var i;return $("#landing_page_business_landing_page_icons_attributes_"+t+"_"+e).focus(),i=$("#landing_page_business_landing_page_icons_attributes_"+t+"_"+e).val(),$("#landing_page_business_landing_page_icons_attributes_"+t+"_"+e).val(""),$("#landing_page_business_landing_page_icons_attributes_"+t+"_"+e).val(i)}))},textUpdate:function(t){var e,i,n,r;return e=t.target.value,n=parseInt(t.currentTarget.getAttribute("data-icon-id")),i=t.currentTarget.getAttribute("data-icon-field"),r=this.business.icons.findIndex((function(t){return t.feature_icons_id===n})),this.business.icons[r][i]=e,this.$forceUpdate()},iconImageUrl:function(t,e){var i;return i="https://kolau.s3.amazonaws.com/images/icon_"+e,this.iconIsSelected(t)&&(i+="_selected"),i+".png"},openIconSelector:function(t){var e;return console.log(t),Array(this.business.icons.length).fill().map((function(t,e){return e})),EventBus.$off("selected-icon",this.setImageIcon),document.querySelectorAll("[data-element='icon-selector']").forEach((function(t){var e;return e=t.dataset.instance,EventBus.$emit("close-search-icons-"+e,!0)})),e=document.getElementById("icons-select-"+t).dataset.instance,EventBus.$emit("show-search-icons-"+e,e),EventBus.$on("selected-icon",this.setImageIcon),EventBus.$on("uploaded-icon",this.setUploadedIcon)},setImageIcon:function(t){var e,i;return console.log("SETTING ICON"),console.log(t),i=t.instance.split("-"),o=i[i.length-1],(e=this.business.icons.filter((function(t){return!t._destroy})))[o].svg=t.icon.svg,e[o].image=null,e[o].feature_icons_id=null,e[o].opacity="drawings"===t.icon.category,console.log(e[o]),EventBus.$off("selected-icon",this.setImageIcon),EventBus.$off("uploaded-icon",this.setUploadedIcon),EventBus.$emit("close-search-icons-"+t.instance,!0)},setUploadedIcon:function(t){var e,i;return console.log("SETTING ICON"),console.log(t),i=t.instance.split("-"),o=i[i.length-1],(e=this.business.icons.filter((function(t){return!t._destroy})))[o].image=t.image,e[o].svg=null,e[o].feature_icons_id=null,console.log(e[o]),EventBus.$off("selected-icon",this.setImageIcon),EventBus.$off("uploaded-icon",this.setUploadedIcon),EventBus.$emit("close-search-icons-"+t.instance,!0),this.$forceUpdate()},characterCount:function(t,e){return console.log(t),null!==t[e]&&void 0!==t[e]?t[e].length:0},getValue:function(t,e){var i;return(i=this.business.icons.find((function(e){return e.feature_icons_id===t})))&&i[e]?i[e]:""},iconRecentlySelected:function(t){var e;return null!=(e=this.lastIconSelected===t)?e:{true:!1}},iconIsSelected:function(t){var e;return null!=(e=this.business.icons.findIndex((function(e){return e.feature_icons_id===t}))>=0)?e:{true:!1}},addIcon:function(){return this.business.icons.push({id:null,icon:null,icon_title:null,icon_title_lang:null,icon_desc:null,icon_desc_lang:null,feature_icons_id:null,position:1,svg:null,_destroy:!1}),console.log(this.business.icons),this.$nextTick((function(){var t;return t=this.business.icons.filter((function(t){return!t._destroy})),this.openIconSelector(t.length-1)}))},removeIcon:function(t){return console.log("REMOVE",t),null!==t.id?t._destroy=!0:(o=this.business.icons.indexOf(t),this.business.icons.splice(o,1))},toggleIconSelection:function(t){var e;return this.iconIsSelected(t)?(console.log("1"),this.lastIconSelected=null,e=this.business.icons.findIndex((function(e){return e.feature_icons_id===t})),this.business.icons.splice(e,1)):(console.log("1"),this.lastIconSelected=t,this.business.icons.push({feature_icons_id:t,icon_title:$
70("#landing_page_business_landing_page_icons_attributes_"+t+"_icon_title").val(),icon_desc:$("#landing_page_business_landing_page_icons_attributes_"+t+"_icon_desc").val()})),this.$forceUpdate()},iconInputName:function(t,e){return"landing_page_business[landing_page_icons_attributes]"+"[]["+e+"]"},iconInputId:function(t,e){var i;return i="landing_page_business_landing_page_icons_attributes_",null!==t.id?i+(t.id+"_")+e:i+((o=this.business.icons.indexOf(t))+"_")+e},bioInputName:function(t,e){return"landing_page_business[landing_page_bios_attributes]"+"[]["+e+"]"},bioInputId:function(t,e){var i;return i="landing_page_business_landing_page_bios_attributes_",null!==t.id?i+(t.id+"_")+e:i+((o=this.business.bios.indexOf(t))+"_")+e},previewBio:function(t,e,i){var n,r,o;return n=this.business.bios[t],$("#"+this.bioInputId(n,"preview")).addClass("loading"),(r=new FileReader).onload=(o=this,function(i){var r;return(r=new Image).onload=function(){var i;return i=loaderBase64(r,e),$("#"+o.bioInputId(n,"preview")).removeClass("loading"),o.business.bios[t].preview=i,o.business.bios[t].image=i},r.src=i.target.result,o.business.bios[t].preview=i.target.result,o.business.bios[t].image=i.target.result}),r.readAsDataURL(e),this.addImageUploadedToForm(i),$("[name='landing_page_business[landing_page_bios_attributes][][remove_image]']")[t].value=!1},previewProduct:function(t,e,i){return this.business.products[t].variants[0].preview=URL.createObjectURL(e),this.addImageUploadedToForm(i),this.updateVariantWithoutImagePreview(t,e,i),$("[name='landing_page_business[landing_page_products_attributes][][remove_image]']")[t].value=!1},previewVariant:function(t,e,i,n){var r,o,a;return r=this.business.products[t],$("#"+this.productVariantInputId(r,n,"preview")).addClass("loading"),(o=new FileReader).onload=(a=this,function(t){var i;return(i=new Image).onload=function(){var t;return t=loaderBase64(i,e),$("#"+a.productVariantInputId(r,n,"preview")).removeClass("loading"),n.preview=t,n.image=t,n.image_uuid=a.generateUuid(),n.related_image_uuid=null,a.checkIfVariantsHaveImages(r)},i.src=t.target.result,n.image=t.target.result}),o.readAsDataURL(e),n.remove_image=null,this.addImageUploadedToFormVariant(i)}
70,updateVariantWithoutImagePreview:function(t,e,i){var n,r,o,a,s;for(a=[],r=0,n=(o=this.business.products[t].variants).length;r<n;r++)null===(s=o[r]).preview?(this.business.products[t].variants.indexOf(s),a.push(this.previewVariant(t,e,i,s))):a.push(void 0);return a},previewTemplate:function(t,e){var i,n;return(i=new FileReader).onload=(n=this,function(e){var i;return(i=new Image).onload=function(){var e;return e=loaderBase64(i,t,1500),n.template_image=e},i.src=e.target.result}),i.readAsDataURL(t),this.addImageUploadedToForm(e)},closeModalTemplate:function(){return this.template_modal=!1,this.openHeaderPexels=!1},closeModalCropperContactForm:function(){return this.contact_form_modal=!1},customTemplate:function(){return this.saving_image=!0,this.template_image=null,this.template_modal=!0},contactFormImagePexels:function(t){return this.closePexelsSearch(),this.contact_form_modal=!0,console.log(t),"string"==typeof t.image?this.contact_form_image=t.image:(this.contact_form_image=t.image.src.landscape,console.log(t)),this.business.landingPage.imageChanged=!0,this.$nextTick((function(){var t;return t=document.getElementById("contact_form_image_preview"),this.cropper=new Cropper(t,{aspectRatio:1,viewMode:1})}))},saveContactFormImage:function(){var t,e;return t=document.getElementById("contact_form_image_preview").cropper.getCroppedCanvas(),console.log(t),e=t.toDataURL("image/png"),this.business.landingPage.contactFormImage=e,this.contact_form_modal=!1},customTemplatePexels:function(t){return this.pexelsOpen=!1,this.saving_image=!0,console.log("string"==typeof t.image),"string"==typeof t.image?this.template_image=t.image:this.template_image=t.image.src.landscape,this.template_modal=!0},removeCustomTemplate:function(){return this.business.landingPage.template="general",this.business.landingPage.template_image=null,this.business.landingPage.image=null},saveTemplateImage:function(){var t,e,i,n,r;return this.new_template_image=!0,this.verified_picture=!0,this.saving_image=!0,this.business.landingPage.is_tinified=!1,n=document.getElementById("spinner"),this.spinner.spin(n),t=document.getElementById("template_image_preview").cropper.getCroppedCanvas(),console.log(t),t.toBlob((r=this,function(t){var e,i;return(e=new FormData).append("croppedImage",t),i="/account/domains/"+window.location.pathname.replace(/\D/g,"")+"/check_color_template",$.ajax({url:i,type:"POST",data:e,processData:!1,contentType:!1,success:function(t){if(r.verified_picture=!1,r.business.landingPage.is_picture_ligth=t.clear_picture,r.business.landingPage.is_picture_too_small=t.too_small,console.log(r.business.landingPage),window.location.href.includes("edit?")&&("Title"===r.business.landingPage.mainHeader||"Titulo"===r.business.landingPage.mainHeader))return setTimeout((function(){var t,e,i;if($("#accordion-step-0").collapse("toggle"),$("#accordion-step-2").collapse("toggle"),e=$('[scroll-to="1"]'),i=$('[scroll-to-message="1"]'),e.length)return t=e.offset().top(-50),window.scrollTo(0,t),i.show()}),1e3)}})})),e=void 0!==(i=document.getElementById("template_image").files[0])?t.toDataURL(i.type):t.toDataURL("image/png"),this.business.landingPage.image=e,this.business.landingPage.template_image=e,this.business.landingPage.template="custom_template",this.openHeaderPexels=!1,
71EventBus.$emit("close-background-pexels-search","onboarding-search-instance"),this.template_modal=!1,this.saving_image=!1,$("#error-message-section").removeClass("show-mssg-error"),this.spinner.stop(),this.previewTemplateHeader()},previewTemplateHeader:function(){var t,e,i;if(t=document.getElementsByClassName("jumbotron"),o=0,"custom_template"===this.business.landingPage.template&&this.business.landingPage.template_image){for(e=[];o<t.length;)t[o].style.background="",e.push(o++);return e}for(i=[];o<t.length;)t[o].style.background="",i.push(o++);return i},addImageUploadedToForm:function(t){return $("#"+t).addClass("image-uploaded")},addImageUploadedToFormVariant:function(t){return console.log("addImageUploadToFormVariant"),console.log(t.id),$(""+t.id).addClass("image-uploaded")},toggleScheduleStartingOnMonday:function(){var t;return this.business.schedule.starting_on_monday=null!=(t=$("#landing_page_business_schedue_starting_on_monday").is(":checked"))?t:{1:0}},toggleScheduleCompleteDayName:function(){var t;return this.business.schedule.complete_day_name=null!=(t=$("#landing_page_business_schedue_complete_day_name").is(":checked"))?t:{1:0}},toggleProductPaypalButton:function(t){var e,i,n,r,o,a;if((r=this.business.products[t]).paypal_button=!r.paypal_button,r.paypal_button){for(r.price_range=!1,a=[],e=n=0,i=(o=r.variants).length;n<i;e=++n)o[e],a.push(this.validate(!1,"product-price"+e));return a}},toggleProductHasColorButton:function(t){var e;if((e=this.business.products[t]).has_color=!e.has_color,!e.has_color)return console.log("toggle off"),this.clearVariantType(t,"colors","color","sizes","size")},toggleProductHasSizeButton:function(t){var e;if((e=this.business.products[t]).has_size=!e.has_size,!e.has_size)return this.clearVariantType(t,"sizes","size","colors","color")},toggleProductIsShippable:function(t){var e;return(e=this.business.products[t]).is_shippable=!e.is_shippable},togglePriceRange:function(t,e){var i;if((i=this.business.products[t]).price_range=e.checked,!e.checked)return i.default_variant.price_start=null,i.default_variant.price_start_decimal=null,i.default_variant.price_end=null,i.default_variant.price_end_decimal=null},benefitInputName:function(t,e){return"landing_page_business[landing_page_benefits_attributes]"+"[]["+e+"]"},benefitInputId:function(t,e){var i;return i="landing_page_business_landing_page_benefits_attributes_",null!==t.id?i+(t.id+"_")+e:i+((o=this.business.benefits.indexOf(t))+"_")+e},imageInputName:function(t,e){return"landing_page_business[landing_page_images_attributes]"+"[]["+e+"]"},imageInputId:function(t,e){var i;return i="landing_page_business_landing_page_images_attributes_",null!==t.id?i+(t.id+"_")+e:i+((o=this.business.images.indexOf(t))+"_")+e},previewBenefitsImage:function(t,e){var i,n;return(i=new FileReader).onload=(n=this,function(i){var r;
71return(r=new Image).onload=function(){var i;return i=loaderBase64(r,e),n.business[t]=i,n.business[t+"Preview"]=i,console.log(t+"Preview")},r.src=i.target.result}),i.readAsDataURL(e)},previewImage:function(t,e,i){var n,r,o;return n=this.business.images[t],console.log(n),$("#"+this.imageInputId(n,"preview")).addClass("loading"),console.log(e),(r=new FileReader).onload=(o=this,function(i){var r;return(r=new Image).onload=function(){var i;return i=loaderBase64(r,e),o.business.images[t].preview=i,o.business.images[t].image=i,$("#"+o.imageInputId(n,"preview")).removeClass("loading")},r.src=i.target.result,o.business.images[t].image=i.target.result}),r.readAsDataURL(e),this.addImageUploadedToForm(i)},openPexelsSearch:function(){return this.pexelsOpen=!0,this.$nextTick((function(){return this.mountContactFormPexels()}))},closePexelsSearch:function(){return this.pexelsOpen=!1},selectContactFormType:function(t){if(this.business.landingPage.contactFormType=t,null===this.business.landingPage.contactFormImage)return this.openPexelsSearch()},selectContactFormTitle:function(t){if(this.business.landingPage.contactFormTitle=t,t)return this.$nextTick((function(){var t,e;return this.initContactFormColorPicker(),t=this.business.landingPage,e=this.contactPickr,this.contactPickr.on("save",(function(i){return i?t.contactFormTitleColor=i.toHEXA().toString():t.contactFormColorPicker="#525252",e.hide()}))}))},selectImageTitleStyle:function(t){return this.business.imgTitleStyle=t},selectImageTitleLayout:function(t){return this.business.imgLayout=t},selectBiosLayout:function(t){return this.business.biosLayout=t},selectBiosTitleStyle:function(t){return this.business.biosTitleStyle=t},selectBenefitImageLayout:function(t){return this.business.benefitsImagesLayout=t},selectBenefitTitleStyle:function(t){return this.business.benefitsTitleStyle=t},selectBenefitImageBackground:function(t,e){return t.selected_background=e},plusCol:function(t){return t.imgCol+=1},plusBenefitCol:function(t){return t.block_col+=1},minusCol:function(t){return t.imgCol-=1},minusBenefitCol:function(t){return t.block_col-=1},plusRow:function(t){return t.imgRow+=1},minusRow:function(t){return t.imgRow-=1},minusSizeContactFormTitle:function(){return this.business.landingPage.contactFormTitleSize-=1},minusSizeConnectSocial:function(){return this.business.landingPage.connectSocialTextSize-=1},minusSizeCallSchedule:function(){return this.business.landingPage.callScheduleTextSize-=1},minusSizeAddress:function(){return this.business.landingPage.addressTextSize-=1},minusSizeSectionTitle:function(){return this.business.landingPage.sectionTitleSize-=1},plusPosition:function(t){return t.position+=1},plusBenefitPosition:function(t){return t.position+=1},plusBioPosition:function(t){return t.position+=1},plusIconPosition:function(t){return t.position+=1},plusSizeContactFormTitle:function(){return this.business.landingPage.contactFormTitleSize+=1},plusSizeConnectSocial:function(){return this.business.landingPage.connectSocialTextSize+=1},plusSizeCallSchedule:function(){return this.business.landingPage.callScheduleTextSize+=1},plusSizeAddress:function(){return this.business.landingPage.addressTextSize+=1},plusZoomAddress:function(){return this.business.landingPage.mapZoom+=1},plusSizeSectionTitle:function(){return this.business.landingPage.sectionTitleSize+=1},minusPosition:function(t){return t.position-=1},minusBenefitPosition:function(t){return t.position-=1},minusBioPosition:function(t){return t.position-=1},minusIconPosition:function(t){return t.position-=1},minusZoomAddress:function(){return this.business.landingPage.mapZoom-=1},previousStep:function(){this.step>0&&(this.step-=1),this.scrollToPageTop()},nextStep:function(){this.validate()&&this.step<5&&(this.step+=1),this.scrollToPageTop()},scrollToPageTop:function(){window.scrollTo(0,0)},selectFont:function(t){var e,i;return $(".select-fonts li").removeClass("select"),i=t.target,e=$(i).attr("class"),$(i).addClass("select"),$(".logo-block .logo-text").removeClass("swash overlock cinzel aladin unicase").addClass(e),$("#font").val(e)},selectIconColor:function(t){var e,i,n;return i=t.target,$(".color-icon li").removeClass("select"),e=$(i).attr("class"),$(i).addClass("select"),$(".logo-block .logo-icon").addClass("hide"),$(".logo-block .logo-icon."+e).removeClass("hide"),$("#logo_color").val(e),n=$(".logo-block.select").children(".logo-icon:not(.hide)").find("img").attr("src"),$("#logo_url").val(n)},selectTextColor:function(t){var e,i;return i=t.target,$(".color-text li").removeClass("select"),e=$(i).attr("class"),$(i).addClass("select"),$(".logo-block .logo-text").removeClass("black orange red purple green yellow blue").addClass(e),$("#text_color").val(e)},selectLogo:function(t){var e,i,n;return $(".logo-block").removeClass("select"),e=t.target,(i=$(e).closest(".logo-block")).addClass("select"),n=i.children(".logo-icon:not(.hide)").find("img").attr("src"),$("#logo_url").val(n)},generateLogo:function(t){var e,i,n,r,o,a,s,l,c,h;return e=this.business,t.preventDefault(),l=$("#text_color").val(),o=$("#logo_color").val(),r=$("#font").val(),s=$("#name").val(),c=$("#type_id").val(),a=$("#logo_url").val(),h="/account/domains/"+(n=$("#domain_id").val())+"/generate-logo?landing_page_business_id="+e.id,i={text_color:l,logo_color:o,font:r,name:s,type_id:c,logo_url:a,domain_id:n},$.ajax({url:h,type:"POST",data:i,success:function(t){return $("#generate_logo_url").val(t.url),$("#landing_page_business_logo").val(""),$("#landing_page_business_logo").attr("filename",t.url),$(".my-selection").removeClass("hidden"),$(".my-selection .logo-text").removeClass("black orange red purple green yellow blue").addClass(l),$(".my-selection .logo-icon").removeClass("black orange red purple green yellow blue").addClass(o),$(".my-selection .logo-icon").removeClass("hide"),$(".my-selection .logo-icon 
71img").attr("src",a),$(".my-selection .logo-text").removeClass("swash overlock cinzel aladin unicase").addClass(r)}})},previewLogo:function(t,e){var i,n,r;if(t)return $("#business-logo").addClass("loading"),this.releaseLogoBlobUrl(),(i=window.URL&&"function"==typeof window.URL.createObjectURL?window.URL.createObjectURL(t):null)?(this.business.logo_preview=i,this.business.logo_blob_url=i,$("#business-logo").removeClass("loading")):window.FileReader?((n=new FileReader).onload=(r=this,function(t){return r.business.logo_preview=t.target.result,$("#business-logo").removeClass("loading")}),n.onerror=function(){return $("#business-logo").removeClass("loading")},n.readAsDataURL(t)):$("#business-logo").removeClass("loading"),this.business.remove_logo=!1,this.addImageUploadedToForm(e);$("#business-logo").removeClass("loading")},clearVideo:function(){if(this.business.video.url=null,this.business.video.description=null,null!==this.business.video.id)return this.business.video._destroy=!0},clearCalendar:function(){var t;return this.business.calendar.url=null,this.business.calendar.description=null,null!==this.business.calendar.id&&(this.business.calendar._destroy=!0),(t=$("#good-url-format-message")).removeClass("show"),t.addClass("hidden"),this.validateUrlCalendlyFormat()},validateUrlCalendlyFormat:function(){var t,e,i,n,r,o,a,s,l;if(l=null!=(a=this.business)&&null!=(s=a.calendar)?s.url:void 0,o=/https.+calendly.com+/,t=/event_types/,console.log(l,o.test(l)),e=$("#calendar.form-group input")[0],console.log(e),(r=$("#calendar.form-group")).removeClass("has-error"),e.setCustomValidity(""),i=$("#url-format-message"),n=$("#good-url-format-message"),i.removeClass("show"),i.addClass("hidden"),l)return o.test(l)&&!t.test(l)?(r.removeClass("has-error"),e.setCustomValidity(""),n.removeClass("hidden"),n.addClass("show")):(e.setCustomValidity("something"),r.addClass("has-error"),i.removeClass("hidden"),i.addClass("show"),n.removeClass("show"),n.addClass("hidden"))},validateSlugLength:function(t,e){return this.business.slugLengthError=!1,this.business.slugLengthWarn=!1,e.removeClass("has-error"),e.removeClass("has-warning"),this.business.slug.length>=64?(this.business.slugLengthError=!0,this.business.slugLengthWarn=!1,console.log("error",this.business.slugLengthError),e.removeClass("has-warning"),e.addClass("has-error"),t.setCustomValidity("slugtoolong")):this.business.slug.length>15&&this.business.slug.length<40?(this.business.slugLengthError=!1,this.business.slugLengthWarn=!0,console.log("warn",this.business.slugLengthWarn),e.removeClass("has-error"),e.addClass("has-warning"),t.setCustomValidity("")):t.setCustomValidity("")},validateSlug:function(){var t,e;return t=$("#slug.form-group input")[0],e=$("#slug.form-group"),this.validateSlugLength(t,e),this.validateSlugUniqueness(t,e),this.validate(!1,".business-slug")},checkEmail:function(){var t;return console.log("checking email"),t=/^[\w+\-.]+@[a-z\d\-.]+\.[a-z]+$/,console.log(t.test(this.business.email)),this.invalidEmail=t.test(this.business.email),this.business.emailError=!t.test(this.business.email),this.business.emailError?$("#landing_page_business_email")[0].setCustomValidity("emailInvalid"):$("#landing_page_business_email")[0].setCustomValidity(""),this.validate(!1,".business-email")},validateSlugUniqueness:function(t,e){var i,n,r,o;
71if(o=this.business.slug,i=this.business.id,r="/subdomain_availability?slug="+o+"&current_id="+i,(n=$("#slug-taken-message")).removeClass("show"),n.addClass("hidden"),!this.business.slugLengthError)return $.getJSON(r,(function(i){return i.available?(e.removeClass("has-error"),t.setCustomValidity("")):(t.setCustomValidity("something"),e.addClass("has-error"),o.length?(n.removeClass("hidden"),n.addClass("show")):void 0)}))},validate:function(t,e){var i,n,r,a,s,l,c,h;for(null==t&&(t=!0),null==e&&(e=null),h=null,n=!0,e?h="input"+e+", textarea"+e:(h="form.landing-page-business-form ",h+="input"+(t?":visible":"")+", ",h+="form.landing-page-business-form ",h+="textarea"+(t?":visible":"")),a=$(h),i=[],o=l=0,s=a.length;l<s;o=++l)r=a[o],$(r).hasClass("trix-input")||$(r).hasClass("trix-button")||(c=$(r).closest(".form-group"),null===e&&"file"!==$(r).attr("type")&&$(r).val($(r).val().trim()),r.validity.valid?(c.hasClass("has-error")&&(console.log("removing"),console.log(c)),c.length&&c.removeClass("has-error")):(n&&c&&c.offset()&&($("html, body").animate({scrollTop:c.offset().top-100}),n=!1),46===o&&(console.log("PARENT"),console.log(c)),c&&c.addClass("has-error"),console.log(c),console.log("PARENT"),console.log(c.length),i.push(o)));return $("#autocomplete_help_message").hide(),i.length>0?$("#error-message-section").addClass("show-mssg-error"):$("#error-message-section").removeClass("show-mssg-error"),console.log("aqui estoy 0!"),0===this.step&&$("#landing_page_business_full_address.auto-address").length>0&&""===$("#landing_page_business_city_address").val()&&""===$("#landing_page_business_administrative_area").val()&&void 0!==$("#landing_page_business_full_address").data("has-inserted-address")&&(console.log("aqui estoy 1!"),$("#landing_page_business_full_address").removeAttr("data-has-inserted-address"),this.addErrorClassFromAutoCompleteInputs("#landing_page_business_full_address.auto-address"),0===$(".help-message").length&&$("#autocomplete-help-message-one").show()),$("#mailing_autocomplete_help_message").hide(),0===this.step&&$("#landing_page_business_mailing_full_address.auto-address").length>0&&""===$("#landing_page_business_mailing_city_address").val()&&""===$("#landing_page_business_mailing_administrative_area").val()&&void 0!==$("#landing_page_business_mailing_full_address").data("has-inserted-address")&&(console.log("aqui estoy 2!"),$("#landing_page_business_mailing_full_address").removeAttr("data-has-inserted-address"),this.addErrorClassFromAutoCompleteInputs("#landing_page_business_mailing_full_address.auto-address"),0===$(".mailing-help-message").length&&$("#mailing_autocomplete_help_message").show(),i.push(i.length)),!0===$("#landing_page_business_full_address").data("has-not-filled")&&($("#autocomplete_help_message-one").show(),console.log("aqui estoy 3!")),0===i.length},submitStepForm:function(t){var e;console.log(t),this.validate()?(e=document.querySelector("#"+t),$(window).trigger("submit-step"),$(e).hasClass("image-uploaded")&&$(e).addClass("loading"),Rails.fire(e,"submit")):$("#error-message-section").addClass("show-mssg-error")},addErrorClassFromAutoCompleteInputs:function(t){var e;e=$(t),$(e).closest(".form-group").addClass("has-error")},showInputErrorStyle:function(t){var e;(e=$("#"+t).closest(".form-group")).length&&e.addClass("has-error")},offsetForChunkLength:function(t){return null==t&&(t=3),1===t?"4":2===t?"2":"0"},submit:function(t){var e,i,n,r,o;return n=$("#fix-errors-message"),i=$(t.target).closest("form")[0],o=$(i).find('button[type="submit"]'),this.validate(!1)?(n.removeClass("show"),n.addClass("hidden"),o.prop("disabled",!0),$("#landing-page-business-app").hasClass("image-uploaded")?$("#landing-page-business-app").addClass("loading"):void 0):(t.preventDefault(),n.removeClass("hidden"),n.addClass("show"),e=$(".has-error")[0],r=$(e).closest(".panel-collapse")[0],$(".panel-collapse.collapse").each((function(){return this===r?$(r).collapse("show"):$(this).collapse("hide")})))}}})}};var t=function(){var t="#landing-page-business-app";vueApp.initVue(),vueApp.browserNavAction(),$(document).keypress((function(e){if($(t).length&&13===e.which)return e.stopPropagation()}))};document.addEventListener("turbo:load",t)}).call(this),function(){function t(){var t=s||window.jQuery;return t&&t.fn&&"function"==typeof t.fn.select2?(s=t,t):null}function e(e){if(!e||!e.id)return e&&e.text?e.text:"";var i=t();if(!i)return e.text||"";var n=i("<span>");return n.append(i("<span>").addClass("flag-icon flag-icon-"+e.id)),n.append(document.createTextNode(" "+(e.text||""))),n}function i(t){return!!t&&(!(!t.classList||!t.classList.contains("select2-hidden-accessible"))||!(!t.getAttribute||!t.getAttribute("data-select2-id")))}function n(t,e,n){for(var r=document.querySelectorAll(e),o=0;o<r.length;o+=1){var a=r[o];i(a)||t(a).select2(n)}}function r(t){if(t)if("function"!=typeof Event){var e=document.createEvent("Event");e.initEvent("change",!0,!0),t.dispatchEvent(e)}else t.dispatchEvent(new Event("change",{bubbles:!0}))}function o(t,e){for(var i=document.querySelectorAll(e),n=0;n<i.length;n+=1){var o=i[n];
71o&&"1"!==o.dataset.bilingualSelectorBridgeBound&&(t(o).on("select2:select select2:unselect select2:clear",(function(){r(this)})),o.dataset.bilingualSelectorBridgeBound="1")}}var a="__kolauBilingualLanguageSelectorInitialized";if(!window[a]){window[a]=!0;var s=window.jQuery;window.setupLanguageSelector=function(){var i=t();i&&(n(i,".language-selector__language-dropdown",{theme:"bootstrap"}),n(i,".language-selector__country-dropdown",{theme:"bootstrap",templateResult:e,templateSelection:e}),o(i,".language-selector__language-dropdown"),o(i,".language-selector__country-dropdown"))},document.addEventListener("turbo:load",window.setupLanguageSelector),document.addEventListener("DOMContentLoaded",window.setupLanguageSelector),window.setupLanguageSelector()}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.