MCPcopy Index your code
hub / github.com/plotly/plotly.py / _4t

Function _4t

plotly/package_data/plotly.min.js:40–40  ·  view source on GitHub ↗
(e,t)

Source from the content-addressed store, hash-verified

38`)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+`
39 `)+" "+e.join(`,
40 `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}fu.types=oj();function jSe(e){return Array.isArray(e)}fu.isArray=jSe;function jj(e){return typeof e=="boolean"}fu.isBoolean=jj;function HR(e){return e===null}fu.isNull=HR;function l4t(e){return e==null}fu.isNullOrUndefined=l4t;function WSe(e){return typeof e=="number"}fu.isNumber=WSe;function jR(e){return typeof e=="string"}fu.isString=jR;function u4t(e){return typeof e=="symbol"}fu.isSymbol=u4t;function R2(e){return e===void 0}fu.isUndefined=R2;function vE(e){return wA(e)&&Wj(e)==="[object RegExp]"}fu.isRegExp=vE;fu.types.isRegExp=vE;function wA(e){return typeof e=="object"&&e!==null}fu.isObject=wA;function GR(e){return wA(e)&&Wj(e)==="[object Date]"}fu.isDate=GR;fu.types.isDate=GR;function pE(e){return wA(e)&&(Wj(e)==="[object Error]"||e instanceof Error)}fu.isError=pE;fu.types.isNativeError=pE;function UR(e){return typeof e=="function"}fu.isFunction=UR;function c4t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=c4t;fu.isBuffer=sj();function Wj(e){return Object.prototype.toString.call(e)}function Gj(e){return e<10?"0"+e.toString(10):e.toString(10)}var f4t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function h4t(){var e=new Date,t=[Gj(e.getHours()),Gj(e.getMinutes()),Gj(e.getSeconds())].join(":");return[e.getDate(),f4t[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",h4t(),fu.format.apply(fu,arguments))};fu.inherits=Zy();fu._extend=function(e,t){if(!t||!wA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function XSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var I2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;fu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(I2&&t[I2]){var r=t[I2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,I2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s<arguments.length;s++)o.push(arguments[s]);o.push(function(l,u){l?i(l):n(u)});try{t.apply(this,o)}catch(l){i(l)}return a}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),I2&&Object.defineProperty(r,I2,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,GSe(t))};fu.promisify.custom=I2;function d4t(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function v4t(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,r).then(function(s){process.nextTick(o.bind(null,null,s))},function(s){process.nextTick(d4t.bind(null,s,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,GSe(e)),t}fu.callbackify=v4t});var Yj=ye((wdr,JSe)=>{"use strict";function X_(e){"@babel/helpers - typeof";return X_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X_(e)}function ZSe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g4t(n.key),n)}}function p4t(e,t,r){return t&&ZSe(e.prototype,t),r&&ZSe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g4t(e){var t=m4t(e,"string");return X_(t)==="symbol"?t:String(t)}function m4t(e,t){if(X_(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(X_(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y4t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _4t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zj(e,t)}function Zj(e,t){return Zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zj(e,t)}function x4t(e){var t=T4t();return function(){var n=WR(e),i;if(t){var a=WR(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return b4t(this,i)}}function b4t(e,t){if(t&&(X_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w4t(e)}function w4t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T4t(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function WR(e){return WR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},WR(e)}var KSe={},AA,Xj;function gE(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){_4t(s,a);var o=x4t(s);function s(l,u,c){var f;return y4t(this,s),f=o.call(this,n(l,u,c)),f.code=e,f}return p4t(s)}(r);KSe[e]=i}function YSe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function A4t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function S4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function M4t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}gE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);gE("ERR_INVALID_ARG_TYPE",function(e,t,r){AA===void 0&&(AA=mE()),AA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&A4t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(S4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(YSe(t,"type"));else{var a=M4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(YSe(t,"type"))}return i+=". Received type ".concat(X_(r)),i},TypeError);gE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Xj===void 0&&(Xj=TA());var n=Xj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);gE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(X_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);gE("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];AA===void 0&&(AA=mE()),AA(t.length>0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);JSe.exports.codes=KSe});var sMe=ye((Tdr,oMe)=>{"use strict";function $Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QSe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$Se(Object(r),!0).forEach(function(n){E4t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$Se(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E4t(e,t,r){return t=iMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k4t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eMe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iMe(n.key),n)}}function C4t(e,t,r){return t&&eMe(e.prototype,t),r&&eMe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iMe(e){var t=L4t(e,"string");return Dp(t)==="symbol"?t:String(t)}function L4t(e,t){if(Dp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P4t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bE(e,t)}function I4t(e){var t=aMe();return function(){var n=wE(e),i;if(t){var a=wE(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return nMe(this,i)}}function nMe(e,t){if(t&&(Dp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kj(e)}function Kj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jj(e){var t=typeof Map=="function"?new Map:void 0;return Jj=function(n){if(n===null||!R4t(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return XR(n,arguments,wE(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),bE(i,n)},Jj(e)}function XR(e,t,r){return aMe()?XR=Reflect.construct.bind():XR=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&bE(u,o.prototype),u},XR.apply(null,arguments)}function aMe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function R4t(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function bE(e,t){return bE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bE(e,t)}function wE(e){return wE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wE(e)}function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}var D4t=TA(),$j=D4t.inspect,F4t=Yj(),z4t=F4t.codes.ERR_INVALID_ARG_TYPE;function tMe(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function q4t(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Xg="",yE="",_E="",Tv="",D2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},O4t=10;function rMe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function xE(e){return $j(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B4t(e,t,r){var n="",i="",a=0,o="",s=!1,l=xE(e),u=l.split(`
41`),c=xE(t).split(`
42`),f=0,h="";if(r==="strictEqual"&&Dp(e)==="object"&&Dp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=O4t){if((Dp(e)!=="object"||e===null)&&(Dp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(D2[r],`
43

Callers 1

gEFunction · 0.85

Calls 2

ZjFunction · 0.85
createMethod · 0.45

Tested by

no test coverage detected