📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
arackiralama.demodesign.com.tr
/
admin
/
assets
/
js
/
plugins
/
filepond
📝
filepond.min.js
← Geri Dön
/* * FilePond 4.3.3 * Licensed under MIT, https://opensource.org/licenses/MIT * Please visit https://pqina.nl/filepond for details. */ /* eslint-disable */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.FilePond={})}(this,function(n){"use strict";var e,t,A=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},x=function(o){var i={};return A(o,function(e){var t,n,r;t=i,"function"!=typeof(r=o[n=e])?Object.defineProperty(t,n,Object.assign({},r)):t[n]=r}),i},u=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},b=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},r=["svg","path"],i=function(e){return r.includes(e)},Y=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===t?"undefined":S(t))&&(n=t,t=null);var r=i(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return t&&(i(e)?u(r,"class",t):r.className=t),A(n,function(e,t){u(r,e,t)}),r},j=function(e,t,n,r){var o=n[0]||e.left,i=n[1]||e.top,a=o+e.width,s=i+e.height*(r[1]||1),u={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:o,top:i,right:a,bottom:s}};return t.filter(function(e){return!e.isRectIgnored()}).map(function(e){return e.rect}).forEach(function(e){l(u.inner,Object.assign({},e.inner)),l(u.outer,Object.assign({},e.outer))}),c(u.inner),u.outer.bottom+=u.element.marginBottom,u.outer.right+=u.element.marginRight,c(u.outer),u},l=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},c=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},P=function(e){return"number"==typeof e},E=function(e){return e<.5?2*e*e:(4-2*e)*e-1},_={spring:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,r=e.damping,o=void 0===r?.75:r,i=e.mass,a=void 0===i?10:i,s=null,u=null,l=0,c=!1,f=x({interpolate:function(){if(!c){if(!P(s)||!P(u))return c=!0,void(l=0);!function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)<r&&Math.abs(n)<r}(u+=l+=-(u-s)*n/a,s,l*=o)?f.onupdate(u):(u=s,c=!(l=0),f.onupdate(u),f.oncomplete(u))}},target:{set:function(e){if(P(e)&&!P(u)&&(u=e),null===s&&(u=s=e),u===(s=e)||void 0===s)return c=!0,l=0,f.onupdate(u),void f.oncomplete(u);c=!1},get:function(){return s}},resting:{get:function(){return c}},onupdate:function(e){},oncomplete:function(e){}});return f},tween:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.duration,n=void 0===t?500:t,r=e.easing,o=void 0===r?E:r,i=e.delay,a=void 0===i?0:i,s=null,u=void 0,l=void 0,c=!0,f=!1,d=null,p=x({interpolate:function(e){c||null===d||(null===s&&(s=e),e-s<a||((u=e-s-a)<n?(l=u/n,p.onupdate((0<=u?o(f?1-l:l):0)*d)):(u=1,l=f?0:1,p.onupdate(l*d),p.oncomplete(l*d),c=!0)))},target:{get:function(){return f?0:d},set:function(e){if(null===d)return d=e,p.onupdate(e),void p.oncomplete(e);e<d?(d=1,f=!0):(f=!1,d=e),c=!1,s=null}},resting:{get:function(){return c}},onupdate:function(e){},oncomplete:function(e){}});return p}},T=function(e,t,i){var a=3<arguments.length&&void 0!==arguments[3]&&arguments[3];(t=Array.isArray(t)?t:[t]).forEach(function(o){e.forEach(function(t){var e=t,n=function(){return i[t]},r=function(e){return i[t]=e};"object"===(void 0===t?"undefined":S(t))&&(e=t.key,n=t.getter||n,r=t.setter||r),o[e]&&!a||(o[e]={get:n,set:r})})})},m=function(e){return null!=e},f={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},d=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},p=function(e,t){var n=t.opacity,r=t.perspective,o=t.translateX,i=t.translateY,a=t.scaleX,s=t.scaleY,u=t.rotateX,l=t.rotateY,c=t.rotateZ,f=t.originX,d=t.originY,p=t.width,E=t.height,_="",T="";(m(f)||m(d))&&(T+="transform-origin: "+(f||0)+"px "+(d||0)+"px;"),m(r)&&(_+="perspective("+r+"px) "),(m(o)||m(i))&&(_+="translate3d("+(o||0)+"px, "+(i||0)+"px, 0) "),(m(a)||m(s))&&(_+="scale3d("+(m(a)?a:1)+", "+(m(s)?s:1)+", 1) "),m(c)&&(_+="rotateZ("+c+"rad) "),m(u)&&(_+="rotateX("+u+"rad) "),m(l)&&(_+="rotateY("+l+"rad) "),_.length&&(T+="transform:"+_+";"),m(n)&&(T+="opacity:"+n+";",0===n&&(T+="visibility:hidden;"),n<1&&(T+="pointer-events:none;")),m(E)&&(T+="height:"+E+"px;"),m(p)&&(T+="width:"+p+"px;");var I=e.elementCurrentStyle||"";T.length===I.length&&T===I||(e.setAttribute("style",T),e.elementCurrentStyle=T)},H={styles:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,i=e.view,a=Object.assign({},n),s={};T(t,[r,o],n);var u=function(){return i.rect?j(i.rect,i.childViews,[n.translateX||0,n.translateY||0],[n.scaleX||0,n.scaleY||0]):null};return r.rect={get:u},o.rect={get:u},t.forEach(function(e){n[e]=void 0===a[e]?f[e]:a[e]}),{write:function(){if(d(s,n))return p(i.element,n),Object.assign(s,Object.assign({},n)),!0},destroy:function(){}}},listeners:function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var n,r,t=e.viewExternalAPI,o=(e.viewState,e.view),i=[],a=(n=o.element,function(e,t){n.addEventListener(e,t)}),s=(r=o.element,function(e,t){r.removeEventListener(e,t)});return t.on=function(e,t){i.push({type:e,fn:t}),a(e,t)},t.off=function(t,n){i.splice(i.findIndex(function(e){return e.type===t&&e.fn===n}),1),s(t,n)},{write:function(){return!0},destroy:function(){i.forEach(function(e){s(e.type,e.fn)})}}},animations:function(e){var t=e.mixinConfig,l=e.viewProps,c=e.viewInternalAPI,f=e.viewExternalAPI,d=Object.assign({},l),p=[];return A(t,function(t,e){var n,r,o,i,a,s,u=(i=(n=e)[r]&&"object"===S(n[r][o])?n[r][o]:n[r]||n,a="string"==typeof i?i:i.type,s="object"===(void 0===i?"undefined":S(i))?Object.assign({},i):{},_[a]?_[a](s):null);u&&(u.onupdate=function(e){l[t]=e},u.target=d[t],T([{key:t,setter:function(e){u.target!==e&&(u.target=e)},getter:function(){return l[t]}}],[c,f],l,!0),p.push(u))}),{write:function(t){var n=!0;return p.forEach(function(e){e.resting||(n=!1),e.interpolate(t)}),n},destroy:function(){}}},apis:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewExternalAPI;T(t,r,n)}},X=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},a=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,b=void 0===t?"div":t,n=e.name,P=void 0===n?null:n,r=e.attributes,L=void 0===r?{}:r,o=e.read,M=void 0===o?function(){}:o,i=e.write,C=void 0===i?function(){}:i,a=e.create,N=void 0===a?function(){}:a,s=e.destroy,w=void 0===s?function(){}:s,u=e.filterFrameActionsForChild,G=void 0===u?function(e,t){return t}:u,l=e.didCreateView,U=void 0===l?function(){}:l,c=e.didWriteView,B=void 0===c?function(){}:c,f=e.ignoreRect,V=void 0!==f&&f,d=e.ignoreRectUpdate,F=void 0!==d&&d,p=e.mixins,q=void 0===p?[]:p;return function(e){var t,n,r,o,i,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=Y(b,"filepond--"+P,L),u=window.getComputedStyle(s,null),l=X(),c=null,f=!1,d=[],p=[],E={},_={},T=[C],I=[M],m=[w],v=function(){return s},g=function(){return[].concat(d)},R=function(){return c||(c=j(l,d,[0,0],[1,1]))},h={element:{get:v},style:{get:function(){return u}},childViews:{get:g}},O=Object.assign({},h,{rect:{get:R},ref:{get:function(){return E}},is:function(e){return P===e},appendChild:(i=s,function(e,t){void 0!==t&&i.children[t]?i.insertBefore(e,i.children[t]):i.appendChild(e)}),createChildView:(o=e,function(e,t){return e(o,t)}),linkView:function(e){return d.push(e),e},unlinkView:function(e){d.splice(d.indexOf(e),1)},appendChildView:(r=d,function(e,t){return void 0!==t?r.splice(t,0,e):r.push(e),e}),removeChildView:(t=s,n=d,function(e){return n.splice(n.indexOf(e),1),e.element.parentNode&&t.removeChild(e.element),e}),registerWriter:function(e){return T.push(e)},registerReader:function(e){return I.push(e)},registerDestroyer:function(e){return m.push(e)},invalidateLayout:function(){return s.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),D={element:{get:v},childViews:{get:g},rect:{get:R},resting:{get:function(){return f}},isRectIgnored:function(){return V},_read:function(){c=null,d.forEach(function(e){return e._read()}),!(F&&l.width&&l.height)&&X(l,s,u);var t={root:S,props:a,rect:l};I.forEach(function(e){return e(t)})},_write:function(n,r,o){var i=0===r.length;return T.forEach(function(e){!1===e({props:a,root:S,actions:r,timestamp:n,shouldOptimize:o})&&(i=!1)}),p.forEach(function(e){!1===e.write(n)&&(i=!1)}),d.filter(function(e){return!!e.element.parentNode}).forEach(function(e){e._write(n,G(e,r),o)||(i=!1)}),d.forEach(function(e,t){e.element.parentNode||(S.appendChild(e.element,t),e._read(),e._write(n,G(e,r),o),i=!1)}),f=i,B({props:a,root:S,actions:r,timestamp:n}),i},_destroy:function(){p.forEach(function(e){return e.destroy()}),m.forEach(function(e){e({root:S,props:a})}),d.forEach(function(e){return e._destroy()})}},y=Object.assign({},h,{rect:{get:function(){return l}}});Object.keys(q).sort(function(e,t){return"styles"===e?1:"styles"===t?-1:0}).forEach(function(e){var t=H[e]({mixinConfig:q[e],viewProps:a,viewState:_,viewInternalAPI:O,viewExternalAPI:D,view:x(y)});t&&p.push(t)});var S=x(O);N({root:S,props:a});var A=s.children.length;return d.forEach(function(e,t){S.appendChild(e.element,A+t)}),U(S),x(D)}},s=function(s,u){return function(e){var t=e.root,n=e.props,r=e.actions,o=void 0===r?[]:r,i=e.timestamp,a=e.shouldOptimize;o.filter(function(e){return s[e.type]}).forEach(function(e){return s[e.type]({root:t,props:n,action:e.data,timestamp:i,shouldOptimize:a})}),u&&u({root:t,props:n,actions:o,timestamp:i,shouldOptimize:a})}},L=function(e,t){return t.parentNode.insertBefore(e,t)},M=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},C=function(e){return Array.isArray(e)},B=function(e){return null==e},I=function(e){return e.trim()},v=function(e){return""+e},g=function(e){return"boolean"==typeof e},R=function(e){return g(e)?e:"true"===e},N=function(e){return"string"==typeof e},h=function(e){return P(e)?e:N(e)?v(e).replace(/[a-z]+/gi,""):0},O=function(e){return parseInt(h(e),10)},D=function(e){return P(e)&&isFinite(e)&&Math.floor(e)===e},y=function(e){if(D(e))return e;var t=v(e).trim();return/MB$/i.test(t)?(t=t.replace(/MB$i/,"").trim(),1e3*O(t)*1e3):/KB/i.test(t)?(t=t.replace(/KB$i/,"").trim(),1e3*O(t)):O(t)},w=function(e){return"function"==typeof e},G={process:"POST",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},U=function(e,t,n,r){if(null===t)return null;if("function"==typeof t)return t;var o={url:"GET"===n?"?"+e+"=":"",method:n,headers:{},withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(N(t))return o.url=t,o;if(Object.assign(o,t),N(o.headers)){var i=o.headers.split(/:(.+)/);o.headers={header:i[0],value:i[1]}}return o.withCredentials=R(o.withCredentials),o},V=function(e){return"object"===(void 0===e?"undefined":S(e))&&null!==e},F=function(e){return C(e)?"array":null===e?"null":D(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":V(t=e)&&N(t.url)&&V(t.process)&&V(t.revert)&&V(t.restore)&&V(t.fetch)?"api":void 0===e?"undefined":S(e);var t},q={array:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:",";return B(e)?[]:C(e)?e:v(e).split(t).map(I).filter(function(e){return e.length})},boolean:R,int:function(e){return"bytes"===F(e)?y(e):O(e)},float:function(e){return parseFloat(h(e))},bytes:y,string:function(e){return w(e)?e:v(e)},serverapi:function(e){return(n={}).url=N(t=e)?t:t.url||"",n.timeout=t.timeout?parseInt(t.timeout,10):0,A(G,function(e){n[e]=U(e,t[e],G[e],n.timeout)}),n.remove=t.remove||null,n;var t,n},object:function(e){try{return JSON.parse(e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'))}catch(e){return null}},function:function(e){return function(e){for(var t=self,n=e.split("."),r=null;r=n.shift();)if(!(t=t[r]))return null;return t}(e)}},W=function(e,t,n){if(e===t)return e;var r,o=F(e);if(o!==n){var i=(r=e,q[n](r));if(o=F(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},z=function(i){var a={};return A(i,function(e){var t,n,r,o=i[e];a[e]=(t=o[0],n=o[1],r=t,{enumerable:!0,get:function(){return r},set:function(e){r=W(e,t,n)}})}),x(a)},k=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map(function(e){return e.toLowerCase()}).join(t)},Q=1,Z=2,$=3,K=4,J=5,ee=function(){return Math.random().toString(36).substr(2,9)},te=function(e,t){return e.splice(t,1)},ne=function(){var o=[],n=function(t,n){te(o,o.findIndex(function(e){return e.event===t&&(e.cb===n||!n)}))};return{fire:function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];o.filter(function(e){return e.event===t}).map(function(e){return e.cb}).forEach(function(e){setTimeout(function(){e.apply(void 0,n)},0)})},on:function(e,t){o.push({event:e,cb:t})},onOnce:function(e,t){o.push({event:e,cb:function(){n(e,t),t.apply(void 0,arguments)}})},off:n}},re=function(t,n,r){Object.getOwnPropertyNames(t).filter(function(e){return!r.includes(e)}).forEach(function(e){return Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})},oe=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing"],ie=function(e){var t={};return re(e,t,oe),t},ae={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},se=function(e){return/[^0-9]+/.exec(e)},ue=function(){return se(1.1.toLocaleString())[0]},le={BOOLEAN:"boolean",INT:"int",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},ce=[],fe=function(o,i,a){return new Promise(function(t,n){var e=ce.filter(function(e){return e.key===o}).map(function(e){return e.cb});if(0!==e.length){var r=e.shift();e.reduce(function(e,t){return e.then(function(e){return t(e,a)})},r(i,a)).then(function(e){return t(e)}).catch(function(e){return n(e)})}else t(i)})},de=function(t,n,r){return ce.filter(function(e){return e.key===t}).map(function(e){return e.cb(n,r)})},pe=function(e,t){return ce.push({key:e,cb:t})},Ee=function(){return Object.assign({},_e)},_e={id:[null,le.STRING],name:["filepond",le.STRING],disabled:[!1,le.BOOLEAN],className:[null,le.STRING],required:[!1,le.BOOLEAN],captureMethod:[null,le.STRING],allowDrop:[!0,le.BOOLEAN],allowBrowse:[!0,le.BOOLEAN],allowPaste:[!0,le.BOOLEAN],allowMultiple:[!1,le.BOOLEAN],allowReplace:[!0,le.BOOLEAN],allowRevert:[!0,le.BOOLEAN],forceRevert:[!1,le.BOOLEAN],maxFiles:[null,le.INT],checkValidity:[!1,le.BOOLEAN],itemInsertLocationFreedom:[!0,le.BOOLEAN],itemInsertLocation:["before",le.STRING],itemInsertInterval:[75,le.INT],dropOnPage:[!1,le.BOOLEAN],dropOnElement:[!0,le.BOOLEAN],dropValidation:[!1,le.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],le.ARRAY],instantUpload:[!0,le.BOOLEAN],maxParallelUploads:[2,le.INT],server:[null,le.SERVER_API],labelDecimalSeparator:[ue(),le.STRING],labelThousandsSeparator:[(e=ue(),t=1e3.toLocaleString(),t!==1e3.toString()?se(t)[0]:"."===e?",":"."),le.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',le.STRING],labelInvalidField:["Field contains invalid files",le.STRING],labelFileWaitingForSize:["Waiting for size",le.STRING],labelFileSizeNotAvailable:["Size not available",le.STRING],labelFileCountSingular:["file in list",le.STRING],labelFileCountPlural:["files in list",le.STRING],labelFileLoading:["Loading",le.STRING],labelFileAdded:["Added",le.STRING],labelFileLoadError:["Error during load",le.STRING],labelFileRemoved:["Removed",le.STRING],labelFileRemoveError:["Error during remove",le.STRING],labelFileProcessing:["Uploading",le.STRING],labelFileProcessingComplete:["Upload complete",le.STRING],labelFileProcessingAborted:["Upload cancelled",le.STRING],labelFileProcessingError:["Error during upload",le.STRING],labelFileProcessingRevertError:["Error during revert",le.STRING],labelTapToCancel:["tap to cancel",le.STRING],labelTapToRetry:["tap to retry",le.STRING],labelTapToUndo:["tap to undo",le.STRING],labelButtonRemoveItem:["Remove",le.STRING],labelButtonAbortItemLoad:["Abort",le.STRING],labelButtonRetryItemLoad:["Retry",le.STRING],labelButtonAbortItemProcessing:["Cancel",le.STRING],labelButtonUndoItemProcessing:["Undo",le.STRING],labelButtonRetryItemProcessing:["Retry",le.STRING],labelButtonProcessItem:["Upload",le.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',le.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',le.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',le.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',le.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',le.STRING],oninit:[null,le.FUNCTION],onwarning:[null,le.FUNCTION],onerror:[null,le.FUNCTION],onactivatefile:[null,le.FUNCTION],onaddfilestart:[null,le.FUNCTION],onaddfileprogress:[null,le.FUNCTION],onaddfile:[null,le.FUNCTION],onprocessfilestart:[null,le.FUNCTION],onprocessfileprogress:[null,le.FUNCTION],onprocessfileabort:[null,le.FUNCTION],onprocessfilerevert:[null,le.FUNCTION],onprocessfile:[null,le.FUNCTION],onprocessfiles:[null,le.FUNCTION],onremovefile:[null,le.FUNCTION],onpreparefile:[null,le.FUNCTION],onupdatefiles:[null,le.FUNCTION],beforeAddFile:[null,le.FUNCTION],beforeRemoveFile:[null,le.FUNCTION],stylePanelLayout:[null,le.STRING],stylePanelAspectRatio:[null,le.STRING],styleItemPanelAspectRatio:[null,le.STRING],styleButtonRemoveItemPosition:["left",le.STRING],styleButtonProcessItemPosition:["right",le.STRING],styleLoadIndicatorPosition:["right",le.STRING],styleProgressIndicatorPosition:["right",le.STRING],files:[[],le.ARRAY]},Te=function(e,t){return B(t)?e[0]||null:D(t)?e[t]||null:("object"===(void 0===t?"undefined":S(t))&&(t=t.id),e.find(function(e){return e.id===t})||null)},Ie=function(e){if(B(e))return e;if(/:/.test(e)){var t=e.split(":"),n=o(t,2),r=n[0];return n[1]/r}return parseFloat(e)},me=function(e){return e.filter(function(e){return!e.archived})},ve={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},ge=[ae.LOAD_ERROR,ae.PROCESSING_ERROR,ae.PROCESSING_REVERT_ERROR],Re=[ae.LOADING,ae.PROCESSING,ae.PROCESSING_QUEUED,ae.INIT],he=[ae.PROCESSING_COMPLETE],Oe=function(e){return ge.includes(e.status)},De=function(e){return Re.includes(e.status)},ye=function(e){return he.includes(e.status)},Se=function(a){return{GET_STATUS:function(){var e=me(a.items),t=ve.EMPTY,n=ve.ERROR,r=ve.BUSY,o=ve.IDLE,i=ve.READY;return 0===e.length?t:e.some(Oe)?n:e.some(De)?r:e.some(ye)?i:o},GET_ITEM:function(e){return Te(a.items,e)},GET_ACTIVE_ITEM:function(e){return Te(me(a.items),e)},GET_ACTIVE_ITEMS:function(e){return me(a.items)},GET_ITEMS:function(e){return a.items},GET_ITEM_NAME:function(e){var t=Te(a.items,e);return t?t.filename:null},GET_ITEM_SIZE:function(e){var t=Te(a.items,e);return t?t.fileSize:null},GET_STYLES:function(){return Object.keys(a.options).filter(function(e){return/^style/.test(e)}).map(function(e){return{name:e,value:a.options[e]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(a.options.stylePanelLayout)?1:Ie(a.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return a.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return me(a.items).filter(function(e){return e.status===t})},GET_TOTAL_ITEMS:function(){return me(a.items).length},IS_ASYNC:function(){return V(a.options.server)&&(V(a.options.server.process)||w(a.options.server.process))}}},Ae=function(e,t,n){return B(t)?null:(void 0===n?e.push(t):(r=n,o=0,i=e.length,n=Math.max(Math.min(i,r),o),a=n,s=t,e.splice(a,0,s)),t);var r,o,i,a,s},be=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},Pe=function(e){return e.split("/").pop().split("?").shift()},Le=function(e){return e.split(".").pop()},Me=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},Ce=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+Me(e.getMonth()+1,"00")+"-"+Me(e.getDate(),"00")+"_"+Me(e.getHours(),"00")+"-"+Me(e.getMinutes(),"00")+"-"+Me(e.getSeconds(),"00")},Ne=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,o="string"==typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return o.lastModifiedDate=new Date,N(t)||(t=Ce()),t&&null===r&&Le(t)?o.name=t:(r=r||function(e){if("string"!=typeof e)return"";var t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?"jpeg"===t?"jpg":t:""}(o.type),o.name=t+(r?"."+r:"")),o},we=function(e,t){var n=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},Ge=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},Ue=function(e){var t=Ge(e);return function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return we(n,t)}(atob(e.split(",")[1].replace(/\s/g,"")),t)},Be=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},Ve=function(e){var t,n,r={source:null,name:null,size:null},o=e.split("\n"),i=!0,a=!1,s=void 0;try{for(var u,l=o[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=(void 0,(n=c.match(/(?:filename="(.+)")|(?:filename=(.+))/)||[])[1]||n[2]);if(f)r.name=f;else{var d=Be(c);if(d)r.size=d;else{var p=/x-content-transfer-id:/i.test(t=c)&&(t.split(":")[1]||"").trim()||null;p&&(r.source=p)}}}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return r},Fe=function(e){var r={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},o=function(t){e?(r.timestamp=Date.now(),r.request=e(t,function(e){r.duration=Date.now()-r.timestamp,r.complete=!0,e instanceof Blob&&(e=Ne(e,Pe(t))),i.fire("load",e instanceof Blob?e:e.body)},function(e){i.fire("error","string"==typeof e?{type:"error",code:0,body:e}:e)},function(e,t,n){n&&(r.size=n),r.duration=Date.now()-r.timestamp,e?(r.progress=t/n,i.fire("progress",r.progress)):r.progress=null},function(){i.fire("abort")},function(e){var t=Ve("string"==typeof e?e:e.headers);i.fire("meta",{size:r.size||t.size,filename:t.name,source:t.source})})):i.fire("error",{type:"error",body:"Can't load URL",code:400})},i=Object.assign({},ne(),{setSource:function(e){return r.source=e},getProgress:function(){return r.progress},abort:function(){r.request&&r.request.abort()},load:function(){var e,t,n=r.source;i.fire("init",n),n instanceof File?i.fire("load",n):n instanceof Blob?i.fire("load",Ne(n,n.name)):be(n)?i.fire("load",Ne(Ue(n),e,null,t)):o(n)}});return i},qe=function(e){return/GET|HEAD/.test(e)},xe=function(e,t,n){var r={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){o=!0,a.abort()}},o=!1,i=!1;n=Object.assign({method:"POST",headers:{},withCredentials:!1},n),t=encodeURI(t),qe(n.method)&&e&&(t=""+t+encodeURIComponent("string"==typeof e?e:JSON.stringify(e)));var a=new XMLHttpRequest;return(qe(n.method)?a:a.upload).onprogress=function(e){o||r.onprogress(e.lengthComputable,e.loaded,e.total)},a.onreadystatechange=function(){a.readyState<2||4===a.readyState&&0===a.status||i||(i=!0,r.onheaders(a))},a.onload=function(){200<=a.status&&a.status<300?r.onload(a):r.onerror(a)},a.onerror=function(){return r.onerror(a)},a.onabort=function(){o=!0,r.onabort()},a.ontimeout=function(){return r.ontimeout(a)},a.open(n.method,t,!0),D(n.timeout)&&(a.timeout=n.timeout),Object.keys(n.headers).forEach(function(e){a.setRequestHeader(e,n.headers[e])}),n.responseType&&(a.responseType=n.responseType),n.withCredentials&&(a.withCredentials=!0),a.send(e),r},Ye=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},je=function(t){return function(e){t(Ye("error",0,"Timeout",e.getAllResponseHeaders()))}},He=function(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",u=arguments[1];if("function"==typeof u)return u;if(!u||!N(u.url))return null;var l=u.onload||function(e){return e},c=u.onerror||function(e){return null};return function(r,o,t,e,n,i){var a=xe(r,s+u.url,Object.assign({},u,{responseType:"blob"}));return a.onload=function(e){var t=e.getAllResponseHeaders(),n=Ve(t).name||Pe(r);o(Ye("load",e.status,Ne(l(e.response),n),t))},a.onerror=function(e){t(Ye("error",e.status,c(e.response)||e.statusText,e.getAllResponseHeaders()))},a.onheaders=function(e){i(Ye("headers",e.status,null,e.getAllResponseHeaders()))},a.ontimeout=je(t),a.onprogress=e,a.onabort=n,a}},Xe=function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",i=arguments[1];if("function"==typeof i)return i;if(!i||!N(i.url))return function(e,t){return t()};var a=i.onload||function(e){return e},s=i.onerror||function(e){return null};return function(e,t,n){var r=xe(e,o+i.url,i);return r.onload=function(e){t(Ye("load",e.status,a(e.response),e.getAllResponseHeaders()))},r.onerror=function(e){n(Ye("error",e.status,s(e.response)||e.statusText,e.getAllResponseHeaders()))},r.ontimeout=je(n),r}},We=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},ze=function(o){var i={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},e=function(){i.request&&(i.perceivedPerformanceUpdater.clear(),i.request.abort(),i.complete=!0)},a=Object.assign({},ne(),{process:function(e,t){var r=function(){0!==i.duration&&null!==i.progress&&a.fire("progress",a.getProgress())},n=function(){i.complete=!0,a.fire("load-perceived",i.response.body)};a.fire("start"),i.timestamp=Date.now(),i.perceivedPerformanceUpdater=function(o){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1e3,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:25,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:250,u=null,l=Date.now();return function e(){var t=Date.now()-l,n=We(a,s);i<t+n&&(n=t+n-i);var r=t/i;1<=r?o(1):(o(r),u=setTimeout(e,n))}(),{clear:function(){clearTimeout(u)}}}(function(e){i.perceivedProgress=e,i.perceivedDuration=Date.now()-i.timestamp,r(),i.response&&1===i.perceivedProgress&&!i.complete&&n()},We(750,1500)),i.request=o(e,t,function(e){i.response=V(e)?e:{type:"load",code:200,body:""+e,headers:{}},i.duration=Date.now()-i.timestamp,i.progress=1,a.fire("load",i.response.body),1===i.perceivedProgress&&n()},function(e){i.perceivedPerformanceUpdater.clear(),a.fire("error",V(e)?e:{type:"error",code:0,body:""+e})},function(e,t,n){i.duration=Date.now()-i.timestamp,i.progress=e?t/n:null,r()},function(){i.perceivedPerformanceUpdater.clear(),a.fire("abort",i.response?i.response.body:null)})},abort:e,getProgress:function(){return i.progress?Math.min(i.progress,i.perceivedProgress):null},getDuration:function(){return Math.min(i.duration,i.perceivedDuration)},reset:function(){e(),i.complete=!1,i.perceivedProgress=0,i.progress=0,i.timestamp=null,i.perceivedDuration=0,i.duration=0,i.request=null,i.response=null}});return a},ke=function(e){return e.substr(0,e.lastIndexOf("."))||e},Qe={INPUT:1,LIMBO:2,LOCAL:3},Ze=function(e){return e instanceof File||e instanceof Blob&&e.name},$e=function(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=ee(),a={archived:!1,released:!1,source:null,file:t,serverFileReference:e,status:e?ae.PROCESSING_COMPLETE:ae.INIT,activeLoader:null,activeProcessor:null},r=null,s={},u=function(e){return a.status=e},l=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.released||c.fire.apply(c,[e].concat(n))},o=function(e,t,n){var r=e.split("."),o=r[0],i=r.pop(),a=s;r.forEach(function(e){return a=a[e]}),JSON.stringify(a[i])!==JSON.stringify(t)&&(a[i]=t,n||l("metadata-update",{key:o,value:s[o]}))},c=Object.assign({id:{get:function(){return n}},origin:{get:function(){return i}},serverId:{get:function(){return a.serverFileReference}},status:{get:function(){return a.status}},filename:{get:function(){return a.file.name}},filenameWithoutExtension:{get:function(){return ke(a.file.name)}},fileExtension:{get:function(){return Le(a.file.name)}},fileType:{get:function(){return a.file.type}},fileSize:{get:function(){return a.file.size}},file:{get:function(){return a.file}},source:{get:function(){return a.source}},getMetadata:function(e){return function e(t){if(!V(t))return t;var n=C(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];n[r]=o&&V(o)?e(o):o}return n}(e?s[e]:s)},setMetadata:function(e,t,n){if(V(e)){var r=e;return Object.keys(r).forEach(function(e){o(e,r[e],t)}),e}return o(e,t,n),t},extend:function(e,t){return f[e]=t},abortLoad:function(){a.activeLoader?a.activeLoader.abort():(u(ae.INIT),l("load-abort"))},retryLoad:function(){a.activeLoader&&a.activeLoader.load()},requestProcessing:function(){u(ae.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise(function(e){if(!a.activeProcessor)return u(ae.IDLE),l("process-abort"),void e();r=function(){e()},a.activeProcessor.abort()})},load:function(e,t,n){var r,o;a.source=e,a.file?l("load-skip"):(a.file=(o=[(r=e).name,r.size,r.type],r instanceof Blob||be(r)?o[0]=r.name||Ce():be(r)?(o[1]=r.length,o[2]=Ge(r)):N(r)&&(o[0]=Pe(r),o[1]=0,o[2]="application/octet-stream"),{name:o[0],size:o[1],type:o[2]}),t.on("init",function(){l("load-init")}),t.on("meta",function(e){a.file.size=e.size,a.file.filename=e.filename,e.source&&(i=Qe.LIMBO,a.serverFileReference=e.source,a.status=ae.PROCESSING_COMPLETE),l("load-meta")}),t.on("progress",function(e){u(ae.LOADING),l("load-progress",e)}),t.on("error",function(e){u(ae.LOAD_ERROR),l("load-request-error",e)}),t.on("abort",function(){u(ae.INIT),l("load-abort")}),t.on("load",function(t){a.activeLoader=null;var e=function(e){a.file=Ze(e)?e:a.file,i===Qe.LIMBO&&a.serverFileReference?u(ae.PROCESSING_COMPLETE):u(ae.IDLE),l("load")};a.serverFileReference?e(t):n(t,e,function(e){a.file=t,l("load-meta"),u(ae.LOAD_ERROR),l("load-file-error",e)})}),t.setSource(e),(a.activeLoader=t).load())},process:function e(t,n){u(ae.PROCESSING),r=null,a.file instanceof Blob?(t.on("load",function(e){a.serverFileReference=e}),t.on("load-perceived",function(e){a.activeProcessor=null,a.serverFileReference=e,u(ae.PROCESSING_COMPLETE),l("process-complete",e)}),t.on("start",function(){l("process-start")}),t.on("error",function(e){a.activeProcessor=null,u(ae.PROCESSING_ERROR),l("process-error",e)}),t.on("abort",function(e){a.activeProcessor=null,a.serverFileReference=e,u(ae.IDLE),l("process-abort"),r&&r()}),t.on("progress",function(e){l("process-progress",e)}),n(a.file,function(e){a.archived||t.process(e,Object.assign({},s))},function(e){}),a.activeProcessor=t):c.on("load",function(){e(t,n)})},revert:function(e,r){return new Promise(function(t,n){null!==a.serverFileReference?(e(a.serverFileReference,function(){a.serverFileReference=null,t()},function(e){r?(u(ae.PROCESSING_REVERT_ERROR),l("process-revert-error"),n(e)):t()}),u(ae.IDLE),l("process-revert")):t()})}},ne(),{release:function(){return a.released=!0},released:{get:function(){return a.released}},archive:function(){return a.archived=!0},archived:{get:function(){return a.archived}}}),f=x(c);return f},Ke=function(e,t){var n,r,o=(n=e,B(r=t)?0:N(r)?n.findIndex(function(e){return e.id===r}):-1);if(!(o<0))return e[o]||null},Je=function(r,o,t,e,n,i){var a=xe(null,r,{method:"GET",responseType:"blob"});return a.onload=function(e){var t=e.getAllResponseHeaders(),n=Ve(t).name||Pe(r);o(Ye("load",e.status,Ne(e.response,n),t))},a.onerror=function(e){t(Ye("error",e.status,e.statusText,e.getAllResponseHeaders()))},a.onheaders=function(e){i(Ye("headers",e.status,null,e.getAllResponseHeaders()))},a.ontimeout=je(t),a.onprogress=e,a.onabort=n,a},et=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},tt=function(e){return function(){return w(e)?e.apply(void 0,arguments):e}},nt=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(function(){e("DID_UPDATE_ITEMS",{items:me(t.items)})},0)},rt=function(n){for(var e=arguments.length,r=Array(1<e?e-1:0),t=1;t<e;t++)r[t-1]=arguments[t];return new Promise(function(e){if(!n)return e(!0);var t=n.apply(void 0,r);return null==t?e(!0):"boolean"==typeof t?e(t):void("function"==typeof t.then&&t.then(e))})},ot=function(e,n){e.items.sort(function(e,t){return n(ie(e),ie(t))})},it=function(s,u){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=e.success,r=void 0===n?function(){}:n,o=e.failure,i=void 0===o?function(){}:o,a=Te(s.items,t);a?u(a,r,i):i({error:Ye("error",0,"Item not found"),file:null})}},at=function(D,y,S){return{ABORT_ALL:function(){me(S.items).forEach(function(e){e.abortLoad(),e.abortProcessing()})},DID_SET_FILES:function(e){var t=e.value,n=(void 0===t?[]:t).map(function(e){return{source:e.source?e.source:e,options:e.options}}),r=me(S.items);r.forEach(function(t){n.find(function(e){return e.source===t.source||e.source===t.file})||D("REMOVE_ITEM",{query:t})}),r=me(S.items),n.forEach(function(t,e){r.find(function(e){return e.source===t.source||e.file===t.source})||D("ADD_ITEM",Object.assign({},t,{interactionMethod:J,index:e}))})},DID_UPDATE_ITEM_METADATA:function(e){var t=e.id,n=Ke(S.items,t);if(y("IS_ASYNC")){var r,o,i=function(){setTimeout(function(){D("REQUEST_ITEM_PROCESSING",{query:t})},32)};return n.status===ae.PROCESSING_COMPLETE?(r=S.options.instantUpload,void n.revert(Xe(S.options.server.url,S.options.server.revert),y("GET_FORCE_REVERT")).then(r?i:function(){}).catch(function(){})):n.status===ae.PROCESSING?(o=S.options.instantUpload,void n.abortProcessing().then(o?i:function(){})):void(S.options.instantUpload&&i())}fe("SHOULD_PREPARE_OUTPUT",!1,{item:n,query:y}).then(function(e){e&&D("REQUEST_PREPARE_OUTPUT",{query:t,item:n,ready:function(e){D("DID_PREPARE_OUTPUT",{id:t,file:e})}},!0)})},SORT:function(e){var t=e.compare;ot(S,t)},ADD_ITEMS:function(e){var t=e.items,n=e.index,r=e.interactionMethod,o=e.success,i=void 0===o?function(){}:o,a=e.failure,s=void 0===a?function(){}:a,u=n;if(-1===n||void 0===n){var l=y("GET_ITEM_INSERT_LOCATION"),c=y("GET_TOTAL_ITEMS");u="before"===l?0:c}var f=y("GET_IGNORED_FILES"),d=t.filter(function(e){return Ze(e)?!f.includes(e.name.toLowerCase()):!B(e)}).map(function(n){return new Promise(function(e,t){D("ADD_ITEM",{interactionMethod:r,source:n.source||n,success:e,failure:t,index:u++,options:n.options||{}})})});Promise.all(d).then(i).catch(s)},ADD_ITEM:function(e){var n=e.source,t=e.index,r=void 0===t?-1:t,o=e.interactionMethod,i=e.success,a=void 0===i?function(){}:i,s=e.failure,u=void 0===s?function(){}:s,l=e.options,c=void 0===l?{}:l;if(B(n))u({error:Ye("error",0,"No source"),file:null});else if(!Ze(n)||!S.options.ignoredFiles.includes(n.name.toLowerCase())){if(!function(e){var t=me(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t<n}(S)){if(S.options.allowMultiple||!S.options.allowMultiple&&!S.options.allowReplace){var f=Ye("warning",0,"Max files");return D("DID_THROW_MAX_FILES",{source:n,error:f}),void u({error:f,file:null})}var d=me(S.items)[0];if(d.status===ae.PROCESSING_COMPLETE||d.status===ae.PROCESSING_REVERT_ERROR){var p=y("GET_FORCE_REVERT");if(d.revert(Xe(S.options.server.url,S.options.server.revert),p).then(function(){p&&D("ADD_ITEM",{source:n,index:r,interactionMethod:o,success:a,failure:u,options:c})}).catch(function(){}),p)return}D("REMOVE_ITEM",{query:d.id})}var E="local"===c.type?Qe.LOCAL:"limbo"===c.type?Qe.LIMBO:Qe.INPUT,_=$e(E,E===Qe.INPUT?null:n,c.file);Object.keys(c.metadata||{}).forEach(function(e){_.setMetadata(e,c.metadata[e])}),de("DID_CREATE_ITEM",_,{query:y,dispatch:D});var T=y("GET_ITEM_INSERT_LOCATION");S.options.itemInsertLocationFreedom||(r="before"===T?-1:S.items.length),Ae(S.items,_,r),w(T)&&n&&ot(S,T);var I=_.id;_.on("load-init",function(){D("DID_START_ITEM_LOAD",{id:I})}),_.on("load-meta",function(){D("DID_UPDATE_ITEM_META",{id:I})}),_.on("load-progress",function(e){D("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:I,progress:e})}),_.on("load-request-error",function(e){var t=tt(S.options.labelFileLoadError)(e);if(400<=e.code&&e.code<500)return D("DID_THROW_ITEM_INVALID",{id:I,error:e,status:{main:t,sub:e.code+" ("+e.body+")"}}),void u({error:e,file:ie(_)});D("DID_THROW_ITEM_LOAD_ERROR",{id:I,error:e,status:{main:t,sub:S.options.labelTapToRetry}})}),_.on("load-file-error",function(e){D("DID_THROW_ITEM_INVALID",{id:I,error:e.status,status:e.status})}),_.on("load-abort",function(){D("REMOVE_ITEM",{query:I})}),_.on("load-skip",function(){D("COMPLETE_LOAD_ITEM",{query:I,item:_,data:{source:n,success:a}})}),_.on("load",function(){var e=function(e){e?(_.on("metadata-update",function(e){D("DID_UPDATE_ITEM_METADATA",{id:I,change:e})}),fe("SHOULD_PREPARE_OUTPUT",!1,{item:_,query:y}).then(function(e){var t=function(){D("COMPLETE_LOAD_ITEM",{query:I,item:_,data:{source:n,success:a}}),nt(D,S)};e?D("REQUEST_PREPARE_OUTPUT",{query:I,item:_,ready:function(e){D("DID_PREPARE_OUTPUT",{id:I,file:e}),t()}},!0):t()})):D("REMOVE_ITEM",{query:I})};fe("DID_LOAD_ITEM",_,{query:y,dispatch:D}).then(function(){rt(y("GET_BEFORE_ADD_FILE"),ie(_)).then(e)}).catch(function(){e(!1)})}),_.on("process-start",function(){D("DID_START_ITEM_PROCESSING",{id:I})}),_.on("process-progress",function(e){D("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:I,progress:e})}),_.on("process-error",function(e){D("DID_THROW_ITEM_PROCESSING_ERROR",{id:I,error:e,status:{main:tt(S.options.labelFileProcessingError)(e),sub:S.options.labelTapToRetry}})}),_.on("process-revert-error",function(e){D("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:I,error:e,status:{main:tt(S.options.labelFileProcessingRevertError)(e),sub:S.options.labelTapToRetry}})}),_.on("process-complete",function(e){D("DID_COMPLETE_ITEM_PROCESSING",{id:I,error:null,serverFileReference:e})}),_.on("process-abort",function(){D("DID_ABORT_ITEM_PROCESSING",{id:I})}),_.on("process-revert",function(){D("DID_REVERT_ITEM_PROCESSING",{id:I})}),D("DID_ADD_ITEM",{id:I,index:r,interactionMethod:o}),nt(D,S);var m,v=S.options.server||{},g=v.url,R=v.load,h=v.restore,O=v.fetch;_.load(n,Fe(E===Qe.INPUT?N(n)&&((-1<(m=n).indexOf(":")||-1<m.indexOf("//"))&&et(location.href)!==et(m))?He(g,O):Je:He(g,E===Qe.LIMBO?h:R)),function(e,t,n){fe("LOAD_FILE",e,{query:y}).then(t).catch(n)})}},REQUEST_PREPARE_OUTPUT:function(e){var t=e.item,n=e.ready;t.archived||fe("PREPARE_OUTPUT",t.file,{query:y,item:t}).then(function(e){fe("COMPLETE_PREPARE_OUTPUT",e,{query:y,item:t}).then(function(e){t.archived||n(e)})})},COMPLETE_LOAD_ITEM:function(e){var t=e.item,n=e.data,r=n.success,o=n.source,i=y("GET_ITEM_INSERT_LOCATION");w(i)&&o&&ot(S,i),D("DID_LOAD_ITEM",{id:t.id,error:null,serverFileReference:t.origin===Qe.INPUT?null:o}),r(ie(t)),t.origin!==Qe.LOCAL?t.origin!==Qe.LIMBO?y("IS_ASYNC")&&S.options.instantUpload&&D("REQUEST_ITEM_PROCESSING",{query:t.id}):D("DID_COMPLETE_ITEM_PROCESSING",{id:t.id,error:null,serverFileReference:o}):D("DID_LOAD_LOCAL_ITEM",{id:t.id})},RETRY_ITEM_LOAD:it(S,function(e){e.retryLoad()}),REQUEST_ITEM_PROCESSING:it(S,function(e,t,n){if(e.status===ae.IDLE||e.status===ae.PROCESSING_ERROR)e.status!==ae.PROCESSING_QUEUED&&(e.requestProcessing(),D("DID_REQUEST_ITEM_PROCESSING",{id:e.id}),D("PROCESS_ITEM",{query:e,success:t,failure:n},!0));else{var r=function(){setTimeout(function(){D("REQUEST_ITEM_PROCESSING",{query:e,success:t,failure:n})},32)};e.status===ae.PROCESSING_COMPLETE||e.status===ae.PROCESSING_REVERT_ERROR?e.revert(Xe(S.options.server.url,S.options.server.revert),y("GET_FORCE_REVERT")).then(r).catch(function(){}):e.status===ae.PROCESSING&&e.abortProcessing().then(r)}}),PROCESS_ITEM:it(S,function(r,e,t){var n=y("GET_MAX_PARALLEL_UPLOADS");if(y("GET_ITEMS_BY_STATUS",ae.PROCESSING).length!==n){if(r.status!==ae.PROCESSING){var o=function(){var e=S.processingQueue.shift();e&&D("PROCESS_ITEM",{query:e.item,success:e.success,failure:e.failure},!0)};r.onOnce("process-complete",function(){e(ie(r)),o(),y("GET_ITEMS_BY_STATUS",ae.PROCESSING_COMPLETE).length===S.items.length&&D("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",function(e){t({error:e,file:ie(r)}),o()}),r.process(ze(function(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",d=arguments[1],p=arguments[2];return"function"==typeof d?function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.apply(void 0,[p].concat(t))}:d&&N(d.url)?function(e,t,n,r,o,i){var a=d.ondata||function(e){return e},s=d.onload||function(e){return e},u=d.onerror||function(e){return null};if(e){var l=new FormData;V(t)&&l.append(p,JSON.stringify(t)),(e instanceof Blob?[{name:null,file:e}]:e).forEach(function(e){l.append(p,e.file,null===e.name?e.file.name:""+e.name+e.file.name)});var c=xe(a(l),f+d.url,d);return c.onload=function(e){n(Ye("load",e.status,s(e.response),e.getAllResponseHeaders()))},c.onerror=function(e){r(Ye("error",e.status,u(e.response)||e.statusText,e.getAllResponseHeaders()))},c.ontimeout=je(r),c.onprogress=o,c.onabort=i,c}}:null}(S.options.server.url,S.options.server.process,S.options.name)),function(e,t,n){fe("PREPARE_OUTPUT",e,{query:y,item:r}).then(function(e){D("DID_PREPARE_OUTPUT",{id:r.id,file:e}),t(e)}).catch(n)})}}else S.processingQueue.push({item:r,success:e,failure:t})}),RETRY_ITEM_PROCESSING:it(S,function(e){D("REQUEST_ITEM_PROCESSING",{query:e})}),REQUEST_REMOVE_ITEM:it(S,function(t){rt(y("GET_BEFORE_REMOVE_FILE"),ie(t)).then(function(e){e&&D("REMOVE_ITEM",{query:t})})}),RELEASE_ITEM:it(S,function(e){e.release()}),REMOVE_ITEM:it(S,function(t,n){var e=function(){var e=t.id;Ke(S.items,e).archive(),D("DID_REMOVE_ITEM",{id:e,item:t}),nt(D,S),n(ie(t))},r=S.options.server;t.origin===Qe.LOCAL&&r&&w(r.remove)?(D("DID_START_ITEM_REMOVE",{id:t.id}),r.remove(t.source,function(){return e()},function(e){D("DID_THROW_ITEM_REMOVE_ERROR",{id:t.id,error:Ye("error",0,e,null),status:{main:tt(S.options.labelFileRemoveError)(e),sub:S.options.labelTapToRetry}})})):e()}),ABORT_ITEM_LOAD:it(S,function(e){e.abortLoad()}),ABORT_ITEM_PROCESSING:it(S,function(e){e.serverId?D("REVERT_ITEM_PROCESSING",{id:e.id}):e.abortProcessing().then(function(){S.options.instantUpload&&D("REMOVE_ITEM",{query:e.id})})}),REQUEST_REVERT_ITEM_PROCESSING:it(S,function(t){if(S.options.instantUpload){var e=function(e){e&&D("REVERT_ITEM_PROCESSING",{query:t})},n=y("GET_BEFORE_REMOVE_FILE");if(!n)return e(!0);var r=n(ie(t));return null==r?e(!0):"boolean"==typeof r?e(r):void("function"==typeof r.then&&r.then(e))}D("REVERT_ITEM_PROCESSING",{query:t})}),REVERT_ITEM_PROCESSING:it(S,function(e){e.revert(Xe(S.options.server.url,S.options.server.revert),y("GET_FORCE_REVERT")).then(function(){(S.options.instantUpload||!Ze(e.file))&&D("REMOVE_ITEM",{query:e.id})}).catch(function(){})}),SET_OPTIONS:function(e){var t=e.options;A(t,function(e,t){D("SET_"+k(e,"_").toUpperCase(),{value:t})})}}},st=function(e){return e},ut=function(e){return document.createElement(e)},lt=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},ct=function(e,t,n,r){var o=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},ft=function(e,t,n,r,o){var i,a,s,u,l,c,f,d,p=1;return r<o&&o-r<=.5&&(p=0),o<r&&.5<=r-o&&(p=0),i=e,a=t,s=n,u=360*Math.min(.9999,r),l=360*Math.min(.9999,o),c=p,f=ct(i,a,s,l),d=ct(i,a,s,u),["M",f.x,f.y,"A",s,s,0,c,0,d.x,d.y].join(" ")},dt=a({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=Y("svg");t.ref.path=Y("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},write:function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var r=parseInt(u(t.ref.path,"stroke-width"),10),o=.5*t.rect.element.width,i=0,a=0;a=n.spin?(i=0,.5):(i=0,n.progress);var s=ft(o,o,o-r,i,a);u(t.ref.path,"d",s),u(t.ref.path,"stroke-opacity",n.spin||0<n.progress?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),pt=a({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(e){var t=e.root,n=e.props;t.element.title=n.label,t.element.innerHTML=n.icon||"",n.isDisabled=!1},write:function(e){var t=e.root,n=e.props,r=n.isDisabled,o=t.query("GET_DISABLED")||0===n.opacity;o&&!r?(n.isDisabled=!0,u(t.element,"disabled","disabled")):!o&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))}}),Et=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:".";return(e=Math.round(Math.abs(e)))<1e3?e+" bytes":e<Tt?Math.floor(e/_t)+" KB":e<It?mt(e/Tt,1,t)+" MB":mt(e/It,2,t)+" GB"},_t=1e3,Tt=1e6,It=1e9,mt=function(e,t,n){return e.toFixed(t).split(".").filter(function(e){return"0"!==e}).join(n)},vt=function(e){var t=e.root,n=e.props;lt(t.ref.fileSize,Et(t.query("GET_ITEM_SIZE",n.id))),lt(t.ref.fileName,st(t.query("GET_ITEM_NAME",n.id)))},gt=function(e){var t=e.root,n=e.props;D(t.query("GET_ITEM_SIZE",n.id))||lt(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Rt=a({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:s({DID_LOAD_ITEM:vt,DID_UPDATE_ITEM_META:vt,DID_THROW_ITEM_LOAD_ERROR:gt,DID_THROW_ITEM_INVALID:gt}),didCreateView:function(e){de("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=e.props,r=ut("span");r.className="filepond--file-info-main",u(r,"aria-hidden","true"),t.appendChild(r),t.ref.fileName=r;var o=ut("span");o.className="filepond--file-info-sub",t.appendChild(o),t.ref.fileSize=o,lt(o,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),lt(r,st(t.query("GET_ITEM_NAME",n.id)))},mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),ht=function(e){return Math.round(100*e)},Ot=function(e){var t=e.root,n=e.action,r=null===n.progress?t.query("GET_LABEL_FILE_LOADING"):t.query("GET_LABEL_FILE_LOADING")+" "+ht(n.progress)+"%";lt(t.ref.main,r),lt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Dt=function(e){var t=e.root;lt(t.ref.main,""),lt(t.ref.sub,"")},yt=function(e){var t=e.root,n=e.action;lt(t.ref.main,n.status.main),lt(t.ref.sub,n.status.sub)},St=a({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:s({DID_LOAD_ITEM:Dt,DID_REVERT_ITEM_PROCESSING:Dt,DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;lt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),lt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(e){var t=e.root;lt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),lt(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root;lt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),lt(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action,r=null===n.progress?t.query("GET_LABEL_FILE_PROCESSING"):t.query("GET_LABEL_FILE_PROCESSING")+" "+ht(n.progress)+"%";lt(t.ref.main,r),lt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:Ot,DID_THROW_ITEM_LOAD_ERROR:yt,DID_THROW_ITEM_INVALID:yt,DID_THROW_ITEM_PROCESSING_ERROR:yt,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:yt,DID_THROW_ITEM_REMOVE_ERROR:yt}),didCreateView:function(e){de("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=ut("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var r=ut("span");r.className="filepond--file-status-sub",t.appendChild(r),t.ref.sub=r,Ot({root:t,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),At={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},bt=[];A(At,function(e){bt.push(e)});var Pt,Lt=function(e){return e.ref.buttonRemoveItem.rect.element.width+e.ref.buttonRemoveItem.rect.element.left},Mt=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},Ct=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},Nt=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},wt={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},Gt={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Lt},status:{translateX:Lt}},Ut={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},Bt={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Lt},status:{translateX:Lt,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Lt},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:Nt},info:{translateX:Lt},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:Nt},buttonRemoveItem:{opacity:1},info:{translateX:Lt},status:{opacity:1,translateX:Lt}},DID_LOAD_ITEM:Gt,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Lt},status:{translateX:Lt}},DID_START_ITEM_PROCESSING:Ut,DID_REQUEST_ITEM_PROCESSING:Ut,DID_UPDATE_ITEM_PROCESS_PROGRESS:Ut,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Lt}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Lt},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:Gt},Vt=a({create:function(e){var t=e.root;t.element.innerHTML=t.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),Ft=s({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemProcessing.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemLoad.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemRemoval.label=n.value},DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(e){var t=e.root;t.ref.loadProgressIndicator.spin=!0,t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.loadProgressIndicator.spin=!1,t.ref.loadProgressIndicator.progress=n.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.processProgressIndicator.spin=!1,t.ref.processProgressIndicator.progress=n.progress}}),qt=a({create:function(e){var r=e.root,o=e.props.id,t=r.query("GET_ALLOW_REVERT"),n=r.query("GET_INSTANT_UPLOAD"),i=r.query("IS_ASYNC"),a=i?bt.concat():bt.filter(function(e){return!/Process/.test(e)});if(i&&!t){a.splice(-1,1);var s=Bt.DID_COMPLETE_ITEM_PROCESSING;s.info.translateX=Ct,s.info.translateY=Mt,s.status.translateY=Mt,s.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}n&&t&&(At.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",At.RevertItemProcessing.icon="GET_ICON_REMOVE"),A(At,function(e,t){var n=r.createChildView(pt,{label:r.query(t.label),icon:r.query(t.icon),opacity:0});a.includes(e)&&r.appendChildView(n),n.element.dataset.align=r.query("GET_STYLE_"+t.align),n.element.classList.add(t.className),n.on("click",function(e){e.stopPropagation(),r.dispatch(t.action,{query:o})}),r.ref["button"+e]=n}),r.ref.info=r.appendChildView(r.createChildView(Rt,{id:o})),r.ref.status=r.appendChildView(r.createChildView(St,{id:o})),r.ref.processingCompleteIndicator=r.appendChildView(r.createChildView(Vt)),r.ref.processingCompleteIndicator.element.dataset.align=r.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION");var u=r.appendChildView(r.createChildView(dt,{opacity:0,align:r.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));u.element.classList.add("filepond--load-indicator"),r.ref.loadProgressIndicator=u;var l=r.appendChildView(r.createChildView(dt,{opacity:0,align:r.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));l.element.classList.add("filepond--process-indicator"),r.ref.processProgressIndicator=l},write:function(e){var i=e.root,t=e.actions,n=e.props;Ft({root:i,actions:t,props:n});var r=[].concat(b(t)).filter(function(e){return/^DID_/.test(e.type)}).reverse().find(function(e){return Bt[e.type]});if(r&&(!r||r.type!==i.ref.currentAction)){i.ref.currentAction=r.type;var a=Bt[i.ref.currentAction];A(wt,function(r,e){var o=i.ref[r];A(e,function(e,t){var n=a[r]&&void 0!==a[r][e]?a[r][e]:t;o[e]="function"==typeof n?n(i):n})})}},didCreateView:function(e){de("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),xt=a({create:function(e){var t=e.root,n=e.props;t.ref.fileName=ut("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(qt,{id:n.id}));var r=ut("input");r.type="hidden",r.name=t.query("GET_NAME"),r.disabled=t.query("GET_DISABLED"),t.ref.data=r,t.appendChild(r)},ignoreRect:!0,write:s({DID_SET_DISABLED:function(e){var t=e.root;t.ref.data.disabled=t.query("GET_DISABLED")},DID_LOAD_ITEM:function(e){var t=e.root,n=e.action,r=e.props;t.ref.data.value=n.serverFileReference,lt(t.ref.fileName,st(t.query("GET_ITEM_NAME",r.id)))},DID_REMOVE_ITEM:function(e){e.root.ref.data.removeAttribute("value")},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,n=e.action;t.ref.data.value=n.serverFileReference},DID_REVERT_ITEM_PROCESSING:function(e){e.root.ref.data.removeAttribute("value")}}),didCreateView:function(e){de("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),Yt={type:"spring",damping:.6,mass:7},jt=function(e,t,n){var r=a({name:"panel-"+t.name+" filepond--"+n,mixins:t.mixins,ignoreRectUpdate:!0}),o=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(o)},Ht=a({name:"panel",write:function(e){var t=e.root,n=e.props;if(null!==t.ref.scalable&&n.scalable===t.ref.scalable||(t.ref.scalable=!g(n.scalable)||n.scalable,t.element.dataset.scalable=t.ref.scalable),n.height){var r=t.ref.top.rect.element,o=t.ref.bottom.rect.element,i=Math.max(r.height+o.height,n.height);t.ref.center.translateY=r.height,t.ref.center.scaleY=(i-r.height-o.height)/100,t.ref.bottom.translateY=i-o.height}},create:function(e){var t=e.root,n=e.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:Yt},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:Yt},styles:["translateY"]}}].forEach(function(e){jt(t,e,n.name)}),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","scalable"]}}),Xt={type:"spring",stiffness:.75,damping:.45,mass:10},Wt={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy",DID_REQUEST_ITEM_PROCESSING:"busy",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},zt=s({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action.height;t.height=n}}),kt=a({create:function(e){var t=e.root,n=e.props;t.ref.handleClick=function(){return t.dispatch("DID_ACTIVATE_ITEM",{id:n.id})},t.element.id="filepond--item-"+n.id,t.element.addEventListener("click",t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(xt,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(Ht,{name:"item-panel"})),t.ref.panel.height=0,n.markedForRemoval=!1},write:function(e){var t=e.root,n=e.actions,r=e.props,o=e.shouldOptimize,i=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");i?o||(t.height=t.rect.element.width*i):(zt({root:t,actions:n,props:r}),t.height||(t.height=t.ref.container.rect.element.height)),o&&(t.ref.panel.height=null),t.ref.panel.height=t.height;var a=[].concat(b(n)).filter(function(e){return/^DID_/.test(e.type)}).reverse().find(function(e){return Wt[e.type]});!a||a&&a.type===r.currentState||(r.currentState=a.type,t.element.dataset.filepondItemState=Wt[r.currentState]||"")},destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:"spring",scaleY:"spring",translateX:Xt,translateY:Xt,opacity:{type:"tween",duration:150}}}}),Qt=function(e,t){if(t){var n=e.rect.element.width,r=e.childViews,o=r.length,i=null;if(0===o||t.top<r[0].rect.element.top)return-1;var a=r[0].rect.element,s=a.marginLeft+a.marginRight,u=a.width+s,l=Math.round(n/u);if(1===l){for(var c=0;c<o;c++){var f=r[c],d=f.rect.outer.top+.5*f.rect.element.height;if(t.top<d)return c}return o}for(var p=a.marginTop+a.marginBottom,E=a.height+p,_=0;_<o;_++){var T=_%l*u,I=Math.floor(_/l)*E,m=I-a.marginTop,v=T+u,g=I+E+a.marginBottom;if(t.top<g&&t.top>m){if(t.left<v)return _;i=_!==o-1?_:null}}return null!==i?i:o}},Zt=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1;e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&$t(e,t,n,r,o),e.scaleX=1,e.scaleY=1,e.opacity=1)},$t=function(e,t,n,r,o){e.interactionMethod===J?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Z?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*o,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===$?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Q&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},Kt=s({DID_ADD_ITEM:function(e){var t=e.root,n=e.action,r=n.id,o=n.index,i=n.interactionMethod;t.ref.addIndex=o;var a=Date.now(),s=a,u=1;if(i!==J){u=0;var l=t.query("GET_ITEM_INSERT_INTERVAL"),c=a-t.ref.lastItemSpanwDate;s=c<l?a+(l-c):a}t.ref.lastItemSpanwDate=s,t.appendChildView(t.createChildView(kt,{spawnDate:s,id:r,opacity:u,interactionMethod:i}),o)},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action.id,r=t.childViews.find(function(e){return e.id===n});r&&(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)}}),Jt=a({create:function(e){var t=e.root;u(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},write:function(e){var t=e.root,n=e.props,r=e.actions,l=e.shouldOptimize;Kt({root:t,props:n,actions:r});var o=n.dragCoordinates,c=o?Qt(t,o):null,i=t.rect.element.width,a=t.childViews.filter(function(e){return e.rect.outer.height}),s=t.query("GET_ACTIVE_ITEMS").map(function(t){return a.find(function(e){return e.id===t.id})}).filter(function(e){return e}),f=t.ref.addIndex||null;t.ref.addIndex=null;var d=0,p=0,E=0;if(0!==s.length){var u=s[0].rect.element,_=u.marginTop+u.marginBottom,T=u.marginLeft+u.marginRight,I=u.width+T,m=u.height+_,v=Math.round(i/I);if(1===v){var g=0,R=0;s.forEach(function(e,t){if(c){var n=t-c;R=-2===n?.25*-_:-1===n?.75*-_:0===n?.75*_:1===n?.25*_:0}l&&(e.translateX=null,e.translateY=null),e.markedForRemoval||Zt(e,0,g+R);var r=(e.rect.element.height+_)*(e.markedForRemoval?e.opacity:1);g+=r})}else{var h=0,O=0;s.forEach(function(e,t){t===c&&(d=1),t===f&&(E+=1),e.markedForRemoval&&e.opacity<.5&&(p-=1);var n=t+E+d+p,r=n%v,o=Math.floor(n/v),i=r*I,a=o*m,s=Math.sign(i-h),u=Math.sign(a-O);h=i,O=a,e.markedForRemoval||(l&&(e.translateX=null,e.translateY=null),Zt(e,i,a,s,u))})}}},tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter(function(e){return e.markedForRemoval&&0===e.opacity&&e.resting}).forEach(function(e){e._destroy(),t.removeChildView(e)})},filterFrameActionsForChild:function(t,e){return e.filter(function(e){return!e.data||!e.data.id||t.id===e.data.id})},mixins:{apis:["dragCoordinates"]}}),en=s({DID_DRAG:function(e){var t=e.root,n=e.props,r=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:r.position.scopeLeft-t.ref.list.rect.element.left,top:r.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),tn=a({create:function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Jt)),n.dragCoordinates=null,n.overflowing=!1},write:function(e){var t=e.root,n=e.props,r=e.actions;if(en({root:t,props:n,actions:r}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var o=Math.round(n.overflow);o!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=o)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),nn=function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"";n?u(e,t,r):e.removeAttribute(t)},rn=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE"),o=n||!r;nn(t.element,"disabled",o)},on=function(e){var t=e.root,n=t.element;0<t.query("GET_TOTAL_ITEMS")?(nn(n,"required",!1),nn(n,"name",!1)):(nn(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&nn(n,"required",!0))},an=a({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(e){var n=e.root,r=e.props;n.element.id="filepond--browser-"+r.id,u(n.element,"name",n.query("GET_NAME")),u(n.element,"aria-controls","filepond--assistant-"+r.id),u(n.element,"aria-labelledby","filepond--drop-label-"+r.id),n.ref.handleChange=function(e){if(n.element.value){var t=[].concat(b(n.element.files));setTimeout(function(){r.onload(t),function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=ut("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}}(n.element)},250)}},n.element.addEventListener("change",n.ref.handleChange)},destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:s({DID_LOAD_ITEM:on,DID_REMOVE_ITEM:on,DID_THROW_ITEM_INVALID:function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:rn,DID_SET_ALLOW_BROWSE:rn,DID_SET_ALLOW_MULTIPLE:function(e){var t=e.root,n=e.action;nn(t.element,"multiple",n.value)},DID_SET_ACCEPTED_FILE_TYPES:function(e){var t=e.root,n=e.action;nn(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},DID_SET_CAPTURE_METHOD:function(e){var t=e.root,n=e.action;nn(t.element,"capture",!!n.value,!0===n.value?"":n.value)},DID_SET_REQUIRED:function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&nn(t.element,"required",!0):nn(t.element,"required",!1)}})}),sn=13,un=32,ln=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&u(n,"tabindex","0"),t},cn=a({name:"drop-label",ignoreRect:!0,create:function(e){var t=e.root,n=e.props,r=ut("label");u(r,"for","filepond--browser-"+n.id),u(r,"id","filepond--drop-label-"+n.id),u(r,"aria-hidden","true"),r.addEventListener("keydown",function(e){(e.keyCode===sn||e.keyCode===un)&&(e.preventDefault(),t.ref.label.click())}),t.element.addEventListener("click",function(e){e.target===r||r.contains(e.target)||t.ref.label.click()}),ln(r,n.caption),t.appendChild(r),t.ref.label=r},write:s({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;ln(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),fn=a({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),dn=s({DID_DRAG:function(e){var t,n,r,o=e.root,i=e.action;if(!o.ref.blob)return t={root:o}.root,n=.5*t.rect.element.width,r=.5*t.rect.element.height,void(t.ref.blob=t.appendChildView(t.createChildView(fn,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r})));o.ref.blob.translateX=i.position.scopeLeft,o.ref.blob.translateY=i.position.scopeTop,o.ref.blob.scaleX=1,o.ref.blob.scaleY=1,o.ref.blob.opacity=1},DID_DROP:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},DID_END_DRAG:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)}}),pn=a({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(e){var t=e.root,n=e.props,r=e.actions;dn({root:t,props:n,actions:r});var o=t.ref.blob;0===r.length&&o&&0===o.opacity&&(t.removeChildView(o),t.ref.blob=null)}}),En=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],_n=["css","csv","html","txt"],Tn={zip:"zip|compressed",epub:"application/epub+zip"},In=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),En.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):_n.includes(e)?"text/"+e:Tn[e]||null},mn=function(r){return new Promise(function(e,t){var n=An(r);n.length?e(n):vn(r).then(e)})},vn=function(r){return new Promise(function(n,e){var t=(r.items?[].concat(b(r.items)):[]).filter(function(e){return gn(e)}).map(function(e){return Rn(e)});t.length?Promise.all(t).then(function(e){var t=[];e.forEach(function(e){t.push.apply(t,b(e))}),n(t.filter(function(e){return e}))}):n(r.files?[].concat(b(r.files)):[])})},gn=function(e){if(yn(e)){var t=Sn(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},Rn=function(n){return new Promise(function(e,t){Dn(n)?hn(Sn(n)).then(e):e([n.getAsFile()])})},hn=function(t){return new Promise(function(n,e){var r=[],o=0;!function t(e){e.createReader().readEntries(function(e){e.forEach(function(e){e.isDirectory?t(e):(o++,e.file(function(e){r.push(On(e)),o===r.length&&n(r)}))})})}(t)})},On=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name;return(e=e.slice(0,e.size,In(Le(e.name)))).name=n,e.lastModifiedDate=t,e},Dn=function(e){return yn(e)&&(Sn(e)||{}).isDirectory},yn=function(e){return"webkitGetAsEntry"in e},Sn=function(e){return e.webkitGetAsEntry()},An=function(e){var t=[];try{if((t=Pn(e)).length)return t;t=bn(e)}catch(e){}return t},bn=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},Pn=function(e){var t=e.getData("text/html");if("string"==typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Ln=[],Mn=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Cn=function(t){var e=Ln.find(function(e){return e.element===t});if(e)return e;var n=Nn(t);return Ln.push(n),n},Nn=function(n){var r=[],t={dragenter:Bn,dragover:Vn,dragleave:qn,drop:Fn},o={};A(t,function(e,t){o[e]=t(n,r),n.addEventListener(e,o[e],!1)});var i={element:n,addListener:function(e){return r.push(e),function(){r.splice(r.indexOf(e),1),0===r.length&&(Ln.splice(Ln.indexOf(i),1),A(t,function(e){n.removeEventListener(e,o[e],!1)}))}}};return i},wn=function(e,t){var n,r,o,i="getRootNode"in(n=t)?n.getRootNode():document,a=(r=i,o={x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset},"elementFromPoint"in r||(r=document),r.elementFromPoint(o.x,o.y));return a===t||t.contains(a)},Gn=null,Un=function(e,t){try{e.dropEffect=t}catch(e){}},Bn=function(e,t){return function(r){r.preventDefault(),Gn=r.target,t.forEach(function(e){var t=e.element,n=e.onenter;wn(r,t)&&(e.state="enter",n(Mn(r)))})}},Vn=function(e,t){return function(c){c.preventDefault();var f=c.dataTransfer;mn(f).then(function(u){var l=!1;t.some(function(e){var t=e.filterElement,n=e.element,r=e.onenter,o=e.onexit,i=e.ondrag,a=e.allowdrop;Un(f,"copy");var s=a(u);if(s)if(wn(c,n)){if(l=!0,null===e.state)return e.state="enter",void r(Mn(c));if(e.state="over",t&&!s)return void Un(f,"none");i(Mn(c))}else t&&!l&&Un(f,"none"),e.state&&(e.state=null,o(Mn(c)));else Un(f,"none")})})}},Fn=function(e,t){return function(s){s.preventDefault();var e=s.dataTransfer;mn(e).then(function(a){t.forEach(function(e){var t=e.filterElement,n=e.element,r=e.ondrop,o=e.onexit,i=e.allowdrop;e.state=null,i(a)?t&&!wn(s,n)||r(Mn(s),a):o(Mn(s))})})}},qn=function(e,t){return function(n){Gn===n.target&&t.forEach(function(e){var t=e.onexit;e.state=null,t(Mn(n))})}},xn=function(e,n,t){e.classList.add("filepond--hopper");var r,o,i,a,s,u=t.catchesDropsOnPage,l=t.requiresDropOnElement,c=(r=e,o=u?document.documentElement:e,i=l,a=Cn(o),(s={element:r,filterElement:i,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}}).destroy=a.addListener(s),s),f="",d="";c.allowdrop=function(e){return n(e)},c.ondrop=function(e,t){n(t)?(d="drag-drop",p.onload(t,e)):p.ondragend(e)},c.ondrag=function(e){p.ondrag(e)},c.onenter=function(e){d="drag-over",p.ondragstart(e)},c.onexit=function(e){d="drag-exit",p.ondragend(e)};var p={updateHopperState:function(){f!==d&&(e.dataset.hopperState=d,f=d)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){c.destroy()}};return p},Yn=!1,jn=[],Hn=function(e){mn(e.clipboardData).then(function(t){t.length&&jn.forEach(function(e){return e(t)})})},Xn=function(){var e,t=function(e){n.onload(e)},n={destroy:function(){var e;e=t,te(jn,jn.indexOf(e)),0===jn.length&&(document.removeEventListener("paste",Hn),Yn=!1)},onload:function(){}};return e=t,jn.includes(e)||(jn.push(e),Yn||(Yn=!0,document.addEventListener("paste",Hn))),n},Wn=null,zn=null,kn=[],Qn=function(e,t){e.element.textContent=t},Zn=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");Qn(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(zn),zn=setTimeout(function(){e.element.textContent=""},1500)},$n=function(e){return e.element.parentNode.contains(document.activeElement)},Kn=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename,o=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");Qn(t,r+" "+o)},Jn=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename;Qn(t,n.status.main+" "+r+" "+n.status.sub)},er=a({create:function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,u(t.element,"role","status"),u(t.element,"aria-live","polite"),u(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:s({DID_LOAD_ITEM:function(e){var t=e.root,n=e.action;if($n(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);kn.push(r.filename),clearTimeout(Wn),Wn=setTimeout(function(){Zn(t,kn.join(", "),t.query("GET_LABEL_FILE_ADDED")),kn.length=0},750)}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action;if($n(t)){var r=n.item;Zn(t,r.filename,t.query("GET_LABEL_FILE_REMOVED"))}},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename,o=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Qn(t,r+" "+o)},DID_ABORT_ITEM_PROCESSING:Kn,DID_REVERT_ITEM_PROCESSING:Kn,DID_THROW_ITEM_REMOVE_ERROR:Jn,DID_THROW_ITEM_LOAD_ERROR:Jn,DID_THROW_ITEM_INVALID:Jn,DID_THROW_ITEM_PROCESSING_ERROR:Jn}),tag:"span",name:"assistant"}),tr=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),function(e){return e.charAt(1).toUpperCase()})},nr=function(i){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:16,s=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],u=Date.now(),l=null;return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];clearTimeout(l);var r=Date.now()-u,o=function(){u=Date.now(),i.apply(void 0,t)};r<a?s||(l=setTimeout(o,a-r)):o()}},rr=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},or=function(e){var n=0,r=0,t=e.ref.list,o=t.childViews[0],i=o.childViews;if(0===i.length)return{visual:n,bounds:r};var a=o.rect.element.width,s=Qt(o,t.dragCoordinates),u=i[0].rect.element,l=u.marginTop+u.marginBottom,c=u.marginLeft+u.marginRight,f=u.width+c,d=u.height+l,p=void 0!==s&&0<=s?1:0,E=i.find(function(e){return e.markedForRemoval&&e.opacity<.45})?-1:0,_=i.length+p+E,T=Math.round(a/f);return 1===T?i.forEach(function(e){var t=e.rect.element.height+l;r+=t,n+=t*e.opacity}):(r=Math.ceil(_/T)*d,n=r),{visual:n,bounds:r}},ir=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},ar=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),o=e.query("GET_TOTAL_ITEMS"),i=e.query("GET_MAX_FILES"),a=t.length;return!r&&1<a||!!(D(i=r?i:n?i:1)&&i<o+a)&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Ye("warning",0,"Max files")}),!0)},sr=function(e,t){var n=e.childViews[0];return Qt(n,{left:t.scopeLeft-n.rect.element.left,top:t.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},ur=function(n){var e=n.query("GET_ALLOW_DROP"),t=n.query("GET_DISABLED"),r=e&&!t;if(r&&!n.ref.hopper){var o=xn(n.element,function(e){return!ar(n,e)&&(!n.query("GET_DROP_VALIDATION")||e.every(function(e){return de("ALLOW_HOPPER_ITEM",e,{query:n.query}).every(function(e){return!0===e})}))},{catchesDropsOnPage:n.query("GET_DROP_ON_PAGE"),requiresDropOnElement:n.query("GET_DROP_ON_ELEMENT")});o.onload=function(e,t){n.dispatch("ADD_ITEMS",{items:e,index:sr(n.ref.list,t),interactionMethod:Z}),n.dispatch("DID_DROP",{position:t}),n.dispatch("DID_END_DRAG",{position:t})},o.ondragstart=function(e){n.dispatch("DID_START_DRAG",{position:e})},o.ondrag=nr(function(e){n.dispatch("DID_DRAG",{position:e})}),o.ondragend=function(e){n.dispatch("DID_END_DRAG",{position:e})},n.ref.hopper=o,n.ref.drip=n.appendChildView(n.createChildView(pn))}else!r&&n.ref.hopper&&(n.ref.hopper.destroy(),n.ref.hopper=null,n.removeChildView(n.ref.drip))},lr=function(t,e){var n=t.query("GET_ALLOW_BROWSE"),r=t.query("GET_DISABLED"),o=n&&!r;o&&!t.ref.browser?t.ref.browser=t.appendChildView(t.createChildView(an,Object.assign({},e,{onload:function(e){if(ar(t,e))return!1;t.dispatch("ADD_ITEMS",{items:e,index:-1,interactionMethod:$})}})),0):!o&&t.ref.browser&&t.removeChildView(t.ref.browser)},cr=function(t){var e=t.query("GET_ALLOW_PASTE"),n=t.query("GET_DISABLED"),r=e&&!n;r&&!t.ref.paster?(t.ref.paster=Xn(),t.ref.paster.onload=function(e){t.dispatch("ADD_ITEMS",{items:e,index:sr(t.ref.list,position),interactionMethod:K})}):!r&&t.ref.paster&&(t.ref.paster.destroy(),t.ref.paster=null)},fr=s({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;lr(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;ur(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;cr(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;ur(t),cr(t),lr(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":delete t.element.dataset.disabled}}),dr=a({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:function(e){var r=e.root,t=e.props,n=r.query("GET_ID");n&&(r.element.id=n);var o=r.query("GET_CLASS_NAME");o&&o.split(" ").forEach(function(e){r.element.classList.add(e)}),r.ref.label=r.appendChildView(r.createChildView(cn,Object.assign({},t,{translateY:null,caption:r.query("GET_LABEL_IDLE")}))),r.ref.list=r.appendChildView(r.createChildView(tn,{translateY:null})),r.ref.panel=r.appendChildView(r.createChildView(Ht,{name:"panel-root"})),r.ref.assistant=r.appendChildView(r.createChildView(er,Object.assign({},t))),r.ref.measure=ut("div"),r.ref.measure.style.height="100%",r.element.appendChild(r.ref.measure),r.ref.bounds=null,r.query("GET_STYLES").filter(function(e){return!B(e.value)}).map(function(e){var t=e.name,n=e.value;r.element.dataset[t]=n}),r.ref.widthPrevious=null,r.ref.widthUpdated=nr(function(){r.dispatch("DID_RESIZE_ROOT")},250),r.ref.updateHistory=[]},write:function(e){var o=e.root,t=e.props,n=e.actions;o.rect.element.width!==o.ref.widthPrevious&&(o.ref.widthPrevious=o.rect.element.width,o.ref.widthUpdated());var r=o.ref.bounds;r||(r=o.ref.bounds=ir(o),o.element.removeChild(o.ref.measure),o.ref.measure=null),fr({root:o,props:t,actions:n}),n.filter(function(e){return/^DID_SET_STYLE_/.test(e.type)}).filter(function(e){return!B(e.data.value)}).map(function(e){var t=e.type,n=e.data,r=tr(t.substr(8).toLowerCase(),"_");o.element.dataset[r]=n.value,o.invalidateLayout()});var i=o.ref,a=i.hopper,s=i.label,u=i.list,l=i.panel;a&&a.updateHopperState();var c=o.query("GET_PANEL_ASPECT_RATIO"),f=o.query("GET_ALLOW_MULTIPLE"),d=o.query("GET_TOTAL_ITEMS"),p=d===(f?o.query("GET_MAX_FILES")||1e6:1),E=n.find(function(e){return"DID_ADD_ITEM"===e.type});if(p&&E){var _=E.data.interactionMethod;s.opacity=0,f?s.translateY=-40:_===Q?s.translateX=40:s.translateY=_===$?40:30}else p||(s.opacity=1,s.translateX=0,s.translateY=0);var T=rr(o),I=or(o),m=s.rect.element.height,v=!f||p?0:m,g=p?u.rect.element.marginTop:0,R=0===d?0:u.rect.element.marginBottom,h=v+g+I.visual+R,O=v+g+I.bounds+R;if(u.translateY=Math.max(0,v-u.rect.element.marginTop)-T.top,c){var D=o.rect.element.width,y=D*c,S=o.ref.updateHistory;if(S.push(D),4<S.length)for(var A=S.length,b=A-10,P=0,L=A;b<=L;L--)if(S[L]===S[L-2]&&P++,2<=P)return;l.scalable=!1;var M=(l.height=y)-v-(R-T.bottom)-(p?g:0);I.visual>M?u.overflow=M:u.overflow=null,o.height=y}else if(r.fixedHeight){l.scalable=!1;var C=r.fixedHeight-v-(R-T.bottom)-(p?g:0);I.visual>C?u.overflow=C:u.overflow=null}else if(r.cappedHeight){var N=h>=r.cappedHeight,w=Math.min(r.cappedHeight,h);l.scalable=!0,l.height=N?w:w-T.top-T.bottom;var G=w-v-(R-T.bottom)-(p?g:0);h>r.cappedHeight&&I.visual>G?u.overflow=G:u.overflow=null,o.height=Math.min(r.cappedHeight,O-T.top-T.bottom)}else{var U=0<d?T.top+T.bottom:0;l.scalable=!0,l.height=Math.max(m,h-U),o.height=Math.max(m,O-U)}},destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy()},mixins:{styles:["height"]}}),pr=function(){var t,r,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=null,o=Ee(),a=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e),o=[],i=[],a=function(e,t,n){n?i.push({type:e,data:t}):(c[e]&&c[e](t),o.push({type:e,data:t}))},s=function(e){for(var t,n=arguments.length,r=Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l[e]?(t=l)[e].apply(t,r):null},u={getState:function(){return Object.assign({},r)},processActionQueue:function(){var e=[].concat(o);return o.length=0,e},processDispatchQueue:function(){var e=[].concat(i);i.length=0,e.forEach(function(e){var t=e.type,n=e.data;a(t,n)})},dispatch:a,query:s},l={};t.forEach(function(e){l=Object.assign({},e(r),l)});var c={};return n.forEach(function(e){c=Object.assign({},e(a,s,r),c)}),u}({items:[],listUpdateTimeout:null,processingQueue:[],options:z(o)},[Se,(r=o,function(n){var e={};return A(r,function(t){e["GET_"+k(t,"_").toUpperCase()]=function(e){return n.options[t]}}),e})],[at,(t=o,function(r,e,o){var i={};return A(t,function(t){var n=k(t,"_").toUpperCase();i["SET_"+n]=function(e){try{o.options[t]=e.value}catch(e){}r("DID_SET_"+n,{value:o.options[t]})}}),i})]);a.dispatch("SET_OPTIONS",{options:e});var i=function(){document.hidden||a.dispatch("KICK")};document.addEventListener("visibilitychange",i);var s=null,u=!1,l=!1,c=null,f=null,d=function(){u||(u=!0),clearTimeout(s),s=setTimeout(function(){u=!1,f=c=null,l&&(l=!1,a.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",d);var p,E,_=dr(a,{id:ee()}),T=!1,I=!1,m={_read:function(){u&&(f=window.innerWidth,c||(c=f),l||f===c||(a.dispatch("DID_START_RESIZE"),l=!0)),T||(_._read(),I=_.rect.element.hidden)},_write:function(e){if(!I){var n,t=a.processActionQueue().filter(function(e){return!/^SET_/.test(e.type)});if(!T||t.length)R(t),T=_._write(e,t,l),(n=a.query("GET_ITEMS")).forEach(function(e,t){e.released&&te(n,t)}),T&&a.processDispatchQueue()}}},v=function(r){return function(e){var t={type:r};if(!e)return t;if(e.hasOwnProperty("error")&&(t.error=e.error?Object.assign({},e.error):null),e.status&&(t.status=Object.assign({},e.status)),e.file&&(t.output=e.file),e.source)t.file=e.source;else if(e.item||e.id){var n=e.item?e.item:a.query("GET_ITEM",e.id);t.file=n?ie(n):null}return e.items&&(t.items=e.items.map(ie)),/progress/.test(r)&&(t.progress=e.progress),t}},g={DID_DESTROY:v("destroy"),DID_INIT:v("init"),DID_THROW_MAX_FILES:v("warning"),DID_START_ITEM_LOAD:v("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:v("addfileprogress"),DID_LOAD_ITEM:v("addfile"),DID_THROW_ITEM_INVALID:[v("error"),v("addfile")],DID_THROW_ITEM_LOAD_ERROR:[v("error"),v("addfile")],DID_PREPARE_OUTPUT:v("preparefile"),DID_START_ITEM_PROCESSING:v("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:v("processfileprogress"),DID_ABORT_ITEM_PROCESSING:v("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:v("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:v("processfiles"),DID_REVERT_ITEM_PROCESSING:v("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[v("error"),v("processfile")],DID_REMOVE_ITEM:v("removefile"),DID_UPDATE_ITEMS:v("updatefiles"),DID_ACTIVATE_ITEM:v("activatefile")},R=function(e){e.length&&e.forEach(function(t){if(g[t.type]){var e=g[t.type];(Array.isArray(e)?e:[e]).forEach(function(e){setTimeout(function(){!function(t){var e=Object.assign({pond:y},t);delete e.type,_.element.dispatchEvent(new CustomEvent("FilePond:"+t.type,{detail:e,bubbles:!0,cancelable:!0,composed:!0}));var n=[];t.hasOwnProperty("error")&&n.push(t.error),t.hasOwnProperty("file")&&n.push(t.file);var r=["type","error","file"];Object.keys(t).filter(function(e){return!r.includes(e)}).forEach(function(e){return n.push(t[e])}),y.fire.apply(y,[t.type].concat(n));var o=a.query("GET_ON"+t.type.toUpperCase());o&&o.apply(void 0,n)}(e(t.data))},0)})}})},h=function(e){return a.dispatch("REMOVE_ITEM",{query:e}),null===a.query("GET_ACTIVE_ITEM",e)},O=function(){return a.query("GET_ACTIVE_ITEMS")},D=function(e){return new Promise(function(t,n){a.dispatch("REQUEST_ITEM_PROCESSING",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})})},y=Object.assign({},ne(),m,(p=a,E={},A(o,function(t){E[t]={get:function(){return p.getState().options[t]},set:function(e){p.dispatch("SET_"+k(t,"_").toUpperCase(),{value:e})}}}),E),{setOptions:function(e){return a.dispatch("SET_OPTIONS",{options:e})},addFile:function(n){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(e,t){a.dispatch("ADD_ITEM",{interactionMethod:Q,source:n,index:r.index,success:e,failure:t,options:r})})},addFiles:function(){for(var e=arguments.length,i=Array(e),t=0;t<e;t++)i[t]=arguments[t];return new Promise(function(e,t){var n=[],r={};if(C(i[0]))n.push.apply(n,b(i[0])),Object.assign(r,i[1]||{});else{var o=i[i.length-1];"object"!==(void 0===o?"undefined":S(o))||o instanceof Blob||Object.assign(r,i.pop()),n.push.apply(n,i)}a.dispatch("ADD_ITEMS",{items:n,index:r.index,interactionMethod:Q,success:e,failure:t})})},getFile:function(e){return a.query("GET_ACTIVE_ITEM",e)},processFile:D,removeFile:h,getFiles:O,processFiles:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t;if(r.length)return Promise.all(r.map(D));var o=O().filter(function(e){return e.status!==ae.PROCESSING&&e.status!==ae.PROCESSING_COMPLETE&&e.status!==ae.PROCESSING_REVERT_ERROR});return Promise.all(o.map(D))},removeFiles:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t,o=O();return r.length?r.map(function(e){return P(e)?o[e]?o[e].id:null:e}).filter(function(e){return e}).map(h):Promise.all(o.map(h))},sort:function(e){return a.dispatch("SORT",{compare:e})},browse:function(){var e=_.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){y.fire("destroy",_.element),a.dispatch("ABORT_ALL"),_._destroy(),window.removeEventListener("resize",d),document.addEventListener("visibilitychange",i),a.dispatch("DID_DESTROY")},insertBefore:function(e){return L(_.element,e)},insertAfter:function(e){return M(_.element,e)},appendTo:function(e){return e.appendChild(_.element)},replaceElement:function(e){L(_.element,e),e.parentNode.removeChild(e),n=e},restoreElement:function(){n&&(M(n,_.element),_.element.parentNode.removeChild(_.element),n=null)},isAttachedTo:function(e){return _.element===e||n===e},element:{get:function(){return _.element}},status:{get:function(){return a.query("GET_STATUS")}}});return a.dispatch("DID_INIT"),x(y)},Er=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n={};return A(Ee(),function(e,t){n[e]=t[0]}),pr(Object.assign({},n,e))},_r=function(o){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=[];A(o.attributes,function(e){t.push(o.attributes[e])});var n=t.filter(function(e){return e.name}).reduce(function(e,t){var n,r=u(o,t.name);return e[(n=t.name,tr(n.replace(/^data-/,"")))]=r===t.name||r,e},{});return function e(s,t){A(t,function(i,a){A(s,function(e,t){var n=new RegExp(i);if(n.test(e)&&(delete s[e],!1!==a))if(N(a))s[a]=t;else{var r,o=a.group;V(a)&&!s[o]&&(s[o]={}),s[o][(r=e.replace(n,""),r.charAt(0).toLowerCase()+r.slice(1))]=t}}),a.mapping&&e(s[a.group],a.mapping)})}(n,e),n},Tr=function(){return(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};de("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),o=_r("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(o).forEach(function(e){V(o[e])?(V(r[e])||(r[e]={}),Object.assign(r[e],o[e])):r[e]=o[e]}),r.files=(t.files||[]).concat([].concat(b(e.querySelectorAll("input:not([type=file])"))).map(function(e){return{source:e.value,options:{type:e.dataset.type}}}));var i=Er(r);return e.files&&[].concat(b(e.files)).forEach(function(e){i.addFile(e)}),i.replaceElement(e),i}.apply(void 0,arguments):Er.apply(void 0,arguments)},Ir=["fire","_read","_write"],mr=function(e){var t={};return re(e,t,Ir),t},vr=function(e,n){return e.replace(/(?:{([a-zA-Z]+)})/g,function(e,t){return n[t]})},gr=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),o=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var r=ee();o.onmessage=function(e){e.data.id===r&&t(e.data.message)},o.postMessage({id:r,message:e},n)},terminate:function(){o.terminate(),URL.revokeObjectURL(n)}}},Rr=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=function(e){t(e)},n.src=r})},hr=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},Or=function(e){return hr(e,e.name)},Dr=[],yr=function(e){if(!Dr.includes(e)){Dr.push(e);var t,n=e({addFilter:pe,utils:{Type:le,forin:A,isString:N,isFile:Ze,toNaturalFileSize:Et,replaceInString:vr,getExtensionFromFilename:Le,getFilenameWithoutExtension:ke,guesstimateMimeType:In,getFileFromBlob:Ne,getFilenameFromURL:Pe,createRoute:s,createWorker:gr,createView:a,createItemAPI:ie,loadImage:Rr,copyFile:Or,renameFile:hr,createBlob:we,applyFilterChain:fe,text:lt,getNumericAspectRatioFromString:Ie},views:{fileActionButton:pt}});t=n.options,Object.assign(_e,t)}},Sr=(Pt="undefined"!=typeof window&&void 0!==window.document&&!("[object OperaMini]"===Object.prototype.toString.call(window.operamini))&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window,function(){return Pt}),Ar={apps:[]},br=function(){};if(n.Status={},n.FileStatus={},n.FileOrigin={},n.OptionTypes={},n.create=br,n.destroy=br,n.parse=br,n.find=br,n.registerPlugin=br,n.getOptions=br,n.setOptions=br,Sr()){!function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:60,r="__framePainter";if(window[r])return window[r].readers.push(e),window[r].writers.push(t);window[r]={readers:[e],writers:[t]};var o=window[r],i=1e3/n,a=null,s=null;(function e(t){s=window.requestAnimationFrame(e),a||(a=t);var n=t-a;n<=i||(a=t-n%i,o.readers.forEach(function(e){return e()}),o.writers.forEach(function(e){return e(t)}))})(performance.now())}(function(){Ar.apps.forEach(function(e){return e._read()})},function(t){Ar.apps.forEach(function(e){return e._write(t)})});var Pr=function e(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:Sr,create:n.create,destroy:n.destroy,parse:n.parse,find:n.find,registerPlugin:n.registerPlugin,setOptions:n.setOptions}})),document.removeEventListener("DOMContentLoaded",e)};"loading"!==document.readyState?setTimeout(function(){return Pr()},0):document.addEventListener("DOMContentLoaded",Pr);var Lr=function(){return A(Ee(),function(e,t){n.OptionTypes[e]=t[1]})};n.Status=Object.assign({},ve),n.FileOrigin=Object.assign({},Qe),n.FileStatus=Object.assign({},ae),n.OptionTypes={},Lr(),n.create=function(){var e=Tr.apply(void 0,arguments);return e.on("destroy",n.destroy),Ar.apps.push(e),mr(e)},n.destroy=function(t){var e=Ar.apps.findIndex(function(e){return e.isAttachedTo(t)});return 0<=e&&(Ar.apps.splice(e,1)[0].restoreElement(),!0)},n.parse=function(e){return[].concat(b(e.querySelectorAll(".filepond"))).filter(function(t){return!Ar.apps.find(function(e){return e.isAttachedTo(t)})}).map(function(e){return n.create(e)})},n.find=function(t){var e=Ar.apps.find(function(e){return e.isAttachedTo(t)});return e?mr(e):null},n.registerPlugin=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(yr),Lr()},n.getOptions=function(){var n={};return A(Ee(),function(e,t){n[e]=t[0]}),n},n.setOptions=function(t){return V(t)&&(Ar.apps.forEach(function(e){e.setOptions(t)}),A(t,function(e,t){_e[e]&&(_e[e][0]=W(t,_e[e][0],_e[e][1]))})),n.getOptions()}}n.supported=Sr,Object.defineProperty(n,"__esModule",{value:!0})});
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula