Socket
Socket
Sign inDemoInstall

@rpldy/chunked-uploady

Package Overview
Dependencies
17
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.0 to 1.6.1-rc.0

7

lib/cjs/ChunkedUploady.js

@@ -12,4 +12,4 @@ "use strict";

var _chunkedSender = _interopRequireWildcard(require("@rpldy/chunked-sender"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

@@ -39,3 +39,2 @@ const getEnhancer = (options, enhancer) => {

(0, _sharedUi.logWarning)(_chunkedSender.CHUNKING_SUPPORT || !(0, _shared.hasWindow)(), "This browser doesn't support chunking. Consider using @rpldy/uploady instead");
var _default = ChunkedUploady;
exports.default = _default;
var _default = exports.default = ChunkedUploady;

@@ -9,5 +9,3 @@ "use strict";

var _chunkedSender = require("@rpldy/chunked-sender");
const useChunkStartListener = (0, _sharedUi.generateUploaderEventHook)(_chunkedSender.CHUNK_EVENTS.CHUNK_START, false);
exports.useChunkStartListener = useChunkStartListener;
const useChunkFinishListener = (0, _sharedUi.generateUploaderEventHook)(_chunkedSender.CHUNK_EVENTS.CHUNK_FINISH, false);
exports.useChunkFinishListener = useChunkFinishListener;
const useChunkStartListener = exports.useChunkStartListener = (0, _sharedUi.generateUploaderEventHook)(_chunkedSender.CHUNK_EVENTS.CHUNK_START, false);
const useChunkFinishListener = exports.useChunkFinishListener = (0, _sharedUi.generateUploaderEventHook)(_chunkedSender.CHUNK_EVENTS.CHUNK_FINISH, false);

@@ -50,3 +50,2 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = _ChunkedUploady.default;
exports.default = _default;
var _default = exports.default = _ChunkedUploady.default;
/*! For license information please see polyfills-bundle.js.LICENSE.txt */
(self.webpackChunkrpldy=self.webpackChunkrpldy||[]).push([[429],{"7B0Y":function(t,r,n){"use strict";var e=n("tbMQ");t.exports=e},"2DFf":function(t,r,n){"use strict";var e=n("kE3c");t.exports=e},JVJY:function(t,r,n){"use strict";var e=n("DkPT");t.exports=e},tDn9:function(t,r,n){"use strict";var e=n("q/LL");n("WvWY"),n("DIJN"),n("cgHO"),n("v/w9"),t.exports=e},PeoI:function(t,r,n){"use strict";var e=n("HlJs");t.exports=e},"4WBC":function(t,r,n){"use strict";var e=n("GQnA");t.exports=e},MycS:function(t,r,n){"use strict";n("Ibh0");var e=n("oWnS");t.exports=e("Function").bind},jP3w:function(t,r,n){"use strict";var e=n("Q3sF"),o=n("MycS"),i=Function.prototype;t.exports=function(t){var r=t.bind;return t===i||e(i,t)&&r===i.bind?o:r}},uC8H:function(t,r,n){"use strict";n("VdC8");var e=n("dktu");t.exports=e.Object.assign},o4zr:function(t,r,n){"use strict";n("Pkdo");var e=n("dktu").Object,o=t.exports=function(t,r,n){return e.defineProperty(t,r,n)};e.defineProperty.sham&&(o.sham=!0)},HCkw:function(t,r,n){"use strict";n("/JNE"),n("b4mI"),n("i3tW"),n("42Pb"),n("ZNvi"),n("IqmU"),n("kIAf"),n("Dmep"),n("5pn2"),n("58wy"),n("LoXx"),n("mA47"),n("msS4"),n("J04u"),n("jQUo"),n("7wkN"),n("qhvP"),n("Ui3k"),n("gXaK"),n("0axM");var e=n("dktu");t.exports=e.Symbol},I2R1:function(t,r,n){"use strict";n("kQON"),n("b4mI"),n("Pkew"),n("Dmep");var e=n("vuoM");t.exports=e.f("iterator")},pJNU:function(t,r,n){"use strict";n("cV27"),n("jQUo");var e=n("vuoM");t.exports=e.f("toPrimitive")},oKvO:function(t,r,n){"use strict";var e=n("7B0Y");t.exports=e},"73iN":function(t,r,n){"use strict";var e=n("2DFf");t.exports=e},YRjr:function(t,r,n){"use strict";var e=n("JVJY");t.exports=e},X2ar:function(t,r,n){"use strict";var e=n("tDn9");n("JhGO"),n("8t4j"),n("D45G"),n("dP0U"),n("Xsxu"),n("NpZP"),n("/B0s"),n("Jm8n"),n("mAJt"),t.exports=e},RZi0:function(t,r,n){"use strict";var e=n("PeoI");t.exports=e},nq0W:function(t,r,n){"use strict";var e=n("4WBC");t.exports=e},Thnc:function(t,r,n){"use strict";var e=n("+y2l"),o=n("EwF+"),i=TypeError;t.exports=function(t){if(e(t))return t;throw i(o(t)+" is not a function")}},L5f0:function(t,r,n){"use strict";var e=n("+y2l"),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||e(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},xE4W:function(t){"use strict";t.exports=function(){}},b42z:function(t,r,n){"use strict";var e=n("39uu"),o=String,i=TypeError;t.exports=function(t){if(e(t))return t;throw i(o(t)+" is not an object")}},Y4Ys:function(t,r,n){"use strict";var e=n("pCEo"),o=n("RQhY"),i=n("x08Q"),u=function(t){return function(r,n,u){var c,s=e(r),a=i(s),f=o(u,a);if(t&&n!=n){for(;a>f;)if((c=s[f++])!=c)return!0}else for(;a>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},"3uAa":function(t,r,n){"use strict";var e=n("ZBQp"),o=n("zhhU"),i=n("Y4yM"),u=n("T/97"),c=n("x08Q"),s=n("Q0Rw"),a=o([].push),f=function(t){var r=1===t,n=2===t,o=3===t,f=4===t,p=6===t,v=7===t,l=5===t||p;return function(y,h,b,m){for(var d,g,x=u(y),S=i(x),O=e(h,b),w=c(S),j=0,Y=m||s,P=r?Y(y,w):n||v?Y(y,0):void 0;w>j;j++)if((l||j in S)&&(g=O(d=S[j],j,x),t))if(r)P[j]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return j;case 2:a(P,d)}else switch(t){case 4:return!1;case 7:a(P,d)}return p?-1:o||f?f:P}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},nJYk:function(t,r,n){"use strict";var e=n("Bvq2"),o=n("A2Ma"),i=n("SqY4"),u=o("species");t.exports=function(t){return i>=51||!e((function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},"6JCP":function(t,r,n){"use strict";var e=n("RQhY"),o=n("x08Q"),i=n("bBVJ"),u=Array,c=Math.max;t.exports=function(t,r,n){for(var s=o(t),a=e(r,s),f=e(void 0===n?s:n,s),p=u(c(f-a,0)),v=0;a<f;a++,v++)i(p,v,t[a]);return p.length=v,p}},"61Qb":function(t,r,n){"use strict";var e=n("zhhU");t.exports=e([].slice)},Hdor:function(t,r,n){"use strict";var e=n("YiBS"),o=n("uuS6"),i=n("39uu"),u=n("A2Ma")("species"),c=Array;t.exports=function(t){var r;return e(t)&&(r=t.constructor,(o(r)&&(r===c||e(r.prototype))||i(r)&&null===(r=r[u]))&&(r=void 0)),void 0===r?c:r}},Q0Rw:function(t,r,n){"use strict";var e=n("Hdor");t.exports=function(t,r){return new(e(t))(0===r?0:r)}},"/EgQ":function(t,r,n){"use strict";var e=n("zhhU"),o=e({}.toString),i=e("".slice);t.exports=function(t){return i(o(t),8,-1)}},j5XY:function(t,r,n){"use strict";var e=n("1jut"),o=n("+y2l"),i=n("/EgQ"),u=n("A2Ma")("toStringTag"),c=Object,s="Arguments"===i(function(){return arguments}());t.exports=e?i:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=c(t),u))?n:s?i(r):"Object"===(e=i(r))&&o(r.callee)?"Arguments":e}},"9fuf":function(t,r,n){"use strict";var e=n("Bvq2");t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"3bWX":function(t){"use strict";t.exports=function(t,r){return{value:t,done:r}}},AnMC:function(t,r,n){"use strict";var e=n("wbIY"),o=n("QYBB"),i=n("LGyv");t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},LGyv:function(t){"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},bBVJ:function(t,r,n){"use strict";var e=n("LHUf"),o=n("QYBB"),i=n("LGyv");t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},IpbS:function(t,r,n){"use strict";var e=n("QYBB");t.exports=function(t,r,n){return e.f(t,r,n)}},"/b46":function(t,r,n){"use strict";var e=n("AnMC");t.exports=function(t,r,n,o){return o&&o.enumerable?t[r]=n:e(t,r,n),t}},E6FT:function(t,r,n){"use strict";var e=n("OsYe"),o=Object.defineProperty;t.exports=function(t,r){try{o(e,t,{value:r,configurable:!0,writable:!0})}catch(n){e[t]=r}return r}},wbIY:function(t,r,n){"use strict";var e=n("Bvq2");t.exports=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},D9Qm:function(t){"use strict";var r="object"==typeof document&&document.all,n=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}},ejc7:function(t,r,n){"use strict";var e=n("OsYe"),o=n("39uu"),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},PiPD:function(t){"use strict";var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},eKLf:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},lxfd:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},SqY4:function(t,r,n){"use strict";var e,o,i=n("OsYe"),u=n("lxfd"),c=i.process,s=i.Deno,a=c&&c.versions||s&&s.version,f=a&&a.v8;f&&(o=(e=f.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!o&&u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=+e[1]),t.exports=o},oWnS:function(t,r,n){"use strict";var e=n("dktu");t.exports=function(t){return e[t+"Prototype"]}},nleh:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},pevS:function(t,r,n){"use strict";var e=n("OsYe"),o=n("oLk2"),i=n("E890"),u=n("+y2l"),c=n("RLqH").f,s=n("oOVA"),a=n("dktu"),f=n("ZBQp"),p=n("AnMC"),v=n("Dm96"),l=function(t){var r=function(n,e,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,i)}return o(t,this,arguments)};return r.prototype=t.prototype,r};t.exports=function(t,r){var n,o,y,h,b,m,d,g,x,S=t.target,O=t.global,w=t.stat,j=t.proto,Y=O?e:w?e[S]:(e[S]||{}).prototype,P=O?a:a[S]||p(a,S,{})[S],A=P.prototype;for(h in r)o=!(n=s(O?h:S+(w?".":"#")+h,t.forced))&&Y&&v(Y,h),m=P[h],o&&(d=t.dontCallGetSet?(x=c(Y,h))&&x.value:Y[h]),b=o&&d?d:r[h],o&&typeof m==typeof b||(g=t.bind&&o?f(b,e):t.wrap&&o?l(b):j&&u(b)?i(b):b,(t.sham||b&&b.sham||m&&m.sham)&&p(g,"sham",!0),p(P,h,g),j&&(v(a,y=S+"Prototype")||p(a,y,{}),p(a[y],h,b),t.real&&A&&(n||!A[h])&&p(A,h,b)))}},Bvq2:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},oLk2:function(t,r,n){"use strict";var e=n("oYAv"),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?u.bind(i):function(){return u.apply(i,arguments)})},ZBQp:function(t,r,n){"use strict";var e=n("E890"),o=n("Thnc"),i=n("oYAv"),u=e(e.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},oYAv:function(t,r,n){"use strict";var e=n("Bvq2");t.exports=!e((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"6dl6":function(t,r,n){"use strict";var e=n("zhhU"),o=n("Thnc"),i=n("39uu"),u=n("Dm96"),c=n("61Qb"),s=n("oYAv"),a=Function,f=e([].concat),p=e([].join),v={};t.exports=s?a.bind:function(t){var r=o(this),n=r.prototype,e=c(arguments,1),s=function(){var n=f(e,c(arguments));return this instanceof s?function(t,r,n){if(!u(v,r)){for(var e=[],o=0;o<r;o++)e[o]="a["+o+"]";v[r]=a("C,a","return new C("+p(e,",")+")")}return v[r](t,n)}(r,n.length,n):r.apply(t,n)};return i(n)&&(s.prototype=n),s}},cQZY:function(t,r,n){"use strict";var e=n("oYAv"),o=Function.prototype.call;t.exports=e?o.bind(o):function(){return o.apply(o,arguments)}},swJg:function(t,r,n){"use strict";var e=n("wbIY"),o=n("Dm96"),i=Function.prototype,u=e&&Object.getOwnPropertyDescriptor,c=o(i,"name"),s=c&&"something"===function(){}.name,a=c&&(!e||e&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:s,CONFIGURABLE:a}},NYTN:function(t,r,n){"use strict";var e=n("zhhU"),o=n("Thnc");t.exports=function(t,r,n){try{return e(o(Object.getOwnPropertyDescriptor(t,r)[n]))}catch(t){}}},E890:function(t,r,n){"use strict";var e=n("/EgQ"),o=n("zhhU");t.exports=function(t){if("Function"===e(t))return o(t)}},zhhU:function(t,r,n){"use strict";var e=n("oYAv"),o=Function.prototype,i=o.call,u=e&&o.bind.bind(i,i);t.exports=e?u:function(t){return function(){return i.apply(t,arguments)}}},mIMY:function(t,r,n){"use strict";var e=n("dktu"),o=n("OsYe"),i=n("+y2l"),u=function(t){return i(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?u(e[t])||u(o[t]):e[t]&&e[t][r]||o[t]&&o[t][r]}},DKiG:function(t,r,n){"use strict";var e=n("zhhU"),o=n("YiBS"),i=n("+y2l"),u=n("/EgQ"),c=n("jBKu"),s=e([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var r=t.length,n=[],e=0;e<r;e++){var a=t[e];"string"==typeof a?s(n,a):"number"!=typeof a&&"Number"!==u(a)&&"String"!==u(a)||s(n,c(a))}var f=n.length,p=!0;return function(t,r){if(p)return p=!1,r;if(o(this))return r;for(var e=0;e<f;e++)if(n[e]===t)return r}}}},"+Lan":function(t,r,n){"use strict";var e=n("Thnc"),o=n("Cx3U");t.exports=function(t,r){var n=t[r];return o(n)?void 0:e(n)}},OsYe:function(t,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},Dm96:function(t,r,n){"use strict";var e=n("zhhU"),o=n("T/97"),i=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},bpon:function(t){"use strict";t.exports={}},"7b0v":function(t,r,n){"use strict";var e=n("mIMY");t.exports=e("document","documentElement")},d7IX:function(t,r,n){"use strict";var e=n("wbIY"),o=n("Bvq2"),i=n("ejc7");t.exports=!e&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},Y4yM:function(t,r,n){"use strict";var e=n("zhhU"),o=n("Bvq2"),i=n("/EgQ"),u=Object,c=e("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):u(t)}:u},"6Jnn":function(t,r,n){"use strict";var e=n("zhhU"),o=n("+y2l"),i=n("doUz"),u=e(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},L1rz:function(t,r,n){"use strict";var e,o,i,u=n("zOmE"),c=n("OsYe"),s=n("39uu"),a=n("AnMC"),f=n("Dm96"),p=n("doUz"),v=n("su3n"),l=n("bpon"),y="Object already initialized",h=c.TypeError,b=c.WeakMap;if(u||p.state){var m=p.state||(p.state=new b);m.get=m.get,m.has=m.has,m.set=m.set,e=function(t,r){if(m.has(t))throw h(y);return r.facade=t,m.set(t,r),r},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var d=v("state");l[d]=!0,e=function(t,r){if(f(t,d))throw h(y);return r.facade=t,a(t,d,r),r},o=function(t){return f(t,d)?t[d]:{}},i=function(t){return f(t,d)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!s(r)||(n=o(r)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},YiBS:function(t,r,n){"use strict";var e=n("/EgQ");t.exports=Array.isArray||function(t){return"Array"===e(t)}},"+y2l":function(t,r,n){"use strict";var e=n("D9Qm"),o=e.all;t.exports=e.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},uuS6:function(t,r,n){"use strict";var e=n("zhhU"),o=n("Bvq2"),i=n("+y2l"),u=n("j5XY"),c=n("mIMY"),s=n("6Jnn"),a=function(){},f=[],p=c("Reflect","construct"),v=/^\s*(?:class|function)\b/,l=e(v.exec),y=!v.exec(a),h=function(t){if(!i(t))return!1;try{return p(a,f,t),!0}catch(t){return!1}},b=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!l(v,s(t))}catch(t){return!0}};b.sham=!0,t.exports=!p||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?b:h},oOVA:function(t,r,n){"use strict";var e=n("Bvq2"),o=n("+y2l"),i=/#|\.prototype\./,u=function(t,r){var n=s[c(t)];return n===f||n!==a&&(o(r)?e(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=u.data={},a=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},Cx3U:function(t){"use strict";t.exports=function(t){return null==t}},"39uu":function(t,r,n){"use strict";var e=n("+y2l"),o=n("D9Qm"),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:e(t)||t===i}:function(t){return"object"==typeof t?null!==t:e(t)}},cEKj:function(t){"use strict";t.exports=!0},yXj3:function(t,r,n){"use strict";var e=n("mIMY"),o=n("+y2l"),i=n("Q3sF"),u=n("YtAO"),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=e("Symbol");return o(r)&&i(r.prototype,c(t))}},mdol:function(t,r,n){"use strict";var e=n("u4PT").IteratorPrototype,o=n("SJYm"),i=n("LGyv"),u=n("KHTo"),c=n("dGO/"),s=function(){return this};t.exports=function(t,r,n,a){var f=r+" Iterator";return t.prototype=o(e,{next:i(+!a,n)}),u(t,f,!1,!0),c[f]=s,t}},t6hZ:function(t,r,n){"use strict";var e=n("pevS"),o=n("cQZY"),i=n("cEKj"),u=n("swJg"),c=n("+y2l"),s=n("mdol"),a=n("V3kF"),f=n("7GIe"),p=n("KHTo"),v=n("AnMC"),l=n("/b46"),y=n("A2Ma"),h=n("dGO/"),b=n("u4PT"),m=u.PROPER,d=u.CONFIGURABLE,g=b.IteratorPrototype,x=b.BUGGY_SAFARI_ITERATORS,S=y("iterator"),O="keys",w="values",j="entries",Y=function(){return this};t.exports=function(t,r,n,u,y,b,P){s(n,r,u);var A,E,I,U=function(t){if(t===y&&L)return L;if(!x&&t&&t in M)return M[t];switch(t){case O:case w:case j:return function(){return new n(this,t)}}return function(){return new n(this)}},T=r+" Iterator",B=!1,M=t.prototype,k=M[S]||M["@@iterator"]||y&&M[y],L=!x&&k||U(y),D="Array"===r&&M.entries||k;if(D&&(A=a(D.call(new t)))!==Object.prototype&&A.next&&(i||a(A)===g||(f?f(A,g):c(A[S])||l(A,S,Y)),p(A,T,!0,!0),i&&(h[T]=Y)),m&&y===w&&k&&k.name!==w&&(!i&&d?v(M,"name",w):(B=!0,L=function(){return o(k,this)})),y)if(E={values:U(w),keys:b?L:U(O),entries:U(j)},P)for(I in E)(x||B||!(I in M))&&l(M,I,E[I]);else e({target:r,proto:!0,forced:x||B},E);return i&&!P||M[S]===L||l(M,S,L,{name:y}),h[r]=L,E}},u4PT:function(t,r,n){"use strict";var e,o,i,u=n("Bvq2"),c=n("+y2l"),s=n("39uu"),a=n("SJYm"),f=n("V3kF"),p=n("/b46"),v=n("A2Ma"),l=n("cEKj"),y=v("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(e=o):h=!0),!s(e)||u((function(){var t={};return e[y].call(t)!==t}))?e={}:l&&(e=a(e)),c(e[y])||p(e,y,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}},"dGO/":function(t){"use strict";t.exports={}},x08Q:function(t,r,n){"use strict";var e=n("ZyXh");t.exports=function(t){return e(t.length)}},VJVo:function(t){"use strict";var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?n:r)(e)}},"9E9t":function(t,r,n){"use strict";var e=n("wbIY"),o=n("zhhU"),i=n("cQZY"),u=n("Bvq2"),c=n("oBZR"),s=n("ogVW"),a=n("cEPT"),f=n("T/97"),p=n("Y4yM"),v=Object.assign,l=Object.defineProperty,y=o([].concat);t.exports=!v||u((function(){if(e&&1!==v({b:1},v(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){r[t]=t})),7!==v({},t)[n]||c(v({},r)).join("")!==o}))?function(t,r){for(var n=f(t),o=arguments.length,u=1,v=s.f,l=a.f;o>u;)for(var h,b=p(arguments[u++]),m=v?y(c(b),v(b)):c(b),d=m.length,g=0;d>g;)h=m[g++],e&&!i(l,b,h)||(n[h]=b[h]);return n}:v},SJYm:function(t,r,n){"use strict";var e,o=n("b42z"),i=n("wjB2"),u=n("nleh"),c=n("bpon"),s=n("7b0v"),a=n("ejc7"),f=n("su3n"),p="prototype",v="script",l=f("IE_PROTO"),y=function(){},h=function(t){return"<"+v+">"+t+"</"+v+">"},b=function(t){t.write(h("")),t.close();var r=t.parentWindow.Object;return t=null,r},m=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}var t,r,n;m="undefined"!=typeof document?document.domain&&e?b(e):(r=a("iframe"),n="java"+v+":",r.style.display="none",s.appendChild(r),r.src=String(n),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):b(e);for(var o=u.length;o--;)delete m[p][u[o]];return m()};c[l]=!0,t.exports=Object.create||function(t,r){var n;return null!==t?(y[p]=o(t),n=new y,y[p]=null,n[l]=t):n=m(),void 0===r?n:i.f(n,r)}},wjB2:function(t,r,n){"use strict";var e=n("wbIY"),o=n("OUCS"),i=n("QYBB"),u=n("b42z"),c=n("pCEo"),s=n("oBZR");r.f=e&&!o?Object.defineProperties:function(t,r){u(t);for(var n,e=c(r),o=s(r),a=o.length,f=0;a>f;)i.f(t,n=o[f++],e[n]);return t}},QYBB:function(t,r,n){"use strict";var e=n("wbIY"),o=n("d7IX"),i=n("OUCS"),u=n("b42z"),c=n("LHUf"),s=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",v="configurable",l="writable";r.f=e?i?function(t,r,n){if(u(t),r=c(r),u(n),"function"==typeof t&&"prototype"===r&&"value"in n&&l in n&&!n[l]){var e=f(t,r);e&&e[l]&&(t[r]=n.value,n={configurable:v in n?n[v]:e[v],enumerable:p in n?n[p]:e[p],writable:!1})}return a(t,r,n)}:a:function(t,r,n){if(u(t),r=c(r),u(n),o)try{return a(t,r,n)}catch(t){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},RLqH:function(t,r,n){"use strict";var e=n("wbIY"),o=n("cQZY"),i=n("cEPT"),u=n("LGyv"),c=n("pCEo"),s=n("LHUf"),a=n("Dm96"),f=n("d7IX"),p=Object.getOwnPropertyDescriptor;r.f=e?p:function(t,r){if(t=c(t),r=s(r),f)try{return p(t,r)}catch(t){}if(a(t,r))return u(!o(i.f,t,r),t[r])}},jhEP:function(t,r,n){"use strict";var e=n("/EgQ"),o=n("pCEo"),i=n("DPDV").f,u=n("6JCP"),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"===e(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},DPDV:function(t,r,n){"use strict";var e=n("syO3"),o=n("nleh").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},ogVW:function(t,r){"use strict";r.f=Object.getOwnPropertySymbols},V3kF:function(t,r,n){"use strict";var e=n("Dm96"),o=n("+y2l"),i=n("T/97"),u=n("su3n"),c=n("9fuf"),s=u("IE_PROTO"),a=Object,f=a.prototype;t.exports=c?a.getPrototypeOf:function(t){var r=i(t);if(e(r,s))return r[s];var n=r.constructor;return o(n)&&r instanceof n?n.prototype:r instanceof a?f:null}},Q3sF:function(t,r,n){"use strict";var e=n("zhhU");t.exports=e({}.isPrototypeOf)},syO3:function(t,r,n){"use strict";var e=n("zhhU"),o=n("Dm96"),i=n("pCEo"),u=n("Y4Ys").indexOf,c=n("bpon"),s=e([].push);t.exports=function(t,r){var n,e=i(t),a=0,f=[];for(n in e)!o(c,n)&&o(e,n)&&s(f,n);for(;r.length>a;)o(e,n=r[a++])&&(~u(f,n)||s(f,n));return f}},oBZR:function(t,r,n){"use strict";var e=n("syO3"),o=n("nleh");t.exports=Object.keys||function(t){return e(t,o)}},cEPT:function(t,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!n.call({1:2},1);r.f=o?function(t){var r=e(this,t);return!!r&&r.enumerable}:n},"7GIe":function(t,r,n){"use strict";var e=n("NYTN"),o=n("b42z"),i=n("L5f0");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,n={};try{(t=e(Object.prototype,"__proto__","set"))(n,[]),r=n instanceof Array}catch(t){}return function(n,e){return o(n),i(e),r?t(n,e):n.__proto__=e,n}}():void 0)},HAoi:function(t,r,n){"use strict";var e=n("1jut"),o=n("j5XY");t.exports=e?{}.toString:function(){return"[object "+o(this)+"]"}},"o/WT":function(t,r,n){"use strict";var e=n("cQZY"),o=n("+y2l"),i=n("39uu"),u=TypeError;t.exports=function(t,r){var n,c;if("string"===r&&o(n=t.toString)&&!i(c=e(n,t)))return c;if(o(n=t.valueOf)&&!i(c=e(n,t)))return c;if("string"!==r&&o(n=t.toString)&&!i(c=e(n,t)))return c;throw u("Can't convert object to primitive value")}},dktu:function(t){"use strict";t.exports={}},GHVm:function(t,r,n){"use strict";var e=n("Cx3U"),o=TypeError;t.exports=function(t){if(e(t))throw o("Can't call method on "+t);return t}},KHTo:function(t,r,n){"use strict";var e=n("1jut"),o=n("QYBB").f,i=n("AnMC"),u=n("Dm96"),c=n("HAoi"),s=n("A2Ma")("toStringTag");t.exports=function(t,r,n,a){if(t){var f=n?t:t.prototype;u(f,s)||o(f,s,{configurable:!0,value:r}),a&&!e&&i(f,"toString",c)}}},su3n:function(t,r,n){"use strict";var e=n("1lkh"),o=n("PoCt"),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},doUz:function(t,r,n){"use strict";var e=n("OsYe"),o=n("E6FT"),i="__core-js_shared__",u=e[i]||o(i,{});t.exports=u},"1lkh":function(t,r,n){"use strict";var e=n("cEKj"),o=n("doUz");(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.32.2",mode:e?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},y9AQ:function(t,r,n){"use strict";var e=n("zhhU"),o=n("x9K+"),i=n("jBKu"),u=n("GHVm"),c=e("".charAt),s=e("".charCodeAt),a=e("".slice),f=function(t){return function(r,n){var e,f,p=i(u(r)),v=o(n),l=p.length;return v<0||v>=l?t?"":void 0:(e=s(p,v))<55296||e>56319||v+1===l||(f=s(p,v+1))<56320||f>57343?t?c(p,v):e:t?a(p,v,v+2):f-56320+(e-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},jGix:function(t,r,n){"use strict";var e=n("SqY4"),o=n("Bvq2"),i=n("OsYe").String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))},vDFq:function(t,r,n){"use strict";var e=n("cQZY"),o=n("mIMY"),i=n("A2Ma"),u=n("/b46");t.exports=function(){var t=o("Symbol"),r=t&&t.prototype,n=r&&r.valueOf,c=i("toPrimitive");r&&!r[c]&&u(r,c,(function(t){return e(n,this)}),{arity:1})}},lpHU:function(t,r,n){"use strict";var e=n("mIMY"),o=n("zhhU"),i=e("Symbol"),u=i.keyFor,c=o(i.prototype.valueOf);t.exports=i.isRegisteredSymbol||function(t){try{return void 0!==u(c(t))}catch(t){return!1}}},iqlB:function(t,r,n){"use strict";for(var e=n("1lkh"),o=n("mIMY"),i=n("zhhU"),u=n("yXj3"),c=n("A2Ma"),s=o("Symbol"),a=s.isWellKnownSymbol,f=o("Object","getOwnPropertyNames"),p=i(s.prototype.valueOf),v=e("wks"),l=0,y=f(s),h=y.length;l<h;l++)try{var b=y[l];u(s[b])&&c(b)}catch(t){}t.exports=function(t){if(a&&a(t))return!0;try{for(var r=p(t),n=0,e=f(v),o=e.length;n<o;n++)if(v[e[n]]==r)return!0}catch(t){}return!1}},"4LQx":function(t,r,n){"use strict";var e=n("jGix");t.exports=e&&!!Symbol.for&&!!Symbol.keyFor},RQhY:function(t,r,n){"use strict";var e=n("x9K+"),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},pCEo:function(t,r,n){"use strict";var e=n("Y4yM"),o=n("GHVm");t.exports=function(t){return e(o(t))}},"x9K+":function(t,r,n){"use strict";var e=n("VJVo");t.exports=function(t){var r=+t;return r!=r||0===r?0:e(r)}},ZyXh:function(t,r,n){"use strict";var e=n("x9K+"),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},"T/97":function(t,r,n){"use strict";var e=n("GHVm"),o=Object;t.exports=function(t){return o(e(t))}},cWgI:function(t,r,n){"use strict";var e=n("cQZY"),o=n("39uu"),i=n("yXj3"),u=n("+Lan"),c=n("o/WT"),s=n("A2Ma"),a=TypeError,f=s("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var n,s=u(t,f);if(s){if(void 0===r&&(r="default"),n=e(s,t,r),!o(n)||i(n))return n;throw a("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},LHUf:function(t,r,n){"use strict";var e=n("cWgI"),o=n("yXj3");t.exports=function(t){var r=e(t,"string");return o(r)?r:r+""}},"1jut":function(t,r,n){"use strict";var e={};e[n("A2Ma")("toStringTag")]="z",t.exports="[object z]"===String(e)},jBKu:function(t,r,n){"use strict";var e=n("j5XY"),o=String;t.exports=function(t){if("Symbol"===e(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},"EwF+":function(t){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},PoCt:function(t,r,n){"use strict";var e=n("zhhU"),o=0,i=Math.random(),u=e(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},YtAO:function(t,r,n){"use strict";var e=n("jGix");t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},OUCS:function(t,r,n){"use strict";var e=n("wbIY"),o=n("Bvq2");t.exports=e&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},zOmE:function(t,r,n){"use strict";var e=n("OsYe"),o=n("+y2l"),i=e.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},"+UpH":function(t,r,n){"use strict";var e=n("dktu"),o=n("Dm96"),i=n("vuoM"),u=n("QYBB").f;t.exports=function(t){var r=e.Symbol||(e.Symbol={});o(r,t)||u(r,t,{value:i.f(t)})}},vuoM:function(t,r,n){"use strict";var e=n("A2Ma");r.f=e},A2Ma:function(t,r,n){"use strict";var e=n("OsYe"),o=n("1lkh"),i=n("Dm96"),u=n("PoCt"),c=n("jGix"),s=n("YtAO"),a=e.Symbol,f=o("wks"),p=s?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(f,t)||(f[t]=c&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},"/JNE":function(t,r,n){"use strict";var e=n("pevS"),o=n("Bvq2"),i=n("YiBS"),u=n("39uu"),c=n("T/97"),s=n("x08Q"),a=n("PiPD"),f=n("bBVJ"),p=n("Q0Rw"),v=n("nJYk"),l=n("A2Ma"),y=n("SqY4"),h=l("isConcatSpreadable"),b=y>=51||!o((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),m=function(t){if(!u(t))return!1;var r=t[h];return void 0!==r?!!r:i(t)};e({target:"Array",proto:!0,arity:1,forced:!b||!v("concat")},{concat:function(t){var r,n,e,o,i,u=c(this),v=p(u,0),l=0;for(r=-1,e=arguments.length;r<e;r++)if(m(i=-1===r?u:arguments[r]))for(o=s(i),a(l+o),n=0;n<o;n++,l++)n in i&&f(v,l,i[n]);else a(l+1),f(v,l++,i);return v.length=l,v}})},kQON:function(t,r,n){"use strict";var e=n("pCEo"),o=n("xE4W"),i=n("dGO/"),u=n("L1rz"),c=n("QYBB").f,s=n("t6hZ"),a=n("3bWX"),f=n("cEKj"),p=n("wbIY"),v="Array Iterator",l=u.set,y=u.getterFor(v);t.exports=s(Array,"Array",(function(t,r){l(this,{type:v,target:e(t),index:0,kind:r})}),(function(){var t=y(this),r=t.target,n=t.kind,e=t.index++;if(!r||e>=r.length)return t.target=void 0,a(void 0,!0);switch(n){case"keys":return a(e,!1);case"values":return a(r[e],!1)}return a([e,r[e]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&p&&"values"!==h.name)try{c(h,"name",{value:"values"})}catch(t){}},cV27:function(){},Ibh0:function(t,r,n){"use strict";var e=n("pevS"),o=n("6dl6");e({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},AFTl:function(t,r,n){"use strict";var e=n("pevS"),o=n("mIMY"),i=n("oLk2"),u=n("cQZY"),c=n("zhhU"),s=n("Bvq2"),a=n("+y2l"),f=n("yXj3"),p=n("61Qb"),v=n("DKiG"),l=n("jGix"),y=String,h=o("JSON","stringify"),b=c(/./.exec),m=c("".charAt),d=c("".charCodeAt),g=c("".replace),x=c(1..toString),S=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,j=!l||s((function(){var t=o("Symbol")("stringify detection");return"[null]"!==h([t])||"{}"!==h({a:t})||"{}"!==h(Object(t))})),Y=s((function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")})),P=function(t,r){var n=p(arguments),e=v(r);if(a(e)||void 0!==t&&!f(t))return n[1]=function(t,r){if(a(e)&&(r=u(e,this,y(t),r)),!f(r))return r},i(h,null,n)},A=function(t,r,n){var e=m(n,r-1),o=m(n,r+1);return b(O,t)&&!b(w,o)||b(w,t)&&!b(O,e)?"\\u"+x(d(t,0),16):t};h&&e({target:"JSON",stat:!0,arity:3,forced:j||Y},{stringify:function(t,r,n){var e=p(arguments),o=i(j?P:h,null,e);return Y&&"string"==typeof o?g(o,S,A):o}})},Ui3k:function(t,r,n){"use strict";var e=n("OsYe");n("KHTo")(e.JSON,"JSON",!0)},gXaK:function(){},VdC8:function(t,r,n){"use strict";var e=n("pevS"),o=n("9E9t");e({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},Pkdo:function(t,r,n){"use strict";var e=n("pevS"),o=n("wbIY"),i=n("QYBB").f;e({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},g3YB:function(t,r,n){"use strict";var e=n("pevS"),o=n("jGix"),i=n("Bvq2"),u=n("ogVW"),c=n("T/97");e({target:"Object",stat:!0,forced:!o||i((function(){u.f(1)}))},{getOwnPropertySymbols:function(t){var r=u.f;return r?r(c(t)):[]}})},b4mI:function(){},"0axM":function(){},Pkew:function(t,r,n){"use strict";var e=n("y9AQ").charAt,o=n("jBKu"),i=n("L1rz"),u=n("t6hZ"),c=n("3bWX"),s="String Iterator",a=i.set,f=i.getterFor(s);u(String,"String",(function(t){a(this,{type:s,string:o(t),index:0})}),(function(){var t,r=f(this),n=r.string,o=r.index;return o>=n.length?c(void 0,!0):(t=e(n,o),r.index+=t.length,c(t,!1))}))},"42Pb":function(t,r,n){"use strict";n("+UpH")("asyncIterator")},D3w7:function(t,r,n){"use strict";var e=n("pevS"),o=n("OsYe"),i=n("cQZY"),u=n("zhhU"),c=n("cEKj"),s=n("wbIY"),a=n("jGix"),f=n("Bvq2"),p=n("Dm96"),v=n("Q3sF"),l=n("b42z"),y=n("pCEo"),h=n("LHUf"),b=n("jBKu"),m=n("LGyv"),d=n("SJYm"),g=n("oBZR"),x=n("DPDV"),S=n("jhEP"),O=n("ogVW"),w=n("RLqH"),j=n("QYBB"),Y=n("wjB2"),P=n("cEPT"),A=n("/b46"),E=n("IpbS"),I=n("1lkh"),U=n("su3n"),T=n("bpon"),B=n("PoCt"),M=n("A2Ma"),k=n("vuoM"),L=n("+UpH"),D=n("vDFq"),Q=n("KHTo"),C=n("L1rz"),H=n("3uAa").forEach,F=U("hidden"),z="Symbol",G="prototype",R=C.set,q=C.getterFor(z),J=Object[G],N=o.Symbol,V=N&&N[G],K=o.TypeError,W=o.QObject,Z=w.f,X=j.f,_=S.f,$=P.f,tt=u([].push),rt=I("symbols"),nt=I("op-symbols"),et=I("wks"),ot=!W||!W[G]||!W[G].findChild,it=s&&f((function(){return 7!==d(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,r,n){var e=Z(J,r);e&&delete J[r],X(t,r,n),e&&t!==J&&X(J,r,e)}:X,ut=function(t,r){var n=rt[t]=d(V);return R(n,{type:z,tag:t,description:r}),s||(n.description=r),n},ct=function(t,r,n){t===J&&ct(nt,r,n),l(t);var e=h(r);return l(n),p(rt,e)?(n.enumerable?(p(t,F)&&t[F][e]&&(t[F][e]=!1),n=d(n,{enumerable:m(0,!1)})):(p(t,F)||X(t,F,m(1,{})),t[F][e]=!0),it(t,e,n)):X(t,e,n)},st=function(t,r){l(t);var n=y(r),e=g(n).concat(vt(n));return H(e,(function(r){s&&!i(at,n,r)||ct(t,r,n[r])})),t},at=function(t){var r=h(t),n=i($,this,r);return!(this===J&&p(rt,r)&&!p(nt,r))&&(!(n||!p(this,r)||!p(rt,r)||p(this,F)&&this[F][r])||n)},ft=function(t,r){var n=y(t),e=h(r);if(n!==J||!p(rt,e)||p(nt,e)){var o=Z(n,e);return!o||!p(rt,e)||p(n,F)&&n[F][e]||(o.enumerable=!0),o}},pt=function(t){var r=_(y(t)),n=[];return H(r,(function(t){p(rt,t)||p(T,t)||tt(n,t)})),n},vt=function(t){var r=t===J,n=_(r?nt:y(t)),e=[];return H(n,(function(t){!p(rt,t)||r&&!p(J,t)||tt(e,rt[t])})),e};a||(N=function(){if(v(V,this))throw K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,r=B(t),n=function(t){this===J&&i(n,nt,t),p(this,F)&&p(this[F],r)&&(this[F][r]=!1),it(this,r,m(1,t))};return s&&ot&&it(J,r,{configurable:!0,set:n}),ut(r,t)},A(V=N[G],"toString",(function(){return q(this).tag})),A(N,"withoutSetter",(function(t){return ut(B(t),t)})),P.f=at,j.f=ct,Y.f=st,w.f=ft,x.f=S.f=pt,O.f=vt,k.f=function(t){return ut(M(t),t)},s&&(E(V,"description",{configurable:!0,get:function(){return q(this).description}}),c||A(J,"propertyIsEnumerable",at,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:N}),H(g(et),(function(t){L(t)})),e({target:z,stat:!0,forced:!a},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),e({target:"Object",stat:!0,forced:!a,sham:!s},{create:function(t,r){return void 0===r?d(t):st(d(t),r)},defineProperty:ct,defineProperties:st,getOwnPropertyDescriptor:ft}),e({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:pt}),D(),Q(N,z),T[F]=!0},ZNvi:function(){},EfIp:function(t,r,n){"use strict";var e=n("pevS"),o=n("mIMY"),i=n("Dm96"),u=n("jBKu"),c=n("1lkh"),s=n("4LQx"),a=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!s},{for:function(t){var r=u(t);if(i(a,r))return a[r];var n=o("Symbol")(r);return a[r]=n,f[n]=r,n}})},IqmU:function(t,r,n){"use strict";n("+UpH")("hasInstance")},kIAf:function(t,r,n){"use strict";n("+UpH")("isConcatSpreadable")},Dmep:function(t,r,n){"use strict";n("+UpH")("iterator")},i3tW:function(t,r,n){"use strict";n("D3w7"),n("EfIp"),n("nIuI"),n("AFTl"),n("g3YB")},nIuI:function(t,r,n){"use strict";var e=n("pevS"),o=n("Dm96"),i=n("yXj3"),u=n("EwF+"),c=n("1lkh"),s=n("4LQx"),a=c("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!i(t))throw TypeError(u(t)+" is not a symbol");if(o(a,t))return a[t]}})},"58wy":function(t,r,n){"use strict";n("+UpH")("matchAll")},"5pn2":function(t,r,n){"use strict";n("+UpH")("match")},LoXx:function(t,r,n){"use strict";n("+UpH")("replace")},mA47:function(t,r,n){"use strict";n("+UpH")("search")},msS4:function(t,r,n){"use strict";n("+UpH")("species")},J04u:function(t,r,n){"use strict";n("+UpH")("split")},jQUo:function(t,r,n){"use strict";var e=n("+UpH"),o=n("vDFq");e("toPrimitive"),o()},"7wkN":function(t,r,n){"use strict";var e=n("mIMY"),o=n("+UpH"),i=n("KHTo");o("toStringTag"),i(e("Symbol"),"Symbol")},qhvP:function(t,r,n){"use strict";n("+UpH")("unscopables")},WvWY:function(t,r,n){"use strict";var e=n("A2Ma"),o=n("QYBB").f,i=e("metadata"),u=Function.prototype;void 0===u[i]&&o(u,i,{value:null})},DIJN:function(t,r,n){"use strict";n("+UpH")("asyncDispose")},cgHO:function(t,r,n){"use strict";n("+UpH")("dispose")},JhGO:function(t,r,n){"use strict";n("pevS")({target:"Symbol",stat:!0},{isRegisteredSymbol:n("lpHU")})},Xsxu:function(t,r,n){"use strict";n("pevS")({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:n("lpHU")})},"8t4j":function(t,r,n){"use strict";n("pevS")({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:n("iqlB")})},NpZP:function(t,r,n){"use strict";n("pevS")({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:n("iqlB")})},D45G:function(t,r,n){"use strict";n("+UpH")("matcher")},"/B0s":function(t,r,n){"use strict";n("+UpH")("metadataKey")},"v/w9":function(t,r,n){"use strict";n("+UpH")("metadata")},dP0U:function(t,r,n){"use strict";n("+UpH")("observable")},Jm8n:function(t,r,n){"use strict";n("+UpH")("patternMatch")},mAJt:function(t,r,n){"use strict";n("+UpH")("replaceAll")},UUWy:function(t,r,n){"use strict";n("kQON");var e=n("eKLf"),o=n("OsYe"),i=n("j5XY"),u=n("AnMC"),c=n("dGO/"),s=n("A2Ma")("toStringTag");for(var a in e){var f=o[a],p=f&&f.prototype;p&&i(p)!==s&&u(p,s,a),c[a]=c.Array}},tbMQ:function(t,r,n){"use strict";var e=n("jP3w");t.exports=e},kE3c:function(t,r,n){"use strict";var e=n("uC8H");t.exports=e},DkPT:function(t,r,n){"use strict";var e=n("o4zr");t.exports=e},"q/LL":function(t,r,n){"use strict";var e=n("HCkw");n("UUWy"),t.exports=e},HlJs:function(t,r,n){"use strict";var e=n("I2R1");n("UUWy"),t.exports=e},GQnA:function(t,r,n){"use strict";var e=n("pJNU");t.exports=e},kvau:function(t){"use strict";t.exports=function(t,r,n,e,o,i,u,c){if(!t){var s;if(void 0===r)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=[n,e,o,i,u,c],f=0;(s=new Error(r.replace(/%s/g,(function(){return a[f++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},wVK4:function(t,r,n){"use strict";n.d(r,{Z:function(){return s}});var e=n("YRjr"),o=n("X2ar"),i=n("RZi0");function u(t){return u="function"==typeof o&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},u(t)}var c=n("nq0W");function s(t,r,n){return(r=function(t){var r=function(t,r){if("object"!==u(t)||null===t)return t;var n=t[c];if(void 0!==n){var e=n.call(t,"string");if("object"!==u(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===u(r)?r:String(r)}(r))in t?e(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}},Z1CE:function(t,r,n){"use strict";n.d(r,{Z:function(){return i}});var e=n("73iN"),o=n("oKvO");function i(){var t;return i=e?o(t=e).call(t):function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},i.apply(this,arguments)}},TZkK:function(t,r,n){"use strict";n.d(r,{Z:function(){return e}});var e=function(t,r,n){var e=null,o=null,i=n&&n.leading,u=n&&n.trailing;null==i&&(i=!0),null==u&&(u=!i),1==i&&(u=!1);var c=function(){e&&(clearTimeout(e),e=null)},s=function(){var n=i&&!e,c=this,s=arguments;if(o=function(){return t.apply(c,s)},e||(e=setTimeout((function(){if(e=null,u)return o()}),r)),n)return n=!1,o()};return s.cancel=c,s.flush=function(){var t=o;c(),t&&t()},s}}}]);
"use strict";(self.webpackChunkrpldy=self.webpackChunkrpldy||[]).push([[429],{"3lvE":function(n){n.exports=function(n,t,r,o,e,i,u,c){if(!n){var f;if(void 0===t)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=[r,o,e,i,u,c],p=0;(f=new Error(t.replace(/%s/g,(function(){return a[p++]})))).name="Invariant Violation"}throw f.framesToPop=1,f}}},AsjC:function(n,t,r){var o=r("Xszn");n.exports=o},Znhb:function(n,t,r){var o=r("3Jz1");n.exports=o},"20Mc":function(n,t,r){r("4dZs");var o=r("vu1T");n.exports=o("Function","bind")},S7qW:function(n,t,r){var o=r("Y26l"),e=r("20Mc"),i=Function.prototype;n.exports=function(n){var t=n.bind;return n===i||o(i,n)&&t===i.bind?e:t}},"2UXp":function(n,t,r){r("7tyb");var o=r("gEp2");n.exports=o.Object.assign},SnKa:function(n,t,r){var o=r("AsjC");n.exports=o},mBmK:function(n,t,r){var o=r("Znhb");n.exports=o},"/aN3":function(n,t,r){var o=r("uD+r"),e=r("68+w"),i=TypeError;n.exports=function(n){if(o(n))return n;throw new i(e(n)+" is not a function")}},"8iiG":function(n,t,r){var o=r("84bL"),e=String,i=TypeError;n.exports=function(n){if(o(n))return n;throw new i(e(n)+" is not an object")}},"2lXw":function(n,t,r){var o=r("2U2P"),e=r("qevP"),i=r("tcQZ"),u=function(n){return function(t,r,u){var c,f=o(t),a=i(f),p=e(u,a);if(n&&r!=r){for(;a>p;)if((c=f[p++])!=c)return!0}else for(;a>p;p++)if((n||p in f)&&f[p]===r)return n||p||0;return!n&&-1}};n.exports={includes:u(!0),indexOf:u(!1)}},hrNG:function(n,t,r){var o=r("vmlN");n.exports=o([].slice)},wbUL:function(n,t,r){var o=r("vmlN"),e=o({}.toString),i=o("".slice);n.exports=function(n){return i(e(n),8,-1)}},AxWQ:function(n,t,r){var o=r("CmVZ"),e=r("t/W2"),i=r("nmPA");n.exports=o?function(n,t,r){return e.f(n,t,i(1,r))}:function(n,t,r){return n[t]=r,n}},nmPA:function(n){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},Fm7h:function(n,t,r){var o=r("HQDs"),e=Object.defineProperty;n.exports=function(n,t){try{e(o,n,{value:t,configurable:!0,writable:!0})}catch(r){o[n]=t}return t}},CmVZ:function(n,t,r){var o=r("rXRp");n.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},xMEx:function(n){var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;n.exports={all:t,IS_HTMLDDA:r}},IfuI:function(n,t,r){var o=r("HQDs"),e=r("84bL"),i=o.document,u=e(i)&&e(i.createElement);n.exports=function(n){return u?i.createElement(n):{}}},yls0:function(n){n.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},Veyb:function(n,t,r){var o,e,i=r("HQDs"),u=r("yls0"),c=i.process,f=i.Deno,a=c&&c.versions||f&&f.version,p=a&&a.v8;p&&(e=(o=p.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!e&&u&&(!(o=u.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=u.match(/Chrome\/(\d+)/))&&(e=+o[1]),n.exports=e},"6R1v":function(n){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},R7VN:function(n,t,r){var o=r("HQDs"),e=r("DQHj"),i=r("udMC"),u=r("uD+r"),c=r("1rHI").f,f=r("j8gO"),a=r("gEp2"),p=r("At98"),s=r("AxWQ"),v=r("fVfD"),l=function(n){var t=function(r,o,i){if(this instanceof t){switch(arguments.length){case 0:return new n;case 1:return new n(r);case 2:return new n(r,o)}return new n(r,o,i)}return e(n,this,arguments)};return t.prototype=n.prototype,t};n.exports=function(n,t){var r,e,b,y,h,m,x,g,d,w=n.target,j=n.global,O=n.stat,S=n.proto,D=j?o:O?o[w]:(o[w]||{}).prototype,P=j?a:a[w]||s(a,w,{})[w],E=P.prototype;for(y in t)e=!(r=f(j?y:w+(O?".":"#")+y,n.forced))&&D&&v(D,y),m=P[y],e&&(x=n.dontCallGetSet?(d=c(D,y))&&d.value:D[y]),h=e&&x?x:t[y],e&&typeof m==typeof h||(g=n.bind&&e?p(h,o):n.wrap&&e?l(h):S&&u(h)?i(h):h,(n.sham||h&&h.sham||m&&m.sham)&&s(g,"sham",!0),s(P,y,g),S&&(v(a,b=w+"Prototype")||s(a,b,{}),s(a[b],y,h),n.real&&E&&(r||!E[y])&&s(E,y,h)))}},rXRp:function(n){n.exports=function(n){try{return!!n()}catch(n){return!0}}},DQHj:function(n,t,r){var o=r("Vn4v"),e=Function.prototype,i=e.apply,u=e.call;n.exports="object"==typeof Reflect&&Reflect.apply||(o?u.bind(i):function(){return u.apply(i,arguments)})},At98:function(n,t,r){var o=r("udMC"),e=r("/aN3"),i=r("Vn4v"),u=o(o.bind);n.exports=function(n,t){return e(n),void 0===t?n:i?u(n,t):function(){return n.apply(t,arguments)}}},Vn4v:function(n,t,r){var o=r("rXRp");n.exports=!o((function(){var n=function(){}.bind();return"function"!=typeof n||n.hasOwnProperty("prototype")}))},"0ang":function(n,t,r){var o=r("vmlN"),e=r("/aN3"),i=r("84bL"),u=r("fVfD"),c=r("hrNG"),f=r("Vn4v"),a=Function,p=o([].concat),s=o([].join),v={};n.exports=f?a.bind:function(n){var t=e(this),r=t.prototype,o=c(arguments,1),f=function(){var r=p(o,c(arguments));return this instanceof f?function(n,t,r){if(!u(v,t)){for(var o=[],e=0;e<t;e++)o[e]="a["+e+"]";v[t]=a("C,a","return new C("+s(o,",")+")")}return v[t](n,r)}(t,r.length,r):t.apply(n,r)};return i(r)&&(f.prototype=r),f}},"/Lv1":function(n,t,r){var o=r("Vn4v"),e=Function.prototype.call;n.exports=o?e.bind(e):function(){return e.apply(e,arguments)}},udMC:function(n,t,r){var o=r("wbUL"),e=r("vmlN");n.exports=function(n){if("Function"===o(n))return e(n)}},vmlN:function(n,t,r){var o=r("Vn4v"),e=Function.prototype,i=e.call,u=o&&e.bind.bind(i,i);n.exports=o?u:function(n){return function(){return i.apply(n,arguments)}}},vu1T:function(n,t,r){var o=r("HQDs"),e=r("gEp2");n.exports=function(n,t){var r=e[n+"Prototype"];return r&&r[t]||o[n].prototype[t]}},"2qDG":function(n,t,r){var o=r("gEp2"),e=r("HQDs"),i=r("uD+r"),u=function(n){return i(n)?n:void 0};n.exports=function(n,t){return arguments.length<2?u(o[n])||u(e[n]):o[n]&&o[n][t]||e[n]&&e[n][t]}},"kF/S":function(n,t,r){var o=r("/aN3"),e=r("dWHf");n.exports=function(n,t){var r=n[t];return e(r)?void 0:o(r)}},HQDs:function(n,t,r){var o=function(n){return n&&n.Math===Math&&n};n.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},fVfD:function(n,t,r){var o=r("vmlN"),e=r("BN45"),i=o({}.hasOwnProperty);n.exports=Object.hasOwn||function(n,t){return i(e(n),t)}},CPyW:function(n){n.exports={}},rtnS:function(n,t,r){var o=r("CmVZ"),e=r("rXRp"),i=r("IfuI");n.exports=!o&&!e((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},tFNy:function(n,t,r){var o=r("vmlN"),e=r("rXRp"),i=r("wbUL"),u=Object,c=o("".split);n.exports=e((function(){return!u("z").propertyIsEnumerable(0)}))?function(n){return"String"===i(n)?c(n,""):u(n)}:u},"uD+r":function(n,t,r){var o=r("xMEx"),e=o.all;n.exports=o.IS_HTMLDDA?function(n){return"function"==typeof n||n===e}:function(n){return"function"==typeof n}},j8gO:function(n,t,r){var o=r("rXRp"),e=r("uD+r"),i=/#|\.prototype\./,u=function(n,t){var r=f[c(n)];return r===p||r!==a&&(e(t)?o(t):!!t)},c=u.normalize=function(n){return String(n).replace(i,".").toLowerCase()},f=u.data={},a=u.NATIVE="N",p=u.POLYFILL="P";n.exports=u},dWHf:function(n){n.exports=function(n){return null==n}},"84bL":function(n,t,r){var o=r("uD+r"),e=r("xMEx"),i=e.all;n.exports=e.IS_HTMLDDA?function(n){return"object"==typeof n?null!==n:o(n)||n===i}:function(n){return"object"==typeof n?null!==n:o(n)}},OoKW:function(n){n.exports=!0},xkta:function(n,t,r){var o=r("2qDG"),e=r("uD+r"),i=r("Y26l"),u=r("UZ3w"),c=Object;n.exports=u?function(n){return"symbol"==typeof n}:function(n){var t=o("Symbol");return e(t)&&i(t.prototype,c(n))}},tcQZ:function(n,t,r){var o=r("AnQu");n.exports=function(n){return o(n.length)}},DZt3:function(n){var t=Math.ceil,r=Math.floor;n.exports=Math.trunc||function(n){var o=+n;return(o>0?r:t)(o)}},gBsJ:function(n,t,r){var o=r("CmVZ"),e=r("vmlN"),i=r("/Lv1"),u=r("rXRp"),c=r("oCCs"),f=r("sJuJ"),a=r("hgSD"),p=r("BN45"),s=r("tFNy"),v=Object.assign,l=Object.defineProperty,b=e([].concat);n.exports=!v||u((function(){if(o&&1!==v({b:1},v(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var n={},t={},r=Symbol("assign detection"),e="abcdefghijklmnopqrst";return n[r]=7,e.split("").forEach((function(n){t[n]=n})),7!==v({},n)[r]||c(v({},t)).join("")!==e}))?function(n,t){for(var r=p(n),e=arguments.length,u=1,v=f.f,l=a.f;e>u;)for(var y,h=s(arguments[u++]),m=v?b(c(h),v(h)):c(h),x=m.length,g=0;x>g;)y=m[g++],o&&!i(l,h,y)||(r[y]=h[y]);return r}:v},"t/W2":function(n,t,r){var o=r("CmVZ"),e=r("rtnS"),i=r("6kKh"),u=r("8iiG"),c=r("iEnu"),f=TypeError,a=Object.defineProperty,p=Object.getOwnPropertyDescriptor,s="enumerable",v="configurable",l="writable";t.f=o?i?function(n,t,r){if(u(n),t=c(t),u(r),"function"==typeof n&&"prototype"===t&&"value"in r&&l in r&&!r[l]){var o=p(n,t);o&&o[l]&&(n[t]=r.value,r={configurable:v in r?r[v]:o[v],enumerable:s in r?r[s]:o[s],writable:!1})}return a(n,t,r)}:a:function(n,t,r){if(u(n),t=c(t),u(r),e)try{return a(n,t,r)}catch(n){}if("get"in r||"set"in r)throw new f("Accessors not supported");return"value"in r&&(n[t]=r.value),n}},"1rHI":function(n,t,r){var o=r("CmVZ"),e=r("/Lv1"),i=r("hgSD"),u=r("nmPA"),c=r("2U2P"),f=r("iEnu"),a=r("fVfD"),p=r("rtnS"),s=Object.getOwnPropertyDescriptor;t.f=o?s:function(n,t){if(n=c(n),t=f(t),p)try{return s(n,t)}catch(n){}if(a(n,t))return u(!e(i.f,n,t),n[t])}},sJuJ:function(n,t){t.f=Object.getOwnPropertySymbols},Y26l:function(n,t,r){var o=r("vmlN");n.exports=o({}.isPrototypeOf)},mMm3:function(n,t,r){var o=r("vmlN"),e=r("fVfD"),i=r("2U2P"),u=r("2lXw").indexOf,c=r("CPyW"),f=o([].push);n.exports=function(n,t){var r,o=i(n),a=0,p=[];for(r in o)!e(c,r)&&e(o,r)&&f(p,r);for(;t.length>a;)e(o,r=t[a++])&&(~u(p,r)||f(p,r));return p}},oCCs:function(n,t,r){var o=r("mMm3"),e=r("6R1v");n.exports=Object.keys||function(n){return o(n,e)}},hgSD:function(n,t){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,e=o&&!r.call({1:2},1);t.f=e?function(n){var t=o(this,n);return!!t&&t.enumerable}:r},hFHw:function(n,t,r){var o=r("/Lv1"),e=r("uD+r"),i=r("84bL"),u=TypeError;n.exports=function(n,t){var r,c;if("string"===t&&e(r=n.toString)&&!i(c=o(r,n)))return c;if(e(r=n.valueOf)&&!i(c=o(r,n)))return c;if("string"!==t&&e(r=n.toString)&&!i(c=o(r,n)))return c;throw new u("Can't convert object to primitive value")}},gEp2:function(n){n.exports={}},ASE0:function(n,t,r){var o=r("dWHf"),e=TypeError;n.exports=function(n){if(o(n))throw new e("Can't call method on "+n);return n}},Jgvz:function(n,t,r){var o=r("HQDs"),e=r("Fm7h"),i="__core-js_shared__",u=o[i]||e(i,{});n.exports=u},hv96:function(n,t,r){var o=r("OoKW"),e=r("Jgvz");(n.exports=function(n,t){return e[n]||(e[n]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.1",mode:o?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.1/LICENSE",source:"https://github.com/zloirock/core-js"})},iayY:function(n,t,r){var o=r("Veyb"),e=r("rXRp"),i=r("HQDs").String;n.exports=!!Object.getOwnPropertySymbols&&!e((function(){var n=Symbol("symbol detection");return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},qevP:function(n,t,r){var o=r("VZk2"),e=Math.max,i=Math.min;n.exports=function(n,t){var r=o(n);return r<0?e(r+t,0):i(r,t)}},"2U2P":function(n,t,r){var o=r("tFNy"),e=r("ASE0");n.exports=function(n){return o(e(n))}},VZk2:function(n,t,r){var o=r("DZt3");n.exports=function(n){var t=+n;return t!=t||0===t?0:o(t)}},AnQu:function(n,t,r){var o=r("VZk2"),e=Math.min;n.exports=function(n){return n>0?e(o(n),9007199254740991):0}},BN45:function(n,t,r){var o=r("ASE0"),e=Object;n.exports=function(n){return e(o(n))}},GmOJ:function(n,t,r){var o=r("/Lv1"),e=r("84bL"),i=r("xkta"),u=r("kF/S"),c=r("hFHw"),f=r("IP0P"),a=TypeError,p=f("toPrimitive");n.exports=function(n,t){if(!e(n)||i(n))return n;var r,f=u(n,p);if(f){if(void 0===t&&(t="default"),r=o(f,n,t),!e(r)||i(r))return r;throw new a("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(n,t)}},iEnu:function(n,t,r){var o=r("GmOJ"),e=r("xkta");n.exports=function(n){var t=o(n,"string");return e(t)?t:t+""}},"68+w":function(n){var t=String;n.exports=function(n){try{return t(n)}catch(n){return"Object"}}},eTJv:function(n,t,r){var o=r("vmlN"),e=0,i=Math.random(),u=o(1..toString);n.exports=function(n){return"Symbol("+(void 0===n?"":n)+")_"+u(++e+i,36)}},UZ3w:function(n,t,r){var o=r("iayY");n.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"6kKh":function(n,t,r){var o=r("CmVZ"),e=r("rXRp");n.exports=o&&e((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},IP0P:function(n,t,r){var o=r("HQDs"),e=r("hv96"),i=r("fVfD"),u=r("eTJv"),c=r("iayY"),f=r("UZ3w"),a=o.Symbol,p=e("wks"),s=f?a.for||a:a&&a.withoutSetter||u;n.exports=function(n){return i(p,n)||(p[n]=c&&i(a,n)?a[n]:s("Symbol."+n)),p[n]}},"4dZs":function(n,t,r){var o=r("R7VN"),e=r("0ang");o({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e})},"7tyb":function(n,t,r){var o=r("R7VN"),e=r("gBsJ");o({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})},Xszn:function(n,t,r){var o=r("S7qW");n.exports=o},"3Jz1":function(n,t,r){var o=r("2UXp");n.exports=o},x6p9:function(n,t,r){r.d(t,{Z:function(){return i}});var o=r("mBmK"),e=r("SnKa");function i(){var n;return i=o?e(n=o).call(n):function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},i.apply(this,arguments)}},"6dsl":function(n,t,r){r.d(t,{Z:function(){return o}});var o=function(n,t,r){var o=null,e=null,i=r&&r.leading,u=r&&r.trailing;null==i&&(i=!0),null==u&&(u=!i),1==i&&(u=!1);var c=function(){o&&(clearTimeout(o),o=null)},f=function(){var r=i&&!o,c=this,f=arguments;if(e=function(){return n.apply(c,f)},o||(o=setTimeout((function(){if(o=null,u)return e()}),t)),r)return r=!1,e()};return f.cancel=c,f.flush=function(){var n=e;c(),n&&n()},f}}}]);
/*! For license information please see rpldy-ui-core-chunked.umd.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.rpldy=t(require("react"),require("react-dom")):e.rpldy=t(e.react,e["react-dom"])}(self,(function(e,t){return function(){var n,r={SKjz:function(e,t,n){"use strict";n.d(t,{uZ:function(){return v},ZP:function(){return E}});var r=n("E88u"),o=(0,r.ZV)({allowRegisterNonExistent:!0,canAddEvents:!0,canRemoveEvents:!0,collectStats:!1});const u=Symbol.for("__le__"),i=Symbol.for("__le__pack__"),a=e=>e?e[u]:null,s=e=>{const t=a(e);if(!t)throw new Error("Didnt find LE internal object. Something very bad happened!");return t},c=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];((e,t)=>{if(!(0,r.mf)(e))throw new Error("'cb' is not a valid function")})(n);const u=s(e);if(!u.options.allowRegisterNonExistent&&!~u.events.indexOf(t))throw new Error(`Cannot register for event ${t.toString()} that wasn't already defined (allowRegisterNonExistent = false)`);const i=u.registry[t]||[];return i.find((e=>e.cb===n))||(i.push({name:t,cb:n,once:o}),u.registry[t]=i),()=>b.call(e,t,n)},l=(e,t)=>{const n=s(e).registry;return t?n[t]?n[t].slice():[]:Object.values(n).flat()},d={on:function(e,t){return c(this,e,t)},once:function(e,t){return c(this,e,t,!0)},off:b,getEvents:function(){return s(this).events.slice()}},f={trigger:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const u=l(this,e);let a;if(u.length){var s;let t;1===n.length&&!0===(null===(s=n[0])||void 0===s?void 0:s[i])&&(t=n[0].resolve()),a=u.map((r=>{let o;return r.once&&g(this,e,r.cb),o=t?r.cb(...t):n.length?1===n.length?r.cb(n[0]):2===n.length?r.cb(n[0],n[1]):3===n.length?r.cb(n[0],n[1],n[2]):r.cb(...n):r.cb(),o})).filter((e=>!(void 0===e))).map((e=>(0,r.tI)(e)?e:Promise.resolve(e)))}return a&&(a.length?a:void 0)},addEvent:function(e){const t=s(this);if(!t.options.canAddEvents)throw new Error("Cannot add new events (canAddEvents = false)");if(~t.events.indexOf(e))throw new Error(`Event '${e}' already defined`);t.events.push(e)},removeEvent:function(e){const t=s(this);if(!t.options.canRemoveEvents)throw new Error("Cannot remove events (canRemoveEvents = false)");{const n=t.events.indexOf(e);t.events.splice(n,1)}},hasEvent:function(e){return!!~s(this).events.indexOf(e)},hasEventRegistrations:function(e){return!!l(this,e).length},assign:function(e){const t=s(this);return m(e,t.options,t.events,t.registry,t.stats),h(e)}},h=e=>Object.keys(f).reduce(((t,n)=>(t[n]=f[n].bind(e),t)),{target:e,...f}),p=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=s(e).registry;!r[t]||!n&&r[t].length||delete r[t]},g=(e,t,n)=>{const r=s(e).registry;r[t]&&(n?(r[t]=r[t].filter((e=>e.cb!==n)),p(e,t)):p(e,t,!0))};function b(e,t){g(this,e,t)}const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Object.defineProperties(e,{[u]:{value:Object.seal({registry:r,events:n,options:t,stats:o})},...Object.entries(d).reduce(((e,t)=>{let[n,r]=t;return e[n]={value:r},e}),{})})};var E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e||{},r={...o,...arguments.length>2?arguments[2]:void 0};return a(n)||m(n,r,t),h(n)},v=e=>{const t={resolve:()=>[].concat(e())};return Object.defineProperty(t,i,{value:!0,configurable:!1}),t}},Vmq3:function(e,t,n){"use strict";n.d(t,{PF:function(){return u},Ch:function(){return o},ZP:function(){return h},KZ:function(){return d},lW:function(){return f}});var r=n("E88u");const o="rpldy-sender";class u extends Error{constructor(e){super(`${e} didn't receive upload URL`),this.name="MissingUrlError"}}const i=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];"set"in e?e.set(t,...r):("delete"in e&&e.delete(t),e.append(t,...r))};const a=[200,201,202,203,204],s=(e,t,n,o,u)=>{let a;const s=null!=u&&u.getRequestData?u.getRequestData(e,n):((e,t)=>{let n;if(t.sendWithFormData)r.kg.debugLog(`uploady.sender: sending ${e.length} item(s) as form data`),n=((e,t)=>{const n=new FormData;return t.params&&Object.entries(t.params).forEach((e=>{let[r,o]=e;(t.formDataAllowUndefined||void 0!==o)&&i(n,r,o)})),((e,t,n)=>{const o=1===t.length;t.forEach(((t,u)=>{const a=o?n.paramName:(0,r.mf)(n.formatGroupParamName)?n.formatGroupParamName(u,n.paramName):`${n.paramName}[${u}]`;t.file?i(e,a,t.file,t.file.name):t.url&&i(e,a,t.url)}))})(n,e,t),n})(e,t);else{if(e.length>1)throw new Error(`XHR Sender - Request without form data can only contain 1 item. received ${e.length}`);const t=e[0];r.kg.debugLog(`uploady.sender: sending item ${t.id} as request body`),n=t.file||t.url}return n})(e,n),c=function(){let u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,c=arguments.length>2?arguments[2]:void 0;const l=(0,r.TS)({...(0,r.ei)(n,["method","headers","withCredentials"]),preSend:t=>{t.upload.onprogress=t=>{t.lengthComputable&&o&&o(t,e.slice())}}},c),d=(0,r.WY)(u,i,l);return a=d.xhr,d},l=null!=u&&u.preRequestHandler?u.preRequestHandler(c,e,t,n,o,u):c();return{url:t,count:e.length,pXhr:l,getXhr:()=>a,aborted:!1}},c=(e,t,n)=>{let r=e;const o=null==t?void 0:t["content-type"];if(n.forceJsonResponse||null!=o&&o.includes("json"))try{r=JSON.parse(e)}catch{}return r},l=(e,t)=>e.pXhr.then((e=>(r.kg.debugLog("uploady.sender: received upload response ",e),((e,t)=>{const n=t.isSuccessfulCall?t.isSuccessfulCall(e):a.includes(e.status);return(0,r.tI)(n)?n:Promise.resolve(n)})(e,t).then((n=>{var o,u;const i=n?r.FD.FINISHED:r.FD.ERROR,a=e.status,s=(0,r.k7)(e);return{status:a,state:i,response:{data:null!==(o=null===(u=t.formatServerResponse)||void 0===u?void 0:u.call(t,e.response,a,s))&&void 0!==o?o:c(e.response,s,t),headers:s}}}))))).catch((t=>{let n,o;return e.aborted?(n=r.FD.ABORTED,o="aborted"):(r.kg.debugLog("uploady.sender: upload failed: ",t),n=r.FD.ERROR,o=t),{error:!0,state:n,response:o,status:0}}));var d=e=>(t,n,i,a)=>{if(!n)throw new u(o);r.kg.debugLog("uploady.sender: sending file: ",{items:t,url:n,options:i});const c=s(t,n,i,a,e);return{request:l(c,i),abort:()=>(e=>{let t=!1;const{aborted:n,getXhr:o}=e,u=o();return!n&&u&&u.readyState&&4!==u.readyState&&(r.kg.debugLog(`uploady.sender: cancelling request with ${e.count} items to: ${e.url}`),u.abort(),e.aborted=!0,t=!0),t})(c),senderType:o}};const f=d();var h=f},E88u:function(e,t,n){"use strict";n.d(t,{FG:function(){return s},FD:function(){return c},d9:function(){return T},Yc:function(){return U},ZV:function(){return y},$e:function(){return H},D8:function(){return O},Ym:function(){return l},kG:function(){return u()},mf:function(){return m()},PO:function(){return A},yv:function(){return S()},tI:function(){return D},sQ:function(){return E},kg:function(){return r},TS:function(){return R},k7:function(){return $},ei:function(){return k},WY:function(){return q},nK:function(){return _},P2:function(){return i.Z},tq:function(){return g},sc:function(){return F}});var r={};n.r(r),n.d(r,{debugLog:function(){return p},isDebugOn:function(){return f},setDebug:function(){return h}});var o=n("kvau"),u=n.n(o),i=n("TZkK");const a="__rpldy-logger-debug__",s={PENDING:"pending",ADDED:"added",PROCESSING:"processing",UPLOADING:"uploading",CANCELLED:"cancelled",FINISHED:"finished",ABORTED:"aborted",ERROR:"error"},c={PENDING:"pending",ADDED:"added",UPLOADING:"uploading",CANCELLED:"cancelled",FINISHED:"finished",ERROR:"error",ABORTED:"aborted"};var l=()=>"object"==typeof window&&!!window.document;let d=null;const f=()=>("boolean"!=typeof d&&(d=l()&&("location"in window&&!!~window.location.search.indexOf("rpldy_debug=true")||!0===window[a])),!!d),h=e=>{l()&&(window[a]=e),d=!!e||null},p=function(){f()&&console.log(...arguments)};var g=function(e,t){const n=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new Promise(((n,o)=>{const u=e(t,...r);u&&u.length?Promise.all(u).catch(o).then((e=>e&&n(!!~e.findIndex((e=>!1===e))))):n(!1)}))};for(var r=arguments.length,o=new Array(r>2?r-2:0),u=2;u<r;u++)o[u-2]=arguments[u];return t?n(t,...o):n},b=n("wfJ/"),m=n.n(b),E=(e,t,n)=>{let r=!0;const o=(e=>{const t=[].concat(e);return e=>e.map((e=>t.map((t=>e[t])).join()))})(n);if(e&&t&&e.length===t.length){const n=o(e),u=o(t);r=!!n.find(((e,t)=>e!==u[t]))}return!r},v=n("hSSe"),S=n.n(v),y=e=>S()()?e:Object.freeze(e),A=e=>{var t;return!!e&&"object"==typeof e&&("Object"===(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor.name)||null===Object.getPrototypeOf(e))};const I=e=>A(e)||Array.isArray(e),O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),u=1;u<r;u++)o[u-1]=arguments[u];return n&&o.length&&o.forEach((r=>{r&&((e,t)=>{const n=Object.keys(e);return t.withSymbols?n.concat(Object.getOwnPropertySymbols(e)):n})(r,e).forEach((o=>{const u=r[o];e.predicate&&!e.predicate(o,u)||(void 0!==u||e.undefinedOverwrites)&&(I(u)?(void 0!==n[o]&&A(n[o])||(n[o]=Array.isArray(u)?[]:{}),t(n[o],u)):n[o]=u)}))})),n};return t};var R=O(),T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return I(e)?t(Array.isArray(e)?[]:{},e):e},k=(e,t)=>e&&Object.keys(e).reduce(((n,r)=>(~t.indexOf(r)&&(n[r]=e[r]),n)),{}),D=function(e){return!!e&&"object"==typeof e&&"function"==typeof e.then};const C=l()&&window.requestIdleCallback,w=C?window.requestIdleCallback:setTimeout,P=C?window.cancelIdleCallback:clearTimeout;var _=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=w(e,C?{timeout:t}:t);return()=>P(n)},L=function(e){return null==e},F=function(e,t){const n=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new Promise(((n,o)=>{const u=e(t,...r);u&&u.length?Promise.all(u).catch(o).then((e=>{let t;if(e)for(;L(t)&&e.length;)t=e.pop();n(L(t)?void 0:t)})):n()}))};for(var r=arguments.length,o=new Array(r>2?r-2:0),u=2;u<r;u++)o[u-2]=arguments[u];return t?n(t,...o):n};const B=Symbol.for("__rpldy-bi__");let N=0;const H=e=>!("object"!=typeof e||!e.id||!e.batchId||!0!==e[B]);var U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=H(e);N+=r?0:1;let o={id:r&&e.id&&"string"==typeof e.id?e.id:`${t}.item-${N}`,batchId:t,state:n?c.PENDING:c.ADDED,uploadStatus:0,total:0,completed:0,loaded:0,recycled:r,previousBatch:r?e.batchId:null};Object.defineProperty(o,B,{value:!0,writable:!0});const u=r?e.file||e.url:e;if("string"==typeof u)o=((e,t)=>(e.url=t,e))(o,u);else{if(!(e=>e&&(e instanceof File||e instanceof Blob||!("object"!=typeof e||!e.name||!e.type)))(u))throw new Error("Unknown type of file added: "+typeof u);o=((e,t)=>(e.file=t,e))(o,u)}return o},G=n("wVK4"),x=class extends Promise{constructor(e,t){super(e),(0,G.Z)(this,"xhr",void 0),this.xhr=t}},$=e=>{let t;try{t=e.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n]=r,e}),{})}catch(t){p("uploady.request: failed to read response headers",e)}return t},q=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new XMLHttpRequest;return new x(((o,u)=>{var i;r.onerror=()=>u(r),r.ontimeout=()=>u(r),r.onabort=()=>u(r),r.onload=()=>o(r),r.open((null==n?void 0:n.method)||"GET",e),((e,t)=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&e.setRequestHeader(n,t[n])}))})(r,null==n?void 0:n.headers),r.withCredentials=!(null==n||!n.withCredentials),null==n||null===(i=n.preSend)||void 0===i||i.call(n,r),r.send(t)}),r)}},"wfJ/":function(e){e.exports=function(e){return"function"==typeof e}},hSSe:function(e){e.exports=function(){return!0}},n3ip:function(e,t,n){"use strict";n.d(t,{ZP:function(){return h},$N:function(){return a},X3:function(){return i},Wg:function(){return f}});var r=n("E88u");const o=Symbol.for("__rpldy-sstt-proxy__"),u=Symbol.for("__rpldy-sstt-state__"),i=e=>!(0,r.yv)()&&!!e&&!!~Object.getOwnPropertySymbols(e).indexOf(o),a=e=>Array.isArray(e)||(0,r.PO)(e)&&!(e=>(0,r.Ym)()&&e instanceof File||e.name&&e.size&&e.uri)(e),s=(0,r.D8)({withSymbols:!0,predicate:e=>e!==o&&e!==u}),c=e=>!!(0,r.yv)()||e[u].isUpdateable,l=(e,t)=>{(0,r.yv)()||(e[u].isUpdateable=t)},d=(e,t)=>{let n;return a(e)&&(i(e)||(e[o]=!0,n=new Proxy(e,t)),Object.keys(e).forEach((n=>{e[n]=d(e[n],t)}))),n||e},f=e=>i(e)?(0,r.d9)(e,s):e;var h=e=>{const t={set:(e,r,o)=>(c(n)&&(e[r]=d(o,t)),!0),get:(e,t)=>t===o?f(e):e[t],defineProperty:()=>{throw new Error("Simple State doesnt support defining property")},setPrototypeOf:()=>{throw new Error("Simple State doesnt support setting prototype")},deleteProperty:(e,t)=>(c(n)&&delete e[t],!0)};(0,r.yv)()||i(e)||Object.defineProperty(e,u,{value:{isUpdateable:!1},configurable:!0});const n=(0,r.yv)()?e:d(e,t);return{state:n,update:e=>{if(!(0,r.yv)()&&c(n))throw new Error("Can't call update on State already being updated!");try{l(n,!0),e(n)}finally{l(n,!1)}return n},unwrap:e=>e?f(e):i(n)?f(n):n}}},rBBy:function(e,t,n){"use strict";n.d(t,{FG:function(){return o.FG},WN:function(){return M},FD:function(){return o.FD},PF:function(){return z.PF},tY:function(){return h},Ch:function(){return z.Ch},fZ:function(){return J},_s:function(){return ne},ZP:function(){return re},KZ:function(){return z.KZ},lW:function(){return z.lW}});var r=n("SKjz"),o=n("E88u");const u=(e,t,n)=>(o.kg.debugLog(`abort: aborting ${e.state} item - `,e),n(e.id,{status:0,state:o.FD.ABORTED,response:"aborted"}),!0),i={[o.FD.UPLOADING]:(e,t)=>(o.kg.debugLog("abort: aborting uploading item - ",e),t[e.id]()),[o.FD.ADDED]:u,[o.FD.PENDING]:u},a=(e,t,n)=>{const r=null==e?void 0:e.state,o=!!r&&i[r];return!!o&&o(e,t,n)},s=(e,t,n,r)=>a(t[e],n,r),c=(e,t)=>{let n=!1;return 0!==t&&t&&(n=e>=t),n},l=(e,t,n,r,u)=>{const i=Object.values(n).flat(),a=c(i.length,u.fastAbortThreshold);return o.kg.debugLog(`abort: doing abort-all (${a?"fast":"normal"} abort)`),a?(e=>{Object.values(e).forEach((e=>e()))})(t):i.forEach((n=>s(n,e,t,r))),{isFast:a}},d=(e,t,n,r,u,i)=>{const s=0===t.fastAbortThreshold?0:t.fastAbortThreshold||i.fastAbortThreshold,l=c(r[e.id].length,s);return o.kg.debugLog(`abort: doing abort-batch on: ${e.id} (${l?"fast":"normal"} abort)`),l?((e,t)=>{e.items.forEach((e=>{var n;let{id:r}=e;return null===(n=t[r])||void 0===n?void 0:n.call(t)}))})(e,n):e.items.forEach((e=>a(e,n,u))),{isFast:l}};var f=()=>e=>(e.update({abortAll:l,abortBatch:d,abortItem:s}),e);const h=(0,o.ZV)({BATCH_ADD:"BATCH-ADD",BATCH_START:"BATCH-START",BATCH_PROGRESS:"BATCH_PROGRESS",BATCH_FINISH:"BATCH-FINISH",BATCH_ABORT:"BATCH-ABORT",BATCH_CANCEL:"BATCH-CANCEL",BATCH_ERROR:"BATCH-ERROR",BATCH_FINALIZE:"BATCH-FINALIZE",ITEM_START:"FILE-START",ITEM_CANCEL:"FILE-CANCEL",ITEM_PROGRESS:"FILE-PROGRESS",ITEM_FINISH:"FILE-FINISH",ITEM_ABORT:"FILE-ABORT",ITEM_ERROR:"FILE-ERROR",ITEM_FINALIZE:"FILE-FINALIZE",REQUEST_PRE_SEND:"REQUEST_PRE_SEND",ALL_ABORT:"ALL_ABORT"}),p=(0,o.ZV)({ITEM_PROGRESS:"ITEM_PROGRESS",BATCH_PROGRESS:"BATCH_PROGRESS"}),g=[o.FD.FINISHED,o.FD.ERROR,o.FD.CANCELLED,o.FD.ABORTED];var b=n("n3ip");const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.updateState((e=>{const{batchId:r}=e.items[t]||{batchId:null};n&&delete e.items[t];const o=r?e.itemQueue[r].indexOf(t):-1;~o&&r&&e.itemQueue[r].splice(o,1);const u=e.activeIds.indexOf(t);~u&&e.activeIds.splice(u,1)}))},E=(e,t)=>!!e.getState().items[t],v=e=>g.includes(e.state),S=(0,o.D8)({undefinedOverwrites:!0}),y=(e,t,n,r,u,i)=>{const a=n(t),s=e.getState().batches[a[0].batchId].batchOptions,c=(null==r?void 0:r(t,s))||t;return((e,t,n,r,u,i)=>(0,o.sc)(e.trigger,u,t,r).then((e=>(null==i||i(e),((e,t,n,r)=>{let u=n,i=t;if(r){if(o.kg.debugLog(`uploader.queue: REQUEST_PRE_SEND(${e}) event returned updated items/options`,r),r.items){if(r.items.length!==t.length||!(0,o.sQ)(r.items,t,["id","batchId","recycled"]))throw new Error(`REQUEST_PRE_SEND(${e}) event handlers must return same items with same ids`);i=r.items}r.options&&(u=S({},n,r.options))}return{items:i,options:u,cancelled:!1===r}})(u,n,r,e)))))(e,c,a,s,i,u).then((t=>(t.cancelled||((e,t)=>{if(t.items[0]&&e.getState().batches[t.items[0].batchId]){e.updateState((e=>{t.items.forEach((t=>{v(e.items[t.id])||(e.items[t.id]=t)})),e.batches[t.items[0].batchId].batchOptions=t.options}));const n=e.getState();t.items=t.items.map((e=>n.items[e.id])),t.options=n.batches[t.items[0].batchId].batchOptions}})(e,t),t)))},A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(o,u)=>y(o,u,t,n,r,e)},I=A(h.BATCH_START,(e=>e.items),null,(function(){let{batch:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{batch:!1};if(e)throw new Error("BATCH_START event handlers cannot update batch data. Only items & options")})),O=[o.FG.ADDED,o.FG.PROCESSING,o.FG.UPLOADING],R=[o.FG.ABORTED,o.FG.CANCELLED,o.FG.FINISHED,o.FG.ERROR],T=(e,t)=>e.batches[t].batch,k=(e,t)=>{const n=e.getState(),r=n.items[t];return n.batches[r.batchId]},D=(e,t)=>k(e,t).batch,C=(e,t)=>{const n=((e,t)=>T(e.getState(),t))(e,t);n.items.forEach((t=>{let{id:n}=t;return m(e,n,!0)}))},w=(e,t)=>{e.updateState((e=>{delete e.batches[t],delete e.itemQueue[t];const n=e.batchQueue.indexOf(t);~n&&e.batchQueue.splice(n,1);const r=e.batchesStartPending.indexOf(t);~r&&e.batchesStartPending.splice(r,1)}))},P=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.FG.FINISHED,u=arguments.length>4?arguments[4]:void 0;e.updateState((e=>{const n=T(e,t);n.state=r,u&&(n.additionalInfo=u)})),L(e,t,n),L(e,t,h.BATCH_FINALIZE)},_=(e,t)=>{o.kg.debugLog("uploady.uploader.batchHelpers: cancelling batch: ",t),P(e,t,h.BATCH_CANCEL,o.FG.CANCELLED),C(e,t),w(e,t)},L=(e,t,n)=>{const r=e.getState(),{batch:o,batchOptions:u}=r.batches[t],i=r.items,a={...(0,b.Wg)(o),items:o.items.map((e=>{let{id:t}=e;return(0,b.Wg)(i[t])}))};e.trigger(n,a,(0,b.Wg)(u))},F=(e,t)=>{const n=T(e.getState(),t);return O.includes(n.state)},B=e=>R.includes(e.state),N={[o.FD.PENDING]:null,[o.FD.ADDED]:h.ITEM_START,[o.FD.FINISHED]:h.ITEM_FINISH,[o.FD.ERROR]:h.ITEM_ERROR,[o.FD.CANCELLED]:h.ITEM_CANCEL,[o.FD.ABORTED]:h.ITEM_ABORT,[o.FD.UPLOADING]:h.ITEM_PROGRESS},H=e=>!!~g.indexOf(e.state);var U=(e,t,n)=>{t.forEach((t=>{const n=e.getState(),{id:r,info:u}=t;if(o.kg.debugLog("uploader.processor.queue: request finished for item - ",{id:r,info:u}),n.items[r]){e.updateState((e=>{const t=e.items[r];t.state=u.state,t.uploadResponse=u.response,t.uploadStatus=u.status,H(t)&&delete e.aborts[r]}));const t=e.getState().items[r];if(u.state===o.FD.FINISHED&&t.completed<100){var i;const n=(null===(i=t.file)||void 0===i?void 0:i.size)||0;e.handleItemProgress(t,100,n,n)}const{batchOptions:n}=k(e,r);N[t.state]&&e.trigger(N[t.state],t,n),H(t)&&(((e,t)=>{e.updateState((e=>{e.batches[t].finishedCounter+=1}))})(e,t.batchId),e.trigger(h.ITEM_FINALIZE,t,n))}m(e,r)})),(e=>{(0,o.nK)((()=>{const t=e.getState();Object.keys(t.batches).forEach((n=>{const{batch:r,finishedCounter:u}=t.batches[n],{orgItemCount:i}=r,a=B(r);i===u&&(a||100===r.completed||(e.updateState((e=>{const t=T(e,n);t.completed=100,t.loaded=t.items.reduce(((e,t)=>{let{loaded:n}=t;return e+n}),0)})),L(e,n,h.BATCH_PROGRESS)),e.updateState((e=>{e.currentBatch===n&&(e.currentBatch=null)})),o.kg.debugLog(`uploady.uploader.batchHelpers: cleaning up batch: ${r.id}`),a||P(e,n,h.BATCH_FINISH),C(e,n),w(e,n))}))}))})(e),n(e)};const G=A(h.REQUEST_PRE_SEND,(e=>e),((e,t)=>({items:e,options:t}))),x=e=>{let{allowedItems:t,cancelledResults:n,queue:r,items:u,ids:i,next:a}=e;const s=t.length?G(r,t):Promise.resolve();let c=n;return s.catch((e=>{o.kg.debugLog("uploader.queue: encountered error while preparing items for request",e),((e,t,n,r)=>{const u=n.map((t=>{let{id:n}=t;return{id:n,info:{status:0,state:o.FD.ERROR,response:e}}}));U(t,u,r)})(e,r,u,a)})).then((e=>{let t;return e&&(e.cancelled?c=i.map((()=>!0)):e.items.some((e=>v(e)))?o.kg.debugLog("uploader.queue: send data contains aborted items - not sending"):((e,t,n)=>{var r;const{items:u,options:i}=t,a=null===(r=e.getState().batches[u[0].batchId])||void 0===r?void 0:r.batch;if(a){let t;try{t=e.sender.send(u,a,i)}catch(e){o.kg.debugLog("uploader.queue: sender failed with unexpected error",e),t={request:Promise.resolve({status:0,state:o.FD.ERROR,response:e.message}),abort:()=>!1,senderType:"exception-handler"}}const{request:r}=t;((e,t,n)=>{e.updateState((e=>{t.forEach((t=>{e.items[t.id].state=o.FD.UPLOADING,e.aborts[t.id]=n.abort}))}))})(e,u,t),r.then((t=>{const r=u.map((e=>({id:e.id,info:t})));U(e,r,n)}))}})(r,{items:e.items,options:e.options},a)),((e,t,n,r)=>{const u=n.map(((e,n)=>e?t[n].id:null)).filter(Boolean);if(u.length){const t=u.map((e=>({id:e,info:{status:0,state:o.FD.CANCELLED,response:"cancel"}})));U(e,t,r)}return!!u.length})(r,u,c,a)||(t=a(r)),t}))};const $=(e,t)=>e.getState().activeIds.flat().includes(t),q=e=>{let t;const n=(e=>{const t=e.getState(),n=t.itemQueue,[r,u]=(e=>{const t=e.getState(),n=t.itemQueue,r=t.items;let u=null,i=0,a=0,s=t.batchQueue[i];for(;s&&!u;){if(F(e,s))for(u=n[s][a];u&&($(e,u)||r[u].state!==o.FD.ADDED);)a+=1,u=n[s][a];u||(i+=1,s=t.batchQueue[i],a=0)}return u?[s,a]:null})(e)||[];let i,a=r&&~u?n[r][u]:null;if(a){const{batchOptions:e}=t.batches[r],n=e.maxGroupSize||0;i=e.grouped&&n>1?t.itemQueue[r].slice(u,u+n):[a]}return i})(e);if(n){const r=e.getCurrentActiveCount(),{concurrent:u=!1,maxConcurrent:i=0}=e.getOptions();(!r||u&&r<i)&&(o.kg.debugLog("uploader.processor: Processing next upload - ",{ids:n,currentCount:r}),t=((e,t)=>{let n;return((e,t)=>{const n=D(e,t);return e.getState().batchesStartPending.includes(n.id)})(e,t[0])?n=Promise.resolve(!0):(((e,t)=>{e.updateState((e=>{e.activeIds=e.activeIds.concat(t)}))})(e,t),n=((e,t)=>{const n=D(e,t);return e.getState().currentBatch!==n.id})(e,t[0])?((e,t)=>{const n=D(e,t);return e.updateState((e=>{e.batchesStartPending.push(n.id)})),I(e,n).then((r=>{let{cancelled:o}=r,u=!1;return e.updateState((e=>{const t=e.batchesStartPending.indexOf(n.id);e.batchesStartPending.splice(t,1)})),o||(u=!E(e,t),u||e.updateState((e=>{e.currentBatch=n.id}))),!o&&!u}))})(e,t[0]).then((n=>{let r=!n;return r&&(((e,t)=>{if(E(e,t)){const n=k(e,t),r=null==n?void 0:n.batch.id;r?_(e,r):o.kg.debugLog(`uploady.uploader.batchHelpers: cancel batch called for batch already removed (item id = ${t})`)}})(e,t[0]),q(e)),r})).catch((n=>(o.kg.debugLog("uploader.processor: encountered error while preparing batch for request",n),((e,t,n)=>{const r=D(e,t),u=r.id;o.kg.debugLog("uploady.uploader.batchHelpers: failing batch: ",{batch:r}),P(e,u,h.BATCH_ERROR,o.FG.ERROR,n.message),C(e,u),w(e,u)})(e,t[0],n),q(e),!0))):Promise.resolve(!1)),n})(e,n).then((t=>{t||(((e,t,n)=>{const r=e.getState();let o=Object.values(r.items);o=o.filter((e=>t.includes(e.id)&&!v(e))),Promise.all(o.map((t=>{const{batchOptions:n}=k(e,t.id);return e.runCancellable(h.ITEM_START,t,n)}))).then((r=>{let u=r.map(((t,n)=>t?null:((e,t)=>{const n=t.getState().items[e];return n&&!v(n)?n:void 0})(o[n].id,e))).filter(Boolean);return{allowedItems:u,cancelledResults:r,queue:e,items:o,ids:t,next:n}})).then(x)})(e,n,q),u&&q(e))})))}return t};var j=q;const Z=e=>(t,n)=>U(e,[{id:t,info:n}],j);var z=n("Vmq3");const Y=()=>!0,M=(0,o.ZV)({autoUpload:!0,clearPendingOnAdd:!1,inputFieldName:"file",concurrent:!1,maxConcurrent:2,grouped:!1,maxGroupSize:5,method:"POST",params:{},fileFilter:Y,forceJsonResponse:!1,withCredentials:!1,destination:{},send:null,sendWithFormData:!0,formDataAllowUndefined:!1,fastAbortThreshold:100});var Q=()=>{const{trigger:e,target:t}=(0,r.ZP)({send:(t,n,r)=>{const u=r.destination,i=null==u?void 0:u.url,a=(0,o.P2)((r=>((e,t,n,r)=>{((e,t,n,r,u)=>{e.forEach((e=>{o.kg.debugLog(`uploady.uploader.processor: file: ${e.id} progress event: loaded(${n}) - completed(${t})`),u(p.ITEM_PROGRESS,e,t,n,r)}))})(e,Math.min(n.loaded/n.total*100,100)/e.length,n.loaded/e.length,n.total,r),r(p.BATCH_PROGRESS,t)})(t,n,r,e)),50,!0);return((0,o.mf)(r.send)?r.send:z.ZP)(t,i,{method:(null==u?void 0:u.method)||r.method||M.method,paramName:(null==u?void 0:u.filesParamName)||r.inputFieldName||"file",params:{...r.params,...null==u?void 0:u.params},forceJsonResponse:r.forceJsonResponse,withCredentials:r.withCredentials,formatGroupParamName:r.formatGroupParamName,headers:null==u?void 0:u.headers,sendWithFormData:r.sendWithFormData,formatServerResponse:r.formatServerResponse,formDataAllowUndefined:r.formDataAllowUndefined,isSuccessfulCall:r.isSuccessfulCall},a)}},Object.values(p));return t};const V=(0,o.Ym)()&&"FileList"in window,K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;return(0,o.yv)()||(t<3&&(0,b.X3)(e)?n=(0,b.Wg)(e):t<3&&(0,b.$N)(e)&&(n=Array.isArray(e)?e.map((e=>K(e,t+1))):Object.keys(e).reduce(((n,r)=>(n[r]=K(e[r],t+1),n)),{}))),n};let W=0;var X=(e,t,n,r)=>{const u=((e,t,n,r,u)=>{const{state:i,update:a}=(0,b.ZP)({itemQueue:{},batchQueue:[],currentBatch:null,batchesStartPending:[],batches:{},items:{},activeIds:[],aborts:{}}),s=()=>i,c=e=>{a(e)},l=e=>{if(i.items[e.id]&&!e.recycled)throw new Error(`Uploader queue conflict - item ${e.id} already exists`);e.recycled&&((e,t)=>{const{previousBatch:n}=t;if(t.recycled&&n&&e.getState().batches[n]){const{id:r}=D(e,t.id);r===n&&e.updateState((e=>{const n=T(e,r),o=n.items.findIndex((e=>{let{id:n}=e;return n===t.id}));~o&&n.items.splice(o,1)}))}})(f,e),c((t=>{t.items[e.id]=e}))},d=(e,n,r,o)=>{i.items[e.id]&&(c((t=>{const u=t.items[e.id];u.loaded=r,u.completed=n,u.total=o})),t(h.ITEM_PROGRESS,s().items[e.id]))};r.on(p.ITEM_PROGRESS,d),r.on(p.BATCH_PROGRESS,(e=>{var t;const n=null===(t=i.batches[e.id])||void 0===t?void 0:t.batch.items;if(n){const[t,r]=n.reduce(((e,t)=>{let{id:n}=t;const{loaded:r,file:o}=i.items[n],u=(null==o?void 0:o.size)||r||1;return e[0]+=r,e[1]+=u,e}),[0,0]);c((n=>{const o=n.batches[e.id].batch;o.total=r,o.loaded=t,o.completed=t/r})),L(f,e.id,h.BATCH_PROGRESS)}}));const f={uploaderId:u,getOptions:()=>e,getCurrentActiveCount:()=>i.activeIds.length,getState:s,updateState:c,trigger:t,runCancellable:function(e){if(!(0,o.mf)(n))throw new Error("Uploader queue - cancellable is of wrong type");for(var t=arguments.length,r=new Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];return n(e,...r)},sender:r,handleItemProgress:d,clearAllUploads:()=>{f.updateState((e=>{e.itemQueue={},e.batchQueue=[],e.currentBatch=null,e.batches={},e.items={},e.activeIds=[]}))},clearBatchUploads:e=>{(0,o.nK)((()=>{o.kg.debugLog(`uploader.queue: started scheduled work to clear batch uploads (${e})`),s().batches[e]&&((e,t)=>{e.updateState((e=>{const{items:n}=T(e,t);delete e.batches[t],delete e.itemQueue[t];const r=e.batchQueue.indexOf(t);~r&&e.batchQueue.splice(r,1),e.currentBatch===t&&(e.currentBatch=null),n.forEach((t=>{let{id:n}=t;delete e.items[n];const r=e.activeIds.indexOf(n);~r&&e.activeIds.splice(r,1)}))}))})(f,e)}))}};return(0,o.Ym)()&&o.kg.isDebugOn()&&(window[`__rpldy_${u}_queue_state`]=f),{updateState:c,getState:f.getState,runCancellable:f.runCancellable,uploadBatch:(e,t)=>{t&&c((n=>{n.batches[e.id].batchOptions=t})),j(f)},addBatch:(e,t)=>(c((n=>{n.batches[e.id]={batch:e,batchOptions:t,finishedCounter:0},n.batchQueue.push(e.id),n.itemQueue[e.id]=e.items.map((e=>{let{id:t}=e;return t}))})),e.items.forEach(l),T(i,e.id)),abortItem:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return((e,t)=>{const n=e.getOptions().abortItem;(0,o.kG)(!!n,"Abort Item method not provided yet abortItem was called");const r=e.getState();return n(t,r.items,r.aborts,Z(e))})(f,...t)},abortBatch:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return((e,t)=>{const n=e.getOptions().abortBatch;(0,o.kG)(!!n,"Abort Batch method not provided yet abortItem was called");const r=e.getState(),u=r.batches[t],i=null==u?void 0:u.batch;if(i&&!B(i)){P(e,t,h.BATCH_ABORT,o.FG.ABORTED);const{isFast:a}=n(i,u.batchOptions,r.aborts,r.itemQueue,Z(e),e.getOptions());a&&e.clearBatchUploads(i.id)}})(f,...t)},abortAll:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(e=>{const t=e.getOptions().abortAll;(0,o.kG)(!!t,"Abort All method not provided yet abortAll was called"),e.trigger(h.ALL_ABORT);const n=e.getState(),{isFast:r}=t(n.items,n.aborts,n.itemQueue,Z(e),e.getOptions());r&&e.clearAllUploads()})(f,...t)},clearPendingBatches:()=>{(e=>{const t=e.getState().batches;Object.keys(t).filter((e=>t[e].batch.state===o.FG.PENDING)).forEach((t=>{C(e,t),w(e,t)}))})(f)},uploadPendingBatches:e=>{((e,t)=>{e.updateState((e=>{Object.keys(e.batches).forEach((n=>{const r=e.batches[n],{batch:u,batchOptions:i}=r;u.state===o.FG.PENDING&&(u.items.forEach((e=>{e.state=o.FD.ADDED})),u.state=o.FG.ADDED,r.batchOptions=(0,o.TS)({},i,t))}))}))})(f,e),j(f)},cancelBatch:e=>_(f,e.id)}})(n,e,t,Q(),r);return{abortBatch:e=>{u.abortBatch(e)},abort:e=>{e?u.abortItem(e):u.abortAll()},addNewBatch:(e,t)=>((e,t,n)=>{W+=1;const r=`batch-${W}`,u=(e=>V&&e instanceof FileList||"[object FileList]"===e.toString())(e),i=Array.isArray(e)||u?e:[e],a=!n.autoUpload;return((e,t,n,r)=>{const u=r?Array.prototype.map.call(t,(e=>(0,o.$e)(e)?e.file||e.url:e)):[];return Promise.all(Array.prototype.map.call(t,((e,t)=>{const n=(r||Y)(u[t],t,u);return(0,o.tI)(n)?n.then((t=>!!t&&e)):!!n&&e}))).then((t=>t.filter(Boolean).map((t=>(0,o.Yc)(t,e,n)))))})(r,i,a,n.fileFilter).then((e=>({id:r,uploaderId:t,items:e,state:a?o.FG.PENDING:o.FG.ADDED,completed:0,loaded:0,orgItemCount:e.length,additionalInfo:null})))})(e,r,t).then((e=>{let n;if(e.items.length){const i=u.addBatch(e,t);n=u.runCancellable(h.BATCH_ADD,i,t).then((e=>(e?u.cancelBatch(i):(o.kg.debugLog(`uploady.uploader [${r}]: new items added - auto upload =\n ${String(t.autoUpload)}`,i.items),t.autoUpload&&u.uploadBatch(i)),i)))}else o.kg.debugLog(`uploady.uploader: no items to add. batch ${e.id} is empty. check fileFilter if this isn't intended`);return n||Promise.resolve(null)})),clearPendingBatches:()=>{u.clearPendingBatches()},processPendingBatches:e=>{u.uploadPendingBatches(e)}}},J=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.reduce(((e,t)=>t(e,...r)||e),e)}};const ee=Object.values(h);let te=0;var ne=e=>{te+=1;const t=`uploader-${te}`;let n=!1;const u={};o.kg.debugLog(`uploady.uploader: creating new instance (${t})`,{options:e,counter:te});let i=(e=>{return{...M,...e,destination:e&&e.destination?(t=e.destination,{params:{},...t}):null};var t})(e);const a=()=>{p.clearPendingBatches()};let{trigger:s,target:c}=(0,r.ZP)({id:t,update:e=>(i=(0,o.TS)({},i,e),c),add:(e,t)=>{const n=(0,o.TS)({},i,t);return n.clearPendingOnAdd&&a(),p.addNewBatch(e,n).then((()=>{o.kg.debugLog("uploady.uploader: finished adding file data to be processed")}))},upload:e=>{p.processPendingBatches(e)},abort:e=>{p.abort(e)},abortBatch:e=>{p.abortBatch(e)},getOptions:()=>(0,o.d9)(i),clearPending:a,registerExtension:(e,t)=>{(0,o.kG)(n,"Uploady - uploader extensions can only be registered by enhancers"),(0,o.kG)(!u[e],"Uploady - uploader extension by this name [%s] already exists",e),o.kg.debugLog(`uploady.uploader: registering extension: ${e.toString()}`,t),u[e]=t},getExtension:e=>u[e]},ee,{canAddEvents:!1,canRemoveEvents:!1});const l=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const u=(0,r.uZ)((()=>n.map(K)));return s(e,u)},d=(0,o.tq)(l),h=((e,t,n,r)=>{const o=t.enhancer?(u=t.enhancer,J(f(),u)):f();var u;r(!0);const i=o(e,n);return r(!1),i||e})(c,i,l,(e=>{n=e})),p=X(l,d,i,h.id);return(0,o.ZV)(h)},re=ne},nToW:function(e,t,n){"use strict";n.r(t),n.d(t,{BATCH_STATES:function(){return s.FG},CHUNK_EVENTS:function(){return g},ChunkedUploady:function(){return k},DEFAULT_OPTIONS:function(){return s.WN},FILE_STATES:function(){return s.FD},MissingUrlError:function(){return s.PF},NoDomUploady:function(){return s.$V},UPLOADER_EVENTS:function(){return s.tY},Uploady:function(){return s.o_},UploadyContext:function(){return s.EB},XHR_SENDER_TYPE:function(){return s.Ch},assertContext:function(){return s.aI},composeEnhancers:function(){return s.fZ},createContextApi:function(){return s.Qn},createUploader:function(){return s._s},default:function(){return w},generateUploaderEventHook:function(){return s.q5},generateUploaderEventHookWithState:function(){return s.dP},getIsUploadOptionsComponent:function(){return s.Ve},getUploadyVersion:function(){return s.Hl},getXhrSend:function(){return s.KZ},logWarning:function(){return s.KE},markAsUploadOptionsComponent:function(){return s.zD},send:function(){return s.lW},useAbortAll:function(){return s.gG},useAbortBatch:function(){return s.sm},useAbortItem:function(){return s.HL},useAllAbortListener:function(){return s.pN},useBatchAbortListener:function(){return s.N_},useBatchAddListener:function(){return s.Vu},useBatchCancelledListener:function(){return s.ns},useBatchErrorListener:function(){return s.SY},useBatchFinalizeListener:function(){return s.pQ},useBatchFinishListener:function(){return s.XT},useBatchProgressListener:function(){return s.G9},useBatchStartListener:function(){return s.hz},useChunkFinishListener:function(){return C},useChunkStartListener:function(){return D},useFileInput:function(){return s.ei},useItemAbortListener:function(){return s.zJ},useItemCancelListener:function(){return s.An},useItemErrorListener:function(){return s.A9},useItemFinalizeListener:function(){return s.LA},useItemFinishListener:function(){return s.h_},useItemProgressListener:function(){return s.UT},useItemStartListener:function(){return s.J0},useRequestPreSend:function(){return s.fc},useUploadOptions:function(){return s.LN},useUploady:function(){return s.IV},useUploadyContext:function(){return s.uO},withBatchStartUpdate:function(){return s.zb},withRequestPreSendUpdate:function(){return s.GT}});var r=n("Z1CE"),o=n("+TXh"),u=n.n(o),i=n("E88u"),a=n("DJz1"),s=n("LC/c"),c=n("Vmq3");const l=(0,i.ZV)({chunked:!0,chunkSize:5242880,retries:0,parallel:1});let d=null;const f=(d=null,(0,i.Ym)()&&"Blob"in window&&(d=Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),!!d);class h extends Error{constructor(e){super(e),this.name="ChunkedSendError"}}var p=n("n3ip");const g=(0,i.ZV)({CHUNK_START:"CHUNK_START",CHUNK_FINISH:"CHUNK_FINISH"});const b=(e,t,n)=>t&&`bytes ${e.start}-${e.start+t.size-1}/${n.file.size}`,m=(0,i.D8)({undefinedOverwrites:!0});var E=(e,t,n,r,o)=>{if(e.data||t.updateState((()=>{e.data=((e,t,n)=>{var r;const o=null===(r=d)||void 0===r?void 0:r.call(e,t,n,e.type);return o&&(o.name=e.name,o.lastModified=e.lastModified),o})(n.file,e.start,e.end)})),!e.data)throw new h("chunk failure - failed to slice");const u=t.getState().url;i.kg.debugLog(`chunkedSender.sendChunk: about to send chunk ${e.id} [${e.start}-${e.end}] to: ${u||""}`);const a=((e,t,n,r,o)=>{const u=t.getState(),a=(0,p.Wg)(u.sendOptions),s={...a,headers:{...a.headers,"Content-Range":b(e,e.data,n)}},l=(0,i.Yc)(e.data,e.id),d=t=>{r(t,[e])},f=u.chunks.indexOf(e);return(0,i.sc)(o,g.CHUNK_START,{item:(0,p.Wg)(n),chunk:(0,i.ei)(e,["id","start","end","index","attempt"]),chunkItem:{...l},sendOptions:s,url:u.url,chunkIndex:f,remainingCount:u.chunks.length,totalCount:u.chunkCount,onProgress:r}).then((e=>{const t=!1===e;return t&&i.kg.debugLog(`chunkedSender.sendChunk: received false from CHUNK_START handler - skipping chunk ${f}, item ${n.id}`),t?{request:Promise.resolve({state:i.FD.FINISHED,response:"skipping chunk as instructed by CHUNK_START handler",status:200}),abort:()=>!0,senderType:"chunk-skipped-sender"}:(0,c.ZP)([l],(null==e?void 0:e.url)||u.url,m({},s,null==e?void 0:e.sendOptions),d)}))})(e,t,n,r,o);return{request:a.then((e=>{let{request:t}=e;return t})),abort:()=>(a.then((e=>{let{abort:t}=e;return t()})),!0),senderType:"chunk-passthrough-sender"}};const v=(e,t,n)=>{if(n instanceof h){const n=e.getState().lastChunkErrorData;t({state:i.FD.ERROR,response:{reason:"At least one chunk failed",chunkUploadResponse:n}})}else t({state:i.FD.ERROR,response:n.message})},S=(e,t,n,r)=>{e.updateState((e=>{e.finished=!0})),n({state:r,response:{results:e.getState().responses}})},y=(e,t,n,r,o,u)=>new Promise(((a,s)=>{try{const s=E(o,e,t,n,u);((e,t,n,r,o,u)=>(e.updateState((e=>{e.requests[n]={id:n,abort:r.abort}})),r.request.then((r=>{i.kg.debugLog(`chunkedSender: request finished for chunk: ${n} - `,r),e.updateState((e=>{delete e.requests[n]}));const a=e.getState().chunks,s=a.findIndex((e=>e.id===n));if(~s){if(r.state===i.FD.FINISHED){const n=a[s];e.updateState((e=>{e.chunks=e.chunks.slice(0,s).concat(e.chunks.slice(s+1))}));const c=n.end-n.start;u({loaded:c,total:t.file.size},[n]),o(g.CHUNK_FINISH,{chunk:(0,i.ei)(n,["id","start","end","index","attempt"]),item:(0,p.Wg)(t),uploadData:r})}else r.state!==i.FD.ABORTED&&e.updateState((e=>{e.chunks[s].attempt+=1,e.lastChunkErrorData={status:r.status,response:r.response}}));e.updateState((e=>{e.responses.push(r.response)}))}}))))(e,t,o.id,s,u,n).then((()=>{a(),((e,t,n)=>{const r=e.getState(),o=!r.chunks.length;return r.aborted?(i.kg.debugLog(`chunkedSender: chunked upload aborted for item: ${t.id}`),S(e,0,n,i.FD.ABORTED)):o&&!r.error&&(i.kg.debugLog(`chunkedSender: chunked upload finished for item: ${t.id}`,r.responses),S(e,0,n,i.FD.FINISHED)),o||r.error})(e,t,r)||A(e,t,n,r,u)}))}catch(e){s(e)}})),A=(e,t,n,r,o)=>{const u=e.getState();if(!u.finished&&!u.aborted){const i=Object.keys(u.requests).length;if(!i||u.parallel&&u.parallel>i){let u;try{u=(e=>{const t=e.getState(),n=[],r=Object.keys(t.requests),o=t.parallel||1;for(let e=0;e<t.chunks.length&&r.length<o&&n.length<o;e++){const o=t.chunks[e];if(!r.includes(o.id)){if(o.attempt&&!(o.attempt<t.retries))throw new h("chunk failure");n.push(o)}}return n})(e)}catch(t){v(e,r,t)}u&&u.forEach((u=>{y(e,t,n,r,u,o).catch((t=>{e.updateState((e=>{e.error=!0})),v(e,r,t)}))}))}}};var I=A;const O=(e,t,n,r)=>{const o=(r,o)=>{const u=((e,t,n,r)=>{e.updateState((e=>{e.uploaded[n]=Math.max(r,e.uploaded[n]||0)}));const o=e.getState(),u=Object.keys(o.uploaded).reduce(((e,t)=>e+o.uploaded[t]),o.startByte),i=t.file.size;return{loaded:Math.min(u,i),total:i}})(e,t,o[0].id,r.loaded);n(u,[t])};return{sendPromise:new Promise((n=>{I(e,t,o,n,r)})),abort:()=>((e,t)=>{i.kg.debugLog(`chunkedSender: aborting chunked upload for item: ${t.id}`);const n=e.getState();return n.finished||n.aborted||(Object.keys(n.requests).forEach((e=>{i.kg.debugLog(`chunkedSender: aborting chunk: ${e}`),n.requests[e].abort()})),e.updateState((e=>{e.aborted=!0}))),n.aborted})(e,t)}};var R=(e,t,n,r,o,u)=>{const a=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{chunkSize:r}=t,o=n?e.file.size-n:e.file.size;if(o<=0)throw new h(`start byte ${n} is invalid. File size: ${e.file.size}`);const u=o<=r?1:Math.ceil(o/r);return new Array(u).fill(null).map(((t,o)=>{const u=r*o+(n||0);return{id:`${e.id}_chunk-${o}`,start:u,end:Math.min(u+r,e.file.size),data:null,attempt:0,uploaded:0,index:o}}))}(e,t,r.startByte),s=((e,t,n,r)=>{const{state:o,update:u}=(0,p.ZP)({finished:!1,aborted:!1,error:!1,uploaded:{},requests:{},responses:[],chunkCount:e.length,startByte:n.startByte||0,lastChunkErrorData:null,chunks:e,url:t,sendOptions:n,...r});return{getState:()=>o,updateState:e=>{u(e)}}})(a,n,r,t);i.kg.debugLog(`chunkedSender: created ${a.length} chunks for: ${e.file.name}`);const{sendPromise:c,abort:l}=O(s,e,o,u);return{request:c,abort:l,senderType:"rpldy-chunked-sender"}},T=e=>(t,n)=>{const r=((e,t)=>{const n=(e=>(0,i.TS)({},l,e))(e);return{send:(e,r,o,u)=>{let a;return!n.chunked||e.length>1||e[0].url||!e[0].file.size?(a=(0,c.ZP)(e,r,o,u),i.kg.debugLog("chunkedSender: sending items as normal, un-chunked requests")):(i.kg.debugLog("chunkedSender: sending file as a chunked request"),a=R(e[0],n,r,o,u,t)),a}}})(e,n);return i.kg.debugLog("chunkedSenderEnhancer: Created chunked-sender instance with options: ",e),t.update({send:r.send}),t};(0,a.KE)(f||!(0,i.Ym)(),"This browser doesn't support chunking. Consider using @rpldy/uploady instead");var k=e=>{const{chunked:t,chunkSize:n,retries:i,parallel:a,...c}=e,l=(0,o.useMemo)((()=>f?((e,t)=>{const n=T(e);return t?(0,s.fZ)(n,t):n})({chunked:t,chunkSize:n,retries:i,parallel:a},e.enhancer):void 0),[e.enhancer,t,n,i,a]);return u().createElement(s.ZP,(0,r.Z)({},c,{enhancer:l}))};const D=(0,a.q5)(g.CHUNK_START,!1),C=(0,a.q5)(g.CHUNK_FINISH,!1);var w=k},DJz1:function(e,t,n){"use strict";n.d(t,{$V:function(){return x},EB:function(){return h},aI:function(){return p},Qn:function(){return f},q5:function(){return E},dP:function(){return m},Ve:function(){return G},Hl:function(){return s},KE:function(){return H},zD:function(){return U},gG:function(){return Z},sm:function(){return j},HL:function(){return q},pN:function(){return B},N_:function(){return R},Vu:function(){return v},ns:function(){return A},SY:function(){return I},pQ:function(){return O},XT:function(){return y},G9:function(){return T},hz:function(){return S},zJ:function(){return P},An:function(){return C},A9:function(){return w},LA:function(){return _},h_:function(){return D},UT:function(){return L},J0:function(){return k},fc:function(){return F},LN:function(){return $},IV:function(){return g},uO:function(){return g},zb:function(){return Q},GT:function(){return M}});var r=n("rBBy"),o=n("+TXh"),u=n.n(o),i=n("E88u");const a=Symbol.for("_rpldy-version_"),s=()=>"1.6.0",c=()=>(0,i.Ym)()?window:globalThis||process,l=()=>c()[a],d="Uploady - Context. File input isn't available",f=(e,t)=>{let n,r,o=!1;t?n=t:i.kg.debugLog("Uploady context - didn't receive input field ref - waiting for external ref");const u=()=>{var e;return null===(e=n)||void 0===e?void 0:e.current},l=()=>{const e=u();(0,i.kG)(e,d),e.removeEventListener("change",l);const t=r;r=null,f(e.files,t)},f=(t,n)=>{e.add(t,n)};return c()[a]=s(),{hasUploader:()=>!!e,getInternalFileInput:()=>(n&&(o=!0),n),setExternalFileInput:e=>{o=!0,n=e},getIsUsingExternalInput:()=>o,showFileUpload:e=>{const t=u();(0,i.kG)(t,d),r=e,t.removeEventListener("change",l),t.addEventListener("change",l),t.value="",t.click()},upload:f,processPending:t=>{e.upload(t)},clearPending:()=>{e.clearPending()},setOptions:t=>{e.update(t)},getOptions:()=>e.getOptions(),getExtension:t=>e.getExtension(t),abort:t=>{e.abort(t)},abortBatch:t=>{e.abortBatch(t)},on:(t,n)=>e.on(t,n),once:(t,n)=>e.once(t,n),off:(t,n)=>e.off(t,n)}};var h=u().createContext(null),p=e=>((0,i.kG)(!(()=>{const e=l();return!!e&&e!==s()})(),"Uploady - Valid UploadyContext not found.\nYou may be using packages of different Uploady versions. <Uploady> and all other packages using the context provider must be of the same version: %s",l()),(0,i.kG)(e&&e.hasUploader(),"Uploady - Valid UploadyContext not found. Make sure you render inside <Uploady>"),e),g=()=>p((0,o.useContext)(h));const b=(e,t)=>{const n=g(),{on:r,off:u}=n;(0,o.useEffect)((()=>(r(e,t),()=>{u(e,t)})),[e,t,r,u])},m=(e,t)=>(n,r)=>{const[u,a]=(0,o.useState)(null);let s=n,c=r;n&&!(0,i.mf)(n)&&(c=n,s=void 0);const l=(0,o.useCallback)((function(e){if(!c||e.id===c){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];a(t(e,...r)),(0,i.mf)(s)&&s(e,...r)}}),[s,c]);return b(e,l),u},E=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(n,r)=>{const u=(0,o.useCallback)((function(e){for(var o=arguments.length,u=new Array(o>1?o-1:0),i=1;i<o;i++)u[i-1]=arguments[i];return!n||t&&r&&e.id!==r?void 0:n(e,...u)}),[n,r]);b(e,u)}},v=E(r.tY.BATCH_ADD,!1),S=E(r.tY.BATCH_START),y=E(r.tY.BATCH_FINISH),A=E(r.tY.BATCH_CANCEL),I=E(r.tY.BATCH_ERROR),O=E(r.tY.BATCH_FINALIZE),R=E(r.tY.BATCH_ABORT),T=m(r.tY.BATCH_PROGRESS,(e=>({...e}))),k=E(r.tY.ITEM_START),D=E(r.tY.ITEM_FINISH),C=E(r.tY.ITEM_CANCEL),w=E(r.tY.ITEM_ERROR),P=E(r.tY.ITEM_ABORT),_=E(r.tY.ITEM_FINALIZE),L=m(r.tY.ITEM_PROGRESS,(e=>({...e}))),F=E(r.tY.REQUEST_PRE_SEND,!1),B=E(r.tY.ALL_ABORT,!1),N=Symbol.for("rpldy_component"),H=(e,t)=>{(0,i.yv)()||e||console.warn(t)},U=e=>{e[N]=!0},G=e=>{var t,n;return!0===e[N]||!0===(null===(t=e.target)||void 0===t?void 0:t[N])||!0===(null===(n=e.render)||void 0===n?void 0:n[N])};var x=e=>{const{listeners:t,debug:n,children:a,inputRef:s,...c}=e;i.kg.setDebug(!!n),i.kg.debugLog("@@@@@@ Uploady Rendering @@@@@@",e);const l=((e,t)=>{const n=(0,o.useMemo)((()=>(i.kg.debugLog("Uploady creating a new uploader instance",e),(0,r.ZP)(e))),[e.enhancer]);return n.update(e),(0,o.useEffect)((()=>(t&&(i.kg.debugLog("Uploady setting event listeners",t),Object.entries(t).forEach((e=>{let[t,r]=e;n.on(t,r)}))),()=>{t&&(i.kg.debugLog("Uploady removing event listeners",t),Object.entries(t).forEach((e=>{let[t,r]=e;return n.off(t,r)})))})),[t,n]),n})(c,t),d=(0,o.useMemo)((()=>f(l,s)),[l,s]);return u().createElement(h.Provider,{value:d},a)},$=e=>{const t=g();return e&&t.setOptions(e),t.getOptions()},q=()=>{const e=g();return(0,o.useCallback)((t=>e.abort(t)),[e])},j=()=>{const e=g();return(0,o.useCallback)((t=>e.abortBatch(t)),[e])},Z=()=>{const e=g();return(0,o.useCallback)((()=>e.abort()),[e])},z=n("Z1CE");const Y=e=>{let{eventType:t,getIsValidEventData:n,getRequestData:r}=e;return e=>i=>{const a=g(),[s,c]=(0,o.useState)({updateRequest:null,requestData:null}),{id:l}=i;return(0,o.useLayoutEffect)((()=>{const e=function(){for(var o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return!0===n(l,...u)?new Promise((n=>{c({updateRequest:r=>{a.off(t,e),n(r)},requestData:r(...u)})})):void 0};return l&&a.on(t,e),()=>{l&&a.off(t,e)}}),[a,l]),u().createElement(e,(0,z.Z)({},i,s))}};var M=Y({eventType:r.tY.REQUEST_PRE_SEND,getIsValidEventData:(e,t)=>{let{items:n}=t;return!!n.find((t=>t.id===e))},getRequestData:e=>{let{items:t,options:n}=e;return{items:t,options:n}}}),Q=Y({eventType:r.tY.BATCH_START,getIsValidEventData:(e,t)=>t.id===e,getRequestData:(e,t)=>({batch:e,items:e.items,options:t})})},"LC/c":function(e,t,n){"use strict";n.d(t,{FG:function(){return p.FG},WN:function(){return p.WN},FD:function(){return p.FD},PF:function(){return p.PF},$V:function(){return c.$V},tY:function(){return p.tY},o_:function(){return f},EB:function(){return c.EB},Ch:function(){return p.Ch},aI:function(){return c.aI},fZ:function(){return p.fZ},Qn:function(){return c.Qn},_s:function(){return p._s},ZP:function(){return g},q5:function(){return c.q5},dP:function(){return c.dP},Ve:function(){return c.Ve},Hl:function(){return c.Hl},KZ:function(){return p.KZ},KE:function(){return c.KE},zD:function(){return c.zD},lW:function(){return p.lW},gG:function(){return c.gG},sm:function(){return c.sm},HL:function(){return c.HL},pN:function(){return c.pN},N_:function(){return c.N_},Vu:function(){return c.Vu},ns:function(){return c.ns},SY:function(){return c.SY},pQ:function(){return c.pQ},XT:function(){return c.XT},G9:function(){return c.G9},hz:function(){return c.hz},ei:function(){return h},zJ:function(){return c.zJ},An:function(){return c.An},A9:function(){return c.A9},LA:function(){return c.LA},h_:function(){return c.h_},UT:function(){return c.UT},J0:function(){return c.J0},fc:function(){return c.fc},LN:function(){return c.LN},IV:function(){return c.IV},uO:function(){return c.uO},zb:function(){return c.zb},GT:function(){return c.GT}});var r=n("Z1CE"),o=n("+TXh"),u=n.n(o),i=n("XYNb"),a=n.n(i),s=n("E88u"),c=n("DJz1");const l=(e,t,n)=>u().createElement("input",(0,r.Z)({},e,{name:t.inputFieldName,type:"file",ref:n})),d=(0,o.memo)((0,o.forwardRef)(((e,t)=>{let{container:n,noPortal:r,...o}=e;const u=(0,c.LN)(),i=n&&1===n.nodeType;return(0,s.kG)(i||!(0,s.Ym)(),"Uploady - Container for file input must be a valid dom element"),r?l(o,u,t):((e,t,n,r,o)=>e&&t?a().createPortal(l(n,r,o),e):null)(n,i,o,u,t)})));var f=e=>{const{multiple:t=!0,capture:n,accept:i,webkitdirectory:a,children:l,inputFieldContainer:f,customInput:h,fileInputId:p,noPortal:g=!1,...b}=e,m=h?null:f||((0,s.Ym)()?document.body:null),E=(0,o.useRef)();return u().createElement(c.$V,(0,r.Z)({},b,{inputRef:E}),h?null:u().createElement(d,{container:m,multiple:t,capture:n,accept:i,webkitdirectory:null==a?void 0:a.toString(),style:{display:"none"},ref:E,id:p,noPortal:g}),l)};var h=e=>{const t=(0,c.uO)();return e&&t.setExternalFileInput(e),(0,o.useEffect)((()=>{if(null!=e&&e.current&&"closest"in e.current){const n=e.current,r=t.getOptions();if(!r.destination||!r.destination.url){const e=(e=>{const t=e.closest("form");let n={filesParamName:e.getAttribute("name"),method:void 0,url:void 0};if(t){const e=t.getAttribute("method"),r=(e=>{const t=window.location;let n,r=e.getAttribute("action")||"";switch(r=r.replace(/\s/g,""),!0){case""===r:r=t.href;break;case r.startsWith("/"):r=`${t.protocol}//${t.host}${r}`;break;case!/:\/\//.test(r):n=t.pathname.split("/").slice(0,-1).concat("").join("/"),r=`${t.protocol}//${t.host}${n}${r}`}return r})(t);n.method=e?e.toUpperCase():void 0,n.url=r,s.kg.debugLog(`Uploady.useFileInput: using custom input's parent form url ${n.url} and method ${n.method||""}`)}return n})(n);t.setOptions({destination:e})}}}),[e,t]),e||t.getInternalFileInput()},p=n("rBBy"),g=f},"+TXh":function(t){"use strict";t.exports=e},XYNb:function(e){"use strict";e.exports=t}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e].call(n.exports,n,n.exports,u),n.exports}u.m=r,n=[],u.O=function(e,t,r,o){if(!t){var i=1/0;for(l=0;l<n.length;l++){t=n[l][0],r=n[l][1],o=n[l][2];for(var a=!0,s=0;s<t.length;s++)(!1&o||i>=o)&&Object.keys(u.O).every((function(e){return u.O[e](t[s])}))?t.splice(s--,1):(a=!1,o<i&&(i=o));if(a){n.splice(l--,1);var c=r();void 0!==c&&(e=c)}}return e}o=o||0;for(var l=n.length;l>0&&n[l-1][2]>o;l--)n[l]=n[l-1];n[l]=[t,r,o]},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={145:0};u.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,i=n[0],a=n[1],s=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)u.o(a,r)&&(u.m[r]=a[r]);if(s)var l=s(u)}for(t&&t(n);c<i.length;c++)o=i[c],u.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return u.O(l)},n=self.webpackChunkrpldy=self.webpackChunkrpldy||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),u.O(void 0,[429],(function(){return u("SKjz")})),u.O(void 0,[429],(function(){return u("E88u")})),u.O(void 0,[429],(function(){return u("Vmq3")})),u.O(void 0,[429],(function(){return u("rBBy")})),u.O(void 0,[429],(function(){return u("DJz1")})),u.O(void 0,[429],(function(){return u("LC/c")}));var i=u.O(void 0,[429],(function(){return u("nToW")}));return u.O(i)}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.rpldy=t(require("react"),require("react-dom")):e.rpldy=t(e.react,e["react-dom"])}(self,(function(e,t){return function(){var n,r={douX:function(e,t,n){"use strict";n.d(t,{uZ:function(){return S},ZP:function(){return E}});var r=n("lOYm"),o=(0,r.ZV)({allowRegisterNonExistent:!0,canAddEvents:!0,canRemoveEvents:!0,collectStats:!1});const a=Symbol.for("__le__"),s=Symbol.for("__le__pack__"),u=e=>e?e[a]:null,i=e=>{const t=u(e);if(!t)throw new Error("Didnt find LE internal object. Something very bad happened!");return t},c=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];((e,t)=>{if(!(0,r.mf)(e))throw new Error("'cb' is not a valid function")})(n);const a=i(e);if(!a.options.allowRegisterNonExistent&&!~a.events.indexOf(t))throw new Error(`Cannot register for event ${t.toString()} that wasn't already defined (allowRegisterNonExistent = false)`);const s=a.registry[t]||[];return s.find((e=>e.cb===n))||(s.push({name:t,cb:n,once:o}),a.registry[t]=s),()=>b.call(e,t,n)},d=(e,t)=>{const n=i(e).registry;return t?n[t]?n[t].slice():[]:Object.values(n).flat()},l={on:function(e,t){return c(this,e,t)},once:function(e,t){return c(this,e,t,!0)},off:b,getEvents:function(){return i(this).events.slice()}},f={trigger:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const a=d(this,e);let u;if(a.length){let t;1===n.length&&!0===n[0]?.[s]&&(t=n[0].resolve()),u=a.map((r=>{let o;return r.once&&g(this,e,r.cb),o=t?r.cb(...t):n.length?1===n.length?r.cb(n[0]):2===n.length?r.cb(n[0],n[1]):3===n.length?r.cb(n[0],n[1],n[2]):r.cb(...n):r.cb(),o})).filter((e=>!(void 0===e))).map((e=>(0,r.tI)(e)?e:Promise.resolve(e)))}return u&&(u.length?u:void 0)},addEvent:function(e){const t=i(this);if(!t.options.canAddEvents)throw new Error("Cannot add new events (canAddEvents = false)");if(~t.events.indexOf(e))throw new Error(`Event '${e}' already defined`);t.events.push(e)},removeEvent:function(e){const t=i(this);if(!t.options.canRemoveEvents)throw new Error("Cannot remove events (canRemoveEvents = false)");{const n=t.events.indexOf(e);t.events.splice(n,1)}},hasEvent:function(e){return!!~i(this).events.indexOf(e)},hasEventRegistrations:function(e){return!!d(this,e).length},assign:function(e){const t=i(this);return m(e,t.options,t.events,t.registry,t.stats),h(e)}},h=e=>Object.keys(f).reduce(((t,n)=>(t[n]=f[n].bind(e),t)),{target:e,...f}),p=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=i(e).registry;!r[t]||!n&&r[t].length||delete r[t]},g=(e,t,n)=>{const r=i(e).registry;r[t]&&(n?(r[t]=r[t].filter((e=>e.cb!==n)),p(e,t)):p(e,t,!0))};function b(e,t){g(this,e,t)}const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Object.defineProperties(e,{[a]:{value:Object.seal({registry:r,events:n,options:t,stats:o})},...Object.entries(l).reduce(((e,t)=>{let[n,r]=t;return e[n]={value:r},e}),{})})};var E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e||{},r={...o,...arguments.length>2?arguments[2]:void 0};return u(n)||m(n,r,t),h(n)},S=e=>{const t={resolve:()=>[].concat(e())};return Object.defineProperty(t,s,{value:!0,configurable:!1}),t}},QwcM:function(e,t,n){"use strict";n.d(t,{PF:function(){return a},Ch:function(){return o},ZP:function(){return h},KZ:function(){return l},lW:function(){return f}});var r=n("lOYm");const o="rpldy-sender";class a extends Error{constructor(e){super(`${e} didn't receive upload URL`),this.name="MissingUrlError"}}const s=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];"set"in e?e.set(t,...r):("delete"in e&&e.delete(t),e.append(t,...r))};const u=[200,201,202,203,204],i=(e,t,n,o,a)=>{let u;const i=a?.getRequestData?a.getRequestData(e,n):((e,t)=>{let n;if(t.sendWithFormData)r.kg.debugLog(`uploady.sender: sending ${e.length} item(s) as form data`),n=((e,t)=>{const n=new FormData;return t.params&&Object.entries(t.params).forEach((e=>{let[r,o]=e;(t.formDataAllowUndefined||void 0!==o)&&s(n,r,o)})),((e,t,n)=>{const o=1===t.length;t.forEach(((t,a)=>{const u=o?n.paramName:(0,r.mf)(n.formatGroupParamName)?n.formatGroupParamName(a,n.paramName):`${n.paramName}[${a}]`;t.file?s(e,u,t.file,t.file.name):t.url&&s(e,u,t.url)}))})(n,e,t),n})(e,t);else{if(e.length>1)throw new Error(`XHR Sender - Request without form data can only contain 1 item. received ${e.length}`);const t=e[0];r.kg.debugLog(`uploady.sender: sending item ${t.id} as request body`),n=t.file||t.url}return n})(e,n),c=function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,c=arguments.length>2?arguments[2]:void 0;const d=(0,r.TS)({...(0,r.ei)(n,["method","headers","withCredentials"]),preSend:t=>{t.upload.onprogress=t=>{t.lengthComputable&&o&&o(t,e.slice())}}},c),l=(0,r.WY)(a,s,d);return u=l.xhr,l},d=a?.preRequestHandler?a.preRequestHandler(c,e,t,n,o,a):c();return{url:t,count:e.length,pXhr:d,getXhr:()=>u,aborted:!1}},c=(e,t,n)=>{let r=e;const o=t?.["content-type"];if(n.forceJsonResponse||o?.includes("json"))try{r=JSON.parse(e)}catch{}return r},d=(e,t)=>e.pXhr.then((e=>(r.kg.debugLog("uploady.sender: received upload response ",e),((e,t)=>{const n=t.isSuccessfulCall?t.isSuccessfulCall(e):u.includes(e.status);return(0,r.tI)(n)?n:Promise.resolve(n)})(e,t).then((n=>{const o=n?r.FD.FINISHED:r.FD.ERROR,a=e.status,s=(0,r.k7)(e);return{status:a,state:o,response:{data:t.formatServerResponse?.(e.response,a,s)??c(e.response,s,t),headers:s}}}))))).catch((t=>{let n,o;return e.aborted?(n=r.FD.ABORTED,o="aborted"):(r.kg.debugLog("uploady.sender: upload failed: ",t),n=r.FD.ERROR,o=t),{error:!0,state:n,response:o,status:0}}));var l=e=>(t,n,s,u)=>{if(!n)throw new a(o);r.kg.debugLog("uploady.sender: sending file: ",{items:t,url:n,options:s});const c=i(t,n,s,u,e);return{request:d(c,s),abort:()=>(e=>{let t=!1;const{aborted:n,getXhr:o}=e,a=o();return!n&&a&&a.readyState&&4!==a.readyState&&(r.kg.debugLog(`uploady.sender: cancelling request with ${e.count} items to: ${e.url}`),a.abort(),e.aborted=!0,t=!0),t})(c),senderType:o}};const f=l();var h=f},lOYm:function(e,t,n){"use strict";n.d(t,{FG:function(){return i},FD:function(){return c},d9:function(){return T},Yc:function(){return U},ZV:function(){return y},$e:function(){return H},D8:function(){return I},Ym:function(){return d},kG:function(){return a()},mf:function(){return m()},PO:function(){return A},yv:function(){return v()},tI:function(){return D},sQ:function(){return E},kg:function(){return r},TS:function(){return R},k7:function(){return x},ei:function(){return k},WY:function(){return $},nK:function(){return _},P2:function(){return s.Z},tq:function(){return g},sc:function(){return L}});var r={};n.r(r),n.d(r,{debugLog:function(){return p},isDebugOn:function(){return f},setDebug:function(){return h}});var o=n("3lvE"),a=n.n(o),s=n("6dsl");const u="__rpldy-logger-debug__",i={PENDING:"pending",ADDED:"added",PROCESSING:"processing",UPLOADING:"uploading",CANCELLED:"cancelled",FINISHED:"finished",ABORTED:"aborted",ERROR:"error"},c={PENDING:"pending",ADDED:"added",UPLOADING:"uploading",CANCELLED:"cancelled",FINISHED:"finished",ERROR:"error",ABORTED:"aborted"};var d=()=>"object"==typeof window&&!!window.document;let l=null;const f=()=>("boolean"!=typeof l&&(l=d()&&("location"in window&&!!~window.location.search.indexOf("rpldy_debug=true")||!0===window[u])),!!l),h=e=>{d()&&(window[u]=e),l=!!e||null},p=function(){f()&&console.log(...arguments)};var g=function(e,t){const n=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new Promise(((n,o)=>{const a=e(t,...r);a&&a.length?Promise.all(a).catch(o).then((e=>e&&n(!!~e.findIndex((e=>!1===e))))):n(!1)}))};for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return t?n(t,...o):n},b=n("i6OA"),m=n.n(b),E=(e,t,n)=>{let r=!0;const o=(e=>{const t=[].concat(e);return e=>e.map((e=>t.map((t=>e[t])).join()))})(n);if(e&&t&&e.length===t.length){const n=o(e),a=o(t);r=!!n.find(((e,t)=>e!==a[t]))}return!r},S=n("1XoD"),v=n.n(S),y=e=>v()()?e:Object.freeze(e),A=e=>!!e&&"object"==typeof e&&("Object"===Object.getPrototypeOf(e)?.constructor.name||null===Object.getPrototypeOf(e));const O=e=>A(e)||Array.isArray(e),I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return n&&o.length&&o.forEach((r=>{r&&((e,t)=>{const n=Object.keys(e);return t.withSymbols?n.concat(Object.getOwnPropertySymbols(e)):n})(r,e).forEach((o=>{const a=r[o];e.predicate&&!e.predicate(o,a)||(void 0!==a||e.undefinedOverwrites)&&(O(a)?(void 0!==n[o]&&A(n[o])||(n[o]=Array.isArray(a)?[]:{}),t(n[o],a)):n[o]=a)}))})),n};return t};var R=I(),T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return O(e)?t(Array.isArray(e)?[]:{},e):e},k=(e,t)=>e&&Object.keys(e).reduce(((n,r)=>(~t.indexOf(r)&&(n[r]=e[r]),n)),{}),D=function(e){return!!e&&"object"==typeof e&&"function"==typeof e.then};const C=d()&&window.requestIdleCallback,w=C?window.requestIdleCallback:setTimeout,P=C?window.cancelIdleCallback:clearTimeout;var _=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=w(e,C?{timeout:t}:t);return()=>P(n)},F=function(e){return null==e},L=function(e,t){const n=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new Promise(((n,o)=>{const a=e(t,...r);a&&a.length?Promise.all(a).catch(o).then((e=>{let t;if(e)for(;F(t)&&e.length;)t=e.pop();n(F(t)?void 0:t)})):n()}))};for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return t?n(t,...o):n};const N=Symbol.for("__rpldy-bi__");let B=0;const H=e=>!("object"!=typeof e||!e.id||!e.batchId||!0!==e[N]);var U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=H(e);B+=r?0:1;let o={id:r&&e.id&&"string"==typeof e.id?e.id:`${t}.item-${B}`,batchId:t,state:n?c.PENDING:c.ADDED,uploadStatus:0,total:0,completed:0,loaded:0,recycled:r,previousBatch:r?e.batchId:null};Object.defineProperty(o,N,{value:!0,writable:!0});const a=r?e.file||e.url:e;if("string"==typeof a)o=((e,t)=>(e.url=t,e))(o,a);else{if(!(e=>e&&(e instanceof File||e instanceof Blob||!("object"!=typeof e||!e.name||!e.type)))(a))throw new Error("Unknown type of file added: "+typeof a);o=((e,t)=>(e.file=t,e))(o,a)}return o},G=class extends Promise{constructor(e,t){super(e),this.xhr=t}},x=e=>{let t;try{t=e.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n]=r,e}),{})}catch(t){p("uploady.request: failed to read response headers",e)}return t},$=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new XMLHttpRequest;return new G(((o,a)=>{r.onerror=()=>a(r),r.ontimeout=()=>a(r),r.onabort=()=>a(r),r.onload=()=>o(r),r.open(n?.method||"GET",e),((e,t)=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&e.setRequestHeader(n,t[n])}))})(r,n?.headers),r.withCredentials=!!n?.withCredentials,n?.preSend?.(r),r.send(t)}),r)}},i6OA:function(e){e.exports=function(e){return"function"==typeof e}},"1XoD":function(e){e.exports=function(){return!0}},"8YHe":function(e,t,n){"use strict";n.d(t,{ZP:function(){return h},$N:function(){return u},X3:function(){return s},Wg:function(){return f}});var r=n("lOYm");const o=Symbol.for("__rpldy-sstt-proxy__"),a=Symbol.for("__rpldy-sstt-state__"),s=e=>!(0,r.yv)()&&!!e&&!!~Object.getOwnPropertySymbols(e).indexOf(o),u=e=>Array.isArray(e)||(0,r.PO)(e)&&!(e=>(0,r.Ym)()&&e instanceof File||e.name&&e.size&&e.uri)(e),i=(0,r.D8)({withSymbols:!0,predicate:e=>e!==o&&e!==a}),c=e=>!!(0,r.yv)()||e[a].isUpdateable,d=(e,t)=>{(0,r.yv)()||(e[a].isUpdateable=t)},l=(e,t)=>{let n;return u(e)&&(s(e)||(e[o]=!0,n=new Proxy(e,t)),Object.keys(e).forEach((n=>{e[n]=l(e[n],t)}))),n||e},f=e=>s(e)?(0,r.d9)(e,i):e;var h=e=>{const t={set:(e,r,o)=>(c(n)&&(e[r]=l(o,t)),!0),get:(e,t)=>t===o?f(e):e[t],defineProperty:()=>{throw new Error("Simple State doesnt support defining property")},setPrototypeOf:()=>{throw new Error("Simple State doesnt support setting prototype")},deleteProperty:(e,t)=>(c(n)&&delete e[t],!0)};(0,r.yv)()||s(e)||Object.defineProperty(e,a,{value:{isUpdateable:!1},configurable:!0});const n=(0,r.yv)()?e:l(e,t);return{state:n,update:e=>{if(!(0,r.yv)()&&c(n))throw new Error("Can't call update on State already being updated!");try{d(n,!0),e(n)}finally{d(n,!1)}return n},unwrap:e=>e?f(e):s(n)?f(n):n}}},CUM4:function(e,t,n){"use strict";n.d(t,{FG:function(){return o.FG},WN:function(){return Q},FD:function(){return o.FD},PF:function(){return M.PF},tY:function(){return h},Ch:function(){return M.Ch},fZ:function(){return J},_s:function(){return ne},ZP:function(){return re},KZ:function(){return M.KZ},lW:function(){return M.lW}});var r=n("douX"),o=n("lOYm");const a=(e,t,n)=>(o.kg.debugLog(`abort: aborting ${e.state} item - `,e),n(e.id,{status:0,state:o.FD.ABORTED,response:"aborted"}),!0),s={[o.FD.UPLOADING]:(e,t)=>(o.kg.debugLog("abort: aborting uploading item - ",e),t[e.id]()),[o.FD.ADDED]:a,[o.FD.PENDING]:a},u=(e,t,n)=>{const r=e?.state,o=!!r&&s[r];return!!o&&o(e,t,n)},i=(e,t,n,r)=>u(t[e],n,r),c=(e,t)=>{let n=!1;return 0!==t&&t&&(n=e>=t),n},d=(e,t,n,r,a)=>{const s=Object.values(n).flat(),u=c(s.length,a.fastAbortThreshold);return o.kg.debugLog(`abort: doing abort-all (${u?"fast":"normal"} abort)`),u?(e=>{Object.values(e).forEach((e=>e()))})(t):s.forEach((n=>i(n,e,t,r))),{isFast:u}},l=(e,t,n,r,a,s)=>{const i=0===t.fastAbortThreshold?0:t.fastAbortThreshold||s.fastAbortThreshold,d=c(r[e.id].length,i);return o.kg.debugLog(`abort: doing abort-batch on: ${e.id} (${d?"fast":"normal"} abort)`),d?((e,t)=>{e.items.forEach((e=>{let{id:n}=e;return t[n]?.()}))})(e,n):e.items.forEach((e=>u(e,n,a))),{isFast:d}};var f=()=>e=>(e.update({abortAll:d,abortBatch:l,abortItem:i}),e);const h=(0,o.ZV)({BATCH_ADD:"BATCH-ADD",BATCH_START:"BATCH-START",BATCH_PROGRESS:"BATCH_PROGRESS",BATCH_FINISH:"BATCH-FINISH",BATCH_ABORT:"BATCH-ABORT",BATCH_CANCEL:"BATCH-CANCEL",BATCH_ERROR:"BATCH-ERROR",BATCH_FINALIZE:"BATCH-FINALIZE",ITEM_START:"FILE-START",ITEM_CANCEL:"FILE-CANCEL",ITEM_PROGRESS:"FILE-PROGRESS",ITEM_FINISH:"FILE-FINISH",ITEM_ABORT:"FILE-ABORT",ITEM_ERROR:"FILE-ERROR",ITEM_FINALIZE:"FILE-FINALIZE",REQUEST_PRE_SEND:"REQUEST_PRE_SEND",ALL_ABORT:"ALL_ABORT"}),p=(0,o.ZV)({ITEM_PROGRESS:"ITEM_PROGRESS",BATCH_PROGRESS:"BATCH_PROGRESS"}),g=[o.FD.FINISHED,o.FD.ERROR,o.FD.CANCELLED,o.FD.ABORTED];var b=n("8YHe");const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.updateState((e=>{const{batchId:r}=e.items[t]||{batchId:null};n&&delete e.items[t];const o=r?e.itemQueue[r].indexOf(t):-1;~o&&r&&e.itemQueue[r].splice(o,1);const a=e.activeIds.indexOf(t);~a&&e.activeIds.splice(a,1)}))},E=(e,t)=>!!e.getState().items[t],S=e=>g.includes(e.state),v=(0,o.D8)({undefinedOverwrites:!0}),y=(e,t,n,r,a,s)=>{const u=n(t),i=e.getState().batches[u[0].batchId].batchOptions,c=r?.(t,i)||t;return((e,t,n,r,a,s)=>(0,o.sc)(e.trigger,a,t,r).then((e=>(s?.(e),((e,t,n,r)=>{let a=n,s=t;if(r){if(o.kg.debugLog(`uploader.queue: REQUEST_PRE_SEND(${e}) event returned updated items/options`,r),r.items){if(r.items.length!==t.length||!(0,o.sQ)(r.items,t,["id","batchId","recycled"]))throw new Error(`REQUEST_PRE_SEND(${e}) event handlers must return same items with same ids`);s=r.items}r.options&&(a=v({},n,r.options))}return{items:s,options:a,cancelled:!1===r}})(a,n,r,e)))))(e,c,u,i,s,a).then((t=>(t.cancelled||((e,t)=>{if(t.items[0]&&e.getState().batches[t.items[0].batchId]){e.updateState((e=>{t.items.forEach((t=>{S(e.items[t.id])||(e.items[t.id]=t)})),e.batches[t.items[0].batchId].batchOptions=t.options}));const n=e.getState();t.items=t.items.map((e=>n.items[e.id])),t.options=n.batches[t.items[0].batchId].batchOptions}})(e,t),t)))},A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(o,a)=>y(o,a,t,n,r,e)},O=A(h.BATCH_START,(e=>e.items),null,(function(){let{batch:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{batch:!1};if(e)throw new Error("BATCH_START event handlers cannot update batch data. Only items & options")})),I=[o.FG.ADDED,o.FG.PROCESSING,o.FG.UPLOADING],R=[o.FG.ABORTED,o.FG.CANCELLED,o.FG.FINISHED,o.FG.ERROR],T=(e,t)=>e.batches[t].batch,k=(e,t)=>{const n=e.getState(),r=n.items[t];return n.batches[r.batchId]},D=(e,t)=>k(e,t).batch,C=(e,t)=>{const n=((e,t)=>T(e.getState(),t))(e,t);n.items.forEach((t=>{let{id:n}=t;return m(e,n,!0)}))},w=(e,t)=>{e.updateState((e=>{delete e.batches[t],delete e.itemQueue[t];const n=e.batchQueue.indexOf(t);~n&&e.batchQueue.splice(n,1);const r=e.batchesStartPending.indexOf(t);~r&&e.batchesStartPending.splice(r,1)}))},P=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.FG.FINISHED,a=arguments.length>4?arguments[4]:void 0;e.updateState((e=>{const n=T(e,t);n.state=r,a&&(n.additionalInfo=a)})),F(e,t,n),F(e,t,h.BATCH_FINALIZE)},_=(e,t)=>{o.kg.debugLog("uploady.uploader.batchHelpers: cancelling batch: ",t),P(e,t,h.BATCH_CANCEL,o.FG.CANCELLED),C(e,t),w(e,t)},F=(e,t,n)=>{const r=e.getState(),{batch:o,batchOptions:a}=r.batches[t],s=r.items,u={...(0,b.Wg)(o),items:o.items.map((e=>{let{id:t}=e;return(0,b.Wg)(s[t])}))};e.trigger(n,u,(0,b.Wg)(a))},L=(e,t)=>{const n=T(e.getState(),t);return I.includes(n.state)},N=e=>R.includes(e.state),B={[o.FD.PENDING]:null,[o.FD.ADDED]:h.ITEM_START,[o.FD.FINISHED]:h.ITEM_FINISH,[o.FD.ERROR]:h.ITEM_ERROR,[o.FD.CANCELLED]:h.ITEM_CANCEL,[o.FD.ABORTED]:h.ITEM_ABORT,[o.FD.UPLOADING]:h.ITEM_PROGRESS},H=e=>!!~g.indexOf(e.state);var U=(e,t,n)=>{t.forEach((t=>{const n=e.getState(),{id:r,info:a}=t;if(o.kg.debugLog("uploader.processor.queue: request finished for item - ",{id:r,info:a}),n.items[r]){e.updateState((e=>{const t=e.items[r];t.state=a.state,t.uploadResponse=a.response,t.uploadStatus=a.status,H(t)&&delete e.aborts[r]}));const t=e.getState().items[r];if(a.state===o.FD.FINISHED&&t.completed<100){const n=t.file?.size||0;e.handleItemProgress(t,100,n,n)}const{batchOptions:n}=k(e,r);B[t.state]&&e.trigger(B[t.state],t,n),H(t)&&(((e,t)=>{e.updateState((e=>{e.batches[t].finishedCounter+=1}))})(e,t.batchId),e.trigger(h.ITEM_FINALIZE,t,n))}m(e,r)})),(e=>{(0,o.nK)((()=>{const t=e.getState();Object.keys(t.batches).forEach((n=>{const{batch:r,finishedCounter:a}=t.batches[n],{orgItemCount:s}=r,u=N(r);s===a&&(u||100===r.completed||(e.updateState((e=>{const t=T(e,n);t.completed=100,t.loaded=t.items.reduce(((e,t)=>{let{loaded:n}=t;return e+n}),0)})),F(e,n,h.BATCH_PROGRESS)),e.updateState((e=>{e.currentBatch===n&&(e.currentBatch=null)})),o.kg.debugLog(`uploady.uploader.batchHelpers: cleaning up batch: ${r.id}`),u||P(e,n,h.BATCH_FINISH),C(e,n),w(e,n))}))}))})(e),n(e)};const G=A(h.REQUEST_PRE_SEND,(e=>e),((e,t)=>({items:e,options:t}))),x=e=>{let{allowedItems:t,cancelledResults:n,queue:r,items:a,ids:s,next:u}=e;const i=t.length?G(r,t):Promise.resolve();let c=n;return i.catch((e=>{o.kg.debugLog("uploader.queue: encountered error while preparing items for request",e),((e,t,n,r)=>{const a=n.map((t=>{let{id:n}=t;return{id:n,info:{status:0,state:o.FD.ERROR,response:e}}}));U(t,a,r)})(e,r,a,u)})).then((e=>{let t;return e&&(e.cancelled?c=s.map((()=>!0)):e.items.some((e=>S(e)))?o.kg.debugLog("uploader.queue: send data contains aborted items - not sending"):((e,t,n)=>{const{items:r,options:a}=t,s=e.getState().batches[r[0].batchId]?.batch;if(s){let t;try{t=e.sender.send(r,s,a)}catch(e){o.kg.debugLog("uploader.queue: sender failed with unexpected error",e),t={request:Promise.resolve({status:0,state:o.FD.ERROR,response:e.message}),abort:()=>!1,senderType:"exception-handler"}}const{request:u}=t;((e,t,n)=>{e.updateState((e=>{t.forEach((t=>{e.items[t.id].state=o.FD.UPLOADING,e.aborts[t.id]=n.abort}))}))})(e,r,t),u.then((t=>{const o=r.map((e=>({id:e.id,info:t})));U(e,o,n)}))}})(r,{items:e.items,options:e.options},u)),((e,t,n,r)=>{const a=n.map(((e,n)=>e?t[n].id:null)).filter(Boolean);if(a.length){const t=a.map((e=>({id:e,info:{status:0,state:o.FD.CANCELLED,response:"cancel"}})));U(e,t,r)}return!!a.length})(r,a,c,u)||(t=u(r)),t}))};const $=(e,t)=>e.getState().activeIds.flat().includes(t),q=e=>{let t;const n=(e=>{const t=e.getState(),n=t.itemQueue,[r,a]=(e=>{const t=e.getState(),n=t.itemQueue,r=t.items;let a=null,s=0,u=0,i=t.batchQueue[s];for(;i&&!a;){if(L(e,i))for(a=n[i][u];a&&($(e,a)||r[a].state!==o.FD.ADDED);)u+=1,a=n[i][u];a||(s+=1,i=t.batchQueue[s],u=0)}return a?[i,u]:null})(e)||[];let s,u=r&&~a?n[r][a]:null;if(u){const{batchOptions:e}=t.batches[r],n=e.maxGroupSize||0;s=e.grouped&&n>1?t.itemQueue[r].slice(a,a+n):[u]}return s})(e);if(n){const r=e.getCurrentActiveCount(),{concurrent:a=!1,maxConcurrent:s=0}=e.getOptions();(!r||a&&r<s)&&(o.kg.debugLog("uploader.processor: Processing next upload - ",{ids:n,currentCount:r}),t=((e,t)=>{let n;return((e,t)=>{const n=D(e,t);return e.getState().batchesStartPending.includes(n.id)})(e,t[0])?n=Promise.resolve(!0):(((e,t)=>{e.updateState((e=>{e.activeIds=e.activeIds.concat(t)}))})(e,t),n=((e,t)=>{const n=D(e,t);return e.getState().currentBatch!==n.id})(e,t[0])?((e,t)=>{const n=D(e,t);return e.updateState((e=>{e.batchesStartPending.push(n.id)})),O(e,n).then((r=>{let{cancelled:o}=r,a=!1;return e.updateState((e=>{const t=e.batchesStartPending.indexOf(n.id);e.batchesStartPending.splice(t,1)})),o||(a=!E(e,t),a||e.updateState((e=>{e.currentBatch=n.id}))),!o&&!a}))})(e,t[0]).then((n=>{let r=!n;return r&&(((e,t)=>{if(E(e,t)){const n=k(e,t),r=n?.batch.id;r?_(e,r):o.kg.debugLog(`uploady.uploader.batchHelpers: cancel batch called for batch already removed (item id = ${t})`)}})(e,t[0]),q(e)),r})).catch((n=>(o.kg.debugLog("uploader.processor: encountered error while preparing batch for request",n),((e,t,n)=>{const r=D(e,t),a=r.id;o.kg.debugLog("uploady.uploader.batchHelpers: failing batch: ",{batch:r}),P(e,a,h.BATCH_ERROR,o.FG.ERROR,n.message),C(e,a),w(e,a)})(e,t[0],n),q(e),!0))):Promise.resolve(!1)),n})(e,n).then((t=>{t||(((e,t,n)=>{const r=e.getState();let o=Object.values(r.items);o=o.filter((e=>t.includes(e.id)&&!S(e))),Promise.all(o.map((t=>{const{batchOptions:n}=k(e,t.id);return e.runCancellable(h.ITEM_START,t,n)}))).then((r=>{let a=r.map(((t,n)=>t?null:((e,t)=>{const n=t.getState().items[e];return n&&!S(n)?n:void 0})(o[n].id,e))).filter(Boolean);return{allowedItems:a,cancelledResults:r,queue:e,items:o,ids:t,next:n}})).then(x)})(e,n,q),a&&q(e))})))}return t};var Y=q;const j=e=>(t,n)=>U(e,[{id:t,info:n}],Y);var M=n("QwcM");const Z=()=>!0,Q=(0,o.ZV)({autoUpload:!0,clearPendingOnAdd:!1,inputFieldName:"file",concurrent:!1,maxConcurrent:2,grouped:!1,maxGroupSize:5,method:"POST",params:{},fileFilter:Z,forceJsonResponse:!1,withCredentials:!1,destination:{},send:null,sendWithFormData:!0,formDataAllowUndefined:!1,fastAbortThreshold:100});var z=()=>{const{trigger:e,target:t}=(0,r.ZP)({send:(t,n,r)=>{const a=r.destination,s=a?.url,u=(0,o.P2)((r=>((e,t,n,r)=>{((e,t,n,r,a)=>{e.forEach((e=>{o.kg.debugLog(`uploady.uploader.processor: file: ${e.id} progress event: loaded(${n}) - completed(${t})`),a(p.ITEM_PROGRESS,e,t,n,r)}))})(e,Math.min(n.loaded/n.total*100,100)/e.length,n.loaded/e.length,n.total,r),r(p.BATCH_PROGRESS,t)})(t,n,r,e)),50,!0);return((0,o.mf)(r.send)?r.send:M.ZP)(t,s,{method:a?.method||r.method||Q.method,paramName:a?.filesParamName||r.inputFieldName||"file",params:{...r.params,...a?.params},forceJsonResponse:r.forceJsonResponse,withCredentials:r.withCredentials,formatGroupParamName:r.formatGroupParamName,headers:a?.headers,sendWithFormData:r.sendWithFormData,formatServerResponse:r.formatServerResponse,formDataAllowUndefined:r.formDataAllowUndefined,isSuccessfulCall:r.isSuccessfulCall},u)}},Object.values(p));return t};const V=(0,o.Ym)()&&"FileList"in window,W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;return(0,o.yv)()||(t<3&&(0,b.X3)(e)?n=(0,b.Wg)(e):t<3&&(0,b.$N)(e)&&(n=Array.isArray(e)?e.map((e=>W(e,t+1))):Object.keys(e).reduce(((n,r)=>(n[r]=W(e[r],t+1),n)),{}))),n};let K=0;var X=(e,t,n,r)=>{const a=((e,t,n,r,a)=>{const{state:s,update:u}=(0,b.ZP)({itemQueue:{},batchQueue:[],currentBatch:null,batchesStartPending:[],batches:{},items:{},activeIds:[],aborts:{}}),i=()=>s,c=e=>{u(e)},d=e=>{if(s.items[e.id]&&!e.recycled)throw new Error(`Uploader queue conflict - item ${e.id} already exists`);e.recycled&&((e,t)=>{const{previousBatch:n}=t;if(t.recycled&&n&&e.getState().batches[n]){const{id:r}=D(e,t.id);r===n&&e.updateState((e=>{const n=T(e,r),o=n.items.findIndex((e=>{let{id:n}=e;return n===t.id}));~o&&n.items.splice(o,1)}))}})(f,e),c((t=>{t.items[e.id]=e}))},l=(e,n,r,o)=>{s.items[e.id]&&(c((t=>{const a=t.items[e.id];a.loaded=r,a.completed=n,a.total=o})),t(h.ITEM_PROGRESS,i().items[e.id]))};r.on(p.ITEM_PROGRESS,l),r.on(p.BATCH_PROGRESS,(e=>{const t=s.batches[e.id]?.batch.items;if(t){const[n,r]=t.reduce(((e,t)=>{let{id:n}=t;const{loaded:r,file:o}=s.items[n],a=o?.size||r||1;return e[0]+=r,e[1]+=a,e}),[0,0]);c((t=>{const o=t.batches[e.id].batch;o.total=r,o.loaded=n,o.completed=n/r})),F(f,e.id,h.BATCH_PROGRESS)}}));const f={uploaderId:a,getOptions:()=>e,getCurrentActiveCount:()=>s.activeIds.length,getState:i,updateState:c,trigger:t,runCancellable:function(e){if(!(0,o.mf)(n))throw new Error("Uploader queue - cancellable is of wrong type");for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return n(e,...r)},sender:r,handleItemProgress:l,clearAllUploads:()=>{f.updateState((e=>{e.itemQueue={},e.batchQueue=[],e.currentBatch=null,e.batches={},e.items={},e.activeIds=[]}))},clearBatchUploads:e=>{(0,o.nK)((()=>{o.kg.debugLog(`uploader.queue: started scheduled work to clear batch uploads (${e})`),i().batches[e]&&((e,t)=>{e.updateState((e=>{const{items:n}=T(e,t);delete e.batches[t],delete e.itemQueue[t];const r=e.batchQueue.indexOf(t);~r&&e.batchQueue.splice(r,1),e.currentBatch===t&&(e.currentBatch=null),n.forEach((t=>{let{id:n}=t;delete e.items[n];const r=e.activeIds.indexOf(n);~r&&e.activeIds.splice(r,1)}))}))})(f,e)}))}};return(0,o.Ym)()&&o.kg.isDebugOn()&&(window[`__rpldy_${a}_queue_state`]=f),{updateState:c,getState:f.getState,runCancellable:f.runCancellable,uploadBatch:(e,t)=>{t&&c((n=>{n.batches[e.id].batchOptions=t})),Y(f)},addBatch:(e,t)=>(c((n=>{n.batches[e.id]={batch:e,batchOptions:t,finishedCounter:0},n.batchQueue.push(e.id),n.itemQueue[e.id]=e.items.map((e=>{let{id:t}=e;return t}))})),e.items.forEach(d),T(s,e.id)),abortItem:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return((e,t)=>{const n=e.getOptions().abortItem;(0,o.kG)(!!n,"Abort Item method not provided yet abortItem was called");const r=e.getState();return n(t,r.items,r.aborts,j(e))})(f,...t)},abortBatch:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return((e,t)=>{const n=e.getOptions().abortBatch;(0,o.kG)(!!n,"Abort Batch method not provided yet abortItem was called");const r=e.getState(),a=r.batches[t],s=a?.batch;if(s&&!N(s)){P(e,t,h.BATCH_ABORT,o.FG.ABORTED);const{isFast:u}=n(s,a.batchOptions,r.aborts,r.itemQueue,j(e),e.getOptions());u&&e.clearBatchUploads(s.id)}})(f,...t)},abortAll:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(e=>{const t=e.getOptions().abortAll;(0,o.kG)(!!t,"Abort All method not provided yet abortAll was called"),e.trigger(h.ALL_ABORT);const n=e.getState(),{isFast:r}=t(n.items,n.aborts,n.itemQueue,j(e),e.getOptions());r&&e.clearAllUploads()})(f,...t)},clearPendingBatches:()=>{(e=>{const t=e.getState().batches;Object.keys(t).filter((e=>t[e].batch.state===o.FG.PENDING)).forEach((t=>{C(e,t),w(e,t)}))})(f)},uploadPendingBatches:e=>{((e,t)=>{e.updateState((e=>{Object.keys(e.batches).forEach((n=>{const r=e.batches[n],{batch:a,batchOptions:s}=r;a.state===o.FG.PENDING&&(a.items.forEach((e=>{e.state=o.FD.ADDED})),a.state=o.FG.ADDED,r.batchOptions=(0,o.TS)({},s,t))}))}))})(f,e),Y(f)},cancelBatch:e=>_(f,e.id)}})(n,e,t,z(),r);return{abortBatch:e=>{a.abortBatch(e)},abort:e=>{e?a.abortItem(e):a.abortAll()},addNewBatch:(e,t)=>((e,t,n)=>{K+=1;const r=`batch-${K}`,a=(e=>V&&e instanceof FileList||"[object FileList]"===e.toString())(e),s=Array.isArray(e)||a?e:[e],u=!n.autoUpload;return((e,t,n,r)=>{const a=r?Array.prototype.map.call(t,(e=>(0,o.$e)(e)?e.file||e.url:e)):[];return Promise.all(Array.prototype.map.call(t,((e,t)=>{const n=(r||Z)(a[t],t,a);return(0,o.tI)(n)?n.then((t=>!!t&&e)):!!n&&e}))).then((t=>t.filter(Boolean).map((t=>(0,o.Yc)(t,e,n)))))})(r,s,u,n.fileFilter).then((e=>({id:r,uploaderId:t,items:e,state:u?o.FG.PENDING:o.FG.ADDED,completed:0,loaded:0,orgItemCount:e.length,additionalInfo:null})))})(e,r,t).then((e=>{let n;if(e.items.length){const s=a.addBatch(e,t);n=a.runCancellable(h.BATCH_ADD,s,t).then((e=>(e?a.cancelBatch(s):(o.kg.debugLog(`uploady.uploader [${r}]: new items added - auto upload =\n ${String(t.autoUpload)}`,s.items),t.autoUpload&&a.uploadBatch(s)),s)))}else o.kg.debugLog(`uploady.uploader: no items to add. batch ${e.id} is empty. check fileFilter if this isn't intended`);return n||Promise.resolve(null)})),clearPendingBatches:()=>{a.clearPendingBatches()},processPendingBatches:e=>{a.uploadPendingBatches(e)}}},J=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.reduce(((e,t)=>t(e,...r)||e),e)}};const ee=Object.values(h);let te=0;var ne=e=>{te+=1;const t=`uploader-${te}`;let n=!1;const a={};o.kg.debugLog(`uploady.uploader: creating new instance (${t})`,{options:e,counter:te});let s=(e=>{return{...Q,...e,destination:e&&e.destination?(t=e.destination,{params:{},...t}):null};var t})(e);const u=()=>{p.clearPendingBatches()};let{trigger:i,target:c}=(0,r.ZP)({id:t,update:e=>(s=(0,o.TS)({},s,e),c),add:(e,t)=>{const n=(0,o.TS)({},s,t);return n.clearPendingOnAdd&&u(),p.addNewBatch(e,n).then((()=>{o.kg.debugLog("uploady.uploader: finished adding file data to be processed")}))},upload:e=>{p.processPendingBatches(e)},abort:e=>{p.abort(e)},abortBatch:e=>{p.abortBatch(e)},getOptions:()=>(0,o.d9)(s),clearPending:u,registerExtension:(e,t)=>{(0,o.kG)(n,"Uploady - uploader extensions can only be registered by enhancers"),(0,o.kG)(!a[e],"Uploady - uploader extension by this name [%s] already exists",e),o.kg.debugLog(`uploady.uploader: registering extension: ${e.toString()}`,t),a[e]=t},getExtension:e=>a[e]},ee,{canAddEvents:!1,canRemoveEvents:!1});const d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const a=(0,r.uZ)((()=>n.map(W)));return i(e,a)},l=(0,o.tq)(d),h=((e,t,n,r)=>{const o=t.enhancer?(a=t.enhancer,J(f(),a)):f();var a;r(!0);const s=o(e,n);return r(!1),s||e})(c,s,d,(e=>{n=e})),p=X(d,l,s,h.id);return(0,o.ZV)(h)},re=ne},F9ed:function(e,t,n){"use strict";n.r(t),n.d(t,{BATCH_STATES:function(){return i.FG},CHUNK_EVENTS:function(){return g},ChunkedUploady:function(){return k},DEFAULT_OPTIONS:function(){return i.WN},FILE_STATES:function(){return i.FD},MissingUrlError:function(){return i.PF},NoDomUploady:function(){return i.$V},UPLOADER_EVENTS:function(){return i.tY},Uploady:function(){return i.o_},UploadyContext:function(){return i.EB},XHR_SENDER_TYPE:function(){return i.Ch},assertContext:function(){return i.aI},composeEnhancers:function(){return i.fZ},createContextApi:function(){return i.Qn},createUploader:function(){return i._s},default:function(){return w},generateUploaderEventHook:function(){return i.q5},generateUploaderEventHookWithState:function(){return i.dP},getIsUploadOptionsComponent:function(){return i.Ve},getUploadyVersion:function(){return i.Hl},getXhrSend:function(){return i.KZ},logWarning:function(){return i.KE},markAsUploadOptionsComponent:function(){return i.zD},send:function(){return i.lW},useAbortAll:function(){return i.gG},useAbortBatch:function(){return i.sm},useAbortItem:function(){return i.HL},useAllAbortListener:function(){return i.pN},useBatchAbortListener:function(){return i.N_},useBatchAddListener:function(){return i.Vu},useBatchCancelledListener:function(){return i.ns},useBatchErrorListener:function(){return i.SY},useBatchFinalizeListener:function(){return i.pQ},useBatchFinishListener:function(){return i.XT},useBatchProgressListener:function(){return i.G9},useBatchStartListener:function(){return i.hz},useChunkFinishListener:function(){return C},useChunkStartListener:function(){return D},useFileInput:function(){return i.ei},useItemAbortListener:function(){return i.zJ},useItemCancelListener:function(){return i.An},useItemErrorListener:function(){return i.A9},useItemFinalizeListener:function(){return i.LA},useItemFinishListener:function(){return i.h_},useItemProgressListener:function(){return i.UT},useItemStartListener:function(){return i.J0},useRequestPreSend:function(){return i.fc},useUploadOptions:function(){return i.LN},useUploady:function(){return i.IV},useUploadyContext:function(){return i.uO},withBatchStartUpdate:function(){return i.zb},withRequestPreSendUpdate:function(){return i.GT}});var r=n("x6p9"),o=n("+TXh"),a=n.n(o),s=n("lOYm"),u=n("lo78"),i=n("k1yN"),c=n("QwcM");const d=(0,s.ZV)({chunked:!0,chunkSize:5242880,retries:0,parallel:1});let l=null;const f=(l=null,(0,s.Ym)()&&"Blob"in window&&(l=Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),!!l);class h extends Error{constructor(e){super(e),this.name="ChunkedSendError"}}var p=n("8YHe");const g=(0,s.ZV)({CHUNK_START:"CHUNK_START",CHUNK_FINISH:"CHUNK_FINISH"});const b=(e,t,n)=>t&&`bytes ${e.start}-${e.start+t.size-1}/${n.file.size}`,m=(0,s.D8)({undefinedOverwrites:!0});var E=(e,t,n,r,o)=>{if(e.data||t.updateState((()=>{e.data=((e,t,n)=>{const r=l?.call(e,t,n,e.type);return r&&(r.name=e.name,r.lastModified=e.lastModified),r})(n.file,e.start,e.end)})),!e.data)throw new h("chunk failure - failed to slice");const a=t.getState().url;s.kg.debugLog(`chunkedSender.sendChunk: about to send chunk ${e.id} [${e.start}-${e.end}] to: ${a||""}`);const u=((e,t,n,r,o)=>{const a=t.getState(),u=(0,p.Wg)(a.sendOptions),i={...u,headers:{...u.headers,"Content-Range":b(e,e.data,n)}},d=(0,s.Yc)(e.data,e.id),l=t=>{r(t,[e])},f=a.chunks.indexOf(e);return(0,s.sc)(o,g.CHUNK_START,{item:(0,p.Wg)(n),chunk:(0,s.ei)(e,["id","start","end","index","attempt"]),chunkItem:{...d},sendOptions:i,url:a.url,chunkIndex:f,remainingCount:a.chunks.length,totalCount:a.chunkCount,onProgress:r}).then((e=>{const t=!1===e;return t&&s.kg.debugLog(`chunkedSender.sendChunk: received false from CHUNK_START handler - skipping chunk ${f}, item ${n.id}`),t?{request:Promise.resolve({state:s.FD.FINISHED,response:"skipping chunk as instructed by CHUNK_START handler",status:200}),abort:()=>!0,senderType:"chunk-skipped-sender"}:(0,c.ZP)([d],e?.url||a.url,m({},i,e?.sendOptions),l)}))})(e,t,n,r,o);return{request:u.then((e=>{let{request:t}=e;return t})),abort:()=>(u.then((e=>{let{abort:t}=e;return t()})),!0),senderType:"chunk-passthrough-sender"}};const S=(e,t,n)=>{if(n instanceof h){const n=e.getState().lastChunkErrorData;t({state:s.FD.ERROR,response:{reason:"At least one chunk failed",chunkUploadResponse:n}})}else t({state:s.FD.ERROR,response:n.message})},v=(e,t,n,r)=>{e.updateState((e=>{e.finished=!0})),n({state:r,response:{results:e.getState().responses}})},y=(e,t,n,r,o,a)=>new Promise(((u,i)=>{try{const i=E(o,e,t,n,a);((e,t,n,r,o,a)=>(e.updateState((e=>{e.requests[n]={id:n,abort:r.abort}})),r.request.then((r=>{s.kg.debugLog(`chunkedSender: request finished for chunk: ${n} - `,r),e.updateState((e=>{delete e.requests[n]}));const u=e.getState().chunks,i=u.findIndex((e=>e.id===n));if(~i){if(r.state===s.FD.FINISHED){const n=u[i];e.updateState((e=>{e.chunks=e.chunks.slice(0,i).concat(e.chunks.slice(i+1))}));const c=n.end-n.start;a({loaded:c,total:t.file.size},[n]),o(g.CHUNK_FINISH,{chunk:(0,s.ei)(n,["id","start","end","index","attempt"]),item:(0,p.Wg)(t),uploadData:r})}else r.state!==s.FD.ABORTED&&e.updateState((e=>{e.chunks[i].attempt+=1,e.lastChunkErrorData={status:r.status,response:r.response}}));e.updateState((e=>{e.responses.push(r.response)}))}}))))(e,t,o.id,i,a,n).then((()=>{u(),((e,t,n)=>{const r=e.getState(),o=!r.chunks.length;return r.aborted?(s.kg.debugLog(`chunkedSender: chunked upload aborted for item: ${t.id}`),v(e,0,n,s.FD.ABORTED)):o&&!r.error&&(s.kg.debugLog(`chunkedSender: chunked upload finished for item: ${t.id}`,r.responses),v(e,0,n,s.FD.FINISHED)),o||r.error})(e,t,r)||A(e,t,n,r,a)}))}catch(e){i(e)}})),A=(e,t,n,r,o)=>{const a=e.getState();if(!a.finished&&!a.aborted){const s=Object.keys(a.requests).length;if(!s||a.parallel&&a.parallel>s){let a;try{a=(e=>{const t=e.getState(),n=[],r=Object.keys(t.requests),o=t.parallel||1;for(let e=0;e<t.chunks.length&&r.length<o&&n.length<o;e++){const o=t.chunks[e];if(!r.includes(o.id)){if(o.attempt&&!(o.attempt<t.retries))throw new h("chunk failure");n.push(o)}}return n})(e)}catch(t){S(e,r,t)}a&&a.forEach((a=>{y(e,t,n,r,a,o).catch((t=>{e.updateState((e=>{e.error=!0})),S(e,r,t)}))}))}}};var O=A;const I=(e,t,n,r)=>{const o=(r,o)=>{const a=((e,t,n,r)=>{e.updateState((e=>{e.uploaded[n]=Math.max(r,e.uploaded[n]||0)}));const o=e.getState(),a=Object.keys(o.uploaded).reduce(((e,t)=>e+o.uploaded[t]),o.startByte),s=t.file.size;return{loaded:Math.min(a,s),total:s}})(e,t,o[0].id,r.loaded);n(a,[t])};return{sendPromise:new Promise((n=>{O(e,t,o,n,r)})),abort:()=>((e,t)=>{s.kg.debugLog(`chunkedSender: aborting chunked upload for item: ${t.id}`);const n=e.getState();return n.finished||n.aborted||(Object.keys(n.requests).forEach((e=>{s.kg.debugLog(`chunkedSender: aborting chunk: ${e}`),n.requests[e].abort()})),e.updateState((e=>{e.aborted=!0}))),n.aborted})(e,t)}};var R=(e,t,n,r,o,a)=>{const u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{chunkSize:r}=t,o=n?e.file.size-n:e.file.size;if(o<=0)throw new h(`start byte ${n} is invalid. File size: ${e.file.size}`);const a=o<=r?1:Math.ceil(o/r);return new Array(a).fill(null).map(((t,o)=>{const a=r*o+(n||0);return{id:`${e.id}_chunk-${o}`,start:a,end:Math.min(a+r,e.file.size),data:null,attempt:0,uploaded:0,index:o}}))}(e,t,r.startByte),i=((e,t,n,r)=>{const{state:o,update:a}=(0,p.ZP)({finished:!1,aborted:!1,error:!1,uploaded:{},requests:{},responses:[],chunkCount:e.length,startByte:n.startByte||0,lastChunkErrorData:null,chunks:e,url:t,sendOptions:n,...r});return{getState:()=>o,updateState:e=>{a(e)}}})(u,n,r,t);s.kg.debugLog(`chunkedSender: created ${u.length} chunks for: ${e.file.name}`);const{sendPromise:c,abort:d}=I(i,e,o,a);return{request:c,abort:d,senderType:"rpldy-chunked-sender"}},T=e=>(t,n)=>{const r=((e,t)=>{const n=(e=>(0,s.TS)({},d,e))(e);return{send:(e,r,o,a)=>{let u;return!n.chunked||e.length>1||e[0].url||!e[0].file.size?(u=(0,c.ZP)(e,r,o,a),s.kg.debugLog("chunkedSender: sending items as normal, un-chunked requests")):(s.kg.debugLog("chunkedSender: sending file as a chunked request"),u=R(e[0],n,r,o,a,t)),u}}})(e,n);return s.kg.debugLog("chunkedSenderEnhancer: Created chunked-sender instance with options: ",e),t.update({send:r.send}),t};(0,u.KE)(f||!(0,s.Ym)(),"This browser doesn't support chunking. Consider using @rpldy/uploady instead");var k=e=>{const{chunked:t,chunkSize:n,retries:s,parallel:u,...c}=e,d=(0,o.useMemo)((()=>f?((e,t)=>{const n=T(e);return t?(0,i.fZ)(n,t):n})({chunked:t,chunkSize:n,retries:s,parallel:u},e.enhancer):void 0),[e.enhancer,t,n,s,u]);return a().createElement(i.ZP,(0,r.Z)({},c,{enhancer:d}))};const D=(0,u.q5)(g.CHUNK_START,!1),C=(0,u.q5)(g.CHUNK_FINISH,!1);var w=k},lo78:function(e,t,n){"use strict";n.d(t,{$V:function(){return x},EB:function(){return h},aI:function(){return p},Qn:function(){return f},q5:function(){return E},dP:function(){return m},Ve:function(){return G},Hl:function(){return i},KE:function(){return H},zD:function(){return U},gG:function(){return j},sm:function(){return Y},HL:function(){return q},pN:function(){return N},N_:function(){return R},Vu:function(){return S},ns:function(){return A},SY:function(){return O},pQ:function(){return I},XT:function(){return y},G9:function(){return T},hz:function(){return v},zJ:function(){return P},An:function(){return C},A9:function(){return w},LA:function(){return _},h_:function(){return D},UT:function(){return F},J0:function(){return k},fc:function(){return L},LN:function(){return $},IV:function(){return g},uO:function(){return g},zb:function(){return z},GT:function(){return Q}});var r=n("CUM4"),o=n("+TXh"),a=n.n(o),s=n("lOYm");const u=Symbol.for("_rpldy-version_"),i=()=>"1.6.1-rc.0",c=()=>(0,s.Ym)()?window:globalThis||process,d=()=>c()[u],l="Uploady - Context. File input isn't available",f=(e,t)=>{let n,r,o=!1;t?n=t:s.kg.debugLog("Uploady context - didn't receive input field ref - waiting for external ref");const a=()=>n?.current,d=()=>{const e=a();(0,s.kG)(e,l),e.removeEventListener("change",d);const t=r;r=null,f(e.files,t)},f=(t,n)=>{e.add(t,n)};return c()[u]=i(),{hasUploader:()=>!!e,getInternalFileInput:()=>(n&&(o=!0),n),setExternalFileInput:e=>{o=!0,n=e},getIsUsingExternalInput:()=>o,showFileUpload:e=>{const t=a();(0,s.kG)(t,l),r=e,t.removeEventListener("change",d),t.addEventListener("change",d),t.value="",t.click()},upload:f,processPending:t=>{e.upload(t)},clearPending:()=>{e.clearPending()},setOptions:t=>{e.update(t)},getOptions:()=>e.getOptions(),getExtension:t=>e.getExtension(t),abort:t=>{e.abort(t)},abortBatch:t=>{e.abortBatch(t)},on:(t,n)=>e.on(t,n),once:(t,n)=>e.once(t,n),off:(t,n)=>e.off(t,n)}};var h=a().createContext(null),p=e=>((0,s.kG)(!(()=>{const e=d();return!!e&&e!==i()})(),"Uploady - Valid UploadyContext not found.\nYou may be using packages of different Uploady versions. <Uploady> and all other packages using the context provider must be of the same version: %s",d()),(0,s.kG)(e&&e.hasUploader(),"Uploady - Valid UploadyContext not found. Make sure you render inside <Uploady>"),e),g=()=>p((0,o.useContext)(h));const b=(e,t)=>{const n=g(),{on:r,off:a}=n;(0,o.useEffect)((()=>(r(e,t),()=>{a(e,t)})),[e,t,r,a])},m=(e,t)=>(n,r)=>{const[a,u]=(0,o.useState)(null);let i=n,c=r;n&&!(0,s.mf)(n)&&(c=n,i=void 0);const d=(0,o.useCallback)((function(e){if(!c||e.id===c){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];u(t(e,...r)),(0,s.mf)(i)&&i(e,...r)}}),[i,c]);return b(e,d),a},E=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(n,r)=>{const a=(0,o.useCallback)((function(e){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return!n||t&&r&&e.id!==r?void 0:n(e,...a)}),[n,r]);b(e,a)}},S=E(r.tY.BATCH_ADD,!1),v=E(r.tY.BATCH_START),y=E(r.tY.BATCH_FINISH),A=E(r.tY.BATCH_CANCEL),O=E(r.tY.BATCH_ERROR),I=E(r.tY.BATCH_FINALIZE),R=E(r.tY.BATCH_ABORT),T=m(r.tY.BATCH_PROGRESS,(e=>({...e}))),k=E(r.tY.ITEM_START),D=E(r.tY.ITEM_FINISH),C=E(r.tY.ITEM_CANCEL),w=E(r.tY.ITEM_ERROR),P=E(r.tY.ITEM_ABORT),_=E(r.tY.ITEM_FINALIZE),F=m(r.tY.ITEM_PROGRESS,(e=>({...e}))),L=E(r.tY.REQUEST_PRE_SEND,!1),N=E(r.tY.ALL_ABORT,!1),B=Symbol.for("rpldy_component"),H=(e,t)=>{(0,s.yv)()||e||console.warn(t)},U=e=>{e[B]=!0},G=e=>!0===e[B]||!0===e.target?.[B]||!0===e.render?.[B];var x=e=>{const{listeners:t,debug:n,children:u,inputRef:i,...c}=e;s.kg.setDebug(!!n),s.kg.debugLog("@@@@@@ Uploady Rendering @@@@@@",e);const d=((e,t)=>{const n=(0,o.useMemo)((()=>(s.kg.debugLog("Uploady creating a new uploader instance",e),(0,r.ZP)(e))),[e.enhancer]);return n.update(e),(0,o.useEffect)((()=>(t&&(s.kg.debugLog("Uploady setting event listeners",t),Object.entries(t).forEach((e=>{let[t,r]=e;n.on(t,r)}))),()=>{t&&(s.kg.debugLog("Uploady removing event listeners",t),Object.entries(t).forEach((e=>{let[t,r]=e;return n.off(t,r)})))})),[t,n]),n})(c,t),l=(0,o.useMemo)((()=>f(d,i)),[d,i]);return a().createElement(h.Provider,{value:l},u)},$=e=>{const t=g();return e&&t.setOptions(e),t.getOptions()},q=()=>{const e=g();return(0,o.useCallback)((t=>e.abort(t)),[e])},Y=()=>{const e=g();return(0,o.useCallback)((t=>e.abortBatch(t)),[e])},j=()=>{const e=g();return(0,o.useCallback)((()=>e.abort()),[e])},M=n("x6p9");const Z=e=>{let{eventType:t,getIsValidEventData:n,getRequestData:r}=e;return e=>s=>{const u=g(),[i,c]=(0,o.useState)({updateRequest:null,requestData:null}),{id:d}=s;return(0,o.useLayoutEffect)((()=>{const e=function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return!0===n(d,...a)?new Promise((n=>{c({updateRequest:r=>{u.off(t,e),n(r)},requestData:r(...a)})})):void 0};return d&&u.on(t,e),()=>{d&&u.off(t,e)}}),[u,d]),a().createElement(e,(0,M.Z)({},s,i))}};var Q=Z({eventType:r.tY.REQUEST_PRE_SEND,getIsValidEventData:(e,t)=>{let{items:n}=t;return!!n.find((t=>t.id===e))},getRequestData:e=>{let{items:t,options:n}=e;return{items:t,options:n}}}),z=Z({eventType:r.tY.BATCH_START,getIsValidEventData:(e,t)=>t.id===e,getRequestData:(e,t)=>({batch:e,items:e.items,options:t})})},k1yN:function(e,t,n){"use strict";n.d(t,{FG:function(){return p.FG},WN:function(){return p.WN},FD:function(){return p.FD},PF:function(){return p.PF},$V:function(){return c.$V},tY:function(){return p.tY},o_:function(){return f},EB:function(){return c.EB},Ch:function(){return p.Ch},aI:function(){return c.aI},fZ:function(){return p.fZ},Qn:function(){return c.Qn},_s:function(){return p._s},ZP:function(){return g},q5:function(){return c.q5},dP:function(){return c.dP},Ve:function(){return c.Ve},Hl:function(){return c.Hl},KZ:function(){return p.KZ},KE:function(){return c.KE},zD:function(){return c.zD},lW:function(){return p.lW},gG:function(){return c.gG},sm:function(){return c.sm},HL:function(){return c.HL},pN:function(){return c.pN},N_:function(){return c.N_},Vu:function(){return c.Vu},ns:function(){return c.ns},SY:function(){return c.SY},pQ:function(){return c.pQ},XT:function(){return c.XT},G9:function(){return c.G9},hz:function(){return c.hz},ei:function(){return h},zJ:function(){return c.zJ},An:function(){return c.An},A9:function(){return c.A9},LA:function(){return c.LA},h_:function(){return c.h_},UT:function(){return c.UT},J0:function(){return c.J0},fc:function(){return c.fc},LN:function(){return c.LN},IV:function(){return c.IV},uO:function(){return c.uO},zb:function(){return c.zb},GT:function(){return c.GT}});var r=n("x6p9"),o=n("+TXh"),a=n.n(o),s=n("XYNb"),u=n.n(s),i=n("lOYm"),c=n("lo78");const d=(e,t,n)=>a().createElement("input",(0,r.Z)({},e,{name:t.inputFieldName,type:"file",ref:n})),l=(0,o.memo)((0,o.forwardRef)(((e,t)=>{let{container:n,noPortal:r,...o}=e;const a=(0,c.LN)(),s=n&&1===n.nodeType;return(0,i.kG)(s||!(0,i.Ym)(),"Uploady - Container for file input must be a valid dom element"),r?d(o,a,t):((e,t,n,r,o)=>e&&t?u().createPortal(d(n,r,o),e):null)(n,s,o,a,t)})));var f=e=>{const{multiple:t=!0,capture:n,accept:s,webkitdirectory:u,children:d,inputFieldContainer:f,customInput:h,fileInputId:p,noPortal:g=!1,...b}=e,m=h?null:f||((0,i.Ym)()?document.body:null),E=(0,o.useRef)();return a().createElement(c.$V,(0,r.Z)({},b,{inputRef:E}),h?null:a().createElement(l,{container:m,multiple:t,capture:n,accept:s,webkitdirectory:u?.toString(),style:{display:"none"},ref:E,id:p,noPortal:g}),d)};var h=e=>{const t=(0,c.uO)();return e&&t.setExternalFileInput(e),(0,o.useEffect)((()=>{if(e?.current&&"closest"in e.current){const n=e.current,r=t.getOptions();if(!r.destination||!r.destination.url){const e=(e=>{const t=e.closest("form");let n={filesParamName:e.getAttribute("name"),method:void 0,url:void 0};if(t){const e=t.getAttribute("method"),r=(e=>{const t=window.location;let n,r=e.getAttribute("action")||"";switch(r=r.replace(/\s/g,""),!0){case""===r:r=t.href;break;case r.startsWith("/"):r=`${t.protocol}//${t.host}${r}`;break;case!/:\/\//.test(r):n=t.pathname.split("/").slice(0,-1).concat("").join("/"),r=`${t.protocol}//${t.host}${n}${r}`}return r})(t);n.method=e?e.toUpperCase():void 0,n.url=r,i.kg.debugLog(`Uploady.useFileInput: using custom input's parent form url ${n.url} and method ${n.method||""}`)}return n})(n);t.setOptions({destination:e})}}}),[e,t]),e||t.getInternalFileInput()},p=n("CUM4"),g=f},"+TXh":function(t){"use strict";t.exports=e},XYNb:function(e){"use strict";e.exports=t}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e].call(n.exports,n,n.exports,a),n.exports}a.m=r,n=[],a.O=function(e,t,r,o){if(!t){var s=1/0;for(d=0;d<n.length;d++){t=n[d][0],r=n[d][1],o=n[d][2];for(var u=!0,i=0;i<t.length;i++)(!1&o||s>=o)&&Object.keys(a.O).every((function(e){return a.O[e](t[i])}))?t.splice(i--,1):(u=!1,o<s&&(s=o));if(u){n.splice(d--,1);var c=r();void 0!==c&&(e=c)}}return e}o=o||0;for(var d=n.length;d>0&&n[d-1][2]>o;d--)n[d]=n[d-1];n[d]=[t,r,o]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={145:0};a.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,s=n[0],u=n[1],i=n[2],c=0;if(s.some((function(t){return 0!==e[t]}))){for(r in u)a.o(u,r)&&(a.m[r]=u[r]);if(i)var d=i(a)}for(t&&t(n);c<s.length;c++)o=s[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(d)},n=self.webpackChunkrpldy=self.webpackChunkrpldy||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),a.O(void 0,[429],(function(){return a("douX")})),a.O(void 0,[429],(function(){return a("lOYm")})),a.O(void 0,[429],(function(){return a("QwcM")})),a.O(void 0,[429],(function(){return a("CUM4")})),a.O(void 0,[429],(function(){return a("lo78")})),a.O(void 0,[429],(function(){return a("k1yN")}));var s=a.O(void 0,[429],(function(){return a("F9ed")}));return a.O(s)}()}));
//# sourceMappingURL=rpldy-ui-core-chunked.umd.min.js.map
{
"version": "1.6.0",
"version": "1.6.1-rc.0",
"name": "@rpldy/chunked-uploady",

@@ -37,11 +37,11 @@ "description": "wrapper&context component to expose and provide react-uploady functionality with chunked upload support",

"dependencies": {
"@rpldy/chunked-sender": "^1.6.0",
"@rpldy/sender": "^1.6.0",
"@rpldy/shared": "^1.6.0",
"@rpldy/shared-ui": "^1.6.0",
"@rpldy/uploader": "^1.6.0",
"@rpldy/uploady": "^1.6.0"
"@rpldy/chunked-sender": "1.6.1-rc.0",
"@rpldy/sender": "1.6.1-rc.0",
"@rpldy/shared": "1.6.1-rc.0",
"@rpldy/shared-ui": "1.6.1-rc.0",
"@rpldy/uploader": "1.6.1-rc.0",
"@rpldy/uploady": "1.6.1-rc.0"
},
"devDependencies": {
"@rpldy/upload-button": "^1.6.0",
"@rpldy/upload-button": "1.6.1-rc.0",
"@storybook/addon-knobs": "^7.0.2",

@@ -53,3 +53,3 @@ "flow-bin": "^0.218.0"

},
"gitHead": "6dae5ef18f9a3cd103d58706e48e832c9a43aa98"
"gitHead": "20f9f1f650c21e577ab120f8543991dc4335c0bc"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc