Obi Vincent Fitness App: Metabolic Conditioning & Bodybuilding…
Obi Vincent
BREAKTHEMOULD
My goal for you is for you to join my app and do my workouts for YOU. Whether you want to get stronger physically or get some movement in to benefit your mental health - I want you to BREAKTHEMOULD for yourself. Get outside that comfort zone and have FUN doing it!
Start 7-day free trial
Step outside your comfort zone
What's inside
Programs designed for you
My workouts are built to help push you to achieve greatness. Change your body with exercises that will challenge you and strengthen you. Build muscle today with my unique blend of metabolic conditioning, bodybuilding, and functional training.
Start 7-day free trial
What's inside
Nutrition guide
Supplement your training with a nutrition guide and meal plan. Get healthy living tips and tricks, a grocery list, and even meal suggestions.
Start 7-day free trial
What's inside
Coaching & community
• Ask me questions directly
• Share your success with me
• Tell me what content you want to see
Start 7-day free trial
What's inside
Bonus features to help you succeed
Supplement information, shop my gear, nutrition tips, and more.
Start 7-day free trial
Exclusive programs
Crossliftr
2 programs, 9 weeks total
Strength and conditioning
For all fitness levels
Exclusive programs
Total Body Mobility
Strengthen your body and muscles
Conditioning and mobility training for knees, lower back, hamstrings, etc.
Great supplement to any workout to build flexibility
Exclusive programs
Gym Workouts
Bring my app to the gym to intensify your workouts
Total body and body part-focused
Dumbbells, barbells, bodybuilding, and more
Exclusive programs
Kettlebell Workouts
Workouts for total body strengthening
Minimal equipment required
For all skill levels
Recipes & meal plans
Obi Vincent's Nutrition Guide
Tips and tricks for healthy living and eating
Grocery list to take out the guesswork
Full meal plan, plus recipe recommendations
Stream and cast to all devices
Come join the #BreakTheMould squad
I am definitely super grateful that I came across your training App! I paid personal trainers, but ended up wasting my money. Also The nutrition guide helped me to understand controlling portion sizes and eating less unhealthy foods.
Ivan
CrossLifter vol 1 and vol 2 alternation. Bigger and leaner. Hard to combine both but the results won’t lie. #breaktheMOULD
Hugo
Amazing program
I would recommend this program to everyone. From beginner to advanced athlete. Mix of bodybuilding, conditioning, mobility it is great way how to work out without to have access to the gym.
Filip
I love it! Very diversified and challenging. The leg day is clearly one of the hardest workout I ever did!!!
Elliott
Great well rounded program.
I’ve been doing this program for 2 weeks now and I’ve really enjoyed it so far. It’s a great mix of functional strength training with some bodybuilding mixed in. I really appreciated the prescribed warm ups because that’s an area I tend to neglect. Thanks Obi - you’re a beast.
William
Bought this program after gyms closed again due to the ongoing circumstances caused by the virus. Although you may think it is difficult to get a good workout in with just dumbbells (or impossible to progress), this program will definitely change your mind! Would recommend for anyone looking to switch up their routine, even if they have access to a full gym.
Eashaan
Awesomely Challenging.
Great programs one day after another! Left me breathless couple of days and definite progress seen.
Kit
2 weeks in and loving it.
This is my 3rd programming I have purchased off Obi Vincent and I’m really loving it. I love the mix of functional fitness and good old fashioned bodybuilding. A couple of interesting things added to vol 4
Clive
I'm Obi, and this is my story
Obi Vincent (AKA ‘The Crossliftr’) is one of the UK’s leading fitness content creators who has developed a global appeal due to his unique blend of conditioning and bodybuilding training. Born in Nigeria, Obi moved to the UK at age 11 and was a self-professed introvert at school. A lack of sport combined with an unhealthy diet led Obi to gain weight during his teens; at his heaviest he weighed 100kg. At the age of 18, Obi decided to turn his life around and documented his reinvention via social media. Having personally experienced huge benefits from the change in his diet and adopting a disciplined training regimen, Obi decided to become a personal trainer with the intention of helping others better themselves. Obi’s online training methodology has now blossomed into a diverse online training program with hundreds of thousands of individuals following his daily workouts on Instagram, his videos on YouTube, his best-selling online programs, and now, his app. In addition to his focus on strength and conditioning, Obi is passionate about raising awareness of mental health issues, often documenting his own struggles to normalize the negative stigma often associated with mental health. Obi’s slogan ‘BREAKTHEMOULD’ is all about encouraging the global fitness community to step outside of their comfort zone and to have fun doing so.
Start 7-day free trial
Membership perks
Stay motivated
I post new workouts regularly so you can stay motivated and accountable. With all my offerings, you'll never get bored of your workout routine.
Easy-to-follow videos
Know you're training the right way with my easy-to-follow videos and simple instructions.
Community
Join my community to share your fitness journey, stay accountable, and connect with others.
Nutrition made simple
Learn exactly what to eat when, get grocery lists, and find out the foods that will keep you fueled and energized.
Workout programs
My workout programs are made for all fitness levels to help you achieve your goals.
Talk to me
Message me directly in the app to ask me any questions you may have and request your favorite content.
Connect with me on social
Frequently Asked Questions
How much does the app cost?
You can join my app and community FREE for the first 7 days. After that, you'll pay $14.99/month or $99.99/year.
Will this app really give me everything I need to succeed for only $14.99/month?
YES! For the low price of $14.99/month you'll receive
everything you need to reach your goals (weight loss, strength training,
bulk up, etc.). My app features workout programs and individual
exercises that you can perform at home or at the gym.
What makes your workout programs different? How do I know if they will work for me?
If you haven't had success with fitness apps in the past,
you may be skeptical about whether or not this will work for you. But I
guarantee you'll get the results you’re looking for and stay motivated
to keep going. Why? Because I will be there with you every step of the
way, giving you all the knowledge and expertise I’ve gathered over the
years!
I’m a beginner, will I be able to do your workouts?
My workouts are scalable to any fitness level. With video demonstrations & exercise descriptions, you’ll
never be left wondering how to do a move!
Do I need to purchase equipment to workout with you?
All of my workouts are minimal equipment. All you need is a few sets of dumbbells, long loop or tube resistance bands, a mini loop band and your bodyweight. Optional bench.
Do I need a gym membership?
This challenge has BOTH at home & gym workouts for EVERY workout!
Load more
tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(l)}update(e){var t,r;null!=this.el&&(null==(t=(r=i(this,p))[p])||t.call(r,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}e.exports=u},"aET+":function(e,t,r){var i,o,n={},s=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=i.apply(this,arguments)),o}),a=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,r){if("function"==typeof e)return e();if(void 0===t[e]){var i=a.call(this,e,r);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}}(),p=null,u=0,d=[],c=r("9tPo");function h(e,t){for(var r=0;r=0&&d.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var i=function(){0;return r.nc}();i&&(e.attrs.nonce=i)}return b(t,e.attrs),y(e,t),t}function b(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}function v(e,t){var r,i,o,n;if(t.transform&&e.css){if(!(n="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=n}if(t.singleton){var s=u++;r=p||(p=g(t)),i=P.bind(null,r,s,!1),o=P.bind(null,r,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),y(e,t),t}(t),i=S.bind(null,r,t),o=function(){m(r),r.href&&URL.revokeObjectURL(r.href)}):(r=g(t),i=k.bind(null,r),o=function(){m(r)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var r=f(e,t);return h(r,t),function(e){for(var i=[],o=0;o1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0;return this.substring(t,t+e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return this.substring(t-e.length,t)===e});var S="undefined"!=typeof self?self:e,B=S.fetch||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,i){var o=new XMLHttpRequest;if(o.open("get",e,!0),o.responseType="arraybuffer",o.onerror=i,t.headers)for(var n in t.headers)o.setRequestHeader(n,t.headers[n]);o.onload=function(){r({ok:o.status>=200&&o.status<300,status:o.status,arrayBuffer:function(){return Promise.resolve(o.response)}})},o.send(null)}))},D=function(e){var t=[];if(Object.defineProperties(t,{size:{get:function(){return this.length}},has:{value:function(e){return-1!==this.indexOf(e)}},add:{value:function(e){this.has(e)||this.push(e)}},delete:{value:function(e){if(this.has(e)){var t=this.indexOf(e);this.splice(t,1)}}}}),Array.isArray(e))for(var r=0;r=0}},{key:"delete",value:function(e){var t=this._keys.indexOf(e);return!(t<0||(delete this._map["map_"+e],this._keys.splice(t,1),0))}},{key:"keys",value:function(){return this._keys.slice(0)}},{key:"values",value:function(){var e=this;return this._keys.map((function(t){return e.get(t)}))}},{key:"entries",value:function(){var e=this;return this._keys.map((function(t){return[t,e.get(t)]}))}},{key:"forEach",value:function(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if(o(this,e),"boolean"==typeof n&&(this.le=n),Array.isArray(t)&&(t=new Uint8Array(t)),0===t)this.byteOffset=0,this.byteLength=0;else if(t instanceof ArrayBuffer){void 0===i&&(i=t.byteLength-r);var s=new DataView(t,r,i);this._swapDataView(s)}else if(t instanceof Uint8Array||t instanceof DataView||t instanceof e){void 0===i&&(i=t.byteLength-r),(r+=t.byteOffset)+i>t.byteOffset+t.byteLength&&R("Creating view outside of available memory in ArrayBuffer");var a=new DataView(t.buffer,r,i);this._swapDataView(a)}else if("number"==typeof t){var l=new DataView(new ArrayBuffer(t));this._swapDataView(l)}else R("Invalid input argument for BufferView: "+t)}return s(e,[{key:"_swapArrayBuffer",value:function(e){this._swapDataView(new DataView(e))}},{key:"_swapBuffer",value:function(e){this._swapDataView(new DataView(e.buffer,e.byteOffset,e.byteLength))}},{key:"_swapDataView",value:function(e){this.dataView=e,this.buffer=e.buffer,this.byteOffset=e.byteOffset,this.byteLength=e.byteLength}},{key:"_lengthToEnd",value:function(e){return this.byteLength-e}},{key:"set",value:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;t instanceof DataView||t instanceof e?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t instanceof Uint8Array||R("BufferView.set(): Invalid data argument.");var o=this.toUint8();return o.set(t,r),new i(this,r,t.byteLength)}},{key:"subarray",value:function(t,r){return new e(this,t,r=r||this._lengthToEnd(t))}},{key:"toUint8",value:function(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}},{key:"getUint8Array",value:function(e,t){return new Uint8Array(this.buffer,this.byteOffset+e,t)}},{key:"getString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,r=this.getUint8Array(e,t);return N(r)}},{key:"getLatin1String",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,r=this.getUint8Array(e,t);return M(r)}},{key:"getUnicodeString",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.byteLength,r=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt16(e,t)}},{key:"getInt32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getInt32(e,t)}},{key:"getUint16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint16(e,t)}},{key:"getUint32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getUint32(e,t)}},{key:"getFloat32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}},{key:"getFloat64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}},{key:"getFloat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat32(e,t)}},{key:"getDouble",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.le;return this.dataView.getFloat64(e,t)}},{key:"getUintBytes",value:function(e,t,r){switch(t){case 1:return this.getUint8(e,r);case 2:return this.getUint16(e,r);case 4:return this.getUint32(e,r);case 8:return this.getUint64&&this.getUint64(e,r)}}},{key:"getUint",value:function(e,t,r){switch(t){case 8:return this.getUint8(e,r);case 16:return this.getUint16(e,r);case 32:return this.getUint32(e,r);case 64:return this.getUint64&&this.getUint64(e,r)}}},{key:"toString",value:function(e){return this.dataView.toString(e,this.constructor.name)}},{key:"ensureChunk",value:function(){}}],[{key:"from",value:function(t,r){return t instanceof this&&t.le===r?t:new e(t,void 0,void 0,r)}}]),e}();function H(e,t){R("".concat(e," '").concat(t,"' was not loaded, try using full build of exifr."))}var V=function(e){l(r,e);var t=m(r);function r(e){var i;return o(this,r),(i=t.call(this)).kind=e,i}return s(r,[{key:"get",value:function(e,t){return this.has(e)||H(this.kind,e),t&&(e in t||function(e,t){R("Unknown ".concat(e," '").concat(t,"'."))}(this.kind,e),t[e].enabled||H(this.kind,e)),g(p(r.prototype),"get",this).call(this,e)}},{key:"keyList",value:function(){return P(this.keys())}}]),r}(h(T)),W=new V("file parser"),$=new V("segment parser"),Y=new V("file reader");function G(e){return function(){for(var t=[],r=0;r1e4?Z(e,t,"base64"):F?ee(e,t,"url",Q):C?Z(e,t,"fs"):void R(te);var r}var ie=function(e){l(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"tagKeys",get:function(){return this.allKeys||(this.allKeys=P(this.keys())),this.allKeys}},{key:"tagValues",get:function(){return this.allValues||(this.allValues=P(this.values())),this.allValues}}]),r}(h(T));function oe(e,t,r){var i=new ie,o=r;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=P(o));for(var n=0;n0&&l.translateTagSet(n,l.pick);else if("object"==typeof n){if(l.enabled=!0,l.parse=!1!==n.parse,l.canBeFiltered){var p=n.pick,u=n.skip;p&&p.length>0&&l.translateTagSet(p,l.pick),u&&u.length>0&&l.translateTagSet(u,l.skip)}l.applyInheritables(n)}else!0===n||!1===n?l.parse=l.enabled=n:R("Invalid options argument: ".concat(n));return l}return s(r,[{key:"needed",get:function(){return this.enabled||this.deps.size>0}},{key:"applyInheritables",value:function(e){var t,r,i=be;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=P(i));for(var o=0;o0?(this.enabled=!0,Ie(this.pick,this.deps)):this.enabled&&this.pick.size>0&&Ie(this.pick,this.deps)}}]),r}(we),Pe={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},ke=I(),Se=function(e){l(r,e);var t=m(r);function r(e){var i;return o(this,r),i=t.call(this),!0===e?i.setupFromTrue():void 0===e?i.setupFromUndefined():Array.isArray(e)?i.setupFromArray(e):"object"==typeof e?i.setupFromObject(e):R("Invalid options argument ".concat(e)),void 0===i.firstChunkSize&&(i.firstChunkSize=F?i.firstChunkSizeBrowser:i.firstChunkSizeNode),i.mergeOutput&&(i.ifd1.enabled=!1),i.filterNestedSegmentTags(),i.traverseTiffDependencyTree(),i.checkLoadedPlugins(),i}return s(r,[{key:"setupFromUndefined",value:function(){var e,t=ce;Array.isArray(t)||("function"==typeof t.entries&&(t=t.entries()),t=P(t));for(var r=0;r3&&void 0!==arguments[3]?arguments[3]:r;if(e&&e.length){var o=i;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=P(o));for(var n=0;n0&&(t.errors=r),z(i=t)?void 0:i;var i}))}catch(e){return Promise.reject(e)}}},{key:"doParse",value:function(e,t){try{var r=this;return Te(r.fileParser.parse(),(function(){var i,o=b(r.parsers).map((i=function(t){return Te(t.parse(),(function(r){t.assignToOutput(e,r)}))},function(){for(var e=[],t=0;to+s?e.chunk=n.file.subarray(o,s):void 0===e.size?e.chunk=n.file.subarray(o):R("Segment unreachable: "+JSON.stringify(e))},r=function(){return e.chunk},(i=t())&&i.then?i.then(r):r()}))),this.extendOptions&&this.extendOptions(t),this.options=t,this.file=r,this.parsers=i}return s(e,[{key:"injectSegment",value:function(e,t){this.options[e].enabled&&this.createParser(e,t)}},{key:"createParser",value:function(e,t){var r=new($.get(e))(t,this.options,this.file);return this.parsers[e]=r}},{key:"createParsers",value:function(e){var t=e;Array.isArray(t)||("function"==typeof t.entries&&(t=t.entries()),t=P(t));for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;o(this,e),a(this,"errors",[]),a(this,"raw",I()),a(this,"handleError",(function(e){if(!r.options.silentErrors)throw e;r.errors.push(e.message)})),this.chunk=this.normalizeInput(t),this.file=n,this.type=this.constructor.type,this.globalOptions=this.options=i,this.localOptions=i[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}return s(e,[{key:"normalizeInput",value:function(e){return e instanceof q?e:new q(e)}},{key:"translate",value:function(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}},{key:"output",get:function(){return this.translated?this.translated:this.raw?x(this.raw):void 0}},{key:"translateBlock",value:function(e,t){var r=le.get(t),i=ae.get(t),o=se.get(t),n=this.options[t],s=n.reviveValues&&!!r,a=n.translateValues&&!!i,l=n.translateKeys&&!!o,p={},u=e;Array.isArray(u)||("function"==typeof u.entries&&(u=u.entries()),u=P(u));for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:{},r=new Se(a({},this.type,t)),i=new this(e,r);return i.parse()}}]),e}();function Me(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Le(){}function Ne(e,t){if(!t)return e&&e.then?e.then(Le):Promise.resolve()}function qe(e){var t=e();if(t&&t.then)return t.then(Le)}function He(e,t){var r=e();return r&&r.then?r.then(t):t(r)}function Ve(e,t,r){if(!e.s){if(r instanceof We){if(!r.s)return void(r.o=Ve.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(Ve.bind(null,e,t),Ve.bind(null,e,2));e.s=t,e.v=r;var i=e.o;i&&i(e)}}a(je,"headerLength",4),a(je,"type",void 0),a(je,"multiSegment",!1),a(je,"canHandle",(function(){return!1}));var We=function(){function e(){}return e.prototype.then=function(t,r){var i=new e,o=this.s;if(o){var n=1&o?t:r;if(n){try{Ve(i,1,n(this.v))}catch(e){Ve(i,2,e)}return i}return this}return this.o=function(e){try{var o=e.v;1&e.s?Ve(i,1,t?t(o):o):r?Ve(i,1,r(o)):Ve(i,2,o)}catch(e){Ve(i,2,e)}},i},e}();function $e(e){return e instanceof We&&1&e.s}function Ye(e,t,r){for(var i;;){var o=e();if($e(o)&&(o=o.v),!o)return n;if(o.then){i=0;break}var n=r();if(n&&n.then){if(!$e(n)){i=1;break}n=n.s}if(t){var s=t();if(s&&s.then&&!$e(s)){i=2;break}}}var a=new We,l=Ve.bind(null,a,2);return(0===i?o.then(u):1===i?n.then(p):s.then(d)).then(void 0,l),a;function p(i){n=i;do{if(t&&(s=t())&&s.then&&!$e(s))return void s.then(d).then(void 0,l);if(!(o=e())||$e(o)&&!o.v)return void Ve(a,1,n);if(o.then)return void o.then(u).then(void 0,l);$e(n=r())&&(n=n.v)}while(!n||!n.then);n.then(p).then(void 0,l)}function u(e){e?(n=r())&&n.then?n.then(p).then(void 0,l):p(n):Ve(a,1,n)}function d(){(o=e())?o.then?o.then(u).then(void 0,l):u(o):Ve(a,1,n)}}function Ge(e){return 192===e||194===e||196===e||219===e||221===e||218===e||254===e}function Xe(e){return e>=224&&e<=239}function Ke(e,t,r){var i=$;Array.isArray(i)||("function"==typeof i.entries&&(i=i.entries()),i=P(i));for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;try{var r=this;r.setupSegmentFinderArgs(t);var i=r.file,o=r.findAll,n=r.wanted,s=r.remaining;return He((function(){if(!o&&r.file.chunked)return o=P(n).some((function(e){var t=$.get(e),i=r.options[e];return t.multiSegment&&i.multiSegment})),qe((function(){if(o)return Ne(r.file.readWhole())}))}),(function(){var t=!1;if(e=r.findAppSegmentsInRange(e,i.byteLength),!r.options.onlyTiff)return function(){if(i.chunked){var o=!1;return Ye((function(){return!t&&s.size>0&&!o&&(!!i.canReadNextChunk||!!r.unfinishedMultiSegment)}),void 0,(function(){var n=i.nextChunkOffset,s=r.appSegments.some((function(e){return!r.file.available(e.offset||e.start,e.length||e.size)}));return He((function(){return Me(e>n&&!s?i.readNextChunk(e):i.readNextChunk(n),(function(e){o=!e}))}),(function(){void 0===(e=r.findAppSegmentsInRange(e,i.byteLength))&&(t=!0)}))}))}}()}))}catch(e){return Promise.reject(e)}}},{key:"findAppSegmentsInRange",value:function(e,t){t-=2;for(var r,i,o,n,s,a,l=this.file,p=this.findAll,u=this.wanted,d=this.remaining,c=this.options;et.byteLength&&R("IFD0 offset points to outside of file.\nthis.ifd0Offset: ".concat(e.ifd0Offset,", file.byteLength: ").concat(t.byteLength)),et((function(){if(t.tiff)return Ze(t.ensureChunk(e.ifd0Offset,j(e.options)))}),(function(){var t=e.parseBlock(e.ifd0Offset,"ifd0");if(0!==t.size)return e.exifOffset=t.get(34665),e.interopOffset=t.get(de),e.gpsOffset=t.get(34853),e.xmp=t.get(700),e.iptc=t.get(33723),e.icc=t.get(34675),e.options.sanitize&&(t.delete(34665),t.delete(de),t.delete(34853),t.delete(700),t.delete(33723),t.delete(34675)),t}))}catch(e){return Promise.reject(e)}}},{key:"parseExifBlock",value:function(){try{var e=this;if(e.exif)return;return et((function(){if(!e.ifd0)return Ze(e.parseIfd0Block())}),(function(){if(void 0!==e.exifOffset)return et((function(){if(e.file.tiff)return Ze(e.file.ensureChunk(e.exifOffset,j(e.options)))}),(function(){var t=e.parseBlock(e.exifOffset,"exif");return e.interopOffset||(e.interopOffset=t.get(de)),e.makerNote=t.get(pe),e.userComment=t.get(ue),e.options.sanitize&&(t.delete(de),t.delete(pe),t.delete(ue)),e.unpack(t,41728),e.unpack(t,41729),t}))}))}catch(e){return Promise.reject(e)}}},{key:"unpack",value:function(e,t){var r=e.get(t);r&&1===r.length&&e.set(t,r[0])}},{key:"parseGpsBlock",value:function(){try{var e=this;if(e.gps)return;return et((function(){if(!e.ifd0)return Ze(e.parseIfd0Block())}),(function(){if(void 0!==e.gpsOffset){var t=e.parseBlock(e.gpsOffset,"gps");return t&&t.has(2)&&t.has(4)&&(t.set("latitude",it.apply(void 0,t.get(2).concat([t.get(1)]))),t.set("longitude",it.apply(void 0,t.get(4).concat([t.get(3)])))),t}}))}catch(e){return Promise.reject(e)}}},{key:"parseInteropBlock",value:function(){try{var e=this;if(e.interop)return;return et((function(){if(!e.ifd0)return Ze(e.parseIfd0Block())}),(function(){return et((function(){if(void 0===e.interopOffset&&!e.exif)return Ze(e.parseExifBlock())}),(function(){if(void 0!==e.interopOffset)return e.parseBlock(e.interopOffset,"interop")}))}))}catch(e){return Promise.reject(e)}}},{key:"parseThumbnailBlock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{var t=this;if(t.ifd1||t.ifd1Parsed)return;if(t.options.mergeOutput&&!e)return;return t.findIfd1Offset(),t.ifd1Offset>0&&(t.parseBlock(t.ifd1Offset,"ifd1"),t.ifd1Parsed=!0),t.ifd1}catch(e){return Promise.reject(e)}}},{key:"extractThumbnail",value:function(){try{var e=this;return e.headerParsed||e.parseHeader(),et((function(){if(!e.ifd1Parsed)return Ze(e.parseThumbnailBlock(!0))}),(function(){if(void 0!==e.ifd1){var t=e.ifd1.get(513),r=e.ifd1.get(514);return e.chunk.getUint8Array(t,r)}}))}catch(e){return Promise.reject(e)}}},{key:"image",get:function(){return this.ifd0}},{key:"thumbnail",get:function(){return this.ifd1}},{key:"createOutput",value:function(){var e,t,r,i={},o=ye;Array.isArray(o)||("function"==typeof o.entries&&(o=o.entries()),o=P(o));for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:I(),i=this.options[t],o=i.pick,n=i.skip,s=(o=D(o)).size>0,a=0===n.size,l=this.chunk.getUint16(e);e+=2;for(var p=0;p13)&&R("Invalid TIFF value type. block: ".concat(r.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(n,", offset ").concat(e)),e>o.byteLength&&R("Invalid TIFF value offset. block: ".concat(r.toUpperCase(),", tag: ").concat(t.toString(16),", type: ").concat(n,", offset ").concat(e," is outside of chunk size ").concat(o.byteLength)),1===n)return o.getUint8Array(e,s);if(2===n)return""===(i=function(e){for(;e.endsWith("\0");)e=e.slice(0,-1);return e}(i=o.getString(e,s)).trim())?void 0:i;if(7===n)return o.getUint8Array(e,s);if(1===s)return this.parseTagValue(n,e);for(var l=new(function(e){switch(e){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 10:return Array;case 11:return Float32Array;case 12:return Float64Array;default:return Array}}(n))(s),p=a,u=0;uthis.byteLength){var n=this._extend(o).dataView;this._swapDataView(n)}}}},{key:"_extend",value:function(e){var t;t=E?_.allocUnsafe(e):new Uint8Array(e);var r=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:r}}},{key:"subarray",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=t||this._lengthToEnd(e),i&&this._tryExtend(e,t),this.ranges.add(e,t),g(p(r.prototype),"subarray",this).call(this,e,t)}},{key:"set",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i&&this._tryExtend(t,e.byteLength,e);var o=g(p(r.prototype),"set",this).call(this,e,t);return this.ranges.add(t,o.byteLength),o}},{key:"ensureChunk",value:function(e,t){try{var r=this;if(!r.chunked)return;if(r.ranges.available(e,t))return;return function(e,t){return e&&e.then?e.then(St):Promise.resolve()}(r.readChunk(e,t))}catch(e){return Promise.reject(e)}}},{key:"available",value:function(e,t){return this.ranges.available(e,t)}}]),r}(q),Dt=function(){function e(){o(this,e),a(this,"list",[])}return s(e,[{key:"length",get:function(){return this.list.length}},{key:"add",value:function(e,t){var r=e+t,i=this.list.filter((function(t){return It(e,t.offset,r)||It(e,t.end,r)}));if(i.length>0){e=Math.min.apply(Math,[e].concat(i.map((function(e){return e.offset})))),t=(r=Math.max.apply(Math,[r].concat(i.map((function(e){return e.end})))))-e;var o=i.shift();o.offset=e,o.length=t,o.end=r,this.list=this.list.filter((function(e){return!i.includes(e)}))}else this.list.push({offset:e,length:t,end:r})}},{key:"available",value:function(e,t){var r=e+t;return this.list.some((function(t){return t.offset<=e&&r<=t.end}))}}]),e}();function It(e,t,r){return e<=t&&t<=r}function Tt(){}function At(e,t){if(!t)return e&&e.then?e.then(Tt):Promise.resolve()}function Ft(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var Ot=function(e){l(r,e);var t=m(r);function r(){return o(this,r),t.apply(this,arguments)}return s(r,[{key:"readWhole",value:function(){try{var e=this;return e.chunked=!1,Ft(K(e.input),(function(t){e._swapArrayBuffer(t)}))}catch(e){return Promise.reject(e)}}},{key:"readChunked",value:function(){return this.chunked=!0,this.size=this.input.size,g(p(r.prototype),"readChunked",this).call(this)}},{key:"_readChunk",value:function(e,t){try{var r=this,i=t?e+t:void 0,o=r.input.slice(e,i);return Ft(K(o),(function(t){return r.set(t,e,!0)}))}catch(e){return Promise.reject(e)}}}]),r}(function(e){l(r,e);var t=m(r);function r(e,i){var n;return o(this,r),a(f(n=t.call(this,0)),"chunksRead",0),n.input=e,n.options=i,n}return s(r,[{key:"readWhole",value:function(){try{var e=this;return e.chunked=!1,At(e.readChunk(e.nextChunkOffset))}catch(e){return Promise.reject(e)}}},{key:"readChunked",value:function(){try{var e=this;return e.chunked=!0,At(e.readChunk(0,e.options.firstChunkSize))}catch(e){return Promise.reject(e)}}},{key:"readNextChunk",value:function(e){try{var t=this;if(void 0===e&&(e=t.nextChunkOffset),t.fullyRead)return t.chunksRead++,!1;var r=t.options.chunkSize;return i=t.readChunk(e,r),o=function(e){return!!e&&e.byteLength===r},i&&i.then||(i=Promise.resolve(i)),o?i.then(o):i}catch(e){return Promise.reject(e)}var i,o}},{key:"readChunk",value:function(e,t){try{var r=this;if(r.chunksRead++,0===(t=r.safeWrapAddress(e,t)))return;return r._readChunk(e,t)}catch(e){return Promise.reject(e)}}},{key:"safeWrapAddress",value:function(e,t){return void 0!==this.size&&e+t>this.size?Math.max(0,this.size-e):t}},{key:"nextChunkOffset",get:function(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}},{key:"canReadNextChunk",get:function(){return this.chunksRead{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;re.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?"&"+t:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}}},fGrZ:function(e,t,r){"use strict";const i=r("vIYU"),o=r("fSEz"),n=r("GTJm");e.exports=function(e,t){const r=[],s=[],a=e=>new Promise(i=>{if(e.isFile)e.file(t=>{t.relativePath=o(e),r.push(t),i()},e=>{t(e),i()});else if(e.isDirectory){const r=e.createReader();n(r,[],t,{onSuccess:e=>i(Promise.all(e.map(a)))})}});return i(e.items).forEach(e=>{const t=e.webkitGetAsEntry();t&&s.push(a(t))}),Promise.all(s).then(()=>r)}},"fHn/":function(e,t,r){"use strict";const{h:i,Component:o}=r("2mXy"),n=r("TSYQ"),s=r("oiTf"),a=r("gHdX"),l=r("g8Br"),p=r("2TfS"),u=r("CLiP");e.exports=class extends o{componentDidMount(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}shouldComponentUpdate(e){return!s(this.props,e)}componentDidUpdate(){const{file:e}=this.props;e.preview||this.props.handleRequestThumbnail(e)}componentWillUnmount(){const{file:e}=this.props;e.preview||this.props.handleCancelThumbnail(e)}render(){const{file:e}=this.props,t=e.progress.preprocess||e.progress.postprocess,r=e.progress.uploadComplete&&!t&&!e.error,o=e.progress.uploadStarted||t,s=e.progress.uploadStarted&&!e.progress.uploadComplete||t,d=e.error||!1,{isGhost:c}=e;let h=(this.props.individualCancellation||!s)&&!r;r&&this.props.showRemoveButtonAfterComplete&&(h=!0);const f=n({"uppy-Dashboard-Item":!0,"is-inprogress":s&&!this.props.recoveredState,"is-processing":t,"is-complete":r,"is-error":!!d,"is-resumable":this.props.resumableUploads,"is-noIndividualCancellation":!this.props.individualCancellation,"is-ghost":c});return i("div",{className:f,id:"uppy_"+e.id,role:this.props.role},i("div",{className:"uppy-Dashboard-Item-preview"},i(a,{file:e,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,i18n:this.props.i18n,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),i(l,{uppy:this.props.uppy,file:e,error:d,isUploaded:r,hideRetryButton:this.props.hideRetryButton,hideCancelButton:this.props.hideCancelButton,hidePauseResumeButton:this.props.hidePauseResumeButton,recoveredState:this.props.recoveredState,showRemoveButtonAfterComplete:this.props.showRemoveButtonAfterComplete,resumableUploads:this.props.resumableUploads,individualCancellation:this.props.individualCancellation,i18n:this.props.i18n})),i("div",{className:"uppy-Dashboard-Item-fileInfoAndButtons"},i(p,{file:e,id:this.props.id,acquirers:this.props.acquirers,containerWidth:this.props.containerWidth,i18n:this.props.i18n,toggleAddFilesPanel:this.props.toggleAddFilesPanel,toggleFileCard:this.props.toggleFileCard,metaFields:this.props.metaFields}),i(u,{file:e,metaFields:this.props.metaFields,showLinkToFileUploadResult:this.props.showLinkToFileUploadResult,showRemoveButton:h,canEditFile:this.props.canEditFile,uploadInProgressOrComplete:o,toggleFileCard:this.props.toggleFileCard,openFileEditor:this.props.openFileEditor,uppy:this.props.uppy,i18n:this.props.i18n})))}}},fSEz:function(e,t,r){"use strict";e.exports=function(e){return e.fullPath&&e.fullPath!=="/"+e.name?e.fullPath:null}},g8Br:function(e,t,r){"use strict";const{h:i}=r("2mXy");function o(e){return e.isUploaded?e.i18n("uploadComplete"):e.error?e.i18n("retryUpload"):e.resumableUploads?e.file.isPaused?e.i18n("resumeUpload"):e.i18n("pauseUpload"):e.individualCancellation?e.i18n("cancelUpload"):""}function n(e){return i("div",{className:"uppy-Dashboard-Item-progress"},i("button",{className:"uppy-u-reset uppy-Dashboard-Item-progressIndicator",type:"button","aria-label":o(e),title:o(e),onClick:()=>function(e){e.isUploaded||(!e.error||e.hideRetryButton?e.resumableUploads&&!e.hidePauseResumeButton?e.uppy.pauseResume(e.file.id):e.individualCancellation&&!e.hideCancelButton&&e.uppy.removeFile(e.file.id):e.uppy.retryUpload(e.file.id))}(e)},e.children))}function s(e){let{children:t}=e;return i("svg",{"aria-hidden":"true",focusable:"false",width:"70",height:"70",viewBox:"0 0 36 36",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--circle"},t)}function a(e){let{progress:t}=e;const r=2*Math.PI*15;return i("g",null,i("circle",{className:"uppy-Dashboard-Item-progressIcon--bg",r:"15",cx:"18",cy:"18","stroke-width":"2",fill:"none"}),i("circle",{className:"uppy-Dashboard-Item-progressIcon--progress",r:"15",cx:"18",cy:"18",transform:"rotate(-90, 18, 18)",fill:"none","stroke-width":"2","stroke-dasharray":r,"stroke-dashoffset":r-r/100*t}))}e.exports=function(e){return e.file.progress.uploadStarted?e.isUploaded?i("div",{className:"uppy-Dashboard-Item-progress"},i("div",{className:"uppy-Dashboard-Item-progressIndicator"},i(s,null,i("circle",{r:"15",cx:"18",cy:"18",fill:"#1bb240"}),i("polygon",{className:"uppy-Dashboard-Item-progressIcon--check",transform:"translate(2, 3)",points:"14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"})))):e.recoveredState?void 0:e.error&&!e.hideRetryButton?i(n,e,i("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-Item-progressIcon--retry",width:"28",height:"31",viewBox:"0 0 16 19"},i("path",{d:"M16 11a8 8 0 1 1-8-8v2a6 6 0 1 0 6 6h2z"}),i("path",{d:"M7.9 3H10v2H7.9z"}),i("path",{d:"M8.536.5l3.535 3.536-1.414 1.414L7.12 1.914z"}),i("path",{d:"M10.657 2.621l1.414 1.415L8.536 7.57 7.12 6.157z"}))):e.resumableUploads&&!e.hidePauseResumeButton?i(n,e,i(s,null,i(a,{progress:e.file.progress.percentage}),e.file.isPaused?i("polygon",{className:"uppy-Dashboard-Item-progressIcon--play",transform:"translate(3, 3)",points:"12 20 12 10 20 15"}):i("g",{className:"uppy-Dashboard-Item-progressIcon--pause",transform:"translate(14.5, 13)"},i("rect",{x:"0",y:"0",width:"2",height:"10",rx:"0"}),i("rect",{x:"5",y:"0",width:"2",height:"10",rx:"0"})))):e.resumableUploads||!e.individualCancellation||e.hideCancelButton?i("div",{className:"uppy-Dashboard-Item-progress"},i("div",{className:"uppy-Dashboard-Item-progressIndicator"},i(s,null,i(a,{progress:e.file.progress.percentage})))):i(n,e,i(s,null,i(a,{progress:e.file.progress.percentage}),i("polygon",{className:"cancel",transform:"translate(2, 2)",points:"19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"}))):null}},gHdX:function(e,t,r){"use strict";const{h:i}=r("2mXy"),o=r("OG1b"),n=r("tFvi"),s=r("DB1g");e.exports=function(e){return i("div",{className:"uppy-Dashboard-Item-previewInnerWrap",style:{backgroundColor:s(e.file.type).color}},e.showLinkToFileUploadResult&&e.file.uploadURL&&i("a",{className:"uppy-Dashboard-Item-previewLink",href:e.file.uploadURL,rel:"noreferrer noopener",target:"_blank","aria-label":e.file.meta.name},i("span",{hidden:!0},e.file.meta.name)),i(o,{file:e.file}),i(n,{file:e.file,i18n:e.i18n,toggleFileCard:e.toggleFileCard,metaFields:e.metaFields}))}},"hKI/":function(e,t,r){(function(t){var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,n=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,p=a||l||Function("return this")(),u=Object.prototype.toString,d=Math.max,c=Math.min,h=function(){return p.Date.now()};function f(e,t,r){var i,o,n,s,a,l,p=0,u=!1,f=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var r=i,n=o;return i=o=void 0,p=t,s=e.apply(n,r)}function v(e){return p=e,a=setTimeout(x,t),u?b(e):s}function w(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-p>=n}function x(){var e=h();if(w(e))return P(e);a=setTimeout(x,function(e){var r=t-(e-l);return f?c(r,n-(e-p)):r}(e))}function P(e){return a=void 0,g&&i?b(e):(i=o=void 0,s)}function k(){var e=h(),r=w(e);if(i=arguments,o=this,l=e,r){if(void 0===a)return v(l);if(f)return a=setTimeout(x,t),b(l)}return void 0===a&&(a=setTimeout(x,t)),s}return t=m(t)||0,y(r)&&(u=!!r.leading,n=(f="maxWait"in r)?d(m(r.maxWait)||0,t):n,g="trailing"in r?!!r.trailing:g),k.cancel=function(){void 0!==a&&clearTimeout(a),p=0,i=l=o=a=void 0},k.flush=function(){return void 0===a?s:P(h())},k}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var a=o.test(e);return a||n.test(e)?s(e.slice(2),a?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return y(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),f(e,t,{leading:i,maxWait:t,trailing:o})}}).call(this,r("yLpj"))},iEtb:function(e,t,r){(e.exports=r("I1BE")(!1)).push([e.i,".uppy-Root{position:relative;box-sizing:border-box;color:#333;font-family:-apple-system,blinkmacsystemfont,Segoe UI,helvetica,arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;line-height:1;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.uppy-Root[dir=rtl],[dir=rtl] .uppy-Root{text-align:right}.uppy-Root *,.uppy-Root :after,.uppy-Root :before{box-sizing:inherit}.uppy-Root [hidden]{display:none}.uppy-u-reset{top:auto;left:auto;z-index:auto;display:inline;float:none;clear:none;min-width:0;max-width:none;min-height:0;max-height:none;margin:0;padding:0;overflow:visible;overflow-x:visible;overflow-y:visible;color:inherit;font-weight:400;font-size:inherit;font-family:inherit;font-style:normal;font-variant:normal;font-stretch:normal;line-height:1;letter-spacing:normal;white-space:normal;text-align:left;text-transform:none;text-decoration:none;text-indent:0;text-shadow:none;vertical-align:baseline;-webkit-hyphens:none;hyphens:none;unicode-bidi:normal;list-style:none;empty-cells:show;background:none;border:none;border-radius:0;-o-border-image:none;border-image:none;border-collapse:separate;border-spacing:0;outline:medium none invert;box-shadow:none;transform:none;transform-origin:50% 50% 0;transform-style:flat;-webkit-backface-visibility:visible;backface-visibility:visible;visibility:visible;cursor:auto;opacity:1;transition:none 0s ease 0s;-webkit-appearance:none}[dir=rtl] .uppy-u-reset{text-align:right}.uppy-c-textInput{padding:6px 8px;font-size:14px;line-height:1.5;background-color:#fff;border:1px solid #ddd;border-radius:4px}.uppy-size--md .uppy-c-textInput{padding:8px 10px}.uppy-c-textInput:focus{border-color:rgba(34,117,215,.6);outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.15)}[data-uppy-theme=dark] .uppy-c-textInput{color:#eaeaea;background-color:#333;border-color:#333}[data-uppy-theme=dark] .uppy-c-textInput:focus{border-color:#525252;box-shadow:none}.uppy-c-icon{display:inline-block;max-width:100%;max-height:100%;overflow:hidden;fill:currentColor}.uppy-c-btn{display:inline-block;font-weight:500;font-size:16px;font-family:inherit;line-height:1;white-space:nowrap;vertical-align:middle;transition-duration:.3s;transition-property:background-color,color;-webkit-user-select:none;-moz-user-select:none;user-select:none}.uppy-c-btn,[dir=rtl] .uppy-c-btn{text-align:center}.uppy-c-btn:not(:disabled):not(.disabled){cursor:pointer}.uppy-c-btn::-moz-focus-inner{border:0}.uppy-c-btn-primary{padding:10px 18px;color:#fff;font-size:14px;background-color:#2275d7;border-radius:4px}.uppy-c-btn-primary:hover{background-color:#1b5dab}.uppy-c-btn-primary:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.4)}.uppy-size--md .uppy-c-btn-primary{padding:13px 22px}[data-uppy-theme=dark] .uppy-c-btn-primary{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-primary::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}.uppy-c-btn-link{padding:10px 15px;color:#525252;font-size:14px;line-height:1;background-color:transparent;border-radius:4px}.uppy-c-btn-link:hover{color:#333}.uppy-c-btn-link:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.25)}.uppy-size--md .uppy-c-btn-link{padding:13px 18px}[data-uppy-theme=dark] .uppy-c-btn-link{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-link:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-link::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-link:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}[data-uppy-theme=dark] .uppy-c-btn-link:hover{color:#939393}.uppy-c-btn--small{padding:7px 16px;font-size:.9em;border-radius:2px}.uppy-size--md .uppy-c-btn--small{padding:8px 10px;border-radius:2px}",""])},iMeS:function(e,t,r){"use strict";const{h:i}=r("2mXy"),o=r("TSYQ"),n=r("CYis"),s=r("pAVg"),{UploadBtn:a,RetryBtn:l,CancelBtn:p,PauseResumeButton:u,DoneBtn:d,ProgressBarProcessing:c,ProgressBarError:h,ProgressBarUploading:f,ProgressBarComplete:y}=r("zljW"),{STATE_ERROR:m,STATE_WAITING:g,STATE_PREPROCESSING:b,STATE_UPLOADING:v,STATE_POSTPROCESSING:w,STATE_COMPLETE:x}=n;e.exports=function(e){const{newFiles:t,allowNewUpload:r,isUploadInProgress:n,isAllPaused:P,resumableUploads:k,error:S,hideUploadButton:B,hidePauseResumeButton:D,hideCancelButton:I,hideRetryButton:T,recoveredState:A,uploadState:F,totalProgress:O,files:C,supportsUploadProgress:_,hideAfterFinish:E,isSomeGhost:U,isTargetDOMEl:z,doneButtonHandler:R,isUploadStarted:j,i18n:M,startUpload:L,uppy:N,isAllComplete:q,showProgressDetails:H,numUploads:V,complete:W,totalSize:$,totalETA:Y,totalUploadedSize:G}=e;const X=function(){switch(F){case w:case b:{const e=s(C);return"determinate"===e.mode?100*e.value:O}case m:return null;case v:return _?O:null;default:return O}}(),K=function(){if(A)return!1;switch(F){case g:return B||0===t;case x:return E;default:return!1}}(),Q=null!=X?X:100,J=!S&&t&&!n&&!P&&r&&!B,Z=!I&&F!==g&&F!==x,ee=k&&!D&&F===v,te=S&&!q&&!T,re=R&&F===x,ie=o("uppy-StatusBar-progress",{"is-indeterminate":function(){switch(F){case w:case b:{const{mode:e}=s(C);return"indeterminate"===e}case v:return!_;default:return!1}}()}),oe=o({"uppy-Root":z},"uppy-StatusBar","is-"+F,{"has-ghosts":U});return i("div",{className:oe,"aria-hidden":K},i("div",{className:ie,style:{width:Q+"%"},role:"progressbar","aria-label":Q+"%","aria-valuetext":Q+"%","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":X}),(()=>{switch(F){case b:case w:return i(c,{progress:s(C)});case x:return i(y,{i18n:M});case m:return i(h,{error:S,i18n:M,numUploads:V,complete:W});case v:return i(f,{i18n:M,supportsUploadProgress:_,totalProgress:O,showProgressDetails:H,isUploadStarted:j,isAllComplete:q,isAllPaused:P,newFiles:t,numUploads:V,complete:W,totalUploadedSize:G,totalSize:$,totalETA:Y,startUpload:L});default:return null}})(),i("div",{className:"uppy-StatusBar-actions"},A||J?i(a,{newFiles:t,isUploadStarted:j,recoveredState:A,i18n:M,isSomeGhost:U,startUpload:L,uploadState:F}):null,te?i(l,{i18n:M,uppy:N}):null,ee?i(u,{isAllPaused:P,i18n:M,isAllComplete:q,resumableUploads:k,uppy:N}):null,Z?i(p,{i18n:M,uppy:N}):null,re?i(d,{i18n:M,doneButtonHandler:R}):null))}},jhZi:function(e,t,r){"use strict";const{h:i,Component:o}=r("2mXy"),n=r("TSYQ"),{nanoid:s}=r("7isM"),a=r("DB1g"),l=r("li6z"),p=r("OG1b");e.exports=class extends o{constructor(e){super(e),this.form=document.createElement("form"),this.updateMeta=(e,t)=>{this.setState(r=>{let{formState:i}=r;return{formState:{...i,[t]:e}}})},this.handleSave=e=>{e.preventDefault();const t=this.props.fileCardFor;this.props.saveFileCard(this.state.formState,t)},this.handleCancel=()=>{this.props.toggleFileCard(!1)},this.saveOnEnter=e=>{if(13===e.keyCode){e.stopPropagation(),e.preventDefault();const t=this.props.files[this.props.fileCardFor];this.props.saveFileCard(this.state.formState,t.id)}},this.renderMetaFields=()=>{const e=this.getMetaFields()||[],t={text:"uppy-u-reset uppy-c-textInput uppy-Dashboard-FileCard-input"};return e.map(e=>{const r="uppy-Dashboard-FileCard-input-"+e.id,o=this.props.requiredMetaFields.includes(e.id);return i("fieldset",{key:e.id,className:"uppy-Dashboard-FileCard-fieldset"},i("label",{className:"uppy-Dashboard-FileCard-label",htmlFor:r},e.name),void 0!==e.render?e.render({value:this.state.formState[e.id],onChange:t=>this.updateMeta(t,e.id),fieldCSSClasses:t,required:o,form:this.form.id},i):i("input",{className:t.text,id:r,form:this.form.id,type:e.type||"text",required:o,value:this.state.formState[e.id],placeholder:e.placeholder,onKeyUp:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyDown:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onKeyPress:"form"in HTMLInputElement.prototype?void 0:this.saveOnEnter,onInput:t=>this.updateMeta(t.target.value,e.id),"data-uppy-super-focusable":!0}))})};const t=this.props.files[this.props.fileCardFor],r=this.getMetaFields()||[],o={};r.forEach(e=>{o[e.id]=t.meta[e.id]||""}),this.state={formState:o},this.form.id=s()}componentWillMount(){this.form.addEventListener("submit",this.handleSave),document.body.appendChild(this.form)}componentWillUnmount(){this.form.removeEventListener("submit",this.handleSave),document.body.removeChild(this.form)}getMetaFields(){return"function"==typeof this.props.metaFields?this.props.metaFields(this.props.files[this.props.fileCardFor]):this.props.metaFields}render(){const e=this.props.files[this.props.fileCardFor],t=this.props.canEditFile(e);return i("div",{className:n("uppy-Dashboard-FileCard",this.props.className),"data-uppy-panelType":"FileCard",onDragOver:l,onDragLeave:l,onDrop:l,onPaste:l},i("div",{className:"uppy-DashboardContent-bar"},i("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},this.props.i18nArray("editing",{file:i("span",{className:"uppy-DashboardContent-titleFile"},e.meta?e.meta.name:e.name)})),i("button",{className:"uppy-DashboardContent-back",type:"button",form:this.form.id,title:this.props.i18n("finishEditingFile"),onClick:this.handleCancel},this.props.i18n("cancel"))),i("div",{className:"uppy-Dashboard-FileCard-inner"},i("div",{className:"uppy-Dashboard-FileCard-preview",style:{backgroundColor:a(e.type).color}},i(p,{file:e}),t&&i("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-Dashboard-FileCard-edit",onClick:t=>{this.handleSave(t),this.props.openFileEditor(e)},form:this.form.id},this.props.i18n("editFile"))),i("div",{className:"uppy-Dashboard-FileCard-info"},this.renderMetaFields()),i("div",{className:"uppy-Dashboard-FileCard-actions"},i("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-primary uppy-Dashboard-FileCard-actionsBtn",type:"form"in HTMLButtonElement.prototype?"submit":"button",onClick:"form"in HTMLButtonElement.prototype?void 0:this.handleSave,form:this.form.id},this.props.i18n("saveChanges")),i("button",{className:"uppy-u-reset uppy-c-btn uppy-c-btn-link uppy-Dashboard-FileCard-actionsBtn",type:"button",onClick:this.handleCancel,form:this.form.id},this.props.i18n("cancel")))))}}},"jm5+":function(e,t,r){"use strict";const i=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;e.exports=function(e,t,r){var o,n;const s=i.exec(e),a=null!=(o=null!=(n=t.mimeType)?n:null==s?void 0:s[1])?o:"plain/text";let l;if(null!=s[2]){const e=atob(decodeURIComponent(s[3])),t=new Uint8Array(e.length);for(let r=0;r>1,u=-7,d=r?o-1:0,c=r?-1:1,h=e[t+d];for(d+=c,n=h&(1<<-u)-1,h>>=-u,u+=a;u>0;n=256*n+e[t+d],d+=c,u-=8);for(s=n&(1<<-u)-1,n>>=-u,u+=i;u>0;s=256*s+e[t+d],d+=c,u-=8);if(0===n)n=1-p;else{if(n===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,i),n-=p}return(h?-1:1)*s*Math.pow(2,n-i)},t.write=function(e,t,r,i,o,n){var s,a,l,p=8*n-o-1,u=(1<>1,c=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:n-1,f=i?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?c/l:c*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=255&a,h+=f,a/=256,o-=8);for(s=s<0;e[r+h]=255&s,h+=f,s/=256,p-=8);e[r+h-f]|=128*y}},li6z:function(e,t,r){"use strict";e.exports=function(e){const{tagName:t}=e.target;"INPUT"!==t&&"TEXTAREA"!==t?(e.preventDefault(),e.stopPropagation()):e.stopPropagation()}},mLhc:function(e,t,r){var i=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",n=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function a(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,r){return e[t]=r}}function l(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,n=Object.create(o.prototype),s=new k(i||[]);return n._invoke=function(e,t,r){var i="suspendedStart";return function(o,n){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw n;return B()}for(r.method=o,r.arg=n;;){var s=r.delegate;if(s){var a=w(s,r);if(a){if(a===u)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=p(e,t,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}(e,r,s),n}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function d(){}function c(){}function h(){}var f={};f[o]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(S([])));m&&m!==t&&r.call(m,o)&&(f=m);var g=h.prototype=d.prototype=Object.create(f);function b(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){var i;this._invoke=function(o,n){function s(){return new t((function(i,s){!function i(o,n,s,a){var l=p(e[o],e,n);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,a)}),(function(e){i("throw",e,s,a)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return i("throw",e,s,a)}))}a(l.arg)}(o,n,i,s)}))}return i=i?i.then(s,s):s()}}function w(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=p(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,u;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i=0;--o){var n=this.tryEntries[o],s=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var a=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(a&&l){if(this.prev=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var o=i.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=i}catch(e){Function("r","regeneratorRuntime = r")(i)}},n1zW:function(e,t,r){"use strict";function i(){return(i=Object.assign||function(e){for(var t=1;t{this.setState({offset:this.base.scrollTop})},this.handleResize=()=>{this.resize()},this.focusElement=null,this.state={offset:0,height:0}}componentDidMount(){this.resize(),window.addEventListener("resize",this.handleResize)}componentWillUpdate(){this.base.contains(document.activeElement)&&(this.focusElement=document.activeElement)}componentDidUpdate(){this.focusElement&&this.focusElement.parentNode&&document.activeElement!==this.focusElement&&this.focusElement.focus(),this.focusElement=null,this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}resize(){const{height:e}=this.state;e!==this.base.offsetHeight&&this.setState({height:this.base.offsetHeight})}render(e){let{data:t,rowHeight:r,renderRow:n,overscanCount:l=10,...p}=e;const{offset:u,height:d}=this.state;let c=Math.floor(u/r),h=Math.floor(d/r);l&&(c=Math.max(0,c-c%l),h+=l);const f=c+h+4,y=t.slice(c,f),m={...s,height:t.length*r},g={...a,top:c*r};return o("div",i({onScroll:this.handleScroll},p),o("div",{role:"presentation",style:m},o("div",{role:"presentation",style:g},y.map(n))))}}},nBya:function(e,t){e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,r,i,o,n,s,a){var l=function(e){var r=t[e]?t[e]:[],i=e.indexOf(":"),o=-1===i?[e]:[e.substring(0,i),e.substring(i+1)],n=Object.keys(t),s=0,a=n.length;for(;se.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,r]=e;const i={};return r&&(i["uppy-auth-token"]=r),this.companionKeysParams&&(i["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...i}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),r=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken "+e,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(this.id+"/logout").then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!("string"==typeof r||Array.isArray(r)||r instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||o}}},o0o1:function(e,t,r){e.exports=r("mLhc")},oiTf:function(e,t){e.exports=function(e,t){if(e===t)return!0;for(var r in e)if(!(r in t))return!1;for(var r in t)if(e[r]!==t[r])return!1;return!0}},p0YT:function(e,t,r){"use strict";class i extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}e.exports=i},pAVg:function(e,t,r){"use strict";e.exports=function(e){const t=[];let r,i;for(const{progress:o}of Object.values(e)){const{preprocess:e,postprocess:n}=o;null==i&&(e||n)&&({mode:r,message:i}=e||n),"determinate"===(null==e?void 0:e.mode)&&t.push(e.value),"determinate"===(null==n?void 0:n.mode)&&t.push(n.value)}return{mode:r,message:i,value:t.reduce((e,r)=>e+r/t.length,0)}}},q1CJ:function(e,t,r){"use strict";var i,o;function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var s=0;function a(e){return"__private_"+s+++"_"+e}e.exports=(i=a("emitter"),o=a("events"),class{constructor(e){Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:[]}),n(this,i)[i]=e}on(e,t){return n(this,o)[o].push([e,t]),n(this,i)[i].on(e,t)}remove(){for(const[e,t]of n(this,o)[o].splice(0))n(this,i)[i].off(e,t)}})},q8Xm:function(e,t,r){"use strict";let i;const{h:o,Component:n}=r("2mXy");i=Symbol.for("uppy test: disable unused locale key warning");e.exports=class extends n{constructor(){super(...arguments),this.triggerFileInputClick=()=>{this.fileInput.click()},this.triggerFolderInputClick=()=>{this.folderInput.click()},this.onFileInputChange=e=>{this.props.handleInputChange(e),e.target.value=null},this.renderHiddenInput=(e,t)=>o("input",{className:"uppy-Dashboard-input",hidden:!0,"aria-hidden":"true",tabIndex:-1,webkitdirectory:e,type:"file",name:"files[]",multiple:1!==this.props.maxNumberOfFiles,onChange:this.onFileInputChange,accept:this.props.allowedFileTypes,ref:t}),this.renderMyDeviceAcquirer=()=>o("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":"MyDevice"},o("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"data-uppy-super-focusable":!0,onClick:this.triggerFileInputClick},o("svg",{"aria-hidden":"true",focusable:"false",width:"32",height:"32",viewBox:"0 0 32 32"},o("g",{fill:"none",fillRule:"evenodd"},o("rect",{className:"uppy-ProviderIconBg",width:"32",height:"32",rx:"16",fill:"#2275D7"}),o("path",{d:"M21.973 21.152H9.863l-1.108-5.087h14.464l-1.246 5.087zM9.935 11.37h3.958l.886 1.444a.673.673 0 0 0 .585.316h6.506v1.37H9.935v-3.13zm14.898 3.44a.793.793 0 0 0-.616-.31h-.978v-2.126c0-.379-.275-.613-.653-.613H15.75l-.886-1.445a.673.673 0 0 0-.585-.316H9.232c-.378 0-.667.209-.667.587V14.5h-.782a.793.793 0 0 0-.61.303.795.795 0 0 0-.155.663l1.45 6.633c.078.36.396.618.764.618h13.354c.36 0 .674-.246.76-.595l1.631-6.636a.795.795 0 0 0-.144-.675z",fill:"#FFF"}))),o("div",{className:"uppy-DashboardTab-name"},this.props.i18n("myDevice")))),this.renderBrowseButton=(e,t)=>{const r=this.props.acquirers.length;return o("button",{type:"button",className:"uppy-u-reset uppy-Dashboard-browse",onClick:t,"data-uppy-super-focusable":0===r},e)},this.renderDropPasteBrowseTagline=()=>{const e=this.props.acquirers.length,t=this.renderBrowseButton(this.props.i18n("browseFiles"),this.triggerFileInputClick),r=this.renderBrowseButton(this.props.i18n("browseFolders"),this.triggerFolderInputClick),i=this.props.fileManagerSelectionType,n=i.charAt(0).toUpperCase()+i.slice(1);return o("div",{class:"uppy-Dashboard-AddFiles-title"},this.props.disableLocalFiles?this.props.i18n("importFiles"):e>0?this.props.i18nArray("dropPasteImport"+n,{browseFiles:t,browseFolders:r,browse:t}):this.props.i18nArray("dropPaste"+n,{browseFiles:t,browseFolders:r,browse:t}))},this.renderAcquirer=e=>o("div",{className:"uppy-DashboardTab",role:"presentation","data-uppy-acquirer-id":e.id},o("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn",role:"tab",tabIndex:0,"aria-controls":"uppy-DashboardContent-panel--"+e.id,"aria-selected":this.props.activePickerPanel.id===e.id,"data-uppy-super-focusable":!0,onClick:()=>this.props.showPanel(e.id)},e.icon(),o("div",{className:"uppy-DashboardTab-name"},e.name))),this.renderAcquirers=(e,t)=>{const r=[...e],i=r.splice(e.length-2,e.length);return o("div",{className:"uppy-Dashboard-AddFiles-list",role:"tablist"},!t&&this.renderMyDeviceAcquirer(),r.map(e=>this.renderAcquirer(e)),o("span",{role:"presentation",style:{"white-space":"nowrap"}},i.map(e=>this.renderAcquirer(e))))}}[i](){this.props.i18nArray("dropPasteBoth"),this.props.i18nArray("dropPasteFiles"),this.props.i18nArray("dropPasteFolders"),this.props.i18nArray("dropPasteImportBoth"),this.props.i18nArray("dropPasteImportFiles"),this.props.i18nArray("dropPasteImportFolders")}renderPoweredByUppy(){const{i18nArray:e}=this.props,t=e("poweredBy",{uppy:o("span",null,o("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon uppy-Dashboard-poweredByIcon",width:"11",height:"11",viewBox:"0 0 11 11"},o("path",{d:"M7.365 10.5l-.01-4.045h2.612L5.5.806l-4.467 5.65h2.604l.01 4.044h3.718z",fillRule:"evenodd"})),o("span",{className:"uppy-Dashboard-poweredByUppy"},"Uppy"))});return o("a",{tabIndex:"-1",href:"https://uppy.io",rel:"noreferrer noopener",target:"_blank",className:"uppy-Dashboard-poweredBy"},t)}render(){return o("div",{className:"uppy-Dashboard-AddFiles"},this.renderHiddenInput(!1,e=>{this.fileInput=e}),this.renderHiddenInput(!0,e=>{this.folderInput=e}),this.renderDropPasteBrowseTagline(),this.props.acquirers.length>0&&this.renderAcquirers(this.props.acquirers,this.props.disableLocalFiles),o("div",{className:"uppy-Dashboard-AddFiles-info"},this.props.note&&o("div",{className:"uppy-Dashboard-note"},this.props.note),this.props.proudlyDisplayPoweredByUppy&&this.renderPoweredByUppy(this.props)))}}},qI72:function(e,t,r){"use strict";const{h:i}=r("2mXy"),o=r("TSYQ"),n=r("q8Xm");e.exports=e=>i("div",{className:o("uppy-Dashboard-AddFilesPanel",e.className),"data-uppy-panelType":"AddFiles","aria-hidden":e.showAddFilesPanel},i("div",{className:"uppy-DashboardContent-bar"},i("div",{className:"uppy-DashboardContent-title",role:"heading","aria-level":"1"},e.i18n("addingMoreFiles")),i("button",{className:"uppy-DashboardContent-back",type:"button",onClick:()=>e.toggleAddFilesPanel(!1)},e.i18n("back"))),i(n,e))},qgBA:function(e,t,r){"use strict";function i(){return(i=Object.assign||function(e){for(var t=1;t576,y=n({"uppy-Root":e.isTargetDOMEl}),m=n({"uppy-Dashboard":!0,"uppy-Dashboard--isDisabled":e.disabled,"uppy-Dashboard--animateOpenClose":e.animateOpenClose,"uppy-Dashboard--isClosing":e.isClosing,"uppy-Dashboard--isDraggingOver":e.isDraggingOver,"uppy-Dashboard--modal":!e.inline,"uppy-size--md":e.containerWidth>576,"uppy-size--lg":e.containerWidth>700,"uppy-size--xl":e.containerWidth>900,"uppy-size--height-md":e.containerHeight>400,"uppy-Dashboard--isAddFilesPanelVisible":e.showAddFilesPanel,"uppy-Dashboard--isInnerWrapVisible":e.areInsidesReadyToBeVisible});let g=1;e.containerWidth>900?g=5:e.containerWidth>700?g=4:e.containerWidth>576&&(g=3);const b=e.showSelectedFiles&&!t,v=e.recoveredState?Object.keys(e.recoveredState.files).length:null,w=e.files?Object.keys(e.files).filter(t=>e.files[t].isGhost).length:null,x=o("div",{className:m,"data-uppy-theme":e.theme,"data-uppy-num-acquirers":e.acquirers.length,"data-uppy-drag-drop-supported":!e.disableLocalFiles&&s(),"aria-hidden":e.inline?"false":e.isHidden,"aria-disabled":e.disabled,"aria-label":e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),onPaste:e.handlePaste,onDragOver:e.handleDragOver,onDragLeave:e.handleDragLeave,onDrop:e.handleDrop},o("div",{"aria-hidden":"true",className:"uppy-Dashboard-overlay",tabIndex:-1,onClick:e.handleClickOutside}),o("div",{className:"uppy-Dashboard-inner","aria-modal":!e.inline&&"true",role:!e.inline&&"dialog",style:{width:e.inline&&e.width?e.width:"",height:e.inline&&e.height?e.height:""}},e.inline?null:o("button",{className:"uppy-u-reset uppy-Dashboard-close",type:"button","aria-label":e.i18n("closeModal"),title:e.i18n("closeModal"),onClick:e.closeModal},o("span",{"aria-hidden":"true"},"×")),o("div",{className:"uppy-Dashboard-innerWrap"},o("div",{className:"uppy-Dashboard-dropFilesHereHint"},e.i18n("dropHint")),b&&o(c,e),v&&o("div",{className:"uppy-Dashboard-serviceMsg"},o("svg",{className:"uppy-Dashboard-serviceMsg-icon","aria-hidden":"true",focusable:"false",width:"21",height:"16",viewBox:"0 0 24 19"},o("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},o("path",{d:"M12.857 1.43l10.234 17.056A1 1 0 0122.234 20H1.766a1 1 0 01-.857-1.514L11.143 1.429a1 1 0 011.714 0z",fill:"#FFD300"}),o("path",{fill:"#000",d:"M11 6h2l-.3 8h-1.4z"}),o("circle",{fill:"#000",cx:"12",cy:"17",r:"1"}))),o("strong",{className:"uppy-Dashboard-serviceMsg-title"},e.i18n("sessionRestored")),o("div",{className:"uppy-Dashboard-serviceMsg-text"},w>0?e.i18n("recoveredXFiles",{smart_count:w}):e.i18n("recoveredAllFiles"))),b?o(a,i({},e,{itemsPerRow:g})):o(l,i({},e,{isSizeMD:r})),o(f,null,e.showAddFilesPanel?o(p,i({key:"AddFiles"},e,{isSizeMD:r})):null),o(f,null,e.fileCardFor?o(h,i({key:"FileCard"},e)):null),o(f,null,e.activePickerPanel?o(u,i({key:"Picker"},e)):null),o(f,null,e.showFileEditor?o(d,i({key:"Editor"},e)):null),o("div",{className:"uppy-Dashboard-progressindicators"},e.progressindicators.map(t=>e.uppy.getPlugin(t.id).render(e.state))))));return o("div",{className:y,dir:e.direction},x)}},qsFT:function(e,t,r){"use strict";e.exports=function(e,t){const r=t.headers?t.headers["content-type"]:t.getResponseHeader("Content-Type");if("string"==typeof r){const t=(i=r,i.replace(/;.*$/,"")).toLowerCase();if("application/xml"===t||"text/xml"===t)return!0;if("text/html"===t&&/^<\?xml /.test(e))return!0}var i;return!1}},qur7:function(e,t,r){"use strict";e.exports=function(e){return{hours:Math.floor(e/3600)%24,minutes:Math.floor(e/60)%60,seconds:Math.floor(e%60)}}},rLLi:function(e,t,r){"use strict";e.exports=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}},rPyj:function(e,t,r){"use strict";const{cloneElement:i,Component:o,toChildArray:n}=r("2mXy"),s=r("TSYQ"),a="uppy-transition-slideDownUp";e.exports=class extends o{constructor(e){super(e),this.state={cachedChildren:null,className:""}}componentWillUpdate(e){const{cachedChildren:t}=this.state,r=n(e.children)[0];if(t===r)return null;const i={cachedChildren:r};r&&!t&&(i.className=a+"-enter",cancelAnimationFrame(this.animationFrame),clearTimeout(this.leaveTimeout),this.leaveTimeout=void 0,this.animationFrame=requestAnimationFrame(()=>{this.setState({className:`${a}-enter ${a}-enter-active`}),this.enterTimeout=setTimeout(()=>{this.setState({className:""})},250)})),t&&!r&&void 0===this.leaveTimeout&&(i.cachedChildren=t,i.className=a+"-leave",cancelAnimationFrame(this.animationFrame),clearTimeout(this.enterTimeout),this.enterTimeout=void 0,this.animationFrame=requestAnimationFrame(()=>{this.setState({className:`${a}-leave ${a}-leave-active`}),this.leaveTimeout=setTimeout(()=>{this.setState({cachedChildren:null,className:""})},250)})),this.setState(i)}render(){const{cachedChildren:e,className:t}=this.state;return e?i(e,{className:s(t,e.props.className)}):null}}},rx0B:function(e,t,r){"use strict";e.exports={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}}},ryNG:function(e,t,r){"use strict";e.exports={strings:{uploading:"Uploading",complete:"Complete",uploadFailed:"Upload failed",paused:"Paused",retry:"Retry",cancel:"Cancel",pause:"Pause",resume:"Resume",done:"Done",filesUploadedOfTotal:{0:"%{complete} of %{smart_count} file uploaded",1:"%{complete} of %{smart_count} files uploaded"},dataUploadedOfTotal:"%{complete} of %{total}",xTimeLeft:"%{time} left",uploadXFiles:{0:"Upload %{smart_count} file",1:"Upload %{smart_count} files"},uploadXNewFiles:{0:"Upload +%{smart_count} file",1:"Upload +%{smart_count} files"},upload:"Upload",retryUpload:"Retry upload",xMoreFilesAdded:{0:"%{smart_count} more file added",1:"%{smart_count} more files added"},showErrorDetails:"Show error details"}}},sbV1:function(e,t,r){"use strict";let i,o;function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var s=0;function a(e){return"__private_"+s+++"_"+e}const l=r("3jPD"),p=r("nBya"),{nanoid:u}=r("7isM"),d=r("hKI/"),c=r("AGKb"),h=r("9S7+"),f=r("AJ2z"),y=r("RthH"),m=r("xiPE"),g=r("wGh2"),b=r("S6WW"),v=r("rLLi"),{justErrorsLogger:w,debugLogger:x}=r("dI1E"),P=r("0HyF");class k extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class S extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var B=a("plugins"),D=a("storeUnsubscribe"),I=a("emitter"),T=a("preProcessors"),A=a("uploaders"),F=a("postProcessors"),O=a("checkRestrictions"),C=a("checkMinNumberOfFiles"),_=a("checkRequiredMetaFieldsOnFile"),E=a("checkRequiredMetaFields"),U=a("showOrLogErrorAndThrow"),z=a("assertNewUploadAllowed"),R=a("checkAndCreateFileStateObject"),j=a("startIfAutoProceed"),M=a("addListeners"),L=a("updateOnlineStatus"),N=a("createUpload"),q=a("getUpload"),H=a("removeUpload"),V=a("runUpload");i=Symbol.for("uppy test: getPlugins"),o=Symbol.for("uppy test: createUpload");class W{constructor(e){Object.defineProperty(this,V,{value:oe}),Object.defineProperty(this,H,{value:ie}),Object.defineProperty(this,q,{value:re}),Object.defineProperty(this,N,{value:te}),Object.defineProperty(this,M,{value:ee}),Object.defineProperty(this,j,{value:Z}),Object.defineProperty(this,R,{value:J}),Object.defineProperty(this,z,{value:Q}),Object.defineProperty(this,U,{value:K}),Object.defineProperty(this,E,{value:X}),Object.defineProperty(this,_,{value:G}),Object.defineProperty(this,C,{value:Y}),Object.defineProperty(this,O,{value:$}),Object.defineProperty(this,B,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,D,{writable:!0,value:void 0}),Object.defineProperty(this,I,{writable:!0,value:p()}),Object.defineProperty(this,T,{writable:!0,value:new Set}),Object.defineProperty(this,A,{writable:!0,value:new Set}),Object.defineProperty(this,F,{writable:!0,value:new Set}),Object.defineProperty(this,L,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=P;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:f(),logger:w,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=x),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=d(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:b(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),n(this,D)[D]=this.store.subscribe((e,t,r)=>{this.emit("state-update",e,t,r),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),n(this,M)[M]()}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new l([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},r={};Object.keys(t).forEach(i=>{const o={...t[i]};o.progress={...o.progress,...e},r[i]=o}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){n(this,T)[T].add(e)}removePreProcessor(e){return n(this,T)[T].delete(e)}addPostProcessor(e){n(this,F)[F].add(e)}removePostProcessor(e){return n(this,F)[F].delete(e)}addUploader(e){n(this,A)[A].add(e)}removeUploader(e){return n(this,A)[A].delete(e)}setMeta(e){const t={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(t=>{r[t]={...r[t],meta:{...r[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:r})}setFileMeta(e,t){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const i={...r[e].meta,...t};r[e]={...r[e],meta:i},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:r}=this.getState(),i=Object.values(e),o=i.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),n=i.filter(e=>!e.progress.uploadStarted),s=i.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),a=i.filter(e=>e.progress.uploadStarted),l=i.filter(e=>e.isPaused),p=i.filter(e=>e.progress.uploadComplete),u=i.filter(e=>e.error),d=o.filter(e=>!e.isPaused),c=i.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:n,startedFiles:s,uploadStartedFiles:a,pausedFiles:l,completeFiles:p,erroredFiles:u,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:c,isUploadStarted:a.length>0,isAllComplete:100===t&&p.length===i.length&&0===c.length,isAllErrored:!!r&&u.length===i.length,isAllPaused:0!==o.length&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:i.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return n(this,O)[O](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){n(this,z)[z](e);const{files:t}=this.getState();let r=n(this,R)[R](t,e);return t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...t,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),n(this,j)[j](),r.id}addFiles(e){n(this,z)[z]();const t={...this.getState().files},r=[],i=[];for(let o=0;o{this.emit("file-added",e)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(e=>{this.log(`Added file: ${r[e].name}\n id: ${r[e].id}\n type: ${r[e].type}`)}),r.length>0&&n(this,j)[j](),i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach(t=>{e+="\n * "+t.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}}removeFiles(e,t){const{files:r,currentUploads:i}=this.getState(),o={...r},n={...i},s=Object.create(null);function a(e){return void 0===s[e]}e.forEach(e=>{r[e]&&(s[e]=r[e],delete o[e])}),Object.keys(n).forEach(e=>{const t=i[e].fileIDs.filter(a);0!==t.length?n[e]={...i[e],fileIDs:t}:delete n[e]});const l={currentUploads:n,files:o};0===Object.keys(o).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const p=Object.keys(s);p.forEach(e=>{this.emit("file-removed",s[e],t)}),p.length>5?this.log(`Removed ${p.length} files`):this.log("Removed files: "+p.join(", "))}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const r={...e[t],isPaused:!0};e[t]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const r=n(this,N)[N](t,{forceAllowNewUpload:!0});return n(this,V)[V](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=n(this,N)[N]([e],{forceAllowNewUpload:!0});return n(this,V)[V](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const r=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:r?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(e=>null!=e.progress.bytesTotal),r=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,i=r.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(i/t*100);return void this.setState({totalProgress:o})}let i=t.reduce((e,t)=>e+t.progress.bytesTotal,0);const o=i/t.length;i+=o*r.length;let n=0;t.forEach(e=>{n+=e.progress.bytesUploaded}),r.forEach(e=>{n+=o*(e.progress.percentage||0)/100});let s=0===i?0:Math.round(n/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`)}const r=new e(this,t),i=r.id;if(!i)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(i);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${i}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${i} v${e.VERSION}`),r.type in n(this,B)[B]?n(this,B)[B][r.type].push(r):n(this,B)[B][r.type]=[r],r.install(),this}getPlugin(e){for(const t of Object.values(n(this,B)[B])){const r=t.find(t=>t.id===e);if(null!=r)return r}}[i](e){return n(this,B)[B][e]}iteratePlugins(e){Object.values(n(this,B)[B]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=n(this,B)[B][e.type],r=t.findIndex(t=>t.id===e.id);-1!==r&&t.splice(r,1);const i={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(i)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),n(this,D)[D](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",n(this,L)[L]),window.removeEventListener("offline",n(this,L)[L]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,r){void 0===t&&(t="info"),void 0===r&&(r=3e3);const i="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:i?e.message:e,details:i?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,t){const{logger:r}=this.opts;switch(t){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?n(this,V)[V](e):(n(this,H)[H](e),Promise.reject(new Error("Nonexistent upload")))}[o](){return n(this,N)[N](...arguments)}addResultData(e,t){if(!n(this,q)[q](e))return void this.log("Not setting result for an upload that has been removed: "+e);const{currentUploads:r}=this.getState(),i={...r[e],result:{...r[e].result,...t}};this.setState({currentUploads:{...r,[e]:i}})}upload(){var e;null!=(e=n(this,B)[B].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(t=r,this.setState({files:t})),Promise.resolve().then(()=>{n(this,C)[C](t),n(this,E)[E](t)}).catch(e=>{n(this,U)[U](e)}).then(()=>{const{currentUploads:e}=this.getState(),r=Object.values(e).flatMap(e=>e.fileIDs),i=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==r.indexOf(e)||i.push(t.id)});const o=n(this,N)[N](i);return n(this,V)[V](o)}).catch(e=>{n(this,U)[U](e,{showInformer:!1})}))}}function $(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:r,minFileSize:i,maxTotalFileSize:o,maxNumberOfFiles:n,allowedFileTypes:s}=this.opts.restrictions;if(n&&t.length+1>n)throw new k(""+this.i18n("youCanOnlyUploadX",{smart_count:n}));if(s){if(!s.some(t=>t.indexOf("/")>-1?!!e.type&&h(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase())){const e=s.join(", ");throw new k(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(o&&null!=e.size){let r=0;if(r+=e.size,t.forEach(e=>{r+=e.size}),r>o)throw new k(this.i18n("exceedsSize",{size:c(o),file:e.name}))}if(r&&null!=e.size&&e.size>r)throw new k(this.i18n("exceedsSize",{size:c(r),file:e.name}));if(i&&null!=e.size&&e.size{const t=this.getFile(e);return n(this,_)[_](t)});if(t.length)throw new S(t,""+this.i18n("missingRequiredMetaField"))}function K(e,t){let{showInformer:r=!0,file:i=null,throwErr:o=!0}=void 0===t?{}:t;const n="object"==typeof e?e.message:e,s="object"==typeof e&&e.details?e.details:"";let a=n;if(s&&(a+=" "+s),e.isRestriction?(this.log(a),this.emit("restriction-failed",i,e)):this.log(a,"error"),r&&this.info({message:n,details:s},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Q(e){const{allowNewUpload:t}=this.getState();!1===t&&n(this,U)[U](new k(this.i18n("noMoreFilesAllowed")),{file:e})}function J(e,t){const r=y(t),i=v(r,t),o=m(i).extension,s=Boolean(t.isRemote),a=g({...t,type:r});if(this.checkIfFileAlreadyExists(a)){const e=new k(this.i18n("noDuplicates",{fileName:i}));n(this,U)[U](e,{file:t})}const l=t.meta||{};l.name=i,l.type=r;const p=Number.isFinite(t.data.size)?t.data.size:null;let u={source:t.source||"",id:a,name:i,extension:o||"",meta:{...this.getState().meta,...l},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:p,uploadComplete:!1,uploadStarted:null},size:p,isRemote:s,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(u,e);!1===d?n(this,U)[U](new k("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof d&&null!==d&&(u=d);try{const t=Object.keys(e).map(t=>e[t]);n(this,O)[O](u,t)}catch(e){n(this,U)[U](e,{file:u})}return u}function Z(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function ee(){const e=(e,t,r)=>{let i=e.message||"Unknown error";e.details&&(i+=" "+e.details),this.setState({error:i}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:i,response:r})};this.on("error",e),this.on("upload-error",(t,r,i)=>{if(e(r,t,i),"object"==typeof r&&r.message){const e=new Error(r.message);e.details=r.message,r.details&&(e.details+=" "+r.details),e.message=this.i18n("failedToUpload",{file:t.name}),n(this,U)[U](e,{throwErr:!1})}else n(this,U)[U](r,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:n(this,F)[F].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&n(this,_)[_](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",n(this,L)[L]),window.addEventListener("offline",n(this,L)[L]),setTimeout(n(this,L)[L],3e3))}function te(e,t){void 0===t&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:i,currentUploads:o}=this.getState();if(!i&&!r)throw new Error("Cannot create a new upload: already uploading.");const n=u();return this.emit("upload",{id:n,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[n]:{fileIDs:e,step:0,result:{}}}}),n}function re(e){const{currentUploads:t}=this.getState();return t[e]}function ie(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function oe(e){let{currentUploads:t}=this.getState(),r=t[e];const i=r.step||0,o=[...n(this,T)[T],...n(this,A)[A],...n(this,F)[F]];try{for(let n=i;n{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const i=r.fileIDs.map(e=>this.getFile(e)),o=i.filter(e=>!e.error),n=i.filter(e=>e.error);await this.addResultData(e,{successful:o,failed:n,uploadID:e}),t=this.getState().currentUploads,r=t[e]}let s;return r&&(s=r.result,this.emit("complete",s),n(this,H)[H](e)),null==s&&this.log("Not setting result for an upload that has been removed: "+e),s}W.VERSION="2.1.4",e.exports=W},sgjx:function(e,t,r){"use strict";function i(e){return e<10?"0"+e:e.toString()}e.exports=function(){const e=new Date;return`${i(e.getHours())}:${i(e.getMinutes())}:${i(e.getSeconds())}`}},tFvi:function(e,t,r){"use strict";const{h:i}=r("2mXy");e.exports=function(e){const{file:t,toggleFileCard:r,i18n:o,metaFields:n}=e,{missingRequiredMetaFields:s}=t;if(null==s||!s.length)return null;const a=s.map(e=>((e,t)=>t.filter(t=>t.id===e)[0].name)(e,n)).join(", ");return i("div",{className:"uppy-Dashboard-Item-errorMessage"},o("missingRequiredMetaFields",{smart_count:s.length,fields:a})," ",i("button",{type:"button",class:"uppy-u-reset uppy-Dashboard-Item-errorMessageBtn",onClick:()=>r(!0,t.id)},o("editFile")))}},tjlA:function(e,t,r){"use strict";(function(e){var i=r("H7XF"),o=r("kVK+"),n=r("49sm");function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(i)return L(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return B(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function g(e,t,r,i,o){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:b(e,t,r,i,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,i,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,i,o){var n,s=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function p(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var u=-1;for(n=r;na&&(r=a-l),n=r;n>=0;n--){for(var d=!0,c=0;co&&(i=o):i=o;var n=t.length;if(n%2!=0)throw new TypeError("Invalid hex string");i>n/2&&(i=n/2);for(var s=0;s>8,o=r%256,n.push(o),n.push(i);return n}(t,e.length-r),e,r,i)}function B(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);for(var i=[],o=t;o239?4:p>223?3:p>191?2:1;if(o+d<=r)switch(d){case 1:p<128&&(u=p);break;case 2:128==(192&(n=e[o+1]))&&(l=(31&p)<<6|63&n)>127&&(u=l);break;case 3:n=e[o+1],s=e[o+2],128==(192&n)&&128==(192&s)&&(l=(15&p)<<12|(63&n)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:n=e[o+1],s=e[o+2],a=e[o+3],128==(192&n)&&128==(192&s)&&128==(192&a)&&(l=(15&p)<<18|(63&n)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},l.prototype.compare=function(e,t,r,i,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||r>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=r)return 0;if(i>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var n=(o>>>=0)-(i>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(n,s),p=this.slice(i,o),u=e.slice(t,r),d=0;do)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var n=!1;;)switch(i){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return P(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(n)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),n=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,r){var i="";r=Math.min(e.length,r);for(var o=t;oi)&&(r=i);for(var o="",n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,i,o,n){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function _(e,t,r,i){t<0&&(t=65535+t+1);for(var o=0,n=Math.min(e.length-r,2);o>>8*(i?o:1-o)}function E(e,t,r,i){t<0&&(t=4294967295+t+1);for(var o=0,n=Math.min(e.length-r,4);o>>8*(i?o:3-o)&255}function U(e,t,r,i,o,n){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function z(e,t,r,i,n){return n||U(e,0,r,4),o.write(e,t,r,i,23,4),r+4}function R(e,t,r,i,n){return n||U(e,0,r,8),o.write(e,t,r,i,52,8),r+8}l.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(o*=256);)i+=this[e+--t]*o;return i},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var i=this[e],o=1,n=0;++n=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var i=t,o=1,n=this[e+--i];i>0&&(o*=256);)n+=this[e+--i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||C(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,n=0;for(this[t]=255&e;++n=0&&(n*=256);)this[t+o]=e/n&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):_(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):_(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):E(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):E(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*r-1);C(this,e,t,r,o-1,-o)}var n=0,s=1,a=0;for(this[t]=255&e;++n>0)-a&255;return t+r},l.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*r-1);C(this,e,t,r,o-1,-o)}var n=r-1,s=1,a=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/s>>0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):_(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):_(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):E(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):E(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else if(n<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&n.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&n.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&n.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return n}function N(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,i){for(var o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}}).call(this,r("yLpj"))},uIBO:function(e,t,r){"use strict";const i=r("sbV1"),o=r("ZpS9"),n=r("Fvmz"),{debugLogger:s}=r("dI1E");e.exports=i,e.exports.Uppy=i,e.exports.UIPlugin=o,e.exports.BasePlugin=n,e.exports.debugLogger=s},uh99:function(e,t,r){"use strict";e.exports=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}},ujpa:function(e,t,r){"use strict";const i=r("nPY3");e.exports=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):i(e)?e:null}},vIYU:function(e,t,r){"use strict";e.exports=Array.from},vL5K:function(e,t,r){"use strict";class i extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}e.exports=i},vcl8:function(e,t,r){var i=r("TUAI");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r("aET+")(i,o);i.locals&&(e.exports=i.locals)},wGh2:function(e,t,r){"use strict";function i(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"))+t}e.exports=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-"+i(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+i(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}},xIQH:function(e,t,r){"use strict";e.exports=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}},xiPE:function(e,t,r){"use strict";e.exports=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}},yJ0V:function(e,t,r){"use strict";const i=r("vL5K");e.exports=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new i(e)})}},yLpj:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},yvHO:function(e,t,r){"use strict";function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var o=0;function n(e){return"__private_"+o+++"_"+e}function s(){return new Error("Cancelled")}var a=n("activeRequests"),l=n("queuedHandlers"),p=n("paused"),u=n("pauseTimer"),d=n("downLimit"),c=n("upperLimit"),h=n("rateLimitingTimer"),f=n("call"),y=n("queueNext"),m=n("next"),g=n("queue"),b=n("dequeue"),v=n("resume"),w=n("increaseLimit");function x(e){i(this,a)[a]+=1;let t,r=!1;try{t=e()}catch(e){throw i(this,a)[a]-=1,e}return{abort:()=>{r||(r=!0,i(this,a)[a]-=1,t(),i(this,y)[y]())},done:()=>{r||(r=!0,i(this,a)[a]-=1,i(this,y)[y]())}}}function P(){queueMicrotask(()=>i(this,m)[m]())}function k(){if(i(this,p)[p]||i(this,a)[a]>=this.limit)return;if(0===i(this,l)[l].length)return;const e=i(this,l)[l].shift(),t=i(this,f)[f](e.fn);e.abort=t.abort,e.done=t.done}function S(e,t){void 0===t&&(t={});const r={fn:e,priority:t.priority||0,abort:()=>{i(this,b)[b](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},o=i(this,l)[l].findIndex(e=>r.priority>e.priority);return-1===o?i(this,l)[l].push(r):i(this,l)[l].splice(o,0,r),r}function B(e){const t=i(this,l)[l].indexOf(e);-1!==t&&i(this,l)[l].splice(t,1)}e.exports={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,b,{value:B}),Object.defineProperty(this,g,{value:S}),Object.defineProperty(this,m,{value:k}),Object.defineProperty(this,y,{value:P}),Object.defineProperty(this,f,{value:x}),Object.defineProperty(this,a,{writable:!0,value:0}),Object.defineProperty(this,l,{writable:!0,value:[]}),Object.defineProperty(this,p,{writable:!0,value:!1}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,d,{writable:!0,value:1}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,w,{writable:!0,value:()=>{if(i(this,p)[p])i(this,h)[h]=setTimeout(i(this,w)[w],0);else{i(this,d)[d]=this.limit,this.limit=Math.ceil((i(this,c)[c]+i(this,d)[d])/2);for(let e=i(this,d)[d];e<=this.limit;e++)i(this,y)[y]();i(this,c)[c]-i(this,d)[d]>3?i(this,h)[h]=setTimeout(i(this,w)[w],2e3):i(this,d)[d]=Math.floor(i(this,d)[d]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!i(this,p)[p]&&i(this,a)[a]{a=r.run(()=>{let t,r;try{r=Promise.resolve(e(...o))}catch(e){r=Promise.reject(e)}return r.then(e=>{t?n(t):(a.done(),i(e))},e=>{t?n(t):(a.done(),n(e))}),()=>{t=s()}},t)});return l.abort=()=>{a.abort()},l}}resume(){i(this,p)[p]=!1,clearTimeout(i(this,u)[u]);for(let e=0;e1&&Number.isFinite(this.limit)&&(i(this,c)[c]=this.limit-1,this.limit=i(this,d)[d],i(this,h)[h]=setTimeout(i(this,w)[w],e))}get isPaused(){return i(this,p)[p]}},internalRateLimitedQueue:Symbol("__queue")}},zljW:function(e,t,r){"use strict";const i=r("TSYQ"),o=r("hKI/"),n=r("AGKb"),s=r("GoYG"),{h:a}=r("2mXy"),l=r("CYis");function p(){return a("svg",{className:"uppy-StatusBar-spinner","aria-hidden":"true",focusable:"false",width:"14",height:"14"},a("path",{d:"M13.983 6.547c-.12-2.509-1.64-4.893-3.939-5.936-2.48-1.127-5.488-.656-7.556 1.094C.524 3.367-.398 6.048.162 8.562c.556 2.495 2.46 4.52 4.94 5.183 2.932.784 5.61-.602 7.256-3.015-1.493 1.993-3.745 3.309-6.298 2.868-2.514-.434-4.578-2.349-5.153-4.84a6.226 6.226 0 0 1 2.98-6.778C6.34.586 9.74 1.1 11.373 3.493c.407.596.693 1.282.842 1.988.127.598.073 1.197.161 1.794.078.525.543 1.257 1.15.864.525-.341.49-1.05.456-1.592-.007-.15.02.3 0 0",fillRule:"evenodd"}))}function u(e){const{numUploads:t,complete:r,totalUploadedSize:i,totalSize:o,totalETA:l,i18n:p}=e,u=t>1;return a("div",{className:"uppy-StatusBar-statusSecondary"},u&&p("filesUploadedOfTotal",{complete:r,smart_count:t}),a("span",{className:"uppy-StatusBar-additionalInfo"},u&&" · ",p("dataUploadedOfTotal",{complete:n(i),total:n(o)})," · ",p("xTimeLeft",{time:s(l)})))}function d(e){const{i18n:t,complete:r,numUploads:i}=e;return a("div",{className:"uppy-StatusBar-statusSecondary"},t("filesUploadedOfTotal",{complete:r,smart_count:i}))}function c(e){const{i18n:t,newFiles:r,startUpload:o}=e,n=i("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--uploadNewlyAdded");return a("div",{className:"uppy-StatusBar-statusSecondary"},a("div",{className:"uppy-StatusBar-statusSecondaryHint"},t("xMoreFilesAdded",{smart_count:r})),a("button",{type:"button",className:n,"aria-label":t("uploadXFiles",{smart_count:r}),onClick:o},t("upload")))}const h=o(u,500,{leading:!0,trailing:!0});e.exports={UploadBtn:function(e){const{newFiles:t,isUploadStarted:r,recoveredState:o,i18n:n,uploadState:s,isSomeGhost:p,startUpload:u}=e,d=i("uppy-u-reset","uppy-c-btn","uppy-StatusBar-actionBtn","uppy-StatusBar-actionBtn--upload",{"uppy-c-btn-primary":s===l.STATE_WAITING},{"uppy-StatusBar-actionBtn--disabled":p}),c=n(t&&r&&!o?"uploadXNewFiles":"uploadXFiles",{smart_count:t});return a("button",{type:"button",className:d,"aria-label":n("uploadXFiles",{smart_count:t}),onClick:u,disabled:p,"data-uppy-super-focusable":!0},c)},RetryBtn:function(e){const{i18n:t,uppy:r}=e;return a("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--retry","aria-label":t("retryUpload"),onClick:()=>r.retryAll(),"data-uppy-super-focusable":!0},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"8",height:"10",viewBox:"0 0 8 10"},a("path",{d:"M4 2.408a2.75 2.75 0 1 0 2.75 2.75.626.626 0 0 1 1.25.018v.023a4 4 0 1 1-4-4.041V.25a.25.25 0 0 1 .389-.208l2.299 1.533a.25.25 0 0 1 0 .416l-2.3 1.533A.25.25 0 0 1 4 3.316v-.908z"})),t("retry"))},CancelBtn:function(e){const{i18n:t,uppy:r}=e;return a("button",{type:"button",className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",title:t("cancel"),"aria-label":t("cancel"),onClick:()=>r.cancelAll(),"data-uppy-super-focusable":!0},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},a("g",{fill:"none",fillRule:"evenodd"},a("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),a("path",{fill:"#FFF",d:"M9.283 8l2.567 2.567-1.283 1.283L8 9.283 5.433 11.85 4.15 10.567 6.717 8 4.15 5.433 5.433 4.15 8 6.717l2.567-2.567 1.283 1.283z"}))))},PauseResumeButton:function(e){const{isAllPaused:t,i18n:r,isAllComplete:i,resumableUploads:o,uppy:n}=e,s=r(t?"resume":"pause");return a("button",{title:s,"aria-label":s,className:"uppy-u-reset uppy-StatusBar-actionCircleBtn",type:"button",onClick:function(){return i?null:o?t?n.resumeAll():n.pauseAll():n.cancelAll()},"data-uppy-super-focusable":!0},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-c-icon",width:"16",height:"16",viewBox:"0 0 16 16"},a("g",{fill:"none",fillRule:"evenodd"},a("circle",{fill:"#888",cx:"8",cy:"8",r:"8"}),a("path",{fill:"#FFF",d:t?"M6 4.25L11.5 8 6 11.75z":"M5 4.5h2v7H5v-7zm4 0h2v7H9v-7z"}))))},DoneBtn:function(e){const{i18n:t,doneButtonHandler:r}=e;return a("button",{type:"button",className:"uppy-u-reset uppy-c-btn uppy-StatusBar-actionBtn uppy-StatusBar-actionBtn--done",onClick:r,"data-uppy-super-focusable":!0},t("done"))},LoadingSpinner:p,ProgressDetails:u,ProgressBarProcessing:function(e){const{progress:t}=e,{value:r,mode:i,message:o}=t,n=Math.round(100*r);return a("div",{className:"uppy-StatusBar-content"},a(p,null),"determinate"===i?n+"% · ":"",o)},ProgressBarError:function(e){const{error:t,i18n:r,complete:i,numUploads:o}=e;return a("div",{className:"uppy-StatusBar-content",title:r("uploadFailed")},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"11",height:"11",viewBox:"0 0 11 11"},a("path",{d:"M4.278 5.5L0 1.222 1.222 0 5.5 4.278 9.778 0 11 1.222 6.722 5.5 11 9.778 9.778 11 5.5 6.722 1.222 11 0 9.778z"})),a("div",{className:"uppy-StatusBar-status"},a("div",{className:"uppy-StatusBar-statusPrimary"},r("uploadFailed"),a("button",{className:"uppy-u-reset uppy-StatusBar-details","aria-label":r("showErrorDetails"),"data-microtip-position":"top-right","data-microtip-size":"medium",onClick:function(){const e=`${r("uploadFailed")} \n\n ${t}`;alert(e)},type:"button"},"?")),a(d,{i18n:r,complete:i,numUploads:o})))},ProgressBarUploading:function(e){const{i18n:t,supportsUploadProgress:r,totalProgress:i,showProgressDetails:o,isUploadStarted:n,isAllComplete:s,isAllPaused:l,newFiles:u,numUploads:f,complete:y,totalUploadedSize:m,totalSize:g,totalETA:b,startUpload:v}=e,w=u&&n;if(!n||s)return null;const x=t(l?"paused":"uploading");return a("div",{className:"uppy-StatusBar-content","aria-label":x,title:x},l?null:a(p,null),a("div",{className:"uppy-StatusBar-status"},a("div",{className:"uppy-StatusBar-statusPrimary"},r?`${x}: ${i}%`:x),l||w||!o?null:r?a(h,{numUploads:f,complete:y,totalUploadedSize:m,totalSize:g,totalETA:b,i18n:t}):a(d,{i18n:t,complete:y,numUploads:f}),w?a(c,{i18n:t,newFiles:u,startUpload:v}):null))},ProgressBarComplete:function(e){const{i18n:t}=e;return a("div",{className:"uppy-StatusBar-content",role:"status",title:t("complete")},a("div",{className:"uppy-StatusBar-status"},a("div",{className:"uppy-StatusBar-statusPrimary"},a("svg",{"aria-hidden":"true",focusable:"false",className:"uppy-StatusBar-statusIndicator uppy-c-icon",width:"15",height:"11",viewBox:"0 0 15 11"},a("path",{d:"M.414 5.843L1.627 4.63l3.472 3.472L13.202 0l1.212 1.213L5.1 10.528z"})),t("complete"))))}}}});