AdminLTE/plugins/flot/jquery.flot.js

3 lines
108 KiB
JavaScript
Raw Normal View History

!function r(a,s,l){function c(e,t){if(!s[e]){if(!a[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(u)return u(e,!0);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}var i=s[e]={exports:{}};a[e][0].call(i.exports,function(t){return c(a[e][1][t]||t)},i,i.exports,r,a,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;t<l.length;t++)c(l[t]);return c}({1:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCrossDomainCSSRules=void 0,t("regenerator-runtime/runtime");var o,v=(o=t("regenerator-runtime"))&&o.__esModule?o:{default:o};function et(t){return(et="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})(t)}function l(t,e,n,o,i,r,a){try{var s=t[r](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(o,i)}function i(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var o=s.apply(t,a);function i(t){l(o,e,n,i,r,"next",t)}function r(t){l(o,e,n,i,r,"throw",t)}i(void 0)})}}var a=new Map;function s(i,r){if(a.has(r)||function(t,e){for(var n=0;n<t.styleSheets.length;n++)if(t.styleSheets[n].href===e&&t.styleSheets[n].ownerNode.crossOrigin)return!0;return!1}(i,r))return a.get(r);var t=new Promise(function(t,e){var n=i.createElement("link");n.rel="stylesheet",n.href=r,n.crossOrigin="anonymous";var o=function(t,e){for(var n=t.getElementsByTagName("link"),o=0;o<n.length;o++)if(n[o].href===e&&!n[o].crossOrigin)return{parentNode:n[o].parentElement,node:n[o]}}(i,r);n.onload=function(){a.delete(r),o.node.remove(),t()},n.onerror=function(){e()},o.parentNode.insertBefore(n,o.node)});return a.set(r,t),t}var r,c,u,h,p,f,d,m,g,x,y,b,k,w=function(){var e=i(v.default.mark(function t(e){var n,o,i,r,a;return v.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=[],o=0;case 2:if(!(o<e.styleSheets.length)){t.next=20;break}if(i=[],t.prev=4,null!==(i=e.styleSheets[o].cssRules)||!e.styleSheets[o].href||e.styleSheets[o].href.includes(e.styleSheets[o].ownerNode.baseURI)||e.styleSheets[o].ownerNode.crossOrigin){t.next=9;break}throw i=[],new DOMException("Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules","SecurityError");case 9:t.next=16;break;case 11:return t.prev=11,t.t0=t.catch(4),t.next=15,s(e,e.styleSheets[o].href);case 15:o--;case 16:for(r=0;r<i.length;r++)a=i[r],n.push(a.cssText);case 17:o++,t.next=2;break;case 20:return t.abrupt("return",n);case 21:case"end":return t.stop()}},t,null,[[4,11]])}));return function(t){return e.apply(this,arguments)}}();n.getCrossDomainCSSRules=w,function(r){var t=function(t,e){var n=e.getElementsByClassName(t)[0];if(!n&&((n=document.createElement("canvas")).className=t,n.style.direction="ltr",n.style.position="absolute",n.style.left="0px",n.style.top="0px",e.appendChild(n),!n.getContext))throw new Error("Canvas is not available.");this.element=n;var o=this.context=n.getContext("2d");this.pixelRatio=r.plot.browser.getPixelRatio(o);var i=e.getBoundingClientRect();this.resize(i.width,i.height),this.SVGContainer=null,this.SVG={},this._textCache={}};t.prototype.resize=function(t,e){t=t<10?10:t,e=e<10?10:e;var n=this.element,o=this.context,i=this.pixelRatio;this.width!==t&&(n.width=t*i,n.style.width=t+"px",this.width=t),this.height!==e&&(n.height=e*i,n.style.height=e+"px",this.height=e),o.restore(),o.save(),o.scale(i,i)},t.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},t.prototype.render=function(){var t=this._textCache;for(var e in t)if(hasOwnProperty.call(t,e)){var n=this.getSVGLayer(e),o=t[e],i=n.style.display;for(var r in n.style.display="none",o)if(hasOwnProperty.call(o,r)){var a=o[r];for(var s in a)if(hasOwnProperty.call(a,s)){for(var l,c=a[s],u=c.positions,h=0;u[h];h++)if((l=u[h]).active)l.rendered||(n.appendChild(l.element),l.rendered=!0);else if(u.splice(h--,1),l.rendered){for(;l.element.firstChild;)l.element.removeChild(l.element.firstChild
//# sourceMappingURL=jquery.flot.js.map