You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2652 lines
77 KiB

3 years ago
  1. /******/ (function(modules) { // webpackBootstrap
  2. /******/ // The module cache
  3. /******/ var installedModules = {};
  4. /******/
  5. /******/ // The require function
  6. /******/ function __webpack_require__(moduleId) {
  7. /******/
  8. /******/ // Check if module is in cache
  9. /******/ if(installedModules[moduleId]) {
  10. /******/ return installedModules[moduleId].exports;
  11. /******/ }
  12. /******/ // Create a new module (and put it into the cache)
  13. /******/ var module = installedModules[moduleId] = {
  14. /******/ i: moduleId,
  15. /******/ l: false,
  16. /******/ exports: {}
  17. /******/ };
  18. /******/
  19. /******/ // Execute the module function
  20. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  21. /******/
  22. /******/ // Flag the module as loaded
  23. /******/ module.l = true;
  24. /******/
  25. /******/ // Return the exports of the module
  26. /******/ return module.exports;
  27. /******/ }
  28. /******/
  29. /******/
  30. /******/ // expose the modules object (__webpack_modules__)
  31. /******/ __webpack_require__.m = modules;
  32. /******/
  33. /******/ // expose the module cache
  34. /******/ __webpack_require__.c = installedModules;
  35. /******/
  36. /******/ // define getter function for harmony exports
  37. /******/ __webpack_require__.d = function(exports, name, getter) {
  38. /******/ if(!__webpack_require__.o(exports, name)) {
  39. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  40. /******/ }
  41. /******/ };
  42. /******/
  43. /******/ // define __esModule on exports
  44. /******/ __webpack_require__.r = function(exports) {
  45. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  46. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  47. /******/ }
  48. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  49. /******/ };
  50. /******/
  51. /******/ // create a fake namespace object
  52. /******/ // mode & 1: value is a module id, require it
  53. /******/ // mode & 2: merge all properties of value into the ns
  54. /******/ // mode & 4: return value when already ns object
  55. /******/ // mode & 8|1: behave like require
  56. /******/ __webpack_require__.t = function(value, mode) {
  57. /******/ if(mode & 1) value = __webpack_require__(value);
  58. /******/ if(mode & 8) return value;
  59. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  60. /******/ var ns = Object.create(null);
  61. /******/ __webpack_require__.r(ns);
  62. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  63. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  64. /******/ return ns;
  65. /******/ };
  66. /******/
  67. /******/ // getDefaultExport function for compatibility with non-harmony modules
  68. /******/ __webpack_require__.n = function(module) {
  69. /******/ var getter = module && module.__esModule ?
  70. /******/ function getDefault() { return module['default']; } :
  71. /******/ function getModuleExports() { return module; };
  72. /******/ __webpack_require__.d(getter, 'a', getter);
  73. /******/ return getter;
  74. /******/ };
  75. /******/
  76. /******/ // Object.prototype.hasOwnProperty.call
  77. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  78. /******/
  79. /******/ // __webpack_public_path__
  80. /******/ __webpack_require__.p = "/";
  81. /******/
  82. /******/
  83. /******/ // Load entry module and return exports
  84. /******/ return __webpack_require__(__webpack_require__.s = 3);
  85. /******/ })
  86. /************************************************************************/
  87. /******/ ({
  88. /***/ "./node_modules/axios/index.js":
  89. /*!*************************************!*\
  90. !*** ./node_modules/axios/index.js ***!
  91. \*************************************/
  92. /*! no static exports found */
  93. /***/ (function(module, exports, __webpack_require__) {
  94. module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js");
  95. /***/ }),
  96. /***/ "./node_modules/axios/lib/adapters/xhr.js":
  97. /*!************************************************!*\
  98. !*** ./node_modules/axios/lib/adapters/xhr.js ***!
  99. \************************************************/
  100. /*! no static exports found */
  101. /***/ (function(module, exports, __webpack_require__) {
  102. "use strict";
  103. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  104. var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
  105. var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
  106. var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
  107. var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
  108. var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
  109. var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
  110. var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
  111. module.exports = function xhrAdapter(config) {
  112. return new Promise(function dispatchXhrRequest(resolve, reject) {
  113. var requestData = config.data;
  114. var requestHeaders = config.headers;
  115. if (utils.isFormData(requestData)) {
  116. delete requestHeaders['Content-Type']; // Let the browser set it
  117. }
  118. var request = new XMLHttpRequest();
  119. // HTTP basic authentication
  120. if (config.auth) {
  121. var username = config.auth.username || '';
  122. var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
  123. requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
  124. }
  125. var fullPath = buildFullPath(config.baseURL, config.url);
  126. request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
  127. // Set the request timeout in MS
  128. request.timeout = config.timeout;
  129. // Listen for ready state
  130. request.onreadystatechange = function handleLoad() {
  131. if (!request || request.readyState !== 4) {
  132. return;
  133. }
  134. // The request errored out and we didn't get a response, this will be
  135. // handled by onerror instead
  136. // With one exception: request that using file: protocol, most browsers
  137. // will return status as 0 even though it's a successful request
  138. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
  139. return;
  140. }
  141. // Prepare the response
  142. var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
  143. var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
  144. var response = {
  145. data: responseData,
  146. status: request.status,
  147. statusText: request.statusText,
  148. headers: responseHeaders,
  149. config: config,
  150. request: request
  151. };
  152. settle(resolve, reject, response);
  153. // Clean up request
  154. request = null;
  155. };
  156. // Handle browser request cancellation (as opposed to a manual cancellation)
  157. request.onabort = function handleAbort() {
  158. if (!request) {
  159. return;
  160. }
  161. reject(createError('Request aborted', config, 'ECONNABORTED', request));
  162. // Clean up request
  163. request = null;
  164. };
  165. // Handle low level network errors
  166. request.onerror = function handleError() {
  167. // Real errors are hidden from us by the browser
  168. // onerror should only fire if it's a network error
  169. reject(createError('Network Error', config, null, request));
  170. // Clean up request
  171. request = null;
  172. };
  173. // Handle timeout
  174. request.ontimeout = function handleTimeout() {
  175. var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
  176. if (config.timeoutErrorMessage) {
  177. timeoutErrorMessage = config.timeoutErrorMessage;
  178. }
  179. reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
  180. request));
  181. // Clean up request
  182. request = null;
  183. };
  184. // Add xsrf header
  185. // This is only done if running in a standard browser environment.
  186. // Specifically not if we're in a web worker, or react-native.
  187. if (utils.isStandardBrowserEnv()) {
  188. // Add xsrf header
  189. var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
  190. cookies.read(config.xsrfCookieName) :
  191. undefined;
  192. if (xsrfValue) {
  193. requestHeaders[config.xsrfHeaderName] = xsrfValue;
  194. }
  195. }
  196. // Add headers to the request
  197. if ('setRequestHeader' in request) {
  198. utils.forEach(requestHeaders, function setRequestHeader(val, key) {
  199. if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
  200. // Remove Content-Type if data is undefined
  201. delete requestHeaders[key];
  202. } else {
  203. // Otherwise add header to the request
  204. request.setRequestHeader(key, val);
  205. }
  206. });
  207. }
  208. // Add withCredentials to request if needed
  209. if (!utils.isUndefined(config.withCredentials)) {
  210. request.withCredentials = !!config.withCredentials;
  211. }
  212. // Add responseType to request if needed
  213. if (config.responseType) {
  214. try {
  215. request.responseType = config.responseType;
  216. } catch (e) {
  217. // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
  218. // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
  219. if (config.responseType !== 'json') {
  220. throw e;
  221. }
  222. }
  223. }
  224. // Handle progress if needed
  225. if (typeof config.onDownloadProgress === 'function') {
  226. request.addEventListener('progress', config.onDownloadProgress);
  227. }
  228. // Not all browsers support upload events
  229. if (typeof config.onUploadProgress === 'function' && request.upload) {
  230. request.upload.addEventListener('progress', config.onUploadProgress);
  231. }
  232. if (config.cancelToken) {
  233. // Handle cancellation
  234. config.cancelToken.promise.then(function onCanceled(cancel) {
  235. if (!request) {
  236. return;
  237. }
  238. request.abort();
  239. reject(cancel);
  240. // Clean up request
  241. request = null;
  242. });
  243. }
  244. if (!requestData) {
  245. requestData = null;
  246. }
  247. // Send the request
  248. request.send(requestData);
  249. });
  250. };
  251. /***/ }),
  252. /***/ "./node_modules/axios/lib/axios.js":
  253. /*!*****************************************!*\
  254. !*** ./node_modules/axios/lib/axios.js ***!
  255. \*****************************************/
  256. /*! no static exports found */
  257. /***/ (function(module, exports, __webpack_require__) {
  258. "use strict";
  259. var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
  260. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
  261. var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
  262. var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
  263. var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
  264. /**
  265. * Create an instance of Axios
  266. *
  267. * @param {Object} defaultConfig The default config for the instance
  268. * @return {Axios} A new instance of Axios
  269. */
  270. function createInstance(defaultConfig) {
  271. var context = new Axios(defaultConfig);
  272. var instance = bind(Axios.prototype.request, context);
  273. // Copy axios.prototype to instance
  274. utils.extend(instance, Axios.prototype, context);
  275. // Copy context to instance
  276. utils.extend(instance, context);
  277. return instance;
  278. }
  279. // Create the default instance to be exported
  280. var axios = createInstance(defaults);
  281. // Expose Axios class to allow class inheritance
  282. axios.Axios = Axios;
  283. // Factory for creating new instances
  284. axios.create = function create(instanceConfig) {
  285. return createInstance(mergeConfig(axios.defaults, instanceConfig));
  286. };
  287. // Expose Cancel & CancelToken
  288. axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
  289. axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js");
  290. axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
  291. // Expose all/spread
  292. axios.all = function all(promises) {
  293. return Promise.all(promises);
  294. };
  295. axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
  296. // Expose isAxiosError
  297. axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js");
  298. module.exports = axios;
  299. // Allow use of default import syntax in TypeScript
  300. module.exports.default = axios;
  301. /***/ }),
  302. /***/ "./node_modules/axios/lib/cancel/Cancel.js":
  303. /*!*************************************************!*\
  304. !*** ./node_modules/axios/lib/cancel/Cancel.js ***!
  305. \*************************************************/
  306. /*! no static exports found */
  307. /***/ (function(module, exports, __webpack_require__) {
  308. "use strict";
  309. /**
  310. * A `Cancel` is an object that is thrown when an operation is canceled.
  311. *
  312. * @class
  313. * @param {string=} message The message.
  314. */
  315. function Cancel(message) {
  316. this.message = message;
  317. }
  318. Cancel.prototype.toString = function toString() {
  319. return 'Cancel' + (this.message ? ': ' + this.message : '');
  320. };
  321. Cancel.prototype.__CANCEL__ = true;
  322. module.exports = Cancel;
  323. /***/ }),
  324. /***/ "./node_modules/axios/lib/cancel/CancelToken.js":
  325. /*!******************************************************!*\
  326. !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
  327. \******************************************************/
  328. /*! no static exports found */
  329. /***/ (function(module, exports, __webpack_require__) {
  330. "use strict";
  331. var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
  332. /**
  333. * A `CancelToken` is an object that can be used to request cancellation of an operation.
  334. *
  335. * @class
  336. * @param {Function} executor The executor function.
  337. */
  338. function CancelToken(executor) {
  339. if (typeof executor !== 'function') {
  340. throw new TypeError('executor must be a function.');
  341. }
  342. var resolvePromise;
  343. this.promise = new Promise(function promiseExecutor(resolve) {
  344. resolvePromise = resolve;
  345. });
  346. var token = this;
  347. executor(function cancel(message) {
  348. if (token.reason) {
  349. // Cancellation has already been requested
  350. return;
  351. }
  352. token.reason = new Cancel(message);
  353. resolvePromise(token.reason);
  354. });
  355. }
  356. /**
  357. * Throws a `Cancel` if cancellation has been requested.
  358. */
  359. CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  360. if (this.reason) {
  361. throw this.reason;
  362. }
  363. };
  364. /**
  365. * Returns an object that contains a new `CancelToken` and a function that, when called,
  366. * cancels the `CancelToken`.
  367. */
  368. CancelToken.source = function source() {
  369. var cancel;
  370. var token = new CancelToken(function executor(c) {
  371. cancel = c;
  372. });
  373. return {
  374. token: token,
  375. cancel: cancel
  376. };
  377. };
  378. module.exports = CancelToken;
  379. /***/ }),
  380. /***/ "./node_modules/axios/lib/cancel/isCancel.js":
  381. /*!***************************************************!*\
  382. !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
  383. \***************************************************/
  384. /*! no static exports found */
  385. /***/ (function(module, exports, __webpack_require__) {
  386. "use strict";
  387. module.exports = function isCancel(value) {
  388. return !!(value && value.__CANCEL__);
  389. };
  390. /***/ }),
  391. /***/ "./node_modules/axios/lib/core/Axios.js":
  392. /*!**********************************************!*\
  393. !*** ./node_modules/axios/lib/core/Axios.js ***!
  394. \**********************************************/
  395. /*! no static exports found */
  396. /***/ (function(module, exports, __webpack_require__) {
  397. "use strict";
  398. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  399. var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
  400. var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
  401. var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
  402. var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
  403. /**
  404. * Create a new instance of Axios
  405. *
  406. * @param {Object} instanceConfig The default config for the instance
  407. */
  408. function Axios(instanceConfig) {
  409. this.defaults = instanceConfig;
  410. this.interceptors = {
  411. request: new InterceptorManager(),
  412. response: new InterceptorManager()
  413. };
  414. }
  415. /**
  416. * Dispatch a request
  417. *
  418. * @param {Object} config The config specific for this request (merged with this.defaults)
  419. */
  420. Axios.prototype.request = function request(config) {
  421. /*eslint no-param-reassign:0*/
  422. // Allow for axios('example/url'[, config]) a la fetch API
  423. if (typeof config === 'string') {
  424. config = arguments[1] || {};
  425. config.url = arguments[0];
  426. } else {
  427. config = config || {};
  428. }
  429. config = mergeConfig(this.defaults, config);
  430. // Set config.method
  431. if (config.method) {
  432. config.method = config.method.toLowerCase();
  433. } else if (this.defaults.method) {
  434. config.method = this.defaults.method.toLowerCase();
  435. } else {
  436. config.method = 'get';
  437. }
  438. // Hook up interceptors middleware
  439. var chain = [dispatchRequest, undefined];
  440. var promise = Promise.resolve(config);
  441. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  442. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  443. });
  444. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  445. chain.push(interceptor.fulfilled, interceptor.rejected);
  446. });
  447. while (chain.length) {
  448. promise = promise.then(chain.shift(), chain.shift());
  449. }
  450. return promise;
  451. };
  452. Axios.prototype.getUri = function getUri(config) {
  453. config = mergeConfig(this.defaults, config);
  454. return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
  455. };
  456. // Provide aliases for supported request methods
  457. utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  458. /*eslint func-names:0*/
  459. Axios.prototype[method] = function(url, config) {
  460. return this.request(mergeConfig(config || {}, {
  461. method: method,
  462. url: url,
  463. data: (config || {}).data
  464. }));
  465. };
  466. });
  467. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  468. /*eslint func-names:0*/
  469. Axios.prototype[method] = function(url, data, config) {
  470. return this.request(mergeConfig(config || {}, {
  471. method: method,
  472. url: url,
  473. data: data
  474. }));
  475. };
  476. });
  477. module.exports = Axios;
  478. /***/ }),
  479. /***/ "./node_modules/axios/lib/core/InterceptorManager.js":
  480. /*!***********************************************************!*\
  481. !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
  482. \***********************************************************/
  483. /*! no static exports found */
  484. /***/ (function(module, exports, __webpack_require__) {
  485. "use strict";
  486. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  487. function InterceptorManager() {
  488. this.handlers = [];
  489. }
  490. /**
  491. * Add a new interceptor to the stack
  492. *
  493. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  494. * @param {Function} rejected The function to handle `reject` for a `Promise`
  495. *
  496. * @return {Number} An ID used to remove interceptor later
  497. */
  498. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  499. this.handlers.push({
  500. fulfilled: fulfilled,
  501. rejected: rejected
  502. });
  503. return this.handlers.length - 1;
  504. };
  505. /**
  506. * Remove an interceptor from the stack
  507. *
  508. * @param {Number} id The ID that was returned by `use`
  509. */
  510. InterceptorManager.prototype.eject = function eject(id) {
  511. if (this.handlers[id]) {
  512. this.handlers[id] = null;
  513. }
  514. };
  515. /**
  516. * Iterate over all the registered interceptors
  517. *
  518. * This method is particularly useful for skipping over any
  519. * interceptors that may have become `null` calling `eject`.
  520. *
  521. * @param {Function} fn The function to call for each interceptor
  522. */
  523. InterceptorManager.prototype.forEach = function forEach(fn) {
  524. utils.forEach(this.handlers, function forEachHandler(h) {
  525. if (h !== null) {
  526. fn(h);
  527. }
  528. });
  529. };
  530. module.exports = InterceptorManager;
  531. /***/ }),
  532. /***/ "./node_modules/axios/lib/core/buildFullPath.js":
  533. /*!******************************************************!*\
  534. !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
  535. \******************************************************/
  536. /*! no static exports found */
  537. /***/ (function(module, exports, __webpack_require__) {
  538. "use strict";
  539. var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
  540. var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
  541. /**
  542. * Creates a new URL by combining the baseURL with the requestedURL,
  543. * only when the requestedURL is not already an absolute URL.
  544. * If the requestURL is absolute, this function returns the requestedURL untouched.
  545. *
  546. * @param {string} baseURL The base URL
  547. * @param {string} requestedURL Absolute or relative URL to combine
  548. * @returns {string} The combined full path
  549. */
  550. module.exports = function buildFullPath(baseURL, requestedURL) {
  551. if (baseURL && !isAbsoluteURL(requestedURL)) {
  552. return combineURLs(baseURL, requestedURL);
  553. }
  554. return requestedURL;
  555. };
  556. /***/ }),
  557. /***/ "./node_modules/axios/lib/core/createError.js":
  558. /*!****************************************************!*\
  559. !*** ./node_modules/axios/lib/core/createError.js ***!
  560. \****************************************************/
  561. /*! no static exports found */
  562. /***/ (function(module, exports, __webpack_require__) {
  563. "use strict";
  564. var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
  565. /**
  566. * Create an Error with the specified message, config, error code, request and response.
  567. *
  568. * @param {string} message The error message.
  569. * @param {Object} config The config.
  570. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  571. * @param {Object} [request] The request.
  572. * @param {Object} [response] The response.
  573. * @returns {Error} The created error.
  574. */
  575. module.exports = function createError(message, config, code, request, response) {
  576. var error = new Error(message);
  577. return enhanceError(error, config, code, request, response);
  578. };
  579. /***/ }),
  580. /***/ "./node_modules/axios/lib/core/dispatchRequest.js":
  581. /*!********************************************************!*\
  582. !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
  583. \********************************************************/
  584. /*! no static exports found */
  585. /***/ (function(module, exports, __webpack_require__) {
  586. "use strict";
  587. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  588. var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
  589. var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
  590. var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
  591. /**
  592. * Throws a `Cancel` if cancellation has been requested.
  593. */
  594. function throwIfCancellationRequested(config) {
  595. if (config.cancelToken) {
  596. config.cancelToken.throwIfRequested();
  597. }
  598. }
  599. /**
  600. * Dispatch a request to the server using the configured adapter.
  601. *
  602. * @param {object} config The config that is to be used for the request
  603. * @returns {Promise} The Promise to be fulfilled
  604. */
  605. module.exports = function dispatchRequest(config) {
  606. throwIfCancellationRequested(config);
  607. // Ensure headers exist
  608. config.headers = config.headers || {};
  609. // Transform request data
  610. config.data = transformData(
  611. config.data,
  612. config.headers,
  613. config.transformRequest
  614. );
  615. // Flatten headers
  616. config.headers = utils.merge(
  617. config.headers.common || {},
  618. config.headers[config.method] || {},
  619. config.headers
  620. );
  621. utils.forEach(
  622. ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
  623. function cleanHeaderConfig(method) {
  624. delete config.headers[method];
  625. }
  626. );
  627. var adapter = config.adapter || defaults.adapter;
  628. return adapter(config).then(function onAdapterResolution(response) {
  629. throwIfCancellationRequested(config);
  630. // Transform response data
  631. response.data = transformData(
  632. response.data,
  633. response.headers,
  634. config.transformResponse
  635. );
  636. return response;
  637. }, function onAdapterRejection(reason) {
  638. if (!isCancel(reason)) {
  639. throwIfCancellationRequested(config);
  640. // Transform response data
  641. if (reason && reason.response) {
  642. reason.response.data = transformData(
  643. reason.response.data,
  644. reason.response.headers,
  645. config.transformResponse
  646. );
  647. }
  648. }
  649. return Promise.reject(reason);
  650. });
  651. };
  652. /***/ }),
  653. /***/ "./node_modules/axios/lib/core/enhanceError.js":
  654. /*!*****************************************************!*\
  655. !*** ./node_modules/axios/lib/core/enhanceError.js ***!
  656. \*****************************************************/
  657. /*! no static exports found */
  658. /***/ (function(module, exports, __webpack_require__) {
  659. "use strict";
  660. /**
  661. * Update an Error with the specified config, error code, and response.
  662. *
  663. * @param {Error} error The error to update.
  664. * @param {Object} config The config.
  665. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  666. * @param {Object} [request] The request.
  667. * @param {Object} [response] The response.
  668. * @returns {Error} The error.
  669. */
  670. module.exports = function enhanceError(error, config, code, request, response) {
  671. error.config = config;
  672. if (code) {
  673. error.code = code;
  674. }
  675. error.request = request;
  676. error.response = response;
  677. error.isAxiosError = true;
  678. error.toJSON = function toJSON() {
  679. return {
  680. // Standard
  681. message: this.message,
  682. name: this.name,
  683. // Microsoft
  684. description: this.description,
  685. number: this.number,
  686. // Mozilla
  687. fileName: this.fileName,
  688. lineNumber: this.lineNumber,
  689. columnNumber: this.columnNumber,
  690. stack: this.stack,
  691. // Axios
  692. config: this.config,
  693. code: this.code
  694. };
  695. };
  696. return error;
  697. };
  698. /***/ }),
  699. /***/ "./node_modules/axios/lib/core/mergeConfig.js":
  700. /*!****************************************************!*\
  701. !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
  702. \****************************************************/
  703. /*! no static exports found */
  704. /***/ (function(module, exports, __webpack_require__) {
  705. "use strict";
  706. var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
  707. /**
  708. * Config-specific merge-function which creates a new config-object
  709. * by merging two configuration objects together.
  710. *
  711. * @param {Object} config1
  712. * @param {Object} config2
  713. * @returns {Object} New object resulting from merging config2 to config1
  714. */
  715. module.exports = function mergeConfig(config1, config2) {
  716. // eslint-disable-next-line no-param-reassign
  717. config2 = config2 || {};
  718. var config = {};
  719. var valueFromConfig2Keys = ['url', 'method', 'data'];
  720. var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
  721. var defaultToConfig2Keys = [
  722. 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
  723. 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
  724. 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
  725. 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
  726. 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
  727. ];
  728. var directMergeKeys = ['validateStatus'];
  729. function getMergedValue(target, source) {
  730. if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
  731. return utils.merge(target, source);
  732. } else if (utils.isPlainObject(source)) {
  733. return utils.merge({}, source);
  734. } else if (utils.isArray(source)) {
  735. return source.slice();
  736. }
  737. return source;
  738. }
  739. function mergeDeepProperties(prop) {
  740. if (!utils.isUndefined(config2[prop])) {
  741. config[prop] = getMergedValue(config1[prop], config2[prop]);
  742. } else if (!utils.isUndefined(config1[prop])) {
  743. config[prop] = getMergedValue(undefined, config1[prop]);
  744. }
  745. }
  746. utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
  747. if (!utils.isUndefined(config2[prop])) {
  748. config[prop] = getMergedValue(undefined, config2[prop]);
  749. }
  750. });
  751. utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
  752. utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
  753. if (!utils.isUndefined(config2[prop])) {
  754. config[prop] = getMergedValue(undefined, config2[prop]);
  755. } else if (!utils.isUndefined(config1[prop])) {
  756. config[prop] = getMergedValue(undefined, config1[prop]);
  757. }
  758. });
  759. utils.forEach(directMergeKeys, function merge(prop) {
  760. if (prop in config2) {
  761. config[prop] = getMergedValue(config1[prop], config2[prop]);
  762. } else if (prop in config1) {
  763. config[prop] = getMergedValue(undefined, config1[prop]);
  764. }
  765. });
  766. var axiosKeys = valueFromConfig2Keys
  767. .concat(mergeDeepPropertiesKeys)
  768. .concat(defaultToConfig2Keys)
  769. .concat(directMergeKeys);
  770. var otherKeys = Object
  771. .keys(config1)
  772. .concat(Object.keys(config2))
  773. .filter(function filterAxiosKeys(key) {
  774. return axiosKeys.indexOf(key) === -1;
  775. });
  776. utils.forEach(otherKeys, mergeDeepProperties);
  777. return config;
  778. };
  779. /***/ }),
  780. /***/ "./node_modules/axios/lib/core/settle.js":
  781. /*!***********************************************!*\
  782. !*** ./node_modules/axios/lib/core/settle.js ***!
  783. \***********************************************/
  784. /*! no static exports found */
  785. /***/ (function(module, exports, __webpack_require__) {
  786. "use strict";
  787. var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js");
  788. /**
  789. * Resolve or reject a Promise based on response status.
  790. *
  791. * @param {Function} resolve A function that resolves the promise.
  792. * @param {Function} reject A function that rejects the promise.
  793. * @param {object} response The response.
  794. */
  795. module.exports = function settle(resolve, reject, response) {
  796. var validateStatus = response.config.validateStatus;
  797. if (!response.status || !validateStatus || validateStatus(response.status)) {
  798. resolve(response);
  799. } else {
  800. reject(createError(
  801. 'Request failed with status code ' + response.status,
  802. response.config,
  803. null,
  804. response.request,
  805. response
  806. ));
  807. }
  808. };
  809. /***/ }),
  810. /***/ "./node_modules/axios/lib/core/transformData.js":
  811. /*!******************************************************!*\
  812. !*** ./node_modules/axios/lib/core/transformData.js ***!
  813. \******************************************************/
  814. /*! no static exports found */
  815. /***/ (function(module, exports, __webpack_require__) {
  816. "use strict";
  817. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  818. /**
  819. * Transform the data for a request or a response
  820. *
  821. * @param {Object|String} data The data to be transformed
  822. * @param {Array} headers The headers for the request or response
  823. * @param {Array|Function} fns A single function or Array of functions
  824. * @returns {*} The resulting transformed data
  825. */
  826. module.exports = function transformData(data, headers, fns) {
  827. /*eslint no-param-reassign:0*/
  828. utils.forEach(fns, function transform(fn) {
  829. data = fn(data, headers);
  830. });
  831. return data;
  832. };
  833. /***/ }),
  834. /***/ "./node_modules/axios/lib/defaults.js":
  835. /*!********************************************!*\
  836. !*** ./node_modules/axios/lib/defaults.js ***!
  837. \********************************************/
  838. /*! no static exports found */
  839. /***/ (function(module, exports, __webpack_require__) {
  840. "use strict";
  841. /* WEBPACK VAR INJECTION */(function(process) {
  842. var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
  843. var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
  844. var DEFAULT_CONTENT_TYPE = {
  845. 'Content-Type': 'application/x-www-form-urlencoded'
  846. };
  847. function setContentTypeIfUnset(headers, value) {
  848. if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
  849. headers['Content-Type'] = value;
  850. }
  851. }
  852. function getDefaultAdapter() {
  853. var adapter;
  854. if (typeof XMLHttpRequest !== 'undefined') {
  855. // For browsers use XHR adapter
  856. adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
  857. } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
  858. // For node use HTTP adapter
  859. adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
  860. }
  861. return adapter;
  862. }
  863. var defaults = {
  864. adapter: getDefaultAdapter(),
  865. transformRequest: [function transformRequest(data, headers) {
  866. normalizeHeaderName(headers, 'Accept');
  867. normalizeHeaderName(headers, 'Content-Type');
  868. if (utils.isFormData(data) ||
  869. utils.isArrayBuffer(data) ||
  870. utils.isBuffer(data) ||
  871. utils.isStream(data) ||
  872. utils.isFile(data) ||
  873. utils.isBlob(data)
  874. ) {
  875. return data;
  876. }
  877. if (utils.isArrayBufferView(data)) {
  878. return data.buffer;
  879. }
  880. if (utils.isURLSearchParams(data)) {
  881. setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
  882. return data.toString();
  883. }
  884. if (utils.isObject(data)) {
  885. setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
  886. return JSON.stringify(data);
  887. }
  888. return data;
  889. }],
  890. transformResponse: [function transformResponse(data) {
  891. /*eslint no-param-reassign:0*/
  892. if (typeof data === 'string') {
  893. try {
  894. data = JSON.parse(data);
  895. } catch (e) { /* Ignore */ }
  896. }
  897. return data;
  898. }],
  899. /**
  900. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  901. * timeout is not created.
  902. */
  903. timeout: 0,
  904. xsrfCookieName: 'XSRF-TOKEN',
  905. xsrfHeaderName: 'X-XSRF-TOKEN',
  906. maxContentLength: -1,
  907. maxBodyLength: -1,
  908. validateStatus: function validateStatus(status) {
  909. return status >= 200 && status < 300;
  910. }
  911. };
  912. defaults.headers = {
  913. common: {
  914. 'Accept': 'application/json, text/plain, */*'
  915. }
  916. };
  917. utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  918. defaults.headers[method] = {};
  919. });
  920. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  921. defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  922. });
  923. module.exports = defaults;
  924. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
  925. /***/ }),
  926. /***/ "./node_modules/axios/lib/helpers/bind.js":
  927. /*!************************************************!*\
  928. !*** ./node_modules/axios/lib/helpers/bind.js ***!
  929. \************************************************/
  930. /*! no static exports found */
  931. /***/ (function(module, exports, __webpack_require__) {
  932. "use strict";
  933. module.exports = function bind(fn, thisArg) {
  934. return function wrap() {
  935. var args = new Array(arguments.length);
  936. for (var i = 0; i < args.length; i++) {
  937. args[i] = arguments[i];
  938. }
  939. return fn.apply(thisArg, args);
  940. };
  941. };
  942. /***/ }),
  943. /***/ "./node_modules/axios/lib/helpers/buildURL.js":
  944. /*!****************************************************!*\
  945. !*** ./node_modules/axios/lib/helpers/buildURL.js ***!
  946. \****************************************************/
  947. /*! no static exports found */
  948. /***/ (function(module, exports, __webpack_require__) {
  949. "use strict";
  950. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  951. function encode(val) {
  952. return encodeURIComponent(val).
  953. replace(/%3A/gi, ':').
  954. replace(/%24/g, '$').
  955. replace(/%2C/gi, ',').
  956. replace(/%20/g, '+').
  957. replace(/%5B/gi, '[').
  958. replace(/%5D/gi, ']');
  959. }
  960. /**
  961. * Build a URL by appending params to the end
  962. *
  963. * @param {string} url The base of the url (e.g., http://www.google.com)
  964. * @param {object} [params] The params to be appended
  965. * @returns {string} The formatted url
  966. */
  967. module.exports = function buildURL(url, params, paramsSerializer) {
  968. /*eslint no-param-reassign:0*/
  969. if (!params) {
  970. return url;
  971. }
  972. var serializedParams;
  973. if (paramsSerializer) {
  974. serializedParams = paramsSerializer(params);
  975. } else if (utils.isURLSearchParams(params)) {
  976. serializedParams = params.toString();
  977. } else {
  978. var parts = [];
  979. utils.forEach(params, function serialize(val, key) {
  980. if (val === null || typeof val === 'undefined') {
  981. return;
  982. }
  983. if (utils.isArray(val)) {
  984. key = key + '[]';
  985. } else {
  986. val = [val];
  987. }
  988. utils.forEach(val, function parseValue(v) {
  989. if (utils.isDate(v)) {
  990. v = v.toISOString();
  991. } else if (utils.isObject(v)) {
  992. v = JSON.stringify(v);
  993. }
  994. parts.push(encode(key) + '=' + encode(v));
  995. });
  996. });
  997. serializedParams = parts.join('&');
  998. }
  999. if (serializedParams) {
  1000. var hashmarkIndex = url.indexOf('#');
  1001. if (hashmarkIndex !== -1) {
  1002. url = url.slice(0, hashmarkIndex);
  1003. }
  1004. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  1005. }
  1006. return url;
  1007. };
  1008. /***/ }),
  1009. /***/ "./node_modules/axios/lib/helpers/combineURLs.js":
  1010. /*!*******************************************************!*\
  1011. !*** ./node_modules/axios/lib/helpers/combineURLs.js ***!
  1012. \*******************************************************/
  1013. /*! no static exports found */
  1014. /***/ (function(module, exports, __webpack_require__) {
  1015. "use strict";
  1016. /**
  1017. * Creates a new URL by combining the specified URLs
  1018. *
  1019. * @param {string} baseURL The base URL
  1020. * @param {string} relativeURL The relative URL
  1021. * @returns {string} The combined URL
  1022. */
  1023. module.exports = function combineURLs(baseURL, relativeURL) {
  1024. return relativeURL
  1025. ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
  1026. : baseURL;
  1027. };
  1028. /***/ }),
  1029. /***/ "./node_modules/axios/lib/helpers/cookies.js":
  1030. /*!***************************************************!*\
  1031. !*** ./node_modules/axios/lib/helpers/cookies.js ***!
  1032. \***************************************************/
  1033. /*! no static exports found */
  1034. /***/ (function(module, exports, __webpack_require__) {
  1035. "use strict";
  1036. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  1037. module.exports = (
  1038. utils.isStandardBrowserEnv() ?
  1039. // Standard browser envs support document.cookie
  1040. (function standardBrowserEnv() {
  1041. return {
  1042. write: function write(name, value, expires, path, domain, secure) {
  1043. var cookie = [];
  1044. cookie.push(name + '=' + encodeURIComponent(value));
  1045. if (utils.isNumber(expires)) {
  1046. cookie.push('expires=' + new Date(expires).toGMTString());
  1047. }
  1048. if (utils.isString(path)) {
  1049. cookie.push('path=' + path);
  1050. }
  1051. if (utils.isString(domain)) {
  1052. cookie.push('domain=' + domain);
  1053. }
  1054. if (secure === true) {
  1055. cookie.push('secure');
  1056. }
  1057. document.cookie = cookie.join('; ');
  1058. },
  1059. read: function read(name) {
  1060. var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
  1061. return (match ? decodeURIComponent(match[3]) : null);
  1062. },
  1063. remove: function remove(name) {
  1064. this.write(name, '', Date.now() - 86400000);
  1065. }
  1066. };
  1067. })() :
  1068. // Non standard browser env (web workers, react-native) lack needed support.
  1069. (function nonStandardBrowserEnv() {
  1070. return {
  1071. write: function write() {},
  1072. read: function read() { return null; },
  1073. remove: function remove() {}
  1074. };
  1075. })()
  1076. );
  1077. /***/ }),
  1078. /***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
  1079. /*!*********************************************************!*\
  1080. !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
  1081. \*********************************************************/
  1082. /*! no static exports found */
  1083. /***/ (function(module, exports, __webpack_require__) {
  1084. "use strict";
  1085. /**
  1086. * Determines whether the specified URL is absolute
  1087. *
  1088. * @param {string} url The URL to test
  1089. * @returns {boolean} True if the specified URL is absolute, otherwise false
  1090. */
  1091. module.exports = function isAbsoluteURL(url) {
  1092. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  1093. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  1094. // by any combination of letters, digits, plus, period, or hyphen.
  1095. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
  1096. };
  1097. /***/ }),
  1098. /***/ "./node_modules/axios/lib/helpers/isAxiosError.js":
  1099. /*!********************************************************!*\
  1100. !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***!
  1101. \********************************************************/
  1102. /*! no static exports found */
  1103. /***/ (function(module, exports, __webpack_require__) {
  1104. "use strict";
  1105. /**
  1106. * Determines whether the payload is an error thrown by Axios
  1107. *
  1108. * @param {*} payload The value to test
  1109. * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
  1110. */
  1111. module.exports = function isAxiosError(payload) {
  1112. return (typeof payload === 'object') && (payload.isAxiosError === true);
  1113. };
  1114. /***/ }),
  1115. /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
  1116. /*!***********************************************************!*\
  1117. !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
  1118. \***********************************************************/
  1119. /*! no static exports found */
  1120. /***/ (function(module, exports, __webpack_require__) {
  1121. "use strict";
  1122. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  1123. module.exports = (
  1124. utils.isStandardBrowserEnv() ?
  1125. // Standard browser envs have full support of the APIs needed to test
  1126. // whether the request URL is of the same origin as current location.
  1127. (function standardBrowserEnv() {
  1128. var msie = /(msie|trident)/i.test(navigator.userAgent);
  1129. var urlParsingNode = document.createElement('a');
  1130. var originURL;
  1131. /**
  1132. * Parse a URL to discover it's components
  1133. *
  1134. * @param {String} url The URL to be parsed
  1135. * @returns {Object}
  1136. */
  1137. function resolveURL(url) {
  1138. var href = url;
  1139. if (msie) {
  1140. // IE needs attribute set twice to normalize properties
  1141. urlParsingNode.setAttribute('href', href);
  1142. href = urlParsingNode.href;
  1143. }
  1144. urlParsingNode.setAttribute('href', href);
  1145. // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
  1146. return {
  1147. href: urlParsingNode.href,
  1148. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
  1149. host: urlParsingNode.host,
  1150. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
  1151. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
  1152. hostname: urlParsingNode.hostname,
  1153. port: urlParsingNode.port,
  1154. pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
  1155. urlParsingNode.pathname :
  1156. '/' + urlParsingNode.pathname
  1157. };
  1158. }
  1159. originURL = resolveURL(window.location.href);
  1160. /**
  1161. * Determine if a URL shares the same origin as the current location
  1162. *
  1163. * @param {String} requestURL The URL to test
  1164. * @returns {boolean} True if URL shares the same origin, otherwise false
  1165. */
  1166. return function isURLSameOrigin(requestURL) {
  1167. var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
  1168. return (parsed.protocol === originURL.protocol &&
  1169. parsed.host === originURL.host);
  1170. };
  1171. })() :
  1172. // Non standard browser envs (web workers, react-native) lack needed support.
  1173. (function nonStandardBrowserEnv() {
  1174. return function isURLSameOrigin() {
  1175. return true;
  1176. };
  1177. })()
  1178. );
  1179. /***/ }),
  1180. /***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js":
  1181. /*!***************************************************************!*\
  1182. !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
  1183. \***************************************************************/
  1184. /*! no static exports found */
  1185. /***/ (function(module, exports, __webpack_require__) {
  1186. "use strict";
  1187. var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
  1188. module.exports = function normalizeHeaderName(headers, normalizedName) {
  1189. utils.forEach(headers, function processHeader(value, name) {
  1190. if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
  1191. headers[normalizedName] = value;
  1192. delete headers[name];
  1193. }
  1194. });
  1195. };
  1196. /***/ }),
  1197. /***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
  1198. /*!********************************************************!*\
  1199. !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***!
  1200. \********************************************************/
  1201. /*! no static exports found */
  1202. /***/ (function(module, exports, __webpack_require__) {
  1203. "use strict";
  1204. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  1205. // Headers whose duplicates are ignored by node
  1206. // c.f. https://nodejs.org/api/http.html#http_message_headers
  1207. var ignoreDuplicateOf = [
  1208. 'age', 'authorization', 'content-length', 'content-type', 'etag',
  1209. 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
  1210. 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
  1211. 'referer', 'retry-after', 'user-agent'
  1212. ];
  1213. /**
  1214. * Parse headers into an object
  1215. *
  1216. * ```
  1217. * Date: Wed, 27 Aug 2014 08:58:49 GMT
  1218. * Content-Type: application/json
  1219. * Connection: keep-alive
  1220. * Transfer-Encoding: chunked
  1221. * ```
  1222. *
  1223. * @param {String} headers Headers needing to be parsed
  1224. * @returns {Object} Headers parsed into an object
  1225. */
  1226. module.exports = function parseHeaders(headers) {
  1227. var parsed = {};
  1228. var key;
  1229. var val;
  1230. var i;
  1231. if (!headers) { return parsed; }
  1232. utils.forEach(headers.split('\n'), function parser(line) {
  1233. i = line.indexOf(':');
  1234. key = utils.trim(line.substr(0, i)).toLowerCase();
  1235. val = utils.trim(line.substr(i + 1));
  1236. if (key) {
  1237. if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
  1238. return;
  1239. }
  1240. if (key === 'set-cookie') {
  1241. parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
  1242. } else {
  1243. parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
  1244. }
  1245. }
  1246. });
  1247. return parsed;
  1248. };
  1249. /***/ }),
  1250. /***/ "./node_modules/axios/lib/helpers/spread.js":
  1251. /*!**************************************************!*\
  1252. !*** ./node_modules/axios/lib/helpers/spread.js ***!
  1253. \**************************************************/
  1254. /*! no static exports found */
  1255. /***/ (function(module, exports, __webpack_require__) {
  1256. "use strict";
  1257. /**
  1258. * Syntactic sugar for invoking a function and expanding an array for arguments.
  1259. *
  1260. * Common use case would be to use `Function.prototype.apply`.
  1261. *
  1262. * ```js
  1263. * function f(x, y, z) {}
  1264. * var args = [1, 2, 3];
  1265. * f.apply(null, args);
  1266. * ```
  1267. *
  1268. * With `spread` this example can be re-written.
  1269. *
  1270. * ```js
  1271. * spread(function(x, y, z) {})([1, 2, 3]);
  1272. * ```
  1273. *
  1274. * @param {Function} callback
  1275. * @returns {Function}
  1276. */
  1277. module.exports = function spread(callback) {
  1278. return function wrap(arr) {
  1279. return callback.apply(null, arr);
  1280. };
  1281. };
  1282. /***/ }),
  1283. /***/ "./node_modules/axios/lib/utils.js":
  1284. /*!*****************************************!*\
  1285. !*** ./node_modules/axios/lib/utils.js ***!
  1286. \*****************************************/
  1287. /*! no static exports found */
  1288. /***/ (function(module, exports, __webpack_require__) {
  1289. "use strict";
  1290. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
  1291. /*global toString:true*/
  1292. // utils is a library of generic helper functions non-specific to axios
  1293. var toString = Object.prototype.toString;
  1294. /**
  1295. * Determine if a value is an Array
  1296. *
  1297. * @param {Object} val The value to test
  1298. * @returns {boolean} True if value is an Array, otherwise false
  1299. */
  1300. function isArray(val) {
  1301. return toString.call(val) === '[object Array]';
  1302. }
  1303. /**
  1304. * Determine if a value is undefined
  1305. *
  1306. * @param {Object} val The value to test
  1307. * @returns {boolean} True if the value is undefined, otherwise false
  1308. */
  1309. function isUndefined(val) {
  1310. return typeof val === 'undefined';
  1311. }
  1312. /**
  1313. * Determine if a value is a Buffer
  1314. *
  1315. * @param {Object} val The value to test
  1316. * @returns {boolean} True if value is a Buffer, otherwise false
  1317. */
  1318. function isBuffer(val) {
  1319. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
  1320. && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
  1321. }
  1322. /**
  1323. * Determine if a value is an ArrayBuffer
  1324. *
  1325. * @param {Object} val The value to test
  1326. * @returns {boolean} True if value is an ArrayBuffer, otherwise false
  1327. */
  1328. function isArrayBuffer(val) {
  1329. return toString.call(val) === '[object ArrayBuffer]';
  1330. }
  1331. /**
  1332. * Determine if a value is a FormData
  1333. *
  1334. * @param {Object} val The value to test
  1335. * @returns {boolean} True if value is an FormData, otherwise false
  1336. */
  1337. function isFormData(val) {
  1338. return (typeof FormData !== 'undefined') && (val instanceof FormData);
  1339. }
  1340. /**
  1341. * Determine if a value is a view on an ArrayBuffer
  1342. *
  1343. * @param {Object} val The value to test
  1344. * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
  1345. */
  1346. function isArrayBufferView(val) {
  1347. var result;
  1348. if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
  1349. result = ArrayBuffer.isView(val);
  1350. } else {
  1351. result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
  1352. }
  1353. return result;
  1354. }
  1355. /**
  1356. * Determine if a value is a String
  1357. *
  1358. * @param {Object} val The value to test
  1359. * @returns {boolean} True if value is a String, otherwise false
  1360. */
  1361. function isString(val) {
  1362. return typeof val === 'string';
  1363. }
  1364. /**
  1365. * Determine if a value is a Number
  1366. *
  1367. * @param {Object} val The value to test
  1368. * @returns {boolean} True if value is a Number, otherwise false
  1369. */
  1370. function isNumber(val) {
  1371. return typeof val === 'number';
  1372. }
  1373. /**
  1374. * Determine if a value is an Object
  1375. *
  1376. * @param {Object} val The value to test
  1377. * @returns {boolean} True if value is an Object, otherwise false
  1378. */
  1379. function isObject(val) {
  1380. return val !== null && typeof val === 'object';
  1381. }
  1382. /**
  1383. * Determine if a value is a plain Object
  1384. *
  1385. * @param {Object} val The value to test
  1386. * @return {boolean} True if value is a plain Object, otherwise false
  1387. */
  1388. function isPlainObject(val) {
  1389. if (toString.call(val) !== '[object Object]') {
  1390. return false;
  1391. }
  1392. var prototype = Object.getPrototypeOf(val);
  1393. return prototype === null || prototype === Object.prototype;
  1394. }
  1395. /**
  1396. * Determine if a value is a Date
  1397. *
  1398. * @param {Object} val The value to test
  1399. * @returns {boolean} True if value is a Date, otherwise false
  1400. */
  1401. function isDate(val) {
  1402. return toString.call(val) === '[object Date]';
  1403. }
  1404. /**
  1405. * Determine if a value is a File
  1406. *
  1407. * @param {Object} val The value to test
  1408. * @returns {boolean} True if value is a File, otherwise false
  1409. */
  1410. function isFile(val) {
  1411. return toString.call(val) === '[object File]';
  1412. }
  1413. /**
  1414. * Determine if a value is a Blob
  1415. *
  1416. * @param {Object} val The value to test
  1417. * @returns {boolean} True if value is a Blob, otherwise false
  1418. */
  1419. function isBlob(val) {
  1420. return toString.call(val) === '[object Blob]';
  1421. }
  1422. /**
  1423. * Determine if a value is a Function
  1424. *
  1425. * @param {Object} val The value to test
  1426. * @returns {boolean} True if value is a Function, otherwise false
  1427. */
  1428. function isFunction(val) {
  1429. return toString.call(val) === '[object Function]';
  1430. }
  1431. /**
  1432. * Determine if a value is a Stream
  1433. *
  1434. * @param {Object} val The value to test
  1435. * @returns {boolean} True if value is a Stream, otherwise false
  1436. */
  1437. function isStream(val) {
  1438. return isObject(val) && isFunction(val.pipe);
  1439. }
  1440. /**
  1441. * Determine if a value is a URLSearchParams object
  1442. *
  1443. * @param {Object} val The value to test
  1444. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  1445. */
  1446. function isURLSearchParams(val) {
  1447. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  1448. }
  1449. /**
  1450. * Trim excess whitespace off the beginning and end of a string
  1451. *
  1452. * @param {String} str The String to trim
  1453. * @returns {String} The String freed of excess whitespace
  1454. */
  1455. function trim(str) {
  1456. return str.replace(/^\s*/, '').replace(/\s*$/, '');
  1457. }
  1458. /**
  1459. * Determine if we're running in a standard browser environment
  1460. *
  1461. * This allows axios to run in a web worker, and react-native.
  1462. * Both environments support XMLHttpRequest, but not fully standard globals.
  1463. *
  1464. * web workers:
  1465. * typeof window -> undefined
  1466. * typeof document -> undefined
  1467. *
  1468. * react-native:
  1469. * navigator.product -> 'ReactNative'
  1470. * nativescript
  1471. * navigator.product -> 'NativeScript' or 'NS'
  1472. */
  1473. function isStandardBrowserEnv() {
  1474. if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
  1475. navigator.product === 'NativeScript' ||
  1476. navigator.product === 'NS')) {
  1477. return false;
  1478. }
  1479. return (
  1480. typeof window !== 'undefined' &&
  1481. typeof document !== 'undefined'
  1482. );
  1483. }
  1484. /**
  1485. * Iterate over an Array or an Object invoking a function for each item.
  1486. *
  1487. * If `obj` is an Array callback will be called passing
  1488. * the value, index, and complete array for each item.
  1489. *
  1490. * If 'obj' is an Object callback will be called passing
  1491. * the value, key, and complete object for each property.
  1492. *
  1493. * @param {Object|Array} obj The object to iterate
  1494. * @param {Function} fn The callback to invoke for each item
  1495. */
  1496. function forEach(obj, fn) {
  1497. // Don't bother if no value provided
  1498. if (obj === null || typeof obj === 'undefined') {
  1499. return;
  1500. }
  1501. // Force an array if not already something iterable
  1502. if (typeof obj !== 'object') {
  1503. /*eslint no-param-reassign:0*/
  1504. obj = [obj];
  1505. }
  1506. if (isArray(obj)) {
  1507. // Iterate over array values
  1508. for (var i = 0, l = obj.length; i < l; i++) {
  1509. fn.call(null, obj[i], i, obj);
  1510. }
  1511. } else {
  1512. // Iterate over object keys
  1513. for (var key in obj) {
  1514. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  1515. fn.call(null, obj[key], key, obj);
  1516. }
  1517. }
  1518. }
  1519. }
  1520. /**
  1521. * Accepts varargs expecting each argument to be an object, then
  1522. * immutably merges the properties of each object and returns result.
  1523. *
  1524. * When multiple objects contain the same key the later object in
  1525. * the arguments list will take precedence.
  1526. *
  1527. * Example:
  1528. *
  1529. * ```js
  1530. * var result = merge({foo: 123}, {foo: 456});
  1531. * console.log(result.foo); // outputs 456
  1532. * ```
  1533. *
  1534. * @param {Object} obj1 Object to merge
  1535. * @returns {Object} Result of all merge properties
  1536. */
  1537. function merge(/* obj1, obj2, obj3, ... */) {
  1538. var result = {};
  1539. function assignValue(val, key) {
  1540. if (isPlainObject(result[key]) && isPlainObject(val)) {
  1541. result[key] = merge(result[key], val);
  1542. } else if (isPlainObject(val)) {
  1543. result[key] = merge({}, val);
  1544. } else if (isArray(val)) {
  1545. result[key] = val.slice();
  1546. } else {
  1547. result[key] = val;
  1548. }
  1549. }
  1550. for (var i = 0, l = arguments.length; i < l; i++) {
  1551. forEach(arguments[i], assignValue);
  1552. }
  1553. return result;
  1554. }
  1555. /**
  1556. * Extends object a by mutably adding to it the properties of object b.
  1557. *
  1558. * @param {Object} a The object to be extended
  1559. * @param {Object} b The object to copy properties from
  1560. * @param {Object} thisArg The object to bind function to
  1561. * @return {Object} The resulting value of object a
  1562. */
  1563. function extend(a, b, thisArg) {
  1564. forEach(b, function assignValue(val, key) {
  1565. if (thisArg && typeof val === 'function') {
  1566. a[key] = bind(val, thisArg);
  1567. } else {
  1568. a[key] = val;
  1569. }
  1570. });
  1571. return a;
  1572. }
  1573. /**
  1574. * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
  1575. *
  1576. * @param {string} content with BOM
  1577. * @return {string} content value without BOM
  1578. */
  1579. function stripBOM(content) {
  1580. if (content.charCodeAt(0) === 0xFEFF) {
  1581. content = content.slice(1);
  1582. }
  1583. return content;
  1584. }
  1585. module.exports = {
  1586. isArray: isArray,
  1587. isArrayBuffer: isArrayBuffer,
  1588. isBuffer: isBuffer,
  1589. isFormData: isFormData,
  1590. isArrayBufferView: isArrayBufferView,
  1591. isString: isString,
  1592. isNumber: isNumber,
  1593. isObject: isObject,
  1594. isPlainObject: isPlainObject,
  1595. isUndefined: isUndefined,
  1596. isDate: isDate,
  1597. isFile: isFile,
  1598. isBlob: isBlob,
  1599. isFunction: isFunction,
  1600. isStream: isStream,
  1601. isURLSearchParams: isURLSearchParams,
  1602. isStandardBrowserEnv: isStandardBrowserEnv,
  1603. forEach: forEach,
  1604. merge: merge,
  1605. extend: extend,
  1606. trim: trim,
  1607. stripBOM: stripBOM
  1608. };
  1609. /***/ }),
  1610. /***/ "./node_modules/process/browser.js":
  1611. /*!*****************************************!*\
  1612. !*** ./node_modules/process/browser.js ***!
  1613. \*****************************************/
  1614. /*! no static exports found */
  1615. /***/ (function(module, exports) {
  1616. // shim for using process in browser
  1617. var process = module.exports = {};
  1618. // cached from whatever global is present so that test runners that stub it
  1619. // don't break things. But we need to wrap it in a try catch in case it is
  1620. // wrapped in strict mode code which doesn't define any globals. It's inside a
  1621. // function because try/catches deoptimize in certain engines.
  1622. var cachedSetTimeout;
  1623. var cachedClearTimeout;
  1624. function defaultSetTimout() {
  1625. throw new Error('setTimeout has not been defined');
  1626. }
  1627. function defaultClearTimeout () {
  1628. throw new Error('clearTimeout has not been defined');
  1629. }
  1630. (function () {
  1631. try {
  1632. if (typeof setTimeout === 'function') {
  1633. cachedSetTimeout = setTimeout;
  1634. } else {
  1635. cachedSetTimeout = defaultSetTimout;
  1636. }
  1637. } catch (e) {
  1638. cachedSetTimeout = defaultSetTimout;
  1639. }
  1640. try {
  1641. if (typeof clearTimeout === 'function') {
  1642. cachedClearTimeout = clearTimeout;
  1643. } else {
  1644. cachedClearTimeout = defaultClearTimeout;
  1645. }
  1646. } catch (e) {
  1647. cachedClearTimeout = defaultClearTimeout;
  1648. }
  1649. } ())
  1650. function runTimeout(fun) {
  1651. if (cachedSetTimeout === setTimeout) {
  1652. //normal enviroments in sane situations
  1653. return setTimeout(fun, 0);
  1654. }
  1655. // if setTimeout wasn't available but was latter defined
  1656. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  1657. cachedSetTimeout = setTimeout;
  1658. return setTimeout(fun, 0);
  1659. }
  1660. try {
  1661. // when when somebody has screwed with setTimeout but no I.E. maddness
  1662. return cachedSetTimeout(fun, 0);
  1663. } catch(e){
  1664. try {
  1665. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  1666. return cachedSetTimeout.call(null, fun, 0);
  1667. } catch(e){
  1668. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  1669. return cachedSetTimeout.call(this, fun, 0);
  1670. }
  1671. }
  1672. }
  1673. function runClearTimeout(marker) {
  1674. if (cachedClearTimeout === clearTimeout) {
  1675. //normal enviroments in sane situations
  1676. return clearTimeout(marker);
  1677. }
  1678. // if clearTimeout wasn't available but was latter defined
  1679. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  1680. cachedClearTimeout = clearTimeout;
  1681. return clearTimeout(marker);
  1682. }
  1683. try {
  1684. // when when somebody has screwed with setTimeout but no I.E. maddness
  1685. return cachedClearTimeout(marker);
  1686. } catch (e){
  1687. try {
  1688. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  1689. return cachedClearTimeout.call(null, marker);
  1690. } catch (e){
  1691. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  1692. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  1693. return cachedClearTimeout.call(this, marker);
  1694. }
  1695. }
  1696. }
  1697. var queue = [];
  1698. var draining = false;
  1699. var currentQueue;
  1700. var queueIndex = -1;
  1701. function cleanUpNextTick() {
  1702. if (!draining || !currentQueue) {
  1703. return;
  1704. }
  1705. draining = false;
  1706. if (currentQueue.length) {
  1707. queue = currentQueue.concat(queue);
  1708. } else {
  1709. queueIndex = -1;
  1710. }
  1711. if (queue.length) {
  1712. drainQueue();
  1713. }
  1714. }
  1715. function drainQueue() {
  1716. if (draining) {
  1717. return;
  1718. }
  1719. var timeout = runTimeout(cleanUpNextTick);
  1720. draining = true;
  1721. var len = queue.length;
  1722. while(len) {
  1723. currentQueue = queue;
  1724. queue = [];
  1725. while (++queueIndex < len) {
  1726. if (currentQueue) {
  1727. currentQueue[queueIndex].run();
  1728. }
  1729. }
  1730. queueIndex = -1;
  1731. len = queue.length;
  1732. }
  1733. currentQueue = null;
  1734. draining = false;
  1735. runClearTimeout(timeout);
  1736. }
  1737. process.nextTick = function (fun) {
  1738. var args = new Array(arguments.length - 1);
  1739. if (arguments.length > 1) {
  1740. for (var i = 1; i < arguments.length; i++) {
  1741. args[i - 1] = arguments[i];
  1742. }
  1743. }
  1744. queue.push(new Item(fun, args));
  1745. if (queue.length === 1 && !draining) {
  1746. runTimeout(drainQueue);
  1747. }
  1748. };
  1749. // v8 likes predictible objects
  1750. function Item(fun, array) {
  1751. this.fun = fun;
  1752. this.array = array;
  1753. }
  1754. Item.prototype.run = function () {
  1755. this.fun.apply(null, this.array);
  1756. };
  1757. process.title = 'browser';
  1758. process.browser = true;
  1759. process.env = {};
  1760. process.argv = [];
  1761. process.version = ''; // empty string to avoid regexp issues
  1762. process.versions = {};
  1763. function noop() {}
  1764. process.on = noop;
  1765. process.addListener = noop;
  1766. process.once = noop;
  1767. process.off = noop;
  1768. process.removeListener = noop;
  1769. process.removeAllListeners = noop;
  1770. process.emit = noop;
  1771. process.prependListener = noop;
  1772. process.prependOnceListener = noop;
  1773. process.listeners = function (name) { return [] }
  1774. process.binding = function (name) {
  1775. throw new Error('process.binding is not supported');
  1776. };
  1777. process.cwd = function () { return '/' };
  1778. process.chdir = function (dir) {
  1779. throw new Error('process.chdir is not supported');
  1780. };
  1781. process.umask = function() { return 0; };
  1782. /***/ }),
  1783. /***/ "./resources/js/components/filemanager/directory.riot":
  1784. /*!************************************************************!*\
  1785. !*** ./resources/js/components/filemanager/directory.riot ***!
  1786. \************************************************************/
  1787. /*! exports provided: default */
  1788. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1789. "use strict";
  1790. __webpack_require__.r(__webpack_exports__);
  1791. /* harmony default export */ __webpack_exports__["default"] = ({
  1792. 'css': null,
  1793. 'exports': {},
  1794. 'template': function(
  1795. template,
  1796. expressionTypes,
  1797. bindingTypes,
  1798. getComponent
  1799. ) {
  1800. return template(
  1801. '<div class="file-table__row"><div expr27="expr27" class="file-table__column file-table__column--select"><input type="checkbox" value="true"/></div><div expr28="expr28" class="file-table__column file-table__column--filename"><svg class="icon fill-primary mr-2" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-folder"/></svg> </div><div class="file-table__column file-table__column--date"><div expr29="expr29" class="file-table__inner has-text-right"> </div></div></div>',
  1802. [
  1803. {
  1804. 'redundantAttribute': 'expr27',
  1805. 'selector': '[expr27]',
  1806. 'expressions': [
  1807. {
  1808. 'type': expressionTypes.EVENT,
  1809. 'name': 'onchange',
  1810. 'evaluate': function(
  1811. scope
  1812. ) {
  1813. return (event) => { scope.props.handleMarked(event, scope) };
  1814. }
  1815. }
  1816. ]
  1817. },
  1818. {
  1819. 'redundantAttribute': 'expr28',
  1820. 'selector': '[expr28]',
  1821. 'expressions': [
  1822. {
  1823. 'type': expressionTypes.TEXT,
  1824. 'childNodeIndex': 1,
  1825. 'evaluate': function(
  1826. scope
  1827. ) {
  1828. return [
  1829. scope.props.file.filename
  1830. ].join(
  1831. ''
  1832. );
  1833. }
  1834. },
  1835. {
  1836. 'type': expressionTypes.EVENT,
  1837. 'name': 'onclick',
  1838. 'evaluate': function(
  1839. scope
  1840. ) {
  1841. return (event) => { scope.props.handleClick(event, scope) };
  1842. }
  1843. }
  1844. ]
  1845. },
  1846. {
  1847. 'redundantAttribute': 'expr29',
  1848. 'selector': '[expr29]',
  1849. 'expressions': [
  1850. {
  1851. 'type': expressionTypes.TEXT,
  1852. 'childNodeIndex': 0,
  1853. 'evaluate': function(
  1854. scope
  1855. ) {
  1856. return scope.props.file.meta.updated_at;
  1857. }
  1858. }
  1859. ]
  1860. }
  1861. ]
  1862. );
  1863. },
  1864. 'name': 'urban-filemanager-directory'
  1865. });
  1866. /***/ }),
  1867. /***/ "./resources/js/components/filemanager/file.riot":
  1868. /*!*******************************************************!*\
  1869. !*** ./resources/js/components/filemanager/file.riot ***!
  1870. \*******************************************************/
  1871. /*! exports provided: default */
  1872. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1873. "use strict";
  1874. __webpack_require__.r(__webpack_exports__);
  1875. /* harmony default export */ __webpack_exports__["default"] = ({
  1876. 'css': null,
  1877. 'exports': {},
  1878. 'template': function(
  1879. template,
  1880. expressionTypes,
  1881. bindingTypes,
  1882. getComponent
  1883. ) {
  1884. return template(
  1885. '<div class="file-table__row"><div expr23="expr23" class="file-table__column file-table__column--select"><input type="checkbox" value="true"/></div><div expr24="expr24" class="file-table__column file-table__column--filename"> </div><div class="file-table__column file-table__column--size"><div expr25="expr25" class="file-table__inner has-text-right width-100"> </div></div><div class="file-table__column file-table__column--date"><div expr26="expr26" class="file-table__inner has-text-right"> </div></div></div>',
  1886. [
  1887. {
  1888. 'redundantAttribute': 'expr23',
  1889. 'selector': '[expr23]',
  1890. 'expressions': [
  1891. {
  1892. 'type': expressionTypes.EVENT,
  1893. 'name': 'onchange',
  1894. 'evaluate': function(
  1895. scope
  1896. ) {
  1897. return (event) => { scope.props.handleMarked(event, scope) };
  1898. }
  1899. }
  1900. ]
  1901. },
  1902. {
  1903. 'redundantAttribute': 'expr24',
  1904. 'selector': '[expr24]',
  1905. 'expressions': [
  1906. {
  1907. 'type': expressionTypes.TEXT,
  1908. 'childNodeIndex': 0,
  1909. 'evaluate': function(
  1910. scope
  1911. ) {
  1912. return [
  1913. scope.props.file.filename
  1914. ].join(
  1915. ''
  1916. );
  1917. }
  1918. },
  1919. {
  1920. 'type': expressionTypes.EVENT,
  1921. 'name': 'onclick',
  1922. 'evaluate': function(
  1923. scope
  1924. ) {
  1925. return (event) => { scope.props.handleClick(event, scope) };
  1926. }
  1927. }
  1928. ]
  1929. },
  1930. {
  1931. 'redundantAttribute': 'expr25',
  1932. 'selector': '[expr25]',
  1933. 'expressions': [
  1934. {
  1935. 'type': expressionTypes.TEXT,
  1936. 'childNodeIndex': 0,
  1937. 'evaluate': function(
  1938. scope
  1939. ) {
  1940. return scope.props.file.meta.size;
  1941. }
  1942. }
  1943. ]
  1944. },
  1945. {
  1946. 'redundantAttribute': 'expr26',
  1947. 'selector': '[expr26]',
  1948. 'expressions': [
  1949. {
  1950. 'type': expressionTypes.TEXT,
  1951. 'childNodeIndex': 0,
  1952. 'evaluate': function(
  1953. scope
  1954. ) {
  1955. return scope.props.file.meta.updated_at;
  1956. }
  1957. }
  1958. ]
  1959. }
  1960. ]
  1961. );
  1962. },
  1963. 'name': 'urban-filemanager-file'
  1964. });
  1965. /***/ }),
  1966. /***/ "./resources/js/components/filemanager/filemanager.riot":
  1967. /*!**************************************************************!*\
  1968. !*** ./resources/js/components/filemanager/filemanager.riot ***!
  1969. \**************************************************************/
  1970. /*! exports provided: default */
  1971. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1972. "use strict";
  1973. __webpack_require__.r(__webpack_exports__);
  1974. /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
  1975. /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);
  1976. /* harmony import */ var _file_riot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./file.riot */ "./resources/js/components/filemanager/file.riot");
  1977. /* harmony import */ var _directory_riot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./directory.riot */ "./resources/js/components/filemanager/directory.riot");
  1978. /* harmony import */ var _parent_riot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parent.riot */ "./resources/js/components/filemanager/parent.riot");
  1979. riot.register('urban-filemanager-file', _file_riot__WEBPACK_IMPORTED_MODULE_1__["default"])
  1980. riot.register('urban-filemanager-directory', _directory_riot__WEBPACK_IMPORTED_MODULE_2__["default"])
  1981. riot.register('urban-filemanager-parent', _parent_riot__WEBPACK_IMPORTED_MODULE_3__["default"])
  1982. /* harmony default export */ __webpack_exports__["default"] = ({
  1983. 'css': null,
  1984. 'exports': {
  1985. handleClick() {
  1986. console.log('ddd')
  1987. },
  1988. handleMarked() {
  1989. console.log('ddd')
  1990. }
  1991. },
  1992. 'template': function(
  1993. template,
  1994. expressionTypes,
  1995. bindingTypes,
  1996. getComponent
  1997. ) {
  1998. return template(
  1999. '<div class="bucket-filemanager"><div class="file-table"><urban-filemanager-parent expr17="expr17"></urban-filemanager-parent><template expr18="expr18"></template></div></div>',
  2000. [
  2001. {
  2002. 'type': bindingTypes.TAG,
  2003. 'getComponent': getComponent,
  2004. 'evaluate': function(
  2005. scope
  2006. ) {
  2007. return 'urban-filemanager-parent';
  2008. },
  2009. 'slots': [],
  2010. 'attributes': [],
  2011. 'redundantAttribute': 'expr17',
  2012. 'selector': '[expr17]'
  2013. },
  2014. {
  2015. 'type': bindingTypes.EACH,
  2016. 'getKey': null,
  2017. 'condition': null,
  2018. 'template': template(
  2019. '<urban-filemanager-file expr19="expr19"></urban-filemanager-file><urban-filemanager-directory expr20="expr20"></urban-filemanager-directory>',
  2020. [
  2021. {
  2022. 'type': bindingTypes.IF,
  2023. 'evaluate': function(
  2024. scope
  2025. ) {
  2026. return scope.file.is_file;
  2027. },
  2028. 'redundantAttribute': 'expr19',
  2029. 'selector': '[expr19]',
  2030. 'template': template(
  2031. null,
  2032. [
  2033. {
  2034. 'type': bindingTypes.TAG,
  2035. 'getComponent': getComponent,
  2036. 'evaluate': function(
  2037. scope
  2038. ) {
  2039. return 'urban-filemanager-file';
  2040. },
  2041. 'slots': [],
  2042. 'attributes': [
  2043. {
  2044. 'type': expressionTypes.ATTRIBUTE,
  2045. 'name': 'file',
  2046. 'evaluate': function(
  2047. scope
  2048. ) {
  2049. return scope.file;
  2050. }
  2051. },
  2052. {
  2053. 'type': expressionTypes.ATTRIBUTE,
  2054. 'name': 'handleClick',
  2055. 'evaluate': function(
  2056. scope
  2057. ) {
  2058. return scope.handleClick;
  2059. }
  2060. },
  2061. {
  2062. 'type': expressionTypes.ATTRIBUTE,
  2063. 'name': 'handleMarked',
  2064. 'evaluate': function(
  2065. scope
  2066. ) {
  2067. return scope.handleMarked;
  2068. }
  2069. }
  2070. ]
  2071. }
  2072. ]
  2073. )
  2074. },
  2075. {
  2076. 'type': bindingTypes.IF,
  2077. 'evaluate': function(
  2078. scope
  2079. ) {
  2080. return !scope.file.is_file;
  2081. },
  2082. 'redundantAttribute': 'expr20',
  2083. 'selector': '[expr20]',
  2084. 'template': template(
  2085. null,
  2086. [
  2087. {
  2088. 'type': bindingTypes.TAG,
  2089. 'getComponent': getComponent,
  2090. 'evaluate': function(
  2091. scope
  2092. ) {
  2093. return 'urban-filemanager-directory';
  2094. },
  2095. 'slots': [],
  2096. 'attributes': [
  2097. {
  2098. 'type': expressionTypes.ATTRIBUTE,
  2099. 'name': 'file',
  2100. 'evaluate': function(
  2101. scope
  2102. ) {
  2103. return scope.file;
  2104. }
  2105. },
  2106. {
  2107. 'type': expressionTypes.ATTRIBUTE,
  2108. 'name': 'handleClick',
  2109. 'evaluate': function(
  2110. scope
  2111. ) {
  2112. return scope.handleClick;
  2113. }
  2114. },
  2115. {
  2116. 'type': expressionTypes.ATTRIBUTE,
  2117. 'name': 'handleMarked',
  2118. 'evaluate': function(
  2119. scope
  2120. ) {
  2121. return scope.handleMarked;
  2122. }
  2123. }
  2124. ]
  2125. }
  2126. ]
  2127. )
  2128. }
  2129. ]
  2130. ),
  2131. 'redundantAttribute': 'expr18',
  2132. 'selector': '[expr18]',
  2133. 'itemName': 'file',
  2134. 'indexName': null,
  2135. 'evaluate': function(
  2136. scope
  2137. ) {
  2138. return scope.props.files;
  2139. }
  2140. }
  2141. ]
  2142. );
  2143. },
  2144. 'name': 'urban-filemanager'
  2145. });
  2146. /***/ }),
  2147. /***/ "./resources/js/components/filemanager/parent.riot":
  2148. /*!*********************************************************!*\
  2149. !*** ./resources/js/components/filemanager/parent.riot ***!
  2150. \*********************************************************/
  2151. /*! exports provided: default */
  2152. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2153. "use strict";
  2154. __webpack_require__.r(__webpack_exports__);
  2155. /* harmony default export */ __webpack_exports__["default"] = ({
  2156. 'css': null,
  2157. 'exports': {},
  2158. 'template': function(
  2159. template,
  2160. expressionTypes,
  2161. bindingTypes,
  2162. getComponent
  2163. ) {
  2164. return template(
  2165. '<div class="file-table__row"><div class="file-table__column file-table__column--select"></div><div expr30="expr30" class="file-table__column file-table__column--filename"><svg class="icon fill-grey mr-2" aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-back"/></svg>\n ..\n </div></div>',
  2166. [
  2167. {
  2168. 'redundantAttribute': 'expr30',
  2169. 'selector': '[expr30]',
  2170. 'expressions': [
  2171. {
  2172. 'type': expressionTypes.EVENT,
  2173. 'name': 'onclick',
  2174. 'evaluate': function(
  2175. scope
  2176. ) {
  2177. return (event) => { scope.props.handleClick(event, scope) };
  2178. }
  2179. }
  2180. ]
  2181. }
  2182. ]
  2183. );
  2184. },
  2185. 'name': 'urban-filemanager-parent'
  2186. });
  2187. /***/ }),
  2188. /***/ "./resources/js/views/bucket-single.js":
  2189. /*!*********************************************!*\
  2190. !*** ./resources/js/views/bucket-single.js ***!
  2191. \*********************************************/
  2192. /*! no exports provided */
  2193. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2194. "use strict";
  2195. __webpack_require__.r(__webpack_exports__);
  2196. /* harmony import */ var _components_filemanager_filemanager_riot__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../components/filemanager/filemanager.riot */ "./resources/js/components/filemanager/filemanager.riot");
  2197. /**
  2198. * Bucket
  2199. *
  2200. *
  2201. */
  2202. // register components
  2203. riot.register('urban-filemanager', _components_filemanager_filemanager_riot__WEBPACK_IMPORTED_MODULE_0__["default"]);
  2204. /***/ }),
  2205. /***/ 3:
  2206. /*!***************************************************!*\
  2207. !*** multi ./resources/js/views/bucket-single.js ***!
  2208. \***************************************************/
  2209. /*! no static exports found */
  2210. /***/ (function(module, exports, __webpack_require__) {
  2211. module.exports = __webpack_require__(/*! /home/herrhase/Workspace/herrhase/urban-filehub/resources/js/views/bucket-single.js */"./resources/js/views/bucket-single.js");
  2212. /***/ })
  2213. /******/ });