UNPKG

survey-creator

Version:

Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.

308 lines (255 loc) 6.21 MB
/*! * SurveyJS Creator v1.12.54 * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/ * Github: https://github.com/surveyjs/survey-creator * License: https://surveyjs.io/Licenses#SurveyCreator */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("knockout"), require("survey-knockout")); else if(typeof define === 'function' && define.amd) define("SurveyCreator", ["knockout", "survey-knockout"], factory); else if(typeof exports === 'object') exports["SurveyCreator"] = factory(require("knockout"), require("survey-knockout")); else root["SurveyCreator"] = factory(root["ko"], root["Survey"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_knockout__, __WEBPACK_EXTERNAL_MODULE_survey_knockout__) { return /******/ (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 = "./src/entries/index.ts"); /******/ }) /************************************************************************/ /******/ ({ /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/flowpanel-actions.html": /*!**************************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/flowpanel-actions.html ***! \**************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div>\n <!-- ko foreach: actions -->\n <!-- ko if: !$data.template -->\n <span class=\"svda_question_action svd-main-color\" data-bind=\"key2click, clickNoFocus: function() { onClick($parent.question); }, attr: { title: text, tabindex: $data.needFocus === undefined || !!$data.needFocus ? 0 : undefined }\">\n <span>\n <svg-icon class=\"svd-primary-icon\" data-bind=\"css: $parent.getStyle($data)\" params=\"iconName: $parent.getStyle($data)\"></svg-icon>\n </span>\n <span data-bind=\"text: $data.hasTitle ? text: ''\"></span>\n </span>\n <!-- /ko -->\n <!-- ko if: !!$data.template -->\n <!-- ko template: template -->\n <!-- /ko -->\n <!-- /ko -->\n <!-- /ko -->\n</div>"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/image-items.html": /*!********************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/image-items.html ***! \********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div class=\"svda-content\">\n <span class=\"svda-image-editor\">\n <span\n class=\"edit-image-item\"\n role=\"button\"\n data-bind=\"click: chooseImage, clickBubble: false, attr: { title: getLocString('pe.edit'), 'aria-label': getLocString('pe.edit') }\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplaceedit', size: 12\"\n ></svg-icon>\n </span>\n </span>\n <span\n class=\"svda-drag-handle\"\n role=\"button\"\n data-bind=\"attr: { title: getLocString('pe.move'), 'aria-label': getLocString('pe.move') }\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplacedraggable', size: 12\"\n ></svg-icon>\n </span>\n <!-- ko ifnot: isLastItem -->\n <span\n class=\"svda-delete-item\"\n role=\"button\"\n data-bind=\"click: deleteItem, attr: { title: getLocString('pe.delete'), 'aria-label': getLocString('pe.delete') }\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplacedelete', size: 12\"\n ></svg-icon>\n </span>\n <!-- /ko -->\n</div>\n"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/image.html": /*!**************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/image.html ***! \**************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div class=\"svda-content\">\n <span class=\"svda-image-editor\">\n <span\n class=\"edit-image-item\"\n role=\"button\"\n data-bind=\"click: chooseImage, clickBubble: false, attr: { title: getLocString('pe.edit'), 'aria-label': getLocString('pe.edit') }\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplaceedit', size: 12\"\n ></svg-icon>\n </span>\n </span>\n <!-- ko if: allowDelete -->\n <span\n class=\"svda-delete-item\"\n data-bind=\"click: deleteImage, attr: { title: getLocString('pe.delete'), 'aria-label': getLocString('pe.delete') }\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplacedelete', size: 12\"\n ></svg-icon>\n </span>\n <!-- /ko -->\n</div>\n"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/item-editor.html": /*!********************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/item-editor.html ***! \********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div class=\"svda-content\">\n <span\n class=\"svda-title-editor-content\"\n data-bind=\"visible: isEditing\"\n style=\"display: none\"\n >\n <input\n data-svd-info=\"adorner\"\n data-bind=\"textInput: editingName, event: { compositionstart: compositionStart, keyup: nameEditorKeypress, blur: postEdit }, attr: { maxLength: maxLength, 'aria-label': name }\"\n style=\"\n border-top: none;\n border-left: none;\n border-right: none;\n outline: none;\n background-color: transparent;\n display: inline-block;\n \"\n />\n <span\n class=\"svda-edit-button\"\n role=\"button\"\n data-bind=\"click: postEdit, enable: editingName() != ''\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplacecheck', size: 12\"\n ></svg-icon>\n </span>\n <!-- <span class=\"svda-edit-button\" data-bind=\"click: cancelEdit\">✕</span> -->\n </span>\n <span\n class=\"svda-focusable\"\n tabindex=\"0\"\n data-bind=\"attr: { 'aria-label': getLocString('pe.keyboardAdornerTip') }\"\n >\n </span>\n <span\n class=\"svda-title-editor-content svda-title-editor-start\"\n data-bind=\"visible: !isEditing()\"\n >\n <span style=\"display: none\" data-bind=\"text: editingName\"></span>\n <span\n class=\"edit-survey-name\"\n role=\"button\"\n data-bind=\"click: startEdit, attr: { title: getLocString('pe.edit'), 'aria-label': getLocString('pe.edit') }\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplaceedit', size: 12\"\n ></svg-icon>\n </span>\n </span>\n <!-- ko if: isDraggable -->\n <span\n class=\"svda-drag-handle\"\n role=\"button\"\n data-bind=\"attr: { title: getLocString('pe.move'), 'aria-label': getLocString('pe.move') }, visible: !isEditing()\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplacedraggable', size: 12\"\n ></svg-icon>\n </span>\n <!-- /ko -->\n <!--ko if: !isLastItem && allowAddRemoveItems -->\n <span\n class=\"svda-delete-item\"\n role=\"button\"\n data-bind=\"click: deleteItem, attr: { title: getLocString('pe.delete'), 'aria-label': getLocString('pe.delete') }, visible: !isEditing()\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplacedelete', size: 12\"\n ></svg-icon>\n </span>\n <!-- /ko -->\n</div>\n"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/question-actions.html": /*!*************************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/question-actions.html ***! \*************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div>\n <!-- ko foreach: actions -->\n <!-- ko if: !$data.template -->\n <span class=\"svda_question_action svd-main-color\" data-bind=\"key2click, clickNoFocus: function() { onClick($parent.question); }, attr: {title: text, 'aria-label': text, role: 'button', tabindex: $data.needFocus === undefined || !!$data.needFocus ? 0 : undefined }\">\n <span>\n <svg-icon class=\"svd-primary-icon\" data-bind=\"css: $parent.getStyle($data)\" params=\"iconName: $parent.getStyle($data)\"></svg-icon>\n </span>\n <span data-bind=\"text: $data.hasTitle ? text: ''\"></span>\n </span>\n <!-- /ko -->\n <!-- ko if: !!$data.template -->\n <!-- ko template: template -->\n <!-- /ko -->\n <!-- /ko -->\n <!-- /ko -->\n</div>"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/rating-item-editor.html": /*!***************************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/rating-item-editor.html ***! \***************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div class=\"svda-content\">\n <span\n class=\"svda-title-editor-content\"\n data-bind=\"visible: isEditing\"\n style=\"display: none\"\n >\n <input\n data-svd-info=\"adorner\"\n data-bind=\"textInput: editingName, event: { compositionstart: compositionStart, keyup: nameEditorKeypress, blur: postEdit }\"\n style=\"\n border-top: none;\n border-left: none;\n border-right: none;\n outline: none;\n background-color: transparent;\n display: inline-block;\n margin: -6px;\n \"\n />\n <span\n class=\"svda-edit-button\"\n data-bind=\"click: postEdit, enable: editingName() != ''\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n role=\"button\"\n params=\"iconName: 'icon-inplacecheck', size: 12\"\n ></svg-icon>\n </span>\n <!-- <span class=\"svda-edit-button\" data-bind=\"click: cancelEdit\">✕</span> -->\n </span>\n <span\n class=\"svda-title-editor-content svda-title-editor-start\"\n data-bind=\"visible: !isEditing()\"\n >\n <span style=\"display: none\" data-bind=\"text: editingName\"></span>\n <span\n class=\"edit-survey-name\"\n role=\"button\"\n data-bind=\"click: startEdit, attr: { title: getLocString('pe.edit'), 'aria-label': getLocString('pe.edit') }\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplaceedit', size: 12\"\n ></svg-icon>\n </span>\n </span>\n <!--ko ifnot: isLastItem -->\n <span\n class=\"svda-delete-item\"\n role=\"button\"\n data-bind=\"click: deleteItem, attr: { title: getLocString('pe.delete'), 'aria-label': getLocString('pe.delete') }, visible: !isEditing()\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-inplacedelete', size: 12\"\n ></svg-icon>\n </span>\n <!-- /ko -->\n</div>\n"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/select-items-display.html": /*!*****************************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/select-items-display.html ***! \*****************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div class=\"svda-select-items-display\">\n <div class=\"svda-select-items-title\" data-bind=\"click: toggle\">\n <span\n class=\"svd-main-color\"\n data-bind=\"text: getLocString('pe.showChoices')\"\n ></span>\n </div>\n <div\n class=\"svda-select-items-content svd-dark-border-color svd-light-bg-color\"\n data-bind=\"visible: isExpanded\"\n >\n <div class=\"svda-select-items-collection\">\n <!-- ko foreach: { data: choices } -->\n <div> \n <span data-bind=\"text: text\"></span>\n </div> \n <!-- /ko -->\n </div>\n <!-- ko if: question.hasOther -->\n <div class=\"item_editable\">\n <span data-bind=\"text: otherText\"></span>\n </div>\n <!-- /ko -->\n </div>\n "; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/select-items-editor.html": /*!****************************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/select-items-editor.html ***! \****************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div class=\"svda-select-items-editor\">\n <div class=\"svda-select-items-title\" data-bind=\"click: toggle\">\n <span class=\"svd-main-color\" data-bind=\"text: getLocString('pe.editChoices')\"></span>\n </div>\n <div class=\"svda-select-items-content svd-dark-border-color svd-light-bg-color\" data-bind=\"visible: isExpanded\">\n <div class=\"svda-select-items-collection\">\n <!-- ko foreach: { data: choices, afterRender: choicesRendered } -->\n <div class=\"item_editable item_draggable\">\n <span data-bind=\"text: locText.koRenderedHtml\"></span>\n <span>\n <item-editor\n params=\"name: $parent.valueName, valueChanged: $parent.valueChanged, target: $data, model: $data, item: $data, question: $parent.question, editor: $parent.editor\">\n </item-editor>\n </span>\n </div>\n <!-- /ko -->\n </div>\n <!-- ko if: question.hasNone -->\n <div class=\"item_editable\">\n <span data-bind=\"text: noneText\"></span>\n <span>\n <item-editor\n params='name: \"noneText\", target: question, model: question, valueChanged: noneValueChanged, item: question.noneItem, question: question, editor: editor'>\n </item-editor>\n </span>\n </div>\n <!-- /ko -->\n <!-- ko if: question.hasOther -->\n <div class=\"item_editable\">\n <span data-bind=\"text: otherText\"></span>\n <span>\n <item-editor\n params='name: \"otherText\", target: question, model: question, valueChanged: otherValueChanged, item: question.otherItem, question: question, editor: editor'>\n </item-editor>\n </span>\n </div>\n <!-- /ko -->\n <div class=\"sv_technical svda-add-new-item\" tabindex=\"0\"\n data-bind=\"key2click, click: addItem, attr: { title: getLocString('pe.addItem') }\">\n <svg-icon class=\"svd-primary-icon\" params=\"iconName: 'icon-inplaceplus', size: 12\"></svg-icon>\n </div>\n <!-- ko if: showOther -->\n <div class=\"sv_technical svda-add-new-item svda-add-custom-item\" tabindex=\"0\"\n data-bind=\"key2click, click: addOther, attr: { title: getLocString('pe.addOther') }\">\n <span data-bind=\"text: getLocString('pe.addOther')\"></span>\n </div>\n <!-- /ko -->\n <!-- ko if: showNone -->\n <div class=\"sv_technical svda-add-new-item svda-add-custom-item\" tabindex=\"0\"\n data-bind=\"key2click, click: addNone, attr: { title: getLocString('pe.addNone') }\">\n <span data-bind=\"text: getLocString('pe.addNone')\"></span>\n </div>\n <!-- /ko -->\n </div>\n</div>"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/title-actions.html": /*!**********************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/title-actions.html ***! \**********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div>\n <!-- ko foreach: actions -->\n <!-- ko if: !$data.template -->\n <span\n class=\"svda_question_action svd-main-color\"\n data-bind=\"visible: visible, key2click, clickNoFocus: onClick, attr: {title: text, 'aria-label': text, role: 'button', tabindex: $data.needFocus === undefined || !!$data.needFocus ? 0 : undefined }\"\n >\n <span>\n <svg-icon\n class=\"svd-primary-icon\"\n data-bind=\"css: $parent.getStyle($data)\"\n params=\"iconName: $parent.getIcon($data)\"\n ></svg-icon>\n </span>\n <span data-bind=\"text: $data.hasTitle ? text: ''\"></span>\n </span>\n <!-- /ko -->\n <!-- ko if: !!$data.template -->\n <!-- ko template: template -->\n <!-- /ko -->\n <!-- /ko -->\n <!-- /ko -->\n</div>\n"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/adorners/title-editor.html": /*!*********************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/adorners/title-editor.html ***! \*********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div class=\"svda-content\" data-bind=\"ifnot: readOnly\">\n <span class=\"svda-title-editor-content\" data-bind=\"visible: isEditing\" style=\"display: none;\">\n <input data-svd-info=\"adorner\"\n data-bind=\"textInput: editingName, event: { compositionstart: compositionStart, compositionend: compositionEnd, keyup: nameEditorKeypress, keydown: nameEditorKeydown, blur: postEdit }, attr: { maxLength: maxLength, 'aria-label': name, 'title': error, 'placeholder': error }, css: { 'svda-title-editor-error': error }, style: { 'min-width': error() ? '150px' : '' }\"\n style=\"border-top: none; border-left: none; border-right: none; outline: none; background-color: transparent; display: inline-block;\" />\n <span role=\"button\" class=\"svda-edit-button\" data-bind=\"click: postEdit, enable: editingName() != ''\">\n <svg-icon class=\"svd-primary-icon\" params=\"iconName: 'icon-inplacecheck', size: 12\"></svg-icon>\n </span>\n <!-- <span class=\"svda-edit-button\" data-bind=\"click: cancelEdit\">✕</span> -->\n </span>\n <span class=\"svda-title-editor-focusable\" tabindex=\"0\" role=\"button\"\n data-bind=\"click: startEdit, key2click, attr: { 'aria-label': getLocString('pe.edit') + ' ' + name }\"></span>\n <span class=\"svda-title-editor-content svda-title-editor-start\" data-bind=\"visible: !isEditing()\">\n <span class=\"svda-title-editor-placeholder\" tabindex=\"0\"\n data-bind=\"click: startEdit, text: placeholder, visible: !editingName() && placeholder, key2click, attr: { 'aria-label': name, role: 'textbox', 'aria-readonly': 'false' }\"></span>\n <span role=\"button\" class=\"svda-title-editor-start-button edit-survey-name\"\n data-bind=\"click: startEdit, attr: { title: getLocString('pe.edit') }\">\n <svg-icon class=\"svd-primary-icon\" params=\"iconName: 'icon-inplaceedit', size: 12\"></svg-icon>\n </span>\n </span>\n</div>"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/components/pages-editor.html": /*!***********************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/components/pages-editor.html ***! \***********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<!-- ko if: model.hasDropdownSelector -->\n<svd-dropdown\n class=\"svd-page-selector\"\n params=\"item: { items: model.pagesForSelection, action: model.selectedPage, title: '', ariaLabel: getLocString('ed.selectPage') }\"\n>\n</svd-dropdown>\n<!-- /ko -->\n<div\n tabindex=\"0\"\n class=\"svd-page-scroller-arrow\"\n data-bind=\"key2click, clickNoFocus: moveLeft, attr: {title: getLocString('ed.moveLeft')}, css: {'svd-page-scroller-arrow--visible': hasScroller }\"\n>\n <span>\n <svg-icon\n class=\"svd-secondary-icon\"\n params=\"iconName: 'icon-left'\"\n ></svg-icon>\n </span>\n</div>\n<!-- ko if: model.readOnly -->\n<div\n class=\"svd-pages\"\n data-bind=\"event: {wheel: onWheel}, css: {'svd-pages--no-dropdown-selector': !model.hasDropdownSelector() }\"\n>\n <!-- ko foreach: model.pages -->\n <div\n tabindex=\"0\"\n class=\"svd-page svd-light-border-color\"\n data-bind=\"key2click, css: $parent.getPageClass($data), clickNoFocus: $parent.onPageClick\"\n >\n <span\n class=\"svd-page-name\"\n data-bind=\"text: $parent.model.getDisplayText($data)\"\n ></span>\n <span class=\"svd-page-actions-container\">\n <svg-icon\n data-bind=\"css: $parent.getPageMenuIconClass($data)\"\n params=\"iconName: $parent.getPageMenuIconClass($data), size: 12\"\n ></svg-icon>\n </span>\n </div>\n <!-- /ko -->\n</div>\n<!-- /ko -->\n<!-- ko ifnot: model.readOnly -->\n<div\n class=\"svd-pages\"\n data-bind=\"sortable: {foreach: model.pages, options: sortableOptions}, event: {wheel: onWheel}, css: {'svd-pages--no-dropdown-selector': !model.hasDropdownSelector() }\"\n>\n <div\n tabindex=\"0\"\n class=\"svd-page svd-light-border-color\"\n data-bind=\"key2click, css: $parent.getPageClass($data), clickNoFocus: $parent.onPageClick\"\n >\n <span\n class=\"svd-page-name\"\n data-bind=\"text: $parent.model.getDisplayText($data), css: {'svd-page-disable-move': !$parent.model.canMove}\"\n ></span>\n <span class=\"svd-page-actions-container\">\n <svg-icon\n data-bind=\"css: $parent.getPageMenuIconClass($data)\"\n params=\"iconName: $parent.getPageMenuIconClass($data), size: 12\"\n ></svg-icon>\n\n <div style=\"position: static\">\n <div\n class=\"svd-page-actions svd-dark-border-color svd-light-bg-color\"\n data-bind=\"visible: $parent.model.showActions($data)\"\n >\n <span\n class=\"svd-page-action\"\n data-bind=\"click: function(model, event) {$parent.model.showPageSettings($data); event.stopPropagation();}, attr: {title: $parent.getLocString('ed.editPage')}, visible: $parent.model.canEditPage\"\n >\n <span>\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-actioneditelement'\"\n ></svg-icon>\n </span>\n <span\n class=\"svd-main-color\"\n data-bind=\"text: $parent.getLocString('ed.edit')\"\n ></span>\n </span>\n <span\n class=\"svd-page-action\"\n data-bind=\"click: function(model, event) {$parent.model.deletePage($data); event.stopPropagation();}, attr: {title: $parent.getLocString('ed.deletePage')}, visible: $parent.model.canDeletePage\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-actiondelete'\"\n ></svg-icon>\n </span>\n <span\n class=\"svda_action_separator svd-dark-border-color\"\n data-bind=\"visible: !$parent.model.isLastPage()\"\n ></span>\n <span\n class=\"svd-page-action\"\n data-bind=\"click: function(model, event) {$parent.model.copyPage($data); event.stopPropagation();}, attr: {title: $parent.getLocString('survey.Copy')}, visible: $parent.model.canCopyPage\"\n >\n <svg-icon\n class=\"svd-primary-icon\"\n params=\"iconName: 'icon-actioncopy'\"\n ></svg-icon>\n </span>\n </div>\n </div>\n </span>\n </div>\n</div>\n<!-- /ko -->\n<div\n tabindex=\"0\"\n class=\"svd-page-scroller-arrow\"\n data-bind=\"key2click, clickNoFocus: moveRight, attr: {title: getLocString('ed.moveRight')}, css: {'svd-page-scroller-arrow--visible': hasScroller }\"\n>\n <span>\n <svg-icon\n class=\"svd-secondary-icon\"\n params=\"iconName: 'icon-right'\"\n ></svg-icon>\n </span>\n</div>\n<!-- ko ifnot: model.readOnly -->\n<div\n tabindex=\"0\"\n class=\"svd-page svd-light-border-color svd-page-add\"\n data-bind=\"key2click, clickNoFocus: model.addPage, attr: {title: getLocString('ed.addNewPage')}, visible: model.canAddPage\"\n>\n <span\n class=\"svd-page-name\"\n data-bind=\"text: getLocString('ed.addNewPage')\"\n ></span>\n <span>\n <svg-icon\n class=\"svd-secondary-icon\"\n params=\"iconName: 'icon-add'\"\n ></svg-icon>\n </span>\n</div>\n<!-- /ko -->\n"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/components/toolbox-item.html": /*!***********************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/components/toolbox-item.html ***! \***********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div tabindex=\"0\" draggable=\"true\" class=\"svd_toolbox_item svd-light-border-color\"\n data-bind=\"attr: {title: item.tooltip, role: 'button', 'aria-label': ariaLabel}, css: 'svd_toolbox_item_' + item.iconName, key2click, clickNoFocus: click, event:{dragstart: dragstart, dragend: dragend}\">\n <span>\n <svg-icon params=\"iconName: item.iconName\"></svg-icon>\n </span>\n <span class=\"svd_toolbox_item_text\" data-bind=\"text: item.title\"></span>\n</div>"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/components/toolbox.html": /*!******************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/components/toolbox.html ***! \******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div class=\"svd_toolbox svd-dark-bg-color\">\n <!-- ko if: koHasCategories -->\n <div class=\"panel-group\" role=\"tablist\" data-bind=\"foreach: koCategories\">\n <div class=\"panel panel-info\">\n <div\n class=\"svd-toolbox-category-header\"\n role=\"tab\"\n data-bind=\"click: expand\"\n >\n <span\n data-bind=\"css: { 'svd-main-color': !koCollapsed() }, text: name\"\n ></span>\n <!--ko if: $parent.koCanCollapseCategories -->\n <!-- ko if: koCollapsed -->\n <svg-icon\n class=\"icon-toolbox-arrow\"\n params=\"iconName: 'icon-arrow_down_10x10', size: 10\"\n ></svg-icon>\n <!-- /ko -->\n <!-- ko ifnot: koCollapsed -->\n <svg-icon\n class=\"icon-toolbox-arrow svd-primary-icon\"\n params=\"iconName: 'icon-arrow_up_10x10', size: 10\"\n ></svg-icon>\n <!-- /ko -->\n <!-- /ko -->\n </div>\n <div\n role=\"tabpanel\"\n data-bind=\"css: { 'svd-toolbox-category--collapsed panel-collapse collapse': koCollapsed}\"\n >\n <!-- ko foreach: items -->\n <svd-toolbox-item\n params=\"item: $data, creator: $parents[1].creator\"\n ></svd-toolbox-item>\n <!-- /ko -->\n </div>\n </div>\n </div>\n <!-- /ko -->\n <!-- ko if: !koHasCategories() -->\n <!-- ko foreach: koItems -->\n <svd-toolbox-item\n params=\"item: $data, creator: $parent.creator\"\n ></svd-toolbox-item>\n <!-- /ko -->\n <!-- /ko -->\n</div>\n"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/templates/entry.html": /*!***************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/templates/entry.html ***! \***************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = "" + __webpack_require__(/*! ./index.html */ "./src/templates/index.html") + " " + __webpack_require__(/*! ./questionEditors/questioneditor.html */ "./src/templates/questionEditors/questioneditor.html") + "\n" + __webpack_require__(/*! ./propertyEditors/propertyeditor-triggersitems.html */ "./src/templates/propertyEditors/propertyeditor-triggersitems.html") + "\n" + __webpack_require__(/*! ./toolbar.html */ "./src/templates/toolbar.html") + " " + __webpack_require__(/*! ./convert-action.html */ "./src/templates/convert-action.html") + "\n" + __webpack_require__(/*! ../svgbundle.html */ "./src/svgbundle.html") + " " + __webpack_require__(/*! ./tabs.html */ "./src/templates/tabs.html") + "\n" + __webpack_require__(/*! ./design-surface.html */ "./src/templates/design-surface.html") + ""; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/utils/accordion.html": /*!***************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/utils/accordion.html ***! \***************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div>\n <!-- ko foreach: tabs -->\n <div\n class=\"svd-accordion-tab-header\"\n role=\"tab\"\n tabindex=\"0\"\n data-bind=\"click: toggle, key2click, visible: $parent.showHeader, attr: { 'data-title': title }\"\n >\n <span\n data-bind=\"css: { 'svd-main-color': !collapsed() }, text: title\"\n ></span>\n <!-- ko if: collapsed -->\n <svg-icon\n class=\"icon-toolbox-arrow\"\n params=\"iconName: 'icon-arrow_down_10x10', size: 10\"\n ></svg-icon>\n <!-- /ko -->\n <!-- ko ifnot: collapsed -->\n <svg-icon\n class=\"icon-toolbox-arrow svd-primary-icon\"\n params=\"iconName: 'icon-arrow_up_10x10', size: 10\"\n ></svg-icon>\n <!-- /ko -->\n </div>\n <div\n class=\"svd-accordion-tab-content\"\n role=\"tab\"\n data-bind=\"ifnot: collapsed\"\n >\n <!-- ko component: { name: data.htmlTemplate, params: { model: data.templateObject, afterRender: data.koAfterRender || data.afterRender } } --><!-- /ko -->\n </div>\n <!-- /ko -->\n</div>\n"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/utils/designer-container.html": /*!************************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/utils/designer-container.html ***! \************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div data-bind=\"click: toggle, attr: { title: getLocString(visible() ? 'ed.hidePanel':'ed.showPanel') }\">\n <div class=\"icon svd-icon-container svd-icon-container--left-open\" data-bind=\"visible: !isOpen()\">\n <svg-icon class=\"svd-svg-icon\" params=\"iconName: iconLeftOpen, width: 14, height: 24\"></svg-icon>\n </div>\n <div class=\"icon svd-icon-container svd-icon-container--left-close\" data-bind=\"visible: isOpen\">\n <svg-icon class=\"svd-svg-icon\" params=\"iconName: iconLeftClose, width: 14, height: 24\"></svg-icon>\n </div>\n <div class=\"icon svd-icon-container svd-icon-container--right-open\" data-bind=\"visible: !isOpen()\">\n <svg-icon class=\"svd-svg-icon\" params=\"iconName: iconRightOpen, width: 14, height: 24\"></svg-icon>\n </div>\n <div class=\"icon svd-icon-container svd-icon-container--right-close\" data-bind=\"visible: isOpen\">\n <svg-icon class=\"svd-svg-icon\" params=\"iconName: iconRightClose, width: 14, height: 24\"></svg-icon>\n </div>\n</div>\n\n<div data-bind=\"css: className\">\n <div class=\"svd-vertical-container\" role=\"presentation\">\n <div class=\"svd-vertical-container__row\" role=\"presentation\">\n <div class=\"svd-vertical-container__cell\" role=\"presentation\">\n <div>\n <!-- ko if: tabs().length > 1 -->\n <div class=\"svd-designer-tabbed-container__tab-header-container\" role=\"tablist\">\n <!-- ko foreach: { data: tabs, as: 'content' } -->\n <div class=\"svd-designer-tabbed-container__tab-header\"\n data-bind=\"text: $parent.context.getLocString('ed.' + content), click: function() { $parent.activeTab(content); }, css: { 'svd-designer-tabbed-container__tab-header-active' : content === $parent.activeTab() }, key2click, attr: { 'aria-label': $parent.context.getLocString('ed.' + content), role: 'tab' }\"\n tabindex=\"0\"></div>\n <!-- /ko -->\n </div>\n <!-- /ko -->\n\n <!-- ko if: tabs().length === 1 -->\n <div class=\"svd-designer-container__header\">\n <span class=\"svd-designer-container__header-title\" data-bind=\"text: getLocString('ed.' + tabs()[0])\"></span>\n </div>\n <!-- /ko -->\n </div>\n </div>\n </div>\n <div class=\"svd-vertical-container__row\" role=\"presentation\">\n <div class=\"svd-vertical-container__cell\" role=\"presentation\">\n <div class=\"svd-vertical-container__cell-content-holder\">\n <div class=\"svd-vertical-container__cell-content\">\n <!-- ko if: tabs().length > 1 -->\n <!-- ko foreach: { data: tabs, as: 'content' } -->\n <div class=\"svd-designer-tabbed-container__tab-content\"\n data-bind=\"css: { 'svd-designer-tabbed-container__tab-content-active' : content === $parent.activeTab() }\">\n <!-- ko template: { name: 'se-component-' + content, data: $parent.context } -->\n <!-- /ko -->\n </div>\n <!-- /ko -->\n <!-- /ko -->\n <!-- ko if: tabs().length === 1 -->\n <!-- ko foreach: { data: tabs, as: 'content' } -->\n\n <!-- ko template: { name: 'se-component-' + content, data: $parent.context } -->\n <!-- /ko -->\n\n <!-- /ko -->\n <!-- /ko -->\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>"; /***/ }), /***/ "./node_modules/html-loader/index.js?interpolate!./node_modules/val-loader/index.js!./src/utils/designer-h-container.html": /*!**************************************************************************************************************!*\ !*** ./node_modules/html-loader?interpolate!./node_modules/val-loader!./src/utils/designer-h-container.html ***! \**************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = "<div data-bind=\"css: className\">\n <!-- ko foreach: { data: items, as: 'content' } -->\n <!-- ko template: { name: 'se-component-' + content, data: $parent.context } -->\n <!-- /ko -->\n <!-- /ko -->\n</div>\n"; /***/ }), /***/ "./node_modules/papaparse/papaparse.min.js": /*!*************************************************!*\ !*** ./node_modules/papaparse/papaparse.min.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* @license Papa Parse v5.5.3 https://github.com/mholt/PapaParse License: MIT */ ((e,t)=>{ true?!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):undefined})(this,function r(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};var d,s=!n.document&&!!n.postMessage,a=n.IS_PAPA_WORKER||!1,o={},h=0,v={};function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(t,e){var i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<i){let e=this._config.newline;e||(r=this._config.quoteChar||'"',e=this._handle.guessLineEndings(t,r)),t=[...t.split(e).slice(i)].join(e)}this.isFirstChunk&&U(this._config.beforeFirstChunk)&&void 0!==(r=this._config.beforeFirstChunk(t))&&(t=r),this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+t,r=(this._partialLine="",this._handle.parse(i,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){t=r.meta.cursor,i=(this._finished||(this._partialLine=i.substring(t-this._baseIndex),this._baseIndex=t),r&&r.data&&(this._rowCount+=r.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview);if(a)n.postMessage({results:r,workerId:v.WORKER_ID,finished:i});else if(U(this._config.chunk)&&!e){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!i||!U(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),i||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){U(this._config.error)?this._config.error(e):a&&this._config.error&&n.postMessage({workerId:v.WORKER_ID,error:e,finished:!1})}}function f(e){var r;(e=e||{}).chunkSize||(e.chunkSize=v.RemoteChunkSize),u.call(this,e),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),s||(r.onload=y(this._chunkLoaded,this),r.onerror=y(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var e,t=this._config.downloadRequestHeaders;for(e in t)r.setRequestHeader(e,t[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+i));try{r.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}s&&0===r.status&&this._chunkError()}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(e){e=r.statusText||e;this._sendError(new Error(e))}}function l(e){(e=e||{}).chunkSize||(e.chunkSize=v.LocalChunkSize),u.call(this,e);var i,r,n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((i=new FileReader).onload=y(this._chunkLoaded,this),i.onerror=y(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,t=(this._config.chunkSize&&(t=Math.min(this._start+this._config.chunkSize,this._input.size),e=r.call(e,this._start,t)),i.readAsText(e,this._config.encoding));n||this._chunkLoaded({target:{result:t}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function c(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){var e,t;if(!this._finished)return e=this._config.chunkSize,i=e?(t=i.substring(0,e),i.substring(e)):(t=i,""),this._finished=!i,this.parseChunk(t)}}function p(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=y(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=y(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=y(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=y(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function i(m){var n,s,a,t,o=Math.pow(2,53),h=-o,u=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,d=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,i=this,r=0,f=0,l=!1,e=!1,c=[],p={data:[],errors:[],meta:{}};function y(e){return"greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){if(p&&a&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+v.DefaultDelimiter+"'"),a=!1),m.skipEmptyLines&&(p.data=p.data.filter(function(e){return!y(e)})),_()){if(p)if(Array.isArray(p.data[0])){for(var e=0;_()&&e<p.data.length;e++)p.data[e].forEach(t);p.data.splice(0,1)}else p.data.forEach(t);function t(e,t){U(m.transformHeader)&&(e=m.transformHeader(e,t)),c.push(e)}}function i(e,t){for(var i=m.header?{}:[],r=0;r<e.length;r++){var n=r,s=e[r],s=((e,t)=>(e=>(m.dynamicTypingFunction&&void 0===m.dynamicTyping[e]&&(m.dynamicTyping[e]=m.dynamicTypingFunction(e)),!0===(m.dynamicTyping[e]||m.dynamicTyping)))(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&((e=>{if(u.test(e)){e=parseFloat(e);if(h<e&&e<o)return 1}})(t)?parseFloat(t):d.test(t)?new Date(t):""===t?null:t):t)(n=m.header?r>=c.length?"__parsed_extra":c[r]:n,s=m.transform?m.transform(s,n):s);"__parsed_extra"===n?(i[n]=i[n]||[],i[n].push(s)):i[n]=s}return m.header&&(r>c.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+c.length+" fields but parsed "+r,f+t):r<c.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+c.length+" fields but parsed "+r,f+t)),i}var r;p&&(m.header||m.dynamicTyping||m.transform)&&(r=1,!p.data.length||Array.isArray(p.data[0])?(p.data=p.data.map(i),r=p.data.length):p.data=i(p.data,0),m.header&&p.meta&&(p.meta.fields=c),f+=r)}function _(){return m.header&&0===c.length}function k(e,t,i,r){e={type:e,code:t,message:i};void 0!==r&&(e.row=r),p.errors.push(e)}U(m.step)&&(t=m.step,m.step=function(e){p=e,_()?g():(g(),0!==p.data.length&&(r+=e.data.length,m.preview&&r>m.preview?s.abort():(p.data=p.data[0],t(p,i))))}),this.parse=function(e,t,i){var r=m.quoteChar||'"',r=(m.newline||(m.newline=this.guessLineEndings(e,r)),a=!1,m.delimiter?U(m.delimiter)&&(m.delimiter=m.delimiter(e),p.meta.delimiter=m.delimiter):((r=((e,t,i,r,n)=>{var s,a,o,h;n=n||[",","\t","|",";",v.RECORD_SEP,v.UNIT_SEP];for(var u=0;u<n.length;u++){for(var d,f=n[u],l=0,c=0,p=0,g=(o=void 0,new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e)),_=0;_<g.data.length;_++)i&&y(g.data[_])?p++:(d=g.data[_].length,c+=d,void 0===o?o=d:0<d&&(l+=Math.abs(d-o),o=d));0<g.data.length&&(c/=g.data.length-p),(void 0===a||l<=a)&&(void 0===h||