2 lines
223 KiB
JavaScript
2 lines
223 KiB
JavaScript
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Keymetrics=e()}}(function(){return function(){return function e(t,n,o){function i(r,s){if(!n[r]){if(!t[r]){var l="function"==typeof require&&require;if(!s&&l)return l(r,!0);if(a)return a(r,!0);var p=new Error("Cannot find module '"+r+"'");throw p.code="MODULE_NOT_FOUND",p}var u=n[r]={exports:{}};t[r][0].call(u.exports,function(e){return i(t[r][1][e]||e)},u,u.exports,e,t,n,o)}return n[r].exports}for(var a="function"==typeof require&&require,r=0;r<o.length;r++)i(o[r]);return i}}()({1:[function(e,t,n){(function(n){(function(){"use strict";var o=e("./package.json"),i={headers:{"X-JS-API-Version":o.version},services:{API:"https://app.keymetrics.io",OAUTH:"https://id.keymetrics.io"},OAUTH_AUTHORIZE_ENDPOINT:"/api/oauth/authorize",OAUTH_CLIENT_ID:"795984050",ENVIRONNEMENT:n&&n.versions&&n.versions.node?"node":"browser",VERSION:o.version,IS_DEBUG:"undefined"!=typeof window&&window.location.host.match(/km.(io|local)/)||void 0!==n&&"true"===n.env.DEBUG};t.exports=Object.assign({},i)}).call(this)}).call(this,e("_process"))},{"./package.json":37,_process:35}],2:[function(e,t,n){(function(e,o,i){(function(){!function(e,o){o("object"==typeof n&&void 0!==t?n:e.async=e.async||{})}(this,function(n){"use strict";function a(e,t){t|=0;for(var n=Math.max(e.length-t,0),o=Array(n),i=0;i<n;i++)o[i]=e[t+i];return o}var r=function(e){var t=a(arguments,1);return function(){var n=a(arguments);return e.apply(null,t.concat(n))}},s=function(e){return function(){var t=a(arguments),n=t.pop();e.call(this,t,n)}};function l(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var p="function"==typeof i&&i,u="object"==typeof e&&"function"==typeof e.nextTick;function c(e){setTimeout(e,0)}function d(e){return function(t){var n=a(arguments,1);e(function(){t.apply(null,n)})}}var f=d(p?i:u?e.nextTick:c);function m(e){return s(function(t,n){var o;try{o=e.apply(this,t)}catch(e){return n(e)}l(o)&&"function"==typeof o.then?o.then(function(e){y(n,null,e)},function(e){y(n,e.message?e:new Error(e))}):n(null,o)})}function y(e,t,n){try{e(t,n)}catch(e){f(h,e)}}function h(e){throw e}var v="function"==typeof Symbol;function b(e){return v&&"AsyncFunction"===e[Symbol.toStringTag]}function g(e){return b(e)?m(e):e}function k(e){return function(t){var n=a(arguments,1),o=s(function(n,o){var i=this;return e(t,function(e,t){g(e).apply(i,n.concat(t))},o)});return n.length?o.apply(this,n):o}}var w="object"==typeof o&&o&&o.Object===Object&&o,_="object"==typeof self&&self&&self.Object===Object&&self,T=w||_||Function("return this")(),A=T.Symbol,j=Object.prototype,E=j.hasOwnProperty,S=j.toString,x=A?A.toStringTag:void 0;var O=Object.prototype.toString;var C="[object Null]",L="[object Undefined]",P=A?A.toStringTag:void 0;function z(e){return null==e?void 0===e?L:C:P&&P in Object(e)?function(e){var t=E.call(e,x),n=e[x];try{e[x]=void 0;var o=!0}catch(e){}var i=S.call(e);return o&&(t?e[x]=n:delete e[x]),i}(e):function(e){return O.call(e)}(e)}var B="[object AsyncFunction]",D="[object Function]",F="[object GeneratorFunction]",R="[object Proxy]";var I=9007199254740991;function U(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function N(e){return null!=e&&U(e.length)&&!function(e){if(!l(e))return!1;var t=z(e);return t==D||t==F||t==B||t==R}(e)}var M={};function q(){}function G(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var H="function"==typeof Symbol&&Symbol.iterator,W=function(e){return H&&e[H]&&e[H]()};function V(e){return null!=e&&"object"==typeof e}var K="[object Arguments]";function $(e){return V(e)&&z(e)==K}var Q=Object.prototype,X=Q.hasOwnProperty,J=Q.propertyIsEnumerable,Y=$(function(){return arguments}())?$:function(e){return V(e)&&X.call(e,"callee")&&!J.call(e,"callee")},Z=Array.isArray;var ee="object"==typeof n&&n&&!n.nodeType&&n,te=ee&&"object"==typeof t&&t&&!t.nodeType&&t,ne=te&&te.export
|