From 48d225a3caf355bd818844219049e9552b61fa72 Mon Sep 17 00:00:00 2001 From: Frankie Dintino Date: Mon, 12 Aug 2024 19:06:23 -0400 Subject: [PATCH] fix: js patch functions that are executed indefinitely the argument passed to the patch function is meant to be ++callCount so that the value actually increments. fixes #262 --- nested_admin/static/nested_admin/dist/nested_admin.js | 4 ++-- nested_admin/static/nested_admin/dist/nested_admin.js.map | 2 +- nested_admin/static/nested_admin/dist/nested_admin.min.js | 2 +- nested_admin/static/nested_admin/dist/nested_admin.min.js.map | 2 +- nested_admin/static/nested_admin/src/nested-admin/utils.js | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nested_admin/static/nested_admin/dist/nested_admin.js b/nested_admin/static/nested_admin/dist/nested_admin.js index 2ad2722..b4d13eb 100644 --- a/nested_admin/static/nested_admin/dist/nested_admin.js +++ b/nested_admin/static/nested_admin/dist/nested_admin.js @@ -4150,7 +4150,7 @@ djangoFuncs.forEach(function (funcName) { if (typeof _jquery_shim_js__WEBPACK_IMPORTED_MODULE_13__["default"].fn[funcName] === "undefined") { return setTimeout(function () { - return patchDjangoFunction(callCount++); + return patchDjangoFunction(++callCount); }, 12); } @@ -4170,7 +4170,7 @@ grpFuncs.forEach(function (funcName) { if (typeof window.grp === "undefined" || typeof window.grp.jQuery.fn[funcName] === "undefined") { return setTimeout(function () { - return patchGrpFunction(callCount++); + return patchGrpFunction(++callCount); }, 12); } diff --git a/nested_admin/static/nested_admin/dist/nested_admin.js.map b/nested_admin/static/nested_admin/dist/nested_admin.js.map index b41e654..0da7fa4 100644 --- a/nested_admin/static/nested_admin/dist/nested_admin.js.map +++ b/nested_admin/static/nested_admin/dist/nested_admin.js.map @@ -1 +1 @@ -{"version":3,"file":"nested_admin.js","mappings":";;;;;;;;;;;;AAAA;AAEA;AACA;AACA;;AACA,SAASC,OAAT,CAAiBC,IAAjB,EAAuB;AACrB,MAAI,OAAOC,MAAM,CAACC,GAAd,KAAsB,WAA1B,EAAuC;AACrC,WA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;AAEjB;AACA;AACA;;;;;;;;;;;;ACJa;AACb,SAAS,2FAAyB;AAClC,aAAa,mBAAO,CAAC,0EAAkB;AACvC,kBAAkB,mBAAO,CAAC,wEAAiB;AAC3C,UAAU,mBAAO,CAAC,sDAAQ;AAC1B,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,YAAY,mBAAO,CAAC,4DAAW;AAC/B,kBAAkB,mBAAO,CAAC,sEAAgB;AAC1C,WAAW,mBAAO,CAAC,kEAAc;AACjC,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,kBAAkB,mBAAO,CAAC,sEAAgB;AAC1C,cAAc,uFAA0B;AACxC,eAAe,mBAAO,CAAC,sFAAwB;AAC/C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,OAAO;AAC/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B;AAC9B;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,+EAA+E,OAAO;AACtF;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,0CAA0C;AAC1C,0CAA0C;AAC1C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;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A;AACA,0CAA0C;AAC1C,8CAA8C;AAC9C,MAAM,4BAA4B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,mBAAmB;AACnC;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;;;;;;;;;;ACpEA,eAAe,mBAAO,CAAC,sDAAQ;AAC/B;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA,kCAAkC,UAAU;AAC5C,EAAE,YAAY;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,SAAS;AACvC,kCAAkC;AAClC;AACA,IAAI,YAAY;AAChB;AACA;;;;;;;;;;;ACrBA;AACA,WAAW;AACX;;;;;;;;;;;ACFA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA,WAAW,mBAAO,CAAC,sDAAQ;AAC3B,eAAe,mBAAO,CAAC,kEAAc;AACrC,UAAU,mBAAO,CAAC,sDAAQ;AAC1B,cAAc,2FAAyB;AACvC;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,0DAAU;AAChC,iDAAiD;AACjD,CAAC;AACD;AACA,sBAAsB;AACtB;AACA,mBAAmB;AACnB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACpDA;AACA,eAAe,mBAAO,CAAC,kEAAc;AACrC,UAAU,mBAAO,CAAC,oEAAe;AACjC,kBAAkB,mBAAO,CAAC,0EAAkB;AAC5C,eAAe,mBAAO,CAAC,oEAAe;AACtC,0BAA0B;AAC1B;;AAEA;AAC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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACvCY;;AAEb,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,gBAAgB,mBAAO,CAAC,oEAAe;AACvC,yBAAyB,mBAAO,CAAC,wFAAyB;AAC1D,iBAAiB,mBAAO,CAAC,wFAAyB;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;;;;ACrHY;;AAEb,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,yBAAyB,mBAAO,CAAC,sFAAwB;AACzD,yBAAyB,mBAAO,CAAC,wFAAyB;AAC1D,eAAe,mBAAO,CAAC,kEAAc;AACrC,qBAAqB,mBAAO,CAAC,wFAAyB;AACtD,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,YAAY,mBAAO,CAAC,0DAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sCAAsC,0BAA0B;;AAEhE;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF;AACpF;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,0BAA0B,mBAAmB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACrIY;AACb,aAAa,mBAAO,CAAC,kFAAsB;AAC3C,eAAe,mBAAO,CAAC,sFAAwB;AAC/C;;AAEA;AACA,iBAAiB,mBAAO,CAAC,oEAAe;AACxC,0BAA0B;AAC1B,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACbY;AACb,UAAU,mBAAO,CAAC,kEAAc;;AAEhC;AACA,mBAAO,CAAC,sEAAgB;AACxB,8BAA8B;AAC9B,8BAA8B;AAC9B;AACA,CAAC;AACD;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA,WAAW;AACX,CAAC;;;;;;;;;;;AChBD,iBAAiB,mBAAO,CAAC,kFAAsB;AAC/C,cAAc,mBAAO,CAAC,sEAAgB;AACtC,eAAe,mBAAO,CAAC,gEAAa;AACpC,aAAa,mBAAO,CAAC,4DAAW;AAChC,WAAW,mBAAO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/nested-admin/django$.js","../src/nested-admin/grp$.js","../src/nested-admin/jquery.djangoformset.js","../src/nested-admin/jquery.djnutils.js","../src/nested-admin/jquery.shim.js","../src/nested-admin/jquery.ui.djnsortable.js","../src/nested-admin/jquery.ui.nestedsortable.js","../src/nested-admin/regexquote.js","../src/nested-admin/sortable.js","../src/nested-admin/utils.js","../../../../node_modules/core-js/modules/_a-function.js","../../../../node_modules/core-js/modules/_add-to-unscopables.js","../../../../node_modules/core-js/modules/_advance-string-index.js","../../../../node_modules/core-js/modules/_an-instance.js","../../../../node_modules/core-js/modules/_an-object.js","../../../../node_modules/core-js/modules/_array-includes.js","../../../../node_modules/core-js/modules/_array-methods.js","../../../../node_modules/core-js/modules/_array-species-constructor.js","../../../../node_modules/core-js/modules/_array-species-create.js","../../../../node_modules/core-js/modules/_classof.js","../../../../node_modules/core-js/modules/_cof.js","../../../../node_modules/core-js/modules/_collection-strong.js","../../../../node_modules/core-js/modules/_collection.js","../../../../node_modules/core-js/modules/_core.js","../../../../node_modules/core-js/modules/_ctx.js","../../../../node_modules/core-js/modules/_defined.js","../../../../node_modules/core-js/modules/_descriptors.js","../../../../node_modules/core-js/modules/_dom-create.js","../../../../node_modules/core-js/modules/_enum-bug-keys.js","../../../../node_modules/core-js/modules/_export.js","../../../../node_modules/core-js/modules/_fails.js","../../../../node_modules/core-js/modules/_fix-re-wks.js","../../../../node_modules/core-js/modules/_flags.js","../../../../node_modules/core-js/modules/_for-of.js","../../../../node_modules/core-js/modules/_function-to-string.js","../../../../node_modules/core-js/modules/_global.js","../../../../node_modules/core-js/modules/_has.js","../../../../node_modules/core-js/modules/_hide.js","../../../../node_modules/core-js/modules/_html.js","../../../../node_modules/core-js/modules/_ie8-dom-define.js","../../../../node_modules/core-js/modules/_inherit-if-required.js","../../../../node_modules/core-js/modules/_iobject.js","../../../../node_modules/core-js/modules/_is-array-iter.js","../../../../node_modules/core-js/modules/_is-array.js","../../../../node_modules/core-js/modules/_is-object.js","../../../../node_modules/core-js/modules/_is-regexp.js","../../../../node_modules/core-js/modules/_iter-call.js","../../../../node_modules/core-js/modules/_iter-create.js","../../../../node_modules/core-js/modules/_iter-define.js","../../../../node_modules/core-js/modules/_iter-detect.js","../../../../node_modules/core-js/modules/_iter-step.js","../../../../node_modules/core-js/modules/_iterators.js","../../../../node_modules/core-js/modules/_library.js","../../../../node_modules/core-js/modules/_meta.js","../../../../node_modules/core-js/modules/_object-create.js","../../../../node_modules/core-js/modules/_object-dp.js","../../../../node_modules/core-js/modules/_object-dps.js","../../../../node_modules/core-js/modules/_object-gopd.js","../../../../node_modules/core-js/modules/_object-gopn.js","../../../../node_modules/core-js/modules/_object-gpo.js","../../../../node_modules/core-js/modules/_object-keys-internal.js","../../../../node_modules/core-js/modules/_object-keys.js","../../../../node_modules/core-js/modules/_object-pie.js","../../../../node_modules/core-js/modules/_property-desc.js","../../../../node_modules/core-js/modules/_redefine-all.js","../../../../node_modules/core-js/modules/_redefine.js","../../../../node_modules/core-js/modules/_regexp-exec-abstract.js","../../../../node_modules/core-js/modules/_regexp-exec.js","../../../../node_modules/core-js/modules/_set-proto.js","../../../../node_modules/core-js/modules/_set-species.js","../../../../node_modules/core-js/modules/_set-to-string-tag.js","../../../../node_modules/core-js/modules/_shared-key.js","../../../../node_modules/core-js/modules/_shared.js","../../../../node_modules/core-js/modules/_species-constructor.js","../../../../node_modules/core-js/modules/_strict-method.js","../../../../node_modules/core-js/modules/_string-at.js","../../../../node_modules/core-js/modules/_to-absolute-index.js","../../../../node_modules/core-js/modules/_to-integer.js","../../../../node_modules/core-js/modules/_to-iobject.js","../../../../node_modules/core-js/modules/_to-length.js","../../../../node_modules/core-js/modules/_to-object.js","../../../../node_modules/core-js/modules/_to-primitive.js","../../../../node_modules/core-js/modules/_uid.js","../../../../node_modules/core-js/modules/_validate-collection.js","../../../../node_modules/core-js/modules/_wks.js","../../../../node_modules/core-js/modules/core.get-iterator-method.js","../../../../node_modules/core-js/modules/es6.array.filter.js","../../../../node_modules/core-js/modules/es6.array.find.js","../../../../node_modules/core-js/modules/es6.array.iterator.js","../../../../node_modules/core-js/modules/es6.array.map.js","../../../../node_modules/core-js/modules/es6.array.slice.js","../../../../node_modules/core-js/modules/es6.array.sort.js","../../../../node_modules/core-js/modules/es6.function.name.js","../../../../node_modules/core-js/modules/es6.object.to-string.js","../../../../node_modules/core-js/modules/es6.regexp.constructor.js","../../../../node_modules/core-js/modules/es6.regexp.exec.js","../../../../node_modules/core-js/modules/es6.regexp.match.js","../../../../node_modules/core-js/modules/es6.regexp.replace.js","../../../../node_modules/core-js/modules/es6.regexp.split.js","../../../../node_modules/core-js/modules/es6.set.js","../../../../node_modules/core-js/modules/es6.string.iterator.js","../../../../node_modules/core-js/modules/web.dom.iterable.js","../../../../external window \"grappelli\"","../../../../external window \"grp\"","../../../../webpack/bootstrap","../../../../webpack/runtime/compat get default export","../../../../webpack/runtime/define property getters","../../../../webpack/runtime/hasOwnProperty shorthand","../../../../webpack/runtime/make namespace object","webpack://DJNesting/./nested_admin/static/nested_admin/src/nested_admin.scss?471b","../src/nested-admin/index.js"],"sourcesContent":["import $ from \"jquery\";\n\n/**\n * Converts a grp.jQuery instance to a django.jQuery instance.\n */\nfunction django$($sel) {\n if (typeof window.grp === \"undefined\") {\n return $($sel);\n }\n if (window.grp.jQuery.fn.init === $.fn.init) {\n return $($sel);\n }\n const $djangoSel = $($sel);\n if ($sel.prevObject) {\n $djangoSel.prevObject = django$($sel.prevObject);\n }\n return $djangoSel;\n}\n\nexport default django$;\n","import $ from \"jquery\";\n\n/**\n * For grappelli 2.14, converts a django.jQuery instance to a grp.jQuery\n * instance. Otherwise (if grappelli is not present, or for grappelli <= 2.13,\n * where the grappelli jQuery instance is the same as django's), returns the\n * object that was passed in, unchanged.\n */\nfunction grp$($sel) {\n if (typeof window.grp === \"undefined\") {\n return $($sel);\n }\n if (window.grp.jQuery.fn.init === $.fn.init) {\n return $($sel);\n }\n const $grpSel = window.grp.jQuery($sel);\n if ($sel.prevObject) {\n $grpSel.prevObject = grp$($sel.prevObject);\n }\n return $grpSel;\n}\n\nexport default grp$;\n","import $ from \"jquery\";\n\nimport regexQuote from \"./regexquote\";\nimport DJNesting from \"./utils\";\nimport * as grappelli from \"grappelli\";\nimport grp from \"grp\";\nimport grp$ from \"./grp$\";\nimport django$ from \"./django$\";\n\nvar pluginName = \"djangoFormset\";\n\nclass DjangoFormset {\n constructor(inline) {\n this.opts = {\n emptyClass: \"empty-form grp-empty-form djn-empty-form\",\n predeleteClass: \"grp-predelete\",\n };\n this.$inline = $(inline);\n this.prefix = this.$inline.djangoFormsetPrefix();\n this._$totalForms = this.$inline.find(\n \"#id_\" + this.prefix + \"-TOTAL_FORMS\"\n );\n this._$totalForms.attr(\"autocomplete\", \"off\");\n this._$template = $(\"#\" + this.prefix + \"-empty\");\n\n var inlineModelClassName = this.$inline.djnData(\"inlineModel\");\n const nestingLevel = this.$inline.djnData(\"nestingLevel\");\n const handlerSelector = `.djn-model-${inlineModelClassName}.djn-level-${nestingLevel}`;\n\n this.opts = $.extend({}, this.opts, {\n childTypes: this.$inline.data(\"inlineFormset\").options.childTypes,\n formsetFkModel: this.$inline.djnData(\"formsetFkModel\"),\n addButtonSelector: \".djn-add-handler\" + handlerSelector,\n removeButtonSelector: \".djn-remove-handler\" + handlerSelector,\n deleteButtonSelector: \".djn-delete-handler\" + handlerSelector,\n formClass:\n \"dynamic-form grp-dynamic-form djn-dynamic-form-\" +\n inlineModelClassName,\n formClassSelector: \".djn-dynamic-form-\" + inlineModelClassName,\n });\n\n DJNesting.initRelatedFields(this.prefix, this.$inline.djnData());\n DJNesting.initAutocompleteFields(this.prefix, this.$inline.djnData());\n\n if (this.opts.childTypes) {\n this._setupPolymorphic();\n }\n this._bindEvents();\n\n this._initializeForms();\n\n this.$inline\n .find('.djn-items:not([id*=\"-empty\"])')\n .trigger(\"djnesting:init\");\n\n // initialize nested formsets\n this.$inline\n .find(\n '.djn-group[id$=\"-group\"][id^=\"' +\n this.prefix +\n '\"][data-inline-formset]:not([id*=\"-empty\"])'\n )\n .each(function () {\n $(this)[pluginName]();\n });\n\n if (this.$inline.is(\".djn-group-root\")) {\n DJNesting.createSortable(this.$inline);\n }\n\n $(document).trigger(\"djnesting:initialized\", [this.$inline, this]);\n }\n _setupPolymorphic() {\n if (!this.opts.childTypes) {\n throw Error(\n \"The polymorphic fieldset options.childTypes is not defined!\"\n );\n }\n let menu = '
\";\n const $addButton = this.$inline.find(this.opts.addButtonSelector);\n const $menu = $(menu);\n $addButton.after($menu);\n }\n\n _initializeForms() {\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n if (maxForms <= totalForms) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parents(\".djn-add-item\")\n .hide();\n }\n for (var i = 0; i < totalForms; i++) {\n this._initializeForm(\"#\" + this.prefix + \"-\" + i);\n }\n }\n _initializeForm(form) {\n var $form = $(form);\n var formPrefix = $form.djangoFormPrefix();\n $form.addClass(this.opts.formClass);\n if ($form.hasClass(\"has_original\")) {\n $(\"#id_\" + formPrefix + \"DELETE:checked\").toggleClass(\n this.opts.predeleteClass\n );\n }\n var minForms = this.mgmtVal(\"MIN_NUM_FORMS\");\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var self = this;\n var hideRemoveButton = totalForms <= minForms;\n this.$inline.djangoFormsetForms().each(function () {\n var showHideMethod = hideRemoveButton ? \"hide\" : \"show\";\n $(this).find(self.opts.removeButtonSelector)[showHideMethod]();\n });\n }\n _bindEvents($el) {\n var self = this;\n if (typeof $el == \"undefined\") {\n $el = this.$inline;\n }\n const $addButton = $el.find(this.opts.addButtonSelector);\n $addButton.off(\"click.djnesting\").on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n const $menu = $(this).next(\".polymorphic-type-menu\");\n if (!$menu.length) {\n self.add();\n } else {\n if (!$menu.is(\":visible\")) {\n function hideMenu() {\n $menu.hide();\n $(document).off(\"click\", hideMenu);\n }\n $(document).on(\"click\", hideMenu);\n }\n $menu.show();\n }\n });\n const $menuButtons = $addButton.parent().find(\"> .polymorphic-type-menu a\");\n $menuButtons.off(\"click.djnesting\").on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n const polymorphicType = $(this).attr(\"data-type\");\n self.add(null, polymorphicType);\n const $menu = $(e.target).closest(\".polymorphic-type-menu\");\n if ($menu.is(\":visible\")) {\n $menu.hide();\n }\n });\n $el\n .find(this.opts.removeButtonSelector)\n .filter(function () {\n return !$(this).closest(\".djn-empty-form\").length;\n })\n .off(\"click.djnesting\")\n .on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n var $form = $(this).closest(self.opts.formClassSelector);\n self.remove($form);\n });\n\n var deleteClickHandler = function (e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n var $form = $(this).closest(self.opts.formClassSelector);\n var $deleteInput = $(\"#id_\" + $form.djangoFormPrefix() + \"DELETE\");\n if (!$deleteInput.is(\":checked\")) {\n self[\"delete\"]($form);\n } else {\n self.undelete($form);\n }\n };\n\n var $deleteButton = $el\n .find(this.opts.deleteButtonSelector)\n .filter(function () {\n return !$(this).closest(\".djn-empty-form\").length;\n });\n\n $deleteButton\n .off(\"click.djnesting\")\n .on(\"click.djnesting\", deleteClickHandler);\n $deleteButton\n .find('[id$=\"-DELETE\"]')\n .on(\"mousedown.djnesting\", deleteClickHandler);\n }\n remove(form) {\n var $form = $(form);\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var minForms = this.mgmtVal(\"MIN_NUM_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n var index = $form.djangoFormIndex();\n var isInitial = $form.data(\"isInitial\");\n\n // Clearing out the form HTML itself using DOM APIs is much faster\n // than using jQuery to remove the element. Using jQuery is so\n // slow that it hangs the page.\n $form[0].innerHTML = \"\";\n $form.remove();\n\n totalForms -= 1;\n this.mgmtVal(\"TOTAL_FORMS\", totalForms);\n\n if (maxForms - totalForms >= 0) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parent(\".djn-add-item,li\")\n .show();\n }\n\n this._fillGap(index, isInitial);\n\n var self = this;\n var hideRemoveButton = totalForms <= minForms;\n this.$inline.djangoFormsetForms().each(function () {\n var showHideMethod = hideRemoveButton ? \"hide\" : \"show\";\n $(this).find(self.opts.removeButtonSelector)[showHideMethod]();\n });\n\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n\n // Also fire using the events that were added in Django 1.9\n $(document).trigger(\"formset:removed\", [$form, this.prefix]);\n\n document.dispatchEvent(\n new CustomEvent(\"formset:removed\", {\n detail: {\n formsetName: this.prefix,\n },\n })\n );\n }\n delete(form) {\n var self = this,\n $form = $(form),\n formPrefix = $form.djangoFormPrefix(),\n $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n\n if ($form.hasClass(this.opts.predeleteClass)) {\n return;\n }\n\n if (!$form.data(\"isInitial\")) {\n return;\n }\n $deleteInput.attr(\"checked\", \"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = true;\n }\n $form.addClass(this.opts.predeleteClass);\n\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n $childInline.djangoFormsetForms().each(function () {\n if ($(this).hasClass(self.opts.predeleteClass)) {\n $(this).data(\"alreadyDeleted\", true);\n } else {\n childFormset.delete(this);\n }\n });\n });\n $form.find(\".cropduster-form\").each(function () {\n var formPrefix = $(this).djangoFormsetPrefix() + \"-0-\";\n var $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n $deleteInput.attr(\"checked\", \"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = true;\n }\n });\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n $(document).trigger(\"formset:deleted\", [$form, this.prefix]);\n }\n undelete(form) {\n var $form = $(form),\n formPrefix = $form.djangoFormPrefix(),\n $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n\n if ($form.parent().closest(\".\" + this.opts.predeleteClass).length) {\n return;\n }\n if ($form.hasClass(\"has_original\")) {\n $deleteInput.removeAttr(\"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = false;\n }\n $form.removeClass(this.opts.predeleteClass);\n }\n $form.data(\"alreadyDeleted\", false);\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n $childInline.djangoFormsetForms().each(function () {\n if ($(this).data(\"alreadyDeleted\")) {\n $(this).data(\"alreadyDeleted\", false);\n } else {\n childFormset.undelete(this);\n }\n });\n });\n $form.find(\".cropduster-form\").each(function () {\n var formPrefix = $(this).djangoFormsetPrefix() + \"-0-\";\n var $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n $deleteInput.removeAttr(\"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = false;\n }\n });\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n $(document).trigger(\"formset:undeleted\", [$form, this.prefix]);\n }\n add(spliceIndex, ctype) {\n var self = this;\n const $template = ctype\n ? $(`#${this.prefix}-empty-${ctype}`)\n : this._$template;\n var $form = $template.clone(true);\n\n // For django-grappelli >= 2.14, where the grp.jQuery instance is not\n // the same as django.jQuery, we must copy any prepopulated_field\n // dependency data from grp.jQuery to the cloned nodes.\n grp$($template)\n .find(\":data(dependency_ids)\")\n .each(function () {\n const id = $(this).attr(\"id\");\n const $el = $form.find(`#${id}`);\n grp$($el).data($.extend({}, $el.data(), grp$(this).data()));\n });\n\n var index = this.mgmtVal(\"TOTAL_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n var isNested = this.$inline.hasClass(\"djn-group-nested\");\n\n $(document).trigger(\"djnesting:beforeadded\", [this.$inline, $form]);\n\n $form.removeClass(this.opts.emptyClass);\n $form.addClass(\"djn-item\");\n $form.attr(\"id\", $form.attr(\"id\").replace(/\\-empty.*?$/, \"-\" + index));\n\n if (isNested) {\n $form.append(DJNesting.createContainerElement());\n }\n\n DJNesting.updateFormAttributes(\n $form,\n new RegExp(\n '([#_]id_|[\\\\#]|^id_|\"|^)' +\n regexQuote(this.prefix) +\n \"\\\\-(?:__prefix__|empty)\\\\-\",\n \"g\"\n ),\n \"$1\" + this.prefix + \"-\" + index + \"-\"\n );\n\n let $firstTemplate = this._$template;\n if (this.opts.childTypes) {\n $firstTemplate = $template\n .closest(\".djn-group\")\n .find(\n '> .djn-items > [id*=\"-empty\"], > .djn-fieldset > .djn-items > [id*=\"-empty\"]'\n )\n .eq(0);\n }\n if (this.opts.childTypes) {\n const compatibleParents = this.$inline.djnData(\"compatibleParents\") || {};\n $form.find(\"> .djn-group\").each((i, el) => {\n const fkModel = $(el).djnData(\"formsetFkModel\");\n const compatModels = compatibleParents[ctype] || [];\n const $el = $(el);\n const parentModel = $el.djnData(\"inlineParentModel\");\n const isPolymorphic = !!$el.data(\"inlineFormset\").options.childTypes;\n const formPrefix = $el.data(\"inlineFormset\").options.prefix;\n if (\n parentModel !== ctype ||\n (isPolymorphic &&\n fkModel !== ctype &&\n compatModels.indexOf(fkModel) === -1)\n ) {\n $el.find('input[id$=\"_FORMS\"]').each((i, input) => {\n input.value = 0;\n input.setAttribute(\"value\", \"0\");\n el.parentNode.appendChild(input);\n });\n el.parentNode.removeChild(el);\n }\n });\n }\n\n $form.insertBefore($firstTemplate);\n\n this.mgmtVal(\"TOTAL_FORMS\", index + 1);\n if (maxForms - (index + 1) <= 0) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parent(\".djn-add-item,li\")\n .hide();\n }\n\n DJNesting.updatePositions(this.prefix);\n\n if ($.isNumeric(spliceIndex)) {\n this.spliceInto($form, spliceIndex, true);\n } else {\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n }\n\n if (grappelli) {\n grappelli.reinitDateTimeFields(grp$($form));\n }\n DJNesting.DjangoInlines.initPrepopulatedFields(django$($form));\n DJNesting.DjangoInlines.reinitDateTimeShortCuts();\n DJNesting.DjangoInlines.updateSelectFilter($form);\n DJNesting.initRelatedFields(this.prefix);\n DJNesting.initAutocompleteFields(this.prefix);\n if (grp && grp.jQuery.fn.grp_collapsible) {\n var addBackMethod = grp.jQuery.fn.addBack ? \"addBack\" : \"andSelf\";\n grp$($form)\n .find('.grp-collapse:not([id$=\"-empty\"]):not([id*=\"-empty-\"])')\n [addBackMethod]()\n .grp_collapsible({\n toggle_handler_slctr: \".grp-collapse-handler:first\",\n closed_css: \"closed grp-closed\",\n open_css: \"open grp-open\",\n on_toggle: function () {\n $(document).trigger(\"djnesting:toggle\", [self.$inline]);\n },\n });\n }\n if (typeof $.fn.curated_content_type == \"function\") {\n $form.find(\".curated-content-type-select\").each(function () {\n $(this).curated_content_type();\n });\n }\n\n this._initializeForm($form);\n this._bindEvents($form);\n\n if (ctype) {\n const formsetModelClassName = this.$inline.djnData(\"inlineModel\");\n const inlineModelClassName = $form.attr(\"data-inline-model\");\n const $buttons = $form.find(`.djn-model-${formsetModelClassName}`);\n $buttons.addClass(`djn-model-${inlineModelClassName}`);\n $form.addClass(`djn-dynamic-form-${inlineModelClassName}`);\n }\n\n // find any nested formsets\n $form\n .find(\n '.djn-group[id$=\"-group\"][id^=\"' +\n this.prefix +\n '\"][data-inline-formset]:not([id*=\"-empty\"])'\n )\n .each(function () {\n $(this)[pluginName]();\n });\n\n // Fire an event on the document so other javascript applications\n // can be alerted to the newly inserted inline\n $(document).trigger(\"djnesting:added\", [this.$inline, $form]);\n\n // Also fire using the events that were added in Django 1.9\n $(document).trigger(\"formset:added\", [$form, this.prefix]);\n\n try {\n $form.get(0).dispatchEvent(\n new CustomEvent(\"formset:added\", {\n bubbles: true,\n detail: {\n formsetName: this.prefix,\n },\n })\n );\n } catch (e) {}\n\n return $form;\n }\n _fillGap(index, isInitial) {\n var $initialForm, $newForm;\n var formsets = this.$inline.djangoFormsetForms().toArray();\n // Sort formsets in index order, so that we get the last indexed form for the swap.\n formsets.sort(function (a, b) {\n return $(a).djangoFormIndex() - $(b).djangoFormIndex();\n });\n formsets.forEach(function (form) {\n var $form = $(form);\n var i = $form.djangoFormIndex();\n if (i <= index) {\n return;\n }\n if ($form.data(\"isInitial\")) {\n $initialForm = $form;\n } else {\n $newForm = $form;\n }\n });\n var $form = isInitial ? $initialForm || $newForm : $newForm;\n if (!$form) {\n return;\n }\n var oldIndex = $form.djangoFormIndex();\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote(this.prefix + \"-\" + oldIndex) + \"(?!\\\\-\\\\d)\"\n );\n $form.attr(\"id\", this.prefix + \"-\" + index);\n DJNesting.updateFormAttributes(\n $form,\n oldFormPrefixRegex,\n \"$1\" + this.prefix + \"-\" + index\n );\n\n // Update prefixes on nested DjangoFormset objects\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $form]);\n\n if (isInitial && $initialForm && $newForm) {\n this._fillGap(oldIndex, false);\n }\n }\n _makeRoomForInsert() {\n var initialFormCount = this.mgmtVal(\"INITIAL_FORMS\"),\n totalFormCount = this.mgmtVal(\"TOTAL_FORMS\"),\n gapIndex = initialFormCount,\n $existingForm = $(\"#\" + this.prefix + \"-\" + gapIndex);\n\n if (!$existingForm.length) {\n return;\n }\n\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote(this.prefix) + \"-\" + gapIndex + \"(?!\\\\-\\\\d)\"\n );\n $existingForm.attr(\"id\", this.prefix + \"-\" + totalFormCount);\n DJNesting.updateFormAttributes(\n $existingForm,\n oldFormPrefixRegex,\n \"$1\" + this.prefix + \"-\" + totalFormCount\n );\n\n // Update prefixes on nested DjangoFormset objects\n $existingForm.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $existingForm]);\n }\n /**\n * Splice a form into the current formset at new position `index`.\n */\n spliceInto($form, index, isNewAddition) {\n var initialFormCount = this.mgmtVal(\"INITIAL_FORMS\"),\n totalFormCount = this.mgmtVal(\"TOTAL_FORMS\"),\n oldFormsetPrefix = $form.djangoFormsetPrefix(),\n newFormsetPrefix = this.prefix,\n isInitial = $form.data(\"isInitial\"),\n newIndex,\n $before;\n\n // Make sure the form being spliced is from a different inline\n if ($form.djangoFormsetPrefix() == this.prefix) {\n var currentPosition = $form.prevAll(\n \".djn-item:not(.djn-no-drag,.djn-thead)\"\n ).length;\n if (currentPosition === index || typeof index == \"undefined\") {\n DJNesting.updatePositions(newFormsetPrefix);\n return;\n }\n $before = this.$inline\n .find(\"> .djn-items, > .tabular > .module > .djn-items\")\n .find(\"> .djn-item:not(#\" + $form.attr(\"id\") + \")\")\n .eq(index);\n $before.after($form);\n } else {\n var $oldInline = $(\"#\" + oldFormsetPrefix + \"-group\");\n var $currentFormInline = $form.closest(\".djn-group\");\n\n if ($currentFormInline.djangoFormsetPrefix() != newFormsetPrefix) {\n $before = this.$inline\n .find(\"> .djn-items, > .tabular > .module > .djn-items\")\n .find(\"> .djn-item\")\n .eq(index);\n $before.after($form);\n }\n\n var oldDjangoFormset = $oldInline.djangoFormset();\n oldDjangoFormset.mgmtVal(\n \"TOTAL_FORMS\",\n oldDjangoFormset.mgmtVal(\"TOTAL_FORMS\") - 1\n );\n oldDjangoFormset._fillGap($form.djangoFormIndex(), isInitial);\n\n if (isInitial) {\n oldDjangoFormset.mgmtVal(\n \"INITIAL_FORMS\",\n oldDjangoFormset.mgmtVal(\"INITIAL_FORMS\") - 1\n );\n\n var $parentInline = this.$inline.parent().closest(\".djn-group\");\n if ($parentInline.length) {\n var $parentForm = this.$inline.closest(\".djn-inline-form\");\n var parentPkField = ($parentInline.djnData(\"fieldNames\") || {}).pk;\n var $parentPk = $parentForm.djangoFormField(parentPkField);\n if (!$parentPk.val()) {\n $form.data(\"isInitial\", false);\n $form.attr(\"data-is-initial\", \"false\");\n isInitial = false;\n // Set initial form counts to 0 on nested DjangoFormsets\n setTimeout(function () {\n $form\n .find(\n '[name^=\"' +\n $form.djangoFormPrefix() +\n '\"][name$=\"-INITIAL_FORMS\"]'\n )\n .val(\"0\")\n .trigger(\"change\");\n }, 0);\n }\n }\n }\n\n if (isInitial) {\n this._makeRoomForInsert();\n }\n\n // Replace the ids for the splice form\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote($form.attr(\"id\")) + \"(?!\\\\-\\\\d)\"\n );\n newIndex = isInitial ? initialFormCount : totalFormCount;\n $form.attr(\"id\", newFormsetPrefix + \"-\" + newIndex);\n DJNesting.updateFormAttributes(\n $form,\n oldFormPrefixRegex,\n \"$1\" + newFormsetPrefix + \"-\" + newIndex\n );\n\n // Update prefixes on nested DjangoFormset objects\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $form]);\n\n if (isInitial) {\n this.mgmtVal(\"INITIAL_FORMS\", initialFormCount + 1);\n }\n this.mgmtVal(\"TOTAL_FORMS\", totalFormCount + 1);\n\n DJNesting.updatePositions(oldFormsetPrefix);\n $(document).trigger(\"djnesting:mutate\", [$oldInline]);\n }\n\n DJNesting.updatePositions(newFormsetPrefix);\n if (!isNewAddition) {\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n }\n }\n mgmtVal(name, newValue) {\n var $field = this.$inline.find(\"#id_\" + this.prefix + \"-\" + name);\n if (typeof newValue == \"undefined\") {\n return parseInt($field.val(), 10);\n } else {\n return parseInt($field.val(newValue).trigger(\"change\").val(), 10);\n }\n }\n}\n\n$.fn[pluginName] = function () {\n var options, fn, args;\n var $el = this.eq(0);\n\n if (\n arguments.length === 0 ||\n (arguments.length === 1 && $.type(arguments[0]) != \"string\")\n ) {\n options = arguments[0];\n var djangoFormset = $el.data(pluginName);\n if (!djangoFormset) {\n djangoFormset = new DjangoFormset($el, options);\n $el.data(pluginName, djangoFormset);\n }\n return djangoFormset;\n }\n\n fn = arguments[0];\n args = $.makeArray(arguments).slice(1);\n\n if (fn in DjangoFormset.prototype) {\n return $el.data(pluginName)[fn](args);\n } else {\n throw new Error(\"Unknown function call \" + fn + \" for $.fn.\" + pluginName);\n }\n};\n\nexport default DjangoFormset;\n","import $ from \"jquery\";\n\nvar prefixCache = {};\n\n$.fn.djnData = function (name) {\n var inlineFormsetData = $(this).data(\"inlineFormset\") || {},\n nestedOptions = inlineFormsetData.nestedOptions || {};\n if (!name) {\n return nestedOptions;\n } else {\n return nestedOptions[name];\n }\n};\n\n$.fn.djangoPrefixIndex = function () {\n var $this = this.length > 1 ? this.first() : this;\n var id = $this.attr(\"id\"),\n name = $this.attr(\"name\"),\n forattr = $this.attr(\"for\"),\n prefix,\n $form,\n $group,\n groupId,\n cacheKey,\n match,\n index;\n\n if (\n (match = prefixCache[id]) ||\n (match = prefixCache[name]) ||\n (match = prefixCache[forattr])\n ) {\n return match;\n }\n\n if (id && !prefix) {\n prefix = (id.match(/^(.*)\\-group$/) || [null, null])[1];\n }\n\n if (id && !prefix && $this.is(\".djn-item\") && id.match(/\\d+$/)) {\n [cacheKey, prefix, index] = id.match(/(.*?)\\-(\\d+)$/) || [null, null, null];\n }\n\n if (!prefix) {\n $form = $this.closest(\".djn-inline-form\");\n if ($form.length) {\n [cacheKey, prefix, index] = $form.attr(\"id\").match(/(.*?)\\-(\\d+)$/) || [\n null,\n null,\n null,\n ];\n } else {\n $group = $this.closest(\".djn-group\");\n if (!$group.length) {\n return null;\n }\n groupId = $group.attr(\"id\") || \"\";\n prefix = (groupId.match(/^(.*)\\-group$/) || [null, null])[1];\n }\n } else {\n if (prefix.substr(0, 3) == \"id_\") {\n prefix = prefix.substr(3);\n }\n\n if (!document.getElementById(prefix + \"-group\")) {\n return null;\n }\n }\n if (cacheKey) {\n prefixCache[cacheKey] = [prefix, index];\n }\n\n return [prefix, index];\n};\n\n$.fn.djangoFormPrefix = function () {\n var prefixIndex = this.djangoPrefixIndex();\n if (!prefixIndex || !prefixIndex[1]) {\n return null;\n }\n return prefixIndex[0] + \"-\" + prefixIndex[1] + \"-\";\n};\n\n$.fn.djangoFormIndex = function () {\n var prefixIndex = this.djangoPrefixIndex();\n return !prefixIndex || !prefixIndex[1] ? null : parseInt(prefixIndex[1], 10);\n};\n\n$.fn.djangoFormsetPrefix = function () {\n var prefixIndex = this.djangoPrefixIndex();\n return !prefixIndex ? null : prefixIndex[0];\n};\n\nvar filterDjangoFormsetForms = function (form, $group, formsetPrefix) {\n var formId = form.getAttribute(\"id\"),\n formIndex = formId.substr(formsetPrefix.length + 1);\n\n // Check if form id matches /{prefix}-\\d+/\n if (formId.indexOf(formsetPrefix) !== 0) {\n return false;\n }\n return !formIndex.match(/\\D/);\n};\n\n// Selects all initial forms within the same formset as the\n// element the method is being called on.\n$.fn.djangoFormsetForms = function () {\n var forms = [];\n this.each(function () {\n var $this = $(this),\n formsetPrefix = $this.djangoFormsetPrefix(),\n $group = formsetPrefix ? $(\"#\" + formsetPrefix + \"-group\") : null,\n $forms;\n\n if (!formsetPrefix || !$group.length) return;\n\n $forms = $group.find(\".djn-inline-form\").filter(function () {\n return filterDjangoFormsetForms(this, $group, formsetPrefix);\n });\n var sortedForms = $forms.toArray().sort(function (a, b) {\n return $(a).djangoFormIndex() - $(b).djangoFormIndex;\n });\n Array.prototype.push.apply(forms, sortedForms);\n });\n return this.pushStack(forms);\n};\n\nif (typeof $.djangoFormField != \"function\") {\n $.djangoFormField = function (fieldName, prefix, index) {\n var $empty = $([]),\n matches;\n if ((matches = prefix.match(/^(.+)\\-(\\d+)\\-$/))) {\n prefix = matches[1];\n index = matches[2];\n }\n index = parseInt(index, 10);\n if (isNaN(index)) {\n return $empty;\n }\n var namePrefix = prefix + \"-\" + index + \"-\";\n if (fieldName == \"*\") {\n return $('*[name^=\"' + namePrefix + '\"]').filter(function () {\n var fieldPart = $(this).attr(\"name\").substring(namePrefix.length);\n return fieldPart.indexOf(\"-\") === -1;\n });\n }\n var $field = $(\"#id_\" + namePrefix + fieldName);\n if (!$field.length && (fieldName == \"pk\" || fieldName == \"position\")) {\n var $group = $(\"#\" + prefix + \"-group\"),\n fieldNameData = $group.djnData(\"fieldNames\") || {};\n fieldName = fieldNameData[fieldName];\n if (!fieldName) {\n return $empty;\n }\n $field = $(\"#id_\" + namePrefix + fieldName);\n }\n return $field;\n };\n}\n\nif (typeof $.fn.djangoFormField != \"function\") {\n /**\n * Given a django model's field name, and the forms index in the\n * formset, returns the field's input element, or an empty jQuery\n * object on failure.\n *\n * @param String fieldName - 'pk', 'position', or the field's\n * name in django (e.g. 'content_type',\n * 'url', etc.)\n * @return jQuery object containing the field's input element, or\n * an empty jQuery object on failure\n */\n $.fn.djangoFormField = function (fieldName, index) {\n var prefixAndIndex = this.djangoPrefixIndex();\n var $empty = $([]);\n if (!prefixAndIndex) {\n return $empty;\n }\n var prefix = prefixAndIndex[0];\n if (typeof index == \"undefined\") {\n index = prefixAndIndex[1];\n if (typeof index == \"undefined\") {\n return $empty;\n }\n }\n return $.djangoFormField(fieldName, prefix, index);\n };\n}\n\nif (typeof $.fn.filterDjangoField != \"function\") {\n var djRegexCache = {};\n $.fn.filterDjangoField = function (prefix, fieldName, index) {\n var $field, fieldNameData;\n if (typeof index != \"undefined\") {\n if (typeof index == \"string\") {\n index = parseInt(index, 10);\n }\n if (typeof index == \"number\" && !isNaN(index)) {\n var fieldId = \"id_\" + prefix + \"-\" + index + \"-\" + fieldName;\n $field = $(\"#\" + fieldId);\n }\n } else {\n if (typeof djRegexCache[prefix] != \"object\") {\n djRegexCache[prefix] = {};\n }\n if (typeof djRegexCache[prefix][fieldName] == \"undefined\") {\n djRegexCache[prefix][fieldName] = new RegExp(\n \"^\" + prefix + \"-\\\\d+-\" + fieldName + \"$\"\n );\n }\n $field = this.find('input[name$=\"' + fieldName + '\"]').filter(\n function () {\n return this.getAttribute(\"name\").match(\n djRegexCache[prefix][fieldName]\n );\n }\n );\n }\n if (!$field.length && (fieldName == \"pk\" || fieldName == \"position\")) {\n fieldNameData = $(\"#\" + prefix + \"-group\").djnData(\"fieldNames\") || {};\n if (\n typeof fieldNameData[fieldName] &&\n fieldNameData[fieldName] != fieldName\n ) {\n $field = $(this).filterDjangoField(\n prefix,\n fieldNameData[fieldName],\n index\n );\n }\n }\n return $field;\n };\n}\n","export default window.django.jQuery;\n","import $ from \"jquery\";\n/*!\n * jQuery UI Sortable @VERSION\n * http://jqueryui.com\n *\n * Copyright 2012 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/sortable/\n *\n * Depends:\n *\tjquery.ui.core.js\n *\tjquery.ui.mouse.js\n *\tjquery.ui.widget.js\n */\nif ($.ui === undefined) {\n var jQuery = $;\n /* eslint-disable */\n (function(e,t){function i(t,i){var s,n,r,o=t.nodeName.toLowerCase();return\"area\"===o?(s=t.parentNode,n=s.name,t.href&&n&&\"map\"===s.nodeName.toLowerCase()?(r=e(\"img[usemap=#\"+n+\"]\")[0],!!r&&a(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:\"a\"===o?t.href||i:i)&&a(t)}function a(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return\"hidden\"===e.css(this,\"visibility\")}).length}var s=0,n=/^ui-id-\\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:\"1.10.3\",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,a){return\"number\"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),a&&a.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css(\"position\"))||/absolute/.test(this.css(\"position\"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,\"position\"))&&/(auto|scroll)/.test(e.css(this,\"overflow\")+e.css(this,\"overflow-y\")+e.css(this,\"overflow-x\"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,\"overflow\")+e.css(this,\"overflow-y\")+e.css(this,\"overflow-x\"))}).eq(0),/fixed/.test(this.css(\"position\"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css(\"zIndex\",i);if(this.length)for(var a,s,n=e(this[0]);n.length&&n[0]!==document;){if(a=n.css(\"position\"),(\"absolute\"===a||\"relative\"===a||\"fixed\"===a)&&(s=parseInt(n.css(\"zIndex\"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id=\"ui-id-\"+ ++s)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr(\"id\")})}}),e.extend(e.expr[\":\"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,a){return!!e.data(t,a[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,\"tabindex\")))},tabbable:function(t){var a=e.attr(t,\"tabindex\"),s=isNaN(a);return(s||a>=0)&&i(t,!s)}}),e(\"\").outerWidth(1).jquery||e.each([\"Width\",\"Height\"],function(i,a){function s(t,i,a,s){return e.each(n,function(){i-=parseFloat(e.css(t,\"padding\"+this))||0,a&&(i-=parseFloat(e.css(t,\"border\"+this+\"Width\"))||0),s&&(i-=parseFloat(e.css(t,\"margin\"+this))||0)}),i}var n=\"Width\"===a?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"],r=a.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn[\"inner\"+a]=function(i){return i===t?o[\"inner\"+a].call(this):this.each(function(){e(this).css(r,s(this,i)+\"px\")})},e.fn[\"outer\"+a]=function(t,i){return\"number\"!=typeof t?o[\"outer\"+a].call(this,t):this.each(function(){e(this).css(r,s(this,t,!0,i)+\"px\")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e(\"\").data(\"a-b\",\"a\").removeData(\"a-b\").data(\"a-b\")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart=\"onselectstart\"in document.createElement(\"div\"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?\"selectstart\":\"mousedown\")+\".ui-disableSelection\",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(\".ui-disableSelection\")}}),e.extend(e.ui,{plugin:{add:function(t,i,a){var s,n=e.ui[t].prototype;for(s in a)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([i,a[s]])},call:function(e,t,i){var a,s=e.plugins[t];if(s&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(a=0;s.length>a;a++)e.options[s[a][0]]&&s[a][1].apply(e.element,i)}},hasScroll:function(t,i){if(\"hidden\"===e(t).css(\"overflow\"))return!1;var a=i&&\"left\"===i?\"scrollLeft\":\"scrollTop\",s=!1;return t[a]>0?!0:(t[a]=1,s=t[a]>0,t[a]=0,s)}})})(jQuery);(function(e,t){var i=0,s=Array.prototype.slice,a=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler(\"remove\")}catch(n){}a(t)},e.widget=function(i,s,a){var n,r,o,h,l={},u=i.split(\".\")[0];i=i.split(\".\")[1],n=u+\"-\"+i,a||(a=s,s=e.Widget),e.expr[\":\"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:a.version,_proto:e.extend({},a),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(a,function(i,a){return e.isFunction(a)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,n=this._superApply;return this._super=e,this._superApply=t,i=a.apply(this,arguments),this._super=s,this._superApply=n,i}}(),t):(l[i]=a,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:n}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+\".\"+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var a,n,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(a in r[o])n=r[o][a],r[o].hasOwnProperty(a)&&n!==t&&(i[a]=e.isPlainObject(n)?e.isPlainObject(i[a])?e.widget.extend({},i[a],n):e.widget.extend({},n):n);return i},e.widget.bridge=function(i,a){var n=a.prototype.widgetFullName||i;e.fn[i]=function(r){var o=\"string\"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,a=e.data(this,n);return a?e.isFunction(a[r])&&\"_\"!==r.charAt(0)?(s=a[r].apply(a,h),s!==a&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error(\"no such method '\"+r+\"' for \"+i+\" widget instance\"):e.error(\"cannot call methods on \"+i+\" prior to initialization; \"+\"attempted to call method '\"+r+\"'\")}):this.each(function(){var t=e.data(this,n);t?t.option(r||{})._init():e.data(this,n,new a(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"
\",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace=\".\"+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger(\"create\",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr(\"aria-disabled\").removeClass(this.widgetFullName+\"-disabled \"+\"ui-state-disabled\"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass(\"ui-state-hover\"),this.focusable.removeClass(\"ui-state-focus\")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var a,n,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if(\"string\"==typeof i)if(o={},a=i.split(\".\"),i=a.shift(),a.length){for(n=o[i]=e.widget.extend({},this.options[i]),r=0;a.length-1>r;r++)n[a[r]]=n[a[r]]||{},n=n[a[r]];if(i=a.pop(),s===t)return n[i]===t?null:n[i];n[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,\"disabled\"===e&&(this.widget().toggleClass(this.widgetFullName+\"-disabled ui-state-disabled\",!!t).attr(\"aria-disabled\",t),this.hoverable.removeClass(\"ui-state-hover\"),this.focusable.removeClass(\"ui-state-focus\")),this},enable:function(){return this._setOption(\"disabled\",!1)},disable:function(){return this._setOption(\"disabled\",!0)},_on:function(i,s,a){var n,r=this;\"boolean\"!=typeof i&&(a=s,s=i,i=!1),a?(s=n=e(s),this.bindings=this.bindings.add(s)):(a=s,s=this.element,n=this.widget()),e.each(a,function(a,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass(\"ui-state-disabled\")?(\"string\"==typeof o?r[o]:o).apply(r,arguments):t}\"string\"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=a.match(/^(\\w+)\\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?n.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||\"\").split(\" \").join(this.eventNamespace+\" \")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return(\"string\"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass(\"ui-state-hover\")},mouseleave:function(t){e(t.currentTarget).removeClass(\"ui-state-hover\")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass(\"ui-state-focus\")},focusout:function(t){e(t.currentTarget).removeClass(\"ui-state-focus\")}})},_trigger:function(t,i,s){var a,n,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],n=i.originalEvent)for(a in n)a in i||(i[a]=n[a]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:\"fadeIn\",hide:\"fadeOut\"},function(t,i){e.Widget.prototype[\"_\"+t]=function(s,a,n){\"string\"==typeof a&&(a={effect:a});var r,o=a?a===!0||\"number\"==typeof a?i:a.effect||i:t;a=a||{},\"number\"==typeof a&&(a={duration:a}),r=!e.isEmptyObject(a),a.complete=n,a.delay&&s.delay(a.delay),r&&e.effects&&e.effects.effect[o]?s[t](a):o!==t&&s[o]?s[o](a.duration,a.easing,n):s.queue(function(i){e(this)[t](),n&&n.call(s[0]),i()})}})})(jQuery);(function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget(\"ui.mouse\",{version:\"1.10.3\",options:{cancel:\"input,textarea,button,select,option\",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind(\"mousedown.\"+this.widgetName,function(e){return t._mouseDown(e)}).bind(\"click.\"+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+\".preventClickEvent\")?(e.removeData(i.target,t.widgetName+\".preventClickEvent\"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind(\".\"+this.widgetName),this._mouseMoveDelegate&&e(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,a=1===i.which,n=\"string\"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return a&&!n&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+\".preventClickEvent\")&&e.removeData(i.target,this.widgetName+\".preventClickEvent\"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).bind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+\".preventClickEvent\",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);(function(e,t){function i(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function s(t,i){return parseInt(e.css(t,i),10)||0}function a(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,r=Math.max,o=Math.abs,h=Math.round,l=/left|center|right/,u=/top|center|bottom/,c=/[\\+\\-]\\d+(\\.[\\d]+)?%?/,d=/^\\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var i,s,a=e(\"
\"),r=a.children()[0];return e(\"body\").append(a),i=r.offsetWidth,a.css(\"overflow\",\"scroll\"),s=r.offsetWidth,i===s&&(s=a[0].clientWidth),a.remove(),n=i-s},getScrollInfo:function(t){var i=t.isWindow?\"\":t.element.css(\"overflow-x\"),s=t.isWindow?\"\":t.element.css(\"overflow-y\"),a=\"scroll\"===i||\"auto\"===i&&t.widths?\"left\":i>0?\"right\":\"center\",vertical:0>n?\"top\":a>0?\"bottom\":\"middle\"};c>p&&p>o(i+s)&&(h.horizontal=\"center\"),d>m&&m>o(a+n)&&(h.vertical=\"middle\"),h.important=r(o(i),o(s))>r(o(a),o(n))?\"horizontal\":\"vertical\",t.using.call(this,e,h)}),u.offset(e.extend(M,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollLeft:s.offset.left,n=s.width,o=e.left-t.collisionPosition.marginLeft,h=a-o,l=o+t.collisionWidth-n-a;t.collisionWidth>n?h>0&&0>=l?(i=e.left+h+t.collisionWidth-n-a,e.left+=h-i):e.left=l>0&&0>=h?a:h>l?a+n-t.collisionWidth:a:h>0?e.left+=h:l>0?e.left-=l:e.left=r(e.left-o,e.left)},top:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollTop:s.offset.top,n=t.within.height,o=e.top-t.collisionPosition.marginTop,h=a-o,l=o+t.collisionHeight-n-a;t.collisionHeight>n?h>0&&0>=l?(i=e.top+h+t.collisionHeight-n-a,e.top+=h-i):e.top=l>0&&0>=h?a:h>l?a+n-t.collisionHeight:a:h>0?e.top+=h:l>0?e.top-=l:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var i,s,a=t.within,n=a.offset.left+a.scrollLeft,r=a.width,h=a.isWindow?a.scrollLeft:a.offset.left,l=e.left-t.collisionPosition.marginLeft,u=l-h,c=l+t.collisionWidth-r-h,d=\"left\"===t.my[0]?-t.elemWidth:\"right\"===t.my[0]?t.elemWidth:0,p=\"left\"===t.at[0]?t.targetWidth:\"right\"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+d+p+f+t.collisionWidth-r-n,(0>i||o(u)>i)&&(e.left+=d+p+f)):c>0&&(s=e.left-t.collisionPosition.marginLeft+d+p+f-h,(s>0||c>o(s))&&(e.left+=d+p+f))},top:function(e,t){var i,s,a=t.within,n=a.offset.top+a.scrollTop,r=a.height,h=a.isWindow?a.scrollTop:a.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-h,c=l+t.collisionHeight-r-h,d=\"top\"===t.my[1],p=d?-t.elemHeight:\"bottom\"===t.my[1]?t.elemHeight:0,f=\"top\"===t.at[1]?t.targetHeight:\"bottom\"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-r-n,e.top+p+f+m>u&&(0>s||o(u)>s)&&(e.top+=p+f+m)):c>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-h,e.top+p+f+m>c&&(i>0||c>o(i))&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,a,n,r=document.getElementsByTagName(\"body\")[0],o=document.createElement(\"div\");t=document.createElement(r?\"div\":\"body\"),s={visibility:\"hidden\",width:0,height:0,border:0,margin:0,background:\"none\"},r&&e.extend(s,{position:\"absolute\",left:\"-1000px\",top:\"-1000px\"});for(n in s)t.style[n]=s[n];t.appendChild(o),i=r||document.documentElement,i.insertBefore(t,i.firstChild),o.style.cssText=\"position: absolute; left: 10.7432222px;\",a=e(o).offset().left,e.support.offsetFractions=a>10&&11>a,t.innerHTML=\"\",i.removeChild(t)}()})(jQuery);\n\t\t/* eslint-enable */\n}\n\n$.widget(\"ui.djnsortable\", $.ui.mouse, {\n version: \"@VERSION\",\n widgetEventPrefix: \"sort\",\n ready: false,\n options: {\n appendTo: \"parent\",\n axis: false,\n connectWith: false,\n containment: false,\n cursor: \"auto\",\n cursorAt: false,\n dropOnEmpty: true,\n forcePlaceholderSize: false,\n forceHelperSize: false,\n grid: false,\n handle: false,\n helper: \"original\",\n items: \"> *\",\n opacity: false,\n placeholder: false,\n revert: false,\n scroll: true,\n scrollSensitivity: 20,\n scrollSpeed: 20,\n scope: \"default\",\n tolerance: \"intersect\",\n zIndex: 1000,\n },\n\n _isOverAxis: function (x, reference, size) {\n return x >= reference && x < reference + size;\n },\n\n _create: function () {\n var o = this.options;\n this.containerCache = {};\n this.element.addClass(\"ui-sortable\");\n\n //Get the items\n this.refresh();\n\n //Let's determine if the items are being displayed horizontally\n this.floating = this.items.length\n ? o.axis === \"x\" ||\n /left|right/.test(this.items[0].item.css(\"float\")) ||\n /inline|table-cell/.test(this.items[0].item.css(\"display\"))\n : false;\n\n //Let's determine the parent's offset\n this.offset = this.element.offset();\n\n //Initialize mouse events for interaction\n this._mouseInit();\n\n //We're ready to go\n this.ready = true;\n },\n\n _destroy: function () {\n this.element.removeClass(\"ui-sortable ui-sortable-disabled\");\n this._mouseDestroy();\n\n for (var i = this.items.length - 1; i >= 0; i--)\n this.items[i].item.removeData(this.widgetName + \"-item\");\n\n return this;\n },\n\n _setOption: function (key, value) {\n if (key === \"disabled\") {\n this.options[key] = value;\n\n this.widget().toggleClass(\"ui-sortable-disabled\", !!value);\n } else {\n // Don't call widget base _setOption for disable as it adds ui-state-disabled class\n $.Widget.prototype._setOption.apply(this, arguments);\n }\n },\n\n _mouseCapture: function (event, overrideHandle) {\n var that = this;\n\n if (this.reverting) {\n return false;\n }\n\n if (this.options.disabled || this.options.type == \"static\") return false;\n\n //We have to refresh the items data once first\n this._refreshItems(event);\n\n //Find out if the clicked node (or one of its parents) is a actual item in this.items\n var currentItem = null,\n nodes = $(event.target)\n .parents()\n .each(function () {\n if ($.data(this, that.widgetName + \"-item\") == that) {\n currentItem = $(this);\n return false;\n }\n });\n if ($.data(event.target, that.widgetName + \"-item\") == that)\n currentItem = $(event.target);\n\n if (!currentItem) return false;\n if (this.options.handle && !overrideHandle) {\n var validHandle = false;\n var addBackMethod = $.fn.addBack ? \"addBack\" : \"andSelf\";\n\n $(this.options.handle, currentItem)\n .find(\"*\")\n [addBackMethod]()\n .each(function () {\n if (this == event.target) validHandle = true;\n });\n if (!validHandle) return false;\n }\n\n this.currentItem = currentItem;\n this._removeCurrentsFromItems();\n return true;\n },\n\n _mouseStart: function (event, overrideHandle, noActivation) {\n var o = this.options;\n this.currentContainer = this;\n\n //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture\n this.refreshPositions();\n\n //Create and append the visible helper\n this.helper = this._createHelper(event);\n\n //Cache the helper size\n this._cacheHelperProportions();\n\n /*\n * - Position generation -\n * This block generates everything position related - it's the core of draggables.\n */\n\n //Cache the margins of the original element\n this._cacheMargins();\n\n //Get the next scrolling parent\n this.scrollParent = this.helper.scrollParent();\n\n //The element's absolute position on the page minus margins\n this.offset = this.currentItem.offset();\n this.offset = {\n top: this.offset.top - this.margins.top,\n left: this.offset.left - this.margins.left,\n };\n\n $.extend(this.offset, {\n click: {\n //Where the click happened, relative to the element\n left: event.pageX - this.offset.left,\n top: event.pageY - this.offset.top,\n },\n parent: this._getParentOffset(),\n relative: this._getRelativeOffset(), //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper\n });\n\n // Only after we got the offset, we can change the helper's position to absolute\n // TODO: Still need to figure out a way to make relative sorting possible\n this.helper.css(\"position\", \"absolute\");\n this.cssPosition = this.helper.css(\"position\");\n\n //Generate the original position\n this.originalPosition = this._generatePosition(event);\n this.originalPageX = event.pageX;\n this.originalPageY = event.pageY;\n\n //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied\n o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt);\n\n //Cache the former DOM position\n this.domPosition = {\n prev: this.currentItem.prev()[0],\n parent: this.currentItem.parent()[0],\n };\n\n //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way\n if (this.helper[0] != this.currentItem[0]) {\n this.currentItem.hide();\n }\n\n //Create the placeholder\n this._createPlaceholder();\n\n //Set a containment if given in the options\n if (o.containment) this._setContainment();\n\n if (o.cursor) {\n // cursor option\n if ($(\"body\").css(\"cursor\")) this._storedCursor = $(\"body\").css(\"cursor\");\n $(\"body\").css(\"cursor\", o.cursor);\n }\n\n if (o.opacity) {\n // opacity option\n if (this.helper.css(\"opacity\"))\n this._storedOpacity = this.helper.css(\"opacity\");\n this.helper.css(\"opacity\", o.opacity);\n }\n\n if (o.zIndex) {\n // zIndex option\n if (this.helper.css(\"zIndex\"))\n this._storedZIndex = this.helper.css(\"zIndex\");\n this.helper.css(\"zIndex\", o.zIndex);\n }\n\n //Prepare scrolling\n if (\n this.scrollParent[0] != document &&\n this.scrollParent[0].tagName != \"HTML\"\n )\n this.overflowOffset = this.scrollParent.offset();\n\n //Call callbacks\n this._trigger(\"start\", event, this._uiHash());\n\n //Recache the helper size\n if (!this._preserveHelperProportions) this._cacheHelperProportions();\n\n //Post 'activate' events to possible containers\n if (!noActivation) {\n for (var i = this.containers.length - 1; i >= 0; i--) {\n this.containers[i]._trigger(\"activate\", event, this._uiHash(this));\n }\n }\n\n //Prepare possible droppables\n if ($.ui.ddmanager) $.ui.ddmanager.current = this;\n\n if ($.ui.ddmanager && !o.dropBehaviour)\n $.ui.ddmanager.prepareOffsets(this, event);\n\n this.dragging = true;\n\n this.helper.addClass(\"ui-sortable-helper\");\n this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position\n return true;\n },\n\n _mouseDrag: function (event) {\n //Compute the helpers position\n this.position = this._generatePosition(event);\n this.positionAbs = this._convertPositionTo(\"absolute\");\n\n if (!this.lastPositionAbs) {\n this.lastPositionAbs = this.positionAbs;\n }\n\n //Do scrolling\n if (this.options.scroll) {\n var o = this.options,\n scrolled = false;\n if (\n this.scrollParent[0] != document &&\n this.scrollParent[0].tagName != \"HTML\"\n ) {\n if (\n this.overflowOffset.top +\n this.scrollParent[0].offsetHeight -\n event.pageY <\n o.scrollSensitivity\n )\n this.scrollParent[0].scrollTop = scrolled =\n this.scrollParent[0].scrollTop + o.scrollSpeed;\n else if (event.pageY - this.overflowOffset.top < o.scrollSensitivity)\n this.scrollParent[0].scrollTop = scrolled =\n this.scrollParent[0].scrollTop - o.scrollSpeed;\n\n if (\n this.overflowOffset.left +\n this.scrollParent[0].offsetWidth -\n event.pageX <\n o.scrollSensitivity\n )\n this.scrollParent[0].scrollLeft = scrolled =\n this.scrollParent[0].scrollLeft + o.scrollSpeed;\n else if (event.pageX - this.overflowOffset.left < o.scrollSensitivity)\n this.scrollParent[0].scrollLeft = scrolled =\n this.scrollParent[0].scrollLeft - o.scrollSpeed;\n } else {\n if (event.pageY - $(document).scrollTop() < o.scrollSensitivity)\n scrolled = $(document).scrollTop(\n $(document).scrollTop() - o.scrollSpeed\n );\n else if (\n $(window).height() - (event.pageY - $(document).scrollTop()) <\n o.scrollSensitivity\n )\n scrolled = $(document).scrollTop(\n $(document).scrollTop() + o.scrollSpeed\n );\n\n if (event.pageX - $(document).scrollLeft() < o.scrollSensitivity)\n scrolled = $(document).scrollLeft(\n $(document).scrollLeft() - o.scrollSpeed\n );\n else if (\n $(window).width() - (event.pageX - $(document).scrollLeft()) <\n o.scrollSensitivity\n )\n scrolled = $(document).scrollLeft(\n $(document).scrollLeft() + o.scrollSpeed\n );\n }\n\n if (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)\n $.ui.ddmanager.prepareOffsets(this, event);\n }\n\n //Regenerate the absolute position used for position checks\n this.positionAbs = this._convertPositionTo(\"absolute\");\n\n //Set the helper position\n if (!this.options.axis || this.options.axis != \"y\")\n this.helper[0].style.left = this.position.left + \"px\";\n if (!this.options.axis || this.options.axis != \"x\")\n this.helper[0].style.top = this.position.top + \"px\";\n\n //Rearrange\n for (var i = this.items.length - 1; i >= 0; i--) {\n //Cache variables and intersection, continue if no intersection\n var item = this.items[i],\n itemElement = item.item[0],\n intersection = this._intersectsWithPointer(item);\n if (!intersection) continue;\n\n // Only put the placeholder inside the current Container, skip all\n // items form other containers. This works because when moving\n // an item from one container to another the\n // currentContainer is switched before the placeholder is moved.\n //\n // Without this moving items in \"sub-sortables\" can cause the placeholder to jitter\n // beetween the outer and inner container.\n if (item.instance !== this.currentContainer) continue;\n\n if (\n itemElement != this.currentItem[0] && //cannot intersect with itself\n this.placeholder[intersection == 1 ? \"next\" : \"prev\"]()[0] !=\n itemElement && //no useless actions that have been done before\n !$.contains(this.placeholder[0], itemElement) && //no action if the item moved is the parent of the item checked\n (this.options.type == \"semi-dynamic\"\n ? !$.contains(this.element[0], itemElement)\n : true)\n //&& itemElement.parentNode == this.placeholder[0].parentNode // only rearrange items within the same container\n ) {\n this.direction = intersection == 1 ? \"down\" : \"up\";\n\n if (\n this.options.tolerance == \"pointer\" ||\n this._intersectsWithSides(item)\n ) {\n this._rearrange(event, item);\n } else {\n break;\n }\n\n this._trigger(\"change\", event, this._uiHash());\n break;\n }\n }\n\n //Post events to containers\n this._contactContainers(event);\n\n //Interconnect with droppables\n if ($.ui.ddmanager) $.ui.ddmanager.drag(this, event);\n\n //Call callbacks\n this._trigger(\"sort\", event, this._uiHash());\n\n this.lastPositionAbs = this.positionAbs;\n return false;\n },\n\n _mouseStop: function (event, noPropagation) {\n if (!event) return;\n\n //If we are using droppables, inform the manager about the drop\n if ($.ui.ddmanager && !this.options.dropBehaviour)\n $.ui.ddmanager.drop(this, event);\n\n if (this.options.revert) {\n var that = this;\n var cur = this.placeholder.offset();\n\n this.reverting = true;\n\n $(this.helper).animate(\n {\n left:\n cur.left -\n this.offset.parent.left -\n this.margins.left +\n (this.offsetParent[0] == document.body\n ? 0\n : this.offsetParent[0].scrollLeft),\n top:\n cur.top -\n this.offset.parent.top -\n this.margins.top +\n (this.offsetParent[0] == document.body\n ? 0\n : this.offsetParent[0].scrollTop),\n },\n parseInt(this.options.revert, 10) || 500,\n function () {\n that._clear(event);\n }\n );\n } else {\n this._clear(event, noPropagation);\n }\n\n return false;\n },\n\n cancel: function () {\n if (this.dragging) {\n this._mouseUp({ target: null });\n\n if (this.options.helper == \"original\")\n this.currentItem.css(this._storedCSS).removeClass(\"ui-sortable-helper\");\n else this.currentItem.show();\n\n //Post deactivating events to containers\n for (var i = this.containers.length - 1; i >= 0; i--) {\n this.containers[i]._trigger(\"deactivate\", null, this._uiHash(this));\n if (this.containers[i].containerCache.over) {\n this.containers[i]._trigger(\"out\", null, this._uiHash(this));\n this.containers[i].containerCache.over = 0;\n }\n }\n }\n\n if (this.placeholder) {\n //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!\n if (this.placeholder[0].parentNode)\n this.placeholder[0].parentNode.removeChild(this.placeholder[0]);\n if (\n this.options.helper != \"original\" &&\n this.helper &&\n this.helper[0].parentNode\n )\n this.helper.remove();\n\n $.extend(this, {\n helper: null,\n dragging: false,\n reverting: false,\n _noFinalSort: null,\n });\n\n if (this.domPosition.prev) {\n $(this.domPosition.prev).after(this.currentItem);\n } else {\n $(this.domPosition.parent).prepend(this.currentItem);\n }\n }\n\n return this;\n },\n\n serialize: function (o) {\n var items = this._getItemsAsjQuery(o && o.connected);\n var str = [];\n o = o || {};\n\n $(items).each(function () {\n var res = ($(o.item || this).attr(o.attribute || \"id\") || \"\").match(\n o.expression || /(.+)[-=_](.+)/\n );\n if (res)\n str.push(\n (o.key || res[1] + \"[]\") +\n \"=\" +\n (o.key && o.expression ? res[1] : res[2])\n );\n });\n\n if (!str.length && o.key) {\n str.push(o.key + \"=\");\n }\n\n return str.join(\"&\");\n },\n\n toArray: function (o) {\n var items = this._getItemsAsjQuery(o && o.connected);\n var ret = [];\n o = o || {};\n\n items.each(function () {\n ret.push($(o.item || this).attr(o.attribute || \"id\") || \"\");\n });\n return ret;\n },\n\n /* Be careful with the following core functions */\n _intersectsWith: function (item) {\n var x1 = this.positionAbs.left,\n x2 = x1 + this.helperProportions.width,\n y1 = this.positionAbs.top,\n y2 = y1 + this.helperProportions.height;\n\n var l = item.left,\n r = l + item.width,\n t = item.top,\n b = t + Math.max(10, item.height);\n\n var dyClick = this.offset.click.top,\n dxClick = this.offset.click.left;\n\n var isOverElement =\n y1 + dyClick > t &&\n y1 + dyClick < b &&\n x1 + dxClick > l &&\n x1 + dxClick < r;\n\n if (\n this.options.tolerance == \"pointer\" ||\n this.options.forcePointerForContainers ||\n (this.options.tolerance != \"pointer\" &&\n this.helperProportions[this.floating ? \"width\" : \"height\"] >\n item[this.floating ? \"width\" : \"height\"])\n ) {\n return isOverElement;\n } else {\n return (\n l < x1 + this.helperProportions.width / 2 && // Right Half\n x2 - this.helperProportions.width / 2 < r && // Left Half\n t < y1 + this.helperProportions.height / 2 && // Bottom Half\n y2 - this.helperProportions.height / 2 < b\n ); // Top Half\n }\n },\n\n _intersectsWithPointer: function (item) {\n var isOverElementHeight =\n this.options.axis === \"x\" ||\n this._isOverAxis(\n this.positionAbs.top + this.offset.click.top,\n item.top,\n Math.max(10, item.height)\n ),\n isOverElementWidth =\n this.options.axis === \"y\" ||\n this._isOverAxis(\n this.positionAbs.left + this.offset.click.left,\n item.left,\n item.width\n ),\n isOverElement = isOverElementHeight && isOverElementWidth,\n verticalDirection = this._getDragVerticalDirection(),\n horizontalDirection = this._getDragHorizontalDirection();\n\n if (!isOverElement) return false;\n\n return this.floating\n ? (horizontalDirection && horizontalDirection == \"right\") ||\n verticalDirection == \"down\"\n ? 2\n : 1\n : verticalDirection && (verticalDirection == \"down\" ? 2 : 1);\n },\n\n _intersectsWithSides: function (item) {\n var isOverBottomHalf = this._isOverAxis(\n this.positionAbs.top + this.offset.click.top,\n item.top + Math.max(10, item.height) / 2,\n Math.max(10, item.height)\n ),\n isOverRightHalf = this._isOverAxis(\n this.positionAbs.left + this.offset.click.left,\n item.left + item.width / 2,\n item.width\n ),\n verticalDirection = this._getDragVerticalDirection(),\n horizontalDirection = this._getDragHorizontalDirection();\n\n if (this.floating && horizontalDirection) {\n return (\n (horizontalDirection == \"right\" && isOverRightHalf) ||\n (horizontalDirection == \"left\" && !isOverRightHalf)\n );\n } else {\n return (\n verticalDirection &&\n ((verticalDirection == \"down\" && isOverBottomHalf) ||\n (verticalDirection == \"up\" && !isOverBottomHalf))\n );\n }\n },\n\n _getDragVerticalDirection: function () {\n var delta = this.positionAbs.top - this.lastPositionAbs.top;\n return delta != 0 && (delta > 0 ? \"down\" : \"up\");\n },\n\n _getDragHorizontalDirection: function () {\n var delta = this.positionAbs.left - this.lastPositionAbs.left;\n return delta != 0 && (delta > 0 ? \"right\" : \"left\");\n },\n\n refresh: function (event) {\n this._refreshItems(event);\n this.refreshPositions();\n return this;\n },\n\n _connectWith: function () {\n var options = this.options;\n return options.connectWith.constructor == String\n ? [options.connectWith]\n : options.connectWith;\n },\n\n _getItemsAsjQuery: function (connected) {\n var items = [];\n var queries = [];\n var connectWith = this._connectWith();\n\n if (connectWith && connected) {\n for (var i = connectWith.length - 1; i >= 0; i--) {\n var cur = $(connectWith[i]);\n for (var j = cur.length - 1; j >= 0; j--) {\n var inst = $.data(cur[j], this.widgetName);\n if (inst && inst != this && !inst.options.disabled) {\n queries.push([\n $.isFunction(inst.options.items)\n ? inst.options.items.call(inst.element)\n : $(inst.options.items, inst.element)\n .not(\".ui-sortable-helper\")\n .not(\".ui-sortable-placeholder\"),\n inst,\n ]);\n }\n }\n }\n }\n\n queries.push([\n $.isFunction(this.options.items)\n ? this.options.items.call(this.element, null, {\n options: this.options,\n item: this.currentItem,\n })\n : $(this.options.items, this.element)\n .not(\".ui-sortable-helper\")\n .not(\".ui-sortable-placeholder\"),\n this,\n ]);\n\n for (var i = queries.length - 1; i >= 0; i--) {\n queries[i][0].each(function () {\n items.push(this);\n });\n }\n\n return $(items);\n },\n\n _removeCurrentsFromItems: function () {\n var list = this.currentItem.find(\":data(\" + this.widgetName + \"-item)\");\n\n this.items = $.grep(this.items, function (item) {\n for (var j = 0; j < list.length; j++) {\n if (list[j] == item.item[0]) return false;\n }\n return true;\n });\n },\n\n _refreshItems: function (event) {\n this.items = [];\n this.containers = [this];\n var items = this.items;\n var queries = [\n [\n $.isFunction(this.options.items)\n ? this.options.items.call(this.element[0], event, {\n item: this.currentItem,\n })\n : $(this.options.items, this.element),\n this,\n ],\n ];\n var connectWith = this._connectWith();\n\n if (connectWith && this.ready) {\n //Shouldn't be run the first time through due to massive slow-down\n for (var i = connectWith.length - 1; i >= 0; i--) {\n var cur = $(connectWith[i]);\n for (var j = cur.length - 1; j >= 0; j--) {\n var inst = $.data(cur[j], this.widgetName);\n if (inst && inst != this && !inst.options.disabled) {\n queries.push([\n $.isFunction(inst.options.items)\n ? inst.options.items.call(inst.element[0], event, {\n item: this.currentItem,\n })\n : $(inst.options.items, inst.element),\n inst,\n ]);\n this.containers.push(inst);\n }\n }\n }\n }\n\n for (var i = queries.length - 1; i >= 0; i--) {\n var targetData = queries[i][1];\n var _queries = queries[i][0];\n\n for (var j = 0, queriesLength = _queries.length; j < queriesLength; j++) {\n var item = $(_queries[j]);\n\n item.data(this.widgetName + \"-item\", targetData); // Data for target checking (mouse manager)\n\n items.push({\n item: item,\n instance: targetData,\n width: 0,\n height: 0,\n left: 0,\n top: 0,\n });\n }\n }\n },\n\n refreshPositions: function (fast) {\n //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change\n if (this.offsetParent && this.helper) {\n this.offset.parent = this._getParentOffset();\n }\n\n for (var i = this.items.length - 1; i >= 0; i--) {\n var item = this.items[i];\n\n //We ignore calculating positions of all connected containers when we're not over them\n if (\n item.instance != this.currentContainer &&\n this.currentContainer &&\n item.item[0] != this.currentItem[0]\n )\n continue;\n\n var t = this.options.toleranceElement\n ? $(this.options.toleranceElement, item.item)\n : item.item;\n\n if (!fast) {\n item.width = t.outerWidth();\n item.height = t.outerHeight();\n }\n\n var p = t.offset();\n item.left = p.left;\n item.top = p.top;\n }\n\n if (this.options.custom && this.options.custom.refreshContainers) {\n this.options.custom.refreshContainers.call(this);\n } else {\n for (var i = this.containers.length - 1; i >= 0; i--) {\n var p = this.containers[i].element.offset();\n this.containers[i].containerCache.left = p.left;\n this.containers[i].containerCache.top = p.top;\n this.containers[i].containerCache.width =\n this.containers[i].element.outerWidth();\n this.containers[i].containerCache.height =\n this.containers[i].element.outerHeight();\n }\n }\n\n return this;\n },\n\n _createPlaceholder: function (that) {\n that = that || this;\n var o = that.options;\n\n if (!o.placeholder || o.placeholder.constructor == String) {\n var className = o.placeholder;\n o.placeholder = {\n element: function () {\n var el = $(document.createElement(that.currentItem[0].nodeName))\n .addClass(\n className ||\n that.currentItem[0].className + \" ui-sortable-placeholder\"\n )\n .removeClass(\"ui-sortable-helper\")[0];\n\n if (!className) el.style.visibility = \"hidden\";\n\n return el;\n },\n update: function (container, p) {\n // 1. If a className is set as 'placeholder option, we don't force sizes - the class is responsible for that\n // 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified\n if (className && !o.forcePlaceholderSize) return;\n\n //If the element doesn't have a actual height by itself (without styles coming from a stylesheet), it receives the inline height from the dragged item\n if (!p.height()) {\n p.height(\n that.currentItem.innerHeight() -\n parseInt(that.currentItem.css(\"paddingTop\") || 0, 10) -\n parseInt(that.currentItem.css(\"paddingBottom\") || 0, 10)\n );\n }\n if (!p.width()) {\n p.width(\n that.currentItem.innerWidth() -\n parseInt(that.currentItem.css(\"paddingLeft\") || 0, 10) -\n parseInt(that.currentItem.css(\"paddingRight\") || 0, 10)\n );\n }\n },\n };\n }\n\n //Create the placeholder\n that.placeholder = $(\n o.placeholder.element.call(that.element, that.currentItem)\n );\n\n //Append it after the actual current item\n that.currentItem.after(that.placeholder);\n\n //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317)\n o.placeholder.update(that, that.placeholder);\n },\n\n _contactContainers: function (event) {\n // get innermost container that intersects with item\n var innermostContainer = null,\n innermostIndex = null;\n\n for (var i = this.containers.length - 1; i >= 0; i--) {\n // never consider a container that's located within the item itself\n if ($.contains(this.currentItem[0], this.containers[i].element[0]))\n continue;\n\n if (this._intersectsWith(this.containers[i].containerCache)) {\n // if we've already found a container and it's more \"inner\" than this, then continue\n if (\n innermostContainer &&\n $.contains(\n this.containers[i].element[0],\n innermostContainer.element[0]\n )\n )\n continue;\n\n innermostContainer = this.containers[i];\n innermostIndex = i;\n } else {\n // container doesn't intersect. trigger \"out\" event if necessary\n if (this.containers[i].containerCache.over) {\n this.containers[i]._trigger(\"out\", event, this._uiHash(this));\n this.containers[i].containerCache.over = 0;\n }\n }\n }\n\n // if no intersecting containers found, return\n if (!innermostContainer) return;\n\n // move the item into the container if it's not there already\n if (this.containers.length === 1) {\n this.containers[innermostIndex]._trigger(\n \"over\",\n event,\n this._uiHash(this)\n );\n this.containers[innermostIndex].containerCache.over = 1;\n } else {\n //When entering a new container, we will find the item with the least distance and append our item near it\n var dist = 10000;\n var itemWithLeastDistance = null;\n var posProperty = this.containers[innermostIndex].floating\n ? \"left\"\n : \"top\";\n var sizeProperty = this.containers[innermostIndex].floating\n ? \"width\"\n : \"height\";\n var base = this.positionAbs[posProperty] + this.offset.click[posProperty];\n for (var j = this.items.length - 1; j >= 0; j--) {\n if (\n !$.contains(\n this.containers[innermostIndex].element[0],\n this.items[j].item[0]\n )\n )\n continue;\n if (this.items[j].item[0] == this.currentItem[0]) continue;\n var cur = this.items[j].item.offset()[posProperty];\n var nearBottom = false;\n if (\n Math.abs(cur - base) >\n Math.abs(cur + Math.max(10, this.items[j][sizeProperty]) - base)\n ) {\n nearBottom = true;\n cur += this.items[j][sizeProperty];\n }\n\n if (Math.abs(cur - base) < dist) {\n dist = Math.abs(cur - base);\n itemWithLeastDistance = this.items[j];\n this.direction = nearBottom ? \"up\" : \"down\";\n }\n }\n\n if (!itemWithLeastDistance && !this.options.dropOnEmpty)\n //Check if dropOnEmpty is enabled\n return;\n\n this.currentContainer = this.containers[innermostIndex];\n itemWithLeastDistance\n ? this._rearrange(event, itemWithLeastDistance, null, true)\n : this._rearrange(\n event,\n null,\n this.containers[innermostIndex].element,\n true\n );\n this._trigger(\"change\", event, this._uiHash());\n this.containers[innermostIndex]._trigger(\n \"change\",\n event,\n this._uiHash(this)\n );\n\n //Update the placeholder\n this.options.placeholder.update(this.currentContainer, this.placeholder);\n\n this.containers[innermostIndex]._trigger(\n \"over\",\n event,\n this._uiHash(this)\n );\n this.containers[innermostIndex].containerCache.over = 1;\n }\n },\n\n _createHelper: function (event) {\n var o = this.options;\n var helper = $.isFunction(o.helper)\n ? $(o.helper.apply(this.element[0], [event, this.currentItem]))\n : o.helper == \"clone\"\n ? this.currentItem.clone()\n : this.currentItem;\n\n if (!helper.parents(\"body\").length)\n //Add the helper to the DOM if that didn't happen already\n $(\n o.appendTo != \"parent\" ? o.appendTo : this.currentItem[0].parentNode\n )[0].appendChild(helper[0]);\n\n if (helper[0] == this.currentItem[0])\n this._storedCSS = {\n width: this.currentItem[0].style.width,\n height: this.currentItem[0].style.height,\n position: this.currentItem.css(\"position\"),\n top: this.currentItem.css(\"top\"),\n left: this.currentItem.css(\"left\"),\n };\n\n if (helper[0].style.width == \"\" || o.forceHelperSize)\n helper.width(this.currentItem.width());\n if (helper[0].style.height == \"\" || o.forceHelperSize)\n helper.height(this.currentItem.height());\n\n return helper;\n },\n\n _adjustOffsetFromHelper: function (obj) {\n if (typeof obj == \"string\") {\n obj = obj.split(\" \");\n }\n if ($.isArray(obj)) {\n obj = { left: +obj[0], top: +obj[1] || 0 };\n }\n if (\"left\" in obj) {\n this.offset.click.left = obj.left + this.margins.left;\n }\n if (\"right\" in obj) {\n this.offset.click.left =\n this.helperProportions.width - obj.right + this.margins.left;\n }\n if (\"top\" in obj) {\n this.offset.click.top = obj.top + this.margins.top;\n }\n if (\"bottom\" in obj) {\n this.offset.click.top =\n this.helperProportions.height - obj.bottom + this.margins.top;\n }\n },\n\n _getParentOffset: function () {\n //Get the offsetParent and cache its position\n this.offsetParent = this.helper.offsetParent();\n var po = this.offsetParent.offset();\n\n // This is a special case where we need to modify a offset calculated on start, since the following happened:\n // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent\n // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that\n // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag\n if (\n this.cssPosition == \"absolute\" &&\n this.scrollParent[0] != document &&\n $.contains(this.scrollParent[0], this.offsetParent[0])\n ) {\n po.left += this.scrollParent.scrollLeft();\n po.top += this.scrollParent.scrollTop();\n }\n\n if (\n this.offsetParent[0] == document.body || //This needs to be actually done for all browsers, since pageX/pageY includes this information\n (this.offsetParent[0].tagName &&\n this.offsetParent[0].tagName.toLowerCase() == \"html\" &&\n $.ui.ie)\n )\n //Ugly IE fix\n po = { top: 0, left: 0 };\n\n return {\n top:\n po.top + (parseInt(this.offsetParent.css(\"borderTopWidth\"), 10) || 0),\n left:\n po.left + (parseInt(this.offsetParent.css(\"borderLeftWidth\"), 10) || 0),\n };\n },\n\n _getRelativeOffset: function () {\n if (this.cssPosition == \"relative\") {\n var p = this.currentItem.position();\n return {\n top:\n p.top -\n (parseInt(this.helper.css(\"top\"), 10) || 0) +\n this.scrollParent.scrollTop(),\n left:\n p.left -\n (parseInt(this.helper.css(\"left\"), 10) || 0) +\n this.scrollParent.scrollLeft(),\n };\n } else {\n return { top: 0, left: 0 };\n }\n },\n\n _cacheMargins: function () {\n this.margins = {\n left: parseInt(this.currentItem.css(\"marginLeft\"), 10) || 0,\n top: parseInt(this.currentItem.css(\"marginTop\"), 10) || 0,\n };\n },\n\n _cacheHelperProportions: function () {\n this.helperProportions = {\n width: this.helper.outerWidth(),\n height: this.helper.outerHeight(),\n };\n },\n\n _setContainment: function () {\n var o = this.options;\n if (o.containment == \"parent\") o.containment = this.helper[0].parentNode;\n if (o.containment == \"document\" || o.containment == \"window\")\n this.containment = [\n 0 - this.offset.relative.left - this.offset.parent.left,\n 0 - this.offset.relative.top - this.offset.parent.top,\n $(o.containment == \"document\" ? document : window).width() -\n this.helperProportions.width -\n this.margins.left,\n ($(o.containment == \"document\" ? document : window).height() ||\n document.body.parentNode.scrollHeight) -\n this.helperProportions.height -\n this.margins.top,\n ];\n\n if (!/^(document|window|parent)$/.test(o.containment)) {\n var ce = $(o.containment)[0];\n var co = $(o.containment).offset();\n var over = $(ce).css(\"overflow\") != \"hidden\";\n\n this.containment = [\n co.left +\n (parseInt($(ce).css(\"borderLeftWidth\"), 10) || 0) +\n (parseInt($(ce).css(\"paddingLeft\"), 10) || 0) -\n this.margins.left,\n co.top +\n (parseInt($(ce).css(\"borderTopWidth\"), 10) || 0) +\n (parseInt($(ce).css(\"paddingTop\"), 10) || 0) -\n this.margins.top,\n co.left +\n (over ? Math.max(ce.scrollWidth, ce.offsetWidth) : ce.offsetWidth) -\n (parseInt($(ce).css(\"borderLeftWidth\"), 10) || 0) -\n (parseInt($(ce).css(\"paddingRight\"), 10) || 0) -\n this.helperProportions.width -\n this.margins.left,\n co.top +\n (over\n ? Math.max(ce.scrollHeight, ce.offsetHeight)\n : ce.offsetHeight) -\n (parseInt($(ce).css(\"borderTopWidth\"), 10) || 0) -\n (parseInt($(ce).css(\"paddingBottom\"), 10) || 0) -\n this.helperProportions.height -\n this.margins.top,\n ];\n }\n },\n\n _convertPositionTo: function (d, pos) {\n if (!pos) pos = this.position;\n var mod = d == \"absolute\" ? 1 : -1;\n var o = this.options,\n scroll =\n this.cssPosition == \"absolute\" &&\n !(\n this.scrollParent[0] != document &&\n $.contains(this.scrollParent[0], this.offsetParent[0])\n )\n ? this.offsetParent\n : this.scrollParent,\n scrollIsRootNode = /(html|body)/i.test(scroll[0].tagName);\n\n return {\n top:\n pos.top + // The absolute mouse position\n this.offset.relative.top * mod + // Only for relative positioned nodes: Relative offset from element to offset parent\n this.offset.parent.top * mod - // The offsetParent's offset without borders (offset + border)\n (this.cssPosition == \"fixed\"\n ? -this.scrollParent.scrollTop()\n : scrollIsRootNode\n ? 0\n : scroll.scrollTop()) *\n mod,\n left:\n pos.left + // The absolute mouse position\n this.offset.relative.left * mod + // Only for relative positioned nodes: Relative offset from element to offset parent\n this.offset.parent.left * mod - // The offsetParent's offset without borders (offset + border)\n (this.cssPosition == \"fixed\"\n ? -this.scrollParent.scrollLeft()\n : scrollIsRootNode\n ? 0\n : scroll.scrollLeft()) *\n mod,\n };\n },\n\n _generatePosition: function (event) {\n var o = this.options,\n scroll =\n this.cssPosition == \"absolute\" &&\n !(\n this.scrollParent[0] != document &&\n $.contains(this.scrollParent[0], this.offsetParent[0])\n )\n ? this.offsetParent\n : this.scrollParent,\n scrollIsRootNode = /(html|body)/i.test(scroll[0].tagName);\n\n // This is another very weird special case that only happens for relative elements:\n // 1. If the css position is relative\n // 2. and the scroll parent is the document or similar to the offset parent\n // we have to refresh the relative offset during the scroll so there are no jumps\n if (\n this.cssPosition == \"relative\" &&\n !(\n this.scrollParent[0] != document &&\n this.scrollParent[0] != this.offsetParent[0]\n )\n ) {\n this.offset.relative = this._getRelativeOffset();\n }\n\n var pageX = event.pageX;\n var pageY = event.pageY;\n\n /*\n * - Position constraining -\n * Constrain the position to a mix of grid, containment.\n */\n\n if (this.originalPosition) {\n //If we are not dragging yet, we won't check for options\n\n if (this.containment) {\n if (event.pageX - this.offset.click.left < this.containment[0])\n pageX = this.containment[0] + this.offset.click.left;\n if (event.pageY - this.offset.click.top < this.containment[1])\n pageY = this.containment[1] + this.offset.click.top;\n if (event.pageX - this.offset.click.left > this.containment[2])\n pageX = this.containment[2] + this.offset.click.left;\n if (event.pageY - this.offset.click.top > this.containment[3])\n pageY = this.containment[3] + this.offset.click.top;\n }\n\n if (o.grid) {\n var top =\n this.originalPageY +\n Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];\n pageY = this.containment\n ? !(\n top - this.offset.click.top < this.containment[1] ||\n top - this.offset.click.top > this.containment[3]\n )\n ? top\n : !(top - this.offset.click.top < this.containment[1])\n ? top - o.grid[1]\n : top + o.grid[1]\n : top;\n\n var left =\n this.originalPageX +\n Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0];\n pageX = this.containment\n ? !(\n left - this.offset.click.left < this.containment[0] ||\n left - this.offset.click.left > this.containment[2]\n )\n ? left\n : !(left - this.offset.click.left < this.containment[0])\n ? left - o.grid[0]\n : left + o.grid[0]\n : left;\n }\n }\n\n return {\n top:\n pageY - // The absolute mouse position\n this.offset.click.top - // Click offset (relative to the element)\n this.offset.relative.top - // Only for relative positioned nodes: Relative offset from element to offset parent\n this.offset.parent.top + // The offsetParent's offset without borders (offset + border)\n (this.cssPosition == \"fixed\"\n ? -this.scrollParent.scrollTop()\n : scrollIsRootNode\n ? 0\n : scroll.scrollTop()),\n left:\n pageX - // The absolute mouse position\n this.offset.click.left - // Click offset (relative to the element)\n this.offset.relative.left - // Only for relative positioned nodes: Relative offset from element to offset parent\n this.offset.parent.left + // The offsetParent's offset without borders (offset + border)\n (this.cssPosition == \"fixed\"\n ? -this.scrollParent.scrollLeft()\n : scrollIsRootNode\n ? 0\n : scroll.scrollLeft()),\n };\n },\n\n _rearrange: function (event, i, a, hardRefresh) {\n a\n ? a[0].appendChild(this.placeholder[0])\n : i.item[0].parentNode.insertBefore(\n this.placeholder[0],\n this.direction == \"down\" ? i.item[0] : i.item[0].nextSibling\n );\n\n //Various things done here to improve the performance:\n // 1. we create a setTimeout, that calls refreshPositions\n // 2. on the instance, we have a counter variable, that get's higher after every append\n // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same\n // 4. this lets only the last addition to the timeout stack through\n this.counter = this.counter ? ++this.counter : 1;\n var counter = this.counter;\n\n this._delay(function () {\n if (counter == this.counter) this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove\n });\n },\n\n _clear: function (event, noPropagation) {\n this.reverting = false;\n // We delay all events that have to be triggered to after the point where the placeholder has been removed and\n // everything else normalized again\n var delayedTriggers = [];\n\n // We first have to update the dom position of the actual currentItem\n // Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088)\n if (!this._noFinalSort && this.currentItem.parent().length)\n this.placeholder.before(this.currentItem);\n this._noFinalSort = null;\n\n if (this.helper[0] == this.currentItem[0]) {\n for (var i in this._storedCSS) {\n if (this._storedCSS[i] == \"auto\" || this._storedCSS[i] == \"static\")\n this._storedCSS[i] = \"\";\n }\n this.currentItem.css(this._storedCSS).removeClass(\"ui-sortable-helper\");\n } else {\n this.currentItem.show();\n }\n\n if (this.fromOutside && !noPropagation)\n delayedTriggers.push(function (event) {\n this._trigger(\"receive\", event, this._uiHash(this.fromOutside));\n });\n if (\n (this.fromOutside ||\n this.domPosition.prev !=\n this.currentItem.prev().not(\".ui-sortable-helper\")[0] ||\n this.domPosition.parent != this.currentItem.parent()[0]) &&\n !noPropagation\n )\n delayedTriggers.push(function (event) {\n this._trigger(\"update\", event, this._uiHash());\n }); //Trigger update callback if the DOM position has changed\n\n // Check if the items Container has Changed and trigger appropriate\n // events.\n if (this !== this.currentContainer) {\n if (!noPropagation) {\n delayedTriggers.push(function (event) {\n this._trigger(\"remove\", event, this._uiHash());\n });\n delayedTriggers.push(\n function (c) {\n return function (event) {\n c._trigger(\"receive\", event, this._uiHash(this));\n };\n }.call(this, this.currentContainer)\n );\n delayedTriggers.push(\n function (c) {\n return function (event) {\n c._trigger(\"update\", event, this._uiHash(this));\n };\n }.call(this, this.currentContainer)\n );\n }\n }\n\n //Post events to containers\n for (var i = this.containers.length - 1; i >= 0; i--) {\n if (!noPropagation)\n delayedTriggers.push(\n function (c) {\n return function (event) {\n c._trigger(\"deactivate\", event, this._uiHash(this));\n };\n }.call(this, this.containers[i])\n );\n if (this.containers[i].containerCache.over) {\n delayedTriggers.push(\n function (c) {\n return function (event) {\n c._trigger(\"out\", event, this._uiHash(this));\n };\n }.call(this, this.containers[i])\n );\n this.containers[i].containerCache.over = 0;\n }\n }\n\n //Do what was originally in plugins\n if (this._storedCursor) $(\"body\").css(\"cursor\", this._storedCursor); //Reset cursor\n if (this._storedOpacity) this.helper.css(\"opacity\", this._storedOpacity); //Reset opacity\n if (this._storedZIndex)\n this.helper.css(\n \"zIndex\",\n this._storedZIndex == \"auto\" ? \"\" : this._storedZIndex\n ); //Reset z-index\n\n this.dragging = false;\n if (this.cancelHelperRemoval) {\n if (!noPropagation) {\n this._trigger(\"beforeStop\", event, this._uiHash());\n for (var i = 0; i < delayedTriggers.length; i++) {\n delayedTriggers[i].call(this, event);\n } //Trigger all delayed events\n this._trigger(\"stop\", event, this._uiHash());\n }\n\n this.fromOutside = false;\n return false;\n }\n\n if (!noPropagation) this._trigger(\"beforeStop\", event, this._uiHash());\n\n //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!\n this.placeholder[0].parentNode.removeChild(this.placeholder[0]);\n\n if (this.helper[0] != this.currentItem[0]) this.helper.remove();\n this.helper = null;\n\n if (!noPropagation) {\n for (var i = 0; i < delayedTriggers.length; i++) {\n delayedTriggers[i].call(this, event);\n } //Trigger all delayed events\n this._trigger(\"stop\", event, this._uiHash());\n }\n\n this.fromOutside = false;\n return true;\n },\n\n _trigger: function () {\n if ($.Widget.prototype._trigger.apply(this, arguments) === false) {\n this.cancel();\n }\n },\n\n _delay: function (handler, delay) {\n function handlerProxy() {\n return (typeof handler === \"string\" ? instance[handler] : handler).apply(\n instance,\n arguments\n );\n }\n var instance = this;\n return setTimeout(handlerProxy, delay || 0);\n },\n\n _uiHash: function (_inst) {\n var inst = _inst || this;\n return {\n helper: inst.helper,\n placeholder: inst.placeholder || $([]),\n position: inst.position,\n originalPosition: inst.originalPosition,\n offset: inst.positionAbs,\n item: inst.currentItem,\n sender: _inst ? _inst.element : null,\n };\n },\n});\n","import $ from \"jquery\";\nimport \"./jquery.ui.djnsortable\";\n\n/*\n * jQuery UI Nested Sortable\n * v 1.3.4 / 28 apr 2011\n * http://mjsarfatti.com/sandbox/nestedSortable\n *\n * Depends:\n * jquery.ui.sortable.js 1.8+\n *\n * License CC BY-SA 3.0\n * Copyright 2010-2011, Manuele J Sarfatti\n */\nif (typeof $.fn.nearest != \"function\") {\n /**\n * Returns the descendant(s) matching a given selector which are the\n * shortest distance from the search context element (in otherwords,\n * $.fn.closest(), in reverse).\n */\n $.fn.nearest = function (selector) {\n var nearest = [],\n node = this,\n distance = 10000;\n node.find(selector).each(function () {\n var d = $(this).parentsUntil(node).length;\n if (d < distance) {\n distance = d;\n nearest = [this];\n } else if (d == distance) {\n nearest.push(this);\n }\n });\n return this.pushStack(nearest, \"nearest\", [selector]);\n };\n}\n\nvar counter = 0;\nvar expando = \"djn\" + (\"\" + Math.random()).replace(/\\D/g, \"\");\n\nvar createChildNestedSortable = function (parent, childContainer) {\n // Don't continue if the new element is the same as the old\n if (parent && parent.element && parent.element[0] == childContainer) {\n return;\n }\n var $childContainer = $(childContainer),\n options = $.extend({}, parent.options);\n options.connectWith = [parent.element];\n\n if ($childContainer.data(parent.widgetName)) {\n return;\n }\n\n var widgetConstructor = $childContainer[parent.widgetName];\n widgetConstructor.call($childContainer, options);\n var newInstance = $childContainer.data(parent.widgetName);\n for (var i = 0; i < parent.options.connectWith.length; i++) {\n var $otherContainer = parent.options.connectWith[i];\n newInstance.addToConnectWith($otherContainer);\n var otherInstance = $otherContainer.data(parent.widgetName);\n if (otherInstance) {\n otherInstance.addToConnectWith($childContainer);\n }\n }\n parent.addToConnectWith($childContainer);\n return newInstance;\n};\n\n$.widget(\"ui.nestedSortable\", $.ui.djnsortable, {\n options: {\n tabSize: 20,\n disableNesting: \"ui-nestedSortable-no-nesting\",\n errorClass: \"ui-nestedSortable-error\",\n nestedContainerSelector: \":not(*)\",\n // Whether to clear empty list item and container elements\n doNotClear: false,\n /**\n * Create a list container element if the draggable was dragged\n * to the top or bottom of the elements at its level.\n *\n * @param DOMElement parent - The element relative to which the\n * new element will be inserted.\n * @return DOMElement - The new element.\n */\n createContainerElement: function (parent) {\n return $(document.createElement(\"ol\"));\n },\n // Selector which matches all container elements in the nestedSortable\n containerElementSelector: \"ol\",\n // Selector which matches all list items (draggables) in the nestedSortable\n listItemSelector: \"li\",\n // Selector which, when applied to a container, returns its child list items\n items: \"> li\",\n maxLevels: 0,\n revertOnError: 1,\n protectRoot: false,\n rootID: null,\n rtl: false,\n // if true, you can not move nodes to different levels of nesting\n fixedNestingDepth: false,\n // show the error div or just not show a drop area\n showErrorDiv: true,\n // if true only allows you to rearrange within its parent container\n keepInParent: false,\n isAllowed: function (item, parent) {\n return true;\n },\n canConnectWith: function (container1, container2, instance) {\n var model1 = container1.data(\"inlineModel\");\n var model2 = container2.data(\"inlineModel\");\n if (model1 !== model2) {\n return false;\n }\n var instance2 = container2.data(instance.widgetName);\n if (!instance.options.fixedNestingDepth) {\n if (!instance2 || !instance2.options.fixedNestingDepth) {\n return true;\n }\n }\n var container1Level = instance._getLevel(container1);\n var container2Level = instance._getLevel(container2);\n return container1Level === container2Level;\n },\n },\n\n _createWidget: function (options, element) {\n var $element = $(element || this.defaultElement || this),\n dataOptions = $element.data(\"djnsortableOptions\");\n element = $element[0];\n if (dataOptions) {\n options = $.extend({}, options, dataOptions);\n }\n return $.ui.djnsortable.prototype._createWidget.call(\n this,\n options,\n element\n );\n },\n\n _create: function () {\n if (this.element.data(\"uiNestedSortable\")) {\n this.element.data(\n \"nestedSortable\",\n this.element.data(\"uiNestedSortable\")\n );\n }\n if (this.element.data(\"ui-nestedSortable\")) {\n this.element.data(\n \"nestedSortable\",\n this.element.data(\"ui-nestedSortable\")\n );\n }\n this.element.data(\"djnsortable\", this.element.data(\"nestedSortable\"));\n if (this.element.data(\"uiNestedSortable\")) {\n this.element.data(\"uiSortable\", this.element.data(\"nestedSortable\"));\n }\n // if (!this.element.is(this.options.containerElementSelector)) {\n // throw new Error('nestedSortable: Please check that the ' +\n // 'containerElementSelector option matches ' +\n // 'the element passed to the constructor.');\n // }\n\n $.ui.djnsortable.prototype._create.apply(this, arguments);\n\n this._connectWithMap = {};\n\n var self = this,\n o = this.options,\n $document = $(document);\n\n var originalConnectWith = o.connectWith;\n if (!originalConnectWith || typeof originalConnectWith == \"string\") {\n this.options.connectWith = [];\n if (typeof originalConnectWith == \"string\") {\n var connected = this._connectWith();\n for (var i = 0; i < connected.length; i++) {\n this.addToConnectWith($(connected[i]));\n }\n }\n\n // HACK!! FIX!! (django-specific logic)\n $document.on(\n \"djnesting:init.nestedSortable\",\n o.containerElementSelector,\n function (event) {\n createChildNestedSortable(self, this);\n }\n );\n this.element\n .find(o.containerElementSelector + \":not(.subarticle-wrapper)\")\n .each(function (i, el) {\n if (\n $(el)\n .closest(\"[data-inline-formset]\")\n .attr(\"id\")\n .indexOf(\"-empty\") > -1\n ) {\n return;\n }\n createChildNestedSortable(self, el);\n });\n }\n $document.trigger(\"nestedSortable:created\", [this]);\n $document.on(\n \"nestedSortable:created.nestedSortable\",\n function (e, instance) {\n instance.addToConnectWith(self.element);\n self.addToConnectWith(instance.element);\n }\n );\n },\n\n addToConnectWith: function (element) {\n var self = this,\n $element = typeof element.selector != \"undefined\" ? element : $(element),\n uniqueId;\n\n if ($element.length > 1) {\n $element.each(function (i, el) {\n self.addToConnectWith($(el));\n });\n return;\n }\n uniqueId = element[0][expando];\n if (typeof uniqueId == \"undefined\") {\n uniqueId = element[0][expando] = ++counter;\n }\n if (typeof this.options.connectWith == \"string\") {\n return;\n }\n if (this._connectWithMap[uniqueId]) {\n return;\n }\n this.options.connectWith.push(element);\n this._connectWithMap[uniqueId] = 1;\n },\n\n _destroy: function () {\n this.element.removeData(\"nestedSortable\").unbind(\".nestedSortable\");\n $(document).unbind(\".nestedSortable\");\n return $.ui.djnsortable.prototype.destroy.apply(this, arguments);\n },\n\n /**\n * Override this method to add extra conditions on an item before it's\n * rearranged.\n */\n _intersectsWithPointer: function _intersectsWithPointer(item) {\n var itemElement = item.item[0],\n o = this.options,\n intersection = $.ui.djnsortable.prototype._intersectsWithPointer.apply(\n this,\n arguments\n );\n\n this.lastItemElement = null;\n if (!intersection) {\n return intersection;\n }\n\n // Only put the placeholder inside the current Container, skip all\n // items from other containers. This works because when moving\n // an item from one container to another the\n // currentContainer is switched before the placeholder is moved.\n //\n // Without this moving items in \"sub-sortables\" can cause the placeholder to jitter\n // between the outer and inner container.\n if (item.instance !== this.currentContainer) {\n return false;\n }\n var $itemElement = $(itemElement);\n\n if (\n o.fixedNestingDepth &&\n this._getLevel(this.currentItem) === 1 + this._getLevel($itemElement)\n ) {\n $itemElement = (function () {\n var containerSel = o.containerElementSelector;\n var $childItems = $itemElement.find(\".djn-item\");\n if ($childItems.length != 1) {\n return $itemElement;\n }\n if (!$childItems.is(\".djn-no-drag,.djn-thead\")) {\n return $itemElement;\n }\n var itemElementClosestContainer = $itemElement.closest(containerSel);\n if (!itemElementClosestContainer.length) {\n return $itemElement;\n }\n // Make sure the item is only one level deeper\n if (\n itemElementClosestContainer[0] !=\n $childItems.closest(containerSel).closest(containerSel)[0]\n ) {\n return $itemElement;\n }\n return $($childItems[0]);\n })();\n itemElement = $itemElement[0];\n }\n\n if (\n itemElement != this.currentItem[0] && //cannot intersect with itself\n this.placeholder[intersection == 1 ? \"next\" : \"prev\"]()[0] !=\n itemElement && //no useless actions that have been done before\n !$.contains(this.placeholder[0], itemElement) && //no action if the item moved is the parent of the item checked\n (this.options.type == \"semi-dynamic\"\n ? !$.contains(this.element[0], itemElement)\n : true) &&\n (!o.keepInParent ||\n itemElement.parentNode == this.placeholder[0].parentNode) && //only rearrange items within the same container\n (!o.fixedNestingDepth ||\n this._getLevel(this.currentItem) === this._getLevel($itemElement)) && //maintain the nesting level of node\n (o.showErrorDiv ||\n o.isAllowed.call(\n this,\n this.currentItem[0],\n itemElement.parentNode,\n this.placeholder\n ))\n ) {\n this.lastItemElement = itemElement;\n return intersection;\n } else {\n return false;\n }\n },\n\n // This method is called after items have been iterated through.\n // Overriding this is cleaner than copying and pasting _mouseDrag()\n // and inserting logic in the middle.\n _contactContainers: function _contactContainers(event) {\n if (this.lastItemElement) {\n this._clearEmpty(this.lastItemElement);\n }\n\n var o = this.options,\n _parentItem = this.placeholder.closest(o.listItemSelector),\n parentItem =\n _parentItem.length && _parentItem.closest(\".ui-sortable\").length\n ? _parentItem\n : null,\n level = this._getLevel(this.placeholder),\n childLevels = this._getChildLevels(this.helper);\n\n var placeholderClassName = this.placeholder.attr(\"class\");\n var phClassSearch = \" \" + placeholderClassName + \" \";\n // If the current level class isn't already set\n if (\n phClassSearch.indexOf(\" ui-sortable-nested-level-\" + level + \" \") == -1\n ) {\n var phOrigClassName;\n // Check if another level class is set\n var phOrigClassNameEndPos =\n phClassSearch.indexOf(\" ui-sortable-nested-level-\") - 1;\n if (phOrigClassNameEndPos > -1) {\n phOrigClassName = placeholderClassName.substring(\n 0,\n phOrigClassNameEndPos\n );\n } else {\n phOrigClassName = placeholderClassName;\n }\n // Add new level to class\n this.placeholder.attr(\n \"class\",\n phOrigClassName + \" ui-sortable-nested-level-\" + level\n );\n }\n\n // To find the previous sibling in the list, keep backtracking until we hit a valid list item.\n var previousItem = this.placeholder[0].previousSibling\n ? $(this.placeholder[0].previousSibling)\n : null;\n if (previousItem != null) {\n while (\n !previousItem.is(this.options.listItemSelector) ||\n previousItem[0] == this.currentItem[0] ||\n previousItem[0] == this.helper[0]\n ) {\n if (previousItem[0].previousSibling) {\n previousItem = $(previousItem[0].previousSibling);\n } else {\n previousItem = null;\n break;\n }\n }\n }\n // To find the next sibling in the list, keep stepping forward until we hit a valid list item.\n var nextItem = this.placeholder[0].nextSibling\n ? $(this.placeholder[0].nextSibling)\n : null;\n if (nextItem != null) {\n while (\n !nextItem.is(this.options.listItemSelector) ||\n nextItem[0] == this.currentItem[0] ||\n nextItem[0] == this.helper[0]\n ) {\n if (nextItem[0].nextSibling) {\n nextItem = $(nextItem[0].nextSibling);\n } else {\n nextItem = null;\n break;\n }\n }\n }\n\n this.beyondMaxLevels = 0;\n\n // We will change this to the instance of the nested container if\n // appropriate, so that the appropriate context is applied to the\n // super _contactContainers prototype method\n var containerInstance = this;\n this.refreshPositions();\n\n // If the item is moved to the left, send it to its parent's level unless there are siblings below it.\n if (\n !o.fixedNestingDepth &&\n parentItem != null &&\n nextItem == null &&\n ((o.rtl &&\n this.positionAbs.left + this.helper.outerWidth() >\n parentItem.offset().left + parentItem.outerWidth()) ||\n (!o.rtl && this.positionAbs.left < parentItem.offset().left))\n ) {\n parentItem.after(this.placeholder[0]);\n containerInstance =\n parentItem.closest(o.containerElementSelector).data(this.widgetName) ||\n containerInstance;\n this._clearEmpty(parentItem[0]);\n this.refreshPositions();\n this._trigger(\"change\", event, this._uiHash());\n }\n // If the item is below a sibling and is moved to the right, make it a child of that sibling.\n else if (\n !o.fixedNestingDepth &&\n previousItem != null &&\n !previousItem.is(\".djn-no-drag,.djn-thead\") &&\n ((o.rtl &&\n this.positionAbs.left + this.helper.outerWidth() <\n previousItem.offset().left + previousItem.outerWidth() - o.tabSize) ||\n (!o.rtl &&\n this.positionAbs.left > previousItem.offset().left + o.tabSize))\n ) {\n this._isAllowed(previousItem, level, level + childLevels);\n\n if (this.beyondMaxLevels > 0) {\n return $.ui.djnsortable.prototype._contactContainers.apply(\n this,\n arguments\n );\n }\n var $previousItemChildContainer;\n $previousItemChildContainer = previousItem\n .nearest(o.containerElementSelector)\n .first();\n\n if (\n !$previousItemChildContainer.length &&\n !previousItem.closest(o.nestedContainerSelector).length\n ) {\n $previousItemChildContainer = this.options.createContainerElement(\n previousItem[0]\n );\n previousItem.append($previousItemChildContainer);\n }\n if ($previousItemChildContainer.length) {\n $previousItemChildContainer.append(this.placeholder);\n containerInstance = $previousItemChildContainer.data(this.widgetName);\n if (!containerInstance) {\n containerInstance = createChildNestedSortable(\n this,\n $previousItemChildContainer[0]\n );\n }\n this.refreshPositions();\n }\n this._trigger(\"change\", event, this._uiHash());\n } else {\n this._isAllowed(parentItem, level, level + childLevels);\n }\n\n $.ui.djnsortable.prototype._contactContainers.call(this, event);\n },\n\n _rearrange: function _rearrange(event, item, a, hardRefresh) {\n // Cache the rearranged element for the call to _clear()\n var o = this.options;\n if (item && typeof item == \"object\" && item.item) {\n this.lastRearrangedElement = item.item[0];\n }\n if (\n item &&\n typeof item == \"object\" &&\n item.item &&\n this.placeholder.closest(o.nestedContainerSelector).length\n ) {\n // This means we have been dropped into a nested container down a level\n // from the parent.\n var placeholderParentItem = this.placeholder.closest(o.listItemSelector);\n var comparisonElement =\n this.direction == \"down\"\n ? placeholderParentItem.next(o.nestedContainerSelector)\n : placeholderParentItem;\n if (comparisonElement.length && comparisonElement[0] == item.item[0]) {\n //Various things done here to improve the performance:\n // 1. we create a setTimeout, that calls refreshPositions\n // 2. on the instance, we have a counter variable, that get's higher after every append\n // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same\n // 4. this lets only the last addition to the timeout stack through\n this.counter = this.counter ? ++this.counter : 1;\n var counter = this.counter;\n\n this._delay(function () {\n if (counter == this.counter) this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove\n });\n // The super method will pop the container out of its nested container,\n // which we don't want.\n return;\n }\n }\n $.ui.djnsortable.prototype._rearrange.apply(this, arguments);\n },\n\n _convertPositionTo: function (d, pos) {\n // Cache the top offset before rearrangement\n this.previousTopOffset = this.placeholder.offset().top;\n return $.ui.djnsortable.prototype._convertPositionTo.apply(this, arguments);\n },\n\n _clear: function () {\n $.ui.djnsortable.prototype._clear.apply(this, arguments);\n // If lastRearrangedElement exists and is still attached to the document\n // (i.e., hasn't been removed)\n if (\n typeof this.lastRearrangedElement == \"object\" &&\n this.lastRearrangedElement.ownerDocument\n ) {\n this._clearEmpty(this.lastRearrangedElement);\n }\n },\n\n _mouseStop: function _mouseStop(event, noPropagation) {\n // If the item is in a position not allowed, send it back\n if (this.beyondMaxLevels) {\n this.placeholder.removeClass(this.options.errorClass);\n\n if (this.domPosition.prev) {\n $(this.domPosition.prev).after(this.placeholder);\n } else {\n $(this.domPosition.parent).prepend(this.placeholder);\n }\n this._trigger(\"revert\", event, this._uiHash());\n }\n\n // Clean last empty container/list item\n for (var i = this.items.length - 1; i >= 0; i--) {\n var item = this.items[i].item[0];\n this._clearEmpty(item);\n }\n\n $.ui.djnsortable.prototype._mouseStop.apply(this, arguments);\n },\n\n toArray: function (o) {\n o = $.extend(true, {}, this.options, o || {});\n\n var sDepth = o.startDepthCount || 0,\n ret = [],\n left = 2;\n\n ret.push({\n item_id: o.rootID,\n parent_id: \"none\",\n depth: sDepth,\n left: \"1\",\n right: ($(o.listItemSelector, this.element).length + 1) * 2,\n });\n\n var _recursiveArray = function (item, depth, left) {\n var right = left + 1,\n id,\n pid;\n\n var $childItems = $(item)\n .children(o.containerElementSelector)\n .find(o.items);\n\n if ($childItems.length > 0) {\n depth++;\n $childItems.each(function () {\n right = _recursiveArray($(this), depth, right);\n });\n depth--;\n }\n\n id = $(item)\n .attr(o.attribute || \"id\")\n .match(o.expression || /(.+)[-=_](.+)/);\n\n if (depth === sDepth + 1) {\n pid = o.rootID;\n } else {\n var parentItem = $(item)\n .parent(o.containerElementSelector)\n .parent(o.items)\n .attr(o.attribute || \"id\")\n .match(o.expression || /(.+)[-=_](.+)/);\n pid = parentItem[2];\n }\n\n if (id) {\n ret.push({\n item_id: id[2],\n parent_id: pid,\n depth: depth,\n left: left,\n right: right,\n });\n }\n\n left = right + 1;\n return left;\n };\n\n $(this.element)\n .children(o.listItemSelector)\n .each(function () {\n left = _recursiveArray(this, sDepth + 1, left);\n });\n\n ret = ret.sort(function (a, b) {\n return a.left - b.left;\n });\n\n return ret;\n },\n\n _clearEmpty: function (item) {\n if (this.options.doNotClear) {\n return;\n }\n var $item = $(item);\n var childContainers = $item.nearest(this.options.containerElementSelector);\n childContainers.each(function (i, childContainer) {\n var $childContainer = $(childContainer);\n if (!$childContainer.children().length) {\n var instance = $childContainer.data(this.widgetName);\n if (typeof instance == \"object\" && instance.destroy) {\n instance.destroy();\n }\n $childContainer.remove();\n }\n });\n if (!$item.children().length) {\n $item.remove();\n }\n },\n\n _getLevel: function (item) {\n var level = 1,\n o = this.options,\n list;\n\n if (o.containerElementSelector) {\n list = item.closest(o.containerElementSelector);\n while (list && list.length > 0 && !list.parent().is(\".djn-group-root\")) {\n // if (!list.is(o.nestedContainerSelector)) {\n level++;\n // }\n list = list.parent().closest(o.containerElementSelector);\n }\n }\n\n return level;\n },\n\n _getChildLevels: function (parent, depth) {\n var self = this,\n o = this.options,\n result = 0;\n depth = depth || 0;\n\n $(parent)\n .nearest(o.containerElementSelector)\n .first()\n .find(o.items)\n .each(function (index, child) {\n if ($(child).is(\".djn-no-drag,.djn-thead\")) {\n return;\n }\n result = Math.max(self._getChildLevels(child, depth + 1), result);\n });\n\n return depth ? result + 1 : result;\n },\n\n _isAllowed: function _isAllowed(parentItem, level, levels) {\n var o = this.options,\n isRoot = $(this.domPosition.parent).hasClass(\"ui-sortable\")\n ? true\n : false;\n // this takes into account the maxLevels set to the recipient list\n // var maxLevels = this.placeholder.closest('.ui-sortable').nestedSortable('option', 'maxLevels');\n var maxLevels = o.maxLevels;\n\n // Is the root protected?\n // Are we trying to nest under a no-nest?\n // Are we nesting too deep?\n if (\n parentItem &&\n typeof parentItem == \"object\" &&\n typeof parentItem.selector == \"undefined\"\n ) {\n parentItem = $(parentItem);\n }\n\n if (\n !o.isAllowed.call(this, this.currentItem, parentItem, this.placeholder) ||\n (parentItem && parentItem.hasClass(o.disableNesting)) ||\n (o.protectRoot &&\n ((parentItem == null && !isRoot) || (isRoot && level > 1)))\n ) {\n this.placeholder.addClass(o.errorClass);\n if (maxLevels < levels && maxLevels != 0) {\n this.beyondMaxLevels = levels - maxLevels;\n } else {\n this.beyondMaxLevels = 1;\n }\n } else {\n if (maxLevels < levels && maxLevels != 0) {\n this.placeholder.addClass(o.errorClass);\n this.beyondMaxLevels = levels - maxLevels;\n } else {\n this.placeholder.removeClass(o.errorClass);\n this.beyondMaxLevels = 0;\n }\n }\n },\n\n _connectWith: function _connectWith() {\n var origConnectWith = $.ui.djnsortable.prototype._connectWith.apply(\n this,\n arguments\n ),\n connectWith = [];\n var self = this;\n for (var i = 0; i < origConnectWith.length; i++) {\n var $elements = $(origConnectWith[i]);\n $elements.each(function (j, el) {\n if (el == self.element[0]) {\n return;\n }\n if (!self.options.canConnectWith(self.element, $(el), self)) {\n return;\n }\n connectWith.push(el);\n });\n }\n return connectWith;\n },\n _removeCurrentsFromItems: function () {\n var list = this.currentItem.find(\":data(sortable-item)\");\n for (var i = 0; i < this.items.length; i++) {\n for (var j = 0; j < list.length; j++) {\n if (list[j] == this.items[i].item[0]) {\n this.items.splice(i, 1);\n if (i >= this.items.length) {\n break;\n }\n }\n }\n }\n },\n createContainerElement: function (parent) {\n if (!parent.childNodes) {\n throw new Error(\n \"Invalid element 'parent' passed to \" + \"createContainerElement.\"\n );\n }\n var newContainer = this.options.createContainerElement.apply(\n this,\n arguments\n );\n parent.appendChild(newContainer[0]);\n return $(newContainer);\n },\n});\n\n$.ui.nestedSortable.prototype.options = $.extend(\n {},\n $.ui.djnsortable.prototype.options,\n $.ui.nestedSortable.prototype.options\n);\n","function regexQuote(str) {\n return (str + \"\").replace(/([\\.\\?\\*\\+\\^\\$\\[\\]\\\\\\(\\)\\{\\}\\|\\-])/g, \"\\\\$1\");\n}\n\nexport default regexQuote;\n","import $ from \"jquery\";\nimport regexQuote from \"./regexquote\";\nimport \"./jquery.ui.nestedsortable\";\n\nfunction updatePositions(prefix) {\n var position = 0, // the value of the position formfield\n count = 1, // The count displayed in stacked inline headers\n $group = $(\"#\" + prefix + \"-group\"),\n groupData = $group.djnData(),\n fieldNames = groupData.fieldNames,\n // The field name on the fieldset which is a ForeignKey to the parent model\n groupFkName = groupData.formsetFkName,\n parentPkVal,\n [, parentPrefix, index] =\n prefix.match(/^(.*)\\-(\\d+)-[^\\-]+(?:\\-\\d+)?$/) || [],\n sortableOptions = groupData.sortableOptions,\n sortableExcludes = (sortableOptions || {}).sortableExcludes || [];\n\n sortableExcludes.push(groupFkName);\n\n if (parentPrefix) {\n var $parentGroup = $(\"#\" + parentPrefix + \"-group\");\n var parentFieldNames = $parentGroup.djnData(\"fieldNames\");\n var parentPkFieldName = parentFieldNames.pk;\n var parentPkField = $parentGroup.filterDjangoField(\n parentPrefix,\n parentPkFieldName,\n index\n );\n parentPkVal = parentPkField.val();\n }\n\n if (groupFkName && typeof parentPkVal != \"undefined\") {\n $group\n .filterDjangoField(prefix, groupFkName)\n .val(parentPkVal)\n .trigger(\"change\");\n }\n\n $group.find(\".djn-inline-form\").each(function () {\n if (!this.id || this.id.substr(-6) == \"-empty\") {\n return true; // Same as continue\n }\n var regex = new RegExp(\"^(?:id_)?\" + regexQuote(prefix) + \"\\\\-\\\\d+$\");\n\n if (!this.id.match(regex)) {\n return true;\n }\n // Cache jQuery object\n var $this = $(this),\n [formPrefix, index] = $this.djangoPrefixIndex() || [null, null],\n namePrefix = formPrefix + \"-\" + index + \"-\";\n\n if (!formPrefix) {\n return;\n }\n\n // Set header position for stacked inlines in Django 1.9+\n var $inlineLabel = $this.find(\"> h3 > .inline_label\");\n if ($inlineLabel.length) {\n $inlineLabel.html($inlineLabel.html().replace(/(#\\d+)/g, \"#\" + count));\n }\n count++;\n\n var $fields = $this.djangoFormField(\"*\"),\n $positionField,\n setPosition = false;\n\n // position is being updated if\n // a) the field has a value\n // b) if the field is not exluded with sortable_excludes (e.g. with default values)\n $fields.each(function () {\n var $field = $(this);\n if (!$field.is(\":input[type!=radio][type!=checkbox],input:checked\")) {\n return;\n }\n var hasValue =\n $field.val() ||\n ($field.attr(\"type\") == \"file\" && $field.siblings(\"a\").length),\n fieldName = $field.attr(\"name\").substring(namePrefix.length);\n if (fieldName == fieldNames.position) {\n $positionField = $field;\n }\n if (hasValue && $.inArray(fieldName, sortableExcludes) === -1) {\n setPosition = true;\n }\n });\n\n if (!setPosition || !$positionField) {\n return;\n }\n\n $positionField.val(position).trigger(\"change\");\n position++;\n });\n}\n\nfunction createSortable($group) {\n const isPolymorphic = $group.is(\".djn-is-polymorphic\");\n return $group\n .find(\n \"> .djn-items, > .djn-fieldset > .djn-items, > .tabular > .module > .djn-items\"\n )\n .nestedSortable({\n handle: [\n \"> h3.djn-drag-handler\",\n \"> .djn-tools .drag-handler\",\n \"> .djn-td > .djn-tools .djn-drag-handler\",\n \"> .djn-tr > .is-sortable > .djn-drag-handler\",\n \"> .djn-tr > .grp-tools-container .djn-drag-handler\",\n ].join(\", \"),\n /**\n * items: The selector for ONLY the items underneath a given\n * container at that level. Not to be confused with\n * listItemSelector, which is the selector for all list\n * items in the nestedSortable\n */\n items: \"> .djn-item\",\n forcePlaceholderSize: true,\n placeholder: {\n element: function ($currentItem) {\n var el = $(document.createElement($currentItem[0].nodeName))\n .addClass($currentItem[0].className + \" ui-sortable-placeholder\")\n .removeClass(\"ui-sortable-helper\")[0];\n\n if ($currentItem.is(\".djn-tbody\")) {\n var $originalTr = $currentItem.children(\".djn-tr\").eq(0);\n var trTagName = $originalTr.prop(\"tagName\").toLowerCase();\n var $tr = $(`<${trTagName}>`);\n $tr.addClass($originalTr.attr(\"class\"));\n var $originalTd = $originalTr.children(\".djn-td\").eq(0);\n var tdTagName = $originalTd.prop(\"tagName\").toLowerCase();\n var numColumns = 0;\n $originalTr.children(\".djn-td\").each(function (i, td) {\n numColumns += parseInt($(td).attr(\"colspan\"), 10) || 1;\n });\n $tr.append(\n $(\n `<${tdTagName} colspan=\"${numColumns}\" class=\"djn-td grp-td\">`\n )\n );\n el.appendChild($tr[0]);\n }\n\n return el;\n },\n update: function (instance, $placeholder) {\n var $currItem = instance.currentItem;\n if (!$currItem) {\n return;\n }\n var opts = instance.options;\n // 1. If a className is set as 'placeholder option, we\n // don't force sizes - the class is responsible for that\n // 2. The option 'forcePlaceholderSize can be enabled to\n // force it even if a class name is specified\n if (opts.className && !opts.forcePlaceholderSize) return;\n\n if ($placeholder.is(\".djn-tbody\")) {\n // debugger;\n $placeholder = $placeholder\n .children(\".djn-tr\")\n .eq(0)\n .children(\".djn-td\")\n .eq(0);\n }\n\n // If the element doesn't have a actual height by itself\n // (without styles coming from a stylesheet), it receives\n // the inline height from the dragged item\n if (!$placeholder.height()) {\n var innerHeight = $currItem.innerHeight(),\n paddingTop = parseInt($currItem.css(\"paddingTop\") || 0, 10),\n paddingBottom = parseInt($currItem.css(\"paddingBottom\") || 0, 10);\n $placeholder.height(innerHeight - paddingTop - paddingBottom);\n }\n if (!$placeholder.width()) {\n var innerWidth = $currItem.innerWidth(),\n paddingLeft = parseInt($currItem.css(\"paddingLeft\") || 0, 10),\n paddingRight = parseInt($currItem.css(\"paddingRight\") || 0, 10);\n $placeholder.width(innerWidth - paddingLeft - paddingRight);\n }\n },\n },\n helper: \"clone\",\n opacity: 0.6,\n maxLevels: 0,\n connectWith: \".djn-items\",\n tolerance: \"intersection\",\n // Don't allow dragging beneath an inline that is marked for deletion\n isAllowed: function (currentItem, parentItem) {\n if (parentItem && parentItem.hasClass(\"predelete\")) {\n return false;\n }\n const $parentGroup = parentItem.closest(\".djn-group\");\n const parentModel = $parentGroup.data(\"inlineModel\");\n const childModels = $parentGroup.djnData(\"childModels\");\n const currentModel = currentItem.data(\"inlineModel\");\n const isPolymorphicChild =\n childModels && childModels.indexOf(currentModel) !== -1;\n if (currentModel !== parentModel && !isPolymorphicChild) {\n return false;\n }\n return true;\n },\n // fixedNestingDepth: not a standard ui.sortable parameter.\n // Prevents dragging items up or down levels\n fixedNestingDepth: true,\n // The selector for ALL list containers in the nested sortable.\n containerElementSelector: \".djn-items\",\n // The selector for ALL list items in the nested sortable.\n listItemSelector: \".djn-item\",\n start: function (event, ui) {\n ui.item.addClass(\"djn-item-dragging\");\n ui.item.show();\n },\n stop: function (event, ui) {\n ui.item.removeClass(\"djn-item-dragging\");\n },\n /**\n * Triggered when a sortable is dropped into a container\n */\n receive: function (event, ui) {\n var $inline = $(this).closest(\".djn-group\");\n $inline.djangoFormset().spliceInto(ui.item);\n updatePositions(ui.item.djangoFormsetPrefix());\n },\n update: function (event, ui) {\n // Ensure that
\n // is the first child of the djn-items. If there\n // is another
before the\n // .do-not-drag element then the drag-and-drop placeholder\n // margins don't work correctly.\n var $nextItem = ui.item.nextAll(\".djn-item\").first();\n if ($nextItem.is(\".djn-no-drag,.djn-thead\")) {\n var nextItem = $nextItem[0];\n var parent = nextItem.parentNode;\n parent.insertBefore(nextItem, parent.firstChild);\n }\n var groupId = $(event.target).closest(\".djn-group\").attr(\"id\"),\n $form = ui.item,\n $parentGroup = $form.closest(\"#\" + groupId);\n if ($form.data(\"updateOperation\") == \"removed\") {\n $form.removeAttr(\"data-update-operation\");\n } else if (!$parentGroup.length) {\n $form.attr(\"data-update-operation\", \"removed\");\n }\n updatePositions($form.djangoFormsetPrefix());\n $(document).trigger(\"djnesting:mutate\", [\n $(\"#\" + $form.djangoFormsetPrefix() + \"-group\"),\n ]);\n },\n });\n}\n\nexport { updatePositions, createSortable };\n","/* globals SelectFilter, DateTimeShortcuts */\nimport $ from \"jquery\";\nimport \"./jquery.djnutils\";\nimport { createSortable, updatePositions } from \"./sortable\";\nimport regexQuote from \"./regexquote\";\nimport django$ from \"./django$\";\nimport grp$ from \"./grp$\";\n\nvar DJNesting = typeof window.DJNesting != \"undefined\" ? window.DJNesting : {};\n\nDJNesting.regexQuote = regexQuote;\nDJNesting.createSortable = createSortable;\nDJNesting.updatePositions = updatePositions;\n\n/**\n * Update attributes based on a regular expression\n */\nDJNesting.updateFormAttributes = function ($elem, search, replace, selector) {\n if (!selector) {\n selector = [\n \":input\",\n \"span\",\n \"table\",\n \"iframe\",\n \"label\",\n \"a\",\n \"ul\",\n \"p\",\n \"img\",\n \".djn-group\",\n \".djn-inline-form\",\n \".cropduster-form\",\n \".dal-forward-conf\",\n ].join(\",\");\n }\n var addBackMethod = $.fn.addBack ? \"addBack\" : \"andSelf\";\n $elem\n .find(selector)\n [addBackMethod]()\n .each(function () {\n var $node = $(this),\n attrs = [\n \"id\",\n \"name\",\n \"for\",\n \"href\",\n \"class\",\n \"onclick\",\n \"data-inline-formset\",\n ];\n\n $.each(attrs, function (i, attrName) {\n var attrVal = $node.attr(attrName);\n if (attrVal) {\n $node.attr(attrName, attrVal.replace(search, replace));\n if (attrName === \"data-inline-formset\") {\n $node.data(\"inlineFormset\", JSON.parse($node.attr(attrName)));\n }\n }\n });\n });\n // update prepopulate ids for function initPrepopulatedFields\n $elem.find(\".prepopulated_field\").each(function () {\n var $node = grp$(this);\n if (typeof $node.prepopulate !== \"function\") {\n $node = django$(this);\n }\n var dependencyIds = $.makeArray($node.data(\"dependency_ids\") || []);\n $node.data(\n \"dependency_ids\",\n $.map(dependencyIds, function (id) {\n return id.replace(search, replace);\n })\n );\n });\n};\n\nDJNesting.createContainerElement = function () {\n return;\n};\n\n// Slight tweaks to the grappelli functions of the same name\n// (initRelatedFields and initAutocompleteFields).\n//\n// The most notable tweak is the call to $.fn.grp_related_generic() (a\n// jQuery method provided by django-curated) and the use of\n// DJNesting.LOOKUP_URLS to determine the ajax lookup urls.\n//\n// We abstract this out using form prefix because the way grappelli does it\n// (adding javascript at the bottom of each formset) doesn't really scale\n// with nested formsets.\n\n// The second parameter (groupData) is optional, and only exists to prevent\n// redundant calls to jQuery() and jQuery.fn.data() in the calling context\nDJNesting.initRelatedFields = function (prefix, groupData) {\n if (\n typeof DJNesting.LOOKUP_URLS != \"object\" ||\n !DJNesting.LOOKUP_URLS.related\n ) {\n return;\n }\n var lookupUrls = DJNesting.LOOKUP_URLS;\n var $inline = $(\"#\" + prefix + \"-group\");\n\n if (!groupData) {\n groupData = $inline.djnData();\n }\n var lookupFields = groupData.lookupRelated;\n\n $inline.djangoFormsetForms().each(function (i, form) {\n $.each(lookupFields.fk || [], function (i, fk) {\n $(form)\n .djangoFormField(fk)\n .each(function () {\n grp$(this).grp_related_fk({\n lookup_url: lookupUrls.related,\n });\n });\n });\n $.each(lookupFields.m2m || [], function (i, m2m) {\n $(form)\n .djangoFormField(m2m)\n .each(function () {\n grp$(this).grp_related_m2m({ lookup_url: lookupUrls.m2m });\n });\n });\n $.each(lookupFields.generic || [], function () {\n var [contentType, objectId] = this;\n $(form)\n .djangoFormField(objectId)\n .each(function () {\n var $this = $(this);\n var index = $this.djangoFormIndex();\n if ($this.hasClass(\"grp-has-related-lookup\")) {\n $this.parent().find(\"a.related-lookup\").remove();\n $this.parent().find(\".grp-placeholder-related-generic\").remove();\n }\n grp$($this).grp_related_generic({\n content_type: `#id_${prefix}-${index}-${contentType}`,\n object_id: `#id_${prefix}-${index}-${objectId}`,\n lookup_url: lookupUrls.related,\n });\n });\n });\n });\n};\n\nDJNesting.initAutocompleteFields = function (prefix, groupData) {\n if (\n typeof DJNesting.LOOKUP_URLS != \"object\" ||\n !DJNesting.LOOKUP_URLS.related\n ) {\n return;\n }\n var lookupUrls = DJNesting.LOOKUP_URLS;\n\n var $inline = $(\"#\" + prefix + \"-group\");\n\n if (!groupData) {\n groupData = $inline.djnData();\n }\n var lookupFields = groupData.lookupAutocomplete;\n\n $inline.djangoFormsetForms().each(function (i, form) {\n $.each(lookupFields.fk || [], function (i, fk) {\n $(form)\n .djangoFormField(fk)\n .each(function () {\n var $this = $(this),\n id = $this.attr(\"id\");\n // An autocomplete widget has already been initialized, return\n if ($(\"#\" + id + \"-autocomplete\").length) {\n return;\n }\n grp$($this).grp_autocomplete_fk({\n lookup_url: lookupUrls.related,\n autocomplete_lookup_url: lookupUrls.autocomplete,\n });\n });\n });\n $.each(lookupFields.m2m || [], function (i, m2m) {\n $(form)\n .djangoFormField(m2m)\n .each(function () {\n var $this = $(this),\n id = $this.attr(\"id\");\n // An autocomplete widget has already been initialized, return\n if ($(\"#\" + id + \"-autocomplete\").length) {\n return;\n }\n grp$($this).grp_autocomplete_m2m({\n lookup_url: lookupUrls.m2m,\n autocomplete_lookup_url: lookupUrls.autocomplete,\n });\n });\n });\n $.each(lookupFields.generic || [], function () {\n var [contentType, objectId] = this;\n $(form)\n .djangoFormField(objectId)\n .each(function () {\n var $this = $(this);\n var index = $this.djangoFormIndex();\n // An autocomplete widget has already been initialized, return\n if ($(\"#\" + $this.attr(\"id\") + \"-autocomplete\").length) {\n return;\n }\n grp$($this).grp_autocomplete_generic({\n content_type: `#id_${prefix}-${index}-${contentType}`,\n object_id: `#id_${prefix}-${index}-${objectId}`,\n lookup_url: lookupUrls.related,\n autocomplete_lookup_url: lookupUrls.m2m,\n });\n });\n });\n });\n};\n\nfunction getLevelPrefix(id) {\n return id\n .replace(/^\\#?id_/, \"\")\n .split(/-(?:empty|__prefix__|\\d+)-/g)\n .slice(0, -1)\n .join(\"-\");\n}\n\n// I very much regret that these are basically copy-pasted from django's\n// inlines.js, but they're hidden in closure scope so I don't have much choice.\nDJNesting.DjangoInlines = {\n initPrepopulatedFields: function (row) {\n const formPrefix = row.djangoFormPrefix();\n if (!formPrefix) return;\n const fields = $(\"#django-admin-prepopulated-fields-constants\").data(\n \"prepopulatedFields\"\n );\n const fieldNames = new Set();\n const fieldDependencies = {};\n\n if (Array.isArray(fields)) {\n fields.forEach(\n ({ id, name, dependency_list, maxLength, allowUnicode }) => {\n fieldNames.add(name);\n const levelPrefix = getLevelPrefix(id);\n if (typeof fieldDependencies[levelPrefix] !== \"object\") {\n fieldDependencies[levelPrefix] = {};\n }\n fieldDependencies[levelPrefix][name] = {\n dependency_list,\n maxLength,\n allowUnicode,\n };\n }\n );\n fieldNames.forEach((name) => {\n row\n .find(`.form-row .field-${name}, .form-row.field-${name}`)\n .each(function () {\n const $el = $(this);\n const prefix = $el.djangoFormPrefix();\n if (!prefix) return;\n const levelPrefix = getLevelPrefix(prefix);\n const dep = (fieldDependencies[levelPrefix] || {})[name];\n if (dep) {\n $el.addClass(\"prepopulated_field\");\n const $field = $el.is(\":input\") ? $el : $el.find(\":input\");\n $field.data(\"dependency_list\", dep.dependency_list);\n $field.data(\"maxLength\", dep.maxLength);\n $field.data(\"allowUnicode\", dep.allowUnicode);\n }\n });\n });\n }\n if (formPrefix.match(/__prefix__/)) return;\n row.find(\".prepopulated_field\").each(function () {\n var field = $(this),\n input = field.is(\":input\") ? field : field.find(\":input\"),\n $input = grp$(input),\n inputFormPrefix = input.djangoFormPrefix(),\n dependencyList = $input.data(\"dependency_list\") || [],\n dependencies = [];\n if (!inputFormPrefix || inputFormPrefix.match(/__prefix__/)) return;\n if (!dependencyList.length || !$input.prepopulate) {\n $input = django$(input);\n dependencyList = $input.data(\"dependency_list\") || [];\n }\n $.each(dependencyList, function (i, fieldName) {\n dependencies.push(\"#id_\" + inputFormPrefix + fieldName);\n });\n if (dependencies.length) {\n $input.prepopulate(\n dependencies,\n $input.data(\"maxLength\") || $input.attr(\"maxlength\"),\n $input.data(\"allowUnicode\")\n );\n }\n });\n },\n reinitDateTimeShortCuts: function () {\n // Reinitialize the calendar and clock widgets by force\n if (typeof window.DateTimeShortcuts !== \"undefined\") {\n $(\".datetimeshortcuts\").remove();\n DateTimeShortcuts.init();\n }\n },\n updateSelectFilter: function ($form) {\n // If any SelectFilter widgets are a part of the new form,\n // instantiate a new SelectFilter instance for it.\n if (typeof window.SelectFilter !== \"undefined\") {\n $form.find(\".selectfilter\").each(function (index, value) {\n var namearr = value.name.split(\"-\");\n SelectFilter.init(value.id, namearr[namearr.length - 1], false);\n });\n $form.find(\".selectfilterstacked\").each(function (index, value) {\n var namearr = value.name.split(\"-\");\n SelectFilter.init(value.id, namearr[namearr.length - 1], true);\n });\n }\n },\n};\n\nfunction patchSelectFilter() {\n window.SelectFilter.init = (function (oldFn) {\n return function init(field_id, field_name, is_stacked) {\n if (field_id.match(/\\-empty\\-/)) {\n return;\n } else {\n oldFn.apply(this, arguments);\n }\n };\n })(window.SelectFilter.init);\n}\n\nif (typeof window.SelectFilter !== \"undefined\") {\n patchSelectFilter();\n} else {\n setTimeout(function () {\n if (typeof window.SelectFilter !== \"undefined\") {\n patchSelectFilter();\n }\n }, 12);\n}\n\nconst djangoFuncs = [\"prepopulate\", \"djangoAdminSelect2\"];\n\ndjangoFuncs.forEach((funcName) => {\n (function patchDjangoFunction(callCount) {\n if (callCount > 2) {\n return;\n }\n if (typeof $.fn[funcName] === \"undefined\") {\n return setTimeout(() => patchDjangoFunction(callCount++), 12);\n }\n $.fn[funcName] = (function (oldFn) {\n return function django_fn_patch() {\n return oldFn.apply(\n this.filter(\n ':not([id*=\"-empty-\"]):not([id$=\"-empty\"]):not([id*=\"__prefix__\"])'\n ),\n arguments\n );\n };\n })($.fn[funcName]);\n })(0);\n});\n\nconst grpFuncs = [\n \"grp_autocomplete_fk\",\n \"grp_autocomplete_generic\",\n \"grp_autocomplete_m2m\",\n \"grp_collapsible\",\n \"grp_collapsible_group\",\n \"grp_inline\",\n \"grp_related_fk\",\n \"grp_related_generic\",\n \"grp_related_m2m\",\n \"grp_timepicker\",\n \"datepicker\",\n \"prepopulate\",\n \"djangoAdminSelect2\",\n];\n\ngrpFuncs.forEach((funcName) => {\n (function patchGrpFunction(callCount) {\n if (callCount > 2) {\n return;\n }\n if (\n typeof window.grp === \"undefined\" ||\n typeof window.grp.jQuery.fn[funcName] === \"undefined\"\n ) {\n return setTimeout(() => patchGrpFunction(callCount++), 12);\n }\n window.grp.jQuery.fn[funcName] = (function (oldFn) {\n return function grp_fn_patch() {\n return oldFn.apply(\n this.filter(\n ':not([id*=\"-empty-\"]):not([id$=\"-empty\"]):not([id*=\"__prefix__\"])'\n ),\n arguments\n );\n };\n })(window.grp.jQuery.fn[funcName]);\n })(0);\n});\n\nexport default DJNesting;\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = require('./_wks')('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) require('./_hide')(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n","'use strict';\nvar at = require('./_string-at')(true);\n\n // `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? at(S, index).length : 1);\n};\n","module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","'use strict';\nvar dP = require('./_object-dp').f;\nvar create = require('./_object-create');\nvar redefineAll = require('./_redefine-all');\nvar ctx = require('./_ctx');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar $iterDefine = require('./_iter-define');\nvar step = require('./_iter-step');\nvar setSpecies = require('./_set-species');\nvar DESCRIPTORS = require('./_descriptors');\nvar fastKey = require('./_meta').fastKey;\nvar validate = require('./_validate-collection');\nvar SIZE = DESCRIPTORS ? '_s' : 'size';\n\nvar getEntry = function (that, key) {\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return that._i[index];\n // frozen object case\n for (entry = that._f; entry; entry = entry.n) {\n if (entry.k == key) return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, NAME, '_i');\n that._t = NAME; // collection type\n that._i = create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear() {\n for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {\n entry.r = true;\n if (entry.p) entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function (key) {\n var that = validate(this, NAME);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.n;\n var prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if (prev) prev.n = next;\n if (next) next.p = prev;\n if (that._f == entry) that._f = next;\n if (that._l == entry) that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /* , that = undefined */) {\n validate(this, NAME);\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var entry;\n while (entry = entry ? entry.n : this._f) {\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key) {\n return !!getEntry(validate(this, NAME), key);\n }\n });\n if (DESCRIPTORS) dP(C.prototype, 'size', {\n get: function () {\n return validate(this, NAME)[SIZE];\n }\n });\n return C;\n },\n def: function (that, key, value) {\n var entry = getEntry(that, key);\n var prev, index;\n // change existing entry\n if (entry) {\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if (!that._f) that._f = entry;\n if (prev) prev.n = entry;\n that[SIZE]++;\n // add to index\n if (index !== 'F') that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function (C, NAME, IS_MAP) {\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function (iterated, kind) {\n this._t = validate(iterated, NAME); // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function () {\n var that = this;\n var kind = that._k;\n var entry = that._l;\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n // get next entry\n if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if (kind == 'keys') return step(0, entry.k);\n if (kind == 'values') return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n","'use strict';\nvar global = require('./_global');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar redefineAll = require('./_redefine-all');\nvar meta = require('./_meta');\nvar forOf = require('./_for-of');\nvar anInstance = require('./_an-instance');\nvar isObject = require('./_is-object');\nvar fails = require('./_fails');\nvar $iterDetect = require('./_iter-detect');\nvar setToStringTag = require('./_set-to-string-tag');\nvar inheritIfRequired = require('./_inherit-if-required');\n\nmodule.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {\n var Base = global[NAME];\n var C = Base;\n var ADDER = IS_MAP ? 'set' : 'add';\n var proto = C && C.prototype;\n var O = {};\n var fixMethod = function (KEY) {\n var fn = proto[KEY];\n redefine(proto, KEY,\n KEY == 'delete' ? function (a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'has' ? function has(a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'get' ? function get(a) {\n return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }\n : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }\n );\n };\n if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {\n new C().entries().next();\n }))) {\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n meta.NEED = true;\n } else {\n var instance = new C();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new C();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n if (!ACCEPT_ITERABLES) {\n C = wrapper(function (target, iterable) {\n anInstance(target, C, NAME);\n var that = inheritIfRequired(new Base(), target, C);\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n return that;\n });\n C.prototype = proto;\n proto.constructor = C;\n }\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n // weak collections should not contains .clear method\n if (IS_WEAK && proto.clear) delete proto.clear;\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F * (C != Base), O);\n\n if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n","var core = module.exports = { version: '2.6.12' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","'use strict';\nrequire('./es6.regexp.exec');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\nvar regexpExec = require('./_regexp-exec');\n\nvar SPECIES = wks('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {\n // Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length === 2 && result[0] === 'a' && result[1] === 'b';\n})();\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n re.exec = function () { execCalled = true; return null; };\n if (KEY === 'split') {\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n }\n re[SYMBOL]('');\n return !execCalled;\n }) : undefined;\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var fns = exec(\n defined,\n SYMBOL,\n ''[KEY],\n function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n }\n );\n var strfn = fns[0];\n var rxfn = fns[1];\n\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = require('./_an-object');\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// 7.2.8 IsRegExp(argument)\nvar isObject = require('./_is-object');\nvar cof = require('./_cof');\nvar MATCH = require('./_wks')('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n","module.exports = {};\n","module.exports = false;\n","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","exports.f = {}.propertyIsEnumerable;\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var redefine = require('./_redefine');\nmodule.exports = function (target, src, safe) {\n for (var key in src) redefine(target, key, src[key], safe);\n return target;\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","'use strict';\n\nvar classof = require('./_classof');\nvar builtinExec = RegExp.prototype.exec;\n\n // `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw new TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n if (classof(R) !== 'RegExp') {\n throw new TypeError('RegExp#exec called on incompatible receiver');\n }\n return builtinExec.call(R, S);\n};\n","'use strict';\n\nvar regexpFlags = require('./_flags');\n\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\n\nvar patchedExec = nativeExec;\n\nvar LAST_INDEX = 'lastIndex';\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/,\n re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;\n})();\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;\n\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + re.source + '$(?!\\\\s)', regexpFlags.call(re));\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];\n\n match = nativeExec.call(re, str);\n\n if (UPDATES_LAST_INDEX_WRONG && match) {\n re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n // eslint-disable-next-line no-loop-func\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","'use strict';\nvar global = require('./_global');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar SPECIES = require('./_wks')('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it, TYPE) {\n if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');\n return it;\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar html = require('./_html');\nvar cof = require('./_cof');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nvar toLength = require('./_to-length');\nvar arraySlice = [].slice;\n\n// fallback for not array-like ES3 strings and DOM objects\n$export($export.P + $export.F * require('./_fails')(function () {\n if (html) arraySlice.call(html);\n}), 'Array', {\n slice: function slice(begin, end) {\n var len = toLength(this.length);\n var klass = cof(this);\n end = end === undefined ? len : end;\n if (klass == 'Array') return arraySlice.call(this, begin, end);\n var start = toAbsoluteIndex(begin, len);\n var upTo = toAbsoluteIndex(end, len);\n var size = toLength(upTo - start);\n var cloned = new Array(size);\n var i = 0;\n for (; i < size; i++) cloned[i] = klass == 'String'\n ? this.charAt(start + i)\n : this[start + i];\n return cloned;\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar aFunction = require('./_a-function');\nvar toObject = require('./_to-object');\nvar fails = require('./_fails');\nvar $sort = [].sort;\nvar test = [1, 2, 3];\n\n$export($export.P + $export.F * (fails(function () {\n // IE8-\n test.sort(undefined);\n}) || !fails(function () {\n // V8 bug\n test.sort(null);\n // Old WebKit\n}) || !require('./_strict-method')($sort)), 'Array', {\n // 22.1.3.25 Array.prototype.sort(comparefn)\n sort: function sort(comparefn) {\n return comparefn === undefined\n ? $sort.call(toObject(this))\n : $sort.call(toObject(this), aFunction(comparefn));\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\n// 19.1.3.6 Object.prototype.toString()\nvar classof = require('./_classof');\nvar test = {};\ntest[require('./_wks')('toStringTag')] = 'z';\nif (test + '' != '[object z]') {\n require('./_redefine')(Object.prototype, 'toString', function toString() {\n return '[object ' + classof(this) + ']';\n }, true);\n}\n","var global = require('./_global');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar dP = require('./_object-dp').f;\nvar gOPN = require('./_object-gopn').f;\nvar isRegExp = require('./_is-regexp');\nvar $flags = require('./_flags');\nvar $RegExp = global.RegExp;\nvar Base = $RegExp;\nvar proto = $RegExp.prototype;\nvar re1 = /a/g;\nvar re2 = /a/g;\n// \"new\" creates a new object, old webkit buggy here\nvar CORRECT_NEW = new $RegExp(re1) !== re1;\n\nif (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function () {\n re2[require('./_wks')('match')] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';\n}))) {\n $RegExp = function RegExp(p, f) {\n var tiRE = this instanceof $RegExp;\n var piRE = isRegExp(p);\n var fiU = f === undefined;\n return !tiRE && piRE && p.constructor === $RegExp && fiU ? p\n : inheritIfRequired(CORRECT_NEW\n ? new Base(piRE && !fiU ? p.source : p, f)\n : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)\n , tiRE ? this : proto, $RegExp);\n };\n var proxy = function (key) {\n key in $RegExp || dP($RegExp, key, {\n configurable: true,\n get: function () { return Base[key]; },\n set: function (it) { Base[key] = it; }\n });\n };\n for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n require('./_redefine')(global, 'RegExp', $RegExp);\n}\n\nrequire('./_set-species')('RegExp');\n","'use strict';\nvar regexpExec = require('./_regexp-exec');\nrequire('./_export')({\n target: 'RegExp',\n proto: true,\n forced: regexpExec !== /./.exec\n}, {\n exec: regexpExec\n});\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\n\n// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match\n function (regexp) {\n var res = maybeCallNative($match, regexp, this);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n if (!rx.global) return regExpExec(rx, S);\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = String(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar toInteger = require('./_to-integer');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&`']|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&`']|\\d\\d?)/g;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nrequire('./_fix-re-wks')('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = defined(this);\n var fn = searchValue == undefined ? undefined : searchValue[REPLACE];\n return fn !== undefined\n ? fn.call(searchValue, O, replaceValue)\n : $replace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n var res = maybeCallNative($replace, regexp, this, replaceValue);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n results.push(result);\n if (!global) break;\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return $replace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n});\n","'use strict';\n\nvar isRegExp = require('./_is-regexp');\nvar anObject = require('./_an-object');\nvar speciesConstructor = require('./_species-constructor');\nvar advanceStringIndex = require('./_advance-string-index');\nvar toLength = require('./_to-length');\nvar callRegExpExec = require('./_regexp-exec-abstract');\nvar regexpExec = require('./_regexp-exec');\nvar fails = require('./_fails');\nvar $min = Math.min;\nvar $push = [].push;\nvar $SPLIT = 'split';\nvar LENGTH = 'length';\nvar LAST_INDEX = 'lastIndex';\nvar MAX_UINT32 = 0xffffffff;\n\n// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError\nvar SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });\n\n// @@split logic\nrequire('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||\n 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||\n 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||\n '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||\n '.'[$SPLIT](/()()/)[LENGTH] > 1 ||\n ''[$SPLIT](/.?/)[LENGTH]\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = String(this);\n if (separator === undefined && limit === 0) return [];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) return $split.call(string, separator, limit);\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = regexpExec.call(separatorCopy, string)) {\n lastIndex = separatorCopy[LAST_INDEX];\n if (lastIndex > lastLastIndex) {\n output.push(string.slice(lastLastIndex, match.index));\n if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));\n lastLength = match[0][LENGTH];\n lastLastIndex = lastIndex;\n if (output[LENGTH] >= splitLimit) break;\n }\n if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop\n }\n if (lastLastIndex === string[LENGTH]) {\n if (lastLength || !separatorCopy.test('')) output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;\n };\n // Chakra, V8\n } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);\n };\n } else {\n internalSplit = $split;\n }\n\n return [\n // `String.prototype.split` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = defined(this);\n var splitter = separator == undefined ? undefined : separator[SPLIT];\n return splitter !== undefined\n ? splitter.call(separator, O, limit)\n : internalSplit.call(String(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (regexp, limit) {\n var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (SUPPORTS_Y ? 'y' : 'g');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = SUPPORTS_Y ? q : 0;\n var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));\n var e;\n if (\n z === null ||\n (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n A.push(S.slice(p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n A.push(z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n A.push(S.slice(p));\n return A;\n }\n ];\n});\n","'use strict';\nvar strong = require('./_collection-strong');\nvar validate = require('./_validate-collection');\nvar SET = 'Set';\n\n// 23.2 Set Objects\nmodule.exports = require('./_collection')(SET, function (get) {\n return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value) {\n return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);\n }\n}, strong);\n","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n","var $iterators = require('./es6.array.iterator');\nvar getKeys = require('./_object-keys');\nvar redefine = require('./_redefine');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar wks = require('./_wks');\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n","module.exports = window[\"grappelli\"];","module.exports = window[\"grp\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// extracted by mini-css-extract-plugin\nexport {};","import $ from \"jquery\";\nimport * as grappelli from \"grappelli\";\nimport DJNesting from \"./utils\";\nimport DjangoFormset from \"./jquery.djangoformset\";\n\nDJNesting.DjangoFormset = DjangoFormset;\n\n$(document).ready(function () {\n // Remove the border on any empty fieldsets\n $(\"fieldset.grp-module, fieldset.module\")\n .filter(function (i, element) {\n return element.childNodes.length == 0;\n })\n .css(\"border-width\", \"0\");\n\n // Set predelete class on any form elements with the DELETE input checked.\n // These can occur on forms rendered after a validation error.\n $('input[name$=\"-DELETE\"]:checked')\n .not('[name*=\"__prefix__\"]')\n .closest(\".djn-inline-form\")\n .addClass(\"grp-predelete\");\n\n $(document).on(\n \"djnesting:initialized djnesting:mutate\",\n function onMutate(e, $inline) {\n var $items = $inline.find(\n \"> .djn-items, > .tabular > .module > .djn-items\"\n );\n var $rows = $items.children(\".djn-tbody\");\n $rows.removeClass(\"row1 row2\");\n $rows.each(function (i, row) {\n var n = 1 + (i % 2);\n $(row).addClass(\"row\" + n);\n });\n }\n );\n\n // Register the nested formset on top level djnesting-stacked elements.\n // It will handle recursing down the nested inlines.\n $(\".djn-group-root\").each(function (i, rootGroup) {\n $(rootGroup).djangoFormset();\n });\n\n $(\"form\").on(\"submit.djnesting\", function (e) {\n $(\".djn-group\").each(function () {\n DJNesting.updatePositions($(this).djangoFormsetPrefix());\n $(document).trigger(\"djnesting:mutate\", [\n $(this).djangoFormset().$inline,\n ]);\n });\n });\n});\n\nexport default DJNesting;\n"],"names":["$","django$","$sel","window","grp","jQuery","fn","init","$djangoSel","prevObject","grp$","$grpSel","regexQuote","DJNesting","grappelli","pluginName","DjangoFormset","inline","opts","emptyClass","predeleteClass","$inline","prefix","djangoFormsetPrefix","_$totalForms","find","attr","_$template","inlineModelClassName","djnData","nestingLevel","handlerSelector","extend","childTypes","data","options","formsetFkModel","addButtonSelector","removeButtonSelector","deleteButtonSelector","formClass","formClassSelector","initRelatedFields","initAutocompleteFields","_setupPolymorphic","_bindEvents","_initializeForms","trigger","each","is","createSortable","document","Error","menu","forEach","c","type","name","$addButton","$menu","after","totalForms","mgmtVal","maxForms","parents","hide","i","_initializeForm","form","$form","formPrefix","djangoFormPrefix","addClass","hasClass","toggleClass","minForms","self","hideRemoveButton","djangoFormsetForms","showHideMethod","$el","off","on","e","preventDefault","stopPropagation","next","length","add","hideMenu","show","$menuButtons","parent","polymorphicType","target","closest","filter","remove","deleteClickHandler","stopImmediatePropagation","$deleteInput","undelete","$deleteButton","index","djangoFormIndex","isInitial","innerHTML","_fillGap","updatePositions","dispatchEvent","CustomEvent","detail","formsetName","delete","checked","$childInline","childFormset","djangoFormset","removeAttr","removeClass","spliceIndex","ctype","$template","clone","id","isNested","replace","append","createContainerElement","updateFormAttributes","RegExp","$firstTemplate","eq","compatibleParents","el","fkModel","compatModels","parentModel","isPolymorphic","indexOf","input","value","setAttribute","parentNode","appendChild","removeChild","insertBefore","isNumeric","spliceInto","reinitDateTimeFields","DjangoInlines","initPrepopulatedFields","reinitDateTimeShortCuts","updateSelectFilter","grp_collapsible","addBackMethod","addBack","toggle_handler_slctr","closed_css","open_css","on_toggle","curated_content_type","formsetModelClassName","$buttons","get","bubbles","$initialForm","$newForm","formsets","toArray","sort","a","b","oldIndex","oldFormPrefixRegex","_makeRoomForInsert","initialFormCount","totalFormCount","gapIndex","$existingForm","isNewAddition","oldFormsetPrefix","newFormsetPrefix","newIndex","$before","currentPosition","prevAll","$oldInline","$currentFormInline","oldDjangoFormset","$parentInline","$parentForm","parentPkField","pk","$parentPk","djangoFormField","val","setTimeout","newValue","$field","parseInt","args","arguments","makeArray","slice","prototype","prefixCache","inlineFormsetData","nestedOptions","djangoPrefixIndex","$this","first","forattr","$group","groupId","cacheKey","match","substr","getElementById","prefixIndex","filterDjangoFormsetForms","formsetPrefix","formId","getAttribute","formIndex","forms","$forms","sortedForms","Array","push","apply","pushStack","fieldName","$empty","matches","isNaN","namePrefix","fieldPart","substring","fieldNameData","prefixAndIndex","filterDjangoField","djRegexCache","fieldId","django","ui","undefined","t","s","n","r","o","nodeName","toLowerCase","href","test","disabled","expr","filters","visible","css","version","keyCode","BACKSPACE","COMMA","DELETE","DOWN","END","ENTER","ESCAPE","HOME","LEFT","NUMPAD_ADD","NUMPAD_DECIMAL","NUMPAD_DIVIDE","NUMPAD_ENTER","NUMPAD_MULTIPLY","NUMPAD_SUBTRACT","PAGE_DOWN","PAGE_UP","PERIOD","RIGHT","SPACE","TAB","UP","focus","call","scrollParent","ie","zIndex","uniqueId","removeUniqueId","createPseudo","focusable","tabbable","outerWidth","jquery","parseFloat","innerWidth","innerHeight","outerHeight","removeData","camelCase","exec","navigator","userAgent","support","selectstart","createElement","disableSelection","bind","enableSelection","unbind","plugin","plugins","element","nodeType","hasScroll","cleanData","triggerHandler","widget","h","l","u","split","Widget","_createWidget","_proto","_childConstructors","isFunction","_super","_superApply","widgetEventPrefix","constructor","namespace","widgetName","widgetFullName","bridge","hasOwnProperty","isPlainObject","concat","charAt","error","option","_init","defaultElement","create","uuid","eventNamespace","_getCreateOptions","bindings","hoverable","_on","destroy","style","ownerDocument","defaultView","parentWindow","_create","_trigger","_getCreateEventData","noop","_destroy","shift","pop","_setOptions","_setOption","enable","disable","guid","delegate","_off","join","undelegate","_delay","_hoverable","mouseenter","currentTarget","mouseleave","_focusable","focusin","focusout","Event","originalEvent","isDefaultPrevented","effect","duration","isEmptyObject","complete","delay","effects","easing","queue","mouseup","cancel","distance","_mouseInit","_mouseDown","started","_mouseDestroy","_mouseMoveDelegate","_mouseUpDelegate","_mouseStarted","_mouseUp","_mouseDownEvent","which","_mouseCapture","mouseDelayMet","_mouseDelayTimer","_mouseDistanceMet","_mouseDelayMet","_mouseStart","_mouseMove","documentMode","button","_mouseDrag","_mouseStop","Math","max","abs","pageX","pageY","p","width","height","offset","top","left","isWindow","scrollTop","scrollLeft","round","d","f","position","scrollbarWidth","children","offsetWidth","clientWidth","getScrollInfo","scrollWidth","scrollHeight","getWithinInfo","of","m","g","v","y","_","within","x","k","collision","w","at","D","T","M","S","my","offsetFractions","marginLeft","marginTop","targetWidth","targetHeight","elemWidth","elemHeight","collisionPosition","collisionWidth","collisionHeight","elem","using","horizontal","vertical","important","fit","flip","flipfit","getElementsByTagName","visibility","border","margin","background","documentElement","firstChild","cssText","mouse","ready","appendTo","axis","connectWith","containment","cursor","cursorAt","dropOnEmpty","forcePlaceholderSize","forceHelperSize","grid","handle","helper","items","opacity","placeholder","revert","scroll","scrollSensitivity","scrollSpeed","scope","tolerance","_isOverAxis","reference","size","containerCache","refresh","floating","item","key","event","overrideHandle","that","reverting","_refreshItems","currentItem","nodes","validHandle","_removeCurrentsFromItems","noActivation","currentContainer","refreshPositions","_createHelper","_cacheHelperProportions","_cacheMargins","margins","click","_getParentOffset","relative","_getRelativeOffset","cssPosition","originalPosition","_generatePosition","originalPageX","originalPageY","_adjustOffsetFromHelper","domPosition","prev","_createPlaceholder","_setContainment","_storedCursor","_storedOpacity","_storedZIndex","tagName","overflowOffset","_uiHash","_preserveHelperProportions","containers","ddmanager","current","dropBehaviour","prepareOffsets","dragging","positionAbs","_convertPositionTo","lastPositionAbs","scrolled","offsetHeight","itemElement","intersection","_intersectsWithPointer","instance","contains","direction","_intersectsWithSides","_rearrange","_contactContainers","drag","noPropagation","drop","cur","animate","offsetParent","body","_clear","_storedCSS","over","_noFinalSort","prepend","serialize","_getItemsAsjQuery","connected","str","res","attribute","expression","ret","_intersectsWith","x1","x2","helperProportions","y1","y2","dyClick","dxClick","isOverElement","forcePointerForContainers","isOverElementHeight","isOverElementWidth","verticalDirection","_getDragVerticalDirection","horizontalDirection","_getDragHorizontalDirection","isOverBottomHalf","isOverRightHalf","delta","_connectWith","String","queries","j","inst","not","list","grep","targetData","_queries","queriesLength","fast","toleranceElement","custom","refreshContainers","className","update","container","innermostContainer","innermostIndex","dist","itemWithLeastDistance","posProperty","sizeProperty","base","nearBottom","obj","isArray","right","bottom","po","ce","co","pos","mod","scrollIsRootNode","hardRefresh","nextSibling","counter","delayedTriggers","before","fromOutside","cancelHelperRemoval","handler","handlerProxy","_inst","sender","nearest","selector","node","parentsUntil","expando","random","createChildNestedSortable","childContainer","$childContainer","widgetConstructor","newInstance","$otherContainer","addToConnectWith","otherInstance","djnsortable","tabSize","disableNesting","errorClass","nestedContainerSelector","doNotClear","containerElementSelector","listItemSelector","maxLevels","revertOnError","protectRoot","rootID","rtl","fixedNestingDepth","showErrorDiv","keepInParent","isAllowed","canConnectWith","container1","container2","model1","model2","instance2","container1Level","_getLevel","container2Level","$element","dataOptions","_connectWithMap","$document","originalConnectWith","lastItemElement","$itemElement","containerSel","$childItems","itemElementClosestContainer","_clearEmpty","_parentItem","parentItem","level","childLevels","_getChildLevels","placeholderClassName","phClassSearch","phOrigClassName","phOrigClassNameEndPos","previousItem","previousSibling","nextItem","beyondMaxLevels","containerInstance","_isAllowed","$previousItemChildContainer","lastRearrangedElement","placeholderParentItem","comparisonElement","previousTopOffset","sDepth","startDepthCount","item_id","parent_id","depth","_recursiveArray","pid","$item","childContainers","result","child","levels","isRoot","origConnectWith","$elements","splice","childNodes","newContainer","nestedSortable","count","groupData","fieldNames","groupFkName","formsetFkName","parentPkVal","parentPrefix","sortableOptions","sortableExcludes","$parentGroup","parentFieldNames","parentPkFieldName","regex","$inlineLabel","html","$fields","$positionField","setPosition","hasValue","siblings","inArray","$currentItem","$originalTr","trTagName","prop","$tr","$originalTd","tdTagName","numColumns","td","$placeholder","$currItem","paddingTop","paddingBottom","paddingLeft","paddingRight","childModels","currentModel","isPolymorphicChild","start","stop","receive","$nextItem","nextAll","$elem","search","$node","attrs","attrName","attrVal","JSON","parse","prepopulate","dependencyIds","map","LOOKUP_URLS","related","lookupUrls","lookupFields","lookupRelated","fk","grp_related_fk","lookup_url","m2m","grp_related_m2m","generic","contentType","objectId","grp_related_generic","content_type","object_id","lookupAutocomplete","grp_autocomplete_fk","autocomplete_lookup_url","autocomplete","grp_autocomplete_m2m","grp_autocomplete_generic","getLevelPrefix","row","fields","Set","fieldDependencies","dependency_list","maxLength","allowUnicode","levelPrefix","dep","field","$input","inputFormPrefix","dependencyList","dependencies","DateTimeShortcuts","SelectFilter","namearr","patchSelectFilter","oldFn","field_id","field_name","is_stacked","djangoFuncs","funcName","patchDjangoFunction","callCount","django_fn_patch","grpFuncs","patchGrpFunction","grp_fn_patch","onMutate","$items","$rows","rootGroup"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"nested_admin.js","mappings":";;;;;;;;;;;;AAAA;AAEA;AACA;AACA;;AACA,SAASC,OAAT,CAAiBC,IAAjB,EAAuB;AACrB,MAAI,OAAOC,MAAM,CAACC,GAAd,KAAsB,WAA1B,EAAuC;AACrC,WAAOJ,2DAAC,CAACE,IAAD,CAAR;AACD;;AACD,MAAIC,MAAM,CAACC,GAAP,CAAWC,MAAX,CAAkBC,EAAlB,CAAqBC,IAArB,KAA8BP,+DAAlC,EAA6C;AAC3C,WAAOA,2DAAC,CAACE,IAAD,CAAR;AACD;;AACD,MAAMM,UAAU,GAAGR,2DAAC,CAACE,IAAD,CAApB;;AACA,MAAIA,IAAI,CAACO,UAAT,EAAqB;AACnBD,IAAAA,UAAU,CAACC,UAAX,GAAwBR,OAAO,CAACC,IAAI,CAACO,UAAN,CAA/B;AACD;;AACD,SAAOD,UAAP;AACD;;AAED,+DAAeP,OAAf;;;;;;;;;;;;;ACnBA;AAEA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASS,IAAT,CAAcR,IAAd,EAAoB;AAClB,MAAI,OAAOC,MAAM,CAACC,GAAd,KAAsB,WAA1B,EAAuC;AACrC,WAAOJ,2DAAC,CAACE,IAAD,CAAR;AACD;;AACD,MAAIC,MAAM,CAACC,GAAP,CAAWC,MAAX,CAAkBC,EAAlB,CAAqBC,IAArB,KAA8BP,+DAAlC,EAA6C;AAC3C,WAAOA,2DAAC,CAACE,IAAD,CAAR;AACD;;AACD,MAAMS,OAAO,GAAGR,MAAM,CAACC,GAAP,CAAWC,MAAX,CAAkBH,IAAlB,CAAhB;;AACA,MAAIA,IAAI,CAACO,UAAT,EAAqB;AACnBE,IAAAA,OAAO,CAACF,UAAR,GAAqBC,IAAI,CAACR,IAAI,CAACO,UAAN,CAAzB;AACD;;AACD,SAAOE,OAAP;AACD;;A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;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C,0CAA0C;AAC1C,0CAA0C;AAC1C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;;;;;;;;;;;AC/Ia;AACb,aAAa,mBAAO,CAAC,4DAAW;AAChC,cAAc,mBAAO,CAAC,4DAAW;AACjC,eAAe,mBAAO,CAAC,gEAAa;AACpC,kBAAkB,mBAAO,CAAC,wEAAiB;AAC3C,WAAW,mBAAO,CAAC,wDAAS;AAC5B,YAAY,mBAAO,CAAC,4DAAW;AAC/B,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,eAAe,mBAAO,CAAC,kEAAc;AACrC,YAAY,mBAAO,CAAC,0DAAU;AAC9B,kBAAkB,mBAAO,CAAC,sEAAgB;AAC1C,qBAAqB,mBAAO,CAAC,kFAAsB;AACnD,wBAAwB,mBAAO,CAAC,sFAAwB;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ,mCAAmC,gCAAgC;AAC3E,+BAA+B,mCAAmC;AAClE;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,sDAAsD;AACtD;AACA,mDAAmD,kBAAkB;AACrE;AACA,yDAAyD,cAAc,GAAG;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;;;;;;;;;;;ACpFA,8BAA8B;AAC9B,w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AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,4BAA4B,mBAAmB;AAC/C;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,mBAAmB;AACnB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;;;;;;;;;;;;AC/Fa;AACb;AACA,eAAe,mBAAO,CAAC,kEAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACZA,UAAU,mBAAO,CAAC,sDAAQ;AAC1B,WAAW,mBAAO,CAAC,kEAAc;AACjC,kBAAkB,mBAAO,CAAC,0EAAkB;AAC5C,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,gBAAgB,mBAAO,CAAC,8FAA4B;AACpD;AACA;AACA;AACA,wCAAwC,mBAAmB;AAC3D;AACA;AACA;AACA;AACA;AACA,oEAAoE,gBAAgB;AACpF;AACA;AACA,IAAI,4CAA4C,+BAA+B;AAC/E;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACxBA,iBAAiB,mBAAO,CAAC,4DAAW;;;;;;;;;;;ACApC;AACA;AACA;AACA;AACA;AACA,0CAA0C;;;;;;;;;;;ACL1C,uBAAuB;AACvB;AACA;AACA;;;;;;;;;;;ACHA,SAAS,mBAAO,CAAC,kEAAc;AAC/B,iBAAiB,mBAAO,CAAC,0EAAkB;AAC3C,iBAAiB,mBAAO,CAAC,s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CAAC;;;;;;;;;;;;ACRY;;AAEb,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,yBAAyB,mBAAO,CAAC,wFAAyB;AAC1D,iBAAiB,mBAAO,CAAC,wFAAyB;;AAElD;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACvCY;;AAEb,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,gBAAgB,mBAAO,CAAC,oEAAe;AACvC,yBAAyB,mBAAO,CAAC,wFAAyB;AAC1D,iBAAiB,mBAAO,CAAC,wFAAyB;AAClD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,oBAAoB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,mBAAmB;AAC3C;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,CAAC;;;;;;;;;;;;ACrHY;;AAEb,eAAe,mBAAO,CAAC,kEAAc;AACrC,eAAe,mBAAO,CAAC,kEAAc;AACrC,yBAAyB,mBAAO,CAAC,sFAAwB;AACzD,yBAAyB,mBAAO,CAAC,wFAAyB;AAC1D,eAAe,mBAAO,CAAC,kEAAc;AACrC,qBAAqB,mBAAO,CAAC,wFAAyB;AACtD,iBAAiB,mBAAO,CAAC,sEAAgB;AACzC,YAAY,mBAAO,CAAC,0DAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sCAAsC,0BAA0B;;AAEhE;AACA,mBAAO,CAAC,oEAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAoF;AACpF;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,0BAA0B,mBAAmB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACrIY;AACb,aAAa,mBAAO,CAAC,kFAAsB;AAC3C,eAAe,mBAAO,CAAC,sFAAwB;AAC/C;;AAEA;AACA,iBAAiB,mBAAO,CAAC,oEAAe;AACxC,0BAA0B;AAC1B,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;ACbY;AACb,UAAU,mBAAO,CAAC,kEAAc;;AAEhC;AACA,mBAAO,CAAC,sEAAgB;AAC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A0Bb,2DAAC,CAAC,IAAD,CAAD,CAAQuB,mBAAR,EAA1B;AACAvB,MAAAA,2DAAC,CAACmD,QAAD,CAAD,CAAYJ,OAAZ,CAAoB,kBAApB,EAAwC,CACtC/C,2DAAC,CAAC,IAAD,CAAD,CAAQqH,aAAR,GAAwBhG,OADc,CAAxC;AAGD,KALD;AAMD,GAPD;AAQD,CA5CD;AA8CA,+DAAeR,8CAAf,E","sources":["../src/nested-admin/django$.js","../src/nested-admin/grp$.js","../src/nested-admin/jquery.djangoformset.js","../src/nested-admin/jquery.djnutils.js","../src/nested-admin/jquery.shim.js","../src/nested-admin/jquery.ui.djnsortable.js","../src/nested-admin/jquery.ui.nestedsortable.js","../src/nested-admin/regexquote.js","../src/nested-admin/sortable.js","../src/nested-admin/utils.js","../../../../node_modules/core-js/modules/_a-function.js","../../../../node_modules/core-js/modules/_add-to-unscopables.js","../../../../node_modules/core-js/modules/_advance-string-index.js","../../../../node_modules/core-js/modules/_an-instance.js","../../../../node_modules/core-js/modules/_an-object.js","../../../../node_modules/core-js/modules/_array-includes.js","../../../../node_modules/core-js/modules/_array-methods.js","../../../../node_modules/core-js/modules/_array-species-constructor.js","../../../../node_modules/core-js/modules/_array-species-create.js","../../../../node_modules/core-js/modules/_classof.js","../../../../node_modules/core-js/modules/_cof.js","../../../../node_modules/core-js/modules/_collection-strong.js","../../../../node_modules/core-js/modules/_collection.js","../../../../node_modules/core-js/modules/_core.js","../../../../node_modules/core-js/modules/_ctx.js","../../../../node_modules/core-js/modules/_defined.js","../../../../node_modules/core-js/modules/_descriptors.js","../../../../node_modules/core-js/modules/_dom-create.js","../../../../node_modules/core-js/modules/_enum-bug-keys.js","../../../../node_modules/core-js/modules/_export.js","../../../../node_modules/core-js/modules/_fails.js","../../../../node_modules/core-js/modules/_fix-re-wks.js","../../../../node_modules/core-js/modules/_flags.js","../../../../node_modules/core-js/modules/_for-of.js","../../../../node_modules/core-js/modules/_function-to-string.js","../../../../node_modules/core-js/modules/_global.js","../../../../node_modules/core-js/modules/_has.js","../../../../node_modules/core-js/modules/_hide.js","../../../../node_modules/core-js/modules/_html.js","../../../../node_modules/core-js/modules/_ie8-dom-define.js","../../../../node_modules/core-js/modules/_inherit-if-required.js","../../../../node_modules/core-js/modules/_iobject.js","../../../../node_modules/core-js/modules/_is-array-iter.js","../../../../node_modules/core-js/modules/_is-array.js","../../../../node_modules/core-js/modules/_is-object.js","../../../../node_modules/core-js/modules/_is-regexp.js","../../../../node_modules/core-js/modules/_iter-call.js","../../../../node_modules/core-js/modules/_iter-create.js","../../../../node_modules/core-js/modules/_iter-define.js","../../../../node_modules/core-js/modules/_iter-detect.js","../../../../node_modules/core-js/modules/_iter-step.js","../../../../node_modules/core-js/modules/_iterators.js","../../../../node_modules/core-js/modules/_library.js","../../../../node_modules/core-js/modules/_meta.js","../../../../node_modules/core-js/modules/_object-create.js","../../../../node_modules/core-js/modules/_object-dp.js","../../../../node_modules/core-js/modules/_object-dps.js","../../../../node_modules/core-js/modules/_object-gopd.js","../../../../node_modules/core-js/modules/_object-gopn.js","../../../../node_modules/core-js/modules/_object-gpo.js","../../../../node_modules/core-js/modules/_object-keys-internal.js","../../../../node_modules/core-js/modules/_object-keys.js","../../../../node_modules/core-js/modules/_object-pie.js","../../../../node_modules/core-js/modules/_property-desc.js","../../../../node_modules/core-js/modules/_redefine-all.js","../../../../node_modules/core-js/modules/_redefine.js","../../../../node_modules/core-js/modules/_regexp-exec-abstract.js","../../../../node_modules/core-js/modules/_regexp-exec.js","../../../../node_modules/core-js/modules/_set-proto.js","../../../../node_modules/core-js/modules/_set-species.js","../../../../node_modules/core-js/modules/_set-to-string-tag.js","../../../../node_modules/core-js/modules/_shared-key.js","../../../../node_modules/core-js/modules/_shared.js","../../../../node_modules/core-js/modules/_species-constructor.js","../../../../node_modules/core-js/modules/_strict-method.js","../../../../node_modules/core-js/modules/_string-at.js","../../../../node_modules/core-js/modules/_to-absolute-index.js","../../../../node_modules/core-js/modules/_to-integer.js","../../../../node_modules/core-js/modules/_to-iobject.js","../../../../node_modules/core-js/modules/_to-length.js","../../../../node_modules/core-js/modules/_to-object.js","../../../../node_modules/core-js/modules/_to-primitive.js","../../../../node_modules/core-js/modules/_uid.js","../../../../node_modules/core-js/modules/_validate-collection.js","../../../../node_modules/core-js/modules/_wks.js","../../../../node_modules/core-js/modules/core.get-iterator-method.js","../../../../node_modules/core-js/modules/es6.array.filter.js","../../../../node_modules/core-js/modules/es6.array.find.js","../../../../node_modules/core-js/modules/es6.array.iterator.js","../../../../node_modules/core-js/modules/es6.array.map.js","../../../../node_modules/core-js/modules/es6.array.slice.js","../../../../node_modules/core-js/modules/es6.array.sort.js","../../../../node_modules/core-js/modules/es6.function.name.js","../../../../node_modules/core-js/modules/es6.object.to-string.js","../../../../node_modules/core-js/modules/es6.regexp.constructor.js","../../../../node_modules/core-js/modules/es6.regexp.exec.js","../../../../node_modules/core-js/modules/es6.regexp.match.js","../../../../node_modules/core-js/modules/es6.regexp.replace.js","../../../../node_modules/core-js/modules/es6.regexp.split.js","../../../../node_modules/core-js/modules/es6.set.js","../../../../node_modules/core-js/modules/es6.string.iterator.js","../../../../node_modules/core-js/modules/web.dom.iterable.js","../../../../external window \"grappelli\"","../../../../external window \"grp\"","../../../../webpack/bootstrap","../../../../webpack/runtime/compat get default export","../../../../webpack/runtime/define property getters","../../../../webpack/runtime/hasOwnProperty shorthand","../../../../webpack/runtime/make namespace object","webpack://DJNesting/./nested_admin/static/nested_admin/src/nested_admin.scss?471b","../src/nested-admin/index.js"],"sourcesContent":["import $ from \"jquery\";\n\n/**\n * Converts a grp.jQuery instance to a django.jQuery instance.\n */\nfunction django$($sel) {\n if (typeof window.grp === \"undefined\") {\n return $($sel);\n }\n if (window.grp.jQuery.fn.init === $.fn.init) {\n return $($sel);\n }\n const $djangoSel = $($sel);\n if ($sel.prevObject) {\n $djangoSel.prevObject = django$($sel.prevObject);\n }\n return $djangoSel;\n}\n\nexport default django$;\n","import $ from \"jquery\";\n\n/**\n * For grappelli 2.14, converts a django.jQuery instance to a grp.jQuery\n * instance. Otherwise (if grappelli is not present, or for grappelli <= 2.13,\n * where the grappelli jQuery instance is the same as django's), returns the\n * object that was passed in, unchanged.\n */\nfunction grp$($sel) {\n if (typeof window.grp === \"undefined\") {\n return $($sel);\n }\n if (window.grp.jQuery.fn.init === $.fn.init) {\n return $($sel);\n }\n const $grpSel = window.grp.jQuery($sel);\n if ($sel.prevObject) {\n $grpSel.prevObject = grp$($sel.prevObject);\n }\n return $grpSel;\n}\n\nexport default grp$;\n","import $ from \"jquery\";\n\nimport regexQuote from \"./regexquote\";\nimport DJNesting from \"./utils\";\nimport * as grappelli from \"grappelli\";\nimport grp from \"grp\";\nimport grp$ from \"./grp$\";\nimport django$ from \"./django$\";\n\nvar pluginName = \"djangoFormset\";\n\nclass DjangoFormset {\n constructor(inline) {\n this.opts = {\n emptyClass: \"empty-form grp-empty-form djn-empty-form\",\n predeleteClass: \"grp-predelete\",\n };\n this.$inline = $(inline);\n this.prefix = this.$inline.djangoFormsetPrefix();\n this._$totalForms = this.$inline.find(\n \"#id_\" + this.prefix + \"-TOTAL_FORMS\"\n );\n this._$totalForms.attr(\"autocomplete\", \"off\");\n this._$template = $(\"#\" + this.prefix + \"-empty\");\n\n var inlineModelClassName = this.$inline.djnData(\"inlineModel\");\n const nestingLevel = this.$inline.djnData(\"nestingLevel\");\n const handlerSelector = `.djn-model-${inlineModelClassName}.djn-level-${nestingLevel}`;\n\n this.opts = $.extend({}, this.opts, {\n childTypes: this.$inline.data(\"inlineFormset\").options.childTypes,\n formsetFkModel: this.$inline.djnData(\"formsetFkModel\"),\n addButtonSelector: \".djn-add-handler\" + handlerSelector,\n removeButtonSelector: \".djn-remove-handler\" + handlerSelector,\n deleteButtonSelector: \".djn-delete-handler\" + handlerSelector,\n formClass:\n \"dynamic-form grp-dynamic-form djn-dynamic-form-\" +\n inlineModelClassName,\n formClassSelector: \".djn-dynamic-form-\" + inlineModelClassName,\n });\n\n DJNesting.initRelatedFields(this.prefix, this.$inline.djnData());\n DJNesting.initAutocompleteFields(this.prefix, this.$inline.djnData());\n\n if (this.opts.childTypes) {\n this._setupPolymorphic();\n }\n this._bindEvents();\n\n this._initializeForms();\n\n this.$inline\n .find('.djn-items:not([id*=\"-empty\"])')\n .trigger(\"djnesting:init\");\n\n // initialize nested formsets\n this.$inline\n .find(\n '.djn-group[id$=\"-group\"][id^=\"' +\n this.prefix +\n '\"][data-inline-formset]:not([id*=\"-empty\"])'\n )\n .each(function () {\n $(this)[pluginName]();\n });\n\n if (this.$inline.is(\".djn-group-root\")) {\n DJNesting.createSortable(this.$inline);\n }\n\n $(document).trigger(\"djnesting:initialized\", [this.$inline, this]);\n }\n _setupPolymorphic() {\n if (!this.opts.childTypes) {\n throw Error(\n \"The polymorphic fieldset options.childTypes is not defined!\"\n );\n }\n let menu = '\";\n const $addButton = this.$inline.find(this.opts.addButtonSelector);\n const $menu = $(menu);\n $addButton.after($menu);\n }\n\n _initializeForms() {\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n if (maxForms <= totalForms) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parents(\".djn-add-item\")\n .hide();\n }\n for (var i = 0; i < totalForms; i++) {\n this._initializeForm(\"#\" + this.prefix + \"-\" + i);\n }\n }\n _initializeForm(form) {\n var $form = $(form);\n var formPrefix = $form.djangoFormPrefix();\n $form.addClass(this.opts.formClass);\n if ($form.hasClass(\"has_original\")) {\n $(\"#id_\" + formPrefix + \"DELETE:checked\").toggleClass(\n this.opts.predeleteClass\n );\n }\n var minForms = this.mgmtVal(\"MIN_NUM_FORMS\");\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var self = this;\n var hideRemoveButton = totalForms <= minForms;\n this.$inline.djangoFormsetForms().each(function () {\n var showHideMethod = hideRemoveButton ? \"hide\" : \"show\";\n $(this).find(self.opts.removeButtonSelector)[showHideMethod]();\n });\n }\n _bindEvents($el) {\n var self = this;\n if (typeof $el == \"undefined\") {\n $el = this.$inline;\n }\n const $addButton = $el.find(this.opts.addButtonSelector);\n $addButton.off(\"click.djnesting\").on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n const $menu = $(this).next(\".polymorphic-type-menu\");\n if (!$menu.length) {\n self.add();\n } else {\n if (!$menu.is(\":visible\")) {\n function hideMenu() {\n $menu.hide();\n $(document).off(\"click\", hideMenu);\n }\n $(document).on(\"click\", hideMenu);\n }\n $menu.show();\n }\n });\n const $menuButtons = $addButton.parent().find(\"> .polymorphic-type-menu a\");\n $menuButtons.off(\"click.djnesting\").on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n const polymorphicType = $(this).attr(\"data-type\");\n self.add(null, polymorphicType);\n const $menu = $(e.target).closest(\".polymorphic-type-menu\");\n if ($menu.is(\":visible\")) {\n $menu.hide();\n }\n });\n $el\n .find(this.opts.removeButtonSelector)\n .filter(function () {\n return !$(this).closest(\".djn-empty-form\").length;\n })\n .off(\"click.djnesting\")\n .on(\"click.djnesting\", function (e) {\n e.preventDefault();\n e.stopPropagation();\n var $form = $(this).closest(self.opts.formClassSelector);\n self.remove($form);\n });\n\n var deleteClickHandler = function (e) {\n e.preventDefault();\n e.stopImmediatePropagation();\n var $form = $(this).closest(self.opts.formClassSelector);\n var $deleteInput = $(\"#id_\" + $form.djangoFormPrefix() + \"DELETE\");\n if (!$deleteInput.is(\":checked\")) {\n self[\"delete\"]($form);\n } else {\n self.undelete($form);\n }\n };\n\n var $deleteButton = $el\n .find(this.opts.deleteButtonSelector)\n .filter(function () {\n return !$(this).closest(\".djn-empty-form\").length;\n });\n\n $deleteButton\n .off(\"click.djnesting\")\n .on(\"click.djnesting\", deleteClickHandler);\n $deleteButton\n .find('[id$=\"-DELETE\"]')\n .on(\"mousedown.djnesting\", deleteClickHandler);\n }\n remove(form) {\n var $form = $(form);\n var totalForms = this.mgmtVal(\"TOTAL_FORMS\");\n var minForms = this.mgmtVal(\"MIN_NUM_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n var index = $form.djangoFormIndex();\n var isInitial = $form.data(\"isInitial\");\n\n // Clearing out the form HTML itself using DOM APIs is much faster\n // than using jQuery to remove the element. Using jQuery is so\n // slow that it hangs the page.\n $form[0].innerHTML = \"\";\n $form.remove();\n\n totalForms -= 1;\n this.mgmtVal(\"TOTAL_FORMS\", totalForms);\n\n if (maxForms - totalForms >= 0) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parent(\".djn-add-item,li\")\n .show();\n }\n\n this._fillGap(index, isInitial);\n\n var self = this;\n var hideRemoveButton = totalForms <= minForms;\n this.$inline.djangoFormsetForms().each(function () {\n var showHideMethod = hideRemoveButton ? \"hide\" : \"show\";\n $(this).find(self.opts.removeButtonSelector)[showHideMethod]();\n });\n\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n\n // Also fire using the events that were added in Django 1.9\n $(document).trigger(\"formset:removed\", [$form, this.prefix]);\n\n document.dispatchEvent(\n new CustomEvent(\"formset:removed\", {\n detail: {\n formsetName: this.prefix,\n },\n })\n );\n }\n delete(form) {\n var self = this,\n $form = $(form),\n formPrefix = $form.djangoFormPrefix(),\n $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n\n if ($form.hasClass(this.opts.predeleteClass)) {\n return;\n }\n\n if (!$form.data(\"isInitial\")) {\n return;\n }\n $deleteInput.attr(\"checked\", \"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = true;\n }\n $form.addClass(this.opts.predeleteClass);\n\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n $childInline.djangoFormsetForms().each(function () {\n if ($(this).hasClass(self.opts.predeleteClass)) {\n $(this).data(\"alreadyDeleted\", true);\n } else {\n childFormset.delete(this);\n }\n });\n });\n $form.find(\".cropduster-form\").each(function () {\n var formPrefix = $(this).djangoFormsetPrefix() + \"-0-\";\n var $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n $deleteInput.attr(\"checked\", \"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = true;\n }\n });\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n $(document).trigger(\"formset:deleted\", [$form, this.prefix]);\n }\n undelete(form) {\n var $form = $(form),\n formPrefix = $form.djangoFormPrefix(),\n $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n\n if ($form.parent().closest(\".\" + this.opts.predeleteClass).length) {\n return;\n }\n if ($form.hasClass(\"has_original\")) {\n $deleteInput.removeAttr(\"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = false;\n }\n $form.removeClass(this.opts.predeleteClass);\n }\n $form.data(\"alreadyDeleted\", false);\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n $childInline.djangoFormsetForms().each(function () {\n if ($(this).data(\"alreadyDeleted\")) {\n $(this).data(\"alreadyDeleted\", false);\n } else {\n childFormset.undelete(this);\n }\n });\n });\n $form.find(\".cropduster-form\").each(function () {\n var formPrefix = $(this).djangoFormsetPrefix() + \"-0-\";\n var $deleteInput = $(\"#id_\" + formPrefix + \"DELETE\");\n $deleteInput.removeAttr(\"checked\");\n if ($deleteInput.length) {\n $deleteInput[0].checked = false;\n }\n });\n DJNesting.updatePositions(this.prefix);\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n $(document).trigger(\"formset:undeleted\", [$form, this.prefix]);\n }\n add(spliceIndex, ctype) {\n var self = this;\n const $template = ctype\n ? $(`#${this.prefix}-empty-${ctype}`)\n : this._$template;\n var $form = $template.clone(true);\n\n // For django-grappelli >= 2.14, where the grp.jQuery instance is not\n // the same as django.jQuery, we must copy any prepopulated_field\n // dependency data from grp.jQuery to the cloned nodes.\n grp$($template)\n .find(\":data(dependency_ids)\")\n .each(function () {\n const id = $(this).attr(\"id\");\n const $el = $form.find(`#${id}`);\n grp$($el).data($.extend({}, $el.data(), grp$(this).data()));\n });\n\n var index = this.mgmtVal(\"TOTAL_FORMS\");\n var maxForms = this.mgmtVal(\"MAX_NUM_FORMS\");\n var isNested = this.$inline.hasClass(\"djn-group-nested\");\n\n $(document).trigger(\"djnesting:beforeadded\", [this.$inline, $form]);\n\n $form.removeClass(this.opts.emptyClass);\n $form.addClass(\"djn-item\");\n $form.attr(\"id\", $form.attr(\"id\").replace(/\\-empty.*?$/, \"-\" + index));\n\n if (isNested) {\n $form.append(DJNesting.createContainerElement());\n }\n\n DJNesting.updateFormAttributes(\n $form,\n new RegExp(\n '([#_]id_|[\\\\#]|^id_|\"|^)' +\n regexQuote(this.prefix) +\n \"\\\\-(?:__prefix__|empty)\\\\-\",\n \"g\"\n ),\n \"$1\" + this.prefix + \"-\" + index + \"-\"\n );\n\n let $firstTemplate = this._$template;\n if (this.opts.childTypes) {\n $firstTemplate = $template\n .closest(\".djn-group\")\n .find(\n '> .djn-items > [id*=\"-empty\"], > .djn-fieldset > .djn-items > [id*=\"-empty\"]'\n )\n .eq(0);\n }\n if (this.opts.childTypes) {\n const compatibleParents = this.$inline.djnData(\"compatibleParents\") || {};\n $form.find(\"> .djn-group\").each((i, el) => {\n const fkModel = $(el).djnData(\"formsetFkModel\");\n const compatModels = compatibleParents[ctype] || [];\n const $el = $(el);\n const parentModel = $el.djnData(\"inlineParentModel\");\n const isPolymorphic = !!$el.data(\"inlineFormset\").options.childTypes;\n const formPrefix = $el.data(\"inlineFormset\").options.prefix;\n if (\n parentModel !== ctype ||\n (isPolymorphic &&\n fkModel !== ctype &&\n compatModels.indexOf(fkModel) === -1)\n ) {\n $el.find('input[id$=\"_FORMS\"]').each((i, input) => {\n input.value = 0;\n input.setAttribute(\"value\", \"0\");\n el.parentNode.appendChild(input);\n });\n el.parentNode.removeChild(el);\n }\n });\n }\n\n $form.insertBefore($firstTemplate);\n\n this.mgmtVal(\"TOTAL_FORMS\", index + 1);\n if (maxForms - (index + 1) <= 0) {\n this.$inline\n .find(this.opts.addButtonSelector)\n .parent(\".djn-add-item,li\")\n .hide();\n }\n\n DJNesting.updatePositions(this.prefix);\n\n if ($.isNumeric(spliceIndex)) {\n this.spliceInto($form, spliceIndex, true);\n } else {\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n }\n\n if (grappelli) {\n grappelli.reinitDateTimeFields(grp$($form));\n }\n DJNesting.DjangoInlines.initPrepopulatedFields(django$($form));\n DJNesting.DjangoInlines.reinitDateTimeShortCuts();\n DJNesting.DjangoInlines.updateSelectFilter($form);\n DJNesting.initRelatedFields(this.prefix);\n DJNesting.initAutocompleteFields(this.prefix);\n if (grp && grp.jQuery.fn.grp_collapsible) {\n var addBackMethod = grp.jQuery.fn.addBack ? \"addBack\" : \"andSelf\";\n grp$($form)\n .find('.grp-collapse:not([id$=\"-empty\"]):not([id*=\"-empty-\"])')\n [addBackMethod]()\n .grp_collapsible({\n toggle_handler_slctr: \".grp-collapse-handler:first\",\n closed_css: \"closed grp-closed\",\n open_css: \"open grp-open\",\n on_toggle: function () {\n $(document).trigger(\"djnesting:toggle\", [self.$inline]);\n },\n });\n }\n if (typeof $.fn.curated_content_type == \"function\") {\n $form.find(\".curated-content-type-select\").each(function () {\n $(this).curated_content_type();\n });\n }\n\n this._initializeForm($form);\n this._bindEvents($form);\n\n if (ctype) {\n const formsetModelClassName = this.$inline.djnData(\"inlineModel\");\n const inlineModelClassName = $form.attr(\"data-inline-model\");\n const $buttons = $form.find(`.djn-model-${formsetModelClassName}`);\n $buttons.addClass(`djn-model-${inlineModelClassName}`);\n $form.addClass(`djn-dynamic-form-${inlineModelClassName}`);\n }\n\n // find any nested formsets\n $form\n .find(\n '.djn-group[id$=\"-group\"][id^=\"' +\n this.prefix +\n '\"][data-inline-formset]:not([id*=\"-empty\"])'\n )\n .each(function () {\n $(this)[pluginName]();\n });\n\n // Fire an event on the document so other javascript applications\n // can be alerted to the newly inserted inline\n $(document).trigger(\"djnesting:added\", [this.$inline, $form]);\n\n // Also fire using the events that were added in Django 1.9\n $(document).trigger(\"formset:added\", [$form, this.prefix]);\n\n try {\n $form.get(0).dispatchEvent(\n new CustomEvent(\"formset:added\", {\n bubbles: true,\n detail: {\n formsetName: this.prefix,\n },\n })\n );\n } catch (e) {}\n\n return $form;\n }\n _fillGap(index, isInitial) {\n var $initialForm, $newForm;\n var formsets = this.$inline.djangoFormsetForms().toArray();\n // Sort formsets in index order, so that we get the last indexed form for the swap.\n formsets.sort(function (a, b) {\n return $(a).djangoFormIndex() - $(b).djangoFormIndex();\n });\n formsets.forEach(function (form) {\n var $form = $(form);\n var i = $form.djangoFormIndex();\n if (i <= index) {\n return;\n }\n if ($form.data(\"isInitial\")) {\n $initialForm = $form;\n } else {\n $newForm = $form;\n }\n });\n var $form = isInitial ? $initialForm || $newForm : $newForm;\n if (!$form) {\n return;\n }\n var oldIndex = $form.djangoFormIndex();\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote(this.prefix + \"-\" + oldIndex) + \"(?!\\\\-\\\\d)\"\n );\n $form.attr(\"id\", this.prefix + \"-\" + index);\n DJNesting.updateFormAttributes(\n $form,\n oldFormPrefixRegex,\n \"$1\" + this.prefix + \"-\" + index\n );\n\n // Update prefixes on nested DjangoFormset objects\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $form]);\n\n if (isInitial && $initialForm && $newForm) {\n this._fillGap(oldIndex, false);\n }\n }\n _makeRoomForInsert() {\n var initialFormCount = this.mgmtVal(\"INITIAL_FORMS\"),\n totalFormCount = this.mgmtVal(\"TOTAL_FORMS\"),\n gapIndex = initialFormCount,\n $existingForm = $(\"#\" + this.prefix + \"-\" + gapIndex);\n\n if (!$existingForm.length) {\n return;\n }\n\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote(this.prefix) + \"-\" + gapIndex + \"(?!\\\\-\\\\d)\"\n );\n $existingForm.attr(\"id\", this.prefix + \"-\" + totalFormCount);\n DJNesting.updateFormAttributes(\n $existingForm,\n oldFormPrefixRegex,\n \"$1\" + this.prefix + \"-\" + totalFormCount\n );\n\n // Update prefixes on nested DjangoFormset objects\n $existingForm.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $existingForm]);\n }\n /**\n * Splice a form into the current formset at new position `index`.\n */\n spliceInto($form, index, isNewAddition) {\n var initialFormCount = this.mgmtVal(\"INITIAL_FORMS\"),\n totalFormCount = this.mgmtVal(\"TOTAL_FORMS\"),\n oldFormsetPrefix = $form.djangoFormsetPrefix(),\n newFormsetPrefix = this.prefix,\n isInitial = $form.data(\"isInitial\"),\n newIndex,\n $before;\n\n // Make sure the form being spliced is from a different inline\n if ($form.djangoFormsetPrefix() == this.prefix) {\n var currentPosition = $form.prevAll(\n \".djn-item:not(.djn-no-drag,.djn-thead)\"\n ).length;\n if (currentPosition === index || typeof index == \"undefined\") {\n DJNesting.updatePositions(newFormsetPrefix);\n return;\n }\n $before = this.$inline\n .find(\"> .djn-items, > .tabular > .module > .djn-items\")\n .find(\"> .djn-item:not(#\" + $form.attr(\"id\") + \")\")\n .eq(index);\n $before.after($form);\n } else {\n var $oldInline = $(\"#\" + oldFormsetPrefix + \"-group\");\n var $currentFormInline = $form.closest(\".djn-group\");\n\n if ($currentFormInline.djangoFormsetPrefix() != newFormsetPrefix) {\n $before = this.$inline\n .find(\"> .djn-items, > .tabular > .module > .djn-items\")\n .find(\"> .djn-item\")\n .eq(index);\n $before.after($form);\n }\n\n var oldDjangoFormset = $oldInline.djangoFormset();\n oldDjangoFormset.mgmtVal(\n \"TOTAL_FORMS\",\n oldDjangoFormset.mgmtVal(\"TOTAL_FORMS\") - 1\n );\n oldDjangoFormset._fillGap($form.djangoFormIndex(), isInitial);\n\n if (isInitial) {\n oldDjangoFormset.mgmtVal(\n \"INITIAL_FORMS\",\n oldDjangoFormset.mgmtVal(\"INITIAL_FORMS\") - 1\n );\n\n var $parentInline = this.$inline.parent().closest(\".djn-group\");\n if ($parentInline.length) {\n var $parentForm = this.$inline.closest(\".djn-inline-form\");\n var parentPkField = ($parentInline.djnData(\"fieldNames\") || {}).pk;\n var $parentPk = $parentForm.djangoFormField(parentPkField);\n if (!$parentPk.val()) {\n $form.data(\"isInitial\", false);\n $form.attr(\"data-is-initial\", \"false\");\n isInitial = false;\n // Set initial form counts to 0 on nested DjangoFormsets\n setTimeout(function () {\n $form\n .find(\n '[name^=\"' +\n $form.djangoFormPrefix() +\n '\"][name$=\"-INITIAL_FORMS\"]'\n )\n .val(\"0\")\n .trigger(\"change\");\n }, 0);\n }\n }\n }\n\n if (isInitial) {\n this._makeRoomForInsert();\n }\n\n // Replace the ids for the splice form\n var oldFormPrefixRegex = new RegExp(\n \"([\\\\#_]|^)\" + regexQuote($form.attr(\"id\")) + \"(?!\\\\-\\\\d)\"\n );\n newIndex = isInitial ? initialFormCount : totalFormCount;\n $form.attr(\"id\", newFormsetPrefix + \"-\" + newIndex);\n DJNesting.updateFormAttributes(\n $form,\n oldFormPrefixRegex,\n \"$1\" + newFormsetPrefix + \"-\" + newIndex\n );\n\n // Update prefixes on nested DjangoFormset objects\n $form.find(\".djn-group\").each(function () {\n var $childInline = $(this);\n var childFormset = $childInline.djangoFormset();\n childFormset.prefix = $childInline.djangoFormsetPrefix();\n });\n\n $(document).trigger(\"djnesting:attrchange\", [this.$inline, $form]);\n\n if (isInitial) {\n this.mgmtVal(\"INITIAL_FORMS\", initialFormCount + 1);\n }\n this.mgmtVal(\"TOTAL_FORMS\", totalFormCount + 1);\n\n DJNesting.updatePositions(oldFormsetPrefix);\n $(document).trigger(\"djnesting:mutate\", [$oldInline]);\n }\n\n DJNesting.updatePositions(newFormsetPrefix);\n if (!isNewAddition) {\n $(document).trigger(\"djnesting:mutate\", [this.$inline]);\n }\n }\n mgmtVal(name, newValue) {\n var $field = this.$inline.find(\"#id_\" + this.prefix + \"-\" + name);\n if (typeof newValue == \"undefined\") {\n return parseInt($field.val(), 10);\n } else {\n return parseInt($field.val(newValue).trigger(\"change\").val(), 10);\n }\n }\n}\n\n$.fn[pluginName] = function () {\n var options, fn, args;\n var $el = this.eq(0);\n\n if (\n arguments.length === 0 ||\n (arguments.length === 1 && $.type(arguments[0]) != \"string\")\n ) {\n options = arguments[0];\n var djangoFormset = $el.data(pluginName);\n if (!djangoFormset) {\n djangoFormset = new DjangoFormset($el, options);\n $el.data(pluginName, djangoFormset);\n }\n return djangoFormset;\n }\n\n fn = arguments[0];\n args = $.makeArray(arguments).slice(1);\n\n if (fn in DjangoFormset.prototype) {\n return $el.data(pluginName)[fn](args);\n } else {\n throw new Error(\"Unknown function call \" + fn + \" for $.fn.\" + pluginName);\n }\n};\n\nexport default DjangoFormset;\n","import $ from \"jquery\";\n\nvar prefixCache = {};\n\n$.fn.djnData = function (name) {\n var inlineFormsetData = $(this).data(\"inlineFormset\") || {},\n nestedOptions = inlineFormsetData.nestedOptions || {};\n if (!name) {\n return nestedOptions;\n } else {\n return nestedOptions[name];\n }\n};\n\n$.fn.djangoPrefixIndex = function () {\n var $this = this.length > 1 ? this.first() : this;\n var id = $this.attr(\"id\"),\n name = $this.attr(\"name\"),\n forattr = $this.attr(\"for\"),\n prefix,\n $form,\n $group,\n groupId,\n cacheKey,\n match,\n index;\n\n if (\n (match = prefixCache[id]) ||\n (match = prefixCache[name]) ||\n (match = prefixCache[forattr])\n ) {\n return match;\n }\n\n if (id && !prefix) {\n prefix = (id.match(/^(.*)\\-group$/) || [null, null])[1];\n }\n\n if (id && !prefix && $this.is(\".djn-item\") && id.match(/\\d+$/)) {\n [cacheKey, prefix, index] = id.match(/(.*?)\\-(\\d+)$/) || [null, null, null];\n }\n\n if (!prefix) {\n $form = $this.closest(\".djn-inline-form\");\n if ($form.length) {\n [cacheKey, prefix, index] = $form.attr(\"id\").match(/(.*?)\\-(\\d+)$/) || [\n null,\n null,\n null,\n ];\n } else {\n $group = $this.closest(\".djn-group\");\n if (!$group.length) {\n return null;\n }\n groupId = $group.attr(\"id\") || \"\";\n prefix = (groupId.match(/^(.*)\\-group$/) || [null, null])[1];\n }\n } else {\n if (prefix.substr(0, 3) == \"id_\") {\n prefix = prefix.substr(3);\n }\n\n if (!document.getElementById(prefix + \"-group\")) {\n return null;\n }\n }\n if (cacheKey) {\n prefixCache[cacheKey] = [prefix, index];\n }\n\n return [prefix, index];\n};\n\n$.fn.djangoFormPrefix = function () {\n var prefixIndex = this.djangoPrefixIndex();\n if (!prefixIndex || !prefixIndex[1]) {\n return null;\n }\n return prefixIndex[0] + \"-\" + prefixIndex[1] + \"-\";\n};\n\n$.fn.djangoFormIndex = function () {\n var prefixIndex = this.djangoPrefixIndex();\n return !prefixIndex || !prefixIndex[1] ? null : parseInt(prefixIndex[1], 10);\n};\n\n$.fn.djangoFormsetPrefix = function () {\n var prefixIndex = this.djangoPrefixIndex();\n return !prefixIndex ? null : prefixIndex[0];\n};\n\nvar filterDjangoFormsetForms = function (form, $group, formsetPrefix) {\n var formId = form.getAttribute(\"id\"),\n formIndex = formId.substr(formsetPrefix.length + 1);\n\n // Check if form id matches /{prefix}-\\d+/\n if (formId.indexOf(formsetPrefix) !== 0) {\n return false;\n }\n return !formIndex.match(/\\D/);\n};\n\n// Selects all initial forms within the same formset as the\n// element the method is being called on.\n$.fn.djangoFormsetForms = function () {\n var forms = [];\n this.each(function () {\n var $this = $(this),\n formsetPrefix = $this.djangoFormsetPrefix(),\n $group = formsetPrefix ? $(\"#\" + formsetPrefix + \"-group\") : null,\n $forms;\n\n if (!formsetPrefix || !$group.length) return;\n\n $forms = $group.find(\".djn-inline-form\").filter(function () {\n return filterDjangoFormsetForms(this, $group, formsetPrefix);\n });\n var sortedForms = $forms.toArray().sort(function (a, b) {\n return $(a).djangoFormIndex() - $(b).djangoFormIndex;\n });\n Array.prototype.push.apply(forms, sortedForms);\n });\n return this.pushStack(forms);\n};\n\nif (typeof $.djangoFormField != \"function\") {\n $.djangoFormField = function (fieldName, prefix, index) {\n var $empty = $([]),\n matches;\n if ((matches = prefix.match(/^(.+)\\-(\\d+)\\-$/))) {\n prefix = matches[1];\n index = matches[2];\n }\n index = parseInt(index, 10);\n if (isNaN(index)) {\n return $empty;\n }\n var namePrefix = prefix + \"-\" + index + \"-\";\n if (fieldName == \"*\") {\n return $('*[name^=\"' + namePrefix + '\"]').filter(function () {\n var fieldPart = $(this).attr(\"name\").substring(namePrefix.length);\n return fieldPart.indexOf(\"-\") === -1;\n });\n }\n var $field = $(\"#id_\" + namePrefix + fieldName);\n if (!$field.length && (fieldName == \"pk\" || fieldName == \"position\")) {\n var $group = $(\"#\" + prefix + \"-group\"),\n fieldNameData = $group.djnData(\"fieldNames\") || {};\n fieldName = fieldNameData[fieldName];\n if (!fieldName) {\n return $empty;\n }\n $field = $(\"#id_\" + namePrefix + fieldName);\n }\n return $field;\n };\n}\n\nif (typeof $.fn.djangoFormField != \"function\") {\n /**\n * Given a django model's field name, and the forms index in the\n * formset, returns the field's input element, or an empty jQuery\n * object on failure.\n *\n * @param String fieldName - 'pk', 'position', or the field's\n * name in django (e.g. 'content_type',\n * 'url', etc.)\n * @return jQuery object containing the field's input element, or\n * an empty jQuery object on failure\n */\n $.fn.djangoFormField = function (fieldName, index) {\n var prefixAndIndex = this.djangoPrefixIndex();\n var $empty = $([]);\n if (!prefixAndIndex) {\n return $empty;\n }\n var prefix = prefixAndIndex[0];\n if (typeof index == \"undefined\") {\n index = prefixAndIndex[1];\n if (typeof index == \"undefined\") {\n return $empty;\n }\n }\n return $.djangoFormField(fieldName, prefix, index);\n };\n}\n\nif (typeof $.fn.filterDjangoField != \"function\") {\n var djRegexCache = {};\n $.fn.filterDjangoField = function (prefix, fieldName, index) {\n var $field, fieldNameData;\n if (typeof index != \"undefined\") {\n if (typeof index == \"string\") {\n index = parseInt(index, 10);\n }\n if (typeof index == \"number\" && !isNaN(index)) {\n var fieldId = \"id_\" + prefix + \"-\" + index + \"-\" + fieldName;\n $field = $(\"#\" + fieldId);\n }\n } else {\n if (typeof djRegexCache[prefix] != \"object\") {\n djRegexCache[prefix] = {};\n }\n if (typeof djRegexCache[prefix][fieldName] == \"undefined\") {\n djRegexCache[prefix][fieldName] = new RegExp(\n \"^\" + prefix + \"-\\\\d+-\" + fieldName + \"$\"\n );\n }\n $field = this.find('input[name$=\"' + fieldName + '\"]').filter(\n function () {\n return this.getAttribute(\"name\").match(\n djRegexCache[prefix][fieldName]\n );\n }\n );\n }\n if (!$field.length && (fieldName == \"pk\" || fieldName == \"position\")) {\n fieldNameData = $(\"#\" + prefix + \"-group\").djnData(\"fieldNames\") || {};\n if (\n typeof fieldNameData[fieldName] &&\n fieldNameData[fieldName] != fieldName\n ) {\n $field = $(this).filterDjangoField(\n prefix,\n fieldNameData[fieldName],\n index\n );\n }\n }\n return $field;\n };\n}\n","export default window.django.jQuery;\n","import $ from \"jquery\";\n/*!\n * jQuery UI Sortable @VERSION\n * http://jqueryui.com\n *\n * Copyright 2012 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/sortable/\n *\n * Depends:\n *\tjquery.ui.core.js\n *\tjquery.ui.mouse.js\n *\tjquery.ui.widget.js\n */\nif ($.ui === undefined) {\n var jQuery = $;\n /* eslint-disable */\n (function(e,t){function i(t,i){var s,n,r,o=t.nodeName.toLowerCase();return\"area\"===o?(s=t.parentNode,n=s.name,t.href&&n&&\"map\"===s.nodeName.toLowerCase()?(r=e(\"img[usemap=#\"+n+\"]\")[0],!!r&&a(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:\"a\"===o?t.href||i:i)&&a(t)}function a(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return\"hidden\"===e.css(this,\"visibility\")}).length}var s=0,n=/^ui-id-\\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:\"1.10.3\",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,a){return\"number\"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),a&&a.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css(\"position\"))||/absolute/.test(this.css(\"position\"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,\"position\"))&&/(auto|scroll)/.test(e.css(this,\"overflow\")+e.css(this,\"overflow-y\")+e.css(this,\"overflow-x\"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,\"overflow\")+e.css(this,\"overflow-y\")+e.css(this,\"overflow-x\"))}).eq(0),/fixed/.test(this.css(\"position\"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css(\"zIndex\",i);if(this.length)for(var a,s,n=e(this[0]);n.length&&n[0]!==document;){if(a=n.css(\"position\"),(\"absolute\"===a||\"relative\"===a||\"fixed\"===a)&&(s=parseInt(n.css(\"zIndex\"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id=\"ui-id-\"+ ++s)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr(\"id\")})}}),e.extend(e.expr[\":\"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,a){return!!e.data(t,a[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,\"tabindex\")))},tabbable:function(t){var a=e.attr(t,\"tabindex\"),s=isNaN(a);return(s||a>=0)&&i(t,!s)}}),e(\"\").outerWidth(1).jquery||e.each([\"Width\",\"Height\"],function(i,a){function s(t,i,a,s){return e.each(n,function(){i-=parseFloat(e.css(t,\"padding\"+this))||0,a&&(i-=parseFloat(e.css(t,\"border\"+this+\"Width\"))||0),s&&(i-=parseFloat(e.css(t,\"margin\"+this))||0)}),i}var n=\"Width\"===a?[\"Left\",\"Right\"]:[\"Top\",\"Bottom\"],r=a.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn[\"inner\"+a]=function(i){return i===t?o[\"inner\"+a].call(this):this.each(function(){e(this).css(r,s(this,i)+\"px\")})},e.fn[\"outer\"+a]=function(t,i){return\"number\"!=typeof t?o[\"outer\"+a].call(this,t):this.each(function(){e(this).css(r,s(this,t,!0,i)+\"px\")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e(\"\").data(\"a-b\",\"a\").removeData(\"a-b\").data(\"a-b\")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart=\"onselectstart\"in document.createElement(\"div\"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?\"selectstart\":\"mousedown\")+\".ui-disableSelection\",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(\".ui-disableSelection\")}}),e.extend(e.ui,{plugin:{add:function(t,i,a){var s,n=e.ui[t].prototype;for(s in a)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([i,a[s]])},call:function(e,t,i){var a,s=e.plugins[t];if(s&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(a=0;s.length>a;a++)e.options[s[a][0]]&&s[a][1].apply(e.element,i)}},hasScroll:function(t,i){if(\"hidden\"===e(t).css(\"overflow\"))return!1;var a=i&&\"left\"===i?\"scrollLeft\":\"scrollTop\",s=!1;return t[a]>0?!0:(t[a]=1,s=t[a]>0,t[a]=0,s)}})})(jQuery);(function(e,t){var i=0,s=Array.prototype.slice,a=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler(\"remove\")}catch(n){}a(t)},e.widget=function(i,s,a){var n,r,o,h,l={},u=i.split(\".\")[0];i=i.split(\".\")[1],n=u+\"-\"+i,a||(a=s,s=e.Widget),e.expr[\":\"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:a.version,_proto:e.extend({},a),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(a,function(i,a){return e.isFunction(a)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,n=this._superApply;return this._super=e,this._superApply=t,i=a.apply(this,arguments),this._super=s,this._superApply=n,i}}(),t):(l[i]=a,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:n}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+\".\"+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var a,n,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(a in r[o])n=r[o][a],r[o].hasOwnProperty(a)&&n!==t&&(i[a]=e.isPlainObject(n)?e.isPlainObject(i[a])?e.widget.extend({},i[a],n):e.widget.extend({},n):n);return i},e.widget.bridge=function(i,a){var n=a.prototype.widgetFullName||i;e.fn[i]=function(r){var o=\"string\"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,a=e.data(this,n);return a?e.isFunction(a[r])&&\"_\"!==r.charAt(0)?(s=a[r].apply(a,h),s!==a&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error(\"no such method '\"+r+\"' for \"+i+\" widget instance\"):e.error(\"cannot call methods on \"+i+\" prior to initialization; \"+\"attempted to call method '\"+r+\"'\")}):this.each(function(){var t=e.data(this,n);t?t.option(r||{})._init():e.data(this,n,new a(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:\"widget\",widgetEventPrefix:\"\",defaultElement:\"
\",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace=\".\"+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger(\"create\",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr(\"aria-disabled\").removeClass(this.widgetFullName+\"-disabled \"+\"ui-state-disabled\"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass(\"ui-state-hover\"),this.focusable.removeClass(\"ui-state-focus\")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var a,n,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if(\"string\"==typeof i)if(o={},a=i.split(\".\"),i=a.shift(),a.length){for(n=o[i]=e.widget.extend({},this.options[i]),r=0;a.length-1>r;r++)n[a[r]]=n[a[r]]||{},n=n[a[r]];if(i=a.pop(),s===t)return n[i]===t?null:n[i];n[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,\"disabled\"===e&&(this.widget().toggleClass(this.widgetFullName+\"-disabled ui-state-disabled\",!!t).attr(\"aria-disabled\",t),this.hoverable.removeClass(\"ui-state-hover\"),this.focusable.removeClass(\"ui-state-focus\")),this},enable:function(){return this._setOption(\"disabled\",!1)},disable:function(){return this._setOption(\"disabled\",!0)},_on:function(i,s,a){var n,r=this;\"boolean\"!=typeof i&&(a=s,s=i,i=!1),a?(s=n=e(s),this.bindings=this.bindings.add(s)):(a=s,s=this.element,n=this.widget()),e.each(a,function(a,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass(\"ui-state-disabled\")?(\"string\"==typeof o?r[o]:o).apply(r,arguments):t}\"string\"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=a.match(/^(\\w+)\\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?n.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||\"\").split(\" \").join(this.eventNamespace+\" \")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return(\"string\"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass(\"ui-state-hover\")},mouseleave:function(t){e(t.currentTarget).removeClass(\"ui-state-hover\")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass(\"ui-state-focus\")},focusout:function(t){e(t.currentTarget).removeClass(\"ui-state-focus\")}})},_trigger:function(t,i,s){var a,n,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],n=i.originalEvent)for(a in n)a in i||(i[a]=n[a]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:\"fadeIn\",hide:\"fadeOut\"},function(t,i){e.Widget.prototype[\"_\"+t]=function(s,a,n){\"string\"==typeof a&&(a={effect:a});var r,o=a?a===!0||\"number\"==typeof a?i:a.effect||i:t;a=a||{},\"number\"==typeof a&&(a={duration:a}),r=!e.isEmptyObject(a),a.complete=n,a.delay&&s.delay(a.delay),r&&e.effects&&e.effects.effect[o]?s[t](a):o!==t&&s[o]?s[o](a.duration,a.easing,n):s.queue(function(i){e(this)[t](),n&&n.call(s[0]),i()})}})})(jQuery);(function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget(\"ui.mouse\",{version:\"1.10.3\",options:{cancel:\"input,textarea,button,select,option\",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind(\"mousedown.\"+this.widgetName,function(e){return t._mouseDown(e)}).bind(\"click.\"+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+\".preventClickEvent\")?(e.removeData(i.target,t.widgetName+\".preventClickEvent\"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind(\".\"+this.widgetName),this._mouseMoveDelegate&&e(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,a=1===i.which,n=\"string\"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return a&&!n&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+\".preventClickEvent\")&&e.removeData(i.target,this.widgetName+\".preventClickEvent\"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).bind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind(\"mousemove.\"+this.widgetName,this._mouseMoveDelegate).unbind(\"mouseup.\"+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+\".preventClickEvent\",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);(function(e,t){function i(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function s(t,i){return parseInt(e.css(t,i),10)||0}function a(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,r=Math.max,o=Math.abs,h=Math.round,l=/left|center|right/,u=/top|center|bottom/,c=/[\\+\\-]\\d+(\\.[\\d]+)?%?/,d=/^\\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var i,s,a=e(\"
\"),r=a.children()[0];return e(\"body\").append(a),i=r.offsetWidth,a.css(\"overflow\",\"scroll\"),s=r.offsetWidth,i===s&&(s=a[0].clientWidth),a.remove(),n=i-s},getScrollInfo:function(t){var i=t.isWindow?\"\":t.element.css(\"overflow-x\"),s=t.isWindow?\"\":t.element.css(\"overflow-y\"),a=\"scroll\"===i||\"auto\"===i&&t.widths?\"left\":i>0?\"right\":\"center\",vertical:0>n?\"top\":a>0?\"bottom\":\"middle\"};c>p&&p>o(i+s)&&(h.horizontal=\"center\"),d>m&&m>o(a+n)&&(h.vertical=\"middle\"),h.important=r(o(i),o(s))>r(o(a),o(n))?\"horizontal\":\"vertical\",t.using.call(this,e,h)}),u.offset(e.extend(M,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollLeft:s.offset.left,n=s.width,o=e.left-t.collisionPosition.marginLeft,h=a-o,l=o+t.collisionWidth-n-a;t.collisionWidth>n?h>0&&0>=l?(i=e.left+h+t.collisionWidth-n-a,e.left+=h-i):e.left=l>0&&0>=h?a:h>l?a+n-t.collisionWidth:a:h>0?e.left+=h:l>0?e.left-=l:e.left=r(e.left-o,e.left)},top:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollTop:s.offset.top,n=t.within.height,o=e.top-t.collisionPosition.marginTop,h=a-o,l=o+t.collisionHeight-n-a;t.collisionHeight>n?h>0&&0>=l?(i=e.top+h+t.collisionHeight-n-a,e.top+=h-i):e.top=l>0&&0>=h?a:h>l?a+n-t.collisionHeight:a:h>0?e.top+=h:l>0?e.top-=l:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var i,s,a=t.within,n=a.offset.left+a.scrollLeft,r=a.width,h=a.isWindow?a.scrollLeft:a.offset.left,l=e.left-t.collisionPosition.marginLeft,u=l-h,c=l+t.collisionWidth-r-h,d=\"left\"===t.my[0]?-t.elemWidth:\"right\"===t.my[0]?t.elemWidth:0,p=\"left\"===t.at[0]?t.targetWidth:\"right\"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+d+p+f+t.collisionWidth-r-n,(0>i||o(u)>i)&&(e.left+=d+p+f)):c>0&&(s=e.left-t.collisionPosition.marginLeft+d+p+f-h,(s>0||c>o(s))&&(e.left+=d+p+f))},top:function(e,t){var i,s,a=t.within,n=a.offset.top+a.scrollTop,r=a.height,h=a.isWindow?a.scrollTop:a.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-h,c=l+t.collisionHeight-r-h,d=\"top\"===t.my[1],p=d?-t.elemHeight:\"bottom\"===t.my[1]?t.elemHeight:0,f=\"top\"===t.at[1]?t.targetHeight:\"bottom\"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-r-n,e.top+p+f+m>u&&(0>s||o(u)>s)&&(e.top+=p+f+m)):c>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-h,e.top+p+f+m>c&&(i>0||c>o(i))&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,a,n,r=document.getElementsByTagName(\"body\")[0],o=document.createElement(\"div\");t=document.createElement(r?\"div\":\"body\"),s={visibility:\"hidden\",width:0,height:0,border:0,margin:0,background:\"none\"},r&&e.extend(s,{position:\"absolute\",left:\"-1000px\",top:\"-1000px\"});for(n in s)t.style[n]=s[n];t.appendChild(o),i=r||document.documentElement,i.insertBefore(t,i.firstChild),o.style.cssText=\"position: absolute; left: 10.7432222px;\",a=e(o).offset().left,e.support.offsetFractions=a>10&&11>a,t.innerHTML=\"\",i.removeChild(t)}()})(jQuery);\n\t\t/* eslint-enable */\n}\n\n$.widget(\"ui.djnsortable\", $.ui.mouse, {\n version: \"@VERSION\",\n widgetEventPrefix: \"sort\",\n ready: false,\n options: {\n appendTo: \"parent\",\n axis: false,\n connectWith: false,\n containment: false,\n cursor: \"auto\",\n cursorAt: false,\n dropOnEmpty: true,\n forcePlaceholderSize: false,\n forceHelperSize: false,\n grid: false,\n handle: false,\n helper: \"original\",\n items: \"> *\",\n opacity: false,\n placeholder: false,\n revert: false,\n scroll: true,\n scrollSensitivity: 20,\n scrollSpeed: 20,\n scope: \"default\",\n tolerance: \"intersect\",\n zIndex: 1000,\n },\n\n _isOverAxis: function (x, reference, size) {\n return x >= reference && x < reference + size;\n },\n\n _create: function () {\n var o = this.options;\n this.containerCache = {};\n this.element.addClass(\"ui-sortable\");\n\n //Get the items\n this.refresh();\n\n //Let's determine if the items are being displayed horizontally\n this.floating = this.items.length\n ? o.axis === \"x\" ||\n /left|right/.test(this.items[0].item.css(\"float\")) ||\n /inline|table-cell/.test(this.items[0].item.css(\"display\"))\n : false;\n\n //Let's determine the parent's offset\n this.offset = this.element.offset();\n\n //Initialize mouse events for interaction\n this._mouseInit();\n\n //We're ready to go\n this.ready = true;\n },\n\n _destroy: function () {\n this.element.removeClass(\"ui-sortable ui-sortable-disabled\");\n this._mouseDestroy();\n\n for (var i = this.items.length - 1; i >= 0; i--)\n this.items[i].item.removeData(this.widgetName + \"-item\");\n\n return this;\n },\n\n _setOption: function (key, value) {\n if (key === \"disabled\") {\n this.options[key] = value;\n\n this.widget().toggleClass(\"ui-sortable-disabled\", !!value);\n } else {\n // Don't call widget base _setOption for disable as it adds ui-state-disabled class\n $.Widget.prototype._setOption.apply(this, arguments);\n }\n },\n\n _mouseCapture: function (event, overrideHandle) {\n var that = this;\n\n if (this.reverting) {\n return false;\n }\n\n if (this.options.disabled || this.options.type == \"static\") return false;\n\n //We have to refresh the items data once first\n this._refreshItems(event);\n\n //Find out if the clicked node (or one of its parents) is a actual item in this.items\n var currentItem = null,\n nodes = $(event.target)\n .parents()\n .each(function () {\n if ($.data(this, that.widgetName + \"-item\") == that) {\n currentItem = $(this);\n return false;\n }\n });\n if ($.data(event.target, that.widgetName + \"-item\") == that)\n currentItem = $(event.target);\n\n if (!currentItem) return false;\n if (this.options.handle && !overrideHandle) {\n var validHandle = false;\n var addBackMethod = $.fn.addBack ? \"addBack\" : \"andSelf\";\n\n $(this.options.handle, currentItem)\n .find(\"*\")\n [addBackMethod]()\n .each(function () {\n if (this == event.target) validHandle = true;\n });\n if (!validHandle) return false;\n }\n\n this.currentItem = currentItem;\n this._removeCurrentsFromItems();\n return true;\n },\n\n _mouseStart: function (event, overrideHandle, noActivation) {\n var o = this.options;\n this.currentContainer = this;\n\n //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture\n this.refreshPositions();\n\n //Create and append the visible helper\n this.helper = this._createHelper(event);\n\n //Cache the helper size\n this._cacheHelperProportions();\n\n /*\n * - Position generation -\n * This block generates everything position related - it's the core of draggables.\n */\n\n //Cache the margins of the original element\n this._cacheMargins();\n\n //Get the next scrolling parent\n this.scrollParent = this.helper.scrollParent();\n\n //The element's absolute position on the page minus margins\n this.offset = this.currentItem.offset();\n this.offset = {\n top: this.offset.top - this.margins.top,\n left: this.offset.left - this.margins.left,\n };\n\n $.extend(this.offset, {\n click: {\n //Where the click happened, relative to the element\n left: event.pageX - this.offset.left,\n top: event.pageY - this.offset.top,\n },\n parent: this._getParentOffset(),\n relative: this._getRelativeOffset(), //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper\n });\n\n // Only after we got the offset, we can change the helper's position to absolute\n // TODO: Still need to figure out a way to make relative sorting possible\n this.helper.css(\"position\", \"absolute\");\n this.cssPosition = this.helper.css(\"position\");\n\n //Generate the original position\n this.originalPosition = this._generatePosition(event);\n this.originalPageX = event.pageX;\n this.originalPageY = event.pageY;\n\n //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied\n o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt);\n\n //Cache the former DOM position\n this.domPosition = {\n prev: this.currentItem.prev()[0],\n parent: this.currentItem.parent()[0],\n };\n\n //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way\n if (this.helper[0] != this.currentItem[0]) {\n this.currentItem.hide();\n }\n\n //Create the placeholder\n this._createPlaceholder();\n\n //Set a containment if given in the options\n if (o.containment) this._setContainment();\n\n if (o.cursor) {\n // cursor option\n if ($(\"body\").css(\"cursor\")) this._storedCursor = $(\"body\").css(\"cursor\");\n $(\"body\").css(\"cursor\", o.cursor);\n }\n\n if (o.opacity) {\n // opacity option\n if (this.helper.css(\"opacity\"))\n this._storedOpacity = this.helper.css(\"opacity\");\n this.helper.css(\"opacity\", o.opacity);\n }\n\n if (o.zIndex) {\n // zIndex option\n if (this.helper.css(\"zIndex\"))\n this._storedZIndex = this.helper.css(\"zIndex\");\n this.helper.css(\"zIndex\", o.zIndex);\n }\n\n //Prepare scrolling\n if (\n this.scrollParent[0] != document &&\n this.scrollParent[0].tagName != \"HTML\"\n )\n this.overflowOffset = this.scrollParent.offset();\n\n //Call callbacks\n this._trigger(\"start\", event, this._uiHash());\n\n //Recache the helper size\n if (!this._preserveHelperProportions) this._cacheHelperProportions();\n\n //Post 'activate' events to possible containers\n if (!noActivation) {\n for (var i = this.containers.length - 1; i >= 0; i--) {\n this.containers[i]._trigger(\"activate\", event, this._uiHash(this));\n }\n }\n\n //Prepare possible droppables\n if ($.ui.ddmanager) $.ui.ddmanager.current = this;\n\n if ($.ui.ddmanager && !o.dropBehaviour)\n $.ui.ddmanager.prepareOffsets(this, event);\n\n this.dragging = true;\n\n this.helper.addClass(\"ui-sortable-helper\");\n this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position\n return true;\n },\n\n _mouseDrag: function (event) {\n //Compute the helpers position\n this.position = this._generatePosition(event);\n this.positionAbs = this._convertPositionTo(\"absolute\");\n\n if (!this.lastPositionAbs) {\n this.lastPositionAbs = this.positionAbs;\n }\n\n //Do scrolling\n if (this.options.scroll) {\n var o = this.options,\n scrolled = false;\n if (\n this.scrollParent[0] != document &&\n this.scrollParent[0].tagName != \"HTML\"\n ) {\n if (\n this.overflowOffset.top +\n this.scrollParent[0].offsetHeight -\n event.pageY <\n o.scrollSensitivity\n )\n this.scrollParent[0].scrollTop = scrolled =\n this.scrollParent[0].scrollTop + o.scrollSpeed;\n else if (event.pageY - this.overflowOffset.top < o.scrollSensitivity)\n this.scrollParent[0].scrollTop = scrolled =\n this.scrollParent[0].scrollTop - o.scrollSpeed;\n\n if (\n this.overflowOffset.left +\n this.scrollParent[0].offsetWidth -\n event.pageX <\n o.scrollSensitivity\n )\n this.scrollParent[0].scrollLeft = scrolled =\n this.scrollParent[0].scrollLeft + o.scrollSpeed;\n else if (event.pageX - this.overflowOffset.left < o.scrollSensitivity)\n this.scrollParent[0].scrollLeft = scrolled =\n this.scrollParent[0].scrollLeft - o.scrollSpeed;\n } else {\n if (event.pageY - $(document).scrollTop() < o.scrollSensitivity)\n scrolled = $(document).scrollTop(\n $(document).scrollTop() - o.scrollSpeed\n );\n else if (\n $(window).height() - (event.pageY - $(document).scrollTop()) <\n o.scrollSensitivity\n )\n scrolled = $(document).scrollTop(\n $(document).scrollTop() + o.scrollSpeed\n );\n\n if (event.pageX - $(document).scrollLeft() < o.scrollSensitivity)\n scrolled = $(document).scrollLeft(\n $(document).scrollLeft() - o.scrollSpeed\n );\n else if (\n $(window).width() - (event.pageX - $(document).scrollLeft()) <\n o.scrollSensitivity\n )\n scrolled = $(document).scrollLeft(\n $(document).scrollLeft() + o.scrollSpeed\n );\n }\n\n if (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)\n $.ui.ddmanager.prepareOffsets(this, event);\n }\n\n //Regenerate the absolute position used for position checks\n this.positionAbs = this._convertPositionTo(\"absolute\");\n\n //Set the helper position\n if (!this.options.axis || this.options.axis != \"y\")\n this.helper[0].style.left = this.position.left + \"px\";\n if (!this.options.axis || this.options.axis != \"x\")\n this.helper[0].style.top = this.position.top + \"px\";\n\n //Rearrange\n for (var i = this.items.length - 1; i >= 0; i--) {\n //Cache variables and intersection, continue if no intersection\n var item = this.items[i],\n itemElement = item.item[0],\n intersection = this._intersectsWithPointer(item);\n if (!intersection) continue;\n\n // Only put the placeholder inside the current Container, skip all\n // items form other containers. This works because when moving\n // an item from one container to another the\n // currentContainer is switched before the placeholder is moved.\n //\n // Without this moving items in \"sub-sortables\" can cause the placeholder to jitter\n // beetween the outer and inner container.\n if (item.instance !== this.currentContainer) continue;\n\n if (\n itemElement != this.currentItem[0] && //cannot intersect with itself\n this.placeholder[intersection == 1 ? \"next\" : \"prev\"]()[0] !=\n itemElement && //no useless actions that have been done before\n !$.contains(this.placeholder[0], itemElement) && //no action if the item moved is the parent of the item checked\n (this.options.type == \"semi-dynamic\"\n ? !$.contains(this.element[0], itemElement)\n : true)\n //&& itemElement.parentNode == this.placeholder[0].parentNode // only rearrange items within the same container\n ) {\n this.direction = intersection == 1 ? \"down\" : \"up\";\n\n if (\n this.options.tolerance == \"pointer\" ||\n this._intersectsWithSides(item)\n ) {\n this._rearrange(event, item);\n } else {\n break;\n }\n\n this._trigger(\"change\", event, this._uiHash());\n break;\n }\n }\n\n //Post events to containers\n this._contactContainers(event);\n\n //Interconnect with droppables\n if ($.ui.ddmanager) $.ui.ddmanager.drag(this, event);\n\n //Call callbacks\n this._trigger(\"sort\", event, this._uiHash());\n\n this.lastPositionAbs = this.positionAbs;\n return false;\n },\n\n _mouseStop: function (event, noPropagation) {\n if (!event) return;\n\n //If we are using droppables, inform the manager about the drop\n if ($.ui.ddmanager && !this.options.dropBehaviour)\n $.ui.ddmanager.drop(this, event);\n\n if (this.options.revert) {\n var that = this;\n var cur = this.placeholder.offset();\n\n this.reverting = true;\n\n $(this.helper).animate(\n {\n left:\n cur.left -\n this.offset.parent.left -\n this.margins.left +\n (this.offsetParent[0] == document.body\n ? 0\n : this.offsetParent[0].scrollLeft),\n top:\n cur.top -\n this.offset.parent.top -\n this.margins.top +\n (this.offsetParent[0] == document.body\n ? 0\n : this.offsetParent[0].scrollTop),\n },\n parseInt(this.options.revert, 10) || 500,\n function () {\n that._clear(event);\n }\n );\n } else {\n this._clear(event, noPropagation);\n }\n\n return false;\n },\n\n cancel: function () {\n if (this.dragging) {\n this._mouseUp({ target: null });\n\n if (this.options.helper == \"original\")\n this.currentItem.css(this._storedCSS).removeClass(\"ui-sortable-helper\");\n else this.currentItem.show();\n\n //Post deactivating events to containers\n for (var i = this.containers.length - 1; i >= 0; i--) {\n this.containers[i]._trigger(\"deactivate\", null, this._uiHash(this));\n if (this.containers[i].containerCache.over) {\n this.containers[i]._trigger(\"out\", null, this._uiHash(this));\n this.containers[i].containerCache.over = 0;\n }\n }\n }\n\n if (this.placeholder) {\n //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!\n if (this.placeholder[0].parentNode)\n this.placeholder[0].parentNode.removeChild(this.placeholder[0]);\n if (\n this.options.helper != \"original\" &&\n this.helper &&\n this.helper[0].parentNode\n )\n this.helper.remove();\n\n $.extend(this, {\n helper: null,\n dragging: false,\n reverting: false,\n _noFinalSort: null,\n });\n\n if (this.domPosition.prev) {\n $(this.domPosition.prev).after(this.currentItem);\n } else {\n $(this.domPosition.parent).prepend(this.currentItem);\n }\n }\n\n return this;\n },\n\n serialize: function (o) {\n var items = this._getItemsAsjQuery(o && o.connected);\n var str = [];\n o = o || {};\n\n $(items).each(function () {\n var res = ($(o.item || this).attr(o.attribute || \"id\") || \"\").match(\n o.expression || /(.+)[-=_](.+)/\n );\n if (res)\n str.push(\n (o.key || res[1] + \"[]\") +\n \"=\" +\n (o.key && o.expression ? res[1] : res[2])\n );\n });\n\n if (!str.length && o.key) {\n str.push(o.key + \"=\");\n }\n\n return str.join(\"&\");\n },\n\n toArray: function (o) {\n var items = this._getItemsAsjQuery(o && o.connected);\n var ret = [];\n o = o || {};\n\n items.each(function () {\n ret.push($(o.item || this).attr(o.attribute || \"id\") || \"\");\n });\n return ret;\n },\n\n /* Be careful with the following core functions */\n _intersectsWith: function (item) {\n var x1 = this.positionAbs.left,\n x2 = x1 + this.helperProportions.width,\n y1 = this.positionAbs.top,\n y2 = y1 + this.helperProportions.height;\n\n var l = item.left,\n r = l + item.width,\n t = item.top,\n b = t + Math.max(10, item.height);\n\n var dyClick = this.offset.click.top,\n dxClick = this.offset.click.left;\n\n var isOverElement =\n y1 + dyClick > t &&\n y1 + dyClick < b &&\n x1 + dxClick > l &&\n x1 + dxClick < r;\n\n if (\n this.options.tolerance == \"pointer\" ||\n this.options.forcePointerForContainers ||\n (this.options.tolerance != \"pointer\" &&\n this.helperProportions[this.floating ? \"width\" : \"height\"] >\n item[this.floating ? \"width\" : \"height\"])\n ) {\n return isOverElement;\n } else {\n return (\n l < x1 + this.helperProportions.width / 2 && // Right Half\n x2 - this.helperProportions.width / 2 < r && // Left Half\n t < y1 + this.helperProportions.height / 2 && // Bottom Half\n y2 - this.helperProportions.height / 2 < b\n ); // Top Half\n }\n },\n\n _intersectsWithPointer: function (item) {\n var isOverElementHeight =\n this.options.axis === \"x\" ||\n this._isOverAxis(\n this.positionAbs.top + this.offset.click.top,\n item.top,\n Math.max(10, item.height)\n ),\n isOverElementWidth =\n this.options.axis === \"y\" ||\n this._isOverAxis(\n this.positionAbs.left + this.offset.click.left,\n item.left,\n item.width\n ),\n isOverElement = isOverElementHeight && isOverElementWidth,\n verticalDirection = this._getDragVerticalDirection(),\n horizontalDirection = this._getDragHorizontalDirection();\n\n if (!isOverElement) return false;\n\n return this.floating\n ? (horizontalDirection && horizontalDirection == \"right\") ||\n verticalDirection == \"down\"\n ? 2\n : 1\n : verticalDirection && (verticalDirection == \"down\" ? 2 : 1);\n },\n\n _intersectsWithSides: function (item) {\n var isOverBottomHalf = this._isOverAxis(\n this.positionAbs.top + this.offset.click.top,\n item.top + Math.max(10, item.height) / 2,\n Math.max(10, item.height)\n ),\n isOverRightHalf = this._isOverAxis(\n this.positionAbs.left + this.offset.click.left,\n item.left + item.width / 2,\n item.width\n ),\n verticalDirection = this._getDragVerticalDirection(),\n horizontalDirection = this._getDragHorizontalDirection();\n\n if (this.floating && horizontalDirection) {\n return (\n (horizontalDirection == \"right\" && isOverRightHalf) ||\n (horizontalDirection == \"left\" && !isOverRightHalf)\n );\n } else {\n return (\n verticalDirection &&\n ((verticalDirection == \"down\" && isOverBottomHalf) ||\n (verticalDirection == \"up\" && !isOverBottomHalf))\n );\n }\n },\n\n _getDragVerticalDirection: function () {\n var delta = this.positionAbs.top - this.lastPositionAbs.top;\n return delta != 0 && (delta > 0 ? \"down\" : \"up\");\n },\n\n _getDragHorizontalDirection: function () {\n var delta = this.positionAbs.left - this.lastPositionAbs.left;\n return delta != 0 && (delta > 0 ? \"right\" : \"left\");\n },\n\n refresh: function (event) {\n this._refreshItems(event);\n this.refreshPositions();\n return this;\n },\n\n _connectWith: function () {\n var options = this.options;\n return options.connectWith.constructor == String\n ? [options.connectWith]\n : options.connectWith;\n },\n\n _getItemsAsjQuery: function (connected) {\n var items = [];\n var queries = [];\n var connectWith = this._connectWith();\n\n if (connectWith && connected) {\n for (var i = connectWith.length - 1; i >= 0; i--) {\n var cur = $(connectWith[i]);\n for (var j = cur.length - 1; j >= 0; j--) {\n var inst = $.data(cur[j], this.widgetName);\n if (inst && inst != this && !inst.options.disabled) {\n queries.push([\n $.isFunction(inst.options.items)\n ? inst.options.items.call(inst.element)\n : $(inst.options.items, inst.element)\n .not(\".ui-sortable-helper\")\n .not(\".ui-sortable-placeholder\"),\n inst,\n ]);\n }\n }\n }\n }\n\n queries.push([\n $.isFunction(this.options.items)\n ? this.options.items.call(this.element, null, {\n options: this.options,\n item: this.currentItem,\n })\n : $(this.options.items, this.element)\n .not(\".ui-sortable-helper\")\n .not(\".ui-sortable-placeholder\"),\n this,\n ]);\n\n for (var i = queries.length - 1; i >= 0; i--) {\n queries[i][0].each(function () {\n items.push(this);\n });\n }\n\n return $(items);\n },\n\n _removeCurrentsFromItems: function () {\n var list = this.currentItem.find(\":data(\" + this.widgetName + \"-item)\");\n\n this.items = $.grep(this.items, function (item) {\n for (var j = 0; j < list.length; j++) {\n if (list[j] == item.item[0]) return false;\n }\n return true;\n });\n },\n\n _refreshItems: function (event) {\n this.items = [];\n this.containers = [this];\n var items = this.items;\n var queries = [\n [\n $.isFunction(this.options.items)\n ? this.options.items.call(this.element[0], event, {\n item: this.currentItem,\n })\n : $(this.options.items, this.element),\n this,\n ],\n ];\n var connectWith = this._connectWith();\n\n if (connectWith && this.ready) {\n //Shouldn't be run the first time through due to massive slow-down\n for (var i = connectWith.length - 1; i >= 0; i--) {\n var cur = $(connectWith[i]);\n for (var j = cur.length - 1; j >= 0; j--) {\n var inst = $.data(cur[j], this.widgetName);\n if (inst && inst != this && !inst.options.disabled) {\n queries.push([\n $.isFunction(inst.options.items)\n ? inst.options.items.call(inst.element[0], event, {\n item: this.currentItem,\n })\n : $(inst.options.items, inst.element),\n inst,\n ]);\n this.containers.push(inst);\n }\n }\n }\n }\n\n for (var i = queries.length - 1; i >= 0; i--) {\n var targetData = queries[i][1];\n var _queries = queries[i][0];\n\n for (var j = 0, queriesLength = _queries.length; j < queriesLength; j++) {\n var item = $(_queries[j]);\n\n item.data(this.widgetName + \"-item\", targetData); // Data for target checking (mouse manager)\n\n items.push({\n item: item,\n instance: targetData,\n width: 0,\n height: 0,\n left: 0,\n top: 0,\n });\n }\n }\n },\n\n refreshPositions: function (fast) {\n //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change\n if (this.offsetParent && this.helper) {\n this.offset.parent = this._getParentOffset();\n }\n\n for (var i = this.items.length - 1; i >= 0; i--) {\n var item = this.items[i];\n\n //We ignore calculating positions of all connected containers when we're not over them\n if (\n item.instance != this.currentContainer &&\n this.currentContainer &&\n item.item[0] != this.currentItem[0]\n )\n continue;\n\n var t = this.options.toleranceElement\n ? $(this.options.toleranceElement, item.item)\n : item.item;\n\n if (!fast) {\n item.width = t.outerWidth();\n item.height = t.outerHeight();\n }\n\n var p = t.offset();\n item.left = p.left;\n item.top = p.top;\n }\n\n if (this.options.custom && this.options.custom.refreshContainers) {\n this.options.custom.refreshContainers.call(this);\n } else {\n for (var i = this.containers.length - 1; i >= 0; i--) {\n var p = this.containers[i].element.offset();\n this.containers[i].containerCache.left = p.left;\n this.containers[i].containerCache.top = p.top;\n this.containers[i].containerCache.width =\n this.containers[i].element.outerWidth();\n this.containers[i].containerCache.height =\n this.containers[i].element.outerHeight();\n }\n }\n\n return this;\n },\n\n _createPlaceholder: function (that) {\n that = that || this;\n var o = that.options;\n\n if (!o.placeholder || o.placeholder.constructor == String) {\n var className = o.placeholder;\n o.placeholder = {\n element: function () {\n var el = $(document.createElement(that.currentItem[0].nodeName))\n .addClass(\n className ||\n that.currentItem[0].className + \" ui-sortable-placeholder\"\n )\n .removeClass(\"ui-sortable-helper\")[0];\n\n if (!className) el.style.visibility = \"hidden\";\n\n return el;\n },\n update: function (container, p) {\n // 1. If a className is set as 'placeholder option, we don't force sizes - the class is responsible for that\n // 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified\n if (className && !o.forcePlaceholderSize) return;\n\n //If the element doesn't have a actual height by itself (without styles coming from a stylesheet), it receives the inline height from the dragged item\n if (!p.height()) {\n p.height(\n that.currentItem.innerHeight() -\n parseInt(that.currentItem.css(\"paddingTop\") || 0, 10) -\n parseInt(that.currentItem.css(\"paddingBottom\") || 0, 10)\n );\n }\n if (!p.width()) {\n p.width(\n that.currentItem.innerWidth() -\n parseInt(that.currentItem.css(\"paddingLeft\") || 0, 10) -\n parseInt(that.currentItem.css(\"paddingRight\") || 0, 10)\n );\n }\n },\n };\n }\n\n //Create the placeholder\n that.placeholder = $(\n o.placeholder.element.call(that.element, that.currentItem)\n );\n\n //Append it after the actual current item\n that.currentItem.after(that.placeholder);\n\n //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317)\n o.placeholder.update(that, that.placeholder);\n },\n\n _contactContainers: function (event) {\n // get innermost container that intersects with item\n var innermostContainer = null,\n innermostIndex = null;\n\n for (var i = this.containers.length - 1; i >= 0; i--) {\n // never consider a container that's located within the item itself\n if ($.contains(this.currentItem[0], this.containers[i].element[0]))\n continue;\n\n if (this._intersectsWith(this.containers[i].containerCache)) {\n // if we've already found a container and it's more \"inner\" than this, then continue\n if (\n innermostContainer &&\n $.contains(\n this.containers[i].element[0],\n innermostContainer.element[0]\n )\n )\n continue;\n\n innermostContainer = this.containers[i];\n innermostIndex = i;\n } else {\n // container doesn't intersect. trigger \"out\" event if necessary\n if (this.containers[i].containerCache.over) {\n this.containers[i]._trigger(\"out\", event, this._uiHash(this));\n this.containers[i].containerCache.over = 0;\n }\n }\n }\n\n // if no intersecting containers found, return\n if (!innermostContainer) return;\n\n // move the item into the container if it's not there already\n if (this.containers.length === 1) {\n this.containers[innermostIndex]._trigger(\n \"over\",\n event,\n this._uiHash(this)\n );\n this.containers[innermostIndex].containerCache.over = 1;\n } else {\n //When entering a new container, we will find the item with the least distance and append our item near it\n var dist = 10000;\n var itemWithLeastDistance = null;\n var posProperty = this.containers[innermostIndex].floating\n ? \"left\"\n : \"top\";\n var sizeProperty = this.containers[innermostIndex].floating\n ? \"width\"\n : \"height\";\n var base = this.positionAbs[posProperty] + this.offset.click[posProperty];\n for (var j = this.items.length - 1; j >= 0; j--) {\n if (\n !$.contains(\n this.containers[innermostIndex].element[0],\n this.items[j].item[0]\n )\n )\n continue;\n if (this.items[j].item[0] == this.currentItem[0]) continue;\n var cur = this.items[j].item.offset()[posProperty];\n var nearBottom = false;\n if (\n Math.abs(cur - base) >\n Math.abs(cur + Math.max(10, this.items[j][sizeProperty]) - base)\n ) {\n nearBottom = true;\n cur += this.items[j][sizeProperty];\n }\n\n if (Math.abs(cur - base) < dist) {\n dist = Math.abs(cur - base);\n itemWithLeastDistance = this.items[j];\n this.direction = nearBottom ? \"up\" : \"down\";\n }\n }\n\n if (!itemWithLeastDistance && !this.options.dropOnEmpty)\n //Check if dropOnEmpty is enabled\n return;\n\n this.currentContainer = this.containers[innermostIndex];\n itemWithLeastDistance\n ? this._rearrange(event, itemWithLeastDistance, null, true)\n : this._rearrange(\n event,\n null,\n this.containers[innermostIndex].element,\n true\n );\n this._trigger(\"change\", event, this._uiHash());\n this.containers[innermostIndex]._trigger(\n \"change\",\n event,\n this._uiHash(this)\n );\n\n //Update the placeholder\n this.options.placeholder.update(this.currentContainer, this.placeholder);\n\n this.containers[innermostIndex]._trigger(\n \"over\",\n event,\n this._uiHash(this)\n );\n this.containers[innermostIndex].containerCache.over = 1;\n }\n },\n\n _createHelper: function (event) {\n var o = this.options;\n var helper = $.isFunction(o.helper)\n ? $(o.helper.apply(this.element[0], [event, this.currentItem]))\n : o.helper == \"clone\"\n ? this.currentItem.clone()\n : this.currentItem;\n\n if (!helper.parents(\"body\").length)\n //Add the helper to the DOM if that didn't happen already\n $(\n o.appendTo != \"parent\" ? o.appendTo : this.currentItem[0].parentNode\n )[0].appendChild(helper[0]);\n\n if (helper[0] == this.currentItem[0])\n this._storedCSS = {\n width: this.currentItem[0].style.width,\n height: this.currentItem[0].style.height,\n position: this.currentItem.css(\"position\"),\n top: this.currentItem.css(\"top\"),\n left: this.currentItem.css(\"left\"),\n };\n\n if (helper[0].style.width == \"\" || o.forceHelperSize)\n helper.width(this.currentItem.width());\n if (helper[0].style.height == \"\" || o.forceHelperSize)\n helper.height(this.currentItem.height());\n\n return helper;\n },\n\n _adjustOffsetFromHelper: function (obj) {\n if (typeof obj == \"string\") {\n obj = obj.split(\" \");\n }\n if ($.isArray(obj)) {\n obj = { left: +obj[0], top: +obj[1] || 0 };\n }\n if (\"left\" in obj) {\n this.offset.click.left = obj.left + this.margins.left;\n }\n if (\"right\" in obj) {\n this.offset.click.left =\n this.helperProportions.width - obj.right + this.margins.left;\n }\n if (\"top\" in obj) {\n this.offset.click.top = obj.top + this.margins.top;\n }\n if (\"bottom\" in obj) {\n this.offset.click.top =\n this.helperProportions.height - obj.bottom + this.margins.top;\n }\n },\n\n _getParentOffset: function () {\n //Get the offsetParent and cache its position\n this.offsetParent = this.helper.offsetParent();\n var po = this.offsetParent.offset();\n\n // This is a special case where we need to modify a offset calculated on start, since the following happened:\n // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent\n // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that\n // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag\n if (\n this.cssPosition == \"absolute\" &&\n this.scrollParent[0] != document &&\n $.contains(this.scrollParent[0], this.offsetParent[0])\n ) {\n po.left += this.scrollParent.scrollLeft();\n po.top += this.scrollParent.scrollTop();\n }\n\n if (\n this.offsetParent[0] == document.body || //This needs to be actually done for all browsers, since pageX/pageY includes this information\n (this.offsetParent[0].tagName &&\n this.offsetParent[0].tagName.toLowerCase() == \"html\" &&\n $.ui.ie)\n )\n //Ugly IE fix\n po = { top: 0, left: 0 };\n\n return {\n top:\n po.top + (parseInt(this.offsetParent.css(\"borderTopWidth\"), 10) || 0),\n left:\n po.left + (parseInt(this.offsetParent.css(\"borderLeftWidth\"), 10) || 0),\n };\n },\n\n _getRelativeOffset: function () {\n if (this.cssPosition == \"relative\") {\n var p = this.currentItem.position();\n return {\n top:\n p.top -\n (parseInt(this.helper.css(\"top\"), 10) || 0) +\n this.scrollParent.scrollTop(),\n left:\n p.left -\n (parseInt(this.helper.css(\"left\"), 10) || 0) +\n this.scrollParent.scrollLeft(),\n };\n } else {\n return { top: 0, left: 0 };\n }\n },\n\n _cacheMargins: function () {\n this.margins = {\n left: parseInt(this.currentItem.css(\"marginLeft\"), 10) || 0,\n top: parseInt(this.currentItem.css(\"marginTop\"), 10) || 0,\n };\n },\n\n _cacheHelperProportions: function () {\n this.helperProportions = {\n width: this.helper.outerWidth(),\n height: this.helper.outerHeight(),\n };\n },\n\n _setContainment: function () {\n var o = this.options;\n if (o.containment == \"parent\") o.containment = this.helper[0].parentNode;\n if (o.containment == \"document\" || o.containment == \"window\")\n this.containment = [\n 0 - this.offset.relative.left - this.offset.parent.left,\n 0 - this.offset.relative.top - this.offset.parent.top,\n $(o.containment == \"document\" ? document : window).width() -\n this.helperProportions.width -\n this.margins.left,\n ($(o.containment == \"document\" ? document : window).height() ||\n document.body.parentNode.scrollHeight) -\n this.helperProportions.height -\n this.margins.top,\n ];\n\n if (!/^(document|window|parent)$/.test(o.containment)) {\n var ce = $(o.containment)[0];\n var co = $(o.containment).offset();\n var over = $(ce).css(\"overflow\") != \"hidden\";\n\n this.containment = [\n co.left +\n (parseInt($(ce).css(\"borderLeftWidth\"), 10) || 0) +\n (parseInt($(ce).css(\"paddingLeft\"), 10) || 0) -\n this.margins.left,\n co.top +\n (parseInt($(ce).css(\"borderTopWidth\"), 10) || 0) +\n (parseInt($(ce).css(\"paddingTop\"), 10) || 0) -\n this.margins.top,\n co.left +\n (over ? Math.max(ce.scrollWidth, ce.offsetWidth) : ce.offsetWidth) -\n (parseInt($(ce).css(\"borderLeftWidth\"), 10) || 0) -\n (parseInt($(ce).css(\"paddingRight\"), 10) || 0) -\n this.helperProportions.width -\n this.margins.left,\n co.top +\n (over\n ? Math.max(ce.scrollHeight, ce.offsetHeight)\n : ce.offsetHeight) -\n (parseInt($(ce).css(\"borderTopWidth\"), 10) || 0) -\n (parseInt($(ce).css(\"paddingBottom\"), 10) || 0) -\n this.helperProportions.height -\n this.margins.top,\n ];\n }\n },\n\n _convertPositionTo: function (d, pos) {\n if (!pos) pos = this.position;\n var mod = d == \"absolute\" ? 1 : -1;\n var o = this.options,\n scroll =\n this.cssPosition == \"absolute\" &&\n !(\n this.scrollParent[0] != document &&\n $.contains(this.scrollParent[0], this.offsetParent[0])\n )\n ? this.offsetParent\n : this.scrollParent,\n scrollIsRootNode = /(html|body)/i.test(scroll[0].tagName);\n\n return {\n top:\n pos.top + // The absolute mouse position\n this.offset.relative.top * mod + // Only for relative positioned nodes: Relative offset from element to offset parent\n this.offset.parent.top * mod - // The offsetParent's offset without borders (offset + border)\n (this.cssPosition == \"fixed\"\n ? -this.scrollParent.scrollTop()\n : scrollIsRootNode\n ? 0\n : scroll.scrollTop()) *\n mod,\n left:\n pos.left + // The absolute mouse position\n this.offset.relative.left * mod + // Only for relative positioned nodes: Relative offset from element to offset parent\n this.offset.parent.left * mod - // The offsetParent's offset without borders (offset + border)\n (this.cssPosition == \"fixed\"\n ? -this.scrollParent.scrollLeft()\n : scrollIsRootNode\n ? 0\n : scroll.scrollLeft()) *\n mod,\n };\n },\n\n _generatePosition: function (event) {\n var o = this.options,\n scroll =\n this.cssPosition == \"absolute\" &&\n !(\n this.scrollParent[0] != document &&\n $.contains(this.scrollParent[0], this.offsetParent[0])\n )\n ? this.offsetParent\n : this.scrollParent,\n scrollIsRootNode = /(html|body)/i.test(scroll[0].tagName);\n\n // This is another very weird special case that only happens for relative elements:\n // 1. If the css position is relative\n // 2. and the scroll parent is the document or similar to the offset parent\n // we have to refresh the relative offset during the scroll so there are no jumps\n if (\n this.cssPosition == \"relative\" &&\n !(\n this.scrollParent[0] != document &&\n this.scrollParent[0] != this.offsetParent[0]\n )\n ) {\n this.offset.relative = this._getRelativeOffset();\n }\n\n var pageX = event.pageX;\n var pageY = event.pageY;\n\n /*\n * - Position constraining -\n * Constrain the position to a mix of grid, containment.\n */\n\n if (this.originalPosition) {\n //If we are not dragging yet, we won't check for options\n\n if (this.containment) {\n if (event.pageX - this.offset.click.left < this.containment[0])\n pageX = this.containment[0] + this.offset.click.left;\n if (event.pageY - this.offset.click.top < this.containment[1])\n pageY = this.containment[1] + this.offset.click.top;\n if (event.pageX - this.offset.click.left > this.containment[2])\n pageX = this.containment[2] + this.offset.click.left;\n if (event.pageY - this.offset.click.top > this.containment[3])\n pageY = this.containment[3] + this.offset.click.top;\n }\n\n if (o.grid) {\n var top =\n this.originalPageY +\n Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];\n pageY = this.containment\n ? !(\n top - this.offset.click.top < this.containment[1] ||\n top - this.offset.click.top > this.containment[3]\n )\n ? top\n : !(top - this.offset.click.top < this.containment[1])\n ? top - o.grid[1]\n : top + o.grid[1]\n : top;\n\n var left =\n this.originalPageX +\n Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0];\n pageX = this.containment\n ? !(\n left - this.offset.click.left < this.containment[0] ||\n left - this.offset.click.left > this.containment[2]\n )\n ? left\n : !(left - this.offset.click.left < this.containment[0])\n ? left - o.grid[0]\n : left + o.grid[0]\n : left;\n }\n }\n\n return {\n top:\n pageY - // The absolute mouse position\n this.offset.click.top - // Click offset (relative to the element)\n this.offset.relative.top - // Only for relative positioned nodes: Relative offset from element to offset parent\n this.offset.parent.top + // The offsetParent's offset without borders (offset + border)\n (this.cssPosition == \"fixed\"\n ? -this.scrollParent.scrollTop()\n : scrollIsRootNode\n ? 0\n : scroll.scrollTop()),\n left:\n pageX - // The absolute mouse position\n this.offset.click.left - // Click offset (relative to the element)\n this.offset.relative.left - // Only for relative positioned nodes: Relative offset from element to offset parent\n this.offset.parent.left + // The offsetParent's offset without borders (offset + border)\n (this.cssPosition == \"fixed\"\n ? -this.scrollParent.scrollLeft()\n : scrollIsRootNode\n ? 0\n : scroll.scrollLeft()),\n };\n },\n\n _rearrange: function (event, i, a, hardRefresh) {\n a\n ? a[0].appendChild(this.placeholder[0])\n : i.item[0].parentNode.insertBefore(\n this.placeholder[0],\n this.direction == \"down\" ? i.item[0] : i.item[0].nextSibling\n );\n\n //Various things done here to improve the performance:\n // 1. we create a setTimeout, that calls refreshPositions\n // 2. on the instance, we have a counter variable, that get's higher after every append\n // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same\n // 4. this lets only the last addition to the timeout stack through\n this.counter = this.counter ? ++this.counter : 1;\n var counter = this.counter;\n\n this._delay(function () {\n if (counter == this.counter) this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove\n });\n },\n\n _clear: function (event, noPropagation) {\n this.reverting = false;\n // We delay all events that have to be triggered to after the point where the placeholder has been removed and\n // everything else normalized again\n var delayedTriggers = [];\n\n // We first have to update the dom position of the actual currentItem\n // Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088)\n if (!this._noFinalSort && this.currentItem.parent().length)\n this.placeholder.before(this.currentItem);\n this._noFinalSort = null;\n\n if (this.helper[0] == this.currentItem[0]) {\n for (var i in this._storedCSS) {\n if (this._storedCSS[i] == \"auto\" || this._storedCSS[i] == \"static\")\n this._storedCSS[i] = \"\";\n }\n this.currentItem.css(this._storedCSS).removeClass(\"ui-sortable-helper\");\n } else {\n this.currentItem.show();\n }\n\n if (this.fromOutside && !noPropagation)\n delayedTriggers.push(function (event) {\n this._trigger(\"receive\", event, this._uiHash(this.fromOutside));\n });\n if (\n (this.fromOutside ||\n this.domPosition.prev !=\n this.currentItem.prev().not(\".ui-sortable-helper\")[0] ||\n this.domPosition.parent != this.currentItem.parent()[0]) &&\n !noPropagation\n )\n delayedTriggers.push(function (event) {\n this._trigger(\"update\", event, this._uiHash());\n }); //Trigger update callback if the DOM position has changed\n\n // Check if the items Container has Changed and trigger appropriate\n // events.\n if (this !== this.currentContainer) {\n if (!noPropagation) {\n delayedTriggers.push(function (event) {\n this._trigger(\"remove\", event, this._uiHash());\n });\n delayedTriggers.push(\n function (c) {\n return function (event) {\n c._trigger(\"receive\", event, this._uiHash(this));\n };\n }.call(this, this.currentContainer)\n );\n delayedTriggers.push(\n function (c) {\n return function (event) {\n c._trigger(\"update\", event, this._uiHash(this));\n };\n }.call(this, this.currentContainer)\n );\n }\n }\n\n //Post events to containers\n for (var i = this.containers.length - 1; i >= 0; i--) {\n if (!noPropagation)\n delayedTriggers.push(\n function (c) {\n return function (event) {\n c._trigger(\"deactivate\", event, this._uiHash(this));\n };\n }.call(this, this.containers[i])\n );\n if (this.containers[i].containerCache.over) {\n delayedTriggers.push(\n function (c) {\n return function (event) {\n c._trigger(\"out\", event, this._uiHash(this));\n };\n }.call(this, this.containers[i])\n );\n this.containers[i].containerCache.over = 0;\n }\n }\n\n //Do what was originally in plugins\n if (this._storedCursor) $(\"body\").css(\"cursor\", this._storedCursor); //Reset cursor\n if (this._storedOpacity) this.helper.css(\"opacity\", this._storedOpacity); //Reset opacity\n if (this._storedZIndex)\n this.helper.css(\n \"zIndex\",\n this._storedZIndex == \"auto\" ? \"\" : this._storedZIndex\n ); //Reset z-index\n\n this.dragging = false;\n if (this.cancelHelperRemoval) {\n if (!noPropagation) {\n this._trigger(\"beforeStop\", event, this._uiHash());\n for (var i = 0; i < delayedTriggers.length; i++) {\n delayedTriggers[i].call(this, event);\n } //Trigger all delayed events\n this._trigger(\"stop\", event, this._uiHash());\n }\n\n this.fromOutside = false;\n return false;\n }\n\n if (!noPropagation) this._trigger(\"beforeStop\", event, this._uiHash());\n\n //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!\n this.placeholder[0].parentNode.removeChild(this.placeholder[0]);\n\n if (this.helper[0] != this.currentItem[0]) this.helper.remove();\n this.helper = null;\n\n if (!noPropagation) {\n for (var i = 0; i < delayedTriggers.length; i++) {\n delayedTriggers[i].call(this, event);\n } //Trigger all delayed events\n this._trigger(\"stop\", event, this._uiHash());\n }\n\n this.fromOutside = false;\n return true;\n },\n\n _trigger: function () {\n if ($.Widget.prototype._trigger.apply(this, arguments) === false) {\n this.cancel();\n }\n },\n\n _delay: function (handler, delay) {\n function handlerProxy() {\n return (typeof handler === \"string\" ? instance[handler] : handler).apply(\n instance,\n arguments\n );\n }\n var instance = this;\n return setTimeout(handlerProxy, delay || 0);\n },\n\n _uiHash: function (_inst) {\n var inst = _inst || this;\n return {\n helper: inst.helper,\n placeholder: inst.placeholder || $([]),\n position: inst.position,\n originalPosition: inst.originalPosition,\n offset: inst.positionAbs,\n item: inst.currentItem,\n sender: _inst ? _inst.element : null,\n };\n },\n});\n","import $ from \"jquery\";\nimport \"./jquery.ui.djnsortable\";\n\n/*\n * jQuery UI Nested Sortable\n * v 1.3.4 / 28 apr 2011\n * http://mjsarfatti.com/sandbox/nestedSortable\n *\n * Depends:\n * jquery.ui.sortable.js 1.8+\n *\n * License CC BY-SA 3.0\n * Copyright 2010-2011, Manuele J Sarfatti\n */\nif (typeof $.fn.nearest != \"function\") {\n /**\n * Returns the descendant(s) matching a given selector which are the\n * shortest distance from the search context element (in otherwords,\n * $.fn.closest(), in reverse).\n */\n $.fn.nearest = function (selector) {\n var nearest = [],\n node = this,\n distance = 10000;\n node.find(selector).each(function () {\n var d = $(this).parentsUntil(node).length;\n if (d < distance) {\n distance = d;\n nearest = [this];\n } else if (d == distance) {\n nearest.push(this);\n }\n });\n return this.pushStack(nearest, \"nearest\", [selector]);\n };\n}\n\nvar counter = 0;\nvar expando = \"djn\" + (\"\" + Math.random()).replace(/\\D/g, \"\");\n\nvar createChildNestedSortable = function (parent, childContainer) {\n // Don't continue if the new element is the same as the old\n if (parent && parent.element && parent.element[0] == childContainer) {\n return;\n }\n var $childContainer = $(childContainer),\n options = $.extend({}, parent.options);\n options.connectWith = [parent.element];\n\n if ($childContainer.data(parent.widgetName)) {\n return;\n }\n\n var widgetConstructor = $childContainer[parent.widgetName];\n widgetConstructor.call($childContainer, options);\n var newInstance = $childContainer.data(parent.widgetName);\n for (var i = 0; i < parent.options.connectWith.length; i++) {\n var $otherContainer = parent.options.connectWith[i];\n newInstance.addToConnectWith($otherContainer);\n var otherInstance = $otherContainer.data(parent.widgetName);\n if (otherInstance) {\n otherInstance.addToConnectWith($childContainer);\n }\n }\n parent.addToConnectWith($childContainer);\n return newInstance;\n};\n\n$.widget(\"ui.nestedSortable\", $.ui.djnsortable, {\n options: {\n tabSize: 20,\n disableNesting: \"ui-nestedSortable-no-nesting\",\n errorClass: \"ui-nestedSortable-error\",\n nestedContainerSelector: \":not(*)\",\n // Whether to clear empty list item and container elements\n doNotClear: false,\n /**\n * Create a list container element if the draggable was dragged\n * to the top or bottom of the elements at its level.\n *\n * @param DOMElement parent - The element relative to which the\n * new element will be inserted.\n * @return DOMElement - The new element.\n */\n createContainerElement: function (parent) {\n return $(document.createElement(\"ol\"));\n },\n // Selector which matches all container elements in the nestedSortable\n containerElementSelector: \"ol\",\n // Selector which matches all list items (draggables) in the nestedSortable\n listItemSelector: \"li\",\n // Selector which, when applied to a container, returns its child list items\n items: \"> li\",\n maxLevels: 0,\n revertOnError: 1,\n protectRoot: false,\n rootID: null,\n rtl: false,\n // if true, you can not move nodes to different levels of nesting\n fixedNestingDepth: false,\n // show the error div or just not show a drop area\n showErrorDiv: true,\n // if true only allows you to rearrange within its parent container\n keepInParent: false,\n isAllowed: function (item, parent) {\n return true;\n },\n canConnectWith: function (container1, container2, instance) {\n var model1 = container1.data(\"inlineModel\");\n var model2 = container2.data(\"inlineModel\");\n if (model1 !== model2) {\n return false;\n }\n var instance2 = container2.data(instance.widgetName);\n if (!instance.options.fixedNestingDepth) {\n if (!instance2 || !instance2.options.fixedNestingDepth) {\n return true;\n }\n }\n var container1Level = instance._getLevel(container1);\n var container2Level = instance._getLevel(container2);\n return container1Level === container2Level;\n },\n },\n\n _createWidget: function (options, element) {\n var $element = $(element || this.defaultElement || this),\n dataOptions = $element.data(\"djnsortableOptions\");\n element = $element[0];\n if (dataOptions) {\n options = $.extend({}, options, dataOptions);\n }\n return $.ui.djnsortable.prototype._createWidget.call(\n this,\n options,\n element\n );\n },\n\n _create: function () {\n if (this.element.data(\"uiNestedSortable\")) {\n this.element.data(\n \"nestedSortable\",\n this.element.data(\"uiNestedSortable\")\n );\n }\n if (this.element.data(\"ui-nestedSortable\")) {\n this.element.data(\n \"nestedSortable\",\n this.element.data(\"ui-nestedSortable\")\n );\n }\n this.element.data(\"djnsortable\", this.element.data(\"nestedSortable\"));\n if (this.element.data(\"uiNestedSortable\")) {\n this.element.data(\"uiSortable\", this.element.data(\"nestedSortable\"));\n }\n // if (!this.element.is(this.options.containerElementSelector)) {\n // throw new Error('nestedSortable: Please check that the ' +\n // 'containerElementSelector option matches ' +\n // 'the element passed to the constructor.');\n // }\n\n $.ui.djnsortable.prototype._create.apply(this, arguments);\n\n this._connectWithMap = {};\n\n var self = this,\n o = this.options,\n $document = $(document);\n\n var originalConnectWith = o.connectWith;\n if (!originalConnectWith || typeof originalConnectWith == \"string\") {\n this.options.connectWith = [];\n if (typeof originalConnectWith == \"string\") {\n var connected = this._connectWith();\n for (var i = 0; i < connected.length; i++) {\n this.addToConnectWith($(connected[i]));\n }\n }\n\n // HACK!! FIX!! (django-specific logic)\n $document.on(\n \"djnesting:init.nestedSortable\",\n o.containerElementSelector,\n function (event) {\n createChildNestedSortable(self, this);\n }\n );\n this.element\n .find(o.containerElementSelector + \":not(.subarticle-wrapper)\")\n .each(function (i, el) {\n if (\n $(el)\n .closest(\"[data-inline-formset]\")\n .attr(\"id\")\n .indexOf(\"-empty\") > -1\n ) {\n return;\n }\n createChildNestedSortable(self, el);\n });\n }\n $document.trigger(\"nestedSortable:created\", [this]);\n $document.on(\n \"nestedSortable:created.nestedSortable\",\n function (e, instance) {\n instance.addToConnectWith(self.element);\n self.addToConnectWith(instance.element);\n }\n );\n },\n\n addToConnectWith: function (element) {\n var self = this,\n $element = typeof element.selector != \"undefined\" ? element : $(element),\n uniqueId;\n\n if ($element.length > 1) {\n $element.each(function (i, el) {\n self.addToConnectWith($(el));\n });\n return;\n }\n uniqueId = element[0][expando];\n if (typeof uniqueId == \"undefined\") {\n uniqueId = element[0][expando] = ++counter;\n }\n if (typeof this.options.connectWith == \"string\") {\n return;\n }\n if (this._connectWithMap[uniqueId]) {\n return;\n }\n this.options.connectWith.push(element);\n this._connectWithMap[uniqueId] = 1;\n },\n\n _destroy: function () {\n this.element.removeData(\"nestedSortable\").unbind(\".nestedSortable\");\n $(document).unbind(\".nestedSortable\");\n return $.ui.djnsortable.prototype.destroy.apply(this, arguments);\n },\n\n /**\n * Override this method to add extra conditions on an item before it's\n * rearranged.\n */\n _intersectsWithPointer: function _intersectsWithPointer(item) {\n var itemElement = item.item[0],\n o = this.options,\n intersection = $.ui.djnsortable.prototype._intersectsWithPointer.apply(\n this,\n arguments\n );\n\n this.lastItemElement = null;\n if (!intersection) {\n return intersection;\n }\n\n // Only put the placeholder inside the current Container, skip all\n // items from other containers. This works because when moving\n // an item from one container to another the\n // currentContainer is switched before the placeholder is moved.\n //\n // Without this moving items in \"sub-sortables\" can cause the placeholder to jitter\n // between the outer and inner container.\n if (item.instance !== this.currentContainer) {\n return false;\n }\n var $itemElement = $(itemElement);\n\n if (\n o.fixedNestingDepth &&\n this._getLevel(this.currentItem) === 1 + this._getLevel($itemElement)\n ) {\n $itemElement = (function () {\n var containerSel = o.containerElementSelector;\n var $childItems = $itemElement.find(\".djn-item\");\n if ($childItems.length != 1) {\n return $itemElement;\n }\n if (!$childItems.is(\".djn-no-drag,.djn-thead\")) {\n return $itemElement;\n }\n var itemElementClosestContainer = $itemElement.closest(containerSel);\n if (!itemElementClosestContainer.length) {\n return $itemElement;\n }\n // Make sure the item is only one level deeper\n if (\n itemElementClosestContainer[0] !=\n $childItems.closest(containerSel).closest(containerSel)[0]\n ) {\n return $itemElement;\n }\n return $($childItems[0]);\n })();\n itemElement = $itemElement[0];\n }\n\n if (\n itemElement != this.currentItem[0] && //cannot intersect with itself\n this.placeholder[intersection == 1 ? \"next\" : \"prev\"]()[0] !=\n itemElement && //no useless actions that have been done before\n !$.contains(this.placeholder[0], itemElement) && //no action if the item moved is the parent of the item checked\n (this.options.type == \"semi-dynamic\"\n ? !$.contains(this.element[0], itemElement)\n : true) &&\n (!o.keepInParent ||\n itemElement.parentNode == this.placeholder[0].parentNode) && //only rearrange items within the same container\n (!o.fixedNestingDepth ||\n this._getLevel(this.currentItem) === this._getLevel($itemElement)) && //maintain the nesting level of node\n (o.showErrorDiv ||\n o.isAllowed.call(\n this,\n this.currentItem[0],\n itemElement.parentNode,\n this.placeholder\n ))\n ) {\n this.lastItemElement = itemElement;\n return intersection;\n } else {\n return false;\n }\n },\n\n // This method is called after items have been iterated through.\n // Overriding this is cleaner than copying and pasting _mouseDrag()\n // and inserting logic in the middle.\n _contactContainers: function _contactContainers(event) {\n if (this.lastItemElement) {\n this._clearEmpty(this.lastItemElement);\n }\n\n var o = this.options,\n _parentItem = this.placeholder.closest(o.listItemSelector),\n parentItem =\n _parentItem.length && _parentItem.closest(\".ui-sortable\").length\n ? _parentItem\n : null,\n level = this._getLevel(this.placeholder),\n childLevels = this._getChildLevels(this.helper);\n\n var placeholderClassName = this.placeholder.attr(\"class\");\n var phClassSearch = \" \" + placeholderClassName + \" \";\n // If the current level class isn't already set\n if (\n phClassSearch.indexOf(\" ui-sortable-nested-level-\" + level + \" \") == -1\n ) {\n var phOrigClassName;\n // Check if another level class is set\n var phOrigClassNameEndPos =\n phClassSearch.indexOf(\" ui-sortable-nested-level-\") - 1;\n if (phOrigClassNameEndPos > -1) {\n phOrigClassName = placeholderClassName.substring(\n 0,\n phOrigClassNameEndPos\n );\n } else {\n phOrigClassName = placeholderClassName;\n }\n // Add new level to class\n this.placeholder.attr(\n \"class\",\n phOrigClassName + \" ui-sortable-nested-level-\" + level\n );\n }\n\n // To find the previous sibling in the list, keep backtracking until we hit a valid list item.\n var previousItem = this.placeholder[0].previousSibling\n ? $(this.placeholder[0].previousSibling)\n : null;\n if (previousItem != null) {\n while (\n !previousItem.is(this.options.listItemSelector) ||\n previousItem[0] == this.currentItem[0] ||\n previousItem[0] == this.helper[0]\n ) {\n if (previousItem[0].previousSibling) {\n previousItem = $(previousItem[0].previousSibling);\n } else {\n previousItem = null;\n break;\n }\n }\n }\n // To find the next sibling in the list, keep stepping forward until we hit a valid list item.\n var nextItem = this.placeholder[0].nextSibling\n ? $(this.placeholder[0].nextSibling)\n : null;\n if (nextItem != null) {\n while (\n !nextItem.is(this.options.listItemSelector) ||\n nextItem[0] == this.currentItem[0] ||\n nextItem[0] == this.helper[0]\n ) {\n if (nextItem[0].nextSibling) {\n nextItem = $(nextItem[0].nextSibling);\n } else {\n nextItem = null;\n break;\n }\n }\n }\n\n this.beyondMaxLevels = 0;\n\n // We will change this to the instance of the nested container if\n // appropriate, so that the appropriate context is applied to the\n // super _contactContainers prototype method\n var containerInstance = this;\n this.refreshPositions();\n\n // If the item is moved to the left, send it to its parent's level unless there are siblings below it.\n if (\n !o.fixedNestingDepth &&\n parentItem != null &&\n nextItem == null &&\n ((o.rtl &&\n this.positionAbs.left + this.helper.outerWidth() >\n parentItem.offset().left + parentItem.outerWidth()) ||\n (!o.rtl && this.positionAbs.left < parentItem.offset().left))\n ) {\n parentItem.after(this.placeholder[0]);\n containerInstance =\n parentItem.closest(o.containerElementSelector).data(this.widgetName) ||\n containerInstance;\n this._clearEmpty(parentItem[0]);\n this.refreshPositions();\n this._trigger(\"change\", event, this._uiHash());\n }\n // If the item is below a sibling and is moved to the right, make it a child of that sibling.\n else if (\n !o.fixedNestingDepth &&\n previousItem != null &&\n !previousItem.is(\".djn-no-drag,.djn-thead\") &&\n ((o.rtl &&\n this.positionAbs.left + this.helper.outerWidth() <\n previousItem.offset().left + previousItem.outerWidth() - o.tabSize) ||\n (!o.rtl &&\n this.positionAbs.left > previousItem.offset().left + o.tabSize))\n ) {\n this._isAllowed(previousItem, level, level + childLevels);\n\n if (this.beyondMaxLevels > 0) {\n return $.ui.djnsortable.prototype._contactContainers.apply(\n this,\n arguments\n );\n }\n var $previousItemChildContainer;\n $previousItemChildContainer = previousItem\n .nearest(o.containerElementSelector)\n .first();\n\n if (\n !$previousItemChildContainer.length &&\n !previousItem.closest(o.nestedContainerSelector).length\n ) {\n $previousItemChildContainer = this.options.createContainerElement(\n previousItem[0]\n );\n previousItem.append($previousItemChildContainer);\n }\n if ($previousItemChildContainer.length) {\n $previousItemChildContainer.append(this.placeholder);\n containerInstance = $previousItemChildContainer.data(this.widgetName);\n if (!containerInstance) {\n containerInstance = createChildNestedSortable(\n this,\n $previousItemChildContainer[0]\n );\n }\n this.refreshPositions();\n }\n this._trigger(\"change\", event, this._uiHash());\n } else {\n this._isAllowed(parentItem, level, level + childLevels);\n }\n\n $.ui.djnsortable.prototype._contactContainers.call(this, event);\n },\n\n _rearrange: function _rearrange(event, item, a, hardRefresh) {\n // Cache the rearranged element for the call to _clear()\n var o = this.options;\n if (item && typeof item == \"object\" && item.item) {\n this.lastRearrangedElement = item.item[0];\n }\n if (\n item &&\n typeof item == \"object\" &&\n item.item &&\n this.placeholder.closest(o.nestedContainerSelector).length\n ) {\n // This means we have been dropped into a nested container down a level\n // from the parent.\n var placeholderParentItem = this.placeholder.closest(o.listItemSelector);\n var comparisonElement =\n this.direction == \"down\"\n ? placeholderParentItem.next(o.nestedContainerSelector)\n : placeholderParentItem;\n if (comparisonElement.length && comparisonElement[0] == item.item[0]) {\n //Various things done here to improve the performance:\n // 1. we create a setTimeout, that calls refreshPositions\n // 2. on the instance, we have a counter variable, that get's higher after every append\n // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same\n // 4. this lets only the last addition to the timeout stack through\n this.counter = this.counter ? ++this.counter : 1;\n var counter = this.counter;\n\n this._delay(function () {\n if (counter == this.counter) this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove\n });\n // The super method will pop the container out of its nested container,\n // which we don't want.\n return;\n }\n }\n $.ui.djnsortable.prototype._rearrange.apply(this, arguments);\n },\n\n _convertPositionTo: function (d, pos) {\n // Cache the top offset before rearrangement\n this.previousTopOffset = this.placeholder.offset().top;\n return $.ui.djnsortable.prototype._convertPositionTo.apply(this, arguments);\n },\n\n _clear: function () {\n $.ui.djnsortable.prototype._clear.apply(this, arguments);\n // If lastRearrangedElement exists and is still attached to the document\n // (i.e., hasn't been removed)\n if (\n typeof this.lastRearrangedElement == \"object\" &&\n this.lastRearrangedElement.ownerDocument\n ) {\n this._clearEmpty(this.lastRearrangedElement);\n }\n },\n\n _mouseStop: function _mouseStop(event, noPropagation) {\n // If the item is in a position not allowed, send it back\n if (this.beyondMaxLevels) {\n this.placeholder.removeClass(this.options.errorClass);\n\n if (this.domPosition.prev) {\n $(this.domPosition.prev).after(this.placeholder);\n } else {\n $(this.domPosition.parent).prepend(this.placeholder);\n }\n this._trigger(\"revert\", event, this._uiHash());\n }\n\n // Clean last empty container/list item\n for (var i = this.items.length - 1; i >= 0; i--) {\n var item = this.items[i].item[0];\n this._clearEmpty(item);\n }\n\n $.ui.djnsortable.prototype._mouseStop.apply(this, arguments);\n },\n\n toArray: function (o) {\n o = $.extend(true, {}, this.options, o || {});\n\n var sDepth = o.startDepthCount || 0,\n ret = [],\n left = 2;\n\n ret.push({\n item_id: o.rootID,\n parent_id: \"none\",\n depth: sDepth,\n left: \"1\",\n right: ($(o.listItemSelector, this.element).length + 1) * 2,\n });\n\n var _recursiveArray = function (item, depth, left) {\n var right = left + 1,\n id,\n pid;\n\n var $childItems = $(item)\n .children(o.containerElementSelector)\n .find(o.items);\n\n if ($childItems.length > 0) {\n depth++;\n $childItems.each(function () {\n right = _recursiveArray($(this), depth, right);\n });\n depth--;\n }\n\n id = $(item)\n .attr(o.attribute || \"id\")\n .match(o.expression || /(.+)[-=_](.+)/);\n\n if (depth === sDepth + 1) {\n pid = o.rootID;\n } else {\n var parentItem = $(item)\n .parent(o.containerElementSelector)\n .parent(o.items)\n .attr(o.attribute || \"id\")\n .match(o.expression || /(.+)[-=_](.+)/);\n pid = parentItem[2];\n }\n\n if (id) {\n ret.push({\n item_id: id[2],\n parent_id: pid,\n depth: depth,\n left: left,\n right: right,\n });\n }\n\n left = right + 1;\n return left;\n };\n\n $(this.element)\n .children(o.listItemSelector)\n .each(function () {\n left = _recursiveArray(this, sDepth + 1, left);\n });\n\n ret = ret.sort(function (a, b) {\n return a.left - b.left;\n });\n\n return ret;\n },\n\n _clearEmpty: function (item) {\n if (this.options.doNotClear) {\n return;\n }\n var $item = $(item);\n var childContainers = $item.nearest(this.options.containerElementSelector);\n childContainers.each(function (i, childContainer) {\n var $childContainer = $(childContainer);\n if (!$childContainer.children().length) {\n var instance = $childContainer.data(this.widgetName);\n if (typeof instance == \"object\" && instance.destroy) {\n instance.destroy();\n }\n $childContainer.remove();\n }\n });\n if (!$item.children().length) {\n $item.remove();\n }\n },\n\n _getLevel: function (item) {\n var level = 1,\n o = this.options,\n list;\n\n if (o.containerElementSelector) {\n list = item.closest(o.containerElementSelector);\n while (list && list.length > 0 && !list.parent().is(\".djn-group-root\")) {\n // if (!list.is(o.nestedContainerSelector)) {\n level++;\n // }\n list = list.parent().closest(o.containerElementSelector);\n }\n }\n\n return level;\n },\n\n _getChildLevels: function (parent, depth) {\n var self = this,\n o = this.options,\n result = 0;\n depth = depth || 0;\n\n $(parent)\n .nearest(o.containerElementSelector)\n .first()\n .find(o.items)\n .each(function (index, child) {\n if ($(child).is(\".djn-no-drag,.djn-thead\")) {\n return;\n }\n result = Math.max(self._getChildLevels(child, depth + 1), result);\n });\n\n return depth ? result + 1 : result;\n },\n\n _isAllowed: function _isAllowed(parentItem, level, levels) {\n var o = this.options,\n isRoot = $(this.domPosition.parent).hasClass(\"ui-sortable\")\n ? true\n : false;\n // this takes into account the maxLevels set to the recipient list\n // var maxLevels = this.placeholder.closest('.ui-sortable').nestedSortable('option', 'maxLevels');\n var maxLevels = o.maxLevels;\n\n // Is the root protected?\n // Are we trying to nest under a no-nest?\n // Are we nesting too deep?\n if (\n parentItem &&\n typeof parentItem == \"object\" &&\n typeof parentItem.selector == \"undefined\"\n ) {\n parentItem = $(parentItem);\n }\n\n if (\n !o.isAllowed.call(this, this.currentItem, parentItem, this.placeholder) ||\n (parentItem && parentItem.hasClass(o.disableNesting)) ||\n (o.protectRoot &&\n ((parentItem == null && !isRoot) || (isRoot && level > 1)))\n ) {\n this.placeholder.addClass(o.errorClass);\n if (maxLevels < levels && maxLevels != 0) {\n this.beyondMaxLevels = levels - maxLevels;\n } else {\n this.beyondMaxLevels = 1;\n }\n } else {\n if (maxLevels < levels && maxLevels != 0) {\n this.placeholder.addClass(o.errorClass);\n this.beyondMaxLevels = levels - maxLevels;\n } else {\n this.placeholder.removeClass(o.errorClass);\n this.beyondMaxLevels = 0;\n }\n }\n },\n\n _connectWith: function _connectWith() {\n var origConnectWith = $.ui.djnsortable.prototype._connectWith.apply(\n this,\n arguments\n ),\n connectWith = [];\n var self = this;\n for (var i = 0; i < origConnectWith.length; i++) {\n var $elements = $(origConnectWith[i]);\n $elements.each(function (j, el) {\n if (el == self.element[0]) {\n return;\n }\n if (!self.options.canConnectWith(self.element, $(el), self)) {\n return;\n }\n connectWith.push(el);\n });\n }\n return connectWith;\n },\n _removeCurrentsFromItems: function () {\n var list = this.currentItem.find(\":data(sortable-item)\");\n for (var i = 0; i < this.items.length; i++) {\n for (var j = 0; j < list.length; j++) {\n if (list[j] == this.items[i].item[0]) {\n this.items.splice(i, 1);\n if (i >= this.items.length) {\n break;\n }\n }\n }\n }\n },\n createContainerElement: function (parent) {\n if (!parent.childNodes) {\n throw new Error(\n \"Invalid element 'parent' passed to \" + \"createContainerElement.\"\n );\n }\n var newContainer = this.options.createContainerElement.apply(\n this,\n arguments\n );\n parent.appendChild(newContainer[0]);\n return $(newContainer);\n },\n});\n\n$.ui.nestedSortable.prototype.options = $.extend(\n {},\n $.ui.djnsortable.prototype.options,\n $.ui.nestedSortable.prototype.options\n);\n","function regexQuote(str) {\n return (str + \"\").replace(/([\\.\\?\\*\\+\\^\\$\\[\\]\\\\\\(\\)\\{\\}\\|\\-])/g, \"\\\\$1\");\n}\n\nexport default regexQuote;\n","import $ from \"jquery\";\nimport regexQuote from \"./regexquote\";\nimport \"./jquery.ui.nestedsortable\";\n\nfunction updatePositions(prefix) {\n var position = 0, // the value of the position formfield\n count = 1, // The count displayed in stacked inline headers\n $group = $(\"#\" + prefix + \"-group\"),\n groupData = $group.djnData(),\n fieldNames = groupData.fieldNames,\n // The field name on the fieldset which is a ForeignKey to the parent model\n groupFkName = groupData.formsetFkName,\n parentPkVal,\n [, parentPrefix, index] =\n prefix.match(/^(.*)\\-(\\d+)-[^\\-]+(?:\\-\\d+)?$/) || [],\n sortableOptions = groupData.sortableOptions,\n sortableExcludes = (sortableOptions || {}).sortableExcludes || [];\n\n sortableExcludes.push(groupFkName);\n\n if (parentPrefix) {\n var $parentGroup = $(\"#\" + parentPrefix + \"-group\");\n var parentFieldNames = $parentGroup.djnData(\"fieldNames\");\n var parentPkFieldName = parentFieldNames.pk;\n var parentPkField = $parentGroup.filterDjangoField(\n parentPrefix,\n parentPkFieldName,\n index\n );\n parentPkVal = parentPkField.val();\n }\n\n if (groupFkName && typeof parentPkVal != \"undefined\") {\n $group\n .filterDjangoField(prefix, groupFkName)\n .val(parentPkVal)\n .trigger(\"change\");\n }\n\n $group.find(\".djn-inline-form\").each(function () {\n if (!this.id || this.id.substr(-6) == \"-empty\") {\n return true; // Same as continue\n }\n var regex = new RegExp(\"^(?:id_)?\" + regexQuote(prefix) + \"\\\\-\\\\d+$\");\n\n if (!this.id.match(regex)) {\n return true;\n }\n // Cache jQuery object\n var $this = $(this),\n [formPrefix, index] = $this.djangoPrefixIndex() || [null, null],\n namePrefix = formPrefix + \"-\" + index + \"-\";\n\n if (!formPrefix) {\n return;\n }\n\n // Set header position for stacked inlines in Django 1.9+\n var $inlineLabel = $this.find(\"> h3 > .inline_label\");\n if ($inlineLabel.length) {\n $inlineLabel.html($inlineLabel.html().replace(/(#\\d+)/g, \"#\" + count));\n }\n count++;\n\n var $fields = $this.djangoFormField(\"*\"),\n $positionField,\n setPosition = false;\n\n // position is being updated if\n // a) the field has a value\n // b) if the field is not exluded with sortable_excludes (e.g. with default values)\n $fields.each(function () {\n var $field = $(this);\n if (!$field.is(\":input[type!=radio][type!=checkbox],input:checked\")) {\n return;\n }\n var hasValue =\n $field.val() ||\n ($field.attr(\"type\") == \"file\" && $field.siblings(\"a\").length),\n fieldName = $field.attr(\"name\").substring(namePrefix.length);\n if (fieldName == fieldNames.position) {\n $positionField = $field;\n }\n if (hasValue && $.inArray(fieldName, sortableExcludes) === -1) {\n setPosition = true;\n }\n });\n\n if (!setPosition || !$positionField) {\n return;\n }\n\n $positionField.val(position).trigger(\"change\");\n position++;\n });\n}\n\nfunction createSortable($group) {\n const isPolymorphic = $group.is(\".djn-is-polymorphic\");\n return $group\n .find(\n \"> .djn-items, > .djn-fieldset > .djn-items, > .tabular > .module > .djn-items\"\n )\n .nestedSortable({\n handle: [\n \"> h3.djn-drag-handler\",\n \"> .djn-tools .drag-handler\",\n \"> .djn-td > .djn-tools .djn-drag-handler\",\n \"> .djn-tr > .is-sortable > .djn-drag-handler\",\n \"> .djn-tr > .grp-tools-container .djn-drag-handler\",\n ].join(\", \"),\n /**\n * items: The selector for ONLY the items underneath a given\n * container at that level. Not to be confused with\n * listItemSelector, which is the selector for all list\n * items in the nestedSortable\n */\n items: \"> .djn-item\",\n forcePlaceholderSize: true,\n placeholder: {\n element: function ($currentItem) {\n var el = $(document.createElement($currentItem[0].nodeName))\n .addClass($currentItem[0].className + \" ui-sortable-placeholder\")\n .removeClass(\"ui-sortable-helper\")[0];\n\n if ($currentItem.is(\".djn-tbody\")) {\n var $originalTr = $currentItem.children(\".djn-tr\").eq(0);\n var trTagName = $originalTr.prop(\"tagName\").toLowerCase();\n var $tr = $(`<${trTagName}>`);\n $tr.addClass($originalTr.attr(\"class\"));\n var $originalTd = $originalTr.children(\".djn-td\").eq(0);\n var tdTagName = $originalTd.prop(\"tagName\").toLowerCase();\n var numColumns = 0;\n $originalTr.children(\".djn-td\").each(function (i, td) {\n numColumns += parseInt($(td).attr(\"colspan\"), 10) || 1;\n });\n $tr.append(\n $(\n `<${tdTagName} colspan=\"${numColumns}\" class=\"djn-td grp-td\">`\n )\n );\n el.appendChild($tr[0]);\n }\n\n return el;\n },\n update: function (instance, $placeholder) {\n var $currItem = instance.currentItem;\n if (!$currItem) {\n return;\n }\n var opts = instance.options;\n // 1. If a className is set as 'placeholder option, we\n // don't force sizes - the class is responsible for that\n // 2. The option 'forcePlaceholderSize can be enabled to\n // force it even if a class name is specified\n if (opts.className && !opts.forcePlaceholderSize) return;\n\n if ($placeholder.is(\".djn-tbody\")) {\n // debugger;\n $placeholder = $placeholder\n .children(\".djn-tr\")\n .eq(0)\n .children(\".djn-td\")\n .eq(0);\n }\n\n // If the element doesn't have a actual height by itself\n // (without styles coming from a stylesheet), it receives\n // the inline height from the dragged item\n if (!$placeholder.height()) {\n var innerHeight = $currItem.innerHeight(),\n paddingTop = parseInt($currItem.css(\"paddingTop\") || 0, 10),\n paddingBottom = parseInt($currItem.css(\"paddingBottom\") || 0, 10);\n $placeholder.height(innerHeight - paddingTop - paddingBottom);\n }\n if (!$placeholder.width()) {\n var innerWidth = $currItem.innerWidth(),\n paddingLeft = parseInt($currItem.css(\"paddingLeft\") || 0, 10),\n paddingRight = parseInt($currItem.css(\"paddingRight\") || 0, 10);\n $placeholder.width(innerWidth - paddingLeft - paddingRight);\n }\n },\n },\n helper: \"clone\",\n opacity: 0.6,\n maxLevels: 0,\n connectWith: \".djn-items\",\n tolerance: \"intersection\",\n // Don't allow dragging beneath an inline that is marked for deletion\n isAllowed: function (currentItem, parentItem) {\n if (parentItem && parentItem.hasClass(\"predelete\")) {\n return false;\n }\n const $parentGroup = parentItem.closest(\".djn-group\");\n const parentModel = $parentGroup.data(\"inlineModel\");\n const childModels = $parentGroup.djnData(\"childModels\");\n const currentModel = currentItem.data(\"inlineModel\");\n const isPolymorphicChild =\n childModels && childModels.indexOf(currentModel) !== -1;\n if (currentModel !== parentModel && !isPolymorphicChild) {\n return false;\n }\n return true;\n },\n // fixedNestingDepth: not a standard ui.sortable parameter.\n // Prevents dragging items up or down levels\n fixedNestingDepth: true,\n // The selector for ALL list containers in the nested sortable.\n containerElementSelector: \".djn-items\",\n // The selector for ALL list items in the nested sortable.\n listItemSelector: \".djn-item\",\n start: function (event, ui) {\n ui.item.addClass(\"djn-item-dragging\");\n ui.item.show();\n },\n stop: function (event, ui) {\n ui.item.removeClass(\"djn-item-dragging\");\n },\n /**\n * Triggered when a sortable is dropped into a container\n */\n receive: function (event, ui) {\n var $inline = $(this).closest(\".djn-group\");\n $inline.djangoFormset().spliceInto(ui.item);\n updatePositions(ui.item.djangoFormsetPrefix());\n },\n update: function (event, ui) {\n // Ensure that
\n // is the first child of the djn-items. If there\n // is another
before the\n // .do-not-drag element then the drag-and-drop placeholder\n // margins don't work correctly.\n var $nextItem = ui.item.nextAll(\".djn-item\").first();\n if ($nextItem.is(\".djn-no-drag,.djn-thead\")) {\n var nextItem = $nextItem[0];\n var parent = nextItem.parentNode;\n parent.insertBefore(nextItem, parent.firstChild);\n }\n var groupId = $(event.target).closest(\".djn-group\").attr(\"id\"),\n $form = ui.item,\n $parentGroup = $form.closest(\"#\" + groupId);\n if ($form.data(\"updateOperation\") == \"removed\") {\n $form.removeAttr(\"data-update-operation\");\n } else if (!$parentGroup.length) {\n $form.attr(\"data-update-operation\", \"removed\");\n }\n updatePositions($form.djangoFormsetPrefix());\n $(document).trigger(\"djnesting:mutate\", [\n $(\"#\" + $form.djangoFormsetPrefix() + \"-group\"),\n ]);\n },\n });\n}\n\nexport { updatePositions, createSortable };\n","/* globals SelectFilter, DateTimeShortcuts */\nimport $ from \"jquery\";\nimport \"./jquery.djnutils\";\nimport { createSortable, updatePositions } from \"./sortable\";\nimport regexQuote from \"./regexquote\";\nimport django$ from \"./django$\";\nimport grp$ from \"./grp$\";\n\nvar DJNesting = typeof window.DJNesting != \"undefined\" ? window.DJNesting : {};\n\nDJNesting.regexQuote = regexQuote;\nDJNesting.createSortable = createSortable;\nDJNesting.updatePositions = updatePositions;\n\n/**\n * Update attributes based on a regular expression\n */\nDJNesting.updateFormAttributes = function ($elem, search, replace, selector) {\n if (!selector) {\n selector = [\n \":input\",\n \"span\",\n \"table\",\n \"iframe\",\n \"label\",\n \"a\",\n \"ul\",\n \"p\",\n \"img\",\n \".djn-group\",\n \".djn-inline-form\",\n \".cropduster-form\",\n \".dal-forward-conf\",\n ].join(\",\");\n }\n var addBackMethod = $.fn.addBack ? \"addBack\" : \"andSelf\";\n $elem\n .find(selector)\n [addBackMethod]()\n .each(function () {\n var $node = $(this),\n attrs = [\n \"id\",\n \"name\",\n \"for\",\n \"href\",\n \"class\",\n \"onclick\",\n \"data-inline-formset\",\n ];\n\n $.each(attrs, function (i, attrName) {\n var attrVal = $node.attr(attrName);\n if (attrVal) {\n $node.attr(attrName, attrVal.replace(search, replace));\n if (attrName === \"data-inline-formset\") {\n $node.data(\"inlineFormset\", JSON.parse($node.attr(attrName)));\n }\n }\n });\n });\n // update prepopulate ids for function initPrepopulatedFields\n $elem.find(\".prepopulated_field\").each(function () {\n var $node = grp$(this);\n if (typeof $node.prepopulate !== \"function\") {\n $node = django$(this);\n }\n var dependencyIds = $.makeArray($node.data(\"dependency_ids\") || []);\n $node.data(\n \"dependency_ids\",\n $.map(dependencyIds, function (id) {\n return id.replace(search, replace);\n })\n );\n });\n};\n\nDJNesting.createContainerElement = function () {\n return;\n};\n\n// Slight tweaks to the grappelli functions of the same name\n// (initRelatedFields and initAutocompleteFields).\n//\n// The most notable tweak is the call to $.fn.grp_related_generic() (a\n// jQuery method provided by django-curated) and the use of\n// DJNesting.LOOKUP_URLS to determine the ajax lookup urls.\n//\n// We abstract this out using form prefix because the way grappelli does it\n// (adding javascript at the bottom of each formset) doesn't really scale\n// with nested formsets.\n\n// The second parameter (groupData) is optional, and only exists to prevent\n// redundant calls to jQuery() and jQuery.fn.data() in the calling context\nDJNesting.initRelatedFields = function (prefix, groupData) {\n if (\n typeof DJNesting.LOOKUP_URLS != \"object\" ||\n !DJNesting.LOOKUP_URLS.related\n ) {\n return;\n }\n var lookupUrls = DJNesting.LOOKUP_URLS;\n var $inline = $(\"#\" + prefix + \"-group\");\n\n if (!groupData) {\n groupData = $inline.djnData();\n }\n var lookupFields = groupData.lookupRelated;\n\n $inline.djangoFormsetForms().each(function (i, form) {\n $.each(lookupFields.fk || [], function (i, fk) {\n $(form)\n .djangoFormField(fk)\n .each(function () {\n grp$(this).grp_related_fk({\n lookup_url: lookupUrls.related,\n });\n });\n });\n $.each(lookupFields.m2m || [], function (i, m2m) {\n $(form)\n .djangoFormField(m2m)\n .each(function () {\n grp$(this).grp_related_m2m({ lookup_url: lookupUrls.m2m });\n });\n });\n $.each(lookupFields.generic || [], function () {\n var [contentType, objectId] = this;\n $(form)\n .djangoFormField(objectId)\n .each(function () {\n var $this = $(this);\n var index = $this.djangoFormIndex();\n if ($this.hasClass(\"grp-has-related-lookup\")) {\n $this.parent().find(\"a.related-lookup\").remove();\n $this.parent().find(\".grp-placeholder-related-generic\").remove();\n }\n grp$($this).grp_related_generic({\n content_type: `#id_${prefix}-${index}-${contentType}`,\n object_id: `#id_${prefix}-${index}-${objectId}`,\n lookup_url: lookupUrls.related,\n });\n });\n });\n });\n};\n\nDJNesting.initAutocompleteFields = function (prefix, groupData) {\n if (\n typeof DJNesting.LOOKUP_URLS != \"object\" ||\n !DJNesting.LOOKUP_URLS.related\n ) {\n return;\n }\n var lookupUrls = DJNesting.LOOKUP_URLS;\n\n var $inline = $(\"#\" + prefix + \"-group\");\n\n if (!groupData) {\n groupData = $inline.djnData();\n }\n var lookupFields = groupData.lookupAutocomplete;\n\n $inline.djangoFormsetForms().each(function (i, form) {\n $.each(lookupFields.fk || [], function (i, fk) {\n $(form)\n .djangoFormField(fk)\n .each(function () {\n var $this = $(this),\n id = $this.attr(\"id\");\n // An autocomplete widget has already been initialized, return\n if ($(\"#\" + id + \"-autocomplete\").length) {\n return;\n }\n grp$($this).grp_autocomplete_fk({\n lookup_url: lookupUrls.related,\n autocomplete_lookup_url: lookupUrls.autocomplete,\n });\n });\n });\n $.each(lookupFields.m2m || [], function (i, m2m) {\n $(form)\n .djangoFormField(m2m)\n .each(function () {\n var $this = $(this),\n id = $this.attr(\"id\");\n // An autocomplete widget has already been initialized, return\n if ($(\"#\" + id + \"-autocomplete\").length) {\n return;\n }\n grp$($this).grp_autocomplete_m2m({\n lookup_url: lookupUrls.m2m,\n autocomplete_lookup_url: lookupUrls.autocomplete,\n });\n });\n });\n $.each(lookupFields.generic || [], function () {\n var [contentType, objectId] = this;\n $(form)\n .djangoFormField(objectId)\n .each(function () {\n var $this = $(this);\n var index = $this.djangoFormIndex();\n // An autocomplete widget has already been initialized, return\n if ($(\"#\" + $this.attr(\"id\") + \"-autocomplete\").length) {\n return;\n }\n grp$($this).grp_autocomplete_generic({\n content_type: `#id_${prefix}-${index}-${contentType}`,\n object_id: `#id_${prefix}-${index}-${objectId}`,\n lookup_url: lookupUrls.related,\n autocomplete_lookup_url: lookupUrls.m2m,\n });\n });\n });\n });\n};\n\nfunction getLevelPrefix(id) {\n return id\n .replace(/^\\#?id_/, \"\")\n .split(/-(?:empty|__prefix__|\\d+)-/g)\n .slice(0, -1)\n .join(\"-\");\n}\n\n// I very much regret that these are basically copy-pasted from django's\n// inlines.js, but they're hidden in closure scope so I don't have much choice.\nDJNesting.DjangoInlines = {\n initPrepopulatedFields: function (row) {\n const formPrefix = row.djangoFormPrefix();\n if (!formPrefix) return;\n const fields = $(\"#django-admin-prepopulated-fields-constants\").data(\n \"prepopulatedFields\"\n );\n const fieldNames = new Set();\n const fieldDependencies = {};\n\n if (Array.isArray(fields)) {\n fields.forEach(\n ({ id, name, dependency_list, maxLength, allowUnicode }) => {\n fieldNames.add(name);\n const levelPrefix = getLevelPrefix(id);\n if (typeof fieldDependencies[levelPrefix] !== \"object\") {\n fieldDependencies[levelPrefix] = {};\n }\n fieldDependencies[levelPrefix][name] = {\n dependency_list,\n maxLength,\n allowUnicode,\n };\n }\n );\n fieldNames.forEach((name) => {\n row\n .find(`.form-row .field-${name}, .form-row.field-${name}`)\n .each(function () {\n const $el = $(this);\n const prefix = $el.djangoFormPrefix();\n if (!prefix) return;\n const levelPrefix = getLevelPrefix(prefix);\n const dep = (fieldDependencies[levelPrefix] || {})[name];\n if (dep) {\n $el.addClass(\"prepopulated_field\");\n const $field = $el.is(\":input\") ? $el : $el.find(\":input\");\n $field.data(\"dependency_list\", dep.dependency_list);\n $field.data(\"maxLength\", dep.maxLength);\n $field.data(\"allowUnicode\", dep.allowUnicode);\n }\n });\n });\n }\n if (formPrefix.match(/__prefix__/)) return;\n row.find(\".prepopulated_field\").each(function () {\n var field = $(this),\n input = field.is(\":input\") ? field : field.find(\":input\"),\n $input = grp$(input),\n inputFormPrefix = input.djangoFormPrefix(),\n dependencyList = $input.data(\"dependency_list\") || [],\n dependencies = [];\n if (!inputFormPrefix || inputFormPrefix.match(/__prefix__/)) return;\n if (!dependencyList.length || !$input.prepopulate) {\n $input = django$(input);\n dependencyList = $input.data(\"dependency_list\") || [];\n }\n $.each(dependencyList, function (i, fieldName) {\n dependencies.push(\"#id_\" + inputFormPrefix + fieldName);\n });\n if (dependencies.length) {\n $input.prepopulate(\n dependencies,\n $input.data(\"maxLength\") || $input.attr(\"maxlength\"),\n $input.data(\"allowUnicode\")\n );\n }\n });\n },\n reinitDateTimeShortCuts: function () {\n // Reinitialize the calendar and clock widgets by force\n if (typeof window.DateTimeShortcuts !== \"undefined\") {\n $(\".datetimeshortcuts\").remove();\n DateTimeShortcuts.init();\n }\n },\n updateSelectFilter: function ($form) {\n // If any SelectFilter widgets are a part of the new form,\n // instantiate a new SelectFilter instance for it.\n if (typeof window.SelectFilter !== \"undefined\") {\n $form.find(\".selectfilter\").each(function (index, value) {\n var namearr = value.name.split(\"-\");\n SelectFilter.init(value.id, namearr[namearr.length - 1], false);\n });\n $form.find(\".selectfilterstacked\").each(function (index, value) {\n var namearr = value.name.split(\"-\");\n SelectFilter.init(value.id, namearr[namearr.length - 1], true);\n });\n }\n },\n};\n\nfunction patchSelectFilter() {\n window.SelectFilter.init = (function (oldFn) {\n return function init(field_id, field_name, is_stacked) {\n if (field_id.match(/\\-empty\\-/)) {\n return;\n } else {\n oldFn.apply(this, arguments);\n }\n };\n })(window.SelectFilter.init);\n}\n\nif (typeof window.SelectFilter !== \"undefined\") {\n patchSelectFilter();\n} else {\n setTimeout(function () {\n if (typeof window.SelectFilter !== \"undefined\") {\n patchSelectFilter();\n }\n }, 12);\n}\n\nconst djangoFuncs = [\"prepopulate\", \"djangoAdminSelect2\"];\n\ndjangoFuncs.forEach((funcName) => {\n (function patchDjangoFunction(callCount) {\n if (callCount > 2) {\n return;\n }\n if (typeof $.fn[funcName] === \"undefined\") {\n return setTimeout(() => patchDjangoFunction(++callCount), 12);\n }\n $.fn[funcName] = (function (oldFn) {\n return function django_fn_patch() {\n return oldFn.apply(\n this.filter(\n ':not([id*=\"-empty-\"]):not([id$=\"-empty\"]):not([id*=\"__prefix__\"])'\n ),\n arguments\n );\n };\n })($.fn[funcName]);\n })(0);\n});\n\nconst grpFuncs = [\n \"grp_autocomplete_fk\",\n \"grp_autocomplete_generic\",\n \"grp_autocomplete_m2m\",\n \"grp_collapsible\",\n \"grp_collapsible_group\",\n \"grp_inline\",\n \"grp_related_fk\",\n \"grp_related_generic\",\n \"grp_related_m2m\",\n \"grp_timepicker\",\n \"datepicker\",\n \"prepopulate\",\n \"djangoAdminSelect2\",\n];\n\ngrpFuncs.forEach((funcName) => {\n (function patchGrpFunction(callCount) {\n if (callCount > 2) {\n return;\n }\n if (\n typeof window.grp === \"undefined\" ||\n typeof window.grp.jQuery.fn[funcName] === \"undefined\"\n ) {\n return setTimeout(() => patchGrpFunction(++callCount), 12);\n }\n window.grp.jQuery.fn[funcName] = (function (oldFn) {\n return function grp_fn_patch() {\n return oldFn.apply(\n this.filter(\n ':not([id*=\"-empty-\"]):not([id$=\"-empty\"]):not([id*=\"__prefix__\"])'\n ),\n arguments\n );\n };\n })(window.grp.jQuery.fn[funcName]);\n })(0);\n});\n\nexport default DJNesting;\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = require('./_wks')('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) require('./_hide')(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n","'use strict';\nvar at = require('./_string-at')(true);\n\n // `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? at(S, index).length : 1);\n};\n","module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","'use strict';\nvar dP = require('./_object-dp').f;\nvar create = require('./_object-create');\nvar redefineAll = require('./_redefine-all');\nvar ctx = require('./_ctx');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar $iterDefine = require('./_iter-define');\nvar step = require('./_iter-step');\nvar setSpecies = require('./_set-species');\nvar DESCRIPTORS = require('./_descriptors');\nvar fastKey = require('./_meta').fastKey;\nvar validate = require('./_validate-collection');\nvar SIZE = DESCRIPTORS ? '_s' : 'size';\n\nvar getEntry = function (that, key) {\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return that._i[index];\n // frozen object case\n for (entry = that._f; entry; entry = entry.n) {\n if (entry.k == key) return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, NAME, '_i');\n that._t = NAME; // collection type\n that._i = create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear() {\n for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {\n entry.r = true;\n if (entry.p) entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function (key) {\n var that = validate(this, NAME);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.n;\n var prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if (prev) prev.n = next;\n if (next) next.p = prev;\n if (that._f == entry) that._f = next;\n if (that._l == entry) that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /* , that = undefined */) {\n validate(this, NAME);\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var entry;\n while (entry = entry ? entry.n : this._f) {\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key) {\n return !!getEntry(validate(this, NAME), key);\n }\n });\n if (DESCRIPTORS) dP(C.prototype, 'size', {\n get: function () {\n return validate(this, NAME)[SIZE];\n }\n });\n return C;\n },\n def: function (that, key, value) {\n var entry = getEntry(that, key);\n var prev, index;\n // change existing entry\n if (entry) {\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if (!that._f) that._f = entry;\n if (prev) prev.n = entry;\n that[SIZE]++;\n // add to index\n if (index !== 'F') that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function (C, NAME, IS_MAP) {\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function (iterated, kind) {\n this._t = validate(iterated, NAME); // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function () {\n var that = this;\n var kind = that._k;\n var entry = that._l;\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n // get next entry\n if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if (kind == 'keys') return step(0, entry.k);\n if (kind == 'values') return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n","'use strict';\nvar global = require('./_global');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar redefineAll = require('./_redefine-all');\nvar meta = require('./_meta');\nvar forOf = require('./_for-of');\nvar anInstance = require('./_an-instance');\nvar isObject = require('./_is-object');\nvar fails = require('./_fails');\nvar $iterDetect = require('./_iter-detect');\nvar setToStringTag = require('./_set-to-string-tag');\nvar inheritIfRequired = require('./_inherit-if-required');\n\nmodule.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {\n var Base = global[NAME];\n var C = Base;\n var ADDER = IS_MAP ? 'set' : 'add';\n var proto = C && C.prototype;\n var O = {};\n var fixMethod = function (KEY) {\n var fn = proto[KEY];\n redefine(proto, KEY,\n KEY == 'delete' ? function (a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'has' ? function has(a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'get' ? function get(a) {\n return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }\n : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }\n );\n };\n if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {\n new C().entries().next();\n }))) {\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n meta.NEED = true;\n } else {\n var instance = new C();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new C();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n if (!ACCEPT_ITERABLES) {\n C = wrapper(function (target, iterable) {\n anInstance(target, C, NAME);\n var that = inheritIfRequired(new Base(), target, C);\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n return that;\n });\n C.prototype = proto;\n proto.constructor = C;\n }\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n // weak collections should not contains .clear method\n if (IS_WEAK && proto.clear) delete proto.clear;\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F * (C != Base), O);\n\n if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n","var core = module.exports = { version: '2.6.12' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","'use strict';\nrequire('./es6.regexp.exec');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\nvar regexpExec = require('./_regexp-exec');\n\nvar SPECIES = wks('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {\n // Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length === 2 && result[0] === 'a' && result[1] === 'b';\n})();\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n re.exec = function () { execCalled = true; return null; };\n if (KEY === 'split') {\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n }\n re[SYMBOL]('');\n return !execCalled;\n }) : undefined;\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var fns = exec(\n defined,\n SYMBOL,\n ''[KEY],\n function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n }\n );\n var strfn = fns[0];\n var rxfn = fns[1];\n\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = require('./_an-object');\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n","module.exports = require('./_shared')('native-function-to-string', Function.toString);\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// 7.2.8 IsRegExp(argument)\nvar isObject = require('./_is-object');\nvar cof = require('./_cof');\nvar MATCH = require('./_wks')('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n","module.exports = {};\n","module.exports = false;\n","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","exports.f = {}.propertyIsEnumerable;\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var redefine = require('./_redefine');\nmodule.exports = function (target, src, safe) {\n for (var key in src) redefine(target, key, src[key], safe);\n return target;\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","'use strict';\n\nvar classof = require('./_classof');\nvar builtinExec = RegExp.prototype.exec;\n\n // `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw new TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n if (classof(R) !== 'RegExp') {\n throw new TypeError('RegExp#exec called on incompatible receiver');\n }\n return builtinExec.call(R, S);\n};\n","'use strict';\n\nvar regexpFlags = require('./_flags');\n\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\n\nvar patchedExec = nativeExec;\n\nvar LAST_INDEX = 'lastIndex';\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/,\n re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;\n})();\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;\n\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + re.source + '$(?!\\\\s)', regexpFlags.call(re));\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];\n\n match = nativeExec.call(re, str);\n\n if (UPDATES_LAST_INDEX_WRONG && match) {\n re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n // eslint-disable-next-line no-loop-func\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","'use strict';\nvar global = require('./_global');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar SPECIES = require('./_wks')('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it, TYPE) {\n if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');\n return it;\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () { forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar html = require('./_html');\nvar cof = require('./_cof');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nvar toLength = require('./_to-length');\nvar arraySlice = [].slice;\n\n// fallback for not array-like ES3 strings and DOM objects\n$export($export.P + $export.F * require('./_fails')(function () {\n if (html) arraySlice.call(html);\n}), 'Array', {\n slice: function slice(begin, end) {\n var len = toLength(this.length);\n var klass = cof(this);\n end = end === undefined ? len : end;\n if (klass == 'Array') return arraySlice.call(this, begin, end);\n var start = toAbsoluteIndex(begin, len);\n var upTo = toAbsoluteIndex(end, len);\n var size = toLength(upTo - start);\n var cloned = new Array(size);\n var i = 0;\n for (; i < size; i++) cloned[i] = klass == 'String'\n ? this.charAt(start + i)\n : this[start + i];\n return cloned;\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar aFunction = require('./_a-function');\nvar toObject = require('./_to-object');\nvar fails = require('./_fails');\nvar $sort = [].sort;\nvar test = [1, 2, 3];\n\n$export($export.P + $export.F * (fails(function () {\n // IE8-\n test.sort(undefined);\n}) || !fails(function () {\n // V8 bug\n test.sort(null);\n // Old WebKit\n}) || !require('./_strict-method')($sort)), 'Array', {\n // 22.1.3.25 Array.prototype.sort(comparefn)\n sort: function sort(comparefn) {\n return comparefn === undefined\n ? $sort.call(toObject(this))\n : $sort.call(toObject(this), aFunction(comparefn));\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\n// 19.1.3.6 Object.prototype.toString()\nvar classof = require('./_classof');\nvar test = {};\ntest[require('./_wks')('toStringTag')] = 'z';\nif (test + '' != '[object z]') {\n require('./_redefine')(Object.prototype, 'toString', function toString() {\n return '[object ' + classof(this) + ']';\n }, true);\n}\n","var global = require('./_global');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar dP = require('./_object-dp').f;\nvar gOPN = require('./_object-gopn').f;\nvar isRegExp = require('./_is-regexp');\nvar $flags = require('./_flags');\nvar $RegExp = global.RegExp;\nvar Base = $RegExp;\nvar proto = $RegExp.prototype;\nvar re1 = /a/g;\nvar re2 = /a/g;\n// \"new\" creates a new object, old webkit buggy here\nvar CORRECT_NEW = new $RegExp(re1) !== re1;\n\nif (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function () {\n re2[require('./_wks')('match')] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';\n}))) {\n $RegExp = function RegExp(p, f) {\n var tiRE = this instanceof $RegExp;\n var piRE = isRegExp(p);\n var fiU = f === undefined;\n return !tiRE && piRE && p.constructor === $RegExp && fiU ? p\n : inheritIfRequired(CORRECT_NEW\n ? new Base(piRE && !fiU ? p.source : p, f)\n : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)\n , tiRE ? this : proto, $RegExp);\n };\n var proxy = function (key) {\n key in $RegExp || dP($RegExp, key, {\n configurable: true,\n get: function () { return Base[key]; },\n set: function (it) { Base[key] = it; }\n });\n };\n for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n require('./_redefine')(global, 'RegExp', $RegExp);\n}\n\nrequire('./_set-species')('RegExp');\n","'use strict';\nvar regexpExec = require('./_regexp-exec');\nrequire('./_export')({\n target: 'RegExp',\n proto: true,\n forced: regexpExec !== /./.exec\n}, {\n exec: regexpExec\n});\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\n\n// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match\n function (regexp) {\n var res = maybeCallNative($match, regexp, this);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n if (!rx.global) return regExpExec(rx, S);\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = String(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar toInteger = require('./_to-integer');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&`']|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&`']|\\d\\d?)/g;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nrequire('./_fix-re-wks')('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = defined(this);\n var fn = searchValue == undefined ? undefined : searchValue[REPLACE];\n return fn !== undefined\n ? fn.call(searchValue, O, replaceValue)\n : $replace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n var res = maybeCallNative($replace, regexp, this, replaceValue);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n results.push(result);\n if (!global) break;\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return $replace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n});\n","'use strict';\n\nvar isRegExp = require('./_is-regexp');\nvar anObject = require('./_an-object');\nvar speciesConstructor = require('./_species-constructor');\nvar advanceStringIndex = require('./_advance-string-index');\nvar toLength = require('./_to-length');\nvar callRegExpExec = require('./_regexp-exec-abstract');\nvar regexpExec = require('./_regexp-exec');\nvar fails = require('./_fails');\nvar $min = Math.min;\nvar $push = [].push;\nvar $SPLIT = 'split';\nvar LENGTH = 'length';\nvar LAST_INDEX = 'lastIndex';\nvar MAX_UINT32 = 0xffffffff;\n\n// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError\nvar SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });\n\n// @@split logic\nrequire('./_fix-re-wks')('split', 2, function (defined, SPLIT, $split, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||\n 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||\n 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||\n '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||\n '.'[$SPLIT](/()()/)[LENGTH] > 1 ||\n ''[$SPLIT](/.?/)[LENGTH]\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = String(this);\n if (separator === undefined && limit === 0) return [];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) return $split.call(string, separator, limit);\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = regexpExec.call(separatorCopy, string)) {\n lastIndex = separatorCopy[LAST_INDEX];\n if (lastIndex > lastLastIndex) {\n output.push(string.slice(lastLastIndex, match.index));\n if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));\n lastLength = match[0][LENGTH];\n lastLastIndex = lastIndex;\n if (output[LENGTH] >= splitLimit) break;\n }\n if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop\n }\n if (lastLastIndex === string[LENGTH]) {\n if (lastLength || !separatorCopy.test('')) output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;\n };\n // Chakra, V8\n } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);\n };\n } else {\n internalSplit = $split;\n }\n\n return [\n // `String.prototype.split` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = defined(this);\n var splitter = separator == undefined ? undefined : separator[SPLIT];\n return splitter !== undefined\n ? splitter.call(separator, O, limit)\n : internalSplit.call(String(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (regexp, limit) {\n var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (SUPPORTS_Y ? 'y' : 'g');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = SUPPORTS_Y ? q : 0;\n var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));\n var e;\n if (\n z === null ||\n (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n A.push(S.slice(p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n A.push(z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n A.push(S.slice(p));\n return A;\n }\n ];\n});\n","'use strict';\nvar strong = require('./_collection-strong');\nvar validate = require('./_validate-collection');\nvar SET = 'Set';\n\n// 23.2 Set Objects\nmodule.exports = require('./_collection')(SET, function (get) {\n return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value) {\n return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);\n }\n}, strong);\n","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n","var $iterators = require('./es6.array.iterator');\nvar getKeys = require('./_object-keys');\nvar redefine = require('./_redefine');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar wks = require('./_wks');\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n","module.exports = window[\"grappelli\"];","module.exports = window[\"grp\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// extracted by mini-css-extract-plugin\nexport {};","import $ from \"jquery\";\nimport * as grappelli from \"grappelli\";\nimport DJNesting from \"./utils\";\nimport DjangoFormset from \"./jquery.djangoformset\";\n\nDJNesting.DjangoFormset = DjangoFormset;\n\n$(document).ready(function () {\n // Remove the border on any empty fieldsets\n $(\"fieldset.grp-module, fieldset.module\")\n .filter(function (i, element) {\n return element.childNodes.length == 0;\n })\n .css(\"border-width\", \"0\");\n\n // Set predelete class on any form elements with the DELETE input checked.\n // These can occur on forms rendered after a validation error.\n $('input[name$=\"-DELETE\"]:checked')\n .not('[name*=\"__prefix__\"]')\n .closest(\".djn-inline-form\")\n .addClass(\"grp-predelete\");\n\n $(document).on(\n \"djnesting:initialized djnesting:mutate\",\n function onMutate(e, $inline) {\n var $items = $inline.find(\n \"> .djn-items, > .tabular > .module > .djn-items\"\n );\n var $rows = $items.children(\".djn-tbody\");\n $rows.removeClass(\"row1 row2\");\n $rows.each(function (i, row) {\n var n = 1 + (i % 2);\n $(row).addClass(\"row\" + n);\n });\n }\n );\n\n // Register the nested formset on top level djnesting-stacked elements.\n // It will handle recursing down the nested inlines.\n $(\".djn-group-root\").each(function (i, rootGroup) {\n $(rootGroup).djangoFormset();\n });\n\n $(\"form\").on(\"submit.djnesting\", function (e) {\n $(\".djn-group\").each(function () {\n DJNesting.updatePositions($(this).djangoFormsetPrefix());\n $(document).trigger(\"djnesting:mutate\", [\n $(this).djangoFormset().$inline,\n ]);\n });\n });\n});\n\nexport default DJNesting;\n"],"names":["$","django$","$sel","window","grp","jQuery","fn","init","$djangoSel","prevObject","grp$","$grpSel","regexQuote","DJNesting","grappelli","pluginName","DjangoFormset","inline","opts","emptyClass","predeleteClass","$inline","prefix","djangoFormsetPrefix","_$totalForms","find","attr","_$template","inlineModelClassName","djnData","nestingLevel","handlerSelector","extend","childTypes","data","options","formsetFkModel","addButtonSelector","removeButtonSelector","deleteButtonSelector","formClass","formClassSelector","initRelatedFields","initAutocompleteFields","_setupPolymorphic","_bindEvents","_initializeForms","trigger","each","is","createSortable","document","Error","menu","forEach","c","type","name","$addButton","$menu","after","totalForms","mgmtVal","maxForms","parents","hide","i","_initializeForm","form","$form","formPrefix","djangoFormPrefix","addClass","hasClass","toggleClass","minForms","self","hideRemoveButton","djangoFormsetForms","showHideMethod","$el","off","on","e","preventDefault","stopPropagation","next","length","add","hideMenu","show","$menuButtons","parent","polymorphicType","target","closest","filter","remove","deleteClickHandler","stopImmediatePropagation","$deleteInput","undelete","$deleteButton","index","djangoFormIndex","isInitial","innerHTML","_fillGap","updatePositions","dispatchEvent","CustomEvent","detail","formsetName","delete","checked","$childInline","childFormset","djangoFormset","removeAttr","removeClass","spliceIndex","ctype","$template","clone","id","isNested","replace","append","createContainerElement","updateFormAttributes","RegExp","$firstTemplate","eq","compatibleParents","el","fkModel","compatModels","parentModel","isPolymorphic","indexOf","input","value","setAttribute","parentNode","appendChild","removeChild","insertBefore","isNumeric","spliceInto","reinitDateTimeFields","DjangoInlines","initPrepopulatedFields","reinitDateTimeShortCuts","updateSelectFilter","grp_collapsible","addBackMethod","addBack","toggle_handler_slctr","closed_css","open_css","on_toggle","curated_content_type","formsetModelClassName","$buttons","get","bubbles","$initialForm","$newForm","formsets","toArray","sort","a","b","oldIndex","oldFormPrefixRegex","_makeRoomForInsert","initialFormCount","totalFormCount","gapIndex","$existingForm","isNewAddition","oldFormsetPrefix","newFormsetPrefix","newIndex","$before","currentPosition","prevAll","$oldInline","$currentFormInline","oldDjangoFormset","$parentInline","$parentForm","parentPkField","pk","$parentPk","djangoFormField","val","setTimeout","newValue","$field","parseInt","args","arguments","makeArray","slice","prototype","prefixCache","inlineFormsetData","nestedOptions","djangoPrefixIndex","$this","first","forattr","$group","groupId","cacheKey","match","substr","getElementById","prefixIndex","filterDjangoFormsetForms","formsetPrefix","formId","getAttribute","formIndex","forms","$forms","sortedForms","Array","push","apply","pushStack","fieldName","$empty","matches","isNaN","namePrefix","fieldPart","substring","fieldNameData","prefixAndIndex","filterDjangoField","djRegexCache","fieldId","django","ui","undefined","t","s","n","r","o","nodeName","toLowerCase","href","test","disabled","expr","filters","visible","css","version","keyCode","BACKSPACE","COMMA","DELETE","DOWN","END","ENTER","ESCAPE","HOME","LEFT","NUMPAD_ADD","NUMPAD_DECIMAL","NUMPAD_DIVIDE","NUMPAD_ENTER","NUMPAD_MULTIPLY","NUMPAD_SUBTRACT","PAGE_DOWN","PAGE_UP","PERIOD","RIGHT","SPACE","TAB","UP","focus","call","scrollParent","ie","zIndex","uniqueId","removeUniqueId","createPseudo","focusable","tabbable","outerWidth","jquery","parseFloat","innerWidth","innerHeight","outerHeight","removeData","camelCase","exec","navigator","userAgent","support","selectstart","createElement","disableSelection","bind","enableSelection","unbind","plugin","plugins","element","nodeType","hasScroll","cleanData","triggerHandler","widget","h","l","u","split","Widget","_createWidget","_proto","_childConstructors","isFunction","_super","_superApply","widgetEventPrefix","constructor","namespace","widgetName","widgetFullName","bridge","hasOwnProperty","isPlainObject","concat","charAt","error","option","_init","defaultElement","create","uuid","eventNamespace","_getCreateOptions","bindings","hoverable","_on","destroy","style","ownerDocument","defaultView","parentWindow","_create","_trigger","_getCreateEventData","noop","_destroy","shift","pop","_setOptions","_setOption","enable","disable","guid","delegate","_off","join","undelegate","_delay","_hoverable","mouseenter","currentTarget","mouseleave","_focusable","focusin","focusout","Event","originalEvent","isDefaultPrevented","effect","duration","isEmptyObject","complete","delay","effects","easing","queue","mouseup","cancel","distance","_mouseInit","_mouseDown","started","_mouseDestroy","_mouseMoveDelegate","_mouseUpDelegate","_mouseStarted","_mouseUp","_mouseDownEvent","which","_mouseCapture","mouseDelayMet","_mouseDelayTimer","_mouseDistanceMet","_mouseDelayMet","_mouseStart","_mouseMove","documentMode","button","_mouseDrag","_mouseStop","Math","max","abs","pageX","pageY","p","width","height","offset","top","left","isWindow","scrollTop","scrollLeft","round","d","f","position","scrollbarWidth","children","offsetWidth","clientWidth","getScrollInfo","scrollWidth","scrollHeight","getWithinInfo","of","m","g","v","y","_","within","x","k","collision","w","at","D","T","M","S","my","offsetFractions","marginLeft","marginTop","targetWidth","targetHeight","elemWidth","elemHeight","collisionPosition","collisionWidth","collisionHeight","elem","using","horizontal","vertical","important","fit","flip","flipfit","getElementsByTagName","visibility","border","margin","background","documentElement","firstChild","cssText","mouse","ready","appendTo","axis","connectWith","containment","cursor","cursorAt","dropOnEmpty","forcePlaceholderSize","forceHelperSize","grid","handle","helper","items","opacity","placeholder","revert","scroll","scrollSensitivity","scrollSpeed","scope","tolerance","_isOverAxis","reference","size","containerCache","refresh","floating","item","key","event","overrideHandle","that","reverting","_refreshItems","currentItem","nodes","validHandle","_removeCurrentsFromItems","noActivation","currentContainer","refreshPositions","_createHelper","_cacheHelperProportions","_cacheMargins","margins","click","_getParentOffset","relative","_getRelativeOffset","cssPosition","originalPosition","_generatePosition","originalPageX","originalPageY","_adjustOffsetFromHelper","domPosition","prev","_createPlaceholder","_setContainment","_storedCursor","_storedOpacity","_storedZIndex","tagName","overflowOffset","_uiHash","_preserveHelperProportions","containers","ddmanager","current","dropBehaviour","prepareOffsets","dragging","positionAbs","_convertPositionTo","lastPositionAbs","scrolled","offsetHeight","itemElement","intersection","_intersectsWithPointer","instance","contains","direction","_intersectsWithSides","_rearrange","_contactContainers","drag","noPropagation","drop","cur","animate","offsetParent","body","_clear","_storedCSS","over","_noFinalSort","prepend","serialize","_getItemsAsjQuery","connected","str","res","attribute","expression","ret","_intersectsWith","x1","x2","helperProportions","y1","y2","dyClick","dxClick","isOverElement","forcePointerForContainers","isOverElementHeight","isOverElementWidth","verticalDirection","_getDragVerticalDirection","horizontalDirection","_getDragHorizontalDirection","isOverBottomHalf","isOverRightHalf","delta","_connectWith","String","queries","j","inst","not","list","grep","targetData","_queries","queriesLength","fast","toleranceElement","custom","refreshContainers","className","update","container","innermostContainer","innermostIndex","dist","itemWithLeastDistance","posProperty","sizeProperty","base","nearBottom","obj","isArray","right","bottom","po","ce","co","pos","mod","scrollIsRootNode","hardRefresh","nextSibling","counter","delayedTriggers","before","fromOutside","cancelHelperRemoval","handler","handlerProxy","_inst","sender","nearest","selector","node","parentsUntil","expando","random","createChildNestedSortable","childContainer","$childContainer","widgetConstructor","newInstance","$otherContainer","addToConnectWith","otherInstance","djnsortable","tabSize","disableNesting","errorClass","nestedContainerSelector","doNotClear","containerElementSelector","listItemSelector","maxLevels","revertOnError","protectRoot","rootID","rtl","fixedNestingDepth","showErrorDiv","keepInParent","isAllowed","canConnectWith","container1","container2","model1","model2","instance2","container1Level","_getLevel","container2Level","$element","dataOptions","_connectWithMap","$document","originalConnectWith","lastItemElement","$itemElement","containerSel","$childItems","itemElementClosestContainer","_clearEmpty","_parentItem","parentItem","level","childLevels","_getChildLevels","placeholderClassName","phClassSearch","phOrigClassName","phOrigClassNameEndPos","previousItem","previousSibling","nextItem","beyondMaxLevels","containerInstance","_isAllowed","$previousItemChildContainer","lastRearrangedElement","placeholderParentItem","comparisonElement","previousTopOffset","sDepth","startDepthCount","item_id","parent_id","depth","_recursiveArray","pid","$item","childContainers","result","child","levels","isRoot","origConnectWith","$elements","splice","childNodes","newContainer","nestedSortable","count","groupData","fieldNames","groupFkName","formsetFkName","parentPkVal","parentPrefix","sortableOptions","sortableExcludes","$parentGroup","parentFieldNames","parentPkFieldName","regex","$inlineLabel","html","$fields","$positionField","setPosition","hasValue","siblings","inArray","$currentItem","$originalTr","trTagName","prop","$tr","$originalTd","tdTagName","numColumns","td","$placeholder","$currItem","paddingTop","paddingBottom","paddingLeft","paddingRight","childModels","currentModel","isPolymorphicChild","start","stop","receive","$nextItem","nextAll","$elem","search","$node","attrs","attrName","attrVal","JSON","parse","prepopulate","dependencyIds","map","LOOKUP_URLS","related","lookupUrls","lookupFields","lookupRelated","fk","grp_related_fk","lookup_url","m2m","grp_related_m2m","generic","contentType","objectId","grp_related_generic","content_type","object_id","lookupAutocomplete","grp_autocomplete_fk","autocomplete_lookup_url","autocomplete","grp_autocomplete_m2m","grp_autocomplete_generic","getLevelPrefix","row","fields","Set","fieldDependencies","dependency_list","maxLength","allowUnicode","levelPrefix","dep","field","$input","inputFormPrefix","dependencyList","dependencies","DateTimeShortcuts","SelectFilter","namearr","patchSelectFilter","oldFn","field_id","field_name","is_stacked","djangoFuncs","funcName","patchDjangoFunction","callCount","django_fn_patch","grpFuncs","patchGrpFunction","grp_fn_patch","onMutate","$items","$rows","rootGroup"],"sourceRoot":""} \ No newline at end of file diff --git a/nested_admin/static/nested_admin/dist/nested_admin.min.js b/nested_admin/static/nested_admin/dist/nested_admin.min.js index de777b1..2466829 100644 --- a/nested_admin/static/nested_admin/dist/nested_admin.min.js +++ b/nested_admin/static/nested_admin/dist/nested_admin.min.js @@ -1,3 +1,3 @@ /*! For license information please see nested_admin.min.js.LICENSE.txt */ -!function(){var t={4963:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},7722:function(t,e,i){var n=i(6314)("unscopables"),r=Array.prototype;null==r[n]&&i(7728)(r,n,{}),t.exports=function(t){r[n][t]=!0}},6793:function(t,e,i){"use strict";var n=i(4496)(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},3328:function(t){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},7007:function(t,e,i){var n=i(5286);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},9315:function(t,e,i){var n=i(2110),r=i(875),o=i(2337);t.exports=function(t){return function(e,i,s){var a,l=n(e),c=r(l.length),h=o(s,c);if(t&&i!=i){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}}},50:function(t,e,i){var n=i(741),r=i(9797),o=i(508),s=i(875),a=i(6886);t.exports=function(t,e){var i=1==t,l=2==t,c=3==t,h=4==t,u=6==t,d=5==t||u,f=e||a;return function(e,a,p){for(var m,g,v=o(e),_=r(v),y=n(a,p,3),b=s(_.length),x=0,w=i?f(e,b):l?f(e,0):void 0;b>x;x++)if((d||x in _)&&(g=y(m=_[x],x,v),t))if(i)w[x]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:w.push(m)}else if(h)return!1;return u?-1:c||h?h:w}}},2736:function(t,e,i){var n=i(5286),r=i(4302),o=i(6314)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},6886:function(t,e,i){var n=i(2736);t.exports=function(t,e){return new(n(t))(e)}},1488:function(t,e,i){var n=i(2032),r=i(6314)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},2032:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9824:function(t,e,i){"use strict";var n=i(9275).f,r=i(2503),o=i(4408),s=i(741),a=i(3328),l=i(3531),c=i(2923),h=i(5436),u=i(2974),d=i(7057),f=i(4728).fastKey,p=i(1616),m=d?"_s":"size",g=function(t,e){var i,n=f(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,c){var h=t((function(t,n){a(t,h,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[m]=0,null!=n&&l(n,i,t[c],t)}));return o(h.prototype,{clear:function(){for(var t=p(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var i=p(this,e),n=g(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[m]--}return!!n},forEach:function(t){p(this,e);for(var i,n=s(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!g(p(this,e),t)}}),d&&n(h.prototype,"size",{get:function(){return p(this,e)[m]}}),h},def:function(t,e,i){var n,r,o=g(t,e);return o?o.v=i:(t._l=o={i:r=f(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[m]++,"F"!==r&&(t._i[r]=o)),t},getEntry:g,setStrong:function(t,e,i){c(t,e,(function(t,i){this._t=p(t,e),this._k=i,this._l=void 0}),(function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?h(0,"keys"==e?i.k:"values"==e?i.v:[i.k,i.v]):(t._t=void 0,h(1))}),i?"entries":"values",!i,!0),u(e)}}},5795:function(t,e,i){"use strict";var n=i(3816),r=i(2985),o=i(7234),s=i(4408),a=i(4728),l=i(3531),c=i(3328),h=i(5286),u=i(4253),d=i(7462),f=i(2943),p=i(266);t.exports=function(t,e,i,m,g,v){var _=n[t],y=_,b=g?"set":"add",x=y&&y.prototype,w={},j=function(t){var e=x[t];o(x,t,"delete"==t||"has"==t?function(t){return!(v&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!h(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof y&&(v||x.forEach&&!u((function(){(new y).entries().next()})))){var S=new y,P=S[b](v?{}:-0,1)!=S,I=u((function(){S.has(1)})),F=d((function(t){new y(t)})),C=!v&&u((function(){for(var t=new y,e=5;e--;)t[b](e,e);return!t.has(-0)}));F||((y=e((function(e,i){c(e,y,t);var n=p(new _,e,y);return null!=i&&l(i,g,n[b],n),n}))).prototype=x,x.constructor=y),(I||C)&&(j("delete"),j("has"),g&&j("get")),(C||P)&&j(b),v&&x.clear&&delete x.clear}else y=m.getConstructor(e,t,g,b),s(y.prototype,i),a.NEED=!0;return f(y,t),w[t]=y,r(r.G+r.W+r.F*(y!=_),w),v||m.setStrong(y,t,g),y}},5645:function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},741:function(t,e,i){var n=i(4963);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},1355:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},7057:function(t,e,i){t.exports=!i(4253)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2457:function(t,e,i){var n=i(5286),r=i(3816).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},4430:function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},2985:function(t,e,i){var n=i(3816),r=i(5645),o=i(7728),s=i(7234),a=i(741),l=function(t,e,i){var c,h,u,d,f=t&l.F,p=t&l.G,m=t&l.S,g=t&l.P,v=t&l.B,_=p?n:m?n[e]||(n[e]={}):(n[e]||{}).prototype,y=p?r:r[e]||(r[e]={}),b=y.prototype||(y.prototype={});for(c in p&&(i=e),i)u=((h=!f&&_&&void 0!==_[c])?_:i)[c],d=v&&h?a(u,n):g&&"function"==typeof u?a(Function.call,u):u,_&&s(_,c,u,t&l.U),y[c]!=u&&o(y,c,d),g&&b[c]!=u&&(b[c]=u)};n.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},4253:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8082:function(t,e,i){"use strict";i(8269);var n=i(7234),r=i(7728),o=i(4253),s=i(1355),a=i(6314),l=i(1165),c=a("species"),h=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),u=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var d=a(t),f=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!o((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[c]=function(){return i}),i[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!h||"split"===t&&!u){var m=/./[d],g=i(s,d,""[t],(function(t,e,i,n,r){return e.exec===l?f&&!r?{done:!0,value:m.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),v=g[0],_=g[1];n(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},3218:function(t,e,i){"use strict";var n=i(7007);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},3531:function(t,e,i){var n=i(741),r=i(8851),o=i(6555),s=i(7007),a=i(875),l=i(9002),c={},h={},u=t.exports=function(t,e,i,u,d){var f,p,m,g,v=d?function(){return t}:l(t),_=n(i,u,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(f=a(t.length);f>y;y++)if((g=e?_(s(p=t[y])[0],p[1]):_(t[y]))===c||g===h)return g}else for(m=v.call(t);!(p=m.next()).done;)if((g=r(m,_,p.value,e))===c||g===h)return g};u.BREAK=c,u.RETURN=h},18:function(t,e,i){t.exports=i(3825)("native-function-to-string",Function.toString)},3816:function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},9181:function(t){var e={}.hasOwnProperty;t.exports=function(t,i){return e.call(t,i)}},7728:function(t,e,i){var n=i(9275),r=i(681);t.exports=i(7057)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},639:function(t,e,i){var n=i(3816).document;t.exports=n&&n.documentElement},1734:function(t,e,i){t.exports=!i(7057)&&!i(4253)((function(){return 7!=Object.defineProperty(i(2457)("div"),"a",{get:function(){return 7}}).a}))},266:function(t,e,i){var n=i(5286),r=i(7375).set;t.exports=function(t,e,i){var o,s=e.constructor;return s!==i&&"function"==typeof s&&(o=s.prototype)!==i.prototype&&n(o)&&r&&r(t,o),t}},9797:function(t,e,i){var n=i(2032);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},6555:function(t,e,i){var n=i(2803),r=i(6314)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}},4302:function(t,e,i){var n=i(2032);t.exports=Array.isArray||function(t){return"Array"==n(t)}},5286:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},5364:function(t,e,i){var n=i(5286),r=i(2032),o=i(6314)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},8851:function(t,e,i){var n=i(7007);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},9988:function(t,e,i){"use strict";var n=i(2503),r=i(681),o=i(2943),s={};i(7728)(s,i(6314)("iterator"),(function(){return this})),t.exports=function(t,e,i){t.prototype=n(s,{next:r(1,i)}),o(t,e+" Iterator")}},2923:function(t,e,i){"use strict";var n=i(4461),r=i(2985),o=i(7234),s=i(7728),a=i(2803),l=i(9988),c=i(2943),h=i(468),u=i(6314)("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",p="values",m=function(){return this};t.exports=function(t,e,i,g,v,_,y){l(i,e,g);var b,x,w,j=function(t){if(!d&&t in F)return F[t];switch(t){case f:case p:return function(){return new i(this,t)}}return function(){return new i(this,t)}},S=e+" Iterator",P=v==p,I=!1,F=t.prototype,C=F[u]||F["@@iterator"]||v&&F[v],E=C||j(v),O=v?P?j("entries"):E:void 0,T="Array"==e&&F.entries||C;if(T&&(w=h(T.call(new t)))!==Object.prototype&&w.next&&(c(w,S,!0),n||"function"==typeof w[u]||s(w,u,m)),P&&C&&C.name!==p&&(I=!0,E=function(){return C.call(this)}),n&&!y||!d&&!I&&F[u]||s(F,u,E),a[e]=E,a[S]=m,v)if(b={values:P?E:j(p),keys:_?E:j(f),entries:O},y)for(x in b)x in F||o(F,x,b[x]);else r(r.P+r.F*(d||I),e,b);return b}},7462:function(t,e,i){var n=i(6314)("iterator"),r=!1;try{var o=[7][n]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:i=!0}},o[n]=function(){return s},t(o)}catch(t){}return i}},5436:function(t){t.exports=function(t,e){return{value:e,done:!!t}}},2803:function(t){t.exports={}},4461:function(t){t.exports=!1},4728:function(t,e,i){var n=i(3953)("meta"),r=i(5286),o=i(9181),s=i(9275).f,a=0,l=Object.isExtensible||function(){return!0},c=!i(4253)((function(){return l(Object.preventExtensions({}))})),h=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},u=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[n].w},onFreeze:function(t){return c&&u.NEED&&l(t)&&!o(t,n)&&h(t),t}}},2503:function(t,e,i){var n=i(7007),r=i(5588),o=i(4430),s=i(9335)("IE_PROTO"),a=function(){},l=function(){var t,e=i(2457)("iframe"),n=o.length;for(e.style.display="none",i(639).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("