text: /******/ (function(modules) { // webpackBootstrap
  /******/ 	// The module cache
  /******/ 	var installedModules = {};
  /******/
  /******/ 	// The require function
  /******/ 	function __webpack_require__(moduleId) {
  /******/
  /******/ 		// Check if module is in cache
  /******/ 		if(installedModules[moduleId]) {
  /******/ 			return installedModules[moduleId].exports;
  /******/ 		}
  /******/ 		// Create a new module (and put it into the cache)
  /******/ 		var module = installedModules[moduleId] = {
  /******/ 			i: moduleId,
  /******/ 			l: false,
  /******/ 			exports: {}
  /******/ 		};
  /******/
  /******/ 		// Execute the module function
  /******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  /******/
  /******/ 		// Flag the module as loaded
  /******/ 		module.l = true;
  /******/
  /******/ 		// Return the exports of the module
  /******/ 		return module.exports;
  /******/ 	}
  /******/
  /******/
  /******/ 	// expose the modules object (__webpack_modules__)
  /******/ 	__webpack_require__.m = modules;
  /******/
  /******/ 	// expose the module cache
  /******/ 	__webpack_require__.c = installedModules;
  /******/
  /******/ 	// define getter function for harmony exports
  /******/ 	__webpack_require__.d = function(exports, name, getter) {
  /******/ 		if(!__webpack_require__.o(exports, name)) {
  /******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
  /******/ 		}
  /******/ 	};
  /******/
  /******/ 	// define __esModule on exports
  /******/ 	__webpack_require__.r = function(exports) {
  /******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  /******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  /******/ 		}
  /******/ 		Object.defineProperty(exports, '__esModule', { value: true });
  /******/ 	};
  /******/
  /******/ 	// create a fake namespace object
  /******/ 	// mode & 1: value is a module id, require it
  /******/ 	// mode & 2: merge all properties of value into the ns
  /******/ 	// mode & 4: return value when already ns object
  /******/ 	// mode & 8|1: behave like require
  /******/ 	__webpack_require__.t = function(value, mode) {
  /******/ 		if(mode & 1) value = __webpack_require__(value);
  /******/ 		if(mode & 8) return value;
  /******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  /******/ 		var ns = Object.create(null);
  /******/ 		__webpack_require__.r(ns);
  /******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  /******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  /******/ 		return ns;
  /******/ 	};
  /******/
  /******/ 	// getDefaultExport function for compatibility with non-harmony modules
  /******/ 	__webpack_require__.n = function(module) {
  /******/ 		var getter = module && module.__esModule ?
  /******/ 			function getDefault() { return module['default']; } :
  /******/ 			function getModuleExports() { return module; };
  /******/ 		__webpack_require__.d(getter, 'a', getter);
  /******/ 		return getter;
  /******/ 	};
  /******/
  /******/ 	// Object.prototype.hasOwnProperty.call
  /******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  /******/
  /******/ 	// __webpack_public_path__
  /******/ 	__webpack_require__.p = "/";
  /******/
  /******/
  /******/ 	// Load entry module and return exports
  /******/ 	return __webpack_require__(__webpack_require__.s = 0);
  /******/ })
  /************************************************************************/
  /******/ ({
  
  /***/ "./node_modules/@stimulus/core/dist/index.js":
  /*!***************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/index.js ***!
    \***************************************************/
  /*! exports provided: Application, Context, Controller, defaultSchema */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var _src_application__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/application */ "./node_modules/@stimulus/core/dist/src/application.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Application", function() { return _src_application__WEBPACK_IMPORTED_MODULE_0__["Application"]; });
  
  /* harmony import */ var _src_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/context */ "./node_modules/@stimulus/core/dist/src/context.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Context", function() { return _src_context__WEBPACK_IMPORTED_MODULE_1__["Context"]; });
  
  /* harmony import */ var _src_controller__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/controller */ "./node_modules/@stimulus/core/dist/src/controller.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Controller", function() { return _src_controller__WEBPACK_IMPORTED_MODULE_2__["Controller"]; });
  
  /* harmony import */ var _src_schema__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/schema */ "./node_modules/@stimulus/core/dist/src/schema.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultSchema", function() { return _src_schema__WEBPACK_IMPORTED_MODULE_3__["defaultSchema"]; });
  
  
  
  
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDL0MsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGVBQWUsQ0FBQTtBQUN2QyxPQUFPLEVBQUUsVUFBVSxFQUF5QixNQUFNLGtCQUFrQixDQUFBO0FBRXBFLE9BQU8sRUFBVSxhQUFhLEVBQUUsTUFBTSxjQUFjLENBQUEifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/action.js":
  /*!********************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/action.js ***!
    \********************************************************/
  /*! exports provided: Action, getDefaultEventNameForElement */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return Action; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultEventNameForElement", function() { return getDefaultEventNameForElement; });
  /* harmony import */ var _action_descriptor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./action_descriptor */ "./node_modules/@stimulus/core/dist/src/action_descriptor.js");
  
  var Action = /** @class */ (function () {
      function Action(element, index, descriptor) {
          this.element = element;
          this.index = index;
          this.eventTarget = descriptor.eventTarget || element;
          this.eventName = descriptor.eventName || getDefaultEventNameForElement(element) || error("missing event name");
          this.identifier = descriptor.identifier || error("missing identifier");
          this.methodName = descriptor.methodName || error("missing method name");
      }
      Action.forToken = function (token) {
          return new this(token.element, token.index, Object(_action_descriptor__WEBPACK_IMPORTED_MODULE_0__["parseDescriptorString"])(token.content));
      };
      Action.prototype.toString = function () {
          var eventNameSuffix = this.eventTargetName ? "@" + this.eventTargetName : "";
          return "" + this.eventName + eventNameSuffix + "->" + this.identifier + "#" + this.methodName;
      };
      Object.defineProperty(Action.prototype, "eventTargetName", {
          get: function () {
              return Object(_action_descriptor__WEBPACK_IMPORTED_MODULE_0__["stringifyEventTarget"])(this.eventTarget);
          },
          enumerable: true,
          configurable: true
      });
      return Action;
  }());
  
  var defaultEventNames = {
      "a": function (e) { return "click"; },
      "button": function (e) { return "click"; },
      "form": function (e) { return "submit"; },
      "input": function (e) { return e.getAttribute("type") == "submit" ? "click" : "change"; },
      "select": function (e) { return "change"; },
      "textarea": function (e) { return "change"; }
  };
  function getDefaultEventNameForElement(element) {
      var tagName = element.tagName.toLowerCase();
      if (tagName in defaultEventNames) {
          return defaultEventNames[tagName](element);
      }
  }
  function error(message) {
      throw new Error(message);
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQW9CLHFCQUFxQixFQUFFLG9CQUFvQixFQUFFLE1BQU0scUJBQXFCLENBQUE7QUFHbkc7SUFZRS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
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/action_descriptor.js":
  /*!*******************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/action_descriptor.js ***!
    \*******************************************************************/
  /*! exports provided: parseDescriptorString, stringifyEventTarget */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDescriptorString", function() { return parseDescriptorString; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stringifyEventTarget", function() { return stringifyEventTarget; });
  // capture nos.:            12   23 4               43   1 5   56 7  76
  var descriptorPattern = /^((.+?)(@(window|document))?->)?(.+?)(#(.+))?$/;
  function parseDescriptorString(descriptorString) {
      var source = descriptorString.trim();
      var matches = source.match(descriptorPattern) || [];
      return {
          eventTarget: parseEventTarget(matches[4]),
          eventName: matches[2],
          identifier: matches[5],
          methodName: matches[7]
      };
  }
  function parseEventTarget(eventTargetName) {
      if (eventTargetName == "window") {
          return window;
      }
      else if (eventTargetName == "document") {
          return document;
      }
  }
  function stringifyEventTarget(eventTarget) {
      if (eventTarget == window) {
          return "window";
      }
      else if (eventTarget == document) {
          return "document";
      }
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uX2Rlc2NyaXB0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWN0aW9uX2Rlc2NyaXB0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT0EsdUVBQXVFO0FBQ3ZFLElBQU0saUJBQWlCLEdBQUcsZ0RBQWdELENBQUE7QUFFMUUsTUFBTSxnQ0FBZ0MsZ0JBQXdCO0lBQzVELElBQU0sTUFBTSxHQUFHLGdCQUFnQixDQUFDLElBQUksRUFBRSxDQUFBO0lBQ3RDLElBQU0sT0FBTyxHQUFHLE1BQU0sQ0FBQyxLQUFLLENBQUMsaUJBQWlCLENBQUMsSUFBSSxFQUFFLENBQUE7SUFDckQsT0FBTztRQUNMLFdBQVcsRUFBRSxnQkFBZ0IsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekMsU0FBUyxFQUFJLE9BQU8sQ0FBQyxDQUFDLENBQUM7UUFDdkIsVUFBVSxFQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUM7UUFDdkIsVUFBVSxFQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUM7S0FDeEIsQ0FBQTtBQUNILENBQUM7QUFFRCwwQkFBMEIsZUFBdUI7SUFDL0MsSUFBSSxlQUFlLElBQUksUUFBUSxFQUFFO1FBQy9CLE9BQU8sTUFBTSxDQUFBO0tBQ2Q7U0FBTSxJQUFJLGVBQWUsSUFBSSxVQUFVLEVBQUU7UUFDeEMsT0FBTyxRQUFRLENBQUE7S0FDaEI7QUFDSCxDQUFDO0FBRUQsTUFBTSwrQkFBK0IsV0FBd0I7SUFDM0QsSUFBSSxXQUFXLElBQUksTUFBTSxFQUFFO1FBQ3pCLE9BQU8sUUFBUSxDQUFBO0tBQ2hCO1NBQU0sSUFBSSxXQUFXLElBQUksUUFBUSxFQUFFO1FBQ2xDLE9BQU8sVUFBVSxDQUFBO0tBQ2xCO0FBQ0gsQ0FBQyJ9
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/application.js":
  /*!*************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/application.js ***!
    \*************************************************************/
  /*! exports provided: Application */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Application", function() { return Application; });
  /* harmony import */ var _dispatcher__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dispatcher */ "./node_modules/@stimulus/core/dist/src/dispatcher.js");
  /* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./router */ "./node_modules/@stimulus/core/dist/src/router.js");
  /* harmony import */ var _schema__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./schema */ "./node_modules/@stimulus/core/dist/src/schema.js");
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
      return new (P || (P = Promise))(function (resolve, reject) {
          function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
          function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
          function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
          step((generator = generator.apply(thisArg, _arguments || [])).next());
      });
  };
  var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
      var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
      return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
      function verb(n) { return function (v) { return step([n, v]); }; }
      function step(op) {
          if (f) throw new TypeError("Generator is already executing.");
          while (_) try {
              if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
              if (y = 0, t) op = [0, t.value];
              switch (op[0]) {
                  case 0: case 1: t = op; break;
                  case 4: _.label++; return { value: op[1], done: false };
                  case 5: _.label++; y = op[1]; op = [0]; continue;
                  case 7: op = _.ops.pop(); _.trys.pop(); continue;
                  default:
                      if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                      if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                      if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                      if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                      if (t[2]) _.ops.pop();
                      _.trys.pop(); continue;
              }
              op = body.call(thisArg, _);
          } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
          if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
      }
  };
  
  
  
  var Application = /** @class */ (function () {
      function Application(element, schema) {
          if (element === void 0) { element = document.documentElement; }
          if (schema === void 0) { schema = _schema__WEBPACK_IMPORTED_MODULE_2__["defaultSchema"]; }
          this.element = element;
          this.schema = schema;
          this.dispatcher = new _dispatcher__WEBPACK_IMPORTED_MODULE_0__["Dispatcher"](this);
          this.router = new _router__WEBPACK_IMPORTED_MODULE_1__["Router"](this);
      }
      Application.start = function (element, schema) {
          var application = new Application(element, schema);
          application.start();
          return application;
      };
      Application.prototype.start = function () {
          return __awaiter(this, void 0, void 0, function () {
              return __generator(this, function (_a) {
                  switch (_a.label) {
                      case 0: return [4 /*yield*/, domReady()];
                      case 1:
                          _a.sent();
                          this.router.start();
                          this.dispatcher.start();
                          return [2 /*return*/];
                  }
              });
          });
      };
      Application.prototype.stop = function () {
          this.router.stop();
          this.dispatcher.stop();
      };
      Application.prototype.register = function (identifier, controllerConstructor) {
          this.load({ identifier: identifier, controllerConstructor: controllerConstructor });
      };
      Application.prototype.load = function (head) {
          var _this = this;
          var rest = [];
          for (var _i = 1; _i < arguments.length; _i++) {
              rest[_i - 1] = arguments[_i];
          }
          var definitions = Array.isArray(head) ? head : [head].concat(rest);
          definitions.forEach(function (definition) { return _this.router.loadDefinition(definition); });
      };
      Application.prototype.unload = function (head) {
          var _this = this;
          var rest = [];
          for (var _i = 1; _i < arguments.length; _i++) {
              rest[_i - 1] = arguments[_i];
          }
          var identifiers = Array.isArray(head) ? head : [head].concat(rest);
          identifiers.forEach(function (identifier) { return _this.router.unloadIdentifier(identifier); });
      };
      Object.defineProperty(Application.prototype, "controllers", {
          // Controllers
          get: function () {
              return this.router.contexts.map(function (context) { return context.controller; });
          },
          enumerable: true,
          configurable: true
      });
      Application.prototype.getControllerForElementAndIdentifier = function (element, identifier) {
          var context = this.router.getContextForElementAndIdentifier(element, identifier);
          return context ? context.controller : null;
      };
      // Error handling
      Application.prototype.handleError = function (error, message, detail) {
          console.error("%s\n\n%o\n\n%o", message, error, detail);
      };
      return Application;
  }());
  
  function domReady() {
      return new Promise(function (resolve) {
          if (document.readyState == "loading") {
              document.addEventListener("DOMContentLoaded", resolve);
          }
          else {
              resolve();
          }
      });
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXBwbGljYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBRXpDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFDakMsT0FBTyxFQUFVLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQTtBQUVoRDtJQVlFLHFCQUFZLE9BQTJDLEVBQUUsTUFBOEI7UUFBM0Usd0JBQUEsRUFBQSxVQUFtQixRQUFRLENBQUMsZUFBZTtRQUFFLHVCQUFBLEVBQUEsc0JBQThCO1FBQ3JGLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFBO1FBQ3RCLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFBO1FBQ3BCLElBQUksQ0FBQyxVQUFVLEdBQUcsSUFBSSxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUE7UUFDdEMsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNoQyxDQUFDO0lBWE0saUJBQUssR0FBWixVQUFhLE9BQWlCLEVBQUUsTUFBZTtRQUM3QyxJQUFNLFdBQVc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BQVksS0FBWSxFQUFFLE9BQWUsRUFBRSxNQUFjO1FBQ3ZELE9BQU8sQ0FBQyxLQUFLLENBQUMsZ0JBQWdCLEVBQUUsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLENBQUMsQ0FBQTtJQUN6RCxDQUFDO0lBQ0gsa0JBQUM7QUFBRCxDQUFDLEFBaEVELElBZ0VDOztBQUVEO0lBQ0UsT0FBTyxJQUFJLE9BQU8sQ0FBQyxVQUFBLE9BQU87UUFDeEIsSUFBSSxRQUFRLENBQUMsVUFBVSxJQUFJLFNBQVMsRUFBRTtZQUNwQyxRQUFRLENBQUMsZ0JBQWdCLENBQUMsa0JBQWtCLEVBQUUsT0FBTyxDQUFDLENBQUE7U0FDdkQ7YUFBTTtZQUNMLE9BQU8sRUFBRSxDQUFBO1NBQ1Y7SUFDSCxDQUFDLENBQUMsQ0FBQTtBQUNKLENBQUMifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/binding.js":
  /*!*********************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/binding.js ***!
    \*********************************************************/
  /*! exports provided: Binding */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Binding", function() { return Binding; });
  var Binding = /** @class */ (function () {
      function Binding(context, action) {
          this.context = context;
          this.action = action;
      }
      Object.defineProperty(Binding.prototype, "index", {
          get: function () {
              return this.action.index;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Binding.prototype, "eventTarget", {
          get: function () {
              return this.action.eventTarget;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Binding.prototype, "identifier", {
          get: function () {
              return this.context.identifier;
          },
          enumerable: true,
          configurable: true
      });
      Binding.prototype.handleEvent = function (event) {
          if (this.willBeInvokedByEvent(event)) {
              this.invokeWithEvent(event);
          }
      };
      Object.defineProperty(Binding.prototype, "eventName", {
          get: function () {
              return this.action.eventName;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Binding.prototype, "method", {
          get: function () {
              var method = this.controller[this.methodName];
              if (typeof method == "function") {
                  return method;
              }
              throw new Error("Action \"" + this.action + "\" references undefined method \"" + this.methodName + "\"");
          },
          enumerable: true,
          configurable: true
      });
      Binding.prototype.invokeWithEvent = function (event) {
          try {
              this.method.call(this.controller, event);
          }
          catch (error) {
              var _a = this, identifier = _a.identifier, controller = _a.controller, element = _a.element, index = _a.index;
              var detail = { identifier: identifier, controller: controller, element: element, index: index, event: event };
              this.context.handleError(error, "invoking action \"" + this.action + "\"", detail);
          }
      };
      Binding.prototype.willBeInvokedByEvent = function (event) {
          var eventTarget = event.target;
          if (this.element === eventTarget) {
              return true;
          }
          else if (eventTarget instanceof Element && this.element.contains(eventTarget)) {
              return this.scope.containsElement(eventTarget);
          }
          else {
              return true;
          }
      };
      Object.defineProperty(Binding.prototype, "controller", {
          get: function () {
              return this.context.controller;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Binding.prototype, "methodName", {
          get: function () {
              return this.action.methodName;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Binding.prototype, "element", {
          get: function () {
              return this.scope.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Binding.prototype, "scope", {
          get: function () {
              return this.context.scope;
          },
          enumerable: true,
          configurable: true
      });
      return Binding;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmluZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iaW5kaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtBO0lBSUUsaUJBQVksT0FBZ0IsRUFBRSxNQUFjO1FBQzFDLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFBO1FBQ3RCLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQ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NQUFNLENBQUMsVUFBVSxDQUFBO1FBQy9CLENBQUM7OztPQUFBO0lBRUQsc0JBQVksNEJBQU87YUFBbkI7WUFDRSxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFBO1FBQzNCLENBQUM7OztPQUFBO0lBRUQsc0JBQVksMEJBQUs7YUFBakI7WUFDRSxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFBO1FBQzNCLENBQUM7OztPQUFBO0lBQ0gsY0FBQztBQUFELENBQUMsQUEzRUQsSUEyRUMifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/binding_observer.js":
  /*!******************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/binding_observer.js ***!
    \******************************************************************/
  /*! exports provided: BindingObserver */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BindingObserver", function() { return BindingObserver; });
  /* harmony import */ var _action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./action */ "./node_modules/@stimulus/core/dist/src/action.js");
  /* harmony import */ var _binding__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./binding */ "./node_modules/@stimulus/core/dist/src/binding.js");
  /* harmony import */ var _stimulus_mutation_observers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @stimulus/mutation-observers */ "./node_modules/@stimulus/mutation-observers/dist/index.js");
  
  
  
  var BindingObserver = /** @class */ (function () {
      function BindingObserver(context, delegate) {
          this.context = context;
          this.delegate = delegate;
          this.bindingsByAction = new Map;
      }
      BindingObserver.prototype.start = function () {
          if (!this.valueListObserver) {
              this.valueListObserver = new _stimulus_mutation_observers__WEBPACK_IMPORTED_MODULE_2__["ValueListObserver"](this.element, this.actionAttribute, this);
              this.valueListObserver.start();
          }
      };
      BindingObserver.prototype.stop = function () {
          if (this.valueListObserver) {
              this.valueListObserver.stop();
              delete this.valueListObserver;
              this.disconnectAllActions();
          }
      };
      Object.defineProperty(BindingObserver.prototype, "element", {
          get: function () {
              return this.context.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(BindingObserver.prototype, "identifier", {
          get: function () {
              return this.context.identifier;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(BindingObserver.prototype, "actionAttribute", {
          get: function () {
              return this.schema.actionAttribute;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(BindingObserver.prototype, "schema", {
          get: function () {
              return this.context.schema;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(BindingObserver.prototype, "bindings", {
          get: function () {
              return Array.from(this.bindingsByAction.values());
          },
          enumerable: true,
          configurable: true
      });
      BindingObserver.prototype.connectAction = function (action) {
          var binding = new _binding__WEBPACK_IMPORTED_MODULE_1__["Binding"](this.context, action);
          this.bindingsByAction.set(action, binding);
          this.delegate.bindingConnected(binding);
      };
      BindingObserver.prototype.disconnectAction = function (action) {
          var binding = this.bindingsByAction.get(action);
          if (binding) {
              this.bindingsByAction.delete(action);
              this.delegate.bindingDisconnected(binding);
          }
      };
      BindingObserver.prototype.disconnectAllActions = function () {
          var _this = this;
          this.bindings.forEach(function (binding) { return _this.delegate.bindingDisconnected(binding); });
          this.bindingsByAction.clear();
      };
      // Value observer delegate
      BindingObserver.prototype.parseValueForToken = function (token) {
          var action = _action__WEBPACK_IMPORTED_MODULE_0__["Action"].forToken(token);
          if (action.identifier == this.identifier) {
              return action;
          }
      };
      BindingObserver.prototype.elementMatchedValue = function (element, action) {
          this.connectAction(action);
      };
      BindingObserver.prototype.elementUnmatchedValue = function (element, action) {
          this.disconnectAction(action);
      };
      return BindingObserver;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmluZGluZ19vYnNlcnZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9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VEsQ0FBQyxtQkFBbUIsQ0FBQyxPQUFPLENBQUMsQ0FBQTtTQUMzQztJQUNILENBQUM7SUFFTyw4Q0FBb0IsR0FBNUI7UUFBQSxpQkFHQztRQUZDLElBQUksQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLFVBQUEsT0FBTyxJQUFJLE9BQUEsS0FBSSxDQUFDLFFBQVEsQ0FBQyxtQkFBbUIsQ0FBQyxPQUFPLENBQUMsRUFBMUMsQ0FBMEMsQ0FBQyxDQUFBO1FBQzVFLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUMvQixDQUFDO0lBRUQsMEJBQTBCO0lBRTFCLDRDQUFrQixHQUFsQixVQUFtQixLQUFZO1FBQzdCLElBQU0sTUFBTSxHQUFHLE1BQU0sQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUE7UUFDckMsSUFBSSxNQUFNLENBQUMsVUFBVSxJQUFJLElBQUksQ0FBQyxVQUFVLEVBQUU7WUFDeEMsT0FBTyxNQUFNLENBQUE7U0FDZDtJQUNILENBQUM7SUFFRCw2Q0FBbUIsR0FBbkIsVUFBb0IsT0FBZ0IsRUFBRSxNQUFjO1FBQ2xELElBQUksQ0FBQyxhQUFhLENBQUMsTUFBTSxDQUFDLENBQUE7SUFDNUIsQ0FBQztJQUVELCtDQUFxQixHQUFyQixVQUFzQixPQUFnQixFQUFFLE1BQWM7UUFDcEQsSUFBSSxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxDQUFBO0lBQy9CLENBQUM7SUFDSCxzQkFBQztBQUFELENBQUMsQUFsRkQsSUFrRkMifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/context.js":
  /*!*********************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/context.js ***!
    \*********************************************************/
  /*! exports provided: Context */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Context", function() { return Context; });
  /* harmony import */ var _binding_observer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./binding_observer */ "./node_modules/@stimulus/core/dist/src/binding_observer.js");
  
  var Context = /** @class */ (function () {
      function Context(module, scope) {
          this.module = module;
          this.scope = scope;
          this.controller = new module.controllerConstructor(this);
          this.bindingObserver = new _binding_observer__WEBPACK_IMPORTED_MODULE_0__["BindingObserver"](this, this.dispatcher);
          try {
              this.controller.initialize();
          }
          catch (error) {
              this.handleError(error, "initializing controller");
          }
      }
      Context.prototype.connect = function () {
          this.bindingObserver.start();
          try {
              this.controller.connect();
          }
          catch (error) {
              this.handleError(error, "connecting controller");
          }
      };
      Context.prototype.disconnect = function () {
          try {
              this.controller.disconnect();
          }
          catch (error) {
              this.handleError(error, "disconnecting controller");
          }
          this.bindingObserver.stop();
      };
      Object.defineProperty(Context.prototype, "application", {
          get: function () {
              return this.module.application;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Context.prototype, "identifier", {
          get: function () {
              return this.module.identifier;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Context.prototype, "schema", {
          get: function () {
              return this.application.schema;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Context.prototype, "dispatcher", {
          get: function () {
              return this.application.dispatcher;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Context.prototype, "element", {
          get: function () {
              return this.scope.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Context.prototype, "parentElement", {
          get: function () {
              return this.element.parentElement;
          },
          enumerable: true,
          configurable: true
      });
      // Error handling
      Context.prototype.handleError = function (error, message, detail) {
          if (detail === void 0) { detail = {}; }
          var _a = this, identifier = _a.identifier, controller = _a.controller, element = _a.element;
          detail = Object.assign({ identifier: identifier, controller: controller, element: element }, detail);
          this.application.handleError(error, "Error " + message, detail);
      };
      return Context;
  }());
  
  //# sourceMappingURL=data:application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RSxvQkFBTyxDQUFTO1FBQ2hELE1BQU0sR0FBRyxNQUFNLENBQUMsTUFBTSxDQUFDLEVBQUUsVUFBVSxZQUFBLEVBQUUsVUFBVSxZQUFBLEVBQUUsT0FBTyxTQUFBLEVBQUUsRUFBRSxNQUFNLENBQUMsQ0FBQTtRQUNuRSxJQUFJLENBQUMsV0FBVyxDQUFDLFdBQVcsQ0FBQyxLQUFLLEVBQUUsV0FBUyxPQUFTLEVBQUUsTUFBTSxDQUFDLENBQUE7SUFDakUsQ0FBQztJQUNILGNBQUM7QUFBRCxDQUFDLEFBdEVELElBc0VDIn0=
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/controller.js":
  /*!************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/controller.js ***!
    \************************************************************/
  /*! exports provided: Controller */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Controller", function() { return Controller; });
  /* harmony import */ var _target_properties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./target_properties */ "./node_modules/@stimulus/core/dist/src/target_properties.js");
  
  var Controller = /** @class */ (function () {
      function Controller(context) {
          this.context = context;
      }
      Controller.bless = function () {
          Object(_target_properties__WEBPACK_IMPORTED_MODULE_0__["defineTargetProperties"])(this);
      };
      Object.defineProperty(Controller.prototype, "application", {
          get: function () {
              return this.context.application;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Controller.prototype, "scope", {
          get: function () {
              return this.context.scope;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Controller.prototype, "element", {
          get: function () {
              return this.scope.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Controller.prototype, "identifier", {
          get: function () {
              return this.scope.identifier;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Controller.prototype, "targets", {
          get: function () {
              return this.scope.targets;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Controller.prototype, "data", {
          get: function () {
              return this.scope.data;
          },
          enumerable: true,
          configurable: true
      });
      Controller.prototype.initialize = function () {
          // Override in your subclass to set up initial controller state
      };
      Controller.prototype.connect = function () {
          // Override in your subclass to respond when the controller is connected to the DOM
      };
      Controller.prototype.disconnect = function () {
          // Override in your subclass to respond when the controller is disconnected from the DOM
      };
      Controller.targets = [];
      return Controller;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250cm9sbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtBLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHFCQUFxQixDQUFBO0FBTzVEO0lBU0Usb0JBQVksT0FBZ0I7UUFDMUIsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUE7SUFDeEIsQ0FBQztJQU5NLGdCQUFLLEdBQVo7UUFDRSxzQkFBc0IsQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUM5QixDQUFDO0lBTUQsc0JBQUksbUNBQVc7YUFBZjtZQUNFLE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQyxXQUFXLENBQUE7UUFDakMsQ0FBQzs7O09BQUE7SUFFRCxzQkFBSSw2QkFBSzthQUFUO1lBQ0UsT0FBTyxJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQTtRQUMzQixDQUFDOzs7T0FBQTtJQUVELHNCQUFJLCtCQUFPO2FBQVg7WUFDRSxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFBO1FBQzNCLENBQUM7OztPQUFBO0lBRUQsc0JBQUksa0NBQVU7YUFBZDtZQUNFLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUE7UUFDOUIsQ0FBQzs7O09BQUE7SUFFRCxzQkFBSSwrQkFBTzthQUFYO1lBQ0UsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQTtRQUMzQixDQUFDOzs7T0FBQTtJQUVELHNCQUFJLDRCQUFJO2FBQVI7WUFDRSxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFBO1FBQ3hCLENBQUM7OztPQUFBO0lBRUQsK0JBQVUsR0FBVjtRQUNFLCtEQUErRDtJQUNqRSxDQUFDO0lBRUQsNEJBQU8sR0FBUDtRQUNFLG1GQUFtRjtJQUNyRixDQUFDO0lBRUQsK0JBQVUsR0FBVjtRQUNFLHdGQUF3RjtJQUMxRixDQUFDO0lBOUNNLGtCQUFPLEdBQWEsRUFBRSxDQUFBO0lBK0MvQixpQkFBQztDQUFBLEFBaERELElBZ0RDO1NBaERZLFVBQVUifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/data_map.js":
  /*!**********************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/data_map.js ***!
    \**********************************************************/
  /*! exports provided: DataMap */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataMap", function() { return DataMap; });
  var DataMap = /** @class */ (function () {
      function DataMap(scope) {
          this.scope = scope;
      }
      Object.defineProperty(DataMap.prototype, "element", {
          get: function () {
              return this.scope.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(DataMap.prototype, "identifier", {
          get: function () {
              return this.scope.identifier;
          },
          enumerable: true,
          configurable: true
      });
      DataMap.prototype.get = function (key) {
          key = this.getFormattedKey(key);
          return this.element.getAttribute(key);
      };
      DataMap.prototype.set = function (key, value) {
          key = this.getFormattedKey(key);
          this.element.setAttribute(key, value);
          return this.get(key);
      };
      DataMap.prototype.has = function (key) {
          key = this.getFormattedKey(key);
          return this.element.hasAttribute(key);
      };
      DataMap.prototype.delete = function (key) {
          if (this.has(key)) {
              key = this.getFormattedKey(key);
              this.element.removeAttribute(key);
              return true;
          }
          else {
              return false;
          }
      };
      DataMap.prototype.getFormattedKey = function (key) {
          return "data-" + this.identifier + "-" + dasherize(key);
      };
      return DataMap;
  }());
  
  function dasherize(value) {
      return value.replace(/([A-Z])/g, function (_, char) { return "-" + char.toLowerCase(); });
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YV9tYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YV9tYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7SUFHRSxpQkFBWSxLQUFZO1FBQ3RCLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFBO0lBQ3BCLENBQUM7SUFFRCxzQkFBSSw0QkFBTzthQUFYO1lBQ0UsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQTtRQUMzQixDQUFDOzs7T0FBQTtJQUVELHNCQUFJLCtCQUFVO2FBQWQ7WUFDRSxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFBO1FBQzlCLENBQUM7OztPQUFBO0lBRUQscUJBQUcsR0FBSCxVQUFJLEdBQVc7UUFDYixHQUFHLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxHQUFHLENBQUMsQ0FBQTtRQUMvQixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsWUFBWSxDQUFDLEdBQUcsQ0FBQyxDQUFBO0lBQ3ZDLENBQUM7SUFFRCxxQkFBRyxHQUFILFVBQUksR0FBVyxFQUFFLEtBQWE7UUFDNUIsR0FBRyxHQUFHLElBQUksQ0FBQyxlQUFlLENBQUMsR0FBRyxDQUFDLENBQUE7UUFDL0IsSUFBSSxDQUFDLE9BQU8sQ0FBQyxZQUFZLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxDQUFBO1FBQ3JDLE9BQU8sSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQTtJQUN0QixDQUFDO0lBRUQscUJBQUcsR0FBSCxVQUFJLEdBQVc7UUFDYixHQUFHLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxHQUFHLENBQUMsQ0FBQTtRQUMvQixPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsWUFBWSxDQUFDLEdBQUcsQ0FBQyxDQUFBO0lBQ3ZDLENBQUM7SUFFRCx3QkFBTSxHQUFOLFVBQU8sR0FBVztRQUNoQixJQUFJLElBQUksQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLEVBQUU7WUFDakIsR0FBRyxHQUFHLElBQUksQ0FBQyxlQUFlLENBQUMsR0FBRyxDQUFDLENBQUE7WUFDL0IsSUFBSSxDQUFDLE9BQU8sQ0FBQyxlQUFlLENBQUMsR0FBRyxDQUFDLENBQUE7WUFDakMsT0FBTyxJQUFJLENBQUE7U0FDWjthQUFNO1lBQ0wsT0FBTyxLQUFLLENBQUE7U0FDYjtJQUNILENBQUM7SUFFTyxpQ0FBZSxHQUF2QixVQUF3QixHQUFXO1FBQ2pDLE9BQU8sVUFBUSxJQUFJLENBQUMsVUFBVSxTQUFJLFNBQVMsQ0FBQyxHQUFHLENBQUcsQ0FBQTtJQUNwRCxDQUFDO0lBQ0gsY0FBQztBQUFELENBQUMsQUE1Q0QsSUE0Q0M7O0FBRUQsbUJBQW1CLEtBQWE7SUFDOUIsT0FBTyxLQUFLLENBQUMsT0FBTyxDQUFDLFVBQVUsRUFBRSxVQUFDLENBQUMsRUFBRSxJQUFJLElBQUssT0FBQSxNQUFJLElBQUksQ0FBQyxXQUFXLEVBQUksRUFBeEIsQ0FBd0IsQ0FBQyxDQUFBO0FBQ3pFLENBQUMifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/definition.js":
  /*!************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/definition.js ***!
    \************************************************************/
  /*! exports provided: blessDefinition */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blessDefinition", function() { return blessDefinition; });
  var __extends = (undefined && undefined.__extends) || (function () {
      var extendStatics = Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
          function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
      return function (d, b) {
          extendStatics(d, b);
          function __() { this.constructor = d; }
          d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
  })();
  /** @hidden */
  function blessDefinition(definition) {
      return {
          identifier: definition.identifier,
          controllerConstructor: blessControllerConstructor(definition.controllerConstructor)
      };
  }
  function blessControllerConstructor(controllerConstructor) {
      var constructor = extend(controllerConstructor);
      constructor.bless();
      return constructor;
  }
  var extend = (function () {
      function extendWithReflect(constructor) {
          function Controller() {
              var _newTarget = this && this instanceof Controller ? this.constructor : void 0;
              return Reflect.construct(constructor, arguments, _newTarget);
          }
          Controller.prototype = Object.create(constructor.prototype, {
              constructor: { value: Controller }
          });
          Reflect.setPrototypeOf(Controller, constructor);
          return Controller;
      }
      function testReflectExtension() {
          var a = function () { this.a.call(this); };
          var b = extendWithReflect(a);
          b.prototype.a = function () { };
          return new b;
      }
      try {
          testReflectExtension();
          return extendWithReflect;
      }
      catch (error) {
          return function (constructor) { return /** @class */ (function (_super) {
              __extends(Controller, _super);
              function Controller() {
                  return _super !== null && _super.apply(this, arguments) || this;
              }
              return Controller;
          }(constructor)); };
      }
  })();
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kZWZpbml0aW9uLnRzI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zlCLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxHQUFHLGNBQVksQ0FBQyxDQUFBO1FBQzdCLE9BQU8sSUFBSSxDQUFDLENBQUE7SUFDZCxDQUFDO0lBRUQsSUFBSTtRQUNGLG9CQUFvQixFQUFFLENBQUE7UUFDdEIsT0FBTyxpQkFBaUIsQ0FBQTtLQUN6QjtJQUFDLE9BQU8sS0FBSyxFQUFFO1FBQ2QsT0FBTyxVQUE0QixXQUFjLElBQUs7WUFBeUIsOEJBQVc7WUFBcEM7O1lBQXNDLENBQUM7WUFBRCxpQkFBQztRQUFELENBQUMsQUFBdkMsQ0FBeUIsV0FBVyxJQUFwQyxDQUF1QyxDQUFBO0tBQzlGO0FBQ0gsQ0FBQyxDQUFDLEVBQUUsQ0FBQSJ9
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/dispatcher.js":
  /*!************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/dispatcher.js ***!
    \************************************************************/
  /*! exports provided: Dispatcher */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dispatcher", function() { return Dispatcher; });
  /* harmony import */ var _event_listener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./event_listener */ "./node_modules/@stimulus/core/dist/src/event_listener.js");
  
  var Dispatcher = /** @class */ (function () {
      function Dispatcher(application) {
          this.application = application;
          this.eventListenerMaps = new Map;
          this.started = false;
      }
      Dispatcher.prototype.start = function () {
          if (!this.started) {
              this.started = true;
              this.eventListeners.forEach(function (eventListener) { return eventListener.connect(); });
          }
      };
      Dispatcher.prototype.stop = function () {
          if (this.started) {
              this.started = false;
              this.eventListeners.forEach(function (eventListener) { return eventListener.disconnect(); });
          }
      };
      Object.defineProperty(Dispatcher.prototype, "eventListeners", {
          get: function () {
              return Array.from(this.eventListenerMaps.values())
                  .reduce(function (listeners, map) { return listeners.concat(Array.from(map.values())); }, []);
          },
          enumerable: true,
          configurable: true
      });
      // Binding observer delegate
      /** @hidden */
      Dispatcher.prototype.bindingConnected = function (binding) {
          this.fetchEventListenerForBinding(binding).bindingConnected(binding);
      };
      /** @hidden */
      Dispatcher.prototype.bindingDisconnected = function (binding) {
          this.fetchEventListenerForBinding(binding).bindingDisconnected(binding);
      };
      // Error handling
      Dispatcher.prototype.handleError = function (error, message, detail) {
          if (detail === void 0) { detail = {}; }
          this.application.handleError(error, "Error " + message, detail);
      };
      Dispatcher.prototype.fetchEventListenerForBinding = function (binding) {
          var eventTarget = binding.eventTarget, eventName = binding.eventName;
          return this.fetchEventListener(eventTarget, eventName);
      };
      Dispatcher.prototype.fetchEventListener = function (eventTarget, eventName) {
          var eventListenerMap = this.fetchEventListenerMapForEventTarget(eventTarget);
          var eventListener = eventListenerMap.get(eventName);
          if (!eventListener) {
              eventListener = this.createEventListener(eventTarget, eventName);
              eventListenerMap.set(eventName, eventListener);
          }
          return eventListener;
      };
      Dispatcher.prototype.createEventListener = function (eventTarget, eventName) {
          var eventListener = new _event_listener__WEBPACK_IMPORTED_MODULE_0__["EventListener"](eventTarget, eventName);
          if (this.started) {
              eventListener.connect();
          }
          return eventListener;
      };
      Dispatcher.prototype.fetchEventListenerMapForEventTarget = function (eventTarget) {
          var eventListenerMap = this.eventListenerMaps.get(eventTarget);
          if (!eventListenerMap) {
              eventListenerMap = new Map;
              this.eventListenerMaps.set(eventTarget, eventListenerMap);
          }
          return eventListenerMap;
      };
      return Dispatcher;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlzcGF0Y2hlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaXNwYXRjaGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ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LElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxXQUFXLEVBQUUsU0FBUyxDQUFDLENBQUE7WUFDaEUsZ0JBQWdCLENBQUMsR0FBRyxDQUFDLFNBQVMsRUFBRSxhQUFhLENBQUMsQ0FBQTtTQUMvQztRQUNELE9BQU8sYUFBYSxDQUFBO0lBQ3RCLENBQUM7SUFFTyx3Q0FBbUIsR0FBM0IsVUFBNEIsV0FBd0IsRUFBRSxTQUFpQjtRQUNyRSxJQUFNLGFBQWEsR0FBRyxJQUFJLGFBQWEsQ0FBQyxXQUFXLEVBQUUsU0FBUyxDQUFDLENBQUE7UUFDL0QsSUFBSSxJQUFJLENBQUMsT0FBTyxFQUFFO1lBQ2hCLGFBQWEsQ0FBQyxPQUFPLEVBQUUsQ0FBQTtTQUN4QjtRQUNELE9BQU8sYUFBYSxDQUFBO0lBQ3RCLENBQUM7SUFFTyx3REFBbUMsR0FBM0MsVUFBNEMsV0FBd0I7UUFDbEUsSUFBSSxnQkFBZ0IsR0FBRyxJQUFJLENBQUMsaUJBQWlCLENBQUMsR0FBRyxDQUFDLFdBQVcsQ0FBQyxDQUFBO1FBQzlELElBQUksQ0FBQyxnQkFBZ0IsRUFBRTtZQUNyQixnQkFBZ0IsR0FBRyxJQUFJLEdBQUcsQ0FBQTtZQUMxQixJQUFJLENBQUMsaUJBQWlCLENBQUMsR0FBRyxDQUFDLFdBQVcsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFBO1NBQzFEO1FBQ0QsT0FBTyxnQkFBZ0IsQ0FBQTtJQUN6QixDQUFDO0lBQ0gsaUJBQUM7QUFBRCxDQUFDLEFBL0VELElBK0VDIn0=
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/event_listener.js":
  /*!****************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/event_listener.js ***!
    \****************************************************************/
  /*! exports provided: EventListener */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventListener", function() { return EventListener; });
  var EventListener = /** @class */ (function () {
      function EventListener(eventTarget, eventName) {
          this.eventTarget = eventTarget;
          this.eventName = eventName;
          this.unorderedBindings = new Set;
      }
      EventListener.prototype.connect = function () {
          this.eventTarget.addEventListener(this.eventName, this, false);
      };
      EventListener.prototype.disconnect = function () {
          this.eventTarget.removeEventListener(this.eventName, this, false);
      };
      // Binding observer delegate
      /** @hidden */
      EventListener.prototype.bindingConnected = function (binding) {
          this.unorderedBindings.add(binding);
      };
      /** @hidden */
      EventListener.prototype.bindingDisconnected = function (binding) {
          this.unorderedBindings.delete(binding);
      };
      EventListener.prototype.handleEvent = function (event) {
          var extendedEvent = extendEvent(event);
          for (var _i = 0, _a = this.bindings; _i < _a.length; _i++) {
              var binding = _a[_i];
              if (extendedEvent.immediatePropagationStopped) {
                  break;
              }
              else {
                  binding.handleEvent(extendedEvent);
              }
          }
      };
      Object.defineProperty(EventListener.prototype, "bindings", {
          get: function () {
              return Array.from(this.unorderedBindings).sort(function (left, right) {
                  var leftIndex = left.index, rightIndex = right.index;
                  return leftIndex < rightIndex ? -1 : leftIndex > rightIndex ? 1 : 0;
              });
          },
          enumerable: true,
          configurable: true
      });
      return EventListener;
  }());
  
  function extendEvent(event) {
      if ("immediatePropagationStopped" in event) {
          return event;
      }
      else {
          var stopImmediatePropagation_1 = event.stopImmediatePropagation;
          return Object.assign(event, {
              immediatePropagationStopped: false,
              stopImmediatePropagation: function () {
                  this.immediatePropagationStopped = true;
                  stopImmediatePropagation_1.call(this);
              }
          });
      }
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRfbGlzdGVuZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXZlbnRfbGlzdGVuZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7SUFLRSx1QkF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/***/ "./node_modules/@stimulus/core/dist/src/module.js":
  /*!********************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/module.js ***!
    \********************************************************/
  /*! exports provided: Module */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Module", function() { return Module; });
  /* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./context */ "./node_modules/@stimulus/core/dist/src/context.js");
  /* harmony import */ var _definition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./definition */ "./node_modules/@stimulus/core/dist/src/definition.js");
  
  
  var Module = /** @class */ (function () {
      function Module(application, definition) {
          this.application = application;
          this.definition = Object(_definition__WEBPACK_IMPORTED_MODULE_1__["blessDefinition"])(definition);
          this.contextsByScope = new WeakMap;
          this.connectedContexts = new Set;
      }
      Object.defineProperty(Module.prototype, "identifier", {
          get: function () {
              return this.definition.identifier;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Module.prototype, "controllerConstructor", {
          get: function () {
              return this.definition.controllerConstructor;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Module.prototype, "contexts", {
          get: function () {
              return Array.from(this.connectedContexts);
          },
          enumerable: true,
          configurable: true
      });
      Module.prototype.connectContextForScope = function (scope) {
          var context = this.fetchContextForScope(scope);
          this.connectedContexts.add(context);
          context.connect();
      };
      Module.prototype.disconnectContextForScope = function (scope) {
          var context = this.contextsByScope.get(scope);
          if (context) {
              this.connectedContexts.delete(context);
              context.disconnect();
          }
      };
      Module.prototype.fetchContextForScope = function (scope) {
          var context = this.contextsByScope.get(scope);
          if (!context) {
              context = new _context__WEBPACK_IMPORTED_MODULE_0__["Context"](this, scope);
              this.contextsByScope.set(scope, context);
          }
          return context;
      };
      return Module;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWx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QUFPLENBQUMsT0FBTyxFQUFFLENBQUE7SUFDbkIsQ0FBQztJQUVELDBDQUF5QixHQUF6QixVQUEwQixLQUFZO1FBQ3BDLElBQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxlQUFlLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFBO1FBQy9DLElBQUksT0FBTyxFQUFFO1lBQ1gsSUFBSSxDQUFDLGlCQUFpQixDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQTtZQUN0QyxPQUFPLENBQUMsVUFBVSxFQUFFLENBQUE7U0FDckI7SUFDSCxDQUFDO0lBRU8scUNBQW9CLEdBQTVCLFVBQTZCLEtBQVk7UUFDdkMsSUFBSSxPQUFPLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUE7UUFDN0MsSUFBSSxDQUFDLE9BQU8sRUFBRTtZQUNaLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUE7WUFDbEMsSUFBSSxDQUFDLGVBQWUsQ0FBQyxHQUFHLENBQUMsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFBO1NBQ3pDO1FBQ0QsT0FBTyxPQUFPLENBQUE7SUFDaEIsQ0FBQztJQUNILGFBQUM7QUFBRCxDQUFDLEFBL0NELElBK0NDIn0=
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/router.js":
  /*!********************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/router.js ***!
    \********************************************************/
  /*! exports provided: Router */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return Router; });
  /* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./module */ "./node_modules/@stimulus/core/dist/src/module.js");
  /* harmony import */ var _stimulus_multimap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @stimulus/multimap */ "./node_modules/@stimulus/multimap/dist/index.js");
  /* harmony import */ var _scope_observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./scope_observer */ "./node_modules/@stimulus/core/dist/src/scope_observer.js");
  
  
  
  var Router = /** @class */ (function () {
      function Router(application) {
          this.application = application;
          this.scopeObserver = new _scope_observer__WEBPACK_IMPORTED_MODULE_2__["ScopeObserver"](this.element, this.schema, this);
          this.scopesByIdentifier = new _stimulus_multimap__WEBPACK_IMPORTED_MODULE_1__["Multimap"];
          this.modulesByIdentifier = new Map;
      }
      Object.defineProperty(Router.prototype, "element", {
          get: function () {
              return this.application.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Router.prototype, "schema", {
          get: function () {
              return this.application.schema;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Router.prototype, "controllerAttribute", {
          get: function () {
              return this.schema.controllerAttribute;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Router.prototype, "modules", {
          get: function () {
              return Array.from(this.modulesByIdentifier.values());
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Router.prototype, "contexts", {
          get: function () {
              return this.modules.reduce(function (contexts, module) { return contexts.concat(module.contexts); }, []);
          },
          enumerable: true,
          configurable: true
      });
      Router.prototype.start = function () {
          this.scopeObserver.start();
      };
      Router.prototype.stop = function () {
          this.scopeObserver.stop();
      };
      Router.prototype.loadDefinition = function (definition) {
          this.unloadIdentifier(definition.identifier);
          var module = new _module__WEBPACK_IMPORTED_MODULE_0__["Module"](this.application, definition);
          this.connectModule(module);
      };
      Router.prototype.unloadIdentifier = function (identifier) {
          var module = this.modulesByIdentifier.get(identifier);
          if (module) {
              this.disconnectModule(module);
          }
      };
      Router.prototype.getContextForElementAndIdentifier = function (element, identifier) {
          var module = this.modulesByIdentifier.get(identifier);
          if (module) {
              return module.contexts.find(function (context) { return context.element == element; });
          }
      };
      // Error handler delegate
      /** @hidden */
      Router.prototype.handleError = function (error, message, detail) {
          this.application.handleError(error, message, detail);
      };
      // Scope observer delegate
      /** @hidden */
      Router.prototype.scopeConnected = function (scope) {
          this.scopesByIdentifier.add(scope.identifier, scope);
          var module = this.modulesByIdentifier.get(scope.identifier);
          if (module) {
              module.connectContextForScope(scope);
          }
      };
      /** @hidden */
      Router.prototype.scopeDisconnected = function (scope) {
          this.scopesByIdentifier.delete(scope.identifier, scope);
          var module = this.modulesByIdentifier.get(scope.identifier);
          if (module) {
              module.disconnectContextForScope(scope);
          }
      };
      // Modules
      Router.prototype.connectModule = function (module) {
          this.modulesByIdentifier.set(module.identifier, module);
          var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);
          scopes.forEach(function (scope) { return module.connectContextForScope(scope); });
      };
      Router.prototype.disconnectModule = function (module) {
          this.modulesByIdentifier.delete(module.identifier);
          var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);
          scopes.forEach(function (scope) { return module.disconnectContextForScope(scope); });
      };
      return Router;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3JvdXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sVUFBVSxDQUFBO0FBQ2pDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQTtBQUc3QyxPQUFPLEVBQUUsYUFBYSxFQUF5QixNQUFNLGtCQUFrQixDQUFBO0FBRXZFO0lBTUUsZ0JBQVksV0FBd0I7UUFDbEMsSUFBSSxDQUFDLFdBQVcsR0FBRyxXQUFXLENBQUE7UUFDOUIsSUFBSSxDQUFDLGFBQWEsR0FBRyxJQUFJLGFBQWEsQ0FBQyxJQUFJLENBQUMsT0FB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QU0sQ0FBQyxPQUFPLENBQUMsVUFBQSxLQUFLLElBQUksT0FBQSxNQUFNLENBQUMsc0JBQXNCLENBQUMsS0FBSyxDQUFDLEVBQXBDLENBQW9DLENBQUMsQ0FBQTtJQUMvRCxDQUFDO0lBRU8saUNBQWdCLEdBQXhCLFVBQXlCLE1BQWM7UUFDckMsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUE7UUFDbEQsSUFBTSxNQUFNLEdBQUcsSUFBSSxDQUFDLGtCQUFrQixDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUE7UUFDekUsTUFBTSxDQUFDLE9BQU8sQ0FBQyxVQUFBLEtBQUssSUFBSSxPQUFBLE1BQU0sQ0FBQyx5QkFBeUIsQ0FBQyxLQUFLLENBQUMsRUFBdkMsQ0FBdUMsQ0FBQyxDQUFBO0lBQ2xFLENBQUM7SUFDSCxhQUFDO0FBQUQsQ0FBQyxBQXJHRCxJQXFHQyJ9
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/schema.js":
  /*!********************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/schema.js ***!
    \********************************************************/
  /*! exports provided: defaultSchema */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultSchema", function() { return defaultSchema; });
  var defaultSchema = {
      controllerAttribute: "data-controller",
      actionAttribute: "data-action",
      targetAttribute: "data-target"
  };
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNQSxNQUFNLENBQUMsSUFBTSxhQUFhLEdBQVc7SUFDbkMsbUJBQW1CLEVBQUUsaUJBQWlCO0lBQ3RDLGVBQWUsRUFBRSxhQUFhO0lBQzlCLGVBQWUsRUFBRSxhQUFhO0NBQy9CLENBQUEifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/scope.js":
  /*!*******************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/scope.js ***!
    \*******************************************************/
  /*! exports provided: Scope */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Scope", function() { return Scope; });
  /* harmony import */ var _data_map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data_map */ "./node_modules/@stimulus/core/dist/src/data_map.js");
  /* harmony import */ var _target_set__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./target_set */ "./node_modules/@stimulus/core/dist/src/target_set.js");
  /* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./selectors */ "./node_modules/@stimulus/core/dist/src/selectors.js");
  
  
  
  var Scope = /** @class */ (function () {
      function Scope(schema, identifier, element) {
          this.schema = schema;
          this.identifier = identifier;
          this.element = element;
          this.targets = new _target_set__WEBPACK_IMPORTED_MODULE_1__["TargetSet"](this);
          this.data = new _data_map__WEBPACK_IMPORTED_MODULE_0__["DataMap"](this);
      }
      Scope.prototype.findElement = function (selector) {
          return this.findAllElements(selector)[0];
      };
      Scope.prototype.findAllElements = function (selector) {
          var head = this.element.matches(selector) ? [this.element] : [];
          var tail = this.filterElements(Array.from(this.element.querySelectorAll(selector)));
          return head.concat(tail);
      };
      Scope.prototype.filterElements = function (elements) {
          var _this = this;
          return elements.filter(function (element) { return _this.containsElement(element); });
      };
      Scope.prototype.containsElement = function (element) {
          return element.closest(this.controllerSelector) === this.element;
      };
      Object.defineProperty(Scope.prototype, "controllerSelector", {
          get: function () {
              return Object(_selectors__WEBPACK_IMPORTED_MODULE_2__["attributeValueContainsToken"])(this.schema.controllerAttribute, this.identifier);
          },
          enumerable: true,
          configurable: true
      });
      return Scope;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NvcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2NvcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFlBQVksQ0FBQTtBQUVwQyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQ3hDLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLGFBQWEsQ0FBQTtBQUV6RDtJQU9FLGVBQVksTUFBYyxFQUFFLFVBQWtCLEVBQUUsT0FBZ0I7UUFDOUQsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUE7UUFDcEIsSUFBSSxDQUFDLFVBQVUsR0FBRyxVQUFVLENBQUE7UUFDNUIsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUE7UUFDdEIsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLFNBQVMsQ0FBQyxJQUFJLENBQUMsQ0FBQTtRQUNsQyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFBO0lBQy9CLENBQUM7SUFFRCwyQkFBVyxHQUFYLFVBQVksUUFBZ0I7UUFDMUIsT0FBTyxJQUFJLENBQUMsZUFBZSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQzFDLENBQUM7SUFFRCwrQkFBZSxHQUFmLFVBQWdCLFFBQWdCO1FBQzlCLElBQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFBO1FBQ2pFLElBQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxjQUFjLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLGdCQUFnQixDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUNyRixPQUFPLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDMUIsQ0FBQztJQUVELDhCQUFjLEdBQWQsVUFBZSxRQUFtQjtRQUFsQyxpQkFFQztRQURDLE9BQU8sUUFBUSxDQUFDLE1BQU0sQ0FBQyxVQUFBLE9BQU8sSUFBSSxPQUFBLEtBQUksQ0FBQyxlQUFlLENBQUMsT0FBTyxDQUFDLEVBQTdCLENBQTZCLENBQUMsQ0FBQTtJQUNsRSxDQUFDO0lBRUQsK0JBQWUsR0FBZixVQUFnQixPQUFnQjtRQUM5QixPQUFPLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLGtCQUFrQixDQUFDLEtBQUssSUFBSSxDQUFDLE9BQU8sQ0FBQTtJQUNsRSxDQUFDO0lBRUQsc0JBQVkscUNBQWtCO2FBQTlCO1lBQ0UsT0FBTywyQkFBMkIsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLG1CQUFtQixFQUFFLElBQUksQ0FBQyxVQUFVLENBQUMsQ0FBQTtRQUN0RixDQUFDOzs7T0FBQTtJQUNILFlBQUM7QUFBRCxDQUFDLEFBcENELElBb0NDIn0=
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/scope_observer.js":
  /*!****************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/scope_observer.js ***!
    \****************************************************************/
  /*! exports provided: ScopeObserver */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScopeObserver", function() { return ScopeObserver; });
  /* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scope */ "./node_modules/@stimulus/core/dist/src/scope.js");
  /* harmony import */ var _stimulus_mutation_observers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @stimulus/mutation-observers */ "./node_modules/@stimulus/mutation-observers/dist/index.js");
  
  
  var ScopeObserver = /** @class */ (function () {
      function ScopeObserver(element, schema, delegate) {
          this.element = element;
          this.schema = schema;
          this.delegate = delegate;
          this.valueListObserver = new _stimulus_mutation_observers__WEBPACK_IMPORTED_MODULE_1__["ValueListObserver"](this.element, this.controllerAttribute, this);
          this.scopesByIdentifierByElement = new WeakMap;
          this.scopeReferenceCounts = new WeakMap;
      }
      ScopeObserver.prototype.start = function () {
          this.valueListObserver.start();
      };
      ScopeObserver.prototype.stop = function () {
          this.valueListObserver.stop();
      };
      Object.defineProperty(ScopeObserver.prototype, "controllerAttribute", {
          get: function () {
              return this.schema.controllerAttribute;
          },
          enumerable: true,
          configurable: true
      });
      // Value observer delegate
      /** @hidden */
      ScopeObserver.prototype.parseValueForToken = function (token) {
          var element = token.element, identifier = token.content;
          var scopesByIdentifier = this.fetchScopesByIdentifierForElement(element);
          var scope = scopesByIdentifier.get(identifier);
          if (!scope) {
              scope = new _scope__WEBPACK_IMPORTED_MODULE_0__["Scope"](this.schema, identifier, element);
              scopesByIdentifier.set(identifier, scope);
          }
          return scope;
      };
      /** @hidden */
      ScopeObserver.prototype.elementMatchedValue = function (element, value) {
          var referenceCount = (this.scopeReferenceCounts.get(value) || 0) + 1;
          this.scopeReferenceCounts.set(value, referenceCount);
          if (referenceCount == 1) {
              this.delegate.scopeConnected(value);
          }
      };
      /** @hidden */
      ScopeObserver.prototype.elementUnmatchedValue = function (element, value) {
          var referenceCount = this.scopeReferenceCounts.get(value);
          if (referenceCount) {
              this.scopeReferenceCounts.set(value, referenceCount - 1);
              if (referenceCount == 1) {
                  this.delegate.scopeDisconnected(value);
              }
          }
      };
      ScopeObserver.prototype.fetchScopesByIdentifierForElement = function (element) {
          var scopesByIdentifier = this.scopesByIdentifierByElement.get(element);
          if (!scopesByIdentifier) {
              scopesByIdentifier = new Map;
              this.scopesByIdentifierByElement.set(element, scopesByIdentifier);
          }
          return scopesByIdentifier;
      };
      return ScopeObserver;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NvcGVfb2JzZXJ2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2NvcGVfb2JzZXJ2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLFNBQVMsQ0FBQTtBQUMvQixPQUFPLEVBQVMsaUJBQWlCLEVBQTZCLE1BQU0sOEJBQThCLENBQUE7QUFPbEc7SUFRRSx1QkFBWSxPQUFnQixFQUFFLE1BQWMsRUFBRSxRQUErQjtRQUMzRSxJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQTtRQUN0QixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQTtRQUNwQixJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQTtRQUN4QixJQUFJLENBQUMsaUJBQWlCLEdBQUcsSUFBSSxpQkFBaUIsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLElBQUksQ0FBQyxtQkFBbUIsRUFBRSxJQUFJLENBQUMsQ0FBQTtRQUM1RixJQUFJLENBQUMsMkJBQTJCLEdBQUcsSUFBSSxPQUFPLENBQUE7UUFDOUMsSUFBSSxDQUFDLG9CQUFvQixHQUFHLElBQUksT0FBTyxDQUFBO0lBQ3pDLENBQUM7SUFFRCw2QkFBSyxHQUFMO1FBQ0UsSUFBSSxDQUFDLGlCQUFpQixDQUFDLEt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wRCxJQUFJLGNBQWMsSUFBSSxDQUFDLEVBQUU7WUFDdkIsSUFBSSxDQUFDLFFBQVEsQ0FBQyxjQUFjLENBQUMsS0FBSyxDQUFDLENBQUE7U0FDcEM7SUFDSCxDQUFDO0lBRUQsY0FBYztJQUNkLDZDQUFxQixHQUFyQixVQUFzQixPQUFnQixFQUFFLEtBQVk7UUFDbEQsSUFBTSxjQUFjLEdBQUcsSUFBSSxDQUFDLG9CQUFvQixDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQTtRQUMzRCxJQUFJLGNBQWMsRUFBRTtZQUNsQixJQUFJLENBQUMsb0JBQW9CLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxjQUFjLEdBQUcsQ0FBQyxDQUFDLENBQUE7WUFDeEQsSUFBSSxjQUFjLElBQUksQ0FBQyxFQUFFO2dCQUN2QixJQUFJLENBQUMsUUFBUSxDQUFDLGlCQUFpQixDQUFDLEtBQUssQ0FBQyxDQUFBO2FBQ3ZDO1NBQ0Y7SUFDSCxDQUFDO0lBRU8seURBQWlDLEdBQXpDLFVBQTBDLE9BQWdCO1FBQ3hELElBQUksa0JBQWtCLEdBQUcsSUFBSSxDQUFDLDJCQUEyQixDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQTtRQUN0RSxJQUFJLENBQUMsa0JBQWtCLEVBQUU7WUFDdkIsa0JBQWtCLEdBQUcsSUFBSSxHQUFHLENBQUE7WUFDNUIsSUFBSSxDQUFDLDJCQUEyQixDQUFDLEdBQUcsQ0FBQyxPQUFPLEVBQUUsa0JBQWtCLENBQUMsQ0FBQTtTQUNsRTtRQUNELE9BQU8sa0JBQWtCLENBQUE7SUFDM0IsQ0FBQztJQUNILG9CQUFDO0FBQUQsQ0FBQyxBQXpFRCxJQXlFQyJ9
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/selectors.js":
  /*!***********************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/selectors.js ***!
    \***********************************************************/
  /*! exports provided: attributeValueContainsToken */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "attributeValueContainsToken", function() { return attributeValueContainsToken; });
  /** @hidden */
  function attributeValueContainsToken(attributeName, token) {
      return "[" + attributeName + "~=\"" + token + "\"]";
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0b3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NlbGVjdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjO0FBQ2QsTUFBTSxzQ0FBc0MsYUFBcUIsRUFBRSxLQUFhO0lBQzlFLE9BQU8sTUFBSSxhQUFhLFlBQU0sS0FBSyxRQUFJLENBQUE7QUFDekMsQ0FBQyJ9
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/core/dist/src/target_properties.js":
  /*!*******************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/target_properties.js ***!
    \*******************************************************************/
  /*! exports provided: defineTargetProperties */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defineTargetProperties", function() { return defineTargetProperties; });
  /** @hidden */
  function defineTargetProperties(constructor) {
      var prototype = constructor.prototype;
      var targetNames = getTargetNamesForConstructor(constructor);
      targetNames.forEach(function (name) {
          var _a;
          return defineLinkedProperties(prototype, (_a = {},
              _a[name + "Target"] = {
                  get: function () {
                      var target = this.targets.find(name);
                      if (target) {
                          return target;
                      }
                      else {
                          throw new Error("Missing target element \"" + this.identifier + "." + name + "\"");
                      }
                  }
              },
              _a[name + "Targets"] = {
                  get: function () {
                      return this.targets.findAll(name);
                  }
              },
              _a["has" + capitalize(name) + "Target"] = {
                  get: function () {
                      return this.targets.has(name);
                  }
              },
              _a));
      });
  }
  function getTargetNamesForConstructor(constructor) {
      var ancestors = getAncestorsForConstructor(constructor);
      return Array.from(ancestors.reduce(function (targetNames, constructor) {
          getOwnTargetNamesForConstructor(constructor).forEach(function (name) { return targetNames.add(name); });
          return targetNames;
      }, new Set));
  }
  function getAncestorsForConstructor(constructor) {
      var ancestors = [];
      while (constructor) {
          ancestors.push(constructor);
          constructor = Object.getPrototypeOf(constructor);
      }
      return ancestors;
  }
  function getOwnTargetNamesForConstructor(constructor) {
      var definition = constructor["targets"];
      return Array.isArray(definition) ? definition : [];
  }
  function defineLinkedProperties(object, properties) {
      Object.keys(properties).forEach(function (name) {
          if (!(name in object)) {
              var descriptor = properties[name];
              Object.defineProperty(object, name, descriptor);
          }
      });
  }
  function capitalize(name) {
      return name.charAt(0).toUpperCase() + name.slice(1);
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFyZ2V0X3Byb3BlcnRpZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdGFyZ2V0X3Byb3BlcnRpZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsY0FBYztBQUNkLE1BQU0saUNBQWlDLFdBQXFCO0lBQzFELElBQU0sU0FBUyxHQUFHLFdBQVcsQ0FBQyxTQUFTLENBQUE7SUFDdkMsSUFBTSxXQUFXLEdBQUcsNEJBQTRCLENBQUMsV0FBVyxDQUFDLENBQUE7SUFDN0QsV0FBVyxDQUFDLE9BQU8sQ0FBQyxVQUFBLElBQUk7O1FBQUksT0FBQSxzQkFBc0IsQ0FBQyxTQUFTO1lBQzFELEdBQUksSUFBSSxXQUFRLElBQUc7Z0JBQ2pCLEdBQUc7b0JBQ0QsSUFBTSxNQUFNLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUE7b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":
  /*!************************************************************!*\
    !*** ./node_modules/@stimulus/core/dist/src/target_set.js ***!
    \************************************************************/
  /*! exports provided: TargetSet */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TargetSet", function() { return TargetSet; });
  /* harmony import */ var _selectors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./selectors */ "./node_modules/@stimulus/core/dist/src/selectors.js");
  
  var TargetSet = /** @class */ (function () {
      function TargetSet(scope) {
          this.scope = scope;
      }
      Object.defineProperty(TargetSet.prototype, "element", {
          get: function () {
              return this.scope.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(TargetSet.prototype, "identifier", {
          get: function () {
              return this.scope.identifier;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(TargetSet.prototype, "schema", {
          get: function () {
              return this.scope.schema;
          },
          enumerable: true,
          configurable: true
      });
      TargetSet.prototype.has = function (targetName) {
          return this.find(targetName) != null;
      };
      TargetSet.prototype.find = function () {
          var targetNames = [];
          for (var _i = 0; _i < arguments.length; _i++) {
              targetNames[_i] = arguments[_i];
          }
          var selector = this.getSelectorForTargetNames(targetNames);
          return this.scope.findElement(selector);
      };
      TargetSet.prototype.findAll = function () {
          var targetNames = [];
          for (var _i = 0; _i < arguments.length; _i++) {
              targetNames[_i] = arguments[_i];
          }
          var selector = this.getSelectorForTargetNames(targetNames);
          return this.scope.findAllElements(selector);
      };
      TargetSet.prototype.getSelectorForTargetNames = function (targetNames) {
          var _this = this;
          return targetNames.map(function (targetName) { return _this.getSelectorForTargetName(targetName); }).join(", ");
      };
      TargetSet.prototype.getSelectorForTargetName = function (targetName) {
          var targetDescriptor = this.identifier + "." + targetName;
          return Object(_selectors__WEBPACK_IMPORTED_MODULE_0__["attributeValueContainsToken"])(this.schema.targetAttribute, targetDescriptor);
      };
      return TargetSet;
  }());
  
  //# sourceMappingURL=data:application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VEscUJBQXdCO2FBQXhCLFVBQXdCLEVBQXhCLHFCQUF3QixFQUF4QixJQUF3QjtZQUF4QixnQ0FBd0I7O1FBQzlCLElBQU0sUUFBUSxHQUFHLElBQUksQ0FBQyx5QkFBeUIsQ0FBQyxXQUFXLENBQUMsQ0FBQTtRQUM1RCxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsZUFBZSxDQUFDLFFBQVEsQ0FBQyxDQUFBO0lBQzdDLENBQUM7SUFFTyw2Q0FBeUIsR0FBakMsVUFBa0MsV0FBcUI7UUFBdkQsaUJBRUM7UUFEQyxPQUFPLFdBQVcsQ0FBQyxHQUFHLENBQUMsVUFBQSxVQUFVLElBQUksT0FBQSxLQUFJLENBQUMsd0JBQXdCLENBQUMsVUFBVSxDQUFDLEVBQXpDLENBQXlDLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDNUYsQ0FBQztJQUVPLDRDQUF3QixHQUFoQyxVQUFpQyxVQUFrQjtRQUNqRCxJQUFNLGdCQUFnQixHQUFNLElBQUksQ0FBQyxVQUFVLFNBQUksVUFBWSxDQUFBO1FBQzNELE9BQU8sMkJBQTJCLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxlQUFlLEVBQUUsZ0JBQWdCLENBQUMsQ0FBQTtJQUNuRixDQUFDO0lBQ0gsZ0JBQUM7QUFBRCxDQUFDLEFBekNELElBeUNDIn0=
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/multimap/dist/index.js":
  /*!*******************************************************!*\
    !*** ./node_modules/@stimulus/multimap/dist/index.js ***!
    \*******************************************************/
  /*! exports provided: Multimap, IndexedMultimap */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var _src_multimap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/multimap */ "./node_modules/@stimulus/multimap/dist/src/multimap.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Multimap", function() { return _src_multimap__WEBPACK_IMPORTED_MODULE_0__["Multimap"]; });
  
  /* harmony import */ var _src_indexed_multimap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/indexed_multimap */ "./node_modules/@stimulus/multimap/dist/src/indexed_multimap.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IndexedMultimap", function() { return _src_indexed_multimap__WEBPACK_IMPORTED_MODULE_1__["IndexedMultimap"]; });
  
  
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGdCQUFnQixDQUFBO0FBQzlCLGNBQWMsd0JBQXdCLENBQUEifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/multimap/dist/src/indexed_multimap.js":
  /*!**********************************************************************!*\
    !*** ./node_modules/@stimulus/multimap/dist/src/indexed_multimap.js ***!
    \**********************************************************************/
  /*! exports provided: IndexedMultimap */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndexedMultimap", function() { return IndexedMultimap; });
  /* harmony import */ var _multimap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./multimap */ "./node_modules/@stimulus/multimap/dist/src/multimap.js");
  /* harmony import */ var _set_operations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./set_operations */ "./node_modules/@stimulus/multimap/dist/src/set_operations.js");
  var __extends = (undefined && undefined.__extends) || (function () {
      var extendStatics = Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
          function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
      return function (d, b) {
          extendStatics(d, b);
          function __() { this.constructor = d; }
          d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
  })();
  
  
  var IndexedMultimap = /** @class */ (function (_super) {
      __extends(IndexedMultimap, _super);
      function IndexedMultimap() {
          var _this = _super.call(this) || this;
          _this.keysByValue = new Map;
          return _this;
      }
      Object.defineProperty(IndexedMultimap.prototype, "values", {
          get: function () {
              return Array.from(this.keysByValue.keys());
          },
          enumerable: true,
          configurable: true
      });
      IndexedMultimap.prototype.add = function (key, value) {
          _super.prototype.add.call(this, key, value);
          Object(_set_operations__WEBPACK_IMPORTED_MODULE_1__["add"])(this.keysByValue, value, key);
      };
      IndexedMultimap.prototype.delete = function (key, value) {
          _super.prototype.delete.call(this, key, value);
          Object(_set_operations__WEBPACK_IMPORTED_MODULE_1__["del"])(this.keysByValue, value, key);
      };
      IndexedMultimap.prototype.hasValue = function (value) {
          return this.keysByValue.has(value);
      };
      IndexedMultimap.prototype.getKeysForValue = function (value) {
          var set = this.keysByValue.get(value);
          return set ? Array.from(set) : [];
      };
      return IndexedMultimap;
  }(_multimap__WEBPACK_IMPORTED_MODULE_0__["Multimap"]));
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXhlZF9tdWx0aW1hcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleGVkX211bHRpbWFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sWUFBWSxDQUFBO0FBQ3JDLE9BQU8sRUFBRSxHQUFHLEVBQUUsR0FBRyxFQUFFLE1BQU0sa0JBQWtCLENBQUE7QUFFM0M7SUFBMkMsbUNBQWM7SUFHdkQ7UUFBQSxZQUNFLGlCQUFPLFNBRVI7UUFEQyxLQUFJLENBQUMsV0FBVyxHQUFHL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
  /***/ "./node_modules/@stimulus/multimap/dist/src/multimap.js":
  /*!**************************************************************!*\
    !*** ./node_modules/@stimulus/multimap/dist/src/multimap.js ***!
    \**************************************************************/
  /*! exports provided: Multimap */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Multimap", function() { return Multimap; });
  /* harmony import */ var _set_operations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./set_operations */ "./node_modules/@stimulus/multimap/dist/src/set_operations.js");
  
  var Multimap = /** @class */ (function () {
      function Multimap() {
          this.valuesByKey = new Map();
      }
      Object.defineProperty(Multimap.prototype, "values", {
          get: function () {
              var sets = Array.from(this.valuesByKey.values());
              return sets.reduce(function (values, set) { return values.concat(Array.from(set)); }, []);
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(Multimap.prototype, "size", {
          get: function () {
              var sets = Array.from(this.valuesByKey.values());
              return sets.reduce(function (size, set) { return size + set.size; }, 0);
          },
          enumerable: true,
          configurable: true
      });
      Multimap.prototype.add = function (key, value) {
          Object(_set_operations__WEBPACK_IMPORTED_MODULE_0__["add"])(this.valuesByKey, key, value);
      };
      Multimap.prototype.delete = function (key, value) {
          Object(_set_operations__WEBPACK_IMPORTED_MODULE_0__["del"])(this.valuesByKey, key, value);
      };
      Multimap.prototype.has = function (key, value) {
          var values = this.valuesByKey.get(key);
          return values != null && values.has(value);
      };
      Multimap.prototype.hasKey = function (key) {
          return this.valuesByKey.has(key);
      };
      Multimap.prototype.hasValue = function (value) {
          var sets = Array.from(this.valuesByKey.values());
          return sets.some(function (set) { return set.has(value); });
      };
      Multimap.prototype.getValuesForKey = function (key) {
          var values = this.valuesByKey.get(key);
          return values ? Array.from(values) : [];
      };
      Multimap.prototype.getKeysForValue = function (value) {
          return Array.from(this.valuesByKey)
              .filter(function (_a) {
              var key = _a[0], values = _a[1];
              return values.has(value);
          })
              .map(function (_a) {
              var key = _a[0], values = _a[1];
              return key;
          });
      };
      return Multimap;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGltYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbXVsdGltYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLEdBQUcsRUFBRSxHQUFHLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQTtBQUUzQztJQUdFO1FBQ0UsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLEdBQUcsRUFBYSxDQUFBO0lBQ3pDLENBQUM7SUFFRCxzQkFBSSw0QkFBTTthQUFWO1lBQ0UsSUFBTSxJQUFJLEdBQUcsS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLE1BQU0sRUFBRSxDQUFDLENBQUE7WUFDbEQsT0FBTyxJQUFJLENBQUMsTUFBTSxDQUFDLFVBQUMsTUFBTSxFQUFFLEdBQUcsSUFBSyxPQUFBLE1BQU0sQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxFQUE5QixDQUE4QixFQUFRLEVBQUUsQ0FBQyxDQUFBO1FBQy9FLENBQUM7OztPQUFBO0lBRUQsc0JBQUksMEJBQUk7YUFBUjtZQUNFLElBQU0sSUFBSSxHQUFHLEtBQUssQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFBO1lBQ2xELE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQyxVQUFDLElBQUksRUFBRSxHQUFHLElBQUssT0FBQSxJQUFJLEdBQUcsR0FBRyxDQUFDLElBQUksRUFBZixDQUFlLEVBQUUsQ0FBQyxDQUFDLENBQUE7UUFDdkQsQ0FBQzs7O09BQUE7SUFFRC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DLENBQUE7UUFDeEMsT0FBTyxNQUFNLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQTtJQUN6QyxDQUFDO0lBRUQsa0NBQWUsR0FBZixVQUFnQixLQUFRO1FBQ3RCLE9BQU8sS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDO2FBQ2hDLE1BQU0sQ0FBQyxVQUFDLEVBQWE7Z0JBQVosV0FBRyxFQUFFLGNBQU07WUFBTSxPQUFBLE1BQU0sQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDO1FBQWpCLENBQWlCLENBQUM7YUFDNUMsR0FBRyxDQUFDLFVBQUMsRUFBYTtnQkFBWixXQUFHLEVBQUUsY0FBTTtZQUFNLE9BQUEsR0FBRztRQUFILENBQUcsQ0FBQyxDQUFBO0lBQ2hDLENBQUM7SUFDSCxlQUFDO0FBQUQsQ0FBQyxBQWpERCxJQWlEQyJ9
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/multimap/dist/src/set_operations.js":
  /*!********************************************************************!*\
    !*** ./node_modules/@stimulus/multimap/dist/src/set_operations.js ***!
    \********************************************************************/
  /*! exports provided: add, del, fetch, prune */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "add", function() { return add; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "del", function() { return del; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fetch", function() { return fetch; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prune", function() { return prune; });
  function add(map, key, value) {
      fetch(map, key).add(value);
  }
  function del(map, key, value) {
      fetch(map, key).delete(value);
      prune(map, key);
  }
  function fetch(map, key) {
      var values = map.get(key);
      if (!values) {
          values = new Set();
          map.set(key, values);
      }
      return values;
  }
  function prune(map, key) {
      var values = map.get(key);
      if (values != null && values.size == 0) {
          map.delete(key);
      }
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0X29wZXJhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2V0X29wZXJhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxjQUFvQixHQUFtQixFQUFFLEdBQU0sRUFBRSxLQUFRO0lBQzdELEtBQUssQ0FBQyxHQUFHLEVBQUUsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFBO0FBQzVCLENBQUM7QUFFRCxNQUFNLGNBQW9CLEdBQW1CLEVBQUUsR0FBTSxFQUFFLEtBQVE7SUFDN0QsS0FBSyxDQUFDLEdBQUcsRUFBRSxHQUFHLENBQUMsQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUE7SUFDN0IsS0FBSyxDQUFDLEdBQUcsRUFBRSxHQUFHLENBQUMsQ0FBQTtBQUNqQixDQUFDO0FBRUQsTUFBTSxnQkFBc0IsR0FBbUIsRUFBRSxHQUFNO0lBQ3JELElBQUksTUFBTSxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUE7SUFDekIsSUFBSSxDQUFDLE1BQU0sRUFBRTtRQUNYLE1BQU0sR0FBRyxJQUFJLEdBQUcsRUFBRSxDQUFBO1FBQ2xCLEdBQUcsQ0FBQyxHQUFHLENBQUMsR0FBRyxFQUFFLE1BQU0sQ0FBQyxDQUFBO0tBQ3JCO0lBQ0QsT0FBTyxNQUFNLENBQUE7QUFDZixDQUFDO0FBRUQsTUFBTSxnQkFBc0IsR0FBbUIsRUFBRSxHQUFNO0lBQ3JELElBQU0sTUFBTSxHQUFHLEdBQUcsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUE7SUFDM0IsSUFBSSxNQUFNLElBQUksSUFBSSxJQUFJLE1BQU0sQ0FBQyxJQUFJLElBQUksQ0FBQyxFQUFFO1FBQ3RDLEdBQUcsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUE7S0FDaEI7QUFDSCxDQUFDIn0=
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/mutation-observers/dist/index.js":
  /*!*****************************************************************!*\
    !*** ./node_modules/@stimulus/mutation-observers/dist/index.js ***!
    \*****************************************************************/
  /*! exports provided: AttributeObserver, ElementObserver, TokenListObserver, ValueListObserver */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var _src_attribute_observer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/attribute_observer */ "./node_modules/@stimulus/mutation-observers/dist/src/attribute_observer.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributeObserver", function() { return _src_attribute_observer__WEBPACK_IMPORTED_MODULE_0__["AttributeObserver"]; });
  
  /* harmony import */ var _src_element_observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/element_observer */ "./node_modules/@stimulus/mutation-observers/dist/src/element_observer.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ElementObserver", function() { return _src_element_observer__WEBPACK_IMPORTED_MODULE_1__["ElementObserver"]; });
  
  /* harmony import */ var _src_token_list_observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/token_list_observer */ "./node_modules/@stimulus/mutation-observers/dist/src/token_list_observer.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TokenListObserver", function() { return _src_token_list_observer__WEBPACK_IMPORTED_MODULE_2__["TokenListObserver"]; });
  
  /* harmony import */ var _src_value_list_observer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/value_list_observer */ "./node_modules/@stimulus/mutation-observers/dist/src/value_list_observer.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValueListObserver", function() { return _src_value_list_observer__WEBPACK_IMPORTED_MODULE_3__["ValueListObserver"]; });
  
  
  
  
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFBO0FBQ3hDLGNBQWMsd0JBQXdCLENBQUE7QUFDdEMsY0FBYywyQkFBMkIsQ0FBQTtBQUN6QyxjQUFjLDJCQUEyQixDQUFBIn0=
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/mutation-observers/dist/src/attribute_observer.js":
  /*!**********************************************************************************!*\
    !*** ./node_modules/@stimulus/mutation-observers/dist/src/attribute_observer.js ***!
    \**********************************************************************************/
  /*! exports provided: AttributeObserver */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttributeObserver", function() { return AttributeObserver; });
  /* harmony import */ var _element_observer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./element_observer */ "./node_modules/@stimulus/mutation-observers/dist/src/element_observer.js");
  
  var AttributeObserver = /** @class */ (function () {
      function AttributeObserver(element, attributeName, delegate) {
          this.attributeName = attributeName;
          this.delegate = delegate;
          this.elementObserver = new _element_observer__WEBPACK_IMPORTED_MODULE_0__["ElementObserver"](element, this);
      }
      Object.defineProperty(AttributeObserver.prototype, "element", {
          get: function () {
              return this.elementObserver.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(AttributeObserver.prototype, "selector", {
          get: function () {
              return "[" + this.attributeName + "]";
          },
          enumerable: true,
          configurable: true
      });
      AttributeObserver.prototype.start = function () {
          this.elementObserver.start();
      };
      AttributeObserver.prototype.stop = function () {
          this.elementObserver.stop();
      };
      AttributeObserver.prototype.refresh = function () {
          this.elementObserver.refresh();
      };
      Object.defineProperty(AttributeObserver.prototype, "started", {
          get: function () {
              return this.elementObserver.started;
          },
          enumerable: true,
          configurable: true
      });
      // Element observer delegate
      AttributeObserver.prototype.matchElement = function (element) {
          return element.hasAttribute(this.attributeName);
      };
      AttributeObserver.prototype.matchElementsInTree = function (tree) {
          var match = this.matchElement(tree) ? [tree] : [];
          var matches = Array.from(tree.querySelectorAll(this.selector));
          return match.concat(matches);
      };
      AttributeObserver.prototype.elementMatched = function (element) {
          if (this.delegate.elementMatchedAttribute) {
              this.delegate.elementMatchedAttribute(element, this.attributeName);
          }
      };
      AttributeObserver.prototype.elementUnmatched = function (element) {
          if (this.delegate.elementUnmatchedAttribute) {
              this.delegate.elementUnmatchedAttribute(element, this.attributeName);
          }
      };
      AttributeObserver.prototype.elementAttributeChanged = function (element, attributeName) {
          if (this.delegate.elementAttributeValueChanged && this.attributeName == attributeName) {
              this.delegate.elementAttributeValueChanged(element, attributeName);
          }
      };
      return AttributeObserver;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0cmlidXRlX29ic2VydmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2F0dHJpYnV0ZV9vYnNlcnZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUEyQixNQUFNLG9CQUFvQixDQUFBO0FBUTdFO0lBTUUsMkJBQVksT0FBZ0IsRUFBRSxhQUFxQixFQUFFLFFBQW1DO1FBQ3RGLElBQUksQ0FBQyxhQUFhLEdBQUcsYUFBYSxDQUFBO1FBQ2xDLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFBO1FBRXhCLElBQUksQ0FBQyxlQUFlLEdBQUcsSUFBSSxl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FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQTtRQUNoRSxPQUFPLEtBQUssQ0FBQyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUE7SUFDOUIsQ0FBQztJQUVELDBDQUFjLEdBQWQsVUFBZSxPQUFnQjtRQUM3QixJQUFJLElBQUksQ0FBQyxRQUFRLENBQUMsdUJBQXVCLEVBQUU7WUFDekMsSUFBSSxDQUFDLFFBQVEsQ0FBQyx1QkFBdUIsQ0FBQyxPQUFPLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFBO1NBQ25FO0lBQ0gsQ0FBQztJQUVELDRDQUFnQixHQUFoQixVQUFpQixPQUFnQjtRQUMvQixJQUFJLElBQUksQ0FBQyxRQUFRLENBQUMseUJBQXlCLEVBQUU7WUFDM0MsSUFBSSxDQUFDLFFBQVEsQ0FBQyx5QkFBeUIsQ0FBQyxPQUFPLEVBQUUsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFBO1NBQ3JFO0lBQ0gsQ0FBQztJQUVELG1EQUF1QixHQUF2QixVQUF3QixPQUFnQixFQUFFLGFBQXFCO1FBQzdELElBQUksSUFBSSxDQUFDLFFBQVEsQ0FBQyw0QkFBNEIsSUFBSSxJQUFJLENBQUMsYUFBYSxJQUFJLGFBQWEsRUFBRTtZQUNyRixJQUFJLENBQUMsUUFBUSxDQUFDLDRCQUE0QixDQUFDLE9BQU8sRUFBRSxhQUFhLENBQUMsQ0FBQTtTQUNuRTtJQUNILENBQUM7SUFDSCx3QkFBQztBQUFELENBQUMsQUFsRUQsSUFrRUMifQ==
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/mutation-observers/dist/src/element_observer.js":
  /*!********************************************************************************!*\
    !*** ./node_modules/@stimulus/mutation-observers/dist/src/element_observer.js ***!
    \********************************************************************************/
  /*! exports provided: ElementObserver */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElementObserver", function() { return ElementObserver; });
  var ElementObserver = /** @class */ (function () {
      function ElementObserver(element, delegate) {
          var _this = this;
          this.element = element;
          this.started = false;
          this.delegate = delegate;
          this.elements = new Set;
          this.mutationObserver = new MutationObserver(function (mutations) { return _this.processMutations(mutations); });
      }
      ElementObserver.prototype.start = function () {
          if (!this.started) {
              this.started = true;
              this.mutationObserver.observe(this.element, { attributes: true, childList: true, subtree: true });
              this.refresh();
          }
      };
      ElementObserver.prototype.stop = function () {
          if (this.started) {
              this.mutationObserver.takeRecords();
              this.mutationObserver.disconnect();
              this.started = false;
          }
      };
      ElementObserver.prototype.refresh = function () {
          if (this.started) {
              var matches = new Set(this.matchElementsInTree());
              for (var _i = 0, _a = Array.from(this.elements); _i < _a.length; _i++) {
                  var element = _a[_i];
                  if (!matches.has(element)) {
                      this.removeElement(element);
                  }
              }
              for (var _b = 0, _c = Array.from(matches); _b < _c.length; _b++) {
                  var element = _c[_b];
                  this.addElement(element);
              }
          }
      };
      // Mutation record processing
      ElementObserver.prototype.processMutations = function (mutations) {
          if (this.started) {
              for (var _i = 0, mutations_1 = mutations; _i < mutations_1.length; _i++) {
                  var mutation = mutations_1[_i];
                  this.processMutation(mutation);
              }
          }
      };
      ElementObserver.prototype.processMutation = function (mutation) {
          if (mutation.type == "attributes") {
              this.processAttributeChange(mutation.target, mutation.attributeName);
          }
          else if (mutation.type == "childList") {
              this.processRemovedNodes(mutation.removedNodes);
              this.processAddedNodes(mutation.addedNodes);
          }
      };
      ElementObserver.prototype.processAttributeChange = function (node, attributeName) {
          var element = node;
          if (this.elements.has(element)) {
              if (this.delegate.elementAttributeChanged && this.matchElement(element)) {
                  this.delegate.elementAttributeChanged(element, attributeName);
              }
              else {
                  this.removeElement(element);
              }
          }
          else if (this.matchElement(element)) {
              this.addElement(element);
          }
      };
      ElementObserver.prototype.processRemovedNodes = function (nodes) {
          for (var _i = 0, _a = Array.from(nodes); _i < _a.length; _i++) {
              var node = _a[_i];
              var element = this.elementFromNode(node);
              if (element) {
                  this.processTree(element, this.removeElement);
              }
          }
      };
      ElementObserver.prototype.processAddedNodes = function (nodes) {
          for (var _i = 0, _a = Array.from(nodes); _i < _a.length; _i++) {
              var node = _a[_i];
              var element = this.elementFromNode(node);
              if (element && this.elementIsActive(element)) {
                  this.processTree(element, this.addElement);
              }
          }
      };
      // Element matching
      ElementObserver.prototype.matchElement = function (element) {
          return this.delegate.matchElement(element);
      };
      ElementObserver.prototype.matchElementsInTree = function (tree) {
          if (tree === void 0) { tree = this.element; }
          return this.delegate.matchElementsInTree(tree);
      };
      ElementObserver.prototype.processTree = function (tree, processor) {
          for (var _i = 0, _a = this.matchElementsInTree(tree); _i < _a.length; _i++) {
              var element = _a[_i];
              processor.call(this, element);
          }
      };
      ElementObserver.prototype.elementFromNode = function (node) {
          if (node.nodeType == Node.ELEMENT_NODE) {
              return node;
          }
      };
      ElementObserver.prototype.elementIsActive = function (element) {
          if (element.isConnected != this.element.isConnected) {
              return false;
          }
          else {
              return this.element.contains(element);
          }
      };
      // Element tracking
      ElementObserver.prototype.addElement = function (element) {
          if (!this.elements.has(element)) {
              if (this.elementIsActive(element)) {
                  this.elements.add(element);
                  if (this.delegate.elementMatched) {
                      this.delegate.elementMatched(element);
                  }
              }
          }
      };
      ElementObserver.prototype.removeElement = function (element) {
          if (this.elements.has(element)) {
              this.elements.delete(element);
              if (this.delegate.elementUnmatched) {
                  this.delegate.elementUnmatched(element);
              }
          }
      };
      return ElementObserver;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudF9vYnNlcnZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50X29ic2VydmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVNBO0lBUUUseUJBQVksT0FBZ0IsRUFBRSxRQUFpQztRQUEvR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FTyx1Q0FBYSxHQUFyQixVQUFzQixPQUFnQjtRQUNwQyxJQUFJLElBQUksQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQzlCLElBQUksQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFBO1lBQzdCLElBQUksSUFBSSxDQUFDLFFBQVEsQ0FBQyxnQkFBZ0IsRUFBRTtnQkFDbEMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxnQkFBZ0IsQ0FBQyxPQUFPLENBQUMsQ0FBQTthQUN4QztTQUNGO0lBQ0gsQ0FBQztJQUNILHNCQUFDO0FBQUQsQ0FBQyxBQXRKRCxJQXNKQyJ9
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/mutation-observers/dist/src/token_list_observer.js":
  /*!***********************************************************************************!*\
    !*** ./node_modules/@stimulus/mutation-observers/dist/src/token_list_observer.js ***!
    \***********************************************************************************/
  /*! exports provided: TokenListObserver */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TokenListObserver", function() { return TokenListObserver; });
  /* harmony import */ var _attribute_observer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attribute_observer */ "./node_modules/@stimulus/mutation-observers/dist/src/attribute_observer.js");
  /* harmony import */ var _stimulus_multimap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @stimulus/multimap */ "./node_modules/@stimulus/multimap/dist/index.js");
  
  
  var TokenListObserver = /** @class */ (function () {
      function TokenListObserver(element, attributeName, delegate) {
          this.attributeObserver = new _attribute_observer__WEBPACK_IMPORTED_MODULE_0__["AttributeObserver"](element, attributeName, this);
          this.delegate = delegate;
          this.tokensByElement = new _stimulus_multimap__WEBPACK_IMPORTED_MODULE_1__["Multimap"];
      }
      Object.defineProperty(TokenListObserver.prototype, "started", {
          get: function () {
              return this.attributeObserver.started;
          },
          enumerable: true,
          configurable: true
      });
      TokenListObserver.prototype.start = function () {
          this.attributeObserver.start();
      };
      TokenListObserver.prototype.stop = function () {
          this.attributeObserver.stop();
      };
      TokenListObserver.prototype.refresh = function () {
          this.attributeObserver.refresh();
      };
      Object.defineProperty(TokenListObserver.prototype, "element", {
          get: function () {
              return this.attributeObserver.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(TokenListObserver.prototype, "attributeName", {
          get: function () {
              return this.attributeObserver.attributeName;
          },
          enumerable: true,
          configurable: true
      });
      // Attribute observer delegate
      TokenListObserver.prototype.elementMatchedAttribute = function (element) {
          this.tokensMatched(this.readTokensForElement(element));
      };
      TokenListObserver.prototype.elementAttributeValueChanged = function (element) {
          var _a = this.refreshTokensForElement(element), unmatchedTokens = _a[0], matchedTokens = _a[1];
          this.tokensUnmatched(unmatchedTokens);
          this.tokensMatched(matchedTokens);
      };
      TokenListObserver.prototype.elementUnmatchedAttribute = function (element) {
          this.tokensUnmatched(this.tokensByElement.getValuesForKey(element));
      };
      TokenListObserver.prototype.tokensMatched = function (tokens) {
          var _this = this;
          tokens.forEach(function (token) { return _this.tokenMatched(token); });
      };
      TokenListObserver.prototype.tokensUnmatched = function (tokens) {
          var _this = this;
          tokens.forEach(function (token) { return _this.tokenUnmatched(token); });
      };
      TokenListObserver.prototype.tokenMatched = function (token) {
          this.delegate.tokenMatched(token);
          this.tokensByElement.add(token.element, token);
      };
      TokenListObserver.prototype.tokenUnmatched = function (token) {
          this.delegate.tokenUnmatched(token);
          this.tokensByElement.delete(token.element, token);
      };
      TokenListObserver.prototype.refreshTokensForElement = function (element) {
          var previousTokens = this.tokensByElement.getValuesForKey(element);
          var currentTokens = this.readTokensForElement(element);
          var firstDifferingIndex = zip(previousTokens, currentTokens)
              .findIndex(function (_a) {
              var previousToken = _a[0], currentToken = _a[1];
              return !tokensAreEqual(previousToken, currentToken);
          });
          if (firstDifferingIndex == -1) {
              return [[], []];
          }
          else {
              return [previousTokens.slice(firstDifferingIndex), currentTokens.slice(firstDifferingIndex)];
          }
      };
      TokenListObserver.prototype.readTokensForElement = function (element) {
          var attributeName = this.attributeName;
          var tokenString = element.getAttribute(attributeName) || "";
          return parseTokenString(tokenString, element, attributeName);
      };
      return TokenListObserver;
  }());
  
  function parseTokenString(tokenString, element, attributeName) {
      return tokenString.trim().split(/\s+/).filter(function (content) { return content.length; })
          .map(function (content, index) { return ({ element: element, attributeName: attributeName, content: content, index: index }); });
  }
  function zip(left, right) {
      var length = Math.max(left.length, right.length);
      return Array.from({ length: length }, function (_, index) { return [left[index], right[index]]; });
  }
  function tokensAreEqual(left, right) {
      return left && right && left.index == right.index && left.content == right.content;
  }
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5fbGlzdF9vYnNlcnZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90b2tlbl9saXN0X29ic2VydmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBNkIsTUFBTSxzQkFBc0IsQ0FBQTtBQUNuRixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sb0JBQW9CLENBQUE7QUFjN0M7SUFLRSwyQkFBWSxPQUFnQixFQUFFLGFBQXFCLEVBQUUsUUFBbUM7UUFDdEYsSUFBSSxDQUFDLGlCQUFpQixHQUFHLElBQUksaUJBQWlCLENBQUMsT0FBTyxFQUFFLGFBQWEsRUFBRSxJQUFJLENBQUMsQ0FBQTtRQUM1RSxJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQTtRQUN4QixJQUFJLENBQUMsZUFBZSxHQUFHLElBQUksUUFBUSxDQUFBO0lBQ3JDLENBQUM7SUFFRCxzQkFBSSxzQ0FBTzthQUFYO1lBQ0UsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0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O1NBQ3JFLEdBQUcsQ0FBQyxVQUFDLE9BQU8sRUFBRSxLQUFLLElBQUssT0FBQSxDQUFDLEVBQUUsT0FBTyxTQUFBLEVBQUUsYUFBYSxlQUFBLEVBQUUsT0FBTyxTQUFBLEVBQUUsS0FBSyxPQUFBLEVBQUUsQ0FBQyxFQUE1QyxDQUE0QyxDQUFDLENBQUE7QUFDMUUsQ0FBQztBQUVELGFBQW1CLElBQVMsRUFBRSxLQUFVO0lBQ3RDLElBQU0sTUFBTSxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUE7SUFDbEQsT0FBTyxLQUFLLENBQUMsSUFBSSxDQUFDLEVBQUUsTUFBTSxRQUFBLEVBQUUsRUFBRSxVQUFDLENBQUMsRUFBRSxLQUFLLElBQUssT0FBQSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsRUFBRSxLQUFLLENBQUMsS0FBSyxDQUFDLENBQVcsRUFBckMsQ0FBcUMsQ0FBQyxDQUFBO0FBQ3BGLENBQUM7QUFFRCx3QkFBd0IsSUFBWSxFQUFFLEtBQWE7SUFDakQsT0FBTyxJQUFJLElBQUksS0FBSyxJQUFJLElBQUksQ0FBQyxLQUFLLElBQUksS0FBSyxDQUFDLEtBQUssSUFBSSxJQUFJLENBQUMsT0FBTyxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUE7QUFDcEYsQ0FBQyJ9
  
  /***/ }),
  
  /***/ "./node_modules/@stimulus/mutation-observers/dist/src/value_list_observer.js":
  /*!***********************************************************************************!*\
    !*** ./node_modules/@stimulus/mutation-observers/dist/src/value_list_observer.js ***!
    \***********************************************************************************/
  /*! exports provided: ValueListObserver */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueListObserver", function() { return ValueListObserver; });
  /* harmony import */ var _token_list_observer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./token_list_observer */ "./node_modules/@stimulus/mutation-observers/dist/src/token_list_observer.js");
  
  var ValueListObserver = /** @class */ (function () {
      function ValueListObserver(element, attributeName, delegate) {
          this.tokenListObserver = new _token_list_observer__WEBPACK_IMPORTED_MODULE_0__["TokenListObserver"](element, attributeName, this);
          this.delegate = delegate;
          this.parseResultsByToken = new WeakMap;
          this.valuesByTokenByElement = new WeakMap;
      }
      Object.defineProperty(ValueListObserver.prototype, "started", {
          get: function () {
              return this.tokenListObserver.started;
          },
          enumerable: true,
          configurable: true
      });
      ValueListObserver.prototype.start = function () {
          this.tokenListObserver.start();
      };
      ValueListObserver.prototype.stop = function () {
          this.tokenListObserver.stop();
      };
      ValueListObserver.prototype.refresh = function () {
          this.tokenListObserver.refresh();
      };
      Object.defineProperty(ValueListObserver.prototype, "element", {
          get: function () {
              return this.tokenListObserver.element;
          },
          enumerable: true,
          configurable: true
      });
      Object.defineProperty(ValueListObserver.prototype, "attributeName", {
          get: function () {
              return this.tokenListObserver.attributeName;
          },
          enumerable: true,
          configurable: true
      });
      ValueListObserver.prototype.tokenMatched = function (token) {
          var element = token.element;
          var value = this.fetchParseResultForToken(token).value;
          if (value) {
              this.fetchValuesByTokenForElement(element).set(token, value);
              this.delegate.elementMatchedValue(element, value);
          }
      };
      ValueListObserver.prototype.tokenUnmatched = function (token) {
          var element = token.element;
          var value = this.fetchParseResultForToken(token).value;
          if (value) {
              this.fetchValuesByTokenForElement(element).delete(token);
              this.delegate.elementUnmatchedValue(element, value);
          }
      };
      ValueListObserver.prototype.fetchParseResultForToken = function (token) {
          var parseResult = this.parseResultsByToken.get(token);
          if (!parseResult) {
              parseResult = this.parseToken(token);
              this.parseResultsByToken.set(token, parseResult);
          }
          return parseResult;
      };
      ValueListObserver.prototype.fetchValuesByTokenForElement = function (element) {
          var valuesByToken = this.valuesByTokenByElement.get(element);
          if (!valuesByToken) {
              valuesByToken = new Map;
              this.valuesByTokenByElement.set(element, valuesByToken);
          }
          return valuesByToken;
      };
      ValueListObserver.prototype.parseToken = function (token) {
          try {
              var value = this.delegate.parseValueForToken(token);
              return { value: value };
          }
          catch (error) {
              return { error: error };
          }
      };
      return ValueListObserver;
  }());
  
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVfbGlzdF9vYnNlcnZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92YWx1ZV9saXN0X29ic2VydmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBUyxpQkFBaUIsRUFBNkIsTUFBTSx1QkFBdUIsQ0FBQTtBQWEzRjtJQU1FLDJCQUFZLE9BQWdCLEVBQUUsYUFBcUIsRUFBRSxRQUFzQztRQUN6RixJQUFJLENBQUMsaUJBQWlCLEdBQUcsSUFBSSxpQkFBaUIsQ0FBQyxPQUFPLEVBQUUsYUFBYSxFQUFFLElBQUksQ0FBQyxDQUFBO1FBQzVFLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFBO1FBQ3hCLElBQUksQ0FBQyxtQkFBbUIsR0FBRyxJQUFJLE9BQU8sQ0FBQTtRQUN0QyxJQUFJLENBQUMsc0JBQXNCLEdBQUcsSUFBSSxPQUFPLENBQUE7SUFDM0MsQ0FBQztJQUVELHNCQUFJLHNDQUFPO2FBQVg7WUFDRSxPQUFPLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxPQUFPLENBQUE7UUFDdkMsQ0FBQzs7O09BQUE7SUFFRCxpQ0FBSyxHQUFMO1FBQ0UsSUFBSSxDQUFDLGlCQUFpQixDQUFDLEtBQUssRUFBRSxDQUFBO0lBQ2hDLENBQUM7SUFFRCxnQ0FBSSxHQUFKO1FBQ0UsSUFBSSxDQUFDLGlCQUFpQixDQUFDLElBQUksRUFBRSxDQUFBO0lBQy9CLENBQ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QyxtQkFBbUIsQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUE7UUFDckQsSUFBSSxDQUFDLFdBQVcsRUFBRTtZQUNoQixXQUFXLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQTtZQUNwQyxJQUFJLENBQUMsbUJBQW1CLENBQUMsR0FBRyxDQUFDLEtBQUssRUFBRSxXQUFXLENBQUMsQ0FBQTtTQUNqRDtRQUNELE9BQU8sV0FBVyxDQUFBO0lBQ3BCLENBQUM7SUFFTyx3REFBNEIsR0FBcEMsVUFBcUMsT0FBZ0I7UUFDbkQsSUFBSSxhQUFhLEdBQUcsSUFBSSxDQUFDLHNCQUFzQixDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsQ0FBQTtRQUM1RCxJQUFJLENBQUMsYUFBYSxFQUFFO1lBQ2xCLGFBQWEsR0FBRyxJQUFJLEdBQUcsQ0FBQTtZQUN2QixJQUFJLENBQUMsc0JBQXNCLENBQUMsR0FBRyxDQUFDLE9BQU8sRUFBRSxhQUFhLENBQUMsQ0FBQTtTQUN4RDtRQUNELE9BQU8sYUFBYSxDQUFBO0lBQ3RCLENBQUM7SUFFTyxzQ0FBVSxHQUFsQixVQUFtQixLQUFZO1FBQzdCLElBQUk7WUFDRixJQUFNLEtBQUssR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLGtCQUFrQixDQUFDLEtBQUssQ0FBQyxDQUFBO1lBQ3JELE9BQU8sRUFBRSxLQUFLLE9BQUEsRUFBRSxDQUFBO1NBQ2pCO1FBQUMsT0FBTyxLQUFLLEVBQUU7WUFDZCxPQUFPLEVBQUUsS0FBSyxPQUFBLEVBQUUsQ0FBQTtTQUNqQjtJQUNILENBQUM7SUFDSCx3QkFBQztBQUFELENBQUMsQUFqRkQsSUFpRkMifQ==
  
  /***/ }),
  
  /***/ "./node_modules/nestable2/jquery.nestable.js":
  /*!***************************************************!*\
    !*** ./node_modules/nestable2/jquery.nestable.js ***!
    \***************************************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  /*!
   * Nestable jQuery Plugin - Copyright (c) 2014 Ramon Smit - https://github.com/RamonSmit/Nestable
   */
  
  (function($, window, document, undefined) {
      var hasTouch = 'ontouchstart' in document;
  
      /**
       * Detect CSS pointer-events property
       * events are normally disabled on the dragging element to avoid conflicts
       * https://github.com/ausi/Feature-detection-technique-for-pointer-events/blob/master/modernizr-pointerevents.js
       */
      var hasPointerEvents = (function() {
          var el = document.createElement('div'),
              docEl = document.documentElement;
          if (!('pointerEvents' in el.style)) {
              return false;
          }
          el.style.pointerEvents = 'auto';
          el.style.pointerEvents = 'x';
          docEl.appendChild(el);
          var supports = window.getComputedStyle && window.getComputedStyle(el, '').pointerEvents === 'auto';
          docEl.removeChild(el);
          return !!supports;
      })();
  
      var defaults = {
          contentCallback: function(item) {return item.content || '' ? item.content : item.id;},
          listNodeName: 'ol',
          itemNodeName: 'li',
          handleNodeName: 'div',
          contentNodeName: 'span',
          rootClass: 'dd',
          listClass: 'dd-list',
          itemClass: 'dd-item',
          dragClass: 'dd-dragel',
          handleClass: 'dd-handle',
          contentClass: 'dd-content',
          collapsedClass: 'dd-collapsed',
          placeClass: 'dd-placeholder',
          noDragClass: 'dd-nodrag',
          noChildrenClass: 'dd-nochildren',
          emptyClass: 'dd-empty',
          expandBtnHTML: '<button class="dd-expand" data-action="expand" type="button">Expand</button>',
          collapseBtnHTML: '<button class="dd-collapse" data-action="collapse" type="button">Collapse</button>',
          group: 0,
          maxDepth: 5,
          threshold: 20,
          fixedDepth: false, //fixed item's depth
          fixed: false,
          includeContent: false,
          scroll: false,
          scrollSensitivity: 1,
          scrollSpeed: 5,
          scrollTriggers: {
              top: 40,
              left: 40,
              right: -40,
              bottom: -40
          },
          effect: {
              animation: 'none',
              time: 'slow'
          },
          callback: function(l, e, p) {},
          onDragStart: function(l, e, p) {},
          beforeDragStop: function(l, e, p) {},
          listRenderer: function(children, options) {
              var html = '<' + options.listNodeName + ' class="' + options.listClass + '">';
              html += children;
              html += '</' + options.listNodeName + '>';
  
              return html;
          },
          itemRenderer: function(item_attrs, content, children, options, item) {
              var item_attrs_string = $.map(item_attrs, function(value, key) {
                  return ' ' + key + '="' + value + '"';
              }).join(' ');
  
              var html = '<' + options.itemNodeName + item_attrs_string + '>';
              html += '<' + options.handleNodeName + ' class="' + options.handleClass + '">';
              html += '<' + options.contentNodeName + ' class="' + options.contentClass + '">';
              html += content;
              html += '</' + options.contentNodeName + '>';
              html += '</' + options.handleNodeName + '>';
              html += children;
              html += '</' + options.itemNodeName + '>';
  
              return html;
          }
      };
  
      function Plugin(element, options) {
          this.w  = $(document);
          this.el = $(element);
          options = options || defaults;
  
          if (options.rootClass !== undefined && options.rootClass !== 'dd') {
              options.listClass       = options.listClass ? options.listClass : options.rootClass + '-list';
              options.itemClass       = options.itemClass ? options.itemClass : options.rootClass + '-item';
              options.dragClass       = options.dragClass ? options.dragClass : options.rootClass + '-dragel';
              options.handleClass     = options.handleClass ? options.handleClass : options.rootClass + '-handle';
              options.collapsedClass  = options.collapsedClass ? options.collapsedClass : options.rootClass + '-collapsed';
              options.placeClass      = options.placeClass ? options.placeClass : options.rootClass + '-placeholder';
              options.noDragClass     = options.noDragClass ? options.noDragClass : options.rootClass + '-nodrag';
              options.noChildrenClass = options.noChildrenClass ? options.noChildrenClass : options.rootClass + '-nochildren';
              options.emptyClass      = options.emptyClass ? options.emptyClass : options.rootClass + '-empty';
          }
  
          this.options = $.extend({}, defaults, options);
  
          // build HTML from serialized JSON if passed
          if (this.options.json !== undefined) {
              this._build();
          }
  
          this.init();
      }
  
      Plugin.prototype = {
  
          init: function() {
              var list = this;
  
              list.reset();
              list.el.data('nestable-group', this.options.group);
              list.placeEl = $('<div class="' + list.options.placeClass + '"/>');
  
              var items = this.el.find(list.options.itemNodeName);
              $.each(items, function(k, el) {
                  var item = $(el),
                      parent = item.parent();
                  list.setParent(item);
                  if (parent.hasClass(list.options.collapsedClass)) {
                      list.collapseItem(parent.parent());
                  }
              });
  
              // Append the .dd-empty div if the list don't have any items on init
              if (!items.length) {
                  this.appendEmptyElement(this.el);
              }
  
              list.el.on('click', 'button', function(e) {
                  if (list.dragEl) {
                      return;
                  }
                  var target = $(e.currentTarget),
                      action = target.data('action'),
                      item = target.parents(list.options.itemNodeName).eq(0);
                  if (action === 'collapse') {
                      list.collapseItem(item);
                  }
                  if (action === 'expand') {
                      list.expandItem(item);
                  }
              });
  
              var onStartEvent = function(e) {
                  var handle = $(e.target);
                  if (!handle.hasClass(list.options.handleClass)) {
                      if (handle.closest('.' + list.options.noDragClass).length) {
                          return;
                      }
                      handle = handle.closest('.' + list.options.handleClass);
                  }
                  if (!handle.length || list.dragEl) {
                      return;
                  }
  
                  list.isTouch = /^touch/.test(e.type);
                  if (list.isTouch && e.touches.length !== 1) {
                      return;
                  }
  
                  e.preventDefault();
                  list.dragStart(e.touches ? e.touches[0] : e);
              };
  
              var onMoveEvent = function(e) {
                  if (list.dragEl) {
                      e.preventDefault();
                      list.dragMove(e.touches ? e.touches[0] : e);
                  }
              };
  
              var onEndEvent = function(e) {
                  if (list.dragEl) {
                      e.preventDefault();
                      list.dragStop(e.touches ? e.changedTouches[0] : e);
                  }
              };
  
              if (hasTouch) {
                  list.el[0].addEventListener('touchstart', onStartEvent, false);
                  window.addEventListener('touchmove', onMoveEvent, false);
                  window.addEventListener('touchend', onEndEvent, false);
                  window.addEventListener('touchcancel', onEndEvent, false);
              }
  
              list.el.on('mousedown', onStartEvent);
              list.w.on('mousemove', onMoveEvent);
              list.w.on('mouseup', onEndEvent);
  
              var destroyNestable = function()
              {
                  if (hasTouch) {
                      list.el[0].removeEventListener('touchstart', onStartEvent, false);
                      window.removeEventListener('touchmove', onMoveEvent, false);
                      window.removeEventListener('touchend', onEndEvent, false);
                      window.removeEventListener('touchcancel', onEndEvent, false);
                  }
  
                  list.el.off('mousedown', onStartEvent);
                  list.w.off('mousemove', onMoveEvent);
                  list.w.off('mouseup', onEndEvent);
  
                  list.el.off('click');
                  list.el.unbind('destroy-nestable');
  
                  list.el.data("nestable", null);
              };
  
              list.el.bind('destroy-nestable', destroyNestable);
  
          },
  
          destroy: function ()
          {
              this.el.trigger('destroy-nestable');
          },
  
          add: function (item)
          {
              var listClassSelector = '.' + this.options.listClass;
              var tree = $(this.el).children(listClassSelector);
  
              if (item.parent_id !== undefined) {
                  tree = tree.find('[data-id="' + item.parent_id + '"]');
                  delete item.parent_id;
  
                  if (tree.children(listClassSelector).length === 0) {
                      tree = tree.append(this.options.listRenderer('', this.options));
                  }
  
                  tree = tree.find(listClassSelector + ':first');
                  this.setParent(tree.parent());
              }
  
              tree.append(this._buildItem(item, this.options));
          },
  
          replace: function (item)
          {
              var html = this._buildItem(item, this.options);
  
              this._getItemById(item.id)
                  .replaceWith(html);
          },
  
          //removes item and additional elements from list
          removeItem: function (item){
              var opts = this.options,
                  el   = this.el;
  
              // remove item
              item = item || this;
              item.remove();
  
              // remove empty children lists
              var emptyListsSelector = '.' + opts.listClass
                  + ' .' + opts.listClass + ':not(:has(*))';
              $(el).find(emptyListsSelector).remove();
  
              // remove buttons if parents do not have children
              var buttonsSelector = '[data-action="expand"], [data-action="collapse"]';
              $(el).find(buttonsSelector).each(function() {
                  var siblings = $(this).siblings('.' + opts.listClass);
                  if (siblings.length === 0) {
                      $(this).remove();
                  }
              });
          },
  
          //removes item by itemId and run callback at the end
          remove: function (itemId, callback)
          {
              var opts = this.options;
              var list = this;
              var item = this._getItemById(itemId);
  
              //animation style
              var animation = opts.effect.animation || 'fade';
  
              //animation time
              var time = opts.effect.time || 'slow';
  
              //add fadeOut effect when removing
              if (animation === 'fade'){
                  item.fadeOut(time, function(){
                      list.removeItem(item);
                  });
              }
              else {
                  this.removeItem(item);
              }
  
              if (callback) callback();
          },
  
          //removes all items from the list and run callback at the end
          removeAll: function(callback){
  
              var list  = this,
                  opts  = this.options,
                  node  = list.el.find(opts.listNodeName).first(),
                  items = node.children(opts.itemNodeName);
  
              //animation style
              var animation = opts.effect.animation || 'fade';
  
              //animation time
              var time = opts.effect.time || 'slow';
  
              function remove(){
                  //Removes each item and its children.
                  items.each(function() {
                      list.removeItem($(this));
                  });
                  //Now we can again show our node element
                  node.show();
                  if (callback) callback();
              }
  
              //add fadeOut effect when removing
              if (animation === 'fade'){
                  node.fadeOut(time, remove);
              }
              else {
                  remove();
              }
          },
  
          _getItemById: function(itemId) {
              return $(this.el).children('.' + this.options.listClass)
                  .find('[data-id="' + itemId + '"]');
          },
  
          _build: function() {
              var json = this.options.json;
  
              if (typeof json === 'string') {
                  json = JSON.parse(json);
              }
  
              $(this.el).html(this._buildList(json, this.options));
          },
  
          _buildList: function(items, options) {
              if (!items) {
                  return '';
              }
  
              var children = '';
              var that = this;
  
              $.each(items, function(index, sub) {
                  children += that._buildItem(sub, options);
              });
  
              return options.listRenderer(children, options);
          },
  
          _buildItem: function(item, options) {
              function escapeHtml(text) {
                  var map = {
                      '&': '&amp;',
                      '<': '&lt;',
                      '>': '&gt;',
                      '"': '&quot;',
                      "'": '&#039;'
                  };
  
                  return text + "".replace(/[&<>"']/g, function(m) { return map[m]; });
              }
  
              function filterClasses(classes) {
                  var new_classes = {};
  
                  for (var k in classes) {
                      // Remove duplicates
                      new_classes[classes[k]] = classes[k];
                  }
  
                  return new_classes;
              }
  
              function createClassesString(item, options) {
                  var classes = item.classes || {};
  
                  if (typeof classes === 'string') {
                      classes = [classes];
                  }
  
                  var item_classes = filterClasses(classes);
                  item_classes[options.itemClass] = options.itemClass;
  
                  // create class string
                  return $.map(item_classes, function(val) {
                      return val;
                  }).join(' ');
              }
  
              function createDataAttrs(attr) {
                  attr = $.extend({}, attr);
  
                  delete attr.children;
                  delete attr.classes;
                  delete attr.content;
  
                  var data_attrs = {};
  
                  $.each(attr, function(key, value) {
                      if (typeof value === 'object') {
                          value = JSON.stringify(value);
                      }
  
                      data_attrs["data-" + key] = escapeHtml(value);
                  });
  
                  return data_attrs;
              }
  
              var item_attrs = createDataAttrs(item);
              item_attrs["class"] = createClassesString(item, options);
  
              var content = options.contentCallback(item);
              var children = this._buildList(item.children, options);
              var html = $(options.itemRenderer(item_attrs, content, children, options, item));
  
              this.setParent(html);
  
              return html[0].outerHTML;
          },
  
          serialize: function() {
              var data, list = this, step = function(level) {
                  var array = [],
                      items = level.children(list.options.itemNodeName);
                  items.each(function() {
                      var li = $(this),
                          item = $.extend({}, li.data()),
                          sub = li.children(list.options.listNodeName);
  
                      if (list.options.includeContent) {
                          var content = li.find('.' + list.options.contentClass).html();
  
                          if (content) {
                              item.content = content;
                          }
                      }
  
                      if (sub.length) {
                          item.children = step(sub);
                      }
                      array.push(item);
                  });
                  return array;
              };
              data = step(list.el.find(list.options.listNodeName).first());
              return data;
          },
  
          asNestedSet: function() {
              var list = this, o = list.options, depth = -1, ret = [], lft = 1;
              var items = list.el.find(o.listNodeName).first().children(o.itemNodeName);
  
              items.each(function () {
                  lft = traverse(this, depth + 1, lft);
              });
  
              ret = ret.sort(function(a,b){ return (a.lft - b.lft); });
              return ret;
  
              function traverse(item, depth, lft) {
                  var rgt = lft + 1, id, pid;
  
                  if ($(item).children(o.listNodeName).children(o.itemNodeName).length > 0 ) {
                      depth++;
                      $(item).children(o.listNodeName).children(o.itemNodeName).each(function () {
                          rgt = traverse($(this), depth, rgt);
                      });
                      depth--;
                  }
  
                  id = $(item).attr('data-id');
                  if (isInt(id)) {
                      id = parseInt(id);
                  }
  
                  pid = $(item).parent(o.listNodeName).parent(o.itemNodeName).attr('data-id') || '';
                  if (isInt(pid)) {
                      id = parseInt(pid);
                  }
  
                  if (id) {
                      ret.push({"id": id, "parent_id": pid, "depth": depth, "lft": lft, "rgt": rgt});
                  }
  
                  lft = rgt + 1;
                  return lft;
              }
  
              function isInt(value) {
                  return $.isNumeric(value) && Math.floor(value) == value;
              }
          },
  
          returnOptions: function() {
              return this.options;
          },
  
          serialise: function() {
              return this.serialize();
          },
  
          toHierarchy: function(options) {
  
              var o = $.extend({}, this.options, options),
                  ret = [];
  
              $(this.element).children(o.items).each(function() {
                  var level = _recursiveItems(this);
                  ret.push(level);
              });
  
              return ret;
  
              function _recursiveItems(item) {
                  var id = ($(item).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
                  if (id) {
                      var currentItem = {
                          "id": id[2]
                      };
                      if ($(item).children(o.listType).children(o.items).length > 0) {
                          currentItem.children = [];
                          $(item).children(o.listType).children(o.items).each(function() {
                              var level = _recursiveItems(this);
                              currentItem.children.push(level);
                          });
                      }
                      return currentItem;
                  }
              }
          },
  
          toArray: function() {
  
              var o = $.extend({}, this.options, this),
                  sDepth = o.startDepthCount || 0,
                  ret = [],
                  left = 2,
                  list = this,
                  element = list.el.find(list.options.listNodeName).first();
  
              var items = element.children(list.options.itemNodeName);
              items.each(function() {
                  left = _recursiveArray($(this), sDepth + 1, left);
              });
  
              ret = ret.sort(function(a, b) {
                  return (a.left - b.left);
              });
  
              return ret;
  
              function _recursiveArray(item, depth, left) {
  
                  var right = left + 1,
                      id,
                      pid;
  
                  if (item.children(o.options.listNodeName).children(o.options.itemNodeName).length > 0) {
                      depth++;
                      item.children(o.options.listNodeName).children(o.options.itemNodeName).each(function() {
                          right = _recursiveArray($(this), depth, right);
                      });
                      depth--;
                  }
  
                  id = item.data().id;
  
  
                  if (depth === sDepth + 1) {
                      pid = o.rootID;
                  } else {
  
                      var parentItem = (item.parent(o.options.listNodeName)
                          .parent(o.options.itemNodeName)
                          .data());
                      pid = parentItem.id;
  
                  }
  
                  if (id) {
                      ret.push({
                          "id": id,
                          "parent_id": pid,
                          "depth": depth,
                          "left": left,
                          "right": right
                      });
                  }
  
                  left = right + 1;
                  return left;
              }
  
          },
  
          reset: function() {
              this.mouse = {
                  offsetX: 0,
                  offsetY: 0,
                  startX: 0,
                  startY: 0,
                  lastX: 0,
                  lastY: 0,
                  nowX: 0,
                  nowY: 0,
                  distX: 0,
                  distY: 0,
                  dirAx: 0,
                  dirX: 0,
                  dirY: 0,
                  lastDirX: 0,
                  lastDirY: 0,
                  distAxX: 0,
                  distAxY: 0
              };
              this.isTouch = false;
              this.moving = false;
              this.dragEl = null;
              this.dragRootEl = null;
              this.dragDepth = 0;
              this.hasNewRoot = false;
              this.pointEl = null;
          },
  
          expandItem: function(li) {
              li.removeClass(this.options.collapsedClass);
          },
  
          collapseItem: function(li) {
              var lists = li.children(this.options.listNodeName);
              if (lists.length) {
                  li.addClass(this.options.collapsedClass);
              }
          },
  
          expandAll: function() {
              var list = this;
              list.el.find(list.options.itemNodeName).each(function() {
                  list.expandItem($(this));
              });
          },
  
          collapseAll: function() {
              var list = this;
              list.el.find(list.options.itemNodeName).each(function() {
                  list.collapseItem($(this));
              });
          },
  
          setParent: function(li) {
              //Check if li is an element of itemNodeName type and has children
              if (li.is(this.options.itemNodeName) && li.children(this.options.listNodeName).length) {
                  // make sure NOT showing two or more sets data-action buttons
                  li.children('[data-action]').remove();
                  li.prepend($(this.options.expandBtnHTML));
                  li.prepend($(this.options.collapseBtnHTML));
              }
          },
  
          unsetParent: function(li) {
              li.removeClass(this.options.collapsedClass);
              li.children('[data-action]').remove();
              li.children(this.options.listNodeName).remove();
          },
  
          dragStart: function(e) {
              var mouse = this.mouse,
                  target = $(e.target),
                  dragItem = target.closest(this.options.itemNodeName),
                  position = {
                      top  : e.pageY,
                      left : e.pageX
                  };
  
              var continueExecution = this.options.onDragStart.call(this, this.el, dragItem, position);
  
              if (typeof continueExecution !== 'undefined' && continueExecution === false) {
                  return;
              }
  
              this.placeEl.css('height', dragItem.height());
  
              mouse.offsetX = e.pageX - dragItem.offset().left;
              mouse.offsetY = e.pageY - dragItem.offset().top;
              mouse.startX = mouse.lastX = e.pageX;
              mouse.startY = mouse.lastY = e.pageY;
  
              this.dragRootEl = this.el;
              this.dragEl = $(document.createElement(this.options.listNodeName)).addClass(this.options.listClass + ' ' + this.options.dragClass);
              this.dragEl.css('width', dragItem.outerWidth());
  
              this.setIndexOfItem(dragItem);
  
              // fix for zepto.js
              //dragItem.after(this.placeEl).detach().appendTo(this.dragEl);
              dragItem.after(this.placeEl);
              dragItem[0].parentNode.removeChild(dragItem[0]);
              dragItem.appendTo(this.dragEl);
  
              $(document.body).append(this.dragEl);
              this.dragEl.css({
                  'left': e.pageX - mouse.offsetX,
                  'top': e.pageY - mouse.offsetY
              });
              // total depth of dragging item
              var i, depth,
                  items = this.dragEl.find(this.options.itemNodeName);
              for (i = 0; i < items.length; i++) {
                  depth = $(items[i]).parents(this.options.listNodeName).length;
                  if (depth > this.dragDepth) {
                      this.dragDepth = depth;
                  }
              }
          },
  
          //Create sublevel.
          //  element : element which become parent
          //  item    : something to place into new sublevel
          createSubLevel: function(element, item) {
              var list = $('<' + this.options.listNodeName + '/>').addClass(this.options.listClass);
              if (item) list.append(item);
              element.append(list);
              this.setParent(element);
              return list;
          },
  
          setIndexOfItem: function(item, index) {
              index = index || [];
  
              index.unshift(item.index());
  
              if ($(item[0].parentNode)[0] !== this.dragRootEl[0]) {
                  this.setIndexOfItem($(item[0].parentNode), index);
              }
              else {
                  this.dragEl.data('indexOfItem', index);
              }
          },
  
          restoreItemAtIndex: function(dragElement, indexArray) {
              var currentEl = this.el,
                  lastIndex = indexArray.length - 1;
  
              //Put drag element at current element position.
              function placeElement(currentEl, dragElement) {
                  if (indexArray[lastIndex] === 0) {
                      $(currentEl).prepend(dragElement.clone(true)); //using true saves added to element events.
                  }
                  else {
                      $(currentEl.children[indexArray[lastIndex] - 1]).after(dragElement.clone(true)); //using true saves added to element events.
                  }
              }
              //Diggin through indexArray to get home for dragElement.
              for (var i = 0; i < indexArray.length; i++) {
                  if (lastIndex === parseInt(i)) {
                      placeElement(currentEl, dragElement);
                      return;
                  }
                  //element can have no indexes, so we have to use conditional here to avoid errors.
                  //if element doesn't exist we defenetly need to add new list.
                  var element = (currentEl[0]) ? currentEl[0] : currentEl;
                  var nextEl  = element.children[indexArray[i]];
                  currentEl   = (!nextEl) ? this.createSubLevel($(element)) : nextEl;
              }
          },
  
          dragStop: function(e) {
              // fix for zepto.js
              //this.placeEl.replaceWith(this.dragEl.children(this.options.itemNodeName + ':first').detach());
              var position = {
                  top  : e.pageY,
                  left : e.pageX
              };
              //Get indexArray of item at drag start.
              var srcIndex = this.dragEl.data('indexOfItem');
  
              var el = this.dragEl.children(this.options.itemNodeName).first();
  
              el[0].parentNode.removeChild(el[0]);
  
              this.dragEl.remove(); //Remove dragEl, cause it can affect on indexing in html collection.
  
              //Before drag stop callback
              var continueExecution = this.options.beforeDragStop.call(this, this.el, el, this.placeEl.parent());
              if (typeof continueExecution !== 'undefined' && continueExecution === false) {
                  var parent = this.placeEl.parent();
                  this.placeEl.remove();
                  if (!parent.children().length) {
                      this.unsetParent(parent.parent());
                  }
                  this.restoreItemAtIndex(el, srcIndex);
                  this.reset();
                  return;
              }
  
              this.placeEl.replaceWith(el);
  
              if (this.hasNewRoot) {
                  if (this.options.fixed === true) {
                      this.restoreItemAtIndex(el, srcIndex);
                  }
                  else {
                      this.el.trigger('lostItem');
                  }
                  this.dragRootEl.trigger('gainedItem');
              }
              else {
                  this.dragRootEl.trigger('change');
              }
  
              this.options.callback.call(this, this.dragRootEl, el, position);
  
              this.reset();
          },
  
          dragMove: function(e) {
              var list, parent, prev, next, depth,
                  opt = this.options,
                  mouse = this.mouse;
  
              this.dragEl.css({
                  'left': e.pageX - mouse.offsetX,
                  'top': e.pageY - mouse.offsetY
              });
  
              // mouse position last events
              mouse.lastX = mouse.nowX;
              mouse.lastY = mouse.nowY;
              // mouse position this events
              mouse.nowX = e.pageX;
              mouse.nowY = e.pageY;
              // distance mouse moved between events
              mouse.distX = mouse.nowX - mouse.lastX;
              mouse.distY = mouse.nowY - mouse.lastY;
              // direction mouse was moving
              mouse.lastDirX = mouse.dirX;
              mouse.lastDirY = mouse.dirY;
              // direction mouse is now moving (on both axis)
              mouse.dirX = mouse.distX === 0 ? 0 : mouse.distX > 0 ? 1 : -1;
              mouse.dirY = mouse.distY === 0 ? 0 : mouse.distY > 0 ? 1 : -1;
              // axis mouse is now moving on
              var newAx = Math.abs(mouse.distX) > Math.abs(mouse.distY) ? 1 : 0;
  
              // do nothing on first move
              if (!mouse.moving) {
                  mouse.dirAx = newAx;
                  mouse.moving = true;
                  return;
              }
  
              // do scrolling if enable
              if (opt.scroll) {
                  if (typeof window.jQuery.fn.scrollParent !== 'undefined') {
                      var scrolled = false;
                      var scrollParent = this.el.scrollParent()[0];
                      if (scrollParent !== document && scrollParent.tagName !== 'HTML') {
                          if ((opt.scrollTriggers.bottom + scrollParent.offsetHeight) - e.pageY < opt.scrollSensitivity)
                              scrollParent.scrollTop = scrolled = scrollParent.scrollTop + opt.scrollSpeed;
                          else if (e.pageY - opt.scrollTriggers.top < opt.scrollSensitivity)
                              scrollParent.scrollTop = scrolled = scrollParent.scrollTop - opt.scrollSpeed;
  
                          if ((opt.scrollTriggers.right + scrollParent.offsetWidth) - e.pageX < opt.scrollSensitivity)
                              scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + opt.scrollSpeed;
                          else if (e.pageX - opt.scrollTriggers.left < opt.scrollSensitivity)
                              scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft - opt.scrollSpeed;
                      } else {
                          if (e.pageY - $(document).scrollTop() < opt.scrollSensitivity)
                              scrolled = $(document).scrollTop($(document).scrollTop() - opt.scrollSpeed);
                          else if ($(window).height() - (e.pageY - $(document).scrollTop()) < opt.scrollSensitivity)
                              scrolled = $(document).scrollTop($(document).scrollTop() + opt.scrollSpeed);
  
                          if (e.pageX - $(document).scrollLeft() < opt.scrollSensitivity)
                              scrolled = $(document).scrollLeft($(document).scrollLeft() - opt.scrollSpeed);
                          else if ($(window).width() - (e.pageX - $(document).scrollLeft()) < opt.scrollSensitivity)
                              scrolled = $(document).scrollLeft($(document).scrollLeft() + opt.scrollSpeed);
                      }
                  } else {
                      console.warn('To use scrolling you need to have scrollParent() function, check documentation for more information');
                  }
              }
  
              if (this.scrollTimer) {
                  clearTimeout(this.scrollTimer);
              }
  
              if (opt.scroll && scrolled) {
                  this.scrollTimer = setTimeout(function() {
                      $(window).trigger(e);
                  }, 10);
              }
  
              // calc distance moved on this axis (and direction)
              if (mouse.dirAx !== newAx) {
                  mouse.distAxX = 0;
                  mouse.distAxY = 0;
              }
              else {
                  mouse.distAxX += Math.abs(mouse.distX);
                  if (mouse.dirX !== 0 && mouse.dirX !== mouse.lastDirX) {
                      mouse.distAxX = 0;
                  }
                  mouse.distAxY += Math.abs(mouse.distY);
                  if (mouse.dirY !== 0 && mouse.dirY !== mouse.lastDirY) {
                      mouse.distAxY = 0;
                  }
              }
              mouse.dirAx = newAx;
  
              /**
               * move horizontal
               */
              if (mouse.dirAx && mouse.distAxX >= opt.threshold) {
                  // reset move distance on x-axis for new phase
                  mouse.distAxX = 0;
                  prev = this.placeEl.prev(opt.itemNodeName);
                  // increase horizontal level if previous sibling exists, is not collapsed, and can have children
                  if (mouse.distX > 0 && prev.length && !prev.hasClass(opt.collapsedClass) && !prev.hasClass(opt.noChildrenClass)) {
                      // cannot increase level when item above is collapsed
                      list = prev.find(opt.listNodeName).last();
                      // check if depth limit has reached
                      depth = this.placeEl.parents(opt.listNodeName).length;
                      if (depth + this.dragDepth <= opt.maxDepth) {
                          // create new sub-level if one doesn't exist
                          if (!list.length) {
                              this.createSubLevel(prev, this.placeEl);
                          }
                          else {
                              // else append to next level up
                              list = prev.children(opt.listNodeName).last();
                              list.append(this.placeEl);
                          }
                      }
                  }
                  // decrease horizontal level
                  if (mouse.distX < 0) {
                      // we can't decrease a level if an item preceeds the current one
                      next = this.placeEl.next(opt.itemNodeName);
                      if (!next.length) {
                          parent = this.placeEl.parent();
                          this.placeEl.closest(opt.itemNodeName).after(this.placeEl);
                          if (!parent.children().length) {
                              this.unsetParent(parent.parent());
                          }
                      }
                  }
              }
  
              var isEmpty = false;
  
              // find list item under cursor
              if (!hasPointerEvents) {
                  this.dragEl[0].style.visibility = 'hidden';
              }
              this.pointEl = $(document.elementFromPoint(e.pageX - document.body.scrollLeft, e.pageY - (window.pageYOffset || document.documentElement.scrollTop)));
              if (!hasPointerEvents) {
                  this.dragEl[0].style.visibility = 'visible';
              }
              if (this.pointEl.hasClass(opt.handleClass)) {
                  this.pointEl = this.pointEl.closest(opt.itemNodeName);
              }
              if (this.pointEl.hasClass(opt.emptyClass)) {
                  isEmpty = true;
              }
              else if (!this.pointEl.length || !this.pointEl.hasClass(opt.itemClass)) {
                  return;
              }
  
              // find parent list of item under cursor
              var pointElRoot = this.pointEl.closest('.' + opt.rootClass),
                  isNewRoot = this.dragRootEl.data('nestable-id') !== pointElRoot.data('nestable-id');
  
              /**
               * move vertical
               */
              if (!mouse.dirAx || isNewRoot || isEmpty) {
                  // check if groups match if dragging over new root
                  if (isNewRoot && opt.group !== pointElRoot.data('nestable-group')) {
                      return;
                  }
  
                  // fixed item's depth, use for some list has specific type, eg:'Volume, Section, Chapter ...'
                  if (this.options.fixedDepth && this.dragDepth + 1 !== this.pointEl.parents(opt.listNodeName).length) {
                      return;
                  }
  
                  // check depth limit
                  depth = this.dragDepth - 1 + this.pointEl.parents(opt.listNodeName).length;
                  if (depth > opt.maxDepth) {
                      return;
                  }
                  var before = e.pageY < (this.pointEl.offset().top + this.pointEl.height() / 2);
                  parent = this.placeEl.parent();
                  // if empty create new list to replace empty placeholder
                  if (isEmpty) {
                      list = $(document.createElement(opt.listNodeName)).addClass(opt.listClass);
                      list.append(this.placeEl);
                      this.pointEl.replaceWith(list);
                  }
                  else if (before) {
                      this.pointEl.before(this.placeEl);
                  }
                  else {
                      this.pointEl.after(this.placeEl);
                  }
                  if (!parent.children().length) {
                      this.unsetParent(parent.parent());
                  }
                  if (!this.dragRootEl.find(opt.itemNodeName).length) {
                      this.appendEmptyElement(this.dragRootEl);
                  }
                  // parent root list has changed
                  this.dragRootEl = pointElRoot;
                  if (isNewRoot) {
                      this.hasNewRoot = this.el[0] !== this.dragRootEl[0];
                  }
              }
          },
  
          // Append the .dd-empty div to the list so it can be populated and styled
          appendEmptyElement: function(element) {
              element.append('<div class="' + this.options.emptyClass + '"/>');
          }
      };
  
      $.fn.nestable = function(params) {
          var lists  = this,
              retval = this,
              args   = arguments;
  
          if (!('Nestable' in window)) {
              window.Nestable = {};
              Nestable.counter = 0;
          }
  
          lists.each(function() {
              var plugin = $(this).data("nestable");
  
              if (!plugin) {
                  Nestable.counter++;
                  $(this).data("nestable", new Plugin(this, params));
                  $(this).data("nestable-id", Nestable.counter);
              }
              else {
                  if (typeof params === 'string' && typeof plugin[params] === 'function') {
                      if (args.length > 1){
                          var pluginArgs = [];
                          for (var i = 1; i < args.length; i++) {
                              pluginArgs.push(args[i]);
                          }
                          retval = plugin[params].apply(plugin, pluginArgs);
                      }
                      else {
                          retval = plugin[params]();
                      }
                  }
              }
          });
  
          return retval || lists;
      };
  
  })(window.jQuery || window.Zepto, window, document);
  
  
  /***/ }),
  
  /***/ "./node_modules/stimulus/index.js":
  /*!****************************************!*\
    !*** ./node_modules/stimulus/index.js ***!
    \****************************************/
  /*! exports provided: Application, Context, Controller, defaultSchema */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var _stimulus_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @stimulus/core */ "./node_modules/@stimulus/core/dist/index.js");
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Application", function() { return _stimulus_core__WEBPACK_IMPORTED_MODULE_0__["Application"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Context", function() { return _stimulus_core__WEBPACK_IMPORTED_MODULE_0__["Context"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Controller", function() { return _stimulus_core__WEBPACK_IMPORTED_MODULE_0__["Controller"]; });
  
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultSchema", function() { return _stimulus_core__WEBPACK_IMPORTED_MODULE_0__["defaultSchema"]; });
  
  
  
  
  /***/ }),
  
  /***/ "./resources/js/app.js":
  /*!*****************************!*\
    !*** ./resources/js/app.js ***!
    \*****************************/
  /*! no exports provided */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var _controllers_components_menu_controller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./controllers/components/menu_controller */ "./resources/js/controllers/components/menu_controller.js");
  /* harmony import */ var _controllers_fields_tag_controller__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./controllers/fields/tag_controller */ "./resources/js/controllers/fields/tag_controller.js");
  
  
  
  __webpack_require__(/*! nestable2 */ "./node_modules/nestable2/jquery.nestable.js"); //We can work with this only when we already have an application
  
  
  if (typeof window.application !== 'undefined') {
    window.application.register('components--menu', _controllers_components_menu_controller__WEBPACK_IMPORTED_MODULE_0__["default"]);
    window.application.register('fields--tag', _controllers_fields_tag_controller__WEBPACK_IMPORTED_MODULE_1__["default"]);
  }
  
  /***/ }),
  
  /***/ "./resources/js/controllers/components/menu_controller.js":
  /*!****************************************************************!*\
    !*** ./resources/js/controllers/components/menu_controller.js ***!
    \****************************************************************/
  /*! exports provided: default */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _default; });
  /* harmony import */ var stimulus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! stimulus */ "./node_modules/stimulus/index.js");
  function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
  
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
  
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
  
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
  
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  
  
  
  var _default =
  /*#__PURE__*/
  function (_Controller) {
    _inherits(_default, _Controller);
  
    function _default() {
      _classCallCheck(this, _default);
  
      return _possibleConstructorReturn(this, _getPrototypeOf(_default).apply(this, arguments));
    }
  
    _createClass(_default, [{
      key: "connect",
  
      /**
       *
       * @type {string[]}
       */
  
      /**
       *
       */
      value: function connect() {
        var menu = this;
        $('.dd').nestable({}).on('change', function () {
          menu.sort();
          menu.send();
        }).on('click', '.edit', function (event) {
          menu.edit(event.target);
        });
        menu.sort();
        this.checkExist();
      }
      /**
       *
       * @param object
       */
  
    }, {
      key: "load",
      value: function load(object) {
        this.id = object.id;
        this.labelTarget.value = object.label;
        this.slugTarget.value = object.slug;
        this.authTarget.value = object.auth;
        this.robotTarget.value = object.robot;
        this.styleTarget.value = object.style;
        this.targetTarget.value = object.target;
        this.titleTarget.value = object.title;
        this.checkExist();
      }
      /**
       *
       */
  
    }, {
      key: "sort",
      value: function sort() {
        $('.dd-item').each(function (i, item) {
          $(item).data({
            sort: i
          });
        });
      }
      /**
       *
       * @param element
       */
  
    }, {
      key: "edit",
      value: function edit(element) {
        var data = $(element).parent().data();
        data.label = $(element).prev().text();
        this.load(data);
        $('#menuModal').modal('toggle');
      }
      /**
       *
       * @returns {{label: *, title: *, auth: *, slug: *, robot: *, style: *, target: *}}
       */
  
    }, {
      key: "getFormData",
      value: function getFormData() {
        return {
          label: this.labelTarget.value,
          title: this.titleTarget.value,
          auth: this.authTarget.value,
          slug: this.slugTarget.value,
          robot: this.robotTarget.value,
          style: this.styleTarget.value,
          target: this.targetTarget.value
        };
      }
      /**
       *
       */
  
    }, {
      key: "add",
      value: function add() {
        if (!this.checkForm()) {
          return;
        }
  
        var $menu = this,
            $dd = $('.dd'),
            data = {
          menu: $dd.attr('data-name'),
          lang: $dd.attr('data-lang'),
          data: this.getFormData()
        };
        axios.post(this.getUri(''), {
          params: data
        }).then(function (response) {
          $menu.add2Dom(response.data.id);
        });
      }
      /**
       *
       * @param id
       */
  
    }, {
      key: "add2Dom",
      value: function add2Dom(id) {
        $('.dd > .dd-list').append("<li class=\"dd-item dd3-item\" data-id=\"".concat(id, "\"> <div  class=\"dd-handle dd3-handle\">Drag</div><div  class=\"dd3-content\">").concat(this.labelTarget.value, "</div> <div  class=\"edit icon-pencil\"></div></li>"));
        $("li[data-id=".concat(id, "]")).data(this.getFormData());
        this.sort();
        this.clear();
        this.send();
      }
      /**
       *
       */
  
    }, {
      key: "save",
      value: function save() {
        if (!this.checkForm()) {
          return;
        }
  
        $("li[data-id=".concat(this.id, "]")).data(this.getFormData());
        $("li[data-id=".concat(this.id, "] > .dd3-content")).html(this.labelTarget.value);
        this.clear();
        this.send();
      }
      /**
       *
       * @param id
       */
  
    }, {
      key: "destroy",
      value: function destroy(id) {
        axios["delete"](this.getUri(id)).then(function (response) {});
      }
      /**
       *
       */
  
    }, {
      key: "remove",
      value: function remove() {
        $("li[data-id=".concat(this.id, "]")).remove();
        this.destroy(this.id);
        this.clear();
      }
      /**
       *
       */
  
    }, {
      key: "clear",
      value: function clear() {
        this.labelTarget.value = '';
        this.titleTarget.value = '';
        this.authTarget.value = 0;
        this.slugTarget.value = '';
        this.robotTarget.value = 'follow';
        this.styleTarget.value = '';
        this.targetTarget.value = '_self';
        this.id = '';
        this.checkExist();
        $('#menuModal').modal('toggle');
      }
      /**
       *
       */
  
    }, {
      key: "send",
      value: function send() {
        var $dd = $('.dd'),
            name = $dd.attr('data-name'),
            data = {
          lang: $dd.attr('data-lang'),
          data: $dd.nestable('serialize')
        };
        axios.put(this.getUri(name), data).then(function (response) {});
      }
      /**
       *
       * @returns {boolean}
       */
  
    }, {
      key: "checkForm",
      value: function checkForm() {
        if (!this.labelTarget.value) {
          this.showBlocks('errors.label');
          return false;
        }
  
        if (!this.titleTarget.value) {
          this.showBlocks('errors.title');
          return false;
        }
  
        if (!this.slugTarget.value) {
          this.showBlocks('errors.slug');
          return false;
        }
  
        this.hiddenBlocks(['errors.slug', 'errors.label', 'errors.title']);
        return true;
      }
      /**
       *
       */
  
    }, {
      key: "checkExist",
      value: function checkExist() {
        if (this.exist()) {
          this.showBlocks(['menu.remove', 'menu.reset', 'menu.save']);
          this.hiddenBlocks('menu.create');
          return;
        }
  
        this.showBlocks(['menu.create']);
        this.hiddenBlocks(['menu.remove', 'menu.reset', 'menu.save']);
      }
      /**
       *
       * @returns {boolean}
       */
  
    }, {
      key: "exist",
      value: function exist() {
        return Number.isInteger(this.id) && $("li[data-id=".concat(this.id, "]")).length > 0;
      }
      /**
       *
       * @param path
       * @returns {*}
       */
  
    }, {
      key: "getUri",
      value: function getUri() {
        var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
        path = path === '' ? "/press/menu" : "/press/menu/".concat(path);
        return platform.prefix(path);
      }
      /**
       *
       * @param blocks
       */
  
    }, {
      key: "hiddenBlocks",
      value: function hiddenBlocks(blocks) {
        if (!Array.isArray(blocks)) {
          blocks = [blocks];
        }
  
        blocks.forEach(function (element) {
          document.getElementById(element).classList.add("none");
        });
      }
      /**
       *
       * @param blocks
       */
  
    }, {
      key: "showBlocks",
      value: function showBlocks(blocks) {
        if (!Array.isArray(blocks)) {
          blocks = [blocks];
        }
  
        blocks.forEach(function (element) {
          document.getElementById(element).classList.remove("none");
        });
      }
    }]);
  
    return _default;
  }(stimulus__WEBPACK_IMPORTED_MODULE_0__["Controller"]);
  
  _defineProperty(_default, "targets", ["id", "label", "slug", "auth", "robot", "style", "target", "title"]);
  
  
  
  /***/ }),
  
  /***/ "./resources/js/controllers/fields/tag_controller.js":
  /*!***********************************************************!*\
    !*** ./resources/js/controllers/fields/tag_controller.js ***!
    \***********************************************************/
  /*! exports provided: default */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _default; });
  /* harmony import */ var stimulus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! stimulus */ "./node_modules/stimulus/index.js");
  function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
  
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
  
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
  
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
  
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  
  
  
  var _default =
  /*#__PURE__*/
  function (_Controller) {
    _inherits(_default, _Controller);
  
    function _default() {
      _classCallCheck(this, _default);
  
      return _possibleConstructorReturn(this, _getPrototypeOf(_default).apply(this, arguments));
    }
  
    _createClass(_default, [{
      key: "connect",
      value: function connect() {
        var select = this.element.querySelector('select');
        setTimeout(function () {
          $(select).select2({
            theme: 'bootstrap',
            templateResult: function templateResult(state) {
              if (!state.id || !state.count) {
                return state.text;
              }
  
              return $("<span>".concat(state.text, "</span><span class=\"pull-right badge bg-info\">").concat(state.count, "</span>"));
            },
            createTag: function createTag(tag) {
              return {
                id: tag.term,
                text: tag.term
              };
            },
            escapeMarkup: function escapeMarkup(m) {
              return m;
            },
            width: '100%',
            tags: true,
            cache: true,
            ajax: {
              url: function url(params) {
                return platform.prefix("/press/tags/".concat(params.term));
              },
              delay: 340,
              processResults: function processResults(data) {
                return {
                  results: data
                };
              }
            }
          });
        }, 100);
      }
    }]);
  
    return _default;
  }(stimulus__WEBPACK_IMPORTED_MODULE_0__["Controller"]);
  
  
  
  /***/ }),
  
  /***/ "./resources/sass/app.scss":
  /*!*********************************!*\
    !*** ./resources/sass/app.scss ***!
    \*********************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  // removed by extract-text-webpack-plugin
  
  /***/ }),
  
  /***/ "./resources/templates/clean-blog/sass/app.scss":
  /*!******************************************************!*\
    !*** ./resources/templates/clean-blog/sass/app.scss ***!
    \******************************************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  // removed by extract-text-webpack-plugin
  
  /***/ }),
  
  /***/ 0:
  /*!************************************************************************************************************!*\
    !*** multi ./resources/js/app.js ./resources/sass/app.scss ./resources/templates/clean-blog/sass/app.scss ***!
    \************************************************************************************************************/
  /*! no static exports found */
  /***/ (function(module, exports, __webpack_require__) {
  
  __webpack_require__(/*! /home/vagrant/code/package/press/resources/js/app.js */"./resources/js/app.js");
  __webpack_require__(/*! /home/vagrant/code/package/press/resources/sass/app.scss */"./resources/sass/app.scss");
  module.exports = __webpack_require__(/*! /home/vagrant/code/package/press/resources/templates/clean-blog/sass/app.scss */"./resources/templates/clean-blog/sass/app.scss");
  
  
  /***/ })
  
  /******/ });