var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory();
	else if(typeof define === 'function' && define.amd)
		define([], factory);
	else if(typeof exports === 'object')
		exports["componentSSRSdks"] = factory();
	else
		root["componentSSRSdks"] = factory();
})(self, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	function webpackChunkCallback(chunkIds, moreModules) {
/******/ 		for(var moduleId in moreModules) {
/******/ 			modules[moduleId] = moreModules[moduleId];
/******/ 		}
/******/ 		while(chunkIds.length)
/******/ 			installedChunks[chunkIds.pop()] = 1;
/******/ 	};
/******/
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// object to store loaded chunks
/******/ 	// "1" means "already loaded"
/******/ 	// "Promise" is the signal for "already loading"
/******/ 	var installedChunks = {
/******/ 		0: 1
/******/ 	};
/******/
/******/ 	// 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;
/******/ 	}
/******/
/******/ 	// The chunk loading function for additional chunks
/******/ 	// Since all referenced chunks are already included
/******/ 	// in this file, this function is empty here.
/******/ 	__webpack_require__.e = function requireEnsure() {
/******/ 		return Promise.resolve();
/******/ 	};
/******/
/******/ 	// 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 = "https://static.parastorage.com/services/editor-elements/dist/";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 222);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/*!*****************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js ***!
  \*****************************************************************************/
/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArray", function() { return __spreadArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */

var extendStatics = function(d, b) {
    extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
    return extendStatics(d, b);
};

function __extends(d, b) {
    if (typeof b !== "function" && b !== null)
        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
    extendStatics(d, b);
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}

var __assign = function() {
    __assign = Object.assign || function __assign(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
    }
    return __assign.apply(this, arguments);
}

function __rest(s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
}

function __decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}

function __param(paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
}

function __metadata(metadataKey, metadataValue) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}

function __awaiter(thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    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) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
}

function __generator(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 = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, 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 __createBinding = Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
});

function __exportStar(m, o) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
}

function __values(o) {
    var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
    if (m) return m.call(o);
    if (o && typeof o.length === "number") return {
        next: function () {
            if (o && i >= o.length) o = void 0;
            return { value: o && o[i++], done: !o };
        }
    };
    throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}

function __read(o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
}

/** @deprecated */
function __spread() {
    for (var ar = [], i = 0; i < arguments.length; i++)
        ar = ar.concat(__read(arguments[i]));
    return ar;
}

/** @deprecated */
function __spreadArrays() {
    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
    for (var r = Array(s), k = 0, i = 0; i < il; i++)
        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
            r[k] = a[j];
    return r;
}

function __spreadArray(to, from) {
    for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
        to[j] = from[i];
    return to;
}

function __await(v) {
    return this instanceof __await ? (this.v = v, this) : new __await(v);
}

function __asyncGenerator(thisArg, _arguments, generator) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var g = generator.apply(thisArg, _arguments || []), i, q = [];
    return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
    function fulfill(value) { resume("next", value); }
    function reject(value) { resume("throw", value); }
    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}

function __asyncDelegator(o) {
    var i, p;
    return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}

function __asyncValues(o) {
    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    var m = o[Symbol.asyncIterator], i;
    return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}

function __makeTemplateObject(cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};

var __setModuleDefault = Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
};

function __importStar(mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
}

function __importDefault(mod) {
    return (mod && mod.__esModule) ? mod : { default: mod };
}

function __classPrivateFieldGet(receiver, state, kind, f) {
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}

function __classPrivateFieldSet(receiver, state, value, kind, f) {
    if (kind === "m") throw new TypeError("Private method is not writable");
    if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
    return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
}


/***/ }),
/* 1 */,
/* 2 */
/*!********************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules ***!
  \********************************************************************************************************************/
/*! exports provided: assert */
/*! exports used: assert */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ assert_namespaceObject; });

// NAMESPACE OBJECT: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/assert.js
var assert_namespaceObject = {};
__webpack_require__.r(assert_namespaceObject);
__webpack_require__.d(assert_namespaceObject, "isNumber", function() { return isNumber; });
__webpack_require__.d(assert_namespaceObject, "isString", function() { return isString; });
__webpack_require__.d(assert_namespaceObject, "isBoolean", function() { return isBoolean; });
__webpack_require__.d(assert_namespaceObject, "isDate", function() { return isDate; });
__webpack_require__.d(assert_namespaceObject, "isFunction", function() { return isFunction; });
__webpack_require__.d(assert_namespaceObject, "isArray", function() { return isArray; });
__webpack_require__.d(assert_namespaceObject, "isObject", function() { return isObject; });
__webpack_require__.d(assert_namespaceObject, "isInteger", function() { return isInteger; });
__webpack_require__.d(assert_namespaceObject, "isNil", function() { return isNil; });
__webpack_require__.d(assert_namespaceObject, "isIn", function() { return isIn; });
__webpack_require__.d(assert_namespaceObject, "isAbove", function() { return isAbove; });
__webpack_require__.d(assert_namespaceObject, "isBelow", function() { return isBelow; });
__webpack_require__.d(assert_namespaceObject, "isEmail", function() { return isEmail; });
__webpack_require__.d(assert_namespaceObject, "isUrl", function() { return isUrl; });
__webpack_require__.d(assert_namespaceObject, "isInlineSvg", function() { return isInlineSvg; });
__webpack_require__.d(assert_namespaceObject, "isWixSVGShape", function() { return isWixSVGShape; });
__webpack_require__.d(assert_namespaceObject, "isWixMediaUrl", function() { return isWixMediaUrl; });
__webpack_require__.d(assert_namespaceObject, "isSVG", function() { return isSVG; });
__webpack_require__.d(assert_namespaceObject, "is", function() { return is; });

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/assert.js
var emailRegExp = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
var urlRegExp = /^(?:(?:https?:)\/\/)(?:(?:[\u0400-\uA69F\w][\u0400-\uA69F\w-]*)?[\u0400-\uA69F\w]\.)+(?:[\u0400-\uA69Fa-z]+|\d{1,3})(?::[\d]{1,5})?(?:[/?#].*)?$/i;
var wixSVGShapeRegExp = /^wix:vector:\/\/v1\/svgshape\.v[12]/;
var wixMediaRegExp = /^wix:vector:\/\/v1\/[0-9|a-z|_]+.svg/;
function isNumber(value) {
    return typeof value === 'number' && !Number.isNaN(value);
}
function isString(value) {
    return typeof value === 'string';
}
function isBoolean(value) {
    return value === true || value === false;
}
function isDate(value) {
    return value instanceof Date && !Number.isNaN(value.getTime());
}
function isFunction(value) {
    return typeof value === 'function';
}
function isArray(value) {
    return Array.isArray(value);
}
function isObject(value) {
    return typeof value === 'object' && value !== null && !isArray(value);
}
function isInteger(value) {
    return Number.isInteger(value);
}
function isNil(value) {
    return value === null || value === undefined;
}
function isIn(value, arr) {
    return arr.includes(value);
}
function isAbove(value, limit) {
    return value > limit;
}
function isBelow(value, limit) {
    return value < limit;
}
function isEmail(value) {
    return emailRegExp.test(value);
}
function isUrl(value) {
    return urlRegExp.test(value);
}
function isInlineSvg(maybeSvg) {
    return maybeSvg.startsWith('<svg');
}
function isWixSVGShape(maybeShape) {
    return wixSVGShapeRegExp.test(maybeShape);
}
function isWixMediaUrl(maybeSvg) {
    return wixMediaRegExp.test(maybeSvg);
}
function isSVG(value) {
    return Boolean(value &&
        (isWixMediaUrl(value) ||
            isUrl(value) ||
            isInlineSvg(value) ||
            isWixSVGShape(value)));
}
function is(value, predicates) {
    return predicates.every(function (p) { return p(value); });
}
//# sourceMappingURL=assert.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js


//# sourceMappingURL=index.js.map

/***/ }),
/* 3 */
/*!**********************************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules ***!
  \**********************************************************************************************************************************************/
/*! exports provided: toJSONBase, elementPropsSDKFactory, createElementPropsSDKFactory */
/*! exports used: createElementPropsSDKFactory, toJSONBase */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/corvidEvents/corvidEvents.js because of ./components/Captcha/corvid/Captcha.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/basePropsSDKFactory.js because of ./components/Anchor/corvid/Anchor.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/viewportPropsSDKFactory.js because of ./components/Anchor/corvid/Anchor.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/createSchemaValidator.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ toJSONBase; });
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ createElementPropsSDKFactory; });

// UNUSED EXPORTS: elementPropsSDKFactory

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/corvidEvents/corvidEvents.js
var corvidEvents = __webpack_require__(13);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/basePropsSDKFactory.js
var basePropsSDKFactory = __webpack_require__(52);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/viewportPropsSDKFactory.js
var props_factories_viewportPropsSDKFactory = __webpack_require__(43);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js
var messageTemplates = __webpack_require__(8);

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/animations/constants.js
var __assign = (undefined && undefined.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var sharedEffectDefaultOptions = {
    duration: 1200,
    delay: 0,
};
var effectDefaultOptions = {
    arc: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    bounce: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'topLeft', intensity: 'medium' }),
    puff: __assign({}, sharedEffectDefaultOptions),
    zoom: __assign({}, sharedEffectDefaultOptions),
    fade: __assign({}, sharedEffectDefaultOptions),
    flip: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    float: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    fly: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    fold: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    glide: __assign(__assign({}, sharedEffectDefaultOptions), { angle: 0, distance: 0 }),
    roll: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    slide: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    spin: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'cw', cycles: 5 }),
    turn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    ArcIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    ArcOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    BounceIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'topLeft', intensity: 'medium' }),
    BounceOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'topLeft', intensity: 'medium' }),
    ExpandIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    CollapseOut: __assign({}, sharedEffectDefaultOptions),
    Conceal: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    Reveal: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    FadeIn: __assign({}, sharedEffectDefaultOptions),
    FadeOut: __assign({}, sharedEffectDefaultOptions),
    FlipIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    FlipOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    FloatIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    FloatOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    FlyIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    FlyOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    FoldIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    FoldOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    GlideIn: __assign(__assign({}, sharedEffectDefaultOptions), { angle: 0, distance: 150 }),
    GlideOut: __assign(__assign({}, sharedEffectDefaultOptions), { angle: 0, distance: 150 }),
    DropIn: __assign({}, sharedEffectDefaultOptions),
    PopOut: __assign({}, sharedEffectDefaultOptions),
    SlideIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    SlideOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'left' }),
    SpinIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'cw', cycles: 2 }),
    SpinOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'cw', cycles: 2 }),
    TurnIn: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
    TurnOut: __assign(__assign({}, sharedEffectDefaultOptions), { direction: 'right' }),
};
var EFFECTS = {
    HIDE: {
        suffix: 'out',
        deprecatedValues: [
            'ArcOut',
            'BounceOut',
            'CollapseOut',
            'Conceal',
            'FadeOut',
            'FlipOut',
            'FloatOut',
            'FlyOut',
            'FoldOut',
            'GlideOut',
            'PopOut',
            'SlideOut',
            'SpinOut',
            'TurnOut',
        ],
    },
    SHOW: {
        suffix: 'in',
        deprecatedValues: [
            'ArcIn',
            'BounceIn',
            'DropIn',
            'ExpandIn',
            'FadeIn',
            'FlipIn',
            'FloatIn',
            'FlyIn',
            'FoldIn',
            'GlideIn',
            'Reveal',
            'SlideIn',
            'SpinIn',
            'TurnIn',
        ],
    },
};
var effectInfoLink = function (propertyName) {
    return "https://www.wix.com/corvid/reference/$w/hiddenmixin/" + propertyName;
};
//# sourceMappingURL=constants.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/validations/effectValidation/effectValidationSchema.js
var duration = { type: ['number', 'nil'], minimum: 0, maximum: 4000 };
var delay = { type: ['number', 'nil'], minimum: 0, maximum: 8000 };
var direction = {
    type: ['string', 'nil'],
    enum: ['left', 'right', 'top', 'bottom'],
};
var effectsValidationSchema = {
    arc: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: {
                type: ['string', 'nil'],
                enum: ['left', 'right'],
            },
        },
    },
    bounce: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: {
                type: ['string', 'nil'],
                enum: ['topLeft', 'topRight', 'bottomRight', 'bottomLeft', 'center'],
            },
            intensity: {
                type: ['string', 'nil'],
                enum: ['soft', 'medium', 'hard'],
            },
        },
    },
    puff: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
        },
    },
    zoom: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
        },
    },
    fade: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
        },
    },
    flip: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: direction,
        },
    },
    float: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: direction,
        },
    },
    fly: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: direction,
        },
    },
    fold: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: direction,
        },
    },
    glide: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            angle: {
                type: ['number', 'nil'],
                minimum: 0,
                maximum: 360,
            },
            distance: {
                type: ['number', 'nil'],
                minimum: 0,
                maximum: 300,
            },
        },
    },
    roll: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: direction,
        },
    },
    slide: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: direction,
        },
    },
    spin: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: {
                type: ['string', 'nil'],
                enum: ['cw', 'ccw'],
            },
            cycles: {
                type: ['number', 'nil'],
                minimum: 1,
                maximum: 15,
            },
        },
    },
    turn: {
        type: ['object'],
        properties: {
            duration: duration,
            delay: delay,
            direction: {
                type: ['string', 'nil'],
                enum: ['right', 'left'],
            },
        },
    },
};
//# sourceMappingURL=effectValidationSchema.js.map
// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/createSchemaValidator.js + 9 modules
var createSchemaValidator = __webpack_require__(44);

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/validations/effectValidation/effectOptionsValidation.js





var createInvalidOptionsTypeWarningReporter = function (_a) {
    var effectName = _a.effectName, propertyName = _a.propertyName, compName = _a.compName;
    return function (message, messageParams) {
        Object(reporters["b" /* reportWarning */])(messageTemplates["a" /* templates */].warning_invalid_type_effect_options({
            propertyName: propertyName,
            compName: compName,
            effectName: effectName,
            wrongValue: "" + (messageParams === null || messageParams === void 0 ? void 0 : messageParams.value),
            infoLink: effectInfoLink(propertyName),
        }));
    };
};
var createWrongOptionsWarningReporter = function (_a) {
    var effectName = _a.effectName, propertyName = _a.propertyName, compName = _a.compName;
    return function (message, messageParams) {
        Object(reporters["b" /* reportWarning */])(messageTemplates["a" /* templates */].warning_invalid_effect_options({
            propertyName: propertyName,
            compName: compName,
            effectName: effectName,
            wrongProperty: 'value',
            wrongValue: "the key \"" + (messageParams === null || messageParams === void 0 ? void 0 : messageParams.propertyName) + "\" cannot be set to the value \"" + (messageParams === null || messageParams === void 0 ? void 0 : messageParams.value) + "\"",
            infoLink: effectInfoLink(propertyName),
        }));
    };
};
var createEffectOptionsValidation = function (_a) {
    var propertyName = _a.propertyName, compName = _a.compName;
    return function (effectName, effectOptions) {
        if (!effectName) {
            return false;
        }
        if (effectOptions === undefined) {
            return true;
        }
        /**
         * Here we want to reuse createSchemaValidator, but
         * current implementation of it does not meet our needs.
         * We need:
         * 1. report warning instead of error
         * 2. report custom message instead of built by schema validator
         * Here below we have a hack where we pass warning report on for error reporting.
         */
        var invalidOptionTypeReporter = createInvalidOptionsTypeWarningReporter({
            effectName: effectName,
            propertyName: propertyName,
            compName: compName,
        });
        var isEffectOptionsTypeValid = function () {
            return Object(createSchemaValidator["b" /* createSchemaValidator */])({
                reportError: invalidOptionTypeReporter,
                reportWarning: function () { return ({}); },
            }, compName)(effectOptions, { type: ['object'] }, propertyName);
        };
        if (!isEffectOptionsTypeValid()) {
            return false;
        }
        /**
         * Here we want to reuse createSchemaValidator, but
         * current implementation of it does not meet our needs.
         * We need:
         * 1. report warning instead of error
         * 2. report custom message instead of built by schema validator
         * Here below we have a hack where we pass warning report on for error reporting.
         */
        var invalidEffectOptionsReporter = createWrongOptionsWarningReporter({
            effectName: effectName,
            propertyName: propertyName,
            compName: compName,
        });
        var isEffectOptionsValid = function () {
            return Object(createSchemaValidator["b" /* createSchemaValidator */])({
                reportError: invalidEffectOptionsReporter,
                reportWarning: function () { return ({}); },
            }, compName)(effectOptions, effectsValidationSchema[effectName], propertyName);
        };
        if (!isEffectOptionsValid()) {
            return false;
        }
        return true;
    };
};
//# sourceMappingURL=effectOptionsValidation.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/validations/effectValidation/effectValidations.js





var isEmpty = function (value) {
    return Object.keys(value).length === 0;
};
var createEffectValidation = function (_a) {
    var compName = _a.compName;
    return function (_a) {
        var _b;
        var effectName = _a.effectName, effectOptions = _a.effectOptions, propertyName = _a.propertyName;
        var validateEffectOption = createEffectOptionsValidation({
            propertyName: propertyName,
            compName: compName,
        });
        // effectName - undefined, effectOptions - undefined
        if (!effectName && !effectOptions) {
            return false;
        }
        // effectName - undefined, effectOptions - not empty
        if (!effectName && effectOptions && !isEmpty(effectOptions)) {
            Object(reporters["b" /* reportWarning */])(messageTemplates["a" /* templates */].warning_effect_options_not_set({
                propertyName: propertyName,
                compName: compName,
                infoLink: effectInfoLink(propertyName),
            }));
            return false;
        }
        // deprecated effectName fits propertyName && effecOptions not empty ?
        var PROPERTY = propertyName === 'hide' ? 'HIDE' : 'SHOW';
        var deprecatedValues = (_b = EFFECTS[PROPERTY]) === null || _b === void 0 ? void 0 : _b.deprecatedValues;
        if (effectName &&
            effectOptions &&
            deprecatedValues &&
            deprecatedValues.find(function (effect) { return effect === effectName; }) &&
            !isEmpty(effectOptions)) {
            Object(reporters["b" /* reportWarning */])(messageTemplates["a" /* templates */].warning_deprecated_effect_with_options({
                compName: compName,
                effectName: effectName,
                propertyName: propertyName,
                infoLink: effectInfoLink(propertyName),
            }));
            return false;
        }
        // deprecated effectName fits
        if (deprecatedValues.find(function (effect) { return effect === effectName; })) {
            return true;
        }
        // effectName - isValid?
        if (effectName && !(effectName in effectsValidationSchema)) {
            Object(reporters["b" /* reportWarning */])(messageTemplates["a" /* templates */].warning_invalid_effect_name({
                propertyName: propertyName,
                compName: compName,
                effectName: effectName,
                infoLink: effectInfoLink(propertyName),
            }));
            return false;
        }
        // effectOptions - isValid?
        if (!validateEffectOption(effectName, effectOptions)) {
            return false;
        }
        return true;
    };
};
//# sourceMappingURL=effectValidations.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/hiddenCollapsedSDKFactory.js
var hiddenCollapsedSDKFactory_assign = (undefined && undefined.__assign) || function () {
    hiddenCollapsedSDKFactory_assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return hiddenCollapsedSDKFactory_assign.apply(this, arguments);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    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) : adopt(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 = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, 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 createHiddenCollapsedSDKFactory = function (viewportState) { return function (_a) {
    var setStyles = _a.setStyles, metaData = _a.metaData, getSdkInstance = _a.getSdkInstance, runAnimation = _a.runAnimation, createSdkState = _a.createSdkState, styleUtils = _a.styleUtils;
    var validateEffect = createEffectValidation({
        compName: metaData.role,
    });
    var _b = createSdkState({
        hidden: metaData.hiddenOnLoad,
        collapsed: metaData.collapsedOnLoad,
    }, 'hidden-collapsed'), state = _b[0], setState = _b[1];
    return {
        hide: function (effectName, effectOptions) { return __awaiter(void 0, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (state.collapsed || state.hidden) {
                            setState({ hidden: true });
                            return [2 /*return*/];
                        }
                        if (!validateEffect({
                            effectName: effectName,
                            effectOptions: effectOptions,
                            propertyName: 'hide',
                        })) return [3 /*break*/, 2];
                        return [4 /*yield*/, runAnimation({
                                animationDirection: EFFECTS.HIDE.suffix,
                                effectName: effectName,
                                effectOptions: hiddenCollapsedSDKFactory_assign(hiddenCollapsedSDKFactory_assign({}, ((effectDefaultOptions === null || effectDefaultOptions === void 0 ? void 0 : effectDefaultOptions[effectName]) ||
                                    sharedEffectDefaultOptions)), effectOptions),
                            })];
                    case 1:
                        _b.sent();
                        return [3 /*break*/, 3];
                    case 2:
                        setStyles(styleUtils.getHiddenStyles());
                        _b.label = 3;
                    case 3:
                        setState({ hidden: true });
                        (_a = viewportState === null || viewportState === void 0 ? void 0 : viewportState.onViewportLeave) === null || _a === void 0 ? void 0 : _a.forEach(function (cb) { return cb(); });
                        return [2 /*return*/];
                }
            });
        }); },
        show: function (effectName, effectOptions) { return __awaiter(void 0, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (state.collapsed || !state.hidden) {
                            setState({ hidden: false });
                            return [2 /*return*/];
                        }
                        if (!validateEffect({
                            effectName: effectName,
                            effectOptions: effectOptions,
                            propertyName: 'show',
                        })) return [3 /*break*/, 2];
                        return [4 /*yield*/, runAnimation({
                                animationDirection: EFFECTS.SHOW.suffix,
                                effectName: effectName,
                                effectOptions: hiddenCollapsedSDKFactory_assign(hiddenCollapsedSDKFactory_assign({}, ((effectDefaultOptions === null || effectDefaultOptions === void 0 ? void 0 : effectDefaultOptions[effectName]) ||
                                    sharedEffectDefaultOptions)), effectOptions),
                            })];
                    case 1:
                        _b.sent();
                        return [3 /*break*/, 3];
                    case 2:
                        setStyles(styleUtils.getShownStyles());
                        _b.label = 3;
                    case 3:
                        setState({ hidden: false });
                        (_a = viewportState === null || viewportState === void 0 ? void 0 : viewportState.onViewportEnter) === null || _a === void 0 ? void 0 : _a.forEach(function (cb) { return cb(); });
                        return [2 /*return*/];
                }
            });
        }); },
        collapse: function () { return __awaiter(void 0, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                if (!state.collapsed) {
                    setStyles(styleUtils.getCollapsedStyles());
                    setState({ collapsed: true });
                    if (!state.hidden) {
                        (_a = viewportState === null || viewportState === void 0 ? void 0 : viewportState.onViewportLeave) === null || _a === void 0 ? void 0 : _a.forEach(function (cb) { return cb(); });
                    }
                }
                return [2 /*return*/];
            });
        }); },
        expand: function () { return __awaiter(void 0, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                if (state.collapsed) {
                    setStyles(hiddenCollapsedSDKFactory_assign(hiddenCollapsedSDKFactory_assign({}, styleUtils.getExpandedStyles()), { visibility: state.hidden ? 'hidden' : null }));
                    setState({ collapsed: false });
                    if (!state.hidden) {
                        (_a = viewportState === null || viewportState === void 0 ? void 0 : viewportState.onViewportEnter) === null || _a === void 0 ? void 0 : _a.forEach(function (cb) { return cb(); });
                    }
                }
                return [2 /*return*/];
            });
        }); },
        get collapsed() {
            return state.collapsed;
        },
        get hidden() {
            return Boolean(state.hidden);
        },
        get isVisible() {
            if (!metaData.isRendered()) {
                return false;
            }
            var parentSdk = getSdkInstance();
            while (parentSdk) {
                if (parentSdk.hidden || parentSdk.collapsed) {
                    return false;
                }
                parentSdk = parentSdk.parent;
            }
            return true;
        },
        get isAnimatable() {
            return true;
        },
    };
}; };
//# sourceMappingURL=hiddenCollapsedSDKFactory.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/visibilityPropsSDKFactory.js
var __spreadArrays = (undefined && undefined.__spreadArrays) || function () {
    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
    for (var r = Array(s), k = 0, i = 0; i < il; i++)
        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
            r[k] = a[j];
    return r;
};



var visibilityPropsSDKFactory = function (api) {
    var _a = api.createSdkState({
        onViewportEnter: [],
        onViewportLeave: [],
    }, 'viewport'), state = _a[0], setState = _a[1];
    var registerCallback = function (type, callback) {
        var _a;
        setState((_a = {}, _a[type] = __spreadArrays(state[type], [callback]), _a));
    };
    var hiddenCollapsedSDKFactory = createHiddenCollapsedSDKFactory(state);
    var viewportPropsSDKFactory = Object(props_factories_viewportPropsSDKFactory["a" /* createViewportPropsSDKFactory */])(registerCallback);
    return Object(composeSDKFactories["a" /* composeSDKFactories */])(hiddenCollapsedSDKFactory, viewportPropsSDKFactory)(api);
};
//# sourceMappingURL=visibilityPropsSDKFactory.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js





var toJSONBase = function (_a) {
    var role = _a.role, compType = _a.compType, isGlobal = _a.isGlobal, isRendered = _a.isRendered;
    return ({
        id: role,
        type: "$w." + compType,
        global: isGlobal(),
        rendered: isRendered(),
    });
};
var _elementPropsSDKFactory = function (api) { return ({
    onMouseIn: function (handler) { return Object(corvidEvents["c" /* registerCorvidMouseEvent */])('onMouseEnter', api, handler); },
    onMouseOut: function (handler) { return Object(corvidEvents["c" /* registerCorvidMouseEvent */])('onMouseLeave', api, handler); },
    get rendered() {
        return api.metaData.isRendered();
    },
    toJSON: function () {
        return toJSONBase(api.metaData);
    },
}); };
var elementPropsSDKFactory_viewportPropsSDKFactory = Object(props_factories_viewportPropsSDKFactory["a" /* createViewportPropsSDKFactory */])();
var elementPropsSDKFactory = Object(composeSDKFactories["a" /* composeSDKFactories */])(basePropsSDKFactory["a" /* basePropsSDKFactory */], elementPropsSDKFactory_viewportPropsSDKFactory, _elementPropsSDKFactory);
var createElementPropsSDKFactory = function (_a) {
    var _b = (_a === void 0 ? {} : _a).useHiddenCollapsed, useHiddenCollapsed = _b === void 0 ? true : _b;
    return Object(composeSDKFactories["a" /* composeSDKFactories */])(basePropsSDKFactory["a" /* basePropsSDKFactory */], _elementPropsSDKFactory, useHiddenCollapsed ? visibilityPropsSDKFactory : elementPropsSDKFactory_viewportPropsSDKFactory);
};
//# sourceMappingURL=elementPropsSDKFactory.js.map

/***/ }),
/* 4 */,
/* 5 */
/*!********************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/common.js ***!
  \********************************************************************************************************/
/*! exports provided: types, errors */
/*! exports used: errors, types */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return types; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return errors; });
var types = {
    IMAGE: 'image',
    DOCUMENT: 'document',
    VIDEO: 'video',
    AUDIO: 'audio',
    VECTOR: 'vector',
};
var errors = {
    empty_media_id: 'empty_media_id',
    empty_poster_id: 'empty_poster_id',
    bad_media_id: 'bad_media_id',
    unknown_media_type: 'unknown_media_type',
    missing_width_height: 'missing_width_height',
    non_string_media_id: 'non_string_media_id',
};
//# sourceMappingURL=common.js.map

/***/ }),
/* 6 */
/*!***********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js ***!
  \***********************************************************************************************************************************/
/*! exports provided: composeSDKFactories */
/*! exports used: composeSDKFactories */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return composeSDKFactories; });
function composeSDKFactories() {
    var sources = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        sources[_i] = arguments[_i];
    }
    return function (api) {
        var target = {};
        // eslint-disable-next-line @typescript-eslint/prefer-for-of
        for (var sourceIdx = 0; sourceIdx < sources.length; sourceIdx++) {
            var source = sources[sourceIdx](api);
            var sourceKeys = Object.keys(source);
            // eslint-disable-next-line @typescript-eslint/prefer-for-of
            for (var sourceKeyIdx = 0; sourceKeyIdx < sourceKeys.length; sourceKeyIdx++) {
                var sourceKey = sourceKeys[sourceKeyIdx];
                var sourceProp = Object.getOwnPropertyDescriptor(source, sourceKey);
                Object.defineProperty(target, sourceKey, sourceProp);
            }
        }
        return target;
    };
}
//# sourceMappingURL=composeSDKFactories.js.map

/***/ }),
/* 7 */,
/* 8 */
/*!*********************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js ***!
  \*********************************************************************************************************************/
/*! exports provided: templates */
/*! exports used: templates */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return templates; });
var templates = {
    /* prettier-ignore */
    warning_not_null: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName;
        return "The " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to null.";
    },
    /* prettier-ignore */
    warning_non_images_in_gallery: function (_a) {
        var galleryId = _a.galleryId;
        return "Gallery \"" + galleryId + "\" cannot contain items that are not images. To also display video and text, choose a gallery that supports those types.";
    },
    /* prettier-ignore */
    warning_invalid_effect_name: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, effectName = _a.effectName, infoLink = _a.infoLink;
        return "The \"" + propertyName + "\" function called on \"" + compName + "\" was executed without the \"" + effectName + "\" effect because it is an invalid effectName value. Read more about effects: \"" + infoLink + "\"')";
    },
    /* prettier-ignore */
    warning_invalid_effect_option: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, effectName = _a.effectName, effectOption = _a.effectOption, effectOptionRef = _a.effectOptionRef;
        return "The \"" + propertyName + "\" function called on \"" + compName + "\" was executed without the \"" + effectName + "\" effect because it was called with the following invalid effectOptions keys: " + effectOption + ". Read more about the effectOptions object: \"https://www.wix.com/code/reference/$w.EffectOptions.html#" + effectOptionRef + "\"";
    },
    /* prettier-ignore */
    warning_effect_options_not_set: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, infoLink = _a.infoLink;
        return "The \"" + propertyName + "\" function called on \"" + compName + "\" was executed without the specified effect options because it was called without an effect. Read more about effects: \"" + infoLink + "\"')";
    },
    /* prettier-ignore */
    warning_invalid_effect_options: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, effectName = _a.effectName, wrongProperty = _a.wrongProperty, wrongValue = _a.wrongValue, infoLink = _a.infoLink;
        return "The \"" + propertyName + "\" function called on \"" + compName + "\" was executed without the \"" + effectName + "\" effect because it was called with the following invalid effectOptions " + wrongProperty + ": " + wrongValue + ". Read more about the effectOptions object: \"" + infoLink + "\"')";
    },
    /* prettier-ignore */
    warning_deprecated_effect_name: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, effectName = _a.effectName, infoLink = _a.infoLink;
        return "The \"" + propertyName + "\" function  called on \"" + compName + "\" was called with the following deprecated effect: \"" + effectName + "\". Read more about effects: \"" + infoLink + "\"')";
    },
    /* prettier-ignore */
    warning_deprecated_effect_with_options: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, effectName = _a.effectName, infoLink = _a.infoLink;
        return "The \"" + propertyName + "\" function  called on \"" + compName + "\" was executed without the specified effect options because it was called with the following deprecated effect: \"" + effectName + "\". Read more about effects: \"" + infoLink + "\"";
    },
    /* prettier-ignore */
    warning_invalid_type_effect_options: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, effectName = _a.effectName, wrongValue = _a.wrongValue, infoLink = _a.infoLink;
        return "The \"" + propertyName + "\" function called on \"" + compName + "\" was executed without the \"" + effectName + "\" effect because the it was called with the following invalid effectOptions \"" + wrongValue + "\". The effectOptions must be of type Object. Read more about the effectOptions object: \"" + infoLink + "\"'";
    },
    /* prettier-ignore */
    error_bad_image_format_with_index: function (_a) {
        var propertyName = _a.propertyName, wrongValue = _a.wrongValue, index = _a.index;
        return "The \"" + propertyName + "\" property of the item at index " + index + " cannot be set to \"" + wrongValue + "\". It must be a valid URL starting with \"http://\", \"https://\", or \"wix:image://\".";
    },
    /* prettier-ignore */
    warning_not_null_for_comp_name: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, compName = _a.compName;
        return "The " + propertyName + " parameter of \"" + compName + "\" that is passed to the " + functionName + " method cannot be set to null.";
    },
    /* prettier-ignore */
    warning_not_null_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to null or undefined.";
    },
    /* prettier-ignore */
    warning_invalid_option: function (_a) {
        var propertyName = _a.propertyName, wrongValue = _a.wrongValue, index = _a.index;
        return "The " + propertyName + " parameter at index " + index + " that is passed to the options function cannot be set to " + JSON.stringify(wrongValue) + ". Options must contain either a non-null value or a non-null label.";
    },
    /* prettier-ignore */
    warning_color_casting_performed: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, infoLink = _a.infoLink;
        return " The value of \"" + propertyName + "\" property of \"" + compName + "\" expects an rgbColor value, but was set to an rgbaColor value. The color value has been set, but the alpha opacity information has been ignored. Read more about rgbColor values: \"" + infoLink + "\"";
    },
    /* prettier-ignore */
    warning_value_changed: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, newValue = _a.newValue, changedProperty = _a.changedProperty;
        return "The " + propertyName + " of " + compName + " was set to " + newValue + ", which is less than " + compName + "'s " + changedProperty + " value. " + compName + " cannot have a " + changedProperty + " value which is greater than its " + propertyName + " value. The value of " + changedProperty + " has therefore been set to " + newValue + ".";
    },
    /* prettier-ignore */
    warning_at_least: function (_a) {
        var propertyName = _a.propertyName, wrongValue = _a.wrongValue, minValue = _a.minValue;
        return "The value of " + propertyName + " property should not be set to the value " + wrongValue + ". It should be at least " + minValue + ".";
    },
    /* prettier-ignore */
    warning_at_most: function (_a) {
        var propertyName = _a.propertyName, wrongValue = _a.wrongValue, maxValue = _a.maxValue;
        return "The value of " + propertyName + " property should not be set to the value " + wrongValue + ". It should be at most " + maxValue + ".";
    },
    /* prettier-ignore */
    error_mandatory_val: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName;
        return "The " + propertyName + " parameter is required for " + functionName + " method.";
    },
    /* prettier-ignore */
    error_mandatory_val_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " is required for " + functionName + " method.";
    },
    /* prettier-ignore */
    error_length_in_range: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum, maximum = _a.maximum;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\". Its length must be between " + minimum + " and " + maximum + ".";
    },
    /* prettier-ignore */
    error_length_in_range_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum, maximum = _a.maximum, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\". Its length must be between " + minimum + " and " + maximum + ".";
    },
    /* prettier-ignore */
    error_length_accept_single_value: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, expectedValue = _a.expectedValue;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\". Its length must be " + expectedValue + ".";
    },
    /* prettier-ignore */
    error_length_accept_single_value_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, expectedValue = _a.expectedValue, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\". Its length must be " + expectedValue + ".";
    },
    /* prettier-ignore */
    error_length_less_than: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\" because its length is shorter than " + minimum + ".";
    },
    /* prettier-ignore */
    error_length_less_than_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\" because its length is shorter than " + minimum + ".";
    },
    /* prettier-ignore */
    error_length_exceeds: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, maximum = _a.maximum;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\" because its length exceeds " + maximum + ".";
    },
    /* prettier-ignore */
    error_length_exceeds_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, maximum = _a.maximum, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\" because its length exceeds " + maximum + ".";
    },
    /* prettier-ignore */
    error_range: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum, maximum = _a.maximum;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\". It must be between " + minimum + " and " + maximum + ".";
    },
    /* prettier-ignore */
    error_range_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum, maximum = _a.maximum, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\". It must be between " + minimum + " and " + maximum + ".";
    },
    /* prettier-ignore */
    error_accept_single_value: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, expectedValue = _a.expectedValue;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\". It must be " + expectedValue + ".";
    },
    /* prettier-ignore */
    error_accept_single_value_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, expectedValue = _a.expectedValue, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value \"" + value + "\". It must be " + expectedValue + ".";
    },
    /* prettier-ignore */
    error_larger_than: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value " + value + ". It must be larger than " + minimum + ".";
    },
    /* prettier-ignore */
    error_at_least: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value " + value + ". It must be at least " + minimum + ".";
    },
    /* prettier-ignore */
    error_larger_than_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, minimum = _a.minimum, index = _a.index;
        return "The value of " + propertyName + " parameter of item at " + index + " that is passed to the " + functionName + " method cannot be set to the value " + value + ". It must be larger than " + minimum + ".";
    },
    /* prettier-ignore */
    error_less_than: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, maximum = _a.maximum;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value " + value + ". It must be less than " + maximum + ".";
    },
    /* prettier-ignore */
    error_less_than_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, maximum = _a.maximum, index = _a.index;
        return "The value of " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value " + value + ". It must be less than " + maximum + ".";
    },
    /* prettier-ignore */
    error_type: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, expectedType = _a.expectedType;
        return "The " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value " + value + ". It must be of type " + expectedType + ".";
    },
    /* prettier-ignore */
    error_type_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, expectedType = _a.expectedType, index = _a.index;
        return "The " + propertyName + " parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value " + value + ". It must be of type " + expectedType + ".";
    },
    /* prettier-ignore */
    error_bad_format: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value " + value + ". Bad format";
    },
    /* prettier-ignore */
    error_slide_input: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, slideShowId = _a.slideShowId, value = _a.value, minimum = _a.minimum, maximum = _a.maximum;
        return "The \"" + propertyName + "\" parameter that is passed to the \"" + functionName + "\" method cannot be set to the value " + value + ". It must be a slide from the \"" + slideShowId + "\" slideshow or an index between " + minimum + " and " + maximum;
    },
    /* prettier-ignore */
    error_state_input: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, stateBoxId = _a.stateBoxId, value = _a.value;
        return "The \"" + propertyName + "\" parameter that is passed to the \"" + functionName + "\" method cannot be set to the value " + value + ". It must be a state from the \"" + stateBoxId + "\" statebox";
    },
    /* prettier-ignore */
    error_bad_format_with_index: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, value = _a.value, index = _a.index;
        return "The \"" + propertyName + "\" property of the item at index " + index + " that is passed to the " + functionName + " method cannot be set to \"" + value + "\". Bad format";
    },
    /* prettier-ignore */
    error_bad_format_with_hint: function (_a) {
        var propertyName = _a.propertyName, functionName = _a.functionName, wrongValue = _a.wrongValue, hint = _a.hint;
        return "The value of " + propertyName + " parameter that is passed to the " + functionName + " method cannot be set to the value " + wrongValue + ". Bad format, must be " + hint + " format.";
    },
    /* prettier-ignore */
    error_bad_svg_format: function (_a) {
        var propertyName = _a.propertyName, value = _a.value;
        return ("The \"" + propertyName + "\" property cannot be set to \"" + value + "\". It must be a valid SVG XML string or an SVG source starting with \"http://\", \"https://\", or \"wix:vector://v1/\".");
    },
    /* prettier-ignore */
    error_target_w_photo: function (_a) {
        var target = _a.target;
        return ("The target parameter that is passed to the target method cannot be set to the value " + target + ". It must be of type from (_blank,_self).");
    },
    /* prettier-ignore */
    error_bad_menu_item_format: function (_a) {
        var propertyName = _a.propertyName, value = _a.value;
        return "The \"" + propertyName + "\" property cannot be set to \"" + value + "\". It must be a valid URL starting with \"http://\", \"https://\", \"image://\", \"wix:image://v1\" or \"wix:vector://v1/svgshape.v2\".";
    },
    /* prettier-ignore */
    error_bad_menu_item_format_with_index: function (_a) {
        var propertyName = _a.propertyName, value = _a.value, index = _a.index;
        return "The \"" + propertyName + "\" property of the item at index " + index + " cannot be set to \"" + value + "\". It must be a valid URL starting with \"http://\", \"https://\", \"image://\", \"wix:image://v1\" or \"wix:vector://v1/svgshape.v2\"";
    },
    /* prettier-ignore */
    error_invalid_css_value: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, cssProperty = _a.cssProperty, exampleFormat = _a.exampleFormat, infoLink = _a.infoLink;
        return " The \"" + propertyName + "\" property of \"" + compName + "\" was set to an invalid \"" + cssProperty + "\" value. The value is expected in the following format:\"" + exampleFormat + "\". Read more about \"" + cssProperty + "\" values: \"" + infoLink + "\"";
    },
    /* prettier-ignore */
    error_invalid_css_value_multiple_expected_formats: function (_a) {
        var propertyName = _a.propertyName, compName = _a.compName, cssProperty = _a.cssProperty, exampleFormats = _a.exampleFormats, infoLink = _a.infoLink;
        return " The \"" + propertyName + "\" property of \"" + compName + "\" was set to an invalid \"" + cssProperty + "\" value. The value is expected in one of the following formats:\"" + exampleFormats + "\". Read more about \"" + cssProperty + "\" values: \"" + infoLink + "\"";
    },
    /* prettier-ignore */
    error_invalid_location: function (_a) {
        var propertyName = _a.propertyName, index = _a.index, wrongValue = _a.wrongValue;
        return "The " + propertyName + " parameter at index " + index + " that is passed to the markers function cannot be set to " + wrongValue + ". You need to set either location object {longitude, latitude}, or a valid address - placeId.";
    },
    /* prettier-ignore */
    error_invalid_markers: function (_a) {
        var wrongValue = _a.wrongValue;
        return "The markers property cannot be set to " + wrongValue + ". You need to set at least one marker in the array.";
    },
    /* prettier-ignore */
    error_only_getter: function (_a) {
        var propertyName = _a.propertyName, compType = _a.compType;
        return "Cannot set property " + propertyName + " of " + compType + " which has only a getter.";
    },
    /* prettier-ignore */
    error_invalid_url: function (_a) {
        var url = _a.url, type = _a.type, prefix = _a.prefix;
        return "The \"src\" property cannot be set to \"" + url + "\". It must be a valid URL starting with \"http://\", \"https://\", or a valid " + type + " URL starting with " + prefix + ".";
    },
    /* prettier-ignore */
    error_supported_link_type_with_index: function (_a) {
        var functionName = _a.functionName, wrongValue = _a.wrongValue, index = _a.index;
        return "The link property of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value \"" + wrongValue + "\" as this is not a supported link type.";
    },
    /* prettier-ignore */
    error_invalid_target_with_index: function (_a) {
        var functionName = _a.functionName, wrongValue = _a.wrongValue, index = _a.index;
        return "The target parameter of item at index " + index + " that is passed to the " + functionName + " method cannot be set to the value " + wrongValue + ". It must be of type from (_blank,_self).";
    },
    /* prettier-ignore */
    warning_unsupported_function_for_type: function (_a) {
        var functionName = _a.functionName, type = _a.type;
        return "'" + functionName + "' is not supported for an element of type: " + type + ".";
    }
};
//# sourceMappingURL=messageTemplates.js.map

/***/ }),
/* 9 */
/*!*************************************************!*\
  !*** ./core/corvid/inputUtils/validityUtils.ts ***!
  \*************************************************/
/*! exports provided: INITIAL_VALIDATION_DATA, getValidationMessage, getCustomValidityMessage, addErrorToValidationData, addCustomValidityToValidationData, addErrorToValidationDataAndKeepMessage, addErrorToValidationDataAndKeepHtmlMessage, checkCustomValidity, composeValidators */
/*! exports used: INITIAL_VALIDATION_DATA, addCustomValidityToValidationData, addErrorToValidationDataAndKeepHtmlMessage, addErrorToValidationDataAndKeepMessage, checkCustomValidity, composeValidators, getCustomValidityMessage, getValidationMessage */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return INITIAL_VALIDATION_DATA; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getValidationMessage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getCustomValidityMessage; });
/* unused harmony export addErrorToValidationData */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return addCustomValidityToValidationData; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return addErrorToValidationDataAndKeepMessage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return addErrorToValidationDataAndKeepHtmlMessage; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return checkCustomValidity; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return composeValidators; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);


var INVALID_MESSAGES = {
    valueMissing: 'value missing',
    patternMismatch: 'pattern mismatch',
    rangeOverflow: 'range overflow',
    rangeUnderflow: 'range underflow',
    stepMismatch: 'step mismatch',
    typeMismatch: 'type mismatch',
    fileNotUploaded: 'file not uploaded',
    fileTypeNotAllowed: function (extension) {
        return extension + " files are not supported.";
    },
    fileSizeExceedsLimit: function (maxFileSize) {
        return "This file is too big. Select a smaller file (" + maxFileSize + " max).";
    },
    tooLong: 'too long',
    tooShort: 'too short',
    exceedsFilesLimit: 'number of files selected exceeds the limit',
};
var INITIAL_VALIDATION_DATA = {
    type: 'General',
    validity: {
        badInput: false,
        customError: false,
        fileNotUploaded: false,
        fileTypeNotAllowed: false,
        fileSizeExceedsLimit: false,
        patternMismatch: false,
        rangeOverflow: false,
        rangeUnderflow: false,
        stepMismatch: false,
        tooLong: false,
        tooShort: false,
        typeMismatch: false,
        valueMissing: false,
        exceedsFilesLimit: false,
        valid: true,
    },
    validationMessage: '',
    htmlValidationMessageOverride: { key: '' },
};
var getValidationMessage = function (validityKey, param) {
    var invalidMessage = INVALID_MESSAGES[validityKey];
    return _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isString(invalidMessage)
        ? invalidMessage
        : invalidMessage(param);
};
var getCustomValidityMessage = function (validationData) {
    var hasCustomError = !!validationData.validity.customError;
    return hasCustomError ? validationData.validationMessage : '';
};
var addErrorToValidationData = function (validationData, validityKey, validationMessage) {
    var _a;
    return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, validationData), { validity: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, validationData.validity), (_a = {}, _a[validityKey] = true, _a.valid = false, _a)), validationMessage: validationMessage }));
};
var addCustomValidityToValidationData = function (validationData, customValidityMessage) {
    return addErrorToValidationData(validationData, 'customError', customValidityMessage || '');
};
var addErrorToValidationDataAndKeepMessage = function (validationData, validityKey, validationMessage) {
    var newValidationMessage = validationData.validationMessage ||
        validationMessage ||
        getValidationMessage(validityKey);
    return addErrorToValidationData(validationData, validityKey, newValidationMessage);
};
var addErrorToValidationDataAndKeepHtmlMessage = function (validationData, validityKey, htmlValidationMessageOverride) {
    var newHtmlMessage = validationData.htmlValidationMessageOverride.key
        ? validationData.htmlValidationMessageOverride
        : htmlValidationMessageOverride;
    return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, addErrorToValidationDataAndKeepMessage(validationData, validityKey)), { htmlValidationMessageOverride: newHtmlMessage });
};
var checkCustomValidity = function (customValidator, props, compValueGetter) {
    var customValidityMessage = '';
    var reject = function (message) {
        customValidityMessage = message;
    };
    var userValue = compValueGetter ? compValueGetter(props) : props.value;
    if (customValidator) {
        customValidator(userValue, reject);
    }
    return customValidityMessage;
};
var composeValidators = function (validators) { return function (props, api) {
    return validators.reduce(function (validationData, validator) {
        return validator(props, validationData, api);
    }, INITIAL_VALIDATION_DATA);
}; };


/***/ }),
/* 10 */
/*!************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js ***!
  \************************************************************************************************************************/
/*! exports provided: createComponentSDKModel */
/*! exports used: createComponentSDKModel */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createComponentSDKModel; });
function createComponentSDKModel(factory) {
    return {
        factory: factory,
    };
}
//# sourceMappingURL=createCorvidModel.js.map

/***/ }),
/* 11 */
/*!**********************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js ***!
  \**********************************************************************************************************************/
/*! exports provided: createCompSchemaValidator, withValidation */
/*! exports used: createCompSchemaValidator, withValidation */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createCompSchemaValidator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return withValidation; });
/* harmony import */ var _reporters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../reporters */ 14);
/* harmony import */ var _createSchemaValidator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createSchemaValidator */ 44);


function createCompSchemaValidator(compName, _a) {
    var _b = (_a === void 0 ? {} : _a).suppressIndexErrors, suppressIndexErrors = _b === void 0 ? false : _b;
    return Object(_createSchemaValidator__WEBPACK_IMPORTED_MODULE_1__[/* createSchemaValidator */ "b"])({ reportError: _reporters__WEBPACK_IMPORTED_MODULE_0__[/* reportError */ "a"], reportWarning: _reporters__WEBPACK_IMPORTED_MODULE_0__[/* reportWarning */ "b"] }, compName, {
        suppressIndexErrors: suppressIndexErrors,
    });
}
function withValidation(sdkFactory, schema, rules) {
    if (rules === void 0) { rules = {}; }
    return function (api) {
        var sdk = sdkFactory(api);
        var schemaValidator = createCompSchemaValidator(api.metaData.role);
        var argsSchemaValidator = createCompSchemaValidator(api.metaData.role, {
            suppressIndexErrors: true,
        });
        var sdkWithValidation = Object.keys(sdk).reduce(function (acc, sdkPropName) {
            var propDesc = Object.getOwnPropertyDescriptor(sdk, sdkPropName);
            var propWithValidationDesc = {
                // retrieve value from sdk
                enumerable: true,
                configurable: true,
            };
            // data descriptor (functions, variables)
            if (propDesc.value) {
                if (typeof propDesc.value === 'function') {
                    propWithValidationDesc.value = function () {
                        var args = [];
                        for (var _i = 0; _i < arguments.length; _i++) {
                            args[_i] = arguments[_i];
                        }
                        var argsSchema = schema.properties[sdkPropName] &&
                            schema.properties[sdkPropName].args;
                        var customValidation = rules[sdkPropName];
                        var isValid = true;
                        if (argsSchema) {
                            isValid = argsSchemaValidator(args, { type: ['array'], items: argsSchema }, sdkPropName);
                        }
                        if (isValid && customValidation) {
                            isValid = customValidation.every(function (p) { return p(args, api); });
                        }
                        return isValid ? propDesc.value.apply(propDesc, args) : undefined;
                    };
                }
                else {
                    // delegate assignment to sdk
                    propWithValidationDesc.value = propDesc.value;
                }
            }
            // accessor descriptor
            else {
                if (propDesc.get) {
                    propWithValidationDesc.get = function () { return sdk[sdkPropName]; };
                }
                if (propDesc.set) {
                    propWithValidationDesc.set = function (value) {
                        var customValidation = rules[sdkPropName];
                        var isValid = true;
                        if (schema.properties[sdkPropName]) {
                            isValid = schemaValidator(value, schema.properties[sdkPropName], sdkPropName);
                        }
                        if (isValid && customValidation) {
                            isValid = customValidation.every(function (p) { return p(value, api); });
                        }
                        if (!isValid) {
                            return;
                        }
                        // delegate assignment to sdk
                        sdk[sdkPropName] = value;
                    };
                }
            }
            Object.defineProperty(acc, sdkPropName, propWithValidationDesc);
            return acc;
        }, {});
        return sdkWithValidation;
    };
}
//# sourceMappingURL=withValidation.js.map

/***/ }),
/* 12 */
/*!**********************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules ***!
  \**********************************************************************************************************************/
/*! exports provided: messages, messageTemplates */
/*! exports used: messages */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js because of ./components/Slider/corvid/Slider.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ messages_namespaceObject; });

// UNUSED EXPORTS: messageTemplates

// NAMESPACE OBJECT: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messages.js
var messages_namespaceObject = {};
__webpack_require__.r(messages_namespaceObject);
__webpack_require__.d(messages_namespaceObject, "nilAssignmentMessage", function() { return nilAssignmentMessage; });
__webpack_require__.d(messages_namespaceObject, "missingFieldMessage", function() { return missingFieldMessage; });
__webpack_require__.d(messages_namespaceObject, "invalidStringLengthMessage", function() { return invalidStringLengthMessage; });
__webpack_require__.d(messages_namespaceObject, "invalidNumberBoundsMessage", function() { return invalidNumberBoundsMessage; });
__webpack_require__.d(messages_namespaceObject, "invalidTypeMessage", function() { return invalidTypeMessage; });
__webpack_require__.d(messages_namespaceObject, "invalidEnumValueMessage", function() { return invalidEnumValueMessage; });
__webpack_require__.d(messages_namespaceObject, "patternMismatchMessage", function() { return patternMismatchMessage; });
__webpack_require__.d(messages_namespaceObject, "noneImageInGallery", function() { return noneImageInGallery; });
__webpack_require__.d(messages_namespaceObject, "invalidSlideInputMessage", function() { return invalidSlideInputMessage; });
__webpack_require__.d(messages_namespaceObject, "invalidStateInputMessage", function() { return invalidStateInputMessage; });
__webpack_require__.d(messages_namespaceObject, "invalidImageInGalleryWithIndex", function() { return invalidImageInGalleryWithIndex; });
__webpack_require__.d(messages_namespaceObject, "unsupportedLinkType", function() { return unsupportedLinkType; });
__webpack_require__.d(messages_namespaceObject, "invalidTargetWithIndex", function() { return invalidTargetWithIndex; });
__webpack_require__.d(messages_namespaceObject, "unsupportedFunctionForType", function() { return unsupportedFunctionForType; });
__webpack_require__.d(messages_namespaceObject, "invalidSvgValue", function() { return invalidSvgValue; });
__webpack_require__.d(messages_namespaceObject, "invalidMenuItemMessage", function() { return invalidMenuItemMessage; });
__webpack_require__.d(messages_namespaceObject, "invalidOption", function() { return invalidOption; });
__webpack_require__.d(messages_namespaceObject, "onlyGetter", function() { return onlyGetter; });
__webpack_require__.d(messages_namespaceObject, "invalidFormatMessageWithHint", function() { return invalidFormatMessageWithHint; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js
var messageTemplates = __webpack_require__(8);

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messages.js


var nilAssignmentMessage = function (_a) {
    var compName = _a.compName, functionName = _a.functionName, propertyName = _a.propertyName, index = _a.index;
    if (assert["a" /* assert */].isNumber(index)) {
        return messageTemplates["a" /* templates */].warning_not_null_with_index({
            propertyName: propertyName,
            functionName: functionName,
            index: index,
        });
    }
    if (compName) {
        return messageTemplates["a" /* templates */].warning_not_null_for_comp_name({
            compName: compName,
            functionName: functionName,
            propertyName: propertyName,
        });
    }
    return messageTemplates["a" /* templates */].warning_not_null({ functionName: functionName, propertyName: propertyName });
};
var missingFieldMessage = function (_a) {
    var functionName = _a.functionName, propertyName = _a.propertyName, index = _a.index;
    return assert["a" /* assert */].isNumber(index)
        ? messageTemplates["a" /* templates */].error_mandatory_val_with_index({
            functionName: functionName,
            propertyName: propertyName,
            index: index,
        })
        : messageTemplates["a" /* templates */].error_mandatory_val({ functionName: functionName, propertyName: propertyName });
};
var invalidStringLengthMessage = function (_a) {
    var functionName = _a.functionName, propertyName = _a.propertyName, value = _a.value, maximum = _a.maximum, minimum = _a.minimum, index = _a.index;
    if (minimum && maximum) {
        if (minimum === maximum) {
            return assert["a" /* assert */].isNumber(index)
                ? messageTemplates["a" /* templates */].error_length_accept_single_value_with_index({
                    functionName: functionName,
                    propertyName: propertyName,
                    value: value,
                    expectedValue: minimum,
                    index: index,
                })
                : messageTemplates["a" /* templates */].error_length_accept_single_value({
                    functionName: functionName,
                    propertyName: propertyName,
                    value: value,
                    expectedValue: minimum,
                });
        }
        return assert["a" /* assert */].isNumber(index)
            ? messageTemplates["a" /* templates */].error_length_in_range_with_index({
                functionName: functionName,
                propertyName: propertyName,
                value: value,
                maximum: maximum,
                minimum: minimum,
                index: index,
            })
            : messageTemplates["a" /* templates */].error_length_in_range({
                functionName: functionName,
                propertyName: propertyName,
                value: value,
                maximum: maximum,
                minimum: minimum,
            });
    }
    if (!minimum && maximum) {
        return assert["a" /* assert */].isNumber(index)
            ? messageTemplates["a" /* templates */].error_length_exceeds_with_index({
                functionName: functionName,
                propertyName: propertyName,
                value: value,
                maximum: maximum,
                index: index,
            })
            : messageTemplates["a" /* templates */].error_length_exceeds({
                functionName: functionName,
                propertyName: propertyName,
                value: value,
                maximum: maximum,
            });
    }
    // valided minimum length
    return assert["a" /* assert */].isNumber(index)
        ? messageTemplates["a" /* templates */].error_length_less_than_with_index({
            functionName: functionName,
            propertyName: propertyName,
            value: value,
            minimum: minimum,
            index: index,
        })
        : messageTemplates["a" /* templates */].error_length_less_than({
            functionName: functionName,
            propertyName: propertyName,
            value: value,
            minimum: minimum,
        });
};
var invalidNumberBoundsMessage = function (_a) {
    var functionName = _a.functionName, propertyName = _a.propertyName, value = _a.value, minimum = _a.minimum, maximum = _a.maximum, index = _a.index;
    if (minimum && maximum) {
        if (minimum === maximum) {
            return assert["a" /* assert */].isNumber(index)
                ? messageTemplates["a" /* templates */].error_accept_single_value_with_index({
                    functionName: functionName,
                    propertyName: propertyName,
                    expectedValue: minimum,
                    value: value,
                    index: index,
                })
                : messageTemplates["a" /* templates */].error_accept_single_value({
                    functionName: functionName,
                    propertyName: propertyName,
                    expectedValue: minimum,
                    value: value,
                });
        }
        return assert["a" /* assert */].isNumber(index)
            ? messageTemplates["a" /* templates */].error_range_with_index({
                functionName: functionName,
                propertyName: propertyName,
                value: value,
                maximum: maximum,
                minimum: minimum,
                index: index,
            })
            : messageTemplates["a" /* templates */].error_range({
                functionName: functionName,
                propertyName: propertyName,
                value: value,
                maximum: maximum,
                minimum: minimum,
            });
    }
    if (!minimum && maximum) {
        return assert["a" /* assert */].isNumber(index)
            ? messageTemplates["a" /* templates */].error_less_than_with_index({
                functionName: functionName,
                propertyName: propertyName,
                maximum: maximum,
                value: value,
                index: index,
            })
            : messageTemplates["a" /* templates */].error_less_than({
                functionName: functionName,
                propertyName: propertyName,
                maximum: maximum,
                value: value,
            });
    }
    return assert["a" /* assert */].isNumber(index)
        ? messageTemplates["a" /* templates */].error_larger_than_with_index({
            functionName: functionName,
            propertyName: propertyName,
            value: value,
            minimum: minimum,
            index: index,
        })
        : messageTemplates["a" /* templates */].error_larger_than({
            functionName: functionName,
            propertyName: propertyName,
            value: value,
            // TS should know that minimum can't be undefined here
            minimum: minimum,
        });
};
var invalidTypeMessage = function (_a) {
    var functionName = _a.functionName, propertyName = _a.propertyName, types = _a.types, value = _a.value, index = _a.index;
    var expectedType = types
        .map(function (type) { return (type === 'nil' ? 'null' : type); })
        .join(',');
    return assert["a" /* assert */].isNumber(index)
        ? messageTemplates["a" /* templates */].error_type_with_index({
            functionName: functionName,
            index: index,
            propertyName: propertyName,
            value: value,
            expectedType: expectedType,
        })
        : messageTemplates["a" /* templates */].error_type({
            functionName: functionName,
            propertyName: propertyName,
            value: value,
            expectedType: expectedType,
        });
};
var invalidEnumValueMessage = function (_a) {
    var functionName = _a.functionName, propertyName = _a.propertyName, value = _a.value, enumArray = _a.enum, index = _a.index;
    var expectedType = "from (" + enumArray.join(',') + ")";
    return assert["a" /* assert */].isNumber(index)
        ? messageTemplates["a" /* templates */].error_type_with_index({
            functionName: functionName,
            propertyName: propertyName,
            value: value,
            expectedType: expectedType,
            index: index,
        })
        : messageTemplates["a" /* templates */].error_type({
            functionName: functionName,
            propertyName: propertyName,
            value: value,
            expectedType: expectedType,
        });
};
var patternMismatchMessage = function (_a) {
    var functionName = _a.functionName, propertyName = _a.propertyName, value = _a.value, index = _a.index;
    return assert["a" /* assert */].isNumber(index)
        ? messageTemplates["a" /* templates */].error_bad_format_with_index({
            functionName: functionName,
            propertyName: propertyName,
            value: value,
            index: index,
        })
        : messageTemplates["a" /* templates */].error_bad_format({ functionName: functionName, propertyName: propertyName, value: value });
};
var noneImageInGallery = function (galleryId) {
    return messageTemplates["a" /* templates */].warning_non_images_in_gallery({
        galleryId: galleryId,
    });
};
var invalidSlideInputMessage = function (_a) {
    var functionName = _a.functionName, propertyName = _a.propertyName, slideShowId = _a.slideShowId, value = _a.value, minimum = _a.minimum, maximum = _a.maximum;
    return messageTemplates["a" /* templates */].error_slide_input({
        functionName: functionName,
        propertyName: propertyName,
        slideShowId: slideShowId,
        value: value,
        maximum: maximum,
        minimum: minimum,
    });
};
var invalidStateInputMessage = function (_a) {
    var functionName = _a.functionName, propertyName = _a.propertyName, stateBoxId = _a.stateBoxId, value = _a.value;
    return messageTemplates["a" /* templates */].error_state_input({
        functionName: functionName,
        propertyName: propertyName,
        stateBoxId: stateBoxId,
        value: value,
    });
};
var invalidImageInGalleryWithIndex = function (_a) {
    var wrongValue = _a.wrongValue, propertyName = _a.propertyName, index = _a.index;
    return messageTemplates["a" /* templates */].error_bad_image_format_with_index({
        propertyName: propertyName,
        index: index,
        wrongValue: wrongValue,
    });
};
var unsupportedLinkType = function (_a) {
    var functionName = _a.functionName, wrongValue = _a.wrongValue, index = _a.index;
    return messageTemplates["a" /* templates */].error_supported_link_type_with_index({
        functionName: functionName,
        wrongValue: wrongValue,
        index: index,
    });
};
var invalidTargetWithIndex = function (_a) {
    var functionName = _a.functionName, wrongValue = _a.wrongValue, index = _a.index;
    return messageTemplates["a" /* templates */].error_invalid_target_with_index({
        functionName: functionName,
        wrongValue: wrongValue,
        index: index,
    });
};
var unsupportedFunctionForType = function (_a) {
    var functionName = _a.functionName, type = _a.type;
    return messageTemplates["a" /* templates */].warning_unsupported_function_for_type({
        functionName: functionName,
        type: type,
    });
};
var invalidSvgValue = function (value) {
    return messageTemplates["a" /* templates */].error_bad_svg_format({
        propertyName: 'src',
        value: value,
    });
};
var invalidMenuItemMessage = function (_a) {
    var propertyName = _a.propertyName, value = _a.value, index = _a.index;
    return assert["a" /* assert */].isNumber(index)
        ? messageTemplates["a" /* templates */].error_bad_menu_item_format_with_index({
            propertyName: propertyName,
            value: value,
            index: index,
        })
        : messageTemplates["a" /* templates */].error_bad_menu_item_format({
            propertyName: propertyName,
            value: value,
        });
};
var invalidOption = function (_a) {
    var propertyName = _a.propertyName, wrongValue = _a.wrongValue, index = _a.index;
    return messageTemplates["a" /* templates */].warning_invalid_option({
        propertyName: propertyName,
        wrongValue: wrongValue,
        index: index,
    });
};
var onlyGetter = function (_a) {
    var propertyName = _a.propertyName, compType = _a.compType;
    return messageTemplates["a" /* templates */].error_only_getter({
        propertyName: propertyName,
        compType: compType,
    });
};
var invalidFormatMessageWithHint = function (_a) {
    var propertyName = _a.propertyName, functionName = _a.functionName, wrongValue = _a.wrongValue, hint = _a.hint;
    return messageTemplates["a" /* templates */].error_bad_format_with_hint({
        propertyName: propertyName,
        functionName: functionName,
        wrongValue: wrongValue,
        hint: hint,
    });
};
//# sourceMappingURL=messages.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js



//# sourceMappingURL=index.js.map

/***/ }),
/* 13 */
/*!*********************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/corvidEvents/corvidEvents.js ***!
  \*********************************************************************************************************************/
/*! exports provided: convertToCorvidEvent, convertToCorvidMouseEvent, convertToCorvidKeyboardEvent, registerCorvidEvent, registerCorvidKeyboardEvent, registerCorvidMouseEvent, registerEventOnce */
/*! exports used: registerCorvidEvent, registerCorvidKeyboardEvent, registerCorvidMouseEvent, registerEventOnce */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export convertToCorvidEvent */
/* unused harmony export convertToCorvidMouseEvent */
/* unused harmony export convertToCorvidKeyboardEvent */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return registerCorvidEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return registerCorvidKeyboardEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return registerCorvidMouseEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return registerEventOnce; });
/* harmony import */ var _validations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../validations */ 11);
var __assign = (undefined && undefined.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};

var reactToCorvidEventType = {
    dblclick: 'dblClick',
    keydown: 'keyPress',
    input: 'onInput',
};
var convertToCorvidEvent = function (event) {
    var _a;
    var target = event.target, type = event.type, context = event.context;
    return { target: target, type: (_a = reactToCorvidEventType[type]) !== null && _a !== void 0 ? _a : type, context: context };
};
var convertToCorvidMouseEvent = function (event) {
    var _a;
    var clientX = event.clientX, clientY = event.clientY, pageX = event.pageX, pageY = event.pageY, screenX = event.screenX, screenY = event.screenY, target = event.target, type = event.type, context = event.context, nativeEvent = event.nativeEvent;
    var offsetX = nativeEvent.offsetX, offsetY = nativeEvent.offsetY;
    return {
        clientX: clientX,
        clientY: clientY,
        pageX: pageX,
        pageY: pageY,
        screenX: screenX,
        screenY: screenY,
        target: target,
        type: (_a = reactToCorvidEventType[type]) !== null && _a !== void 0 ? _a : type,
        context: context,
        offsetX: offsetX,
        offsetY: offsetY,
    };
};
var convertToCorvidKeyboardEvent = function (event) {
    var _a;
    var altKey = event.altKey, ctrlKey = event.ctrlKey, key = event.key, metaKey = event.metaKey, shiftKey = event.shiftKey, target = event.target, type = event.type, context = event.context;
    return {
        altKey: altKey,
        ctrlKey: ctrlKey,
        key: key,
        metaKey: metaKey,
        shiftKey: shiftKey,
        target: target,
        type: (_a = reactToCorvidEventType[type]) !== null && _a !== void 0 ? _a : type,
        context: context,
    };
};
var functionValidator = function (value, eventName, role) {
    return Object(_validations__WEBPACK_IMPORTED_MODULE_0__[/* createCompSchemaValidator */ "a"])(role)(value, {
        type: ['function'],
    }, eventName);
};
var eventNameMapToMethodName = {
    onMouseEnter: 'onMouseIn',
    onMouseLeave: 'onMouseOt',
};
var registerCorvidEvent = function (eventName, api, cb, projection) {
    var _a;
    var create$w = api.create$w, createEvent = api.createEvent, registerEvent = api.registerEvent, getSdkInstance = api.getSdkInstance, metaData = api.metaData;
    var setterName = (_a = eventNameMapToMethodName[eventName]) !== null && _a !== void 0 ? _a : eventName;
    if (!functionValidator(cb, setterName, metaData.role)) {
        return getSdkInstance();
    }
    registerEvent(eventName, function (event) {
        var baseEvent = createEvent({ type: event.type, compId: event.compId });
        var $w = create$w({ context: baseEvent.context });
        var projectionEvent = projection === null || projection === void 0 ? void 0 : projection({ componentEvent: event });
        cb(__assign(__assign({}, projectionEvent), convertToCorvidEvent(baseEvent)), $w);
    });
    return getSdkInstance();
};
/**
 * Function that registers corvid keyboard event handler by forwarding callback prop to component.
 * 1. Validating user callback.
 * 2. Returning sdk instance.
 * 3. Passing $w selector as second argument of consumers callback.
 * 4. Includes platform metadata for consumers event object: target, context.
 * 5. Extracts required keyboard event fields from the React synthetic event.
 * @param eventName - the name of the callback that will be passed to component.
 * @param api - corvid sdk api object.
 * @param cb - consumers callback function.
 */
var registerCorvidKeyboardEvent = function (eventName, api, cb) {
    return registerCorvidEvent(eventName, api, cb, function (_a) {
        var componentEvent = _a.componentEvent;
        return convertToCorvidKeyboardEvent(componentEvent);
    });
};
/**
 * Function that registers corvid mouse event handler by forwarding callback prop to component.
 * 1. Validating user callback.
 * 2. Returning sdk instance.
 * 3. Passing $w selector as second argument of consumers callback.
 * 4. Includes platform metadata for consumers event object: target, context.
 * 5. Extracts required mouse event fields from the React synthetic event.
 * @param eventName - the name of the callback that will be passed to component.
 * @param api - corvid sdk api object.
 * @param cb - consumers callback function.
 */
var registerCorvidMouseEvent = function (eventName, api, cb) {
    return registerCorvidEvent(eventName, api, cb, function (_a) {
        var componentEvent = _a.componentEvent;
        return convertToCorvidMouseEvent(componentEvent);
    });
};
/**
 * Function that registers corvid event only once per sdk initialization.
 * This is function is used to sync the corvid state with the component state
 * synchronously.
 * @param {EventParameters} Object {
 *   @property {string} eventName - the name of the callback that will be passed to component.
 *   @property {CorvidSDKApi} api - corvid sdk api object.
 *   @property {Function} cb - callback function.
 *   @property {string} namespace - (optional) - state identifier used to make id unique by prop-factory.
 * }
 */
var registerEventOnce = function (_a) {
    var eventName = _a.eventName, api = _a.api, cb = _a.cb, namespace = _a.namespace;
    var registerEvent = api.registerEvent, createSdkState = api.createSdkState;
    var _b = createSdkState({ wasInvoked: false }, namespace), state = _b[0], setState = _b[1];
    if (!state.wasInvoked) {
        registerEvent(eventName, cb);
        setState({ wasInvoked: true });
    }
};
//# sourceMappingURL=corvidEvents.js.map

/***/ }),
/* 14 */
/*!***************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js ***!
  \***************************************************************************************************************/
/*! exports provided: reportError, reportWarning, reportMessage */
/*! exports used: reportError, reportWarning */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return reportError; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reportWarning; });
/* unused harmony export reportMessage */
var reportError = function (message) {
    console.error("Wix code SDK error: " + message);
};
var reportWarning = function (message) {
    console.warn("Wix code SDK warning: " + message);
};
var reportMessage = function (message) {
    console.log("Wix code SDK message: " + message);
};
//# sourceMappingURL=reporters.js.map

/***/ }),
/* 15 */
/*!**************************************************!*\
  !*** ./core/corvid/galleries/GallerySDKUtils.ts ***!
  \**************************************************/
/*! exports provided: convertImagesToUserModel, convertGalleryItemsToUserModel, convertToGalleryItemsPropsOrReport, convertToTPAImagesPropsOrReport, createUnsupportedAPIReporter */
/*! exports used: convertGalleryItemsToUserModel, convertToGalleryItemsPropsOrReport, createUnsupportedAPIReporter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export convertImagesToUserModel */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return convertGalleryItemsToUserModel; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return convertToGalleryItemsPropsOrReport; });
/* unused harmony export convertToTPAImagesPropsOrReport */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createUnsupportedAPIReporter; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 21);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 12);


var isUndefined = function (x) { return typeof x === 'undefined'; };
var pickBy = function (obj, predicate) {
    return Object.entries(obj).reduce(function (acc, _a) {
        var k = _a[0], v = _a[1];
        if (predicate(v, k)) {
            acc[k] = v;
        }
        return acc;
    }, {});
};
var convertImagesToUserModel = function (images, linkUtils) {
    return images.map(function (image) {
        var type = image.type, title = image.title, width = image.width, height = image.height, uri = image.uri, alt = image.alt, description = image.description, link = image.link;
        var mediaSrc = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* createMediaSrc */ "a"])({
            mediaId: uri,
            type: type.toLowerCase(),
            title: title,
            width: width,
            height: height,
        });
        var optionalValues = pickBy(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ description: description,
            alt: alt,
            title: title,
            height: height,
            width: width }, (link && { link: linkUtils.getLink(link), target: link.target })), function (value) { return !isUndefined(value); });
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ type: type.charAt(0).toUpperCase() + type.slice(1).toLowerCase(), src: mediaSrc.item || mediaSrc.error || '' }, optionalValues);
    });
};
var convertGalleryItemsToUserModel = function (items, linkUtils) {
    var images = items.map(function (item) {
        return {
            id: item.dataId,
            type: 'Image',
            title: item.title,
            width: item.image.width,
            height: item.image.height,
            uri: item.image.uri,
            alt: item.image.alt,
            description: item.description,
            link: item.link,
        };
    });
    return convertImagesToUserModel(images, linkUtils);
};
var getIdGenerator = function (compId, dataId) { return function (index) {
    return compId + "_runtime_" + dataId + "items" + index;
}; };
var convertImageOrReportError = function (src, index, title, description, alt, imageLinkProps, idGenerator) {
    src = src || '';
    var _a = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* parseMediaSrc */ "c"])(src, 'image'), height = _a.height, width = _a.width, error = _a.error, _b = _a.mediaId, mediaId = _b === void 0 ? '' : _b;
    if (error) {
        Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* messages */ "a"].invalidImageInGalleryWithIndex({
            wrongValue: src,
            index: index,
            propertyName: 'src',
        }));
    }
    var uri = mediaId;
    return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: idGenerator(index), type: 'image', height: height,
        width: width,
        uri: uri }, (title && { title: title })), (description && { description: description })), (alt && { alt: alt })), (imageLinkProps && Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, imageLinkProps)));
};
var _convertToImagesPropsOrReport = function (items, role, compId, dataId, resolveLink) {
    var images = items.filter(function (image) { return !image.type || image.type.toLowerCase() === 'image'; });
    if (images.length !== items.length) {
        Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportWarning */ "b"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* messages */ "a"].noneImageInGallery(role));
    }
    var imagesModel = images
        .map(function (image, index) {
        var title = image.title, description = image.description, alt = image.alt, link = image.link, src = image.src, target = image.target;
        var linkTarget = target ? target : '_self';
        var imageLinkProps = link ? resolveLink(link, linkTarget) : null;
        return convertImageOrReportError(src, index, title, description, alt, imageLinkProps, getIdGenerator(compId, dataId));
    })
        .filter(function (x) { return x !== null; });
    return imagesModel;
};
var convertToGalleryItemsPropsOrReport = function (items, role, compId, dataId, linkUtils, displayMode) {
    var resolveLink = function (link, target) { return ({
        link: linkUtils.getLinkProps(link, target),
    }); };
    var images = _convertToImagesPropsOrReport(items, role, compId, dataId, resolveLink);
    if (!images) {
        return null;
    }
    return images.map(function (image) {
        var imageProps = {
            displayMode: displayMode,
            uri: image.uri,
            width: image.width,
            height: image.height,
            alt: image.alt,
            title: image.title,
        };
        return {
            dataId: image.id,
            title: image.title,
            description: image.description,
            image: imageProps,
            link: image.link,
        };
    });
};
var convertToTPAImagesPropsOrReport = function (items, role, compId, dataId, linkUtils) {
    var resolveLink = function (link, target) {
        var linkProps = linkUtils.getLinkProps(link, target);
        var linkType = (linkUtils.isDynamicPage(link)
            ? 'DYNAMIC_PAGE_LINK'
            : 'WEBSITE');
        return {
            link: linkProps,
            href: linkProps.href,
            linkType: linkType,
        };
    };
    return _convertToImagesPropsOrReport(items, role, compId, dataId, resolveLink);
};
var createUnsupportedAPIReporter = function (galleryType) {
    return function (api) {
        return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportWarning */ "b"])("'" + api + "' is not supported for an element of type: " + galleryType + ".");
    };
};


/***/ }),
/* 16 */
/*!*******************************************************!*\
  !*** ./components/TPAGallery/corvid/TPAGallerySDK.ts ***!
  \*******************************************************/
/*! exports provided: tpaGalleryPropsSDKFactory */
/*! exports used: tpaGalleryPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return tpaGalleryPropsSDKFactory; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 12);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/media/mediaSrcHandler */ 21);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _TPAGallerySDKUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TPAGallerySDKUtils */ 42);





var GALLERY_CLICK_ACTIONS;
(function (GALLERY_CLICK_ACTIONS) {
    GALLERY_CLICK_ACTIONS["none"] = "disabled";
    GALLERY_CLICK_ACTIONS["expand"] = "zoomMode";
    GALLERY_CLICK_ACTIONS["link"] = "goToLink";
})(GALLERY_CLICK_ACTIONS || (GALLERY_CLICK_ACTIONS = {}));
var tpaGallerySDKFactory = function (api) {
    var setProps = api.setProps, props = api.props, linkUtils = api.linkUtils, metaData = api.metaData, getSdkInstance = api.getSdkInstance, sdkData = api.sdkData, envData = api.envData;
    function getOrGenerateId(index, dataId) {
        return metaData.compId + "_runtime_" + dataId + "items" + index;
    }
    function convertImageOrReportError(src, index, title, description, alt, resolvedLink, linkType, internalLink) {
        var parsedMedia = src ? Object(_core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_7__[/* parseMediaSrc */ "c"])(src, 'image') : { mediaId: '' };
        var height = parsedMedia.height, width = parsedMedia.width, name = parsedMedia.title, error = parsedMedia.error, uri = parsedMedia.mediaId;
        if (error) {
            Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* messages */ "a"].invalidImageInGalleryWithIndex({
                wrongValue: src,
                index: index,
                propertyName: 'src',
            }));
            return null;
        }
        var img = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ id: getOrGenerateId(index, sdkData.dataId), type: 'image', height: height,
            width: width, title: name }, (resolvedLink && { target: resolvedLink.target })), { uri: uri }), (title && { title: title })), (description && { description: description })), (alt && { alt: alt })), (resolvedLink && {
            linkType: linkType,
            link: resolvedLink,
            href: resolvedLink.href,
        })), { internalLink: internalLink });
        return img;
    }
    return {
        get items() {
            var imageItems = props.images.filter(function (image) {
                return !image.type || image.type.toLowerCase() === 'image';
            });
            var convertModelToUserFormat = Object(_TPAGallerySDKUtils__WEBPACK_IMPORTED_MODULE_9__[/* convertImagesToUserModel */ "a"])(imageItems, linkUtils);
            return convertModelToUserFormat;
        },
        set items(items) {
            var images = items.filter(function (image) {
                return !image.type || image.type.toLowerCase() === 'image';
            });
            if (images.length !== items.length) {
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* reportWarning */ "b"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* messages */ "a"].noneImageInGallery(metaData.role));
            }
            var imagesModel = images
                .map(function (image, index) {
                var title = image.title, description = image.description, alt = image.alt, link = image.link, src = image.src, target = image.target;
                var linkType = 'WEBSITE';
                var resolvedLink;
                var internalLink;
                if (link) {
                    if (target && target !== '_self' && target !== '_blank') {
                        Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* messages */ "a"].invalidTargetWithIndex({
                            functionName: 'items',
                            wrongValue: target,
                            index: index,
                            propertyName: 'target',
                        }));
                        return null;
                    }
                    var linkTarget = target ? target : '_self';
                    try {
                        resolvedLink = linkUtils.getLinkProps(link, linkTarget);
                        var isDynamicLink = linkUtils.isDynamicPage(link);
                        var isPageLink = link.startsWith('/');
                        var externalBaseUrl = envData.location.externalBaseUrl;
                        if (isPageLink &&
                            resolvedLink.href === externalBaseUrl &&
                            link !== '/') {
                            resolvedLink = null;
                        }
                        else if ((isDynamicLink || isPageLink) && resolvedLink.href) {
                            linkType = isDynamicLink ? 'DYNAMIC_PAGE_LINK' : 'WEBSITE';
                            internalLink = link;
                        }
                    }
                    catch (isDynamicPageError) {
                        var externalLinkDefaultTarget = target ? target : '_blank';
                        try {
                            resolvedLink = linkUtils.getLinkProps(link, linkTarget);
                            resolvedLink.target = externalLinkDefaultTarget;
                        }
                        catch (getLinkPropsError) {
                            Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* messages */ "a"].unsupportedLinkType({
                                functionName: 'items',
                                wrongValue: link,
                                index: index,
                                propertyName: 'link',
                            }));
                            resolvedLink = null;
                        }
                    }
                }
                return convertImageOrReportError(src, index, title, description, alt, resolvedLink, linkType, internalLink);
            })
                .filter(function (x) { return x !== null; });
            if (images.length !== imagesModel.length) {
                return;
            }
            setProps({ images: imagesModel });
        },
        get clickAction() {
            var compProps = props.compProps;
            var action = compProps.galleryImageOnClickAction;
            switch (action) {
                case 'disabled':
                    return 'none';
                case 'goToLink':
                    return 'link';
                default:
                case 'zoomMode':
                    return 'expand';
            }
        },
        set clickAction(action) {
            var galleryImageClickAction = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* assert */ "a"].isNil(action)
                ? GALLERY_CLICK_ACTIONS.none
                : GALLERY_CLICK_ACTIONS[action];
            setProps({
                compProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.compProps), { galleryImageOnClickAction: galleryImageClickAction }),
            });
        },
        onItemClicked: function (handler) {
            return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onItemClicked', api, handler, function (_a) {
                var componentEvent = _a.componentEvent;
                var convertedItemToUserModel = Object(_TPAGallerySDKUtils__WEBPACK_IMPORTED_MODULE_9__[/* convertImagesToUserModel */ "a"])([componentEvent.item], linkUtils)[0];
                return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, componentEvent), { item: convertedItemToUserModel });
            });
        },
        get type() {
            return '$w.Gallery';
        },
        toJSON: function () {
            var items = getSdkInstance().items;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* toJSONBase */ "b"])(metaData)), { items: items, type: '$w.Gallery' });
        },
    };
};
var tpaGallerySDK = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* withValidation */ "b"])(tpaGallerySDKFactory, {
    type: ['object'],
    properties: {
        clickAction: {
            warnIfNil: true,
            type: ['string'],
            enum: Object.keys(GALLERY_CLICK_ACTIONS),
        },
        items: {
            type: ['array'],
            items: {
                type: ['object'],
                properties: {
                    src: { type: ['string', 'nil'], warnIfNil: true },
                    alt: { type: ['string', 'nil'], warnIfNil: true },
                    name: { type: ['string', 'nil'], warnIfNil: true },
                },
            },
            warnIfNil: true,
        },
    },
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* createElementPropsSDKFactory */ "a"])();
var tpaGalleryPropsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, tpaGallerySDK);


/***/ }),
/* 17 */
/*!**************************************************************!*\
  !*** ./components/TPAGallery/corvid/TPAGalleryWarningSDK.ts ***!
  \**************************************************************/
/*! exports provided: tpaGalleryWarningSDKFactory */
/*! exports used: tpaGalleryWarningSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return tpaGalleryWarningSDKFactory; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 12);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);

function reportUnsupportedSDKWarning(functionName, type) {
    Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* reportWarning */ "b"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* messages */ "a"].unsupportedFunctionForType({
        propertyName: functionName,
        functionName: functionName,
        type: type,
    }));
}
var tpaGalleryNavigationWarningSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return {
        get showNavigationButtons() {
            reportUnsupportedSDKWarning('showNavigationButtons', metaData.compType);
            return undefined;
        },
        set showNavigationButtons(val) {
            reportUnsupportedSDKWarning('showNavigationButtons', metaData.compType);
        },
    };
};
var tpaGalleryCurrentItemWarningSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return {
        get currentItem() {
            reportUnsupportedSDKWarning('currentItem', metaData.compType);
            return undefined;
        },
        get currentIndex() {
            reportUnsupportedSDKWarning('currentIndex', metaData.compType);
            return undefined;
        },
        onCurrentItemChanged: function () {
            reportUnsupportedSDKWarning('currentItem', metaData.compType);
        },
    };
};
var tpaGalleryPlayableWarningSDKFactory = function (_a) {
    var metaData = _a.metaData, getSdkInstance = _a.getSdkInstance;
    return {
        get isPlaying() {
            reportUnsupportedSDKWarning('play', metaData.compType);
            return undefined;
        },
        play: function () {
            reportUnsupportedSDKWarning('play', metaData.compType);
            return getSdkInstance();
        },
        pause: function () {
            reportUnsupportedSDKWarning('pause', metaData.compType);
            return getSdkInstance();
        },
        next: function () {
            reportUnsupportedSDKWarning('next', metaData.compType);
            return Promise.reject("Next is not supported for an element of type: " + metaData.compType + ".");
        },
        previous: function () {
            reportUnsupportedSDKWarning('previous', metaData.compType);
            return Promise.reject("Previous is not supported for an element of type: " + metaData.compType + ".");
        },
    };
};
var emptySDKFactory = function () {
    return {};
};
var tpaGalleryWarningSDKFactory = function (capabilities) {
    var navigationWarningFactory = !capabilities.hasNavigationButtons
        ? tpaGalleryNavigationWarningSDKFactory
        : emptySDKFactory;
    var currentItemWarningFactory = !capabilities.hasCurrentItem
        ? tpaGalleryCurrentItemWarningSDKFactory
        : emptySDKFactory;
    var playableWarningFactory = !capabilities.isPlayable
        ? tpaGalleryPlayableWarningSDKFactory
        : emptySDKFactory;
    return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(navigationWarningFactory, currentItemWarningFactory, playableWarningFactory);
};


/***/ }),
/* 18 */,
/* 19 */
/*!*****************************************************!*\
  !*** ./core/corvid/inputUtils/inputSanitization.ts ***!
  \*****************************************************/
/*! exports provided: numberToString, emptyStringIfNotString, removeLineBreaks, forceMaxLength, removeLeadingAndTrailingWhitespace, validFloatingPointNumber, normalizePrecision, composeSanitizers */
/*! exports used: composeSanitizers, emptyStringIfNotString, forceMaxLength, normalizePrecision, numberToString, removeLeadingAndTrailingWhitespace, removeLineBreaks, validFloatingPointNumber */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return numberToString; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return emptyStringIfNotString; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return removeLineBreaks; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return forceMaxLength; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return removeLeadingAndTrailingWhitespace; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return validFloatingPointNumber; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return normalizePrecision; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return composeSanitizers; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);

var removeLineBreaksRegex = /(\r\n|\n|\r)/gm;
var validFloatingPointNumberRegex = /^-?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?$/;
var numberToString = function (value) {
    return _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* assert */ "a"].isNumber(value) && isFinite(value) ? value.toString() : value;
};
var emptyStringIfNotString = function (value) {
    return _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* assert */ "a"].isString(value) ? value : '';
};
var removeLineBreaks = function (value) {
    return value.replace(removeLineBreaksRegex, '');
};
var forceMaxLength = function (maxLength) { return function (value) { return (maxLength ? value.substr(0, maxLength) : value); }; };
var removeLeadingAndTrailingWhitespace = function (value) {
    return value.trim();
};
var validFloatingPointNumber = function (value) {
    return validFloatingPointNumberRegex.test(value) ? value : '';
};
var normalizePrecision = function (step) { return function (value) {
    if (!value || !value.length || !step) {
        return value;
    }
    var normalizedStep = Number((Math.log(1 / step) / Math.log(10)).toFixed());
    return Number(value).toFixed(normalizedStep);
}; };
var composeSanitizers = function (sanitizers) { return function (value) { return sanitizers.reduce(function (_value, sanitizer) { return sanitizer(_value); }, value); }; };


/***/ }),
/* 20 */
/*!********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js ***!
  \********************************************************************************************************************************/
/*! exports provided: clickPropsSDKFactoryWithUpdatePlatformHandler, clickPropsSDKFactory */
/*! exports used: clickPropsSDKFactory, clickPropsSDKFactoryWithUpdatePlatformHandler */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return clickPropsSDKFactoryWithUpdatePlatformHandler; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clickPropsSDKFactory; });
/* harmony import */ var _corvidEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../corvidEvents */ 13);
var __assign = (undefined && undefined.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};

var clickPropsSDKFactoryWithUpdatePlatformHandler = function (api) {
    var clickPropsApi = clickPropsSDKFactory(api);
    var setProps = api.setProps, props = api.props;
    return __assign(__assign({}, clickPropsApi), { onClick: function (handler) {
            clickPropsApi.onClick(handler);
            if (!props.hasPlatformClickHandler) {
                setProps({
                    hasPlatformClickHandler: true,
                });
            }
        } });
};
var clickPropsSDKFactory = function (api) { return ({
    onClick: function (handler) { return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidMouseEvent */ "c"])('onClick', api, handler); },
    onDblClick: function (handler) { return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidMouseEvent */ "c"])('onDblClick', api, handler); },
}); };
//# sourceMappingURL=clickPropsSDKFactory.js.map

/***/ }),
/* 21 */
/*!*****************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/mediaSrcHandler.js ***!
  \*****************************************************************************************************************/
/*! exports provided: isValidMediaSrc, createMediaSrc, parseMediaSrc, errors, types */
/*! exports used: createMediaSrc, isValidMediaSrc, parseMediaSrc */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isValidMediaSrc; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createMediaSrc; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return parseMediaSrc; });
/* harmony import */ var _mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mediaItemUtils */ 5);
/* harmony import */ var _mediaItemUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mediaItemUtils */ 26);
var _a;


var matchers = {
    externalUrl: /(^https?)|(^data)|(^blob)|(^\/\/)/,
    inlineSvg: /<svg[\s\S]*>[\s\S]*<\/svg>/im,
};
var extraMatchersByType = (_a = {},
    _a[_mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VECTOR] = [matchers.externalUrl, matchers.inlineSvg],
    _a[_mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].IMAGE] = [matchers.externalUrl],
    _a[_mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].DOCUMENT] = [],
    _a[_mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VIDEO] = [],
    _a[_mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].AUDIO] = [matchers.externalUrl],
    _a);
/**
 * Create a MediaItem in the form of 'wix:<media_type>:<uri>/...' or extra supported source(e.g., external url) of one of the supported type
 */
function createMediaSrc(_a) {
    var _b;
    var mediaId = _a.mediaId, type = _a.type, title = _a.title, width = _a.width, height = _a.height, posterId = _a.posterId, watermark = _a.watermark, duration = _a.duration;
    if ((_b = 
    // @ts-ignore
    extraMatchersByType[type]) === null || _b === void 0 ? void 0 : _b.some(function (matcher) { return matcher.test(mediaId); })) {
        return { item: mediaId };
    }
    return _mediaItemUtils__WEBPACK_IMPORTED_MODULE_1__[/* createMediaItemUri */ "a"]({
        mediaId: mediaId,
        type: type,
        title: title,
        width: width,
        height: height,
        posterId: posterId,
        watermark: watermark,
        duration: duration,
    });
}
/**
 * Parse a media item url of one of the supported types, including extra source type(e.g. external url)
 */
function parseMediaSrc(mediaItemSrc, type) {
    if (!Object.values(_mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"]).includes(type)) {
        return { error: _mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].unknown_media_type };
    }
    if (extraMatchersByType[type].some(function (matcher) { return matcher.test(mediaItemSrc); })) {
        return { type: type, mediaId: mediaItemSrc };
    }
    var mediaItemUri = _mediaItemUtils__WEBPACK_IMPORTED_MODULE_1__[/* parseMediaItemUri */ "c"](mediaItemSrc);
    if (mediaItemUri.error === _mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].non_string_media_id) {
        return mediaItemUri;
    }
    if (mediaItemUri.error === _mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].unknown_media_type ||
        type !== mediaItemUri.type) {
        return { error: _mediaItemUtils__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].bad_media_id };
    }
    return mediaItemUri;
}
/**
 * Checks if a given url is a valid media source url
 */
function isValidMediaSrc(mediaSrc, type) {
    var isValidMediaItemUri = _mediaItemUtils__WEBPACK_IMPORTED_MODULE_1__[/* isValidMediaItemUri */ "b"](mediaSrc, type);
    return (isValidMediaItemUri ||
        (extraMatchersByType[type] &&
            extraMatchersByType[type].some(function (matcher) { return matcher.test(mediaSrc); })));
}

//# sourceMappingURL=mediaSrcHandler.js.map

/***/ }),
/* 22 */
/*!***************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/lodash/lodash.js ***!
  \***************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */
;(function() {

  /** Used as a safe reference for `undefined` in pre-ES5 environments. */
  var undefined;

  /** Used as the semantic version number. */
  var VERSION = '4.17.20';

  /** Used as the size to enable large array optimizations. */
  var LARGE_ARRAY_SIZE = 200;

  /** Error message constants. */
  var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
      FUNC_ERROR_TEXT = 'Expected a function';

  /** Used to stand-in for `undefined` hash values. */
  var HASH_UNDEFINED = '__lodash_hash_undefined__';

  /** Used as the maximum memoize cache size. */
  var MAX_MEMOIZE_SIZE = 500;

  /** Used as the internal argument placeholder. */
  var PLACEHOLDER = '__lodash_placeholder__';

  /** Used to compose bitmasks for cloning. */
  var CLONE_DEEP_FLAG = 1,
      CLONE_FLAT_FLAG = 2,
      CLONE_SYMBOLS_FLAG = 4;

  /** Used to compose bitmasks for value comparisons. */
  var COMPARE_PARTIAL_FLAG = 1,
      COMPARE_UNORDERED_FLAG = 2;

  /** Used to compose bitmasks for function metadata. */
  var WRAP_BIND_FLAG = 1,
      WRAP_BIND_KEY_FLAG = 2,
      WRAP_CURRY_BOUND_FLAG = 4,
      WRAP_CURRY_FLAG = 8,
      WRAP_CURRY_RIGHT_FLAG = 16,
      WRAP_PARTIAL_FLAG = 32,
      WRAP_PARTIAL_RIGHT_FLAG = 64,
      WRAP_ARY_FLAG = 128,
      WRAP_REARG_FLAG = 256,
      WRAP_FLIP_FLAG = 512;

  /** Used as default options for `_.truncate`. */
  var DEFAULT_TRUNC_LENGTH = 30,
      DEFAULT_TRUNC_OMISSION = '...';

  /** Used to detect hot functions by number of calls within a span of milliseconds. */
  var HOT_COUNT = 800,
      HOT_SPAN = 16;

  /** Used to indicate the type of lazy iteratees. */
  var LAZY_FILTER_FLAG = 1,
      LAZY_MAP_FLAG = 2,
      LAZY_WHILE_FLAG = 3;

  /** Used as references for various `Number` constants. */
  var INFINITY = 1 / 0,
      MAX_SAFE_INTEGER = 9007199254740991,
      MAX_INTEGER = 1.7976931348623157e+308,
      NAN = 0 / 0;

  /** Used as references for the maximum length and index of an array. */
  var MAX_ARRAY_LENGTH = 4294967295,
      MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
      HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;

  /** Used to associate wrap methods with their bit flags. */
  var wrapFlags = [
    ['ary', WRAP_ARY_FLAG],
    ['bind', WRAP_BIND_FLAG],
    ['bindKey', WRAP_BIND_KEY_FLAG],
    ['curry', WRAP_CURRY_FLAG],
    ['curryRight', WRAP_CURRY_RIGHT_FLAG],
    ['flip', WRAP_FLIP_FLAG],
    ['partial', WRAP_PARTIAL_FLAG],
    ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
    ['rearg', WRAP_REARG_FLAG]
  ];

  /** `Object#toString` result references. */
  var argsTag = '[object Arguments]',
      arrayTag = '[object Array]',
      asyncTag = '[object AsyncFunction]',
      boolTag = '[object Boolean]',
      dateTag = '[object Date]',
      domExcTag = '[object DOMException]',
      errorTag = '[object Error]',
      funcTag = '[object Function]',
      genTag = '[object GeneratorFunction]',
      mapTag = '[object Map]',
      numberTag = '[object Number]',
      nullTag = '[object Null]',
      objectTag = '[object Object]',
      promiseTag = '[object Promise]',
      proxyTag = '[object Proxy]',
      regexpTag = '[object RegExp]',
      setTag = '[object Set]',
      stringTag = '[object String]',
      symbolTag = '[object Symbol]',
      undefinedTag = '[object Undefined]',
      weakMapTag = '[object WeakMap]',
      weakSetTag = '[object WeakSet]';

  var arrayBufferTag = '[object ArrayBuffer]',
      dataViewTag = '[object DataView]',
      float32Tag = '[object Float32Array]',
      float64Tag = '[object Float64Array]',
      int8Tag = '[object Int8Array]',
      int16Tag = '[object Int16Array]',
      int32Tag = '[object Int32Array]',
      uint8Tag = '[object Uint8Array]',
      uint8ClampedTag = '[object Uint8ClampedArray]',
      uint16Tag = '[object Uint16Array]',
      uint32Tag = '[object Uint32Array]';

  /** Used to match empty string literals in compiled template source. */
  var reEmptyStringLeading = /\b__p \+= '';/g,
      reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
      reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;

  /** Used to match HTML entities and HTML characters. */
  var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
      reUnescapedHtml = /[&<>"']/g,
      reHasEscapedHtml = RegExp(reEscapedHtml.source),
      reHasUnescapedHtml = RegExp(reUnescapedHtml.source);

  /** Used to match template delimiters. */
  var reEscape = /<%-([\s\S]+?)%>/g,
      reEvaluate = /<%([\s\S]+?)%>/g,
      reInterpolate = /<%=([\s\S]+?)%>/g;

  /** Used to match property names within property paths. */
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
      reIsPlainProp = /^\w*$/,
      rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

  /**
   * Used to match `RegExp`
   * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
   */
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
      reHasRegExpChar = RegExp(reRegExpChar.source);

  /** Used to match leading and trailing whitespace. */
  var reTrim = /^\s+|\s+$/g,
      reTrimStart = /^\s+/,
      reTrimEnd = /\s+$/;

  /** Used to match wrap detail comments. */
  var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
      reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
      reSplitDetails = /,? & /;

  /** Used to match words composed of alphanumeric characters. */
  var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;

  /** Used to match backslashes in property paths. */
  var reEscapeChar = /\\(\\)?/g;

  /**
   * Used to match
   * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
   */
  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;

  /** Used to match `RegExp` flags from their coerced string values. */
  var reFlags = /\w*$/;

  /** Used to detect bad signed hexadecimal string values. */
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

  /** Used to detect binary string values. */
  var reIsBinary = /^0b[01]+$/i;

  /** Used to detect host constructors (Safari). */
  var reIsHostCtor = /^\[object .+?Constructor\]$/;

  /** Used to detect octal string values. */
  var reIsOctal = /^0o[0-7]+$/i;

  /** Used to detect unsigned integer values. */
  var reIsUint = /^(?:0|[1-9]\d*)$/;

  /** Used to match Latin Unicode letters (excluding mathematical operators). */
  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;

  /** Used to ensure capturing order of template delimiters. */
  var reNoMatch = /($^)/;

  /** Used to match unescaped characters in compiled string literals. */
  var reUnescapedString = /['\n\r\u2028\u2029\\]/g;

  /** Used to compose unicode character classes. */
  var rsAstralRange = '\\ud800-\\udfff',
      rsComboMarksRange = '\\u0300-\\u036f',
      reComboHalfMarksRange = '\\ufe20-\\ufe2f',
      rsComboSymbolsRange = '\\u20d0-\\u20ff',
      rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
      rsDingbatRange = '\\u2700-\\u27bf',
      rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
      rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
      rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
      rsPunctuationRange = '\\u2000-\\u206f',
      rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
      rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
      rsVarRange = '\\ufe0e\\ufe0f',
      rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;

  /** Used to compose unicode capture groups. */
  var rsApos = "['\u2019]",
      rsAstral = '[' + rsAstralRange + ']',
      rsBreak = '[' + rsBreakRange + ']',
      rsCombo = '[' + rsComboRange + ']',
      rsDigits = '\\d+',
      rsDingbat = '[' + rsDingbatRange + ']',
      rsLower = '[' + rsLowerRange + ']',
      rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
      rsFitz = '\\ud83c[\\udffb-\\udfff]',
      rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
      rsNonAstral = '[^' + rsAstralRange + ']',
      rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
      rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
      rsUpper = '[' + rsUpperRange + ']',
      rsZWJ = '\\u200d';

  /** Used to compose unicode regexes. */
  var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
      rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
      rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
      rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
      reOptMod = rsModifier + '?',
      rsOptVar = '[' + rsVarRange + ']?',
      rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
      rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
      rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
      rsSeq = rsOptVar + reOptMod + rsOptJoin,
      rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
      rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';

  /** Used to match apostrophes. */
  var reApos = RegExp(rsApos, 'g');

  /**
   * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
   * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
   */
  var reComboMark = RegExp(rsCombo, 'g');

  /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');

  /** Used to match complex or compound words. */
  var reUnicodeWord = RegExp([
    rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
    rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
    rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
    rsUpper + '+' + rsOptContrUpper,
    rsOrdUpper,
    rsOrdLower,
    rsDigits,
    rsEmoji
  ].join('|'), 'g');

  /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange  + rsComboRange + rsVarRange + ']');

  /** Used to detect strings that need a more robust regexp to match words. */
  var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;

  /** Used to assign default `context` object properties. */
  var contextProps = [
    'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
    'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
    'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
    'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
    '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
  ];

  /** Used to make template sourceURLs easier to identify. */
  var templateCounter = -1;

  /** Used to identify `toStringTag` values of typed arrays. */
  var typedArrayTags = {};
  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  typedArrayTags[uint32Tag] = true;
  typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  typedArrayTags[setTag] = typedArrayTags[stringTag] =
  typedArrayTags[weakMapTag] = false;

  /** Used to identify `toStringTag` values supported by `_.clone`. */
  var cloneableTags = {};
  cloneableTags[argsTag] = cloneableTags[arrayTag] =
  cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  cloneableTags[boolTag] = cloneableTags[dateTag] =
  cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  cloneableTags[int32Tag] = cloneableTags[mapTag] =
  cloneableTags[numberTag] = cloneableTags[objectTag] =
  cloneableTags[regexpTag] = cloneableTags[setTag] =
  cloneableTags[stringTag] = cloneableTags[symbolTag] =
  cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  cloneableTags[errorTag] = cloneableTags[funcTag] =
  cloneableTags[weakMapTag] = false;

  /** Used to map Latin Unicode letters to basic Latin letters. */
  var deburredLetters = {
    // Latin-1 Supplement block.
    '\xc0': 'A',  '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
    '\xe0': 'a',  '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
    '\xc7': 'C',  '\xe7': 'c',
    '\xd0': 'D',  '\xf0': 'd',
    '\xc8': 'E',  '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
    '\xe8': 'e',  '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
    '\xcc': 'I',  '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
    '\xec': 'i',  '\xed': 'i', '\xee': 'i', '\xef': 'i',
    '\xd1': 'N',  '\xf1': 'n',
    '\xd2': 'O',  '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
    '\xf2': 'o',  '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
    '\xd9': 'U',  '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
    '\xf9': 'u',  '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
    '\xdd': 'Y',  '\xfd': 'y', '\xff': 'y',
    '\xc6': 'Ae', '\xe6': 'ae',
    '\xde': 'Th', '\xfe': 'th',
    '\xdf': 'ss',
    // Latin Extended-A block.
    '\u0100': 'A',  '\u0102': 'A', '\u0104': 'A',
    '\u0101': 'a',  '\u0103': 'a', '\u0105': 'a',
    '\u0106': 'C',  '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
    '\u0107': 'c',  '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
    '\u010e': 'D',  '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
    '\u0112': 'E',  '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
    '\u0113': 'e',  '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
    '\u011c': 'G',  '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
    '\u011d': 'g',  '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
    '\u0124': 'H',  '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
    '\u0128': 'I',  '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
    '\u0129': 'i',  '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
    '\u0134': 'J',  '\u0135': 'j',
    '\u0136': 'K',  '\u0137': 'k', '\u0138': 'k',
    '\u0139': 'L',  '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
    '\u013a': 'l',  '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
    '\u0143': 'N',  '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
    '\u0144': 'n',  '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
    '\u014c': 'O',  '\u014e': 'O', '\u0150': 'O',
    '\u014d': 'o',  '\u014f': 'o', '\u0151': 'o',
    '\u0154': 'R',  '\u0156': 'R', '\u0158': 'R',
    '\u0155': 'r',  '\u0157': 'r', '\u0159': 'r',
    '\u015a': 'S',  '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
    '\u015b': 's',  '\u015d': 's', '\u015f': 's', '\u0161': 's',
    '\u0162': 'T',  '\u0164': 'T', '\u0166': 'T',
    '\u0163': 't',  '\u0165': 't', '\u0167': 't',
    '\u0168': 'U',  '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
    '\u0169': 'u',  '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
    '\u0174': 'W',  '\u0175': 'w',
    '\u0176': 'Y',  '\u0177': 'y', '\u0178': 'Y',
    '\u0179': 'Z',  '\u017b': 'Z', '\u017d': 'Z',
    '\u017a': 'z',  '\u017c': 'z', '\u017e': 'z',
    '\u0132': 'IJ', '\u0133': 'ij',
    '\u0152': 'Oe', '\u0153': 'oe',
    '\u0149': "'n", '\u017f': 's'
  };

  /** Used to map characters to HTML entities. */
  var htmlEscapes = {
    '&': '&amp;',
    '<': '&lt;',
    '>': '&gt;',
    '"': '&quot;',
    "'": '&#39;'
  };

  /** Used to map HTML entities to characters. */
  var htmlUnescapes = {
    '&amp;': '&',
    '&lt;': '<',
    '&gt;': '>',
    '&quot;': '"',
    '&#39;': "'"
  };

  /** Used to escape characters for inclusion in compiled string literals. */
  var stringEscapes = {
    '\\': '\\',
    "'": "'",
    '\n': 'n',
    '\r': 'r',
    '\u2028': 'u2028',
    '\u2029': 'u2029'
  };

  /** Built-in method references without a dependency on `root`. */
  var freeParseFloat = parseFloat,
      freeParseInt = parseInt;

  /** Detect free variable `global` from Node.js. */
  var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

  /** Detect free variable `self`. */
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

  /** Used as a reference to the global object. */
  var root = freeGlobal || freeSelf || Function('return this')();

  /** Detect free variable `exports`. */
  var freeExports =  true && exports && !exports.nodeType && exports;

  /** Detect free variable `module`. */
  var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

  /** Detect the popular CommonJS extension `module.exports`. */
  var moduleExports = freeModule && freeModule.exports === freeExports;

  /** Detect free variable `process` from Node.js. */
  var freeProcess = moduleExports && freeGlobal.process;

  /** Used to access faster Node.js helpers. */
  var nodeUtil = (function() {
    try {
      // Use `util.types` for Node.js 10+.
      var types = freeModule && freeModule.require && freeModule.require('util').types;

      if (types) {
        return types;
      }

      // Legacy `process.binding('util')` for Node.js < 10.
      return freeProcess && freeProcess.binding && freeProcess.binding('util');
    } catch (e) {}
  }());

  /* Node.js helper references. */
  var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
      nodeIsDate = nodeUtil && nodeUtil.isDate,
      nodeIsMap = nodeUtil && nodeUtil.isMap,
      nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
      nodeIsSet = nodeUtil && nodeUtil.isSet,
      nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

  /*--------------------------------------------------------------------------*/

  /**
   * A faster alternative to `Function#apply`, this function invokes `func`
   * with the `this` binding of `thisArg` and the arguments of `args`.
   *
   * @private
   * @param {Function} func The function to invoke.
   * @param {*} thisArg The `this` binding of `func`.
   * @param {Array} args The arguments to invoke `func` with.
   * @returns {*} Returns the result of `func`.
   */
  function apply(func, thisArg, args) {
    switch (args.length) {
      case 0: return func.call(thisArg);
      case 1: return func.call(thisArg, args[0]);
      case 2: return func.call(thisArg, args[0], args[1]);
      case 3: return func.call(thisArg, args[0], args[1], args[2]);
    }
    return func.apply(thisArg, args);
  }

  /**
   * A specialized version of `baseAggregator` for arrays.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} setter The function to set `accumulator` values.
   * @param {Function} iteratee The iteratee to transform keys.
   * @param {Object} accumulator The initial aggregated object.
   * @returns {Function} Returns `accumulator`.
   */
  function arrayAggregator(array, setter, iteratee, accumulator) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      var value = array[index];
      setter(accumulator, value, iteratee(value), array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.forEach` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */
  function arrayEach(array, iteratee) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (iteratee(array[index], index, array) === false) {
        break;
      }
    }
    return array;
  }

  /**
   * A specialized version of `_.forEachRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */
  function arrayEachRight(array, iteratee) {
    var length = array == null ? 0 : array.length;

    while (length--) {
      if (iteratee(array[length], length, array) === false) {
        break;
      }
    }
    return array;
  }

  /**
   * A specialized version of `_.every` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if all elements pass the predicate check,
   *  else `false`.
   */
  function arrayEvery(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (!predicate(array[index], index, array)) {
        return false;
      }
    }
    return true;
  }

  /**
   * A specialized version of `_.filter` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {Array} Returns the new filtered array.
   */
  function arrayFilter(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length,
        resIndex = 0,
        result = [];

    while (++index < length) {
      var value = array[index];
      if (predicate(value, index, array)) {
        result[resIndex++] = value;
      }
    }
    return result;
  }

  /**
   * A specialized version of `_.includes` for arrays without support for
   * specifying an index to search from.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */
  function arrayIncludes(array, value) {
    var length = array == null ? 0 : array.length;
    return !!length && baseIndexOf(array, value, 0) > -1;
  }

  /**
   * This function is like `arrayIncludes` except that it accepts a comparator.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */
  function arrayIncludesWith(array, value, comparator) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (comparator(value, array[index])) {
        return true;
      }
    }
    return false;
  }

  /**
   * A specialized version of `_.map` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the new mapped array.
   */
  function arrayMap(array, iteratee) {
    var index = -1,
        length = array == null ? 0 : array.length,
        result = Array(length);

    while (++index < length) {
      result[index] = iteratee(array[index], index, array);
    }
    return result;
  }

  /**
   * Appends the elements of `values` to `array`.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {Array} values The values to append.
   * @returns {Array} Returns `array`.
   */
  function arrayPush(array, values) {
    var index = -1,
        length = values.length,
        offset = array.length;

    while (++index < length) {
      array[offset + index] = values[index];
    }
    return array;
  }

  /**
   * A specialized version of `_.reduce` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the first element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */
  function arrayReduce(array, iteratee, accumulator, initAccum) {
    var index = -1,
        length = array == null ? 0 : array.length;

    if (initAccum && length) {
      accumulator = array[++index];
    }
    while (++index < length) {
      accumulator = iteratee(accumulator, array[index], index, array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.reduceRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the last element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */
  function arrayReduceRight(array, iteratee, accumulator, initAccum) {
    var length = array == null ? 0 : array.length;
    if (initAccum && length) {
      accumulator = array[--length];
    }
    while (length--) {
      accumulator = iteratee(accumulator, array[length], length, array);
    }
    return accumulator;
  }

  /**
   * A specialized version of `_.some` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if any element passes the predicate check,
   *  else `false`.
   */
  function arraySome(array, predicate) {
    var index = -1,
        length = array == null ? 0 : array.length;

    while (++index < length) {
      if (predicate(array[index], index, array)) {
        return true;
      }
    }
    return false;
  }

  /**
   * Gets the size of an ASCII `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
  var asciiSize = baseProperty('length');

  /**
   * Converts an ASCII `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function asciiToArray(string) {
    return string.split('');
  }

  /**
   * Splits an ASCII `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */
  function asciiWords(string) {
    return string.match(reAsciiWord) || [];
  }

  /**
   * The base implementation of methods like `_.findKey` and `_.findLastKey`,
   * without support for iteratee shorthands, which iterates over `collection`
   * using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the found element or its key, else `undefined`.
   */
  function baseFindKey(collection, predicate, eachFunc) {
    var result;
    eachFunc(collection, function(value, key, collection) {
      if (predicate(value, key, collection)) {
        result = key;
        return false;
      }
    });
    return result;
  }

  /**
   * The base implementation of `_.findIndex` and `_.findLastIndex` without
   * support for iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {number} fromIndex The index to search from.
   * @param {boolean} [fromRight] Specify iterating from right to left.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseFindIndex(array, predicate, fromIndex, fromRight) {
    var length = array.length,
        index = fromIndex + (fromRight ? 1 : -1);

    while ((fromRight ? index-- : ++index < length)) {
      if (predicate(array[index], index, array)) {
        return index;
      }
    }
    return -1;
  }

  /**
   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseIndexOf(array, value, fromIndex) {
    return value === value
      ? strictIndexOf(array, value, fromIndex)
      : baseFindIndex(array, baseIsNaN, fromIndex);
  }

  /**
   * This function is like `baseIndexOf` except that it accepts a comparator.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function baseIndexOfWith(array, value, fromIndex, comparator) {
    var index = fromIndex - 1,
        length = array.length;

    while (++index < length) {
      if (comparator(array[index], value)) {
        return index;
      }
    }
    return -1;
  }

  /**
   * The base implementation of `_.isNaN` without support for number objects.
   *
   * @private
   * @param {*} value The value to check.
   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
   */
  function baseIsNaN(value) {
    return value !== value;
  }

  /**
   * The base implementation of `_.mean` and `_.meanBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the mean.
   */
  function baseMean(array, iteratee) {
    var length = array == null ? 0 : array.length;
    return length ? (baseSum(array, iteratee) / length) : NAN;
  }

  /**
   * The base implementation of `_.property` without support for deep paths.
   *
   * @private
   * @param {string} key The key of the property to get.
   * @returns {Function} Returns the new accessor function.
   */
  function baseProperty(key) {
    return function(object) {
      return object == null ? undefined : object[key];
    };
  }

  /**
   * The base implementation of `_.propertyOf` without support for deep paths.
   *
   * @private
   * @param {Object} object The object to query.
   * @returns {Function} Returns the new accessor function.
   */
  function basePropertyOf(object) {
    return function(key) {
      return object == null ? undefined : object[key];
    };
  }

  /**
   * The base implementation of `_.reduce` and `_.reduceRight`, without support
   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} accumulator The initial value.
   * @param {boolean} initAccum Specify using the first or last element of
   *  `collection` as the initial value.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the accumulated value.
   */
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
    eachFunc(collection, function(value, index, collection) {
      accumulator = initAccum
        ? (initAccum = false, value)
        : iteratee(accumulator, value, index, collection);
    });
    return accumulator;
  }

  /**
   * The base implementation of `_.sortBy` which uses `comparer` to define the
   * sort order of `array` and replaces criteria objects with their corresponding
   * values.
   *
   * @private
   * @param {Array} array The array to sort.
   * @param {Function} comparer The function to define sort order.
   * @returns {Array} Returns `array`.
   */
  function baseSortBy(array, comparer) {
    var length = array.length;

    array.sort(comparer);
    while (length--) {
      array[length] = array[length].value;
    }
    return array;
  }

  /**
   * The base implementation of `_.sum` and `_.sumBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the sum.
   */
  function baseSum(array, iteratee) {
    var result,
        index = -1,
        length = array.length;

    while (++index < length) {
      var current = iteratee(array[index]);
      if (current !== undefined) {
        result = result === undefined ? current : (result + current);
      }
    }
    return result;
  }

  /**
   * The base implementation of `_.times` without support for iteratee shorthands
   * or max array length checks.
   *
   * @private
   * @param {number} n The number of times to invoke `iteratee`.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the array of results.
   */
  function baseTimes(n, iteratee) {
    var index = -1,
        result = Array(n);

    while (++index < n) {
      result[index] = iteratee(index);
    }
    return result;
  }

  /**
   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
   * of key-value pairs for `object` corresponding to the property names of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the key-value pairs.
   */
  function baseToPairs(object, props) {
    return arrayMap(props, function(key) {
      return [key, object[key]];
    });
  }

  /**
   * The base implementation of `_.unary` without support for storing metadata.
   *
   * @private
   * @param {Function} func The function to cap arguments for.
   * @returns {Function} Returns the new capped function.
   */
  function baseUnary(func) {
    return function(value) {
      return func(value);
    };
  }

  /**
   * The base implementation of `_.values` and `_.valuesIn` which creates an
   * array of `object` property values corresponding to the property names
   * of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the array of property values.
   */
  function baseValues(object, props) {
    return arrayMap(props, function(key) {
      return object[key];
    });
  }

  /**
   * Checks if a `cache` value for `key` exists.
   *
   * @private
   * @param {Object} cache The cache to query.
   * @param {string} key The key of the entry to check.
   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
   */
  function cacheHas(cache, key) {
    return cache.has(key);
  }

  /**
   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the first unmatched string symbol.
   */
  function charsStartIndex(strSymbols, chrSymbols) {
    var index = -1,
        length = strSymbols.length;

    while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
    return index;
  }

  /**
   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the last unmatched string symbol.
   */
  function charsEndIndex(strSymbols, chrSymbols) {
    var index = strSymbols.length;

    while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
    return index;
  }

  /**
   * Gets the number of `placeholder` occurrences in `array`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} placeholder The placeholder to search for.
   * @returns {number} Returns the placeholder count.
   */
  function countHolders(array, placeholder) {
    var length = array.length,
        result = 0;

    while (length--) {
      if (array[length] === placeholder) {
        ++result;
      }
    }
    return result;
  }

  /**
   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
   * letters to basic Latin letters.
   *
   * @private
   * @param {string} letter The matched letter to deburr.
   * @returns {string} Returns the deburred letter.
   */
  var deburrLetter = basePropertyOf(deburredLetters);

  /**
   * Used by `_.escape` to convert characters to HTML entities.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
  var escapeHtmlChar = basePropertyOf(htmlEscapes);

  /**
   * Used by `_.template` to escape characters for inclusion in compiled string literals.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */
  function escapeStringChar(chr) {
    return '\\' + stringEscapes[chr];
  }

  /**
   * Gets the value at `key` of `object`.
   *
   * @private
   * @param {Object} [object] The object to query.
   * @param {string} key The key of the property to get.
   * @returns {*} Returns the property value.
   */
  function getValue(object, key) {
    return object == null ? undefined : object[key];
  }

  /**
   * Checks if `string` contains Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a symbol is found, else `false`.
   */
  function hasUnicode(string) {
    return reHasUnicode.test(string);
  }

  /**
   * Checks if `string` contains a word composed of Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a word is found, else `false`.
   */
  function hasUnicodeWord(string) {
    return reHasUnicodeWord.test(string);
  }

  /**
   * Converts `iterator` to an array.
   *
   * @private
   * @param {Object} iterator The iterator to convert.
   * @returns {Array} Returns the converted array.
   */
  function iteratorToArray(iterator) {
    var data,
        result = [];

    while (!(data = iterator.next()).done) {
      result.push(data.value);
    }
    return result;
  }

  /**
   * Converts `map` to its key-value pairs.
   *
   * @private
   * @param {Object} map The map to convert.
   * @returns {Array} Returns the key-value pairs.
   */
  function mapToArray(map) {
    var index = -1,
        result = Array(map.size);

    map.forEach(function(value, key) {
      result[++index] = [key, value];
    });
    return result;
  }

  /**
   * Creates a unary function that invokes `func` with its argument transformed.
   *
   * @private
   * @param {Function} func The function to wrap.
   * @param {Function} transform The argument transform.
   * @returns {Function} Returns the new function.
   */
  function overArg(func, transform) {
    return function(arg) {
      return func(transform(arg));
    };
  }

  /**
   * Replaces all `placeholder` elements in `array` with an internal placeholder
   * and returns an array of their indexes.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {*} placeholder The placeholder to replace.
   * @returns {Array} Returns the new array of placeholder indexes.
   */
  function replaceHolders(array, placeholder) {
    var index = -1,
        length = array.length,
        resIndex = 0,
        result = [];

    while (++index < length) {
      var value = array[index];
      if (value === placeholder || value === PLACEHOLDER) {
        array[index] = PLACEHOLDER;
        result[resIndex++] = index;
      }
    }
    return result;
  }

  /**
   * Converts `set` to an array of its values.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the values.
   */
  function setToArray(set) {
    var index = -1,
        result = Array(set.size);

    set.forEach(function(value) {
      result[++index] = value;
    });
    return result;
  }

  /**
   * Converts `set` to its value-value pairs.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the value-value pairs.
   */
  function setToPairs(set) {
    var index = -1,
        result = Array(set.size);

    set.forEach(function(value) {
      result[++index] = [value, value];
    });
    return result;
  }

  /**
   * A specialized version of `_.indexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function strictIndexOf(array, value, fromIndex) {
    var index = fromIndex - 1,
        length = array.length;

    while (++index < length) {
      if (array[index] === value) {
        return index;
      }
    }
    return -1;
  }

  /**
   * A specialized version of `_.lastIndexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */
  function strictLastIndexOf(array, value, fromIndex) {
    var index = fromIndex + 1;
    while (index--) {
      if (array[index] === value) {
        return index;
      }
    }
    return index;
  }

  /**
   * Gets the number of symbols in `string`.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {number} Returns the string size.
   */
  function stringSize(string) {
    return hasUnicode(string)
      ? unicodeSize(string)
      : asciiSize(string);
  }

  /**
   * Converts `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function stringToArray(string) {
    return hasUnicode(string)
      ? unicodeToArray(string)
      : asciiToArray(string);
  }

  /**
   * Used by `_.unescape` to convert HTML entities to characters.
   *
   * @private
   * @param {string} chr The matched character to unescape.
   * @returns {string} Returns the unescaped character.
   */
  var unescapeHtmlChar = basePropertyOf(htmlUnescapes);

  /**
   * Gets the size of a Unicode `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */
  function unicodeSize(string) {
    var result = reUnicode.lastIndex = 0;
    while (reUnicode.test(string)) {
      ++result;
    }
    return result;
  }

  /**
   * Converts a Unicode `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */
  function unicodeToArray(string) {
    return string.match(reUnicode) || [];
  }

  /**
   * Splits a Unicode `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */
  function unicodeWords(string) {
    return string.match(reUnicodeWord) || [];
  }

  /*--------------------------------------------------------------------------*/

  /**
   * Create a new pristine `lodash` function using the `context` object.
   *
   * @static
   * @memberOf _
   * @since 1.1.0
   * @category Util
   * @param {Object} [context=root] The context object.
   * @returns {Function} Returns a new `lodash` function.
   * @example
   *
   * _.mixin({ 'foo': _.constant('foo') });
   *
   * var lodash = _.runInContext();
   * lodash.mixin({ 'bar': lodash.constant('bar') });
   *
   * _.isFunction(_.foo);
   * // => true
   * _.isFunction(_.bar);
   * // => false
   *
   * lodash.isFunction(lodash.foo);
   * // => false
   * lodash.isFunction(lodash.bar);
   * // => true
   *
   * // Create a suped-up `defer` in Node.js.
   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
   */
  var runInContext = (function runInContext(context) {
    context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));

    /** Built-in constructor references. */
    var Array = context.Array,
        Date = context.Date,
        Error = context.Error,
        Function = context.Function,
        Math = context.Math,
        Object = context.Object,
        RegExp = context.RegExp,
        String = context.String,
        TypeError = context.TypeError;

    /** Used for built-in method references. */
    var arrayProto = Array.prototype,
        funcProto = Function.prototype,
        objectProto = Object.prototype;

    /** Used to detect overreaching core-js shims. */
    var coreJsData = context['__core-js_shared__'];

    /** Used to resolve the decompiled source of functions. */
    var funcToString = funcProto.toString;

    /** Used to check objects for own properties. */
    var hasOwnProperty = objectProto.hasOwnProperty;

    /** Used to generate unique IDs. */
    var idCounter = 0;

    /** Used to detect methods masquerading as native. */
    var maskSrcKey = (function() {
      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
      return uid ? ('Symbol(src)_1.' + uid) : '';
    }());

    /**
     * Used to resolve the
     * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
     * of values.
     */
    var nativeObjectToString = objectProto.toString;

    /** Used to infer the `Object` constructor. */
    var objectCtorString = funcToString.call(Object);

    /** Used to restore the original `_` reference in `_.noConflict`. */
    var oldDash = root._;

    /** Used to detect if a method is native. */
    var reIsNative = RegExp('^' +
      funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
      .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
    );

    /** Built-in value references. */
    var Buffer = moduleExports ? context.Buffer : undefined,
        Symbol = context.Symbol,
        Uint8Array = context.Uint8Array,
        allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
        getPrototype = overArg(Object.getPrototypeOf, Object),
        objectCreate = Object.create,
        propertyIsEnumerable = objectProto.propertyIsEnumerable,
        splice = arrayProto.splice,
        spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
        symIterator = Symbol ? Symbol.iterator : undefined,
        symToStringTag = Symbol ? Symbol.toStringTag : undefined;

    var defineProperty = (function() {
      try {
        var func = getNative(Object, 'defineProperty');
        func({}, '', {});
        return func;
      } catch (e) {}
    }());

    /** Mocked built-ins. */
    var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
        ctxNow = Date && Date.now !== root.Date.now && Date.now,
        ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;

    /* Built-in method references for those with the same name as other `lodash` methods. */
    var nativeCeil = Math.ceil,
        nativeFloor = Math.floor,
        nativeGetSymbols = Object.getOwnPropertySymbols,
        nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
        nativeIsFinite = context.isFinite,
        nativeJoin = arrayProto.join,
        nativeKeys = overArg(Object.keys, Object),
        nativeMax = Math.max,
        nativeMin = Math.min,
        nativeNow = Date.now,
        nativeParseInt = context.parseInt,
        nativeRandom = Math.random,
        nativeReverse = arrayProto.reverse;

    /* Built-in method references that are verified to be native. */
    var DataView = getNative(context, 'DataView'),
        Map = getNative(context, 'Map'),
        Promise = getNative(context, 'Promise'),
        Set = getNative(context, 'Set'),
        WeakMap = getNative(context, 'WeakMap'),
        nativeCreate = getNative(Object, 'create');

    /** Used to store function metadata. */
    var metaMap = WeakMap && new WeakMap;

    /** Used to lookup unminified function names. */
    var realNames = {};

    /** Used to detect maps, sets, and weakmaps. */
    var dataViewCtorString = toSource(DataView),
        mapCtorString = toSource(Map),
        promiseCtorString = toSource(Promise),
        setCtorString = toSource(Set),
        weakMapCtorString = toSource(WeakMap);

    /** Used to convert symbols to primitives and strings. */
    var symbolProto = Symbol ? Symbol.prototype : undefined,
        symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
        symbolToString = symbolProto ? symbolProto.toString : undefined;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a `lodash` object which wraps `value` to enable implicit method
     * chain sequences. Methods that operate on and return arrays, collections,
     * and functions can be chained together. Methods that retrieve a single value
     * or may return a primitive value will automatically end the chain sequence
     * and return the unwrapped value. Otherwise, the value must be unwrapped
     * with `_#value`.
     *
     * Explicit chain sequences, which must be unwrapped with `_#value`, may be
     * enabled using `_.chain`.
     *
     * The execution of chained methods is lazy, that is, it's deferred until
     * `_#value` is implicitly or explicitly called.
     *
     * Lazy evaluation allows several methods to support shortcut fusion.
     * Shortcut fusion is an optimization to merge iteratee calls; this avoids
     * the creation of intermediate arrays and can greatly reduce the number of
     * iteratee executions. Sections of a chain sequence qualify for shortcut
     * fusion if the section is applied to an array and iteratees accept only
     * one argument. The heuristic for whether a section qualifies for shortcut
     * fusion is subject to change.
     *
     * Chaining is supported in custom builds as long as the `_#value` method is
     * directly or indirectly included in the build.
     *
     * In addition to lodash methods, wrappers have `Array` and `String` methods.
     *
     * The wrapper `Array` methods are:
     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
     *
     * The wrapper `String` methods are:
     * `replace` and `split`
     *
     * The wrapper methods that support shortcut fusion are:
     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
     *
     * The chainable wrapper methods are:
     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
     * `zipObject`, `zipObjectDeep`, and `zipWith`
     *
     * The wrapper methods that are **not** chainable by default are:
     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
     * `upperFirst`, `value`, and `words`
     *
     * @name _
     * @constructor
     * @category Seq
     * @param {*} value The value to wrap in a `lodash` instance.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2, 3]);
     *
     * // Returns an unwrapped value.
     * wrapped.reduce(_.add);
     * // => 6
     *
     * // Returns a wrapped value.
     * var squares = wrapped.map(square);
     *
     * _.isArray(squares);
     * // => false
     *
     * _.isArray(squares.value());
     * // => true
     */
    function lodash(value) {
      if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
        if (value instanceof LodashWrapper) {
          return value;
        }
        if (hasOwnProperty.call(value, '__wrapped__')) {
          return wrapperClone(value);
        }
      }
      return new LodashWrapper(value);
    }

    /**
     * The base implementation of `_.create` without support for assigning
     * properties to the created object.
     *
     * @private
     * @param {Object} proto The object to inherit from.
     * @returns {Object} Returns the new object.
     */
    var baseCreate = (function() {
      function object() {}
      return function(proto) {
        if (!isObject(proto)) {
          return {};
        }
        if (objectCreate) {
          return objectCreate(proto);
        }
        object.prototype = proto;
        var result = new object;
        object.prototype = undefined;
        return result;
      };
    }());

    /**
     * The function whose prototype chain sequence wrappers inherit from.
     *
     * @private
     */
    function baseLodash() {
      // No operation performed.
    }

    /**
     * The base constructor for creating `lodash` wrapper objects.
     *
     * @private
     * @param {*} value The value to wrap.
     * @param {boolean} [chainAll] Enable explicit method chain sequences.
     */
    function LodashWrapper(value, chainAll) {
      this.__wrapped__ = value;
      this.__actions__ = [];
      this.__chain__ = !!chainAll;
      this.__index__ = 0;
      this.__values__ = undefined;
    }

    /**
     * By default, the template delimiters used by lodash are like those in
     * embedded Ruby (ERB) as well as ES2015 template strings. Change the
     * following template settings to use alternative delimiters.
     *
     * @static
     * @memberOf _
     * @type {Object}
     */
    lodash.templateSettings = {

      /**
       * Used to detect `data` property values to be HTML-escaped.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'escape': reEscape,

      /**
       * Used to detect code to be evaluated.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'evaluate': reEvaluate,

      /**
       * Used to detect `data` property values to inject.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */
      'interpolate': reInterpolate,

      /**
       * Used to reference the data object in the template text.
       *
       * @memberOf _.templateSettings
       * @type {string}
       */
      'variable': '',

      /**
       * Used to import variables into the compiled template.
       *
       * @memberOf _.templateSettings
       * @type {Object}
       */
      'imports': {

        /**
         * A reference to the `lodash` function.
         *
         * @memberOf _.templateSettings.imports
         * @type {Function}
         */
        '_': lodash
      }
    };

    // Ensure wrappers are instances of `baseLodash`.
    lodash.prototype = baseLodash.prototype;
    lodash.prototype.constructor = lodash;

    LodashWrapper.prototype = baseCreate(baseLodash.prototype);
    LodashWrapper.prototype.constructor = LodashWrapper;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
     *
     * @private
     * @constructor
     * @param {*} value The value to wrap.
     */
    function LazyWrapper(value) {
      this.__wrapped__ = value;
      this.__actions__ = [];
      this.__dir__ = 1;
      this.__filtered__ = false;
      this.__iteratees__ = [];
      this.__takeCount__ = MAX_ARRAY_LENGTH;
      this.__views__ = [];
    }

    /**
     * Creates a clone of the lazy wrapper object.
     *
     * @private
     * @name clone
     * @memberOf LazyWrapper
     * @returns {Object} Returns the cloned `LazyWrapper` object.
     */
    function lazyClone() {
      var result = new LazyWrapper(this.__wrapped__);
      result.__actions__ = copyArray(this.__actions__);
      result.__dir__ = this.__dir__;
      result.__filtered__ = this.__filtered__;
      result.__iteratees__ = copyArray(this.__iteratees__);
      result.__takeCount__ = this.__takeCount__;
      result.__views__ = copyArray(this.__views__);
      return result;
    }

    /**
     * Reverses the direction of lazy iteration.
     *
     * @private
     * @name reverse
     * @memberOf LazyWrapper
     * @returns {Object} Returns the new reversed `LazyWrapper` object.
     */
    function lazyReverse() {
      if (this.__filtered__) {
        var result = new LazyWrapper(this);
        result.__dir__ = -1;
        result.__filtered__ = true;
      } else {
        result = this.clone();
        result.__dir__ *= -1;
      }
      return result;
    }

    /**
     * Extracts the unwrapped value from its lazy wrapper.
     *
     * @private
     * @name value
     * @memberOf LazyWrapper
     * @returns {*} Returns the unwrapped value.
     */
    function lazyValue() {
      var array = this.__wrapped__.value(),
          dir = this.__dir__,
          isArr = isArray(array),
          isRight = dir < 0,
          arrLength = isArr ? array.length : 0,
          view = getView(0, arrLength, this.__views__),
          start = view.start,
          end = view.end,
          length = end - start,
          index = isRight ? end : (start - 1),
          iteratees = this.__iteratees__,
          iterLength = iteratees.length,
          resIndex = 0,
          takeCount = nativeMin(length, this.__takeCount__);

      if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
        return baseWrapperValue(array, this.__actions__);
      }
      var result = [];

      outer:
      while (length-- && resIndex < takeCount) {
        index += dir;

        var iterIndex = -1,
            value = array[index];

        while (++iterIndex < iterLength) {
          var data = iteratees[iterIndex],
              iteratee = data.iteratee,
              type = data.type,
              computed = iteratee(value);

          if (type == LAZY_MAP_FLAG) {
            value = computed;
          } else if (!computed) {
            if (type == LAZY_FILTER_FLAG) {
              continue outer;
            } else {
              break outer;
            }
          }
        }
        result[resIndex++] = value;
      }
      return result;
    }

    // Ensure `LazyWrapper` is an instance of `baseLodash`.
    LazyWrapper.prototype = baseCreate(baseLodash.prototype);
    LazyWrapper.prototype.constructor = LazyWrapper;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a hash object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function Hash(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the hash.
     *
     * @private
     * @name clear
     * @memberOf Hash
     */
    function hashClear() {
      this.__data__ = nativeCreate ? nativeCreate(null) : {};
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the hash.
     *
     * @private
     * @name delete
     * @memberOf Hash
     * @param {Object} hash The hash to modify.
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function hashDelete(key) {
      var result = this.has(key) && delete this.__data__[key];
      this.size -= result ? 1 : 0;
      return result;
    }

    /**
     * Gets the hash value for `key`.
     *
     * @private
     * @name get
     * @memberOf Hash
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function hashGet(key) {
      var data = this.__data__;
      if (nativeCreate) {
        var result = data[key];
        return result === HASH_UNDEFINED ? undefined : result;
      }
      return hasOwnProperty.call(data, key) ? data[key] : undefined;
    }

    /**
     * Checks if a hash value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Hash
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function hashHas(key) {
      var data = this.__data__;
      return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
    }

    /**
     * Sets the hash `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Hash
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the hash instance.
     */
    function hashSet(key, value) {
      var data = this.__data__;
      this.size += this.has(key) ? 0 : 1;
      data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
      return this;
    }

    // Add methods to `Hash`.
    Hash.prototype.clear = hashClear;
    Hash.prototype['delete'] = hashDelete;
    Hash.prototype.get = hashGet;
    Hash.prototype.has = hashHas;
    Hash.prototype.set = hashSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates an list cache object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function ListCache(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the list cache.
     *
     * @private
     * @name clear
     * @memberOf ListCache
     */
    function listCacheClear() {
      this.__data__ = [];
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the list cache.
     *
     * @private
     * @name delete
     * @memberOf ListCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function listCacheDelete(key) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      if (index < 0) {
        return false;
      }
      var lastIndex = data.length - 1;
      if (index == lastIndex) {
        data.pop();
      } else {
        splice.call(data, index, 1);
      }
      --this.size;
      return true;
    }

    /**
     * Gets the list cache value for `key`.
     *
     * @private
     * @name get
     * @memberOf ListCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function listCacheGet(key) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      return index < 0 ? undefined : data[index][1];
    }

    /**
     * Checks if a list cache value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf ListCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function listCacheHas(key) {
      return assocIndexOf(this.__data__, key) > -1;
    }

    /**
     * Sets the list cache `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf ListCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the list cache instance.
     */
    function listCacheSet(key, value) {
      var data = this.__data__,
          index = assocIndexOf(data, key);

      if (index < 0) {
        ++this.size;
        data.push([key, value]);
      } else {
        data[index][1] = value;
      }
      return this;
    }

    // Add methods to `ListCache`.
    ListCache.prototype.clear = listCacheClear;
    ListCache.prototype['delete'] = listCacheDelete;
    ListCache.prototype.get = listCacheGet;
    ListCache.prototype.has = listCacheHas;
    ListCache.prototype.set = listCacheSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a map cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function MapCache(entries) {
      var index = -1,
          length = entries == null ? 0 : entries.length;

      this.clear();
      while (++index < length) {
        var entry = entries[index];
        this.set(entry[0], entry[1]);
      }
    }

    /**
     * Removes all key-value entries from the map.
     *
     * @private
     * @name clear
     * @memberOf MapCache
     */
    function mapCacheClear() {
      this.size = 0;
      this.__data__ = {
        'hash': new Hash,
        'map': new (Map || ListCache),
        'string': new Hash
      };
    }

    /**
     * Removes `key` and its value from the map.
     *
     * @private
     * @name delete
     * @memberOf MapCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function mapCacheDelete(key) {
      var result = getMapData(this, key)['delete'](key);
      this.size -= result ? 1 : 0;
      return result;
    }

    /**
     * Gets the map value for `key`.
     *
     * @private
     * @name get
     * @memberOf MapCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function mapCacheGet(key) {
      return getMapData(this, key).get(key);
    }

    /**
     * Checks if a map value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf MapCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function mapCacheHas(key) {
      return getMapData(this, key).has(key);
    }

    /**
     * Sets the map `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf MapCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the map cache instance.
     */
    function mapCacheSet(key, value) {
      var data = getMapData(this, key),
          size = data.size;

      data.set(key, value);
      this.size += data.size == size ? 0 : 1;
      return this;
    }

    // Add methods to `MapCache`.
    MapCache.prototype.clear = mapCacheClear;
    MapCache.prototype['delete'] = mapCacheDelete;
    MapCache.prototype.get = mapCacheGet;
    MapCache.prototype.has = mapCacheHas;
    MapCache.prototype.set = mapCacheSet;

    /*------------------------------------------------------------------------*/

    /**
     *
     * Creates an array cache object to store unique values.
     *
     * @private
     * @constructor
     * @param {Array} [values] The values to cache.
     */
    function SetCache(values) {
      var index = -1,
          length = values == null ? 0 : values.length;

      this.__data__ = new MapCache;
      while (++index < length) {
        this.add(values[index]);
      }
    }

    /**
     * Adds `value` to the array cache.
     *
     * @private
     * @name add
     * @memberOf SetCache
     * @alias push
     * @param {*} value The value to cache.
     * @returns {Object} Returns the cache instance.
     */
    function setCacheAdd(value) {
      this.__data__.set(value, HASH_UNDEFINED);
      return this;
    }

    /**
     * Checks if `value` is in the array cache.
     *
     * @private
     * @name has
     * @memberOf SetCache
     * @param {*} value The value to search for.
     * @returns {number} Returns `true` if `value` is found, else `false`.
     */
    function setCacheHas(value) {
      return this.__data__.has(value);
    }

    // Add methods to `SetCache`.
    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
    SetCache.prototype.has = setCacheHas;

    /*------------------------------------------------------------------------*/

    /**
     * Creates a stack cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */
    function Stack(entries) {
      var data = this.__data__ = new ListCache(entries);
      this.size = data.size;
    }

    /**
     * Removes all key-value entries from the stack.
     *
     * @private
     * @name clear
     * @memberOf Stack
     */
    function stackClear() {
      this.__data__ = new ListCache;
      this.size = 0;
    }

    /**
     * Removes `key` and its value from the stack.
     *
     * @private
     * @name delete
     * @memberOf Stack
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */
    function stackDelete(key) {
      var data = this.__data__,
          result = data['delete'](key);

      this.size = data.size;
      return result;
    }

    /**
     * Gets the stack value for `key`.
     *
     * @private
     * @name get
     * @memberOf Stack
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */
    function stackGet(key) {
      return this.__data__.get(key);
    }

    /**
     * Checks if a stack value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Stack
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */
    function stackHas(key) {
      return this.__data__.has(key);
    }

    /**
     * Sets the stack `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Stack
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the stack cache instance.
     */
    function stackSet(key, value) {
      var data = this.__data__;
      if (data instanceof ListCache) {
        var pairs = data.__data__;
        if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
          pairs.push([key, value]);
          this.size = ++data.size;
          return this;
        }
        data = this.__data__ = new MapCache(pairs);
      }
      data.set(key, value);
      this.size = data.size;
      return this;
    }

    // Add methods to `Stack`.
    Stack.prototype.clear = stackClear;
    Stack.prototype['delete'] = stackDelete;
    Stack.prototype.get = stackGet;
    Stack.prototype.has = stackHas;
    Stack.prototype.set = stackSet;

    /*------------------------------------------------------------------------*/

    /**
     * Creates an array of the enumerable property names of the array-like `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @param {boolean} inherited Specify returning inherited property names.
     * @returns {Array} Returns the array of property names.
     */
    function arrayLikeKeys(value, inherited) {
      var isArr = isArray(value),
          isArg = !isArr && isArguments(value),
          isBuff = !isArr && !isArg && isBuffer(value),
          isType = !isArr && !isArg && !isBuff && isTypedArray(value),
          skipIndexes = isArr || isArg || isBuff || isType,
          result = skipIndexes ? baseTimes(value.length, String) : [],
          length = result.length;

      for (var key in value) {
        if ((inherited || hasOwnProperty.call(value, key)) &&
            !(skipIndexes && (
               // Safari 9 has enumerable `arguments.length` in strict mode.
               key == 'length' ||
               // Node.js 0.10 has enumerable non-index properties on buffers.
               (isBuff && (key == 'offset' || key == 'parent')) ||
               // PhantomJS 2 has enumerable non-index properties on typed arrays.
               (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
               // Skip index properties.
               isIndex(key, length)
            ))) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * A specialized version of `_.sample` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @returns {*} Returns the random element.
     */
    function arraySample(array) {
      var length = array.length;
      return length ? array[baseRandom(0, length - 1)] : undefined;
    }

    /**
     * A specialized version of `_.sampleSize` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */
    function arraySampleSize(array, n) {
      return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
    }

    /**
     * A specialized version of `_.shuffle` for arrays.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
    function arrayShuffle(array) {
      return shuffleSelf(copyArray(array));
    }

    /**
     * This function is like `assignValue` except that it doesn't assign
     * `undefined` values.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function assignMergeValue(object, key, value) {
      if ((value !== undefined && !eq(object[key], value)) ||
          (value === undefined && !(key in object))) {
        baseAssignValue(object, key, value);
      }
    }

    /**
     * Assigns `value` to `key` of `object` if the existing value is not equivalent
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function assignValue(object, key, value) {
      var objValue = object[key];
      if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
          (value === undefined && !(key in object))) {
        baseAssignValue(object, key, value);
      }
    }

    /**
     * Gets the index at which the `key` is found in `array` of key-value pairs.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {*} key The key to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     */
    function assocIndexOf(array, key) {
      var length = array.length;
      while (length--) {
        if (eq(array[length][0], key)) {
          return length;
        }
      }
      return -1;
    }

    /**
     * Aggregates elements of `collection` on `accumulator` with keys transformed
     * by `iteratee` and values set by `setter`.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform keys.
     * @param {Object} accumulator The initial aggregated object.
     * @returns {Function} Returns `accumulator`.
     */
    function baseAggregator(collection, setter, iteratee, accumulator) {
      baseEach(collection, function(value, key, collection) {
        setter(accumulator, value, iteratee(value), collection);
      });
      return accumulator;
    }

    /**
     * The base implementation of `_.assign` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
    function baseAssign(object, source) {
      return object && copyObject(source, keys(source), object);
    }

    /**
     * The base implementation of `_.assignIn` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */
    function baseAssignIn(object, source) {
      return object && copyObject(source, keysIn(source), object);
    }

    /**
     * The base implementation of `assignValue` and `assignMergeValue` without
     * value checks.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */
    function baseAssignValue(object, key, value) {
      if (key == '__proto__' && defineProperty) {
        defineProperty(object, key, {
          'configurable': true,
          'enumerable': true,
          'value': value,
          'writable': true
        });
      } else {
        object[key] = value;
      }
    }

    /**
     * The base implementation of `_.at` without support for individual paths.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {string[]} paths The property paths to pick.
     * @returns {Array} Returns the picked elements.
     */
    function baseAt(object, paths) {
      var index = -1,
          length = paths.length,
          result = Array(length),
          skip = object == null;

      while (++index < length) {
        result[index] = skip ? undefined : get(object, paths[index]);
      }
      return result;
    }

    /**
     * The base implementation of `_.clamp` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     */
    function baseClamp(number, lower, upper) {
      if (number === number) {
        if (upper !== undefined) {
          number = number <= upper ? number : upper;
        }
        if (lower !== undefined) {
          number = number >= lower ? number : lower;
        }
      }
      return number;
    }

    /**
     * The base implementation of `_.clone` and `_.cloneDeep` which tracks
     * traversed objects.
     *
     * @private
     * @param {*} value The value to clone.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Deep clone
     *  2 - Flatten inherited properties
     *  4 - Clone symbols
     * @param {Function} [customizer] The function to customize cloning.
     * @param {string} [key] The key of `value`.
     * @param {Object} [object] The parent object of `value`.
     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
     * @returns {*} Returns the cloned value.
     */
    function baseClone(value, bitmask, customizer, key, object, stack) {
      var result,
          isDeep = bitmask & CLONE_DEEP_FLAG,
          isFlat = bitmask & CLONE_FLAT_FLAG,
          isFull = bitmask & CLONE_SYMBOLS_FLAG;

      if (customizer) {
        result = object ? customizer(value, key, object, stack) : customizer(value);
      }
      if (result !== undefined) {
        return result;
      }
      if (!isObject(value)) {
        return value;
      }
      var isArr = isArray(value);
      if (isArr) {
        result = initCloneArray(value);
        if (!isDeep) {
          return copyArray(value, result);
        }
      } else {
        var tag = getTag(value),
            isFunc = tag == funcTag || tag == genTag;

        if (isBuffer(value)) {
          return cloneBuffer(value, isDeep);
        }
        if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
          result = (isFlat || isFunc) ? {} : initCloneObject(value);
          if (!isDeep) {
            return isFlat
              ? copySymbolsIn(value, baseAssignIn(result, value))
              : copySymbols(value, baseAssign(result, value));
          }
        } else {
          if (!cloneableTags[tag]) {
            return object ? value : {};
          }
          result = initCloneByTag(value, tag, isDeep);
        }
      }
      // Check for circular references and return its corresponding clone.
      stack || (stack = new Stack);
      var stacked = stack.get(value);
      if (stacked) {
        return stacked;
      }
      stack.set(value, result);

      if (isSet(value)) {
        value.forEach(function(subValue) {
          result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
        });
      } else if (isMap(value)) {
        value.forEach(function(subValue, key) {
          result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
        });
      }

      var keysFunc = isFull
        ? (isFlat ? getAllKeysIn : getAllKeys)
        : (isFlat ? keysIn : keys);

      var props = isArr ? undefined : keysFunc(value);
      arrayEach(props || value, function(subValue, key) {
        if (props) {
          key = subValue;
          subValue = value[key];
        }
        // Recursively populate clone (susceptible to call stack limits).
        assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
      });
      return result;
    }

    /**
     * The base implementation of `_.conforms` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     */
    function baseConforms(source) {
      var props = keys(source);
      return function(object) {
        return baseConformsTo(object, source, props);
      };
    }

    /**
     * The base implementation of `_.conformsTo` which accepts `props` to check.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     */
    function baseConformsTo(object, source, props) {
      var length = props.length;
      if (object == null) {
        return !length;
      }
      object = Object(object);
      while (length--) {
        var key = props[length],
            predicate = source[key],
            value = object[key];

        if ((value === undefined && !(key in object)) || !predicate(value)) {
          return false;
        }
      }
      return true;
    }

    /**
     * The base implementation of `_.delay` and `_.defer` which accepts `args`
     * to provide to `func`.
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {Array} args The arguments to provide to `func`.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
    function baseDelay(func, wait, args) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      return setTimeout(function() { func.apply(undefined, args); }, wait);
    }

    /**
     * The base implementation of methods like `_.difference` without support
     * for excluding multiple arrays or iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Array} values The values to exclude.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     */
    function baseDifference(array, values, iteratee, comparator) {
      var index = -1,
          includes = arrayIncludes,
          isCommon = true,
          length = array.length,
          result = [],
          valuesLength = values.length;

      if (!length) {
        return result;
      }
      if (iteratee) {
        values = arrayMap(values, baseUnary(iteratee));
      }
      if (comparator) {
        includes = arrayIncludesWith;
        isCommon = false;
      }
      else if (values.length >= LARGE_ARRAY_SIZE) {
        includes = cacheHas;
        isCommon = false;
        values = new SetCache(values);
      }
      outer:
      while (++index < length) {
        var value = array[index],
            computed = iteratee == null ? value : iteratee(value);

        value = (comparator || value !== 0) ? value : 0;
        if (isCommon && computed === computed) {
          var valuesIndex = valuesLength;
          while (valuesIndex--) {
            if (values[valuesIndex] === computed) {
              continue outer;
            }
          }
          result.push(value);
        }
        else if (!includes(values, computed, comparator)) {
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.forEach` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
    var baseEach = createBaseEach(baseForOwn);

    /**
     * The base implementation of `_.forEachRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */
    var baseEachRight = createBaseEach(baseForOwnRight, true);

    /**
     * The base implementation of `_.every` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`
     */
    function baseEvery(collection, predicate) {
      var result = true;
      baseEach(collection, function(value, index, collection) {
        result = !!predicate(value, index, collection);
        return result;
      });
      return result;
    }

    /**
     * The base implementation of methods like `_.max` and `_.min` which accepts a
     * `comparator` to determine the extremum value.
     *
     * @private
     * @param {Array} array The array to iterate over.
     * @param {Function} iteratee The iteratee invoked per iteration.
     * @param {Function} comparator The comparator used to compare values.
     * @returns {*} Returns the extremum value.
     */
    function baseExtremum(array, iteratee, comparator) {
      var index = -1,
          length = array.length;

      while (++index < length) {
        var value = array[index],
            current = iteratee(value);

        if (current != null && (computed === undefined
              ? (current === current && !isSymbol(current))
              : comparator(current, computed)
            )) {
          var computed = current,
              result = value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.fill` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     */
    function baseFill(array, value, start, end) {
      var length = array.length;

      start = toInteger(start);
      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = (end === undefined || end > length) ? length : toInteger(end);
      if (end < 0) {
        end += length;
      }
      end = start > end ? 0 : toLength(end);
      while (start < end) {
        array[start++] = value;
      }
      return array;
    }

    /**
     * The base implementation of `_.filter` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     */
    function baseFilter(collection, predicate) {
      var result = [];
      baseEach(collection, function(value, index, collection) {
        if (predicate(value, index, collection)) {
          result.push(value);
        }
      });
      return result;
    }

    /**
     * The base implementation of `_.flatten` with support for restricting flattening.
     *
     * @private
     * @param {Array} array The array to flatten.
     * @param {number} depth The maximum recursion depth.
     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
     * @param {Array} [result=[]] The initial result value.
     * @returns {Array} Returns the new flattened array.
     */
    function baseFlatten(array, depth, predicate, isStrict, result) {
      var index = -1,
          length = array.length;

      predicate || (predicate = isFlattenable);
      result || (result = []);

      while (++index < length) {
        var value = array[index];
        if (depth > 0 && predicate(value)) {
          if (depth > 1) {
            // Recursively flatten arrays (susceptible to call stack limits).
            baseFlatten(value, depth - 1, predicate, isStrict, result);
          } else {
            arrayPush(result, value);
          }
        } else if (!isStrict) {
          result[result.length] = value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `baseForOwn` which iterates over `object`
     * properties returned by `keysFunc` and invokes `iteratee` for each property.
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
    var baseFor = createBaseFor();

    /**
     * This function is like `baseFor` except that it iterates over properties
     * in the opposite order.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */
    var baseForRight = createBaseFor(true);

    /**
     * The base implementation of `_.forOwn` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
    function baseForOwn(object, iteratee) {
      return object && baseFor(object, iteratee, keys);
    }

    /**
     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */
    function baseForOwnRight(object, iteratee) {
      return object && baseForRight(object, iteratee, keys);
    }

    /**
     * The base implementation of `_.functions` which creates an array of
     * `object` function property names filtered from `props`.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Array} props The property names to filter.
     * @returns {Array} Returns the function names.
     */
    function baseFunctions(object, props) {
      return arrayFilter(props, function(key) {
        return isFunction(object[key]);
      });
    }

    /**
     * The base implementation of `_.get` without support for default values.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @returns {*} Returns the resolved value.
     */
    function baseGet(object, path) {
      path = castPath(path, object);

      var index = 0,
          length = path.length;

      while (object != null && index < length) {
        object = object[toKey(path[index++])];
      }
      return (index && index == length) ? object : undefined;
    }

    /**
     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
     * `keysFunc` and `symbolsFunc` to get the enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @param {Function} symbolsFunc The function to get the symbols of `object`.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function baseGetAllKeys(object, keysFunc, symbolsFunc) {
      var result = keysFunc(object);
      return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
    }

    /**
     * The base implementation of `getTag` without fallbacks for buggy environments.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */
    function baseGetTag(value) {
      if (value == null) {
        return value === undefined ? undefinedTag : nullTag;
      }
      return (symToStringTag && symToStringTag in Object(value))
        ? getRawTag(value)
        : objectToString(value);
    }

    /**
     * The base implementation of `_.gt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     */
    function baseGt(value, other) {
      return value > other;
    }

    /**
     * The base implementation of `_.has` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */
    function baseHas(object, key) {
      return object != null && hasOwnProperty.call(object, key);
    }

    /**
     * The base implementation of `_.hasIn` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */
    function baseHasIn(object, key) {
      return object != null && key in Object(object);
    }

    /**
     * The base implementation of `_.inRange` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to check.
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     */
    function baseInRange(number, start, end) {
      return number >= nativeMin(start, end) && number < nativeMax(start, end);
    }

    /**
     * The base implementation of methods like `_.intersection`, without support
     * for iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of shared values.
     */
    function baseIntersection(arrays, iteratee, comparator) {
      var includes = comparator ? arrayIncludesWith : arrayIncludes,
          length = arrays[0].length,
          othLength = arrays.length,
          othIndex = othLength,
          caches = Array(othLength),
          maxLength = Infinity,
          result = [];

      while (othIndex--) {
        var array = arrays[othIndex];
        if (othIndex && iteratee) {
          array = arrayMap(array, baseUnary(iteratee));
        }
        maxLength = nativeMin(array.length, maxLength);
        caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
          ? new SetCache(othIndex && array)
          : undefined;
      }
      array = arrays[0];

      var index = -1,
          seen = caches[0];

      outer:
      while (++index < length && result.length < maxLength) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        value = (comparator || value !== 0) ? value : 0;
        if (!(seen
              ? cacheHas(seen, computed)
              : includes(result, computed, comparator)
            )) {
          othIndex = othLength;
          while (--othIndex) {
            var cache = caches[othIndex];
            if (!(cache
                  ? cacheHas(cache, computed)
                  : includes(arrays[othIndex], computed, comparator))
                ) {
              continue outer;
            }
          }
          if (seen) {
            seen.push(computed);
          }
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.invert` and `_.invertBy` which inverts
     * `object` with values transformed by `iteratee` and set by `setter`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform values.
     * @param {Object} accumulator The initial inverted object.
     * @returns {Function} Returns `accumulator`.
     */
    function baseInverter(object, setter, iteratee, accumulator) {
      baseForOwn(object, function(value, key, object) {
        setter(accumulator, iteratee(value), key, object);
      });
      return accumulator;
    }

    /**
     * The base implementation of `_.invoke` without support for individual
     * method arguments.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {Array} args The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     */
    function baseInvoke(object, path, args) {
      path = castPath(path, object);
      object = parent(object, path);
      var func = object == null ? object : object[toKey(last(path))];
      return func == null ? undefined : apply(func, object, args);
    }

    /**
     * The base implementation of `_.isArguments`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     */
    function baseIsArguments(value) {
      return isObjectLike(value) && baseGetTag(value) == argsTag;
    }

    /**
     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     */
    function baseIsArrayBuffer(value) {
      return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
    }

    /**
     * The base implementation of `_.isDate` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     */
    function baseIsDate(value) {
      return isObjectLike(value) && baseGetTag(value) == dateTag;
    }

    /**
     * The base implementation of `_.isEqual` which supports partial comparisons
     * and tracks traversed objects.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Unordered comparison
     *  2 - Partial comparison
     * @param {Function} [customizer] The function to customize comparisons.
     * @param {Object} [stack] Tracks traversed `value` and `other` objects.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     */
    function baseIsEqual(value, other, bitmask, customizer, stack) {
      if (value === other) {
        return true;
      }
      if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
        return value !== value && other !== other;
      }
      return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
    }

    /**
     * A specialized version of `baseIsEqual` for arrays and objects which performs
     * deep comparisons and tracks traversed objects enabling objects with circular
     * references to be compared.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} [stack] Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
      var objIsArr = isArray(object),
          othIsArr = isArray(other),
          objTag = objIsArr ? arrayTag : getTag(object),
          othTag = othIsArr ? arrayTag : getTag(other);

      objTag = objTag == argsTag ? objectTag : objTag;
      othTag = othTag == argsTag ? objectTag : othTag;

      var objIsObj = objTag == objectTag,
          othIsObj = othTag == objectTag,
          isSameTag = objTag == othTag;

      if (isSameTag && isBuffer(object)) {
        if (!isBuffer(other)) {
          return false;
        }
        objIsArr = true;
        objIsObj = false;
      }
      if (isSameTag && !objIsObj) {
        stack || (stack = new Stack);
        return (objIsArr || isTypedArray(object))
          ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
          : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
      }
      if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
        var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
            othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

        if (objIsWrapped || othIsWrapped) {
          var objUnwrapped = objIsWrapped ? object.value() : object,
              othUnwrapped = othIsWrapped ? other.value() : other;

          stack || (stack = new Stack);
          return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
        }
      }
      if (!isSameTag) {
        return false;
      }
      stack || (stack = new Stack);
      return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
    }

    /**
     * The base implementation of `_.isMap` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     */
    function baseIsMap(value) {
      return isObjectLike(value) && getTag(value) == mapTag;
    }

    /**
     * The base implementation of `_.isMatch` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Array} matchData The property names, values, and compare flags to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     */
    function baseIsMatch(object, source, matchData, customizer) {
      var index = matchData.length,
          length = index,
          noCustomizer = !customizer;

      if (object == null) {
        return !length;
      }
      object = Object(object);
      while (index--) {
        var data = matchData[index];
        if ((noCustomizer && data[2])
              ? data[1] !== object[data[0]]
              : !(data[0] in object)
            ) {
          return false;
        }
      }
      while (++index < length) {
        data = matchData[index];
        var key = data[0],
            objValue = object[key],
            srcValue = data[1];

        if (noCustomizer && data[2]) {
          if (objValue === undefined && !(key in object)) {
            return false;
          }
        } else {
          var stack = new Stack;
          if (customizer) {
            var result = customizer(objValue, srcValue, key, object, source, stack);
          }
          if (!(result === undefined
                ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
                : result
              )) {
            return false;
          }
        }
      }
      return true;
    }

    /**
     * The base implementation of `_.isNative` without bad shim checks.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     */
    function baseIsNative(value) {
      if (!isObject(value) || isMasked(value)) {
        return false;
      }
      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
      return pattern.test(toSource(value));
    }

    /**
     * The base implementation of `_.isRegExp` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     */
    function baseIsRegExp(value) {
      return isObjectLike(value) && baseGetTag(value) == regexpTag;
    }

    /**
     * The base implementation of `_.isSet` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     */
    function baseIsSet(value) {
      return isObjectLike(value) && getTag(value) == setTag;
    }

    /**
     * The base implementation of `_.isTypedArray` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     */
    function baseIsTypedArray(value) {
      return isObjectLike(value) &&
        isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
    }

    /**
     * The base implementation of `_.iteratee`.
     *
     * @private
     * @param {*} [value=_.identity] The value to convert to an iteratee.
     * @returns {Function} Returns the iteratee.
     */
    function baseIteratee(value) {
      // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
      // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
      if (typeof value == 'function') {
        return value;
      }
      if (value == null) {
        return identity;
      }
      if (typeof value == 'object') {
        return isArray(value)
          ? baseMatchesProperty(value[0], value[1])
          : baseMatches(value);
      }
      return property(value);
    }

    /**
     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function baseKeys(object) {
      if (!isPrototype(object)) {
        return nativeKeys(object);
      }
      var result = [];
      for (var key in Object(object)) {
        if (hasOwnProperty.call(object, key) && key != 'constructor') {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function baseKeysIn(object) {
      if (!isObject(object)) {
        return nativeKeysIn(object);
      }
      var isProto = isPrototype(object),
          result = [];

      for (var key in object) {
        if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.lt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     */
    function baseLt(value, other) {
      return value < other;
    }

    /**
     * The base implementation of `_.map` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     */
    function baseMap(collection, iteratee) {
      var index = -1,
          result = isArrayLike(collection) ? Array(collection.length) : [];

      baseEach(collection, function(value, key, collection) {
        result[++index] = iteratee(value, key, collection);
      });
      return result;
    }

    /**
     * The base implementation of `_.matches` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     */
    function baseMatches(source) {
      var matchData = getMatchData(source);
      if (matchData.length == 1 && matchData[0][2]) {
        return matchesStrictComparable(matchData[0][0], matchData[0][1]);
      }
      return function(object) {
        return object === source || baseIsMatch(object, source, matchData);
      };
    }

    /**
     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
     *
     * @private
     * @param {string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */
    function baseMatchesProperty(path, srcValue) {
      if (isKey(path) && isStrictComparable(srcValue)) {
        return matchesStrictComparable(toKey(path), srcValue);
      }
      return function(object) {
        var objValue = get(object, path);
        return (objValue === undefined && objValue === srcValue)
          ? hasIn(object, path)
          : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
      };
    }

    /**
     * The base implementation of `_.merge` without support for multiple sources.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} [customizer] The function to customize merged values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
    function baseMerge(object, source, srcIndex, customizer, stack) {
      if (object === source) {
        return;
      }
      baseFor(source, function(srcValue, key) {
        stack || (stack = new Stack);
        if (isObject(srcValue)) {
          baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
        }
        else {
          var newValue = customizer
            ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
            : undefined;

          if (newValue === undefined) {
            newValue = srcValue;
          }
          assignMergeValue(object, key, newValue);
        }
      }, keysIn);
    }

    /**
     * A specialized version of `baseMerge` for arrays and objects which performs
     * deep merges and tracks traversed objects enabling objects with circular
     * references to be merged.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {string} key The key of the value to merge.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} mergeFunc The function to merge values.
     * @param {Function} [customizer] The function to customize assigned values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */
    function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
      var objValue = safeGet(object, key),
          srcValue = safeGet(source, key),
          stacked = stack.get(srcValue);

      if (stacked) {
        assignMergeValue(object, key, stacked);
        return;
      }
      var newValue = customizer
        ? customizer(objValue, srcValue, (key + ''), object, source, stack)
        : undefined;

      var isCommon = newValue === undefined;

      if (isCommon) {
        var isArr = isArray(srcValue),
            isBuff = !isArr && isBuffer(srcValue),
            isTyped = !isArr && !isBuff && isTypedArray(srcValue);

        newValue = srcValue;
        if (isArr || isBuff || isTyped) {
          if (isArray(objValue)) {
            newValue = objValue;
          }
          else if (isArrayLikeObject(objValue)) {
            newValue = copyArray(objValue);
          }
          else if (isBuff) {
            isCommon = false;
            newValue = cloneBuffer(srcValue, true);
          }
          else if (isTyped) {
            isCommon = false;
            newValue = cloneTypedArray(srcValue, true);
          }
          else {
            newValue = [];
          }
        }
        else if (isPlainObject(srcValue) || isArguments(srcValue)) {
          newValue = objValue;
          if (isArguments(objValue)) {
            newValue = toPlainObject(objValue);
          }
          else if (!isObject(objValue) || isFunction(objValue)) {
            newValue = initCloneObject(srcValue);
          }
        }
        else {
          isCommon = false;
        }
      }
      if (isCommon) {
        // Recursively merge objects and arrays (susceptible to call stack limits).
        stack.set(srcValue, newValue);
        mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
        stack['delete'](srcValue);
      }
      assignMergeValue(object, key, newValue);
    }

    /**
     * The base implementation of `_.nth` which doesn't coerce arguments.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {number} n The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     */
    function baseNth(array, n) {
      var length = array.length;
      if (!length) {
        return;
      }
      n += n < 0 ? length : 0;
      return isIndex(n, length) ? array[n] : undefined;
    }

    /**
     * The base implementation of `_.orderBy` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
     * @param {string[]} orders The sort orders of `iteratees`.
     * @returns {Array} Returns the new sorted array.
     */
    function baseOrderBy(collection, iteratees, orders) {
      if (iteratees.length) {
        iteratees = arrayMap(iteratees, function(iteratee) {
          if (isArray(iteratee)) {
            return function(value) {
              return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
            }
          }
          return iteratee;
        });
      } else {
        iteratees = [identity];
      }

      var index = -1;
      iteratees = arrayMap(iteratees, baseUnary(getIteratee()));

      var result = baseMap(collection, function(value, key, collection) {
        var criteria = arrayMap(iteratees, function(iteratee) {
          return iteratee(value);
        });
        return { 'criteria': criteria, 'index': ++index, 'value': value };
      });

      return baseSortBy(result, function(object, other) {
        return compareMultiple(object, other, orders);
      });
    }

    /**
     * The base implementation of `_.pick` without support for individual
     * property identifiers.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @returns {Object} Returns the new object.
     */
    function basePick(object, paths) {
      return basePickBy(object, paths, function(value, path) {
        return hasIn(object, path);
      });
    }

    /**
     * The base implementation of  `_.pickBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @param {Function} predicate The function invoked per property.
     * @returns {Object} Returns the new object.
     */
    function basePickBy(object, paths, predicate) {
      var index = -1,
          length = paths.length,
          result = {};

      while (++index < length) {
        var path = paths[index],
            value = baseGet(object, path);

        if (predicate(value, path)) {
          baseSet(result, castPath(path, object), value);
        }
      }
      return result;
    }

    /**
     * A specialized version of `baseProperty` which supports deep paths.
     *
     * @private
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     */
    function basePropertyDeep(path) {
      return function(object) {
        return baseGet(object, path);
      };
    }

    /**
     * The base implementation of `_.pullAllBy` without support for iteratee
     * shorthands.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     */
    function basePullAll(array, values, iteratee, comparator) {
      var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
          index = -1,
          length = values.length,
          seen = array;

      if (array === values) {
        values = copyArray(values);
      }
      if (iteratee) {
        seen = arrayMap(array, baseUnary(iteratee));
      }
      while (++index < length) {
        var fromIndex = 0,
            value = values[index],
            computed = iteratee ? iteratee(value) : value;

        while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
          if (seen !== array) {
            splice.call(seen, fromIndex, 1);
          }
          splice.call(array, fromIndex, 1);
        }
      }
      return array;
    }

    /**
     * The base implementation of `_.pullAt` without support for individual
     * indexes or capturing the removed elements.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {number[]} indexes The indexes of elements to remove.
     * @returns {Array} Returns `array`.
     */
    function basePullAt(array, indexes) {
      var length = array ? indexes.length : 0,
          lastIndex = length - 1;

      while (length--) {
        var index = indexes[length];
        if (length == lastIndex || index !== previous) {
          var previous = index;
          if (isIndex(index)) {
            splice.call(array, index, 1);
          } else {
            baseUnset(array, index);
          }
        }
      }
      return array;
    }

    /**
     * The base implementation of `_.random` without support for returning
     * floating-point numbers.
     *
     * @private
     * @param {number} lower The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the random number.
     */
    function baseRandom(lower, upper) {
      return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
    }

    /**
     * The base implementation of `_.range` and `_.rangeRight` which doesn't
     * coerce arguments.
     *
     * @private
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @param {number} step The value to increment or decrement by.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the range of numbers.
     */
    function baseRange(start, end, step, fromRight) {
      var index = -1,
          length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
          result = Array(length);

      while (length--) {
        result[fromRight ? length : ++index] = start;
        start += step;
      }
      return result;
    }

    /**
     * The base implementation of `_.repeat` which doesn't coerce arguments.
     *
     * @private
     * @param {string} string The string to repeat.
     * @param {number} n The number of times to repeat the string.
     * @returns {string} Returns the repeated string.
     */
    function baseRepeat(string, n) {
      var result = '';
      if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
        return result;
      }
      // Leverage the exponentiation by squaring algorithm for a faster repeat.
      // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
      do {
        if (n % 2) {
          result += string;
        }
        n = nativeFloor(n / 2);
        if (n) {
          string += string;
        }
      } while (n);

      return result;
    }

    /**
     * The base implementation of `_.rest` which doesn't validate or coerce arguments.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     */
    function baseRest(func, start) {
      return setToString(overRest(func, start, identity), func + '');
    }

    /**
     * The base implementation of `_.sample`.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     */
    function baseSample(collection) {
      return arraySample(values(collection));
    }

    /**
     * The base implementation of `_.sampleSize` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */
    function baseSampleSize(collection, n) {
      var array = values(collection);
      return shuffleSelf(array, baseClamp(n, 0, array.length));
    }

    /**
     * The base implementation of `_.set`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */
    function baseSet(object, path, value, customizer) {
      if (!isObject(object)) {
        return object;
      }
      path = castPath(path, object);

      var index = -1,
          length = path.length,
          lastIndex = length - 1,
          nested = object;

      while (nested != null && ++index < length) {
        var key = toKey(path[index]),
            newValue = value;

        if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
          return object;
        }

        if (index != lastIndex) {
          var objValue = nested[key];
          newValue = customizer ? customizer(objValue, key, nested) : undefined;
          if (newValue === undefined) {
            newValue = isObject(objValue)
              ? objValue
              : (isIndex(path[index + 1]) ? [] : {});
          }
        }
        assignValue(nested, key, newValue);
        nested = nested[key];
      }
      return object;
    }

    /**
     * The base implementation of `setData` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */
    var baseSetData = !metaMap ? identity : function(func, data) {
      metaMap.set(func, data);
      return func;
    };

    /**
     * The base implementation of `setToString` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
    var baseSetToString = !defineProperty ? identity : function(func, string) {
      return defineProperty(func, 'toString', {
        'configurable': true,
        'enumerable': false,
        'value': constant(string),
        'writable': true
      });
    };

    /**
     * The base implementation of `_.shuffle`.
     *
     * @private
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */
    function baseShuffle(collection) {
      return shuffleSelf(values(collection));
    }

    /**
     * The base implementation of `_.slice` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
    function baseSlice(array, start, end) {
      var index = -1,
          length = array.length;

      if (start < 0) {
        start = -start > length ? 0 : (length + start);
      }
      end = end > length ? length : end;
      if (end < 0) {
        end += length;
      }
      length = start > end ? 0 : ((end - start) >>> 0);
      start >>>= 0;

      var result = Array(length);
      while (++index < length) {
        result[index] = array[index + start];
      }
      return result;
    }

    /**
     * The base implementation of `_.some` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     */
    function baseSome(collection, predicate) {
      var result;

      baseEach(collection, function(value, index, collection) {
        result = predicate(value, index, collection);
        return !result;
      });
      return !!result;
    }

    /**
     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
     * performs a binary search of `array` to determine the index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */
    function baseSortedIndex(array, value, retHighest) {
      var low = 0,
          high = array == null ? low : array.length;

      if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
        while (low < high) {
          var mid = (low + high) >>> 1,
              computed = array[mid];

          if (computed !== null && !isSymbol(computed) &&
              (retHighest ? (computed <= value) : (computed < value))) {
            low = mid + 1;
          } else {
            high = mid;
          }
        }
        return high;
      }
      return baseSortedIndexBy(array, value, identity, retHighest);
    }

    /**
     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
     * which invokes `iteratee` for `value` and each element of `array` to compute
     * their sort ranking. The iteratee is invoked with one argument; (value).
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} iteratee The iteratee invoked per element.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */
    function baseSortedIndexBy(array, value, iteratee, retHighest) {
      var low = 0,
          high = array == null ? 0 : array.length;
      if (high === 0) {
        return 0;
      }

      value = iteratee(value);
      var valIsNaN = value !== value,
          valIsNull = value === null,
          valIsSymbol = isSymbol(value),
          valIsUndefined = value === undefined;

      while (low < high) {
        var mid = nativeFloor((low + high) / 2),
            computed = iteratee(array[mid]),
            othIsDefined = computed !== undefined,
            othIsNull = computed === null,
            othIsReflexive = computed === computed,
            othIsSymbol = isSymbol(computed);

        if (valIsNaN) {
          var setLow = retHighest || othIsReflexive;
        } else if (valIsUndefined) {
          setLow = othIsReflexive && (retHighest || othIsDefined);
        } else if (valIsNull) {
          setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
        } else if (valIsSymbol) {
          setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
        } else if (othIsNull || othIsSymbol) {
          setLow = false;
        } else {
          setLow = retHighest ? (computed <= value) : (computed < value);
        }
        if (setLow) {
          low = mid + 1;
        } else {
          high = mid;
        }
      }
      return nativeMin(high, MAX_ARRAY_INDEX);
    }

    /**
     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
     * support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */
    function baseSortedUniq(array, iteratee) {
      var index = -1,
          length = array.length,
          resIndex = 0,
          result = [];

      while (++index < length) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        if (!index || !eq(computed, seen)) {
          var seen = computed;
          result[resIndex++] = value === 0 ? 0 : value;
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.toNumber` which doesn't ensure correct
     * conversions of binary, hexadecimal, or octal string values.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     */
    function baseToNumber(value) {
      if (typeof value == 'number') {
        return value;
      }
      if (isSymbol(value)) {
        return NAN;
      }
      return +value;
    }

    /**
     * The base implementation of `_.toString` which doesn't convert nullish
     * values to empty strings.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {string} Returns the string.
     */
    function baseToString(value) {
      // Exit early for strings to avoid a performance hit in some environments.
      if (typeof value == 'string') {
        return value;
      }
      if (isArray(value)) {
        // Recursively convert values (susceptible to call stack limits).
        return arrayMap(value, baseToString) + '';
      }
      if (isSymbol(value)) {
        return symbolToString ? symbolToString.call(value) : '';
      }
      var result = (value + '');
      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
    }

    /**
     * The base implementation of `_.uniqBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */
    function baseUniq(array, iteratee, comparator) {
      var index = -1,
          includes = arrayIncludes,
          length = array.length,
          isCommon = true,
          result = [],
          seen = result;

      if (comparator) {
        isCommon = false;
        includes = arrayIncludesWith;
      }
      else if (length >= LARGE_ARRAY_SIZE) {
        var set = iteratee ? null : createSet(array);
        if (set) {
          return setToArray(set);
        }
        isCommon = false;
        includes = cacheHas;
        seen = new SetCache;
      }
      else {
        seen = iteratee ? [] : result;
      }
      outer:
      while (++index < length) {
        var value = array[index],
            computed = iteratee ? iteratee(value) : value;

        value = (comparator || value !== 0) ? value : 0;
        if (isCommon && computed === computed) {
          var seenIndex = seen.length;
          while (seenIndex--) {
            if (seen[seenIndex] === computed) {
              continue outer;
            }
          }
          if (iteratee) {
            seen.push(computed);
          }
          result.push(value);
        }
        else if (!includes(seen, computed, comparator)) {
          if (seen !== result) {
            seen.push(computed);
          }
          result.push(value);
        }
      }
      return result;
    }

    /**
     * The base implementation of `_.unset`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The property path to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     */
    function baseUnset(object, path) {
      path = castPath(path, object);
      object = parent(object, path);
      return object == null || delete object[toKey(last(path))];
    }

    /**
     * The base implementation of `_.update`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to update.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */
    function baseUpdate(object, path, updater, customizer) {
      return baseSet(object, path, updater(baseGet(object, path)), customizer);
    }

    /**
     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
     * without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {Function} predicate The function invoked per iteration.
     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the slice of `array`.
     */
    function baseWhile(array, predicate, isDrop, fromRight) {
      var length = array.length,
          index = fromRight ? length : -1;

      while ((fromRight ? index-- : ++index < length) &&
        predicate(array[index], index, array)) {}

      return isDrop
        ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
        : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
    }

    /**
     * The base implementation of `wrapperValue` which returns the result of
     * performing a sequence of actions on the unwrapped `value`, where each
     * successive action is supplied the return value of the previous.
     *
     * @private
     * @param {*} value The unwrapped value.
     * @param {Array} actions Actions to perform to resolve the unwrapped value.
     * @returns {*} Returns the resolved value.
     */
    function baseWrapperValue(value, actions) {
      var result = value;
      if (result instanceof LazyWrapper) {
        result = result.value();
      }
      return arrayReduce(actions, function(result, action) {
        return action.func.apply(action.thisArg, arrayPush([result], action.args));
      }, result);
    }

    /**
     * The base implementation of methods like `_.xor`, without support for
     * iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of values.
     */
    function baseXor(arrays, iteratee, comparator) {
      var length = arrays.length;
      if (length < 2) {
        return length ? baseUniq(arrays[0]) : [];
      }
      var index = -1,
          result = Array(length);

      while (++index < length) {
        var array = arrays[index],
            othIndex = -1;

        while (++othIndex < length) {
          if (othIndex != index) {
            result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
          }
        }
      }
      return baseUniq(baseFlatten(result, 1), iteratee, comparator);
    }

    /**
     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
     *
     * @private
     * @param {Array} props The property identifiers.
     * @param {Array} values The property values.
     * @param {Function} assignFunc The function to assign values.
     * @returns {Object} Returns the new object.
     */
    function baseZipObject(props, values, assignFunc) {
      var index = -1,
          length = props.length,
          valsLength = values.length,
          result = {};

      while (++index < length) {
        var value = index < valsLength ? values[index] : undefined;
        assignFunc(result, props[index], value);
      }
      return result;
    }

    /**
     * Casts `value` to an empty array if it's not an array like object.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Array|Object} Returns the cast array-like object.
     */
    function castArrayLikeObject(value) {
      return isArrayLikeObject(value) ? value : [];
    }

    /**
     * Casts `value` to `identity` if it's not a function.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Function} Returns cast function.
     */
    function castFunction(value) {
      return typeof value == 'function' ? value : identity;
    }

    /**
     * Casts `value` to a path array if it's not one.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {Object} [object] The object to query keys on.
     * @returns {Array} Returns the cast property path array.
     */
    function castPath(value, object) {
      if (isArray(value)) {
        return value;
      }
      return isKey(value, object) ? [value] : stringToPath(toString(value));
    }

    /**
     * A `baseRest` alias which can be replaced with `identity` by module
     * replacement plugins.
     *
     * @private
     * @type {Function}
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */
    var castRest = baseRest;

    /**
     * Casts `array` to a slice if it's needed.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {number} start The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the cast slice.
     */
    function castSlice(array, start, end) {
      var length = array.length;
      end = end === undefined ? length : end;
      return (!start && end >= length) ? array : baseSlice(array, start, end);
    }

    /**
     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
     *
     * @private
     * @param {number|Object} id The timer id or timeout object of the timer to clear.
     */
    var clearTimeout = ctxClearTimeout || function(id) {
      return root.clearTimeout(id);
    };

    /**
     * Creates a clone of  `buffer`.
     *
     * @private
     * @param {Buffer} buffer The buffer to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Buffer} Returns the cloned buffer.
     */
    function cloneBuffer(buffer, isDeep) {
      if (isDeep) {
        return buffer.slice();
      }
      var length = buffer.length,
          result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

      buffer.copy(result);
      return result;
    }

    /**
     * Creates a clone of `arrayBuffer`.
     *
     * @private
     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
     * @returns {ArrayBuffer} Returns the cloned array buffer.
     */
    function cloneArrayBuffer(arrayBuffer) {
      var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
      new Uint8Array(result).set(new Uint8Array(arrayBuffer));
      return result;
    }

    /**
     * Creates a clone of `dataView`.
     *
     * @private
     * @param {Object} dataView The data view to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned data view.
     */
    function cloneDataView(dataView, isDeep) {
      var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
      return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
    }

    /**
     * Creates a clone of `regexp`.
     *
     * @private
     * @param {Object} regexp The regexp to clone.
     * @returns {Object} Returns the cloned regexp.
     */
    function cloneRegExp(regexp) {
      var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
      result.lastIndex = regexp.lastIndex;
      return result;
    }

    /**
     * Creates a clone of the `symbol` object.
     *
     * @private
     * @param {Object} symbol The symbol object to clone.
     * @returns {Object} Returns the cloned symbol object.
     */
    function cloneSymbol(symbol) {
      return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
    }

    /**
     * Creates a clone of `typedArray`.
     *
     * @private
     * @param {Object} typedArray The typed array to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned typed array.
     */
    function cloneTypedArray(typedArray, isDeep) {
      var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
      return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
    }

    /**
     * Compares values to sort them in ascending order.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {number} Returns the sort order indicator for `value`.
     */
    function compareAscending(value, other) {
      if (value !== other) {
        var valIsDefined = value !== undefined,
            valIsNull = value === null,
            valIsReflexive = value === value,
            valIsSymbol = isSymbol(value);

        var othIsDefined = other !== undefined,
            othIsNull = other === null,
            othIsReflexive = other === other,
            othIsSymbol = isSymbol(other);

        if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
            (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
            (valIsNull && othIsDefined && othIsReflexive) ||
            (!valIsDefined && othIsReflexive) ||
            !valIsReflexive) {
          return 1;
        }
        if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
            (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
            (othIsNull && valIsDefined && valIsReflexive) ||
            (!othIsDefined && valIsReflexive) ||
            !othIsReflexive) {
          return -1;
        }
      }
      return 0;
    }

    /**
     * Used by `_.orderBy` to compare multiple properties of a value to another
     * and stable sort them.
     *
     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
     * specify an order of "desc" for descending or "asc" for ascending sort order
     * of corresponding values.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {boolean[]|string[]} orders The order to sort by for each property.
     * @returns {number} Returns the sort order indicator for `object`.
     */
    function compareMultiple(object, other, orders) {
      var index = -1,
          objCriteria = object.criteria,
          othCriteria = other.criteria,
          length = objCriteria.length,
          ordersLength = orders.length;

      while (++index < length) {
        var result = compareAscending(objCriteria[index], othCriteria[index]);
        if (result) {
          if (index >= ordersLength) {
            return result;
          }
          var order = orders[index];
          return result * (order == 'desc' ? -1 : 1);
        }
      }
      // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
      // that causes it, under certain circumstances, to provide the same value for
      // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
      // for more details.
      //
      // This also ensures a stable sort in V8 and other engines.
      // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
      return object.index - other.index;
    }

    /**
     * Creates an array that is the composition of partially applied arguments,
     * placeholders, and provided arguments into a single array of arguments.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to prepend to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */
    function composeArgs(args, partials, holders, isCurried) {
      var argsIndex = -1,
          argsLength = args.length,
          holdersLength = holders.length,
          leftIndex = -1,
          leftLength = partials.length,
          rangeLength = nativeMax(argsLength - holdersLength, 0),
          result = Array(leftLength + rangeLength),
          isUncurried = !isCurried;

      while (++leftIndex < leftLength) {
        result[leftIndex] = partials[leftIndex];
      }
      while (++argsIndex < holdersLength) {
        if (isUncurried || argsIndex < argsLength) {
          result[holders[argsIndex]] = args[argsIndex];
        }
      }
      while (rangeLength--) {
        result[leftIndex++] = args[argsIndex++];
      }
      return result;
    }

    /**
     * This function is like `composeArgs` except that the arguments composition
     * is tailored for `_.partialRight`.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to append to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */
    function composeArgsRight(args, partials, holders, isCurried) {
      var argsIndex = -1,
          argsLength = args.length,
          holdersIndex = -1,
          holdersLength = holders.length,
          rightIndex = -1,
          rightLength = partials.length,
          rangeLength = nativeMax(argsLength - holdersLength, 0),
          result = Array(rangeLength + rightLength),
          isUncurried = !isCurried;

      while (++argsIndex < rangeLength) {
        result[argsIndex] = args[argsIndex];
      }
      var offset = argsIndex;
      while (++rightIndex < rightLength) {
        result[offset + rightIndex] = partials[rightIndex];
      }
      while (++holdersIndex < holdersLength) {
        if (isUncurried || argsIndex < argsLength) {
          result[offset + holders[holdersIndex]] = args[argsIndex++];
        }
      }
      return result;
    }

    /**
     * Copies the values of `source` to `array`.
     *
     * @private
     * @param {Array} source The array to copy values from.
     * @param {Array} [array=[]] The array to copy values to.
     * @returns {Array} Returns `array`.
     */
    function copyArray(source, array) {
      var index = -1,
          length = source.length;

      array || (array = Array(length));
      while (++index < length) {
        array[index] = source[index];
      }
      return array;
    }

    /**
     * Copies properties of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy properties from.
     * @param {Array} props The property identifiers to copy.
     * @param {Object} [object={}] The object to copy properties to.
     * @param {Function} [customizer] The function to customize copied values.
     * @returns {Object} Returns `object`.
     */
    function copyObject(source, props, object, customizer) {
      var isNew = !object;
      object || (object = {});

      var index = -1,
          length = props.length;

      while (++index < length) {
        var key = props[index];

        var newValue = customizer
          ? customizer(object[key], source[key], key, object, source)
          : undefined;

        if (newValue === undefined) {
          newValue = source[key];
        }
        if (isNew) {
          baseAssignValue(object, key, newValue);
        } else {
          assignValue(object, key, newValue);
        }
      }
      return object;
    }

    /**
     * Copies own symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
    function copySymbols(source, object) {
      return copyObject(source, getSymbols(source), object);
    }

    /**
     * Copies own and inherited symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */
    function copySymbolsIn(source, object) {
      return copyObject(source, getSymbolsIn(source), object);
    }

    /**
     * Creates a function like `_.groupBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} [initializer] The accumulator object initializer.
     * @returns {Function} Returns the new aggregator function.
     */
    function createAggregator(setter, initializer) {
      return function(collection, iteratee) {
        var func = isArray(collection) ? arrayAggregator : baseAggregator,
            accumulator = initializer ? initializer() : {};

        return func(collection, setter, getIteratee(iteratee, 2), accumulator);
      };
    }

    /**
     * Creates a function like `_.assign`.
     *
     * @private
     * @param {Function} assigner The function to assign values.
     * @returns {Function} Returns the new assigner function.
     */
    function createAssigner(assigner) {
      return baseRest(function(object, sources) {
        var index = -1,
            length = sources.length,
            customizer = length > 1 ? sources[length - 1] : undefined,
            guard = length > 2 ? sources[2] : undefined;

        customizer = (assigner.length > 3 && typeof customizer == 'function')
          ? (length--, customizer)
          : undefined;

        if (guard && isIterateeCall(sources[0], sources[1], guard)) {
          customizer = length < 3 ? undefined : customizer;
          length = 1;
        }
        object = Object(object);
        while (++index < length) {
          var source = sources[index];
          if (source) {
            assigner(object, source, index, customizer);
          }
        }
        return object;
      });
    }

    /**
     * Creates a `baseEach` or `baseEachRight` function.
     *
     * @private
     * @param {Function} eachFunc The function to iterate over a collection.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */
    function createBaseEach(eachFunc, fromRight) {
      return function(collection, iteratee) {
        if (collection == null) {
          return collection;
        }
        if (!isArrayLike(collection)) {
          return eachFunc(collection, iteratee);
        }
        var length = collection.length,
            index = fromRight ? length : -1,
            iterable = Object(collection);

        while ((fromRight ? index-- : ++index < length)) {
          if (iteratee(iterable[index], index, iterable) === false) {
            break;
          }
        }
        return collection;
      };
    }

    /**
     * Creates a base function for methods like `_.forIn` and `_.forOwn`.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */
    function createBaseFor(fromRight) {
      return function(object, iteratee, keysFunc) {
        var index = -1,
            iterable = Object(object),
            props = keysFunc(object),
            length = props.length;

        while (length--) {
          var key = props[fromRight ? length : ++index];
          if (iteratee(iterable[key], key, iterable) === false) {
            break;
          }
        }
        return object;
      };
    }

    /**
     * Creates a function that wraps `func` to invoke it with the optional `this`
     * binding of `thisArg`.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createBind(func, bitmask, thisArg) {
      var isBind = bitmask & WRAP_BIND_FLAG,
          Ctor = createCtor(func);

      function wrapper() {
        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
        return fn.apply(isBind ? thisArg : this, arguments);
      }
      return wrapper;
    }

    /**
     * Creates a function like `_.lowerFirst`.
     *
     * @private
     * @param {string} methodName The name of the `String` case method to use.
     * @returns {Function} Returns the new case function.
     */
    function createCaseFirst(methodName) {
      return function(string) {
        string = toString(string);

        var strSymbols = hasUnicode(string)
          ? stringToArray(string)
          : undefined;

        var chr = strSymbols
          ? strSymbols[0]
          : string.charAt(0);

        var trailing = strSymbols
          ? castSlice(strSymbols, 1).join('')
          : string.slice(1);

        return chr[methodName]() + trailing;
      };
    }

    /**
     * Creates a function like `_.camelCase`.
     *
     * @private
     * @param {Function} callback The function to combine each word.
     * @returns {Function} Returns the new compounder function.
     */
    function createCompounder(callback) {
      return function(string) {
        return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
      };
    }

    /**
     * Creates a function that produces an instance of `Ctor` regardless of
     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
     *
     * @private
     * @param {Function} Ctor The constructor to wrap.
     * @returns {Function} Returns the new wrapped function.
     */
    function createCtor(Ctor) {
      return function() {
        // Use a `switch` statement to work with class constructors. See
        // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
        // for more details.
        var args = arguments;
        switch (args.length) {
          case 0: return new Ctor;
          case 1: return new Ctor(args[0]);
          case 2: return new Ctor(args[0], args[1]);
          case 3: return new Ctor(args[0], args[1], args[2]);
          case 4: return new Ctor(args[0], args[1], args[2], args[3]);
          case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
          case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
          case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
        }
        var thisBinding = baseCreate(Ctor.prototype),
            result = Ctor.apply(thisBinding, args);

        // Mimic the constructor's `return` behavior.
        // See https://es5.github.io/#x13.2.2 for more details.
        return isObject(result) ? result : thisBinding;
      };
    }

    /**
     * Creates a function that wraps `func` to enable currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {number} arity The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createCurry(func, bitmask, arity) {
      var Ctor = createCtor(func);

      function wrapper() {
        var length = arguments.length,
            args = Array(length),
            index = length,
            placeholder = getHolder(wrapper);

        while (index--) {
          args[index] = arguments[index];
        }
        var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
          ? []
          : replaceHolders(args, placeholder);

        length -= holders.length;
        if (length < arity) {
          return createRecurry(
            func, bitmask, createHybrid, wrapper.placeholder, undefined,
            args, holders, undefined, undefined, arity - length);
        }
        var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
        return apply(fn, this, args);
      }
      return wrapper;
    }

    /**
     * Creates a `_.find` or `_.findLast` function.
     *
     * @private
     * @param {Function} findIndexFunc The function to find the collection index.
     * @returns {Function} Returns the new find function.
     */
    function createFind(findIndexFunc) {
      return function(collection, predicate, fromIndex) {
        var iterable = Object(collection);
        if (!isArrayLike(collection)) {
          var iteratee = getIteratee(predicate, 3);
          collection = keys(collection);
          predicate = function(key) { return iteratee(iterable[key], key, iterable); };
        }
        var index = findIndexFunc(collection, predicate, fromIndex);
        return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
      };
    }

    /**
     * Creates a `_.flow` or `_.flowRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new flow function.
     */
    function createFlow(fromRight) {
      return flatRest(function(funcs) {
        var length = funcs.length,
            index = length,
            prereq = LodashWrapper.prototype.thru;

        if (fromRight) {
          funcs.reverse();
        }
        while (index--) {
          var func = funcs[index];
          if (typeof func != 'function') {
            throw new TypeError(FUNC_ERROR_TEXT);
          }
          if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
            var wrapper = new LodashWrapper([], true);
          }
        }
        index = wrapper ? index : length;
        while (++index < length) {
          func = funcs[index];

          var funcName = getFuncName(func),
              data = funcName == 'wrapper' ? getData(func) : undefined;

          if (data && isLaziable(data[0]) &&
                data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
                !data[4].length && data[9] == 1
              ) {
            wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
          } else {
            wrapper = (func.length == 1 && isLaziable(func))
              ? wrapper[funcName]()
              : wrapper.thru(func);
          }
        }
        return function() {
          var args = arguments,
              value = args[0];

          if (wrapper && args.length == 1 && isArray(value)) {
            return wrapper.plant(value).value();
          }
          var index = 0,
              result = length ? funcs[index].apply(this, args) : value;

          while (++index < length) {
            result = funcs[index].call(this, result);
          }
          return result;
        };
      });
    }

    /**
     * Creates a function that wraps `func` to invoke it with optional `this`
     * binding of `thisArg`, partial application, and currying.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [partialsRight] The arguments to append to those provided
     *  to the new function.
     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
      var isAry = bitmask & WRAP_ARY_FLAG,
          isBind = bitmask & WRAP_BIND_FLAG,
          isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
          isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
          isFlip = bitmask & WRAP_FLIP_FLAG,
          Ctor = isBindKey ? undefined : createCtor(func);

      function wrapper() {
        var length = arguments.length,
            args = Array(length),
            index = length;

        while (index--) {
          args[index] = arguments[index];
        }
        if (isCurried) {
          var placeholder = getHolder(wrapper),
              holdersCount = countHolders(args, placeholder);
        }
        if (partials) {
          args = composeArgs(args, partials, holders, isCurried);
        }
        if (partialsRight) {
          args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
        }
        length -= holdersCount;
        if (isCurried && length < arity) {
          var newHolders = replaceHolders(args, placeholder);
          return createRecurry(
            func, bitmask, createHybrid, wrapper.placeholder, thisArg,
            args, newHolders, argPos, ary, arity - length
          );
        }
        var thisBinding = isBind ? thisArg : this,
            fn = isBindKey ? thisBinding[func] : func;

        length = args.length;
        if (argPos) {
          args = reorder(args, argPos);
        } else if (isFlip && length > 1) {
          args.reverse();
        }
        if (isAry && ary < length) {
          args.length = ary;
        }
        if (this && this !== root && this instanceof wrapper) {
          fn = Ctor || createCtor(fn);
        }
        return fn.apply(thisBinding, args);
      }
      return wrapper;
    }

    /**
     * Creates a function like `_.invertBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} toIteratee The function to resolve iteratees.
     * @returns {Function} Returns the new inverter function.
     */
    function createInverter(setter, toIteratee) {
      return function(object, iteratee) {
        return baseInverter(object, setter, toIteratee(iteratee), {});
      };
    }

    /**
     * Creates a function that performs a mathematical operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @param {number} [defaultValue] The value used for `undefined` arguments.
     * @returns {Function} Returns the new mathematical operation function.
     */
    function createMathOperation(operator, defaultValue) {
      return function(value, other) {
        var result;
        if (value === undefined && other === undefined) {
          return defaultValue;
        }
        if (value !== undefined) {
          result = value;
        }
        if (other !== undefined) {
          if (result === undefined) {
            return other;
          }
          if (typeof value == 'string' || typeof other == 'string') {
            value = baseToString(value);
            other = baseToString(other);
          } else {
            value = baseToNumber(value);
            other = baseToNumber(other);
          }
          result = operator(value, other);
        }
        return result;
      };
    }

    /**
     * Creates a function like `_.over`.
     *
     * @private
     * @param {Function} arrayFunc The function to iterate over iteratees.
     * @returns {Function} Returns the new over function.
     */
    function createOver(arrayFunc) {
      return flatRest(function(iteratees) {
        iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
        return baseRest(function(args) {
          var thisArg = this;
          return arrayFunc(iteratees, function(iteratee) {
            return apply(iteratee, thisArg, args);
          });
        });
      });
    }

    /**
     * Creates the padding for `string` based on `length`. The `chars` string
     * is truncated if the number of characters exceeds `length`.
     *
     * @private
     * @param {number} length The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padding for `string`.
     */
    function createPadding(length, chars) {
      chars = chars === undefined ? ' ' : baseToString(chars);

      var charsLength = chars.length;
      if (charsLength < 2) {
        return charsLength ? baseRepeat(chars, length) : chars;
      }
      var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
      return hasUnicode(chars)
        ? castSlice(stringToArray(result), 0, length).join('')
        : result.slice(0, length);
    }

    /**
     * Creates a function that wraps `func` to invoke it with the `this` binding
     * of `thisArg` and `partials` prepended to the arguments it receives.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {Array} partials The arguments to prepend to those provided to
     *  the new function.
     * @returns {Function} Returns the new wrapped function.
     */
    function createPartial(func, bitmask, thisArg, partials) {
      var isBind = bitmask & WRAP_BIND_FLAG,
          Ctor = createCtor(func);

      function wrapper() {
        var argsIndex = -1,
            argsLength = arguments.length,
            leftIndex = -1,
            leftLength = partials.length,
            args = Array(leftLength + argsLength),
            fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;

        while (++leftIndex < leftLength) {
          args[leftIndex] = partials[leftIndex];
        }
        while (argsLength--) {
          args[leftIndex++] = arguments[++argsIndex];
        }
        return apply(fn, isBind ? thisArg : this, args);
      }
      return wrapper;
    }

    /**
     * Creates a `_.range` or `_.rangeRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new range function.
     */
    function createRange(fromRight) {
      return function(start, end, step) {
        if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
          end = step = undefined;
        }
        // Ensure the sign of `-0` is preserved.
        start = toFinite(start);
        if (end === undefined) {
          end = start;
          start = 0;
        } else {
          end = toFinite(end);
        }
        step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
        return baseRange(start, end, step, fromRight);
      };
    }

    /**
     * Creates a function that performs a relational operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @returns {Function} Returns the new relational operation function.
     */
    function createRelationalOperation(operator) {
      return function(value, other) {
        if (!(typeof value == 'string' && typeof other == 'string')) {
          value = toNumber(value);
          other = toNumber(other);
        }
        return operator(value, other);
      };
    }

    /**
     * Creates a function that wraps `func` to continue currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {Function} wrapFunc The function to create the `func` wrapper.
     * @param {*} placeholder The placeholder value.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
      var isCurry = bitmask & WRAP_CURRY_FLAG,
          newHolders = isCurry ? holders : undefined,
          newHoldersRight = isCurry ? undefined : holders,
          newPartials = isCurry ? partials : undefined,
          newPartialsRight = isCurry ? undefined : partials;

      bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
      bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);

      if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
        bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
      }
      var newData = [
        func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
        newHoldersRight, argPos, ary, arity
      ];

      var result = wrapFunc.apply(undefined, newData);
      if (isLaziable(func)) {
        setData(result, newData);
      }
      result.placeholder = placeholder;
      return setWrapToString(result, func, bitmask);
    }

    /**
     * Creates a function like `_.round`.
     *
     * @private
     * @param {string} methodName The name of the `Math` method to use when rounding.
     * @returns {Function} Returns the new round function.
     */
    function createRound(methodName) {
      var func = Math[methodName];
      return function(number, precision) {
        number = toNumber(number);
        precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
        if (precision && nativeIsFinite(number)) {
          // Shift with exponential notation to avoid floating-point issues.
          // See [MDN](https://mdn.io/round#Examples) for more details.
          var pair = (toString(number) + 'e').split('e'),
              value = func(pair[0] + 'e' + (+pair[1] + precision));

          pair = (toString(value) + 'e').split('e');
          return +(pair[0] + 'e' + (+pair[1] - precision));
        }
        return func(number);
      };
    }

    /**
     * Creates a set object of `values`.
     *
     * @private
     * @param {Array} values The values to add to the set.
     * @returns {Object} Returns the new set.
     */
    var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
      return new Set(values);
    };

    /**
     * Creates a `_.toPairs` or `_.toPairsIn` function.
     *
     * @private
     * @param {Function} keysFunc The function to get the keys of a given object.
     * @returns {Function} Returns the new pairs function.
     */
    function createToPairs(keysFunc) {
      return function(object) {
        var tag = getTag(object);
        if (tag == mapTag) {
          return mapToArray(object);
        }
        if (tag == setTag) {
          return setToPairs(object);
        }
        return baseToPairs(object, keysFunc(object));
      };
    }

    /**
     * Creates a function that either curries or invokes `func` with optional
     * `this` binding and partially applied arguments.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags.
     *    1 - `_.bind`
     *    2 - `_.bindKey`
     *    4 - `_.curry` or `_.curryRight` of a bound function
     *    8 - `_.curry`
     *   16 - `_.curryRight`
     *   32 - `_.partial`
     *   64 - `_.partialRight`
     *  128 - `_.rearg`
     *  256 - `_.ary`
     *  512 - `_.flip`
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to be partially applied.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */
    function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
      var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
      if (!isBindKey && typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      var length = partials ? partials.length : 0;
      if (!length) {
        bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
        partials = holders = undefined;
      }
      ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
      arity = arity === undefined ? arity : toInteger(arity);
      length -= holders ? holders.length : 0;

      if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
        var partialsRight = partials,
            holdersRight = holders;

        partials = holders = undefined;
      }
      var data = isBindKey ? undefined : getData(func);

      var newData = [
        func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
        argPos, ary, arity
      ];

      if (data) {
        mergeData(newData, data);
      }
      func = newData[0];
      bitmask = newData[1];
      thisArg = newData[2];
      partials = newData[3];
      holders = newData[4];
      arity = newData[9] = newData[9] === undefined
        ? (isBindKey ? 0 : func.length)
        : nativeMax(newData[9] - length, 0);

      if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
        bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
      }
      if (!bitmask || bitmask == WRAP_BIND_FLAG) {
        var result = createBind(func, bitmask, thisArg);
      } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
        result = createCurry(func, bitmask, arity);
      } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
        result = createPartial(func, bitmask, thisArg, partials);
      } else {
        result = createHybrid.apply(undefined, newData);
      }
      var setter = data ? baseSetData : setData;
      return setWrapToString(setter(result, newData), func, bitmask);
    }

    /**
     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
     * of source objects to the destination object for all destination properties
     * that resolve to `undefined`.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to assign.
     * @param {Object} object The parent object of `objValue`.
     * @returns {*} Returns the value to assign.
     */
    function customDefaultsAssignIn(objValue, srcValue, key, object) {
      if (objValue === undefined ||
          (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
        return srcValue;
      }
      return objValue;
    }

    /**
     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
     * objects into destination objects that are passed thru.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to merge.
     * @param {Object} object The parent object of `objValue`.
     * @param {Object} source The parent object of `srcValue`.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     * @returns {*} Returns the value to assign.
     */
    function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
      if (isObject(objValue) && isObject(srcValue)) {
        // Recursively merge objects and arrays (susceptible to call stack limits).
        stack.set(srcValue, objValue);
        baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
        stack['delete'](srcValue);
      }
      return objValue;
    }

    /**
     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
     * objects.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {string} key The key of the property to inspect.
     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
     */
    function customOmitClone(value) {
      return isPlainObject(value) ? undefined : value;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for arrays with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Array} array The array to compare.
     * @param {Array} other The other array to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `array` and `other` objects.
     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
     */
    function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
          arrLength = array.length,
          othLength = other.length;

      if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
        return false;
      }
      // Check that cyclic values are equal.
      var arrStacked = stack.get(array);
      var othStacked = stack.get(other);
      if (arrStacked && othStacked) {
        return arrStacked == other && othStacked == array;
      }
      var index = -1,
          result = true,
          seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;

      stack.set(array, other);
      stack.set(other, array);

      // Ignore non-index properties.
      while (++index < arrLength) {
        var arrValue = array[index],
            othValue = other[index];

        if (customizer) {
          var compared = isPartial
            ? customizer(othValue, arrValue, index, other, array, stack)
            : customizer(arrValue, othValue, index, array, other, stack);
        }
        if (compared !== undefined) {
          if (compared) {
            continue;
          }
          result = false;
          break;
        }
        // Recursively compare arrays (susceptible to call stack limits).
        if (seen) {
          if (!arraySome(other, function(othValue, othIndex) {
                if (!cacheHas(seen, othIndex) &&
                    (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
                  return seen.push(othIndex);
                }
              })) {
            result = false;
            break;
          }
        } else if (!(
              arrValue === othValue ||
                equalFunc(arrValue, othValue, bitmask, customizer, stack)
            )) {
          result = false;
          break;
        }
      }
      stack['delete'](array);
      stack['delete'](other);
      return result;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for comparing objects of
     * the same `toStringTag`.
     *
     * **Note:** This function only supports comparing values with tags of
     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {string} tag The `toStringTag` of the objects to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
      switch (tag) {
        case dataViewTag:
          if ((object.byteLength != other.byteLength) ||
              (object.byteOffset != other.byteOffset)) {
            return false;
          }
          object = object.buffer;
          other = other.buffer;

        case arrayBufferTag:
          if ((object.byteLength != other.byteLength) ||
              !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
            return false;
          }
          return true;

        case boolTag:
        case dateTag:
        case numberTag:
          // Coerce booleans to `1` or `0` and dates to milliseconds.
          // Invalid dates are coerced to `NaN`.
          return eq(+object, +other);

        case errorTag:
          return object.name == other.name && object.message == other.message;

        case regexpTag:
        case stringTag:
          // Coerce regexes to strings and treat strings, primitives and objects,
          // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
          // for more details.
          return object == (other + '');

        case mapTag:
          var convert = mapToArray;

        case setTag:
          var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
          convert || (convert = setToArray);

          if (object.size != other.size && !isPartial) {
            return false;
          }
          // Assume cyclic values are equal.
          var stacked = stack.get(object);
          if (stacked) {
            return stacked == other;
          }
          bitmask |= COMPARE_UNORDERED_FLAG;

          // Recursively compare objects (susceptible to call stack limits).
          stack.set(object, other);
          var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
          stack['delete'](object);
          return result;

        case symbolTag:
          if (symbolValueOf) {
            return symbolValueOf.call(object) == symbolValueOf.call(other);
          }
      }
      return false;
    }

    /**
     * A specialized version of `baseIsEqualDeep` for objects with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */
    function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
          objProps = getAllKeys(object),
          objLength = objProps.length,
          othProps = getAllKeys(other),
          othLength = othProps.length;

      if (objLength != othLength && !isPartial) {
        return false;
      }
      var index = objLength;
      while (index--) {
        var key = objProps[index];
        if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
          return false;
        }
      }
      // Check that cyclic values are equal.
      var objStacked = stack.get(object);
      var othStacked = stack.get(other);
      if (objStacked && othStacked) {
        return objStacked == other && othStacked == object;
      }
      var result = true;
      stack.set(object, other);
      stack.set(other, object);

      var skipCtor = isPartial;
      while (++index < objLength) {
        key = objProps[index];
        var objValue = object[key],
            othValue = other[key];

        if (customizer) {
          var compared = isPartial
            ? customizer(othValue, objValue, key, other, object, stack)
            : customizer(objValue, othValue, key, object, other, stack);
        }
        // Recursively compare objects (susceptible to call stack limits).
        if (!(compared === undefined
              ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
              : compared
            )) {
          result = false;
          break;
        }
        skipCtor || (skipCtor = key == 'constructor');
      }
      if (result && !skipCtor) {
        var objCtor = object.constructor,
            othCtor = other.constructor;

        // Non `Object` object instances with different constructors are not equal.
        if (objCtor != othCtor &&
            ('constructor' in object && 'constructor' in other) &&
            !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
              typeof othCtor == 'function' && othCtor instanceof othCtor)) {
          result = false;
        }
      }
      stack['delete'](object);
      stack['delete'](other);
      return result;
    }

    /**
     * A specialized version of `baseRest` which flattens the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */
    function flatRest(func) {
      return setToString(overRest(func, undefined, flatten), func + '');
    }

    /**
     * Creates an array of own enumerable property names and symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function getAllKeys(object) {
      return baseGetAllKeys(object, keys, getSymbols);
    }

    /**
     * Creates an array of own and inherited enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */
    function getAllKeysIn(object) {
      return baseGetAllKeys(object, keysIn, getSymbolsIn);
    }

    /**
     * Gets metadata for `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {*} Returns the metadata for `func`.
     */
    var getData = !metaMap ? noop : function(func) {
      return metaMap.get(func);
    };

    /**
     * Gets the name of `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {string} Returns the function name.
     */
    function getFuncName(func) {
      var result = (func.name + ''),
          array = realNames[result],
          length = hasOwnProperty.call(realNames, result) ? array.length : 0;

      while (length--) {
        var data = array[length],
            otherFunc = data.func;
        if (otherFunc == null || otherFunc == func) {
          return data.name;
        }
      }
      return result;
    }

    /**
     * Gets the argument placeholder value for `func`.
     *
     * @private
     * @param {Function} func The function to inspect.
     * @returns {*} Returns the placeholder value.
     */
    function getHolder(func) {
      var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
      return object.placeholder;
    }

    /**
     * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
     * this function returns the custom method, otherwise it returns `baseIteratee`.
     * If arguments are provided, the chosen function is invoked with them and
     * its result is returned.
     *
     * @private
     * @param {*} [value] The value to convert to an iteratee.
     * @param {number} [arity] The arity of the created iteratee.
     * @returns {Function} Returns the chosen function or its result.
     */
    function getIteratee() {
      var result = lodash.iteratee || iteratee;
      result = result === iteratee ? baseIteratee : result;
      return arguments.length ? result(arguments[0], arguments[1]) : result;
    }

    /**
     * Gets the data for `map`.
     *
     * @private
     * @param {Object} map The map to query.
     * @param {string} key The reference key.
     * @returns {*} Returns the map data.
     */
    function getMapData(map, key) {
      var data = map.__data__;
      return isKeyable(key)
        ? data[typeof key == 'string' ? 'string' : 'hash']
        : data.map;
    }

    /**
     * Gets the property names, values, and compare flags of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the match data of `object`.
     */
    function getMatchData(object) {
      var result = keys(object),
          length = result.length;

      while (length--) {
        var key = result[length],
            value = object[key];

        result[length] = [key, value, isStrictComparable(value)];
      }
      return result;
    }

    /**
     * Gets the native function at `key` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the method to get.
     * @returns {*} Returns the function if it's native, else `undefined`.
     */
    function getNative(object, key) {
      var value = getValue(object, key);
      return baseIsNative(value) ? value : undefined;
    }

    /**
     * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the raw `toStringTag`.
     */
    function getRawTag(value) {
      var isOwn = hasOwnProperty.call(value, symToStringTag),
          tag = value[symToStringTag];

      try {
        value[symToStringTag] = undefined;
        var unmasked = true;
      } catch (e) {}

      var result = nativeObjectToString.call(value);
      if (unmasked) {
        if (isOwn) {
          value[symToStringTag] = tag;
        } else {
          delete value[symToStringTag];
        }
      }
      return result;
    }

    /**
     * Creates an array of the own enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
    var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
      if (object == null) {
        return [];
      }
      object = Object(object);
      return arrayFilter(nativeGetSymbols(object), function(symbol) {
        return propertyIsEnumerable.call(object, symbol);
      });
    };

    /**
     * Creates an array of the own and inherited enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */
    var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
      var result = [];
      while (object) {
        arrayPush(result, getSymbols(object));
        object = getPrototype(object);
      }
      return result;
    };

    /**
     * Gets the `toStringTag` of `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */
    var getTag = baseGetTag;

    // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
    if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
        (Map && getTag(new Map) != mapTag) ||
        (Promise && getTag(Promise.resolve()) != promiseTag) ||
        (Set && getTag(new Set) != setTag) ||
        (WeakMap && getTag(new WeakMap) != weakMapTag)) {
      getTag = function(value) {
        var result = baseGetTag(value),
            Ctor = result == objectTag ? value.constructor : undefined,
            ctorString = Ctor ? toSource(Ctor) : '';

        if (ctorString) {
          switch (ctorString) {
            case dataViewCtorString: return dataViewTag;
            case mapCtorString: return mapTag;
            case promiseCtorString: return promiseTag;
            case setCtorString: return setTag;
            case weakMapCtorString: return weakMapTag;
          }
        }
        return result;
      };
    }

    /**
     * Gets the view, applying any `transforms` to the `start` and `end` positions.
     *
     * @private
     * @param {number} start The start of the view.
     * @param {number} end The end of the view.
     * @param {Array} transforms The transformations to apply to the view.
     * @returns {Object} Returns an object containing the `start` and `end`
     *  positions of the view.
     */
    function getView(start, end, transforms) {
      var index = -1,
          length = transforms.length;

      while (++index < length) {
        var data = transforms[index],
            size = data.size;

        switch (data.type) {
          case 'drop':      start += size; break;
          case 'dropRight': end -= size; break;
          case 'take':      end = nativeMin(end, start + size); break;
          case 'takeRight': start = nativeMax(start, end - size); break;
        }
      }
      return { 'start': start, 'end': end };
    }

    /**
     * Extracts wrapper details from the `source` body comment.
     *
     * @private
     * @param {string} source The source to inspect.
     * @returns {Array} Returns the wrapper details.
     */
    function getWrapDetails(source) {
      var match = source.match(reWrapDetails);
      return match ? match[1].split(reSplitDetails) : [];
    }

    /**
     * Checks if `path` exists on `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @param {Function} hasFunc The function to check properties.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     */
    function hasPath(object, path, hasFunc) {
      path = castPath(path, object);

      var index = -1,
          length = path.length,
          result = false;

      while (++index < length) {
        var key = toKey(path[index]);
        if (!(result = object != null && hasFunc(object, key))) {
          break;
        }
        object = object[key];
      }
      if (result || ++index != length) {
        return result;
      }
      length = object == null ? 0 : object.length;
      return !!length && isLength(length) && isIndex(key, length) &&
        (isArray(object) || isArguments(object));
    }

    /**
     * Initializes an array clone.
     *
     * @private
     * @param {Array} array The array to clone.
     * @returns {Array} Returns the initialized clone.
     */
    function initCloneArray(array) {
      var length = array.length,
          result = new array.constructor(length);

      // Add properties assigned by `RegExp#exec`.
      if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
        result.index = array.index;
        result.input = array.input;
      }
      return result;
    }

    /**
     * Initializes an object clone.
     *
     * @private
     * @param {Object} object The object to clone.
     * @returns {Object} Returns the initialized clone.
     */
    function initCloneObject(object) {
      return (typeof object.constructor == 'function' && !isPrototype(object))
        ? baseCreate(getPrototype(object))
        : {};
    }

    /**
     * Initializes an object clone based on its `toStringTag`.
     *
     * **Note:** This function only supports cloning values with tags of
     * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
     *
     * @private
     * @param {Object} object The object to clone.
     * @param {string} tag The `toStringTag` of the object to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the initialized clone.
     */
    function initCloneByTag(object, tag, isDeep) {
      var Ctor = object.constructor;
      switch (tag) {
        case arrayBufferTag:
          return cloneArrayBuffer(object);

        case boolTag:
        case dateTag:
          return new Ctor(+object);

        case dataViewTag:
          return cloneDataView(object, isDeep);

        case float32Tag: case float64Tag:
        case int8Tag: case int16Tag: case int32Tag:
        case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
          return cloneTypedArray(object, isDeep);

        case mapTag:
          return new Ctor;

        case numberTag:
        case stringTag:
          return new Ctor(object);

        case regexpTag:
          return cloneRegExp(object);

        case setTag:
          return new Ctor;

        case symbolTag:
          return cloneSymbol(object);
      }
    }

    /**
     * Inserts wrapper `details` in a comment at the top of the `source` body.
     *
     * @private
     * @param {string} source The source to modify.
     * @returns {Array} details The details to insert.
     * @returns {string} Returns the modified source.
     */
    function insertWrapDetails(source, details) {
      var length = details.length;
      if (!length) {
        return source;
      }
      var lastIndex = length - 1;
      details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
      details = details.join(length > 2 ? ', ' : ' ');
      return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
    }

    /**
     * Checks if `value` is a flattenable `arguments` object or array.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
     */
    function isFlattenable(value) {
      return isArray(value) || isArguments(value) ||
        !!(spreadableSymbol && value && value[spreadableSymbol]);
    }

    /**
     * Checks if `value` is a valid array-like index.
     *
     * @private
     * @param {*} value The value to check.
     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
     */
    function isIndex(value, length) {
      var type = typeof value;
      length = length == null ? MAX_SAFE_INTEGER : length;

      return !!length &&
        (type == 'number' ||
          (type != 'symbol' && reIsUint.test(value))) &&
            (value > -1 && value % 1 == 0 && value < length);
    }

    /**
     * Checks if the given arguments are from an iteratee call.
     *
     * @private
     * @param {*} value The potential iteratee value argument.
     * @param {*} index The potential iteratee index or key argument.
     * @param {*} object The potential iteratee object argument.
     * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
     *  else `false`.
     */
    function isIterateeCall(value, index, object) {
      if (!isObject(object)) {
        return false;
      }
      var type = typeof index;
      if (type == 'number'
            ? (isArrayLike(object) && isIndex(index, object.length))
            : (type == 'string' && index in object)
          ) {
        return eq(object[index], value);
      }
      return false;
    }

    /**
     * Checks if `value` is a property name and not a property path.
     *
     * @private
     * @param {*} value The value to check.
     * @param {Object} [object] The object to query keys on.
     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
     */
    function isKey(value, object) {
      if (isArray(value)) {
        return false;
      }
      var type = typeof value;
      if (type == 'number' || type == 'symbol' || type == 'boolean' ||
          value == null || isSymbol(value)) {
        return true;
      }
      return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
        (object != null && value in Object(object));
    }

    /**
     * Checks if `value` is suitable for use as unique object key.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
     */
    function isKeyable(value) {
      var type = typeof value;
      return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
        ? (value !== '__proto__')
        : (value === null);
    }

    /**
     * Checks if `func` has a lazy counterpart.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
     *  else `false`.
     */
    function isLaziable(func) {
      var funcName = getFuncName(func),
          other = lodash[funcName];

      if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
        return false;
      }
      if (func === other) {
        return true;
      }
      var data = getData(other);
      return !!data && func === data[0];
    }

    /**
     * Checks if `func` has its source masked.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` is masked, else `false`.
     */
    function isMasked(func) {
      return !!maskSrcKey && (maskSrcKey in func);
    }

    /**
     * Checks if `func` is capable of being masked.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
     */
    var isMaskable = coreJsData ? isFunction : stubFalse;

    /**
     * Checks if `value` is likely a prototype object.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
     */
    function isPrototype(value) {
      var Ctor = value && value.constructor,
          proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

      return value === proto;
    }

    /**
     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` if suitable for strict
     *  equality comparisons, else `false`.
     */
    function isStrictComparable(value) {
      return value === value && !isObject(value);
    }

    /**
     * A specialized version of `matchesProperty` for source values suitable
     * for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {string} key The key of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */
    function matchesStrictComparable(key, srcValue) {
      return function(object) {
        if (object == null) {
          return false;
        }
        return object[key] === srcValue &&
          (srcValue !== undefined || (key in Object(object)));
      };
    }

    /**
     * A specialized version of `_.memoize` which clears the memoized function's
     * cache when it exceeds `MAX_MEMOIZE_SIZE`.
     *
     * @private
     * @param {Function} func The function to have its output memoized.
     * @returns {Function} Returns the new memoized function.
     */
    function memoizeCapped(func) {
      var result = memoize(func, function(key) {
        if (cache.size === MAX_MEMOIZE_SIZE) {
          cache.clear();
        }
        return key;
      });

      var cache = result.cache;
      return result;
    }

    /**
     * Merges the function metadata of `source` into `data`.
     *
     * Merging metadata reduces the number of wrappers used to invoke a function.
     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
     * may be applied regardless of execution order. Methods like `_.ary` and
     * `_.rearg` modify function arguments, making the order in which they are
     * executed important, preventing the merging of metadata. However, we make
     * an exception for a safe combined case where curried functions have `_.ary`
     * and or `_.rearg` applied.
     *
     * @private
     * @param {Array} data The destination metadata.
     * @param {Array} source The source metadata.
     * @returns {Array} Returns `data`.
     */
    function mergeData(data, source) {
      var bitmask = data[1],
          srcBitmask = source[1],
          newBitmask = bitmask | srcBitmask,
          isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);

      var isCombo =
        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
        ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
        ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));

      // Exit early if metadata can't be merged.
      if (!(isCommon || isCombo)) {
        return data;
      }
      // Use source `thisArg` if available.
      if (srcBitmask & WRAP_BIND_FLAG) {
        data[2] = source[2];
        // Set when currying a bound function.
        newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
      }
      // Compose partial arguments.
      var value = source[3];
      if (value) {
        var partials = data[3];
        data[3] = partials ? composeArgs(partials, value, source[4]) : value;
        data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
      }
      // Compose partial right arguments.
      value = source[5];
      if (value) {
        partials = data[5];
        data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
        data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
      }
      // Use source `argPos` if available.
      value = source[7];
      if (value) {
        data[7] = value;
      }
      // Use source `ary` if it's smaller.
      if (srcBitmask & WRAP_ARY_FLAG) {
        data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
      }
      // Use source `arity` if one is not provided.
      if (data[9] == null) {
        data[9] = source[9];
      }
      // Use source `func` and merge bitmasks.
      data[0] = source[0];
      data[1] = newBitmask;

      return data;
    }

    /**
     * This function is like
     * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * except that it includes inherited enumerable properties.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */
    function nativeKeysIn(object) {
      var result = [];
      if (object != null) {
        for (var key in Object(object)) {
          result.push(key);
        }
      }
      return result;
    }

    /**
     * Converts `value` to a string using `Object.prototype.toString`.
     *
     * @private
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     */
    function objectToString(value) {
      return nativeObjectToString.call(value);
    }

    /**
     * A specialized version of `baseRest` which transforms the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @param {Function} transform The rest array transform.
     * @returns {Function} Returns the new function.
     */
    function overRest(func, start, transform) {
      start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
      return function() {
        var args = arguments,
            index = -1,
            length = nativeMax(args.length - start, 0),
            array = Array(length);

        while (++index < length) {
          array[index] = args[start + index];
        }
        index = -1;
        var otherArgs = Array(start + 1);
        while (++index < start) {
          otherArgs[index] = args[index];
        }
        otherArgs[start] = transform(array);
        return apply(func, this, otherArgs);
      };
    }

    /**
     * Gets the parent value at `path` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array} path The path to get the parent value of.
     * @returns {*} Returns the parent value.
     */
    function parent(object, path) {
      return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
    }

    /**
     * Reorder `array` according to the specified indexes where the element at
     * the first index is assigned as the first element, the element at
     * the second index is assigned as the second element, and so on.
     *
     * @private
     * @param {Array} array The array to reorder.
     * @param {Array} indexes The arranged array indexes.
     * @returns {Array} Returns `array`.
     */
    function reorder(array, indexes) {
      var arrLength = array.length,
          length = nativeMin(indexes.length, arrLength),
          oldArray = copyArray(array);

      while (length--) {
        var index = indexes[length];
        array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
      }
      return array;
    }

    /**
     * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the property to get.
     * @returns {*} Returns the property value.
     */
    function safeGet(object, key) {
      if (key === 'constructor' && typeof object[key] === 'function') {
        return;
      }

      if (key == '__proto__') {
        return;
      }

      return object[key];
    }

    /**
     * Sets metadata for `func`.
     *
     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
     * period of time, it will trip its breaker and transition to an identity
     * function to avoid garbage collection pauses in V8. See
     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
     * for more details.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */
    var setData = shortOut(baseSetData);

    /**
     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @returns {number|Object} Returns the timer id or timeout object.
     */
    var setTimeout = ctxSetTimeout || function(func, wait) {
      return root.setTimeout(func, wait);
    };

    /**
     * Sets the `toString` method of `func` to return `string`.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */
    var setToString = shortOut(baseSetToString);

    /**
     * Sets the `toString` method of `wrapper` to mimic the source of `reference`
     * with wrapper details in a comment at the top of the source body.
     *
     * @private
     * @param {Function} wrapper The function to modify.
     * @param {Function} reference The reference function.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Function} Returns `wrapper`.
     */
    function setWrapToString(wrapper, reference, bitmask) {
      var source = (reference + '');
      return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
    }

    /**
     * Creates a function that'll short out and invoke `identity` instead
     * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
     * milliseconds.
     *
     * @private
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new shortable function.
     */
    function shortOut(func) {
      var count = 0,
          lastCalled = 0;

      return function() {
        var stamp = nativeNow(),
            remaining = HOT_SPAN - (stamp - lastCalled);

        lastCalled = stamp;
        if (remaining > 0) {
          if (++count >= HOT_COUNT) {
            return arguments[0];
          }
        } else {
          count = 0;
        }
        return func.apply(undefined, arguments);
      };
    }

    /**
     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @param {number} [size=array.length] The size of `array`.
     * @returns {Array} Returns `array`.
     */
    function shuffleSelf(array, size) {
      var index = -1,
          length = array.length,
          lastIndex = length - 1;

      size = size === undefined ? length : size;
      while (++index < size) {
        var rand = baseRandom(index, lastIndex),
            value = array[rand];

        array[rand] = array[index];
        array[index] = value;
      }
      array.length = size;
      return array;
    }

    /**
     * Converts `string` to a property path array.
     *
     * @private
     * @param {string} string The string to convert.
     * @returns {Array} Returns the property path array.
     */
    var stringToPath = memoizeCapped(function(string) {
      var result = [];
      if (string.charCodeAt(0) === 46 /* . */) {
        result.push('');
      }
      string.replace(rePropName, function(match, number, quote, subString) {
        result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
      });
      return result;
    });

    /**
     * Converts `value` to a string key if it's not a string or symbol.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {string|symbol} Returns the key.
     */
    function toKey(value) {
      if (typeof value == 'string' || isSymbol(value)) {
        return value;
      }
      var result = (value + '');
      return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
    }

    /**
     * Converts `func` to its source code.
     *
     * @private
     * @param {Function} func The function to convert.
     * @returns {string} Returns the source code.
     */
    function toSource(func) {
      if (func != null) {
        try {
          return funcToString.call(func);
        } catch (e) {}
        try {
          return (func + '');
        } catch (e) {}
      }
      return '';
    }

    /**
     * Updates wrapper `details` based on `bitmask` flags.
     *
     * @private
     * @returns {Array} details The details to modify.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Array} Returns `details`.
     */
    function updateWrapDetails(details, bitmask) {
      arrayEach(wrapFlags, function(pair) {
        var value = '_.' + pair[0];
        if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
          details.push(value);
        }
      });
      return details.sort();
    }

    /**
     * Creates a clone of `wrapper`.
     *
     * @private
     * @param {Object} wrapper The wrapper to clone.
     * @returns {Object} Returns the cloned wrapper.
     */
    function wrapperClone(wrapper) {
      if (wrapper instanceof LazyWrapper) {
        return wrapper.clone();
      }
      var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
      result.__actions__ = copyArray(wrapper.__actions__);
      result.__index__  = wrapper.__index__;
      result.__values__ = wrapper.__values__;
      return result;
    }

    /*------------------------------------------------------------------------*/

    /**
     * Creates an array of elements split into groups the length of `size`.
     * If `array` can't be split evenly, the final chunk will be the remaining
     * elements.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to process.
     * @param {number} [size=1] The length of each chunk
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the new array of chunks.
     * @example
     *
     * _.chunk(['a', 'b', 'c', 'd'], 2);
     * // => [['a', 'b'], ['c', 'd']]
     *
     * _.chunk(['a', 'b', 'c', 'd'], 3);
     * // => [['a', 'b', 'c'], ['d']]
     */
    function chunk(array, size, guard) {
      if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
        size = 1;
      } else {
        size = nativeMax(toInteger(size), 0);
      }
      var length = array == null ? 0 : array.length;
      if (!length || size < 1) {
        return [];
      }
      var index = 0,
          resIndex = 0,
          result = Array(nativeCeil(length / size));

      while (index < length) {
        result[resIndex++] = baseSlice(array, index, (index += size));
      }
      return result;
    }

    /**
     * Creates an array with all falsey values removed. The values `false`, `null`,
     * `0`, `""`, `undefined`, and `NaN` are falsey.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to compact.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.compact([0, 1, false, 2, '', 3]);
     * // => [1, 2, 3]
     */
    function compact(array) {
      var index = -1,
          length = array == null ? 0 : array.length,
          resIndex = 0,
          result = [];

      while (++index < length) {
        var value = array[index];
        if (value) {
          result[resIndex++] = value;
        }
      }
      return result;
    }

    /**
     * Creates a new array concatenating `array` with any additional arrays
     * and/or values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to concatenate.
     * @param {...*} [values] The values to concatenate.
     * @returns {Array} Returns the new concatenated array.
     * @example
     *
     * var array = [1];
     * var other = _.concat(array, 2, [3], [[4]]);
     *
     * console.log(other);
     * // => [1, 2, 3, [4]]
     *
     * console.log(array);
     * // => [1]
     */
    function concat() {
      var length = arguments.length;
      if (!length) {
        return [];
      }
      var args = Array(length - 1),
          array = arguments[0],
          index = length;

      while (index--) {
        args[index - 1] = arguments[index];
      }
      return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
    }

    /**
     * Creates an array of `array` values not included in the other given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * **Note:** Unlike `_.pullAll`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.without, _.xor
     * @example
     *
     * _.difference([2, 1], [2, 3]);
     * // => [1]
     */
    var difference = baseRest(function(array, values) {
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
        : [];
    });

    /**
     * This method is like `_.difference` except that it accepts `iteratee` which
     * is invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
    var differenceBy = baseRest(function(array, values) {
      var iteratee = last(values);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
        : [];
    });

    /**
     * This method is like `_.difference` except that it accepts `comparator`
     * which is invoked to compare elements of `array` to `values`. The order and
     * references of result values are determined by the first array. The comparator
     * is invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     *
     * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
     * // => [{ 'x': 2, 'y': 1 }]
     */
    var differenceWith = baseRest(function(array, values) {
      var comparator = last(values);
      if (isArrayLikeObject(comparator)) {
        comparator = undefined;
      }
      return isArrayLikeObject(array)
        ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
        : [];
    });

    /**
     * Creates a slice of `array` with `n` elements dropped from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.drop([1, 2, 3]);
     * // => [2, 3]
     *
     * _.drop([1, 2, 3], 2);
     * // => [3]
     *
     * _.drop([1, 2, 3], 5);
     * // => []
     *
     * _.drop([1, 2, 3], 0);
     * // => [1, 2, 3]
     */
    function drop(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      return baseSlice(array, n < 0 ? 0 : n, length);
    }

    /**
     * Creates a slice of `array` with `n` elements dropped from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.dropRight([1, 2, 3]);
     * // => [1, 2]
     *
     * _.dropRight([1, 2, 3], 2);
     * // => [1]
     *
     * _.dropRight([1, 2, 3], 5);
     * // => []
     *
     * _.dropRight([1, 2, 3], 0);
     * // => [1, 2, 3]
     */
    function dropRight(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      n = length - n;
      return baseSlice(array, 0, n < 0 ? 0 : n);
    }

    /**
     * Creates a slice of `array` excluding elements dropped from the end.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.dropRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropRightWhile(users, ['active', false]);
     * // => objects for ['barney']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropRightWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */
    function dropRightWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), true, true)
        : [];
    }

    /**
     * Creates a slice of `array` excluding elements dropped from the beginning.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.dropWhile(users, function(o) { return !o.active; });
     * // => objects for ['pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropWhile(users, ['active', false]);
     * // => objects for ['pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */
    function dropWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), true)
        : [];
    }

    /**
     * Fills elements of `array` with `value` from `start` up to, but not
     * including, `end`.
     *
     * **Note:** This method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Array
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.fill(array, 'a');
     * console.log(array);
     * // => ['a', 'a', 'a']
     *
     * _.fill(Array(3), 2);
     * // => [2, 2, 2]
     *
     * _.fill([4, 6, 8, 10], '*', 1, 3);
     * // => [4, '*', '*', 10]
     */
    function fill(array, value, start, end) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
        start = 0;
        end = length;
      }
      return baseFill(array, value, start, end);
    }

    /**
     * This method is like `_.find` except that it returns the index of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.findIndex(users, function(o) { return o.user == 'barney'; });
     * // => 0
     *
     * // The `_.matches` iteratee shorthand.
     * _.findIndex(users, { 'user': 'fred', 'active': false });
     * // => 1
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findIndex(users, ['active', false]);
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.findIndex(users, 'active');
     * // => 2
     */
    function findIndex(array, predicate, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = fromIndex == null ? 0 : toInteger(fromIndex);
      if (index < 0) {
        index = nativeMax(length + index, 0);
      }
      return baseFindIndex(array, getIteratee(predicate, 3), index);
    }

    /**
     * This method is like `_.findIndex` except that it iterates over elements
     * of `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
     * // => 2
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
     * // => 0
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastIndex(users, ['active', false]);
     * // => 2
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastIndex(users, 'active');
     * // => 0
     */
    function findLastIndex(array, predicate, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = length - 1;
      if (fromIndex !== undefined) {
        index = toInteger(fromIndex);
        index = fromIndex < 0
          ? nativeMax(length + index, 0)
          : nativeMin(index, length - 1);
      }
      return baseFindIndex(array, getIteratee(predicate, 3), index, true);
    }

    /**
     * Flattens `array` a single level deep.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flatten([1, [2, [3, [4]], 5]]);
     * // => [1, 2, [3, [4]], 5]
     */
    function flatten(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseFlatten(array, 1) : [];
    }

    /**
     * Recursively flattens `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flattenDeep([1, [2, [3, [4]], 5]]);
     * // => [1, 2, 3, 4, 5]
     */
    function flattenDeep(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseFlatten(array, INFINITY) : [];
    }

    /**
     * Recursively flatten `array` up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * var array = [1, [2, [3, [4]], 5]];
     *
     * _.flattenDepth(array, 1);
     * // => [1, 2, [3, [4]], 5]
     *
     * _.flattenDepth(array, 2);
     * // => [1, 2, 3, [4], 5]
     */
    function flattenDepth(array, depth) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      depth = depth === undefined ? 1 : toInteger(depth);
      return baseFlatten(array, depth);
    }

    /**
     * The inverse of `_.toPairs`; this method returns an object composed
     * from key-value `pairs`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} pairs The key-value pairs.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.fromPairs([['a', 1], ['b', 2]]);
     * // => { 'a': 1, 'b': 2 }
     */
    function fromPairs(pairs) {
      var index = -1,
          length = pairs == null ? 0 : pairs.length,
          result = {};

      while (++index < length) {
        var pair = pairs[index];
        result[pair[0]] = pair[1];
      }
      return result;
    }

    /**
     * Gets the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias first
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the first element of `array`.
     * @example
     *
     * _.head([1, 2, 3]);
     * // => 1
     *
     * _.head([]);
     * // => undefined
     */
    function head(array) {
      return (array && array.length) ? array[0] : undefined;
    }

    /**
     * Gets the index at which the first occurrence of `value` is found in `array`
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. If `fromIndex` is negative, it's used as the
     * offset from the end of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.indexOf([1, 2, 1, 2], 2);
     * // => 1
     *
     * // Search from the `fromIndex`.
     * _.indexOf([1, 2, 1, 2], 2, 2);
     * // => 3
     */
    function indexOf(array, value, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = fromIndex == null ? 0 : toInteger(fromIndex);
      if (index < 0) {
        index = nativeMax(length + index, 0);
      }
      return baseIndexOf(array, value, index);
    }

    /**
     * Gets all but the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.initial([1, 2, 3]);
     * // => [1, 2]
     */
    function initial(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseSlice(array, 0, -1) : [];
    }

    /**
     * Creates an array of unique values that are included in all given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersection([2, 1], [2, 3]);
     * // => [2]
     */
    var intersection = baseRest(function(arrays) {
      var mapped = arrayMap(arrays, castArrayLikeObject);
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped)
        : [];
    });

    /**
     * This method is like `_.intersection` except that it accepts `iteratee`
     * which is invoked for each element of each `arrays` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [2.1]
     *
     * // The `_.property` iteratee shorthand.
     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }]
     */
    var intersectionBy = baseRest(function(arrays) {
      var iteratee = last(arrays),
          mapped = arrayMap(arrays, castArrayLikeObject);

      if (iteratee === last(mapped)) {
        iteratee = undefined;
      } else {
        mapped.pop();
      }
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped, getIteratee(iteratee, 2))
        : [];
    });

    /**
     * This method is like `_.intersection` except that it accepts `comparator`
     * which is invoked to compare elements of `arrays`. The order and references
     * of result values are determined by the first array. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.intersectionWith(objects, others, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }]
     */
    var intersectionWith = baseRest(function(arrays) {
      var comparator = last(arrays),
          mapped = arrayMap(arrays, castArrayLikeObject);

      comparator = typeof comparator == 'function' ? comparator : undefined;
      if (comparator) {
        mapped.pop();
      }
      return (mapped.length && mapped[0] === arrays[0])
        ? baseIntersection(mapped, undefined, comparator)
        : [];
    });

    /**
     * Converts all elements in `array` into a string separated by `separator`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to convert.
     * @param {string} [separator=','] The element separator.
     * @returns {string} Returns the joined string.
     * @example
     *
     * _.join(['a', 'b', 'c'], '~');
     * // => 'a~b~c'
     */
    function join(array, separator) {
      return array == null ? '' : nativeJoin.call(array, separator);
    }

    /**
     * Gets the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the last element of `array`.
     * @example
     *
     * _.last([1, 2, 3]);
     * // => 3
     */
    function last(array) {
      var length = array == null ? 0 : array.length;
      return length ? array[length - 1] : undefined;
    }

    /**
     * This method is like `_.indexOf` except that it iterates over elements of
     * `array` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.lastIndexOf([1, 2, 1, 2], 2);
     * // => 3
     *
     * // Search from the `fromIndex`.
     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
     * // => 1
     */
    function lastIndexOf(array, value, fromIndex) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return -1;
      }
      var index = length;
      if (fromIndex !== undefined) {
        index = toInteger(fromIndex);
        index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
      }
      return value === value
        ? strictLastIndexOf(array, value, index)
        : baseFindIndex(array, baseIsNaN, index, true);
    }

    /**
     * Gets the element at index `n` of `array`. If `n` is negative, the nth
     * element from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.11.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=0] The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     *
     * _.nth(array, 1);
     * // => 'b'
     *
     * _.nth(array, -2);
     * // => 'c';
     */
    function nth(array, n) {
      return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
    }

    /**
     * Removes all given values from `array` using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
     * to remove elements from an array by predicate.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...*} [values] The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pull(array, 'a', 'c');
     * console.log(array);
     * // => ['b', 'b']
     */
    var pull = baseRest(pullAll);

    /**
     * This method is like `_.pull` except that it accepts an array of values to remove.
     *
     * **Note:** Unlike `_.difference`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pullAll(array, ['a', 'c']);
     * console.log(array);
     * // => ['b', 'b']
     */
    function pullAll(array, values) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values)
        : array;
    }

    /**
     * This method is like `_.pullAll` except that it accepts `iteratee` which is
     * invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The iteratee is invoked with one argument: (value).
     *
     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
     *
     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
     * console.log(array);
     * // => [{ 'x': 2 }]
     */
    function pullAllBy(array, values, iteratee) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values, getIteratee(iteratee, 2))
        : array;
    }

    /**
     * This method is like `_.pullAll` except that it accepts `comparator` which
     * is invoked to compare elements of `array` to `values`. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
     *
     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
     * console.log(array);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
     */
    function pullAllWith(array, values, comparator) {
      return (array && array.length && values && values.length)
        ? basePullAll(array, values, undefined, comparator)
        : array;
    }

    /**
     * Removes elements from `array` corresponding to `indexes` and returns an
     * array of removed elements.
     *
     * **Note:** Unlike `_.at`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...(number|number[])} [indexes] The indexes of elements to remove.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     * var pulled = _.pullAt(array, [1, 3]);
     *
     * console.log(array);
     * // => ['a', 'c']
     *
     * console.log(pulled);
     * // => ['b', 'd']
     */
    var pullAt = flatRest(function(array, indexes) {
      var length = array == null ? 0 : array.length,
          result = baseAt(array, indexes);

      basePullAt(array, arrayMap(indexes, function(index) {
        return isIndex(index, length) ? +index : index;
      }).sort(compareAscending));

      return result;
    });

    /**
     * Removes all elements from `array` that `predicate` returns truthy for
     * and returns an array of the removed elements. The predicate is invoked
     * with three arguments: (value, index, array).
     *
     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
     * to pull elements from an array by value.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = [1, 2, 3, 4];
     * var evens = _.remove(array, function(n) {
     *   return n % 2 == 0;
     * });
     *
     * console.log(array);
     * // => [1, 3]
     *
     * console.log(evens);
     * // => [2, 4]
     */
    function remove(array, predicate) {
      var result = [];
      if (!(array && array.length)) {
        return result;
      }
      var index = -1,
          indexes = [],
          length = array.length;

      predicate = getIteratee(predicate, 3);
      while (++index < length) {
        var value = array[index];
        if (predicate(value, index, array)) {
          result.push(value);
          indexes.push(index);
        }
      }
      basePullAt(array, indexes);
      return result;
    }

    /**
     * Reverses `array` so that the first element becomes the last, the second
     * element becomes the second to last, and so on.
     *
     * **Note:** This method mutates `array` and is based on
     * [`Array#reverse`](https://mdn.io/Array/reverse).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.reverse(array);
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
    function reverse(array) {
      return array == null ? array : nativeReverse.call(array);
    }

    /**
     * Creates a slice of `array` from `start` up to, but not including, `end`.
     *
     * **Note:** This method is used instead of
     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
     * returned.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */
    function slice(array, start, end) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
        start = 0;
        end = length;
      }
      else {
        start = start == null ? 0 : toInteger(start);
        end = end === undefined ? length : toInteger(end);
      }
      return baseSlice(array, start, end);
    }

    /**
     * Uses a binary search to determine the lowest index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedIndex([30, 50], 40);
     * // => 1
     */
    function sortedIndex(array, value) {
      return baseSortedIndex(array, value);
    }

    /**
     * This method is like `_.sortedIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
     * // => 0
     */
    function sortedIndexBy(array, value, iteratee) {
      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
    }

    /**
     * This method is like `_.indexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
     * // => 1
     */
    function sortedIndexOf(array, value) {
      var length = array == null ? 0 : array.length;
      if (length) {
        var index = baseSortedIndex(array, value);
        if (index < length && eq(array[index], value)) {
          return index;
        }
      }
      return -1;
    }

    /**
     * This method is like `_.sortedIndex` except that it returns the highest
     * index at which `value` should be inserted into `array` in order to
     * maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
     * // => 4
     */
    function sortedLastIndex(array, value) {
      return baseSortedIndex(array, value, true);
    }

    /**
     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 1
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
     * // => 1
     */
    function sortedLastIndexBy(array, value, iteratee) {
      return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
    }

    /**
     * This method is like `_.lastIndexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
     * // => 3
     */
    function sortedLastIndexOf(array, value) {
      var length = array == null ? 0 : array.length;
      if (length) {
        var index = baseSortedIndex(array, value, true) - 1;
        if (eq(array[index], value)) {
          return index;
        }
      }
      return -1;
    }

    /**
     * This method is like `_.uniq` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniq([1, 1, 2]);
     * // => [1, 2]
     */
    function sortedUniq(array) {
      return (array && array.length)
        ? baseSortedUniq(array)
        : [];
    }

    /**
     * This method is like `_.uniqBy` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
     * // => [1.1, 2.3]
     */
    function sortedUniqBy(array, iteratee) {
      return (array && array.length)
        ? baseSortedUniq(array, getIteratee(iteratee, 2))
        : [];
    }

    /**
     * Gets all but the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.tail([1, 2, 3]);
     * // => [2, 3]
     */
    function tail(array) {
      var length = array == null ? 0 : array.length;
      return length ? baseSlice(array, 1, length) : [];
    }

    /**
     * Creates a slice of `array` with `n` elements taken from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.take([1, 2, 3]);
     * // => [1]
     *
     * _.take([1, 2, 3], 2);
     * // => [1, 2]
     *
     * _.take([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.take([1, 2, 3], 0);
     * // => []
     */
    function take(array, n, guard) {
      if (!(array && array.length)) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      return baseSlice(array, 0, n < 0 ? 0 : n);
    }

    /**
     * Creates a slice of `array` with `n` elements taken from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.takeRight([1, 2, 3]);
     * // => [3]
     *
     * _.takeRight([1, 2, 3], 2);
     * // => [2, 3]
     *
     * _.takeRight([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.takeRight([1, 2, 3], 0);
     * // => []
     */
    function takeRight(array, n, guard) {
      var length = array == null ? 0 : array.length;
      if (!length) {
        return [];
      }
      n = (guard || n === undefined) ? 1 : toInteger(n);
      n = length - n;
      return baseSlice(array, n < 0 ? 0 : n, length);
    }

    /**
     * Creates a slice of `array` with elements taken from the end. Elements are
     * taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.takeRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeRightWhile(users, ['active', false]);
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeRightWhile(users, 'active');
     * // => []
     */
    function takeRightWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3), false, true)
        : [];
    }

    /**
     * Creates a slice of `array` with elements taken from the beginning. Elements
     * are taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.takeWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeWhile(users, ['active', false]);
     * // => objects for ['barney', 'fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeWhile(users, 'active');
     * // => []
     */
    function takeWhile(array, predicate) {
      return (array && array.length)
        ? baseWhile(array, getIteratee(predicate, 3))
        : [];
    }

    /**
     * Creates an array of unique values, in order, from all given arrays using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.union([2], [1, 2]);
     * // => [2, 1]
     */
    var union = baseRest(function(arrays) {
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
    });

    /**
     * This method is like `_.union` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which uniqueness is computed. Result values are chosen from the first
     * array in which the value occurs. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.unionBy([2.1], [1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
    var unionBy = baseRest(function(arrays) {
      var iteratee = last(arrays);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
    });

    /**
     * This method is like `_.union` except that it accepts `comparator` which
     * is invoked to compare elements of `arrays`. Result values are chosen from
     * the first array in which the value occurs. The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.unionWith(objects, others, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
     */
    var unionWith = baseRest(function(arrays) {
      var comparator = last(arrays);
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
    });

    /**
     * Creates a duplicate-free version of an array, using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons, in which only the first occurrence of each element
     * is kept. The order of result values is determined by the order they occur
     * in the array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniq([2, 1, 2]);
     * // => [2, 1]
     */
    function uniq(array) {
      return (array && array.length) ? baseUniq(array) : [];
    }

    /**
     * This method is like `_.uniq` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * uniqueness is computed. The order of result values is determined by the
     * order they occur in the array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */
    function uniqBy(array, iteratee) {
      return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
    }

    /**
     * This method is like `_.uniq` except that it accepts `comparator` which
     * is invoked to compare elements of `array`. The order of result values is
     * determined by the order they occur in the array.The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.uniqWith(objects, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
     */
    function uniqWith(array, comparator) {
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
    }

    /**
     * This method is like `_.zip` except that it accepts an array of grouped
     * elements and creates an array regrouping the elements to their pre-zip
     * configuration.
     *
     * @static
     * @memberOf _
     * @since 1.2.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     *
     * _.unzip(zipped);
     * // => [['a', 'b'], [1, 2], [true, false]]
     */
    function unzip(array) {
      if (!(array && array.length)) {
        return [];
      }
      var length = 0;
      array = arrayFilter(array, function(group) {
        if (isArrayLikeObject(group)) {
          length = nativeMax(group.length, length);
          return true;
        }
      });
      return baseTimes(length, function(index) {
        return arrayMap(array, baseProperty(index));
      });
    }

    /**
     * This method is like `_.unzip` except that it accepts `iteratee` to specify
     * how regrouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  regrouped values.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
     * // => [[1, 10, 100], [2, 20, 200]]
     *
     * _.unzipWith(zipped, _.add);
     * // => [3, 30, 300]
     */
    function unzipWith(array, iteratee) {
      if (!(array && array.length)) {
        return [];
      }
      var result = unzip(array);
      if (iteratee == null) {
        return result;
      }
      return arrayMap(result, function(group) {
        return apply(iteratee, undefined, group);
      });
    }

    /**
     * Creates an array excluding all given values using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.pull`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...*} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.xor
     * @example
     *
     * _.without([2, 1, 2, 3], 1, 2);
     * // => [3]
     */
    var without = baseRest(function(array, values) {
      return isArrayLikeObject(array)
        ? baseDifference(array, values)
        : [];
    });

    /**
     * Creates an array of unique values that is the
     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
     * of the given arrays. The order of result values is determined by the order
     * they occur in the arrays.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.without
     * @example
     *
     * _.xor([2, 1], [2, 3]);
     * // => [1, 3]
     */
    var xor = baseRest(function(arrays) {
      return baseXor(arrayFilter(arrays, isArrayLikeObject));
    });

    /**
     * This method is like `_.xor` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which by which they're compared. The order of result values is determined
     * by the order they occur in the arrays. The iteratee is invoked with one
     * argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2, 3.4]
     *
     * // The `_.property` iteratee shorthand.
     * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */
    var xorBy = baseRest(function(arrays) {
      var iteratee = last(arrays);
      if (isArrayLikeObject(iteratee)) {
        iteratee = undefined;
      }
      return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
    });

    /**
     * This method is like `_.xor` except that it accepts `comparator` which is
     * invoked to compare elements of `arrays`. The order of result values is
     * determined by the order they occur in the arrays. The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
     * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.xorWith(objects, others, _.isEqual);
     * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
     */
    var xorWith = baseRest(function(arrays) {
      var comparator = last(arrays);
      comparator = typeof comparator == 'function' ? comparator : undefined;
      return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
    });

    /**
     * Creates an array of grouped elements, the first of which contains the
     * first elements of the given arrays, the second of which contains the
     * second elements of the given arrays, and so on.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     */
    var zip = baseRest(unzip);

    /**
     * This method is like `_.fromPairs` except that it accepts two arrays,
     * one of property identifiers and one of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 0.4.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObject(['a', 'b'], [1, 2]);
     * // => { 'a': 1, 'b': 2 }
     */
    function zipObject(props, values) {
      return baseZipObject(props || [], values || [], assignValue);
    }

    /**
     * This method is like `_.zipObject` except that it supports property paths.
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
     */
    function zipObjectDeep(props, values) {
      return baseZipObject(props || [], values || [], baseSet);
    }

    /**
     * This method is like `_.zip` except that it accepts `iteratee` to specify
     * how grouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  grouped values.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
     *   return a + b + c;
     * });
     * // => [111, 222]
     */
    var zipWith = baseRest(function(arrays) {
      var length = arrays.length,
          iteratee = length > 1 ? arrays[length - 1] : undefined;

      iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
      return unzipWith(arrays, iteratee);
    });

    /*------------------------------------------------------------------------*/

    /**
     * Creates a `lodash` wrapper instance that wraps `value` with explicit method
     * chain sequences enabled. The result of such sequences must be unwrapped
     * with `_#value`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Seq
     * @param {*} value The value to wrap.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36 },
     *   { 'user': 'fred',    'age': 40 },
     *   { 'user': 'pebbles', 'age': 1 }
     * ];
     *
     * var youngest = _
     *   .chain(users)
     *   .sortBy('age')
     *   .map(function(o) {
     *     return o.user + ' is ' + o.age;
     *   })
     *   .head()
     *   .value();
     * // => 'pebbles is 1'
     */
    function chain(value) {
      var result = lodash(value);
      result.__chain__ = true;
      return result;
    }

    /**
     * This method invokes `interceptor` and returns `value`. The interceptor
     * is invoked with one argument; (value). The purpose of this method is to
     * "tap into" a method chain sequence in order to modify intermediate results.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns `value`.
     * @example
     *
     * _([1, 2, 3])
     *  .tap(function(array) {
     *    // Mutate input array.
     *    array.pop();
     *  })
     *  .reverse()
     *  .value();
     * // => [2, 1]
     */
    function tap(value, interceptor) {
      interceptor(value);
      return value;
    }

    /**
     * This method is like `_.tap` except that it returns the result of `interceptor`.
     * The purpose of this method is to "pass thru" values replacing intermediate
     * results in a method chain sequence.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns the result of `interceptor`.
     * @example
     *
     * _('  abc  ')
     *  .chain()
     *  .trim()
     *  .thru(function(value) {
     *    return [value];
     *  })
     *  .value();
     * // => ['abc']
     */
    function thru(value, interceptor) {
      return interceptor(value);
    }

    /**
     * This method is the wrapper version of `_.at`.
     *
     * @name at
     * @memberOf _
     * @since 1.0.0
     * @category Seq
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _(object).at(['a[0].b.c', 'a[1]']).value();
     * // => [3, 4]
     */
    var wrapperAt = flatRest(function(paths) {
      var length = paths.length,
          start = length ? paths[0] : 0,
          value = this.__wrapped__,
          interceptor = function(object) { return baseAt(object, paths); };

      if (length > 1 || this.__actions__.length ||
          !(value instanceof LazyWrapper) || !isIndex(start)) {
        return this.thru(interceptor);
      }
      value = value.slice(start, +start + (length ? 1 : 0));
      value.__actions__.push({
        'func': thru,
        'args': [interceptor],
        'thisArg': undefined
      });
      return new LodashWrapper(value, this.__chain__).thru(function(array) {
        if (length && !array.length) {
          array.push(undefined);
        }
        return array;
      });
    });

    /**
     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
     *
     * @name chain
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 40 }
     * ];
     *
     * // A sequence without explicit chaining.
     * _(users).head();
     * // => { 'user': 'barney', 'age': 36 }
     *
     * // A sequence with explicit chaining.
     * _(users)
     *   .chain()
     *   .head()
     *   .pick('user')
     *   .value();
     * // => { 'user': 'barney' }
     */
    function wrapperChain() {
      return chain(this);
    }

    /**
     * Executes the chain sequence and returns the wrapped result.
     *
     * @name commit
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2];
     * var wrapped = _(array).push(3);
     *
     * console.log(array);
     * // => [1, 2]
     *
     * wrapped = wrapped.commit();
     * console.log(array);
     * // => [1, 2, 3]
     *
     * wrapped.last();
     * // => 3
     *
     * console.log(array);
     * // => [1, 2, 3]
     */
    function wrapperCommit() {
      return new LodashWrapper(this.value(), this.__chain__);
    }

    /**
     * Gets the next value on a wrapped object following the
     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
     *
     * @name next
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the next iterator value.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 1 }
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 2 }
     *
     * wrapped.next();
     * // => { 'done': true, 'value': undefined }
     */
    function wrapperNext() {
      if (this.__values__ === undefined) {
        this.__values__ = toArray(this.value());
      }
      var done = this.__index__ >= this.__values__.length,
          value = done ? undefined : this.__values__[this.__index__++];

      return { 'done': done, 'value': value };
    }

    /**
     * Enables the wrapper to be iterable.
     *
     * @name Symbol.iterator
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the wrapper object.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped[Symbol.iterator]() === wrapped;
     * // => true
     *
     * Array.from(wrapped);
     * // => [1, 2]
     */
    function wrapperToIterator() {
      return this;
    }

    /**
     * Creates a clone of the chain sequence planting `value` as the wrapped value.
     *
     * @name plant
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @param {*} value The value to plant.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2]).map(square);
     * var other = wrapped.plant([3, 4]);
     *
     * other.value();
     * // => [9, 16]
     *
     * wrapped.value();
     * // => [1, 4]
     */
    function wrapperPlant(value) {
      var result,
          parent = this;

      while (parent instanceof baseLodash) {
        var clone = wrapperClone(parent);
        clone.__index__ = 0;
        clone.__values__ = undefined;
        if (result) {
          previous.__wrapped__ = clone;
        } else {
          result = clone;
        }
        var previous = clone;
        parent = parent.__wrapped__;
      }
      previous.__wrapped__ = value;
      return result;
    }

    /**
     * This method is the wrapper version of `_.reverse`.
     *
     * **Note:** This method mutates the wrapped array.
     *
     * @name reverse
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _(array).reverse().value()
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */
    function wrapperReverse() {
      var value = this.__wrapped__;
      if (value instanceof LazyWrapper) {
        var wrapped = value;
        if (this.__actions__.length) {
          wrapped = new LazyWrapper(this);
        }
        wrapped = wrapped.reverse();
        wrapped.__actions__.push({
          'func': thru,
          'args': [reverse],
          'thisArg': undefined
        });
        return new LodashWrapper(wrapped, this.__chain__);
      }
      return this.thru(reverse);
    }

    /**
     * Executes the chain sequence to resolve the unwrapped value.
     *
     * @name value
     * @memberOf _
     * @since 0.1.0
     * @alias toJSON, valueOf
     * @category Seq
     * @returns {*} Returns the resolved unwrapped value.
     * @example
     *
     * _([1, 2, 3]).value();
     * // => [1, 2, 3]
     */
    function wrapperValue() {
      return baseWrapperValue(this.__wrapped__, this.__actions__);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the number of times the key was returned by `iteratee`. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.countBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': 1, '6': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.countBy(['one', 'two', 'three'], 'length');
     * // => { '3': 2, '5': 1 }
     */
    var countBy = createAggregator(function(result, value, key) {
      if (hasOwnProperty.call(result, key)) {
        ++result[key];
      } else {
        baseAssignValue(result, key, 1);
      }
    });

    /**
     * Checks if `predicate` returns truthy for **all** elements of `collection`.
     * Iteration is stopped once `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * **Note:** This method returns `true` for
     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
     * elements of empty collections.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`.
     * @example
     *
     * _.every([true, 1, null, 'yes'], Boolean);
     * // => false
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.every(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.every(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.every(users, 'active');
     * // => false
     */
    function every(collection, predicate, guard) {
      var func = isArray(collection) ? arrayEvery : baseEvery;
      if (guard && isIterateeCall(collection, predicate, guard)) {
        predicate = undefined;
      }
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Iterates over elements of `collection`, returning an array of all elements
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * **Note:** Unlike `_.remove`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.reject
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * _.filter(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, { 'age': 36, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.filter(users, 'active');
     * // => objects for ['barney']
     *
     * // Combining several predicates using `_.overEvery` or `_.overSome`.
     * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
     * // => objects for ['fred', 'barney']
     */
    function filter(collection, predicate) {
      var func = isArray(collection) ? arrayFilter : baseFilter;
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Iterates over elements of `collection`, returning the first element
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': true },
     *   { 'user': 'fred',    'age': 40, 'active': false },
     *   { 'user': 'pebbles', 'age': 1,  'active': true }
     * ];
     *
     * _.find(users, function(o) { return o.age < 40; });
     * // => object for 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.find(users, { 'age': 1, 'active': true });
     * // => object for 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.find(users, ['active', false]);
     * // => object for 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.find(users, 'active');
     * // => object for 'barney'
     */
    var find = createFind(findIndex);

    /**
     * This method is like `_.find` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=collection.length-1] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * _.findLast([1, 2, 3, 4], function(n) {
     *   return n % 2 == 1;
     * });
     * // => 3
     */
    var findLast = createFind(findLastIndex);

    /**
     * Creates a flattened array of values by running each element in `collection`
     * thru `iteratee` and flattening the mapped results. The iteratee is invoked
     * with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [n, n];
     * }
     *
     * _.flatMap([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
    function flatMap(collection, iteratee) {
      return baseFlatten(map(collection, iteratee), 1);
    }

    /**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDeep([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */
    function flatMapDeep(collection, iteratee) {
      return baseFlatten(map(collection, iteratee), INFINITY);
    }

    /**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDepth([1, 2], duplicate, 2);
     * // => [[1, 1], [2, 2]]
     */
    function flatMapDepth(collection, iteratee, depth) {
      depth = depth === undefined ? 1 : toInteger(depth);
      return baseFlatten(map(collection, iteratee), depth);
    }

    /**
     * Iterates over elements of `collection` and invokes `iteratee` for each element.
     * The iteratee is invoked with three arguments: (value, index|key, collection).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * **Note:** As with other "Collections" methods, objects with a "length"
     * property are iterated like arrays. To avoid this behavior use `_.forIn`
     * or `_.forOwn` for object iteration.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias each
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEachRight
     * @example
     *
     * _.forEach([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `1` then `2`.
     *
     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
    function forEach(collection, iteratee) {
      var func = isArray(collection) ? arrayEach : baseEach;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.forEach` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @alias eachRight
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEach
     * @example
     *
     * _.forEachRight([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `2` then `1`.
     */
    function forEachRight(collection, iteratee) {
      var func = isArray(collection) ? arrayEachRight : baseEachRight;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The order of grouped values
     * is determined by the order they occur in `collection`. The corresponding
     * value of each key is an array of elements responsible for generating the
     * key. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.groupBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': [4.2], '6': [6.1, 6.3] }
     *
     * // The `_.property` iteratee shorthand.
     * _.groupBy(['one', 'two', 'three'], 'length');
     * // => { '3': ['one', 'two'], '5': ['three'] }
     */
    var groupBy = createAggregator(function(result, value, key) {
      if (hasOwnProperty.call(result, key)) {
        result[key].push(value);
      } else {
        baseAssignValue(result, key, [value]);
      }
    });

    /**
     * Checks if `value` is in `collection`. If `collection` is a string, it's
     * checked for a substring of `value`, otherwise
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * is used for equality comparisons. If `fromIndex` is negative, it's used as
     * the offset from the end of `collection`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {boolean} Returns `true` if `value` is found, else `false`.
     * @example
     *
     * _.includes([1, 2, 3], 1);
     * // => true
     *
     * _.includes([1, 2, 3], 1, 2);
     * // => false
     *
     * _.includes({ 'a': 1, 'b': 2 }, 1);
     * // => true
     *
     * _.includes('abcd', 'bc');
     * // => true
     */
    function includes(collection, value, fromIndex, guard) {
      collection = isArrayLike(collection) ? collection : values(collection);
      fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;

      var length = collection.length;
      if (fromIndex < 0) {
        fromIndex = nativeMax(length + fromIndex, 0);
      }
      return isString(collection)
        ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
        : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
    }

    /**
     * Invokes the method at `path` of each element in `collection`, returning
     * an array of the results of each invoked method. Any additional arguments
     * are provided to each invoked method. If `path` is a function, it's invoked
     * for, and `this` bound to, each element in `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array|Function|string} path The path of the method to invoke or
     *  the function invoked per iteration.
     * @param {...*} [args] The arguments to invoke each method with.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
     * // => [[1, 5, 7], [1, 2, 3]]
     *
     * _.invokeMap([123, 456], String.prototype.split, '');
     * // => [['1', '2', '3'], ['4', '5', '6']]
     */
    var invokeMap = baseRest(function(collection, path, args) {
      var index = -1,
          isFunc = typeof path == 'function',
          result = isArrayLike(collection) ? Array(collection.length) : [];

      baseEach(collection, function(value) {
        result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
      });
      return result;
    });

    /**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the last element responsible for generating the key. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * var array = [
     *   { 'dir': 'left', 'code': 97 },
     *   { 'dir': 'right', 'code': 100 }
     * ];
     *
     * _.keyBy(array, function(o) {
     *   return String.fromCharCode(o.code);
     * });
     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
     *
     * _.keyBy(array, 'dir');
     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
     */
    var keyBy = createAggregator(function(result, value, key) {
      baseAssignValue(result, key, value);
    });

    /**
     * Creates an array of values by running each element in `collection` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
     *
     * The guarded methods are:
     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * _.map([4, 8], square);
     * // => [16, 64]
     *
     * _.map({ 'a': 4, 'b': 8 }, square);
     * // => [16, 64] (iteration order is not guaranteed)
     *
     * var users = [
     *   { 'user': 'barney' },
     *   { 'user': 'fred' }
     * ];
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, 'user');
     * // => ['barney', 'fred']
     */
    function map(collection, iteratee) {
      var func = isArray(collection) ? arrayMap : baseMap;
      return func(collection, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.sortBy` except that it allows specifying the sort
     * orders of the iteratees to sort by. If `orders` is unspecified, all values
     * are sorted in ascending order. Otherwise, specify an order of "desc" for
     * descending or "asc" for ascending sort order of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @param {string[]} [orders] The sort orders of `iteratees`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 34 },
     *   { 'user': 'fred',   'age': 40 },
     *   { 'user': 'barney', 'age': 36 }
     * ];
     *
     * // Sort by `user` in ascending order and by `age` in descending order.
     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
     */
    function orderBy(collection, iteratees, orders, guard) {
      if (collection == null) {
        return [];
      }
      if (!isArray(iteratees)) {
        iteratees = iteratees == null ? [] : [iteratees];
      }
      orders = guard ? undefined : orders;
      if (!isArray(orders)) {
        orders = orders == null ? [] : [orders];
      }
      return baseOrderBy(collection, iteratees, orders);
    }

    /**
     * Creates an array of elements split into two groups, the first of which
     * contains elements `predicate` returns truthy for, the second of which
     * contains elements `predicate` returns falsey for. The predicate is
     * invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of grouped elements.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': false },
     *   { 'user': 'fred',    'age': 40, 'active': true },
     *   { 'user': 'pebbles', 'age': 1,  'active': false }
     * ];
     *
     * _.partition(users, function(o) { return o.active; });
     * // => objects for [['fred'], ['barney', 'pebbles']]
     *
     * // The `_.matches` iteratee shorthand.
     * _.partition(users, { 'age': 1, 'active': false });
     * // => objects for [['pebbles'], ['barney', 'fred']]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.partition(users, ['active', false]);
     * // => objects for [['barney', 'pebbles'], ['fred']]
     *
     * // The `_.property` iteratee shorthand.
     * _.partition(users, 'active');
     * // => objects for [['fred'], ['barney', 'pebbles']]
     */
    var partition = createAggregator(function(result, value, key) {
      result[key ? 0 : 1].push(value);
    }, function() { return [[], []]; });

    /**
     * Reduces `collection` to a value which is the accumulated result of running
     * each element in `collection` thru `iteratee`, where each successive
     * invocation is supplied the return value of the previous. If `accumulator`
     * is not given, the first element of `collection` is used as the initial
     * value. The iteratee is invoked with four arguments:
     * (accumulator, value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.reduce`, `_.reduceRight`, and `_.transform`.
     *
     * The guarded methods are:
     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
     * and `sortBy`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduceRight
     * @example
     *
     * _.reduce([1, 2], function(sum, n) {
     *   return sum + n;
     * }, 0);
     * // => 3
     *
     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     *   return result;
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
     */
    function reduce(collection, iteratee, accumulator) {
      var func = isArray(collection) ? arrayReduce : baseReduce,
          initAccum = arguments.length < 3;

      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
    }

    /**
     * This method is like `_.reduce` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduce
     * @example
     *
     * var array = [[0, 1], [2, 3], [4, 5]];
     *
     * _.reduceRight(array, function(flattened, other) {
     *   return flattened.concat(other);
     * }, []);
     * // => [4, 5, 2, 3, 0, 1]
     */
    function reduceRight(collection, iteratee, accumulator) {
      var func = isArray(collection) ? arrayReduceRight : baseReduce,
          initAccum = arguments.length < 3;

      return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
    }

    /**
     * The opposite of `_.filter`; this method returns the elements of `collection`
     * that `predicate` does **not** return truthy for.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.filter
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': true }
     * ];
     *
     * _.reject(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.reject(users, { 'age': 40, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.reject(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.reject(users, 'active');
     * // => objects for ['barney']
     */
    function reject(collection, predicate) {
      var func = isArray(collection) ? arrayFilter : baseFilter;
      return func(collection, negate(getIteratee(predicate, 3)));
    }

    /**
     * Gets a random element from `collection`.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     * @example
     *
     * _.sample([1, 2, 3, 4]);
     * // => 2
     */
    function sample(collection) {
      var func = isArray(collection) ? arraySample : baseSample;
      return func(collection);
    }

    /**
     * Gets `n` random elements at unique keys from `collection` up to the
     * size of `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @param {number} [n=1] The number of elements to sample.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the random elements.
     * @example
     *
     * _.sampleSize([1, 2, 3], 2);
     * // => [3, 1]
     *
     * _.sampleSize([1, 2, 3], 4);
     * // => [2, 3, 1]
     */
    function sampleSize(collection, n, guard) {
      if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
        n = 1;
      } else {
        n = toInteger(n);
      }
      var func = isArray(collection) ? arraySampleSize : baseSampleSize;
      return func(collection, n);
    }

    /**
     * Creates an array of shuffled values, using a version of the
     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     * @example
     *
     * _.shuffle([1, 2, 3, 4]);
     * // => [4, 1, 3, 2]
     */
    function shuffle(collection) {
      var func = isArray(collection) ? arrayShuffle : baseShuffle;
      return func(collection);
    }

    /**
     * Gets the size of `collection` by returning its length for array-like
     * values or the number of own enumerable string keyed properties for objects.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @returns {number} Returns the collection size.
     * @example
     *
     * _.size([1, 2, 3]);
     * // => 3
     *
     * _.size({ 'a': 1, 'b': 2 });
     * // => 2
     *
     * _.size('pebbles');
     * // => 7
     */
    function size(collection) {
      if (collection == null) {
        return 0;
      }
      if (isArrayLike(collection)) {
        return isString(collection) ? stringSize(collection) : collection.length;
      }
      var tag = getTag(collection);
      if (tag == mapTag || tag == setTag) {
        return collection.size;
      }
      return baseKeys(collection).length;
    }

    /**
     * Checks if `predicate` returns truthy for **any** element of `collection`.
     * Iteration is stopped once `predicate` returns truthy. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     * @example
     *
     * _.some([null, 0, 'yes', false], Boolean);
     * // => true
     *
     * var users = [
     *   { 'user': 'barney', 'active': true },
     *   { 'user': 'fred',   'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.some(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.some(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.some(users, 'active');
     * // => true
     */
    function some(collection, predicate, guard) {
      var func = isArray(collection) ? arraySome : baseSome;
      if (guard && isIterateeCall(collection, predicate, guard)) {
        predicate = undefined;
      }
      return func(collection, getIteratee(predicate, 3));
    }

    /**
     * Creates an array of elements, sorted in ascending order by the results of
     * running each element in a collection thru each iteratee. This method
     * performs a stable sort, that is, it preserves the original sort order of
     * equal elements. The iteratees are invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 30 },
     *   { 'user': 'barney', 'age': 34 }
     * ];
     *
     * _.sortBy(users, [function(o) { return o.user; }]);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
     *
     * _.sortBy(users, ['user', 'age']);
     * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
     */
    var sortBy = baseRest(function(collection, iteratees) {
      if (collection == null) {
        return [];
      }
      var length = iteratees.length;
      if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
        iteratees = [];
      } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
        iteratees = [iteratees[0]];
      }
      return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
    });

    /*------------------------------------------------------------------------*/

    /**
     * Gets the timestamp of the number of milliseconds that have elapsed since
     * the Unix epoch (1 January 1970 00:00:00 UTC).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Date
     * @returns {number} Returns the timestamp.
     * @example
     *
     * _.defer(function(stamp) {
     *   console.log(_.now() - stamp);
     * }, _.now());
     * // => Logs the number of milliseconds it took for the deferred invocation.
     */
    var now = ctxNow || function() {
      return root.Date.now();
    };

    /*------------------------------------------------------------------------*/

    /**
     * The opposite of `_.before`; this method creates a function that invokes
     * `func` once it's called `n` or more times.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {number} n The number of calls before `func` is invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var saves = ['profile', 'settings'];
     *
     * var done = _.after(saves.length, function() {
     *   console.log('done saving!');
     * });
     *
     * _.forEach(saves, function(type) {
     *   asyncSave({ 'type': type, 'complete': done });
     * });
     * // => Logs 'done saving!' after the two async saves have completed.
     */
    function after(n, func) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      n = toInteger(n);
      return function() {
        if (--n < 1) {
          return func.apply(this, arguments);
        }
      };
    }

    /**
     * Creates a function that invokes `func`, with up to `n` arguments,
     * ignoring any additional arguments.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @param {number} [n=func.length] The arity cap.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.ary(parseInt, 1));
     * // => [6, 8, 10]
     */
    function ary(func, n, guard) {
      n = guard ? undefined : n;
      n = (func && n == null) ? func.length : n;
      return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
    }

    /**
     * Creates a function that invokes `func`, with the `this` binding and arguments
     * of the created function, while it's called less than `n` times. Subsequent
     * calls to the created function return the result of the last `func` invocation.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {number} n The number of calls at which `func` is no longer invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * jQuery(element).on('click', _.before(5, addContactToList));
     * // => Allows adding up to 4 contacts to the list.
     */
    function before(n, func) {
      var result;
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      n = toInteger(n);
      return function() {
        if (--n > 0) {
          result = func.apply(this, arguments);
        }
        if (n <= 1) {
          func = undefined;
        }
        return result;
      };
    }

    /**
     * Creates a function that invokes `func` with the `this` binding of `thisArg`
     * and `partials` prepended to the arguments it receives.
     *
     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for partially applied arguments.
     *
     * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
     * property of bound functions.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to bind.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * function greet(greeting, punctuation) {
     *   return greeting + ' ' + this.user + punctuation;
     * }
     *
     * var object = { 'user': 'fred' };
     *
     * var bound = _.bind(greet, object, 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bind(greet, object, _, '!');
     * bound('hi');
     * // => 'hi fred!'
     */
    var bind = baseRest(function(func, thisArg, partials) {
      var bitmask = WRAP_BIND_FLAG;
      if (partials.length) {
        var holders = replaceHolders(partials, getHolder(bind));
        bitmask |= WRAP_PARTIAL_FLAG;
      }
      return createWrap(func, bitmask, thisArg, partials, holders);
    });

    /**
     * Creates a function that invokes the method at `object[key]` with `partials`
     * prepended to the arguments it receives.
     *
     * This method differs from `_.bind` by allowing bound functions to reference
     * methods that may be redefined or don't yet exist. See
     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
     * for more details.
     *
     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Function
     * @param {Object} object The object to invoke the method on.
     * @param {string} key The key of the method.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * var object = {
     *   'user': 'fred',
     *   'greet': function(greeting, punctuation) {
     *     return greeting + ' ' + this.user + punctuation;
     *   }
     * };
     *
     * var bound = _.bindKey(object, 'greet', 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * object.greet = function(greeting, punctuation) {
     *   return greeting + 'ya ' + this.user + punctuation;
     * };
     *
     * bound('!');
     * // => 'hiya fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bindKey(object, 'greet', _, '!');
     * bound('hi');
     * // => 'hiya fred!'
     */
    var bindKey = baseRest(function(object, key, partials) {
      var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
      if (partials.length) {
        var holders = replaceHolders(partials, getHolder(bindKey));
        bitmask |= WRAP_PARTIAL_FLAG;
      }
      return createWrap(key, bitmask, object, partials, holders);
    });

    /**
     * Creates a function that accepts arguments of `func` and either invokes
     * `func` returning its result, if at least `arity` number of arguments have
     * been provided, or returns a function that accepts the remaining `func`
     * arguments, and so on. The arity of `func` may be specified if `func.length`
     * is not sufficient.
     *
     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curry(abc);
     *
     * curried(1)(2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(1)(_, 3)(2);
     * // => [1, 2, 3]
     */
    function curry(func, arity, guard) {
      arity = guard ? undefined : arity;
      var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
      result.placeholder = curry.placeholder;
      return result;
    }

    /**
     * This method is like `_.curry` except that arguments are applied to `func`
     * in the manner of `_.partialRight` instead of `_.partial`.
     *
     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curryRight(abc);
     *
     * curried(3)(2)(1);
     * // => [1, 2, 3]
     *
     * curried(2, 3)(1);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(3)(1, _)(2);
     * // => [1, 2, 3]
     */
    function curryRight(func, arity, guard) {
      arity = guard ? undefined : arity;
      var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
      result.placeholder = curryRight.placeholder;
      return result;
    }

    /**
     * Creates a debounced function that delays invoking `func` until after `wait`
     * milliseconds have elapsed since the last time the debounced function was
     * invoked. The debounced function comes with a `cancel` method to cancel
     * delayed `func` invocations and a `flush` method to immediately invoke them.
     * Provide `options` to indicate whether `func` should be invoked on the
     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
     * with the last arguments provided to the debounced function. Subsequent
     * calls to the debounced function return the result of the last `func`
     * invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the debounced function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.debounce` and `_.throttle`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to debounce.
     * @param {number} [wait=0] The number of milliseconds to delay.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=false]
     *  Specify invoking on the leading edge of the timeout.
     * @param {number} [options.maxWait]
     *  The maximum time `func` is allowed to be delayed before it's invoked.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new debounced function.
     * @example
     *
     * // Avoid costly calculations while the window size is in flux.
     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
     *
     * // Invoke `sendMail` when clicked, debouncing subsequent calls.
     * jQuery(element).on('click', _.debounce(sendMail, 300, {
     *   'leading': true,
     *   'trailing': false
     * }));
     *
     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
     * var source = new EventSource('/stream');
     * jQuery(source).on('message', debounced);
     *
     * // Cancel the trailing debounced invocation.
     * jQuery(window).on('popstate', debounced.cancel);
     */
    function debounce(func, wait, options) {
      var lastArgs,
          lastThis,
          maxWait,
          result,
          timerId,
          lastCallTime,
          lastInvokeTime = 0,
          leading = false,
          maxing = false,
          trailing = true;

      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      wait = toNumber(wait) || 0;
      if (isObject(options)) {
        leading = !!options.leading;
        maxing = 'maxWait' in options;
        maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
        trailing = 'trailing' in options ? !!options.trailing : trailing;
      }

      function invokeFunc(time) {
        var args = lastArgs,
            thisArg = lastThis;

        lastArgs = lastThis = undefined;
        lastInvokeTime = time;
        result = func.apply(thisArg, args);
        return result;
      }

      function leadingEdge(time) {
        // Reset any `maxWait` timer.
        lastInvokeTime = time;
        // Start the timer for the trailing edge.
        timerId = setTimeout(timerExpired, wait);
        // Invoke the leading edge.
        return leading ? invokeFunc(time) : result;
      }

      function remainingWait(time) {
        var timeSinceLastCall = time - lastCallTime,
            timeSinceLastInvoke = time - lastInvokeTime,
            timeWaiting = wait - timeSinceLastCall;

        return maxing
          ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
          : timeWaiting;
      }

      function shouldInvoke(time) {
        var timeSinceLastCall = time - lastCallTime,
            timeSinceLastInvoke = time - lastInvokeTime;

        // Either this is the first call, activity has stopped and we're at the
        // trailing edge, the system time has gone backwards and we're treating
        // it as the trailing edge, or we've hit the `maxWait` limit.
        return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
          (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
      }

      function timerExpired() {
        var time = now();
        if (shouldInvoke(time)) {
          return trailingEdge(time);
        }
        // Restart the timer.
        timerId = setTimeout(timerExpired, remainingWait(time));
      }

      function trailingEdge(time) {
        timerId = undefined;

        // Only invoke if we have `lastArgs` which means `func` has been
        // debounced at least once.
        if (trailing && lastArgs) {
          return invokeFunc(time);
        }
        lastArgs = lastThis = undefined;
        return result;
      }

      function cancel() {
        if (timerId !== undefined) {
          clearTimeout(timerId);
        }
        lastInvokeTime = 0;
        lastArgs = lastCallTime = lastThis = timerId = undefined;
      }

      function flush() {
        return timerId === undefined ? result : trailingEdge(now());
      }

      function debounced() {
        var time = now(),
            isInvoking = shouldInvoke(time);

        lastArgs = arguments;
        lastThis = this;
        lastCallTime = time;

        if (isInvoking) {
          if (timerId === undefined) {
            return leadingEdge(lastCallTime);
          }
          if (maxing) {
            // Handle invocations in a tight loop.
            clearTimeout(timerId);
            timerId = setTimeout(timerExpired, wait);
            return invokeFunc(lastCallTime);
          }
        }
        if (timerId === undefined) {
          timerId = setTimeout(timerExpired, wait);
        }
        return result;
      }
      debounced.cancel = cancel;
      debounced.flush = flush;
      return debounced;
    }

    /**
     * Defers invoking the `func` until the current call stack has cleared. Any
     * additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to defer.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.defer(function(text) {
     *   console.log(text);
     * }, 'deferred');
     * // => Logs 'deferred' after one millisecond.
     */
    var defer = baseRest(function(func, args) {
      return baseDelay(func, 1, args);
    });

    /**
     * Invokes `func` after `wait` milliseconds. Any additional arguments are
     * provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.delay(function(text) {
     *   console.log(text);
     * }, 1000, 'later');
     * // => Logs 'later' after one second.
     */
    var delay = baseRest(function(func, wait, args) {
      return baseDelay(func, toNumber(wait) || 0, args);
    });

    /**
     * Creates a function that invokes `func` with arguments reversed.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to flip arguments for.
     * @returns {Function} Returns the new flipped function.
     * @example
     *
     * var flipped = _.flip(function() {
     *   return _.toArray(arguments);
     * });
     *
     * flipped('a', 'b', 'c', 'd');
     * // => ['d', 'c', 'b', 'a']
     */
    function flip(func) {
      return createWrap(func, WRAP_FLIP_FLAG);
    }

    /**
     * Creates a function that memoizes the result of `func`. If `resolver` is
     * provided, it determines the cache key for storing the result based on the
     * arguments provided to the memoized function. By default, the first argument
     * provided to the memoized function is used as the map cache key. The `func`
     * is invoked with the `this` binding of the memoized function.
     *
     * **Note:** The cache is exposed as the `cache` property on the memoized
     * function. Its creation may be customized by replacing the `_.memoize.Cache`
     * constructor with one whose instances implement the
     * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
     * method interface of `clear`, `delete`, `get`, `has`, and `set`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to have its output memoized.
     * @param {Function} [resolver] The function to resolve the cache key.
     * @returns {Function} Returns the new memoized function.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     * var other = { 'c': 3, 'd': 4 };
     *
     * var values = _.memoize(_.values);
     * values(object);
     * // => [1, 2]
     *
     * values(other);
     * // => [3, 4]
     *
     * object.a = 2;
     * values(object);
     * // => [1, 2]
     *
     * // Modify the result cache.
     * values.cache.set(object, ['a', 'b']);
     * values(object);
     * // => ['a', 'b']
     *
     * // Replace `_.memoize.Cache`.
     * _.memoize.Cache = WeakMap;
     */
    function memoize(func, resolver) {
      if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      var memoized = function() {
        var args = arguments,
            key = resolver ? resolver.apply(this, args) : args[0],
            cache = memoized.cache;

        if (cache.has(key)) {
          return cache.get(key);
        }
        var result = func.apply(this, args);
        memoized.cache = cache.set(key, result) || cache;
        return result;
      };
      memoized.cache = new (memoize.Cache || MapCache);
      return memoized;
    }

    // Expose `MapCache`.
    memoize.Cache = MapCache;

    /**
     * Creates a function that negates the result of the predicate `func`. The
     * `func` predicate is invoked with the `this` binding and arguments of the
     * created function.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} predicate The predicate to negate.
     * @returns {Function} Returns the new negated function.
     * @example
     *
     * function isEven(n) {
     *   return n % 2 == 0;
     * }
     *
     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
     * // => [1, 3, 5]
     */
    function negate(predicate) {
      if (typeof predicate != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      return function() {
        var args = arguments;
        switch (args.length) {
          case 0: return !predicate.call(this);
          case 1: return !predicate.call(this, args[0]);
          case 2: return !predicate.call(this, args[0], args[1]);
          case 3: return !predicate.call(this, args[0], args[1], args[2]);
        }
        return !predicate.apply(this, args);
      };
    }

    /**
     * Creates a function that is restricted to invoking `func` once. Repeat calls
     * to the function return the value of the first invocation. The `func` is
     * invoked with the `this` binding and arguments of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var initialize = _.once(createApplication);
     * initialize();
     * initialize();
     * // => `createApplication` is invoked once
     */
    function once(func) {
      return before(2, func);
    }

    /**
     * Creates a function that invokes `func` with its arguments transformed.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Function
     * @param {Function} func The function to wrap.
     * @param {...(Function|Function[])} [transforms=[_.identity]]
     *  The argument transforms.
     * @returns {Function} Returns the new function.
     * @example
     *
     * function doubled(n) {
     *   return n * 2;
     * }
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var func = _.overArgs(function(x, y) {
     *   return [x, y];
     * }, [square, doubled]);
     *
     * func(9, 3);
     * // => [81, 6]
     *
     * func(10, 5);
     * // => [100, 10]
     */
    var overArgs = castRest(function(func, transforms) {
      transforms = (transforms.length == 1 && isArray(transforms[0]))
        ? arrayMap(transforms[0], baseUnary(getIteratee()))
        : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));

      var funcsLength = transforms.length;
      return baseRest(function(args) {
        var index = -1,
            length = nativeMin(args.length, funcsLength);

        while (++index < length) {
          args[index] = transforms[index].call(this, args[index]);
        }
        return apply(func, this, args);
      });
    });

    /**
     * Creates a function that invokes `func` with `partials` prepended to the
     * arguments it receives. This method is like `_.bind` except it does **not**
     * alter the `this` binding.
     *
     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 0.2.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var sayHelloTo = _.partial(greet, 'hello');
     * sayHelloTo('fred');
     * // => 'hello fred'
     *
     * // Partially applied with placeholders.
     * var greetFred = _.partial(greet, _, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     */
    var partial = baseRest(function(func, partials) {
      var holders = replaceHolders(partials, getHolder(partial));
      return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
    });

    /**
     * This method is like `_.partial` except that partially applied arguments
     * are appended to the arguments it receives.
     *
     * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var greetFred = _.partialRight(greet, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     *
     * // Partially applied with placeholders.
     * var sayHelloTo = _.partialRight(greet, 'hello', _);
     * sayHelloTo('fred');
     * // => 'hello fred'
     */
    var partialRight = baseRest(function(func, partials) {
      var holders = replaceHolders(partials, getHolder(partialRight));
      return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
    });

    /**
     * Creates a function that invokes `func` with arguments arranged according
     * to the specified `indexes` where the argument value at the first index is
     * provided as the first argument, the argument value at the second index is
     * provided as the second argument, and so on.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to rearrange arguments for.
     * @param {...(number|number[])} indexes The arranged argument indexes.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var rearged = _.rearg(function(a, b, c) {
     *   return [a, b, c];
     * }, [2, 0, 1]);
     *
     * rearged('b', 'c', 'a')
     * // => ['a', 'b', 'c']
     */
    var rearg = flatRest(function(func, indexes) {
      return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
    });

    /**
     * Creates a function that invokes `func` with the `this` binding of the
     * created function and arguments from `start` and beyond provided as
     * an array.
     *
     * **Note:** This method is based on the
     * [rest parameter](https://mdn.io/rest_parameters).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.rest(function(what, names) {
     *   return what + ' ' + _.initial(names).join(', ') +
     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
     * });
     *
     * say('hello', 'fred', 'barney', 'pebbles');
     * // => 'hello fred, barney, & pebbles'
     */
    function rest(func, start) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      start = start === undefined ? start : toInteger(start);
      return baseRest(func, start);
    }

    /**
     * Creates a function that invokes `func` with the `this` binding of the
     * create function and an array of arguments much like
     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
     *
     * **Note:** This method is based on the
     * [spread operator](https://mdn.io/spread_operator).
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Function
     * @param {Function} func The function to spread arguments over.
     * @param {number} [start=0] The start position of the spread.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.spread(function(who, what) {
     *   return who + ' says ' + what;
     * });
     *
     * say(['fred', 'hello']);
     * // => 'fred says hello'
     *
     * var numbers = Promise.all([
     *   Promise.resolve(40),
     *   Promise.resolve(36)
     * ]);
     *
     * numbers.then(_.spread(function(x, y) {
     *   return x + y;
     * }));
     * // => a Promise of 76
     */
    function spread(func, start) {
      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      start = start == null ? 0 : nativeMax(toInteger(start), 0);
      return baseRest(function(args) {
        var array = args[start],
            otherArgs = castSlice(args, 0, start);

        if (array) {
          arrayPush(otherArgs, array);
        }
        return apply(func, this, otherArgs);
      });
    }

    /**
     * Creates a throttled function that only invokes `func` at most once per
     * every `wait` milliseconds. The throttled function comes with a `cancel`
     * method to cancel delayed `func` invocations and a `flush` method to
     * immediately invoke them. Provide `options` to indicate whether `func`
     * should be invoked on the leading and/or trailing edge of the `wait`
     * timeout. The `func` is invoked with the last arguments provided to the
     * throttled function. Subsequent calls to the throttled function return the
     * result of the last `func` invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the throttled function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.throttle` and `_.debounce`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to throttle.
     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=true]
     *  Specify invoking on the leading edge of the timeout.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new throttled function.
     * @example
     *
     * // Avoid excessively updating the position while scrolling.
     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
     *
     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
     * jQuery(element).on('click', throttled);
     *
     * // Cancel the trailing throttled invocation.
     * jQuery(window).on('popstate', throttled.cancel);
     */
    function throttle(func, wait, options) {
      var leading = true,
          trailing = true;

      if (typeof func != 'function') {
        throw new TypeError(FUNC_ERROR_TEXT);
      }
      if (isObject(options)) {
        leading = 'leading' in options ? !!options.leading : leading;
        trailing = 'trailing' in options ? !!options.trailing : trailing;
      }
      return debounce(func, wait, {
        'leading': leading,
        'maxWait': wait,
        'trailing': trailing
      });
    }

    /**
     * Creates a function that accepts up to one argument, ignoring any
     * additional arguments.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.unary(parseInt));
     * // => [6, 8, 10]
     */
    function unary(func) {
      return ary(func, 1);
    }

    /**
     * Creates a function that provides `value` to `wrapper` as its first
     * argument. Any additional arguments provided to the function are appended
     * to those provided to the `wrapper`. The wrapper is invoked with the `this`
     * binding of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {*} value The value to wrap.
     * @param {Function} [wrapper=identity] The wrapper function.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var p = _.wrap(_.escape, function(func, text) {
     *   return '<p>' + func(text) + '</p>';
     * });
     *
     * p('fred, barney, & pebbles');
     * // => '<p>fred, barney, &amp; pebbles</p>'
     */
    function wrap(value, wrapper) {
      return partial(castFunction(wrapper), value);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Casts `value` as an array if it's not one.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Lang
     * @param {*} value The value to inspect.
     * @returns {Array} Returns the cast array.
     * @example
     *
     * _.castArray(1);
     * // => [1]
     *
     * _.castArray({ 'a': 1 });
     * // => [{ 'a': 1 }]
     *
     * _.castArray('abc');
     * // => ['abc']
     *
     * _.castArray(null);
     * // => [null]
     *
     * _.castArray(undefined);
     * // => [undefined]
     *
     * _.castArray();
     * // => []
     *
     * var array = [1, 2, 3];
     * console.log(_.castArray(array) === array);
     * // => true
     */
    function castArray() {
      if (!arguments.length) {
        return [];
      }
      var value = arguments[0];
      return isArray(value) ? value : [value];
    }

    /**
     * Creates a shallow clone of `value`.
     *
     * **Note:** This method is loosely based on the
     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
     * and supports cloning arrays, array buffers, booleans, date objects, maps,
     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
     * arrays. The own enumerable properties of `arguments` objects are cloned
     * as plain objects. An empty object is returned for uncloneable values such
     * as error objects, functions, DOM nodes, and WeakMaps.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to clone.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeep
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var shallow = _.clone(objects);
     * console.log(shallow[0] === objects[0]);
     * // => true
     */
    function clone(value) {
      return baseClone(value, CLONE_SYMBOLS_FLAG);
    }

    /**
     * This method is like `_.clone` except that it accepts `customizer` which
     * is invoked to produce the cloned value. If `customizer` returns `undefined`,
     * cloning is handled by the method instead. The `customizer` is invoked with
     * up to four arguments; (value [, index|key, object, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeepWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(false);
     *   }
     * }
     *
     * var el = _.cloneWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 0
     */
    function cloneWith(value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
    }

    /**
     * This method is like `_.clone` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @returns {*} Returns the deep cloned value.
     * @see _.clone
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var deep = _.cloneDeep(objects);
     * console.log(deep[0] === objects[0]);
     * // => false
     */
    function cloneDeep(value) {
      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
    }

    /**
     * This method is like `_.cloneWith` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the deep cloned value.
     * @see _.cloneWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(true);
     *   }
     * }
     *
     * var el = _.cloneDeepWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 20
     */
    function cloneDeepWith(value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
    }

    /**
     * Checks if `object` conforms to `source` by invoking the predicate
     * properties of `source` with the corresponding property values of `object`.
     *
     * **Note:** This method is equivalent to `_.conforms` when `source` is
     * partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
     * // => true
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
     * // => false
     */
    function conformsTo(object, source) {
      return source == null || baseConformsTo(object, source, keys(source));
    }

    /**
     * Performs a
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * comparison between two values to determine if they are equivalent.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.eq(object, object);
     * // => true
     *
     * _.eq(object, other);
     * // => false
     *
     * _.eq('a', 'a');
     * // => true
     *
     * _.eq('a', Object('a'));
     * // => false
     *
     * _.eq(NaN, NaN);
     * // => true
     */
    function eq(value, other) {
      return value === other || (value !== value && other !== other);
    }

    /**
     * Checks if `value` is greater than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     * @see _.lt
     * @example
     *
     * _.gt(3, 1);
     * // => true
     *
     * _.gt(3, 3);
     * // => false
     *
     * _.gt(1, 3);
     * // => false
     */
    var gt = createRelationalOperation(baseGt);

    /**
     * Checks if `value` is greater than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than or equal to
     *  `other`, else `false`.
     * @see _.lte
     * @example
     *
     * _.gte(3, 1);
     * // => true
     *
     * _.gte(3, 3);
     * // => true
     *
     * _.gte(1, 3);
     * // => false
     */
    var gte = createRelationalOperation(function(value, other) {
      return value >= other;
    });

    /**
     * Checks if `value` is likely an `arguments` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     *  else `false`.
     * @example
     *
     * _.isArguments(function() { return arguments; }());
     * // => true
     *
     * _.isArguments([1, 2, 3]);
     * // => false
     */
    var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
      return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
        !propertyIsEnumerable.call(value, 'callee');
    };

    /**
     * Checks if `value` is classified as an `Array` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array, else `false`.
     * @example
     *
     * _.isArray([1, 2, 3]);
     * // => true
     *
     * _.isArray(document.body.children);
     * // => false
     *
     * _.isArray('abc');
     * // => false
     *
     * _.isArray(_.noop);
     * // => false
     */
    var isArray = Array.isArray;

    /**
     * Checks if `value` is classified as an `ArrayBuffer` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     * @example
     *
     * _.isArrayBuffer(new ArrayBuffer(2));
     * // => true
     *
     * _.isArrayBuffer(new Array(2));
     * // => false
     */
    var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;

    /**
     * Checks if `value` is array-like. A value is considered array-like if it's
     * not a function and has a `value.length` that's an integer greater than or
     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
     * @example
     *
     * _.isArrayLike([1, 2, 3]);
     * // => true
     *
     * _.isArrayLike(document.body.children);
     * // => true
     *
     * _.isArrayLike('abc');
     * // => true
     *
     * _.isArrayLike(_.noop);
     * // => false
     */
    function isArrayLike(value) {
      return value != null && isLength(value.length) && !isFunction(value);
    }

    /**
     * This method is like `_.isArrayLike` except that it also checks if `value`
     * is an object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array-like object,
     *  else `false`.
     * @example
     *
     * _.isArrayLikeObject([1, 2, 3]);
     * // => true
     *
     * _.isArrayLikeObject(document.body.children);
     * // => true
     *
     * _.isArrayLikeObject('abc');
     * // => false
     *
     * _.isArrayLikeObject(_.noop);
     * // => false
     */
    function isArrayLikeObject(value) {
      return isObjectLike(value) && isArrayLike(value);
    }

    /**
     * Checks if `value` is classified as a boolean primitive or object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
     * @example
     *
     * _.isBoolean(false);
     * // => true
     *
     * _.isBoolean(null);
     * // => false
     */
    function isBoolean(value) {
      return value === true || value === false ||
        (isObjectLike(value) && baseGetTag(value) == boolTag);
    }

    /**
     * Checks if `value` is a buffer.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
     * @example
     *
     * _.isBuffer(new Buffer(2));
     * // => true
     *
     * _.isBuffer(new Uint8Array(2));
     * // => false
     */
    var isBuffer = nativeIsBuffer || stubFalse;

    /**
     * Checks if `value` is classified as a `Date` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     * @example
     *
     * _.isDate(new Date);
     * // => true
     *
     * _.isDate('Mon April 23 2012');
     * // => false
     */
    var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;

    /**
     * Checks if `value` is likely a DOM element.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
     * @example
     *
     * _.isElement(document.body);
     * // => true
     *
     * _.isElement('<body>');
     * // => false
     */
    function isElement(value) {
      return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
    }

    /**
     * Checks if `value` is an empty object, collection, map, or set.
     *
     * Objects are considered empty if they have no own enumerable string keyed
     * properties.
     *
     * Array-like values such as `arguments` objects, arrays, buffers, strings, or
     * jQuery-like collections are considered empty if they have a `length` of `0`.
     * Similarly, maps and sets are considered empty if they have a `size` of `0`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is empty, else `false`.
     * @example
     *
     * _.isEmpty(null);
     * // => true
     *
     * _.isEmpty(true);
     * // => true
     *
     * _.isEmpty(1);
     * // => true
     *
     * _.isEmpty([1, 2, 3]);
     * // => false
     *
     * _.isEmpty({ 'a': 1 });
     * // => false
     */
    function isEmpty(value) {
      if (value == null) {
        return true;
      }
      if (isArrayLike(value) &&
          (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
            isBuffer(value) || isTypedArray(value) || isArguments(value))) {
        return !value.length;
      }
      var tag = getTag(value);
      if (tag == mapTag || tag == setTag) {
        return !value.size;
      }
      if (isPrototype(value)) {
        return !baseKeys(value).length;
      }
      for (var key in value) {
        if (hasOwnProperty.call(value, key)) {
          return false;
        }
      }
      return true;
    }

    /**
     * Performs a deep comparison between two values to determine if they are
     * equivalent.
     *
     * **Note:** This method supports comparing arrays, array buffers, booleans,
     * date objects, error objects, maps, numbers, `Object` objects, regexes,
     * sets, strings, symbols, and typed arrays. `Object` objects are compared
     * by their own, not inherited, enumerable properties. Functions and DOM
     * nodes are compared by strict equality, i.e. `===`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.isEqual(object, other);
     * // => true
     *
     * object === other;
     * // => false
     */
    function isEqual(value, other) {
      return baseIsEqual(value, other);
    }

    /**
     * This method is like `_.isEqual` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with up to
     * six arguments: (objValue, othValue [, index|key, object, other, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, othValue) {
     *   if (isGreeting(objValue) && isGreeting(othValue)) {
     *     return true;
     *   }
     * }
     *
     * var array = ['hello', 'goodbye'];
     * var other = ['hi', 'goodbye'];
     *
     * _.isEqualWith(array, other, customizer);
     * // => true
     */
    function isEqualWith(value, other, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      var result = customizer ? customizer(value, other) : undefined;
      return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
    }

    /**
     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
     * `SyntaxError`, `TypeError`, or `URIError` object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
     * @example
     *
     * _.isError(new Error);
     * // => true
     *
     * _.isError(Error);
     * // => false
     */
    function isError(value) {
      if (!isObjectLike(value)) {
        return false;
      }
      var tag = baseGetTag(value);
      return tag == errorTag || tag == domExcTag ||
        (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
    }

    /**
     * Checks if `value` is a finite primitive number.
     *
     * **Note:** This method is based on
     * [`Number.isFinite`](https://mdn.io/Number/isFinite).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
     * @example
     *
     * _.isFinite(3);
     * // => true
     *
     * _.isFinite(Number.MIN_VALUE);
     * // => true
     *
     * _.isFinite(Infinity);
     * // => false
     *
     * _.isFinite('3');
     * // => false
     */
    function isFinite(value) {
      return typeof value == 'number' && nativeIsFinite(value);
    }

    /**
     * Checks if `value` is classified as a `Function` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a function, else `false`.
     * @example
     *
     * _.isFunction(_);
     * // => true
     *
     * _.isFunction(/abc/);
     * // => false
     */
    function isFunction(value) {
      if (!isObject(value)) {
        return false;
      }
      // The use of `Object#toString` avoids issues with the `typeof` operator
      // in Safari 9 which returns 'object' for typed arrays and other constructors.
      var tag = baseGetTag(value);
      return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
    }

    /**
     * Checks if `value` is an integer.
     *
     * **Note:** This method is based on
     * [`Number.isInteger`](https://mdn.io/Number/isInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
     * @example
     *
     * _.isInteger(3);
     * // => true
     *
     * _.isInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isInteger(Infinity);
     * // => false
     *
     * _.isInteger('3');
     * // => false
     */
    function isInteger(value) {
      return typeof value == 'number' && value == toInteger(value);
    }

    /**
     * Checks if `value` is a valid array-like length.
     *
     * **Note:** This method is loosely based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
     * @example
     *
     * _.isLength(3);
     * // => true
     *
     * _.isLength(Number.MIN_VALUE);
     * // => false
     *
     * _.isLength(Infinity);
     * // => false
     *
     * _.isLength('3');
     * // => false
     */
    function isLength(value) {
      return typeof value == 'number' &&
        value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
    }

    /**
     * Checks if `value` is the
     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
     * @example
     *
     * _.isObject({});
     * // => true
     *
     * _.isObject([1, 2, 3]);
     * // => true
     *
     * _.isObject(_.noop);
     * // => true
     *
     * _.isObject(null);
     * // => false
     */
    function isObject(value) {
      var type = typeof value;
      return value != null && (type == 'object' || type == 'function');
    }

    /**
     * Checks if `value` is object-like. A value is object-like if it's not `null`
     * and has a `typeof` result of "object".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
     * @example
     *
     * _.isObjectLike({});
     * // => true
     *
     * _.isObjectLike([1, 2, 3]);
     * // => true
     *
     * _.isObjectLike(_.noop);
     * // => false
     *
     * _.isObjectLike(null);
     * // => false
     */
    function isObjectLike(value) {
      return value != null && typeof value == 'object';
    }

    /**
     * Checks if `value` is classified as a `Map` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     * @example
     *
     * _.isMap(new Map);
     * // => true
     *
     * _.isMap(new WeakMap);
     * // => false
     */
    var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

    /**
     * Performs a partial deep comparison between `object` and `source` to
     * determine if `object` contains equivalent property values.
     *
     * **Note:** This method is equivalent to `_.matches` when `source` is
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.isMatch(object, { 'b': 2 });
     * // => true
     *
     * _.isMatch(object, { 'b': 1 });
     * // => false
     */
    function isMatch(object, source) {
      return object === source || baseIsMatch(object, source, getMatchData(source));
    }

    /**
     * This method is like `_.isMatch` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with five
     * arguments: (objValue, srcValue, index|key, object, source).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, srcValue) {
     *   if (isGreeting(objValue) && isGreeting(srcValue)) {
     *     return true;
     *   }
     * }
     *
     * var object = { 'greeting': 'hello' };
     * var source = { 'greeting': 'hi' };
     *
     * _.isMatchWith(object, source, customizer);
     * // => true
     */
    function isMatchWith(object, source, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return baseIsMatch(object, source, getMatchData(source), customizer);
    }

    /**
     * Checks if `value` is `NaN`.
     *
     * **Note:** This method is based on
     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
     * `undefined` and other non-number values.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
     * @example
     *
     * _.isNaN(NaN);
     * // => true
     *
     * _.isNaN(new Number(NaN));
     * // => true
     *
     * isNaN(undefined);
     * // => true
     *
     * _.isNaN(undefined);
     * // => false
     */
    function isNaN(value) {
      // An `NaN` primitive is the only value that is not equal to itself.
      // Perform the `toStringTag` check first to avoid errors with some
      // ActiveX objects in IE.
      return isNumber(value) && value != +value;
    }

    /**
     * Checks if `value` is a pristine native function.
     *
     * **Note:** This method can't reliably detect native functions in the presence
     * of the core-js package because core-js circumvents this kind of detection.
     * Despite multiple requests, the core-js maintainer has made it clear: any
     * attempt to fix the detection will be obstructed. As a result, we're left
     * with little choice but to throw an error. Unfortunately, this also affects
     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
     * which rely on core-js.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     * @example
     *
     * _.isNative(Array.prototype.push);
     * // => true
     *
     * _.isNative(_);
     * // => false
     */
    function isNative(value) {
      if (isMaskable(value)) {
        throw new Error(CORE_ERROR_TEXT);
      }
      return baseIsNative(value);
    }

    /**
     * Checks if `value` is `null`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
     * @example
     *
     * _.isNull(null);
     * // => true
     *
     * _.isNull(void 0);
     * // => false
     */
    function isNull(value) {
      return value === null;
    }

    /**
     * Checks if `value` is `null` or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
     * @example
     *
     * _.isNil(null);
     * // => true
     *
     * _.isNil(void 0);
     * // => true
     *
     * _.isNil(NaN);
     * // => false
     */
    function isNil(value) {
      return value == null;
    }

    /**
     * Checks if `value` is classified as a `Number` primitive or object.
     *
     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
     * classified as numbers, use the `_.isFinite` method.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a number, else `false`.
     * @example
     *
     * _.isNumber(3);
     * // => true
     *
     * _.isNumber(Number.MIN_VALUE);
     * // => true
     *
     * _.isNumber(Infinity);
     * // => true
     *
     * _.isNumber('3');
     * // => false
     */
    function isNumber(value) {
      return typeof value == 'number' ||
        (isObjectLike(value) && baseGetTag(value) == numberTag);
    }

    /**
     * Checks if `value` is a plain object, that is, an object created by the
     * `Object` constructor or one with a `[[Prototype]]` of `null`.
     *
     * @static
     * @memberOf _
     * @since 0.8.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * _.isPlainObject(new Foo);
     * // => false
     *
     * _.isPlainObject([1, 2, 3]);
     * // => false
     *
     * _.isPlainObject({ 'x': 0, 'y': 0 });
     * // => true
     *
     * _.isPlainObject(Object.create(null));
     * // => true
     */
    function isPlainObject(value) {
      if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
        return false;
      }
      var proto = getPrototype(value);
      if (proto === null) {
        return true;
      }
      var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
      return typeof Ctor == 'function' && Ctor instanceof Ctor &&
        funcToString.call(Ctor) == objectCtorString;
    }

    /**
     * Checks if `value` is classified as a `RegExp` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     * @example
     *
     * _.isRegExp(/abc/);
     * // => true
     *
     * _.isRegExp('/abc/');
     * // => false
     */
    var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;

    /**
     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
     * double precision number which isn't the result of a rounded unsafe integer.
     *
     * **Note:** This method is based on
     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
     * @example
     *
     * _.isSafeInteger(3);
     * // => true
     *
     * _.isSafeInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isSafeInteger(Infinity);
     * // => false
     *
     * _.isSafeInteger('3');
     * // => false
     */
    function isSafeInteger(value) {
      return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
    }

    /**
     * Checks if `value` is classified as a `Set` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     * @example
     *
     * _.isSet(new Set);
     * // => true
     *
     * _.isSet(new WeakSet);
     * // => false
     */
    var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

    /**
     * Checks if `value` is classified as a `String` primitive or object.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a string, else `false`.
     * @example
     *
     * _.isString('abc');
     * // => true
     *
     * _.isString(1);
     * // => false
     */
    function isString(value) {
      return typeof value == 'string' ||
        (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
    }

    /**
     * Checks if `value` is classified as a `Symbol` primitive or object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
     * @example
     *
     * _.isSymbol(Symbol.iterator);
     * // => true
     *
     * _.isSymbol('abc');
     * // => false
     */
    function isSymbol(value) {
      return typeof value == 'symbol' ||
        (isObjectLike(value) && baseGetTag(value) == symbolTag);
    }

    /**
     * Checks if `value` is classified as a typed array.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     * @example
     *
     * _.isTypedArray(new Uint8Array);
     * // => true
     *
     * _.isTypedArray([]);
     * // => false
     */
    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

    /**
     * Checks if `value` is `undefined`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
     * @example
     *
     * _.isUndefined(void 0);
     * // => true
     *
     * _.isUndefined(null);
     * // => false
     */
    function isUndefined(value) {
      return value === undefined;
    }

    /**
     * Checks if `value` is classified as a `WeakMap` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
     * @example
     *
     * _.isWeakMap(new WeakMap);
     * // => true
     *
     * _.isWeakMap(new Map);
     * // => false
     */
    function isWeakMap(value) {
      return isObjectLike(value) && getTag(value) == weakMapTag;
    }

    /**
     * Checks if `value` is classified as a `WeakSet` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
     * @example
     *
     * _.isWeakSet(new WeakSet);
     * // => true
     *
     * _.isWeakSet(new Set);
     * // => false
     */
    function isWeakSet(value) {
      return isObjectLike(value) && baseGetTag(value) == weakSetTag;
    }

    /**
     * Checks if `value` is less than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     * @see _.gt
     * @example
     *
     * _.lt(1, 3);
     * // => true
     *
     * _.lt(3, 3);
     * // => false
     *
     * _.lt(3, 1);
     * // => false
     */
    var lt = createRelationalOperation(baseLt);

    /**
     * Checks if `value` is less than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than or equal to
     *  `other`, else `false`.
     * @see _.gte
     * @example
     *
     * _.lte(1, 3);
     * // => true
     *
     * _.lte(3, 3);
     * // => true
     *
     * _.lte(3, 1);
     * // => false
     */
    var lte = createRelationalOperation(function(value, other) {
      return value <= other;
    });

    /**
     * Converts `value` to an array.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Array} Returns the converted array.
     * @example
     *
     * _.toArray({ 'a': 1, 'b': 2 });
     * // => [1, 2]
     *
     * _.toArray('abc');
     * // => ['a', 'b', 'c']
     *
     * _.toArray(1);
     * // => []
     *
     * _.toArray(null);
     * // => []
     */
    function toArray(value) {
      if (!value) {
        return [];
      }
      if (isArrayLike(value)) {
        return isString(value) ? stringToArray(value) : copyArray(value);
      }
      if (symIterator && value[symIterator]) {
        return iteratorToArray(value[symIterator]());
      }
      var tag = getTag(value),
          func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);

      return func(value);
    }

    /**
     * Converts `value` to a finite number.
     *
     * @static
     * @memberOf _
     * @since 4.12.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted number.
     * @example
     *
     * _.toFinite(3.2);
     * // => 3.2
     *
     * _.toFinite(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toFinite(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toFinite('3.2');
     * // => 3.2
     */
    function toFinite(value) {
      if (!value) {
        return value === 0 ? value : 0;
      }
      value = toNumber(value);
      if (value === INFINITY || value === -INFINITY) {
        var sign = (value < 0 ? -1 : 1);
        return sign * MAX_INTEGER;
      }
      return value === value ? value : 0;
    }

    /**
     * Converts `value` to an integer.
     *
     * **Note:** This method is loosely based on
     * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toInteger(3.2);
     * // => 3
     *
     * _.toInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toInteger(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toInteger('3.2');
     * // => 3
     */
    function toInteger(value) {
      var result = toFinite(value),
          remainder = result % 1;

      return result === result ? (remainder ? result - remainder : result) : 0;
    }

    /**
     * Converts `value` to an integer suitable for use as the length of an
     * array-like object.
     *
     * **Note:** This method is based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toLength(3.2);
     * // => 3
     *
     * _.toLength(Number.MIN_VALUE);
     * // => 0
     *
     * _.toLength(Infinity);
     * // => 4294967295
     *
     * _.toLength('3.2');
     * // => 3
     */
    function toLength(value) {
      return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
    }

    /**
     * Converts `value` to a number.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     * @example
     *
     * _.toNumber(3.2);
     * // => 3.2
     *
     * _.toNumber(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toNumber(Infinity);
     * // => Infinity
     *
     * _.toNumber('3.2');
     * // => 3.2
     */
    function toNumber(value) {
      if (typeof value == 'number') {
        return value;
      }
      if (isSymbol(value)) {
        return NAN;
      }
      if (isObject(value)) {
        var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
        value = isObject(other) ? (other + '') : other;
      }
      if (typeof value != 'string') {
        return value === 0 ? value : +value;
      }
      value = value.replace(reTrim, '');
      var isBinary = reIsBinary.test(value);
      return (isBinary || reIsOctal.test(value))
        ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
        : (reIsBadHex.test(value) ? NAN : +value);
    }

    /**
     * Converts `value` to a plain object flattening inherited enumerable string
     * keyed properties of `value` to own properties of the plain object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Object} Returns the converted plain object.
     * @example
     *
     * function Foo() {
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.assign({ 'a': 1 }, new Foo);
     * // => { 'a': 1, 'b': 2 }
     *
     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
     * // => { 'a': 1, 'b': 2, 'c': 3 }
     */
    function toPlainObject(value) {
      return copyObject(value, keysIn(value));
    }

    /**
     * Converts `value` to a safe integer. A safe integer can be compared and
     * represented correctly.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toSafeInteger(3.2);
     * // => 3
     *
     * _.toSafeInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toSafeInteger(Infinity);
     * // => 9007199254740991
     *
     * _.toSafeInteger('3.2');
     * // => 3
     */
    function toSafeInteger(value) {
      return value
        ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
        : (value === 0 ? value : 0);
    }

    /**
     * Converts `value` to a string. An empty string is returned for `null`
     * and `undefined` values. The sign of `-0` is preserved.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.toString(null);
     * // => ''
     *
     * _.toString(-0);
     * // => '-0'
     *
     * _.toString([1, 2, 3]);
     * // => '1,2,3'
     */
    function toString(value) {
      return value == null ? '' : baseToString(value);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Assigns own enumerable string keyed properties of source objects to the
     * destination object. Source objects are applied from left to right.
     * Subsequent sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object` and is loosely based on
     * [`Object.assign`](https://mdn.io/Object/assign).
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assignIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assign({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'c': 3 }
     */
    var assign = createAssigner(function(object, source) {
      if (isPrototype(source) || isArrayLike(source)) {
        copyObject(source, keys(source), object);
        return;
      }
      for (var key in source) {
        if (hasOwnProperty.call(source, key)) {
          assignValue(object, key, source[key]);
        }
      }
    });

    /**
     * This method is like `_.assign` except that it iterates over own and
     * inherited source properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extend
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assign
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assignIn({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
     */
    var assignIn = createAssigner(function(object, source) {
      copyObject(source, keysIn(source), object);
    });

    /**
     * This method is like `_.assignIn` except that it accepts `customizer`
     * which is invoked to produce the assigned values. If `customizer` returns
     * `undefined`, assignment is handled by the method instead. The `customizer`
     * is invoked with five arguments: (objValue, srcValue, key, object, source).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extendWith
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @see _.assignWith
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   return _.isUndefined(objValue) ? srcValue : objValue;
     * }
     *
     * var defaults = _.partialRight(_.assignInWith, customizer);
     *
     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
      copyObject(source, keysIn(source), object, customizer);
    });

    /**
     * This method is like `_.assign` except that it accepts `customizer`
     * which is invoked to produce the assigned values. If `customizer` returns
     * `undefined`, assignment is handled by the method instead. The `customizer`
     * is invoked with five arguments: (objValue, srcValue, key, object, source).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @see _.assignInWith
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   return _.isUndefined(objValue) ? srcValue : objValue;
     * }
     *
     * var defaults = _.partialRight(_.assignWith, customizer);
     *
     * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
      copyObject(source, keys(source), object, customizer);
    });

    /**
     * Creates an array of values corresponding to `paths` of `object`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Array} Returns the picked values.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _.at(object, ['a[0].b.c', 'a[1]']);
     * // => [3, 4]
     */
    var at = flatRest(baseAt);

    /**
     * Creates an object that inherits from the `prototype` object. If a
     * `properties` object is given, its own enumerable string keyed properties
     * are assigned to the created object.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Object
     * @param {Object} prototype The object to inherit from.
     * @param {Object} [properties] The properties to assign to the object.
     * @returns {Object} Returns the new object.
     * @example
     *
     * function Shape() {
     *   this.x = 0;
     *   this.y = 0;
     * }
     *
     * function Circle() {
     *   Shape.call(this);
     * }
     *
     * Circle.prototype = _.create(Shape.prototype, {
     *   'constructor': Circle
     * });
     *
     * var circle = new Circle;
     * circle instanceof Circle;
     * // => true
     *
     * circle instanceof Shape;
     * // => true
     */
    function create(prototype, properties) {
      var result = baseCreate(prototype);
      return properties == null ? result : baseAssign(result, properties);
    }

    /**
     * Assigns own and inherited enumerable string keyed properties of source
     * objects to the destination object for all destination properties that
     * resolve to `undefined`. Source objects are applied from left to right.
     * Once a property is set, additional values of the same property are ignored.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaultsDeep
     * @example
     *
     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */
    var defaults = baseRest(function(object, sources) {
      object = Object(object);

      var index = -1;
      var length = sources.length;
      var guard = length > 2 ? sources[2] : undefined;

      if (guard && isIterateeCall(sources[0], sources[1], guard)) {
        length = 1;
      }

      while (++index < length) {
        var source = sources[index];
        var props = keysIn(source);
        var propsIndex = -1;
        var propsLength = props.length;

        while (++propsIndex < propsLength) {
          var key = props[propsIndex];
          var value = object[key];

          if (value === undefined ||
              (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
            object[key] = source[key];
          }
        }
      }

      return object;
    });

    /**
     * This method is like `_.defaults` except that it recursively assigns
     * default properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaults
     * @example
     *
     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
     * // => { 'a': { 'b': 2, 'c': 3 } }
     */
    var defaultsDeep = baseRest(function(args) {
      args.push(undefined, customDefaultsMerge);
      return apply(mergeWith, undefined, args);
    });

    /**
     * This method is like `_.find` except that it returns the key of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findKey(users, function(o) { return o.age < 40; });
     * // => 'barney' (iteration order is not guaranteed)
     *
     * // The `_.matches` iteratee shorthand.
     * _.findKey(users, { 'age': 1, 'active': true });
     * // => 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findKey(users, 'active');
     * // => 'barney'
     */
    function findKey(object, predicate) {
      return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
    }

    /**
     * This method is like `_.findKey` except that it iterates over elements of
     * a collection in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findLastKey(users, function(o) { return o.age < 40; });
     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastKey(users, { 'age': 36, 'active': true });
     * // => 'barney'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastKey(users, 'active');
     * // => 'pebbles'
     */
    function findLastKey(object, predicate) {
      return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
    }

    /**
     * Iterates over own and inherited enumerable string keyed properties of an
     * object and invokes `iteratee` for each property. The iteratee is invoked
     * with three arguments: (value, key, object). Iteratee functions may exit
     * iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forInRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forIn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
     */
    function forIn(object, iteratee) {
      return object == null
        ? object
        : baseFor(object, getIteratee(iteratee, 3), keysIn);
    }

    /**
     * This method is like `_.forIn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forInRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
     */
    function forInRight(object, iteratee) {
      return object == null
        ? object
        : baseForRight(object, getIteratee(iteratee, 3), keysIn);
    }

    /**
     * Iterates over own enumerable string keyed properties of an object and
     * invokes `iteratee` for each property. The iteratee is invoked with three
     * arguments: (value, key, object). Iteratee functions may exit iteration
     * early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwnRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */
    function forOwn(object, iteratee) {
      return object && baseForOwn(object, getIteratee(iteratee, 3));
    }

    /**
     * This method is like `_.forOwn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwnRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
     */
    function forOwnRight(object, iteratee) {
      return object && baseForOwnRight(object, getIteratee(iteratee, 3));
    }

    /**
     * Creates an array of function property names from own enumerable properties
     * of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functionsIn
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functions(new Foo);
     * // => ['a', 'b']
     */
    function functions(object) {
      return object == null ? [] : baseFunctions(object, keys(object));
    }

    /**
     * Creates an array of function property names from own and inherited
     * enumerable properties of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functions
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functionsIn(new Foo);
     * // => ['a', 'b', 'c']
     */
    function functionsIn(object) {
      return object == null ? [] : baseFunctions(object, keysIn(object));
    }

    /**
     * Gets the value at `path` of `object`. If the resolved value is
     * `undefined`, the `defaultValue` is returned in its place.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.get(object, 'a[0].b.c');
     * // => 3
     *
     * _.get(object, ['a', '0', 'b', 'c']);
     * // => 3
     *
     * _.get(object, 'a.b.c', 'default');
     * // => 'default'
     */
    function get(object, path, defaultValue) {
      var result = object == null ? undefined : baseGet(object, path);
      return result === undefined ? defaultValue : result;
    }

    /**
     * Checks if `path` is a direct property of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = { 'a': { 'b': 2 } };
     * var other = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.has(object, 'a');
     * // => true
     *
     * _.has(object, 'a.b');
     * // => true
     *
     * _.has(object, ['a', 'b']);
     * // => true
     *
     * _.has(other, 'a');
     * // => false
     */
    function has(object, path) {
      return object != null && hasPath(object, path, baseHas);
    }

    /**
     * Checks if `path` is a direct or inherited property of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.hasIn(object, 'a');
     * // => true
     *
     * _.hasIn(object, 'a.b');
     * // => true
     *
     * _.hasIn(object, ['a', 'b']);
     * // => true
     *
     * _.hasIn(object, 'b');
     * // => false
     */
    function hasIn(object, path) {
      return object != null && hasPath(object, path, baseHasIn);
    }

    /**
     * Creates an object composed of the inverted keys and values of `object`.
     * If `object` contains duplicate values, subsequent values overwrite
     * property assignments of previous values.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Object
     * @param {Object} object The object to invert.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invert(object);
     * // => { '1': 'c', '2': 'b' }
     */
    var invert = createInverter(function(result, value, key) {
      if (value != null &&
          typeof value.toString != 'function') {
        value = nativeObjectToString.call(value);
      }

      result[value] = key;
    }, constant(identity));

    /**
     * This method is like `_.invert` except that the inverted object is generated
     * from the results of running each element of `object` thru `iteratee`. The
     * corresponding inverted value of each inverted key is an array of keys
     * responsible for generating the inverted value. The iteratee is invoked
     * with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Object
     * @param {Object} object The object to invert.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invertBy(object);
     * // => { '1': ['a', 'c'], '2': ['b'] }
     *
     * _.invertBy(object, function(value) {
     *   return 'group' + value;
     * });
     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
     */
    var invertBy = createInverter(function(result, value, key) {
      if (value != null &&
          typeof value.toString != 'function') {
        value = nativeObjectToString.call(value);
      }

      if (hasOwnProperty.call(result, value)) {
        result[value].push(key);
      } else {
        result[value] = [key];
      }
    }, getIteratee);

    /**
     * Invokes the method at `path` of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
     *
     * _.invoke(object, 'a[0].b.c.slice', 1, 3);
     * // => [2, 3]
     */
    var invoke = baseRest(baseInvoke);

    /**
     * Creates an array of the own enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects. See the
     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * for more details.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keys(new Foo);
     * // => ['a', 'b'] (iteration order is not guaranteed)
     *
     * _.keys('hi');
     * // => ['0', '1']
     */
    function keys(object) {
      return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
    }

    /**
     * Creates an array of the own and inherited enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keysIn(new Foo);
     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
     */
    function keysIn(object) {
      return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
    }

    /**
     * The opposite of `_.mapValues`; this method creates an object with the
     * same values as `object` and keys generated by running each own enumerable
     * string keyed property of `object` thru `iteratee`. The iteratee is invoked
     * with three arguments: (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapValues
     * @example
     *
     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
     *   return key + value;
     * });
     * // => { 'a1': 1, 'b2': 2 }
     */
    function mapKeys(object, iteratee) {
      var result = {};
      iteratee = getIteratee(iteratee, 3);

      baseForOwn(object, function(value, key, object) {
        baseAssignValue(result, iteratee(value, key, object), value);
      });
      return result;
    }

    /**
     * Creates an object with the same keys as `object` and values generated
     * by running each own enumerable string keyed property of `object` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapKeys
     * @example
     *
     * var users = {
     *   'fred':    { 'user': 'fred',    'age': 40 },
     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
     * };
     *
     * _.mapValues(users, function(o) { return o.age; });
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     *
     * // The `_.property` iteratee shorthand.
     * _.mapValues(users, 'age');
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     */
    function mapValues(object, iteratee) {
      var result = {};
      iteratee = getIteratee(iteratee, 3);

      baseForOwn(object, function(value, key, object) {
        baseAssignValue(result, key, iteratee(value, key, object));
      });
      return result;
    }

    /**
     * This method is like `_.assign` except that it recursively merges own and
     * inherited enumerable string keyed properties of source objects into the
     * destination object. Source properties that resolve to `undefined` are
     * skipped if a destination value exists. Array and plain object properties
     * are merged recursively. Other objects and value types are overridden by
     * assignment. Source objects are applied from left to right. Subsequent
     * sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {
     *   'a': [{ 'b': 2 }, { 'd': 4 }]
     * };
     *
     * var other = {
     *   'a': [{ 'c': 3 }, { 'e': 5 }]
     * };
     *
     * _.merge(object, other);
     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
     */
    var merge = createAssigner(function(object, source, srcIndex) {
      baseMerge(object, source, srcIndex);
    });

    /**
     * This method is like `_.merge` except that it accepts `customizer` which
     * is invoked to produce the merged values of the destination and source
     * properties. If `customizer` returns `undefined`, merging is handled by the
     * method instead. The `customizer` is invoked with six arguments:
     * (objValue, srcValue, key, object, source, stack).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} customizer The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   if (_.isArray(objValue)) {
     *     return objValue.concat(srcValue);
     *   }
     * }
     *
     * var object = { 'a': [1], 'b': [2] };
     * var other = { 'a': [3], 'b': [4] };
     *
     * _.mergeWith(object, other, customizer);
     * // => { 'a': [1, 3], 'b': [2, 4] }
     */
    var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
      baseMerge(object, source, srcIndex, customizer);
    });

    /**
     * The opposite of `_.pick`; this method creates an object composed of the
     * own and inherited enumerable property paths of `object` that are not omitted.
     *
     * **Note:** This method is considerably slower than `_.pick`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to omit.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omit(object, ['a', 'c']);
     * // => { 'b': '2' }
     */
    var omit = flatRest(function(object, paths) {
      var result = {};
      if (object == null) {
        return result;
      }
      var isDeep = false;
      paths = arrayMap(paths, function(path) {
        path = castPath(path, object);
        isDeep || (isDeep = path.length > 1);
        return path;
      });
      copyObject(object, getAllKeysIn(object), result);
      if (isDeep) {
        result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
      }
      var length = paths.length;
      while (length--) {
        baseUnset(result, paths[length]);
      }
      return result;
    });

    /**
     * The opposite of `_.pickBy`; this method creates an object composed of
     * the own and inherited enumerable string keyed properties of `object` that
     * `predicate` doesn't return truthy for. The predicate is invoked with two
     * arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omitBy(object, _.isNumber);
     * // => { 'b': '2' }
     */
    function omitBy(object, predicate) {
      return pickBy(object, negate(getIteratee(predicate)));
    }

    /**
     * Creates an object composed of the picked `object` properties.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pick(object, ['a', 'c']);
     * // => { 'a': 1, 'c': 3 }
     */
    var pick = flatRest(function(object, paths) {
      return object == null ? {} : basePick(object, paths);
    });

    /**
     * Creates an object composed of the `object` properties `predicate` returns
     * truthy for. The predicate is invoked with two arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pickBy(object, _.isNumber);
     * // => { 'a': 1, 'c': 3 }
     */
    function pickBy(object, predicate) {
      if (object == null) {
        return {};
      }
      var props = arrayMap(getAllKeysIn(object), function(prop) {
        return [prop];
      });
      predicate = getIteratee(predicate);
      return basePickBy(object, props, function(value, path) {
        return predicate(value, path[0]);
      });
    }

    /**
     * This method is like `_.get` except that if the resolved value is a
     * function it's invoked with the `this` binding of its parent object and
     * its result is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to resolve.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
     *
     * _.result(object, 'a[0].b.c1');
     * // => 3
     *
     * _.result(object, 'a[0].b.c2');
     * // => 4
     *
     * _.result(object, 'a[0].b.c3', 'default');
     * // => 'default'
     *
     * _.result(object, 'a[0].b.c3', _.constant('default'));
     * // => 'default'
     */
    function result(object, path, defaultValue) {
      path = castPath(path, object);

      var index = -1,
          length = path.length;

      // Ensure the loop is entered when path is empty.
      if (!length) {
        length = 1;
        object = undefined;
      }
      while (++index < length) {
        var value = object == null ? undefined : object[toKey(path[index])];
        if (value === undefined) {
          index = length;
          value = defaultValue;
        }
        object = isFunction(value) ? value.call(object) : value;
      }
      return object;
    }

    /**
     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
     * it's created. Arrays are created for missing index properties while objects
     * are created for all other missing properties. Use `_.setWith` to customize
     * `path` creation.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.set(object, 'a[0].b.c', 4);
     * console.log(object.a[0].b.c);
     * // => 4
     *
     * _.set(object, ['x', '0', 'y', 'z'], 5);
     * console.log(object.x[0].y.z);
     * // => 5
     */
    function set(object, path, value) {
      return object == null ? object : baseSet(object, path, value);
    }

    /**
     * This method is like `_.set` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.setWith(object, '[0][1]', 'a', Object);
     * // => { '0': { '1': 'a' } }
     */
    function setWith(object, path, value, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return object == null ? object : baseSet(object, path, value, customizer);
    }

    /**
     * Creates an array of own enumerable string keyed-value pairs for `object`
     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
     * entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entries
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairs(new Foo);
     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
     */
    var toPairs = createToPairs(keys);

    /**
     * Creates an array of own and inherited enumerable string keyed-value pairs
     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
     * or set, its entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entriesIn
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairsIn(new Foo);
     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
     */
    var toPairsIn = createToPairs(keysIn);

    /**
     * An alternative to `_.reduce`; this method transforms `object` to a new
     * `accumulator` object which is the result of running each of its own
     * enumerable string keyed properties thru `iteratee`, with each invocation
     * potentially mutating the `accumulator` object. If `accumulator` is not
     * provided, a new object with the same `[[Prototype]]` will be used. The
     * iteratee is invoked with four arguments: (accumulator, value, key, object).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The custom accumulator value.
     * @returns {*} Returns the accumulated value.
     * @example
     *
     * _.transform([2, 3, 4], function(result, n) {
     *   result.push(n *= n);
     *   return n % 2 == 0;
     * }, []);
     * // => [4, 9]
     *
     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] }
     */
    function transform(object, iteratee, accumulator) {
      var isArr = isArray(object),
          isArrLike = isArr || isBuffer(object) || isTypedArray(object);

      iteratee = getIteratee(iteratee, 4);
      if (accumulator == null) {
        var Ctor = object && object.constructor;
        if (isArrLike) {
          accumulator = isArr ? new Ctor : [];
        }
        else if (isObject(object)) {
          accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
        }
        else {
          accumulator = {};
        }
      }
      (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
        return iteratee(accumulator, value, index, object);
      });
      return accumulator;
    }

    /**
     * Removes the property at `path` of `object`.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 7 } }] };
     * _.unset(object, 'a[0].b.c');
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     *
     * _.unset(object, ['a', '0', 'b', 'c']);
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     */
    function unset(object, path) {
      return object == null ? true : baseUnset(object, path);
    }

    /**
     * This method is like `_.set` except that accepts `updater` to produce the
     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
     * is invoked with one argument: (value).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.update(object, 'a[0].b.c', function(n) { return n * n; });
     * console.log(object.a[0].b.c);
     * // => 9
     *
     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
     * console.log(object.x[0].y.z);
     * // => 0
     */
    function update(object, path, updater) {
      return object == null ? object : baseUpdate(object, path, castFunction(updater));
    }

    /**
     * This method is like `_.update` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.updateWith(object, '[0][1]', _.constant('a'), Object);
     * // => { '0': { '1': 'a' } }
     */
    function updateWith(object, path, updater, customizer) {
      customizer = typeof customizer == 'function' ? customizer : undefined;
      return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
    }

    /**
     * Creates an array of the own enumerable string keyed property values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.values(new Foo);
     * // => [1, 2] (iteration order is not guaranteed)
     *
     * _.values('hi');
     * // => ['h', 'i']
     */
    function values(object) {
      return object == null ? [] : baseValues(object, keys(object));
    }

    /**
     * Creates an array of the own and inherited enumerable string keyed property
     * values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.valuesIn(new Foo);
     * // => [1, 2, 3] (iteration order is not guaranteed)
     */
    function valuesIn(object) {
      return object == null ? [] : baseValues(object, keysIn(object));
    }

    /*------------------------------------------------------------------------*/

    /**
     * Clamps `number` within the inclusive `lower` and `upper` bounds.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Number
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     * @example
     *
     * _.clamp(-10, -5, 5);
     * // => -5
     *
     * _.clamp(10, -5, 5);
     * // => 5
     */
    function clamp(number, lower, upper) {
      if (upper === undefined) {
        upper = lower;
        lower = undefined;
      }
      if (upper !== undefined) {
        upper = toNumber(upper);
        upper = upper === upper ? upper : 0;
      }
      if (lower !== undefined) {
        lower = toNumber(lower);
        lower = lower === lower ? lower : 0;
      }
      return baseClamp(toNumber(number), lower, upper);
    }

    /**
     * Checks if `n` is between `start` and up to, but not including, `end`. If
     * `end` is not specified, it's set to `start` with `start` then set to `0`.
     * If `start` is greater than `end` the params are swapped to support
     * negative ranges.
     *
     * @static
     * @memberOf _
     * @since 3.3.0
     * @category Number
     * @param {number} number The number to check.
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     * @see _.range, _.rangeRight
     * @example
     *
     * _.inRange(3, 2, 4);
     * // => true
     *
     * _.inRange(4, 8);
     * // => true
     *
     * _.inRange(4, 2);
     * // => false
     *
     * _.inRange(2, 2);
     * // => false
     *
     * _.inRange(1.2, 2);
     * // => true
     *
     * _.inRange(5.2, 4);
     * // => false
     *
     * _.inRange(-3, -2, -6);
     * // => true
     */
    function inRange(number, start, end) {
      start = toFinite(start);
      if (end === undefined) {
        end = start;
        start = 0;
      } else {
        end = toFinite(end);
      }
      number = toNumber(number);
      return baseInRange(number, start, end);
    }

    /**
     * Produces a random number between the inclusive `lower` and `upper` bounds.
     * If only one argument is provided a number between `0` and the given number
     * is returned. If `floating` is `true`, or either `lower` or `upper` are
     * floats, a floating-point number is returned instead of an integer.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Number
     * @param {number} [lower=0] The lower bound.
     * @param {number} [upper=1] The upper bound.
     * @param {boolean} [floating] Specify returning a floating-point number.
     * @returns {number} Returns the random number.
     * @example
     *
     * _.random(0, 5);
     * // => an integer between 0 and 5
     *
     * _.random(5);
     * // => also an integer between 0 and 5
     *
     * _.random(5, true);
     * // => a floating-point number between 0 and 5
     *
     * _.random(1.2, 5.2);
     * // => a floating-point number between 1.2 and 5.2
     */
    function random(lower, upper, floating) {
      if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
        upper = floating = undefined;
      }
      if (floating === undefined) {
        if (typeof upper == 'boolean') {
          floating = upper;
          upper = undefined;
        }
        else if (typeof lower == 'boolean') {
          floating = lower;
          lower = undefined;
        }
      }
      if (lower === undefined && upper === undefined) {
        lower = 0;
        upper = 1;
      }
      else {
        lower = toFinite(lower);
        if (upper === undefined) {
          upper = lower;
          lower = 0;
        } else {
          upper = toFinite(upper);
        }
      }
      if (lower > upper) {
        var temp = lower;
        lower = upper;
        upper = temp;
      }
      if (floating || lower % 1 || upper % 1) {
        var rand = nativeRandom();
        return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
      }
      return baseRandom(lower, upper);
    }

    /*------------------------------------------------------------------------*/

    /**
     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the camel cased string.
     * @example
     *
     * _.camelCase('Foo Bar');
     * // => 'fooBar'
     *
     * _.camelCase('--foo-bar--');
     * // => 'fooBar'
     *
     * _.camelCase('__FOO_BAR__');
     * // => 'fooBar'
     */
    var camelCase = createCompounder(function(result, word, index) {
      word = word.toLowerCase();
      return result + (index ? capitalize(word) : word);
    });

    /**
     * Converts the first character of `string` to upper case and the remaining
     * to lower case.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to capitalize.
     * @returns {string} Returns the capitalized string.
     * @example
     *
     * _.capitalize('FRED');
     * // => 'Fred'
     */
    function capitalize(string) {
      return upperFirst(toString(string).toLowerCase());
    }

    /**
     * Deburrs `string` by converting
     * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
     * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
     * letters to basic Latin letters and removing
     * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to deburr.
     * @returns {string} Returns the deburred string.
     * @example
     *
     * _.deburr('déjà vu');
     * // => 'deja vu'
     */
    function deburr(string) {
      string = toString(string);
      return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
    }

    /**
     * Checks if `string` ends with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=string.length] The position to search up to.
     * @returns {boolean} Returns `true` if `string` ends with `target`,
     *  else `false`.
     * @example
     *
     * _.endsWith('abc', 'c');
     * // => true
     *
     * _.endsWith('abc', 'b');
     * // => false
     *
     * _.endsWith('abc', 'b', 2);
     * // => true
     */
    function endsWith(string, target, position) {
      string = toString(string);
      target = baseToString(target);

      var length = string.length;
      position = position === undefined
        ? length
        : baseClamp(toInteger(position), 0, length);

      var end = position;
      position -= target.length;
      return position >= 0 && string.slice(position, end) == target;
    }

    /**
     * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
     * corresponding HTML entities.
     *
     * **Note:** No other characters are escaped. To escape additional
     * characters use a third-party library like [_he_](https://mths.be/he).
     *
     * Though the ">" character is escaped for symmetry, characters like
     * ">" and "/" don't need escaping in HTML and have no special meaning
     * unless they're part of a tag or unquoted attribute value. See
     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
     * (under "semi-related fun fact") for more details.
     *
     * When working with HTML you should always
     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
     * XSS vectors.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escape('fred, barney, & pebbles');
     * // => 'fred, barney, &amp; pebbles'
     */
    function escape(string) {
      string = toString(string);
      return (string && reHasUnescapedHtml.test(string))
        ? string.replace(reUnescapedHtml, escapeHtmlChar)
        : string;
    }

    /**
     * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
     * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escapeRegExp('[lodash](https://lodash.com/)');
     * // => '\[lodash\]\(https://lodash\.com/\)'
     */
    function escapeRegExp(string) {
      string = toString(string);
      return (string && reHasRegExpChar.test(string))
        ? string.replace(reRegExpChar, '\\$&')
        : string;
    }

    /**
     * Converts `string` to
     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the kebab cased string.
     * @example
     *
     * _.kebabCase('Foo Bar');
     * // => 'foo-bar'
     *
     * _.kebabCase('fooBar');
     * // => 'foo-bar'
     *
     * _.kebabCase('__FOO_BAR__');
     * // => 'foo-bar'
     */
    var kebabCase = createCompounder(function(result, word, index) {
      return result + (index ? '-' : '') + word.toLowerCase();
    });

    /**
     * Converts `string`, as space separated words, to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.lowerCase('--Foo-Bar--');
     * // => 'foo bar'
     *
     * _.lowerCase('fooBar');
     * // => 'foo bar'
     *
     * _.lowerCase('__FOO_BAR__');
     * // => 'foo bar'
     */
    var lowerCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + word.toLowerCase();
    });

    /**
     * Converts the first character of `string` to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.lowerFirst('Fred');
     * // => 'fred'
     *
     * _.lowerFirst('FRED');
     * // => 'fRED'
     */
    var lowerFirst = createCaseFirst('toLowerCase');

    /**
     * Pads `string` on the left and right sides if it's shorter than `length`.
     * Padding characters are truncated if they can't be evenly divided by `length`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.pad('abc', 8);
     * // => '  abc   '
     *
     * _.pad('abc', 8, '_-');
     * // => '_-abc_-_'
     *
     * _.pad('abc', 3);
     * // => 'abc'
     */
    function pad(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      if (!length || strLength >= length) {
        return string;
      }
      var mid = (length - strLength) / 2;
      return (
        createPadding(nativeFloor(mid), chars) +
        string +
        createPadding(nativeCeil(mid), chars)
      );
    }

    /**
     * Pads `string` on the right side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padEnd('abc', 6);
     * // => 'abc   '
     *
     * _.padEnd('abc', 6, '_-');
     * // => 'abc_-_'
     *
     * _.padEnd('abc', 3);
     * // => 'abc'
     */
    function padEnd(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      return (length && strLength < length)
        ? (string + createPadding(length - strLength, chars))
        : string;
    }

    /**
     * Pads `string` on the left side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padStart('abc', 6);
     * // => '   abc'
     *
     * _.padStart('abc', 6, '_-');
     * // => '_-_abc'
     *
     * _.padStart('abc', 3);
     * // => 'abc'
     */
    function padStart(string, length, chars) {
      string = toString(string);
      length = toInteger(length);

      var strLength = length ? stringSize(string) : 0;
      return (length && strLength < length)
        ? (createPadding(length - strLength, chars) + string)
        : string;
    }

    /**
     * Converts `string` to an integer of the specified radix. If `radix` is
     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
     * hexadecimal, in which case a `radix` of `16` is used.
     *
     * **Note:** This method aligns with the
     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category String
     * @param {string} string The string to convert.
     * @param {number} [radix=10] The radix to interpret `value` by.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.parseInt('08');
     * // => 8
     *
     * _.map(['6', '08', '10'], _.parseInt);
     * // => [6, 8, 10]
     */
    function parseInt(string, radix, guard) {
      if (guard || radix == null) {
        radix = 0;
      } else if (radix) {
        radix = +radix;
      }
      return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
    }

    /**
     * Repeats the given string `n` times.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to repeat.
     * @param {number} [n=1] The number of times to repeat the string.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the repeated string.
     * @example
     *
     * _.repeat('*', 3);
     * // => '***'
     *
     * _.repeat('abc', 2);
     * // => 'abcabc'
     *
     * _.repeat('abc', 0);
     * // => ''
     */
    function repeat(string, n, guard) {
      if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
        n = 1;
      } else {
        n = toInteger(n);
      }
      return baseRepeat(toString(string), n);
    }

    /**
     * Replaces matches for `pattern` in `string` with `replacement`.
     *
     * **Note:** This method is based on
     * [`String#replace`](https://mdn.io/String/replace).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to modify.
     * @param {RegExp|string} pattern The pattern to replace.
     * @param {Function|string} replacement The match replacement.
     * @returns {string} Returns the modified string.
     * @example
     *
     * _.replace('Hi Fred', 'Fred', 'Barney');
     * // => 'Hi Barney'
     */
    function replace() {
      var args = arguments,
          string = toString(args[0]);

      return args.length < 3 ? string : string.replace(args[1], args[2]);
    }

    /**
     * Converts `string` to
     * [snake case](https://en.wikipedia.org/wiki/Snake_case).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the snake cased string.
     * @example
     *
     * _.snakeCase('Foo Bar');
     * // => 'foo_bar'
     *
     * _.snakeCase('fooBar');
     * // => 'foo_bar'
     *
     * _.snakeCase('--FOO-BAR--');
     * // => 'foo_bar'
     */
    var snakeCase = createCompounder(function(result, word, index) {
      return result + (index ? '_' : '') + word.toLowerCase();
    });

    /**
     * Splits `string` by `separator`.
     *
     * **Note:** This method is based on
     * [`String#split`](https://mdn.io/String/split).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to split.
     * @param {RegExp|string} separator The separator pattern to split by.
     * @param {number} [limit] The length to truncate results to.
     * @returns {Array} Returns the string segments.
     * @example
     *
     * _.split('a-b-c', '-', 2);
     * // => ['a', 'b']
     */
    function split(string, separator, limit) {
      if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
        separator = limit = undefined;
      }
      limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
      if (!limit) {
        return [];
      }
      string = toString(string);
      if (string && (
            typeof separator == 'string' ||
            (separator != null && !isRegExp(separator))
          )) {
        separator = baseToString(separator);
        if (!separator && hasUnicode(string)) {
          return castSlice(stringToArray(string), 0, limit);
        }
      }
      return string.split(separator, limit);
    }

    /**
     * Converts `string` to
     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
     *
     * @static
     * @memberOf _
     * @since 3.1.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the start cased string.
     * @example
     *
     * _.startCase('--foo-bar--');
     * // => 'Foo Bar'
     *
     * _.startCase('fooBar');
     * // => 'Foo Bar'
     *
     * _.startCase('__FOO_BAR__');
     * // => 'FOO BAR'
     */
    var startCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + upperFirst(word);
    });

    /**
     * Checks if `string` starts with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=0] The position to search from.
     * @returns {boolean} Returns `true` if `string` starts with `target`,
     *  else `false`.
     * @example
     *
     * _.startsWith('abc', 'a');
     * // => true
     *
     * _.startsWith('abc', 'b');
     * // => false
     *
     * _.startsWith('abc', 'b', 1);
     * // => true
     */
    function startsWith(string, target, position) {
      string = toString(string);
      position = position == null
        ? 0
        : baseClamp(toInteger(position), 0, string.length);

      target = baseToString(target);
      return string.slice(position, position + target.length) == target;
    }

    /**
     * Creates a compiled template function that can interpolate data properties
     * in "interpolate" delimiters, HTML-escape interpolated data properties in
     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
     * properties may be accessed as free variables in the template. If a setting
     * object is given, it takes precedence over `_.templateSettings` values.
     *
     * **Note:** In the development build `_.template` utilizes
     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
     * for easier debugging.
     *
     * For more information on precompiling templates see
     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
     *
     * For more information on Chrome extension sandboxes see
     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The template string.
     * @param {Object} [options={}] The options object.
     * @param {RegExp} [options.escape=_.templateSettings.escape]
     *  The HTML "escape" delimiter.
     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
     *  The "evaluate" delimiter.
     * @param {Object} [options.imports=_.templateSettings.imports]
     *  An object to import into the template as free variables.
     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
     *  The "interpolate" delimiter.
     * @param {string} [options.sourceURL='lodash.templateSources[n]']
     *  The sourceURL of the compiled template.
     * @param {string} [options.variable='obj']
     *  The data object variable name.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the compiled template function.
     * @example
     *
     * // Use the "interpolate" delimiter to create a compiled template.
     * var compiled = _.template('hello <%= user %>!');
     * compiled({ 'user': 'fred' });
     * // => 'hello fred!'
     *
     * // Use the HTML "escape" delimiter to escape data property values.
     * var compiled = _.template('<b><%- value %></b>');
     * compiled({ 'value': '<script>' });
     * // => '<b>&lt;script&gt;</b>'
     *
     * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the internal `print` function in "evaluate" delimiters.
     * var compiled = _.template('<% print("hello " + user); %>!');
     * compiled({ 'user': 'barney' });
     * // => 'hello barney!'
     *
     * // Use the ES template literal delimiter as an "interpolate" delimiter.
     * // Disable support by replacing the "interpolate" delimiter.
     * var compiled = _.template('hello ${ user }!');
     * compiled({ 'user': 'pebbles' });
     * // => 'hello pebbles!'
     *
     * // Use backslashes to treat delimiters as plain text.
     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
     * compiled({ 'value': 'ignored' });
     * // => '<%- value %>'
     *
     * // Use the `imports` option to import `jQuery` as `jq`.
     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the `sourceURL` option to specify a custom sourceURL for the template.
     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
     * compiled(data);
     * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
     *
     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
     * compiled.source;
     * // => function(data) {
     * //   var __t, __p = '';
     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
     * //   return __p;
     * // }
     *
     * // Use custom template delimiters.
     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
     * var compiled = _.template('hello {{ user }}!');
     * compiled({ 'user': 'mustache' });
     * // => 'hello mustache!'
     *
     * // Use the `source` property to inline compiled templates for meaningful
     * // line numbers in error messages and stack traces.
     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
     *   var JST = {\
     *     "main": ' + _.template(mainText).source + '\
     *   };\
     * ');
     */
    function template(string, options, guard) {
      // Based on John Resig's `tmpl` implementation
      // (http://ejohn.org/blog/javascript-micro-templating/)
      // and Laura Doktorova's doT.js (https://github.com/olado/doT).
      var settings = lodash.templateSettings;

      if (guard && isIterateeCall(string, options, guard)) {
        options = undefined;
      }
      string = toString(string);
      options = assignInWith({}, options, settings, customDefaultsAssignIn);

      var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
          importsKeys = keys(imports),
          importsValues = baseValues(imports, importsKeys);

      var isEscaping,
          isEvaluating,
          index = 0,
          interpolate = options.interpolate || reNoMatch,
          source = "__p += '";

      // Compile the regexp to match each delimiter.
      var reDelimiters = RegExp(
        (options.escape || reNoMatch).source + '|' +
        interpolate.source + '|' +
        (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
        (options.evaluate || reNoMatch).source + '|$'
      , 'g');

      // Use a sourceURL for easier debugging.
      // The sourceURL gets injected into the source that's eval-ed, so be careful
      // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
      // and escape the comment, thus injecting code that gets evaled.
      var sourceURL = '//# sourceURL=' +
        (hasOwnProperty.call(options, 'sourceURL')
          ? (options.sourceURL + '').replace(/\s/g, ' ')
          : ('lodash.templateSources[' + (++templateCounter) + ']')
        ) + '\n';

      string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
        interpolateValue || (interpolateValue = esTemplateValue);

        // Escape characters that can't be included in string literals.
        source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);

        // Replace delimiters with snippets.
        if (escapeValue) {
          isEscaping = true;
          source += "' +\n__e(" + escapeValue + ") +\n'";
        }
        if (evaluateValue) {
          isEvaluating = true;
          source += "';\n" + evaluateValue + ";\n__p += '";
        }
        if (interpolateValue) {
          source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
        }
        index = offset + match.length;

        // The JS engine embedded in Adobe products needs `match` returned in
        // order to produce the correct `offset` value.
        return match;
      });

      source += "';\n";

      // If `variable` is not specified wrap a with-statement around the generated
      // code to add the data object to the top of the scope chain.
      var variable = hasOwnProperty.call(options, 'variable') && options.variable;
      if (!variable) {
        source = 'with (obj) {\n' + source + '\n}\n';
      }
      // Cleanup code by stripping empty strings.
      source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
        .replace(reEmptyStringMiddle, '$1')
        .replace(reEmptyStringTrailing, '$1;');

      // Frame code as the function body.
      source = 'function(' + (variable || 'obj') + ') {\n' +
        (variable
          ? ''
          : 'obj || (obj = {});\n'
        ) +
        "var __t, __p = ''" +
        (isEscaping
           ? ', __e = _.escape'
           : ''
        ) +
        (isEvaluating
          ? ', __j = Array.prototype.join;\n' +
            "function print() { __p += __j.call(arguments, '') }\n"
          : ';\n'
        ) +
        source +
        'return __p\n}';

      var result = attempt(function() {
        return Function(importsKeys, sourceURL + 'return ' + source)
          .apply(undefined, importsValues);
      });

      // Provide the compiled function's source by its `toString` method or
      // the `source` property as a convenience for inlining compiled templates.
      result.source = source;
      if (isError(result)) {
        throw result;
      }
      return result;
    }

    /**
     * Converts `string`, as a whole, to lower case just like
     * [String#toLowerCase](https://mdn.io/toLowerCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.toLower('--Foo-Bar--');
     * // => '--foo-bar--'
     *
     * _.toLower('fooBar');
     * // => 'foobar'
     *
     * _.toLower('__FOO_BAR__');
     * // => '__foo_bar__'
     */
    function toLower(value) {
      return toString(value).toLowerCase();
    }

    /**
     * Converts `string`, as a whole, to upper case just like
     * [String#toUpperCase](https://mdn.io/toUpperCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.toUpper('--foo-bar--');
     * // => '--FOO-BAR--'
     *
     * _.toUpper('fooBar');
     * // => 'FOOBAR'
     *
     * _.toUpper('__foo_bar__');
     * // => '__FOO_BAR__'
     */
    function toUpper(value) {
      return toString(value).toUpperCase();
    }

    /**
     * Removes leading and trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trim('  abc  ');
     * // => 'abc'
     *
     * _.trim('-_-abc-_-', '_-');
     * // => 'abc'
     *
     * _.map(['  foo  ', '  bar  '], _.trim);
     * // => ['foo', 'bar']
     */
    function trim(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrim, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          chrSymbols = stringToArray(chars),
          start = charsStartIndex(strSymbols, chrSymbols),
          end = charsEndIndex(strSymbols, chrSymbols) + 1;

      return castSlice(strSymbols, start, end).join('');
    }

    /**
     * Removes trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimEnd('  abc  ');
     * // => '  abc'
     *
     * _.trimEnd('-_-abc-_-', '_-');
     * // => '-_-abc'
     */
    function trimEnd(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrimEnd, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;

      return castSlice(strSymbols, 0, end).join('');
    }

    /**
     * Removes leading whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimStart('  abc  ');
     * // => 'abc  '
     *
     * _.trimStart('-_-abc-_-', '_-');
     * // => 'abc-_-'
     */
    function trimStart(string, chars, guard) {
      string = toString(string);
      if (string && (guard || chars === undefined)) {
        return string.replace(reTrimStart, '');
      }
      if (!string || !(chars = baseToString(chars))) {
        return string;
      }
      var strSymbols = stringToArray(string),
          start = charsStartIndex(strSymbols, stringToArray(chars));

      return castSlice(strSymbols, start).join('');
    }

    /**
     * Truncates `string` if it's longer than the given maximum string length.
     * The last characters of the truncated string are replaced with the omission
     * string which defaults to "...".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to truncate.
     * @param {Object} [options={}] The options object.
     * @param {number} [options.length=30] The maximum string length.
     * @param {string} [options.omission='...'] The string to indicate text is omitted.
     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
     * @returns {string} Returns the truncated string.
     * @example
     *
     * _.truncate('hi-diddly-ho there, neighborino');
     * // => 'hi-diddly-ho there, neighbo...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': ' '
     * });
     * // => 'hi-diddly-ho there,...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': /,? +/
     * });
     * // => 'hi-diddly-ho there...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'omission': ' [...]'
     * });
     * // => 'hi-diddly-ho there, neig [...]'
     */
    function truncate(string, options) {
      var length = DEFAULT_TRUNC_LENGTH,
          omission = DEFAULT_TRUNC_OMISSION;

      if (isObject(options)) {
        var separator = 'separator' in options ? options.separator : separator;
        length = 'length' in options ? toInteger(options.length) : length;
        omission = 'omission' in options ? baseToString(options.omission) : omission;
      }
      string = toString(string);

      var strLength = string.length;
      if (hasUnicode(string)) {
        var strSymbols = stringToArray(string);
        strLength = strSymbols.length;
      }
      if (length >= strLength) {
        return string;
      }
      var end = length - stringSize(omission);
      if (end < 1) {
        return omission;
      }
      var result = strSymbols
        ? castSlice(strSymbols, 0, end).join('')
        : string.slice(0, end);

      if (separator === undefined) {
        return result + omission;
      }
      if (strSymbols) {
        end += (result.length - end);
      }
      if (isRegExp(separator)) {
        if (string.slice(end).search(separator)) {
          var match,
              substring = result;

          if (!separator.global) {
            separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
          }
          separator.lastIndex = 0;
          while ((match = separator.exec(substring))) {
            var newEnd = match.index;
          }
          result = result.slice(0, newEnd === undefined ? end : newEnd);
        }
      } else if (string.indexOf(baseToString(separator), end) != end) {
        var index = result.lastIndexOf(separator);
        if (index > -1) {
          result = result.slice(0, index);
        }
      }
      return result + omission;
    }

    /**
     * The inverse of `_.escape`; this method converts the HTML entities
     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
     * their corresponding characters.
     *
     * **Note:** No other HTML entities are unescaped. To unescape additional
     * HTML entities use a third-party library like [_he_](https://mths.be/he).
     *
     * @static
     * @memberOf _
     * @since 0.6.0
     * @category String
     * @param {string} [string=''] The string to unescape.
     * @returns {string} Returns the unescaped string.
     * @example
     *
     * _.unescape('fred, barney, &amp; pebbles');
     * // => 'fred, barney, & pebbles'
     */
    function unescape(string) {
      string = toString(string);
      return (string && reHasEscapedHtml.test(string))
        ? string.replace(reEscapedHtml, unescapeHtmlChar)
        : string;
    }

    /**
     * Converts `string`, as space separated words, to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.upperCase('--foo-bar');
     * // => 'FOO BAR'
     *
     * _.upperCase('fooBar');
     * // => 'FOO BAR'
     *
     * _.upperCase('__foo_bar__');
     * // => 'FOO BAR'
     */
    var upperCase = createCompounder(function(result, word, index) {
      return result + (index ? ' ' : '') + word.toUpperCase();
    });

    /**
     * Converts the first character of `string` to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.upperFirst('fred');
     * // => 'Fred'
     *
     * _.upperFirst('FRED');
     * // => 'FRED'
     */
    var upperFirst = createCaseFirst('toUpperCase');

    /**
     * Splits `string` into an array of its words.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {RegExp|string} [pattern] The pattern to match words.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the words of `string`.
     * @example
     *
     * _.words('fred, barney, & pebbles');
     * // => ['fred', 'barney', 'pebbles']
     *
     * _.words('fred, barney, & pebbles', /[^, ]+/g);
     * // => ['fred', 'barney', '&', 'pebbles']
     */
    function words(string, pattern, guard) {
      string = toString(string);
      pattern = guard ? undefined : pattern;

      if (pattern === undefined) {
        return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
      }
      return string.match(pattern) || [];
    }

    /*------------------------------------------------------------------------*/

    /**
     * Attempts to invoke `func`, returning either the result or the caught error
     * object. Any additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Function} func The function to attempt.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {*} Returns the `func` result or error object.
     * @example
     *
     * // Avoid throwing errors for invalid selectors.
     * var elements = _.attempt(function(selector) {
     *   return document.querySelectorAll(selector);
     * }, '>_>');
     *
     * if (_.isError(elements)) {
     *   elements = [];
     * }
     */
    var attempt = baseRest(function(func, args) {
      try {
        return apply(func, undefined, args);
      } catch (e) {
        return isError(e) ? e : new Error(e);
      }
    });

    /**
     * Binds methods of an object to the object itself, overwriting the existing
     * method.
     *
     * **Note:** This method doesn't set the "length" property of bound functions.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Object} object The object to bind and assign the bound methods to.
     * @param {...(string|string[])} methodNames The object method names to bind.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var view = {
     *   'label': 'docs',
     *   'click': function() {
     *     console.log('clicked ' + this.label);
     *   }
     * };
     *
     * _.bindAll(view, ['click']);
     * jQuery(element).on('click', view.click);
     * // => Logs 'clicked docs' when clicked.
     */
    var bindAll = flatRest(function(object, methodNames) {
      arrayEach(methodNames, function(key) {
        key = toKey(key);
        baseAssignValue(object, key, bind(object[key], object));
      });
      return object;
    });

    /**
     * Creates a function that iterates over `pairs` and invokes the corresponding
     * function of the first predicate to return truthy. The predicate-function
     * pairs are invoked with the `this` binding and arguments of the created
     * function.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Array} pairs The predicate-function pairs.
     * @returns {Function} Returns the new composite function.
     * @example
     *
     * var func = _.cond([
     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
     *   [_.stubTrue,                      _.constant('no match')]
     * ]);
     *
     * func({ 'a': 1, 'b': 2 });
     * // => 'matches A'
     *
     * func({ 'a': 0, 'b': 1 });
     * // => 'matches B'
     *
     * func({ 'a': '1', 'b': '2' });
     * // => 'no match'
     */
    function cond(pairs) {
      var length = pairs == null ? 0 : pairs.length,
          toIteratee = getIteratee();

      pairs = !length ? [] : arrayMap(pairs, function(pair) {
        if (typeof pair[1] != 'function') {
          throw new TypeError(FUNC_ERROR_TEXT);
        }
        return [toIteratee(pair[0]), pair[1]];
      });

      return baseRest(function(args) {
        var index = -1;
        while (++index < length) {
          var pair = pairs[index];
          if (apply(pair[0], this, args)) {
            return apply(pair[1], this, args);
          }
        }
      });
    }

    /**
     * Creates a function that invokes the predicate properties of `source` with
     * the corresponding property values of a given object, returning `true` if
     * all predicates return truthy, else `false`.
     *
     * **Note:** The created function is equivalent to `_.conformsTo` with
     * `source` partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 2, 'b': 1 },
     *   { 'a': 1, 'b': 2 }
     * ];
     *
     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
     * // => [{ 'a': 1, 'b': 2 }]
     */
    function conforms(source) {
      return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that returns `value`.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {*} value The value to return from the new function.
     * @returns {Function} Returns the new constant function.
     * @example
     *
     * var objects = _.times(2, _.constant({ 'a': 1 }));
     *
     * console.log(objects);
     * // => [{ 'a': 1 }, { 'a': 1 }]
     *
     * console.log(objects[0] === objects[1]);
     * // => true
     */
    function constant(value) {
      return function() {
        return value;
      };
    }

    /**
     * Checks `value` to determine whether a default value should be returned in
     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
     * or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Util
     * @param {*} value The value to check.
     * @param {*} defaultValue The default value.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * _.defaultTo(1, 10);
     * // => 1
     *
     * _.defaultTo(undefined, 10);
     * // => 10
     */
    function defaultTo(value, defaultValue) {
      return (value == null || value !== value) ? defaultValue : value;
    }

    /**
     * Creates a function that returns the result of invoking the given functions
     * with the `this` binding of the created function, where each successive
     * invocation is supplied the return value of the previous.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flowRight
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flow([_.add, square]);
     * addSquare(1, 2);
     * // => 9
     */
    var flow = createFlow();

    /**
     * This method is like `_.flow` except that it creates a function that
     * invokes the given functions from right to left.
     *
     * @static
     * @since 3.0.0
     * @memberOf _
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flow
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flowRight([square, _.add]);
     * addSquare(1, 2);
     * // => 9
     */
    var flowRight = createFlow(true);

    /**
     * This method returns the first argument it receives.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {*} value Any value.
     * @returns {*} Returns `value`.
     * @example
     *
     * var object = { 'a': 1 };
     *
     * console.log(_.identity(object) === object);
     * // => true
     */
    function identity(value) {
      return value;
    }

    /**
     * Creates a function that invokes `func` with the arguments of the created
     * function. If `func` is a property name, the created function returns the
     * property value for a given element. If `func` is an array or object, the
     * created function returns `true` for elements that contain the equivalent
     * source properties, otherwise it returns `false`.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Util
     * @param {*} [func=_.identity] The value to convert to a callback.
     * @returns {Function} Returns the callback.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
     * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, _.iteratee(['user', 'fred']));
     * // => [{ 'user': 'fred', 'age': 40 }]
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, _.iteratee('user'));
     * // => ['barney', 'fred']
     *
     * // Create custom iteratee shorthands.
     * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
     *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
     *     return func.test(string);
     *   };
     * });
     *
     * _.filter(['abc', 'def'], /ef/);
     * // => ['def']
     */
    function iteratee(func) {
      return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that performs a partial deep comparison between a given
     * object and `source`, returning `true` if the given object has equivalent
     * property values, else `false`.
     *
     * **Note:** The created function is equivalent to `_.isMatch` with `source`
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * **Note:** Multiple values can be checked by combining several matchers
     * using `_.overSome`
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
     *
     * // Checking for several possible values
     * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
     */
    function matches(source) {
      return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that performs a partial deep comparison between the
     * value at `path` of a given object to `srcValue`, returning `true` if the
     * object value is equivalent, else `false`.
     *
     * **Note:** Partial comparisons will match empty array and empty object
     * `srcValue` values against any array or object value, respectively. See
     * `_.isEqual` for a list of supported value comparisons.
     *
     * **Note:** Multiple values can be checked by combining several matchers
     * using `_.overSome`
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.find(objects, _.matchesProperty('a', 4));
     * // => { 'a': 4, 'b': 5, 'c': 6 }
     *
     * // Checking for several possible values
     * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
     */
    function matchesProperty(path, srcValue) {
      return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
    }

    /**
     * Creates a function that invokes the method at `path` of a given object.
     * Any additional arguments are provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': _.constant(2) } },
     *   { 'a': { 'b': _.constant(1) } }
     * ];
     *
     * _.map(objects, _.method('a.b'));
     * // => [2, 1]
     *
     * _.map(objects, _.method(['a', 'b']));
     * // => [2, 1]
     */
    var method = baseRest(function(path, args) {
      return function(object) {
        return baseInvoke(object, path, args);
      };
    });

    /**
     * The opposite of `_.method`; this method creates a function that invokes
     * the method at a given path of `object`. Any additional arguments are
     * provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Object} object The object to query.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var array = _.times(3, _.constant),
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
     * // => [2, 0]
     */
    var methodOf = baseRest(function(object, args) {
      return function(path) {
        return baseInvoke(object, path, args);
      };
    });

    /**
     * Adds all own enumerable string keyed function properties of a source
     * object to the destination object. If `object` is a function, then methods
     * are added to its prototype as well.
     *
     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
     * avoid conflicts caused by modifying the original.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Function|Object} [object=lodash] The destination object.
     * @param {Object} source The object of functions to add.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
     * @returns {Function|Object} Returns `object`.
     * @example
     *
     * function vowels(string) {
     *   return _.filter(string, function(v) {
     *     return /[aeiou]/i.test(v);
     *   });
     * }
     *
     * _.mixin({ 'vowels': vowels });
     * _.vowels('fred');
     * // => ['e']
     *
     * _('fred').vowels().value();
     * // => ['e']
     *
     * _.mixin({ 'vowels': vowels }, { 'chain': false });
     * _('fred').vowels();
     * // => ['e']
     */
    function mixin(object, source, options) {
      var props = keys(source),
          methodNames = baseFunctions(source, props);

      if (options == null &&
          !(isObject(source) && (methodNames.length || !props.length))) {
        options = source;
        source = object;
        object = this;
        methodNames = baseFunctions(source, keys(source));
      }
      var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
          isFunc = isFunction(object);

      arrayEach(methodNames, function(methodName) {
        var func = source[methodName];
        object[methodName] = func;
        if (isFunc) {
          object.prototype[methodName] = function() {
            var chainAll = this.__chain__;
            if (chain || chainAll) {
              var result = object(this.__wrapped__),
                  actions = result.__actions__ = copyArray(this.__actions__);

              actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
              result.__chain__ = chainAll;
              return result;
            }
            return func.apply(object, arrayPush([this.value()], arguments));
          };
        }
      });

      return object;
    }

    /**
     * Reverts the `_` variable to its previous value and returns a reference to
     * the `lodash` function.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @returns {Function} Returns the `lodash` function.
     * @example
     *
     * var lodash = _.noConflict();
     */
    function noConflict() {
      if (root._ === this) {
        root._ = oldDash;
      }
      return this;
    }

    /**
     * This method returns `undefined`.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Util
     * @example
     *
     * _.times(2, _.noop);
     * // => [undefined, undefined]
     */
    function noop() {
      // No operation performed.
    }

    /**
     * Creates a function that gets the argument at index `n`. If `n` is negative,
     * the nth argument from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [n=0] The index of the argument to return.
     * @returns {Function} Returns the new pass-thru function.
     * @example
     *
     * var func = _.nthArg(1);
     * func('a', 'b', 'c', 'd');
     * // => 'b'
     *
     * var func = _.nthArg(-2);
     * func('a', 'b', 'c', 'd');
     * // => 'c'
     */
    function nthArg(n) {
      n = toInteger(n);
      return baseRest(function(args) {
        return baseNth(args, n);
      });
    }

    /**
     * Creates a function that invokes `iteratees` with the arguments it receives
     * and returns their results.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to invoke.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.over([Math.max, Math.min]);
     *
     * func(1, 2, 3, 4);
     * // => [4, 1]
     */
    var over = createOver(arrayMap);

    /**
     * Creates a function that checks if **all** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * Following shorthands are possible for providing predicates.
     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overEvery([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => false
     *
     * func(NaN);
     * // => false
     */
    var overEvery = createOver(arrayEvery);

    /**
     * Creates a function that checks if **any** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * Following shorthands are possible for providing predicates.
     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overSome([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => true
     *
     * func(NaN);
     * // => false
     *
     * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
     * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
     */
    var overSome = createOver(arraySome);

    /**
     * Creates a function that returns the value at `path` of a given object.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': 2 } },
     *   { 'a': { 'b': 1 } }
     * ];
     *
     * _.map(objects, _.property('a.b'));
     * // => [2, 1]
     *
     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
     * // => [1, 2]
     */
    function property(path) {
      return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
    }

    /**
     * The opposite of `_.property`; this method creates a function that returns
     * the value at a given path of `object`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} object The object to query.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var array = [0, 1, 2],
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
     * // => [2, 0]
     */
    function propertyOf(object) {
      return function(path) {
        return object == null ? undefined : baseGet(object, path);
      };
    }

    /**
     * Creates an array of numbers (positive and/or negative) progressing from
     * `start` up to, but not including, `end`. A step of `-1` is used if a negative
     * `start` is specified without an `end` or `step`. If `end` is not specified,
     * it's set to `start` with `start` then set to `0`.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.rangeRight
     * @example
     *
     * _.range(4);
     * // => [0, 1, 2, 3]
     *
     * _.range(-4);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 5);
     * // => [1, 2, 3, 4]
     *
     * _.range(0, 20, 5);
     * // => [0, 5, 10, 15]
     *
     * _.range(0, -4, -1);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.range(0);
     * // => []
     */
    var range = createRange();

    /**
     * This method is like `_.range` except that it populates values in
     * descending order.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.range
     * @example
     *
     * _.rangeRight(4);
     * // => [3, 2, 1, 0]
     *
     * _.rangeRight(-4);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 5);
     * // => [4, 3, 2, 1]
     *
     * _.rangeRight(0, 20, 5);
     * // => [15, 10, 5, 0]
     *
     * _.rangeRight(0, -4, -1);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.rangeRight(0);
     * // => []
     */
    var rangeRight = createRange(true);

    /**
     * This method returns a new empty array.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Array} Returns the new empty array.
     * @example
     *
     * var arrays = _.times(2, _.stubArray);
     *
     * console.log(arrays);
     * // => [[], []]
     *
     * console.log(arrays[0] === arrays[1]);
     * // => false
     */
    function stubArray() {
      return [];
    }

    /**
     * This method returns `false`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `false`.
     * @example
     *
     * _.times(2, _.stubFalse);
     * // => [false, false]
     */
    function stubFalse() {
      return false;
    }

    /**
     * This method returns a new empty object.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Object} Returns the new empty object.
     * @example
     *
     * var objects = _.times(2, _.stubObject);
     *
     * console.log(objects);
     * // => [{}, {}]
     *
     * console.log(objects[0] === objects[1]);
     * // => false
     */
    function stubObject() {
      return {};
    }

    /**
     * This method returns an empty string.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {string} Returns the empty string.
     * @example
     *
     * _.times(2, _.stubString);
     * // => ['', '']
     */
    function stubString() {
      return '';
    }

    /**
     * This method returns `true`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `true`.
     * @example
     *
     * _.times(2, _.stubTrue);
     * // => [true, true]
     */
    function stubTrue() {
      return true;
    }

    /**
     * Invokes the iteratee `n` times, returning an array of the results of
     * each invocation. The iteratee is invoked with one argument; (index).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} n The number of times to invoke `iteratee`.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.times(3, String);
     * // => ['0', '1', '2']
     *
     *  _.times(4, _.constant(0));
     * // => [0, 0, 0, 0]
     */
    function times(n, iteratee) {
      n = toInteger(n);
      if (n < 1 || n > MAX_SAFE_INTEGER) {
        return [];
      }
      var index = MAX_ARRAY_LENGTH,
          length = nativeMin(n, MAX_ARRAY_LENGTH);

      iteratee = getIteratee(iteratee);
      n -= MAX_ARRAY_LENGTH;

      var result = baseTimes(length, iteratee);
      while (++index < n) {
        iteratee(index);
      }
      return result;
    }

    /**
     * Converts `value` to a property path array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {*} value The value to convert.
     * @returns {Array} Returns the new property path array.
     * @example
     *
     * _.toPath('a.b.c');
     * // => ['a', 'b', 'c']
     *
     * _.toPath('a[0].b.c');
     * // => ['a', '0', 'b', 'c']
     */
    function toPath(value) {
      if (isArray(value)) {
        return arrayMap(value, toKey);
      }
      return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
    }

    /**
     * Generates a unique ID. If `prefix` is given, the ID is appended to it.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {string} [prefix=''] The value to prefix the ID with.
     * @returns {string} Returns the unique ID.
     * @example
     *
     * _.uniqueId('contact_');
     * // => 'contact_104'
     *
     * _.uniqueId();
     * // => '105'
     */
    function uniqueId(prefix) {
      var id = ++idCounter;
      return toString(prefix) + id;
    }

    /*------------------------------------------------------------------------*/

    /**
     * Adds two numbers.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {number} augend The first number in an addition.
     * @param {number} addend The second number in an addition.
     * @returns {number} Returns the total.
     * @example
     *
     * _.add(6, 4);
     * // => 10
     */
    var add = createMathOperation(function(augend, addend) {
      return augend + addend;
    }, 0);

    /**
     * Computes `number` rounded up to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round up.
     * @param {number} [precision=0] The precision to round up to.
     * @returns {number} Returns the rounded up number.
     * @example
     *
     * _.ceil(4.006);
     * // => 5
     *
     * _.ceil(6.004, 2);
     * // => 6.01
     *
     * _.ceil(6040, -2);
     * // => 6100
     */
    var ceil = createRound('ceil');

    /**
     * Divide two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} dividend The first number in a division.
     * @param {number} divisor The second number in a division.
     * @returns {number} Returns the quotient.
     * @example
     *
     * _.divide(6, 4);
     * // => 1.5
     */
    var divide = createMathOperation(function(dividend, divisor) {
      return dividend / divisor;
    }, 1);

    /**
     * Computes `number` rounded down to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round down.
     * @param {number} [precision=0] The precision to round down to.
     * @returns {number} Returns the rounded down number.
     * @example
     *
     * _.floor(4.006);
     * // => 4
     *
     * _.floor(0.046, 2);
     * // => 0.04
     *
     * _.floor(4060, -2);
     * // => 4000
     */
    var floor = createRound('floor');

    /**
     * Computes the maximum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * _.max([4, 2, 8, 6]);
     * // => 8
     *
     * _.max([]);
     * // => undefined
     */
    function max(array) {
      return (array && array.length)
        ? baseExtremum(array, identity, baseGt)
        : undefined;
    }

    /**
     * This method is like `_.max` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.maxBy(objects, function(o) { return o.n; });
     * // => { 'n': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.maxBy(objects, 'n');
     * // => { 'n': 2 }
     */
    function maxBy(array, iteratee) {
      return (array && array.length)
        ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
        : undefined;
    }

    /**
     * Computes the mean of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the mean.
     * @example
     *
     * _.mean([4, 2, 8, 6]);
     * // => 5
     */
    function mean(array) {
      return baseMean(array, identity);
    }

    /**
     * This method is like `_.mean` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be averaged.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the mean.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.meanBy(objects, function(o) { return o.n; });
     * // => 5
     *
     * // The `_.property` iteratee shorthand.
     * _.meanBy(objects, 'n');
     * // => 5
     */
    function meanBy(array, iteratee) {
      return baseMean(array, getIteratee(iteratee, 2));
    }

    /**
     * Computes the minimum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * _.min([4, 2, 8, 6]);
     * // => 2
     *
     * _.min([]);
     * // => undefined
     */
    function min(array) {
      return (array && array.length)
        ? baseExtremum(array, identity, baseLt)
        : undefined;
    }

    /**
     * This method is like `_.min` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.minBy(objects, function(o) { return o.n; });
     * // => { 'n': 1 }
     *
     * // The `_.property` iteratee shorthand.
     * _.minBy(objects, 'n');
     * // => { 'n': 1 }
     */
    function minBy(array, iteratee) {
      return (array && array.length)
        ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
        : undefined;
    }

    /**
     * Multiply two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} multiplier The first number in a multiplication.
     * @param {number} multiplicand The second number in a multiplication.
     * @returns {number} Returns the product.
     * @example
     *
     * _.multiply(6, 4);
     * // => 24
     */
    var multiply = createMathOperation(function(multiplier, multiplicand) {
      return multiplier * multiplicand;
    }, 1);

    /**
     * Computes `number` rounded to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round.
     * @param {number} [precision=0] The precision to round to.
     * @returns {number} Returns the rounded number.
     * @example
     *
     * _.round(4.006);
     * // => 4
     *
     * _.round(4.006, 2);
     * // => 4.01
     *
     * _.round(4060, -2);
     * // => 4100
     */
    var round = createRound('round');

    /**
     * Subtract two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {number} minuend The first number in a subtraction.
     * @param {number} subtrahend The second number in a subtraction.
     * @returns {number} Returns the difference.
     * @example
     *
     * _.subtract(6, 4);
     * // => 2
     */
    var subtract = createMathOperation(function(minuend, subtrahend) {
      return minuend - subtrahend;
    }, 0);

    /**
     * Computes the sum of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the sum.
     * @example
     *
     * _.sum([4, 2, 8, 6]);
     * // => 20
     */
    function sum(array) {
      return (array && array.length)
        ? baseSum(array, identity)
        : 0;
    }

    /**
     * This method is like `_.sum` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be summed.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the sum.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.sumBy(objects, function(o) { return o.n; });
     * // => 20
     *
     * // The `_.property` iteratee shorthand.
     * _.sumBy(objects, 'n');
     * // => 20
     */
    function sumBy(array, iteratee) {
      return (array && array.length)
        ? baseSum(array, getIteratee(iteratee, 2))
        : 0;
    }

    /*------------------------------------------------------------------------*/

    // Add methods that return wrapped values in chain sequences.
    lodash.after = after;
    lodash.ary = ary;
    lodash.assign = assign;
    lodash.assignIn = assignIn;
    lodash.assignInWith = assignInWith;
    lodash.assignWith = assignWith;
    lodash.at = at;
    lodash.before = before;
    lodash.bind = bind;
    lodash.bindAll = bindAll;
    lodash.bindKey = bindKey;
    lodash.castArray = castArray;
    lodash.chain = chain;
    lodash.chunk = chunk;
    lodash.compact = compact;
    lodash.concat = concat;
    lodash.cond = cond;
    lodash.conforms = conforms;
    lodash.constant = constant;
    lodash.countBy = countBy;
    lodash.create = create;
    lodash.curry = curry;
    lodash.curryRight = curryRight;
    lodash.debounce = debounce;
    lodash.defaults = defaults;
    lodash.defaultsDeep = defaultsDeep;
    lodash.defer = defer;
    lodash.delay = delay;
    lodash.difference = difference;
    lodash.differenceBy = differenceBy;
    lodash.differenceWith = differenceWith;
    lodash.drop = drop;
    lodash.dropRight = dropRight;
    lodash.dropRightWhile = dropRightWhile;
    lodash.dropWhile = dropWhile;
    lodash.fill = fill;
    lodash.filter = filter;
    lodash.flatMap = flatMap;
    lodash.flatMapDeep = flatMapDeep;
    lodash.flatMapDepth = flatMapDepth;
    lodash.flatten = flatten;
    lodash.flattenDeep = flattenDeep;
    lodash.flattenDepth = flattenDepth;
    lodash.flip = flip;
    lodash.flow = flow;
    lodash.flowRight = flowRight;
    lodash.fromPairs = fromPairs;
    lodash.functions = functions;
    lodash.functionsIn = functionsIn;
    lodash.groupBy = groupBy;
    lodash.initial = initial;
    lodash.intersection = intersection;
    lodash.intersectionBy = intersectionBy;
    lodash.intersectionWith = intersectionWith;
    lodash.invert = invert;
    lodash.invertBy = invertBy;
    lodash.invokeMap = invokeMap;
    lodash.iteratee = iteratee;
    lodash.keyBy = keyBy;
    lodash.keys = keys;
    lodash.keysIn = keysIn;
    lodash.map = map;
    lodash.mapKeys = mapKeys;
    lodash.mapValues = mapValues;
    lodash.matches = matches;
    lodash.matchesProperty = matchesProperty;
    lodash.memoize = memoize;
    lodash.merge = merge;
    lodash.mergeWith = mergeWith;
    lodash.method = method;
    lodash.methodOf = methodOf;
    lodash.mixin = mixin;
    lodash.negate = negate;
    lodash.nthArg = nthArg;
    lodash.omit = omit;
    lodash.omitBy = omitBy;
    lodash.once = once;
    lodash.orderBy = orderBy;
    lodash.over = over;
    lodash.overArgs = overArgs;
    lodash.overEvery = overEvery;
    lodash.overSome = overSome;
    lodash.partial = partial;
    lodash.partialRight = partialRight;
    lodash.partition = partition;
    lodash.pick = pick;
    lodash.pickBy = pickBy;
    lodash.property = property;
    lodash.propertyOf = propertyOf;
    lodash.pull = pull;
    lodash.pullAll = pullAll;
    lodash.pullAllBy = pullAllBy;
    lodash.pullAllWith = pullAllWith;
    lodash.pullAt = pullAt;
    lodash.range = range;
    lodash.rangeRight = rangeRight;
    lodash.rearg = rearg;
    lodash.reject = reject;
    lodash.remove = remove;
    lodash.rest = rest;
    lodash.reverse = reverse;
    lodash.sampleSize = sampleSize;
    lodash.set = set;
    lodash.setWith = setWith;
    lodash.shuffle = shuffle;
    lodash.slice = slice;
    lodash.sortBy = sortBy;
    lodash.sortedUniq = sortedUniq;
    lodash.sortedUniqBy = sortedUniqBy;
    lodash.split = split;
    lodash.spread = spread;
    lodash.tail = tail;
    lodash.take = take;
    lodash.takeRight = takeRight;
    lodash.takeRightWhile = takeRightWhile;
    lodash.takeWhile = takeWhile;
    lodash.tap = tap;
    lodash.throttle = throttle;
    lodash.thru = thru;
    lodash.toArray = toArray;
    lodash.toPairs = toPairs;
    lodash.toPairsIn = toPairsIn;
    lodash.toPath = toPath;
    lodash.toPlainObject = toPlainObject;
    lodash.transform = transform;
    lodash.unary = unary;
    lodash.union = union;
    lodash.unionBy = unionBy;
    lodash.unionWith = unionWith;
    lodash.uniq = uniq;
    lodash.uniqBy = uniqBy;
    lodash.uniqWith = uniqWith;
    lodash.unset = unset;
    lodash.unzip = unzip;
    lodash.unzipWith = unzipWith;
    lodash.update = update;
    lodash.updateWith = updateWith;
    lodash.values = values;
    lodash.valuesIn = valuesIn;
    lodash.without = without;
    lodash.words = words;
    lodash.wrap = wrap;
    lodash.xor = xor;
    lodash.xorBy = xorBy;
    lodash.xorWith = xorWith;
    lodash.zip = zip;
    lodash.zipObject = zipObject;
    lodash.zipObjectDeep = zipObjectDeep;
    lodash.zipWith = zipWith;

    // Add aliases.
    lodash.entries = toPairs;
    lodash.entriesIn = toPairsIn;
    lodash.extend = assignIn;
    lodash.extendWith = assignInWith;

    // Add methods to `lodash.prototype`.
    mixin(lodash, lodash);

    /*------------------------------------------------------------------------*/

    // Add methods that return unwrapped values in chain sequences.
    lodash.add = add;
    lodash.attempt = attempt;
    lodash.camelCase = camelCase;
    lodash.capitalize = capitalize;
    lodash.ceil = ceil;
    lodash.clamp = clamp;
    lodash.clone = clone;
    lodash.cloneDeep = cloneDeep;
    lodash.cloneDeepWith = cloneDeepWith;
    lodash.cloneWith = cloneWith;
    lodash.conformsTo = conformsTo;
    lodash.deburr = deburr;
    lodash.defaultTo = defaultTo;
    lodash.divide = divide;
    lodash.endsWith = endsWith;
    lodash.eq = eq;
    lodash.escape = escape;
    lodash.escapeRegExp = escapeRegExp;
    lodash.every = every;
    lodash.find = find;
    lodash.findIndex = findIndex;
    lodash.findKey = findKey;
    lodash.findLast = findLast;
    lodash.findLastIndex = findLastIndex;
    lodash.findLastKey = findLastKey;
    lodash.floor = floor;
    lodash.forEach = forEach;
    lodash.forEachRight = forEachRight;
    lodash.forIn = forIn;
    lodash.forInRight = forInRight;
    lodash.forOwn = forOwn;
    lodash.forOwnRight = forOwnRight;
    lodash.get = get;
    lodash.gt = gt;
    lodash.gte = gte;
    lodash.has = has;
    lodash.hasIn = hasIn;
    lodash.head = head;
    lodash.identity = identity;
    lodash.includes = includes;
    lodash.indexOf = indexOf;
    lodash.inRange = inRange;
    lodash.invoke = invoke;
    lodash.isArguments = isArguments;
    lodash.isArray = isArray;
    lodash.isArrayBuffer = isArrayBuffer;
    lodash.isArrayLike = isArrayLike;
    lodash.isArrayLikeObject = isArrayLikeObject;
    lodash.isBoolean = isBoolean;
    lodash.isBuffer = isBuffer;
    lodash.isDate = isDate;
    lodash.isElement = isElement;
    lodash.isEmpty = isEmpty;
    lodash.isEqual = isEqual;
    lodash.isEqualWith = isEqualWith;
    lodash.isError = isError;
    lodash.isFinite = isFinite;
    lodash.isFunction = isFunction;
    lodash.isInteger = isInteger;
    lodash.isLength = isLength;
    lodash.isMap = isMap;
    lodash.isMatch = isMatch;
    lodash.isMatchWith = isMatchWith;
    lodash.isNaN = isNaN;
    lodash.isNative = isNative;
    lodash.isNil = isNil;
    lodash.isNull = isNull;
    lodash.isNumber = isNumber;
    lodash.isObject = isObject;
    lodash.isObjectLike = isObjectLike;
    lodash.isPlainObject = isPlainObject;
    lodash.isRegExp = isRegExp;
    lodash.isSafeInteger = isSafeInteger;
    lodash.isSet = isSet;
    lodash.isString = isString;
    lodash.isSymbol = isSymbol;
    lodash.isTypedArray = isTypedArray;
    lodash.isUndefined = isUndefined;
    lodash.isWeakMap = isWeakMap;
    lodash.isWeakSet = isWeakSet;
    lodash.join = join;
    lodash.kebabCase = kebabCase;
    lodash.last = last;
    lodash.lastIndexOf = lastIndexOf;
    lodash.lowerCase = lowerCase;
    lodash.lowerFirst = lowerFirst;
    lodash.lt = lt;
    lodash.lte = lte;
    lodash.max = max;
    lodash.maxBy = maxBy;
    lodash.mean = mean;
    lodash.meanBy = meanBy;
    lodash.min = min;
    lodash.minBy = minBy;
    lodash.stubArray = stubArray;
    lodash.stubFalse = stubFalse;
    lodash.stubObject = stubObject;
    lodash.stubString = stubString;
    lodash.stubTrue = stubTrue;
    lodash.multiply = multiply;
    lodash.nth = nth;
    lodash.noConflict = noConflict;
    lodash.noop = noop;
    lodash.now = now;
    lodash.pad = pad;
    lodash.padEnd = padEnd;
    lodash.padStart = padStart;
    lodash.parseInt = parseInt;
    lodash.random = random;
    lodash.reduce = reduce;
    lodash.reduceRight = reduceRight;
    lodash.repeat = repeat;
    lodash.replace = replace;
    lodash.result = result;
    lodash.round = round;
    lodash.runInContext = runInContext;
    lodash.sample = sample;
    lodash.size = size;
    lodash.snakeCase = snakeCase;
    lodash.some = some;
    lodash.sortedIndex = sortedIndex;
    lodash.sortedIndexBy = sortedIndexBy;
    lodash.sortedIndexOf = sortedIndexOf;
    lodash.sortedLastIndex = sortedLastIndex;
    lodash.sortedLastIndexBy = sortedLastIndexBy;
    lodash.sortedLastIndexOf = sortedLastIndexOf;
    lodash.startCase = startCase;
    lodash.startsWith = startsWith;
    lodash.subtract = subtract;
    lodash.sum = sum;
    lodash.sumBy = sumBy;
    lodash.template = template;
    lodash.times = times;
    lodash.toFinite = toFinite;
    lodash.toInteger = toInteger;
    lodash.toLength = toLength;
    lodash.toLower = toLower;
    lodash.toNumber = toNumber;
    lodash.toSafeInteger = toSafeInteger;
    lodash.toString = toString;
    lodash.toUpper = toUpper;
    lodash.trim = trim;
    lodash.trimEnd = trimEnd;
    lodash.trimStart = trimStart;
    lodash.truncate = truncate;
    lodash.unescape = unescape;
    lodash.uniqueId = uniqueId;
    lodash.upperCase = upperCase;
    lodash.upperFirst = upperFirst;

    // Add aliases.
    lodash.each = forEach;
    lodash.eachRight = forEachRight;
    lodash.first = head;

    mixin(lodash, (function() {
      var source = {};
      baseForOwn(lodash, function(func, methodName) {
        if (!hasOwnProperty.call(lodash.prototype, methodName)) {
          source[methodName] = func;
        }
      });
      return source;
    }()), { 'chain': false });

    /*------------------------------------------------------------------------*/

    /**
     * The semantic version number.
     *
     * @static
     * @memberOf _
     * @type {string}
     */
    lodash.VERSION = VERSION;

    // Assign default placeholders.
    arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
      lodash[methodName].placeholder = lodash;
    });

    // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
    arrayEach(['drop', 'take'], function(methodName, index) {
      LazyWrapper.prototype[methodName] = function(n) {
        n = n === undefined ? 1 : nativeMax(toInteger(n), 0);

        var result = (this.__filtered__ && !index)
          ? new LazyWrapper(this)
          : this.clone();

        if (result.__filtered__) {
          result.__takeCount__ = nativeMin(n, result.__takeCount__);
        } else {
          result.__views__.push({
            'size': nativeMin(n, MAX_ARRAY_LENGTH),
            'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
          });
        }
        return result;
      };

      LazyWrapper.prototype[methodName + 'Right'] = function(n) {
        return this.reverse()[methodName](n).reverse();
      };
    });

    // Add `LazyWrapper` methods that accept an `iteratee` value.
    arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
      var type = index + 1,
          isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;

      LazyWrapper.prototype[methodName] = function(iteratee) {
        var result = this.clone();
        result.__iteratees__.push({
          'iteratee': getIteratee(iteratee, 3),
          'type': type
        });
        result.__filtered__ = result.__filtered__ || isFilter;
        return result;
      };
    });

    // Add `LazyWrapper` methods for `_.head` and `_.last`.
    arrayEach(['head', 'last'], function(methodName, index) {
      var takeName = 'take' + (index ? 'Right' : '');

      LazyWrapper.prototype[methodName] = function() {
        return this[takeName](1).value()[0];
      };
    });

    // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
    arrayEach(['initial', 'tail'], function(methodName, index) {
      var dropName = 'drop' + (index ? '' : 'Right');

      LazyWrapper.prototype[methodName] = function() {
        return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
      };
    });

    LazyWrapper.prototype.compact = function() {
      return this.filter(identity);
    };

    LazyWrapper.prototype.find = function(predicate) {
      return this.filter(predicate).head();
    };

    LazyWrapper.prototype.findLast = function(predicate) {
      return this.reverse().find(predicate);
    };

    LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
      if (typeof path == 'function') {
        return new LazyWrapper(this);
      }
      return this.map(function(value) {
        return baseInvoke(value, path, args);
      });
    });

    LazyWrapper.prototype.reject = function(predicate) {
      return this.filter(negate(getIteratee(predicate)));
    };

    LazyWrapper.prototype.slice = function(start, end) {
      start = toInteger(start);

      var result = this;
      if (result.__filtered__ && (start > 0 || end < 0)) {
        return new LazyWrapper(result);
      }
      if (start < 0) {
        result = result.takeRight(-start);
      } else if (start) {
        result = result.drop(start);
      }
      if (end !== undefined) {
        end = toInteger(end);
        result = end < 0 ? result.dropRight(-end) : result.take(end - start);
      }
      return result;
    };

    LazyWrapper.prototype.takeRightWhile = function(predicate) {
      return this.reverse().takeWhile(predicate).reverse();
    };

    LazyWrapper.prototype.toArray = function() {
      return this.take(MAX_ARRAY_LENGTH);
    };

    // Add `LazyWrapper` methods to `lodash.prototype`.
    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
      var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
          isTaker = /^(?:head|last)$/.test(methodName),
          lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
          retUnwrapped = isTaker || /^find/.test(methodName);

      if (!lodashFunc) {
        return;
      }
      lodash.prototype[methodName] = function() {
        var value = this.__wrapped__,
            args = isTaker ? [1] : arguments,
            isLazy = value instanceof LazyWrapper,
            iteratee = args[0],
            useLazy = isLazy || isArray(value);

        var interceptor = function(value) {
          var result = lodashFunc.apply(lodash, arrayPush([value], args));
          return (isTaker && chainAll) ? result[0] : result;
        };

        if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
          // Avoid lazy use if the iteratee has a "length" value other than `1`.
          isLazy = useLazy = false;
        }
        var chainAll = this.__chain__,
            isHybrid = !!this.__actions__.length,
            isUnwrapped = retUnwrapped && !chainAll,
            onlyLazy = isLazy && !isHybrid;

        if (!retUnwrapped && useLazy) {
          value = onlyLazy ? value : new LazyWrapper(this);
          var result = func.apply(value, args);
          result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
          return new LodashWrapper(result, chainAll);
        }
        if (isUnwrapped && onlyLazy) {
          return func.apply(this, args);
        }
        result = this.thru(interceptor);
        return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
      };
    });

    // Add `Array` methods to `lodash.prototype`.
    arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
      var func = arrayProto[methodName],
          chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
          retUnwrapped = /^(?:pop|shift)$/.test(methodName);

      lodash.prototype[methodName] = function() {
        var args = arguments;
        if (retUnwrapped && !this.__chain__) {
          var value = this.value();
          return func.apply(isArray(value) ? value : [], args);
        }
        return this[chainName](function(value) {
          return func.apply(isArray(value) ? value : [], args);
        });
      };
    });

    // Map minified method names to their real names.
    baseForOwn(LazyWrapper.prototype, function(func, methodName) {
      var lodashFunc = lodash[methodName];
      if (lodashFunc) {
        var key = lodashFunc.name + '';
        if (!hasOwnProperty.call(realNames, key)) {
          realNames[key] = [];
        }
        realNames[key].push({ 'name': methodName, 'func': lodashFunc });
      }
    });

    realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
      'name': 'wrapper',
      'func': undefined
    }];

    // Add methods to `LazyWrapper`.
    LazyWrapper.prototype.clone = lazyClone;
    LazyWrapper.prototype.reverse = lazyReverse;
    LazyWrapper.prototype.value = lazyValue;

    // Add chain sequence methods to the `lodash` wrapper.
    lodash.prototype.at = wrapperAt;
    lodash.prototype.chain = wrapperChain;
    lodash.prototype.commit = wrapperCommit;
    lodash.prototype.next = wrapperNext;
    lodash.prototype.plant = wrapperPlant;
    lodash.prototype.reverse = wrapperReverse;
    lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;

    // Add lazy aliases.
    lodash.prototype.first = lodash.prototype.head;

    if (symIterator) {
      lodash.prototype[symIterator] = wrapperToIterator;
    }
    return lodash;
  });

  /*--------------------------------------------------------------------------*/

  // Export lodash.
  var _ = runInContext();

  // Some AMD build optimizers, like r.js, check for condition patterns like:
  if (true) {
    // Expose Lodash on the global object to prevent errors when Lodash is
    // loaded by a script tag in the presence of an AMD loader.
    // See http://requirejs.org/docs/errors.html#mismatch for more details.
    // Use `_.noConflict` to remove Lodash from the global object.
    root._ = _;

    // Define as an anonymous module so, through path mapping, it can be
    // referenced as the "underscore" module.
    !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
      return _;
    }).call(exports, __webpack_require__, exports, module),
				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  }
  // Check for `exports` after `define` in case a build optimizer adds it.
  else {}
}.call(this));

/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ 155)(module)))

/***/ }),
/* 23 */,
/* 24 */
/*!*****************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/backgroundUtils.js ***!
  \*****************************************************************************************************************/
/*! exports provided: BG_VIDEO_DEFAULTS, getScrollEffect, hasVideo, getIdFromUrl, getMediaDataFromSrc, getFullMediaData */
/*! exports used: BG_VIDEO_DEFAULTS, getFullMediaData, getIdFromUrl, getMediaDataFromSrc, getScrollEffect, hasVideo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BG_VIDEO_DEFAULTS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getScrollEffect; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasVideo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getIdFromUrl; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getMediaDataFromSrc; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getFullMediaData; });
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 22);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _mediaSrcHandler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mediaSrcHandler */ 21);
var __assign = (undefined && undefined.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};


var BG_VIDEO_DEFAULTS = {
    loop: true,
    preload: 'auto',
    muted: true,
    isVideoEnabled: true,
};
var getVideoPosterObject = function (_a) {
    var mediaId = _a.mediaId, posterId = _a.posterId, width = _a.width, height = _a.height, title = _a.title;
    return {
        type: 'WixVideo',
        videoId: mediaId,
        posterImageRef: {
            type: 'Image',
            uri: posterId,
            width: width,
            height: height,
            title: title,
        },
    };
};
var getScrollEffect = function (fillLayers) {
    if (fillLayers === void 0) { fillLayers = {}; }
    var _a = (fillLayers.backgroundMedia || {}).bgEffectName, bgEffectName = _a === void 0 ? '' : _a;
    return {
        hasBgScrollEffect: bgEffectName ? 'true' : '',
        bgEffectName: bgEffectName,
    };
};
var hasVideo = function (props) {
    var _a, _b;
    var _c = props.fillLayers, fillLayers = _c === void 0 ? {} : _c;
    return (_b = (_a = fillLayers === null || fillLayers === void 0 ? void 0 : fillLayers.video) === null || _a === void 0 ? void 0 : _a.videoInfo) === null || _b === void 0 ? void 0 : _b.videoId;
};
var getIdFromUrl = function (fileUrl) {
    var result = fileUrl.match(/(?:\/|^)([0-9a-fA-F_]+)(?:\/|$)/);
    if (!result) {
        return '';
    }
    return result.length > 1 ? result[1] : '';
};
var getVideoId = function (videoId) {
    return videoId.replace('video/', '');
};
var getObjectValueByKey = function (object, key) {
    return object[key] || object[lodash__WEBPACK_IMPORTED_MODULE_0___default.a.camelCase(key)];
};
var fixMediaTitleLength = function (value, lengthLimit) {
    var CHARS_TO_ADD = '...';
    var NUM_OF_CHARS_TO_KEEP = 3;
    if (value.length <= lengthLimit) {
        return value;
    }
    var arr = value.split('');
    var numOfCharsToRemove = value.length - lengthLimit + CHARS_TO_ADD.length;
    var isFileTypeSuffix = value.lastIndexOf('.') >
        value.length - numOfCharsToRemove - NUM_OF_CHARS_TO_KEEP;
    var fileTypeSuffixIndex = isFileTypeSuffix
        ? value.lastIndexOf('.')
        : value.length - 1;
    var removeIndex = fileTypeSuffixIndex - numOfCharsToRemove - NUM_OF_CHARS_TO_KEEP;
    arr.splice(removeIndex, numOfCharsToRemove, CHARS_TO_ADD);
    return arr.join('');
};
var parseVideoQualities = function (fileOutput) {
    var mp4Videos = lodash__WEBPACK_IMPORTED_MODULE_0___default.a.filter(fileOutput.video, { format: 'mp4' });
    var storyboard = lodash__WEBPACK_IMPORTED_MODULE_0___default.a.find(fileOutput.storyboard, { format: 'mp4' });
    var qualities = lodash__WEBPACK_IMPORTED_MODULE_0___default.a.map(mp4Videos, function (quality) {
        return lodash__WEBPACK_IMPORTED_MODULE_0___default.a.pick(quality, ['width', 'height', 'quality', 'url']);
    });
    if (storyboard) {
        qualities.push({
            quality: 'storyboard',
            width: storyboard.width,
            height: storyboard.height,
            url: storyboard.url,
        });
    }
    return qualities;
};
var parseAdaptiveUrls = function (fileOutput) {
    var adaptiveVideo = getObjectValueByKey(fileOutput, 'adaptive_video');
    return lodash__WEBPACK_IMPORTED_MODULE_0___default.a.map(adaptiveVideo, function (item) {
        return {
            format: item.format,
            url: item.url,
        };
    });
};
var parseMediaFeatures = function (fileInfo) {
    var mediaFeatures = [];
    if (fileInfo.tags && lodash__WEBPACK_IMPORTED_MODULE_0___default.a.includes(fileInfo.tags, '_mp4_alpha')) {
        mediaFeatures.push('alpha');
    }
    return lodash__WEBPACK_IMPORTED_MODULE_0___default.a.isEmpty(mediaFeatures) ? null : mediaFeatures;
};
var url2uri = function (url) {
    // eslint-disable-next-line
    return url.replace(/^(.*[\/])/, '');
};
var parseVideoPosters = function (fileOutput) {
    return lodash__WEBPACK_IMPORTED_MODULE_0___default.a.map(fileOutput.image, function (image) {
        return url2uri(image.url);
    });
};
var parseVideoFileInfo = function (fileInfo, info) {
    var TITLE_LENGTH_LIMIT = 100;
    var fileInput = getObjectValueByKey(fileInfo, 'file_input');
    var fileOutput = getObjectValueByKey(fileInfo, 'file_output');
    var videoId = getIdFromUrl(fileInfo.fileUrl || fileInfo.file_name);
    var title = fixMediaTitleLength(fileInfo.title, TITLE_LENGTH_LIMIT);
    var qualities = parseVideoQualities(fileOutput);
    var adaptiveVideo = parseAdaptiveUrls(fileOutput);
    var mediaFeatures = parseMediaFeatures(fileInfo);
    // parse poster - get the first item in data
    var imageData = lodash__WEBPACK_IMPORTED_MODULE_0___default.a.head(fileOutput.image);
    var posterImageRef = {
        type: 'Image',
        width: imageData.width,
        height: imageData.height,
        uri: url2uri(imageData.url),
        description: info.path ? info.path : undefined,
    };
    var parsed = {
        type: 'WixVideo',
        title: title,
        videoId: videoId,
        duration: +(fileInput.duration / 1000).toFixed(2),
        posterImageRef: posterImageRef,
        generatedPosters: parseVideoPosters(fileOutput),
        qualities: qualities,
        adaptiveVideo: adaptiveVideo,
        artist: { name: fileInfo.vendor || '', id: fileInfo.reference || '' },
        hasAudio: getObjectValueByKey(lodash__WEBPACK_IMPORTED_MODULE_0___default.a.head(fileOutput.video), 'audio_bitrate') !== -1,
        fps: lodash__WEBPACK_IMPORTED_MODULE_0___default.a.get(lodash__WEBPACK_IMPORTED_MODULE_0___default.a.head(fileOutput.video), 'fps', '').toString(),
        mediaFeatures: mediaFeatures || [],
    };
    return parsed;
};
var getVideoBackgroundObject = function (fileInfo, info) {
    var MEDIA_OBJECT_DEFAULTS = {
        animatePoster: 'none',
        autoPlay: true,
        playbackRate: 1,
        fittingType: 'fill',
        hasBgScrollEffect: '',
        bgEffectName: '',
        isVideoDataExists: '1',
        alignType: 'center',
        videoFormat: 'mp4',
        playerType: 'html5',
        isEditorMode: false,
        isViewerMode: true,
        videoHeight: fileInfo.file_input.height,
        videoWidth: fileInfo.file_input.width,
    };
    var mediaObject = parseVideoFileInfo(fileInfo, info);
    return __assign({ mediaObject: __assign(__assign({}, MEDIA_OBJECT_DEFAULTS), mediaObject) }, BG_VIDEO_DEFAULTS);
};
var getFullVideoData = function (videoId, callback) {
    videoId = getVideoId(videoId);
    var VIDEO_INFO_END_POINT = "https://files.wix.com/site/media/files/" + videoId + "/info";
    fetch(VIDEO_INFO_END_POINT)
        .then(function (response) { return response.json(); })
        .then(function (response) {
        var fullVideoMediaRef = getVideoBackgroundObject(response, {});
        callback(fullVideoMediaRef);
    });
};
var getMediaDataFromSrc = function (value) {
    if (Object(_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_1__[/* isValidMediaSrc */ "b"])(value, 'video')) {
        var parseMediaItem = Object(_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_1__[/* parseMediaSrc */ "c"])(value, 'video');
        if (parseMediaItem.error) {
            return null;
        }
        return __assign(__assign({}, getVideoPosterObject(parseMediaItem)), {
            name: parseMediaItem.title,
            fileName: parseMediaItem.title,
            type: 'WixVideo',
        });
    }
    else {
        var parseMediaItem = Object(_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_1__[/* parseMediaSrc */ "c"])(value, 'image');
        if (parseMediaItem.error) {
            return null;
        }
        return __assign(__assign({}, parseMediaItem), {
            name: parseMediaItem.title,
            type: 'Image',
        });
    }
};
var getFullMediaData = function (mediaData, callback) {
    if (mediaData.videoId) {
        getFullVideoData(mediaData.videoId, callback);
        return;
    }
    callback();
};
//# sourceMappingURL=backgroundUtils.js.map

/***/ }),
/* 25 */
/*!******************************************************************!*\
  !*** ./components/TPAGallery/corvid/TPAGalleryCurrentItemSDK.ts ***!
  \******************************************************************/
/*! exports provided: tpaGalleryCurrentItemSDKFactory */
/*! exports used: tpaGalleryCurrentItemSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return tpaGalleryCurrentItemSDKFactory; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _TPAGallerySDKUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TPAGallerySDKUtils */ 42);



var _tpaGalleryCurrentItemSDKFactory = function (api) {
    var props = api.props, linkUtils = api.linkUtils;
    return {
        get currentItem() {
            var items = props.images;
            if (!items || !this.currentIndex || items.length === 0) {
                return undefined;
            }
            var imageItem = [items[this.currentIndex]];
            var convertedItemToUserModel = Object(_TPAGallerySDKUtils__WEBPACK_IMPORTED_MODULE_3__[/* convertImagesToUserModel */ "a"])(imageItem, linkUtils);
            return convertedItemToUserModel[0];
        },
        get currentIndex() {
            return props.currentIndex || 0;
        },
        onCurrentItemChanged: function (handler) {
            return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onCurrentItemChanged', api, handler, function (_a) {
                var componentEvent = _a.componentEvent;
                var convertedItemToUserModel = Object(_TPAGallerySDKUtils__WEBPACK_IMPORTED_MODULE_3__[/* convertImagesToUserModel */ "a"])([componentEvent.item], linkUtils)[0];
                return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, componentEvent), { item: convertedItemToUserModel });
            });
        },
    };
};
var tpaGalleryCurrentItemSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* withValidation */ "b"])(_tpaGalleryCurrentItemSDKFactory, {
    type: ['object'],
    properties: {
        onCurrentItemChanged: {
            type: ['function'],
            args: [{ type: ['function'] }],
        },
    },
});


/***/ }),
/* 26 */
/*!****************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/mediaItemUtils.js ***!
  \****************************************************************************************************************/
/*! exports provided: isValidMediaItemUri, createMediaItemUri, parseMediaItemUri, errors, types */
/*! exports used: createMediaItemUri, isValidMediaItemUri, parseMediaItemUri */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isValidMediaItemUri; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createMediaItemUri; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return parseMediaItemUri; });
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common */ 5);

var templates = {
    vector: function (svgId, filename) {
        return "wix:vector://v1/" + svgId + "/" + filename;
    },
    image: function (uri, filename, width, height, watermark) {
        return "wix:image://v1/" + uri + "/" + filename + "#originWidth=" + width + "&originHeight=" + height + (watermark ? "&watermark=" + watermark : '');
    },
    document: function (uri, filename) {
        return "wix:document://v1/" + uri + "/" + filename;
    },
    video: function (videoId, posterId, filename, width, height) {
        if (width === void 0) { width = 0; }
        if (height === void 0) { height = 0; }
        return "wix:video://v1/" + videoId + "/" + filename + "#posterUri=" + posterId + "&posterWidth=" + width + "&posterHeight=" + height;
    },
    audio: function (uri, filename, duration) {
        return "wix:audio://v1/" + uri + "/" + filename + "#duration=" + duration;
    },
};
/* eslint-disable no-useless-escape */
var matchers = {
    vector: /^wix:vector:\/\/v1\/([^\/]+)\/([^\/]*)$/,
    image: /^wix:image:\/\/v1\/([^\/]+)\/([^\/]+)#originWidth=([0-9]+)&originHeight=([0-9]+)(?:&watermark=([^\/]+))?$/,
    document: /^wix:document:\/\/v1\/([^\/]+)\/([^\/]+)$/,
    video: /^wix:video:\/\/v1\/([^\/]+)\/([^\/]+)#posterUri=([^\/]+)&posterWidth=([0-9]+)&posterHeight=([0-9]+)$/,
    audio: /^wix:audio:\/\/v1\/([^\/]+)\/([^\/]+)#duration=([0-9]+)$/,
    deprecated_video: /^wix:video:\/\/v1\/([^\/]+)\/([^\/]+)\/#posterUri=([^\/]+)&posterWidth=([0-9]+)&posterHeight=([0-9]+)$/,
    deprecated_image: /^image:\/\/v1\/([^\/]+)\/([0-9]+)_([0-9]+)\/([^\/]*)$/,
    deprecated_type: /^(image):/,
    type: /^wix:(\w+):/,
    splitExtension: /\.(?=[^.]+$)/,
    emptyTitle: /^_\./,
};
/* eslint-enable no-useless-escape*/
var matchersByType = {
    vector: [matchers.vector],
    image: [matchers.image, matchers.deprecated_image],
    document: [matchers.document],
    video: [matchers.video, matchers.deprecated_video],
    audio: [matchers.audio],
};
/**
 * Return a file name, use the extension from uri if the title has none
 */
function convertTitleToFilename(type, title, uri) {
    if (title === void 0) { title = ''; }
    var _a = uri.split(matchers.splitExtension), uriName = _a[0], uriExtension = _a[1];
    var _b = title.split(matchers.splitExtension), titleName = _b[0], titleExtension = _b[1];
    var filename;
    switch (type) {
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].IMAGE:
            filename = (titleName || '_') + "." + (titleExtension || uriExtension);
            break;
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].DOCUMENT:
            filename = (titleName || uriName) + "." + (titleExtension || uriExtension);
            break;
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VIDEO:
            filename = "" + (titleName || '_') + (titleExtension ? "." + titleExtension : '');
            break;
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].AUDIO:
            filename = (titleName || uriName) + "." + (titleExtension || uriExtension);
            break;
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VECTOR:
            filename = (titleName || uriName) + "." + (titleExtension || uriExtension);
            break;
        default:
            filename = '';
            break;
    }
    return encodeURI(filename);
}
/**
 * return filename or an empty string
 */
function convertFilenameToTitle(filename) {
    return matchers.emptyTitle.test(filename) ? '' : decodeURI(filename);
}
/**
 * Create a MediaItem for an image, width and height are mandatory numbers
 */
function createImageItem(_a) {
    var mediaId = _a.mediaId, title = _a.title, width = _a.width, height = _a.height, watermark = _a.watermark;
    if (!mediaId) {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].empty_media_id };
    }
    if (typeof height !== 'number' || typeof width !== 'number') {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].missing_width_height };
    }
    var filename = convertTitleToFilename(_common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].IMAGE, title, mediaId);
    return { item: templates.image(mediaId, filename, width, height, watermark) };
}
/**
 * Create a MediaItem for a document
 */
function createDocumentItem(_a) {
    var mediaId = _a.mediaId, title = _a.title;
    if (!mediaId) {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].empty_media_id };
    }
    var filename = convertTitleToFilename(_common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].DOCUMENT, title, mediaId);
    return { item: templates.document(mediaId, filename) };
}
/**
 * Create a MediaItem for a vector image
 */
function createVectorItem(_a) {
    var mediaId = _a.mediaId, title = _a.title;
    if (!mediaId) {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].empty_media_id };
    }
    var filename = convertTitleToFilename(_common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VECTOR, title, mediaId);
    return { item: templates.vector(mediaId, filename) };
}
/**
 * Create a MediaItem for a video, posterId is a mandatory image uri, width and height are mandatory numbers
 */
function createVideoItem(_a) {
    var mediaId = _a.mediaId, title = _a.title, width = _a.width, height = _a.height, posterId = _a.posterId;
    if (!mediaId) {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].empty_media_id };
    }
    if (!posterId) {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].empty_poster_id };
    }
    if (isNaN(height || NaN) || isNaN(width || NaN)) {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].missing_width_height };
    }
    var strippedMediaId = mediaId.replace('video/', '');
    var filename = convertTitleToFilename(_common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VIDEO, title, strippedMediaId);
    return {
        item: templates.video(strippedMediaId, posterId, filename, width, height),
    };
}
/**
 * Create a MediaItem for a audio
 */
function createAudioItem(_a) {
    var mediaId = _a.mediaId, title = _a.title, duration = _a.duration;
    if (!mediaId) {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].empty_media_id };
    }
    var filename = convertTitleToFilename(_common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].AUDIO, title, mediaId);
    return { item: templates.audio(mediaId, filename, duration || 0) };
}
/**
 * Parse an image MediaItem
 */
function parseImageItem(item) {
    var _a = item.match(matchers.image) || [], mediaId = _a[1], filename = _a[2], width = _a[3], height = _a[4], watermark = _a[5];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        var parsed = {
            type: _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].IMAGE,
            mediaId: mediaId,
            title: title,
            width: parseInt(width, 10),
            height: parseInt(height, 10),
            watermark: watermark,
        };
        return parsed;
    }
    return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].bad_media_id };
}
function parseDeprecatedImageItem(item) {
    var _a = item.match(matchers.deprecated_image) || [], mediaId = _a[1], width = _a[2], height = _a[3], filename = _a[4];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        return {
            type: _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].IMAGE,
            mediaId: mediaId,
            title: title,
            width: parseInt(width, 10),
            height: parseInt(height, 10),
        };
    }
    return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].bad_media_id };
}
/**
 * Parse a document MediaItem
 */
function parseDocumentItem(item) {
    var _a = item.match(matchers.document) || [], mediaId = _a[1], filename = _a[2];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        return {
            type: _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].DOCUMENT,
            mediaId: mediaId,
            title: title,
        };
    }
    return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].bad_media_id };
}
/**
 * Parse a vector MediaItem
 */
function parseVectorItem(item) {
    var _a = item.match(matchers.vector) || [], mediaId = _a[1], filename = _a[2];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        return {
            type: _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VECTOR,
            mediaId: mediaId,
            title: title,
        };
    }
    return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].bad_media_id };
}
/**
 * Parse a video MediaItem
 */
function parseVideoItem(item) {
    var videoMatcher = matchers.deprecated_video.test(item)
        ? matchers.deprecated_video
        : matchers.video;
    var _a = item.match(videoMatcher) || [], mediaId = _a[1], filename = _a[2], posterId = _a[3], width = _a[4], height = _a[5];
    var title = convertFilenameToTitle(filename);
    if (mediaId && posterId) {
        return {
            type: _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VIDEO,
            mediaId: mediaId,
            posterId: posterId,
            width: parseInt(width, 10),
            height: parseInt(height, 10),
            title: title,
        };
    }
    return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].bad_media_id };
}
/**
 * Parse a audio MediaItem
 */
function parseAudioItem(item) {
    var _a = item.match(matchers.audio) || [], mediaId = _a[1], filename = _a[2], duration = _a[3];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        return {
            type: _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].AUDIO,
            mediaId: mediaId,
            title: title,
            duration: parseInt(duration, 10),
        };
    }
    return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].bad_media_id };
}
/**
 * Create a MediaItem in the form of 'wix:<media_type>:<uri>/...' of one of the supported type
 */
function createMediaItemUri(_a) {
    var mediaId = _a.mediaId, type = _a.type, title = _a.title, width = _a.width, height = _a.height, posterId = _a.posterId, watermark = _a.watermark, duration = _a.duration;
    switch (type) {
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].IMAGE:
            return createImageItem({ mediaId: mediaId, title: title, width: width, height: height, watermark: watermark });
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].DOCUMENT:
            return createDocumentItem({ mediaId: mediaId, title: title });
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VECTOR:
            return createVectorItem({ mediaId: mediaId, title: title });
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VIDEO:
            return createVideoItem({ mediaId: mediaId, title: title, width: width, height: height, posterId: posterId });
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].AUDIO:
            return createAudioItem({ mediaId: mediaId, title: title, duration: duration });
        default:
            return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].unknown_media_type };
    }
}
/**
 * Parse a media item url of one of the supported types
 */
function parseMediaItemUri(mediaItemUri) {
    if (mediaItemUri === void 0) { mediaItemUri = ''; }
    if (typeof mediaItemUri !== 'string') {
        return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].non_string_media_id };
    }
    var _a = mediaItemUri.match(matchers.type) || [], type = _a[1];
    switch (type) {
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].IMAGE:
            return parseImageItem(mediaItemUri);
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].DOCUMENT:
            return parseDocumentItem(mediaItemUri);
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VECTOR:
            return parseVectorItem(mediaItemUri);
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].VIDEO:
            return parseVideoItem(mediaItemUri);
        case _common__WEBPACK_IMPORTED_MODULE_0__[/* types */ "b"].AUDIO:
            return parseAudioItem(mediaItemUri);
        default:
            var _b = mediaItemUri.match(matchers.deprecated_type) || [], deprecatedType = _b[1];
            if (deprecatedType) {
                return parseDeprecatedImageItem(mediaItemUri);
            }
            return { error: _common__WEBPACK_IMPORTED_MODULE_0__[/* errors */ "a"].unknown_media_type };
    }
}
/**
 * Checks if a given url is a valid media item url
 */
function isValidMediaItemUri(mediaItemUri, type) {
    if (mediaItemUri === void 0) { mediaItemUri = ''; }
    var typeMatchers = matchersByType[type];
    return (typeMatchers && typeMatchers.some(function (matcher) { return matcher.test(mediaItemUri); }));
}

//# sourceMappingURL=mediaItemUtils.js.map

/***/ }),
/* 27 */
/*!***************************************************************!*\
  !*** ./components/TPAGallery/corvid/TPAGalleryPlayableSDK.ts ***!
  \***************************************************************/
/*! exports provided: tpaGalleryPlayableSDKFactory */
/*! exports used: tpaGalleryPlayableSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return tpaGalleryPlayableSDKFactory; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);


var _tpaGalleryPlayableSDKFactory = function (_a) {
    var registerEvent = _a.registerEvent, props = _a.props, setProps = _a.setProps, compRef = _a.compRef, createSdkState = _a.createSdkState;
    var _b = createSdkState({
        nextPromises: [],
        previousPromises: [],
    }), state = _b[0], setState = _b[1];
    registerEvent('onCurrentItemChanged', function () {
        state.nextPromises.forEach(function (cb) { return cb(); });
        setState({ nextPromises: [] });
        state.previousPromises.forEach(function (cb) { return cb(); });
        setState({ previousPromises: [] });
    });
    return {
        get isPlaying() {
            return props.compProps.autoplay;
        },
        play: function () {
            setProps({
                compProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.compProps), { autoplay: true }),
            });
        },
        pause: function () {
            setProps({
                compProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.compProps), { autoplay: false }),
            });
        },
        next: function () {
            return new Promise(function (resolve) {
                setState({ nextPromises: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(state.nextPromises, [resolve]) });
                compRef.next();
            });
        },
        previous: function () {
            return new Promise(function (resolve) {
                setState({ previousPromises: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(state.previousPromises, [resolve]) });
                compRef.previous();
            });
        },
    };
};
var tpaGalleryPlayableSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_tpaGalleryPlayableSDKFactory, {
    type: ['object'],
    properties: {
        play: {
            type: ['function'],
            args: [{ type: ['function'] }],
        },
    },
});


/***/ }),
/* 28 */
/*!**********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js ***!
  \**********************************************************************************************************************************/
/*! exports provided: disablePropsSDKFactory */
/*! exports used: disablePropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return disablePropsSDKFactory; });
var disablePropsSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props;
    return ({
        get enabled() {
            return typeof props.isDisabled !== 'undefined' ? !props.isDisabled : true;
        },
        disable: function () {
            setProps({ isDisabled: true });
            return Promise.resolve();
        },
        enable: function () {
            setProps({ isDisabled: false });
            return Promise.resolve();
        },
    });
};
//# sourceMappingURL=disablePropsSDKFactory.js.map

/***/ }),
/* 29 */
/*!*********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js ***!
  \*********************************************************************************************************************************/
/*! exports provided: changePropsSDKFactory */
/*! exports used: changePropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return changePropsSDKFactory; });
/* harmony import */ var _corvidEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../corvidEvents */ 13);

var changePropsSDKFactory = function (api) { return ({
    onChange: function (handler) { return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidEvent */ "a"])('onChange', api, handler); },
}); };
//# sourceMappingURL=changePropsSDKFactory.js.map

/***/ }),
/* 30 */
/*!****************************!*\
  !*** ./core/corvid/svg.ts ***!
  \****************************/
/*! exports provided: SVG_FALLBACK_CONTENT, SVG_TYPE_INLINE, SVG_TYPE_WIX_MEDIA, SVG_TYPE_URL, createSvgWixMediaUrl, resolveSvg, fetchSvg, resolveAndFetchSvg, isFallbackSvg */
/*! exports used: SVG_TYPE_INLINE, createSvgWixMediaUrl, fetchSvg, isFallbackSvg, resolveAndFetchSvg, resolveSvg */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SVG_FALLBACK_CONTENT */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SVG_TYPE_INLINE; });
/* unused harmony export SVG_TYPE_WIX_MEDIA */
/* unused harmony export SVG_TYPE_URL */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createSvgWixMediaUrl; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return resolveSvg; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return fetchSvg; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return resolveAndFetchSvg; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isFallbackSvg; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);


var SVG_FALLBACK_CONTENT = '<svg data-failed />';
var SVG_TYPE_INLINE = 'inline';
var SVG_TYPE_WIX_MEDIA = 'wixMedia';
var SVG_TYPE_URL = 'url';
var WIX_MEDIA_PREFIX_REGEX = /^wix:vector:\/\/v1\//;
var WIX_MEDIA_REGEX = /^wix:vector:\/\/v1\/[0-9|a-z|_]+.svg/;
var resolveSvgShape = function (value, baseSvgMediaUrl) {
    /**
     * Shapes have next format `wix:vector://v1/svgshape.v2.Svg_283bac5c7f3f4b348e0f68e27825aaa0/`
     * and they handled separately:
     * https://github.com/wix-private/santa-core/blob/master/santa-core-utils/src/coreUtils/core/svgUtils.js#L61
     */
    var extractShapeUri = function (svgId) {
        var _a = svgId
            .replace(/^.*\//, '')
            .split('.'), shapeVersion = _a[1], hash = _a[2], svgName = _a[3];
        var version = shapeVersion === 'v1' ? 1 : 2;
        var svgHash = hash.replace(/svg_/i, '');
        return svgHash + (version === 1 ? "_svgshape.v1." + svgName : '') + ".svg";
    };
    var svgShape = value.replace(WIX_MEDIA_PREFIX_REGEX, '').split('/')[0];
    var svgUri = extractShapeUri(svgShape);
    return {
        type: SVG_TYPE_WIX_MEDIA,
        data: baseSvgMediaUrl + "/" + svgUri,
    };
};
var extractWixMediaUrl = function (value) {
    var wixMediaUrl = (WIX_MEDIA_REGEX.exec(value) || [])[0];
    return wixMediaUrl;
};
var createSvgWixMediaUrl = function (id, title) {
    var titleSuffix = title ? encodeURIComponent(title) : '';
    return "wix:vector://v1/" + id + "/" + titleSuffix;
};
var resolveSvg = function (src, baseSvgMediaUrl) {
    if (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isWixSVGShape(src)) {
        return resolveSvgShape(src, baseSvgMediaUrl);
    }
    var wixMediaUrl = extractWixMediaUrl(src);
    if (wixMediaUrl) {
        var svgId = wixMediaUrl.replace(WIX_MEDIA_PREFIX_REGEX, '');
        return {
            type: SVG_TYPE_WIX_MEDIA,
            data: "" + baseSvgMediaUrl + svgId,
        };
    }
    if (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isInlineSvg(src)) {
        return { type: SVG_TYPE_INLINE, data: src };
    }
    return { type: SVG_TYPE_URL, data: src };
};
var fetchSvg = function (url) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
    var response, _a;
    return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
        switch (_b.label) {
            case 0:
                _b.trys.push([0, 2, , 3]);
                return [4 /*yield*/, fetch(url)];
            case 1:
                response = _b.sent();
                if (response.ok) {
                    return [2 /*return*/, response.text()];
                }
                return [3 /*break*/, 3];
            case 2:
                _a = _b.sent();
                return [3 /*break*/, 3];
            case 3: return [2 /*return*/, SVG_FALLBACK_CONTENT];
        }
    });
}); };
var resolveAndFetchSvg = function (src, baseSvgMediaUrl) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
    var _a, type, data;
    return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
        _a = resolveSvg(src, baseSvgMediaUrl), type = _a.type, data = _a.data;
        if (type === SVG_TYPE_INLINE) {
            return [2 /*return*/, data];
        }
        return [2 /*return*/, fetchSvg(data)];
    });
}); };
var isFallbackSvg = function (svg) { return svg === SVG_FALLBACK_CONTENT; };


/***/ }),
/* 31 */
/*!***********************************************************!*\
  !*** ./core/corvid/inputUtils/validationPropsSdkState.ts ***!
  \***********************************************************/
/*! exports provided: getValidationData, setValidationData, getCustomValidator, setCustomValidator */
/*! exports used: getCustomValidator, getValidationData, setCustomValidator, setValidationData */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getValidationData; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return setValidationData; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getCustomValidator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setCustomValidator; });
/* harmony import */ var _validityUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validityUtils */ 9);

var defaultState = {
    validationData: _validityUtils__WEBPACK_IMPORTED_MODULE_0__[/* INITIAL_VALIDATION_DATA */ "a"],
    customValidator: function () { },
};
var NAMESPACE = 'validation';
var getValidationData = function (_a) {
    var createSdkState = _a.createSdkState;
    var state = createSdkState(defaultState, NAMESPACE)[0];
    return state.validationData;
};
var setValidationData = function (_a, validationData) {
    var createSdkState = _a.createSdkState;
    var _b = createSdkState(defaultState, NAMESPACE), setState = _b[1];
    setState({ validationData: validationData });
};
var getCustomValidator = function (_a) {
    var createSdkState = _a.createSdkState;
    var state = createSdkState(defaultState, NAMESPACE)[0];
    return state.customValidator;
};
var setCustomValidator = function (_a, customValidator) {
    var createSdkState = _a.createSdkState;
    var _b = createSdkState(defaultState, NAMESPACE), setState = _b[1];
    setState({ customValidator: customValidator });
};


/***/ }),
/* 32 */
/*!********************************************************!*\
  !*** ./core/corvid/inputUtils/createInputValidator.ts ***!
  \********************************************************/
/*! exports provided: createInputValidator, createEmptyInputValidator */
/*! exports used: createEmptyInputValidator, createInputValidator */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createInputValidator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createEmptyInputValidator; });
/* harmony import */ var _validityUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validityUtils */ 9);
/* harmony import */ var _validationPropsSdkState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./validationPropsSdkState */ 31);


var createInputValidator = function (componentValidator, compValueGetter) {
    var callbacks = [];
    return {
        onValidate: function (cb) { return callbacks.push(cb); },
        validate: function (_a) {
            var viewerSdkAPI = _a.viewerSdkAPI, showValidityIndication = _a.showValidityIndication;
            var props = viewerSdkAPI.props;
            var validationDataResult = componentValidator(props, viewerSdkAPI);
            var updatedValidationData = validationDataResult;
            var customValidityMessage = Object(_validityUtils__WEBPACK_IMPORTED_MODULE_0__[/* checkCustomValidity */ "e"])(Object(_validationPropsSdkState__WEBPACK_IMPORTED_MODULE_1__[/* getCustomValidator */ "a"])(viewerSdkAPI), props, compValueGetter);
            if (customValidityMessage) {
                updatedValidationData = Object(_validityUtils__WEBPACK_IMPORTED_MODULE_0__[/* addCustomValidityToValidationData */ "b"])(validationDataResult, customValidityMessage);
            }
            callbacks.forEach(function (cb) {
                return cb({
                    viewerSdkAPI: viewerSdkAPI,
                    showValidityIndication: showValidityIndication,
                    validationDataResult: updatedValidationData,
                });
            });
        },
    };
};
var createEmptyInputValidator = function () {
    return {
        onValidate: function (_cb) { },
        validate: function (_args) { },
    };
};


/***/ }),
/* 33 */
/*!********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js ***!
  \********************************************************************************************************************************/
/*! exports provided: focusPropsSDKFactory */
/*! exports used: focusPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return focusPropsSDKFactory; });
/* harmony import */ var _corvidEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../corvidEvents */ 13);

var focusPropsSDKFactory = function (api) {
    return {
        focus: function () { return api.compRef.focus(); },
        blur: function () { return api.compRef.blur(); },
        onFocus: function (handler) { return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidEvent */ "a"])('onFocus', api, handler); },
        onBlur: function (handler) { return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidEvent */ "a"])('onBlur', api, handler); },
    };
};
//# sourceMappingURL=focusPropsSDKFactory.js.map

/***/ }),
/* 34 */
/*!***********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js ***!
  \***********************************************************************************************************************************/
/*! exports provided: childrenPropsSDKFactory */
/*! exports used: childrenPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return childrenPropsSDKFactory; });
var childrenPropsSDKFactory = function (_a) {
    var getChildren = _a.getChildren;
    return {
        get children() {
            return getChildren();
        },
    };
};
//# sourceMappingURL=childrenPropsSDKFactory.js.map

/***/ }),
/* 35 */,
/* 36 */
/*!***********************************************************************!*\
  !*** ./components/SiteButton/corvid/SiteButton.corvid.ts + 1 modules ***!
  \***********************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/linkPropsSDKFactory.ts because of ./components/WPhoto/corvid/WPhoto.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/labelPropsSDKFactory.js because of ./components/StylableButton/corvid/StylableButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/labelPropsSDKFactory.js
var labelPropsSDKFactory = __webpack_require__(241);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: ./core/corvid/props-factories/linkPropsSDKFactory.ts
var linkPropsSDKFactory = __webpack_require__(59);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/accessibilityPropsSDKFactory.js


var REMOVABLE_ATTRIBUTES = ['ariaLabel'];
var ErrorMessages;
(function (ErrorMessages) {
    ErrorMessages["ARIA_LABEL_NOT_STRING"] = "aria-label must be string";
    ErrorMessages["ARIA_LABEL_EMPTY_STRING"] = "aria-label can't be an empty string";
    ErrorMessages["REMOVING_MISSING_ATTRIBUTE"] = "Cannot remove a non existing attribute";
})(ErrorMessages || (ErrorMessages = {}));
var accessibilityPropsSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props;
    var accessibility = {
        get ariaLabel() {
            return props.ariaLabel;
        },
        set ariaLabel(label) {
            if (!assert["a" /* assert */].isString(label)) {
                Object(reporters["a" /* reportError */])(ErrorMessages.ARIA_LABEL_NOT_STRING);
                return;
            }
            if (!label.length) {
                Object(reporters["a" /* reportError */])(ErrorMessages.ARIA_LABEL_EMPTY_STRING);
                return;
            }
            setProps({ ariaLabel: label });
        },
        remove: function (attribute) {
            var _a;
            if (!REMOVABLE_ATTRIBUTES.includes(attribute)) {
                Object(reporters["a" /* reportError */])(ErrorMessages.REMOVING_MISSING_ATTRIBUTE);
                return;
            }
            setProps((_a = {}, _a[attribute] = undefined, _a));
        },
    };
    return { accessibility: accessibility };
};
//# sourceMappingURL=accessibilityPropsSDKFactory.js.map
// CONCATENATED MODULE: ./components/SiteButton/corvid/SiteButton.corvid.ts




var _siteButtonSDKFactory = function (api) {
    var props = api.props, metaData = api.metaData;
    return {
        get type() {
            return '$w.Button';
        },
        toJSON: function () {
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: '$w.Button', label: props.label || '' });
        },
    };
};
var siteButtonSDKFactory = Object(withValidation["b" /* withValidation */])(_siteButtonSDKFactory, {
    type: ['object'],
    properties: {
        onClick: {
            type: ['function'],
            args: [{ type: ['function'] }],
        },
    },
});
var SiteButton_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var SiteButton_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(SiteButton_corvid_elementPropsSDKFactory, labelPropsSDKFactory["a" /* labelPropsSDKFactory */], disablePropsSDKFactory["a" /* disablePropsSDKFactory */], linkPropsSDKFactory["a" /* linkPropsSDKFactory */], SiteButton_corvid_stylePropsSDKFactory, clickPropsSDKFactory["b" /* clickPropsSDKFactoryWithUpdatePlatformHandler */], focusPropsSDKFactory["a" /* focusPropsSDKFactory */], accessibilityPropsSDKFactory, siteButtonSDKFactory);
/* harmony default export */ var SiteButton_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 37 */
/*!*********************************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules ***!
  \*********************************************************************************************************************************************/
/*! exports provided: createStylePropsSDKFactory */
/*! exports used: createStylePropsSDKFactory */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ createStylePropsSDKFactory; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js
var messageTemplates = __webpack_require__(8);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/styleUtils/colorKeywords.js
var __assign = (undefined && undefined.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var cssLevel1 = {
    black: '#000000',
    silver: '#c0c0c0',
    gray: '#808080',
    white: '#ffffff',
    maroon: '#800000',
    red: '#ff0000',
    purple: '#800080',
    fuchsia: '#ff00ff',
    green: '#008000',
    lime: '#00ff00',
    olive: '#808000',
    yellow: '#ffff00',
    navy: '#000080',
    blue: '#0000ff',
    teal: '#008080',
    aqua: '#00ffff',
};
var cssLevel2 = {
    orange: '#ffa500',
    aliceblue: '#f0f8ff',
    antiquewhite: '#faebd7',
    aquamarine: '#7fffd4',
    azure: '#f0ffff',
    beige: '#f5f5dc',
    bisque: '#ffe4c4',
    blanchedalmond: '#ffebcd',
    blueviolet: '#8a2be2',
    brown: '#a52a2a',
    burlywood: '#deb887',
    cadetblue: '#5f9ea0',
    chartreuse: '#7fff00',
    chocolate: '#d2691e',
    coral: '#ff7f50',
    cornflowerblue: '#6495ed',
    cornsilk: '#fff8dc',
    crimson: '#dc143c',
    cyan: '#00ffff',
    darkblue: '#00008b',
    darkcyan: '#008b8b',
    darkgoldenrod: '#b8860b',
    darkgray: '#a9a9a9',
    darkgreen: '#006400',
    darkgrey: '#a9a9a9',
    darkkhaki: '#bdb76b',
    darkmagenta: '#8b008b',
    darkolivegreen: '#556b2f',
    darkorange: '#ff8c00',
    darkorchid: '#9932cc',
    darkred: '#8b0000',
    darksalmon: '#e9967a',
    darkseagreen: '#8fbc8f',
    darkslateblue: '#483d8b',
    darkslategray: '#2f4f4f',
    darkslategrey: '#2f4f4f',
    darkturquoise: '#00ced1',
    darkviolet: '#9400d3',
    deeppink: '#ff1493',
    deepskyblue: '#00bfff',
    dimgray: '#696969',
    dimgrey: '#696969',
    dodgerblue: '#1e90ff',
    firebrick: '#b22222',
    floralwhite: '#fffaf0',
    forestgreen: '#228b22',
    gainsboro: '#dcdcdc',
    ghostwhite: '#f8f8ff',
    gold: '#ffd700',
    goldenrod: '#daa520',
    greenyellow: '#adff2f',
    grey: '#808080',
    honeydew: '#f0fff0',
    hotpink: '#ff69b4',
    indianred: '#cd5c5c',
    indigo: '#4b0082',
    ivory: '#fffff0',
    khaki: '#f0e68c',
    lavender: '#e6e6fa',
    lavenderblush: '#fff0f5',
    lawngreen: '#7cfc00',
    lemonchiffon: '#fffacd',
    lightblue: '#add8e6',
    lightcoral: '#f08080',
    lightcyan: '#e0ffff',
    lightgoldenrodyellow: '#fafad2',
};
var cssLevel3 = {
    lightgray: '#d3d3d3',
    lightgreen: '#90ee90',
    lightgrey: '#d3d3d3',
    lightpink: '#ffb6c1',
    lightsalmon: '#ffa07a',
    lightseagreen: '#20b2aa',
    lightskyblue: '#87cefa',
    lightslategray: '#778899',
    lightslategrey: '#778899',
    lightsteelblue: '#b0c4de',
    lightyellow: '#ffffe0',
    limegreen: '#32cd32',
    linen: '#faf0e6',
    magenta: '#ff00ff',
    mediumaquamarine: '#66cdaa',
    mediumblue: '#0000cd',
    mediumorchid: '#ba55d3',
    mediumpurple: '#9370db',
    mediumseagreen: '#3cb371',
    mediumslateblue: '#7b68ee',
    mediumspringgreen: '#00fa9a',
    mediumturquoise: '#48d1cc',
    mediumvioletred: '#c71585',
    midnightblue: '#191970',
    mintcream: '#f5fffa',
    mistyrose: '#ffe4e1',
    moccasin: '#ffe4b5',
    navajowhite: '#ffdead',
    oldlace: '#fdf5e6',
    olivedrab: '#6b8e23',
    orangered: '#ff4500',
    orchid: '#da70d6',
    palegoldenrod: '#eee8aa',
    palegreen: '#98fb98',
    paleturquoise: '#afeeee',
    palevioletred: '#db7093',
    papayawhip: '#ffefd5',
    peachpuff: '#ffdab9',
    peru: '#cd853f',
    pink: '#ffc0cb',
    plum: '#dda0dd',
    powderblue: '#b0e0e6',
    rosybrown: '#bc8f8f',
    royalblue: '#4169e1',
    saddlebrown: '#8b4513',
    salmon: '#fa8072',
    sandybrown: '#f4a460',
    seagreen: '#2e8b57',
    seashell: '#fff5ee',
    sienna: '#a0522d',
    skyblue: '#87ceeb',
    slateblue: '#6a5acd',
    slategray: '#708090',
    slategrey: '#708090',
    snow: '#fffafa',
    springgreen: '#00ff7f',
    steelblue: '#4682b4',
    tan: '#d2b48c',
    thistle: '#d8bfd8',
    tomato: '#ff6347',
    turquoise: '#40e0d0',
    violet: '#ee82ee',
    wheat: '#f5deb3',
    whitesmoke: '#f5f5f5',
    yellowgreen: '#9acd32',
};
var cssLevel4 = {
    rebeccapurple: '#663399',
};
var colorKeywords = __assign(__assign(__assign(__assign({}, cssLevel1), cssLevel2), cssLevel3), cssLevel4);
//# sourceMappingURL=colorKeywords.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/styleUtils/colorAssertions.js

function isRGBAColor(value) {
    var rxValidRgba = /\b([R][G][B][A][(]\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])(\s*,\s*((0\.[0-9]*)|(1\.0)|(1)|(0)))?[)])/i;
    return rxValidRgba.test(value);
}
function isRGBColor(value) {
    var rxValidRgb = /\b([R][G][B][(]\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])(\s*)[)])/i;
    return rxValidRgb.test(value);
}
function isHexColor(value) {
    var validHexColor = /^#(([a-f0-9]){3}){1,2}$/i;
    return validHexColor.test(value);
}
function isHexaColor(value) {
    var validHexaColor = /^#([a-f0-9]{8}|[a-f0-9]{4})\b$/gi;
    return validHexaColor.test(value);
}
function isKeyword(color) {
    return colorKeywords[color];
}
function isValidRGBOrRGBA(color) {
    return isRGBColor(color) || isRGBAColor(color);
}
function isValidHexaOrHex(color) {
    return isHexaColor(color) || isHexColor(color);
}
function isValidColor(color) {
    return isValidHexaOrHex(color) || isValidRGBOrRGBA(color) || isKeyword(color);
}
//# sourceMappingURL=colorAssertions.js.map
// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/styleUtils/unitValidations.js

function unitValidations_validatePixel(value) {
    if (assert["a" /* assert */].isString(value)) {
        var endsWithPx = value.endsWith('px');
        var integerToValidate = value.slice(0, value.length - 2);
        var containsOnlyNumbers = /^\d*$/.test(integerToValidate);
        return endsWithPx && containsOnlyNumbers && parseInt(integerToValidate, 10);
    }
    return false;
}
//# sourceMappingURL=unitValidations.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/validation.js



var createColorValidator = function (_a) {
    var propertyName = _a.propertyName, cssProperty = _a.cssProperty, supportAlpha = _a.supportAlpha;
    return function (color, api) {
        if (!isValidColor(color)) {
            Object(reporters["a" /* reportError */])(messageTemplates["a" /* templates */].error_invalid_css_value_multiple_expected_formats({
                propertyName: propertyName,
                cssProperty: cssProperty,
                infoLink: "https://www.wix.com/corvid/new-reference/$w/style/" + propertyName.toLowerCase(),
                compName: api.metaData.role,
                exampleFormats: supportAlpha
                    ? '"red", "#FF0000", "#FF000000", "rgb(225, 0, 0)" or "rgba(225, 0, 0, 0)"'
                    : '"red", "#FF0000", or "rgb(225, 0, 0)"',
            }));
            return false;
        }
        if (!supportAlpha) {
            reportRGBACastingWarning({ propertyName: propertyName, color: color, api: api });
        }
        return true;
    };
};
var createPixelValidator = function (_a) {
    var propertyName = _a.propertyName, cssProperty = _a.cssProperty;
    return function (unit, api) {
        if (!unitValidations_validatePixel(unit)) {
            Object(reporters["a" /* reportError */])(messageTemplates["a" /* templates */].error_invalid_css_value({
                propertyName: propertyName,
                cssProperty: cssProperty,
                infoLink: "https://www.wix.com/corvid/new-reference/$w/style/" + propertyName.toLowerCase(),
                compName: api.metaData.role,
                exampleFormat: '1px',
            }));
            return false;
        }
        return true;
    };
};
var reportRGBACastingWarning = function (_a) {
    var propertyName = _a.propertyName, color = _a.color, api = _a.api;
    if (isHexaColor(color) || isRGBAColor(color)) {
        Object(reporters["b" /* reportWarning */])(messageTemplates["a" /* templates */].warning_color_casting_performed({
            propertyName: propertyName,
            compName: api.metaData.role,
            infoLink: "https://www.wix.com/corvid/new-reference/$w/style/" + propertyName.toLowerCase(),
        }));
    }
};
//# sourceMappingURL=validation.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/constants.js
var cssVars = {
    backgroundColor: 'background-color',
    borderColor: 'border-color',
    borderRadius: 'border-radius',
    borderWidth: 'border-width',
    foregroundColor: 'foreground-color',
    textColor: 'color',
};
//# sourceMappingURL=constants.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/styleUtils/getScopedVar.js
var getScopedVar = function (_a) {
    var name = _a.name, prefix = _a.prefix;
    return prefix ? "--" + prefix + "-corvid-" + name : "--corvid-" + name;
};
//# sourceMappingURL=getScopedVar.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/styleUtils/colorTransformations.js


var getChannelsFromHex = function (color) {
    var chunkSize = Math.floor((color.length - 1) / 3);
    return color
        .slice(1)
        .match(new RegExp(".{" + chunkSize + "}", 'g'));
};
var convertHexUnitTo256 = function (hex) {
    return parseInt(hex.repeat(2 / hex.length), 16);
};
var convertHexaOrHexToRGBAUnits = function (color) {
    if (!isValidHexaOrHex(color)) {
        return;
    }
    var hexArr = getChannelsFromHex(color);
    var _a = hexArr.map(convertHexUnitTo256), r = _a[0], g = _a[1], b = _a[2], a = _a[3];
    var alpha = typeof a !== 'undefined' ? roundToTwoDecimals(a / 255) : 1;
    return [r, g, b, alpha];
};
var convertRGBAorRGBToRGBAUnits = function (color) {
    if (!isValidRGBOrRGBA(color)) {
        return;
    }
    var inParts = color.substring(color.indexOf('(')).split(',');
    var r = parseInt(inParts[0].substring(1).trim(), 10);
    var g = parseInt(inParts[1].trim(), 10);
    var b = parseInt(inParts[2].trim(), 10);
    var a = inParts[3] &&
        parseFloat(inParts[3].substring(0, inParts[3].length - 1).trim());
    var alpha = typeof a !== 'undefined' ? a : 1;
    return [r, g, b, alpha];
};
var convertColorToRGBAUnits = function (color) {
    return isValidHexaOrHex(color)
        ? convertHexaOrHexToRGBAUnits(color)
        : isValidRGBOrRGBA(color)
            ? convertRGBAorRGBToRGBAUnits(color)
            : isKeyword(color)
                ? convertHexaOrHexToRGBAUnits(colorKeywords[color])
                : undefined;
};
var extractOpacity = function (color) {
    var colorUnits = convertColorToRGBAUnits(color);
    if (colorUnits) {
        return colorUnits[3];
    }
    return;
};
var applyOpacity = function (color, opacity) {
    var colorUnits = convertColorToRGBAUnits(color);
    if (colorUnits) {
        var r = colorUnits[0], g = colorUnits[1], b = colorUnits[2];
        return "rgba(" + r + ", " + g + ", " + b + ", " + opacity + ")";
    }
    return;
};
var roundToTwoDecimals = function (number) {
    return Math.round(number * 1e2) / 1e2;
};
//# sourceMappingURL=colorTransformations.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/backgroundColorPropsSDKFactory.js




var createBackgroundColorPropsSDKFactory = function (options) {
    if (options === void 0) { options = { supportOpacity: true }; }
    var prefix = options.prefix, supportOpacity = options.supportOpacity, withoutDefaultValue = options.withoutDefaultValue;
    var cssRule = getScopedVar({
        name: cssVars.backgroundColor,
        prefix: prefix,
    });
    var validateColor = createColorValidator({
        propertyName: 'backgroundColor',
        cssProperty: supportOpacity ? 'rgbaColor' : 'rgbColor',
        supportAlpha: supportOpacity,
    });
    var _backgroundColorPropsSDKFactory = function (_a) {
        var _b;
        var setStyles = _a.setStyles, sdkData = _a.sdkData, createSdkState = _a.createSdkState;
        var editorInitialColor = (_b = sdkData === null || sdkData === void 0 ? void 0 : sdkData.initialSdkStyles) === null || _b === void 0 ? void 0 : _b.backgroundColor;
        var editorOpacity = extractOpacity(editorInitialColor);
        var _c = createSdkState({
            backgroundColor: withoutDefaultValue ? undefined : editorInitialColor,
        }, 'backgroundColor'), state = _c[0], setState = _c[1];
        return {
            set backgroundColor(value) {
                var _a;
                var backgroundColor = value;
                /**
                 * !Alert! This feature is intended.
                 * if mixin does not support opacity - cast it to RGB
                 */
                if (!supportOpacity && (isHexaColor(value) || isRGBAColor(value))) {
                    var _b = convertColorToRGBAUnits(value), r = _b[0], g = _b[1], b = _b[2];
                    backgroundColor = "rgb(" + r + ", " + g + ", " + b + ")";
                }
                /**
                 * !Alert! This feature is intended.
                 *  Editor color alpha gets modified by the amount of user color alpha
                 */
                if (typeof editorOpacity === 'number' && editorOpacity !== 1) {
                    var userOpacity = extractOpacity(value);
                    var opacity = userOpacity
                        ? roundToTwoDecimals(editorOpacity * userOpacity)
                        : editorOpacity;
                    backgroundColor = applyOpacity(backgroundColor, opacity);
                }
                setState({ backgroundColor: backgroundColor });
                setStyles((_a = {}, _a[cssRule] = backgroundColor, _a));
            },
            get backgroundColor() {
                return state.backgroundColor;
            },
        };
    };
    return Object(withValidation["b" /* withValidation */])(_backgroundColorPropsSDKFactory, {
        type: ['object'],
        properties: {
            backgroundColor: {
                type: ['string', 'nil'],
            },
        },
    }, {
        backgroundColor: [validateColor],
    });
};
//# sourceMappingURL=backgroundColorPropsSDKFactory.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/borderColorPropsSDKFactory.js




var createBorderColorPropsSDKFactory = function (options) {
    if (options === void 0) { options = { supportOpacity: true }; }
    var prefix = options.prefix, supportOpacity = options.supportOpacity, withoutDefaultValue = options.withoutDefaultValue;
    var cssRule = getScopedVar({
        name: cssVars.borderColor,
        prefix: prefix,
    });
    var validateColor = createColorValidator({
        propertyName: 'borderColor',
        cssProperty: supportOpacity ? 'rgbaColor' : 'rgbColor',
        supportAlpha: supportOpacity,
    });
    var _borderColorPropsSDKFactory = function (_a) {
        var _b;
        var setStyles = _a.setStyles, sdkData = _a.sdkData, createSdkState = _a.createSdkState;
        var editorInitialColor = (_b = sdkData === null || sdkData === void 0 ? void 0 : sdkData.initialSdkStyles) === null || _b === void 0 ? void 0 : _b.borderColor;
        var editorOpacity = extractOpacity(editorInitialColor);
        var _c = createSdkState({
            borderColor: withoutDefaultValue ? undefined : editorInitialColor,
        }, 'borderColor'), state = _c[0], setState = _c[1];
        return {
            set borderColor(value) {
                var _a;
                var borderColor = value;
                /**
                 * !Alert! This feature is intended.
                 * if mixin does not support opacity - cast it to RGB
                 */
                if (!supportOpacity && (isHexaColor(value) || isRGBAColor(value))) {
                    var _b = convertColorToRGBAUnits(value), r = _b[0], g = _b[1], b = _b[2];
                    borderColor = "rgb(" + r + ", " + g + ", " + b + ")";
                }
                /**
                 * !Alert! This feature is intended.
                 *  Editor color alpha gets modified by the amount of user color alpha
                 */
                if (typeof editorOpacity === 'number' && editorOpacity !== 1) {
                    var userOpacity = extractOpacity(value);
                    var opacity = userOpacity
                        ? roundToTwoDecimals(editorOpacity * userOpacity)
                        : editorOpacity;
                    borderColor = applyOpacity(borderColor, opacity);
                }
                setState({ borderColor: borderColor });
                setStyles((_a = {}, _a[cssRule] = borderColor, _a));
            },
            get borderColor() {
                return state.borderColor;
            },
        };
    };
    return Object(withValidation["b" /* withValidation */])(_borderColorPropsSDKFactory, {
        type: ['object'],
        properties: {
            borderColor: {
                type: ['string', 'nil'],
            },
        },
    }, {
        borderColor: [validateColor],
    });
};
//# sourceMappingURL=borderColorPropsSDKFactory.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/borderWidthPropsSDKFactory.js




var createBorderWidthPropsSDKFactory = function (options) {
    if (options === void 0) { options = {}; }
    var prefix = options.prefix, withoutDefaultValue = options.withoutDefaultValue;
    var cssRule = getScopedVar({
        name: cssVars.borderWidth,
        prefix: prefix,
    });
    var validatePixel = createPixelValidator({
        propertyName: 'borderWidth',
        cssProperty: 'width',
    });
    var _borderWidthPropsSDKFactory = function (_a) {
        var _b;
        var setStyles = _a.setStyles, sdkData = _a.sdkData, createSdkState = _a.createSdkState;
        var editorInitialWidth = (_b = sdkData === null || sdkData === void 0 ? void 0 : sdkData.initialSdkStyles) === null || _b === void 0 ? void 0 : _b.borderWidth;
        var _c = createSdkState({
            borderWidth: withoutDefaultValue ? undefined : editorInitialWidth,
        }, 'borderWidth'), state = _c[0], setState = _c[1];
        return {
            set borderWidth(borderWidth) {
                var _a;
                setState({ borderWidth: borderWidth });
                setStyles((_a = {}, _a[cssRule] = borderWidth, _a));
            },
            get borderWidth() {
                return state.borderWidth;
            },
        };
    };
    return Object(withValidation["b" /* withValidation */])(_borderWidthPropsSDKFactory, {
        type: ['object'],
        properties: {
            borderWidth: {
                type: ['string', 'nil'],
            },
        },
    }, {
        borderWidth: [validatePixel],
    });
};
//# sourceMappingURL=borderWidthPropsSDKFactory.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/foregroundcolorPropsSDKFactory.js




var createForegroundColorPropsSDKFactory = function (options) {
    if (options === void 0) { options = {}; }
    var prefix = options.prefix, withoutDefaultValue = options.withoutDefaultValue;
    var cssRule = getScopedVar({
        name: cssVars.foregroundColor,
        prefix: prefix,
    });
    var validateColor = createColorValidator({
        propertyName: 'foregroundColor',
        cssProperty: 'rgbaColor',
        supportAlpha: true,
    });
    var _foregroundColorPropsSDKFactory = function (_a) {
        var _b;
        var setStyles = _a.setStyles, sdkData = _a.sdkData, createSdkState = _a.createSdkState;
        var _c = createSdkState({
            foregroundColor: withoutDefaultValue
                ? undefined
                : (_b = sdkData === null || sdkData === void 0 ? void 0 : sdkData.initialSdkStyles) === null || _b === void 0 ? void 0 : _b.foregroundColor,
        }, 'foregroundColor'), state = _c[0], setState = _c[1];
        return {
            set foregroundColor(foregroundColor) {
                var _a;
                setState({ foregroundColor: foregroundColor });
                setStyles((_a = {}, _a[cssRule] = foregroundColor, _a));
            },
            get foregroundColor() {
                return state.foregroundColor;
            },
        };
    };
    return Object(withValidation["b" /* withValidation */])(_foregroundColorPropsSDKFactory, {
        type: ['object'],
        properties: {
            foregroundColor: {
                type: ['string', 'nil'],
            },
        },
    }, {
        foregroundColor: [validateColor],
    });
};
//# sourceMappingURL=foregroundcolorPropsSDKFactory.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/borderRadiusPropsSDKFactory.js




var createBorderRadiusPropsSDKFactory = function (options) {
    if (options === void 0) { options = {}; }
    var prefix = options.prefix, withoutDefaultValue = options.withoutDefaultValue;
    var cssRule = getScopedVar({
        name: cssVars.borderRadius,
        prefix: prefix,
    });
    var validatePixel = createPixelValidator({
        propertyName: 'borderRadius',
        cssProperty: 'radius',
    });
    var _borderRadiusPropsSDKFactory = function (_a) {
        var _b;
        var setStyles = _a.setStyles, sdkData = _a.sdkData, createSdkState = _a.createSdkState;
        var editorInitialRadius = (_b = sdkData === null || sdkData === void 0 ? void 0 : sdkData.initialSdkStyles) === null || _b === void 0 ? void 0 : _b.borderRadius;
        var _c = createSdkState({
            borderRadius: withoutDefaultValue ? undefined : editorInitialRadius,
        }, 'borderRadius'), state = _c[0], setState = _c[1];
        return {
            set borderRadius(borderRadius) {
                var _a;
                setState({ borderRadius: borderRadius });
                setStyles((_a = {}, _a[cssRule] = borderRadius, _a));
            },
            get borderRadius() {
                return state.borderRadius;
            },
        };
    };
    return Object(withValidation["b" /* withValidation */])(_borderRadiusPropsSDKFactory, {
        type: ['object'],
        properties: {
            borderRadius: {
                type: ['string', 'nil'],
            },
        },
    }, {
        borderRadius: [validatePixel],
    });
};
//# sourceMappingURL=borderRadiusPropsSDKFactory.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/styleSDKFactories/textColorPropsSDKFactory.js




var createTextColorPropsSDKFactory = function (options) {
    if (options === void 0) { options = {}; }
    var prefix = options.prefix, withoutDefaultValue = options.withoutDefaultValue;
    var cssRule = getScopedVar({
        name: cssVars.textColor,
        prefix: prefix,
    });
    var validateColor = createColorValidator({
        propertyName: 'color',
        cssProperty: 'rgbColor',
        supportAlpha: false,
    });
    var _textColorPropsSDKFactory = function (_a) {
        var _b;
        var setStyles = _a.setStyles, sdkData = _a.sdkData, createSdkState = _a.createSdkState;
        var editorInitialColor = (_b = sdkData === null || sdkData === void 0 ? void 0 : sdkData.initialSdkStyles) === null || _b === void 0 ? void 0 : _b.color;
        var _c = createSdkState({
            textColor: withoutDefaultValue ? undefined : editorInitialColor,
        }, 'textColor'), state = _c[0], setState = _c[1];
        return {
            set color(value) {
                var _a;
                var textColor = value;
                // RGBA values are casted to RGB by default
                if (isHexaColor(value) || isRGBAColor(value)) {
                    var _b = convertColorToRGBAUnits(value), r = _b[0], g = _b[1], b = _b[2];
                    textColor = "rgb(" + r + ", " + g + ", " + b + ")";
                }
                setState({ textColor: textColor });
                setStyles((_a = {}, _a[cssRule] = textColor, _a));
            },
            get color() {
                return state.textColor;
            },
        };
    };
    return Object(withValidation["b" /* withValidation */])(_textColorPropsSDKFactory, {
        type: ['object'],
        properties: {
            color: {
                type: ['string', 'nil'],
            },
        },
    }, {
        color: [validateColor],
    });
};
//# sourceMappingURL=textColorPropsSDKFactory.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js



var _stylePropsSDKFactory = function (supportedSDKFactories) { return function (api) {
    var styleSDKs = supportedSDKFactories(api);
    return {
        get style() {
            return styleSDKs;
        },
    };
}; };
var styleFactories = {
    BackgroundColor: createBackgroundColorPropsSDKFactory,
    BorderColor: createBorderColorPropsSDKFactory,
    BorderWidth: createBorderWidthPropsSDKFactory,
    ForegroundColor: createForegroundColorPropsSDKFactory,
    BorderRadius: createBorderRadiusPropsSDKFactory,
    TextColor: createTextColorPropsSDKFactory,
};
var styleFactoriesDefaultOptions = {
    BackgroundColor: {
        supportOpacity: true,
    },
    BorderColor: {
        supportOpacity: true,
    },
    BorderWidth: {},
    ForegroundColor: {
        supportOpacity: true,
    },
    BorderRadius: {},
    TextColor: {},
};
var createStylePropsSDKFactory = function (list, styleSDKOptions) {
    var supported = Object.keys(list).filter(function (value) { return list[value]; });
    var supportedSDKFactories = supported.map(function (value) {
        var stylePropertyOptions = typeof list[value] !== 'boolean'
            ? list[value]
            : styleFactoriesDefaultOptions[value];
        return styleFactories[value]({
            prefix: styleSDKOptions === null || styleSDKOptions === void 0 ? void 0 : styleSDKOptions.cssVarPrefix,
            withoutDefaultValue: stylePropertyOptions.withoutDefaultValue,
            supportOpacity: stylePropertyOptions.supportOpacity,
        });
    });
    return Object(withValidation["b" /* withValidation */])(_stylePropsSDKFactory(composeSDKFactories["a" /* composeSDKFactories */].apply(void 0, supportedSDKFactories)), {
        type: ['object'],
        properties: {
            style: {
                type: ['object'],
            },
        },
    });
};
//# sourceMappingURL=stylePropsSDKFactory.js.map

/***/ }),
/* 38 */,
/* 39 */,
/* 40 */,
/* 41 */
/*!*****************************************************!*\
  !*** ./core/corvid/Menu/Menu.corvid.ts + 1 modules ***!
  \*****************************************************/
/*! exports provided: sdk */
/*! exports used: sdk */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/inputSanitization.ts because of ./components/CheckboxGroup/corvid/CheckboxGroup.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules
var messages = __webpack_require__(12);

// EXTERNAL MODULE: ./core/corvid/inputUtils/inputSanitization.ts
var inputSanitization = __webpack_require__(19);

// CONCATENATED MODULE: ./core/corvid/Menu/menuItemsPropsSDKFactory.ts



var valueSanitizer = Object(inputSanitization["a" /* composeSanitizers */])([
    inputSanitization["e" /* numberToString */],
    inputSanitization["b" /* emptyStringIfNotString */],
]);
var externalRegex = /^(http|https):\/\/(.*)/;
var pageUrlRegex = /^\/([^ ?#]*)[?]?(.*)/;
var isExternalPage = function (url) { return externalRegex.test(url); };
var isPageUrl = function (url) { return pageUrlRegex.test(url); };
var _menuPropsSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, linkUtils = _a.linkUtils, sdkData = _a.sdkData;
    var getPageTitleFromUrl = function (url, pageList) {
        var key = url.slice(1);
        if (pageList.hasOwnProperty(key)) {
            return pageList[key].title;
        }
        else {
            return '';
        }
    };
    var removeInvalidLevels = function (items) {
        if (!assert["a" /* assert */].isNil(items)) {
            items.forEach(function (topItem) {
                if (!assert["a" /* assert */].isNil(topItem.items)) {
                    topItem.items.forEach(function (subItem) { return (subItem.items = []); });
                }
            });
        }
    };
    var convertSdkDataItemsToModelFormat = function (items) {
        if (assert["a" /* assert */].isNil(items)) {
            return items;
        }
        return items.map(function (menuItem) {
            return convertSdkDataItemToModelFormat(menuItem);
        });
    };
    var convertSdkDataItemToModelFormat = function (menuItem) {
        var menuItemModelFormat = {
            label: '',
            link: undefined,
        };
        var target = isExternalPage(menuItem.link) ? '_blank' : '_self';
        var link = linkUtils.getLinkProps(menuItem.link, target);
        if (link) {
            menuItemModelFormat.link = link;
        }
        if (menuItem.label) {
            menuItemModelFormat.label = menuItem.label;
        }
        else if (menuItem.link && isPageUrl(menuItem.link)) {
            menuItemModelFormat.label = getPageTitleFromUrl(menuItem.link, sdkData.pageList);
        }
        else {
            Object(reporters["b" /* reportWarning */])('The label parameter that is passed to the set items method cannot be set to null or undefined.');
        }
        if (assert["a" /* assert */].isBoolean(menuItem.visibleOnDesktop)) {
            menuItemModelFormat.isVisible = menuItem.visibleOnDesktop;
        }
        if (assert["a" /* assert */].isBoolean(menuItem.visibleOnMobile)) {
            menuItemModelFormat.isVisibleMobile = menuItem.visibleOnMobile;
        }
        if (assert["a" /* assert */].isArray(menuItem.items)) {
            if (menuItem.items.length) {
                menuItemModelFormat.items = convertSdkDataItemsToModelFormat(menuItem.items);
            }
            else {
                menuItemModelFormat.items = [];
            }
        }
        if (assert["a" /* assert */].isNumber(menuItem.displayCount)) {
            menuItemModelFormat.displayCount = menuItem.displayCount;
        }
        var menuItemDefaults = {
            isVisible: true,
            isVisibleMobile: true,
            items: [],
        };
        return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, menuItemDefaults), menuItemModelFormat);
    };
    var convertSdkOptionsToModelFormat = function (options) {
        if (assert["a" /* assert */].isNil(options)) {
            return options;
        }
        return options.map(function (option) { return convertSdkOptionToModelFormat(option); });
    };
    var convertSdkOptionToModelFormat = function (option) {
        var menuItemModelFormat = {
            text: '',
            link: undefined,
            key: '',
            value: '',
        };
        var target = isExternalPage(option.link) ? '_blank' : '_self';
        var link = linkUtils.getLinkProps(option.link, target);
        if (link) {
            menuItemModelFormat.link = link;
        }
        if (option.label) {
            menuItemModelFormat.text = option.label;
        }
        if (option.value) {
            menuItemModelFormat.value = option.value;
            menuItemModelFormat.key = option.value;
        }
        else {
            Object(reporters["b" /* reportWarning */])('The value parameter that is passed to the set options method cannot be set to null or undefined.');
        }
        return menuItemModelFormat;
    };
    var convertModelDataItemsToSdkFormat = function (items) {
        return assert["a" /* assert */].isNil(items)
            ? items
            : items.map(function (modelItem) { return convertModelDataItemToSdkFormat(modelItem); });
    };
    var convertModelDataItemToSdkFormat = function (item) {
        var link = item.link ? linkUtils.getLink(item.link) : '';
        var items = item.items
            ? convertModelDataItemsToSdkFormat(item.items)
            : [];
        var visibleOnDesktop = assert["a" /* assert */].isNil(item.isVisible)
            ? true
            : item.isVisible;
        var visibleOnMobile = assert["a" /* assert */].isNil(item.isVisibleMobile)
            ? true
            : item.isVisibleMobile;
        var label = item.label, displayCount = item.displayCount;
        return {
            label: label,
            displayCount: displayCount,
            items: items,
            link: link,
            visibleOnDesktop: visibleOnDesktop,
            visibleOnMobile: visibleOnMobile,
        };
    };
    var convertModelOptionsToSdkFormat = function (options) {
        return assert["a" /* assert */].isNil(options)
            ? options
            : options.map(function (option) { return convertModelOptionToSdkFormat(option); });
    };
    var convertModelOptionToSdkFormat = function (option) {
        var link = option.link ? linkUtils.getLink(option.link) : '';
        var text = option.text, value = option.value;
        return {
            label: text,
            value: value,
            link: link,
        };
    };
    return {
        get items() {
            return convertModelDataItemsToSdkFormat(props.items);
        },
        set items(value) {
            try {
                removeInvalidLevels(value);
                setProps({
                    items: convertSdkDataItemsToModelFormat(value),
                });
            }
            catch (e) {
                if (!assert["a" /* assert */].isNil(e.name) && e.name === 'UnsupportedLinkTypeError') {
                    Object(reporters["a" /* reportError */])("A link property that is passed to the link method cannot be set to that value, as this is not a supported link type.");
                }
            }
        },
        get options() {
            return convertModelOptionsToSdkFormat(props.options);
        },
        set options(value) {
            try {
                setProps({
                    options: convertSdkOptionsToModelFormat(value),
                });
            }
            catch (e) {
                if (!assert["a" /* assert */].isNil(e.name) && e.name === 'UnsupportedLinkTypeError') {
                    Object(reporters["a" /* reportError */])("A link property that is passed to the link method cannot be set to that value, as this is not a supported link type.");
                }
            }
        },
        get type() {
            return '$w.Menu';
        },
        get value() {
            var value = '';
            if (props.options) {
                var isCurrentValueInOptions = props.options.some(function (option) { return option.value === props.value; });
                if (isCurrentValueInOptions) {
                    value = props.value;
                }
            }
            return value;
        },
        set value(value) {
            var sanitizedValue = valueSanitizer(value);
            if (props.options) {
                var isValueInOptions = props.options.some(function (option) { return option.value === sanitizedValue; });
                setProps({ value: isValueInOptions ? sanitizedValue : '' });
            }
        },
        get autoNavigation() {
            return props.autoNavigation;
        },
    };
};
var menuPropsSDKFactory = Object(withValidation["b" /* withValidation */])(_menuPropsSDKFactory, {
    type: ['object'],
    properties: {
        items: {
            type: ['array', 'nil'],
            warnIfNil: true,
        },
        options: {
            type: ['array', 'nil'],
            warnIfNil: true,
            items: {
                type: ['object'],
                properties: {
                    value: {
                        type: ['string', 'nil'],
                        minLength: 0,
                        maxLength: 400,
                    },
                    label: {
                        type: ['string', 'nil'],
                        minLength: 0,
                        maxLength: 400,
                    },
                },
            },
        },
    },
}, {
    items: [
        function (value) {
            var isValid = typeof value === 'undefined' || assert["a" /* assert */].isArray(value);
            if (!isValid) {
                Object(reporters["a" /* reportError */])(messages["a" /* messages */].invalidTypeMessage({
                    value: value,
                    types: ['array', 'undefined'],
                    propertyName: 'items',
                    functionName: 'set items',
                    index: undefined,
                }));
            }
            return isValid;
        },
    ],
    options: [
        function (value) {
            var isValid = typeof value === 'undefined' || assert["a" /* assert */].isArray(value);
            if (!isValid) {
                Object(reporters["a" /* reportError */])(messages["a" /* messages */].invalidTypeMessage({
                    value: value,
                    types: ['array', 'undefined'],
                    propertyName: 'options',
                    functionName: 'set options',
                    index: undefined,
                }));
            }
            return isValid;
        },
    ],
    value: [
        function (value) {
            var sanitizedValue = valueSanitizer(value);
            var isValid = typeof value === 'undefined' || assert["a" /* assert */].isString(sanitizedValue);
            if (!isValid) {
                Object(reporters["a" /* reportError */])(messages["a" /* messages */].invalidTypeMessage({
                    value: value,
                    types: ['string', 'undefined'],
                    propertyName: 'value',
                    functionName: 'set value',
                    index: undefined,
                }));
            }
            return isValid;
        },
    ],
});

// CONCATENATED MODULE: ./core/corvid/Menu/Menu.corvid.ts



var Menu_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(Menu_corvid_elementPropsSDKFactory, changePropsSDKFactory["a" /* changePropsSDKFactory */], menuPropsSDKFactory);


/***/ }),
/* 42 */
/*!************************************************************!*\
  !*** ./components/TPAGallery/corvid/TPAGallerySDKUtils.ts ***!
  \************************************************************/
/*! exports provided: convertImagesToUserModel */
/*! exports used: convertImagesToUserModel */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return convertImagesToUserModel; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../core/corvid/media/mediaSrcHandler */ 21);


function convertImagesToUserModel(images, linkUtils) {
    return images.map(function (image) {
        var type = image.type, title = image.title, width = image.width, height = image.height, uri = image.uri, alt = image.alt, description = image.description, link = image.link, src = image.src, internalLink = image.internalLink;
        var mediaSrc = uri || src
            ? Object(_core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_1__[/* createMediaSrc */ "a"])({
                mediaId: uri || src,
                type: type.toLowerCase(),
                title: title,
                width: width,
                height: height,
            })
            : { item: '' };
        var resolvedLink;
        if (link) {
            var isLinkDataItem = !!link.id;
            var isAnchorLink = link.type === 'AnchorLink';
            if (isAnchorLink) {
                var isScrollTopOrBottom = [
                    'SCROLL_TO_TOP',
                    'SCROLL_TO_BOTTOM',
                ].includes(link.anchorDataId);
                if (isScrollTopOrBottom) {
                    resolvedLink =
                        link.anchorDataId === 'SCROLL_TO_TOP' ? '#top' : '#bottom';
                }
                else {
                    var anchorDataId = link.anchorDataId.name
                        ? "#" + link.anchorDataId.name.toLowerCase().replace(' ', '')
                        : "#" + link.anchorDataId;
                    var linkData = {
                        type: 'AnchorLink',
                        pageId: link.pageId.id,
                        anchorDataId: anchorDataId,
                    };
                    resolvedLink = linkUtils.getLinkUrlFromDataItem(linkData);
                }
            }
            else if (isLinkDataItem) {
                // link is non anchor LinkDataItem object
                resolvedLink = linkUtils.getLinkUrlFromDataItem(link);
            }
            else {
                // link is a LinkProps object
                resolvedLink = link.href;
            }
            if (internalLink) {
                resolvedLink = internalLink === '/' ? '/home' : internalLink;
            }
        }
        return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ type: type.charAt(0).toUpperCase() + type.slice(1).toLowerCase() }, (description && { description: description })), { alt: alt || '' }), (title && { title: title })), (height && { height: height })), (width && { width: width })), (link && {
            link: resolvedLink,
        })), (link && link.target && { target: link.target })), { src: mediaSrc.item || mediaSrc.error || '' });
    });
}


/***/ }),
/* 43 */
/*!***********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/viewportPropsSDKFactory.js ***!
  \***********************************************************************************************************************************/
/*! exports provided: createViewportPropsSDKFactory */
/*! exports used: createViewportPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createViewportPropsSDKFactory; });
/* harmony import */ var _corvidEvents__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../corvidEvents */ 13);
/* harmony import */ var _validations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../validations */ 11);


var createViewportPropsSDKFactory = function (registerCallback) {
    return function (api) {
        var metaData = api.metaData, getSdkInstance = api.getSdkInstance, create$w = api.create$w, createEvent = api.createEvent;
        var functionValidator = function (value, setterName) {
            return Object(_validations__WEBPACK_IMPORTED_MODULE_1__[/* createCompSchemaValidator */ "a"])(metaData.role)(value, {
                type: ['function'],
            }, setterName);
        };
        return {
            onViewportEnter: function (cb) {
                if (!functionValidator(cb, 'onViewportEnter')) {
                    return getSdkInstance();
                }
                registerCallback === null || registerCallback === void 0 ? void 0 : registerCallback('onViewportEnter', function () {
                    var corvidEvent = createEvent({ type: 'viewportEnter' });
                    var $w = create$w();
                    cb(corvidEvent, $w);
                });
                return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidEvent */ "a"])('onViewportEnter', api, cb);
            },
            onViewportLeave: function (cb) {
                if (!functionValidator(cb, 'onViewportLeave')) {
                    return getSdkInstance();
                }
                registerCallback === null || registerCallback === void 0 ? void 0 : registerCallback('onViewportLeave', function () {
                    var corvidEvent = createEvent({ type: 'viewportLeave' });
                    var $w = create$w();
                    cb(corvidEvent, $w);
                });
                return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidEvent */ "a"])('onViewportLeave', api, cb);
            },
        };
    };
};
//# sourceMappingURL=viewportPropsSDKFactory.js.map

/***/ }),
/* 44 */
/*!*****************************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/createSchemaValidator.js + 9 modules ***!
  \*****************************************************************************************************************************************/
/*! exports provided: ValidationResult, createSchemaValidator */
/*! exports used: ValidationResult, createSchemaValidator */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ ValidationResult; });
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ createSchemaValidator; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules
var messages = __webpack_require__(12);

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/object.js
var __assign = (undefined && undefined.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};



var object_hasOwnProperty = Object.prototype.hasOwnProperty;
var getOwnPropertyNames = Object.getOwnPropertyNames;
function validateObject(value, schema, validateSchema, reportError, reportWarning, messageParams) {
    if (!assert["a" /* assert */].isObject(value)) {
        return ValidationResult.InvalidType;
    }
    if (schema.required) {
        // eslint-disable-next-line @typescript-eslint/prefer-for-of
        for (var propNameIdx = 0; propNameIdx < schema.required.length; propNameIdx++) {
            if (!object_hasOwnProperty.call(value, schema.required[propNameIdx])) {
                reportError(messages["a" /* messages */].missingFieldMessage({
                    functionName: messageParams.functionName,
                    index: messageParams.index,
                    propertyName: schema.required[propNameIdx],
                }), __assign(__assign({}, messageParams), { value: value }));
                return ValidationResult.Invalid;
            }
        }
    }
    if (schema.properties) {
        var propNames = getOwnPropertyNames(schema.properties);
        // eslint-disable-next-line @typescript-eslint/prefer-for-of
        for (var propNameIdx = 0; propNameIdx < propNames.length; propNameIdx++) {
            var propName = propNames[propNameIdx];
            if (object_hasOwnProperty.call(value, propName)) {
                var propSchema = schema.properties[propName];
                var propValue = value[propName]; // hmmm...
                if (!validateSchema(propValue, propSchema, {
                    functionName: messageParams.functionName,
                    index: messageParams.index,
                    propertyName: propName,
                })) {
                    return ValidationResult.Invalid;
                }
            }
        }
    }
    return ValidationResult.Valid;
}
//# sourceMappingURL=object.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/array.js


function isTupleSchema(schema) {
    return Array.isArray(schema);
}
function validateArray(value, schema, validateSchema, reportError, messageParams, suppressIndexError) {
    if (suppressIndexError === void 0) { suppressIndexError = false; }
    if (!assert["a" /* assert */].isArray(value)) {
        return ValidationResult.InvalidType;
    }
    var isValid = ValidationResult.Valid;
    if (schema.items) {
        var itemsToValidateCount = isTupleSchema(schema.items)
            ? Math.min(value.length, schema.items.length)
            : value.length;
        // eslint-disable-next-line @typescript-eslint/prefer-for-of
        for (var itemIndex = 0; itemIndex < itemsToValidateCount; itemIndex++) {
            var item = value[itemIndex];
            var itemSchema = void 0;
            var propName = void 0;
            if (isTupleSchema(schema.items)) {
                itemSchema = schema.items[itemIndex];
                propName = schema.items[itemIndex].name;
            }
            else {
                itemSchema = schema.items;
                propName = schema.name;
            }
            var isItemValid = validateSchema(item, itemSchema, {
                functionName: messageParams.functionName,
                propertyName: propName || messageParams.propertyName,
                index: !suppressIndexError ? itemIndex : undefined,
            });
            if (!isItemValid) {
                isValid = ValidationResult.Invalid;
            }
        }
    }
    return isValid;
}
//# sourceMappingURL=array.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/number.js
var number_assign = (undefined && undefined.__assign) || function () {
    number_assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return number_assign.apply(this, arguments);
};



function validateNumber(value, schema, reportError, messageParams) {
    var minimum = schema.minimum, maximum = schema.maximum, enumArray = schema.enum;
    if (!assert["a" /* assert */].isNumber(value)) {
        return ValidationResult.InvalidType;
    }
    if (enumArray && !assert["a" /* assert */].isIn(value, enumArray)) {
        reportError(messages["a" /* messages */].invalidEnumValueMessage(number_assign({ value: value, enum: enumArray }, messageParams)), number_assign(number_assign({}, messageParams), { value: value }));
        return ValidationResult.Invalid;
    }
    if ((assert["a" /* assert */].isNumber(minimum) && assert["a" /* assert */].isBelow(value, minimum)) ||
        (assert["a" /* assert */].isNumber(maximum) && assert["a" /* assert */].isAbove(value, maximum))) {
        reportError(messages["a" /* messages */].invalidNumberBoundsMessage(number_assign({ value: value, minimum: minimum, // either minimum or maximum are numbers here
            maximum: maximum }, messageParams)), number_assign(number_assign({}, messageParams), { value: value }));
        return ValidationResult.Invalid;
    }
    return ValidationResult.Valid;
}
//# sourceMappingURL=number.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/integer.js
var integer_assign = (undefined && undefined.__assign) || function () {
    integer_assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return integer_assign.apply(this, arguments);
};



function validateInteger(value, schema, reportError, messageParams) {
    var minimum = schema.minimum, maximum = schema.maximum, enumArray = schema.enum;
    if (!assert["a" /* assert */].isInteger(value)) {
        return ValidationResult.InvalidType;
    }
    if (enumArray && !assert["a" /* assert */].isIn(value, enumArray)) {
        reportError(messages["a" /* messages */].invalidEnumValueMessage(integer_assign({ value: value, enum: enumArray }, messageParams)), integer_assign(integer_assign({}, messageParams), { value: value }));
        return ValidationResult.Invalid;
    }
    if ((assert["a" /* assert */].isNumber(minimum) && assert["a" /* assert */].isBelow(value, minimum)) ||
        (assert["a" /* assert */].isNumber(maximum) && assert["a" /* assert */].isAbove(value, maximum))) {
        reportError(messages["a" /* messages */].invalidNumberBoundsMessage(integer_assign({ value: value, minimum: minimum, // minimum / maximum has to be of number type
            maximum: maximum }, messageParams)), integer_assign(integer_assign({}, messageParams), { value: value }));
        return ValidationResult.Invalid;
    }
    return ValidationResult.Valid;
}
//# sourceMappingURL=integer.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/string.js
var string_assign = (undefined && undefined.__assign) || function () {
    string_assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return string_assign.apply(this, arguments);
};



function validateString(value, schema, reportError, messageParams) {
    var minLength = schema.minLength, maxLength = schema.maxLength, enumArray = schema.enum, pattern = schema.pattern;
    if (!assert["a" /* assert */].isString(value)) {
        return ValidationResult.InvalidType;
    }
    if (enumArray && !assert["a" /* assert */].isIn(value, enumArray)) {
        reportError(messages["a" /* messages */].invalidEnumValueMessage(string_assign({ value: value, enum: enumArray }, messageParams)), string_assign(string_assign({}, messageParams), { value: value }));
        return ValidationResult.Invalid;
    }
    if ((minLength && assert["a" /* assert */].isBelow(value.length, minLength)) ||
        (maxLength && assert["a" /* assert */].isAbove(value.length, maxLength))) {
        reportError(messages["a" /* messages */].invalidStringLengthMessage(string_assign({ value: value, minimum: minLength, maximum: maxLength }, messageParams)), string_assign(string_assign({}, messageParams), { value: value }));
        return ValidationResult.Invalid;
    }
    if (pattern && !new RegExp(pattern).test(value)) {
        reportError(messages["a" /* messages */].patternMismatchMessage(string_assign({ value: value }, messageParams)), string_assign(string_assign({}, messageParams), { value: value }));
        return ValidationResult.Invalid;
    }
    return ValidationResult.Valid;
}
//# sourceMappingURL=string.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/boolean.js


function validateBoolean(value) {
    if (!assert["a" /* assert */].isBoolean(value)) {
        return ValidationResult.InvalidType;
    }
    return ValidationResult.Valid;
}
//# sourceMappingURL=boolean.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/date.js


function validateDate(value) {
    if (!assert["a" /* assert */].isDate(value)) {
        return ValidationResult.InvalidType;
    }
    return ValidationResult.Valid;
}
//# sourceMappingURL=date.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/nil.js


function validateNil(value) {
    if (!assert["a" /* assert */].isNil(value)) {
        return ValidationResult.InvalidType;
    }
    return ValidationResult.Valid;
}
//# sourceMappingURL=nil.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/schemaValidators/function.js


function validateFunction(value) {
    if (!assert["a" /* assert */].isFunction(value)) {
        return ValidationResult.InvalidType;
    }
    return ValidationResult.Valid;
}
//# sourceMappingURL=function.js.map
// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/createSchemaValidator.js
var createSchemaValidator_assign = (undefined && undefined.__assign) || function () {
    createSchemaValidator_assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return createSchemaValidator_assign.apply(this, arguments);
};



var ValidationResult = {
    Valid: 'valid',
    Invalid: 'invalid',
    InvalidType: 'invalid-type',
};
function createSchemaValidator(_a, compName, _b) {
    var reportError = _a.reportError, reportWarning = _a.reportWarning;
    var _c = (_b === void 0 ? {} : _b).suppressIndexErrors, suppressIndexErrors = _c === void 0 ? false : _c;
    function validate(value, schema, setterName) {
        return validateSchema(value, schema, {
            functionName: setterName,
            propertyName: setterName,
            /**
             * This intentional? In such a case all errors related to "index"
             * will never be fired
             */
            index: undefined,
        });
    }
    function validateSchema(value, schema, params) {
        if (schema.warnIfNil && assert["a" /* assert */].isNil(value)) {
            reportWarning(messages["a" /* messages */].nilAssignmentMessage(createSchemaValidator_assign(createSchemaValidator_assign({}, params), { compName: compName })), createSchemaValidator_assign(createSchemaValidator_assign({}, params), { value: value }));
        }
        var typeIdx = 0;
        for (; typeIdx < schema.type.length; typeIdx++) {
            var validateSchemaForType = validatorsMap[schema.type[typeIdx]];
            var validationResult = validateSchemaForType(value, schema, params);
            if (validationResult !== ValidationResult.InvalidType) {
                return validationResult === ValidationResult.Valid;
            }
        }
        if (typeIdx === schema.type.length) {
            reportError(messages["a" /* messages */].invalidTypeMessage(createSchemaValidator_assign({ value: value, types: schema.type }, params)), createSchemaValidator_assign(createSchemaValidator_assign({}, params), { value: value }));
        }
        return false;
    }
    var validatorsMap = {
        object: function (value, schema, messageParams) {
            return validateObject(value, schema, validateSchema, reportError, reportWarning, messageParams);
        },
        array: function (value, schema, messageParams) {
            return validateArray(value, schema, validateSchema, reportError, messageParams, suppressIndexErrors);
        },
        number: function (value, schema, messageParams) {
            return validateNumber(value, schema, reportError, messageParams);
        },
        integer: function (value, schema, messageParams) {
            return validateInteger(value, schema, reportError, messageParams);
        },
        string: function (value, schema, messageParams) {
            return validateString(value, schema, reportError, messageParams);
        },
        boolean: function (value) {
            return validateBoolean(value);
        },
        date: function (value) {
            return validateDate(value);
        },
        nil: function (value) {
            return validateNil(value);
        },
        function: function (value) {
            return validateFunction(value);
        },
    };
    return validate;
}
//# sourceMappingURL=createSchemaValidator.js.map

/***/ }),
/* 45 */
/*!****************************************************************!*\
  !*** ./core/corvid/props-factories/requiredPropsSDKFactory.ts ***!
  \****************************************************************/
/*! exports provided: createRequiredPropsSDKFactory */
/*! exports used: createRequiredPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createRequiredPropsSDKFactory; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);

var _requiredPropsSDKFactory = function (inputValidator) { return function (api) { return ({
    get required() {
        return api.props.required || false;
    },
    set required(value) {
        api.setProps({ required: value });
        inputValidator.validate({
            viewerSdkAPI: api,
            showValidityIndication: true,
        });
    },
}); }; };
var createRequiredPropsSDKFactory = function (inputValidator) {
    return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_requiredPropsSDKFactory(inputValidator), {
        type: ['object'],
        properties: {
            required: {
                type: ['boolean'],
            },
        },
    });
};


/***/ }),
/* 46 */
/*!******************************************************************!*\
  !*** ./core/corvid/props-factories/validationPropsSDKFactory.ts ***!
  \******************************************************************/
/*! exports provided: createValidationPropsSDKFactory */
/*! exports used: createValidationPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createValidationPropsSDKFactory; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _inputUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../inputUtils */ 31);
/* harmony import */ var _inputUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../inputUtils */ 9);



var createValidationPropsSDKFactory = function (inputValidator) {
    inputValidator.onValidate(function (_a) {
        var viewerSdkAPI = _a.viewerSdkAPI, validationDataResult = _a.validationDataResult, showValidityIndication = _a.showValidityIndication;
        var setProps = viewerSdkAPI.setProps, compRef = viewerSdkAPI.compRef;
        var prevValidationData = Object(_inputUtils__WEBPACK_IMPORTED_MODULE_2__[/* getValidationData */ "b"])(viewerSdkAPI);
        var prevCustomValidityMessage = Object(_inputUtils__WEBPACK_IMPORTED_MODULE_3__[/* getCustomValidityMessage */ "g"])(prevValidationData);
        var customValidityMessage = Object(_inputUtils__WEBPACK_IMPORTED_MODULE_3__[/* getCustomValidityMessage */ "g"])(validationDataResult);
        var prevHtmlValidationMessageOverrideKey = prevValidationData.htmlValidationMessageOverride.key;
        var htmlValidationMessageOverrideKey = validationDataResult.htmlValidationMessageOverride.key;
        if (validationDataResult.validity.customError) {
            if (prevCustomValidityMessage !== customValidityMessage) {
                compRef.setCustomValidity({
                    type: 'message',
                    message: customValidityMessage,
                });
            }
        }
        else if (htmlValidationMessageOverrideKey) {
            if (prevValidationData.validity.customError ||
                prevHtmlValidationMessageOverrideKey !==
                    htmlValidationMessageOverrideKey) {
                compRef.setCustomValidity({
                    type: 'key',
                    key: htmlValidationMessageOverrideKey,
                });
            }
        }
        else if (prevCustomValidityMessage !== customValidityMessage ||
            prevHtmlValidationMessageOverrideKey !==
                htmlValidationMessageOverrideKey) {
            compRef.setCustomValidity({
                type: 'message',
                message: '',
            });
        }
        var compProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ isValid: validationDataResult.validity.valid }, (showValidityIndication && { shouldShowValidityIndication: true }));
        Object(_inputUtils__WEBPACK_IMPORTED_MODULE_2__[/* setValidationData */ "d"])(viewerSdkAPI, validationDataResult);
        setProps(compProps);
    });
    var _validationPropsSDKFactory = function (api) {
        var setProps = api.setProps, props = api.props, registerEvent = api.registerEvent;
        registerEvent('validateValue', function () {
            inputValidator.validate({ viewerSdkAPI: api });
        });
        // We get props override because sometimes props are not updated the way we expect them to be.
        // For example - Checkbox's onChange from the controller updatesProps with the latest checked value. We expect to have these updated props here in validateValueAndShowIndication
        // That is called right after onChange, but in Safari that is not the case. For now we are passing props overrides.
        // Ticket - https://jira.wixpress.com/browse/PLAT-934. PR to revert after the fix (Don't revert the onChange radioGroup changes!) - https://github.com/wix-private/editor-elements/pull/2584
        registerEvent('validateValueAndShowIndication', function (propsOverrides) {
            var updatedProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props), propsOverrides);
            var viewerSdkAPI = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, api), { props: updatedProps });
            inputValidator.validate({
                viewerSdkAPI: viewerSdkAPI,
                showValidityIndication: true,
            });
        });
        registerEvent('hideValidityIndication', function () {
            setProps({ shouldShowValidityIndication: false });
        });
        inputValidator.validate({
            viewerSdkAPI: api,
            showValidityIndication: false,
        });
        return {
            get valid() {
                return Object(_inputUtils__WEBPACK_IMPORTED_MODULE_2__[/* getValidationData */ "b"])(api).validity.valid;
            },
            get validationMessage() {
                return Object(_inputUtils__WEBPACK_IMPORTED_MODULE_2__[/* getValidationData */ "b"])(api).validationMessage;
            },
            get validity() {
                return Object(_inputUtils__WEBPACK_IMPORTED_MODULE_2__[/* getValidationData */ "b"])(api).validity;
            },
            onCustomValidation: function (validator) {
                Object(_inputUtils__WEBPACK_IMPORTED_MODULE_2__[/* setCustomValidator */ "c"])(api, validator);
                inputValidator.validate({
                    viewerSdkAPI: api,
                });
            },
            updateValidityIndication: function () {
                setProps({ shouldShowValidityIndication: true });
            },
            resetValidityIndication: function () {
                setProps({ shouldShowValidityIndication: false });
            },
        };
    };
    return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_validationPropsSDKFactory, {
        type: ['object'],
        properties: {
            onCustomValidation: {
                type: ['function'],
                args: [{ type: ['function'] }],
            },
        },
    });
};


/***/ }),
/* 47 */
/*!*************************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/backgroundPropsSDKFactory.js ***!
  \*************************************************************************************************************************************/
/*! exports provided: backgroundPropsSDKFactory */
/*! exports used: backgroundPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return backgroundPropsSDKFactory; });
/* harmony import */ var _reporters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../reporters */ 14);
/* harmony import */ var _validations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../validations */ 11);
/* harmony import */ var _media__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../media */ 24);
/* harmony import */ var _media__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../media */ 21);
/* harmony import */ var _media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../media/mediaItemUtils */ 5);
var __assign = (undefined && undefined.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};




var _backgroundPropsSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, metaData = _a.metaData, compRef = _a.compRef;
    var isVideo = Object(_media__WEBPACK_IMPORTED_MODULE_2__[/* hasVideo */ "f"])(props);
    return {
        get background() {
            return {
                get src() {
                    var _a, _b;
                    var _c = props.fillLayers, fillLayers = _c === void 0 ? {} : _c;
                    if ((_b = (_a = fillLayers === null || fillLayers === void 0 ? void 0 : fillLayers.video) === null || _a === void 0 ? void 0 : _a.videoInfo) === null || _b === void 0 ? void 0 : _b.videoId) {
                        var videoInfo = fillLayers.video.videoInfo;
                        var mediaItemUri = Object(_media__WEBPACK_IMPORTED_MODULE_3__[/* createMediaSrc */ "a"])({
                            mediaId: videoInfo.videoId,
                            type: _media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_4__[/* types */ "b"].VIDEO,
                            title: fillLayers.video.posterImageInfo.title,
                            width: videoInfo.videoWidth,
                            height: videoInfo.videoHeight,
                            posterId: fillLayers.video.posterImageInfo.uri,
                        });
                        if (mediaItemUri.error) {
                            return '';
                        }
                        return mediaItemUri.item || '';
                    }
                    if (fillLayers && fillLayers.image) {
                        var mediaItemUri = Object(_media__WEBPACK_IMPORTED_MODULE_3__[/* createMediaSrc */ "a"])({
                            mediaId: fillLayers.image.uri,
                            type: _media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_4__[/* types */ "b"].IMAGE,
                            width: fillLayers.image.width,
                            height: fillLayers.image.height,
                            title: fillLayers.image.title,
                        });
                        if (mediaItemUri.error) {
                            return '';
                        }
                        return mediaItemUri.item || '';
                    }
                    return '';
                },
                set src(newSrc) {
                    var _a = props.fillLayers, fillLayers = _a === void 0 ? {} : _a;
                    if (!newSrc) {
                        // clear the background fillLayers
                        setProps({
                            fillLayers: {
                                containerId: metaData.compId,
                            },
                        });
                        return;
                    }
                    var mediaData = Object(_media__WEBPACK_IMPORTED_MODULE_2__[/* getMediaDataFromSrc */ "d"])(newSrc);
                    if (!mediaData) {
                        Object(_reporters__WEBPACK_IMPORTED_MODULE_0__[/* reportError */ "a"])("The \"src\" property cannot be set to \"" + newSrc + "\". It must be a valid URL starting with \"http://\", \"https://\", or \"wix:image://, or a valid video URL starting with \"wix:video://\".");
                        return;
                    }
                    var _b = Object(_media__WEBPACK_IMPORTED_MODULE_2__[/* getScrollEffect */ "e"])(fillLayers), hasBgScrollEffect = _b.hasBgScrollEffect, bgEffectName = _b.bgEffectName;
                    if (mediaData.type === 'WixVideo') {
                        Object(_media__WEBPACK_IMPORTED_MODULE_2__[/* getFullMediaData */ "b"])(mediaData, function (fullMediaRefData) {
                            if (!fullMediaRefData) {
                                return;
                            }
                            var propsFull = {
                                fillLayers: {
                                    containerId: metaData.compId,
                                    backgroundMedia: hasBgScrollEffect
                                        ? __assign({ containerId: metaData.compId }, fillLayers.backgroundMedia) : undefined,
                                    hasBgFullscreenScrollEffect: fillLayers.hasBgFullscreenScrollEffect,
                                    video: __assign(__assign({}, _media__WEBPACK_IMPORTED_MODULE_2__[/* BG_VIDEO_DEFAULTS */ "a"]), { alt: '', posterImageInfo: __assign({ containerId: metaData.compId, hasBgScrollEffect: hasBgScrollEffect,
                                            bgEffectName: bgEffectName }, mediaData.posterImageRef), videoInfo: {
                                            containerId: metaData.compId,
                                            videoId: fullMediaRefData.mediaObject.videoId,
                                            videoWidth: fullMediaRefData.mediaObject.videoWidth,
                                            videoHeight: fullMediaRefData.mediaObject.videoHeight,
                                            qualities: fullMediaRefData.mediaObject.qualities.filter(function (item) {
                                                return item.quality !== 'storyboard';
                                            }),
                                            isVideoDataExists: '1',
                                            videoFormat: fullMediaRefData.mediaObject.videoFormat,
                                            playbackRate: fullMediaRefData.mediaObject.playbackRate,
                                            autoPlay: fullMediaRefData.mediaObject.autoPlay,
                                            hasBgScrollEffect: hasBgScrollEffect,
                                            bgEffectName: bgEffectName,
                                        } }),
                                },
                            };
                            setProps(propsFull);
                        });
                        // change to poster (video partial props)
                        setProps({
                            fillLayers: {
                                containerId: metaData.compId,
                                hasBgFullscreenScrollEffect: fillLayers.hasBgFullscreenScrollEffect,
                                backgroundMedia: hasBgScrollEffect
                                    ? __assign({ containerId: metaData.compId }, fillLayers.backgroundMedia) : undefined,
                                video: __assign(__assign({}, _media__WEBPACK_IMPORTED_MODULE_2__[/* BG_VIDEO_DEFAULTS */ "a"]), { alt: '', posterImageInfo: __assign({ containerId: metaData.compId, hasBgScrollEffect: hasBgScrollEffect,
                                        bgEffectName: bgEffectName }, mediaData.posterImageRef), videoInfo: {
                                        containerId: metaData.compId,
                                        videoId: mediaData.videoId,
                                        isVideoDataExists: false,
                                    } }),
                            },
                        });
                    }
                    else {
                        // change to Image
                        setProps({
                            fillLayers: {
                                containerId: metaData.compId,
                                hasBgFullscreenScrollEffect: fillLayers.hasBgFullscreenScrollEffect,
                                backgroundMedia: hasBgScrollEffect
                                    ? __assign({ containerId: metaData.compId }, fillLayers.backgroundMedia) : undefined,
                                image: __assign(__assign({}, mediaData), { uri: mediaData.mediaId || '', displayMode: 'fill', containerId: metaData.compId, name: '', width: mediaData.width || 0, height: mediaData.height || 0, alt: '', hasBgScrollEffect: hasBgScrollEffect,
                                    bgEffectName: bgEffectName }),
                            },
                        });
                    }
                },
                play: function () {
                    if (isVideo) {
                        return compRef.play(true);
                    }
                },
                pause: function () {
                    if (isVideo) {
                        return compRef.pause();
                    }
                },
                stop: function () {
                    if (isVideo) {
                        return compRef.stop();
                    }
                },
            };
        },
    };
};
var backgroundPropsSDKFactory = Object(_validations__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_backgroundPropsSDKFactory, {
    type: ['object'],
    properties: {
        background: {
            type: ['object'],
            properties: {
                src: {
                    type: ['string', 'nil'],
                    warnIfNil: true,
                },
            },
        },
    },
});
//# sourceMappingURL=backgroundPropsSDKFactory.js.map

/***/ }),
/* 48 */
/*!****************************************************!*\
  !*** ./core/corvid/inputUtils/validateRequired.ts ***!
  \****************************************************/
/*! exports provided: validateRequired */
/*! exports used: validateRequired */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return validateRequired; });
/* harmony import */ var _validityUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validityUtils */ 9);

var validateRequired = function (props, validationData) {
    var isRequired = props.required || false;
    if (!isRequired || props.value) {
        return validationData;
    }
    return Object(_validityUtils__WEBPACK_IMPORTED_MODULE_0__[/* addErrorToValidationDataAndKeepMessage */ "d"])(validationData, 'valueMissing');
};


/***/ }),
/* 49 */
/*!*********************************************************!*\
  !*** ./components/Container/corvid/Container.corvid.ts ***!
  \*********************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Container/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 37);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 34);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);




var containerSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return ({
        get type() {
            return '$w.Box';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* toJSONBase */ "b"])(metaData)), { type: '$w.Box' });
        },
    });
};
var stylePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createStylePropsSDKFactory */ "a"])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
}, {
    cssVarPrefix: 'container',
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, stylePropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* childrenPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* clickPropsSDKFactoryWithUpdatePlatformHandler */ "b"], containerSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 50 */
/*!******************************************************!*\
  !*** ./components/ScreenWidthContainer/constants.ts ***!
  \******************************************************/
/*! exports provided: styleMixinPrefix */
/*! exports used: styleMixinPrefix */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return styleMixinPrefix; });
var styleMixinPrefix = 'screenwidth';


/***/ }),
/* 51 */
/*!************************************************************************!*\
  !*** ./components/TPAGallery/corvid/TPAGalleryNavigationButtonsSDK.ts ***!
  \************************************************************************/
/*! exports provided: tpaGalleryNavigationButtonsSDKFactory */
/*! exports used: tpaGalleryNavigationButtonsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return tpaGalleryNavigationButtonsSDKFactory; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);


var _tpaGalleryNavigationButtonsSDKFactory = function (_a) {
    var props = _a.props, setProps = _a.setProps;
    return {
        get showNavigationButtons() {
            return props.compProps.arrowMode;
        },
        set showNavigationButtons(val) {
            setProps({
                compProps: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.compProps), { arrowMode: val }),
            });
        },
    };
};
var tpaGalleryNavigationButtonsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_tpaGalleryNavigationButtonsSDKFactory, {
    type: ['object'],
    properties: {
        showNavigationButtons: { type: ['boolean'] },
    },
});


/***/ }),
/* 52 */
/*!*******************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/basePropsSDKFactory.js ***!
  \*******************************************************************************************************************************/
/*! exports provided: basePropsSDKFactory */
/*! exports used: basePropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return basePropsSDKFactory; });
var basePropsSDKFactory = function (_a) {
    var handlers = _a.handlers, metaData = _a.metaData;
    var compId = metaData.compId, connection = metaData.connection, compType = metaData.compType, isGlobal = metaData.isGlobal, getParent = metaData.getParent, role = metaData.role, wixCodeId = metaData.wixCodeId;
    var type = "$w." + compType;
    return {
        get id() {
            return wixCodeId || role; // TODO check with @zivp if forms need this "|| role" and if not remove it.
        },
        get role() {
            return role;
        },
        get connectionConfig() {
            return connection === null || connection === void 0 ? void 0 : connection.config;
        },
        get uniqueId() {
            return compId;
        },
        get parent() {
            return getParent();
        },
        get global() {
            return isGlobal();
        },
        get type() {
            return type;
        },
        scrollTo: function () {
            return new Promise(function (resolve) {
                return handlers.scrollToComponent(compId, resolve);
            });
        },
        toJSON: function () {
            return { id: role, type: type, global: global };
        },
    };
};
//# sourceMappingURL=basePropsSDKFactory.js.map

/***/ }),
/* 53 */
/*!*************************************************************!*\
  !*** ./core/corvid/props-factories/valuePropsSDKFactory.ts ***!
  \*************************************************************/
/*! exports provided: createValuePropsSdkFactory */
/*! exports used: createValuePropsSdkFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createValuePropsSdkFactory; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _changePropsSDKFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./changePropsSDKFactory */ 29);


var _createValuePropsSDKFactory = function (valueSanitizer, valueSchema, inputValidator) { return function (api) {
    var setProps = api.setProps, props = api.props, metaData = api.metaData;
    var schemaValidator = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* createCompSchemaValidator */ "a"])(metaData.role);
    return {
        get value() {
            return props.value;
        },
        set value(value) {
            var sanitizedValue = valueSanitizer(value, api);
            var isValid = schemaValidator(sanitizedValue, valueSchema, 'value');
            if (!isValid) {
                return;
            }
            setProps({ value: sanitizedValue });
            inputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
    };
}; };
var createValuePropsSdkFactory = function (valueSanitizer, valueSchema, inputValidator) {
    return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(_changePropsSDKFactory__WEBPACK_IMPORTED_MODULE_2__[/* changePropsSDKFactory */ "a"], Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_createValuePropsSDKFactory(valueSanitizer, valueSchema, inputValidator), {
        type: ['object'],
        properties: {},
    }));
};


/***/ }),
/* 54 */,
/* 55 */,
/* 56 */
/*!***********************************************************************************!*\
  !*** ./components/MediaContainers/MediaContainer/corvid/MediaContainer.corvid.ts ***!
  \***********************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/MediaContainers/MediaContainer/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories_backgroundPropsSDKFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../core/corvid/props-factories/backgroundPropsSDKFactory */ 47);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 34);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 20);





var type = '$w.Container';
var mediaContainerSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return {
        get type() {
            return type;
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* toJSONBase */ "b"])(metaData)), { type: type });
        },
    };
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, mediaContainerSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* childrenPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* clickPropsSDKFactoryWithUpdatePlatformHandler */ "b"], _core_corvid_props_factories_backgroundPropsSDKFactory__WEBPACK_IMPORTED_MODULE_3__[/* backgroundPropsSDKFactory */ "a"]);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 57 */
/*!*******************************************************************!*\
  !*** ./components/LoginSocialBar/corvid/LoginSocialBar.corvid.ts ***!
  \*******************************************************************/
/*! exports provided: createAccountNavBarSdkFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/LoginSocialBar/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createAccountNavBarSdkFactory", function() { return createAccountNavBarSdkFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 12);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/svg */ 30);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);





var getCommonOptionalItemProps = function (_a, isMobileOnly) {
    var link = _a.link, visibleOnDesktop = _a.visibleOnDesktop, visibleOnMobile = _a.visibleOnMobile, displayCount = _a.displayCount;
    return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (link !== undefined && { link: link })), (!isMobileOnly && { visibleOnDesktop: visibleOnDesktop !== null && visibleOnDesktop !== void 0 ? visibleOnDesktop : true })), { visibleOnMobile: visibleOnMobile !== null && visibleOnMobile !== void 0 ? visibleOnMobile : true }), (typeof displayCount === 'number' && { displayCount: displayCount })));
};
var cloneMenuItems = function (menuItems, isMobileOnly) {
    return menuItems.map(function (_a) {
        var label = _a.label, optionalProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["label"]);
        return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ label: label }, getCommonOptionalItemProps(optionalProps, isMobileOnly)));
    });
};
var cloneNavBarItems = function (navBarItems, isMobileOnly) {
    return navBarItems.map(function (_a) {
        var icon = _a.icon, label = _a.label, optionalProps = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["icon", "label"]);
        return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ icon: icon }, (label !== undefined && { label: label })), getCommonOptionalItemProps(optionalProps, isMobileOnly)));
    });
};
var createSdkFactory = function (_a) {
    var _b = _a.isMobileOnly, isMobileOnly = _b === void 0 ? false : _b;
    return function (_a) {
        var setProps = _a.setProps, sdkData = _a.sdkData, metaData = _a.metaData, createSdkState = _a.createSdkState;
        var _b = sdkData.isMobileView, isMobileView = _b === void 0 ? isMobileOnly : _b, baseSvgMediaUrl = sdkData.baseSvgMediaUrl;
        var isItemVisiblePredicate = function (_a) {
            var visibleOnDesktop = _a.visibleOnDesktop, visibleOnMobile = _a.visibleOnMobile;
            return (isMobileView ? visibleOnMobile : visibleOnDesktop);
        };
        var _c = createSdkState({
            menuItems: sdkData.menuItems,
            navBarItems: sdkData.navBarItems,
        }), state = _c[0], setState = _c[1];
        return {
            get menuItems() {
                return cloneMenuItems(state.menuItems, isMobileOnly);
            },
            set menuItems(value) {
                setState({ menuItems: value ? cloneMenuItems(value, isMobileOnly) : [] });
                var menuItemsProp = state.menuItems
                    .filter(isItemVisiblePredicate)
                    .map(function (_a) {
                    var label = _a.label, link = _a.link, displayCount = _a.displayCount;
                    return ({
                        label: label,
                        link: link ? { href: link } : {},
                        displayCount: displayCount,
                    });
                });
                setProps({ menuItems: menuItemsProp });
            },
            get navBarItems() {
                return cloneNavBarItems(state.navBarItems, isMobileOnly);
            },
            set navBarItems(value) {
                setState({
                    navBarItems: value ? cloneNavBarItems(value, isMobileOnly) : [],
                });
                var visibleNavBarItems = state.navBarItems.filter(isItemVisiblePredicate);
                if (!visibleNavBarItems.length) {
                    setProps({ iconItems: [] });
                    return;
                }
                setProps(Promise.all(visibleNavBarItems.map(function (_a) {
                    var icon = _a.icon;
                    return Object(_core_corvid_svg__WEBPACK_IMPORTED_MODULE_7__[/* resolveAndFetchSvg */ "e"])(icon, baseSvgMediaUrl);
                })).then(function (icons) { return ({
                    iconItems: visibleNavBarItems.map(function (_a, index) {
                        var label = _a.label, link = _a.link, displayCount = _a.displayCount;
                        return ({
                            iconSvgContent: icons[index],
                            label: label !== null && label !== void 0 ? label : '',
                            link: link ? { href: link } : {},
                            displayCount: displayCount,
                        });
                    }),
                }); }));
            },
            get type() {
                return '$w.AccountNavBar';
            },
            toJSON: function () {
                return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* toJSONBase */ "b"])(metaData)), { type: '$w.AccountNavBar' });
            },
        };
    };
};
var createAccountNavBarSdkFactory = function (params) {
    if (params === void 0) { params = {}; }
    return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(createSdkFactory(params), {
        type: ['object'],
        properties: {
            menuItems: {
                type: ['array', 'nil'],
                warnIfNil: true,
                items: {
                    type: ['object'],
                    properties: {
                        label: { type: ['string'] },
                        link: { type: ['string'] },
                        visibleOnDesktop: { type: ['boolean'] },
                        visibleOnMobile: { type: ['boolean'] },
                        displayCount: { type: ['number', 'nil'] },
                    },
                    required: ['label'],
                },
            },
            navBarItems: {
                type: ['array', 'nil'],
                warnIfNil: true,
                items: {
                    type: ['object'],
                    properties: {
                        link: { type: ['string'] },
                        icon: { type: ['string'] },
                        visibleOnDesktop: { type: ['boolean'] },
                        visibleOnMobile: { type: ['boolean'] },
                        displayCount: { type: ['number', 'nil'] },
                    },
                    required: ['icon'],
                },
            },
        },
    }, {
        navBarItems: [
            function (value) {
                var isValid = true;
                if (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* assert */ "a"].isArray(value)) {
                    value.forEach(function (_a, index) {
                        var icon = _a.icon;
                        if (!_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* assert */ "a"].isSVG(icon)) {
                            isValid = false;
                            Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* messages */ "a"].invalidMenuItemMessage({
                                propertyName: 'navBarItems',
                                value: icon,
                                index: index,
                            }));
                        }
                    });
                }
                return isValid;
            },
        ],
    });
};
var loginSocialBarSDKFactory = createAccountNavBarSdkFactory();
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, loginSocialBarSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 58 */
/*!**************************************************************************!*\
  !*** ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js ***!
  \**************************************************************************/
/*! no static exports found */
/*! exports used: parseSvgString, transformVectorImage */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.buildSvgUrlFactory = exports.getCSSStrokeAdjustments = exports.getCSSDropShadow = exports.encodeSVG = exports.getSvgContentForMask = exports.replaceSVGMaskAttributes = exports.getScaledSvgViewBox = exports.getFilter = exports.createReactSvgImageWithMask = exports.removeWidthAndHeight = exports.parseSvgString = exports.transformVectorImage = exports.getFontFamilyFontsFromSvg = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ 0);
var color_1 = __webpack_require__(/*! ../color */ 198);
var svgFilters_1 = __webpack_require__(/*! ./svgFilters */ 206);
Object.defineProperty(exports, "getFilter", { enumerable: true, get: function () { return svgFilters_1.getFilter; } });
var svgParser_1 = __webpack_require__(/*! ./svgParser */ 210);
Object.defineProperty(exports, "parseSvgString", { enumerable: true, get: function () { return svgParser_1.parseSvgString; } });
var color_2 = tslib_1.__importDefault(__webpack_require__(/*! color */ 66));
var lodash_1 = __webpack_require__(/*! lodash */ 22);
var hoverBoxUtils_1 = __webpack_require__(/*! ../hoverBoxUtils */ 211);
var viewBoxMatcher = /viewBox="([^"]*)"/i;
var svgWidthMatcher = /(?:<svg[^>]*)\s(width="[^"]*")/i;
var svgHeightMatcher = /(?:<svg[^>]*)\s(height="[^"]*")/i;
var svgTagMatcher = /(<svg[^>]*)(>)/;
var fillAttributeMatcher = /fill="(.*?)"/gi;
var styleAttributeMatcher = /style="([^"]*)"/i;
var styleTransformMatcher = /transform:([^;]*)/i;
var SVG_TYPES = {
    SHAPE: 'shape',
    TINT: 'tint',
    COLOR: 'color',
    UGC: 'ugc',
};
function replaceSVGMaskAttributes(svgString, svgId) {
    if (!svgString) {
        return svgString;
    }
    var svgTagMatch = svgString.match(/<svg[^>]*>/);
    if (svgTagMatch) {
        var svgTag = svgTagMatch[0];
        var idMatch = svgTag.match(/id="[-\w]+"/);
        var aspectRatioMatch = svgTag.match(/preserveAspectRatio="[-\w\s]+"/);
        if (aspectRatioMatch) {
            svgTag = svgTag.replace(aspectRatioMatch[0], 'preserveAspectRatio="none"');
        }
        else {
            svgTag = svgTag.replace('<svg ', '<svg preserveAspectRatio="none" ');
        }
        if (idMatch) {
            svgTag = svgTag.replace(idMatch[0], "id=\"" + svgId + "\"");
        }
        else {
            svgTag = svgTag.replace('<svg ', "<svg id=\"" + svgId + "\" ");
        }
        svgString = svgString.replace(svgTagMatch[0], svgTag);
    }
    return svgString;
}
exports.replaceSVGMaskAttributes = replaceSVGMaskAttributes;
var symbols = /[\r\n%#()<>?[\\\]^`{|}]/g;
/**
 * Returns a data URI SVG encoded for CSS <url> value
 */
function encodeSVG(svg) {
    var escaped = svg
        .replace(/"/g, "'") // Use single quotes instead of double to avoid encoding.
        .replace(/>\s+</g, '><') // trim
        .replace(/\s{2,}/g, ' ') // trim
        .replace(symbols, encodeURIComponent); // encode symbols
    return "url(\"data:image/svg+xml," + escaped + "\")";
}
exports.encodeSVG = encodeSVG;
function transformToTintColors(svgString, resolvedColor) {
    var baseColor = color_2.default(resolvedColor);
    return svgString.replace(fillAttributeMatcher, function (__, colorToTint) {
        if (colorToTint === 'none') {
            return 'fill="none"';
        }
        var colorObj = color_2.default(colorToTint);
        if (color_1.isGreyscale(colorObj)) {
            var tint = 1 - (255 - colorObj.red()) / 255; // eslint-disable-line no-mixed-operators
            var rTint = Math.floor(baseColor.red() + (255 - baseColor.red()) * tint); // eslint-disable-line no-mixed-operators
            var gTint = Math.floor(baseColor.green() + (255 - baseColor.green()) * tint); // eslint-disable-line no-mixed-operators
            var bTint = Math.floor(baseColor.blue() + (255 - baseColor.blue()) * tint); // eslint-disable-line no-mixed-operators
            var tintedColor = color_2.default({ r: rTint, g: gTint, b: bTint });
            // return tinted color
            return "fill=\"" + tintedColor.hex().toString() + "\"";
        }
        // no change, return original svg color
        return "fill=\"" + colorToTint + "\"";
    });
}
function removeWidthAndHeight(svgString) {
    if (svgString) {
        var widthMatch = svgString.match(svgWidthMatcher);
        var heightMatch = svgString.match(svgHeightMatcher);
        if (widthMatch && widthMatch.length > 1) {
            svgString = svgString.replace(widthMatch[1], 'width="100%"');
        }
        if (heightMatch && heightMatch.length > 1) {
            svgString = svgString.replace(heightMatch[1], 'height="100%"');
        }
    }
    return svgString;
}
exports.removeWidthAndHeight = removeWidthAndHeight;
function addA11yFeatures(svgString, compId, altText) {
    var newSvgString = svgString.replace(svgTagMatcher, '$1 role="img"$2');
    if (typeof altText === 'string') {
        var svgLabelId = compId + "-svgtitle";
        return newSvgString.replace(svgTagMatcher, "$1 aria-labelledby=\"" + svgLabelId + "\"$2<title id=\"" + svgLabelId + "\">" + altText + "</title>");
    }
    return newSvgString;
}
function getFilterRectInPixels(layout, shadow) {
    var blurRadius = shadow.blurRadius, x = shadow.x, y = shadow.y;
    // STD to pixel ~ STD value * 3 , we are multiplying by 6 for both sides
    var blurSpread = blurRadius * 6;
    var filterAttr = {
        x: Math.min(0, x) - blurSpread / 2,
        y: Math.min(0, y) - blurSpread / 2,
    };
    var res = "x=\"" + filterAttr.x + "\" y=\"" + filterAttr.y + "\"";
    if (layout != null) {
        // In bolt the width and height values are only relevant in the classic editor. In EditorX they end up as NaN
        // In order to have parity with the Bolt implementation, we leave width and height undefined,
        // We avoid NaN values because it results in console errors
        var width = layout.width + blurSpread + Math.abs(x);
        var height = layout.height + blurSpread + Math.abs(y);
        res += " width=\"" + width + "\" height=\"" + height + "\"";
    }
    return res;
}
function getShadowFilter(filterId, shadow, layout, hexColor, mergeGraphic) {
    var filterString = svgFilters_1.getShadow(filterId, tslib_1.__assign(tslib_1.__assign({}, shadow), { color: hexColor, mergeGraphic: mergeGraphic }));
    return filterString.replace(/<filter /, "<filter " + getFilterRectInPixels(layout, shadow) + " filterUnits=\"userSpaceOnUse\" ");
}
function getPreserveAspectRatioString(displayMode) {
    var preserveAspectRatio = displayMode !== 'stretch';
    var preserveAspectRatioString = preserveAspectRatio ? 'xMidYMid meet' : 'none';
    return { preserveAspectRatio: preserveAspectRatio, preserveAspectRatioString: preserveAspectRatioString };
}
function getScaledSvgViewBox(svgString, svgInfo, properties) {
    if (properties === void 0) { properties = {}; }
    if (svgString) {
        var svgType = svgInfo.svgType, viewBox = svgInfo.viewBox, bbox = svgInfo.bbox;
        var preserveViewBox = properties.preserveViewBox, displayMode = properties.displayMode;
        var preserveAspectRatioString = getPreserveAspectRatioString(displayMode).preserveAspectRatioString;
        svgString = svgString.replace(/<svg/, "<svg preserveAspectRatio=\"" + preserveAspectRatioString + "\"");
        if (!svgString.match(viewBoxMatcher)) {
            if (svgType === SVG_TYPES.UGC && viewBox) {
                svgString = svgString.replace(/<svg/, "<svg viewBox=\"" + viewBox + "\"");
            }
            if (svgType !== SVG_TYPES.UGC && bbox) {
                svgString = svgString.replace(/<svg/, "<svg viewBox=\"" + bbox + "\"");
            }
        }
        if (svgType !== SVG_TYPES.UGC && !preserveViewBox && bbox) {
            svgString = svgString.replace(viewBoxMatcher, "viewBox=\"" + bbox + "\"");
        }
    }
    return svgString;
}
exports.getScaledSvgViewBox = getScaledSvgViewBox;
function wrapWithShadow(_a) {
    var compId = _a.compId, svgString = _a.svgString, layout = _a.layout, colorsMap = _a.colorsMap, shadow = _a.shadow, _b = _a.shadowOnly, shadowOnly = _b === void 0 ? false : _b;
    if (shadow && shadow.color) {
        var filterId = compId + "-shadow";
        var hexColor = color_1.getFromColorMap(shadow.color, colorsMap);
        var shadowFilter = getShadowFilter(filterId, shadow, layout, hexColor, !shadowOnly);
        var modifiedContent = removeWidthAndHeight(svgString);
        return "\n          <svg height=\"100%\" width=\"100%\">\n              <defs>" + shadowFilter + "</defs>\n              <g filter=\"url(#" + filterId + ")\">\n                  " + modifiedContent + "\n              </g>\n          </svg>\n      ";
    }
    return svgString;
}
function getCSSDropShadow(shadow, colorsMap) {
    if (shadow && shadow.color && shadow.opacity) {
        var hexColor = color_1.getFromColorMap(shadow.color, colorsMap);
        var opacity = Math.round(shadow.opacity * 255).toString(16);
        return "drop-shadow(" + shadow.x + "px " + shadow.y + "px " + shadow.blurRadius + "px " + hexColor + opacity.padStart(2, '0') + ")";
    }
    return '';
}
exports.getCSSDropShadow = getCSSDropShadow;
function getCSSStrokeAdjustments(strokeWidth) {
    if (strokeWidth) {
        return {
            svgCalculatedPadding: Math.floor(strokeWidth / 2) + "px " + Math.ceil(strokeWidth / 2) + "px " + Math.ceil(strokeWidth / 2) + "px " + Math.floor(strokeWidth / 2) + "px",
            svgCalculatedWidth: "calc(100% - " + strokeWidth + "px)",
            svgCalculatedHeight: "calc(100% - " + strokeWidth + "px)",
        };
    }
    return {};
}
exports.getCSSStrokeAdjustments = getCSSStrokeAdjustments;
var FLIP_DATA_TO_TRANSFORM = {
    x: 'scale(-1, 1)',
    y: 'scale(1, -1)',
    xy: 'scale(-1, -1)',
    none: '',
};
function getFlippedSVG(svgString, flip) {
    var topSvg = svgString.match(svgTagMatcher);
    var transform = FLIP_DATA_TO_TRANSFORM[flip] || '';
    if (topSvg && transform) {
        var styleMatch = topSvg[0].match(styleAttributeMatcher);
        var replacement = "$1 style=\"transform: " + transform + ";\"$2";
        if (styleMatch) {
            var transformMatch = styleMatch[1].match(styleTransformMatcher);
            if (transformMatch) {
                replacement = topSvg[0].replace(styleMatch[0], styleMatch[0].replace(transformMatch[0], "transform: " + transform + " " + transformMatch[1]));
            }
            else {
                replacement = topSvg[0].replace(styleMatch[0], "style=\"transform: " + transform + "; " + styleMatch[1] + "\"");
            }
        }
        return svgString.replace(svgTagMatcher, replacement);
    }
    return svgString;
}
function getSvgContentForMask(svgString, svgInfo, flip, mode, colorsMap, compId, layout, shadow) {
    var content = getScaledSvgViewBox(svgString, svgInfo, { displayMode: 'stretch' });
    // we must have the transform style inlined inside the SVG content
    var svg = getFlippedSVG(content, flip);
    if (mode === 'drop-shadow' && shadow && layout) {
        return wrapWithShadow({ compId: compId, svgString: svg, layout: layout, colorsMap: colorsMap, shadow: shadow, shadowOnly: true });
    }
    return svg;
}
exports.getSvgContentForMask = getSvgContentForMask;
function addSvgStyleNode(svgString, defsValue) {
    if (!svgString) {
        return svgString;
    }
    return svgString.replace(/(<svg[^>]*>)/, "$1<defs><style>" + defsValue + "</style></defs>");
}
var DEFAULT_COLOR = '#242323';
var pickValidColors = function (obj) {
    return Object.keys(obj).reduce(function (result, key) {
        var colorValue = obj[key];
        if (color_1.isColor(colorValue) || color_1.isThemeColor(colorValue)) {
            result[key] = colorValue;
        }
        return result;
    }, {});
};
var transformVectorImage = function (rawSvg, _a) {
    var altText = _a.altText, compId = _a.compId, svgInfo = _a.svgInfo, properties = _a.properties, layout = _a.layout, shadow = _a.shadow, isResponsive = _a.isResponsive, colorsMap = _a.colorsMap, overrideColorsInuput = _a.overrideColors;
    var overrideColors = pickValidColors(overrideColorsInuput || {});
    function withA11y(svgString) {
        return addA11yFeatures(svgString, compId, altText);
    }
    function withScaledViewBox(svgString) {
        return getScaledSvgViewBox(svgString, svgInfo, properties);
    }
    function withShadowFilter(svgString) {
        return wrapWithShadow({
            compId: compId,
            svgString: svgString,
            layout: isResponsive ? null : layout,
            colorsMap: colorsMap,
            shadow: shadow,
        });
    }
    function withTintColors(svgString) {
        var rawColor = (overrideColors && overrideColors.color1) || DEFAULT_COLOR;
        var color = color_1.getFromColorMap(rawColor, colorsMap);
        return svgInfo.svgType === SVG_TYPES.TINT ? transformToTintColors(svgString, color) : svgString;
    }
    function withCssOverrides(svgString) {
        var shouldOverrideColors = svgInfo.svgType === SVG_TYPES.COLOR && Object.keys(overrideColors).length > 0;
        if (shouldOverrideColors) {
            var colors = Object.entries(overrideColors)
                .map(function (_a) {
                var _b = tslib_1.__read(_a, 2), colorName = _b[0], rawColor = _b[1];
                var resolvedColor = color_1.getFromColorMap(rawColor, colorsMap);
                var index = colorName.replace('color', '');
                return hoverBoxUtils_1.compIdToCssSelector(compId, true) + " svg [data-color=\"" + index + "\"] {fill: " + resolvedColor + ";}";
            })
                .join('\n');
            return addSvgStyleNode(svgString, colors);
        }
        return svgString;
    }
    var content = withScaledViewBox(withTintColors(withA11y(rawSvg)));
    return withCssOverrides(isResponsive ? content : withShadowFilter(content));
};
exports.transformVectorImage = transformVectorImage;
var getSvgAttributes = function (componentAttributes, compId) {
    return tslib_1.__assign({ ref: "svg" + compId, key: "svg" + compId, id: "svg" + compId, version: '1.1' }, componentAttributes);
};
var getMaskFlipTransformAttr = function (flip, imageDimensions) {
    var width = imageDimensions.width;
    var height = imageDimensions.height;
    switch (flip) {
        case 'x':
            return { transform: "translate(0 " + height + ") scale(1 -1)" };
        case 'y':
            return { transform: "translate(" + width + " 0) scale(-1 1)" };
        case 'xy':
            return { transform: "translate(" + width + " " + height + ") scale(-1 -1)" };
        default:
            return { transform: null };
    }
};
var getSvgImageAttributes = function (filterId, maskId, displayMode) {
    var preserveAspectRatio = (displayMode && getPreserveAspectRatioString(displayMode).preserveAspectRatioString) || 'none';
    var attributes = {
        ref: 'image',
        key: 'image',
        'data-type': 'image',
        width: '100%',
        height: '100%',
        preserveAspectRatio: preserveAspectRatio,
    };
    var mask = maskId && "url(#" + maskId + ")";
    var dataSvgMask = maskId && { 'data-svg-mask': maskId + "-svg" };
    var filter = filterId && "url(#" + filterId + ")";
    return lodash_1.pickBy(Object.assign(attributes, { mask: mask, filter: filter }, dataSvgMask), function (x) { return x; });
};
// TODO move this to a common place (duplicated)
function stringifyAttrs(attrs) {
    return Object.keys(attrs)
        .map(function (k) { return k + "=\"" + attrs[k] + "\""; })
        .join(' ');
}
var createElement = function (tag, attrs, children) {
    var attrsString = stringifyAttrs(attrs);
    return children ? "<" + tag + " " + attrsString + ">" + children + "</" + tag + ">" : "<" + tag + " " + attrsString + " />";
};
var getMask = function (maskId, svgId, svg, attributes) {
    var width = attributes.width;
    var height = attributes.height;
    var x = attributes.x;
    var y = attributes.y;
    var transform = attributes.transform;
    var style = attributes.style;
    var transformStr = transform ? " transform=\"" + transform + "\"" : '';
    var styleStr = style ? " style=\"" + style + "\"" : '';
    var filterId = svgId + "-bleach";
    var bleach = "<filter id=\"" + filterId + "\"><feColorMatrix type=\"matrix\"\n\t\t\tvalues=\"0 0 0 0 1\n\t\t\t\t0 0 0 0 1\n\t\t\t\t0 0 0 0 1\n\t\t\t\t0 0 0 1 0\"/></filter>";
    var filterUrl = "filter=\"url(#" + filterId + ")\"";
    return bleach + "\n\t\t\t<mask id=\"" + maskId + "\">\n\t\t\t\t<use " + filterUrl + "\n\t\t\t\tid=\"" + svgId + "-use\" xlink:href=\"#" + svgId + "\" width=\"" + width + "\" height=\"" + height + "\" x=\"" + x + "\" y=\"" + y + "\" " + transformStr + " " + styleStr + "></use>\n\t\t\t</mask>\n\t\t\t" + svg;
};
var createReactSvgImageWithMask = function (compId, imageDimensions, filterId, maskId, maskData, altText, displayMode) {
    var imageAttributes = getSvgImageAttributes(filterId, maskId, displayMode);
    var svgImageAttributes = getSvgAttributes({
        role: 'img',
        'aria-label': altText,
    }, compId);
    var svgDomId = maskId + "-svg";
    var svgStringWithId = replaceSVGMaskAttributes(maskData.svgString, svgDomId);
    var maskAttrs = tslib_1.__assign({ width: '100%', height: '100%', x: 0, y: 0 }, getMaskFlipTransformAttr(maskData.flip, imageDimensions));
    var defsString = "<defs>" + getMask(maskId, svgDomId, svgStringWithId, maskAttrs) + "</defs>";
    var imageString = createElement('image', tslib_1.__assign({}, imageAttributes), '');
    return createElement('svg', svgImageAttributes, "" + defsString + imageString);
};
exports.createReactSvgImageWithMask = createReactSvgImageWithMask;
var getFontFamilyFontsFromSvg = function (svgString) {
    var regex = /font-family=['"](.*?)['"]/gi;
    var match;
    var fonts = [];
    do {
        match = regex.exec(svgString);
        if (match && match[1]) {
            var font = match[1].split(',').map(function (f) { return f.replace(/'/g, '').trim(); });
            fonts.push(font);
        }
    } while (match);
    return fonts;
};
exports.getFontFamilyFontsFromSvg = getFontFamilyFontsFromSvg;
var buildSvgUrlFactory = function () {
    var addTrailingSlashIfMissing = function (val) { return (val.endsWith('/') ? val : val + "/"); };
    var getSvgBaseUrl = function (mediaRootUrl) { return addTrailingSlashIfMissing(mediaRootUrl) + "shapes/"; };
    var svgIdToUri = function (svgId) {
        var partsArr = svgId.replace(/^.*\//, '').split('.');
        var version = partsArr[1] === 'v1' ? 1 : 2;
        var svgHash = partsArr[2].replace(/svg_/i, '');
        var svgName = partsArr[3];
        return svgHash + (version === 1 ? "_svgshape.v1." + svgName : '') + ".svg";
    };
    return {
        getSvgBaseUrl: getSvgBaseUrl,
        buildSvgUrl: function (mediaRootUrl, svgId) {
            if (/^svgshape\.v[12]/.test(svgId)) {
                var svgUri = svgIdToUri(svgId);
                return "" + getSvgBaseUrl(mediaRootUrl) + svgUri;
            }
            return "" + getSvgBaseUrl(mediaRootUrl) + svgId;
        },
    };
};
exports.buildSvgUrlFactory = buildSvgUrlFactory;
//# sourceMappingURL=index.js.map

/***/ }),
/* 59 */
/*!************************************************************!*\
  !*** ./core/corvid/props-factories/linkPropsSDKFactory.ts ***!
  \************************************************************/
/*! exports provided: linkPropsSDKFactory */
/*! exports used: linkPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return linkPropsSDKFactory; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 8);


var _linkPropsSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, linkUtils = _a.linkUtils;
    return {
        set link(url) {
            var _a;
            if (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(url) || url === '') {
                setProps({
                    link: undefined,
                });
                return;
            }
            try {
                setProps({
                    link: linkUtils.getLinkProps(url, (_a = props.link) === null || _a === void 0 ? void 0 : _a.target),
                });
            }
            catch (e) {
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])("The link property that is passed to the link method cannot be set to the value \"" + url + "\" as this is not a supported link type.");
            }
        },
        get link() {
            return props.link ? linkUtils.getLink(props.link) : '';
        },
        set target(target) {
            setProps({
                link: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.link), { target: target }),
            });
        },
        get target() {
            var _a, _b;
            return (_b = (_a = props.link) === null || _a === void 0 ? void 0 : _a.target) !== null && _b !== void 0 ? _b : '_blank';
        },
    };
};
var linkPropsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* withValidation */ "b"])(_linkPropsSDKFactory, {
    type: ['object'],
    properties: {
        link: { type: ['string', 'nil'], warnIfNil: true },
        target: { type: ['string', 'nil'], warnIfNil: true },
    },
}, {
    target: [
        function (target) {
            if (target === '_blank' || target === '_self') {
                return true;
            }
            Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* templates */ "a"].error_target_w_photo({ target: target }));
            if (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(target)) {
                return true;
            }
            return false;
        },
    ],
});


/***/ }),
/* 60 */
/*!************************************************************************!*\
  !*** ./core/corvid/props-factories/galleries/clickActionSDKFactory.ts ***!
  \************************************************************************/
/*! exports provided: clickActionSDKFactory */
/*! exports used: clickActionSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return clickActionSDKFactory; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);

var GALLERY_CLICK_ACTIONS;
(function (GALLERY_CLICK_ACTIONS) {
    GALLERY_CLICK_ACTIONS["none"] = "disabled";
    GALLERY_CLICK_ACTIONS["expand"] = "zoomMode";
    GALLERY_CLICK_ACTIONS["link"] = "goToLink";
})(GALLERY_CLICK_ACTIONS || (GALLERY_CLICK_ACTIONS = {}));
var _clickActionSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props;
    return {
        get clickAction() {
            var action = props.imageOnClickAction;
            switch (action) {
                case 'disabled':
                    return 'none';
                case 'goToLink':
                    return 'link';
                default:
                case 'zoomMode':
                    return 'expand';
            }
        },
        set clickAction(action) {
            var galleryImageClickAction = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* assert */ "a"].isNil(action)
                ? GALLERY_CLICK_ACTIONS.none
                : GALLERY_CLICK_ACTIONS[action];
            setProps({
                imageOnClickAction: galleryImageClickAction,
            });
        },
    };
};
var clickActionSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_clickActionSDKFactory, {
    type: ['object'],
    properties: {
        clickAction: {
            warnIfNil: true,
            type: ['string'],
            enum: Object.keys(GALLERY_CLICK_ACTIONS),
        },
    },
});


/***/ }),
/* 61 */
/*!************************************************************************!*\
  !*** ./core/corvid/props-factories/galleries/onItemClickSDKFactory.ts ***!
  \************************************************************************/
/*! exports provided: onItemClickSDKFactory */
/*! exports used: onItemClickSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return onItemClickSDKFactory; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../galleries/GallerySDKUtils */ 15);



var onItemClickSDKFactory = function (api) {
    return {
        onItemClicked: function (handler) {
            Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onItemClicked', api, handler, function (_a) {
                var componentEvent = _a.componentEvent;
                var convertedItemToUserModel = Object(_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_2__[/* convertGalleryItemsToUserModel */ "a"])([api.props.items[componentEvent.itemIndex]], api.linkUtils)[0];
                return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, componentEvent), { item: convertedItemToUserModel });
            });
        },
    };
};


/***/ }),
/* 62 */
/*!****************************************************************************************!*\
  !*** ./core/corvid/props-factories/galleries/unsupportedCurrentItemPropsSDKFactory.ts ***!
  \****************************************************************************************/
/*! exports provided: unsupportedCurrentItemPropsSDKFactory */
/*! exports used: unsupportedCurrentItemPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unsupportedCurrentItemPropsSDKFactory; });
/* harmony import */ var _galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../galleries/GallerySDKUtils */ 15);

var unsupportedCurrentItemPropsSDKFactory = function (_a) {
    var metaData = _a.metaData;
    var galleryType = metaData.compType;
    var reportUnsupportedAPI = Object(_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_0__[/* createUnsupportedAPIReporter */ "c"])(galleryType);
    return {
        get currentIndex() {
            return reportUnsupportedAPI('currentIndex');
        },
        get currentItem() {
            return reportUnsupportedAPI('currentItem');
        },
        onCurrentItemChanged: function () {
            return reportUnsupportedAPI('onCurrentItemChanged');
        },
    };
};


/***/ }),
/* 63 */,
/* 64 */,
/* 65 */,
/* 66 */
/*!*************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/color/index.js ***!
  \*************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var colorString = __webpack_require__(/*! color-string */ 199);
var convert = __webpack_require__(/*! color-convert */ 203);

var _slice = [].slice;

var skippedModels = [
	// to be honest, I don't really feel like keyword belongs in color convert, but eh.
	'keyword',

	// gray conflicts with some method names, and has its own method defined.
	'gray',

	// shouldn't really be in color-convert either...
	'hex'
];

var hashedModelKeys = {};
Object.keys(convert).forEach(function (model) {
	hashedModelKeys[_slice.call(convert[model].labels).sort().join('')] = model;
});

var limiters = {};

function Color(obj, model) {
	if (!(this instanceof Color)) {
		return new Color(obj, model);
	}

	if (model && model in skippedModels) {
		model = null;
	}

	if (model && !(model in convert)) {
		throw new Error('Unknown model: ' + model);
	}

	var i;
	var channels;

	if (obj == null) { // eslint-disable-line no-eq-null,eqeqeq
		this.model = 'rgb';
		this.color = [0, 0, 0];
		this.valpha = 1;
	} else if (obj instanceof Color) {
		this.model = obj.model;
		this.color = obj.color.slice();
		this.valpha = obj.valpha;
	} else if (typeof obj === 'string') {
		var result = colorString.get(obj);
		if (result === null) {
			throw new Error('Unable to parse color from string: ' + obj);
		}

		this.model = result.model;
		channels = convert[this.model].channels;
		this.color = result.value.slice(0, channels);
		this.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;
	} else if (obj.length) {
		this.model = model || 'rgb';
		channels = convert[this.model].channels;
		var newArr = _slice.call(obj, 0, channels);
		this.color = zeroArray(newArr, channels);
		this.valpha = typeof obj[channels] === 'number' ? obj[channels] : 1;
	} else if (typeof obj === 'number') {
		// this is always RGB - can be converted later on.
		obj &= 0xFFFFFF;
		this.model = 'rgb';
		this.color = [
			(obj >> 16) & 0xFF,
			(obj >> 8) & 0xFF,
			obj & 0xFF
		];
		this.valpha = 1;
	} else {
		this.valpha = 1;

		var keys = Object.keys(obj);
		if ('alpha' in obj) {
			keys.splice(keys.indexOf('alpha'), 1);
			this.valpha = typeof obj.alpha === 'number' ? obj.alpha : 0;
		}

		var hashedKeys = keys.sort().join('');
		if (!(hashedKeys in hashedModelKeys)) {
			throw new Error('Unable to parse color from object: ' + JSON.stringify(obj));
		}

		this.model = hashedModelKeys[hashedKeys];

		var labels = convert[this.model].labels;
		var color = [];
		for (i = 0; i < labels.length; i++) {
			color.push(obj[labels[i]]);
		}

		this.color = zeroArray(color);
	}

	// perform limitations (clamping, etc.)
	if (limiters[this.model]) {
		channels = convert[this.model].channels;
		for (i = 0; i < channels; i++) {
			var limit = limiters[this.model][i];
			if (limit) {
				this.color[i] = limit(this.color[i]);
			}
		}
	}

	this.valpha = Math.max(0, Math.min(1, this.valpha));

	if (Object.freeze) {
		Object.freeze(this);
	}
}

Color.prototype = {
	toString: function () {
		return this.string();
	},

	toJSON: function () {
		return this[this.model]();
	},

	string: function (places) {
		var self = this.model in colorString.to ? this : this.rgb();
		self = self.round(typeof places === 'number' ? places : 1);
		var args = self.valpha === 1 ? self.color : self.color.concat(this.valpha);
		return colorString.to[self.model](args);
	},

	percentString: function (places) {
		var self = this.rgb().round(typeof places === 'number' ? places : 1);
		var args = self.valpha === 1 ? self.color : self.color.concat(this.valpha);
		return colorString.to.rgb.percent(args);
	},

	array: function () {
		return this.valpha === 1 ? this.color.slice() : this.color.concat(this.valpha);
	},

	object: function () {
		var result = {};
		var channels = convert[this.model].channels;
		var labels = convert[this.model].labels;

		for (var i = 0; i < channels; i++) {
			result[labels[i]] = this.color[i];
		}

		if (this.valpha !== 1) {
			result.alpha = this.valpha;
		}

		return result;
	},

	unitArray: function () {
		var rgb = this.rgb().color;
		rgb[0] /= 255;
		rgb[1] /= 255;
		rgb[2] /= 255;

		if (this.valpha !== 1) {
			rgb.push(this.valpha);
		}

		return rgb;
	},

	unitObject: function () {
		var rgb = this.rgb().object();
		rgb.r /= 255;
		rgb.g /= 255;
		rgb.b /= 255;

		if (this.valpha !== 1) {
			rgb.alpha = this.valpha;
		}

		return rgb;
	},

	round: function (places) {
		places = Math.max(places || 0, 0);
		return new Color(this.color.map(roundToPlace(places)).concat(this.valpha), this.model);
	},

	alpha: function (val) {
		if (arguments.length) {
			return new Color(this.color.concat(Math.max(0, Math.min(1, val))), this.model);
		}

		return this.valpha;
	},

	// rgb
	red: getset('rgb', 0, maxfn(255)),
	green: getset('rgb', 1, maxfn(255)),
	blue: getset('rgb', 2, maxfn(255)),

	hue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, function (val) { return ((val % 360) + 360) % 360; }), // eslint-disable-line brace-style

	saturationl: getset('hsl', 1, maxfn(100)),
	lightness: getset('hsl', 2, maxfn(100)),

	saturationv: getset('hsv', 1, maxfn(100)),
	value: getset('hsv', 2, maxfn(100)),

	chroma: getset('hcg', 1, maxfn(100)),
	gray: getset('hcg', 2, maxfn(100)),

	white: getset('hwb', 1, maxfn(100)),
	wblack: getset('hwb', 2, maxfn(100)),

	cyan: getset('cmyk', 0, maxfn(100)),
	magenta: getset('cmyk', 1, maxfn(100)),
	yellow: getset('cmyk', 2, maxfn(100)),
	black: getset('cmyk', 3, maxfn(100)),

	x: getset('xyz', 0, maxfn(100)),
	y: getset('xyz', 1, maxfn(100)),
	z: getset('xyz', 2, maxfn(100)),

	l: getset('lab', 0, maxfn(100)),
	a: getset('lab', 1),
	b: getset('lab', 2),

	keyword: function (val) {
		if (arguments.length) {
			return new Color(val);
		}

		return convert[this.model].keyword(this.color);
	},

	hex: function (val) {
		if (arguments.length) {
			return new Color(val);
		}

		return colorString.to.hex(this.rgb().round().color);
	},

	rgbNumber: function () {
		var rgb = this.rgb().color;
		return ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);
	},

	luminosity: function () {
		// http://www.w3.org/TR/WCAG20/#relativeluminancedef
		var rgb = this.rgb().color;

		var lum = [];
		for (var i = 0; i < rgb.length; i++) {
			var chan = rgb[i] / 255;
			lum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);
		}

		return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
	},

	contrast: function (color2) {
		// http://www.w3.org/TR/WCAG20/#contrast-ratiodef
		var lum1 = this.luminosity();
		var lum2 = color2.luminosity();

		if (lum1 > lum2) {
			return (lum1 + 0.05) / (lum2 + 0.05);
		}

		return (lum2 + 0.05) / (lum1 + 0.05);
	},

	level: function (color2) {
		var contrastRatio = this.contrast(color2);
		if (contrastRatio >= 7.1) {
			return 'AAA';
		}

		return (contrastRatio >= 4.5) ? 'AA' : '';
	},

	isDark: function () {
		// YIQ equation from http://24ways.org/2010/calculating-color-contrast
		var rgb = this.rgb().color;
		var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;
		return yiq < 128;
	},

	isLight: function () {
		return !this.isDark();
	},

	negate: function () {
		var rgb = this.rgb();
		for (var i = 0; i < 3; i++) {
			rgb.color[i] = 255 - rgb.color[i];
		}
		return rgb;
	},

	lighten: function (ratio) {
		var hsl = this.hsl();
		hsl.color[2] += hsl.color[2] * ratio;
		return hsl;
	},

	darken: function (ratio) {
		var hsl = this.hsl();
		hsl.color[2] -= hsl.color[2] * ratio;
		return hsl;
	},

	saturate: function (ratio) {
		var hsl = this.hsl();
		hsl.color[1] += hsl.color[1] * ratio;
		return hsl;
	},

	desaturate: function (ratio) {
		var hsl = this.hsl();
		hsl.color[1] -= hsl.color[1] * ratio;
		return hsl;
	},

	whiten: function (ratio) {
		var hwb = this.hwb();
		hwb.color[1] += hwb.color[1] * ratio;
		return hwb;
	},

	blacken: function (ratio) {
		var hwb = this.hwb();
		hwb.color[2] += hwb.color[2] * ratio;
		return hwb;
	},

	grayscale: function () {
		// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale
		var rgb = this.rgb().color;
		var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
		return Color.rgb(val, val, val);
	},

	fade: function (ratio) {
		return this.alpha(this.valpha - (this.valpha * ratio));
	},

	opaquer: function (ratio) {
		return this.alpha(this.valpha + (this.valpha * ratio));
	},

	rotate: function (degrees) {
		var hsl = this.hsl();
		var hue = hsl.color[0];
		hue = (hue + degrees) % 360;
		hue = hue < 0 ? 360 + hue : hue;
		hsl.color[0] = hue;
		return hsl;
	},

	mix: function (mixinColor, weight) {
		// ported from sass implementation in C
		// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
		if (!mixinColor || !mixinColor.rgb) {
			throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof mixinColor);
		}
		var color1 = mixinColor.rgb();
		var color2 = this.rgb();
		var p = weight === undefined ? 0.5 : weight;

		var w = 2 * p - 1;
		var a = color1.alpha() - color2.alpha();

		var w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;
		var w2 = 1 - w1;

		return Color.rgb(
				w1 * color1.red() + w2 * color2.red(),
				w1 * color1.green() + w2 * color2.green(),
				w1 * color1.blue() + w2 * color2.blue(),
				color1.alpha() * p + color2.alpha() * (1 - p));
	}
};

// model conversion methods and static constructors
Object.keys(convert).forEach(function (model) {
	if (skippedModels.indexOf(model) !== -1) {
		return;
	}

	var channels = convert[model].channels;

	// conversion methods
	Color.prototype[model] = function () {
		if (this.model === model) {
			return new Color(this);
		}

		if (arguments.length) {
			return new Color(arguments, model);
		}

		var newAlpha = typeof arguments[channels] === 'number' ? channels : this.valpha;
		return new Color(assertArray(convert[this.model][model].raw(this.color)).concat(newAlpha), model);
	};

	// 'static' construction methods
	Color[model] = function (color) {
		if (typeof color === 'number') {
			color = zeroArray(_slice.call(arguments), channels);
		}
		return new Color(color, model);
	};
});

function roundTo(num, places) {
	return Number(num.toFixed(places));
}

function roundToPlace(places) {
	return function (num) {
		return roundTo(num, places);
	};
}

function getset(model, channel, modifier) {
	model = Array.isArray(model) ? model : [model];

	model.forEach(function (m) {
		(limiters[m] || (limiters[m] = []))[channel] = modifier;
	});

	model = model[0];

	return function (val) {
		var result;

		if (arguments.length) {
			if (modifier) {
				val = modifier(val);
			}

			result = this[model]();
			result.color[channel] = val;
			return result;
		}

		result = this[model]().color[channel];
		if (modifier) {
			result = modifier(result);
		}

		return result;
	};
}

function maxfn(max) {
	return function (v) {
		return Math.max(0, Math.min(max, v));
	};
}

function assertArray(val) {
	return Array.isArray(val) ? val : [val];
}

function zeroArray(arr, length) {
	for (var i = 0; i < length; i++) {
		if (typeof arr[i] !== 'number') {
			arr[i] = 0;
		}
	}

	return arr;
}

module.exports = Color;


/***/ }),
/* 67 */
/*!***************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/color-convert/conversions.js ***!
  \***************************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

/* MIT license */
var cssKeywords = __webpack_require__(/*! color-name */ 204);

// NOTE: conversions should only return primitive values (i.e. arrays, or
//       values that give correct `typeof` results).
//       do not use box values types (i.e. Number(), String(), etc.)

var reverseKeywords = {};
for (var key in cssKeywords) {
	if (cssKeywords.hasOwnProperty(key)) {
		reverseKeywords[cssKeywords[key]] = key;
	}
}

var convert = module.exports = {
	rgb: {channels: 3, labels: 'rgb'},
	hsl: {channels: 3, labels: 'hsl'},
	hsv: {channels: 3, labels: 'hsv'},
	hwb: {channels: 3, labels: 'hwb'},
	cmyk: {channels: 4, labels: 'cmyk'},
	xyz: {channels: 3, labels: 'xyz'},
	lab: {channels: 3, labels: 'lab'},
	lch: {channels: 3, labels: 'lch'},
	hex: {channels: 1, labels: ['hex']},
	keyword: {channels: 1, labels: ['keyword']},
	ansi16: {channels: 1, labels: ['ansi16']},
	ansi256: {channels: 1, labels: ['ansi256']},
	hcg: {channels: 3, labels: ['h', 'c', 'g']},
	apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
	gray: {channels: 1, labels: ['gray']}
};

// hide .channels and .labels properties
for (var model in convert) {
	if (convert.hasOwnProperty(model)) {
		if (!('channels' in convert[model])) {
			throw new Error('missing channels property: ' + model);
		}

		if (!('labels' in convert[model])) {
			throw new Error('missing channel labels property: ' + model);
		}

		if (convert[model].labels.length !== convert[model].channels) {
			throw new Error('channel and label counts mismatch: ' + model);
		}

		var channels = convert[model].channels;
		var labels = convert[model].labels;
		delete convert[model].channels;
		delete convert[model].labels;
		Object.defineProperty(convert[model], 'channels', {value: channels});
		Object.defineProperty(convert[model], 'labels', {value: labels});
	}
}

convert.rgb.hsl = function (rgb) {
	var r = rgb[0] / 255;
	var g = rgb[1] / 255;
	var b = rgb[2] / 255;
	var min = Math.min(r, g, b);
	var max = Math.max(r, g, b);
	var delta = max - min;
	var h;
	var s;
	var l;

	if (max === min) {
		h = 0;
	} else if (r === max) {
		h = (g - b) / delta;
	} else if (g === max) {
		h = 2 + (b - r) / delta;
	} else if (b === max) {
		h = 4 + (r - g) / delta;
	}

	h = Math.min(h * 60, 360);

	if (h < 0) {
		h += 360;
	}

	l = (min + max) / 2;

	if (max === min) {
		s = 0;
	} else if (l <= 0.5) {
		s = delta / (max + min);
	} else {
		s = delta / (2 - max - min);
	}

	return [h, s * 100, l * 100];
};

convert.rgb.hsv = function (rgb) {
	var rdif;
	var gdif;
	var bdif;
	var h;
	var s;

	var r = rgb[0] / 255;
	var g = rgb[1] / 255;
	var b = rgb[2] / 255;
	var v = Math.max(r, g, b);
	var diff = v - Math.min(r, g, b);
	var diffc = function (c) {
		return (v - c) / 6 / diff + 1 / 2;
	};

	if (diff === 0) {
		h = s = 0;
	} else {
		s = diff / v;
		rdif = diffc(r);
		gdif = diffc(g);
		bdif = diffc(b);

		if (r === v) {
			h = bdif - gdif;
		} else if (g === v) {
			h = (1 / 3) + rdif - bdif;
		} else if (b === v) {
			h = (2 / 3) + gdif - rdif;
		}
		if (h < 0) {
			h += 1;
		} else if (h > 1) {
			h -= 1;
		}
	}

	return [
		h * 360,
		s * 100,
		v * 100
	];
};

convert.rgb.hwb = function (rgb) {
	var r = rgb[0];
	var g = rgb[1];
	var b = rgb[2];
	var h = convert.rgb.hsl(rgb)[0];
	var w = 1 / 255 * Math.min(r, Math.min(g, b));

	b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));

	return [h, w * 100, b * 100];
};

convert.rgb.cmyk = function (rgb) {
	var r = rgb[0] / 255;
	var g = rgb[1] / 255;
	var b = rgb[2] / 255;
	var c;
	var m;
	var y;
	var k;

	k = Math.min(1 - r, 1 - g, 1 - b);
	c = (1 - r - k) / (1 - k) || 0;
	m = (1 - g - k) / (1 - k) || 0;
	y = (1 - b - k) / (1 - k) || 0;

	return [c * 100, m * 100, y * 100, k * 100];
};

/**
 * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
 * */
function comparativeDistance(x, y) {
	return (
		Math.pow(x[0] - y[0], 2) +
		Math.pow(x[1] - y[1], 2) +
		Math.pow(x[2] - y[2], 2)
	);
}

convert.rgb.keyword = function (rgb) {
	var reversed = reverseKeywords[rgb];
	if (reversed) {
		return reversed;
	}

	var currentClosestDistance = Infinity;
	var currentClosestKeyword;

	for (var keyword in cssKeywords) {
		if (cssKeywords.hasOwnProperty(keyword)) {
			var value = cssKeywords[keyword];

			// Compute comparative distance
			var distance = comparativeDistance(rgb, value);

			// Check if its less, if so set as closest
			if (distance < currentClosestDistance) {
				currentClosestDistance = distance;
				currentClosestKeyword = keyword;
			}
		}
	}

	return currentClosestKeyword;
};

convert.keyword.rgb = function (keyword) {
	return cssKeywords[keyword];
};

convert.rgb.xyz = function (rgb) {
	var r = rgb[0] / 255;
	var g = rgb[1] / 255;
	var b = rgb[2] / 255;

	// assume sRGB
	r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);
	g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);
	b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);

	var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
	var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
	var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);

	return [x * 100, y * 100, z * 100];
};

convert.rgb.lab = function (rgb) {
	var xyz = convert.rgb.xyz(rgb);
	var x = xyz[0];
	var y = xyz[1];
	var z = xyz[2];
	var l;
	var a;
	var b;

	x /= 95.047;
	y /= 100;
	z /= 108.883;

	x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
	y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
	z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);

	l = (116 * y) - 16;
	a = 500 * (x - y);
	b = 200 * (y - z);

	return [l, a, b];
};

convert.hsl.rgb = function (hsl) {
	var h = hsl[0] / 360;
	var s = hsl[1] / 100;
	var l = hsl[2] / 100;
	var t1;
	var t2;
	var t3;
	var rgb;
	var val;

	if (s === 0) {
		val = l * 255;
		return [val, val, val];
	}

	if (l < 0.5) {
		t2 = l * (1 + s);
	} else {
		t2 = l + s - l * s;
	}

	t1 = 2 * l - t2;

	rgb = [0, 0, 0];
	for (var i = 0; i < 3; i++) {
		t3 = h + 1 / 3 * -(i - 1);
		if (t3 < 0) {
			t3++;
		}
		if (t3 > 1) {
			t3--;
		}

		if (6 * t3 < 1) {
			val = t1 + (t2 - t1) * 6 * t3;
		} else if (2 * t3 < 1) {
			val = t2;
		} else if (3 * t3 < 2) {
			val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
		} else {
			val = t1;
		}

		rgb[i] = val * 255;
	}

	return rgb;
};

convert.hsl.hsv = function (hsl) {
	var h = hsl[0];
	var s = hsl[1] / 100;
	var l = hsl[2] / 100;
	var smin = s;
	var lmin = Math.max(l, 0.01);
	var sv;
	var v;

	l *= 2;
	s *= (l <= 1) ? l : 2 - l;
	smin *= lmin <= 1 ? lmin : 2 - lmin;
	v = (l + s) / 2;
	sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);

	return [h, sv * 100, v * 100];
};

convert.hsv.rgb = function (hsv) {
	var h = hsv[0] / 60;
	var s = hsv[1] / 100;
	var v = hsv[2] / 100;
	var hi = Math.floor(h) % 6;

	var f = h - Math.floor(h);
	var p = 255 * v * (1 - s);
	var q = 255 * v * (1 - (s * f));
	var t = 255 * v * (1 - (s * (1 - f)));
	v *= 255;

	switch (hi) {
		case 0:
			return [v, t, p];
		case 1:
			return [q, v, p];
		case 2:
			return [p, v, t];
		case 3:
			return [p, q, v];
		case 4:
			return [t, p, v];
		case 5:
			return [v, p, q];
	}
};

convert.hsv.hsl = function (hsv) {
	var h = hsv[0];
	var s = hsv[1] / 100;
	var v = hsv[2] / 100;
	var vmin = Math.max(v, 0.01);
	var lmin;
	var sl;
	var l;

	l = (2 - s) * v;
	lmin = (2 - s) * vmin;
	sl = s * vmin;
	sl /= (lmin <= 1) ? lmin : 2 - lmin;
	sl = sl || 0;
	l /= 2;

	return [h, sl * 100, l * 100];
};

// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
convert.hwb.rgb = function (hwb) {
	var h = hwb[0] / 360;
	var wh = hwb[1] / 100;
	var bl = hwb[2] / 100;
	var ratio = wh + bl;
	var i;
	var v;
	var f;
	var n;

	// wh + bl cant be > 1
	if (ratio > 1) {
		wh /= ratio;
		bl /= ratio;
	}

	i = Math.floor(6 * h);
	v = 1 - bl;
	f = 6 * h - i;

	if ((i & 0x01) !== 0) {
		f = 1 - f;
	}

	n = wh + f * (v - wh); // linear interpolation

	var r;
	var g;
	var b;
	switch (i) {
		default:
		case 6:
		case 0: r = v; g = n; b = wh; break;
		case 1: r = n; g = v; b = wh; break;
		case 2: r = wh; g = v; b = n; break;
		case 3: r = wh; g = n; b = v; break;
		case 4: r = n; g = wh; b = v; break;
		case 5: r = v; g = wh; b = n; break;
	}

	return [r * 255, g * 255, b * 255];
};

convert.cmyk.rgb = function (cmyk) {
	var c = cmyk[0] / 100;
	var m = cmyk[1] / 100;
	var y = cmyk[2] / 100;
	var k = cmyk[3] / 100;
	var r;
	var g;
	var b;

	r = 1 - Math.min(1, c * (1 - k) + k);
	g = 1 - Math.min(1, m * (1 - k) + k);
	b = 1 - Math.min(1, y * (1 - k) + k);

	return [r * 255, g * 255, b * 255];
};

convert.xyz.rgb = function (xyz) {
	var x = xyz[0] / 100;
	var y = xyz[1] / 100;
	var z = xyz[2] / 100;
	var r;
	var g;
	var b;

	r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
	g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
	b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);

	// assume sRGB
	r = r > 0.0031308
		? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)
		: r * 12.92;

	g = g > 0.0031308
		? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)
		: g * 12.92;

	b = b > 0.0031308
		? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)
		: b * 12.92;

	r = Math.min(Math.max(0, r), 1);
	g = Math.min(Math.max(0, g), 1);
	b = Math.min(Math.max(0, b), 1);

	return [r * 255, g * 255, b * 255];
};

convert.xyz.lab = function (xyz) {
	var x = xyz[0];
	var y = xyz[1];
	var z = xyz[2];
	var l;
	var a;
	var b;

	x /= 95.047;
	y /= 100;
	z /= 108.883;

	x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
	y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
	z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);

	l = (116 * y) - 16;
	a = 500 * (x - y);
	b = 200 * (y - z);

	return [l, a, b];
};

convert.lab.xyz = function (lab) {
	var l = lab[0];
	var a = lab[1];
	var b = lab[2];
	var x;
	var y;
	var z;

	y = (l + 16) / 116;
	x = a / 500 + y;
	z = y - b / 200;

	var y2 = Math.pow(y, 3);
	var x2 = Math.pow(x, 3);
	var z2 = Math.pow(z, 3);
	y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
	x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
	z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;

	x *= 95.047;
	y *= 100;
	z *= 108.883;

	return [x, y, z];
};

convert.lab.lch = function (lab) {
	var l = lab[0];
	var a = lab[1];
	var b = lab[2];
	var hr;
	var h;
	var c;

	hr = Math.atan2(b, a);
	h = hr * 360 / 2 / Math.PI;

	if (h < 0) {
		h += 360;
	}

	c = Math.sqrt(a * a + b * b);

	return [l, c, h];
};

convert.lch.lab = function (lch) {
	var l = lch[0];
	var c = lch[1];
	var h = lch[2];
	var a;
	var b;
	var hr;

	hr = h / 360 * 2 * Math.PI;
	a = c * Math.cos(hr);
	b = c * Math.sin(hr);

	return [l, a, b];
};

convert.rgb.ansi16 = function (args) {
	var r = args[0];
	var g = args[1];
	var b = args[2];
	var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization

	value = Math.round(value / 50);

	if (value === 0) {
		return 30;
	}

	var ansi = 30
		+ ((Math.round(b / 255) << 2)
		| (Math.round(g / 255) << 1)
		| Math.round(r / 255));

	if (value === 2) {
		ansi += 60;
	}

	return ansi;
};

convert.hsv.ansi16 = function (args) {
	// optimization here; we already know the value and don't need to get
	// it converted for us.
	return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
};

convert.rgb.ansi256 = function (args) {
	var r = args[0];
	var g = args[1];
	var b = args[2];

	// we use the extended greyscale palette here, with the exception of
	// black and white. normal palette only has 4 greyscale shades.
	if (r === g && g === b) {
		if (r < 8) {
			return 16;
		}

		if (r > 248) {
			return 231;
		}

		return Math.round(((r - 8) / 247) * 24) + 232;
	}

	var ansi = 16
		+ (36 * Math.round(r / 255 * 5))
		+ (6 * Math.round(g / 255 * 5))
		+ Math.round(b / 255 * 5);

	return ansi;
};

convert.ansi16.rgb = function (args) {
	var color = args % 10;

	// handle greyscale
	if (color === 0 || color === 7) {
		if (args > 50) {
			color += 3.5;
		}

		color = color / 10.5 * 255;

		return [color, color, color];
	}

	var mult = (~~(args > 50) + 1) * 0.5;
	var r = ((color & 1) * mult) * 255;
	var g = (((color >> 1) & 1) * mult) * 255;
	var b = (((color >> 2) & 1) * mult) * 255;

	return [r, g, b];
};

convert.ansi256.rgb = function (args) {
	// handle greyscale
	if (args >= 232) {
		var c = (args - 232) * 10 + 8;
		return [c, c, c];
	}

	args -= 16;

	var rem;
	var r = Math.floor(args / 36) / 5 * 255;
	var g = Math.floor((rem = args % 36) / 6) / 5 * 255;
	var b = (rem % 6) / 5 * 255;

	return [r, g, b];
};

convert.rgb.hex = function (args) {
	var integer = ((Math.round(args[0]) & 0xFF) << 16)
		+ ((Math.round(args[1]) & 0xFF) << 8)
		+ (Math.round(args[2]) & 0xFF);

	var string = integer.toString(16).toUpperCase();
	return '000000'.substring(string.length) + string;
};

convert.hex.rgb = function (args) {
	var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
	if (!match) {
		return [0, 0, 0];
	}

	var colorString = match[0];

	if (match[0].length === 3) {
		colorString = colorString.split('').map(function (char) {
			return char + char;
		}).join('');
	}

	var integer = parseInt(colorString, 16);
	var r = (integer >> 16) & 0xFF;
	var g = (integer >> 8) & 0xFF;
	var b = integer & 0xFF;

	return [r, g, b];
};

convert.rgb.hcg = function (rgb) {
	var r = rgb[0] / 255;
	var g = rgb[1] / 255;
	var b = rgb[2] / 255;
	var max = Math.max(Math.max(r, g), b);
	var min = Math.min(Math.min(r, g), b);
	var chroma = (max - min);
	var grayscale;
	var hue;

	if (chroma < 1) {
		grayscale = min / (1 - chroma);
	} else {
		grayscale = 0;
	}

	if (chroma <= 0) {
		hue = 0;
	} else
	if (max === r) {
		hue = ((g - b) / chroma) % 6;
	} else
	if (max === g) {
		hue = 2 + (b - r) / chroma;
	} else {
		hue = 4 + (r - g) / chroma + 4;
	}

	hue /= 6;
	hue %= 1;

	return [hue * 360, chroma * 100, grayscale * 100];
};

convert.hsl.hcg = function (hsl) {
	var s = hsl[1] / 100;
	var l = hsl[2] / 100;
	var c = 1;
	var f = 0;

	if (l < 0.5) {
		c = 2.0 * s * l;
	} else {
		c = 2.0 * s * (1.0 - l);
	}

	if (c < 1.0) {
		f = (l - 0.5 * c) / (1.0 - c);
	}

	return [hsl[0], c * 100, f * 100];
};

convert.hsv.hcg = function (hsv) {
	var s = hsv[1] / 100;
	var v = hsv[2] / 100;

	var c = s * v;
	var f = 0;

	if (c < 1.0) {
		f = (v - c) / (1 - c);
	}

	return [hsv[0], c * 100, f * 100];
};

convert.hcg.rgb = function (hcg) {
	var h = hcg[0] / 360;
	var c = hcg[1] / 100;
	var g = hcg[2] / 100;

	if (c === 0.0) {
		return [g * 255, g * 255, g * 255];
	}

	var pure = [0, 0, 0];
	var hi = (h % 1) * 6;
	var v = hi % 1;
	var w = 1 - v;
	var mg = 0;

	switch (Math.floor(hi)) {
		case 0:
			pure[0] = 1; pure[1] = v; pure[2] = 0; break;
		case 1:
			pure[0] = w; pure[1] = 1; pure[2] = 0; break;
		case 2:
			pure[0] = 0; pure[1] = 1; pure[2] = v; break;
		case 3:
			pure[0] = 0; pure[1] = w; pure[2] = 1; break;
		case 4:
			pure[0] = v; pure[1] = 0; pure[2] = 1; break;
		default:
			pure[0] = 1; pure[1] = 0; pure[2] = w;
	}

	mg = (1.0 - c) * g;

	return [
		(c * pure[0] + mg) * 255,
		(c * pure[1] + mg) * 255,
		(c * pure[2] + mg) * 255
	];
};

convert.hcg.hsv = function (hcg) {
	var c = hcg[1] / 100;
	var g = hcg[2] / 100;

	var v = c + g * (1.0 - c);
	var f = 0;

	if (v > 0.0) {
		f = c / v;
	}

	return [hcg[0], f * 100, v * 100];
};

convert.hcg.hsl = function (hcg) {
	var c = hcg[1] / 100;
	var g = hcg[2] / 100;

	var l = g * (1.0 - c) + 0.5 * c;
	var s = 0;

	if (l > 0.0 && l < 0.5) {
		s = c / (2 * l);
	} else
	if (l >= 0.5 && l < 1.0) {
		s = c / (2 * (1 - l));
	}

	return [hcg[0], s * 100, l * 100];
};

convert.hcg.hwb = function (hcg) {
	var c = hcg[1] / 100;
	var g = hcg[2] / 100;
	var v = c + g * (1.0 - c);
	return [hcg[0], (v - c) * 100, (1 - v) * 100];
};

convert.hwb.hcg = function (hwb) {
	var w = hwb[1] / 100;
	var b = hwb[2] / 100;
	var v = 1 - b;
	var c = v - w;
	var g = 0;

	if (c < 1) {
		g = (v - c) / (1 - c);
	}

	return [hwb[0], c * 100, g * 100];
};

convert.apple.rgb = function (apple) {
	return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
};

convert.rgb.apple = function (rgb) {
	return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
};

convert.gray.rgb = function (args) {
	return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
};

convert.gray.hsl = convert.gray.hsv = function (args) {
	return [0, 0, args[0]];
};

convert.gray.hwb = function (gray) {
	return [0, 100, gray[0]];
};

convert.gray.cmyk = function (gray) {
	return [0, 0, 0, gray[0]];
};

convert.gray.lab = function (gray) {
	return [gray[0], 0, 0];
};

convert.gray.hex = function (gray) {
	var val = Math.round(gray[0] / 100 * 255) & 0xFF;
	var integer = (val << 16) + (val << 8) + val;

	var string = integer.toString(16).toUpperCase();
	return '000000'.substring(string.length) + string;
};

convert.rgb.gray = function (rgb) {
	var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
	return [val / 255 * 100];
};


/***/ }),
/* 68 */
/*!***********************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/neat-html-parser/build/index.js ***!
  \***********************************************************************************************/
/*! no static exports found */
/*! exports used: default */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _require = __webpack_require__(/*! ./tokens */ 215),
    OPEN_TAG_START = _require.OPEN_TAG_START,
    TAG_END = _require.TAG_END,
    SELF_CLOSING = _require.SELF_CLOSING,
    CLOSING_TAG_START = _require.CLOSING_TAG_START,
    HTML_END = _require.HTML_END,
    SPACE = _require.SPACE;

var selfClosingTags = __webpack_require__(/*! ./selfClosingTags */ 216);

var selfClosingTagsSet = new Set(selfClosingTags);
var bracketsSet = new Set([OPEN_TAG_START, TAG_END, SELF_CLOSING, CLOSING_TAG_START]);

function parseTagName(html, lastBracketTokenEnd, currentTokenIndex, indexOfFirstSpaceAfterOpenBracket) {
  var indexOfTagNameEnd = indexOfFirstSpaceAfterOpenBracket || currentTokenIndex;
  return html.slice(lastBracketTokenEnd + 1, indexOfTagNameEnd).toLowerCase();
}

function parseProps(html, lastBracketTokenEnd, currentTokenIndex, indexOfFirstSpaceAfterOpenBracket) {
  var indexOfTagNameEnd = indexOfFirstSpaceAfterOpenBracket || currentTokenIndex;
  return html.slice(indexOfTagNameEnd + 1, currentTokenIndex);
}

function processTagEnd(html, lastBracketToken, lastBracketTokenEnd, currentTokenIndex, indexOfFirstSpaceAfterOpenBracket, callbacks) {
  var tagName = parseTagName(html, lastBracketTokenEnd, currentTokenIndex, indexOfFirstSpaceAfterOpenBracket);

  if (lastBracketToken === OPEN_TAG_START) {
    var props = parseProps(html, lastBracketTokenEnd, currentTokenIndex, indexOfFirstSpaceAfterOpenBracket);
    if (selfClosingTagsSet.has(tagName)) {
      callbacks.onSelfClosingTag && callbacks.onSelfClosingTag({ tagName: tagName, props: props });
    } else {
      callbacks.onOpenTag && callbacks.onOpenTag({ tagName: tagName, props: props });
    }
  } else {
    callbacks.onClosingTag && callbacks.onClosingTag({ tagName: tagName, props: '' });
  }
}

function detectToken(html, i) {
  var currentTokenStart = i;
  var currentToken = void 0;

  switch (html[i]) {
    case '<':
      if (html[i + 1] === '/') {
        currentToken = CLOSING_TAG_START;
        i++;
        break;
      }
      currentToken = OPEN_TAG_START;
      break;
    case '>':
      currentToken = TAG_END;
      break;
    case '/':
      if (html[i + 1] === '>') {
        currentToken = SELF_CLOSING;
        i++;
        break;
      }
    case ' ':
      currentToken = SPACE;
      break;
    default:
      currentToken = html[i];
  }

  if (i === html.length) {
    currentToken = HTML_END;
  }

  return currentToken;
}

function parseFragment(html) {
  var callbacks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

  var currentToken = void 0;
  var currentTokenStart = void 0;
  var currentTokenEnd = void 0;

  var lastBracketToken = void 0;
  var lastBracketTokenStart = void 0;
  var lastBracketTokenEnd = void 0;

  var indexOfFirstSpaceAfterOpenBracket = void 0;
  var htmlLength = html.length;
  var i = 0;

  while (i <= htmlLength) {
    //detect token at current token and move pointer to the end of the token
    currentTokenStart = i;
    currentToken = detectToken(html, i);
    i = currentTokenEnd = currentTokenStart + currentToken.length - 1;

    switch (currentToken) {
      case OPEN_TAG_START:
      case CLOSING_TAG_START:
        {
          var text = html.slice(lastBracketTokenEnd + 1, currentTokenStart);

          if (text && callbacks.onText) {
            callbacks.onText(text);
          }

          indexOfFirstSpaceAfterOpenBracket = null;
          break;
        }

      case TAG_END:
        processTagEnd(html, lastBracketToken, lastBracketTokenEnd, i, indexOfFirstSpaceAfterOpenBracket, callbacks);
        break;

      case SELF_CLOSING:
        {
          if (!callbacks.onSelfClosingTag) {
            break;
          }

          callbacks.onSelfClosingTag({
            tagName: parseTagName(html, lastBracketTokenEnd, currentTokenStart, indexOfFirstSpaceAfterOpenBracket),
            props: parseProps(html, lastBracketTokenEnd, currentTokenStart, indexOfFirstSpaceAfterOpenBracket)
          });
          break;
        }

      case SPACE:
        if (!indexOfFirstSpaceAfterOpenBracket && (lastBracketToken === OPEN_TAG_START || lastBracketToken === CLOSING_TAG_START)) {
          indexOfFirstSpaceAfterOpenBracket = i;
        }
        break;

      case HTML_END:
        if (!callbacks.onText) break;

        if (!lastBracketToken) {
          //all html is text
          callbacks.onText(html);
          return;
        }

        //text after last tag
        if (lastBracketTokenEnd !== htmlLength - 1) {
          callbacks.onText(html.slice(lastBracketTokenEnd + 1, htmlLength));
        }
        break;
    }

    //if current token is bracket save it to lastBrackToken
    if (bracketsSet.has(currentToken)) {
      lastBracketToken = currentToken;
      lastBracketTokenEnd = currentTokenEnd;
      lastBracketTokenStart = currentTokenStart;
    }

    i++;
  }
}

module.exports = {
  parseFragment: parseFragment
};

/***/ }),
/* 69 */
/*!***********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js ***!
  \***********************************************************************************************************************************/
/*! exports provided: readOnlyPropsSDKFactory */
/*! exports used: readOnlyPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return readOnlyPropsSDKFactory; });
/* harmony import */ var _validations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../validations */ 11);

var _readOnlyPropsSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props;
    return ({
        get readOnly() {
            return props.readOnly || false;
        },
        set readOnly(value) {
            setProps({ readOnly: value });
        },
    });
};
var readOnlyPropsSDKFactory = Object(_validations__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_readOnlyPropsSDKFactory, {
    type: ['object'],
    properties: {
        readOnly: {
            type: ['boolean'],
        },
    },
});
//# sourceMappingURL=readOnlyPropsSDKFactory.js.map

/***/ }),
/* 70 */
/*!*****************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/isValidStateReference.js ***!
  \*****************************************************************************************************************************/
/*! exports provided: isValidStateReference */
/*! exports used: isValidStateReference */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isValidStateReference; });
/* harmony import */ var _assert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../assert */ 2);
/* harmony import */ var _messages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../messages */ 12);
/* harmony import */ var _reporters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reporters */ 14);



var isValidStateReference = function (functionArgs, sdkFactoryArgs) {
    var stateReference = functionArgs[0];
    var isObjectStateReference = _assert__WEBPACK_IMPORTED_MODULE_0__[/* assert */ "a"].isObject(stateReference);
    var states = sdkFactoryArgs.getChildren();
    var inputState = -1;
    // if stateRefernce is object - validate object by properties and search by id
    if (_assert__WEBPACK_IMPORTED_MODULE_0__[/* assert */ "a"].isObject(stateReference)) {
        var isValidStateSDKObject = Object.keys(states[0]).every(function (key) {
            return stateReference.hasOwnProperty(key);
        });
        if (!isValidStateSDKObject) {
            Object(_reporters__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_messages__WEBPACK_IMPORTED_MODULE_1__[/* messages */ "a"].invalidTypeMessage({
                propertyName: 'stateReference',
                functionName: 'changeState',
                value: stateReference,
                types: ['state', 'string'],
                index: undefined,
            }));
            return false;
        }
        inputState = states.findIndex(function (state) { return state.uniqueId === stateReference.uniqueId; });
    }
    // if stateReference is string - find by role
    if (_assert__WEBPACK_IMPORTED_MODULE_0__[/* assert */ "a"].isString(stateReference)) {
        inputState = states.findIndex(function (state) { return state.role === stateReference; });
    }
    if (inputState < 0) {
        Object(_reporters__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_messages__WEBPACK_IMPORTED_MODULE_1__[/* messages */ "a"].invalidStateInputMessage({
            value: isObjectStateReference
                ? stateReference.role
                : stateReference,
            propertyName: 'stateReference',
            functionName: 'changeState',
            stateBoxId: sdkFactoryArgs.metaData.role,
        }));
        return false;
    }
    return true;
};
//# sourceMappingURL=isValidStateReference.js.map

/***/ }),
/* 71 */
/*!*************************************************************************************!*\
  !*** ./core/corvid/props-factories/galleries/unsupportedPlayablePropsSDKFactory.ts ***!
  \*************************************************************************************/
/*! exports provided: unsupportedPlayablePropsSDKFactory */
/*! exports used: unsupportedPlayablePropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return unsupportedPlayablePropsSDKFactory; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../galleries/GallerySDKUtils */ 15);


var _unsupportedPlayablePropsSDKFactory = function (_a) {
    var metaData = _a.metaData;
    var galleryType = metaData.compType;
    var reportUnsupportedApi = Object(_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_1__[/* createUnsupportedAPIReporter */ "c"])(galleryType);
    return {
        get isPlaying() {
            reportUnsupportedApi('isPlaying');
            return false;
        },
        play: function () {
            return reportUnsupportedApi('play');
        },
        pause: function () {
            return reportUnsupportedApi('pause');
        },
        onPlay: function () {
            return reportUnsupportedApi('onPlay');
        },
        onPause: function () {
            return reportUnsupportedApi('onPause');
        },
        next: function () {
            reportUnsupportedApi('next');
            return Promise.reject("next is not supported for an element of type: " + galleryType + ".");
        },
        previous: function () {
            reportUnsupportedApi('previous');
            return Promise.reject("previous is not supported for an element of type: " + galleryType + ".");
        },
    };
};
var unsupportedPlayablePropsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_unsupportedPlayablePropsSDKFactory, {
    type: ['object'],
    properties: {},
});


/***/ }),
/* 72 */
/*!************************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/textInputPropsSDKFactory.js ***!
  \************************************************************************************************************************************/
/*! exports provided: textInputPropsSDKFactory */
/*! exports used: textInputPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return textInputPropsSDKFactory; });
/* harmony import */ var _validations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../validations */ 11);
/* harmony import */ var _corvidEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../corvidEvents */ 13);


var _textInputPropsSDKFactory = function (api) {
    return {
        get placeholder() {
            return api.props.placeholder || '';
        },
        set placeholder(value) {
            var placeholder = value || '';
            api.setProps({ placeholder: placeholder });
        },
        get maxLength() {
            return api.props.maxLength;
        },
        set maxLength(value) {
            var maxLength = value === null || value === undefined ? null : value;
            api.setProps({ maxLength: maxLength });
        },
        onKeyPress: function (handler) {
            return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidKeyboardEvent */ "b"])('onKeyPress', api, handler);
        },
        onInput: function (handler) { return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onInput', api, handler); },
    };
};
var textInputPropsSDKFactory = Object(_validations__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_textInputPropsSDKFactory, {
    type: ['object'],
    properties: {
        placeholder: {
            type: ['string', 'nil'],
            warnIfNil: true,
        },
        maxLength: {
            type: ['integer', 'nil'],
            warnIfNil: true,
            minimum: 0,
        },
    },
});
//# sourceMappingURL=textInputPropsSDKFactory.js.map

/***/ }),
/* 73 */,
/* 74 */,
/* 75 */
/*!********************************************!*\
  !*** ./components sync entry\.corvid\.ts$ ***!
  \********************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"./Accordion/corvid/entry.corvid.ts": 76,
	"./AddressInput/corvid/entry.corvid.ts": 77,
	"./Anchor/corvid/entry.corvid.ts": 78,
	"./Captcha/corvid/entry.corvid.ts": 79,
	"./Checkbox/corvid/entry.corvid.ts": 80,
	"./CheckboxGroup/corvid/entry.corvid.ts": 81,
	"./Collage/corvid/entry.corvid.ts": 82,
	"./Column/corvid/entry.corvid.ts": 226,
	"./ComboBoxInput/corvid/entry.corvid.ts": 83,
	"./Container/corvid/entry.corvid.ts": 84,
	"./CustomElement/CustomElementComponent/corvid/entry.corvid.ts": 85,
	"./DatePicker/corvid/entry.corvid.ts": 86,
	"./DropDownMenu/corvid/entry.corvid.ts": 87,
	"./FileUploader/corvid/entry.corvid.ts": 88,
	"./FooterContainer/corvid/entry.corvid.ts": 89,
	"./FormContainer/corvid/entry.corvid.ts": 90,
	"./Freestyle/corvid/entry.corvid.ts": 91,
	"./GoogleMap/corvid/entry.corvid.ts": 92,
	"./Grid/corvid/entry.corvid.ts": 93,
	"./Group/corvid/entry.corvid.ts": 94,
	"./HeaderContainer/corvid/entry.corvid.ts": 95,
	"./Honeycomb/corvid/entry.corvid.ts": 96,
	"./HtmlComponent/corvid/entry.corvid.ts": 97,
	"./ImageButton/corvid/entry.corvid.ts": 98,
	"./ImageX/corvid/entry.corvid.ts": 99,
	"./Impress/corvid/entry.corvid.ts": 100,
	"./LoginSocialBar/corvid/entry.corvid.ts": 101,
	"./Masonry/corvid/entry.corvid.ts": 102,
	"./MediaContainers/HoverBox/corvid/entry.corvid.ts": 103,
	"./MediaContainers/MediaContainer/corvid/entry.corvid.ts": 104,
	"./MenuContainer/corvid/entry.corvid.ts": 105,
	"./MultiStateBox/corvid/entry.corvid.ts": 106,
	"./MusicPlayer/corvid/entry.corvid.ts": 107,
	"./NativeGalleries/MatrixGallery/corvid/entry.corvid.ts": 108,
	"./NativeGalleries/PaginatedGridGallery/corvid/entry.corvid.ts": 109,
	"./NativeGalleries/SlideShowGallery/corvid/entry.corvid.ts": 110,
	"./NativeGalleries/SliderGallery/corvid/entry.corvid.ts": 111,
	"./PageBackground/corvid/entry.corvid.ts": 112,
	"./Pagination/corvid/entry.corvid.ts": 113,
	"./PopupCloseIconButton/corvid/entry.corvid.ts": 114,
	"./ProgressBar/corvid/entry.corvid.ts": 115,
	"./QuickActionBar/corvid/entry.corvid.ts": 116,
	"./RadioGroup/corvid/entry.corvid.ts": 117,
	"./RatingsDisplay/corvid/entry.corvid.ts": 118,
	"./RatingsInput/corvid/entry.corvid.ts": 119,
	"./RichTextBox/corvid/entry.corvid.ts": 120,
	"./SearchBox/corvid/entry.corvid.ts": 121,
	"./SelectionTagsList/corvid/entry.corvid.ts": 122,
	"./SeoTpaGallery/corvid/entry.corvid.ts": 123,
	"./SignatureInput/corvid/entry.corvid.ts": 124,
	"./SiteButton/corvid/entry.corvid.ts": 125,
	"./SlideShowContainer/corvid/entry.corvid.ts": 126,
	"./SlideShowSlide/corvid/entry.corvid.ts": 127,
	"./Slider/corvid/entry.corvid.ts": 128,
	"./StateBox/corvid/entry.corvid.ts": 129,
	"./StripColumnsContainer/corvid/entry.corvid.ts": 130,
	"./StripShowcase/corvid/entry.corvid.ts": 131,
	"./StripSlideshow/corvid/entry.corvid.ts": 132,
	"./StylableButton/corvid/entry.corvid.ts": 133,
	"./TPA3DCarousel/corvid/entry.corvid.ts": 134,
	"./TPA3DGallery/corvid/entry.corvid.ts": 135,
	"./TextAreaInput/corvid/entry.corvid.ts": 136,
	"./TextInput/corvid/entry.corvid.ts": 137,
	"./Thumbnails/corvid/entry.corvid.ts": 138,
	"./TimePicker/corvid/entry.corvid.ts": 139,
	"./TinyMenu/corvid/entry.corvid.ts": 140,
	"./ToggleSwitch/corvid/entry.corvid.ts": 141,
	"./VectorImage/corvid/entry.corvid.ts": 142,
	"./VerticalMenu/corvid/entry.corvid.ts": 143,
	"./VideoBoxContainer/VideoBox/corvid/entry.corvid.ts": 144,
	"./VideoLegacy/corvid/entry.corvid.ts": 145,
	"./VideoPlayer/corvid/entry.corvid.ts": 146,
	"./WPhoto/corvid/entry.corvid.ts": 147,
	"./WRichText/corvid/entry.corvid.ts": 148
};


function webpackContext(req) {
	var id = webpackContextResolve(req);
	return __webpack_require__(id);
}
function webpackContextResolve(req) {
	if(!__webpack_require__.o(map, req)) {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	}
	return map[req];
}
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 75;

/***/ }),
/* 76 */
/*!*****************************************************!*\
  !*** ./components/Accordion/corvid/entry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Accordion',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Accordion.corvid */).then(__webpack_require__.bind(null, /*! ./Accordion.corvid */ 151));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 77 */
/*!********************************************************!*\
  !*** ./components/AddressInput/corvid/entry.corvid.ts ***!
  \********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'AddressInput',
    loadSDK: function () {
        return Promise.resolve(/*! import() | AddressInput.corvid */).then(__webpack_require__.bind(null, /*! ./AddressInput.corvid */ 227));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 78 */
/*!**************************************************!*\
  !*** ./components/Anchor/corvid/entry.corvid.ts ***!
  \**************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Anchor',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Anchor.corvid */).then(__webpack_require__.bind(null, /*! ./Anchor.corvid */ 152));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 79 */
/*!***************************************************!*\
  !*** ./components/Captcha/corvid/entry.corvid.ts ***!
  \***************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Captcha',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Captcha.corvid */).then(__webpack_require__.bind(null, /*! ./Captcha.corvid */ 153));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 80 */
/*!****************************************************!*\
  !*** ./components/Checkbox/corvid/entry.corvid.ts ***!
  \****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Checkbox',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Checkbox.corvid */).then(__webpack_require__.bind(null, /*! ./Checkbox.corvid */ 228));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 81 */
/*!*********************************************************!*\
  !*** ./components/CheckboxGroup/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'CheckboxGroup',
    loadSDK: function () {
        return Promise.resolve(/*! import() | CheckboxGroup.corvid */).then(__webpack_require__.bind(null, /*! ./CheckboxGroup.corvid */ 229));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 82 */
/*!***************************************************!*\
  !*** ./components/Collage/corvid/entry.corvid.ts ***!
  \***************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Collage',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Collage.corvid */).then(__webpack_require__.bind(null, /*! ./Collage.corvid */ 154));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 83 */
/*!*********************************************************!*\
  !*** ./components/ComboBoxInput/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'ComboBoxInput',
    sdkType: 'Dropdown',
    loadSDK: function () {
        return Promise.resolve(/*! import() | ComboBoxInput.corvid */).then(__webpack_require__.bind(null, /*! ./ComboBoxInput.corvid */ 223));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 84 */
/*!*****************************************************!*\
  !*** ./components/Container/corvid/entry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Container',
    sdkType: 'Box',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Container.corvid */).then(__webpack_require__.bind(null, /*! ./Container.corvid */ 49));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 85 */
/*!********************************************************************************!*\
  !*** ./components/CustomElement/CustomElementComponent/corvid/entry.corvid.ts ***!
  \********************************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'CustomElementComponent',
    loadSDK: function () {
        return Promise.resolve(/*! import() | CustomElementComponent.corvid */).then(__webpack_require__.bind(null, /*! ./CustomElementComponent.corvid */ 156));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 86 */
/*!******************************************************!*\
  !*** ./components/DatePicker/corvid/entry.corvid.ts ***!
  \******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'DatePicker',
    loadSDK: function () {
        return Promise.resolve(/*! import() | DatePicker.corvid */).then(__webpack_require__.bind(null, /*! ./DatePicker.corvid */ 230));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 87 */
/*!********************************************************!*\
  !*** ./components/DropDownMenu/corvid/entry.corvid.ts ***!
  \********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'DropDownMenu',
    sdkType: 'Menu',
    loadSDK: function () {
        return Promise.resolve(/*! import() | DropDownMenu.corvid */).then(__webpack_require__.bind(null, /*! ./DropDownMenu.corvid */ 157));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 88 */
/*!********************************************************!*\
  !*** ./components/FileUploader/corvid/entry.corvid.ts ***!
  \********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'FileUploader',
    sdkType: 'UploadButton',
    loadSDK: function () {
        return Promise.resolve(/*! import() | FileUploader.corvid */).then(__webpack_require__.bind(null, /*! ./FileUploader.corvid */ 220));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 89 */
/*!***********************************************************!*\
  !*** ./components/FooterContainer/corvid/entry.corvid.ts ***!
  \***********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'FooterContainer',
    sdkType: 'Footer',
    loadSDK: function () {
        return Promise.resolve(/*! import() | FooterContainer.corvid */).then(__webpack_require__.bind(null, /*! ./FooterContainer.corvid */ 231));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 90 */
/*!*********************************************************!*\
  !*** ./components/FormContainer/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'FormContainer',
    sdkType: 'Form',
    loadSDK: function () {
        return Promise.resolve(/*! import() | FormContainer.corvid */).then(__webpack_require__.bind(null, /*! ./FormContainer.corvid */ 158));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 91 */
/*!*****************************************************!*\
  !*** ./components/Freestyle/corvid/entry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Freestyle',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Freestyle.corvid */).then(__webpack_require__.bind(null, /*! ./Freestyle.corvid */ 159));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 92 */
/*!*****************************************************!*\
  !*** ./components/GoogleMap/corvid/entry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'GoogleMap',
    loadSDK: function () {
        return Promise.resolve(/*! import() | GoogleMap.corvid */).then(__webpack_require__.bind(null, /*! ./GoogleMap.corvid */ 224));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 93 */
/*!************************************************!*\
  !*** ./components/Grid/corvid/entry.corvid.ts ***!
  \************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Grid',
    sdkType: 'Table',
    loadSDK: function () { return Promise.resolve(/*! import() | Grid.corvid */).then(__webpack_require__.bind(null, /*! ./Grid.corvid */ 221)); },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 94 */
/*!*************************************************!*\
  !*** ./components/Group/corvid/entry.corvid.ts ***!
  \*************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Group',
    sdkType: 'Box',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Group.corvid */).then(__webpack_require__.bind(null, /*! ./Group.corvid */ 160));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 95 */
/*!***********************************************************!*\
  !*** ./components/HeaderContainer/corvid/entry.corvid.ts ***!
  \***********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'HeaderContainer',
    sdkType: 'Header',
    loadSDK: function () {
        return Promise.resolve(/*! import() | HeaderContainer.corvid */).then(__webpack_require__.bind(null, /*! ./HeaderContainer.corvid */ 232));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 96 */
/*!*****************************************************!*\
  !*** ./components/Honeycomb/corvid/entry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Honeycomb',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Honeycomb.corvid */).then(__webpack_require__.bind(null, /*! ./Honeycomb.corvid */ 161));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 97 */
/*!*********************************************************!*\
  !*** ./components/HtmlComponent/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'HtmlComponent',
    loadSDK: function () {
        return Promise.resolve(/*! import() | HtmlComponent.corvid */).then(__webpack_require__.bind(null, /*! ./HtmlComponent.corvid */ 162));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 98 */
/*!*******************************************************!*\
  !*** ./components/ImageButton/corvid/entry.corvid.ts ***!
  \*******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'ImageButton',
    sdkType: 'Button',
    loadSDK: function () {
        return Promise.resolve(/*! import() | ImageButton.corvid */).then(__webpack_require__.bind(null, /*! ./ImageButton.corvid */ 163));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 99 */
/*!**************************************************!*\
  !*** ./components/ImageX/corvid/entry.corvid.ts ***!
  \**************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'ImageX',
    sdkType: 'Image',
    loadSDK: function () {
        return Promise.resolve(/*! import() | ImageX.corvid */).then(__webpack_require__.bind(null, /*! ./ImageX.corvid */ 164));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 100 */
/*!***************************************************!*\
  !*** ./components/Impress/corvid/entry.corvid.ts ***!
  \***************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Impress',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Impress.corvid */).then(__webpack_require__.bind(null, /*! ./Impress.corvid */ 165));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 101 */
/*!**********************************************************!*\
  !*** ./components/LoginSocialBar/corvid/entry.corvid.ts ***!
  \**********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'LoginSocialBar',
    sdkType: 'AccountNavBar',
    loadSDK: function () {
        return Promise.resolve(/*! import() | LoginSocialBar.corvid */).then(__webpack_require__.bind(null, /*! ./LoginSocialBar.corvid */ 57));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 102 */
/*!***************************************************!*\
  !*** ./components/Masonry/corvid/entry.corvid.ts ***!
  \***************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Masonry',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Masonry.corvid */).then(__webpack_require__.bind(null, /*! ./Masonry.corvid */ 166));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 103 */
/*!********************************************************************!*\
  !*** ./components/MediaContainers/HoverBox/corvid/entry.corvid.ts ***!
  \********************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'HoverBox',
    sdkType: 'Container',
    loadSDK: function () {
        return Promise.resolve(/*! import() | HoverBox.corvid */).then(__webpack_require__.bind(null, /*! ./HoverBox.corvid */ 167));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 104 */
/*!**************************************************************************!*\
  !*** ./components/MediaContainers/MediaContainer/corvid/entry.corvid.ts ***!
  \**************************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'MediaContainer',
    sdkType: 'Container',
    loadSDK: function () {
        return Promise.resolve(/*! import() | MediaContainer.corvid */).then(__webpack_require__.bind(null, /*! ./MediaContainer.corvid */ 56));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 105 */
/*!*********************************************************!*\
  !*** ./components/MenuContainer/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'MenuContainer',
    loadSDK: function () {
        return Promise.resolve(/*! import() | MenuContainer.corvid */).then(__webpack_require__.bind(null, /*! ./MenuContainer.corvid */ 168));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 106 */
/*!*********************************************************!*\
  !*** ./components/MultiStateBox/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'MultiStateBox',
    sdkType: 'MultiStateBox',
    loadSDK: function () {
        return Promise.resolve(/*! import() | MultiStateBox.corvid */).then(__webpack_require__.bind(null, /*! ./MultiStateBox.corvid */ 169));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 107 */
/*!*******************************************************!*\
  !*** ./components/MusicPlayer/corvid/entry.corvid.ts ***!
  \*******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'MusicPlayer',
    sdkType: 'AudioPlayer',
    loadSDK: function () {
        return Promise.resolve(/*! import() | MusicPlayer.corvid */).then(__webpack_require__.bind(null, /*! ./MusicPlayer.corvid */ 170));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 108 */
/*!*************************************************************************!*\
  !*** ./components/NativeGalleries/MatrixGallery/corvid/entry.corvid.ts ***!
  \*************************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'MatrixGallery',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | MatrixGallery.corvid */).then(__webpack_require__.bind(null, /*! ./MatrixGallery.corvid */ 171));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 109 */
/*!********************************************************************************!*\
  !*** ./components/NativeGalleries/PaginatedGridGallery/corvid/entry.corvid.ts ***!
  \********************************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'PaginatedGridGallery',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | PaginatedGridGallery.corvid */).then(__webpack_require__.bind(null, /*! ./PaginatedGridGallery.corvid */ 172));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 110 */
/*!****************************************************************************!*\
  !*** ./components/NativeGalleries/SlideShowGallery/corvid/entry.corvid.ts ***!
  \****************************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SlideShowGallery',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SlideShowGallery.corvid */).then(__webpack_require__.bind(null, /*! ./SlideShowGallery.corvid */ 233));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 111 */
/*!*************************************************************************!*\
  !*** ./components/NativeGalleries/SliderGallery/corvid/entry.corvid.ts ***!
  \*************************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SliderGallery',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SliderGallery.corvid */).then(__webpack_require__.bind(null, /*! ./SliderGallery.corvid */ 173));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 112 */
/*!**********************************************************!*\
  !*** ./components/PageBackground/corvid/entry.corvid.ts ***!
  \**********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'PageBackground',
    loadSDK: function () {
        return Promise.resolve(/*! import() | PageBackground.corvid */).then(__webpack_require__.bind(null, /*! ./PageBackground.corvid */ 174));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 113 */
/*!******************************************************!*\
  !*** ./components/Pagination/corvid/entry.corvid.ts ***!
  \******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Pagination',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Pagination.corvid */).then(__webpack_require__.bind(null, /*! ./Pagination.corvid */ 175));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 114 */
/*!****************************************************************!*\
  !*** ./components/PopupCloseIconButton/corvid/entry.corvid.ts ***!
  \****************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'PopupCloseIconButton',
    sdkType: 'Button',
    loadSDK: function () {
        return Promise.resolve(/*! import() | PopupCloseIconButton.corvid */).then(__webpack_require__.bind(null, /*! ./PopupCloseIconButton.corvid */ 176));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 115 */
/*!*******************************************************!*\
  !*** ./components/ProgressBar/corvid/entry.corvid.ts ***!
  \*******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'ProgressBar',
    loadSDK: function () {
        return Promise.resolve(/*! import() | ProgressBar.corvid */).then(__webpack_require__.bind(null, /*! ./ProgressBar.corvid */ 177));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 116 */
/*!**********************************************************!*\
  !*** ./components/QuickActionBar/corvid/entry.corvid.ts ***!
  \**********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'QuickActionBar',
    loadSDK: function () {
        return Promise.resolve(/*! import() | QuickActionBar.corvid */).then(__webpack_require__.bind(null, /*! ./QuickActionBar.corvid */ 178));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 117 */
/*!******************************************************!*\
  !*** ./components/RadioGroup/corvid/entry.corvid.ts ***!
  \******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'RadioGroup',
    sdkType: 'RadioButtonGroup',
    loadSDK: function () {
        return Promise.resolve(/*! import() | RadioGroup.corvid */).then(__webpack_require__.bind(null, /*! ./RadioGroup.corvid */ 179));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 118 */
/*!**********************************************************!*\
  !*** ./components/RatingsDisplay/corvid/entry.corvid.ts ***!
  \**********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'RatingsDisplay',
    loadSDK: function () {
        return Promise.resolve(/*! import() | RatingsDisplay.corvid */).then(__webpack_require__.bind(null, /*! ./RatingsDisplay.corvid */ 180));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 119 */
/*!********************************************************!*\
  !*** ./components/RatingsInput/corvid/entry.corvid.ts ***!
  \********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'RatingsInput',
    loadSDK: function () {
        return Promise.resolve(/*! import() | RatingsInput.corvid */).then(__webpack_require__.bind(null, /*! ./RatingsInput.corvid */ 181));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 120 */
/*!*******************************************************!*\
  !*** ./components/RichTextBox/corvid/entry.corvid.ts ***!
  \*******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'RichTextBox',
    loadSDK: function () {
        return Promise.resolve(/*! import() | RichTextBox.corvid */).then(__webpack_require__.bind(null, /*! ./RichTextBox.corvid */ 182));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 121 */
/*!*****************************************************!*\
  !*** ./components/SearchBox/corvid/entry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SearchBox',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SearchBox.corvid */).then(__webpack_require__.bind(null, /*! ./SearchBox.corvid */ 234));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 122 */
/*!*************************************************************!*\
  !*** ./components/SelectionTagsList/corvid/entry.corvid.ts ***!
  \*************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SelectionTagsList',
    sdkType: 'SelectionTags',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SelectionTagsList.corvid */).then(__webpack_require__.bind(null, /*! ./SelectionTagsList.corvid */ 235));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 123 */
/*!*********************************************************!*\
  !*** ./components/SeoTpaGallery/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SeoTpaGallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SeoTpaGallery.corvid */).then(__webpack_require__.bind(null, /*! ./SeoTpaGallery.corvid */ 183));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 124 */
/*!**********************************************************!*\
  !*** ./components/SignatureInput/corvid/entry.corvid.ts ***!
  \**********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SignatureInput',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SignatureInput.corvid */).then(__webpack_require__.bind(null, /*! ./SignatureInput.corvid */ 184));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 125 */
/*!******************************************************!*\
  !*** ./components/SiteButton/corvid/entry.corvid.ts ***!
  \******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SiteButton',
    sdkType: 'Button',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SiteButton.corvid */).then(__webpack_require__.bind(null, /*! ./SiteButton.corvid */ 36));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 126 */
/*!**************************************************************!*\
  !*** ./components/SlideShowContainer/corvid/entry.corvid.ts ***!
  \**************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SlideShowContainer',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SlideShowContainer.corvid */).then(__webpack_require__.bind(null, /*! ./SlideShowContainer.corvid */ 236));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 127 */
/*!**********************************************************!*\
  !*** ./components/SlideShowSlide/corvid/entry.corvid.ts ***!
  \**********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'SlideShowSlide',
    sdkType: 'Slide',
    loadSDK: function () {
        return Promise.resolve(/*! import() | SlideShowSlide.corvid */).then(__webpack_require__.bind(null, /*! ./SlideShowSlide.corvid */ 185));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 128 */
/*!**************************************************!*\
  !*** ./components/Slider/corvid/entry.corvid.ts ***!
  \**************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Slider',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Slider.corvid */).then(__webpack_require__.bind(null, /*! ./Slider.corvid */ 186));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 129 */
/*!****************************************************!*\
  !*** ./components/StateBox/corvid/entry.corvid.ts ***!
  \****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'StateBox',
    sdkType: 'MultiStateBox',
    loadSDK: function () {
        return Promise.resolve(/*! import() | StateBox.corvid */).then(__webpack_require__.bind(null, /*! ./StateBox.corvid */ 187));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 130 */
/*!*****************************************************************!*\
  !*** ./components/StripColumnsContainer/corvid/entry.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'StripColumnsContainer',
    sdkType: 'ColumnStrip',
    loadSDK: function () {
        return Promise.resolve(/*! import() | StripColumnsContainer.corvid */).then(__webpack_require__.bind(null, /*! ./StripColumnsContainer.corvid */ 237));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 131 */
/*!*********************************************************!*\
  !*** ./components/StripShowcase/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'StripShowcase',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | StripShowcase.corvid */).then(__webpack_require__.bind(null, /*! ./StripShowcase.corvid */ 188));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 132 */
/*!**********************************************************!*\
  !*** ./components/StripSlideshow/corvid/entry.corvid.ts ***!
  \**********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'StripSlideshow',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | StripSlideshow.corvid */).then(__webpack_require__.bind(null, /*! ./StripSlideshow.corvid */ 189));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 133 */
/*!**********************************************************!*\
  !*** ./components/StylableButton/corvid/entry.corvid.ts ***!
  \**********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'StylableButton',
    sdkType: 'Button',
    loadSDK: function () {
        return Promise.resolve(/*! import() | StylableButton.corvid */).then(__webpack_require__.bind(null, /*! ./StylableButton.corvid */ 190));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 134 */
/*!*********************************************************!*\
  !*** ./components/TPA3DCarousel/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'TPA3DCarousel',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | TPA3DCarousel.corvid */).then(__webpack_require__.bind(null, /*! ./TPA3DCarousel.corvid */ 191));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 135 */
/*!********************************************************!*\
  !*** ./components/TPA3DGallery/corvid/entry.corvid.ts ***!
  \********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'TPA3DGallery',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | TPA3DGallery.corvid */).then(__webpack_require__.bind(null, /*! ./TPA3DGallery.corvid */ 192));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 136 */
/*!*********************************************************!*\
  !*** ./components/TextAreaInput/corvid/entry.corvid.ts ***!
  \*********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'TextAreaInput',
    sdkType: 'TextBox',
    loadSDK: function () {
        return Promise.resolve(/*! import() | TextAreaInput.corvid */).then(__webpack_require__.bind(null, /*! ./TextAreaInput.corvid */ 193));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 137 */
/*!*****************************************************!*\
  !*** ./components/TextInput/corvid/entry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'TextInput',
    loadSDK: function () {
        return Promise.resolve(/*! import() | TextInput.corvid */).then(__webpack_require__.bind(null, /*! ./TextInput.corvid */ 219));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 138 */
/*!******************************************************!*\
  !*** ./components/Thumbnails/corvid/entry.corvid.ts ***!
  \******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Thumbnails',
    sdkType: 'Gallery',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Thumbnails.corvid */).then(__webpack_require__.bind(null, /*! ./Thumbnails.corvid */ 194));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 139 */
/*!******************************************************!*\
  !*** ./components/TimePicker/corvid/entry.corvid.ts ***!
  \******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'TimePicker',
    loadSDK: function () {
        return Promise.resolve(/*! import() | TimePicker.corvid */).then(__webpack_require__.bind(null, /*! ./TimePicker.corvid */ 225));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 140 */
/*!****************************************************!*\
  !*** ./components/TinyMenu/corvid/entry.corvid.ts ***!
  \****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'TinyMenu',
    sdkType: 'MobileMenu',
    loadSDK: function () {
        return Promise.resolve(/*! import() | TinyMenu.corvid */).then(__webpack_require__.bind(null, /*! ./TinyMenu.corvid */ 195));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 141 */
/*!********************************************************!*\
  !*** ./components/ToggleSwitch/corvid/entry.corvid.ts ***!
  \********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'ToggleSwitch',
    sdkType: 'Switch',
    loadSDK: function () {
        return Promise.resolve(/*! import() | ToggleSwitch.corvid */).then(__webpack_require__.bind(null, /*! ./ToggleSwitch.corvid */ 196));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 142 */
/*!*******************************************************!*\
  !*** ./components/VectorImage/corvid/entry.corvid.ts ***!
  \*******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'VectorImage',
    loadSDK: function () {
        return Promise.resolve(/*! import() | VectorImage.corvid */).then(__webpack_require__.bind(null, /*! ./VectorImage.corvid */ 197));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 143 */
/*!********************************************************!*\
  !*** ./components/VerticalMenu/corvid/entry.corvid.ts ***!
  \********************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'VerticalMenu',
    sdkType: 'Menu',
    loadSDK: function () {
        return Promise.resolve(/*! import() | VerticalMenu.corvid */).then(__webpack_require__.bind(null, /*! ./VerticalMenu.corvid */ 212));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 144 */
/*!**********************************************************************!*\
  !*** ./components/VideoBoxContainer/VideoBox/corvid/entry.corvid.ts ***!
  \**********************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'MediaPlayer',
    loadSDK: function () {
        return Promise.resolve(/*! import() | VideoBox.corvid */).then(__webpack_require__.bind(null, /*! ./VideoBox.corvid */ 213));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 145 */
/*!*******************************************************!*\
  !*** ./components/VideoLegacy/corvid/entry.corvid.ts ***!
  \*******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Video',
    loadSDK: function () {
        return Promise.resolve(/*! import() | VideoLegacy.corvid */).then(__webpack_require__.bind(null, /*! ./VideoLegacy.corvid */ 238));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 146 */
/*!*******************************************************!*\
  !*** ./components/VideoPlayer/corvid/entry.corvid.ts ***!
  \*******************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'VideoPlayer',
    loadSDK: function () {
        return Promise.resolve(/*! import() | VideoPlayer.corvid */).then(__webpack_require__.bind(null, /*! ./VideoPlayer.corvid */ 214));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 147 */
/*!**************************************************!*\
  !*** ./components/WPhoto/corvid/entry.corvid.ts ***!
  \**************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'WPhoto',
    sdkType: 'Image',
    loadSDK: function () {
        return Promise.resolve(/*! import() | WPhoto.corvid */).then(__webpack_require__.bind(null, /*! ./WPhoto.corvid */ 239));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 148 */
/*!*****************************************************!*\
  !*** ./components/WRichText/corvid/entry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'WRichText',
    sdkType: 'Text',
    loadSDK: function () {
        return Promise.resolve(/*! import() | WRichText.corvid */).then(__webpack_require__.bind(null, /*! ./WRichText.corvid */ 218));
    },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 149 */
/*!*************************************************************!*\
  !*** ./thunderbolt-core-components sync entry\.corvid\.ts$ ***!
  \*************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"./Page/corvid/entry.corvid.ts": 150
};


function webpackContext(req) {
	var id = webpackContextResolve(req);
	return __webpack_require__(id);
}
function webpackContextResolve(req) {
	if(!__webpack_require__.o(map, req)) {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	}
	return map[req];
}
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 149;

/***/ }),
/* 150 */
/*!*****************************************************************!*\
  !*** ./thunderbolt-core-components/Page/corvid/entry.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./thunderbolt-core-components sync entry\.corvid\.ts$ (referenced with context element) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
var entry = {
    componentType: 'Page',
    loadSDK: function () { return Promise.resolve(/*! import() | Page.corvid */).then(__webpack_require__.bind(null, /*! ./Page.corvid */ 217)); },
};
/* harmony default export */ __webpack_exports__["default"] = (entry);


/***/ }),
/* 151 */
/*!*********************************************************!*\
  !*** ./components/Accordion/corvid/Accordion.corvid.ts ***!
  \*********************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Accordion/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);




var capabilities = {
    isPlayable: false,
    hasCurrentItem: false,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 152 */
/*!***************************************************!*\
  !*** ./components/Anchor/corvid/Anchor.corvid.ts ***!
  \***************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Anchor/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 52);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 43);




var anchorSDKFactory = function (_a) {
    var props = _a.props, metaData = _a.metaData;
    return ({
        get name() {
            return props.name;
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* toJSONBase */ "b"])(metaData)), { name: props.name });
        },
    });
};
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* basePropsSDKFactory */ "a"], Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* createViewportPropsSDKFactory */ "a"])(), anchorSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 153 */
/*!*****************************************************!*\
  !*** ./components/Captcha/corvid/Captcha.corvid.ts ***!
  \*****************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Captcha/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 33);




var _ownSDKFactory = function (api) {
    var props = api.props, compRef = api.compRef, metaData = api.metaData;
    return {
        blur: function () { },
        get token() {
            return props.token;
        },
        reset: function () {
            compRef.reset();
        },
        onError: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onError', api, handler); },
        onTimeout: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onTimeout', api, handler); },
        onVerified: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onVerified', api, handler); },
        toJSON: function () {
            var token = props.token;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* toJSONBase */ "b"])(metaData)), { token: token });
        },
    };
};
var ownSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* withValidation */ "b"])(_ownSDKFactory, {
    type: ['object'],
    properties: {},
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* focusPropsSDKFactory */ "a"], ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_4__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 154 */
/*!*****************************************************!*\
  !*** ./components/Collage/corvid/Collage.corvid.ts ***!
  \*****************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Collage/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);




var capabilities = {
    isPlayable: false,
    hasCurrentItem: false,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 155 */
/*!***********************************!*\
  !*** (webpack)/buildin/module.js ***!
  \***********************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports) {

module.exports = function(module) {
	if (!module.webpackPolyfill) {
		module.deprecate = function() {};
		module.paths = [];
		// module.parent = undefined by default
		if (!module.children) module.children = [];
		Object.defineProperty(module, "loaded", {
			enumerable: true,
			get: function() {
				return module.l;
			}
		});
		Object.defineProperty(module, "id", {
			enumerable: true,
			get: function() {
				return module.i;
			}
		});
		module.webpackPolyfill = 1;
	}
	return module;
};


/***/ }),
/* 156 */
/*!*************************************************************************************************!*\
  !*** ./components/CustomElement/CustomElementComponent/corvid/CustomElementComponent.corvid.ts ***!
  \*************************************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/CustomElement/CustomElementComponent/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 3);




var _customElementComponent = function (_a) {
    var setProps = _a.setProps, props = _a.props, registerEvent = _a.registerEvent, createSdkState = _a.createSdkState;
    var _b = createSdkState({}), state = _b[0], setState = _b[1];
    registerEvent('handleEvents', function (event) {
        if (state[event.type]) {
            state[event.type].forEach(function (customEventHandler) {
                return customEventHandler(event);
            });
        }
    });
    return {
        get seoMarkup() {
            return props.seoMarkup;
        },
        set seoMarkup(value) {
            setProps({ seoMarkup: value });
        },
        setAttribute: function (key, value) {
            var _a;
            setProps({ attributes: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.attributes), (_a = {}, _a[key] = value, _a)) });
        },
        on: function (eventName, callBackFunction) {
            var _a, _b;
            if (state[eventName]) {
                setState((_a = {},
                    _a[eventName] = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(state[eventName], [callBackFunction]),
                    _a));
            }
            else {
                setState((_b = {},
                    _b[eventName] = [callBackFunction],
                    _b));
            }
            setProps({ events: Object.keys(state) });
        },
    };
};
var customElementComponent = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_customElementComponent, {
    type: ['object'],
    properties: {
        seoMarkup: { type: ['string'] },
    },
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, customElementComponent);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 157 */
/*!***************************************************************!*\
  !*** ./components/DropDownMenu/corvid/DropDownMenu.corvid.ts ***!
  \***************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/DropDownMenu/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _core_corvid_Menu_Menu_corvid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../core/corvid/Menu/Menu.corvid */ 41);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return _core_corvid_Menu_Menu_corvid__WEBPACK_IMPORTED_MODULE_0__["a"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _core_corvid_Menu_Menu_corvid__WEBPACK_IMPORTED_MODULE_0__["a"]; });





/***/ }),
/* 158 */
/*!*****************************************************************!*\
  !*** ./components/FormContainer/corvid/FormContainer.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: stylePropsSDKFactory, formContainerSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/FormContainer/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stylePropsSDKFactory", function() { return stylePropsSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formContainerSDKFactory", function() { return formContainerSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 37);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 34);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);




var stylePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* createStylePropsSDKFactory */ "a"])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
});
var formContainerSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return ({
        get type() {
            return '$w.Form';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* toJSONBase */ "b"])(metaData)), { type: '$w.Form' });
        },
    });
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* childrenPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* clickPropsSDKFactory */ "a"], stylePropsSDKFactory, formContainerSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 159 */
/*!*********************************************************!*\
  !*** ./components/Freestyle/corvid/Freestyle.corvid.ts ***!
  \*********************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Freestyle/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);




var capabilities = {
    isPlayable: false,
    hasCurrentItem: false,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 160 */
/*!*************************************************!*\
  !*** ./components/Group/corvid/Group.corvid.ts ***!
  \*************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Group/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Container_corvid_Container_corvid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../Container/corvid/Container.corvid */ 49);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return _Container_corvid_Container_corvid__WEBPACK_IMPORTED_MODULE_0__["sdk"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _Container_corvid_Container_corvid__WEBPACK_IMPORTED_MODULE_0__["sdk"]; });





/***/ }),
/* 161 */
/*!*********************************************************!*\
  !*** ./components/Honeycomb/corvid/Honeycomb.corvid.ts ***!
  \*********************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Honeycomb/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);




var capabilities = {
    isPlayable: false,
    hasCurrentItem: false,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 162 */
/*!*****************************************************************!*\
  !*** ./components/HtmlComponent/corvid/HtmlComponent.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: _htmlComponentSdkFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/HtmlComponent/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_htmlComponentSdkFactory", function() { return _htmlComponentSdkFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);



var _htmlComponentSdkFactory = function (api) {
    var setProps = api.setProps, props = api.props, compRef = api.compRef, metaData = api.metaData, getSdkInstance = api.getSdkInstance;
    var messageValidator = function (value, setterName) {
        return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* createCompSchemaValidator */ "a"])(metaData.role)(value, {
            type: ['string', 'function', 'number', 'boolean', 'array', 'object'],
        }, setterName);
    };
    return {
        get scrolling() {
            return props.scrolling;
        },
        set scrolling(value) {
            setProps({ scrolling: value });
        },
        get src() {
            return props.url;
        },
        set src(value) {
            setProps({ url: value });
        },
        allowFullScreen: function () {
            setProps({ allow: 'fullscreen' });
            return getSdkInstance();
        },
        onMessage: function (cb) {
            return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onMessage', api, cb, function (_a) {
                var componentEvent = _a.componentEvent;
                return componentEvent;
            });
        },
        postMessage: function (message) {
            if (!messageValidator(message, 'postMessage')) {
                return getSdkInstance();
            }
            compRef.postMessage(message);
            return getSdkInstance();
        },
    };
};
var htmlComponentSdkFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_htmlComponentSdkFactory, {
    type: ['object'],
    properties: {
        src: { type: ['string'] },
        scrolling: { type: ['string'], enum: ['yes', 'no', 'auto'] },
        allowFullScreen: { type: ['function'] },
    },
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, htmlComponentSdkFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 163 */
/*!*************************************************************!*\
  !*** ./components/ImageButton/corvid/ImageButton.corvid.ts ***!
  \*************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/ImageButton/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _SiteButton_corvid_SiteButton_corvid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../SiteButton/corvid/SiteButton.corvid */ 36);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return _SiteButton_corvid_SiteButton_corvid__WEBPACK_IMPORTED_MODULE_0__["sdk"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _SiteButton_corvid_SiteButton_corvid__WEBPACK_IMPORTED_MODULE_0__["sdk"]; });





/***/ }),
/* 164 */
/*!***************************************************!*\
  !*** ./components/ImageX/corvid/ImageX.corvid.ts ***!
  \***************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/ImageX/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 59);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/media/mediaSrcHandler */ 21);





var clickActionValues = {
    show: 'link',
    disable: 'none',
};
var _imageXSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, metaData = _a.metaData;
    return ({
        get src() {
            return props.defaultSrc;
        },
        set src(value) {
            var src = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(value) ? '' : value;
            var _a = Object(_core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_9__[/* parseMediaSrc */ "c"])(src, 'image'), height = _a.height, width = _a.width, name = _a.title, error = _a.error, uri = _a.mediaId;
            if (error) {
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])("The \"src\" property cannot be set to \"src\". It must be a valid URL starting with \"http://\", \"https://\", or \"wix:image://\".");
                return;
            }
            var currentImageData = props.imageInfo.imageData;
            var updatedImageData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, currentImageData), { width: width || currentImageData.width, height: height || currentImageData.height, uri: uri || currentImageData.uri, name: name || currentImageData.name, crop: null });
            setProps({
                defaultSrc: src,
                imageInfo: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.imageInfo), { containerId: metaData.compId, imageData: updatedImageData, sourceSets: props.imageInfo.sourceSets.map(function (sourceSet) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, sourceSet), { src: undefined })); }) }),
            });
        },
        get alt() {
            return props.imageInfo.imageData.alt;
        },
        set alt(value) {
            var altValue = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(value) ? '' : value;
            setProps({
                imageInfo: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.imageInfo), { containerId: metaData.compId, imageData: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.imageInfo.imageData), { alt: altValue }) }),
            });
        },
        get clickAction() {
            return props.showLink ? clickActionValues.show : clickActionValues.disable;
        },
        set clickAction(value) {
            var newPropVal = clickActionValues.show === value;
            setProps({ showLink: newPropVal });
        },
        get name() {
            return props.imageInfo.imageData.name;
        },
        set name(value) {
            setProps({
                imageInfo: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.imageInfo), { containerId: metaData.compId, imageData: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.imageInfo.imageData), { name: value }) }),
            });
        },
        get type() {
            return '$w.Image';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* toJSONBase */ "b"])(metaData)), { type: '$w.Image', alt: props.imageInfo.imageData.alt, src: props.defaultSrc, name: props.imageInfo.imageData.name });
        },
    });
};
var imageXSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* withValidation */ "b"])(_imageXSDKFactory, {
    type: ['object'],
    properties: {
        src: { type: ['string', 'nil'], warnIfNil: true },
        alt: { type: ['string', 'nil'], warnIfNil: true },
        name: { type: ['string', 'nil'], warnIfNil: true },
        clickAction: { type: ['string'], enum: Object.values(clickActionValues) },
    },
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* linkPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* clickPropsSDKFactory */ "a"], imageXSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_5__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 165 */
/*!*****************************************************!*\
  !*** ./components/Impress/corvid/Impress.corvid.ts ***!
  \*****************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Impress/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryCurrentItemSDK */ 25);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryPlayableSDK */ 27);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);






var capabilities = {
    isPlayable: true,
    hasCurrentItem: true,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryCurrentItemSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__[/* tpaGalleryPlayableSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 166 */
/*!*****************************************************!*\
  !*** ./components/Masonry/corvid/Masonry.corvid.ts ***!
  \*****************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Masonry/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);




var capabilities = {
    isPlayable: false,
    hasCurrentItem: false,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 167 */
/*!***********************************************************************!*\
  !*** ./components/MediaContainers/HoverBox/corvid/HoverBox.corvid.ts ***!
  \***********************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/MediaContainers/HoverBox/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories_backgroundPropsSDKFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../core/corvid/props-factories/backgroundPropsSDKFactory */ 47);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 34);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 20);





var type = '$w.HoverBox';
var hoverBoxSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return {
        get type() {
            return type;
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* toJSONBase */ "b"])(metaData)), { type: type });
        },
    };
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, hoverBoxSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* childrenPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* clickPropsSDKFactory */ "a"], _core_corvid_props_factories_backgroundPropsSDKFactory__WEBPACK_IMPORTED_MODULE_3__[/* backgroundPropsSDKFactory */ "a"]);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 168 */
/*!*****************************************************************!*\
  !*** ./components/MenuContainer/corvid/MenuContainer.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/MenuContainer/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories_elementPropsSDKFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../core/corvid/props-factories/elementPropsSDKFactory */ 3);



var _sdk = function (_a) {
    var handlers = _a.handlers, metaData = _a.metaData;
    return ({
        open: function () {
            handlers.openMenuContainer(metaData.compId);
        },
        close: function () {
            handlers.closeMenuContainer(metaData.compId);
        },
    });
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories_elementPropsSDKFactory__WEBPACK_IMPORTED_MODULE_2__[/* createElementPropsSDKFactory */ "a"])({
    useHiddenCollapsed: false,
});
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _sdk);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 169 */
/*!*****************************************************************!*\
  !*** ./components/MultiStateBox/corvid/MultiStateBox.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: stateBoxStateSdk, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/MultiStateBox/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stateBoxStateSdk", function() { return stateBoxStateSdk; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 3);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 47);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 70);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 29);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 20);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 34);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);



var multiStateBoxState = function (_a) {
    var getSdkInstance = _a.getSdkInstance, metaData = _a.metaData;
    return ({
        get type() {
            return '$w.State';
        },
        toJSON: function () {
            var sdkInstance = getSdkInstance();
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* toJSONBase */ "b"])(metaData)), { type: sdkInstance.type, background: sdkInstance.background.src });
        },
    });
};
var stateBoxStateSdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* backgroundPropsSDKFactory */ "a"], multiStateBoxState);
var stateBoxSDKFactory = function (api) {
    var props = api.props, getChildren = api.getChildren, metaData = api.metaData, setProps = api.setProps;
    var createStateSDKInstance = function (sdkInstance) { return (Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, sdkInstance), stateBoxStateSdk(api))); };
    var sdk = {
        get currentState() {
            var states = getChildren();
            var selectedState = states.find(function (_a) {
                var uniqueId = _a.uniqueId;
                return uniqueId === props.selectedStateId;
            });
            var instance = selectedState ? selectedState : states[0];
            return createStateSDKInstance(instance);
        },
        get states() {
            return getChildren().map(createStateSDKInstance);
        },
        changeState: function (stateReference) {
            var states = getChildren();
            var currentStateId = props.selectedStateId;
            var nextState = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* assert */ "a"].isString(stateReference)
                ? states.find(function (_a) {
                    var role = _a.role;
                    return role === stateReference;
                })
                : stateReference;
            var nextStateId = nextState === null || nextState === void 0 ? void 0 : nextState.uniqueId;
            if (currentStateId === nextStateId) {
                return Promise.resolve(this.currentState);
            }
            return new Promise(function (resolve) {
                setProps({ selectedStateId: nextStateId });
                resolve(nextState);
            });
        },
        get type() {
            return '$w.MultiStateBox';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* toJSONBase */ "b"])(metaData)), { type: sdk.type, currentStateId: sdk.currentState.id });
        },
    };
    return sdk;
};
var customRules = {
    changeState: [_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* isValidStateReference */ "a"]],
};
var stateBox = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__[/* withValidation */ "b"])(stateBoxSDKFactory, {
    type: ['object'],
    properties: {
        changeState: {
            type: ['function'],
            args: [{ type: ['object', 'string'] }],
        },
    },
}, customRules);
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* createElementPropsSDKFactory */ "a"])(), _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_7__[/* changePropsSDKFactory */ "a"], _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_8__[/* clickPropsSDKFactory */ "a"], _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_9__[/* childrenPropsSDKFactory */ "a"], stateBox);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_10__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 170 */
/*!*************************************************************!*\
  !*** ./components/MusicPlayer/corvid/MusicPlayer.corvid.ts ***!
  \*************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/MusicPlayer/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 8);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/media/mediaSrcHandler */ 21);
/* harmony import */ var _core_corvid_props_factories_elementPropsSDKFactory__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories/elementPropsSDKFactory */ 3);
/* harmony import */ var _core_corvid_media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/media/mediaItemUtils */ 26);






var BASE_URL = 'https://music.wixstatic.com/mp3'; // TODO StaticMusicUrl
var BASE_MEDIA_URL = 'https://static.wixstatic.com/media';
var isValidSrc = function (url) {
    url = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(url) ? '' : url;
    if (Object(_core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_8__[/* isValidMediaSrc */ "b"])(url, 'audio')) {
        return true;
    }
    Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* templates */ "a"].error_invalid_url({
        url: url,
        type: 'audio',
        prefix: 'wix:audio://',
    }));
    return false;
};
var isValidCover = function (url) {
    url = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(url) ? '' : url;
    if (Object(_core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_8__[/* isValidMediaSrc */ "b"])(url, 'image')) {
        return true;
    }
    Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* templates */ "a"].error_invalid_url({
        url: url,
        type: 'image',
        prefix: 'wix:image://',
    }));
    return false;
};
var customRules = {
    src: [isValidSrc],
    coverImage: [isValidCover],
};
var externalUrl = /(^https?)|(^data)|(^blob)|(^\/\/)/;
var _musicPlayerSDKFactory = function (api) {
    var setProps = api.setProps, props = api.props, sdkData = api.sdkData, compRef = api.compRef, metaData = api.metaData;
    return {
        get artistName() {
            return props.playlist[0].artistName;
        },
        set artistName(value) {
            setProps({ playlist: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playlist[0]), { artistName: value })] });
        },
        get trackName() {
            return props.playlist[0].trackName;
        },
        set trackName(value) {
            setProps({ playlist: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playlist[0]), { trackName: value })] });
        },
        get coverImage() {
            if (props.rawCover) {
                return props.rawCover;
            }
            var _a = (sdkData === null || sdkData === void 0 ? void 0 : sdkData.coverData) || {}, uri = _a.uri, height = _a.height, width = _a.width, title = _a.title;
            if (!uri) {
                return '';
            }
            if (externalUrl.test(uri)) {
                return uri;
            }
            var mediaItemUri = Object(_core_corvid_media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_10__[/* createMediaItemUri */ "a"])({
                mediaId: uri,
                width: width,
                height: height,
                title: title,
                type: 'image',
            });
            if (mediaItemUri.error) {
                return '';
            }
            return mediaItemUri.item || '';
        },
        set coverImage(value) {
            var mediaData = Object(_core_corvid_media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_10__[/* parseMediaItemUri */ "c"])(value);
            var cover = 'mediaId' in mediaData
                ? BASE_MEDIA_URL + "/" + mediaData.mediaId
                : value;
            setProps({
                playlist: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playlist[0]), { cover: cover })],
                rawCover: value,
            });
        },
        get src() {
            if (props.rawSrc) {
                return props.rawSrc;
            }
            var duration = props.duration ? Math.round(props.duration) : undefined;
            var _a = (sdkData === null || sdkData === void 0 ? void 0 : sdkData.audioData) || {}, title = _a.title, uri = _a.uri;
            if (!uri) {
                return '';
            }
            if (externalUrl.test(uri)) {
                return uri;
            }
            var mediaItemUri = Object(_core_corvid_media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_10__[/* createMediaItemUri */ "a"])({
                mediaId: uri,
                duration: duration,
                title: title,
                type: 'audio',
            });
            if (mediaItemUri.error) {
                return '';
            }
            return mediaItemUri.item || '';
        },
        set src(value) {
            var mediaData = Object(_core_corvid_media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_10__[/* parseMediaItemUri */ "c"])(value);
            var url = 'mediaId' in mediaData ? BASE_URL + "/" + mediaData.mediaId : value;
            setProps({
                playlist: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playlist[0]), { url: url })],
                rawSrc: value,
            });
        },
        get currentTime() {
            return props.currentTime;
        },
        get duration() {
            return props.duration;
        },
        get volume() {
            return _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(props.volume) ? 100 : props.volume * 100;
        },
        set volume(value) {
            if (!_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(value)) {
                setProps({ volume: value / 100 });
            }
        },
        get isMuted() {
            return _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(props.muted) ? false : props.muted;
        },
        get isPlaying() {
            return _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(props.isPlaying) ? false : props.isPlaying;
        },
        mute: function () {
            return new Promise(function (resolve) {
                setProps({ muted: true });
                resolve();
            });
        },
        unmute: function () {
            return new Promise(function (resolve) {
                setProps({ muted: false });
                resolve();
            });
        },
        seek: function (time) {
            return compRef.seek(time);
        },
        play: function () {
            return compRef.play();
        },
        pause: function () {
            return compRef.pause();
        },
        stop: function () {
            compRef.pause();
            return compRef.seek(0);
        },
        togglePlay: function () {
            return compRef.togglePlay();
        },
        onPlay: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onPlay', api, handler); },
        onPause: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onPause', api, handler); },
        onEnded: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onEnded', api, handler); },
        onProgress: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onTimeUpdated', api, handler); },
        get type() {
            return '$w.MusicPlayer';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories_elementPropsSDKFactory__WEBPACK_IMPORTED_MODULE_9__[/* toJSONBase */ "b"])(metaData)), { type: '$w.MusicPlayer', artistName: props.playlist[0].artistName, trackName: props.playlist[0].trackName, volume: props.volume, isPlaying: props.isPlaying, isMuted: props.muted, currentTime: props.currentTime, duration: props.duration });
        },
    };
};
var musicPlayerSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* withValidation */ "b"])(_musicPlayerSDKFactory, {
    type: ['object'],
    properties: {
        artistName: { type: ['string', 'nil'], warnIfNil: true },
        trackName: { type: ['string', 'nil'], warnIfNil: true },
        coverImage: { type: ['string', 'nil'], warnIfNil: true },
        src: { type: ['string', 'nil'], warnIfNil: true },
        currentTime: { type: ['number', 'nil'], warnIfNil: true },
        duration: { type: ['number', 'nil'], warnIfNil: true },
        volume: {
            type: ['number', 'nil'],
            minimum: 0,
            maximum: 100,
            warnIfNil: true,
        },
        seek: { type: ['function'], args: [{ type: ['number'] }] },
    },
}, customRules);
var elementPropsSDKFactory = Object(_core_corvid_props_factories_elementPropsSDKFactory__WEBPACK_IMPORTED_MODULE_9__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, musicPlayerSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_7__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 171 */
/*!*********************************************************************************!*\
  !*** ./components/NativeGalleries/MatrixGallery/corvid/MatrixGallery.corvid.ts ***!
  \*********************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/NativeGalleries/MatrixGallery/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 60);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 61);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 71);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 62);
/* harmony import */ var _core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../core/corvid/galleries/GallerySDKUtils */ 15);





var matrixGallerySDKFactory = function (api) {
    var sdkData = api.sdkData, props = api.props, metaData = api.metaData, setProps = api.setProps, linkUtils = api.linkUtils;
    var reportUnsupportedAPI = Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_8__[/* createUnsupportedAPIReporter */ "c"])('MatrixGallery');
    var clickActionSDK = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* clickActionSDKFactory */ "a"])(api);
    var sdkProps = {
        get clickAction() {
            return clickActionSDK.clickAction;
        },
        set clickAction(clickAction) {
            clickActionSDK.clickAction = clickAction;
        },
        get items() {
            return Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_8__[/* convertGalleryItemsToUserModel */ "a"])(props.items, linkUtils);
        },
        set items(items) {
            var propsItems = Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_8__[/* convertToGalleryItemsPropsOrReport */ "b"])(items, metaData.role, metaData.compId, sdkData.dataId, linkUtils, sdkData.imageDisplayMode);
            if (propsItems) {
                setProps({ items: propsItems });
            }
        },
        get galleryCapabilities() {
            return {
                hasCurrentItem: false,
                hasNavigationButtons: false,
                isAnimatable: true,
                isPlayable: false,
                supportsAllMediaTypes: false,
            };
        },
        get showNavigationButtons() {
            return reportUnsupportedAPI('showNavigationButtons');
        },
        set showNavigationButtons(showNavigationButtons) {
            reportUnsupportedAPI('showNavigationButtons');
        },
        get type() {
            return '$w.Gallery';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* toJSONBase */ "b"])(metaData)), { clickAction: this.clickAction, items: Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_8__[/* convertGalleryItemsToUserModel */ "a"])(props.items, linkUtils), type: '$w.Gallery' });
        },
    };
    return sdkProps;
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* onItemClickSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* unsupportedPlayablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* unsupportedCurrentItemPropsSDKFactory */ "a"], matrixGallerySDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 172 */
/*!***********************************************************************************************!*\
  !*** ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts ***!
  \***********************************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/NativeGalleries/PaginatedGridGallery/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 3);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 243);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 60);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 242);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 61);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 62);
/* harmony import */ var _core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../core/corvid/galleries/GallerySDKUtils */ 15);





var paginatedGridGallerySDKFactory = function (api) {
    var sdkData = api.sdkData, props = api.props, metaData = api.metaData, setProps = api.setProps, linkUtils = api.linkUtils, compRef = api.compRef, getSdkInstance = api.getSdkInstance, createSdkState = api.createSdkState;
    var _a = createSdkState({
        navigationEndCallbacks: [],
    }), state = _a[0], setState = _a[1];
    Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* registerEventOnce */ "d"])({
        eventName: 'onNavigationEnd',
        api: api,
        cb: function () {
            state.navigationEndCallbacks.forEach(function (cb) { return cb(); });
            setState({ navigationEndCallbacks: [] });
        },
    });
    return {
        next: function () {
            return new Promise(function (resolve) {
                setState({
                    navigationEndCallbacks: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(state.navigationEndCallbacks, [resolve]),
                });
                compRef.next();
            });
        },
        previous: function () {
            return new Promise(function (resolve) {
                setState({
                    navigationEndCallbacks: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(state.navigationEndCallbacks, [resolve]),
                });
                compRef.previous();
            });
        },
        get isPlaying() {
            var isPlaying = props.isPlaying;
            if (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* assert */ "a"].isBoolean(isPlaying)) {
                return isPlaying;
            }
            var numberOfItemsPerPage = props.rows * props.columns;
            var numberOfPages = Math.ceil(props.items.length / numberOfItemsPerPage);
            return props.autoPlay && numberOfPages > 1;
        },
        get items() {
            return Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_11__[/* convertGalleryItemsToUserModel */ "a"])(props.items, linkUtils);
        },
        set items(items) {
            var propsItems = Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_11__[/* convertToGalleryItemsPropsOrReport */ "b"])(items, metaData.role, metaData.compId, sdkData.dataId, linkUtils, sdkData.imageDisplayMode);
            if (propsItems) {
                setProps({ items: propsItems });
            }
        },
        get galleryCapabilities() {
            return {
                hasCurrentItem: false,
                hasNavigationButtons: true,
                isAnimatable: true,
                isPlayable: true,
                supportsAllMediaTypes: false,
            };
        },
        get type() {
            return '$w.Gallery';
        },
        toJSON: function () {
            var _a = getSdkInstance(), clickAction = _a.clickAction, showNavigationButtons = _a.showNavigationButtons, items = _a.items;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* toJSONBase */ "b"])(metaData)), { clickAction: clickAction,
                showNavigationButtons: showNavigationButtons,
                items: items, type: '$w.Gallery' });
        },
    };
};
var elementPropsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* clickActionSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* navigationButtonsSDKFactory */ "a"], _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* playablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* onItemClickSDKFactory */ "a"], paginatedGridGallerySDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* unsupportedCurrentItemPropsSDKFactory */ "a"]);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 173 */
/*!*********************************************************************************!*\
  !*** ./components/NativeGalleries/SliderGallery/corvid/SliderGallery.corvid.ts ***!
  \*********************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/NativeGalleries/SliderGallery/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 3);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 60);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 71);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 61);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../core/corvid/props-factories */ 62);
/* harmony import */ var _core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../core/corvid/galleries/GallerySDKUtils */ 15);




var SliderGallerySDKFactory = function (api) {
    var sdkData = api.sdkData, props = api.props, metaData = api.metaData, setProps = api.setProps, linkUtils = api.linkUtils, getSdkInstance = api.getSdkInstance;
    var reportUnsupportedAPI = Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_7__[/* createUnsupportedAPIReporter */ "c"])('SliderGallery');
    return {
        get items() {
            return Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_7__[/* convertGalleryItemsToUserModel */ "a"])(props.items, linkUtils);
        },
        set items(items) {
            var propsItems = Object(_core_corvid_galleries_GallerySDKUtils__WEBPACK_IMPORTED_MODULE_7__[/* convertToGalleryItemsPropsOrReport */ "b"])(items, metaData.role, metaData.compId, sdkData.dataId, linkUtils, sdkData.imageDisplayMode);
            if (propsItems) {
                setProps({ items: propsItems });
            }
        },
        get showNavigationButtons() {
            return reportUnsupportedAPI('showNavigationButtons');
        },
        set showNavigationButtons(showNavigationButtons) {
            reportUnsupportedAPI('showNavigationButtons');
        },
        get galleryCapabilities() {
            return {
                isPlayable: false,
                hasCurrentItem: false,
                hasNavigationButtons: false,
                supportsAllMediaTypes: false,
                isAnimatable: true,
            };
        },
        get type() {
            return '$w.Gallery';
        },
        toJSON: function () {
            var _a = getSdkInstance(), clickAction = _a.clickAction, items = _a.items;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* toJSONBase */ "b"])(metaData)), { clickAction: clickAction,
                items: items, type: '$w.Gallery' });
        },
    };
};
var elementPropsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* clickActionSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* unsupportedPlayablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* onItemClickSDKFactory */ "a"], SliderGallerySDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* unsupportedCurrentItemPropsSDKFactory */ "a"]);
/* harmony default export */ __webpack_exports__["default"] = (sdk);


/***/ }),
/* 174 */
/*!*******************************************************************!*\
  !*** ./components/PageBackground/corvid/PageBackground.corvid.ts ***!
  \*******************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/PageBackground/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories_backgroundPropsSDKFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../core/corvid/props-factories/backgroundPropsSDKFactory */ 47);



var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_core_corvid_props_factories_backgroundPropsSDKFactory__WEBPACK_IMPORTED_MODULE_2__[/* backgroundPropsSDKFactory */ "a"]);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 175 */
/*!***********************************************************!*\
  !*** ./components/Pagination/corvid/Pagination.corvid.ts ***!
  \***********************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Pagination/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 8);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 29);




var paginationSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, metaData = _a.metaData;
    var schemaValidator = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* createCompSchemaValidator */ "a"])(metaData.role);
    return {
        get currentPage() {
            return props.currentPage;
        },
        set currentPage(newCurrentPage) {
            if (!schemaValidator(newCurrentPage, {
                type: ['integer', 'nil'],
                minimum: 1,
                maximum: props.totalPages,
                warnIfNil: true,
            }, 'currentPage')) {
                return;
            }
            setProps({
                currentPage: _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* assert */ "a"].isNil(newCurrentPage) ? 1 : newCurrentPage,
            });
        },
        get totalPages() {
            return props.totalPages;
        },
        set totalPages(newTotalPages) {
            if (!schemaValidator(newTotalPages, { type: ['integer'], minimum: 1 }, 'totalPages')) {
                return;
            }
            if (props.currentPage > newTotalPages) {
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* reportWarning */ "b"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* templates */ "a"].warning_value_changed({
                    propertyName: 'totalPages',
                    compName: metaData.role,
                    newValue: String(newTotalPages),
                    changedProperty: 'currentPage',
                }));
                setProps({ totalPages: newTotalPages, currentPage: newTotalPages });
            }
            else {
                setProps({ totalPages: newTotalPages });
            }
        },
        toJSON: function () {
            var currentPage = props.currentPage, totalPages = props.totalPages;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* toJSONBase */ "b"])(metaData)), { currentPage: currentPage,
                totalPages: totalPages });
        },
    };
};
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* composeSDKFactories */ "a"])(Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* createElementPropsSDKFactory */ "a"])(), _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* clickPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* changePropsSDKFactory */ "a"], paginationSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 176 */
/*!*******************************************************************************!*\
  !*** ./components/PopupCloseIconButton/corvid/PopupCloseIconButton.corvid.ts ***!
  \*******************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/PopupCloseIconButton/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _SiteButton_corvid_SiteButton_corvid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../SiteButton/corvid/SiteButton.corvid */ 36);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return _SiteButton_corvid_SiteButton_corvid__WEBPACK_IMPORTED_MODULE_0__["sdk"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _SiteButton_corvid_SiteButton_corvid__WEBPACK_IMPORTED_MODULE_0__["sdk"]; });





/***/ }),
/* 177 */
/*!*************************************************************!*\
  !*** ./components/ProgressBar/corvid/ProgressBar.corvid.ts ***!
  \*************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/ProgressBar/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 3);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 8);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 12);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 37);




var progressBarSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, metaData = _a.metaData;
    return ({
        get value() {
            return props.value;
        },
        set value(value) {
            setProps({ value: value });
        },
        get targetValue() {
            var _a;
            return (_a = props.targetValue) !== null && _a !== void 0 ? _a : 100;
        },
        set targetValue(value) {
            setProps({ targetValue: value });
        },
        get type() {
            return '$w.ProgressBar';
        },
        toJSON: function () {
            var _a;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* toJSONBase */ "b"])(metaData)), { type: '$w.ProgressBar', value: props.value, targetValue: (_a = props.targetValue) !== null && _a !== void 0 ? _a : 100 });
        },
    });
};
var validateLargerThanZero = function (propertyName) { return function (value) {
    var isValid = value > 0;
    if (!isValid) {
        Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* templates */ "a"].error_larger_than({
            functionName: propertyName,
            propertyName: propertyName,
            minimum: 0,
            value: value,
        }));
    }
    return isValid;
}; };
var validateAtLeastZero = function (propertyName) { return function (value) {
    var isValid = value >= 0;
    if (!isValid) {
        Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* templates */ "a"].error_at_least({
            functionName: propertyName,
            propertyName: propertyName,
            minimum: 0,
            value: value,
        }));
    }
    return isValid;
}; };
var validateNotInfinity = function (propertyName) { return function (value) {
    var isValid = isFinite(value);
    if (!isValid) {
        Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* messages */ "a"].invalidTypeMessage({
            functionName: propertyName,
            propertyName: propertyName,
            types: ['number'],
            value: value,
            index: undefined,
        }));
    }
    return isValid;
}; };
var progressBar = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* withValidation */ "b"])(progressBarSDKFactory, {
    type: ['object'],
    properties: {
        value: {
            type: ['number'],
        },
        targetValue: {
            type: ['number'],
        },
    },
}, {
    value: [validateNotInfinity('value'), validateAtLeastZero('value')],
    targetValue: [
        validateNotInfinity('targetValue'),
        validateLargerThanZero('targetValue'),
    ],
});
var elementPropsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* createElementPropsSDKFactory */ "a"])();
var stylePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* createStylePropsSDKFactory */ "a"])({
    BackgroundColor: true,
    ForegroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, stylePropsSDKFactory, progressBar);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_7__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 178 */
/*!*******************************************************************!*\
  !*** ./components/QuickActionBar/corvid/QuickActionBar.corvid.ts ***!
  \*******************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/QuickActionBar/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);



var _quickActionBarSDKFactory = function (api) {
    var setProps = api.setProps, props = api.props;
    return {
        get alignment() {
            return props.alignment;
        },
        set alignment(value) {
            setProps({ alignment: value });
        },
        get colorScheme() {
            return props.colorScheme;
        },
        set colorScheme(value) {
            setProps({ colorScheme: value });
        },
        get invertColorScheme() {
            return props.isColorSchemeInverted;
        },
        set invertColorScheme(shouldInvert) {
            setProps({ isColorSchemeInverted: shouldInvert });
        },
        get showLabels() {
            return !props.hideText;
        },
        set showLabels(shouldShow) {
            setProps({ hideText: !shouldShow });
        },
        onItemClicked: function (cb) {
            return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidEvent */ "a"])('onQuickActionBarItemClicked', api, cb, function (_a) {
                var componentEvent = _a.componentEvent;
                return componentEvent;
            });
        },
    };
};
var quickActionBarSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_quickActionBarSDKFactory, {
    type: ['object'],
    properties: {
        showLabels: {
            type: ['boolean'],
        },
        alignment: {
            type: ['string'],
            enum: ['left', 'right'],
        },
        colorScheme: {
            type: ['string'],
            enum: ['brand', 'grey', 'black'],
        },
        invertColorScheme: {
            type: ['boolean'],
        },
    },
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, quickActionBarSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 179 */
/*!***********************************************************!*\
  !*** ./components/RadioGroup/corvid/RadioGroup.corvid.ts ***!
  \***********************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/RadioGroup/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 12);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 46);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 45);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 37);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 33);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 29);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 32);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 9);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 48);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 19);





var radioGroupValidator = Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_15__[/* createInputValidator */ "b"])(Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_16__[/* composeValidators */ "f"])([_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_17__[/* validateRequired */ "a"]]));
var _ownSDKFactory = function (api) {
    var setProps = api.setProps, props = api.props, metaData = api.metaData;
    var isValueInOptions = function (_value) {
        return !!props.options.find(function (_a) {
            var value = _a.value;
            return value === _value;
        });
    };
    var sdkProps = {
        get options() {
            return props.options
                ? props.options.map(function (_a) {
                    var label = _a.label, value = _a.value;
                    return ({
                        label: label,
                        value: value,
                    });
                })
                : props.options;
        },
        set options(_options) {
            var options = (_options || [])
                .filter(function (option, index) {
                var value = option.value, label = option.label;
                var omitOption = (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(value) && !label) || (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(label) && !value);
                if (omitOption) {
                    Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportWarning */ "b"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* messages */ "a"].invalidOption({
                        propertyName: 'RadioButton',
                        index: index,
                        wrongValue: option,
                    }));
                }
                return !omitOption;
            })
                .map(function (_a) {
                var label = _a.label, value = _a.value;
                return ({
                    label: label,
                    value: value,
                });
            });
            setProps({ options: options });
            radioGroupValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: false,
            });
        },
        get value() {
            return isValueInOptions(props.value) ? props.value : '';
        },
        set value(_value) {
            var sanitizedValue = valueSanitizer(_value);
            var actualValue = props.options.find(function (_a) {
                var value = _a.value;
                return value === sanitizedValue;
            })
                ? sanitizedValue
                : '';
            setProps({ value: actualValue });
            radioGroupValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get selectedIndex() {
            var index = (props.options || []).findIndex(function (_a) {
                var value = _a.value;
                return value === props.value;
            });
            return index < 0 ? undefined : index;
        },
        set selectedIndex(index) {
            if (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(index)) {
                setProps({ value: '' });
            }
            else {
                setProps({ value: props.options[index].value });
            }
            radioGroupValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get type() {
            return '$w.RadioButtonGroup';
        },
        toJSON: function () {
            var required = props.required;
            var value = sdkProps.value, options = sdkProps.options, selectedIndex = sdkProps.selectedIndex;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* toJSONBase */ "b"])(metaData)), { type: '$w.RadioButtonGroup', required: required,
                value: value,
                options: options,
                selectedIndex: selectedIndex });
        },
    };
    return sdkProps;
};
var ownSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* withValidation */ "b"])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        options: {
            type: ['array', 'nil'],
            name: 'RadioButton',
            items: {
                type: ['object'],
                properties: {
                    value: {
                        type: ['string', 'nil'],
                        maxLength: 400,
                        minLength: 0,
                    },
                    label: {
                        type: ['string', 'nil'],
                        maxLength: 400,
                        minLength: 0,
                    },
                },
            },
        },
        selectedIndex: {
            type: ['integer', 'nil'],
        },
    },
}, {
    selectedIndex: [
        function (index, _a) {
            var props = _a.props, metaData = _a.metaData;
            var schemaValidator = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* createCompSchemaValidator */ "a"])(metaData.role);
            if (_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(index)) {
                return true;
            }
            return schemaValidator(index, {
                type: ['integer'],
                minimum: 0,
                maximum: props.options.length - 1,
            }, 'selectedIndex');
        },
    ],
});
var validationPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* createValidationPropsSDKFactory */ "a"])(radioGroupValidator);
var requiredPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* createRequiredPropsSDKFactory */ "a"])(radioGroupValidator);
var valueSanitizer = Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_18__[/* composeSanitizers */ "a"])([
    _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_18__[/* numberToString */ "e"],
    _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_18__[/* emptyStringIfNotString */ "b"],
]);
var stylePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* createStylePropsSDKFactory */ "a"])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_12__[/* focusPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_13__[/* clickPropsSDKFactory */ "a"], requiredPropsSDKFactory, validationPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_14__[/* changePropsSDKFactory */ "a"], stylePropsSDKFactory, ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 180 */
/*!*******************************************************************!*\
  !*** ./components/RatingsDisplay/corvid/RatingsDisplay.corvid.ts ***!
  \*******************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/RatingsDisplay/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);



var roundRating = function (number) {
    var pair = (number + "e").split('e');
    var value = Math.round(+(pair[0] + "e" + (+pair[1] + 1)));
    pair = (value + "e").split('e');
    return +(pair[0] + "e" + (+pair[1] - 1));
};
var ratingsDisplaySDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, metaData = _a.metaData;
    var ratingValidator = function (setterName, value) {
        return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* createCompSchemaValidator */ "a"])(metaData.role)(value, {
            type: ['number', 'nil'],
            warnIfNil: true,
            minimum: 1,
            maximum: 5,
        }, setterName);
    };
    var numRatingsValidator = function (setterName, value) {
        return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* createCompSchemaValidator */ "a"])(metaData.role)(value, {
            type: ['integer', 'nil'],
            warnIfNil: true,
            minimum: 0,
        }, setterName);
    };
    return {
        get rating() {
            return props.rating;
        },
        set rating(value) {
            if (!ratingValidator('rating', value) || _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(value)) {
                setProps({ rating: null });
            }
            else {
                setProps({ rating: roundRating(value) });
            }
        },
        get numRatings() {
            return props.numRatings;
        },
        set numRatings(value) {
            if (!numRatingsValidator('numRatings', value) || _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(value)) {
                setProps({ numRatings: 0 });
            }
            else {
                setProps({ numRatings: value });
            }
        },
        get type() {
            return '$w.RatingsDisplay';
        },
    };
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* clickPropsSDKFactory */ "a"], ratingsDisplaySDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 181 */
/*!***************************************************************!*\
  !*** ./components/RatingsInput/corvid/RatingsInput.corvid.ts ***!
  \***************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/RatingsInput/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 45);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 46);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 33);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 29);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 32);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 9);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 48);




var ratingsInputValidator = Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_11__[/* createInputValidator */ "b"])(Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_12__[/* composeValidators */ "f"])([_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_13__[/* validateRequired */ "a"]]));
var requiredPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createRequiredPropsSDKFactory */ "a"])(ratingsInputValidator);
var validationPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* createValidationPropsSDKFactory */ "a"])(ratingsInputValidator);
var _ratingsInputPropsSKDFactory = function (api) {
    var setProps = api.setProps, props = api.props;
    return {
        get value() {
            return props.value;
        },
        get type() {
            return '$w.RatingsInput';
        },
        set value(value) {
            setProps({ value: value || null });
            ratingsInputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        onIconMouseIn: function (handler) {
            return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* registerCorvidEvent */ "a"])('iconMouseIn', api, handler, function (_a) {
                var componentEvent = _a.componentEvent;
                return componentEvent;
            });
        },
    };
};
var ratingsInputPropsSKDFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_ratingsInputPropsSKDFactory, {
    type: ['object'],
    properties: {
        value: {
            type: ['integer', 'nil'],
            maximum: 5,
            minimum: 1,
        },
    },
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, requiredPropsSDKFactory, validationPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* focusPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* changePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* clickPropsSDKFactory */ "a"], ratingsInputPropsSKDFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 182 */
/*!*************************************************************!*\
  !*** ./components/RichTextBox/corvid/RichTextBox.corvid.ts ***!
  \*************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/RichTextBox/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 46);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 53);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 45);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 29);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 33);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 69);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 72);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 32);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 9);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 48);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 19);





var richTextBoxValidator = Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_14__[/* createInputValidator */ "b"])(Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_15__[/* composeValidators */ "f"])([_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_16__[/* validateRequired */ "a"]]));
var valueSanitizer = function (_a) {
    var maxLength = _a.maxLength;
    var sanitizers = [_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_17__[/* numberToString */ "e"], _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_17__[/* emptyStringIfNotString */ "b"]];
    if (maxLength) {
        sanitizers.push(Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_17__[/* forceMaxLength */ "c"])(maxLength));
    }
    return Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_17__[/* composeSanitizers */ "a"])(sanitizers);
};
var validationPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* createValidationPropsSDKFactory */ "a"])(richTextBoxValidator);
var valuePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* createValuePropsSdkFactory */ "a"])(function (value, api) { return valueSanitizer(api.props)(value); }, { type: ['string'] }, richTextBoxValidator);
var requiredPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* createRequiredPropsSDKFactory */ "a"])(richTextBoxValidator);
var _richTextBox = function (_a) {
    var props = _a.props, metaData = _a.metaData;
    return ({
        toJSON: function () {
            var required = props.required, readOnly = props.readOnly, value = props.value;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* toJSONBase */ "b"])(metaData)), { required: required,
                readOnly: readOnly,
                value: value });
        },
    });
};
var richTextBox = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_richTextBox, {
    type: ['object'],
    properties: {},
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* changePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* clickPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__[/* focusPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_12__[/* readOnlyPropsSDKFactory */ "a"], requiredPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_13__[/* textInputPropsSDKFactory */ "a"], validationPropsSDKFactory, valuePropsSDKFactory, richTextBox);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 183 */
/*!*****************************************************************!*\
  !*** ./components/SeoTpaGallery/corvid/SeoTpaGallery.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/SeoTpaGallery/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);




var capabilities = {
    isPlayable: false,
    hasCurrentItem: false,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 184 */
/*!*******************************************************************!*\
  !*** ./components/SignatureInput/corvid/SignatureInput.corvid.ts ***!
  \*******************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/SignatureInput/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 12);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 46);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 45);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 37);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 33);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 29);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 32);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 9);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 48);





var SignatureInputValidator = Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_12__[/* createInputValidator */ "b"])(Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_13__[/* composeValidators */ "f"])([_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_14__[/* validateRequired */ "a"]]));
var validationPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* createValidationPropsSDKFactory */ "a"])(SignatureInputValidator);
var requiredPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* createRequiredPropsSDKFactory */ "a"])(SignatureInputValidator);
var stylePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* createStylePropsSDKFactory */ "a"])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
});
var ownSDKFactory = function (api) {
    var props = api.props, compRef = api.compRef, metaData = api.metaData, setProps = api.setProps;
    return {
        get value() {
            return props.value || '';
        },
        set value(_value) {
            Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* messages */ "a"].onlyGetter({
                compType: 'SignatureInput',
                propertyName: 'value',
            }));
        },
        clear: function () {
            if (props.value) {
                compRef.clear();
            }
            else {
                setProps({
                    shouldShowValidityIndication: false,
                });
            }
        },
        toJSON: function () {
            var required = props.required, value = props.value;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* toJSONBase */ "b"])(metaData)), { value: value,
                required: required });
        },
    };
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* focusPropsSDKFactory */ "a"], requiredPropsSDKFactory, stylePropsSDKFactory, validationPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__[/* changePropsSDKFactory */ "a"], ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_4__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 185 */
/*!*******************************************************************!*\
  !*** ./components/SlideShowSlide/corvid/SlideShowSlide.corvid.ts ***!
  \*******************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/SlideShowSlide/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 3);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 34);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 47);




var getStateBoxStateSdk = function (_a) {
    var getSdkInstance = _a.getSdkInstance, metaData = _a.metaData;
    return ({
        get type() {
            return '$w.State';
        },
        toJSON: function () {
            var sdkInstance = getSdkInstance();
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* toJSONBase */ "b"])(metaData)), { type: sdkInstance.type, background: sdkInstance.background.src });
        },
    });
};
var getSlideShowSlideSdk = function (_a) {
    var sdkData = _a.sdkData, getSdkInstance = _a.getSdkInstance, metaData = _a.metaData;
    return ({
        get name() {
            return sdkData.name;
        },
        get type() {
            return '$w.Slide';
        },
        toJSON: function () {
            var sdkInstance = getSdkInstance();
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* toJSONBase */ "b"])(metaData)), { name: sdkData.name, type: sdkInstance.type, background: sdkInstance.background.src });
        },
    });
};
var _ownSDKFactory = function (api) {
    return api.sdkData.isStateBoxStateType
        ? getStateBoxStateSdk(api)
        : getSlideShowSlideSdk(api);
};
var elementPropsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* createElementPropsSDKFactory */ "a"])({
    useHiddenCollapsed: false,
});
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* childrenPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* backgroundPropsSDKFactory */ "a"], _ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_4__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 186 */
/*!***************************************************!*\
  !*** ./components/Slider/corvid/Slider.corvid.ts ***!
  \***************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Slider/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 8);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 53);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 33);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 29);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 32);





var _sliderSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, metaData = _a.metaData;
    var sdkProps = {
        get min() {
            return props.min;
        },
        set min(value) {
            if (value > props.max) {
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* reportWarning */ "b"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* templates */ "a"].warning_at_most({
                    propertyName: 'min',
                    wrongValue: value,
                    maxValue: props.max,
                }));
            }
            setProps({ min: value });
        },
        get max() {
            return props.max;
        },
        set max(value) {
            if (value < props.min) {
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* reportWarning */ "b"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* templates */ "a"].warning_at_least({
                    propertyName: 'max',
                    wrongValue: value,
                    minValue: props.min,
                }));
            }
            setProps({ max: value });
        },
        get step() {
            return props.step || 0.1;
        },
        set step(value) {
            setProps({ step: value });
        },
        get stepType() {
            return props.stepType;
        },
        set stepType(value) {
            setProps({ stepType: value });
        },
        toJSON: function () {
            var min = sdkProps.min, max = sdkProps.max, stepType = sdkProps.stepType, step = sdkProps.step;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* toJSONBase */ "b"])(metaData)), { min: min,
                max: max,
                stepType: stepType,
                step: step, value: props.value });
        },
    };
    return sdkProps;
};
var sliderSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* withValidation */ "b"])(_sliderSDKFactory, {
    type: ['object'],
    properties: {
        min: { type: ['number'] },
        max: { type: ['number'] },
        step: { type: ['number', 'nil'] },
        stepType: { type: ['string'], enum: ['value', 'count'] },
    },
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* createElementPropsSDKFactory */ "a"])();
var valuePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* createValuePropsSdkFactory */ "a"])(function (value) { return value; }, { type: ['number'] }, Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_12__[/* createEmptyInputValidator */ "a"])());
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* focusPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* changePropsSDKFactory */ "a"], valuePropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__[/* clickPropsSDKFactory */ "a"], sliderSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_5__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 187 */
/*!*******************************************************!*\
  !*** ./components/StateBox/corvid/StateBox.corvid.ts ***!
  \*******************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/StateBox/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 3);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 70);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 29);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 20);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 34);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);



var stateBoxSDKFactory = function (_a) {
    var props = _a.props, registerEvent = _a.registerEvent, getChildren = _a.getChildren, compRef = _a.compRef, metaData = _a.metaData, createSdkState = _a.createSdkState;
    var _b = createSdkState({
        stateChangedHandlers: [],
    }), state = _b[0], setState = _b[1];
    registerEvent('onCurrentSlideChanged', function (newSlideIndex) {
        var states = getChildren();
        state.stateChangedHandlers.forEach(function (cb) { return cb(states[newSlideIndex]); });
        setState({ stateChangedHandlers: [] });
    });
    var sdk = {
        get currentState() {
            var states = getChildren();
            return states[props.currentSlideIndex || 0];
        },
        get states() {
            return getChildren();
        },
        changeState: function (stateReference) {
            var states = getChildren();
            var currentStateIndex = props.currentSlideIndex;
            var nextStateIndex = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isString(stateReference)
                ? states.findIndex(function (_state) { return _state.role === stateReference; })
                : states.findIndex(function (_state) { return _state.uniqueId === stateReference.uniqueId; });
            if (currentStateIndex === nextStateIndex) {
                return Promise.resolve(states[nextStateIndex]);
            }
            return new Promise(function (resolve) {
                setState({
                    stateChangedHandlers: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spreadArrays"])(state.stateChangedHandlers, [
                        function () { return resolve(states[nextStateIndex]); },
                    ]),
                });
                compRef.moveToSlide({ slideIndex: nextStateIndex });
            });
        },
        get type() {
            return '$w.MultiStateBox';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* toJSONBase */ "b"])(metaData)), { type: sdk.type, currentStateId: sdk.currentState.id });
        },
    };
    return sdk;
};
var customRules = {
    changeState: [_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* isValidStateReference */ "a"]],
};
var stateBox = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* withValidation */ "b"])(stateBoxSDKFactory, {
    type: ['object'],
    properties: {
        changeState: {
            type: ['function'],
            args: [{ type: ['object', 'string'] }],
        },
    },
}, customRules);
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* composeSDKFactories */ "a"])(Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* createElementPropsSDKFactory */ "a"])(), _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__[/* changePropsSDKFactory */ "a"], _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_7__[/* clickPropsSDKFactory */ "a"], _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_8__[/* childrenPropsSDKFactory */ "a"], stateBox);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_9__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 188 */
/*!*****************************************************************!*\
  !*** ./components/StripShowcase/corvid/StripShowcase.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/StripShowcase/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryCurrentItemSDK */ 25);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryPlayableSDK */ 27);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryNavigationButtonsSDK__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryNavigationButtonsSDK */ 51);







var capabilities = {
    isPlayable: true,
    hasCurrentItem: true,
    hasNavigationButtons: true,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryCurrentItemSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__[/* tpaGalleryPlayableSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryNavigationButtonsSDK__WEBPACK_IMPORTED_MODULE_6__[/* tpaGalleryNavigationButtonsSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 189 */
/*!*******************************************************************!*\
  !*** ./components/StripSlideshow/corvid/StripSlideshow.corvid.ts ***!
  \*******************************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/StripSlideshow/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryCurrentItemSDK */ 25);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryPlayableSDK */ 27);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);






var capabilities = {
    isPlayable: true,
    hasCurrentItem: true,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryCurrentItemSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__[/* tpaGalleryPlayableSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 190 */
/*!*******************************************************************!*\
  !*** ./components/StylableButton/corvid/StylableButton.corvid.ts ***!
  \*******************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/StylableButton/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 37);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 241);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 59);




var stylePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* createStylePropsSDKFactory */ "a"])({
    BackgroundColor: { withoutDefaultValue: true, supportOpacity: false },
    BorderColor: { withoutDefaultValue: true, supportOpacity: false },
    BorderRadius: { withoutDefaultValue: true },
    BorderWidth: { withoutDefaultValue: true },
    TextColor: { withoutDefaultValue: true },
});
var _stylableButtonSDKFactory = function (api) {
    var labelSDK = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* labelPropsSDKFactory */ "a"])(api);
    var styleSDK = stylePropsSDKFactory(api);
    return {
        get label() {
            return labelSDK.label;
        },
        set label(value) {
            labelSDK.label = value;
        },
        get style() {
            return {
                get backgroundColor() {
                    return styleSDK.style.backgroundColor;
                },
                set backgroundColor(backgroundColor) {
                    styleSDK.style.backgroundColor = backgroundColor;
                    api.setProps({
                        corvid: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, api.props.corvid), { hasBackgroundColor: true }),
                    });
                },
                get borderColor() {
                    return styleSDK.style.borderColor;
                },
                set borderColor(borderColor) {
                    styleSDK.style.borderColor = borderColor;
                    api.setProps({
                        corvid: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, api.props.corvid), { hasBorderColor: true }),
                    });
                },
                get borderRadius() {
                    return styleSDK.style.borderRadius;
                },
                set borderRadius(borderRadius) {
                    styleSDK.style.borderRadius = borderRadius;
                    api.setProps({
                        corvid: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, api.props.corvid), { hasBorderRadius: true }),
                    });
                },
                get borderWidth() {
                    return styleSDK.style.borderWidth;
                },
                set borderWidth(borderWidth) {
                    styleSDK.style.borderWidth = borderWidth;
                    api.setProps({
                        corvid: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, api.props.corvid), { hasBorderWidth: true }),
                    });
                },
                get color() {
                    return styleSDK.style.color;
                },
                set color(color) {
                    styleSDK.style.color = color;
                    api.setProps({
                        corvid: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, api.props.corvid), { hasColor: true }),
                    });
                },
            };
        },
        get type() {
            return '$w.Button';
        },
        toJSON: function () {
            var label = labelSDK.label;
            var style = styleSDK.style;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* toJSONBase */ "b"])(api.metaData)), { label: label, style: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, style), type: '$w.Button' });
        },
    };
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* clickPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* linkPropsSDKFactory */ "a"], _stylableButtonSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 191 */
/*!*****************************************************************!*\
  !*** ./components/TPA3DCarousel/corvid/TPA3DCarousel.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/TPA3DCarousel/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryCurrentItemSDK */ 25);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryPlayableSDK */ 27);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);






var capabilities = {
    isPlayable: true,
    hasCurrentItem: true,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryCurrentItemSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__[/* tpaGalleryPlayableSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 192 */
/*!***************************************************************!*\
  !*** ./components/TPA3DGallery/corvid/TPA3DGallery.corvid.ts ***!
  \***************************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/TPA3DGallery/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryCurrentItemSDK */ 25);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryPlayableSDK */ 27);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryWarningSDK */ 17);






var capabilities = {
    isPlayable: true,
    hasCurrentItem: true,
    hasNavigationButtons: false,
    supportsAllMediaTypes: false,
    isAnimatable: true,
};
var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return capabilities;
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryCurrentItemSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryPlayableSDK__WEBPACK_IMPORTED_MODULE_4__[/* tpaGalleryPlayableSDKFactory */ "a"], Object(_TPAGallery_corvid_TPAGalleryWarningSDK__WEBPACK_IMPORTED_MODULE_5__[/* tpaGalleryWarningSDKFactory */ "a"])(capabilities), ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 193 */
/*!*****************************************************************!*\
  !*** ./components/TextAreaInput/corvid/TextAreaInput.corvid.ts ***!
  \*****************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/TextAreaInput/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 32);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 9);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 48);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 19);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 45);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 46);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 53);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 37);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 69);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 72);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 33);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);





var textAreaInputValidator = Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_4__[/* createInputValidator */ "b"])(Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_5__[/* composeValidators */ "f"])([_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_6__[/* validateRequired */ "a"]]));
var requiredPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* createRequiredPropsSDKFactory */ "a"])(textAreaInputValidator);
var validationPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* createValidationPropsSDKFactory */ "a"])(textAreaInputValidator);
var _ownSDKFactory = function (_a) {
    var props = _a.props, metaData = _a.metaData, createSdkState = _a.createSdkState;
    var _b = createSdkState({
        wrap: 'soft',
    }), state = _b[0], setState = _b[1];
    return {
        get wrap() {
            return state.wrap;
        },
        set wrap(wrap) {
            setState({ wrap: wrap });
        },
        get type() {
            return '$w.TextBox';
        },
        toJSON: function () {
            var readOnly = props.readOnly, required = props.required, value = props.value;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* toJSONBase */ "b"])(metaData)), { readOnly: readOnly,
                required: required,
                value: value, wrap: state.wrap, type: '$w.TextBox' });
        },
    };
};
var ownSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* withValidation */ "b"])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        wrap: {
            type: ['string'],
            enum: ['soft', 'hard'],
        },
    },
});
var valueSanitizer = function (_a) {
    var maxLength = _a.maxLength;
    return Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_7__[/* composeSanitizers */ "a"])([
        _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_7__[/* numberToString */ "e"],
        _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_7__[/* emptyStringIfNotString */ "b"],
        Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_7__[/* forceMaxLength */ "c"])(maxLength),
    ]);
};
var valuePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_11__[/* createValuePropsSdkFactory */ "a"])(function (value, api) { return valueSanitizer(api.props)(value); }, { type: ['string'] }, textAreaInputValidator);
var stylePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_12__[/* createStylePropsSDKFactory */ "a"])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, requiredPropsSDKFactory, validationPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_13__[/* readOnlyPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_14__[/* textInputPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_15__[/* focusPropsSDKFactory */ "a"], valuePropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_16__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_17__[/* clickPropsSDKFactory */ "a"], stylePropsSDKFactory, ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_3__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 194 */
/*!***********************************************************!*\
  !*** ./components/Thumbnails/corvid/Thumbnails.corvid.ts ***!
  \***********************************************************/
/*! exports provided: ownSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Thumbnails/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ownSDKFactory", function() { return ownSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGallerySDK */ 16);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryCurrentItemSDK */ 25);
/* harmony import */ var _TPAGallery_corvid_TPAGalleryNavigationButtonsSDK__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../TPAGallery/corvid/TPAGalleryNavigationButtonsSDK */ 51);





var ownSDKFactory = function () { return ({
    get galleryCapabilities() {
        return {
            isPlayable: true,
            hasCurrentItem: true,
            hasNavigationButtons: true,
            supportsAllMediaTypes: false,
            isAnimatable: true,
        };
    },
}); };
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* composeSDKFactories */ "a"])(_TPAGallery_corvid_TPAGallerySDK__WEBPACK_IMPORTED_MODULE_2__[/* tpaGalleryPropsSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryCurrentItemSDK__WEBPACK_IMPORTED_MODULE_3__[/* tpaGalleryCurrentItemSDKFactory */ "a"], _TPAGallery_corvid_TPAGalleryNavigationButtonsSDK__WEBPACK_IMPORTED_MODULE_4__[/* tpaGalleryNavigationButtonsSDKFactory */ "a"], ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_1__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 195 */
/*!*******************************************************!*\
  !*** ./components/TinyMenu/corvid/TinyMenu.corvid.ts ***!
  \*******************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/TinyMenu/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _LoginSocialBar_corvid_LoginSocialBar_corvid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../LoginSocialBar/corvid/LoginSocialBar.corvid */ 57);





var tinyMenuSDKFactory = function (api) {
    var _a;
    var props = api.props, sdkData = api.sdkData, setProps = api.setProps, metaData = api.metaData;
    var accountNavBarSetProps = function (value) {
        if (!sdkData.members) {
            return;
        }
        var mapPropsToMembers = function (newProps) { return ({
            members: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.members), newProps),
        }); };
        var newProps = Promise.resolve(value) === value // Value is a Promise
            ? value.then(mapPropsToMembers)
            : mapPropsToMembers(value);
        setProps(newProps);
    };
    var accountNavBar = Object(_LoginSocialBar_corvid_LoginSocialBar_corvid__WEBPACK_IMPORTED_MODULE_4__["createAccountNavBarSdkFactory"])({ isMobileOnly: true })(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, api), { props: props.members, sdkData: (_a = sdkData.members) !== null && _a !== void 0 ? _a : {
            menuItems: [],
            navBarItems: [],
        }, setProps: accountNavBarSetProps }));
    return {
        get accountNavBar() {
            return accountNavBar;
        },
        get type() {
            return '$w.MobileMenu';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* toJSONBase */ "b"])(metaData)), { type: '$w.MobileMenu' });
        },
    };
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, tinyMenuSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 196 */
/*!***************************************************************!*\
  !*** ./components/ToggleSwitch/corvid/ToggleSwitch.corvid.ts ***!
  \***************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/ToggleSwitch/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 53);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 240);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 28);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 33);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/corvid/inputUtils */ 32);





var valuePropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* createValuePropsSdkFactory */ "a"])(
/**
 * The original bolt implementation have this logic
 * 1. If null value - report warning and return null
 * 2. If undefined value - report warning and return previous value
 * Because of this functionality we need to do custom schema validation here
 * */
function (value, api) {
    var schemaValidator = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* createCompSchemaValidator */ "a"])(api.metaData.role);
    var valueSchema = { type: ['string', 'nil'], warnIfNil: true };
    schemaValidator(value, valueSchema, 'value');
    /**
     * fallback to previous value if value is
     * 1. undefined
     * 2. any other wrong value that is not string
     */
    if (!_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* assert */ "a"].isString(value) && value !== null) {
        return api.props.value;
    }
    return value;
}, 
// this schema will always go green, because we already do validation in function above
{ type: ['string', 'nil'] }, Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_11__[/* createEmptyInputValidator */ "a"])());
var checkedPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_6__[/* createCheckedPropsSDKFactory */ "a"])(Object(_core_corvid_inputUtils__WEBPACK_IMPORTED_MODULE_11__[/* createEmptyInputValidator */ "a"])());
var ownSDKFactory = function (_a) {
    var props = _a.props, metaData = _a.metaData;
    return {
        get type() {
            return '$w.Switch';
        },
        toJSON: function () {
            var checked = props.checked, value = props.value;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* toJSONBase */ "b"])(metaData)), { checked: checked,
                value: value, type: '$w.Switch' });
        },
    };
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_7__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* disablePropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* focusPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* clickPropsSDKFactory */ "a"], checkedPropsSDKFactory, valuePropsSDKFactory, ownSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_4__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 197 */
/*!*************************************************************!*\
  !*** ./components/VectorImage/corvid/VectorImage.corvid.ts ***!
  \*************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/VectorImage/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_thunderbolt_commons_dist_vectorImage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/thunderbolt-commons/dist/vectorImage */ 58);
/* harmony import */ var _wix_thunderbolt_commons_dist_vectorImage__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wix_thunderbolt_commons_dist_vectorImage__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 12);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 59);
/* harmony import */ var _core_corvid_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/corvid/svg */ 30);






var processSvg = function (rawSvg, sdkData) {
    var svgInfo = _wix_thunderbolt_commons_dist_vectorImage__WEBPACK_IMPORTED_MODULE_1__["parseSvgString"](rawSvg).info;
    return _wix_thunderbolt_commons_dist_vectorImage__WEBPACK_IMPORTED_MODULE_1__["transformVectorImage"](rawSvg, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, sdkData), { svgInfo: svgInfo }));
};
var fetchAndTransformSvg = function (userSrc, sdkData) { return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(void 0, void 0, void 0, function () {
    var _a, type, data, svg;
    return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
        switch (_b.label) {
            case 0:
                _a = Object(_core_corvid_svg__WEBPACK_IMPORTED_MODULE_11__[/* resolveSvg */ "f"])(userSrc, sdkData.mediaSvgUrl), type = _a.type, data = _a.data;
                if (type === _core_corvid_svg__WEBPACK_IMPORTED_MODULE_11__[/* SVG_TYPE_INLINE */ "a"]) {
                    return [2 /*return*/, { svgContent: data }];
                }
                return [4 /*yield*/, Object(_core_corvid_svg__WEBPACK_IMPORTED_MODULE_11__[/* fetchSvg */ "c"])(data)];
            case 1:
                svg = _b.sent();
                return [2 /*return*/, {
                        svgContent: Object(_core_corvid_svg__WEBPACK_IMPORTED_MODULE_11__[/* isFallbackSvg */ "d"])(svg) ? svg : processSvg(svg, sdkData),
                    }];
        }
    });
}); };
var _vectorImageSDKFactory = function (_a) {
    var setProps = _a.setProps, sdkData = _a.sdkData, metaData = _a.metaData, createSdkState = _a.createSdkState;
    var _b = createSdkState({}), state = _b[0], setState = _b[1];
    return {
        get src() {
            return (state.userSrc || Object(_core_corvid_svg__WEBPACK_IMPORTED_MODULE_11__[/* createSvgWixMediaUrl */ "b"])(sdkData.svgId, sdkData.altText));
        },
        set src(url) {
            setState({ userSrc: url });
            setProps(fetchAndTransformSvg(url, sdkData));
        },
        toJSON: function () {
            var src = this.src;
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* toJSONBase */ "b"])(metaData)), { src: src });
        },
    };
};
var vectorImageSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* withValidation */ "b"])(_vectorImageSDKFactory, {
    type: ['object'],
    properties: { src: { type: ['string'] } },
}, {
    src: [
        function (value) {
            var isValid = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* assert */ "a"].isSVG(value);
            if (!isValid) {
                // FIXME - customRule will eventually need to inject 'index' argment (for repeaters scenario)
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* reportError */ "a"])(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* messages */ "a"].invalidSvgValue(value));
            }
            return true;
        },
    ],
});
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__[/* composeSDKFactories */ "a"])(Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_8__[/* createElementPropsSDKFactory */ "a"])(), _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_9__[/* clickPropsSDKFactoryWithUpdatePlatformHandler */ "b"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* linkPropsSDKFactory */ "a"], vectorImageSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_7__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 198 */
/*!**************************************************************!*\
  !*** ../node_modules/@wix/thunderbolt-commons/dist/color.js ***!
  \**************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidColor = exports.extractRGBA = exports.getColorFromCssStyle = exports.isHexValue = exports.isRgbValues = exports.isThemeColor = exports.isGreyscale = exports.formatColor = exports.getColorClass = exports.getColorAlpha = exports.getHexColor = exports.getSplitRgbValuesStringWithoutAlpha = exports.getSplitRgbValuesString = exports.getFromColorMap = exports.splitColor = exports.getRGBAColorString = exports.extractThemeColor = exports.brighten = exports.isColor = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ 0);
var color_1 = tslib_1.__importDefault(__webpack_require__(/*! color */ 66));
var isColor = function (val) {
    return val ? /(^#([a-f\d]{3}){1,2}$)|(^rgba?\(\d+(,\d+){2,3}(\.\d+)?\)$)/i.test(val.replace(/\s/g, '')) : false;
};
exports.isColor = isColor;
var isRgbValues = function (val) { return (val ? /^\d+(,\d+){2,3}(\.\d+)?$/.test(val.replace(/\s/g, '')) : false); };
exports.isRgbValues = isRgbValues;
var isHexValue = function (val) { return (val ? /(^#([a-f\d]{3}){1,2}$)/i.test(val.replace(/\s/g, '')) : false); };
exports.isHexValue = isHexValue;
var rgbToHexString = function (rgb) {
    return "#" + rgb
        .map(function (channel) {
        var hex = channel.toString(16);
        return hex.length === 1 ? "0" + hex : hex;
    })
        .join('');
};
var getColor = function (color) {
    if (exports.isColor(color)) {
        return color_1.default(color);
    }
    if (isRgbValues(color)) {
        return color_1.default("rgba(" + color + ")");
    }
    if (color === 'transparent') {
        return color_1.default.rgb(0, 0, 0, 0);
    }
    return null;
};
var isThemeColor = function (color) { return /^color_\d+$/.test(color); };
exports.isThemeColor = isThemeColor;
var brighten = function (colorString, brightnessModifier) {
    if (brightnessModifier === void 0) { brightnessModifier = 1; }
    var color = getColor(colorString);
    if (!color) {
        return null;
    }
    var hsvColor = color.hsv();
    return hsvColor
        .value(hsvColor.value() * brightnessModifier)
        .rgb()
        .string();
};
exports.brighten = brighten;
var getRGBAColorString = function (color, colorOpacity) {
    if (colorOpacity === void 0) { colorOpacity = 1; }
    try {
        if (colorOpacity === 'none') {
            return color_1.default(fixColor(color)).string();
        }
        return color_1.default(fixColor(color)).alpha(colorOpacity).string();
    }
    catch (e) {
        return color;
    }
};
exports.getRGBAColorString = getRGBAColorString;
var splitColor = function (rgbString) { return color_1.default(rgbString).array().join(','); };
exports.splitColor = splitColor;
/**
 * Returns rgb values string from a hex color string input (i.e 255,255,255), null if value given is not a hex color
 * @param value a string value that might be a color
 */
var getSplitRgbValuesString = function (value) {
    var color = getColor(value);
    if (!color) {
        return null;
    }
    return color.rgb().array().join(',');
};
exports.getSplitRgbValuesString = getSplitRgbValuesString;
/**
 * Returns an RGB values from rgb or rgba expressions as a string.
 * If there is an opacity value (alpha) in rgba expression it will be ignored.
 * @param value a string that might be one of the expressions: rgb(r, g, b), or rgba(r, g, b, a)
 */
var getSplitRgbValuesStringWithoutAlpha = function (value) {
    var color = getColor(value);
    if (!color) {
        return null;
    }
    var _a = color.object(), r = _a.r, g = _a.g, b = _a.b;
    return r + "," + g + "," + b;
};
exports.getSplitRgbValuesStringWithoutAlpha = getSplitRgbValuesStringWithoutAlpha;
var getColorAlpha = function (value) {
    var color = getColor(value);
    if (!color) {
        return null;
    }
    return color.alpha();
};
exports.getColorAlpha = getColorAlpha;
/**
 * Given theme color string e.g {color_1} / [color_1] extracts the underlying color - color_1
 * @param str theme color
 */
var extractThemeColor = function (str) {
    return str.replace(new RegExp('[\\[\\]{}]', 'g'), '');
};
exports.extractThemeColor = extractThemeColor;
var getFromColorMap = function (rawColor, colorsMap) {
    if (colorsMap === void 0) { colorsMap = []; }
    var _a = tslib_1.__read(extractThemeColor(rawColor).split('_'), 2), themeColorIndex = _a[1];
    var i = parseInt(themeColorIndex, 10);
    return typeof i === 'number' && isNaN(i) === false ? colorsMap[i] : rawColor;
};
exports.getFromColorMap = getFromColorMap;
var isGreyscale = function (colorObj) {
    return colorObj.red() === colorObj.green() && colorObj.red() === colorObj.blue() && colorObj.red() !== 255;
};
exports.isGreyscale = isGreyscale;
var getHexColor = function (rgbAsString) {
    var color = getColor(rgbAsString);
    return color && color.hex().toString();
};
exports.getHexColor = getHexColor;
var getColorClass = function (className) {
    var findColorClass = /(color_\d+)/;
    var colorClass = findColorClass.exec(className);
    return colorClass && colorClass[1];
};
exports.getColorClass = getColorClass;
var fixColor = function (color) {
    if (exports.isColor(color)) {
        return color;
    }
    if (typeof color === 'undefined') {
        return color;
    }
    if (exports.isColor("rgba(" + color + ")")) {
        return "rgba(" + color + ")";
    }
    if (exports.isColor("rgb(" + color + ")")) {
        return "rgb(" + color + ")";
    }
    return color.replace(';', '');
};
var formatColor = function (value, alpha) {
    var fixedColor = fixColor(value);
    var color = new color_1.default(fixedColor).alpha(Number(alpha));
    var formattedRgbColor = color.rgb().toString().replace(/ /g, '');
    return Number(alpha) !== 1
        ? formattedRgbColor
        : formattedRgbColor.replace(/^rgb/, 'rgba').replace(')', "," + color.alpha() + ")");
};
exports.formatColor = formatColor;
var getColorFromCssStyle = function (value) {
    var red = value.red, green = value.green, blue = value.blue, alpha = value.alpha;
    var color = new color_1.default(rgbToHexString([red, green, blue]));
    return formatColor(color.toString(), alpha);
};
exports.getColorFromCssStyle = getColorFromCssStyle;
var extractRGBA = function (value) {
    var rgbaRe = /rgba\([^)]+\)/;
    var result = value.match(rgbaRe);
    if (result && result[0]) {
        return result[0];
    }
    return '';
};
exports.extractRGBA = extractRGBA;
var isValidColor = function (color) { return exports.isColor(color) || isRgbValues(color) || isHexValue(color) || isThemeColor(color); };
exports.isValidColor = isValidColor;
//# sourceMappingURL=color.js.map

/***/ }),
/* 199 */
/*!********************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/color-string/index.js ***!
  \********************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

/* MIT license */
var colorNames = __webpack_require__(/*! color-name */ 200);
var swizzle = __webpack_require__(/*! simple-swizzle */ 201);

var reverseNames = {};

// create a list of reverse color names
for (var name in colorNames) {
	if (colorNames.hasOwnProperty(name)) {
		reverseNames[colorNames[name]] = name;
	}
}

var cs = module.exports = {
	to: {},
	get: {}
};

cs.get = function (string) {
	var prefix = string.substring(0, 3).toLowerCase();
	var val;
	var model;
	switch (prefix) {
		case 'hsl':
			val = cs.get.hsl(string);
			model = 'hsl';
			break;
		case 'hwb':
			val = cs.get.hwb(string);
			model = 'hwb';
			break;
		default:
			val = cs.get.rgb(string);
			model = 'rgb';
			break;
	}

	if (!val) {
		return null;
	}

	return {model: model, value: val};
};

cs.get.rgb = function (string) {
	if (!string) {
		return null;
	}

	var abbr = /^#([a-f0-9]{3,4})$/i;
	var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
	var rgba = /^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;
	var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;
	var keyword = /(\D+)/;

	var rgb = [0, 0, 0, 1];
	var match;
	var i;
	var hexAlpha;

	if (match = string.match(hex)) {
		hexAlpha = match[2];
		match = match[1];

		for (i = 0; i < 3; i++) {
			// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19
			var i2 = i * 2;
			rgb[i] = parseInt(match.slice(i2, i2 + 2), 16);
		}

		if (hexAlpha) {
			rgb[3] = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100;
		}
	} else if (match = string.match(abbr)) {
		match = match[1];
		hexAlpha = match[3];

		for (i = 0; i < 3; i++) {
			rgb[i] = parseInt(match[i] + match[i], 16);
		}

		if (hexAlpha) {
			rgb[3] = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100;
		}
	} else if (match = string.match(rgba)) {
		for (i = 0; i < 3; i++) {
			rgb[i] = parseInt(match[i + 1], 0);
		}

		if (match[4]) {
			rgb[3] = parseFloat(match[4]);
		}
	} else if (match = string.match(per)) {
		for (i = 0; i < 3; i++) {
			rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);
		}

		if (match[4]) {
			rgb[3] = parseFloat(match[4]);
		}
	} else if (match = string.match(keyword)) {
		if (match[1] === 'transparent') {
			return [0, 0, 0, 0];
		}

		rgb = colorNames[match[1]];

		if (!rgb) {
			return null;
		}

		rgb[3] = 1;

		return rgb;
	} else {
		return null;
	}

	for (i = 0; i < 3; i++) {
		rgb[i] = clamp(rgb[i], 0, 255);
	}
	rgb[3] = clamp(rgb[3], 0, 1);

	return rgb;
};

cs.get.hsl = function (string) {
	if (!string) {
		return null;
	}

	var hsl = /^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;
	var match = string.match(hsl);

	if (match) {
		var alpha = parseFloat(match[4]);
		var h = (parseFloat(match[1]) + 360) % 360;
		var s = clamp(parseFloat(match[2]), 0, 100);
		var l = clamp(parseFloat(match[3]), 0, 100);
		var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);

		return [h, s, l, a];
	}

	return null;
};

cs.get.hwb = function (string) {
	if (!string) {
		return null;
	}

	var hwb = /^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;
	var match = string.match(hwb);

	if (match) {
		var alpha = parseFloat(match[4]);
		var h = ((parseFloat(match[1]) % 360) + 360) % 360;
		var w = clamp(parseFloat(match[2]), 0, 100);
		var b = clamp(parseFloat(match[3]), 0, 100);
		var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
		return [h, w, b, a];
	}

	return null;
};

cs.to.hex = function () {
	var rgba = swizzle(arguments);

	return (
		'#' +
		hexDouble(rgba[0]) +
		hexDouble(rgba[1]) +
		hexDouble(rgba[2]) +
		(rgba[3] < 1
			? (hexDouble(Math.round(rgba[3] * 255)))
			: '')
	);
};

cs.to.rgb = function () {
	var rgba = swizzle(arguments);

	return rgba.length < 4 || rgba[3] === 1
		? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'
		: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';
};

cs.to.rgb.percent = function () {
	var rgba = swizzle(arguments);

	var r = Math.round(rgba[0] / 255 * 100);
	var g = Math.round(rgba[1] / 255 * 100);
	var b = Math.round(rgba[2] / 255 * 100);

	return rgba.length < 4 || rgba[3] === 1
		? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'
		: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';
};

cs.to.hsl = function () {
	var hsla = swizzle(arguments);
	return hsla.length < 4 || hsla[3] === 1
		? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'
		: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';
};

// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax
// (hwb have alpha optional & 1 is default value)
cs.to.hwb = function () {
	var hwba = swizzle(arguments);

	var a = '';
	if (hwba.length >= 4 && hwba[3] !== 1) {
		a = ', ' + hwba[3];
	}

	return 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';
};

cs.to.keyword = function (rgb) {
	return reverseNames[rgb.slice(0, 3)];
};

// helpers
function clamp(num, min, max) {
	return Math.min(Math.max(min, num), max);
}

function hexDouble(num) {
	var str = num.toString(16).toUpperCase();
	return (str.length < 2) ? '0' + str : str;
}


/***/ }),
/* 200 */
/*!******************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/color-name/index.js ***!
  \******************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


module.exports = {
	"aliceblue": [240, 248, 255],
	"antiquewhite": [250, 235, 215],
	"aqua": [0, 255, 255],
	"aquamarine": [127, 255, 212],
	"azure": [240, 255, 255],
	"beige": [245, 245, 220],
	"bisque": [255, 228, 196],
	"black": [0, 0, 0],
	"blanchedalmond": [255, 235, 205],
	"blue": [0, 0, 255],
	"blueviolet": [138, 43, 226],
	"brown": [165, 42, 42],
	"burlywood": [222, 184, 135],
	"cadetblue": [95, 158, 160],
	"chartreuse": [127, 255, 0],
	"chocolate": [210, 105, 30],
	"coral": [255, 127, 80],
	"cornflowerblue": [100, 149, 237],
	"cornsilk": [255, 248, 220],
	"crimson": [220, 20, 60],
	"cyan": [0, 255, 255],
	"darkblue": [0, 0, 139],
	"darkcyan": [0, 139, 139],
	"darkgoldenrod": [184, 134, 11],
	"darkgray": [169, 169, 169],
	"darkgreen": [0, 100, 0],
	"darkgrey": [169, 169, 169],
	"darkkhaki": [189, 183, 107],
	"darkmagenta": [139, 0, 139],
	"darkolivegreen": [85, 107, 47],
	"darkorange": [255, 140, 0],
	"darkorchid": [153, 50, 204],
	"darkred": [139, 0, 0],
	"darksalmon": [233, 150, 122],
	"darkseagreen": [143, 188, 143],
	"darkslateblue": [72, 61, 139],
	"darkslategray": [47, 79, 79],
	"darkslategrey": [47, 79, 79],
	"darkturquoise": [0, 206, 209],
	"darkviolet": [148, 0, 211],
	"deeppink": [255, 20, 147],
	"deepskyblue": [0, 191, 255],
	"dimgray": [105, 105, 105],
	"dimgrey": [105, 105, 105],
	"dodgerblue": [30, 144, 255],
	"firebrick": [178, 34, 34],
	"floralwhite": [255, 250, 240],
	"forestgreen": [34, 139, 34],
	"fuchsia": [255, 0, 255],
	"gainsboro": [220, 220, 220],
	"ghostwhite": [248, 248, 255],
	"gold": [255, 215, 0],
	"goldenrod": [218, 165, 32],
	"gray": [128, 128, 128],
	"green": [0, 128, 0],
	"greenyellow": [173, 255, 47],
	"grey": [128, 128, 128],
	"honeydew": [240, 255, 240],
	"hotpink": [255, 105, 180],
	"indianred": [205, 92, 92],
	"indigo": [75, 0, 130],
	"ivory": [255, 255, 240],
	"khaki": [240, 230, 140],
	"lavender": [230, 230, 250],
	"lavenderblush": [255, 240, 245],
	"lawngreen": [124, 252, 0],
	"lemonchiffon": [255, 250, 205],
	"lightblue": [173, 216, 230],
	"lightcoral": [240, 128, 128],
	"lightcyan": [224, 255, 255],
	"lightgoldenrodyellow": [250, 250, 210],
	"lightgray": [211, 211, 211],
	"lightgreen": [144, 238, 144],
	"lightgrey": [211, 211, 211],
	"lightpink": [255, 182, 193],
	"lightsalmon": [255, 160, 122],
	"lightseagreen": [32, 178, 170],
	"lightskyblue": [135, 206, 250],
	"lightslategray": [119, 136, 153],
	"lightslategrey": [119, 136, 153],
	"lightsteelblue": [176, 196, 222],
	"lightyellow": [255, 255, 224],
	"lime": [0, 255, 0],
	"limegreen": [50, 205, 50],
	"linen": [250, 240, 230],
	"magenta": [255, 0, 255],
	"maroon": [128, 0, 0],
	"mediumaquamarine": [102, 205, 170],
	"mediumblue": [0, 0, 205],
	"mediumorchid": [186, 85, 211],
	"mediumpurple": [147, 112, 219],
	"mediumseagreen": [60, 179, 113],
	"mediumslateblue": [123, 104, 238],
	"mediumspringgreen": [0, 250, 154],
	"mediumturquoise": [72, 209, 204],
	"mediumvioletred": [199, 21, 133],
	"midnightblue": [25, 25, 112],
	"mintcream": [245, 255, 250],
	"mistyrose": [255, 228, 225],
	"moccasin": [255, 228, 181],
	"navajowhite": [255, 222, 173],
	"navy": [0, 0, 128],
	"oldlace": [253, 245, 230],
	"olive": [128, 128, 0],
	"olivedrab": [107, 142, 35],
	"orange": [255, 165, 0],
	"orangered": [255, 69, 0],
	"orchid": [218, 112, 214],
	"palegoldenrod": [238, 232, 170],
	"palegreen": [152, 251, 152],
	"paleturquoise": [175, 238, 238],
	"palevioletred": [219, 112, 147],
	"papayawhip": [255, 239, 213],
	"peachpuff": [255, 218, 185],
	"peru": [205, 133, 63],
	"pink": [255, 192, 203],
	"plum": [221, 160, 221],
	"powderblue": [176, 224, 230],
	"purple": [128, 0, 128],
	"rebeccapurple": [102, 51, 153],
	"red": [255, 0, 0],
	"rosybrown": [188, 143, 143],
	"royalblue": [65, 105, 225],
	"saddlebrown": [139, 69, 19],
	"salmon": [250, 128, 114],
	"sandybrown": [244, 164, 96],
	"seagreen": [46, 139, 87],
	"seashell": [255, 245, 238],
	"sienna": [160, 82, 45],
	"silver": [192, 192, 192],
	"skyblue": [135, 206, 235],
	"slateblue": [106, 90, 205],
	"slategray": [112, 128, 144],
	"slategrey": [112, 128, 144],
	"snow": [255, 250, 250],
	"springgreen": [0, 255, 127],
	"steelblue": [70, 130, 180],
	"tan": [210, 180, 140],
	"teal": [0, 128, 128],
	"thistle": [216, 191, 216],
	"tomato": [255, 99, 71],
	"turquoise": [64, 224, 208],
	"violet": [238, 130, 238],
	"wheat": [245, 222, 179],
	"white": [255, 255, 255],
	"whitesmoke": [245, 245, 245],
	"yellow": [255, 255, 0],
	"yellowgreen": [154, 205, 50]
};


/***/ }),
/* 201 */
/*!**********************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/simple-swizzle/index.js ***!
  \**********************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var isArrayish = __webpack_require__(/*! is-arrayish */ 202);

var concat = Array.prototype.concat;
var slice = Array.prototype.slice;

var swizzle = module.exports = function swizzle(args) {
	var results = [];

	for (var i = 0, len = args.length; i < len; i++) {
		var arg = args[i];

		if (isArrayish(arg)) {
			// http://jsperf.com/javascript-array-concat-vs-push/98
			results = concat.call(results, slice.call(arg));
		} else {
			results.push(arg);
		}
	}

	return results;
};

swizzle.wrap = function (fn) {
	return function () {
		return fn(swizzle(arguments));
	};
};


/***/ }),
/* 202 */
/*!***********************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/simple-swizzle/node_modules/is-arrayish/index.js ***!
  \***********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports) {

module.exports = function isArrayish(obj) {
	if (!obj || typeof obj === 'string') {
		return false;
	}

	return obj instanceof Array || Array.isArray(obj) ||
		(obj.length >= 0 && (obj.splice instanceof Function ||
			(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));
};


/***/ }),
/* 203 */
/*!*********************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/color-convert/index.js ***!
  \*********************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

var conversions = __webpack_require__(/*! ./conversions */ 67);
var route = __webpack_require__(/*! ./route */ 205);

var convert = {};

var models = Object.keys(conversions);

function wrapRaw(fn) {
	var wrappedFn = function (args) {
		if (args === undefined || args === null) {
			return args;
		}

		if (arguments.length > 1) {
			args = Array.prototype.slice.call(arguments);
		}

		return fn(args);
	};

	// preserve .conversion property if there is one
	if ('conversion' in fn) {
		wrappedFn.conversion = fn.conversion;
	}

	return wrappedFn;
}

function wrapRounded(fn) {
	var wrappedFn = function (args) {
		if (args === undefined || args === null) {
			return args;
		}

		if (arguments.length > 1) {
			args = Array.prototype.slice.call(arguments);
		}

		var result = fn(args);

		// we're assuming the result is an array here.
		// see notice in conversions.js; don't use box types
		// in conversion functions.
		if (typeof result === 'object') {
			for (var len = result.length, i = 0; i < len; i++) {
				result[i] = Math.round(result[i]);
			}
		}

		return result;
	};

	// preserve .conversion property if there is one
	if ('conversion' in fn) {
		wrappedFn.conversion = fn.conversion;
	}

	return wrappedFn;
}

models.forEach(function (fromModel) {
	convert[fromModel] = {};

	Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
	Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});

	var routes = route(fromModel);
	var routeModels = Object.keys(routes);

	routeModels.forEach(function (toModel) {
		var fn = routes[toModel];

		convert[fromModel][toModel] = wrapRounded(fn);
		convert[fromModel][toModel].raw = wrapRaw(fn);
	});
});

module.exports = convert;


/***/ }),
/* 204 */
/*!*********************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/color-convert/node_modules/color-name/index.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


module.exports = {
	"aliceblue": [240, 248, 255],
	"antiquewhite": [250, 235, 215],
	"aqua": [0, 255, 255],
	"aquamarine": [127, 255, 212],
	"azure": [240, 255, 255],
	"beige": [245, 245, 220],
	"bisque": [255, 228, 196],
	"black": [0, 0, 0],
	"blanchedalmond": [255, 235, 205],
	"blue": [0, 0, 255],
	"blueviolet": [138, 43, 226],
	"brown": [165, 42, 42],
	"burlywood": [222, 184, 135],
	"cadetblue": [95, 158, 160],
	"chartreuse": [127, 255, 0],
	"chocolate": [210, 105, 30],
	"coral": [255, 127, 80],
	"cornflowerblue": [100, 149, 237],
	"cornsilk": [255, 248, 220],
	"crimson": [220, 20, 60],
	"cyan": [0, 255, 255],
	"darkblue": [0, 0, 139],
	"darkcyan": [0, 139, 139],
	"darkgoldenrod": [184, 134, 11],
	"darkgray": [169, 169, 169],
	"darkgreen": [0, 100, 0],
	"darkgrey": [169, 169, 169],
	"darkkhaki": [189, 183, 107],
	"darkmagenta": [139, 0, 139],
	"darkolivegreen": [85, 107, 47],
	"darkorange": [255, 140, 0],
	"darkorchid": [153, 50, 204],
	"darkred": [139, 0, 0],
	"darksalmon": [233, 150, 122],
	"darkseagreen": [143, 188, 143],
	"darkslateblue": [72, 61, 139],
	"darkslategray": [47, 79, 79],
	"darkslategrey": [47, 79, 79],
	"darkturquoise": [0, 206, 209],
	"darkviolet": [148, 0, 211],
	"deeppink": [255, 20, 147],
	"deepskyblue": [0, 191, 255],
	"dimgray": [105, 105, 105],
	"dimgrey": [105, 105, 105],
	"dodgerblue": [30, 144, 255],
	"firebrick": [178, 34, 34],
	"floralwhite": [255, 250, 240],
	"forestgreen": [34, 139, 34],
	"fuchsia": [255, 0, 255],
	"gainsboro": [220, 220, 220],
	"ghostwhite": [248, 248, 255],
	"gold": [255, 215, 0],
	"goldenrod": [218, 165, 32],
	"gray": [128, 128, 128],
	"green": [0, 128, 0],
	"greenyellow": [173, 255, 47],
	"grey": [128, 128, 128],
	"honeydew": [240, 255, 240],
	"hotpink": [255, 105, 180],
	"indianred": [205, 92, 92],
	"indigo": [75, 0, 130],
	"ivory": [255, 255, 240],
	"khaki": [240, 230, 140],
	"lavender": [230, 230, 250],
	"lavenderblush": [255, 240, 245],
	"lawngreen": [124, 252, 0],
	"lemonchiffon": [255, 250, 205],
	"lightblue": [173, 216, 230],
	"lightcoral": [240, 128, 128],
	"lightcyan": [224, 255, 255],
	"lightgoldenrodyellow": [250, 250, 210],
	"lightgray": [211, 211, 211],
	"lightgreen": [144, 238, 144],
	"lightgrey": [211, 211, 211],
	"lightpink": [255, 182, 193],
	"lightsalmon": [255, 160, 122],
	"lightseagreen": [32, 178, 170],
	"lightskyblue": [135, 206, 250],
	"lightslategray": [119, 136, 153],
	"lightslategrey": [119, 136, 153],
	"lightsteelblue": [176, 196, 222],
	"lightyellow": [255, 255, 224],
	"lime": [0, 255, 0],
	"limegreen": [50, 205, 50],
	"linen": [250, 240, 230],
	"magenta": [255, 0, 255],
	"maroon": [128, 0, 0],
	"mediumaquamarine": [102, 205, 170],
	"mediumblue": [0, 0, 205],
	"mediumorchid": [186, 85, 211],
	"mediumpurple": [147, 112, 219],
	"mediumseagreen": [60, 179, 113],
	"mediumslateblue": [123, 104, 238],
	"mediumspringgreen": [0, 250, 154],
	"mediumturquoise": [72, 209, 204],
	"mediumvioletred": [199, 21, 133],
	"midnightblue": [25, 25, 112],
	"mintcream": [245, 255, 250],
	"mistyrose": [255, 228, 225],
	"moccasin": [255, 228, 181],
	"navajowhite": [255, 222, 173],
	"navy": [0, 0, 128],
	"oldlace": [253, 245, 230],
	"olive": [128, 128, 0],
	"olivedrab": [107, 142, 35],
	"orange": [255, 165, 0],
	"orangered": [255, 69, 0],
	"orchid": [218, 112, 214],
	"palegoldenrod": [238, 232, 170],
	"palegreen": [152, 251, 152],
	"paleturquoise": [175, 238, 238],
	"palevioletred": [219, 112, 147],
	"papayawhip": [255, 239, 213],
	"peachpuff": [255, 218, 185],
	"peru": [205, 133, 63],
	"pink": [255, 192, 203],
	"plum": [221, 160, 221],
	"powderblue": [176, 224, 230],
	"purple": [128, 0, 128],
	"rebeccapurple": [102, 51, 153],
	"red": [255, 0, 0],
	"rosybrown": [188, 143, 143],
	"royalblue": [65, 105, 225],
	"saddlebrown": [139, 69, 19],
	"salmon": [250, 128, 114],
	"sandybrown": [244, 164, 96],
	"seagreen": [46, 139, 87],
	"seashell": [255, 245, 238],
	"sienna": [160, 82, 45],
	"silver": [192, 192, 192],
	"skyblue": [135, 206, 235],
	"slateblue": [106, 90, 205],
	"slategray": [112, 128, 144],
	"slategrey": [112, 128, 144],
	"snow": [255, 250, 250],
	"springgreen": [0, 255, 127],
	"steelblue": [70, 130, 180],
	"tan": [210, 180, 140],
	"teal": [0, 128, 128],
	"thistle": [216, 191, 216],
	"tomato": [255, 99, 71],
	"turquoise": [64, 224, 208],
	"violet": [238, 130, 238],
	"wheat": [245, 222, 179],
	"white": [255, 255, 255],
	"whitesmoke": [245, 245, 245],
	"yellow": [255, 255, 0],
	"yellowgreen": [154, 205, 50]
};


/***/ }),
/* 205 */
/*!*********************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/color-convert/route.js ***!
  \*********************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

var conversions = __webpack_require__(/*! ./conversions */ 67);

/*
	this function routes a model to all other models.

	all functions that are routed have a property `.conversion` attached
	to the returned synthetic function. This property is an array
	of strings, each with the steps in between the 'from' and 'to'
	color models (inclusive).

	conversions that are not possible simply are not included.
*/

function buildGraph() {
	var graph = {};
	// https://jsperf.com/object-keys-vs-for-in-with-closure/3
	var models = Object.keys(conversions);

	for (var len = models.length, i = 0; i < len; i++) {
		graph[models[i]] = {
			// http://jsperf.com/1-vs-infinity
			// micro-opt, but this is simple.
			distance: -1,
			parent: null
		};
	}

	return graph;
}

// https://en.wikipedia.org/wiki/Breadth-first_search
function deriveBFS(fromModel) {
	var graph = buildGraph();
	var queue = [fromModel]; // unshift -> queue -> pop

	graph[fromModel].distance = 0;

	while (queue.length) {
		var current = queue.pop();
		var adjacents = Object.keys(conversions[current]);

		for (var len = adjacents.length, i = 0; i < len; i++) {
			var adjacent = adjacents[i];
			var node = graph[adjacent];

			if (node.distance === -1) {
				node.distance = graph[current].distance + 1;
				node.parent = current;
				queue.unshift(adjacent);
			}
		}
	}

	return graph;
}

function link(from, to) {
	return function (args) {
		return to(from(args));
	};
}

function wrapConversion(toModel, graph) {
	var path = [graph[toModel].parent, toModel];
	var fn = conversions[graph[toModel].parent][toModel];

	var cur = graph[toModel].parent;
	while (graph[cur].parent) {
		path.unshift(graph[cur].parent);
		fn = link(conversions[graph[cur].parent][cur], fn);
		cur = graph[cur].parent;
	}

	fn.conversion = path;
	return fn;
}

module.exports = function (fromModel) {
	var graph = deriveBFS(fromModel);
	var conversion = {};

	var models = Object.keys(graph);
	for (var len = models.length, i = 0; i < len; i++) {
		var toModel = models[i];
		var node = graph[toModel];

		if (node.parent === null) {
			// no possible conversion, or this node is the source model.
			continue;
		}

		conversion[toModel] = wrapConversion(toModel, graph);
	}

	return conversion;
};



/***/ }),
/* 206 */
/*!*******************************************************************************!*\
  !*** ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFilters.js ***!
  \*******************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.isFilterExists = exports.getProperties = exports.getShadow = exports.getFilter = void 0;
var svgFiltersTemplates_1 = __webpack_require__(/*! ./svgFiltersTemplates */ 207);
var svgPresets_1 = __webpack_require__(/*! ./svgPresets */ 209);
function getFilter(id, name, overrides, attrs) {
    var filter = svgPresets_1.filterPresets[name] || [];
    return svgFiltersTemplates_1.interpolate(id, filter, overrides || {}, attrs);
}
exports.getFilter = getFilter;
function getShadow(id, shadow) {
    return svgFiltersTemplates_1.interpolate(id, [{ key: 'shadow', value: shadow }], {});
}
exports.getShadow = getShadow;
function getProperties(name, overrides) {
    var filter = svgPresets_1.filterPresets[name] || [];
    return svgFiltersTemplates_1.getProperties(filter, overrides || {});
}
exports.getProperties = getProperties;
function isFilterExists(effectName) {
    return effectName in svgPresets_1.filterPresets;
}
exports.isFilterExists = isFilterExists;
//# sourceMappingURL=svgFilters.js.map

/***/ }),
/* 207 */
/*!****************************************************************************************!*\
  !*** ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js ***!
  \****************************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getProperties = exports.interpolate = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ 0);
var svgFiltersParts_1 = __webpack_require__(/*! ./svgFiltersParts */ 208);
function attrToString(key, value) {
    return value || value === 0 ? key + "=\"" + value + "\"" : '';
}
function attrsObjectToString(attrs) {
    return Object.keys(attrs)
        .map(function (key) { return attrToString(key, attrs[key]); })
        .join(' ');
}
function filterWrapperTemplate(_a) {
    var id = _a.id, content = _a.content, _b = _a.attrs, attrs = _b === void 0 ? {} : _b;
    // the redundant identity <feComponentTransfer/> in start and end
    // are for fixing old Webkit bug that caused it to ignore color-interpolation-filters="sRGB"
    return "<filter id=\"" + id + "\" color-interpolation-filters=\"sRGB\" " + attrsObjectToString(attrs) + ">\n    <feComponentTransfer result=\"srcRGB\"/>\n    " + content + "\n    <feComponentTransfer/>\n</filter>";
}
function identity(_a) {
    var inAttr = _a.inAttr;
    return "<feColorMatrix " + attrToString('in', inAttr) + "/>";
}
function contrast(_a) {
    var value = _a.value;
    return "<feComponentTransfer>" + svgFiltersParts_1.getContrast(value) + "</feComponentTransfer>";
}
function brightness(_a) {
    var value = _a.value, result = _a.result;
    return "<feComponentTransfer " + attrToString('result', result) + ">" + svgFiltersParts_1.getBrightness(value) + "</feComponentTransfer>";
}
function saturation(_a) {
    var value = _a.value, inAttr = _a.inAttr, result = _a.result;
    return "<feColorMatrix type=\"saturate\" values=\"" + value + "\" " + (inAttr ? "in=\"" + inAttr + "\"" : '') + (result ? "result=\"" + result + "\"" : '') + "/>";
}
function sepia(_a) {
    var value = _a.value;
    return "<feColorMatrix type=\"matrix\" values=\"" + svgFiltersParts_1.getSepia(value) + "\"/>";
}
function hue(_a) {
    var value = _a.value;
    return "<feColorMatrix type=\"hueRotate\" values=\"" + value + "\"/>";
}
function color(_a) {
    var value = _a.value, inAttr = _a.inAttr, result = _a.result;
    var hexColor = typeof value === 'string' ? value : value.color;
    var opacity = typeof value === 'object' && typeof value.opacity !== 'undefined' ? value.opacity : 1;
    return "<feColorMatrix type=\"matrix\" values=\"" + svgFiltersParts_1.getColor(svgFiltersParts_1.hex2RgbNorm(hexColor), opacity) + "\" " + (inAttr ? "in=\"" + inAttr + "\"" : '') + (result ? "result=\"" + result + "\"" : '') + "/>";
}
function tint(_a) {
    var value = _a.value;
    return "<feColorMatrix type=\"matrix\" values=\"" + svgFiltersParts_1.getTint(svgFiltersParts_1.hex2RgbNorm(value)) + "\"/>";
}
function blur(_a) {
    var value = _a.value, inAttr = _a.inAttr;
    return "<feGaussianBlur stdDeviation=\"" + value + "\" " + (inAttr ? "in=\"" + inAttr + "\"" : '') + "/>";
}
function alpha(_a) {
    var value = _a.value, inAttr = _a.inAttr, result = _a.result;
    return "<feComponentTransfer " + attrToString('in', inAttr) + " " + attrToString('result', result) + ">" + svgFiltersParts_1.getAlpha(value) + "</feComponentTransfer>";
}
function offset(_a) {
    var value = _a.value, inAttr = _a.inAttr, result = _a.result;
    return "<feOffset dx=\"" + value.x + "\" dy=\"" + value.y + "\" " + (inAttr ? "in=\"" + inAttr + "\"" : '') + (result ? "result=\"" + result + "\"" : '') + "/>";
}
function blend(_a) {
    var value = _a.value, inAttr = _a.inAttr, in2Attr = _a.in2Attr, result = _a.result;
    return "<feBlend mode=\"" + value + "\" in=\"" + inAttr + "\" in2=\"" + in2Attr + "\" " + attrToString('result', result) + "/>";
}
function composite(_a) {
    var value = _a.value, inAttr = _a.inAttr, in2Attr = _a.in2Attr, result = _a.result;
    return "<feComposite operator=\"" + value + "\" in=\"" + inAttr + "\" in2=\"" + in2Attr + "\" " + attrToString('result', result) + "/>";
}
function duotone(_a) {
    var _b = _a.value, dark = _b.dark, light = _b.light, inAttr = _a.inAttr, result = _a.result;
    return saturation({ value: 0 }) + "\n<feColorMatrix type=\"matrix\" values=\"" + svgFiltersParts_1.getDoutone(svgFiltersParts_1.hex2RgbNorm(light), svgFiltersParts_1.hex2RgbNorm(dark)) + "\" " + (inAttr ? "in=\"" + inAttr + "\"" : '') + (result ? "result=\"" + result + "\"" : '') + "/>";
}
function luma(_a) {
    var _b = _a.value, dark = _b.dark, light = _b.light, result = _a.result;
    return "<feColorMatrix type=\"matrix\" values=\"" + svgFiltersParts_1.getLumaMatrix(light, dark) + "\" " + (result ? "result=\"" + result + "\"" : '') + "/>";
}
function shadow(_a) {
    var _b = _a.value, blurRadius = _b.blurRadius, mergeGraphic = _b.mergeGraphic, rest = tslib_1.__rest(_b, ["blurRadius", "mergeGraphic"]);
    return blur({ value: blurRadius, inAttr: 'SourceAlpha' }) + "\n" + offset({ value: rest }) + "\n" + color({ value: rest }) + "\n" + (mergeGraphic
        ? "<feMerge>\n    <feMergeNode/>\n    <feMergeNode in=\"SourceGraphic\"/>\n</feMerge>"
        : '');
}
var filterComponentTempaltesWithNumber = {
    blur: blur,
    saturation: saturation,
    contrast: contrast,
    brightness: brightness,
    sepia: sepia,
    hue: hue,
    alpha: alpha,
};
var filterComponentTempaltesWithString = {
    blend: blend,
    color: color,
    composite: composite,
    tint: tint,
};
var filterComponentTempaltes = {
    duotone: duotone,
    shadow: shadow,
    color: color,
    offset: offset,
};
function getFilterValue(key, value, overrides) {
    if (key === 'duotone') {
        return {
            light: ('duotoneLight' in overrides && overrides.duotoneLight) || value.light,
            dark: ('duotoneDark' in overrides && overrides.duotoneDark) || value.dark,
        };
    }
    else if (key in overrides) {
        return overrides[key];
    }
    return value;
}
function interpolate(id, filterDefinition, overrides, attrs) {
    var content = filterDefinition
        .map(function (effect) {
        var key = effect.key, value = effect.value;
        var filterValue = getFilterValue(key, value, overrides);
        var arg = tslib_1.__assign(tslib_1.__assign({}, effect), { value: filterValue });
        if (typeof filterValue === 'number') {
            return filterComponentTempaltesWithNumber[key](arg);
        }
        else if (typeof filterValue === 'string') {
            return filterComponentTempaltesWithString[key](arg);
        }
        else if (key === 'luma') {
            return luma(arg);
        }
        else if (key === 'identity') {
            return identity(arg);
        }
        else {
            return filterComponentTempaltes[key](arg);
        }
    })
        .join('\n');
    return filterWrapperTemplate({ id: id, content: content, attrs: attrs });
}
exports.interpolate = interpolate;
function getProperties(filterDefinition, overrides) {
    return filterDefinition.map(function (effect) {
        var _a;
        var key = effect.key, value = effect.value;
        return _a = {}, _a[key] = getFilterValue(key, value, overrides), _a;
    });
}
exports.getProperties = getProperties;
//# sourceMappingURL=svgFiltersTemplates.js.map

/***/ }),
/* 208 */
/*!************************************************************************************!*\
  !*** ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js ***!
  \************************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// /*eslint no-extra-parens:0*/
// 'use strict'
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLumaMatrix = exports.getAlpha = exports.getTint = exports.getBrightness = exports.getSepia = exports.getContrast = exports.getColor = exports.hex2RgbNorm = exports.hexToRgb = exports.getDoutone = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ 0);
function getSepia(amount) {
    return 0.393 + 0.607 * (1 - amount) + " " + (0.769 - 0.769 * (1 - amount)) + " " + (0.189 - 0.189 * (1 - amount)) + " 0 0\n     " + (0.349 - 0.349 * (1 - amount)) + " " + (0.686 + 0.314 * (1 - amount)) + " " + (0.168 - 0.168 * (1 - amount)) + " 0 0\n     " + (0.272 - 0.272 * (1 - amount)) + " " + (0.534 - 0.534 * (1 - amount)) + " " + (0.131 + 0.869 * (1 - amount)) + " 0 0\n     0 0 0 1 0";
}
exports.getSepia = getSepia;
function getContrast(amount) {
    return "<feFuncR type=\"linear\" slope=\"" + amount + "\" intercept=\"" + Math.round((-0.5 * amount + 0.5) * 100) / 100 + "\"/>\n<feFuncG type=\"linear\" slope=\"" + amount + "\" intercept=\"" + Math.round((-0.5 * amount + 0.5) * 100) / 100 + "\"/>\n<feFuncB type=\"linear\" slope=\"" + amount + "\" intercept=\"" + Math.round((-0.5 * amount + 0.5) * 100) / 100 + "\"/>";
}
exports.getContrast = getContrast;
function getBrightness(amount) {
    return "<feFuncR type=\"linear\" slope=\"" + amount + "\" /><feFuncG type=\"linear\" slope=\"" + amount + "\" /><feFuncB type=\"linear\" slope=\"" + amount + "\" />";
}
exports.getBrightness = getBrightness;
function getTint(color) {
    return 1 - color.r + " 0 0 0 " + color.r + " " + (1 - color.g) + " 0 0 0 " + color.g + " " + (1 - color.b) + " 0 0 0 " + color.b + " 0 0 0 1 0";
}
exports.getTint = getTint;
function getLumaMatrix(whiteParams, blackParams) {
    return whiteParams.r + " 0 0 0 " + blackParams.r + "\n     " + whiteParams.g + " 1 0 0 " + blackParams.g + "\n     " + whiteParams.b + " 0 1 0 " + blackParams.b + "\n     0 0 0 1 0";
}
exports.getLumaMatrix = getLumaMatrix;
function getColor(color, opacity) {
    if (opacity === void 0) { opacity = 1; }
    return "0 0 0 0 " + color.r + "\n0 0 0 0 " + color.g + "\n0 0 0 0 " + color.b + "\n0 0 0 " + opacity + " 0";
}
exports.getColor = getColor;
/**
 * colors the source to 2 colors , input should be gray scale
 */
function getDoutone(light, dark) {
    var r_diff = light.r - dark.r;
    var g_diff = light.g - dark.g;
    var b_diff = light.b - dark.b;
    return r_diff + " 0 0 0 " + dark.r + " " + g_diff + " 0 0 0 " + dark.g + " " + b_diff + " 0 0 0 " + dark.b + " 0 0 0 1 0";
}
exports.getDoutone = getDoutone;
function getAlpha(amount) {
    return "<feFuncA type=\"linear\" slope=\"" + amount + "\" />";
}
exports.getAlpha = getAlpha;
function hexToRgb(hex) {
    var _a = tslib_1.__read(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex), 4), r = _a[1], g = _a[2], b = _a[3]; // fIXM<E
    return {
        r: parseInt(r, 16),
        g: parseInt(g, 16),
        b: parseInt(b, 16),
    };
}
exports.hexToRgb = hexToRgb;
function hex2RgbNorm(hex) {
    var _a = hexToRgb(hex), r = _a.r, g = _a.g, b = _a.b;
    return {
        r: r / 255,
        g: g / 255,
        b: b / 255,
    };
}
exports.hex2RgbNorm = hex2RgbNorm;
//# sourceMappingURL=svgFiltersParts.js.map

/***/ }),
/* 209 */
/*!*******************************************************************************!*\
  !*** ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgPresets.js ***!
  \*******************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.filterPresets = void 0;
exports.filterPresets = {
    normal: [{ key: 'identity', inAttr: 'SourceGraphic' }],
    ink: [
        { key: 'sepia', value: 0.3 },
        { key: 'contrast', value: 1.5 },
        { key: 'brightness', value: 1.1 },
        { key: 'saturation', value: 0 },
    ],
    kennedy: [
        { key: 'saturation', value: 0 },
        { key: 'contrast', value: 1.1 },
        { key: 'brightness', value: 0.9 },
    ],
    feathered: [
        { key: 'saturation', value: 0.2 },
        { key: 'contrast', value: 0.85 },
        { key: 'brightness', value: 0.9 },
        { key: 'tint', value: '#171212' },
    ],
    blur: [{ key: 'blur', value: 2 }],
    whistler: [
        {
            key: 'color',
            value: '#ffffff',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        { key: 'alpha', value: 0.4, inAttr: 'color', result: 'flood_alpha' },
        { key: 'blur', value: 1.8, inAttr: 'srcRGB' },
        { key: 'alpha', value: 0.6, result: 'blur_alpha' },
        {
            key: 'blend',
            value: 'normal',
            inAttr: 'blur_alpha',
            in2Attr: 'srcRGB',
            result: 'source_blur',
        },
        {
            key: 'blend',
            value: 'overlay',
            inAttr: 'flood_alpha',
            in2Attr: 'source_blur',
        },
        { key: 'brightness', value: 1.1 },
        { key: 'contrast', value: 0.9 },
        { key: 'saturation', value: 0.6 },
    ],
    '3d': [
        { key: 'color', value: '#00ffff', inAttr: 'srcRGB', result: 'color1' },
        {
            key: 'blend',
            value: 'lighten',
            inAttr: 'color1',
            in2Attr: 'srcRGB',
            result: 'image_color1',
        },
        {
            key: 'offset',
            value: { x: -3, y: 0 },
            inAttr: 'image_color1',
            result: 'image_color1_offset',
        },
        { key: 'color', value: '#ff0000', inAttr: 'srcRGB', result: 'color2' },
        {
            key: 'blend',
            value: 'lighten',
            inAttr: 'color2',
            in2Attr: 'srcRGB',
            result: 'image_color2',
        },
        {
            key: 'offset',
            value: { x: 3, y: 0 },
            inAttr: 'image_color2',
            result: 'image_color2_offset',
        },
        {
            key: 'blend',
            value: 'darken',
            inAttr: 'image_color1_offset',
            in2Attr: 'image_color2_offset',
        },
    ],
    blueray: [
        { key: 'saturation', value: 0, result: 'grayscale' },
        {
            key: 'color',
            value: '#1b00ff',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'color',
            in2Attr: 'grayscale',
        },
    ],
    lighten: [
        { key: 'color', value: '#ffffff', inAttr: 'srcRGB', result: 'color' },
        { key: 'alpha', value: 0.46, inAttr: 'color', result: 'color_alpha' },
        {
            key: 'composite',
            value: 'over',
            inAttr: 'color_alpha',
            in2Attr: 'srcRGB',
        },
    ],
    darken: [
        { key: 'brightness', value: 0.4, result: 'brightness' },
        {
            key: 'blend',
            value: 'darken',
            inAttr: 'brightness',
            in2Attr: 'SourceGraphic',
        },
    ],
    pinkrinse: [
        { key: 'saturation', value: 0, result: 'grayscale' },
        {
            key: 'color',
            value: '#9a1a77',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'grayscale',
            in2Attr: 'color',
        },
    ],
    redrum: [
        { key: 'contrast', value: 0.75 },
        { key: 'brightness', value: 1.2 },
        { key: 'saturation', value: 0, result: 'grayscale' },
        {
            key: 'color',
            value: '#f26552',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'grayscale',
            in2Attr: 'color',
        },
    ],
    greenwash: [
        { key: 'saturation', value: 0, result: 'grayscale' },
        {
            key: 'color',
            value: '#1c9784',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'color',
            in2Attr: 'grayscale',
        },
    ],
    yellowstreak: [
        { key: 'contrast', value: 2 },
        { key: 'brightness', value: 1.1 },
        { key: 'saturation', value: 0, result: 'grayscale' },
        { key: 'color', value: '#ffd200', result: 'color' },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'grayscale',
            in2Attr: 'color',
        },
    ],
    neonsky: [
        { key: 'contrast', value: 0.8 },
        { key: 'duotone', value: { dark: '#800033', light: '#fff200' } },
        {
            key: 'luma',
            value: {
                dark: { r: 0, g: -0.1, b: 0 },
                light: { r: 1.2, g: 0, b: 0 },
            },
        },
    ],
    seaweed: [{ key: 'duotone', value: { dark: '#0b00e9', light: '#00d980' } }],
    soledad: [
        { key: 'brightness', value: 1.1 },
        { key: 'contrast', value: 0.9 },
        { key: 'saturation', value: 0.8, result: 'saturation' },
        {
            key: 'color',
            value: '#fce8d3',
            inAttr: 'SourceGraphic',
            result: 'color1',
        },
        { key: 'alpha', value: 0.15, inAttr: 'color1', result: 'color_alpha' },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'color_alpha',
            in2Attr: 'saturation',
            result: 'source',
        },
        {
            key: 'color',
            value: '#fc9f1a',
            inAttr: 'SourceGraphic',
            result: 'color2',
        },
        { key: 'alpha', value: 0.23, inAttr: 'color2', result: 'color_alpha2' },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'color_alpha2',
            in2Attr: 'source',
        },
    ],
    sangria: [
        { key: 'brightness', value: 0.95 },
        { key: 'contrast', value: 1.35 },
        { key: 'saturation', value: 0.5, result: 'saturation' },
        {
            key: 'color',
            value: '#c712e2',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        { key: 'alpha', value: 0.08, inAttr: 'color', result: 'color_alpha' },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'color_alpha',
            in2Attr: 'saturation',
            result: 'source',
        },
    ],
    malibu: [
        { key: 'contrast', value: 0.8 },
        { key: 'duotone', value: { dark: '#0045d6', light: '#ffdbc0' } },
    ],
    candyfloss: [
        { key: 'contrast', value: 0.8 },
        { key: 'duotone', value: { dark: '#ff0000', light: '#ff9bff' } },
    ],
    elmo: [
        { key: 'contrast', value: 0.8 },
        { key: 'duotone', value: { dark: '#ff0000', light: '#cadccc' } },
    ],
    unicorn: [
        { key: 'contrast', value: 0.8 },
        { key: 'duotone', value: { dark: '#409ca5', light: '#dfb1bd' } },
    ],
    kerouac: [{ key: 'duotone', value: { dark: '#37312e', light: '#b5a8a2' } }],
    koolaid: [{ key: 'duotone', value: { dark: '#5f00ad', light: '#fdcec1' } }],
    hydra: [{ key: 'duotone', value: { dark: '#f72b3e', light: '#ffeced' } }],
    pixie: [{ key: 'duotone', value: { dark: '#85d3de', light: '#ffe1d5' } }],
    nightrain: [{ key: 'duotone', value: { dark: '#2f3c6d', light: '#8e96b5' } }],
    bauhaus: [{ key: 'duotone', value: { dark: '#002787', light: '#e8e8e8' } }],
    neptune: [{ key: 'duotone', value: { dark: '#0a7eff', light: '#e5defa' } }],
    orca: [
        { key: 'saturation', value: 0.2 },
        { key: 'contrast', value: 0.85 },
        { key: 'brightness', value: 0.9 },
        { key: 'tint', value: '#2b524c' },
    ],
    manhattan: [
        { key: 'saturation', value: 0.2 },
        { key: 'contrast', value: 0.85 },
        { key: 'brightness', value: 0.9 },
        { key: 'tint', value: '#211c0f' },
    ],
    goldie: [
        { key: 'saturation', value: 0.2 },
        { key: 'contrast', value: 0.85 },
        { key: 'brightness', value: 0.9 },
        { key: 'tint', value: '#a6966e' },
    ],
    flamingo: [
        { key: 'saturation', value: 0.2 },
        { key: 'contrast', value: 0.85 },
        { key: 'brightness', value: 0.9 },
        { key: 'tint', value: '#ff4283' },
    ],
    faded: [
        { key: 'saturation', value: 0.2 },
        { key: 'contrast', value: 0.85 },
        { key: 'brightness', value: 0.9 },
        { key: 'tint', value: '#dcdddc' },
    ],
    gotham: [
        { key: 'brightness', value: 0.95 },
        { key: 'contrast', value: 1.35 },
        { key: 'saturation', value: 0.5, result: 'saturation' },
        {
            key: 'color',
            value: '#93676f',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        { key: 'alpha', value: 0.08, inAttr: 'color', result: 'color_alpha' },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'color_alpha',
            in2Attr: 'saturation',
            result: 'source',
        },
    ],
    hulk: [
        { key: 'contrast', value: 0.75 },
        { key: 'brightness', value: 1.2 },
        { key: 'saturation', value: 0, result: 'grayscale' },
        {
            key: 'color',
            value: '#b5c900',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'grayscale',
            in2Attr: 'color',
        },
    ],
    midnight: [
        { key: 'contrast', value: 0.75 },
        { key: 'brightness', value: 1.2 },
        { key: 'saturation', value: 0, result: 'grayscale' },
        {
            key: 'color',
            value: '#00254b',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'grayscale',
            in2Attr: 'color',
        },
    ],
    lucille: [
        { key: 'contrast', value: 0.75 },
        { key: 'brightness', value: 1.2 },
        { key: 'saturation', value: 0, result: 'grayscale' },
        {
            key: 'color',
            value: '#d60000',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'grayscale',
            in2Attr: 'color',
        },
    ],
    organic: [
        { key: 'contrast', value: 0.75 },
        { key: 'brightness', value: 1.2 },
        { key: 'saturation', value: 0, result: 'grayscale' },
        {
            key: 'color',
            value: '#debda5',
            inAttr: 'SourceGraphic',
            result: 'color',
        },
        {
            key: 'blend',
            value: 'multiply',
            inAttr: 'grayscale',
            in2Attr: 'color',
        },
    ],
    grayscale: [
        { key: 'brightness', value: 1 },
        { key: 'contrast', value: 1 },
        { key: 'duotone', value: { dark: '#000000', light: '#ffffff' } },
    ],
    tvDuotone: [
        { key: 'brightness', value: 0.9 },
        { key: 'contrast', value: 1.5 },
        { key: 'duotone', value: { dark: '@color_23', light: '@color_18' } },
    ],
    tvMonotoneDark: [
        { key: 'brightness', value: 1.2 },
        { key: 'contrast', value: 1 },
        { key: 'duotone', value: { dark: '#000000', light: '@color_8' } },
    ],
    tvMonotoneLight: [
        { key: 'brightness', value: 1 },
        { key: 'contrast', value: 1 },
        { key: 'duotone', value: { dark: '@color_8', light: '#ffffff' } },
    ],
    tvHue: [
        { key: 'hue', value: -60 },
        { key: 'saturation', value: 1 },
    ],
};
//# sourceMappingURL=svgPresets.js.map

/***/ }),
/* 210 */
/*!******************************************************************************!*\
  !*** ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js ***!
  \******************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.parseSvgString = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ 0);
var SVG_TYPES = {
    SHAPE: 'shape',
    TINT: 'tint',
    COLOR: 'color',
    UGC: 'ugc',
};
var attributesRegexes = {
    fill: /fill="(.*?)"/g,
    'data-color': /data-color="(.*?)"/g,
    'data-type': /data-type="(.*?)"/g,
    'data-bbox': /data-bbox="(.*?)"/g,
    width: /width="(.*?)"/g,
    height: /height="(.*?)"/g,
    viewBox: /viewBox="(.*?)"/g,
};
var elementsRegexes = {
    svg: /(<svg(.*?)>)/g,
    path: /(<path(.*?)>)/g,
};
var getViewBoxObject = function (viewBox) {
    var vieBoxArr = viewBox.split(' ');
    return {
        x: vieBoxArr[0],
        y: vieBoxArr[1],
        width: vieBoxArr[2],
        height: vieBoxArr[3],
    };
};
var getAll = function (str, regex, defaultValue) {
    var match = regex.exec(str);
    if (match) {
        return tslib_1.__spreadArray([match[1]], tslib_1.__read(getAll(str, regex, defaultValue)));
    }
    return defaultValue ? [defaultValue] : [];
};
var getUGCViewBox = function (svgType, svgNode) {
    if (svgType === SVG_TYPES.UGC) {
        var _a = tslib_1.__read(getAll(svgNode, attributesRegexes.width), 1), width = _a[0];
        var _b = tslib_1.__read(getAll(svgNode, attributesRegexes.height), 1), height = _b[0];
        if (width && height) {
            return "0 0 " + width + " " + height;
        }
    }
    return '';
};
var getColors = function (nodes) {
    return nodes.reduce(function (colors, node) {
        var _a = tslib_1.__read(getAll(node, attributesRegexes['data-color']), 1), dataColor = _a[0];
        var _b = tslib_1.__read(getAll(node, attributesRegexes.fill), 1), fill = _b[0];
        colors["color" + dataColor] = fill;
        return colors;
    }, {});
};
var parseSvgString = function (svgString) {
    var _a = tslib_1.__read(getAll(svgString, elementsRegexes.svg), 1), svgNode = _a[0];
    var pathNodes = getAll(svgString, elementsRegexes.path);
    var _b = tslib_1.__read(getAll(svgNode, attributesRegexes['data-type'], SVG_TYPES.SHAPE), 1), svgType = _b[0];
    var _c = tslib_1.__read(getAll(svgNode, attributesRegexes.viewBox).concat([getUGCViewBox(svgType, svgNode)]), 1), viewBox = _c[0];
    var _d = tslib_1.__read(getAll(svgNode, attributesRegexes['data-bbox']) || '', 1), bbox = _d[0];
    var svgInfo = tslib_1.__assign(tslib_1.__assign({}, getColors(pathNodes)), { svgType: svgType,
        viewBox: viewBox,
        bbox: bbox });
    return {
        content: svgString,
        info: svgInfo,
        boxBoundaries: bbox ? getViewBoxObject(bbox) : {},
    };
};
exports.parseSvgString = parseSvgString;
//# sourceMappingURL=svgParser.js.map

/***/ }),
/* 211 */
/*!**********************************************************************!*\
  !*** ../node_modules/@wix/thunderbolt-commons/dist/hoverBoxUtils.js ***!
  \**********************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.compIdToCssSelector = exports.getDefaultCompId = exports.getHoverCompId = exports.HOVER_DATA_MODE = exports.DEFAULT_DATA_MODE = exports.HOVER_SUFFIX = exports.MODES_TYPE = void 0;
exports.MODES_TYPE = {
    hover: 'HOVER',
    default: 'DEFAULT',
};
exports.HOVER_SUFFIX = ':hover';
exports.DEFAULT_DATA_MODE = '[data-mode=default]';
exports.HOVER_DATA_MODE = '[data-mode=hover]';
var getHoverCompId = function (compId) { return "" + compId + exports.HOVER_SUFFIX; };
exports.getHoverCompId = getHoverCompId;
var getDefaultCompId = function (compId) { return (compId ? compId.replace(exports.HOVER_SUFFIX, '') : compId); };
exports.getDefaultCompId = getDefaultCompId;
var COMP_SELECTOR_PLACEHOLDER = '#<%= compId %>';
var compIdToCssSelector = function (compId, shouldReturnPlaceholderSelector) {
    var defaultCompId = exports.getDefaultCompId(compId);
    var fallbackSelector = shouldReturnPlaceholderSelector ? "" + COMP_SELECTOR_PLACEHOLDER : "#" + compId;
    return compId.endsWith(exports.HOVER_SUFFIX) ? exports.HOVER_DATA_MODE + " #" + defaultCompId : fallbackSelector;
};
exports.compIdToCssSelector = compIdToCssSelector;
//# sourceMappingURL=hoverBoxUtils.js.map

/***/ }),
/* 212 */
/*!***************************************************************!*\
  !*** ./components/VerticalMenu/corvid/VerticalMenu.corvid.ts ***!
  \***************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/VerticalMenu/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _core_corvid_Menu_Menu_corvid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../core/corvid/Menu/Menu.corvid */ 41);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return _core_corvid_Menu_Menu_corvid__WEBPACK_IMPORTED_MODULE_0__["a"]; });

/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _core_corvid_Menu_Menu_corvid__WEBPACK_IMPORTED_MODULE_0__["a"]; });





/***/ }),
/* 213 */
/*!*************************************************************************!*\
  !*** ./components/VideoBoxContainer/VideoBox/corvid/VideoBox.corvid.ts ***!
  \*************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/VideoBoxContainer/VideoBox/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 3);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../core/corvid/media/backgroundUtils */ 24);
/* harmony import */ var _core_corvid_media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../core/corvid/media/mediaItemUtils */ 5);
/* harmony import */ var _core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../core/corvid/media/mediaSrcHandler */ 21);






var _sdkFactory = function (api) {
    var props = api.props, setProps = api.setProps, compRef = api.compRef, registerEvent = api.registerEvent, metaData = api.metaData, createSdkState = api.createSdkState;
    var _a = createSdkState({
        isMuted: props.muted,
        isPlaying: false,
        currentTime: 0,
        duration: 0,
        volume: 100,
        shouldPlay: props.autoplay && !props.reducedMotion,
    }), state = _a[0], setState = _a[1];
    registerEvent('updateState', function (updates) {
        return setState(updates);
    });
    return {
        get isMuted() {
            return state.isMuted;
        },
        get isPlaying() {
            return state.isPlaying;
        },
        get currentTime() {
            return state.currentTime;
        },
        get duration() {
            return state.duration;
        },
        get volume() {
            return state.volume;
        },
        set volume(volume) {
            setState({ volume: volume });
            compRef.setVolume(volume / 100);
        },
        get src() {
            var _a, _b;
            var fillLayers = props.fillLayers;
            if ((_b = (_a = fillLayers === null || fillLayers === void 0 ? void 0 : fillLayers.video) === null || _a === void 0 ? void 0 : _a.videoInfo) === null || _b === void 0 ? void 0 : _b.videoId) {
                var videoInfo = fillLayers.video.videoInfo;
                var mediaItemUri = Object(_core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_9__[/* createMediaSrc */ "a"])({
                    mediaId: videoInfo.videoId,
                    type: _core_corvid_media_mediaItemUtils__WEBPACK_IMPORTED_MODULE_8__[/* types */ "b"].VIDEO,
                    width: videoInfo.videoWidth,
                    height: videoInfo.videoHeight,
                    posterId: fillLayers.video.posterImageInfo.uri,
                });
                if (mediaItemUri.error) {
                    return '';
                }
                return mediaItemUri.item || '';
            }
            return '';
        },
        set src(value) {
            var _a, _b;
            var _c = props.fillLayers, fillLayers = _c === void 0 ? {} : _c;
            var mediaData = Object(_core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_7__[/* getMediaDataFromSrc */ "d"])(value);
            if (!mediaData) {
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* reportError */ "a"])("The \"src\" property cannot be set to \"" + value + "\". It must be a valid video URL starting with \"wix:video://\".");
                return;
            }
            if (((_b = (_a = fillLayers.video) === null || _a === void 0 ? void 0 : _a.videoInfo) === null || _b === void 0 ? void 0 : _b.videoId) === mediaData.videoId) {
                // no change => bail out
                return;
            }
            Object(_core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_7__[/* getFullMediaData */ "b"])(mediaData, function (fullMediaRefData) {
                var _a, _b, _c;
                if (!fullMediaRefData) {
                    return;
                }
                var isTransparent = (_a = fullMediaRefData.mediaObject.mediaFeatures) === null || _a === void 0 ? void 0 : _a.includes('alpha');
                setProps({
                    fillLayers: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, fillLayers), { video: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, fillLayers.video), { alt: '', posterImageInfo: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (_b = fillLayers === null || fillLayers === void 0 ? void 0 : fillLayers.video) === null || _b === void 0 ? void 0 : _b.posterImageInfo), mediaData.posterImageRef), videoInfo: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, (_c = fillLayers === null || fillLayers === void 0 ? void 0 : fillLayers.video) === null || _c === void 0 ? void 0 : _c.videoInfo), { videoId: fullMediaRefData.mediaObject.videoId, videoWidth: fullMediaRefData.mediaObject.videoWidth, videoHeight: fullMediaRefData.mediaObject.videoHeight, qualities: fullMediaRefData.mediaObject.qualities.filter(function (item) { return item.quality !== 'storyboard'; }), isVideoDataExists: '1', videoFormat: fullMediaRefData.mediaObject.videoFormat, playbackRate: fullMediaRefData.mediaObject.playbackRate, autoPlay: state.shouldPlay, hasAlpha: isTransparent }), muted: state.isMuted }) }),
                    hasAudio: fullMediaRefData.mediaObject.hasAudio,
                    isTransparent: isTransparent,
                });
            });
            // set new poster (a.k.a video partial props)
            setProps({
                fillLayers: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, fillLayers), { video: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_7__[/* BG_VIDEO_DEFAULTS */ "a"]), { muted: state.isMuted !== undefined ? state.isMuted : props.muted, alt: '', posterImageInfo: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ containerId: metaData.compId }, mediaData.posterImageRef), videoInfo: {
                            containerId: metaData.compId,
                            videoId: mediaData.videoId,
                            isVideoDataExists: false,
                        } }) }),
                hasAudio: false,
                isTransparent: false,
            });
        },
        play: function () {
            return compRef.play(true);
        },
        pause: function () {
            return compRef.pause();
        },
        stop: function () {
            return compRef.stop();
        },
        togglePlay: function () {
            return compRef.togglePlay();
        },
        mute: function () {
            return compRef.mute();
        },
        unmute: function () {
            return compRef.unmute();
        },
        onPlay: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* registerCorvidEvent */ "a"])('onPlay', api, handler); },
        onPause: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* registerCorvidEvent */ "a"])('onPause', api, handler); },
        onEnded: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* registerCorvidEvent */ "a"])('onEnded', api, handler); },
        onProgress: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* registerCorvidEvent */ "a"])('onProgress', api, handler); },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* toJSONBase */ "b"])(metaData)), state);
        },
    };
};
var sdkFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* withValidation */ "b"])(_sdkFactory, {
    type: ['object'],
    properties: {
        volume: {
            type: ['number'],
            minimum: 0,
            maximum: 100,
            warnIfNil: true,
        },
        src: {
            type: ['string'],
            warnIfNil: true,
        },
    },
});
var elementPropsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, sdkFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_6__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 214 */
/*!*************************************************************!*\
  !*** ./components/VideoPlayer/corvid/VideoPlayer.corvid.ts ***!
  \*************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/VideoPlayer/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 2);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 14);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 26);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 13);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/corvid/media/mediaSrcHandler */ 21);
/* harmony import */ var _core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../core/corvid/media/backgroundUtils */ 24);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);







var _videoPlayerSDKFactory = function (api) {
    var setProps = api.setProps, props = api.props, createSdkState = api.createSdkState, compRef = api.compRef, metaData = api.metaData, registerEvent = api.registerEvent;
    var _a = createSdkState({
        src: '',
        currentTime: 0,
        volume: props.volume || 0,
        isMuted: Boolean(props.isMuted),
    }), state = _a[0], setState = _a[1];
    var videoUrlToStaticVideoURL = function (mediaItem) {
        var src = mediaItem.src, width = mediaItem.width, height = mediaItem.height, uri = mediaItem.uri, title = mediaItem.title;
        var mediaId = Object(_core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_9__[/* getIdFromUrl */ "c"])(src);
        var mediaItemUri = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* createMediaItemUri */ "a"])({
            mediaId: mediaId,
            width: width,
            height: height,
            title: title,
            posterId: uri,
            type: 'video',
        });
        return mediaItemUri.item || src;
    };
    registerEvent('onStateUpdated', function (value) {
        return setState(value);
    });
    return {
        get title() {
            return props.playableConfig.title || '';
        },
        set title(title) {
            setProps({
                playableConfig: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playableConfig), { title: title }),
            });
        },
        get isMuted() {
            return Boolean(state.isMuted);
        },
        get isPlaying() {
            return Boolean(props.isPlaying);
        },
        get description() {
            return props.playableConfig.description || '';
        },
        set description(description) {
            setProps({
                playableConfig: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playableConfig), { description: description }),
            });
        },
        get currentTime() {
            return state.currentTime || 0;
        },
        get duration() {
            return props.duration || 0;
        },
        get volume() {
            return state.volume;
        },
        set volume(volume) {
            compRef.setVolume(volume);
            setState({ volume: volume });
        },
        get src() {
            var src = props.src;
            if (Array.isArray(props.src)) {
                src = props.src[0];
            }
            if (props.playableConfig.poster) {
                var _a = props.playableConfig.poster, width = _a.width, height = _a.height, uri = _a.uri;
                if (!state.src) {
                    return videoUrlToStaticVideoURL({ src: src, width: width, height: height, uri: uri });
                }
            }
            return state.src || src;
        },
        set src(value) {
            var src = _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* assert */ "a"].isNil(value) ? '' : value;
            if (Object(_core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_8__[/* isValidMediaSrc */ "b"])(src, 'video')) {
                var mediaData = Object(_core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_9__[/* getMediaDataFromSrc */ "d"])(value);
                if (!mediaData) {
                    return;
                }
                if (mediaData.posterImageRef) {
                    var _a = mediaData.posterImageRef, width = _a.width, height = _a.height, uri = _a.uri;
                    var title = mediaData.name;
                    setState({
                        src: videoUrlToStaticVideoURL({
                            src: src,
                            width: width,
                            height: height,
                            uri: uri,
                            title: title,
                        }),
                    });
                }
                if (mediaData.type === 'WixVideo') {
                    Object(_core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_9__[/* getFullMediaData */ "b"])(mediaData, function (fullMediaRefData) {
                        if (!fullMediaRefData) {
                            setState({ src: props.src });
                            return;
                        }
                        setProps({
                            playableConfig: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playableConfig), { poster: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playableConfig.poster), fullMediaRefData.mediaObject.posterImageRef) }),
                            src: "https://video.wixstatic.com/" + fullMediaRefData.mediaObject.qualities[0].url,
                        });
                    });
                }
            }
            else if (Object(_core_corvid_media_mediaSrcHandler__WEBPACK_IMPORTED_MODULE_8__[/* isValidMediaSrc */ "b"])(src, 'image')) {
                // This checks whether url is an external link (http/https)
                // TODO: create proper matchers to make this readable
                setState({ src: value });
                setProps({
                    src: value,
                    // When getting a custom extenal link, reset `playableConfig`.
                    playableConfig: {},
                });
            }
            else {
                Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_2__[/* reportError */ "a"])("The \"src\" property cannot be set to \"" + value + "\". It must be a valid URL starting with \"http://\", \"https://\", or a valid video URL starting with \"wix:video://\".");
            }
        },
        get poster() {
            var _a = props.playableConfig.poster, width = _a.width, height = _a.height, uri = _a.uri;
            var title = props.playableConfig.title;
            var mediaItemUri = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* createMediaItemUri */ "a"])({
                mediaId: uri,
                width: width,
                height: height,
                title: title,
                type: 'image',
            });
            return mediaItemUri.item || '';
        },
        set poster(uri) {
            var _a, _b;
            var poster = ((_a = props.playableConfig) === null || _a === void 0 ? void 0 : _a.poster) ? (_b = props.playableConfig) === null || _b === void 0 ? void 0 : _b.poster : {};
            if (Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_3__[/* isValidMediaItemUri */ "b"])(uri, 'image')) {
                poster = Object(_core_corvid_media_backgroundUtils__WEBPACK_IMPORTED_MODULE_9__[/* getMediaDataFromSrc */ "d"])(uri);
                uri = (poster === null || poster === void 0 ? void 0 : poster.mediaId) || uri;
            }
            setProps({
                playableConfig: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, props.playableConfig), (poster ? { title: poster.title } : {})), { poster: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, poster), { uri: uri }) }),
            });
        },
        play: function () {
            return compRef.play();
        },
        pause: function () {
            return compRef.pause();
        },
        stop: function () {
            return compRef.stop();
        },
        togglePlay: function () {
            return compRef.togglePlay();
        },
        mute: function () {
            setState({ isMuted: true });
            return compRef.mute();
        },
        unmute: function () {
            setState({ isMuted: false });
            return compRef.unmute();
        },
        seek: function (timePoint) {
            return compRef.seek(timePoint);
        },
        onPlay: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onPlay', api, handler); },
        onPause: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onPause', api, handler); },
        onEnded: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onEnded', api, handler); },
        onProgress: function (handler) { return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_4__[/* registerCorvidEvent */ "a"])('onProgress', api, handler); },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* toJSONBase */ "b"])(metaData)), { title: props.playableConfig.title || '', isPlaying: Boolean(props.isPlaying), currentTime: state.currentTime || 0, duration: props.duration || 0, volume: state.volume || 0, isMuted: Boolean(state.isMuted) });
        },
    };
};
var videoPlayerSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_5__[/* withValidation */ "b"])(_videoPlayerSDKFactory, {
    type: ['object'],
    properties: {
        title: { type: ['string', 'nil'], warnIfNil: true },
        description: { type: ['string', 'nil'], warnIfNil: true },
        volume: {
            type: ['number', 'nil'],
            minimum: 0,
            maximum: 100,
            warnIfNil: true,
        },
        poster: { type: ['string', 'nil'], warnIfNil: true },
        src: {
            type: ['string', 'nil'],
            warnIfNil: true,
        },
    },
});
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_10__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_6__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, videoPlayerSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_7__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 215 */
/*!************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/neat-html-parser/build/tokens.js ***!
  \************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


module.exports = {
  HTML_END: 'HTML_END',
  OPEN_TAG_START: '<',
  TAG_END: '>',
  SELF_CLOSING: '/>',
  CLOSING_TAG_START: '</',
  SPACE: ' '
};

/***/ }),
/* 216 */
/*!*********************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/neat-html-parser/build/selfClosingTags.js ***!
  \*********************************************************************************************************/
/*! no static exports found */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


module.exports = ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', 'track', 'wbr'];

/***/ }),
/* 217 */
/*!****************************************************************!*\
  !*** ./thunderbolt-core-components/Page/corvid/Page.corvid.ts ***!
  \****************************************************************/
/*! exports provided: pageSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./thunderbolt-core-components/Page/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pageSDKFactory", function() { return pageSDKFactory; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 34);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 20);




var pageSDKFactory = function (_a) {
    var sdkData = _a.sdkData, metaData = _a.metaData, platformUtils = _a.platformUtils;
    var title = function () { return platformUtils.wixCodeNamespacesRegistry.get('seo').title; };
    return {
        get description() {
            return sdkData.currentPageSEODescription;
        },
        get keywords() {
            return sdkData.currentPageSEOKeywords;
        },
        get title() {
            return title();
        },
        get visibleInMenu() {
            return sdkData.visibleInMenu;
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* toJSONBase */ "b"])(metaData)), { title: title(), description: sdkData.currentPageSEODescription, keywords: sdkData.currentPageSEOKeywords, visibleInMenu: sdkData.visibleInMenu });
        },
    };
};
var elementPropsSDKFactory = Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_3__[/* createElementPropsSDKFactory */ "a"])({
    useHiddenCollapsed: false,
});
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory, _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* childrenPropsSDKFactory */ "a"], _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_5__[/* clickPropsSDKFactory */ "a"], pageSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 218 */
/*!**********************************************************************!*\
  !*** ./components/WRichText/corvid/WRichText.corvid.ts + 12 modules ***!
  \**********************************************************************/
/*! exports provided: _wRichTextSdkFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/neat-html-parser/build/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "_wRichTextSdkFactory", function() { return /* binding */ _wRichTextSdkFactory; });
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// CONCATENATED MODULE: ./components/WRichText/constants.ts
var wixGuard = '<span class="wixGuard">&#8203;</span>';
var startTagRegex = "<([-A-Za-z0-9_?:]+)((?:\\s+(?:x:)?[-A-Za-z0-9_]+(?:\\s*=\\s*(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>\\s]+))?)*)\\s*(/?)>";
var endTagRegex = "</([-A-Za-z0-9_?:]+)[^>]*>";
var endBlockTagRegex = "</(h[1-6]|p)[^>]*>";
var wixCodeName = '$w.Text';
var TestIds = {
    richTextElement: 'richTextElement',
    containerElement: 'containerElement',
};

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/convertLinkProperties.ts
var regex = /(?:<a.*?href=(["']))(.*?)(?:\1)/gi;
var convertLinkProperties = function (html, getLinkProps, resolveHref) {
    if (resolveHref === void 0) { resolveHref = function (props) { return props.href || ''; }; }
    var replaces = [];
    var match;
    do {
        match = regex.exec(html);
        if (match) {
            var fullMatch = match[0];
            var groupMatch = match[2];
            replaces.push([
                fullMatch,
                fullMatch.replace(groupMatch, resolveHref(getLinkProps(groupMatch))),
            ]);
        }
    } while (match);
    return replaces.reduce(function (a, _a) {
        var matcho = _a[0], replace = _a[1];
        return a.replace(matcho, replace);
    }, html);
};

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/removeWixGuard.ts
var removeWixGuard = function (htmlStr) {
    return htmlStr.replace(/<span class="wixGuard">([^<]*)<\/span>/g, function (_full, group1) {
        if (group1 === void 0) { group1 = ''; }
        if (group1.trim() === '&#8203;') {
            return '';
        }
        return group1;
    });
};

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/stripImpliedLinks.ts
var IMPLIED_LINKS_PATTERN = /<object.*?><a data-auto-recognition="true".*?>(.*?)<\/a><\/object>/g;
var stripImpliedLinks = function (text) {
    return text.replace(IMPLIED_LINKS_PATTERN, function (_fullMatch, innerText) { return innerText; });
};

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/applyTransformationForGetHtml.ts
var styleMap = {
    p: 'font_8',
    h1: 'font_0',
    h2: 'font_2',
    h3: 'font_3',
    h4: 'font_4',
    h5: 'font_5',
    h6: 'font_6',
    ol: 'font_8',
    ul: 'font_8',
};
var startBlockRegexp = /<(ol|ul|h[1-6]|p)(.*?)>/g;
var p1p2regexp = /(class\s*=['"][^'"]*?)\bfont_([79])\b/;
function applyTransformationForGetHtml(data) {
    if (data === void 0) { data = ''; }
    return data.replace(startBlockRegexp, function (match, tag, attributes) {
        if (attributes === void 0) { attributes = ''; }
        var defaultClass = styleMap[tag];
        var defaultClassForTagRegexp = new RegExp("(class\\s*=['\"].*?)" + defaultClass);
        if (defaultClassForTagRegexp.test(attributes)) {
            match = match.replace(defaultClassForTagRegexp, '$1');
        }
        else if (tag === 'p' && p1p2regexp.test(attributes)) {
            match = match.replace(p1p2regexp, function (matcho, prefix, p1p2) { return "" + prefix + (p1p2 === '7' ? 'p1' : 'p3'); });
        }
        return match
            .replace(/class\s*=(['"])\s*\1/, '') // remove empty class attribute
            .replace(/class\s*=(['"])\s*(.*?)\s*\1/, function (_match, quote, classes) { return "class=" + quote + classes + quote; })
            .replace(/(.+)\s{2,}/g, '$1 ') // remove pointless additional spaces e.g:class="a      b"
            .replace(/\s+>/, '>'); // remove pointless space from before closing tag
    });
}
var regexp = /<(ol|ul|h[1-6]|p)(.*?)>/g;
var classRegexp = /class\s*?=\s*["'](.*?)['"]/;
var g2ClassRegexp = /(class\s*?=\s*["'])(.*?)(['"])/;
var applyTransformationForSetHtml = function (htmlString) {
    if (htmlString === void 0) { htmlString = ''; }
    if (!htmlString) {
        return htmlString;
    }
    return htmlString.replace(regexp, function (match, g1, g2) {
        var matchedClassArray = g2.match(classRegexp);
        if (!matchedClassArray) {
            return "<" + g1 + g2 + " class=\"" + styleMap[g1] + "\">";
        }
        var matchedClass = matchedClassArray[1];
        if (/(^|\s)font_[0-9]($|\s)/.test(matchedClass)) {
            return match;
        }
        else if (g1 === 'p' && /\bp[13]\b/i.test(matchedClass)) {
            return match.replace(/(.*?\bclass\s*?=.*?)\bp([13])\b(.*)/, function (matcho, _g1, _g2, g3) {
                var _class = _g2 === '1' ? 'font_7' : 'font_9';
                return "" + _g1 + _class + g3;
            });
        }
        return "<" + g1 + g2.replace(g2ClassRegexp, function (_match, _g1, _g2, _g3) {
            return "" + _g1 + styleMap[g1] + " " + _g2 + _g3;
        }) + ">";
    });
};

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/htmlEntitiesMap.ts
/* harmony default export */ var htmlEntitiesMap = ({
    ldquo: '\u201C',
    lsquo: '\u2018',
    rsquo: '\u2019',
    laquo: '\u00AB',
    raquo: '\u00BB',
    lsaquo: '\u2039',
    rsaquo: '\u203A',
    lt: '<',
    gt: '>',
    amp: '&',
    bull: '\u2022',
    deg: '\u00B0',
    hellip: '\u2026',
    trade: '\u2122',
    copy: '\u00A9',
    reg: '\u00AE',
    mdash: '\u2014',
    ndash: '\u2013',
    nbsp: '\u00A0',
    emsp: '\u2003',
    ensp: '\u2002',
    sup2: '\u00B2',
    sup3: '\u00B3',
    frac14: '\u00BC',
    frac12: '\u00BD',
    frac34: '\u00BE',
});

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/namedReferenceRegex.ts

var namedReferences = Object.keys(htmlEntitiesMap).sort(function (a, b) { return b.length - a.length; });
/* harmony default export */ var namedReferenceRegex = (new RegExp("&(" + namedReferences.join('|') + ");|&#([0-9]+);|&#[xX]([a-fA-F0-9]+);", 'g'));

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/numericEntitiesMap.ts
/* harmony default export */ var numericEntitiesMap = ({
    '0': '\uFFFD',
    '128': '\u20AC',
    '130': '\u201A',
    '131': '\u0192',
    '132': '\u201E',
    '133': '\u2026',
    '134': '\u2020',
    '135': '\u2021',
    '136': '\u02C6',
    '137': '\u2030',
    '138': '\u0160',
    '139': '\u2039',
    '140': '\u0152',
    '142': '\u017D',
    '145': '\u2018',
    '146': '\u2019',
    '147': '\u201C',
    '148': '\u201D',
    '149': '\u2022',
    '150': '\u2013',
    '151': '\u2014',
    '152': '\u02DC',
    '153': '\u2122',
    '154': '\u0161',
    '155': '\u203A',
    '156': '\u0153',
    '158': '\u017E',
    '159': '\u0178',
});

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/decodeHtmlEntities.ts
/// <reference lib="webworker" />



var HE_URL = 'https://static.parastorage.com/unpkg/he@1.2.0/he.js';
var ENTITY_START = '&';
var ENTITY_END = ';';
function codePointToSymbol(codePoint) {
    var output = '';
    var numericEntities = numericEntitiesMap;
    if (codePoint in numericEntitiesMap) {
        return numericEntities[codePoint];
    }
    if (codePoint > 0xffff) {
        codePoint -= 0x10000;
        output += String.fromCharCode(((codePoint >>> 10) & 0x3ff) | 0xd800);
        codePoint = 0xdc00 | (codePoint & 0x3ff);
    }
    return output + String.fromCharCode(codePoint);
}
function getEntities(str) {
    var result = [];
    var buffer = [];
    var include = false;
    for (var _i = 0, str_1 = str; _i < str_1.length; _i++) {
        var char = str_1[_i];
        if (include && char !== ENTITY_END) {
            buffer.push(char);
        }
        if (char === ENTITY_START) {
            include = true;
        }
        if (char === ENTITY_END) {
            result.push(buffer.join(''));
            include = false;
            buffer = [];
        }
    }
    return result;
}
var decode = function (rawText) {
    if (!rawText) {
        return rawText;
    }
    if (self.he) {
        return self.he.decode(rawText);
    }
    var entities = getEntities(rawText);
    var canConvert = entities.every(function (entity) { return entity in htmlEntitiesMap || entity[0] === '#'; });
    if (canConvert) {
        return rawText.replace(namedReferenceRegex, function ($0, $1, $2, $3) {
            var htmlEntities = htmlEntitiesMap;
            if ($1) {
                return htmlEntities[$1];
            }
            if ($2) {
                return codePointToSymbol(parseInt($2, 10));
            }
            if ($3) {
                return codePointToSymbol(parseInt($3, 16));
            }
            return $0;
        });
    }
    self.importScripts(HE_URL);
    return decode(rawText);
};

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/unescape.ts
/** Used to map HTML entities to characters. */
var htmlUnescapes = {
    '&amp;': '&',
    '&lt;': '<',
    '&gt;': '>',
    '&quot;': '"',
    '&#39;': "'",
};
/** Used to match HTML entities and HTML characters. */
var reEscapedHtml = /&(?:amp|lt|gt|quot|#(0+)?39);/g;
var reHasEscapedHtml = RegExp(reEscapedHtml.source);
/**
 * The inverse of `escape`this method converts the HTML entities
 * `&amp;`, `&lt;`, `&gt;`, `&quot;` and `&#39;` in `string` to
 * their corresponding characters.
 *
 * **Note:** No other HTML entities are unescaped. To unescape additional
 * HTML entities use a third-party library like [_he_](https://mths.be/he).
 *
 * @since 0.6.0
 * @category String
 * @param {string} [string=''] The string to unescape.
 * @returns {string} Returns the unescaped string.
 * @see escape, escapeRegExp
 * @example
 *
 * unescape('fred, barney, &amp; pebbles')
 * // => 'fred, barney, & pebbles'
 */
function unescape_unescape(string) {
    return string && reHasEscapedHtml.test(string)
        ? string.replace(reEscapedHtml, function (entity) { return htmlUnescapes[entity] || "'"; })
        : string || '';
}

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/escape.ts
/** Used to map characters to HTML entities. */
var htmlEscapes = {
    '&': '&amp;',
    '<': '&lt;',
    '>': '&gt;',
    '"': '&quot;',
    "'": '&#39;',
};
/** Used to match HTML entities and HTML characters. */
var reUnescapedHtml = /[&<>"']/g;
var reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
/**
 * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
 * corresponding HTML entities.
 *
 * **Note:** No other characters are escaped. To escape additional
 * characters use a third-party library like [_he_](https://mths.be/he).
 *
 * Though the ">" character is escaped for symmetry, characters like
 * ">" and "/" don't need escaping in HTML and have no special meaning
 * unless they're part of a tag or unquoted attribute value. See
 * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
 * (under "semi-related fun fact") for more details.
 *
 * When working with HTML you should always
 * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
 * XSS vectors.
 *
 * @since 0.1.0
 * @category String
 * @param {string} [string=''] The string to escape.
 * @returns {string} Returns the escaped string.
 * @see escapeRegExp, unescape
 * @example
 *
 * escape('fred, barney, & pebbles')
 * // => 'fred, barney, &amp; pebbles'
 */
function escape_escape(string) {
    return string && reHasUnescapedHtml.test(string)
        ? string.replace(reUnescapedHtml, function (chr) { return htmlEscapes[chr]; })
        : string || '';
}

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/neat-html-parser/build/index.js
var build = __webpack_require__(68);
var build_default = /*#__PURE__*/__webpack_require__.n(build);

// CONCATENATED MODULE: ./components/WRichText/corvid/utils/insertTextInHtml.ts

function buildHtmlFromTagStack(tagStack, textInTheMiddle) {
    var openTags = '';
    var closingTags = '';
    for (var _i = 0, tagStack_1 = tagStack; _i < tagStack_1.length; _i++) {
        var _a = tagStack_1[_i], tagName = _a.tagName, props = _a.props;
        openTags += props ? "<" + tagName + " " + props + ">" : "<" + tagName + ">";
        closingTags = "</" + tagName + ">" + closingTags;
    }
    return openTags + textInTheMiddle + closingTags;
}
function insertTextInHtml(html, text) {
    var tagStack = [];
    var stop = false;
    build_default.a.parseFragment(html, {
        onText: function () {
            stop = true;
        },
        onOpenTag: function (tag) {
            if (tag.tagName === 'span' && tag.props === 'class="wixGuard"') {
                stop = true;
            }
            if (!stop) {
                tagStack.push(tag);
            }
        },
        onClosingTag: function () {
            if (!stop) {
                // if we are here than tag is empty
                tagStack.pop();
            }
        },
    });
    return buildHtmlFromTagStack(tagStack, text);
}

// CONCATENATED MODULE: ./components/WRichText/corvid/WRichText.corvid.ts






var endBlockTagPattern = new RegExp(endBlockTagRegex, 'mg');
var endTagPattern = new RegExp(endTagRegex, 'mg');
var startTagPattern = new RegExp(startTagRegex, 'mg');
var flow = function () {
    var fns = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        fns[_i] = arguments[_i];
    }
    return function (html) {
        return fns.reduce(function (output, fn) { return fn(output); }, html);
    };
};
var isUndefined = function (str) { return (assert["a" /* assert */].isNil(str) ? '' : str); };
var _wRichTextSdkFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props, linkUtils = _a.linkUtils, metaData = _a.metaData, sdkData = _a.sdkData, createSdkState = _a.createSdkState;
    var _b = createSdkState(sdkData), sdkState = _b[0], setSDKState = _b[1];
    var getLinkProps = function (url) {
        var _a;
        if (!sdkState.linkPropsByHref || !sdkState.linkPropsByHref[url]) {
            var linkProperties = linkUtils.getLinkProps(url); // Properties
            setSDKState({
                linkPropsByHref: Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, (sdkState.linkPropsByHref || {})), (_a = {}, _a[url] = linkProperties, _a)),
            });
        }
        return sdkState.linkPropsByHref[url];
    };
    var convertLinksForSetter = function (str) {
        return convertLinkProperties(str, getLinkProps);
    };
    var convertLinksForGetter = function (str) {
        return convertLinkProperties(str, getLinkProps, linkUtils.getLink);
    };
    var getHtml = function () {
        return removeWixGuard(stripImpliedLinks(applyTransformationForGetHtml(convertLinksForGetter(props.html))));
    };
    var getText = function () {
        return props.html
            ? decode(unescape_unescape(stripImpliedLinks(removeWixGuard(props.html))
                .replace(/\n/g, '')
                .replace(/<br>/g, '\n')
                .replace(/<br><\/br>/g, '\n')
                .replace(/<br\s*\/?>/g, '\n')
                .replace(endBlockTagPattern, '\n')
                .replace(endTagPattern, '')
                .replace(startTagPattern, '')
                .trim()))
            : '';
    };
    return {
        get type() {
            return wixCodeName;
        },
        get html() {
            return getHtml();
        },
        set html(value) {
            setProps({
                html: flow(isUndefined, applyTransformationForSetHtml, convertLinksForSetter, linkUtils.getImpliedLinks)(value),
            });
        },
        get text() {
            return getText();
        },
        set text(value) {
            var escapedHTML = value
                ? escape_escape(value).replace(/\n/g, '<br>')
                : wixGuard;
            var html = linkUtils.getImpliedLinks(insertTextInHtml(stripImpliedLinks(props.html), escapedHTML), { parseEscaped: true });
            setProps({
                html: html,
            });
        },
        toJSON: function () {
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: wixCodeName, html: getHtml(), text: getText() });
        },
    };
};
var wRichTextSDKFactory = Object(withValidation["b" /* withValidation */])(_wRichTextSdkFactory, {
    type: ['object'],
    properties: {
        html: { type: ['string', 'nil'], warnIfNil: true },
        text: { type: ['string', 'nil'], warnIfNil: true },
    },
});
var WRichText_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(WRichText_corvid_elementPropsSDKFactory, clickPropsSDKFactory["a" /* clickPropsSDKFactory */], wRichTextSDKFactory);
/* harmony default export */ var WRichText_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 219 */
/*!*********************************************************************!*\
  !*** ./components/TextInput/corvid/TextInput.corvid.ts + 8 modules ***!
  \*********************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/inputSanitization.ts because of ./components/CheckboxGroup/corvid/CheckboxGroup.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validateRequired.ts because of ./components/TimePicker/corvid/TimePicker.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/valuePropsSDKFactory.ts because of ./components/ToggleSwitch/corvid/ToggleSwitch.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextAreaInput/corvid/TextAreaInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/textInputPropsSDKFactory.js because of ./components/TextAreaInput/corvid/TextAreaInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: ./core/corvid/props-factories/valuePropsSDKFactory.ts
var valuePropsSDKFactory = __webpack_require__(53);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/textInputPropsSDKFactory.js
var textInputPropsSDKFactory = __webpack_require__(72);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js
var readOnlyPropsSDKFactory = __webpack_require__(69);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/inputSanitization.ts
var inputSanitization = __webpack_require__(19);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validateRequired.ts
var validateRequired = __webpack_require__(48);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// CONCATENATED MODULE: ./core/corvid/inputUtils/validatePattern.ts


var validatePattern = function (props, validationData) {
    var pattern = props.pattern, value = props.value;
    if (!pattern || !value) {
        return validationData;
    }
    var regExp;
    try {
        regExp = new RegExp("^(?:" + pattern + ")$");
    }
    catch (e) {
        Object(reporters["b" /* reportWarning */])("invalid regex pattern '" + pattern + "'");
        return validationData;
    }
    return regExp.test(value)
        ? validationData
        : Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'patternMismatch');
};

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateRangeUnderflow.ts

var validateRangeUnderflow = function (props, validationData) {
    var min = props.min, value = props.value;
    if (!min || !isFinite(min) || !value) {
        return validationData;
    }
    return Number(value) >= min
        ? validationData
        : Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'rangeUnderflow');
};

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateRangeOverflow.ts

var validateRangeOverflow = function (props, validationData) {
    var max = props.max, value = props.value;
    if (!max || !isFinite(max) || !value) {
        return validationData;
    }
    return Number(value) <= max
        ? validationData
        : Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'rangeOverflow');
};

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateStepMismatch.ts

var DEFAULT_STEP = 1;
var valueWithinStepRange = function (value, step) {
    var decimalsCount = Number((Math.log(1 / step) / Math.log(10)).toFixed());
    var valueWithStepPrecision = value.toFixed(decimalsCount);
    return value === Number(valueWithStepPrecision);
};
var validateStepMismatch = function (props, validationData) {
    var value = props.value;
    var step = props.step && props.step > 0 ? props.step : DEFAULT_STEP;
    if (!value) {
        return validationData;
    }
    return valueWithinStepRange(Number(value), step)
        ? validationData
        : Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'stepMismatch');
};

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateEmail.ts


var validateEmail = function (props, validationData) {
    var value = props.value;
    if (!value) {
        return validationData;
    }
    return assert["a" /* assert */].isEmail(value)
        ? validationData
        : Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'typeMismatch');
};

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateUrl.ts

var validUrlRegExp = /(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:/~+#-]*[\w@?^=%&amp;/~+#-])?/;
var isValidUrl = function (value) { return validUrlRegExp.test(value); };
var validateUrl = function (props, validationData) {
    var value = props.value;
    if (!value) {
        return validationData;
    }
    return isValidUrl(value)
        ? validationData
        : Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'typeMismatch');
};

// CONCATENATED MODULE: ./core/corvid/inputUtils/validatePhoneFormat.ts

var DEFAULT_PHONE_PATTERN = '^[+]?([(][0-9]{1,3}[)][-]?)?([0-9][-]?){3,16}[0-9]$';
var WIX_FORMS_COMPLEX_PHONE_DEFAULT_PHONE_PATTERN = '^([(][0-9]{1,3}[)][-]?)?([0-9][-]?){3,16}[0-9]$';
var validatePhoneFormat = function (props, validationData) {
    var value = props.value, phoneFormat = props.phoneFormat, pattern = props.pattern;
    if (!value) {
        return validationData;
    }
    if (pattern === DEFAULT_PHONE_PATTERN && !new RegExp(pattern).test(value)) {
        return Object(validityUtils["c" /* addErrorToValidationDataAndKeepHtmlMessage */])(validationData, 'patternMismatch', {
            key: 'PHONE_FORMAT_DEFAULT_VALIDATION_ERROR',
        });
    }
    if (pattern === WIX_FORMS_COMPLEX_PHONE_DEFAULT_PHONE_PATTERN &&
        !new RegExp(pattern).test(value)) {
        return Object(validityUtils["c" /* addErrorToValidationDataAndKeepHtmlMessage */])(validationData, 'patternMismatch', {
            key: 'PHONE_FORMAT_COMPLEX_PHONE_DEFAULT_VALIDATION_ERROR',
        });
    }
    var phoneFormatWithoutSpacesLength = phoneFormat
        ? phoneFormat.replace(/-/g, '').length
        : 0;
    if (!phoneFormat ||
        (phoneFormat && value.length === phoneFormatWithoutSpacesLength)) {
        return validationData;
    }
    var validationKey;
    var htmlValidationMessageOverride = {
        key: 'PHONE_FORMAT_LENGTH_VALIDATION_ERROR',
    };
    if (value.length < phoneFormatWithoutSpacesLength) {
        validationKey = 'tooShort';
    }
    else {
        validationKey = 'tooLong';
    }
    return Object(validityUtils["c" /* addErrorToValidationDataAndKeepHtmlMessage */])(validationData, validationKey, htmlValidationMessageOverride);
};

// CONCATENATED MODULE: ./components/TextInput/corvid/utils/validateTextInput.ts

var validateTextInputByType = {
    text: Object(validityUtils["f" /* composeValidators */])([validateRequired["a" /* validateRequired */], validatePattern]),
    password: Object(validityUtils["f" /* composeValidators */])([
        validateRequired["a" /* validateRequired */],
        validatePattern,
    ]),
    number: Object(validityUtils["f" /* composeValidators */])([
        validateRequired["a" /* validateRequired */],
        validateRangeUnderflow,
        validateRangeOverflow,
        validateStepMismatch,
    ]),
    email: Object(validityUtils["f" /* composeValidators */])([
        validateRequired["a" /* validateRequired */],
        validateEmail,
        validatePattern,
    ]),
    url: Object(validityUtils["f" /* composeValidators */])([
        validateRequired["a" /* validateRequired */],
        validateUrl,
        validatePattern,
    ]),
    tel: Object(validityUtils["f" /* composeValidators */])([
        validateRequired["a" /* validateRequired */],
        validatePattern,
        validatePhoneFormat,
    ]),
    search: Object(validityUtils["f" /* composeValidators */])([
        validateRequired["a" /* validateRequired */],
        validatePattern,
    ]),
};
var validateTextInput = function (props, api) {
    return validateTextInputByType[props.inputType](props, api);
};

// CONCATENATED MODULE: ./components/TextInput/corvid/TextInput.corvid.ts






var textInputValidator = Object(createInputValidator["b" /* createInputValidator */])(validateTextInput);
var TextInput_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(textInputValidator);
var TextInput_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(textInputValidator);
var TextInput_corvid_valuePropsSDKFactory = Object(valuePropsSDKFactory["a" /* createValuePropsSdkFactory */])(function (value, api) { return valueSanitizers(api.props)(value); }, { type: ['string'] }, textInputValidator);
var TextInput_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var _ownSDKFactory = function (api) {
    var setProps = api.setProps, props = api.props, metaData = api.metaData;
    return {
        get max() {
            return props.max;
        },
        set max(value) {
            if (value === undefined || value === null) {
                setProps({ max: null });
            }
            setProps({ max: value });
            textInputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get min() {
            return props.min;
        },
        set min(value) {
            if (value === undefined || value === null) {
                setProps({ min: null });
            }
            setProps({ min: value });
            textInputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get inputType() {
            return props.inputType;
        },
        set inputType(value) {
            setProps({ inputType: value });
            textInputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get prefix() {
            return props.prefix || '';
        },
        set prefix(value) {
            var prefix = value || '';
            setProps({ prefix: prefix });
        },
        toJSON: function () {
            var readOnly = props.readOnly, required = props.required, value = props.value, max = props.max, min = props.min, inputType = props.inputType, isValid = props.isValid, prefix = props.prefix;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { readOnly: readOnly,
                required: required,
                value: value,
                max: max,
                min: min,
                inputType: inputType,
                prefix: prefix, valid: isValid });
        },
    };
};
var ownSDKFactory = Object(withValidation["b" /* withValidation */])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        min: { type: ['integer', 'nil'] },
        max: { type: ['integer', 'nil'] },
        inputType: {
            type: ['string'],
            enum: ['text', 'email', 'number', 'password', 'tel', 'url'],
        },
        prefix: {
            type: ['string', 'nil'],
            warnIfNil: true,
        },
    },
}, {
    max: [
        function (value, api) {
            if (!assert["a" /* assert */].isNil(value) &&
                assert["a" /* assert */].isInteger(api.props.min) &&
                !Object(withValidation["a" /* createCompSchemaValidator */])(api.metaData.role)(value, { type: ['integer'], minimum: api.props.min }, 'max')) {
                return false;
            }
            return true;
        },
    ],
    min: [
        function (value, api) {
            if (!assert["a" /* assert */].isNil(value) &&
                assert["a" /* assert */].isInteger(api.props.max) &&
                !Object(withValidation["a" /* createCompSchemaValidator */])(api.metaData.role)(value, { type: ['integer'], maximum: api.props.max }, 'min')) {
                return false;
            }
            return true;
        },
    ],
});
var valueSanitizers = function (_a) {
    var inputType = _a.inputType, maxLength = _a.maxLength, step = _a.step;
    var sanitizers = {
        text: Object(inputSanitization["a" /* composeSanitizers */])([
            inputSanitization["e" /* numberToString */],
            inputSanitization["b" /* emptyStringIfNotString */],
            inputSanitization["g" /* removeLineBreaks */],
            Object(inputSanitization["c" /* forceMaxLength */])(maxLength),
        ]),
        password: Object(inputSanitization["a" /* composeSanitizers */])([
            inputSanitization["e" /* numberToString */],
            inputSanitization["b" /* emptyStringIfNotString */],
            inputSanitization["g" /* removeLineBreaks */],
            Object(inputSanitization["c" /* forceMaxLength */])(maxLength),
        ]),
        number: Object(inputSanitization["a" /* composeSanitizers */])([
            inputSanitization["e" /* numberToString */],
            inputSanitization["b" /* emptyStringIfNotString */],
            inputSanitization["h" /* validFloatingPointNumber */],
            Object(inputSanitization["d" /* normalizePrecision */])(step),
        ]),
        email: Object(inputSanitization["a" /* composeSanitizers */])([
            inputSanitization["e" /* numberToString */],
            inputSanitization["b" /* emptyStringIfNotString */],
            inputSanitization["g" /* removeLineBreaks */],
            inputSanitization["f" /* removeLeadingAndTrailingWhitespace */],
        ]),
        url: Object(inputSanitization["a" /* composeSanitizers */])([
            inputSanitization["e" /* numberToString */],
            inputSanitization["b" /* emptyStringIfNotString */],
            inputSanitization["g" /* removeLineBreaks */],
            inputSanitization["f" /* removeLeadingAndTrailingWhitespace */],
        ]),
        tel: Object(inputSanitization["a" /* composeSanitizers */])([
            inputSanitization["e" /* numberToString */],
            inputSanitization["b" /* emptyStringIfNotString */],
            inputSanitization["g" /* removeLineBreaks */],
        ]),
        search: Object(inputSanitization["a" /* composeSanitizers */])([
            inputSanitization["e" /* numberToString */],
            inputSanitization["b" /* emptyStringIfNotString */],
            inputSanitization["g" /* removeLineBreaks */],
            Object(inputSanitization["c" /* forceMaxLength */])(maxLength),
        ]),
    };
    return sanitizers[inputType];
};
var TextInput_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(TextInput_corvid_elementPropsSDKFactory, disablePropsSDKFactory["a" /* disablePropsSDKFactory */], textInputPropsSDKFactory["a" /* textInputPropsSDKFactory */], focusPropsSDKFactory["a" /* focusPropsSDKFactory */], readOnlyPropsSDKFactory["a" /* readOnlyPropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], TextInput_corvid_stylePropsSDKFactory, TextInput_corvid_requiredPropsSDKFactory, TextInput_corvid_valuePropsSDKFactory, TextInput_corvid_validationPropsSDKFactory, ownSDKFactory);
/* harmony default export */ var TextInput_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 220 */
/*!***************************************************************************!*\
  !*** ./components/FileUploader/corvid/FileUploader.corvid.ts + 7 modules ***!
  \***************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validateRequiredArray.ts because of ./components/SelectionTagsList/corvid/SelectionTagsList.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validationPropsSdkState.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/mediaSrcHandler.js because of ./components/VideoBoxContainer/VideoBox/corvid/VideoBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules
var messages = __webpack_require__(12);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validateRequiredArray.ts
var validateRequiredArray = __webpack_require__(251);

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateFile.ts


var fileTypeMatchers = {
    Image: /\.(bmp|gif|hei[cf]|jfif?|jpeg?|jpg|png|tiff?|webp)$/i,
    Document: /\.(ai|cdr|csv|doc[xb]?|dotx?|dwg|eps|e?pub|fla|gpx|ical(endar)?|ics|indd|ipynb|key|km[lz]|mobi|mt[fx]|numbers|od[gpst]|ot[pst]|oxps|pages|pd[fn]|pkg|potx?|pp[st]x?|psd|rtf|sldx|txt|vcf|xcf|xl[st]x?|xlw|xps)$/i,
    Video: /\.(3gp|avi|divx|flv|m1v|m2ts|m4v|mkv|mov|mp4|mpeg?|mpg|mxf|ogv|vob|webm|wmv|xvid)$/i,
    Audio: /\.(aac|aiff?|flac|m4a|mp3|wav|wma)$/i,
};
var fileSizes = {
    Image: 25000000,
    Document: 1000000000,
    Video: 1000000000,
    Audio: 50000000,
};
var KB = 1000;
var MB = KB * 1000;
var GB = MB * 1000;
var fileTypeToBaseFileType = function (fileType, fileName) {
    return fileType === 'Gallery'
        ? fileTypeMatchers.Image.test(fileName)
            ? 'Image'
            : 'Video'
        : fileType;
};
var isFileTypeValid = function (fileType, fileName) {
    return fileTypeMatchers[fileType].test(fileName);
};
var isFileSizeValid = function (fileType, fileSize) {
    return fileSize <= fileSizes[fileType];
};
var getFileExtension = function (fileName) {
    var match = /\.(\w+)$/.exec(fileName);
    return ((match && match[1]) || '').toUpperCase();
};
var getMaxFileSize = function (fileType) {
    var bytes = fileSizes[fileType];
    if (bytes > 999999999) {
        return bytes / GB + " GB";
    }
    if (bytes > 999999) {
        return bytes / MB + " MB";
    }
    return bytes / KB + " KB";
};
var getFileValidityValidationMessage = function (validityKey, fileName, fileType) {
    switch (validityKey) {
        case 'fileTypeNotAllowed':
            return Object(validityUtils["h" /* getValidationMessage */])('fileTypeNotAllowed', getFileExtension(fileName));
        case 'fileSizeExceedsLimit':
            return Object(validityUtils["h" /* getValidationMessage */])('fileSizeExceedsLimit', getMaxFileSize(fileTypeToBaseFileType(fileType, fileName)));
        default:
            return '';
    }
};
var validateForFile = function (fileData, fileType, validationData) {
    var fileName = fileData.name || '';
    var fileValidityKey = '';
    var currentFileType = fileTypeToBaseFileType(fileType, fileName);
    var updatedValidationData = validationData;
    if (!isFileTypeValid(currentFileType, fileName)) {
        updatedValidationData = Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(updatedValidationData, 'fileTypeNotAllowed', getFileValidityValidationMessage('fileTypeNotAllowed', fileName, currentFileType));
        fileValidityKey = 'fileTypeNotAllowed';
    }
    if (!isFileSizeValid(currentFileType, fileData.size || 0)) {
        updatedValidationData = Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(updatedValidationData, 'fileSizeExceedsLimit', getFileValidityValidationMessage('fileSizeExceedsLimit', fileName, currentFileType));
        if (!fileValidityKey) {
            fileValidityKey = 'fileSizeExceedsLimit';
        }
    }
    return { fileValidityKey: fileValidityKey, updatedValidationData: updatedValidationData };
};
var validateFile = function (props, validationData) {
    var value = props.value, uploadStatus = props.uploadStatus, fileType = props.fileType;
    var filesData = value;
    var uploadNotStarted = uploadStatus === 'Not_Started';
    var filesValidationInfo = [];
    if (filesData && uploadNotStarted) {
        filesData.forEach(function (fileData) {
            var _a = validateForFile(fileData, fileType, validationData), fileValidityKey = _a.fileValidityKey, updatedValidationData = _a.updatedValidationData;
            validationData = updatedValidationData;
            filesValidationInfo.push(fileValidityKey);
        });
    }
    var fileUploaderValidationData = Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, validationData), { type: 'FileUploader', filesValidationInfo: filesValidationInfo });
    return fileUploaderValidationData;
};

// CONCATENATED MODULE: ./components/FileUploader/corvid/constants.ts
var defaultState = {
    uploadServerError: null,
};

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateUploadDone.ts


var getFileMissingMessage = function (uploadStatus, state) {
    if (uploadStatus === 'Failed') {
        return state.uploadServerError || Object(validityUtils["h" /* getValidationMessage */])('fileNotUploaded');
    }
    return Object(validityUtils["h" /* getValidationMessage */])('fileNotUploaded');
};
var validateUploadDone = function (_a, validationData, _b) {
    var uploadStatus = _a.uploadStatus, required = _a.required, withFixNotRequiredValidation = _a.withFixNotRequiredValidation;
    var createSdkState = _b.createSdkState;
    var isAlreadyInvalid = !validationData.validity.valid;
    var oldValidationFlow = uploadStatus !== 'Failed' || !withFixNotRequiredValidation;
    if ((!required && oldValidationFlow) || isAlreadyInvalid) {
        return validationData;
    }
    var state = createSdkState(defaultState)[0];
    return uploadStatus === 'Done'
        ? validationData
        : Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'fileNotUploaded', getFileMissingMessage(uploadStatus, state));
};

// EXTERNAL MODULE: ./core/corvid/inputUtils/validationPropsSdkState.ts
var validationPropsSdkState = __webpack_require__(31);

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateNumFiles.ts

var validateNumFiles = function (props, validationData) {
    var value = props.value, uploadStatus = props.uploadStatus, numFilesLimit = props.numFilesLimit;
    var uploadNotStarted = uploadStatus === 'Not_Started';
    if (!value) {
        return validationData;
    }
    return uploadNotStarted && value.length > numFilesLimit
        ? Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'exceedsFilesLimit')
        : validationData;
};

// CONCATENATED MODULE: ./core/commons/a11y.ts
var keyCodes = {
    enter: 13,
    space: 32,
    end: 35,
    home: 36,
    escape: 27,
    arrowLeft: 37,
    arrowUp: 38,
    arrowRight: 39,
    arrowDown: 40,
    tab: 9,
};
// see: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
var keys = {
    space: ['Spacebar', ' '],
    enter: ['Enter'],
};
function activateByKey(key) {
    return function (event) {
        if (event.keyCode === key) {
            event.preventDefault();
            event.stopPropagation();
            event.currentTarget.click();
        }
    };
}
var activateBySpaceButton = activateByKey(keyCodes.space);
var activateByEnterButton = activateByKey(keyCodes.enter);
var activateBySpaceOrEnterButton = function (event) {
    activateByEnterButton(event);
    activateBySpaceButton(event);
};
var activateByEscapeButton = activateByKey(keyCodes.escape);
var HAS_CUSTOM_FOCUS_CLASSNAME = 'has-custom-focus';

// CONCATENATED MODULE: ./components/FileUploader/constants.ts
var constants_a;


var allowedKeyCodes = [keyCodes.enter, keyCodes.space];
var baseAcceptableFilesTypes = {
    /* eslint-disable prettier/prettier */
    Image: '.bmp,.gif,.heic,.heif,.jfi,.jfif,.jpe,.jpeg,.jpg,.png,.tif,.tiff,.webp',
    Document: '.ai,.cdr,.csv,.doc,.docb,.docx,.dot,.dotx,.dwg,.eps,.epub,.fla,.gpx,.ical,.icalendar,.ics,.ifb,.indd,.ipynb,.key,.kml,.kmz,.mobi,.mtf,.mtx,.numbers,.odg,.odp,.ods,.odt,.otp,.ots,.ott,.oxps,.pages,.pdf,.pdn,.pkg,.pot,.potx,.pps,.ppsx,.ppt,.pptx,.psd,.pub,.rtf,.sldx,.txt,.vcf,.xcf,.xls,.xlsx,.xlt,.xltx,.xlw,.xps',
    Video: '.3gp,.avi,.divx,.flv,.m1v,.m2ts,.m4v,.mkv,.mov,.mp4,.mpe,.mpeg,.mpg,.mxf,.ogv,.vob,.webm,.wmv,.xvid',
    Audio: '.aac,.aif,.aiff,.flac,.m4a,.mp3,.wav,.wma',
};
var acceptableFilesTypes = Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, baseAcceptableFilesTypes), { Gallery: baseAcceptableFilesTypes.Image + "," + baseAcceptableFilesTypes.Video });
var facebookAcceptableFileTypes = {
    iOS: {
        Image: 'image/*',
        Document: undefined,
        Video: 'video/*',
        Audio: undefined,
        Gallery: 'image/*,video/*',
    },
    other: {
        Image: 'image/*',
        Document: undefined,
        Video: 'video/*',
        Audio: 'audio/*',
        Gallery: 'image/*,video/*',
    },
};
var testIds = {
    uploadButton: 'upload-button',
    buttonLabel: 'button-label',
    fileList: 'file-list',
    fileWithIcon: 'file-with-icon',
    xIcon: 'x-icon',
    fileName: 'file-name',
    tooltipContainer: 'tooltip-container',
    tooltipTrigger: 'tooltip-trigger',
    errorTooltip: 'error-tooltip',
    errorTooltipText: 'error-tooltip-text',
    numberOfFilesLink: 'number-of-files-link',
    filesPopper: 'files-popper',
    centerEllipsisStart: 'center-elipsis-start',
    centerEllipsis: 'center-ellipsis',
    mobileSeperator: 'mobile-seperator',
    mobileCloseButton: 'mobile-close-button',
    closedPopperStatusIndicator: 'closed-popper-status-indicator',
    textBelowButton: 'text-below-button',
    poppersWrapper: 'poppers-wrapper',
    popperFilesWrapper: 'popper-files-wrapper',
};
var fileNameId = 'file-name';
var translationsNamespace = 'upload_button';
var TRANSLATION_KEYS = {
    'FileUploader.NumberOfSelectedFiles': 'FileUploader.NumberOfSelectedFiles',
    'FileUploader.SingleSelectedFile': 'FileUploader.SingleSelectedFile',
    Upload_Button_Filename_Preview_Text_Filename: 'Upload_Button_Filename_Preview_Text_Filename',
    FileUploader_Mobile_ClosePopper: 'mobile_popper.close',
    'FileUploader.MultipleErrors': 'upload_button.validation_error.multiple_file_errors',
    'FileUploader.SingleError': 'upload_button.validation_error.single_file_error',
    'FileUploader.ExceededFilesLimit': 'upload_button.validation_error.exceeded_files_limit',
};
var NumberOfFilesTranslationPlaceholder = '{numberOfFiles}';
var NumberOfErrorsTranslationPlaceholder = '{errorAmount}';
var TRANSLATION_FALLBACKS = (constants_a = {},
    constants_a[TRANSLATION_KEYS['FileUploader.NumberOfSelectedFiles']] = NumberOfFilesTranslationPlaceholder + " files selected.",
    constants_a[TRANSLATION_KEYS.Upload_Button_Filename_Preview_Text_Filename] = 'Example.txt',
    constants_a[TRANSLATION_KEYS['FileUploader.SingleSelectedFile']] = '1 file selected.',
    constants_a[TRANSLATION_KEYS.FileUploader_Mobile_ClosePopper] = 'Close',
    constants_a[TRANSLATION_KEYS['FileUploader.SingleError']] = '1 error found.',
    constants_a[TRANSLATION_KEYS['FileUploader.MultipleErrors']] = NumberOfErrorsTranslationPlaceholder + " errors found.",
    constants_a[TRANSLATION_KEYS['FileUploader.ExceededFilesLimit']] = "Please select up to " + NumberOfFilesTranslationPlaceholder + " files.",
    constants_a);
var GeneralErrorTranslation = {
    key: 'Upload_Button_File_Upload_General_Error',
    fallback: 'File failed to upload',
};
var POPPERS_WRAPPER_ID = 'poppers-wrapper';
var MediaServerErrorKeysTranslationMapping = {
    'wpm_error.authentication_failed': 'wpm_error.authentication_failed',
    'wpm_error.invalid_file': 'wpm_error.invalid_file',
    'wpm_error.file_size_exceeded_limit': 'wpm_error.file_size_exceeded_limit',
    'wpm_error.mime_type_mismatch': 'wpm_error.mime_type_mismatch',
    'wpm_error.site_quota_free_video_duration_exceeded': 'wpm_error.site_quota_free_video_duration_exceeded',
    'wpm_error.unsupported_format': 'wpm_error.unsupported_format',
    'wpm_error.unsupported_file_extension': 'wpm_error.unsupported_file_extension',
    'wpm_error.incorrect_file_info': 'wpm_error.incorrect_file_info',
    'wpm_error.site_quota_total_storage_exceeded': 'wpm_error.site_quota_total_storage_exceeded',
    'wpm_error.zero_size_file': 'wpm_error.zero_size_file',
    'wpm_error.site_quota_total_video_duration_exceeded': 'wpm_error.site_quota_total_video_duration_exceeded',
    'wpm_error.invalid_file_video_stream_is_missing': 'wpm_error.invalid_file_video_stream_is_missing',
    'wpm_error.invalid_file_video_bitrate_is_missing': 'wpm_error.invalid_file_video_bitrate_is_missing',
    'wpm_error.invalid_file_video_duration_is_missing': 'wpm_error.invalid_file_video_duration_is_missing',
    'wpm_error.invalid_file_audio_bitrate_is_missing': 'wpm_error.invalid_file_audio_bitrate_is_missing',
    'wpm_error.invalid_file_audio_duration_is_missing': 'wpm_error.invalid_file_audio_duration_is_missing',
};

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/mediaSrcHandler.js
var mediaSrcHandler = __webpack_require__(21);

// CONCATENATED MODULE: ./components/FileUploader/corvid/utils.ts





var IMAGE_URI = 'image://';
var DOC_URI = 'wix:document://';
var VIDEO_URI = 'wix:video://';
var AUDIO_URI = 'wix:audio://';
var VERSION = 'v1';
var wixCodeImgUri = function (_a) {
    var uri = _a.uri, width = _a.width, height = _a.height, title = _a.title;
    return IMAGE_URI + VERSION + ("/" + uri + "/" + width + "_" + height + "/" + title);
};
var wixCodeDocUri = function (_a) {
    var uri = _a.uri, filename = _a.filename;
    return DOC_URI + VERSION + ("/" + uri + "/" + filename);
};
var wixCodeAudioUri = function (_a) {
    var uri = _a.uri, filename = _a.filename, duration = _a.duration;
    return AUDIO_URI + VERSION + ("/" + uri + "/" + filename + "#duration=" + duration);
};
var wixCodeVideoUri = function (_a) {
    var uri = _a.uri, filename = _a.filename, posterUri = _a.posterUri, posterWidth = _a.posterWidth, posterHeight = _a.posterHeight;
    return VIDEO_URI +
        VERSION +
        ("/" + uri + "/" + filename + "#posterUri=" + posterUri + "&posterWidth=" + posterWidth + "&posterHeight=" + posterHeight);
};
var noFileToUploadMessage = 'No files found';
var startUploadDeprecationErrorObject = {
    errorCode: -7754,
    errorDescription: 'startUpload is deprecated, to upload multiple files please use the uploadFiles() function.',
};
var filesUploadInProgressErrorObject = {
    errorCode: -7755,
    errorDescription: 'files upload in progress.',
};
var generateNumFilesSelectedErrorObject = function (numOfSelectedFiles, numberOfExpectedFiles) { return ({
    errorCode: -7753,
    errorDescription: "There are " + numOfSelectedFiles + " files selected, please select up to " + numberOfExpectedFiles,
}); };
var generalErrorObject = {
    errorCode: -7756,
    errorDescription: 'Unexpected error occurred.',
};
var fileTypeToMediaType = function (fileType, fileName) {
    var mediaTypesTranslation = {
        Image: 'picture',
        Document: 'document',
        Video: 'video',
        Audio: 'music',
    };
    return mediaTypesTranslation[fileTypeToBaseFileType(fileType, fileName)];
};
var isValidFileType = function (_fileType) {
    var fileType = _fileType.charAt(0).toUpperCase() + _fileType.slice(1).toLowerCase();
    var validFileTypes = ['Image', 'Document', 'Video', 'Audio', 'Gallery'];
    if (!validFileTypes.includes(fileType)) {
        Object(reporters["a" /* reportError */])(messages["a" /* messages */].invalidEnumValueMessage({
            functionName: 'fileType',
            propertyName: 'fileType',
            value: _fileType,
            enum: validFileTypes,
            index: undefined,
        }));
        return false;
    }
    return true;
};
var getFileDataByType = function (fileType, uploadedFileData) {
    var _a, _b;
    var baseFileType = fileTypeToBaseFileType(fileType, uploadedFileData.file_name);
    switch (baseFileType) {
        case 'Image':
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, uploadedFileData), { uri: uploadedFileData.file_name, title: uploadedFileData.file_name });
        case 'Document':
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, uploadedFileData), { uri: uploadedFileData.file_name, filename: uploadedFileData.original_file_name });
        case 'Video':
            var posterImages = ((_a = uploadedFileData.file_output) === null || _a === void 0 ? void 0 : _a.image) || [];
            var poster01 = posterImages[1] || { url: '' };
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, uploadedFileData), { uri: uploadedFileData.file_name, filename: uploadedFileData.original_file_name, posterUri: poster01.url.replace('media/', ''), posterWidth: poster01.width, posterHeight: poster01.height });
        case 'Audio':
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, uploadedFileData), { uri: uploadedFileData.file_name, filename: uploadedFileData.original_file_name, duration: ((_b = uploadedFileData.file_input) === null || _b === void 0 ? void 0 : _b.duration) || 0 });
        default:
            return uploadedFileData;
    }
};
var getWixCodeURI = function (fileData) {
    var mediaType = fileData.media_type;
    switch (mediaType) {
        case 'picture':
            return wixCodeImgUri(fileData);
        case 'music':
            return wixCodeAudioUri(fileData);
        case 'video':
            return wixCodeVideoUri(fileData);
        case 'document':
            return wixCodeDocUri(fileData);
        default:
            throw new TypeError("Unknown media_type \"" + mediaType + "\"");
    }
};
var getFileInfo = function (mediaType, url) {
    switch (mediaType) {
        case 'picture':
            var imageMediaSrc = Object(mediaSrcHandler["c" /* parseMediaSrc */])(url, 'image');
            if (imageMediaSrc.error) {
                throw new Error(imageMediaSrc.error);
            }
            return {
                fileUrl: url,
                fileName: imageMediaSrc.mediaId,
                originalFileName: imageMediaSrc.title,
                width: imageMediaSrc.width,
                height: imageMediaSrc.height,
            };
        case 'document':
            var documentMediaSrc = Object(mediaSrcHandler["c" /* parseMediaSrc */])(url, 'document');
            if (documentMediaSrc.error) {
                throw new Error(documentMediaSrc.error);
            }
            return {
                fileUrl: url,
                fileName: documentMediaSrc.mediaId,
                originalFileName: documentMediaSrc.title,
            };
        case 'video':
            var videoMediaSrc = Object(mediaSrcHandler["c" /* parseMediaSrc */])(url, 'video');
            if (videoMediaSrc.error) {
                throw new Error(videoMediaSrc.error);
            }
            return {
                fileUrl: url,
                fileName: videoMediaSrc.mediaId,
                originalFileName: videoMediaSrc.title,
                width: videoMediaSrc.width,
                height: videoMediaSrc.height,
            };
        case 'music':
            var musicMediaSrc = Object(mediaSrcHandler["c" /* parseMediaSrc */])(url, 'audio');
            if (musicMediaSrc.error) {
                throw new Error(musicMediaSrc.error);
            }
            return {
                fileUrl: url,
                fileName: musicMediaSrc.mediaId,
                duration: musicMediaSrc.duration,
                originalFileName: musicMediaSrc.title,
            };
        default:
            throw new TypeError("Unknown media_type \"" + mediaType + "\"");
    }
};
var getErrorCode = function (validity) {
    if (validity.fileTypeNotAllowed) {
        return -7751;
    }
    if (validity.fileSizeExceedsLimit) {
        return -7752;
    }
    if (validity.exceedsFilesLimit) {
        return -7753;
    }
    return -1;
};
var getErrorObject = function (validationData, props) {
    var errorCode = getErrorCode(validationData.validity);
    var errorDescription = errorCode === -1
        ? noFileToUploadMessage
        : errorCode === -7753
            ? generateNumFilesSelectedErrorObject(props.value.length, props.numFilesLimit).errorDescription
            : validationData.validationMessage;
    return {
        errorCode: errorCode,
        errorDescription: errorDescription,
    };
};
var startFileUpload = function (_a) {
    var fileType = _a.fileType, handlers = _a.handlers, file = _a.file, onFailedUpload = _a.onFailedUpload, onSuccessfulUpload = _a.onSuccessfulUpload;
    return Object(tslib_es6["__awaiter"])(void 0, void 0, void 0, function () {
        var mediaAuthToken, mediaType, getUploadUrlResponse, getUploadUrlResponseJson, uploadFileToMediaResponse;
        return Object(tslib_es6["__generator"])(this, function (_b) {
            switch (_b.label) {
                case 0: return [4 /*yield*/, handlers.getMediaAuthToken()];
                case 1:
                    mediaAuthToken = (_b.sent()) || '';
                    mediaType = fileTypeToMediaType(fileType, file.name);
                    return [4 /*yield*/, getUploadUrl({
                            file: file,
                            mediaAuthToken: mediaAuthToken,
                            mediaType: mediaType,
                        })];
                case 2:
                    getUploadUrlResponse = _b.sent();
                    return [4 /*yield*/, getUploadUrlResponse.json()];
                case 3:
                    getUploadUrlResponseJson = _b.sent();
                    if (!getUploadUrlResponse.ok) {
                        return [2 /*return*/, onFailedUpload(getUploadUrlResponseJson)];
                    }
                    return [4 /*yield*/, uploadFileToMediaManager({
                            uploadUrl: getUploadUrlResponseJson.upload_url,
                            file: file,
                            mediaType: mediaType,
                        })];
                case 4:
                    uploadFileToMediaResponse = _b.sent();
                    if (!uploadFileToMediaResponse.ok) {
                        return [2 /*return*/, onFailedUpload(uploadFileToMediaResponse.response)];
                    }
                    return [2 /*return*/, onSuccessfulUpload(uploadFileToMediaResponse.response[0])];
            }
        });
    });
};
var getUploadUrl = function (_a) {
    var file = _a.file, mediaType = _a.mediaType, mediaAuthToken = _a.mediaAuthToken;
    var getUrl = "https://files.wix.com/site/media/files/upload/url?media_type=" + mediaType + "&file_name=" + encodeURIComponent(file.name) + "&mime_type=" + encodeURIComponent(file.type);
    return fetch(getUrl, {
        method: 'GET',
        headers: {
            Authorization: "APP " + mediaAuthToken,
            Accept: 'application/json',
            'Content-Type': 'application/json',
        },
    });
};
var uploadFileToMediaManager = function (_a) {
    var uploadUrl = _a.uploadUrl, file = _a.file, mediaType = _a.mediaType;
    var formData = new FormData();
    formData.append('media_type', mediaType);
    formData.append('file', file);
    formData.append('parent_folder_id', 'visitor-uploads');
    return new Promise(function (resolve) {
        var xhr = new XMLHttpRequest();
        xhr.responseType = 'json';
        xhr.onload = function () {
            if (xhr.status !== 200) {
                resolve({
                    ok: false,
                    response: xhr.response,
                });
            }
            resolve({
                ok: true,
                response: xhr.response,
            });
        };
        xhr.open('POST', uploadUrl);
        xhr.send(formData);
    });
};
var onValidate = function (_a) {
    var api = _a.viewerSdkAPI, validationDataResult = _a.validationDataResult;
    if (validationDataResult.type === 'FileUploader' &&
        api.props.uploadStatus === 'Not_Started') {
        var isInvalidToUpload = Object.entries(validationDataResult.validity).some(function (_a) {
            var key = _a[0], value = _a[1];
            return value && key !== 'valid' && key !== 'fileNotUploaded';
        });
        var filesValidationInfo_1 = validationDataResult.filesValidationInfo;
        var newValue = api.props.value.map(function (file, idx) { return ({
            name: file.name,
            size: file.size,
            valid: !filesValidationInfo_1[idx],
            validityInfo: {
                invalidKey: filesValidationInfo_1[idx],
                invalidInfo: getFileValidityValidationMessage(filesValidationInfo_1[idx], file.name, api.props.fileType),
            },
            fileInfo: file.fileInfo,
            uploadStatus: file.uploadStatus,
        }); });
        api.setProps({
            value: newValue,
            isInvalidToUpload: isInvalidToUpload,
            validationMessage: validationDataResult.validationMessage,
        });
    }
};
var getNewPromiseResolveReject = function () {
    var resolveMethod = function () { return ''; };
    var rejectMethod = function () { return ''; };
    var promise = new Promise(function (resolve, reject) {
        resolveMethod = resolve;
        rejectMethod = reject;
    });
    return { promise: promise, resolve: resolveMethod, reject: rejectMethod };
};
var isFile = function (x) { return x.name && x.type; };
var parseMediaServerErrorKey = function (key) {
    return MediaServerErrorKeysTranslationMapping[key]
        ? key
        : GeneralErrorTranslation.key;
};
var allSettled = function (promisesArr) {
    return Promise.all(promisesArr.map(function (promise) {
        return new Promise(function (resolve) {
            return promise.then(function () { return resolve(); }).catch(function () { return resolve(); });
        });
    }));
};

// CONCATENATED MODULE: ./components/FileUploader/corvid/FileUploader.corvid.ts









var fileUploaderValidator = Object(createInputValidator["b" /* createInputValidator */])(Object(validityUtils["f" /* composeValidators */])([
    validateRequiredArray["a" /* validateRequiredArray */],
    validateFile,
    validateNumFiles,
    validateUploadDone,
]));
fileUploaderValidator.onValidate(onValidate);
var FileUploader_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(fileUploaderValidator);
var FileUploader_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(fileUploaderValidator);
var FileUploader_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var _ownSDKFactory = function (api) {
    var handlers = api.handlers, props = api.props, setProps = api.setProps, compRef = api.compRef, registerEvent = api.registerEvent, metaData = api.metaData, createSdkState = api.createSdkState;
    var _a = createSdkState(defaultState), setState = _a[1];
    var rejectCallback;
    var rejectCurrentUpload = function (_a) {
        var reason = _a.reason, shouldFailUploadStatus = _a.shouldFailUploadStatus;
        if (shouldFailUploadStatus) {
            setProps({ uploadStatus: 'Failed' });
            fileUploaderValidator.validate({
                showValidityIndication: true,
                viewerSdkAPI: api,
            });
        }
        if (rejectCallback) {
            rejectCallback(reason);
            rejectCallback = null;
        }
    };
    registerEvent('onChange', function () {
        if (!props.value.length) {
            setState({ uploadServerError: null });
        }
    });
    fileUploaderValidator.validate({
        viewerSdkAPI: api,
        showValidityIndication: false,
    });
    var generateUpdateFileUploadStatus = function (fileIndex) { return function (_a) {
        var successInfo = _a.successInfo, failureInfo = _a.failureInfo;
        var newValue = Object(tslib_es6["__spreadArrays"])(api.props.value);
        if (successInfo) {
            newValue[fileIndex] = Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, newValue[fileIndex]), { fileInfo: successInfo, uploadStatus: 'Done' });
        }
        else if (failureInfo) {
            if (failureInfo.type === 'server') {
                newValue[fileIndex] = Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, newValue[fileIndex]), { fileInfo: null, valid: false, validityInfo: {
                        invalidKey: parseMediaServerErrorKey(failureInfo.errorInfo.key),
                        invalidInfo: failureInfo.errorInfo.message,
                    }, uploadStatus: 'Failed' });
            }
            else {
                var reason = failureInfo.reason;
                newValue[fileIndex] = Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, newValue[fileIndex]), { fileInfo: null, valid: false, validityInfo: {
                        invalidKey: GeneralErrorTranslation.key,
                        invalidInfo: reason instanceof Error
                            ? reason.message
                            : reason.errorDescription,
                    }, uploadStatus: 'Failed' });
            }
        }
        else {
            newValue[fileIndex] = Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, newValue[fileIndex]), { fileInfo: null, uploadStatus: 'Started' });
        }
        setProps({ value: newValue });
    }; };
    var onSuccessfulUpload = function (_a) {
        var resolveForFile = _a.resolveForFile, rejectForFile = _a.rejectForFile, setFirstUploadError = _a.setFirstUploadError, updateFileUploadStatus = _a.updateFileUploadStatus;
        return function (uploadResponse) {
            var resolvedValue = null;
            var rejectedValue = null;
            if (uploadResponse) {
                var fileData = getFileDataByType(props.fileType, uploadResponse);
                try {
                    var url = getWixCodeURI(fileData);
                    resolvedValue = getFileInfo(fileData.media_type, url);
                }
                catch (error) {
                    rejectedValue = {
                        type: 'client',
                        reason: generalErrorObject,
                        shouldFailUploadStatus: true,
                    };
                }
            }
            else {
                rejectedValue = {
                    type: 'client',
                    reason: generalErrorObject,
                    shouldFailUploadStatus: true,
                };
            }
            if (resolvedValue) {
                updateFileUploadStatus({ successInfo: resolvedValue });
                return resolveForFile(resolvedValue);
            }
            else if (rejectedValue) {
                updateFileUploadStatus({ failureInfo: rejectedValue });
                setFirstUploadError(rejectedValue);
                return rejectForFile(rejectedValue);
            }
        };
    };
    var onFailedUpload = function (_a) {
        var rejectForFile = _a.rejectForFile, setFirstUploadError = _a.setFirstUploadError, updateFileUploadStatus = _a.updateFileUploadStatus;
        return function (uploadResponse) {
            var reason = {
                errorCode: uploadResponse.error_code,
                errorDescription: uploadResponse.error_description,
            };
            var rejectWith = {
                type: 'server',
                reason: reason,
                errorInfo: uploadResponse.error_info,
                shouldFailUploadStatus: true,
            };
            setFirstUploadError(rejectWith);
            updateFileUploadStatus({ failureInfo: rejectWith });
            return rejectForFile(rejectWith);
        };
    };
    var startUploadingFiles = function (fileList) {
        var uploadPromises = [];
        var _a = getNewPromiseResolveReject(), setFirstUploadErrorPromise = _a.promise, setFirstUploadError = _a.reject;
        setFirstUploadErrorPromise.catch(function (error) {
            if (error.type === 'server') {
                setState({ uploadServerError: error.reason.errorDescription });
            }
            else {
                setState({ uploadServerError: null });
            }
        });
        var _loop_1 = function (file, idx) {
            if (isFile(file)) {
                uploadPromises.push(new Promise(function (resolveForFile, rejectForFile) { return Object(tslib_es6["__awaiter"])(void 0, void 0, void 0, function () {
                    var updateFileUploadStatus, error_1, failureInfo;
                    return Object(tslib_es6["__generator"])(this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                updateFileUploadStatus = generateUpdateFileUploadStatus(idx);
                                updateFileUploadStatus({});
                                _a.label = 1;
                            case 1:
                                _a.trys.push([1, 3, , 4]);
                                return [4 /*yield*/, startFileUpload({
                                        fileType: props.fileType,
                                        handlers: handlers,
                                        file: file,
                                        onFailedUpload: onFailedUpload({
                                            rejectForFile: rejectForFile,
                                            setFirstUploadError: setFirstUploadError,
                                            updateFileUploadStatus: updateFileUploadStatus,
                                        }),
                                        onSuccessfulUpload: onSuccessfulUpload({
                                            resolveForFile: resolveForFile,
                                            rejectForFile: rejectForFile,
                                            setFirstUploadError: setFirstUploadError,
                                            updateFileUploadStatus: updateFileUploadStatus,
                                        }),
                                    })];
                            case 2:
                                _a.sent();
                                return [3 /*break*/, 4];
                            case 3:
                                error_1 = _a.sent();
                                failureInfo = {
                                    type: 'client',
                                    reason: generalErrorObject,
                                    shouldFailUploadStatus: true,
                                };
                                updateFileUploadStatus({ failureInfo: failureInfo });
                                setFirstUploadError(failureInfo);
                                rejectForFile(failureInfo);
                                return [3 /*break*/, 4];
                            case 4: return [2 /*return*/];
                        }
                    });
                }); }));
            }
        };
        for (var _i = 0, _b = Array.from(fileList).map(function (item, index) { return ({
            file: item,
            idx: index,
        }); }); _i < _b.length; _i++) {
            var _c = _b[_i], file = _c.file, idx = _c.idx;
            _loop_1(file, idx);
        }
        return uploadPromises;
    };
    var createUploadFilesPromise = function () {
        return new Promise(function (resolve, reject) { return Object(tslib_es6["__awaiter"])(void 0, void 0, void 0, function () {
            var fileList, uploadPromises, uploadedFiles, uploadedFilesError, error_2;
            return Object(tslib_es6["__generator"])(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        fileUploaderValidator.validate({
                            viewerSdkAPI: api,
                        });
                        rejectCallback = reject;
                        return [4 /*yield*/, compRef.getFiles()];
                    case 1:
                        fileList = _a.sent();
                        if (!fileList.length || props.isInvalidToUpload) {
                            return [2 /*return*/, rejectCurrentUpload({
                                    type: 'client',
                                    reason: getErrorObject(Object(validationPropsSdkState["b" /* getValidationData */])(api), props),
                                    shouldFailUploadStatus: false,
                                })];
                        }
                        setProps({ uploadStatus: 'Started' });
                        uploadPromises = startUploadingFiles(fileList);
                        _a.label = 2;
                    case 2:
                        _a.trys.push([2, 4, , 5]);
                        return [4 /*yield*/, Promise.all(uploadPromises)];
                    case 3:
                        uploadedFiles = _a.sent();
                        return [3 /*break*/, 5];
                    case 4:
                        error_2 = _a.sent();
                        uploadedFilesError = error_2;
                        return [3 /*break*/, 5];
                    case 5: return [4 /*yield*/, allSettled(uploadPromises)];
                    case 6:
                        _a.sent();
                        if (uploadedFiles) {
                            setProps({ uploadStatus: 'Done' });
                        }
                        fileUploaderValidator.validate({
                            viewerSdkAPI: api,
                        });
                        if (uploadedFiles) {
                            resolve(uploadedFiles);
                        }
                        else if (uploadedFilesError) {
                            rejectCurrentUpload(uploadedFilesError);
                        }
                        rejectCallback = null;
                        return [2 /*return*/];
                }
            });
        }); });
    };
    var uploadFilesImp = function () {
        if (props.uploadStatus === 'Started' || rejectCallback) {
            return Promise.reject(filesUploadInProgressErrorObject);
        }
        return createUploadFilesPromise();
    };
    var sdkProps = {
        get buttonLabel() {
            return props.buttonLabel;
        },
        set buttonLabel(_buttonLabel) {
            var buttonLabel = _buttonLabel || '';
            setProps({ buttonLabel: buttonLabel });
        },
        get fileLimit() {
            return props.numFilesLimit;
        },
        set fileLimit(fileLimit) {
            setProps({
                numFilesLimit: fileLimit,
            });
            fileUploaderValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get fileType() {
            return props.fileType;
        },
        set fileType(_fileType) {
            var fileType = _fileType.charAt(0).toUpperCase() + _fileType.slice(1).toLowerCase();
            setProps({ fileType: fileType });
            fileUploaderValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get value() {
            return props.value.map(function (_a) {
                var name = _a.name, size = _a.size, valid = _a.valid, validityInfo = _a.validityInfo;
                return ({
                    name: name,
                    size: size,
                    valid: valid,
                    validationMessage: validityInfo.invalidInfo,
                });
            });
        },
        set value(_value) {
            Object(reporters["a" /* reportError */])(messages["a" /* messages */].onlyGetter({
                compType: 'UploadButton',
                propertyName: 'value',
            }));
        },
        startUpload: function () {
            return Object(tslib_es6["__awaiter"])(this, void 0, Promise, function () {
                var uploadedFile, addKeyToObject;
                return Object(tslib_es6["__generator"])(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            Object(reporters["b" /* reportWarning */])('startUpload is deprecated. Please use uploadFiles instead.');
                            if (props.numFilesLimit && props.numFilesLimit > 1) {
                                throw startUploadDeprecationErrorObject;
                            }
                            return [4 /*yield*/, uploadFilesImp()];
                        case 1:
                            uploadedFile = (_a.sent())[0];
                            addKeyToObject = function (key, value) {
                                var _a;
                                return value !== undefined ? (_a = {}, _a[key] = value, _a) : {};
                            };
                            return [2 /*return*/, Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({ url: uploadedFile.fileUrl }, addKeyToObject('mediaId', uploadedFile.fileName)), addKeyToObject('title', uploadedFile.originalFileName)), addKeyToObject('width', uploadedFile.width)), addKeyToObject('height', uploadedFile.height)), addKeyToObject('duration', uploadedFile.duration))];
                    }
                });
            });
        },
        uploadFiles: uploadFilesImp,
        reset: function () {
            setProps({
                value: [],
                uploadStatus: 'Not_Started',
                shouldShowValidityIndication: false,
            });
            setState(defaultState);
            compRef.resetFiles();
            var rejectReason = {
                errorCode: -1,
                errorDescription: 'Upload Reset',
            };
            rejectCurrentUpload({
                type: 'client',
                reason: rejectReason,
                shouldFailUploadStatus: false,
            });
            fileUploaderValidator.validate({
                viewerSdkAPI: api,
            });
        },
        get type() {
            return '$w.UploadButton';
        },
        toJSON: function () {
            var required = props.required;
            var value = sdkProps.value, buttonLabel = sdkProps.buttonLabel, fileType = sdkProps.fileType, startUpload = sdkProps.startUpload, uploadFiles = sdkProps.uploadFiles, reset = sdkProps.reset;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: '$w.UploadButton', required: required,
                value: value,
                buttonLabel: buttonLabel,
                fileType: fileType,
                startUpload: startUpload,
                uploadFiles: uploadFiles,
                reset: reset });
        },
    };
    return sdkProps;
};
var customRules = {
    fileType: [isValidFileType],
};
var ownSDKFactory = Object(withValidation["b" /* withValidation */])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        buttonLabel: {
            type: ['string', 'nil'],
            warnIfNil: true,
        },
        fileType: {
            type: ['string'],
        },
        fileLimit: {
            type: ['number'],
            minimum: 1,
            maximum: 10,
        },
    },
}, customRules);
var FileUploader_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(FileUploader_corvid_elementPropsSDKFactory, FileUploader_corvid_requiredPropsSDKFactory, FileUploader_corvid_validationPropsSDKFactory, focusPropsSDKFactory["a" /* focusPropsSDKFactory */], changePropsSDKFactory["a" /* changePropsSDKFactory */], disablePropsSDKFactory["a" /* disablePropsSDKFactory */], FileUploader_corvid_stylePropsSDKFactory, ownSDKFactory);
/* harmony default export */ var FileUploader_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 221 */
/*!***********************************************************!*\
  !*** ./components/Grid/corvid/Grid.corvid.ts + 5 modules ***!
  \***********************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/corvidEvents/corvidEvents.js because of ./components/Captcha/corvid/Captcha.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/corvidEvents/corvidEvents.js
var corvidEvents = __webpack_require__(13);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// CONCATENATED MODULE: ./components/Grid/constants.ts
var ColumnType = {
    String: 'string',
    Number: 'number',
    Date: 'date',
    Image: 'image',
    Bool: 'bool',
    RichText: 'richText',
};
var DataSource = {
    Static: 'static',
    Dynamic: 'dynamic',
};
var PaginationType = {
    None: 'normal',
    Pages: 'pagination',
    Scroll: 'virtual',
};
var UserSelectionType = {
    None: 'none',
    Row: 'row',
    Cell: 'cell',
};
var ColumnLayout = {
    Manual: 'manual',
    Equal: 'equal',
};
var LinkTarget = {
    Blank: '_blank',
    Self: '_self',
};
var HeaderColumn = {
    None: 'none',
    First: 'first',
    Last: 'last',
};
var TestId = {
    Pagination: 'pagination',
    PaginationText: 'pagination-text',
    PagePrev: 'page-prev',
    PageNext: 'page-next',
    Loader: 'loader',
};
var DEFAULT_COLUMN_WIDTH = 200;
var DEFAULT_ROWS_PER_PAGE = 100;

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/src/media/common.ts
var types = {
    IMAGE: 'image',
    DOCUMENT: 'document',
    VIDEO: 'video',
    AUDIO: 'audio',
    VECTOR: 'vector',
};
var errors = {
    empty_media_id: 'empty_media_id',
    empty_poster_id: 'empty_poster_id',
    bad_media_id: 'bad_media_id',
    unknown_media_type: 'unknown_media_type',
    missing_width_height: 'missing_width_height',
    non_string_media_id: 'non_string_media_id',
};

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/src/media/mediaItemUtils.ts

var templates = {
    vector: function (svgId, filename) {
        return "wix:vector://v1/" + svgId + "/" + filename;
    },
    image: function (uri, filename, width, height, watermark) {
        return "wix:image://v1/" + uri + "/" + filename + "#originWidth=" + width + "&originHeight=" + height + (watermark ? "&watermark=" + watermark : '');
    },
    document: function (uri, filename) {
        return "wix:document://v1/" + uri + "/" + filename;
    },
    video: function (videoId, posterId, filename, width, height) {
        if (width === void 0) { width = 0; }
        if (height === void 0) { height = 0; }
        return "wix:video://v1/" + videoId + "/" + filename + "#posterUri=" + posterId + "&posterWidth=" + width + "&posterHeight=" + height;
    },
    audio: function (uri, filename, duration) {
        return "wix:audio://v1/" + uri + "/" + filename + "#duration=" + duration;
    },
};
/* eslint-disable no-useless-escape */
var matchers = {
    vector: /^wix:vector:\/\/v1\/([^\/]+)\/([^\/]*)$/,
    image: /^wix:image:\/\/v1\/([^\/]+)\/([^\/]+)#originWidth=([0-9]+)&originHeight=([0-9]+)(?:&watermark=([^\/]+))?$/,
    document: /^wix:document:\/\/v1\/([^\/]+)\/([^\/]+)$/,
    video: /^wix:video:\/\/v1\/([^\/]+)\/([^\/]+)#posterUri=([^\/]+)&posterWidth=([0-9]+)&posterHeight=([0-9]+)$/,
    audio: /^wix:audio:\/\/v1\/([^\/]+)\/([^\/]+)#duration=([0-9]+)$/,
    deprecated_video: /^wix:video:\/\/v1\/([^\/]+)\/([^\/]+)\/#posterUri=([^\/]+)&posterWidth=([0-9]+)&posterHeight=([0-9]+)$/,
    deprecated_image: /^image:\/\/v1\/([^\/]+)\/([0-9]+)_([0-9]+)\/([^\/]*)$/,
    deprecated_type: /^(image):/,
    type: /^wix:(\w+):/,
    splitExtension: /\.(?=[^.]+$)/,
    emptyTitle: /^_\./,
};
/* eslint-enable no-useless-escape*/
var matchersByType = {
    vector: [matchers.vector],
    image: [matchers.image, matchers.deprecated_image],
    document: [matchers.document],
    video: [matchers.video, matchers.deprecated_video],
    audio: [matchers.audio],
};
/**
 * Return a file name, use the extension from uri if the title has none
 */
function convertTitleToFilename(type, title, uri) {
    if (title === void 0) { title = ''; }
    var _a = uri.split(matchers.splitExtension), uriName = _a[0], uriExtension = _a[1];
    var _b = title.split(matchers.splitExtension), titleName = _b[0], titleExtension = _b[1];
    var filename;
    switch (type) {
        case types.IMAGE:
            filename = (titleName || '_') + "." + (titleExtension || uriExtension);
            break;
        case types.DOCUMENT:
            filename = (titleName || uriName) + "." + (titleExtension || uriExtension);
            break;
        case types.VIDEO:
            filename = "" + (titleName || '_') + (titleExtension ? "." + titleExtension : '');
            break;
        case types.AUDIO:
            filename = (titleName || uriName) + "." + (titleExtension || uriExtension);
            break;
        case types.VECTOR:
            filename = (titleName || uriName) + "." + (titleExtension || uriExtension);
            break;
        default:
            filename = '';
            break;
    }
    return encodeURI(filename);
}
/**
 * return filename or an empty string
 */
function convertFilenameToTitle(filename) {
    return matchers.emptyTitle.test(filename) ? '' : decodeURI(filename);
}
/**
 * Create a MediaItem for an image, width and height are mandatory numbers
 */
function createImageItem(_a) {
    var mediaId = _a.mediaId, title = _a.title, width = _a.width, height = _a.height, watermark = _a.watermark;
    if (!mediaId) {
        return { error: errors.empty_media_id };
    }
    if (typeof height !== 'number' || typeof width !== 'number') {
        return { error: errors.missing_width_height };
    }
    var filename = convertTitleToFilename(types.IMAGE, title, mediaId);
    return { item: templates.image(mediaId, filename, width, height, watermark) };
}
/**
 * Create a MediaItem for a document
 */
function createDocumentItem(_a) {
    var mediaId = _a.mediaId, title = _a.title;
    if (!mediaId) {
        return { error: errors.empty_media_id };
    }
    var filename = convertTitleToFilename(types.DOCUMENT, title, mediaId);
    return { item: templates.document(mediaId, filename) };
}
/**
 * Create a MediaItem for a vector image
 */
function createVectorItem(_a) {
    var mediaId = _a.mediaId, title = _a.title;
    if (!mediaId) {
        return { error: errors.empty_media_id };
    }
    var filename = convertTitleToFilename(types.VECTOR, title, mediaId);
    return { item: templates.vector(mediaId, filename) };
}
/**
 * Create a MediaItem for a video, posterId is a mandatory image uri, width and height are mandatory numbers
 */
function createVideoItem(_a) {
    var mediaId = _a.mediaId, title = _a.title, width = _a.width, height = _a.height, posterId = _a.posterId;
    if (!mediaId) {
        return { error: errors.empty_media_id };
    }
    if (!posterId) {
        return { error: errors.empty_poster_id };
    }
    if (isNaN(height || NaN) || isNaN(width || NaN)) {
        return { error: errors.missing_width_height };
    }
    var strippedMediaId = mediaId.replace('video/', '');
    var filename = convertTitleToFilename(types.VIDEO, title, strippedMediaId);
    return {
        item: templates.video(strippedMediaId, posterId, filename, width, height),
    };
}
/**
 * Create a MediaItem for a audio
 */
function createAudioItem(_a) {
    var mediaId = _a.mediaId, title = _a.title, duration = _a.duration;
    if (!mediaId) {
        return { error: errors.empty_media_id };
    }
    var filename = convertTitleToFilename(types.AUDIO, title, mediaId);
    return { item: templates.audio(mediaId, filename, duration || 0) };
}
/**
 * Parse an image MediaItem
 */
function parseImageItem(item) {
    var _a = item.match(matchers.image) || [], mediaId = _a[1], filename = _a[2], width = _a[3], height = _a[4], watermark = _a[5];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        var parsed = {
            type: types.IMAGE,
            mediaId: mediaId,
            title: title,
            width: parseInt(width, 10),
            height: parseInt(height, 10),
            watermark: watermark,
        };
        return parsed;
    }
    return { error: errors.bad_media_id };
}
function parseDeprecatedImageItem(item) {
    var _a = item.match(matchers.deprecated_image) || [], mediaId = _a[1], width = _a[2], height = _a[3], filename = _a[4];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        return {
            type: types.IMAGE,
            mediaId: mediaId,
            title: title,
            width: parseInt(width, 10),
            height: parseInt(height, 10),
        };
    }
    return { error: errors.bad_media_id };
}
/**
 * Parse a document MediaItem
 */
function parseDocumentItem(item) {
    var _a = item.match(matchers.document) || [], mediaId = _a[1], filename = _a[2];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        return {
            type: types.DOCUMENT,
            mediaId: mediaId,
            title: title,
        };
    }
    return { error: errors.bad_media_id };
}
/**
 * Parse a vector MediaItem
 */
function parseVectorItem(item) {
    var _a = item.match(matchers.vector) || [], mediaId = _a[1], filename = _a[2];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        return {
            type: types.VECTOR,
            mediaId: mediaId,
            title: title,
        };
    }
    return { error: errors.bad_media_id };
}
/**
 * Parse a video MediaItem
 */
function parseVideoItem(item) {
    var videoMatcher = matchers.deprecated_video.test(item)
        ? matchers.deprecated_video
        : matchers.video;
    var _a = item.match(videoMatcher) || [], mediaId = _a[1], filename = _a[2], posterId = _a[3], width = _a[4], height = _a[5];
    var title = convertFilenameToTitle(filename);
    if (mediaId && posterId) {
        return {
            type: types.VIDEO,
            mediaId: mediaId,
            posterId: posterId,
            width: parseInt(width, 10),
            height: parseInt(height, 10),
            title: title,
        };
    }
    return { error: errors.bad_media_id };
}
/**
 * Parse a audio MediaItem
 */
function parseAudioItem(item) {
    var _a = item.match(matchers.audio) || [], mediaId = _a[1], filename = _a[2], duration = _a[3];
    var title = convertFilenameToTitle(filename);
    if (mediaId) {
        return {
            type: types.AUDIO,
            mediaId: mediaId,
            title: title,
            duration: parseInt(duration, 10),
        };
    }
    return { error: errors.bad_media_id };
}
/**
 * Create a MediaItem in the form of 'wix:<media_type>:<uri>/...' of one of the supported type
 */
function createMediaItemUri(_a) {
    var mediaId = _a.mediaId, type = _a.type, title = _a.title, width = _a.width, height = _a.height, posterId = _a.posterId, watermark = _a.watermark, duration = _a.duration;
    switch (type) {
        case types.IMAGE:
            return createImageItem({ mediaId: mediaId, title: title, width: width, height: height, watermark: watermark });
        case types.DOCUMENT:
            return createDocumentItem({ mediaId: mediaId, title: title });
        case types.VECTOR:
            return createVectorItem({ mediaId: mediaId, title: title });
        case types.VIDEO:
            return createVideoItem({ mediaId: mediaId, title: title, width: width, height: height, posterId: posterId });
        case types.AUDIO:
            return createAudioItem({ mediaId: mediaId, title: title, duration: duration });
        default:
            return { error: errors.unknown_media_type };
    }
}
/**
 * Parse a media item url of one of the supported types
 */
function parseMediaItemUri(mediaItemUri) {
    if (mediaItemUri === void 0) { mediaItemUri = ''; }
    if (typeof mediaItemUri !== 'string') {
        return { error: errors.non_string_media_id };
    }
    var _a = mediaItemUri.match(matchers.type) || [], type = _a[1];
    switch (type) {
        case types.IMAGE:
            return parseImageItem(mediaItemUri);
        case types.DOCUMENT:
            return parseDocumentItem(mediaItemUri);
        case types.VECTOR:
            return parseVectorItem(mediaItemUri);
        case types.VIDEO:
            return parseVideoItem(mediaItemUri);
        case types.AUDIO:
            return parseAudioItem(mediaItemUri);
        default:
            var _b = mediaItemUri.match(matchers.deprecated_type) || [], deprecatedType = _b[1];
            if (deprecatedType) {
                return parseDeprecatedImageItem(mediaItemUri);
            }
            return { error: errors.unknown_media_type };
    }
}
/**
 * Checks if a given url is a valid media item url
 */
function mediaItemUtils_isValidMediaItemUri(mediaItemUri, type) {
    if (mediaItemUri === void 0) { mediaItemUri = ''; }
    var typeMatchers = matchersByType[type];
    return (typeMatchers && typeMatchers.some(function (matcher) { return matcher.test(mediaItemUri); }));
}


// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/src/media/mediaSrcHandler.ts
var mediaSrcHandler_a;


var mediaSrcHandler_matchers = {
    externalUrl: /(^https?)|(^data)|(^blob)|(^\/\/)/,
    inlineSvg: /<svg[\s\S]*>[\s\S]*<\/svg>/im,
};
var extraMatchersByType = (mediaSrcHandler_a = {},
    mediaSrcHandler_a[types.VECTOR] = [mediaSrcHandler_matchers.externalUrl, mediaSrcHandler_matchers.inlineSvg],
    mediaSrcHandler_a[types.IMAGE] = [mediaSrcHandler_matchers.externalUrl],
    mediaSrcHandler_a[types.DOCUMENT] = [],
    mediaSrcHandler_a[types.VIDEO] = [],
    mediaSrcHandler_a[types.AUDIO] = [mediaSrcHandler_matchers.externalUrl],
    mediaSrcHandler_a);
/**
 * Create a MediaItem in the form of 'wix:<media_type>:<uri>/...' or extra supported source(e.g., external url) of one of the supported type
 */
function createMediaSrc(_a) {
    var _b;
    var mediaId = _a.mediaId, type = _a.type, title = _a.title, width = _a.width, height = _a.height, posterId = _a.posterId, watermark = _a.watermark, duration = _a.duration;
    if ((_b = 
    // @ts-ignore
    extraMatchersByType[type]) === null || _b === void 0 ? void 0 : _b.some(function (matcher) { return matcher.test(mediaId); })) {
        return { item: mediaId };
    }
    return createMediaItemUri({
        mediaId: mediaId,
        type: type,
        title: title,
        width: width,
        height: height,
        posterId: posterId,
        watermark: watermark,
        duration: duration,
    });
}
/**
 * Parse a media item url of one of the supported types, including extra source type(e.g. external url)
 */
function parseMediaSrc(mediaItemSrc, type) {
    if (!Object.values(types).includes(type)) {
        return { error: errors.unknown_media_type };
    }
    if (extraMatchersByType[type].some(function (matcher) { return matcher.test(mediaItemSrc); })) {
        return { type: type, mediaId: mediaItemSrc };
    }
    var mediaItemUri = parseMediaItemUri(mediaItemSrc);
    if (mediaItemUri.error === errors.non_string_media_id) {
        return mediaItemUri;
    }
    if (mediaItemUri.error === errors.unknown_media_type ||
        type !== mediaItemUri.type) {
        return { error: errors.bad_media_id };
    }
    return mediaItemUri;
}
/**
 * Checks if a given url is a valid media source url
 */
function isValidMediaSrc(mediaSrc, type) {
    var isValidMediaItemUri = mediaItemUtils_isValidMediaItemUri(mediaSrc, type);
    return (isValidMediaItemUri ||
        (extraMatchersByType[type] &&
            extraMatchersByType[type].some(function (matcher) { return matcher.test(mediaSrc); })));
}


// CONCATENATED MODULE: ./components/Grid/utils.ts


var isObject = function (value) {
    return typeof value === 'object' && value !== null && !Array.isArray(value);
};
var extractImageDataFromSrc = function (src) {
    var _a = parseMediaSrc(src, 'image'), error = _a.error, title = _a.title, uri = _a.mediaId, width = _a.width, height = _a.height;
    if (error || !uri) {
        return null;
    }
    return { uri: uri, width: width, height: height, title: title, name: title };
};
var getRowValue = function (row, dataPath) {
    if (!dataPath) {
        return undefined;
    }
    var dataPathParts = Array.isArray(dataPath)
        ? dataPath
        : dataPath.split('.');
    var value = row;
    var index = 0;
    while (isObject(value) && index < dataPathParts.length) {
        value = value[dataPathParts[index++]];
    }
    return index && index === dataPathParts.length ? value : undefined;
};
var setRowValue = function (row, dataPath, value) {
    var dataPathParts = Array.isArray(dataPath)
        ? dataPath
        : dataPath.split('.');
    var valueRef = row;
    var index = 0;
    while (valueRef && index < dataPathParts.length - 1) {
        if (!isObject(valueRef[dataPathParts[index]])) {
            valueRef[dataPathParts[index]] = {};
        }
        valueRef = valueRef[dataPathParts[index++]];
    }
    valueRef[dataPathParts[index]] = value;
};
var getPageRowsRange = function (page, rowsPerPage) {
    if (rowsPerPage === void 0) { rowsPerPage = DEFAULT_ROWS_PER_PAGE; }
    var startRow = (page - 1) * rowsPerPage;
    var endRow = startRow + rowsPerPage;
    return [startRow, endRow];
};
function extractHtmlTagAttributes(attributesHtml) {
    var attributes = {};
    var attributesRegEx = /((\w*)(=(["']?)(((?!\4).)*)\4))/gi;
    var currAttr = attributesRegEx.exec(attributesHtml);
    while (currAttr !== null) {
        var name = currAttr[2].toLowerCase();
        var value = currAttr[5];
        attributes[name] = value;
        currAttr = attributesRegEx.exec(attributesHtml);
    }
    return attributes;
}
var isValidDate = function (date) { return !isNaN(date.getTime()); };
var getLinkPropsPath = function (linkPath) { return linkPath + "_$linkProps"; };
var getRichTextHtmlPath = function (dataPath) { return dataPath + "_$html"; };
var removeProtocol = function (url) { return url.replace(/^https?:\/\//, ''); };

// CONCATENATED MODULE: ./components/Grid/corvid/Grid.corvid.ts






var ownSDKFactory = function (api) {
    var setProps = api.setProps, registerEvent = api.registerEvent, createEvent = api.createEvent, createSdkState = api.createSdkState, getSdkInstance = api.getSdkInstance, create$w = api.create$w, props = api.props, metaData = api.metaData, linkUtils = api.linkUtils, compRef = api.compRef;
    var sdkType = '$w.Table';
    var $w = create$w();
    var _a = createSdkState({
        lastRows: [],
        dataChangeHandlers: [],
        dataFetcher: null,
        lastDataFetcherRequestId: 0,
        lastDataChangeEventTime: Date.now(),
    }), state = _a[0], setState = _a[1];
    var schemaValidator = Object(withValidation["a" /* createCompSchemaValidator */])(metaData.role);
    var validateEventHandler = function (handler, name) {
        return schemaValidator(handler, { type: ['function'] }, name);
    };
    var triggerDataChangeHandlers = function () {
        if (!state.dataChangeHandlers.length) {
            return;
        }
        var now = Date.now();
        // Emulate old behavior for backwards compatibility where data change events
        // are not triggered unless Date.now() has changed since last update.
        if (state.lastDataChangeEventTime < now) {
            setState({ lastDataChangeEventTime: now });
            var event_1 = createEvent({
                type: 'dataChange',
            });
            state.dataChangeHandlers.forEach(function (handler) { return handler(event_1, $w); });
        }
    };
    var transformRowUpdateIndex = function (rowIndex) {
        var dataSource = props.dataSource, pagination = props.pagination, currentPage = props.currentPage;
        if (dataSource === DataSource.Static ||
            pagination.type === PaginationType.Scroll) {
            return rowIndex;
        }
        if (pagination.type === PaginationType.Pages) {
            var _a = getPageRowsRange(currentPage !== null && currentPage !== void 0 ? currentPage : 1, pagination.rowsPerPage), startRow = _a[0], endRow = _a[1];
            if (rowIndex >= startRow && rowIndex < endRow) {
                // With a fixed pagination and dynamic data source the update index has
                // to be transformed from absolute to relative index for current page.
                return rowIndex - startRow;
            }
        }
        return -1;
    };
    var processRowWithImageColumn = function (row, _a) {
        var dataPath = _a.dataPath;
        var src = getRowValue(row, dataPath);
        if (src) {
            var imageData = extractImageDataFromSrc(src);
            if (imageData) {
                setRowValue(row, dataPath, imageData);
            }
        }
    };
    var processRowWithDateColumn = function (row, _a) {
        var dataPath = _a.dataPath;
        var dateValue = getRowValue(row, dataPath);
        if (!assert["a" /* assert */].isNil(dateValue)) {
            var date = new Date(dateValue);
            if (!isValidDate(date)) {
                Object(reporters["a" /* reportError */])("Error: Invalid date: \"" + dateValue + "\" in column '\"" + dataPath + "\"'");
            }
        }
    };
    var processRowWithLinkColumn = function (row, _a) {
        var linkPath = _a.linkPath;
        var url = getRowValue(row, linkPath);
        var linkProps = {};
        try {
            linkProps = linkUtils.getLinkProps(url, props.linkTarget);
        }
        catch (ex) {
            if (url) {
                Object(reporters["a" /* reportError */])("Error: couldn't process link with url \"" + url + "\": " + ex.message);
            }
        }
        setRowValue(row, getLinkPropsPath(linkPath), linkProps);
    };
    var processRowWithRichTextColumn = function (row, _a) {
        var dataPath = _a.dataPath;
        var html = getRowValue(row, dataPath);
        if (typeof html !== 'string' || !html) {
            return;
        }
        // Patch up inline links to respect linkTarget and have correct rel attributes
        var updatedHtml = html.replace(/(<a\s+)([^>]+)/gi, function (match, tagPrefix, attributesHtml) {
            var attributes = extractHtmlTagAttributes(attributesHtml);
            var linkProps = {};
            if (attributes.href) {
                try {
                    linkProps = linkUtils.getLinkProps(attributes.href, props.linkTarget);
                }
                catch (_a) { }
            }
            var href = linkProps.href, target = linkProps.target, rel = linkProps.rel;
            var mergedAttributes = Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, attributes), (href && { href: href })), (target && { target: target })), (rel && { rel: rel }));
            var updatedAttributesHtml = Object.entries(mergedAttributes)
                .map(function (_a) {
                var name = _a[0], value = _a[1];
                return name + "=\"" + value + "\"";
            })
                .join(' ');
            return "" + tagPrefix + updatedAttributesHtml;
        });
        setRowValue(row, getRichTextHtmlPath(dataPath), updatedHtml);
    };
    var processNewRows = function (rows) {
        var columns = props.columns;
        var dateColumns = columns.filter(function (_a) {
            var type = _a.type;
            return type === ColumnType.Date;
        });
        var linkColumns = columns.filter(function (_a) {
            var linkPath = _a.linkPath;
            return !!linkPath;
        });
        var imageColumns = columns.filter(function (_a) {
            var type = _a.type;
            return type === ColumnType.Image;
        });
        var richTextColumns = columns.filter(function (_a) {
            var type = _a.type;
            return type === ColumnType.RichText;
        });
        return rows.map(function (row) {
            var newRow = Object(tslib_es6["__assign"])({}, row);
            imageColumns.forEach(function (column) { return processRowWithImageColumn(newRow, column); });
            dateColumns.forEach(function (column) { return processRowWithDateColumn(newRow, column); });
            linkColumns.forEach(function (column) { return processRowWithLinkColumn(newRow, column); });
            richTextColumns.forEach(function (column) {
                return processRowWithRichTextColumn(newRow, column);
            });
            return newRow;
        });
    };
    var loadRows = function (startRow, endRow, isFirstLoad) {
        if (isFirstLoad === void 0) { isFirstLoad = false; }
        return Object(tslib_es6["__awaiter"])(void 0, void 0, void 0, function () {
            var paginationType, pagination, requestId, propsPromise;
            return Object(tslib_es6["__generator"])(this, function (_a) {
                if (!state.dataFetcher) {
                    return [2 /*return*/];
                }
                // Preserve old rows while loading new data with data fetcher. Visually the table
                // will not show rows while in an initial first load state, however, for backwards
                // compatibility the SDK rows getter must still return old rows.
                if (!props.isLoading) {
                    setState({ lastRows: props.rows });
                }
                paginationType = props.pagination.type;
                pagination = paginationType === PaginationType.None && Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, props.pagination), { type: PaginationType.Scroll });
                setProps(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({ isLoading: true, dataSource: DataSource.Dynamic }, (pagination && { pagination: pagination })), (isFirstLoad && {
                    rows: [],
                    currentPage: 1,
                })));
                requestId = state.lastDataFetcherRequestId + 1;
                setState({ lastDataFetcherRequestId: requestId });
                propsPromise = state
                    .dataFetcher(startRow, endRow)
                    .then(function (_a) {
                    var pageRows = _a.pageRows, totalRowsCount = _a.totalRowsCount;
                    // UI can trigger new requests to load rows while there are still pending
                    // requests in progress. To avoid updating UI with out of order data we
                    // ignore stale dataFetcher results.
                    if (requestId !== state.lastDataFetcherRequestId) {
                        return;
                    }
                    var newRows = processNewRows(pageRows);
                    var shouldAppend = !isFirstLoad && paginationType !== PaginationType.Pages;
                    var rows = shouldAppend ? props.rows.concat(newRows) : newRows;
                    return {
                        isLoading: false,
                        lastLoadedRowsCount: newRows.length,
                        rows: rows,
                        totalRowsCount: totalRowsCount,
                    };
                });
                setProps(propsPromise);
                // NOTE: We want to trigger dataChange user callbacks after platforms applies props
                // from the previous .then() with dataFetcher. So that user event code can access
                // latest props (event.target.rows etc).
                propsPromise.then(function () {
                    if (requestId === state.lastDataFetcherRequestId) {
                        triggerDataChangeHandlers();
                    }
                });
                return [2 /*return*/];
            });
        });
    };
    return {
        set pagination(value) {
            setProps({ pagination: Object(tslib_es6["__assign"])({}, value) });
        },
        get pagination() {
            return Object(tslib_es6["__assign"])({}, props.pagination);
        },
        set columns(value) {
            var columns = assert["a" /* assert */].isArray(value)
                ? value.map(function (column) { return (Object(tslib_es6["__assign"])({ visible: true }, column)); })
                : [];
            setProps({ columns: columns });
        },
        get columns() {
            return props.columns.map(function (column) { return (Object(tslib_es6["__assign"])({}, column)); });
        },
        set rows(value) {
            var rows = assert["a" /* assert */].isArray(value) ? value : [];
            // Ignore any pending requests from previous dynamic data source
            setState({ lastDataFetcherRequestId: 0 });
            setProps({
                isLoading: false,
                dataSource: DataSource.Static,
                rows: processNewRows(rows),
            });
            triggerDataChangeHandlers();
        },
        get rows() {
            var rows = props.isLoading ? state.lastRows : props.rows;
            return rows.map(function (row) { return (Object(tslib_es6["__assign"])({}, row)); });
        },
        set dataFetcher(value) {
            if (!state.dataFetcher) {
                registerEvent('onLoadRows', function (_a) {
                    var startRow = _a.startRow, endRow = _a.endRow;
                    return loadRows(startRow, endRow);
                });
            }
            setState({ dataFetcher: value });
            var rowsPerPage = props.pagination.rowsPerPage;
            var _a = getPageRowsRange(1, rowsPerPage), startRow = _a[0], endRow = _a[1];
            loadRows(startRow, endRow, true);
        },
        get dataFetcher() {
            return state.dataFetcher;
        },
        selectRow: function (selectedRow) {
            if (selectedRow !== props.selectedRow) {
                setProps({ selectedRow: selectedRow, selectedCell: undefined });
                compRef.onRowSelect(selectedRow);
            }
        },
        updateRow: function (index, rowData) {
            var updateIndex = transformRowUpdateIndex(index);
            if (updateIndex < 0) {
                return;
            }
            var updatedRow = processNewRows([rowData])[0];
            var updatedRows = props.rows;
            updatedRows.splice(updateIndex, 1, updatedRow);
            setProps({ rows: updatedRows });
            triggerDataChangeHandlers();
        },
        onRowSelect: function (handler) {
            return Object(corvidEvents["a" /* registerCorvidEvent */])('onRowSelect', api, handler, function (_a) {
                var componentEvent = _a.componentEvent;
                return componentEvent;
            });
        },
        onCellSelect: function (handler) {
            return Object(corvidEvents["a" /* registerCorvidEvent */])('onCellSelect', api, handler, function (_a) {
                var componentEvent = _a.componentEvent;
                return componentEvent;
            });
        },
        refresh: function () {
            var _a, _b;
            if (props.dataSource !== DataSource.Dynamic) {
                return;
            }
            var pagination = props.pagination, currentPage = props.currentPage;
            var rowsPerPage = pagination.rowsPerPage;
            var startRow;
            var endRow;
            var isFirstLoad = false;
            if (pagination.type === PaginationType.Pages) {
                _a = getPageRowsRange(currentPage !== null && currentPage !== void 0 ? currentPage : 1, rowsPerPage), startRow = _a[0], endRow = _a[1];
            }
            else {
                _b = getPageRowsRange(1, rowsPerPage), startRow = _b[0], endRow = _b[1];
                isFirstLoad = true;
            }
            loadRows(startRow, endRow, isFirstLoad);
        },
        onDataChange: function (handler) {
            if (!validateEventHandler(handler, 'onDataChange')) {
                return getSdkInstance();
            }
            setState({ dataChangeHandlers: Object(tslib_es6["__spreadArrays"])(state.dataChangeHandlers, [handler]) });
            return getSdkInstance();
        },
        get type() {
            return sdkType;
        },
        toJSON: function () {
            var pagination = props.pagination, columns = props.columns, rows = props.rows;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: sdkType, pagination: pagination,
                columns: columns,
                rows: rows });
        },
    };
};
var ownSDKFactoryWithValidation = Object(withValidation["b" /* withValidation */])(ownSDKFactory, {
    type: ['object'],
    properties: {
        pagination: {
            type: ['object'],
            properties: {
                type: {
                    type: ['string'],
                    enum: Object.values(PaginationType),
                },
                rowsPerPage: {
                    type: ['number'],
                },
            },
            required: ['type'],
        },
        columns: {
            type: ['array', 'nil'],
            warnIfNil: true,
            items: {
                type: ['object'],
                properties: {
                    id: { type: ['string'] },
                },
                required: ['id'],
            },
        },
        rows: {
            type: ['array', 'nil'],
            warnIfNil: true,
            items: {
                type: ['object'],
            },
        },
        dataFetcher: {
            type: ['function', 'nil'],
        },
        updateRow: {
            type: ['function'],
            args: [
                { type: ['integer'], name: 'rowIndex' },
                { type: ['object'], name: 'row' },
            ],
        },
        selectRow: {
            type: ['function'],
            args: [{ type: ['integer'], name: 'rowIndex' }],
        },
    },
}, {
    selectRow: [
        function (value, api) {
            var props = api.props, metaData = api.metaData;
            var schemaValidator = Object(withValidation["a" /* createCompSchemaValidator */])(metaData.role);
            return schemaValidator(value[0], {
                type: ['integer'],
                minimum: 0,
                maximum: props.rows.length - 1,
            }, 'selectRow');
        },
    ],
});
var Grid_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(Grid_corvid_elementPropsSDKFactory, clickPropsSDKFactory["a" /* clickPropsSDKFactory */], ownSDKFactoryWithValidation);
/* harmony default export */ var Grid_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 222 */
/*!***************************************!*\
  !*** ./component-sdks.ts + 2 modules ***!
  \***************************************/
/*! exports provided: sdkTypeToComponentTypes, loadComponentSdks */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdkTypeToComponentTypes", function() { return /* binding */ sdkTypeToComponentTypes; });
__webpack_require__.d(__webpack_exports__, "loadComponentSdks", function() { return /* binding */ loadComponentSdks; });

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/Fallback/entry.corvid.js
var FallbackCorvidModel = {
    componentType: 'Fallback',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Fallback.corvid */).then(__webpack_require__.bind(null, /*! ./Fallback.corvid */ 252));
    },
};
/* harmony default export */ var entry_corvid = (FallbackCorvidModel);
//# sourceMappingURL=entry.corvid.js.map
// CONCATENATED MODULE: ./build-utils/index.ts
function importAll(requireContext) {
    return requireContext.keys().map(function (key) { return requireContext(key).default; });
}
function retry(fn, options) {
    var mergedOptions = {
        times: (options && options.times) || 1,
    };
    return (function () {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var result = fn(args);
        for (var retryCount = 0; retryCount < mergedOptions.times - 1; retryCount++) {
            result = result.catch(function () {
                return fn(args);
            });
        }
        return result;
    });
}

// CONCATENATED MODULE: ./component-sdks.ts


function createSdkLoader(componentEntries) {
    return componentEntries.reduce(function (loader, entry) {
        var componentType = entry.componentType, loadSDK = entry.loadSDK;
        if (!componentType || !loadSDK) {
            throw new Error('Error generating Corvid SDK loader! Corvid SDK entry (ComponentName/corvid/entry.corvid.ts) must be of type `ICorvidModel`');
        }
        loader[componentType] = loadSDK;
        return loader;
    }, {});
}
function createSdkTypesMap(entries) {
    return entries.reduce(function (acc, entry) {
        var sdkType = entry.sdkType, componentType = entry.componentType;
        var key = sdkType || componentType;
        if (key) {
            acc[key] = acc[key] ? acc[key].concat(componentType) : [componentType];
        }
        return acc;
    }, {});
}
var componentEntriesContext = __webpack_require__(75);
var coreComponentsEntriesContext = __webpack_require__(149);
var componentEntries = importAll(componentEntriesContext);
var coreComponentsEntries = importAll(coreComponentsEntriesContext);
var allEntries = coreComponentsEntries.concat(componentEntries);
var sdkLoaders = createSdkLoader(allEntries);
var sdkTypeToComponentTypes = createSdkTypesMap(allEntries);
var loadComponentSdks = function (componentsTypes, logger) {
    if (componentsTypes === void 0) { componentsTypes = []; }
    var failedSDKTypes = [];
    var loaders = componentsTypes.map(function (componentType) {
        return sdkLoaders[componentType]
            ? retry(sdkLoaders[componentType], { times: 3 })().catch(function (reason) {
                failedSDKTypes.push(componentType);
                return Promise.reject(reason);
            })
            : FallbackCorvidModel.loadSDK();
    });
    return Promise.all(loaders)
        .then(function (loadedSDKs) {
        return loadedSDKs.reduce(function (acc, currentValue, index) {
            acc[componentsTypes[index]] = currentValue ? currentValue.sdk : null;
            return acc;
        }, {});
    })
        .catch(function (reason) {
        var error = new Error();
        error.name = 'LoadSdkError';
        error.stack = reason instanceof Error ? reason.stack : error.stack;
        error.message = (reason instanceof Error ? reason.message : reason) + "\nSDKs that failed to load: " + failedSDKTypes;
        logger.captureError(error, {
            tags: {
                editorElements: true,
                method: 'loadComponentSdks',
            },
            extra: { compTypes: componentsTypes, error: error },
        });
        return Promise.reject(error);
    });
};


/***/ }),
/* 223 */
/*!*****************************************************************************!*\
  !*** ./components/ComboBoxInput/corvid/ComboBoxInput.corvid.ts + 2 modules ***!
  \*****************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/inputSanitization.ts because of ./components/CheckboxGroup/corvid/CheckboxGroup.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validateRequired.ts because of ./components/TimePicker/corvid/TimePicker.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules
var messages = __webpack_require__(12);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// CONCATENATED MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/src/assert/assert.ts
var emailRegExp = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
var urlRegExp = /^(?:(?:https?:)\/\/)(?:(?:[\u0400-\uA69F\w][\u0400-\uA69F\w-]*)?[\u0400-\uA69F\w]\.)+(?:[\u0400-\uA69Fa-z]+|\d{1,3})(?::[\d]{1,5})?(?:[/?#].*)?$/i;
var wixSVGShapeRegExp = /^wix:vector:\/\/v1\/svgshape\.v[12]/;
var wixMediaRegExp = /^wix:vector:\/\/v1\/[0-9|a-z|_]+.svg/;
function isNumber(value) {
    return typeof value === 'number' && !Number.isNaN(value);
}
function isString(value) {
    return typeof value === 'string';
}
function isBoolean(value) {
    return value === true || value === false;
}
function isDate(value) {
    return value instanceof Date && !Number.isNaN(value.getTime());
}
function isFunction(value) {
    return typeof value === 'function';
}
function isArray(value) {
    return Array.isArray(value);
}
function isObject(value) {
    return typeof value === 'object' && value !== null && !isArray(value);
}
function isInteger(value) {
    return Number.isInteger(value);
}
function isNil(value) {
    return value === null || value === undefined;
}
function isIn(value, arr) {
    return arr.includes(value);
}
function isAbove(value, limit) {
    return value > limit;
}
function isBelow(value, limit) {
    return value < limit;
}
function isEmail(value) {
    return emailRegExp.test(value);
}
function isUrl(value) {
    return urlRegExp.test(value);
}
function isInlineSvg(maybeSvg) {
    return maybeSvg.startsWith('<svg');
}
function isWixSVGShape(maybeShape) {
    return wixSVGShapeRegExp.test(maybeShape);
}
function isWixMediaUrl(maybeSvg) {
    return wixMediaRegExp.test(maybeSvg);
}
function isSVG(value) {
    return Boolean(value &&
        (isWixMediaUrl(value) ||
            isUrl(value) ||
            isInlineSvg(value) ||
            isWixSVGShape(value)));
}
function is(value, predicates) {
    return predicates.every(function (p) { return p(value); });
}

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validateRequired.ts
var validateRequired = __webpack_require__(48);

// EXTERNAL MODULE: ./core/corvid/inputUtils/inputSanitization.ts
var inputSanitization = __webpack_require__(19);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// CONCATENATED MODULE: ./components/ComboBoxInput/utils.ts
var isOptionWithSelectedText = function (options, optionValue) {
    var _a;
    var selectedText = (_a = options.find(function (option) { return option.value === optionValue; })) === null || _a === void 0 ? void 0 : _a.selectedText;
    return selectedText !== null && selectedText !== undefined;
};

// CONCATENATED MODULE: ./components/ComboBoxInput/corvid/ComboBoxInput.corvid.ts







var comboBoxInputValidator = Object(createInputValidator["b" /* createInputValidator */])(Object(validityUtils["f" /* composeValidators */])([validateRequired["a" /* validateRequired */]]));
var ComboBoxInput_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(comboBoxInputValidator);
var ComboBoxInput_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(comboBoxInputValidator);
var valueSanitizer = Object(inputSanitization["a" /* composeSanitizers */])([
    inputSanitization["e" /* numberToString */],
    inputSanitization["b" /* emptyStringIfNotString */],
]);
var sdkOptionPropertyName = 'selectOption';
var isValidOption = function (option) {
    var hasSomeValue = !!option.value || !!option.label;
    var isValidEmptyOption = option.value === '' && option.label === '';
    return hasSomeValue || isValidEmptyOption;
};
var throwInvalidOptionsWarnings = function (options) {
    return options.forEach(function (option, index) {
        if (!isValidOption(option)) {
            Object(reporters["b" /* reportWarning */])(messages["a" /* messages */].invalidOption({
                propertyName: sdkOptionPropertyName,
                wrongValue: option,
                index: index,
            }));
        }
    });
};
var isValueInOptions = function (options, value) { return options.some(function (option) { return option.value === value; }); };
var emptyStringIfNotAnOption = function (options, value) { return (isValueInOptions(options, value) ? value : ''); };
var comboBoxInputCorvidType = 'Dropdown';
var moveSelectedOptionToHeadOfList = function (options, value) {
    var selectedOptionOriginalIndex = options.findIndex(function (option) { return option.value === value; });
    var optionsClone = Object(tslib_es6["__spreadArrays"])(options);
    var deletedOption = optionsClone.splice(selectedOptionOriginalIndex, 1)[0];
    optionsClone.unshift(deletedOption);
    return { options: optionsClone };
};
var _ownSDKFactory = function (api) {
    var props = api.props, setProps = api.setProps, metaData = api.metaData, createSdkState = api.createSdkState;
    var schemaValidator = Object(withValidation["a" /* createCompSchemaValidator */])(metaData.role);
    var _a = createSdkState({}), state = _a[0], setState = _a[1];
    var sdkProps = {
        get options() {
            var options = props.options;
            return options
                ? options.map(function (option) { return ({
                    label: option.text,
                    value: option.value,
                }); })
                : [];
        },
        set options(_options) {
            var options = _options || [];
            throwInvalidOptionsWarnings(options);
            var newOptions = options
                .filter(function (option) { return isValidOption(option); })
                .map(function (option, index) { return ({
                key: "" + index,
                value: option.value || '',
                text: option.label || '',
            }); });
            var commonProps = { options: newOptions };
            var intermediateValue = state.value;
            var supportSettingValueBeforeOptionsFlow = intermediateValue && isValueInOptions(newOptions, intermediateValue);
            if (supportSettingValueBeforeOptionsFlow) {
                setProps(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, commonProps), { value: intermediateValue }));
                setState({ value: null });
            }
            else {
                setProps(commonProps);
            }
            comboBoxInputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: false,
            });
        },
        get placeholder() {
            return props.placeholder.value || '';
        },
        set placeholder(_placeholder) {
            var placeholder = _placeholder || '';
            setProps({
                placeholder: {
                    value: placeholder,
                    text: placeholder,
                },
            });
        },
        get selectedIndex() {
            var selectedIndex = props.options.findIndex(function (option) { return option.value === props.value; });
            return selectedIndex !== -1 ? selectedIndex : undefined;
        },
        set selectedIndex(index) {
            var isValid = schemaValidator(index, {
                type: ['integer', 'nil'],
                minimum: 0,
                maximum: props.options.length - 1,
            }, 'selectedIndex');
            if (!isValid) {
                return;
            }
            var newSelectedValue = isNil(index) ? '' : props.options[index].value;
            var additionalProps = isOptionWithSelectedText(props.options, newSelectedValue)
                ? moveSelectedOptionToHeadOfList(props.options, newSelectedValue)
                : {};
            setProps(Object(tslib_es6["__assign"])({ value: newSelectedValue }, additionalProps));
            comboBoxInputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get value() {
            var isCurrentValueInOptions = isValueInOptions(props.options, props.value);
            return isCurrentValueInOptions ? props.value : '';
        },
        set value(value) {
            var sanitizedValue = valueSanitizer(value);
            var isValid = schemaValidator(sanitizedValue, { type: ['string'] }, 'value');
            if (!isValid) {
                return;
            }
            setState({ value: sanitizedValue });
            var newValue = emptyStringIfNotAnOption(props.options, sanitizedValue);
            var additionalProps = isOptionWithSelectedText(props.options, newValue)
                ? moveSelectedOptionToHeadOfList(props.options, value)
                : {};
            setProps(Object(tslib_es6["__assign"])({ value: newValue }, additionalProps));
            comboBoxInputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get type() {
            return "$w." + comboBoxInputCorvidType;
        },
        toJSON: function () {
            var required = props.required;
            var value = sdkProps.value, options = sdkProps.options, placeholder = sdkProps.placeholder, selectedIndex = sdkProps.selectedIndex;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: "$w." + comboBoxInputCorvidType, required: required,
                value: value,
                options: options,
                placeholder: placeholder,
                selectedIndex: selectedIndex });
        },
    };
    return sdkProps;
};
var ownSDKFactory = Object(withValidation["b" /* withValidation */])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        options: {
            type: ['array', 'nil'],
            warnIfNil: true,
            items: {
                type: ['object'],
                properties: {
                    value: {
                        type: ['string', 'nil'],
                        minLength: 0,
                        maxLength: 400,
                    },
                    label: {
                        type: ['string', 'nil'],
                        minLength: 0,
                        maxLength: 400,
                    },
                },
            },
        },
        placeholder: {
            type: ['string', 'nil'],
            warnIfNil: true,
        },
        selectedIndex: {
            type: ['integer', 'nil'],
        },
    },
});
var ComboBoxInput_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var ComboBoxInput_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(ComboBoxInput_corvid_elementPropsSDKFactory, ComboBoxInput_corvid_requiredPropsSDKFactory, ComboBoxInput_corvid_validationPropsSDKFactory, focusPropsSDKFactory["a" /* focusPropsSDKFactory */], changePropsSDKFactory["a" /* changePropsSDKFactory */], disablePropsSDKFactory["a" /* disablePropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], ComboBoxInput_corvid_stylePropsSDKFactory, ownSDKFactory);
/* harmony default export */ var ComboBoxInput_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 224 */
/*!*********************************************************************!*\
  !*** ./components/GoogleMap/corvid/GoogleMap.corvid.ts + 2 modules ***!
  \*********************************************************************/
/*! exports provided: _googleMapSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/corvidEvents/corvidEvents.js because of ./components/Captcha/corvid/Captcha.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "_googleMapSDKFactory", function() { return /* binding */ _googleMapSDKFactory; });
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/corvidEvents/corvidEvents.js
var corvidEvents = __webpack_require__(13);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/messageTemplates.js
var messageTemplates = __webpack_require__(8);

// CONCATENATED MODULE: ./components/GoogleMap/corvid/validation.ts

var isExternalUrl = function (url) {
    return /^(?:(?:https?:)\/\/)(?:(?:[\u0400-\uA69F\w][\u0400-\uA69F\w-]*)?[\u0400-\uA69F\w]\.)+(?:[\u0400-\uA69Fa-z]+|\d{1,3})(?::[\d]{1,5})?(?:[/?#].*)?$/i.test(url);
};
var validateMarkerSchema = function (value, api) {
    if (value.link && !isExternalUrl(value.link)) {
        Object(reporters["a" /* reportError */])(messageTemplates["a" /* templates */].error_type({
            propertyName: 'link',
            functionName: 'marker',
            value: value.link,
            expectedType: 'url',
        }));
        return false;
    }
    return Object(withValidation["a" /* createCompSchemaValidator */])(api.metaData.role)(value, {
        type: ['object'],
        properties: {
            address: {
                type: ['string'],
            },
            location: {
                type: ['object'],
            },
            icon: {
                type: ['string'],
            },
            title: {
                type: ['string'],
            },
            linkTitle: {
                type: ['string'],
            },
            description: {
                type: ['string'],
            },
        },
    }, 'marker');
};
var validateLocationSchema = function (value, api) {
    return Object(withValidation["a" /* createCompSchemaValidator */])(api.metaData.compId)(value, {
        type: ['object'],
        properties: {
            latitude: {
                type: ['number'],
                minimum: -90,
                maximum: 90,
            },
            longitude: {
                type: ['number'],
                minimum: -180,
                maximum: 180,
            },
        },
    }, 'location');
};
var isLocationObject = function (location) {
    return (assert["a" /* assert */].isObject(location) &&
        assert["a" /* assert */].isNumber(location.latitude) &&
        assert["a" /* assert */].isNumber(location.longitude));
};
var validateMarkerLocation = function (marker, index, api) {
    if (index === void 0) { index = 0; }
    var location = marker.location, address = marker.address;
    var validAddress = assert["a" /* assert */].isString(address) && address.length > 0;
    var validLocation = isLocationObject(location) && validateLocationSchema(location, api);
    if (!validAddress && !validLocation) {
        Object(reporters["a" /* reportError */])(messageTemplates["a" /* templates */].error_invalid_location({
            propertyName: 'location',
            index: index.toString(),
            wrongValue: JSON.stringify(location),
        }));
        return false;
    }
    return true;
};
var isMarkersNonEmptyArray = function (markers) {
    if (assert["a" /* assert */].isArray(markers) && markers.length !== 0) {
        return true;
    }
    else {
        Object(reporters["a" /* reportError */])(messageTemplates["a" /* templates */].error_invalid_markers({
            wrongValue: JSON.stringify(markers),
        }));
        return false;
    }
};
var areMarkersValid = function (markers, api) {
    return (isMarkersNonEmptyArray(markers) &&
        markers.every(function (marker, index) {
            return validateMarkerLocation(marker, index, api) &&
                validateMarkerSchema(marker, api);
        }));
};

// CONCATENATED MODULE: ./components/GoogleMap/corvid/utils.ts
var getLinkObject = function (url) {
    return {
        url: url,
        type: 'ExternalLink',
        target: '_blank',
    };
};

// CONCATENATED MODULE: ./components/GoogleMap/corvid/GoogleMap.corvid.ts






var _googleMapSDKFactory = function (api) {
    var setProps = api.setProps, props = api.props, linkUtils = api.linkUtils, compRef = api.compRef, registerEvent = api.registerEvent, metaData = api.metaData, createSdkState = api.createSdkState;
    var _a = createSdkState({
        center: {
            latitude: props.mapData.locations[props.mapData.defaultLocation].latitude,
            longitude: props.mapData.locations[props.mapData.defaultLocation].longitude,
        },
        zoom: props.mapData.zoom,
    }), state = _a[0], setState = _a[1];
    registerEvent('onUpdateCenter', function (value) {
        return setState({
            center: {
                latitude: value.latitude,
                longitude: value.longitude,
            },
        });
    });
    registerEvent('onUpdateZoom', function (value) {
        return setState({ zoom: value.zoom });
    });
    return {
        get location() {
            var mapData = props.mapData;
            return {
                latitude: mapData.locations[0].latitude,
                longitude: mapData.locations[0].longitude,
                description: mapData.locations[0].title,
            };
        },
        set location(location) {
            var mapData = props.mapData;
            var newMapData = Object(tslib_es6["__assign"])({}, mapData);
            newMapData.locations[0] = Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, mapData.locations[0]), { title: assert["a" /* assert */].isNil(location.description) ? '' : location.description, latitude: location.latitude || mapData.locations[0].latitude, longitude: location.longitude || mapData.locations[0].longitude });
            setProps({ mapData: newMapData });
        },
        get markers() {
            var mapData = props.mapData;
            return mapData.locations.map(function (location) { return ({
                address: location.address,
                location: {
                    longitude: location.longitude,
                    latitude: location.latitude,
                },
                icon: location.pinIcon,
                link: assert["a" /* assert */].isObject(location.locationLinkAttributes)
                    ? location.locationLinkAttributes.href
                    : null,
                title: location.title,
                linkTitle: location.linkTitle,
                description: location.description,
            }); });
        },
        set markers(markers) {
            var mapData = props.mapData;
            var newMapData = Object(tslib_es6["__assign"])({}, mapData);
            newMapData.locations = markers.map(function (marker) {
                var _a, _b;
                var resolvedLink = assert["a" /* assert */].isString(marker.link)
                    ? getLinkObject(marker.link)
                    : null;
                return {
                    address: marker.address || '',
                    latitude: ((_a = marker.location) === null || _a === void 0 ? void 0 : _a.latitude) || NaN,
                    longitude: ((_b = marker.location) === null || _b === void 0 ? void 0 : _b.longitude) || NaN,
                    title: marker.title || '',
                    description: marker.description || '',
                    link: resolvedLink,
                    linkTitle: marker.linkTitle || '',
                    pinIcon: marker.icon || '',
                    pinColor: '',
                    locationLinkAttributes: resolvedLink
                        ? linkUtils.getLinkProps(resolvedLink.url, resolvedLink.target)
                        : {},
                };
            });
            setProps({ mapData: newMapData });
        },
        setCenter: function (_a) {
            var longitude = _a.longitude, latitude = _a.latitude;
            if (!isLocationObject({ longitude: longitude, latitude: latitude })) {
                return;
            }
            return compRef.setMapCenter(longitude, latitude);
        },
        get center() {
            return state.center;
        },
        setZoom: function (zoom) {
            return compRef.setMapZoom(zoom);
        },
        get zoom() {
            return state.zoom;
        },
        onMarkerClicked: function (cb) {
            return Object(corvidEvents["a" /* registerCorvidEvent */])('onMarkerClicked', api, cb, function (_a) {
                var componentEvent = _a.componentEvent;
                return componentEvent;
            });
        },
        onMapClicked: function (cb) {
            return Object(corvidEvents["a" /* registerCorvidEvent */])('onMapClicked', api, cb, function (_a) {
                var componentEvent = _a.componentEvent;
                return componentEvent;
            });
        },
        getVisibleMarkers: function () {
            return compRef.getVisibleMarkers();
        },
        toJSON: function () {
            var mapData = props.mapData;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { location: {
                    latitude: mapData.locations[0].latitude,
                    longitude: mapData.locations[0].longitude,
                    description: mapData.locations[0].title,
                } });
        },
    };
};
var latitudeSchema = {
    type: ['number'],
    maximum: 90,
    minimum: -90,
    warnIfNil: true,
};
var longitudeSchema = {
    type: ['number'],
    maximum: 180,
    minimum: -180,
    warnIfNil: true,
};
var googleMapSDKFactory = Object(withValidation["b" /* withValidation */])(_googleMapSDKFactory, {
    type: ['object'],
    properties: {
        location: {
            type: ['object'],
            properties: {
                latitude: latitudeSchema,
                longitude: longitudeSchema,
                description: {
                    type: ['string', 'nil'],
                    warnIfNil: true,
                },
            },
        },
        setCenter: {
            type: ['function'],
            args: [
                {
                    type: ['object'],
                    properties: {
                        latitude: latitudeSchema,
                        longitude: longitudeSchema,
                    },
                },
            ],
        },
        setZoom: {
            type: ['function'],
            args: [{ type: ['number'] }],
        },
    },
}, {
    location: [isLocationObject],
    markers: [areMarkersValid],
});
var GoogleMap_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(GoogleMap_corvid_elementPropsSDKFactory, googleMapSDKFactory);
/* harmony default export */ var GoogleMap_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 225 */
/*!***********************************************************************!*\
  !*** ./components/TimePicker/corvid/TimePicker.corvid.ts + 2 modules ***!
  \***********************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validateRequired.ts because of ./components/TextAreaInput/corvid/TextAreaInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules
var messages = __webpack_require__(12);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js
var readOnlyPropsSDKFactory = __webpack_require__(69);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validateRequired.ts
var validateRequired = __webpack_require__(48);

// CONCATENATED MODULE: ./components/TimePicker/constants.ts
var FIELD_BY_ORDER;
(function (FIELD_BY_ORDER) {
    FIELD_BY_ORDER[FIELD_BY_ORDER["BEFORE"] = 0] = "BEFORE";
    FIELD_BY_ORDER[FIELD_BY_ORDER["HOUR"] = 1] = "HOUR";
    FIELD_BY_ORDER[FIELD_BY_ORDER["MINUTE"] = 2] = "MINUTE";
    FIELD_BY_ORDER[FIELD_BY_ORDER["AMPM"] = 3] = "AMPM";
    FIELD_BY_ORDER[FIELD_BY_ORDER["AFTER"] = 4] = "AFTER";
})(FIELD_BY_ORDER || (FIELD_BY_ORDER = {}));
var TIME_SUFFIX = ':00.000';
var BLANK = '--';
var NULL_TIME = BLANK + ":" + BLANK;
var TEST_IDS = {
    label: 'label',
    dropdown: 'timepicker-dropdown',
    stepper: 'timepicker-stepper',
    tickerButtonUp: 'ticker-button-up',
    tickerButtonDown: 'ticker-button-down',
};

// CONCATENATED MODULE: ./components/TimePicker/utils.ts

/**
 * @example
 * Output: 15:26:00.000
 */
var getLongTimeFromDate = function (date) {
    return "" + date.toTimeString().substr(0, 5) + TIME_SUFFIX;
};
/**
 * @example
 * Input: 15:26:13:123
 * Output: 15:26
 */
var getShortTime = function (longTime) {
    return !longTime ? longTime : longTime.substr(0, 5);
};
/**
 * @example
 * Input: 15:26
 * Output: 15:26:00.000
 */
var getLongTime = function (shortTime) {
    return !shortTime ? shortTime : "" + shortTime + TIME_SUFFIX;
};
var formatTimePart = function (part) { return part.toString().padStart(2, '0'); };
/**
 * @example
 * Input: 15:26
 * Output: 03:26 PM
 * Input: 03:26
 * Output: 03:26 AM
 */
var getAmpmTime = function (shortTime) {
    if (!shortTime) {
        return shortTime;
    }
    return shortTime.replace(/(\d\d):(\d\d)/, function (_m, hoursGroup, minutesGroup) {
        var hours = parseInt(hoursGroup, 10);
        if (hours < 12) {
            var fixedHours = hours === 0 ? 12 : hours;
            var hoursStr = formatTimePart(fixedHours);
            return hoursStr + ":" + minutesGroup + " AM";
        }
        else {
            var subtractedHours = hours - 12;
            var fixedHours = subtractedHours === 0 ? 12 : subtractedHours;
            var hoursStr = formatTimePart(fixedHours);
            return hoursStr + ":" + minutesGroup + " PM";
        }
    });
};
var getAvailableTimesPerDay = function (step) {
    var length = Math.floor(1440 / step) + (1440 % step ? 1 : 0);
    return Array(length)
        .fill(0)
        .map(function (_, index) {
        var totalMinutes = index * step;
        var hours = Math.floor(totalMinutes / 60);
        var minutes = totalMinutes - hours * 60;
        var hoursStr = formatTimePart(hours);
        var minutesStr = formatTimePart(minutes);
        var isAm = hours < 12;
        var subtractedHours = isAm ? hours : hours - 12;
        var fixedHours = subtractedHours === 0 ? 12 : subtractedHours;
        var ampmHoursStr = formatTimePart(fixedHours);
        var ampm = isAm ? 'AM' : 'PM';
        return {
            time: hoursStr + ":" + minutesStr,
            ampmTime: ampmHoursStr + ":" + minutesStr + " " + ampm,
        };
    });
};
var timeRegex = /^([0-1][0-9]|2[0-3]):([0-5][0-9])(:([0-5][0-9])(\.[0-9]{3})?)?$/;
var isValidTimeFormat = function (time) {
    return !time ? false : timeRegex.test(time);
};
/**
 * @example
 * Input: 15:26
 * Output: 15:26:00.000
 * Input: 15:26:33
 * Output: 15:26:33.000
 * Input: 15:26:33.111
 * Output: 15:26:33.111
 */
var completeToLongTime = function (time) {
    return !time ? time : "" + time + TIME_SUFFIX.substr(time.length - 5);
};
var getCurrentTimeValue = function () {
    return new Date(Date.now()).toTimeString().slice(0, 5) + ":00.000";
};

// CONCATENATED MODULE: ./components/TimePicker/corvid/TimePicker.corvid.ts






var timePickerValidator = Object(createInputValidator["b" /* createInputValidator */])(Object(validityUtils["f" /* composeValidators */])([validateRequired["a" /* validateRequired */]]));
var TimePicker_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(timePickerValidator);
var TimePicker_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(timePickerValidator);
var _ownSDKFactory = function (api) {
    var props = api.props, setProps = api.setProps, metaData = api.metaData;
    var sdkProps = {
        get value() {
            // TODO: remove after TB-939 is fixed
            if (props.initialTime === 'current' && !props.value) {
                var currentTime = getLongTimeFromDate(new Date(Date.now()));
                return currentTime;
            }
            return props.value;
        },
        set value(value) {
            var fullTime = completeToLongTime(value);
            setProps({ value: fullTime });
            timePickerValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get step() {
            return props.step;
        },
        set step(step) {
            setProps({ step: step });
        },
        get useAmPmFormat() {
            return props.useAmPmFormat;
        },
        set useAmPmFormat(useAmPmFormat) {
            setProps({ useAmPmFormat: useAmPmFormat });
        },
        toJSON: function () {
            var value = sdkProps.value;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { value: value });
        },
    };
    return sdkProps;
};
var ownSDKFactory = Object(withValidation["b" /* withValidation */])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        value: {
            type: ['string', 'nil'],
        },
        step: {
            type: ['integer'],
            minimum: 1,
            maximum: 60,
        },
        useAmPmFormat: {
            type: ['boolean'],
        },
    },
}, {
    value: [
        function (_value) {
            if (!_value) {
                return true;
            }
            var isValid = isValidTimeFormat(_value);
            if (!isValid) {
                Object(reporters["a" /* reportError */])(messages["a" /* messages */].invalidFormatMessageWithHint({
                    propertyName: 'value',
                    functionName: 'value',
                    wrongValue: _value,
                    hint: 'HH:MM, HH:MM:SS, or HH:MM:SS.mmm',
                }));
            }
            return isValid;
        },
    ],
});
var TimePicker_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(TimePicker_corvid_elementPropsSDKFactory, disablePropsSDKFactory["a" /* disablePropsSDKFactory */], focusPropsSDKFactory["a" /* focusPropsSDKFactory */], readOnlyPropsSDKFactory["a" /* readOnlyPropsSDKFactory */], TimePicker_corvid_requiredPropsSDKFactory, TimePicker_corvid_validationPropsSDKFactory, changePropsSDKFactory["a" /* changePropsSDKFactory */], ownSDKFactory);
/* harmony default export */ var TimePicker_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 226 */
/*!**************************************************************!*\
  !*** ./components/Column/corvid/entry.corvid.ts + 1 modules ***!
  \**************************************************************/
/*! exports provided: default */
/*! all exports used */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./components/Column/constants.ts
var componentType = 'Column';

// CONCATENATED MODULE: ./components/Column/corvid/entry.corvid.ts

var entry = {
    componentType: componentType,
    sdkType: 'Column',
    loadSDK: function () {
        return Promise.resolve(/*! import() | Column.corvid */).then(__webpack_require__.bind(null, /*! ./Column.corvid */ 250));
    },
};
/* harmony default export */ var entry_corvid = __webpack_exports__["default"] = (entry);


/***/ }),
/* 227 */
/*!***************************************************************************!*\
  !*** ./components/AddressInput/corvid/AddressInput.corvid.ts + 1 modules ***!
  \***************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/ToggleSwitch/corvid/ToggleSwitch.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/TimePicker/corvid/TimePicker.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/TimePicker/corvid/TimePicker.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/ToggleSwitch/corvid/ToggleSwitch.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js because of ./components/TimePicker/corvid/TimePicker.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/VideoBoxContainer/VideoBox/corvid/VideoBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/Captcha/corvid/Captcha.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js
var readOnlyPropsSDKFactory = __webpack_require__(69);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateRequiredAddress.ts

var validateRequiredAddress = function (props, validationData) {
    var isRequired = props.required || false;
    if (!isRequired || (props.value && props.value.formatted)) {
        return validationData;
    }
    return Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'valueMissing');
};

// CONCATENATED MODULE: ./components/AddressInput/corvid/AddressInput.corvid.ts





var addressInputValidator = Object(createInputValidator["b" /* createInputValidator */])(Object(validityUtils["f" /* composeValidators */])([validateRequiredAddress]));
var AddressInput_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(addressInputValidator);
var AddressInput_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(addressInputValidator);
var isCountry = function (value) { return Boolean(/^[a-zA-Z]{3}$/.exec(value)); };
var _ownSDKFactory = function (api) {
    var props = api.props, setProps = api.setProps, metaData = api.metaData;
    return {
        get type() {
            return '$w.AddressInput';
        },
        get value() {
            var value = props.value;
            if (value) {
                return {
                    formatted: value.formatted,
                    country: value.country,
                    location: value.location,
                    streetAddress: value.streetAddress,
                    postalCode: value.postalCode,
                    subdivision: value.subdivision,
                    city: value.city,
                };
            }
            return value;
        },
        set value(value) {
            if (assert["a" /* assert */].isNil(value) || assert["a" /* assert */].isString(value.formatted)) {
                setProps({ value: value });
            }
            addressInputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get filter() {
            return {
                country: props.country,
            };
        },
        set filter(filter) {
            if (assert["a" /* assert */].isNil(filter)) {
                // null and undefined will be handled gracefully, as an empty object.
                setProps({ country: undefined });
            }
            else if (filter.country && isCountry(filter.country)) {
                setProps({ country: filter.country });
            }
        },
        get placeholder() {
            return props.placeholder;
        },
        set placeholder(placeholder) {
            if (assert["a" /* assert */].isNil(placeholder)) {
                setProps({ placeholder: '' });
            }
            else if (assert["a" /* assert */].isNumber(placeholder)) {
                setProps({ placeholder: placeholder.toString() });
            }
            else {
                setProps({ placeholder: placeholder });
            }
        },
        toJSON: function () {
            var value = props.value, required = props.required;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { required: required,
                value: value });
        },
    };
};
var ownSDKFactory = Object(withValidation["b" /* withValidation */])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        value: {
            type: ['object', 'nil'],
            properties: {
                formatted: {
                    type: ['string'],
                },
            },
        },
        filter: {
            type: ['object', 'nil'],
            properties: {
                country: {
                    type: ['string', 'nil'],
                },
            },
        },
        placeholder: {
            type: ['string', 'number', 'nil'],
        },
    },
}, {
    filter: [
        function (value, _a) {
            var metaData = _a.metaData;
            var isValid = true;
            // null and undefined will be handled gracefully, as an empty object.
            if (!assert["a" /* assert */].isNil(value)) {
                if (value.country) {
                    if (!isCountry(value.country)) {
                        Object(reporters["a" /* reportError */])("The \"filter\" property of \"" + metaData.role + "\" was set to the following invalid value: \"" + value + "\". The country code is not a valid ISO 3166-1 Alpha-2. For more information, please visit https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.");
                        isValid = false;
                    }
                }
                else if (assert["a" /* assert */].isObject(value)) {
                    Object(reporters["a" /* reportError */])("The \"filter\" property of \"" + metaData.role + "\" was set to the following invalid value: \"" + value + "\". The only filter supported at the moment is country code, for example: {country: \u2018US\u2019}.");
                    isValid = false;
                }
                else {
                    Object(reporters["a" /* reportError */])("The \"filter\" property of \"" + metaData.role + "\" was set to the following invalid value: \"" + value + "\". The value must be a valid filter object, for example: {country: \u2018US\u2019}.");
                    isValid = false;
                }
            }
            return isValid;
        },
    ],
    value: [
        function (value, _a) {
            var metaData = _a.metaData;
            var isValid = true;
            if (!assert["a" /* assert */].isNil(value)) {
                if (!assert["a" /* assert */].isString(value.formatted)) {
                    Object(reporters["a" /* reportError */])("The \"value.formatted\" property of \"" + metaData.role + "\" was set to the following invalid value: " + value.formatted + ". The value must be a valid Address object.");
                    isValid = false;
                }
            }
            return isValid;
        },
    ],
});
var AddressInput_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(AddressInput_corvid_elementPropsSDKFactory, AddressInput_corvid_requiredPropsSDKFactory, readOnlyPropsSDKFactory["a" /* readOnlyPropsSDKFactory */], disablePropsSDKFactory["a" /* disablePropsSDKFactory */], focusPropsSDKFactory["a" /* focusPropsSDKFactory */], changePropsSDKFactory["a" /* changePropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], AddressInput_corvid_validationPropsSDKFactory, ownSDKFactory);
/* harmony default export */ var AddressInput_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 228 */
/*!*******************************************************************!*\
  !*** ./components/Checkbox/corvid/Checkbox.corvid.ts + 1 modules ***!
  \*******************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/inputSanitization.ts because of ./components/CheckboxGroup/corvid/CheckboxGroup.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/checkedPropsSDKFactory.ts because of ./components/ToggleSwitch/corvid/ToggleSwitch.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/valuePropsSDKFactory.ts because of ./components/ToggleSwitch/corvid/ToggleSwitch.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: ./core/corvid/props-factories/valuePropsSDKFactory.ts
var valuePropsSDKFactory = __webpack_require__(53);

// EXTERNAL MODULE: ./core/corvid/props-factories/checkedPropsSDKFactory.ts
var checkedPropsSDKFactory = __webpack_require__(240);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: ./core/corvid/inputUtils/inputSanitization.ts
var inputSanitization = __webpack_require__(19);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateRequiredChecked.ts

var validateRequiredChecked = function (props, validationData) {
    var isRequired = props.required || false;
    if (!isRequired || props.checked) {
        return validationData;
    }
    return Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'valueMissing');
};

// CONCATENATED MODULE: ./components/Checkbox/corvid/Checkbox.corvid.ts






var checkboxValueGetter = function (props) { return props.checked; };
var checkboxInputValidator = Object(createInputValidator["b" /* createInputValidator */])(Object(validityUtils["f" /* composeValidators */])([validateRequiredChecked]), checkboxValueGetter);
var valueSanitizer = Object(inputSanitization["a" /* composeSanitizers */])([
    inputSanitization["e" /* numberToString */],
    inputSanitization["b" /* emptyStringIfNotString */],
]);
var Checkbox_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(checkboxInputValidator);
var Checkbox_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(checkboxInputValidator);
var Checkbox_corvid_valuePropsSDKFactory = Object(valuePropsSDKFactory["a" /* createValuePropsSdkFactory */])(function (value) { return valueSanitizer(value); }, { type: ['string'] }, Object(createInputValidator["a" /* createEmptyInputValidator */])());
var Checkbox_corvid_checkedPropsSDKFactory = Object(checkedPropsSDKFactory["a" /* createCheckedPropsSDKFactory */])(checkboxInputValidator);
var ownSDKFactory = function (_a) {
    var props = _a.props, metaData = _a.metaData;
    return {
        toJSON: function () {
            var checked = props.checked, required = props.required, value = props.value;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { checked: checked,
                required: required,
                value: value });
        },
    };
};
var Checkbox_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(Checkbox_corvid_elementPropsSDKFactory, disablePropsSDKFactory["a" /* disablePropsSDKFactory */], focusPropsSDKFactory["a" /* focusPropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], Checkbox_corvid_requiredPropsSDKFactory, Checkbox_corvid_checkedPropsSDKFactory, Checkbox_corvid_validationPropsSDKFactory, Checkbox_corvid_valuePropsSDKFactory, Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
}), ownSDKFactory);
/* harmony default export */ var Checkbox_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 229 */
/*!*****************************************************************************!*\
  !*** ./components/CheckboxGroup/corvid/CheckboxGroup.corvid.ts + 1 modules ***!
  \*****************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/inputSanitization.ts because of ./components/Checkbox/corvid/Checkbox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules
var messages = __webpack_require__(12);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: ./core/corvid/inputUtils/inputSanitization.ts
var inputSanitization = __webpack_require__(19);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// CONCATENATED MODULE: ./core/corvid/inputUtils/validateRequiredOptions.ts

var validateRequiredOptions = function (props, validationData) {
    var isRequired = props.required || false;
    if (!isRequired ||
        (props.options &&
            (!props.options.length || props.options.find(function (option) { return option.checked; })))) {
        return validationData;
    }
    return Object(validityUtils["d" /* addErrorToValidationDataAndKeepMessage */])(validationData, 'valueMissing');
};

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// CONCATENATED MODULE: ./components/CheckboxGroup/corvid/CheckboxGroup.corvid.ts







var checkboxGroupValueGetter = function (props) {
    return (props.options || [])
        .filter(function (option) { return option.checked; })
        .map(function (option) { return option.value; });
};
var checkboxGroupValidator = Object(createInputValidator["b" /* createInputValidator */])(Object(validityUtils["f" /* composeValidators */])([validateRequiredOptions]), checkboxGroupValueGetter);
var _ownSDKFactory = function (api) {
    var setProps = api.setProps, props = api.props, metaData = api.metaData, createSdkState = api.createSdkState;
    var _a = createSdkState({
        value: [],
    }), state = _a[0], setState = _a[1];
    var sdkProps = {
        get options() {
            return (props.options &&
                props.options.map(function (_a) {
                    var label = _a.label, value = _a.value;
                    return ({
                        label: label,
                        value: value,
                    });
                }));
        },
        set options(_options) {
            var options = (_options || [])
                .filter(function (option, index) {
                var value = option.value, label = option.label;
                var omitOption = assert["a" /* assert */].isNil(label) || (label === '' && value !== '');
                if (omitOption) {
                    Object(reporters["b" /* reportWarning */])(messages["a" /* messages */].invalidOption({
                        propertyName: 'CheckboxButton',
                        index: index,
                        wrongValue: option,
                    }));
                }
                return !omitOption;
            })
                .map(function (_a) {
                var label = _a.label, value = _a.value;
                var existingOption = props.options.find(function (option) { return option.value === value; });
                var existingValue = state.value.findIndex(function (val) { return val === value; });
                return {
                    label: label,
                    value: value,
                    checked: existingOption
                        ? existingOption.checked
                        : existingValue >= 0,
                };
            });
            setProps({ options: options });
            checkboxGroupValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: false,
            });
        },
        get value() {
            return checkboxGroupValueGetter(props);
        },
        set value(_value) {
            var sanitizedValue = (_value || []).map(function (val) { return valueSanitizer(val); });
            setState({ value: sanitizedValue });
            var options = props.options.map(function (_a) {
                var label = _a.label, value = _a.value;
                return ({
                    label: label,
                    value: value,
                    checked: sanitizedValue.findIndex(function (val) { return val === value; }) >= 0,
                });
            });
            setProps({ options: options });
            checkboxGroupValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get selectedIndices() {
            return props.options.reduce(function (indices, option, index) {
                if (option.checked) {
                    indices.push(index);
                }
                return indices;
            }, []);
        },
        set selectedIndices(indices) {
            if (assert["a" /* assert */].isNil(indices)) {
                var options = props.options.map(function (_a) {
                    var label = _a.label, value = _a.value;
                    return ({
                        label: label,
                        value: value,
                        checked: false,
                    });
                });
                setState({ value: [] });
                setProps({ options: options });
            }
            else {
                var options = props.options.map(function (_a, index) {
                    var label = _a.label, value = _a.value;
                    return ({
                        label: label,
                        value: value,
                        checked: indices.findIndex(function (_index) { return _index === index; }) >= 0,
                    });
                });
                setState({
                    value: options
                        .filter(function (option) { return option.checked; })
                        .map(function (_a) {
                        var value = _a.value;
                        return value;
                    }),
                });
                setProps({ options: options });
            }
            checkboxGroupValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        toJSON: function () {
            var required = props.required;
            var value = sdkProps.value, options = sdkProps.options, selectedIndices = sdkProps.selectedIndices;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { required: required,
                value: value,
                options: options,
                selectedIndices: selectedIndices });
        },
    };
    return sdkProps;
};
var ownSDKFactory = Object(withValidation["b" /* withValidation */])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        options: {
            type: ['array', 'nil'],
            warnIfNil: true,
            name: 'CheckboxButton',
            items: {
                type: ['object'],
                properties: {
                    value: {
                        type: ['string', 'nil'],
                        maxLength: 400,
                        minLength: 0,
                    },
                    label: {
                        type: ['string', 'nil'],
                        maxLength: 400,
                        minLength: 0,
                    },
                },
            },
        },
        value: {
            type: ['array', 'nil'],
            warnIfNil: true,
        },
        selectedIndices: {
            type: ['array', 'nil'],
            items: {
                type: ['integer', 'nil'],
            },
        },
    },
}, {
    selectedIndices: [
        function (indices, _a) {
            var props = _a.props, metaData = _a.metaData;
            var schemaValidator = Object(withValidation["a" /* createCompSchemaValidator */])(metaData.role);
            if (assert["a" /* assert */].isNil(indices)) {
                return true;
            }
            var firstInvalidIndex = indices.findIndex(function (index) {
                return !assert["a" /* assert */].isNil(index) &&
                    !schemaValidator(index, {
                        type: ['integer'],
                        minimum: 0,
                        maximum: props.options.length - 1,
                    }, 'selectedIndices');
            });
            return firstInvalidIndex < 0;
        },
    ],
});
var CheckboxGroup_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(checkboxGroupValidator);
var CheckboxGroup_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(checkboxGroupValidator);
var valueSanitizer = Object(inputSanitization["a" /* composeSanitizers */])([
    inputSanitization["e" /* numberToString */],
    inputSanitization["b" /* emptyStringIfNotString */],
]);
var CheckboxGroup_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var CheckboxGroup_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(CheckboxGroup_corvid_elementPropsSDKFactory, disablePropsSDKFactory["a" /* disablePropsSDKFactory */], focusPropsSDKFactory["a" /* focusPropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], CheckboxGroup_corvid_requiredPropsSDKFactory, CheckboxGroup_corvid_validationPropsSDKFactory, changePropsSDKFactory["a" /* changePropsSDKFactory */], CheckboxGroup_corvid_stylePropsSDKFactory, ownSDKFactory);
/* harmony default export */ var CheckboxGroup_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 230 */
/*!***********************************************************************!*\
  !*** ./components/DatePicker/corvid/DatePicker.corvid.ts + 1 modules ***!
  \***********************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validateRequired.ts because of ./components/TimePicker/corvid/TimePicker.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/readOnlyPropsSDKFactory.js
var readOnlyPropsSDKFactory = __webpack_require__(69);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validateRequired.ts
var validateRequired = __webpack_require__(48);

// CONCATENATED MODULE: ./core/commons/dateUtils.ts

var cloneDate = function (date) { return new Date(date); };
var getStartOfDay = function (date) {
    var newDate = cloneDate(date);
    newDate.setHours(0, 0, 0, 0);
    return newDate;
};
var areDatesEqual = function (date1, date2) {
    return getStartOfDay(date1).getTime() === getStartOfDay(date2).getTime();
};
var getGridOfDaysInMonth = function (year, month, weekStartDay) {
    var firstDayInMonth = new Date(year, month);
    var lastDayInMonth = new Date(year, month + 1, 0).getDate();
    var firstDayInMonthWeekDay = firstDayInMonth.getDay();
    // We need to shift the days in the first week of the month relative to the starting day of the week. For example:
    // 1st of month is Tuesday and the week starts with Sunday (no shift):
    // [undefined, undefined, 1, 2, 3, 4, 5]
    // 1st of month is Tuesday and the week starts with Monday (shift by one):
    // [undefined, 1, 2, 3, 4, 5, 6]
    // 1st of month is Monday and the week starts with Tuesday (Monday is the last day of the week):
    // [undefined, undefined, undefined, undefined, undefined, undefined, 1]
    // 1st of month is Tuesday and the week starts with Tuesday (shift by two):
    // [1, 2, 3, 4, 5, 6, 7]
    var shiftedFirstDayInMonthWeekDay = firstDayInMonthWeekDay -
        weekStartDay +
        (firstDayInMonthWeekDay < weekStartDay ? 7 : 0);
    var daysInFirstWeek = 7 - shiftedFirstDayInMonthWeekDay;
    var firstWeek = Object(tslib_es6["__spreadArrays"])(Array(shiftedFirstDayInMonthWeekDay), Array(daysInFirstWeek)
        .fill(0)
        .map(function (_, index) { return index + 1; }));
    var weeks = [firstWeek];
    var addWeek = function (traversedDaysInMonth) {
        var remainingDaysInMonth = lastDayInMonth - traversedDaysInMonth;
        if (remainingDaysInMonth > 7) {
            var week = Array(7)
                .fill(0)
                .map(function (_, index) { return traversedDaysInMonth + index + 1; });
            weeks.push(week);
            addWeek(traversedDaysInMonth + 7);
        }
        else {
            var week = Object(tslib_es6["__spreadArrays"])(Array(remainingDaysInMonth)
                .fill(0)
                .map(function (_, index) { return traversedDaysInMonth + index + 1; }), Array(7 - remainingDaysInMonth));
            weeks.push(week);
        }
    };
    addWeek(daysInFirstWeek);
    return weeks;
};

// CONCATENATED MODULE: ./components/DatePicker/corvid/DatePicker.corvid.ts






var datePickerValidator = Object(createInputValidator["b" /* createInputValidator */])(Object(validityUtils["f" /* composeValidators */])([validateRequired["a" /* validateRequired */]]));
var DatePicker_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(datePickerValidator);
var DatePicker_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(datePickerValidator);
var _ownSDKFactory = function (api) {
    var props = api.props, setProps = api.setProps, metaData = api.metaData;
    var sdkProps = {
        get value() {
            // TODO: remove this if after TB-939 is fixed
            if (props.useTodayAsDefaultValue && !props.value) {
                return getStartOfDay(new Date(Date.now()));
            }
            return props.value || null;
        },
        set value(value) {
            setProps({
                value: value,
            });
            datePickerValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
        get maxDate() {
            return props.maxDate ? new Date(props.maxDate) : null;
        },
        set maxDate(maxDate) {
            setProps({
                maxDate: maxDate === null || maxDate === void 0 ? void 0 : maxDate.toISOString(),
            });
        },
        get minDate() {
            return props.minDate ? new Date(props.minDate) : null;
        },
        set minDate(minDate) {
            setProps({
                minDate: minDate === null || minDate === void 0 ? void 0 : minDate.toISOString(),
            });
        },
        get disabledDates() {
            return props.disabledDates.map(function (date) { return new Date(date); });
        },
        set disabledDates(disabledDates) {
            setProps({
                disabledDates: (disabledDates || []).map(function (date) { return date.toISOString(); }),
            });
        },
        get disabledDaysOfWeek() {
            return props.disabledDaysOfWeek;
        },
        set disabledDaysOfWeek(disabledDaysOfWeek) {
            setProps({
                disabledDaysOfWeek: disabledDaysOfWeek || [],
            });
        },
        toJSON: function () {
            var readOnly = props.readOnly, required = props.required;
            var value = sdkProps.value, maxDate = sdkProps.maxDate, minDate = sdkProps.minDate, disabledDates = sdkProps.disabledDates, disabledDaysOfWeek = sdkProps.disabledDaysOfWeek;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { readOnly: readOnly,
                required: required,
                value: value,
                maxDate: maxDate,
                minDate: minDate,
                disabledDates: disabledDates,
                disabledDaysOfWeek: disabledDaysOfWeek });
        },
    };
    return sdkProps;
};
var ownSDKFactory = Object(withValidation["b" /* withValidation */])(_ownSDKFactory, {
    type: ['object'],
    properties: {
        value: {
            type: ['date', 'nil'],
        },
        maxDate: {
            type: ['date', 'nil'],
        },
        minDate: {
            type: ['date', 'nil'],
        },
        disabledDates: {
            type: ['array', 'nil'],
            items: {
                type: ['date', 'nil'],
                warnIfNil: true,
            },
        },
        disabledDaysOfWeek: {
            type: ['array', 'nil'],
            items: {
                type: ['number', 'nil'],
                enum: [0, 1, 2, 3, 4, 5, 6],
                warnIfNil: true,
            },
        },
    },
});
var DatePicker_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(DatePicker_corvid_elementPropsSDKFactory, disablePropsSDKFactory["a" /* disablePropsSDKFactory */], focusPropsSDKFactory["a" /* focusPropsSDKFactory */], readOnlyPropsSDKFactory["a" /* readOnlyPropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], DatePicker_corvid_requiredPropsSDKFactory, DatePicker_corvid_validationPropsSDKFactory, changePropsSDKFactory["a" /* changePropsSDKFactory */], ownSDKFactory);
/* harmony default export */ var DatePicker_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 231 */
/*!*********************************************************************************!*\
  !*** ./components/FooterContainer/corvid/FooterContainer.corvid.ts + 1 modules ***!
  \*********************************************************************************/
/*! exports provided: stylePropsSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./components/ScreenWidthContainer/constants.ts because of ./components/HeaderContainer/corvid/HeaderContainer.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "stylePropsSDKFactory", function() { return /* binding */ FooterContainer_corvid_stylePropsSDKFactory; });
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js
var childrenPropsSDKFactory = __webpack_require__(34);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: ./components/ScreenWidthContainer/constants.ts
var constants = __webpack_require__(50);

// CONCATENATED MODULE: ./components/FooterContainer/constants.ts
var TestIds = {
    content: 'footer-container-content',
};
var corvidName = '$w.Footer';

// CONCATENATED MODULE: ./components/FooterContainer/corvid/FooterContainer.corvid.ts






var footerContainerSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return ({
        get type() {
            return corvidName;
        },
        toJSON: function () {
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: corvidName });
        },
    });
};
var FooterContainer_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
}, {
    cssVarPrefix: constants["a" /* styleMixinPrefix */],
});
var FooterContainer_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])({
    useHiddenCollapsed: false,
});
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(FooterContainer_corvid_elementPropsSDKFactory, footerContainerSDKFactory, childrenPropsSDKFactory["a" /* childrenPropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], FooterContainer_corvid_stylePropsSDKFactory);
/* harmony default export */ var FooterContainer_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 232 */
/*!*********************************************************************************!*\
  !*** ./components/HeaderContainer/corvid/HeaderContainer.corvid.ts + 1 modules ***!
  \*********************************************************************************/
/*! exports provided: stylePropsSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./components/ScreenWidthContainer/constants.ts because of ./components/FooterContainer/corvid/FooterContainer.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "stylePropsSDKFactory", function() { return /* binding */ HeaderContainer_corvid_stylePropsSDKFactory; });
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js
var childrenPropsSDKFactory = __webpack_require__(34);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: ./components/ScreenWidthContainer/constants.ts
var constants = __webpack_require__(50);

// CONCATENATED MODULE: ./components/HeaderContainer/constants.ts
var TestIds = {
    content: 'header-container-content',
};
var corvidName = '$w.Header';

// CONCATENATED MODULE: ./components/HeaderContainer/corvid/HeaderContainer.corvid.ts






var headerContainerSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return ({
        get type() {
            return corvidName;
        },
        toJSON: function () {
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: corvidName });
        },
    });
};
var HeaderContainer_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
}, {
    cssVarPrefix: constants["a" /* styleMixinPrefix */],
});
var HeaderContainer_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])({
    useHiddenCollapsed: false,
});
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(HeaderContainer_corvid_elementPropsSDKFactory, headerContainerSDKFactory, childrenPropsSDKFactory["a" /* childrenPropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], HeaderContainer_corvid_stylePropsSDKFactory);
/* harmony default export */ var HeaderContainer_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 233 */
/*!***************************************************************************************************!*\
  !*** ./components/NativeGalleries/SlideShowGallery/corvid/SlideShowGallery.corvid.ts + 1 modules ***!
  \***************************************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/galleries/GallerySDKUtils.ts because of ./components/NativeGalleries/SliderGallery/corvid/SliderGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/galleries/clickActionSDKFactory.ts because of ./components/NativeGalleries/SliderGallery/corvid/SliderGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/galleries/navigationButtonsSDKFactory.ts because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/galleries/onItemClickSDKFactory.ts because of ./components/NativeGalleries/SliderGallery/corvid/SliderGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/playablePropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: ./core/corvid/props-factories/galleries/clickActionSDKFactory.ts
var clickActionSDKFactory = __webpack_require__(60);

// EXTERNAL MODULE: ./core/corvid/props-factories/galleries/navigationButtonsSDKFactory.ts
var navigationButtonsSDKFactory = __webpack_require__(242);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: ./core/corvid/galleries/GallerySDKUtils.ts
var GallerySDKUtils = __webpack_require__(15);

// CONCATENATED MODULE: ./core/corvid/props-factories/galleries/currentItemSDKFactory.ts


var _currentItemSDKFactory = function (_a) {
    var registerEvent = _a.registerEvent, linkUtils = _a.linkUtils, props = _a.props;
    return {
        get currentItem() {
            if (!props.items || props.items.length === 0) {
                return undefined;
            }
            var currentItem = props.items[props.currentIndex];
            var convertedItemToUserModel = Object(GallerySDKUtils["a" /* convertGalleryItemsToUserModel */])([currentItem], linkUtils);
            return convertedItemToUserModel[0];
        },
        get currentIndex() {
            return props.currentIndex;
        },
        onCurrentItemChanged: function (handler) {
            registerEvent('onCurrentItemChanged', function (event) {
                var changedItem = props.items[event.itemIndex];
                event.item = Object(GallerySDKUtils["a" /* convertGalleryItemsToUserModel */])([changedItem], linkUtils)[0];
                handler(event);
            });
        },
    };
};
var currentItemSDKFactory = Object(withValidation["b" /* withValidation */])(_currentItemSDKFactory, {
    type: ['object'],
    properties: {
        onCurrentItemChanged: {
            type: ['function'],
            args: [{ type: ['function'] }],
        },
    },
});

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/playablePropsSDKFactory.js
var playablePropsSDKFactory = __webpack_require__(243);

// EXTERNAL MODULE: ./core/corvid/props-factories/galleries/onItemClickSDKFactory.ts
var onItemClickSDKFactory = __webpack_require__(61);

// CONCATENATED MODULE: ./components/NativeGalleries/SlideShowGallery/corvid/SlideShowGallery.corvid.ts





var slideShowGallerySDKFactory = function (_a) {
    var sdkData = _a.sdkData, registerEvent = _a.registerEvent, props = _a.props, metaData = _a.metaData, compRef = _a.compRef, setProps = _a.setProps, linkUtils = _a.linkUtils, createSdkState = _a.createSdkState;
    var _b = createSdkState({ navigationEndCallbacks: [] }), state = _b[0], setState = _b[1];
    // TODO: take the arg currentIndex and get the new sdkInstance for cb
    registerEvent('onNavigationEnd', function () {
        state.navigationEndCallbacks.forEach(function (cb) { return cb(); });
        setState({ navigationEndCallbacks: [] });
    });
    return {
        next: function () {
            return new Promise(function (resolve) {
                setState({
                    navigationEndCallbacks: Object(tslib_es6["__spreadArrays"])(state.navigationEndCallbacks, [resolve]),
                });
                compRef.next();
            });
        },
        previous: function () {
            return new Promise(function (resolve) {
                setState({
                    navigationEndCallbacks: Object(tslib_es6["__spreadArrays"])(state.navigationEndCallbacks, [resolve]),
                });
                compRef.previous();
            });
        },
        get isPlaying() {
            var isPlaying = props.isPlaying;
            if (assert["a" /* assert */].isBoolean(isPlaying)) {
                return isPlaying;
            }
            return props.autoPlay && props.items.length > 1;
        },
        get items() {
            return Object(GallerySDKUtils["a" /* convertGalleryItemsToUserModel */])(props.items, linkUtils);
        },
        set items(items) {
            var propsItems = Object(GallerySDKUtils["b" /* convertToGalleryItemsPropsOrReport */])(items, metaData.role, metaData.compId, sdkData.dataId, linkUtils, sdkData.imageDisplayMode);
            if (propsItems) {
                setProps({ items: propsItems });
            }
        },
        get galleryCapabilities() {
            return {
                hasCurrentItem: true,
                hasNavigationButtons: true,
                isAnimatable: true,
                isPlayable: true,
                supportsAllMediaTypes: false,
            };
        },
        get type() {
            return '$w.Gallery';
        },
        toJSON: function () {
            var currentItem = Object(GallerySDKUtils["a" /* convertGalleryItemsToUserModel */])([props.items[this.currentIndex]], linkUtils)[0];
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { clickAction: this.clickAction, currentIndex: this.currentIndex, currentItem: currentItem, showNavigationButtons: this.showNavigationButtons, items: Object(GallerySDKUtils["a" /* convertGalleryItemsToUserModel */])(props.items, linkUtils), type: '$w.Gallery' });
        },
    };
};
var SlideShowGallery_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(SlideShowGallery_corvid_elementPropsSDKFactory, clickActionSDKFactory["a" /* clickActionSDKFactory */], navigationButtonsSDKFactory["a" /* navigationButtonsSDKFactory */], currentItemSDKFactory, playablePropsSDKFactory["a" /* playablePropsSDKFactory */], slideShowGallerySDKFactory, onItemClickSDKFactory["a" /* onItemClickSDKFactory */]);
/* harmony default export */ var SlideShowGallery_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 234 */
/*!*********************************************************************!*\
  !*** ./components/SearchBox/corvid/SearchBox.corvid.ts + 1 modules ***!
  \*********************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js because of ./components/SiteButton/corvid/SiteButton.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/textInputPropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/textInputPropsSDKFactory.js
var textInputPropsSDKFactory = __webpack_require__(72);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/focusPropsSDKFactory.js
var focusPropsSDKFactory = __webpack_require__(33);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// CONCATENATED MODULE: ./components/SearchBox/corvid/searchBoxValuePropsSDKFactory.ts

var emptySearchSuggestions = null;
var _searchBoxValuePropsSDKFactory = function (_a) {
    var registerEvent = _a.registerEvent, setProps = _a.setProps, props = _a.props;
    return ({
        get value() {
            return props.value || '';
        },
        set value(_value) {
            var value = _value || '';
            setProps({ value: value });
        },
        get suggestions() {
            return props.suggestions || emptySearchSuggestions;
        },
        set suggestions(suggestions) {
            setProps({
                isSuggestionsOpen: Boolean(suggestions === null || suggestions === void 0 ? void 0 : suggestions.items.length),
                suggestions: suggestions,
            });
        },
        get suggestionsEnabled() {
            return props.suggestionsEnabled || false;
        },
        set suggestionsEnabled(suggestionsEnabled) {
            setProps({ suggestionsEnabled: suggestionsEnabled });
        },
        openSuggestions: function () {
            setProps({ isSuggestionsOpen: true });
        },
        closeSuggestions: function () {
            setProps({ isSuggestionsOpen: false });
        },
        onSubmit: function (handler) {
            registerEvent('onSubmit', handler);
        },
        onClear: function (handler) {
            registerEvent('onClear', handler);
        },
        onChange: function (handler) {
            registerEvent('onChange', handler);
        },
        onSuggestionsFooterClick: function (handler) {
            registerEvent('onSuggestionsFooterClick', handler);
        },
        onSuggestionSelect: function (handler) {
            registerEvent('onSuggestionSelect', handler);
        },
        onSuggestionGroupSelect: function (handler) {
            registerEvent('onSuggestionGroupSelect', handler);
        },
    });
};
var searchBoxValuePropsSDKFactory = Object(withValidation["b" /* withValidation */])(_searchBoxValuePropsSDKFactory, {
    type: ['object'],
    properties: {
        label: {
            type: ['string', 'nil'],
            warnIfNil: true,
        },
        suggestionsEnabled: { type: ['boolean'] },
        suggestions: { type: ['object', 'nil'] },
        onSubmit: {
            type: ['function'],
            args: [
                {
                    type: ['function'],
                },
            ],
        },
        onClear: {
            type: ['function'],
            args: [
                {
                    type: ['function'],
                },
            ],
        },
        onChange: {
            type: ['function'],
            args: [
                {
                    type: ['function'],
                },
            ],
        },
        onSuggestionsFooterClick: {
            type: ['function'],
            args: [
                {
                    type: ['function'],
                },
            ],
        },
        onSuggestionSelect: {
            type: ['function'],
            args: [
                {
                    type: ['function'],
                },
            ],
        },
        onSuggestionGroupSelect: {
            type: ['function'],
            args: [
                {
                    type: ['function'],
                },
            ],
        },
    },
});

// CONCATENATED MODULE: ./components/SearchBox/corvid/SearchBox.corvid.ts




var SearchBox_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var SearchBox_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(SearchBox_corvid_elementPropsSDKFactory, changePropsSDKFactory["a" /* changePropsSDKFactory */], textInputPropsSDKFactory["a" /* textInputPropsSDKFactory */], focusPropsSDKFactory["a" /* focusPropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], SearchBox_corvid_stylePropsSDKFactory, disablePropsSDKFactory["a" /* disablePropsSDKFactory */], searchBoxValuePropsSDKFactory);
/* harmony default export */ var SearchBox_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 235 */
/*!*************************************************************************************!*\
  !*** ./components/SelectionTagsList/corvid/SelectionTagsList.corvid.ts + 1 modules ***!
  \*************************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/createInputValidator.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validateRequiredArray.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/inputUtils/validityUtils.ts because of ./components/FileUploader/corvid/FileUploader.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/requiredPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/validationPropsSDKFactory.ts because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js because of ./components/TextInput/corvid/TextInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules
var messages = __webpack_require__(12);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: ./core/corvid/props-factories/validationPropsSDKFactory.ts
var validationPropsSDKFactory = __webpack_require__(46);

// EXTERNAL MODULE: ./core/corvid/props-factories/requiredPropsSDKFactory.ts
var requiredPropsSDKFactory = __webpack_require__(45);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/stylePropsSDKFactory.js + 13 modules
var stylePropsSDKFactory = __webpack_require__(37);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/disablePropsSDKFactory.js
var disablePropsSDKFactory = __webpack_require__(28);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: ./core/corvid/inputUtils/createInputValidator.ts
var createInputValidator = __webpack_require__(32);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validityUtils.ts
var validityUtils = __webpack_require__(9);

// EXTERNAL MODULE: ./core/corvid/inputUtils/validateRequiredArray.ts
var validateRequiredArray = __webpack_require__(251);

// CONCATENATED MODULE: ./components/SelectionTagsList/corvid/SelectionTagsList.validators.ts

var validationSchema = {
    type: ['object'],
    properties: {
        value: {
            type: ['array', 'nil'],
            items: {
                type: ['string'],
            },
        },
        selectedIndices: {
            type: ['array', 'nil'],
            items: {
                type: ['integer'],
            },
        },
        options: {
            type: ['array'],
            name: 'SelectionTags.Option',
            items: {
                type: ['object'],
                properties: {
                    value: {
                        type: ['string', 'nil'],
                    },
                    label: {
                        type: ['string', 'nil'],
                    },
                    link: {
                        type: ['string', 'nil'],
                    },
                    rel: {
                        type: ['string', 'nil'],
                    },
                },
            },
        },
    },
};
var isInRange = function (indices, _a) {
    var props = _a.props, metaData = _a.metaData;
    var schemaValidator = Object(withValidation["a" /* createCompSchemaValidator */])(metaData.compId);
    if (assert["a" /* assert */].isNil(indices)) {
        return true;
    }
    return schemaValidator(indices, {
        type: ['array'],
        items: {
            type: ['integer'],
            minimum: 0,
            maximum: props.options.length - 1,
        },
    }, 'selectedIndices');
};
var customValidators = {
    selectedIndices: [isInRange],
};

// CONCATENATED MODULE: ./components/SelectionTagsList/corvid/SelectionTagsList.corvid.ts






var selectionTagsValidator = Object(createInputValidator["b" /* createInputValidator */])(Object(validityUtils["f" /* composeValidators */])([validateRequiredArray["a" /* validateRequiredArray */]]));
var rejectOptionsWithoutRequiredProperties = function (options) {
    return options.filter(function (item, index) {
        var isWithoutProperty = assert["a" /* assert */].isNil(item.value) && assert["a" /* assert */].isNil(item.label);
        if (isWithoutProperty) {
            Object(reporters["b" /* reportWarning */])(messages["a" /* messages */].invalidOption({
                propertyName: 'SelectionTags.Option',
                index: index,
                wrongValue: options[index],
            }));
            return false;
        }
        return true;
    });
};
var matchValuesToOptions = function (options, values) {
    var optionsValue = options.map(function (option) { return option.value; });
    return values.filter(function (value) { return optionsValue.includes(value); });
};
var selectionTagsListSDKFactory = function (api) {
    var setProps = api.setProps, props = api.props, linkUtils = api.linkUtils, metaData = api.metaData, getSdkInstance = api.getSdkInstance;
    var runValidator = function () {
        selectionTagsValidator.validate({
            viewerSdkAPI: api,
            showValidityIndication: true,
        });
    };
    var setValue = function (nextValue) {
        var options = props.options;
        if (assert["a" /* assert */].isNil(nextValue)) {
            nextValue = [];
        }
        setProps({
            value: matchValuesToOptions(options, nextValue),
        });
    };
    return {
        get value() {
            var options = props.options, value = props.value;
            return matchValuesToOptions(options, value);
        },
        set value(nextValue) {
            setValue(nextValue);
            runValidator();
        },
        get selectedIndices() {
            var value = props.value, options = props.options;
            return value.map(function (selected) {
                return options.findIndex(function (option) { return option.value === selected; });
            });
        },
        set selectedIndices(indices) {
            var options = props.options;
            if (assert["a" /* assert */].isNil(indices)) {
                indices = [];
            }
            var values = indices.map(function (index) { return options[index].value; });
            setValue(values);
            runValidator();
        },
        get options() {
            return props.options.map(function (_a) {
                var link = _a.link, rel = _a.rel, value = _a.value, label = _a.label;
                return (Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, (link && { link: link })), (rel && { rel: rel })), (value && { value: value })), (label && { label: label })));
            });
        },
        set options(nextOptions) {
            /**
             * User can enter anything into `link` property
             * of option.
             *
             * So we use `linkUtils.getLinkProps`, which during
             * converting into `LinkProps` will validate link
             * @param url
             */
            var getValidUrl = function (url) {
                var linkProps = linkUtils.getLinkProps(url, '_blank');
                return linkUtils.getLink(linkProps);
            };
            var withRequiredFields = rejectOptionsWithoutRequiredProperties(nextOptions);
            var options = withRequiredFields.map(function (_a) {
                var link = _a.link, rel = _a.rel, value = _a.value, label = _a.label;
                return (Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, (link && { link: getValidUrl(link) })), (rel && { rel: rel })), { value: value,
                    label: label }));
            });
            setProps({ options: options });
            var value = getSdkInstance().value;
            /**
             * Setting SelectionTags.options removes any value that is not present in the new options.
             * It does, however, keep the values that are also present in the newly set options.
             * This is consistent with how "Multiple Choices" (AKA CheckboxGroup) behaves.
             *
             * TODO: after removing the experiment add test https://github.com/wix-private/editor-elements/pull/3055/files
             */
            setValue(matchValuesToOptions(options, value));
            runValidator();
        },
        get type() {
            return '$w.SelectionTags';
        },
        toJSON: function () {
            var _a = getSdkInstance(), value = _a.value, options = _a.options, selectedIndices = _a.selectedIndices;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { value: value,
                options: options,
                selectedIndices: selectedIndices });
        },
    };
};
var factoryWithValidators = Object(withValidation["b" /* withValidation */])(selectionTagsListSDKFactory, validationSchema, customValidators);
var SelectionTagsList_corvid_validationPropsSDKFactory = Object(validationPropsSDKFactory["a" /* createValidationPropsSDKFactory */])(selectionTagsValidator);
var SelectionTagsList_corvid_requiredPropsSDKFactory = Object(requiredPropsSDKFactory["a" /* createRequiredPropsSDKFactory */])(selectionTagsValidator);
var SelectionTagsList_corvid_stylePropsSDKFactory = Object(stylePropsSDKFactory["a" /* createStylePropsSDKFactory */])({
    BackgroundColor: true,
    BorderColor: true,
    BorderWidth: true,
    BorderRadius: true,
    TextColor: true,
});
var SelectionTagsList_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(SelectionTagsList_corvid_elementPropsSDKFactory, SelectionTagsList_corvid_stylePropsSDKFactory, changePropsSDKFactory["a" /* changePropsSDKFactory */], disablePropsSDKFactory["a" /* disablePropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], SelectionTagsList_corvid_requiredPropsSDKFactory, SelectionTagsList_corvid_validationPropsSDKFactory, factoryWithValidators);
/* harmony default export */ var SelectionTagsList_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 236 */
/*!***************************************************************************************!*\
  !*** ./components/SlideShowContainer/corvid/SlideShowContainer.corvid.ts + 1 modules ***!
  \***************************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/playablePropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/assert/index.js + 1 modules
var assert = __webpack_require__(2);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/changePropsSDKFactory.js
var changePropsSDKFactory = __webpack_require__(29);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js
var childrenPropsSDKFactory = __webpack_require__(34);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/playablePropsSDKFactory.js
var playablePropsSDKFactory = __webpack_require__(243);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/messages/index.js + 1 modules
var messages = __webpack_require__(12);

// CONCATENATED MODULE: ./components/SlideShowContainer/corvid/customValidations.ts

var isValidSlideReference = function (functionArgs, sdkFactoryArgs) {
    var slideReference = functionArgs[0];
    var isObjectSlideReference = assert["a" /* assert */].isObject(slideReference);
    var slides = sdkFactoryArgs.getChildren();
    var maxNextSlideIndex = slides.length - 1;
    var nextSlideIndex = -1;
    if (assert["a" /* assert */].isNumber(slideReference)) {
        nextSlideIndex = slideReference;
    }
    else if (isObjectSlideReference) {
        var isSlideSDKObject = Object.keys(slides[0]).every(function (key) {
            return slideReference.hasOwnProperty(key);
        });
        if (!isSlideSDKObject) {
            Object(reporters["a" /* reportError */])(messages["a" /* messages */].invalidTypeMessage({
                propertyName: 'slideInfo',
                functionName: 'changeSlide',
                value: slideReference,
                types: ['slide', 'integer'],
                index: undefined,
            }));
            return false;
        }
        nextSlideIndex = slides.findIndex(function (slide) { return slide.id === slideReference.id; });
    }
    if (nextSlideIndex < 0 || nextSlideIndex > maxNextSlideIndex) {
        Object(reporters["a" /* reportError */])(messages["a" /* messages */].invalidSlideInputMessage({
            value: isObjectSlideReference
                ? slideReference.id
                : nextSlideIndex,
            propertyName: 'slideInfo',
            functionName: 'changeSlide',
            minimum: 0,
            maximum: maxNextSlideIndex,
            slideShowId: sdkFactoryArgs.metaData.role,
        }));
        return false;
    }
    return true;
};

// CONCATENATED MODULE: ./components/SlideShowContainer/corvid/SlideShowContainer.corvid.ts





var _slideShowContainerSDKFactory = function (_a) {
    var sdkData = _a.sdkData, setStyles = _a.setStyles, registerEvent = _a.registerEvent, props = _a.props, compRef = _a.compRef, getChildren = _a.getChildren, metaData = _a.metaData, createSdkState = _a.createSdkState;
    var _b = createSdkState({
        showSlideButtons: sdkData.showSlideButtons,
        showNavigationButtons: sdkData.showNavigationButtons,
        slideChangedHandlers: [],
    }), state = _b[0], setState = _b[1];
    registerEvent('onCurrentSlideChanged', function (newSlideIndex) {
        var slides = getChildren();
        state.slideChangedHandlers.forEach(function (cb) { return cb(slides[newSlideIndex]); });
        setState({ slideChangedHandlers: [] });
    });
    var sdkProps = {
        changeSlide: function (slideReference) { return Object(tslib_es6["__awaiter"])(void 0, void 0, void 0, function () {
            var slides, currentSlideIndex, nextSlideIndex;
            return Object(tslib_es6["__generator"])(this, function (_a) {
                slides = getChildren();
                currentSlideIndex = props.currentSlideIndex;
                nextSlideIndex = assert["a" /* assert */].isNumber(slideReference)
                    ? slideReference
                    : slides.findIndex(function (slide) { return slide.id === slideReference.id; });
                if (currentSlideIndex === nextSlideIndex) {
                    return [2 /*return*/, Promise.resolve(slides[currentSlideIndex])];
                }
                return [2 /*return*/, new Promise(function (resolve) {
                        setState({
                            slideChangedHandlers: Object(tslib_es6["__spreadArrays"])(state.slideChangedHandlers, [
                                function () { return resolve(slides[nextSlideIndex]); },
                            ]),
                        });
                        compRef.moveToSlide({ slideIndex: nextSlideIndex });
                    })];
            });
        }); },
        next: function () {
            return new Promise(function (resolve) {
                setState({
                    slideChangedHandlers: Object(tslib_es6["__spreadArrays"])(state.slideChangedHandlers, [resolve]),
                });
                compRef.next();
            });
        },
        previous: function () {
            return new Promise(function (resolve) {
                setState({
                    slideChangedHandlers: Object(tslib_es6["__spreadArrays"])(state.slideChangedHandlers, [resolve]),
                });
                compRef.previous();
            });
        },
        get isPlaying() {
            var isPlaying = props.isPlaying;
            if (assert["a" /* assert */].isBoolean(isPlaying)) {
                return isPlaying;
            }
            return props.autoPlay && getChildren().length > 1;
        },
        get slides() {
            return getChildren();
        },
        get currentSlide() {
            var slides = getChildren();
            return slides[props.currentSlideIndex];
        },
        get currentIndex() {
            return props.currentSlideIndex;
        },
        get showSlideButtons() {
            return state.showSlideButtons;
        },
        set showSlideButtons(show) {
            setStyles({
                '--nav-dot-section-display': show
                    ? 'block !important'
                    : 'none !important',
            });
            setState({ showSlideButtons: show });
        },
        get showNavigationButtons() {
            return state.showNavigationButtons;
        },
        set showNavigationButtons(show) {
            setStyles({
                '--nav-button-display': show ? 'block !important' : 'none !important',
            });
            setState({ showNavigationButtons: show });
        },
        get type() {
            return '$w.Slideshow';
        },
        toJSON: function () {
            var currentIndex = sdkProps.currentIndex, type = sdkProps.type;
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: type,
                currentIndex: currentIndex, showNavigationButtons: state.showNavigationButtons, showSlideButtons: state.showSlideButtons });
        },
    };
    return sdkProps;
};
var customRules = {
    changeSlide: [isValidSlideReference],
};
var slideShowContainerSDKFactory = Object(withValidation["b" /* withValidation */])(_slideShowContainerSDKFactory, {
    type: ['object'],
    properties: {
        changeSlide: {
            type: ['function'],
            args: [
                {
                    type: ['object', 'integer'],
                },
            ],
        },
        showSlideButtons: {
            type: ['boolean'],
        },
        showNavigationButtons: {
            type: ['boolean'],
        },
    },
}, customRules);
var SlideShowContainer_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(SlideShowContainer_corvid_elementPropsSDKFactory, changePropsSDKFactory["a" /* changePropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */], childrenPropsSDKFactory["a" /* childrenPropsSDKFactory */], playablePropsSDKFactory["a" /* playablePropsSDKFactory */], slideShowContainerSDKFactory);
/* harmony default export */ var SlideShowContainer_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 237 */
/*!*********************************************************************************************!*\
  !*** ./components/StripColumnsContainer/corvid/StripColumnsContainer.corvid.ts + 1 modules ***!
  \*********************************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/backgroundPropsSDKFactory.js because of ./components/MultiStateBox/corvid/MultiStateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/backgroundPropsSDKFactory.js
var backgroundPropsSDKFactory = __webpack_require__(47);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/childrenPropsSDKFactory.js
var childrenPropsSDKFactory = __webpack_require__(34);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// CONCATENATED MODULE: ./components/StripColumnsContainer/constants.ts
var TestIds = {
    columns: 'columns',
};
var corvidName = '$w.ColumnStrip';

// CONCATENATED MODULE: ./components/StripColumnsContainer/corvid/StripColumnsContainer.corvid.ts





var stripColumnsContainerSDKFactory = function (sdkProps) {
    var metaData = sdkProps.metaData;
    var ownBackgroundSDK = Object(backgroundPropsSDKFactory["a" /* backgroundPropsSDKFactory */])(sdkProps);
    var getColumns = function () {
        return metaData
            .getChildren()
            .filter(function (child) { return child.type === '$w.Column'; });
    };
    return {
        get background() {
            var columns = getColumns();
            return {
                get src() {
                    var ownSrc = ownBackgroundSDK.background.src;
                    if (!ownSrc && columns.length === 1) {
                        var column = columns[0];
                        return column.background.src;
                    }
                    return ownSrc;
                },
                set src(newSrc) {
                    ownBackgroundSDK.background.src = newSrc;
                    if (columns.length === 1) {
                        var column = columns[0];
                        column.background.src = newSrc;
                    }
                },
            };
        },
        get columns() {
            return getColumns();
        },
        get type() {
            return corvidName;
        },
        toJSON: function () {
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData)), { type: corvidName });
        },
    };
};
var StripColumnsContainer_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(StripColumnsContainer_corvid_elementPropsSDKFactory, stripColumnsContainerSDKFactory, childrenPropsSDKFactory["a" /* childrenPropsSDKFactory */], clickPropsSDKFactory["a" /* clickPropsSDKFactory */]);
/* harmony default export */ var StripColumnsContainer_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 238 */
/*!*************************************************************************!*\
  !*** ./components/VideoLegacy/corvid/VideoLegacy.corvid.ts + 1 modules ***!
  \*************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// CONCATENATED MODULE: ./components/VideoLegacy/corvid/videoUtils/utils.ts

var BASE_URLS = {
    YOUTUBE: 'https://www.youtube.com/watch?v=',
    VIMEO: 'https://vimeo.com/',
    DAILYMOTION: 'https://dailymotion.com/video/',
    FACEBOOK: 'https://www.facebook.com/',
};
var getVideoUrl = function (_a) {
    var videoType = _a.videoType, videoId = _a.videoId;
    if (videoType && videoId) {
        return BASE_URLS[videoType] + videoId;
    }
    return '';
};
var getVideoDataFromUrl = function (videoUrl) {
    var players = [
        ['YOUTUBE', /(?:youtube\.com\/watch[^\s]*[?&]v=)([\w-]+)/g],
        ['YOUTUBE', /(?:youtu\.be\/)([\w-]+)/g],
        ['VIMEO', /vimeo\.com\/(\d+)$/gi],
        ['DAILYMOTION', /dailymotion\.com\/(?:video|playlist)\/([^_/]+)/gi],
        ['FACEBOOK', /facebook\.com\/(.+\/videos\/[A-Za-z0-9._%-]*)/gi],
    ];
    var videoData = {};
    players.every(function (_a) {
        var videoType = _a[0], regex = _a[1];
        var match = regex.exec(videoUrl);
        if (match && match.length && match[1]) {
            // if there is a match, the second group is the id we want
            videoData = { videoType: videoType, videoId: match[1] };
            return false;
        }
        return true;
    });
    return videoData;
};
var isValidUrl = function (urlToTest) {
    var regexp = /^(?:(?:https?:)\/\/)(?:(?:[\u0400-\uA69F\w][\u0400-\uA69F\w-]*)?[\u0400-\uA69F\w]\.)+(?:[\u0400-\uA69Fa-z]+|\d{1,3})(?::[\d]{1,5})?(?:[/?#].*)?$/i;
    if (regexp.test(urlToTest)) {
        return true;
    }
    else {
        Object(reporters["a" /* reportError */])("The videoUrl parameter that is passed to the videoUrl method cannot be set to the value . It must be a valid URL");
        return false;
    }
};

// CONCATENATED MODULE: ./components/VideoLegacy/corvid/VideoLegacy.corvid.ts




var customRules = {
    videoUrl: [isValidUrl],
};
var _videoPlayerSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props;
    return ({
        get videoUrl() {
            var videoType = props.videoType, videoId = props.videoId;
            return getVideoUrl({ videoType: videoType, videoId: videoId });
        },
        set videoUrl(url) {
            var _a = getVideoDataFromUrl(url), videoId = _a.videoId, videoType = _a.videoType;
            if (videoId && videoType) {
                setProps({
                    videoId: videoId,
                    videoType: videoType,
                });
            }
        },
    });
};
var videoPlayerSDKFactory = Object(withValidation["b" /* withValidation */])(_videoPlayerSDKFactory, {
    type: ['object'],
    properties: {
        videoUrl: { type: ['string'] },
    },
}, customRules);
var VideoLegacy_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(VideoLegacy_corvid_elementPropsSDKFactory, videoPlayerSDKFactory);
/* harmony default export */ var VideoLegacy_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 239 */
/*!***************************************************************!*\
  !*** ./components/WPhoto/corvid/WPhoto.corvid.ts + 1 modules ***!
  \***************************************************************/
/*! exports provided: WPhotoSDKFactory, sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with ./core/corvid/props-factories/linkPropsSDKFactory.ts because of ./components/VectorImage/corvid/VectorImage.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js (<- Module is referenced from these modules with unsupported syntax: ../node_modules/@wix/thunderbolt-commons/dist/color.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/index.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersParts.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgFiltersTemplates.js (referenced with cjs require), ../node_modules/@wix/thunderbolt-commons/dist/vectorImage/svgParser.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Anchor/Anchor.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/BaseTextInput.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Core.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomElementComponent/CustomElementComponent.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/CustomMenu/CustomMenu.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Input.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/MasterPage/MasterPage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/Page/Page.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/PopupContainer/PopupContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/StripColumnsContainer/StripColumnsContainer.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/TPAWidget/TPAWidget.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/VectorImage/VectorImage.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/WRichText/WRichText.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/css/Css.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/galleriesCommon/ImageList.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/index.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/link/Link.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Image.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/ImageMask.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Media.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/Video.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/components/media/mediaCommon.schema.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/constants.js (referenced with cjs require), /home/builduser/work/72f571a18a1c7e11/node_modules/@wix/thunderbolt-becky-types/dist/index.js (referenced with cjs require)) */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/mediaItemUtils.js because of ./components/MultiStateBox/corvid/MultiStateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/mediaSrcHandler.js because of ./components/VideoBoxContainer/VideoBox/corvid/VideoBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js because of ./components/StateBox/corvid/StateBox.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js because of ./components/NativeGalleries/PaginatedGridGallery/corvid/PaginatedGridGallery.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js because of ./components/AddressInput/corvid/AddressInput.corvid.ts */
/*! ModuleConcatenation bailout: Cannot concat with /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js because of ./thunderbolt-core-components/Page/corvid/Page.corvid.ts */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, "WPhotoSDKFactory", function() { return /* binding */ WPhotoSDKFactory; });
__webpack_require__.d(__webpack_exports__, "sdk", function() { return /* binding */ sdk; });

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/node_modules/tslib/tslib.es6.js
var tslib_es6 = __webpack_require__(0);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/reporters/reporters.js
var reporters = __webpack_require__(14);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/validations/withValidation.js
var withValidation = __webpack_require__(11);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/composeSDKFactories/composeSDKFactories.js
var composeSDKFactories = __webpack_require__(6);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-integrations/dist/esm/corvid/createCorvidModel.js
var createCorvidModel = __webpack_require__(10);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/elementPropsSDKFactory.js + 6 modules
var elementPropsSDKFactory = __webpack_require__(3);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/clickPropsSDKFactory.js
var clickPropsSDKFactory = __webpack_require__(20);

// EXTERNAL MODULE: ./core/corvid/props-factories/linkPropsSDKFactory.ts
var linkPropsSDKFactory = __webpack_require__(59);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/mediaSrcHandler.js
var mediaSrcHandler = __webpack_require__(21);

// EXTERNAL MODULE: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/media/mediaItemUtils.js
var mediaItemUtils = __webpack_require__(26);

// CONCATENATED MODULE: ./components/WPhoto/utils/url.ts
var isExternalUrl = function (url) {
    return /(^https?)|(^data)|(^blob)|(^\/\/)/.test(url);
};

// CONCATENATED MODULE: ./components/WPhoto/corvid/WPhoto.corvid.ts







var IMAGE_CLICK_ACTIONS = {
    none: 'disabled',
    expand: 'zoomMode',
    link: 'goToLink',
    magnified: 'zoomAndPanMode',
};
var IMAGE_CLICK_ACTIONS_INVERTED_MAP = {
    disabled: 'none',
    zoomMode: 'expand',
    goToLink: 'link',
    zoomAndPanMode: 'magnified',
};
var IMAGE_FIT_MODE_MAP = {
    fixedWidth: 'fitWidth',
    fit: 'fit',
    fill: 'fill',
};
var IMAGE_FIT_MODE_INVERTED_MAP = {
    fitWidth: 'fixedWidth',
    fit: 'fit',
    fill: 'fill',
};
var _wPhotoSDKFactory = function (_a) {
    var setProps = _a.setProps, setStyles = _a.setStyles, registerEvent = _a.registerEvent, props = _a.props, metaData = _a.metaData, sdkData = _a.sdkData;
    var getSrc = function () {
        var uri = props.uri, height = props.height, width = props.width, title = props.title;
        if (isExternalUrl(uri)) {
            return uri;
        }
        var mediaItemUri = Object(mediaItemUtils["a" /* createMediaItemUri */])({
            mediaId: uri,
            width: width,
            height: height,
            title: title,
            type: 'image',
        });
        if (mediaItemUri.error) {
            return '';
        }
        return mediaItemUri.item || '';
    };
    var getFitMode = function () {
        return IMAGE_FIT_MODE_INVERTED_MAP[props.displayMode];
    };
    var updateSizeForFitMode = function (fitMode, overrides) {
        var layoutWidth = sdkData.layoutWidth, layoutHeight = sdkData.layoutHeight, paddingBottom = sdkData.paddingBottom;
        var width = layoutWidth;
        var height = layoutHeight;
        if (fitMode === 'fixedWidth') {
            var imageProportion = ((overrides === null || overrides === void 0 ? void 0 : overrides.width) || props.width) / ((overrides === null || overrides === void 0 ? void 0 : overrides.height) || props.height);
            height = Math.ceil(layoutWidth / imageProportion + paddingBottom);
        }
        setStyles({
            width: width + "px",
            height: height + "px",
        });
    };
    registerEvent('onLoad', function () {
        updateSizeForFitMode(getFitMode());
    });
    return {
        get src() {
            return getSrc();
        },
        set src(src) {
            if (!src) {
                setProps({ uri: '' });
            }
            else {
                var _a = Object(mediaSrcHandler["c" /* parseMediaSrc */])(src, 'image'), height = _a.height, width = _a.width, title = _a.title, mediaId = _a.mediaId, error = _a.error;
                if (!error) {
                    setProps(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, (height !== undefined ? { height: height } : {})), (width !== undefined ? { width: width } : {})), (title !== undefined ? { title: title } : {})), { uri: mediaId, maskDataElementString: null, crop: null }));
                    if (getFitMode() === IMAGE_FIT_MODE_INVERTED_MAP.fitWidth) {
                        updateSizeForFitMode(IMAGE_FIT_MODE_INVERTED_MAP.fitWidth, {
                            width: width,
                            height: height,
                        });
                    }
                }
                else {
                    Object(reporters["a" /* reportError */])("The \"src\" property cannot be set to \"src\". It must be a valid URL starting with \"http://\", \"https://\", or \"wix:image://\".");
                }
            }
        },
        get alt() {
            return props.alt;
        },
        set alt(alt) {
            setProps({ alt: alt || '' });
        },
        get tooltip() {
            return props.title;
        },
        set tooltip(tooltip) {
            setProps({ title: tooltip || '' });
        },
        get clickAction() {
            return IMAGE_CLICK_ACTIONS_INVERTED_MAP[props.onClickBehavior];
        },
        set clickAction(action) {
            var onClickBehavior = IMAGE_CLICK_ACTIONS[action] || IMAGE_CLICK_ACTIONS.none;
            setProps({ onClickBehavior: onClickBehavior });
        },
        get fitMode() {
            return getFitMode();
        },
        set fitMode(value) {
            var maskDataElementStringNotStretch = sdkData.maskDataElementStringNotStretch;
            var maskDataElementProps = maskDataElementStringNotStretch
                ? { maskDataElementString: maskDataElementStringNotStretch }
                : {};
            setProps(Object(tslib_es6["__assign"])({ displayMode: IMAGE_FIT_MODE_MAP[value] }, maskDataElementProps));
            updateSizeForFitMode(value);
        },
        get type() {
            return '$w.Image';
        },
        toJSON: function () {
            var elementProps = Object(elementPropsSDKFactory["b" /* toJSONBase */])(metaData);
            return Object(tslib_es6["__assign"])(Object(tslib_es6["__assign"])({}, elementProps), { alt: props.alt, tooltip: props.title, src: getSrc(), type: '$w.Image' });
        },
    };
};
var WPhotoSDKFactory = Object(withValidation["b" /* withValidation */])(_wPhotoSDKFactory, {
    type: ['object'],
    properties: {
        src: { type: ['string', 'nil'], warnIfNil: true },
        description: { type: ['string', 'nil'], warnIfNil: true },
        title: { type: ['string', 'nil'], warnIfNil: true },
        alt: { type: ['string', 'nil'], warnIfNil: true },
        tooltip: { type: ['string', 'nil'], warnIfNil: true },
        width: { type: ['integer'] },
        height: { type: ['integer'] },
        clickAction: {
            type: ['string', 'nil'],
            enum: Object.keys(IMAGE_CLICK_ACTIONS),
            warnIfNil: true,
        },
        fitMode: {
            type: ['string'],
            enum: Object.keys(IMAGE_FIT_MODE_MAP),
        },
    },
});
var WPhoto_corvid_elementPropsSDKFactory = Object(elementPropsSDKFactory["a" /* createElementPropsSDKFactory */])();
var sdk = Object(composeSDKFactories["a" /* composeSDKFactories */])(WPhoto_corvid_elementPropsSDKFactory, clickPropsSDKFactory["b" /* clickPropsSDKFactoryWithUpdatePlatformHandler */], linkPropsSDKFactory["a" /* linkPropsSDKFactory */], WPhotoSDKFactory);
/* harmony default export */ var WPhoto_corvid = __webpack_exports__["default"] = (Object(createCorvidModel["a" /* createComponentSDKModel */])(sdk));


/***/ }),
/* 240 */
/*!***************************************************************!*\
  !*** ./core/corvid/props-factories/checkedPropsSDKFactory.ts ***!
  \***************************************************************/
/*! exports provided: createCheckedPropsSDKFactory */
/*! exports used: createCheckedPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createCheckedPropsSDKFactory; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);

var _checkedPropsSDKFactory = function (inputValidator) { return function (api) {
    var props = api.props, setProps = api.setProps;
    return {
        get checked() {
            return props.checked || false;
        },
        set checked(value) {
            setProps({ checked: value || false });
            inputValidator.validate({
                viewerSdkAPI: api,
                showValidityIndication: true,
            });
        },
    };
}; };
var createCheckedPropsSDKFactory = function (inputValidator) {
    return Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_checkedPropsSDKFactory(inputValidator), {
        type: ['object'],
        properties: {
            checked: {
                type: ['boolean', 'nil'],
            },
        },
    });
};


/***/ }),
/* 241 */
/*!********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/labelPropsSDKFactory.js ***!
  \********************************************************************************************************************************/
/*! exports provided: labelPropsSDKFactory */
/*! exports used: labelPropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return labelPropsSDKFactory; });
/* harmony import */ var _validations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../validations */ 11);

var _labelPropsSDKFactory = function (_a) {
    var setProps = _a.setProps, props = _a.props;
    return ({
        get label() {
            return props.label || '';
        },
        set label(value) {
            var label = value || '';
            setProps({ label: label });
        },
    });
};
var labelPropsSDKFactory = Object(_validations__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_labelPropsSDKFactory, {
    type: ['object'],
    properties: {
        label: {
            type: ['string', 'nil'],
            warnIfNil: true,
        },
    },
});
//# sourceMappingURL=labelPropsSDKFactory.js.map

/***/ }),
/* 242 */
/*!******************************************************************************!*\
  !*** ./core/corvid/props-factories/galleries/navigationButtonsSDKFactory.ts ***!
  \******************************************************************************/
/*! exports provided: navigationButtonsSDKFactory */
/*! exports used: navigationButtonsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return navigationButtonsSDKFactory; });
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 11);

var _navigationButtonsSDKFactory = function (_a) {
    var props = _a.props, setProps = _a.setProps;
    return {
        get showNavigationButtons() {
            return props.showNavigation;
        },
        set showNavigationButtons(val) {
            setProps({
                showNavigation: val,
            });
        },
    };
};
var navigationButtonsSDKFactory = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_navigationButtonsSDKFactory, {
    type: ['object'],
    properties: {
        showNavigationButtons: { type: ['boolean'] },
    },
});


/***/ }),
/* 243 */
/*!***********************************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/props-factories/playablePropsSDKFactory.js ***!
  \***********************************************************************************************************************************/
/*! exports provided: playablePropsSDKFactory */
/*! exports used: playablePropsSDKFactory */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return playablePropsSDKFactory; });
/* harmony import */ var _validations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../validations */ 11);
/* harmony import */ var _corvidEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../corvidEvents */ 13);


var _playablePropsSDKFactory = function (api) {
    return {
        get isPlaying() {
            return api.props.isPlaying;
        },
        play: function () {
            api.compRef.play();
            return api.getSdkInstance();
        },
        pause: function () {
            api.compRef.pause();
            return api.getSdkInstance();
        },
        onPlay: function (handler) { return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onPlay', api, handler); },
        onPause: function (handler) { return Object(_corvidEvents__WEBPACK_IMPORTED_MODULE_1__[/* registerCorvidEvent */ "a"])('onPause', api, handler); },
        next: function () {
            return new Promise(function (resolve, reject) {
                reject('sdk method not implemented');
            });
        },
        previous: function () {
            return new Promise(function (resolve, reject) {
                reject('sdk method not implemented');
            });
        },
    };
};
var playablePropsSDKFactory = Object(_validations__WEBPACK_IMPORTED_MODULE_0__[/* withValidation */ "b"])(_playablePropsSDKFactory, {
    type: ['object'],
    properties: {},
});
//# sourceMappingURL=playablePropsSDKFactory.js.map

/***/ }),
/* 244 */,
/* 245 */,
/* 246 */,
/* 247 */,
/* 248 */,
/* 249 */,
/* 250 */
/*!***************************************************!*\
  !*** ./components/Column/corvid/Column.corvid.ts ***!
  \***************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/Column/corvid/entry.corvid.ts (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ 0);
/* harmony import */ var _wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wix/editor-elements-corvid-utils */ 6);
/* harmony import */ var _wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wix/editor-elements-integrations */ 10);
/* harmony import */ var _MediaContainers_MediaContainer_corvid_MediaContainer_corvid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../MediaContainers/MediaContainer/corvid/MediaContainer.corvid */ 56);
/* harmony import */ var _core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/corvid/props-factories */ 3);





var columnPropsSDKFactory = function (_a) {
    var metaData = _a.metaData;
    return ({
        get type() {
            return '$w.Column';
        },
        toJSON: function () {
            return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])(Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, Object(_core_corvid_props_factories__WEBPACK_IMPORTED_MODULE_4__[/* toJSONBase */ "b"])(metaData)), { type: '$w.Column' });
        },
    });
};
var sdk = Object(_wix_editor_elements_corvid_utils__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(_MediaContainers_MediaContainer_corvid_MediaContainer_corvid__WEBPACK_IMPORTED_MODULE_3__["sdk"], columnPropsSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (Object(_wix_editor_elements_integrations__WEBPACK_IMPORTED_MODULE_2__[/* createComponentSDKModel */ "a"])(sdk));


/***/ }),
/* 251 */
/*!*********************************************************!*\
  !*** ./core/corvid/inputUtils/validateRequiredArray.ts ***!
  \*********************************************************/
/*! exports provided: validateRequiredArray */
/*! exports used: validateRequiredArray */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return validateRequiredArray; });
/* harmony import */ var _validityUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validityUtils */ 9);

var validateRequiredArray = function (props, validationData) {
    var isRequired = props.required || false;
    if (!isRequired || props.value.length) {
        return validationData;
    }
    return Object(_validityUtils__WEBPACK_IMPORTED_MODULE_0__[/* addErrorToValidationDataAndKeepMessage */ "d"])(validationData, 'valueMissing');
};


/***/ }),
/* 252 */
/*!********************************************************************************************************************!*\
  !*** /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/Fallback/Fallback.corvid.js ***!
  \********************************************************************************************************************/
/*! exports provided: sdk, default */
/*! all exports used */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: /home/builduser/work/72f571a18a1c7e11/packages/editor-elements-corvid-utils/dist/Fallback/entry.corvid.js (referenced with import()) */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sdk", function() { return sdk; });
/* harmony import */ var _props_factories__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../props-factories */ 3);
/* harmony import */ var _composeSDKFactories__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../composeSDKFactories */ 6);


var elementPropsSDKFactory = Object(_props_factories__WEBPACK_IMPORTED_MODULE_0__[/* createElementPropsSDKFactory */ "a"])();
var sdk = Object(_composeSDKFactories__WEBPACK_IMPORTED_MODULE_1__[/* composeSDKFactories */ "a"])(elementPropsSDKFactory);
/* harmony default export */ __webpack_exports__["default"] = (sdk);
//# sourceMappingURL=Fallback.corvid.js.map

/***/ })
/******/ ]);
});
//# sourceMappingURL=componentSSRSdks.bundle.js.map
}