1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7971],{97763:function(e,t){!function(e){"use strict";var t,n,r,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e),o=[],i=[],a=function(e,t,n){if(n&&!document.hidden){i.push({type:e,data:t});return}l[e]&&l[e](t),o.push({type:e,data:t})},u=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s[e]?(t=s)[e].apply(t,r):null},s={};t.forEach(function(e){s=Object.assign({},e(r),{},s)});var l={};return n.forEach(function(e){l=Object.assign({},e(a,u,r),{},l)}),{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){a(e.type,e.data)})},dispatch:a,query:u}},i=function(e,t,n){if("function"==typeof n){e[t]=n;return}Object.defineProperty(e,t,Object.assign({},n))},a=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},u=function(e){var t={};return a(e,function(n){i(t,n,e[n])}),t},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},l=["svg","path"],c=function(e){return l.includes(e)},f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof t&&(n=t,t=null);var r=c(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return t&&(c(e)?s(r,"class",t):r.className=t),a(n,function(e,t){s(r,e,t)}),r},d="undefined"!=typeof window&&void 0!==window.document,p=function(){return d},E="children"in(p()?f("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},_=function(e,t,n,r){var o=n[0]||e.left,i=n[1]||e.top,a=o+e.width,u=i+e.height*(r[1]||1),s={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:u}};return t.filter(function(e){return!e.isRectIgnored()}).map(function(e){return e.rect}).forEach(function(e){T(s.inner,Object.assign({},e.inner)),T(s.outer,Object.assign({},e.outer))}),I(s.inner),s.outer.bottom+=s.element.marginBottom,s.outer.right+=s.element.marginRight,I(s.outer),s},T=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)},I=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},m=function(e){return"number"==typeof e},v=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)<r&&Math.abs(n)<r},h=function(e){return e<.5?2*e*e:-1+(4-2*e)*e},g={spring:function(){var e=arguments.length>0&&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,l=null,c=0,f=!1,d=u({interpolate:function(e,t){if(!f){if(!(m(s)&&m(l))){f=!0,c=0;return}c+=-(l-s)*n/a,l+=c,c*=o,v(l,s,c)||t?(l=s,c=0,f=!0,d.onupdate(l),d.oncomplete(l)):d.onupdate(l)}},target:{set:function(e){if(m(e)&&!m(l)&&(l=e),null===s&&(s=e,l=e),l===(s=e)||void 0===s){f=!0,c=0,d.onupdate(l),d.oncomplete(l);return}f=!1},get:function(){return s}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return d},tween:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.duration,o=void 0===r?500:r,i=n.easing,a=void 0===i?h:i,s=n.delay,l=void 0===s?0:s,c=null,f=!0,d=!1,p=null,E=u({interpolate:function(n,r){!f&&null!==p&&(null===c&&(c=n),n-c<l||((e=n-c-l)>=o||r?(e=1,t=d?0:1,E.onupdate(t*p),E.oncomplete(t*p),f=!0):(t=e/o,E.onupdate((e>=0?a(d?1-t:t):0)*p))))},target:{get:function(){return d?0:p},set:function(e){if(null===p){p=e,E.onupdate(e),E.oncomplete(e);return}e<p?(p=1,d=!0):(d=!1,p=e),f=!1,c=null}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return E}},R=function(e,t,n){var r=e[t]&&"object"==typeof e[t][n]?e[t][n]:e[t]||e,o="string"==typeof r?r:r.type,i="object"==typeof r?Object.assign({},r):{};return g[o]?g[o](i):null},O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];
vendor: 5,676 bytes, line 1
1(t=Array.isArray(t)?t:[t]).forEach(function(t){e.forEach(function(e){var o=e,i=function(){return n[e]},a=function(t){return n[e]=t};"object"==typeof e&&(o=e.key,i=e.getter||i,a=e.setter||a),(!t[o]||r)&&(t[o]={get:i,set:a})})})},y=function(e){return null!=e},D={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},S=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},A=function(e,t){var n=t.opacity,r=t.perspective,o=t.translateX,i=t.translateY,a=t.scaleX,u=t.scaleY,s=t.rotateX,l=t.rotateY,c=t.rotateZ,f=t.originX,d=t.originY,p=t.width,E=t.height,_="",T="";(y(f)||y(d))&&(T+="transform-origin: "+(f||0)+"px "+(d||0)+"px;"),y(r)&&(_+="perspective("+r+"px) "),(y(o)||y(i))&&(_+="translate3d("+(o||0)+"px, "+(i||0)+"px, 0) "),(y(a)||y(u))&&(_+="scale3d("+(y(a)?a:1)+", "+(y(u)?u:1)+", 1) "),y(c)&&(_+="rotateZ("+c+"rad) "),y(s)&&(_+="rotateX("+s+"rad) "),y(l)&&(_+="rotateY("+l+"rad) "),_.length&&(T+="transform:"+_+";"),y(n)&&(T+="opacity:"+n+";",0===n&&(T+="visibility:hidden;"),n<1&&(T+="pointer-events:none;")),y(E)&&(T+="height:"+E+"px;"),y(p)&&(T+="width:"+p+"px;");var I=e.elementCurrentStyle||"";(T.length!==I.length||T!==I)&&(e.style.cssText=T,e.elementCurrentStyle=T)},L={styles:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,i=e.view,a=Object.assign({},n),u={};O(t,[r,o],n);var s=function(){return i.rect?_(i.rect,i.childViews,[n.translateX||0,n.translateY||0],[n.scaleX||0,n.scaleY||0]):null};return r.rect={get:s},o.rect={get:s},t.forEach(function(e){n[e]=void 0===a[e]?D[e]:a[e]}),{write:function(){if(S(u,n))return A(i.element,n),Object.assign(u,Object.assign({},n)),!0},destroy:function(){}}},listeners:function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t,n,r=e.viewExternalAPI,o=(e.viewState,e.view),i=[],a=(t=o.element,function(e,n){t.addEventListener(e,n)}),u=(n=o.element,function(e,t){n.removeEventListener(e,t)});return r.on=function(e,t){i.push({type:e,fn:t}),a(e,t)},r.off=function(e,t){i.splice(i.findIndex(function(n){return n.type===e&&n.fn===t}),1),u(e,t)},{write:function(){return!0},destroy:function(){i.forEach(function(e){u(e.type,e.fn)})}}},animations:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,i=Object.assign({},n),u=[];return a(t,function(e,t){var a=R(t);a&&(a.onupdate=function(t){n[e]=t},a.target=i[e],O([{key:e,setter:function(e){a.target!==e&&(a.target=e)},getter:function(){return n[e]}}],[r,o],n,!0),u.push(a))}),{write:function(e){var t=document.hidden,n=!0;return u.forEach(function(r){r.resting||(n=!1),r.interpolate(e,t)}),n},destroy:function(){}}},apis:function(e){var t=e.mixinConfig,n=e.viewProps;O(t,e.viewExternalAPI,n)}},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&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},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,r=e.name,o=void 0===r?null:r,i=e.attributes,a=void 0===i?{}:i,s=e.read,l=void 0===s?function(){}:s,c=e.write,d=void 0===c?function(){}:c,p=e.create,T=void 0===p?function(){}:p,I=e.destroy,m=void 0===I?function(){}:I,v=e.filterFrameActionsForChild,h=void 0===v?function(e,t){return t}:v,g=e.didCreateView,R=void 0===g?function(){}:g,O=e.didWriteView,y=void 0===O?function(){}:O,D=e.ignoreRect,S=void 0!==D&&D,A=e.ignoreRectUpdate,P=void 0!==A&&A,M=e.mixins,C=void 0===M?[]:M;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=f(n,"filepond--"+o,a),i=window.getComputedStyle(r,null),s=b(),c=null,p=!1,I=[],v=[],g={},O={},D=[d],A=[l],M=[m],N=function(){return r},w=function(){return I.concat()},G=function(){return c||(c=_(s,I,[0,0],[1,1]))},U={element:{get:N},style:{get:function(){return i}},childViews:{get:w}},B=Object.assign({},U,{rect:{get:G},ref:{get:function(){return g}},is:function(e){return o===e},appendChild:function(e,t){void 0!==t&&r.children[t]?r.insertBefore(e,r.children[t]):r.appendChild(e)},createChildView:function(t,n){return t(e,n)},linkView:function(e){return I.push(e),e},unlinkView:function(e){I.splice(I.indexOf(e),1)},appendChildView:function(e,t){return void 0!==t?I.splice(t,0,e):I.push(e),e},removeChildView:function(e){return I.splice(I.indexOf(e),1),e.element.parentNode&&r.removeChild(e.element),e},registerWriter:function(e){return D.push(e)},registerReader:function(e){return A.push(e)},registerDestroyer:function(e){return M.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),F={element:{get:N},childViews:{get:w},rect:{get:G},resting:{get:function(){return p}},isRectIgnored:function(){return S},_read:function(){c=null,I.forEach(function(e){return e._read()}),P&&s.width&&s.height||b(s,r,i);var e={root:V,props:t,rect:s};A.forEach(function(t){return t(e)})},_write:function(e,n,r){var o=0===n.length;return D.forEach(function(i){!1===i({props:t,root:V,actions:n,timestamp:e,shouldOptimize:r})&&(o=!1)}),v.forEach(function(t){!1===t.write(e)&&(o=!1)}),I.filter(function(e){return!!e.element.parentNode}
1).forEach(function(t){t._write(e,h(t,n),r)||(o=!1)}),I.forEach(function(t,i){t.element.parentNode||(V.appendChild(t.element,i),t._read(),t._write(e,h(t,n),r),o=!1)}),p=o,y({props:t,root:V,actions:n,timestamp:e}),o},_destroy:function(){v.forEach(function(e){return e.destroy()}),M.forEach(function(e){e({root:V,props:t})}),I.forEach(function(e){return e._destroy()})}},q=Object.assign({},U,{rect:{get:function(){return s}}});Object.keys(C).sort(function(e,t){return"styles"===e?1:"styles"===t?-1:0}).forEach(function(e){var n=L[e]({mixinConfig:C[e],viewProps:t,viewState:O,viewInternalAPI:B,viewExternalAPI:F,view:u(q)});n&&v.push(n)});var V=u(B);T({root:V,props:t});var x=E(r);return I.forEach(function(e,t){V.appendChild(e.element,x+t)}),R(V),u(F)}},M=function(e,t){return function(n){var r=n.root,o=n.props,i=n.actions,a=void 0===i?[]:i,u=n.timestamp,s=n.shouldOptimize;a.filter(function(t){return e[t.type]}).forEach(function(t){return e[t.type]({root:r,props:o,action:t.data,timestamp:u,shouldOptimize:s})}),t&&t({root:r,props:o,actions:a,timestamp:u,shouldOptimize:s})}},C=function(e,t){return t.parentNode.insertBefore(e,t)},N=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},w=function(e){return Array.isArray(e)},G=function(e){return null==e},U=function(e){return e.trim()},B=function(e){return""+e},F=function(e){return"boolean"==typeof e},q=function(e){return F(e)?e:"true"===e},V=function(e){return"string"==typeof e},x=function(e){return m(e)?e:V(e)?B(e).replace(/[a-z]+/gi,""):0},Y=function(e){return parseInt(x(e),10)},k=function(e){return parseFloat(x(e))},j=function(e){return m(e)&&isFinite(e)&&Math.floor(e)===e},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(j(e))return e;var n=B(e).trim();return/MB$/i.test(n)?Y(n=n.replace(/MB$i/,"").trim())*t*t:/KB/i.test(n)?Y(n=n.replace(/KB$i/,"").trim())*t:Y(n)},W=function(e){return"function"==typeof e},X=function(e){for(var t=self,n=e.split("."),r=null;r=n.shift();)if(!(t=t[r]))return null;return t},z={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},Q=function(e){var t={};return t.url=V(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},a(z,function(n){t[n]=Z(n,e[n],z[n],t.timeout,t.headers)}),t.process=e.process||V(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},Z=function(e,t,n,r,o){if(null===t)return null;if("function"==typeof t)return t;var i={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:o,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(V(t))return i.url=t,i;if(Object.assign(i,t),V(i.headers)){var a=i.headers.split(/:(.+)/);i.headers={header:a[0],value:a[1]}}return i.withCredentials=q(i.withCredentials),i},K=function(e){return"object"==typeof e&&null!==e},$=function(e){return w(e)?"array":null===e?"null":j(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":K(e)&&V(e.url)&&K(e.process)&&K(e.revert)&&K(e.restore)&&K(e.fetch)?"api":typeof e},J={array:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return G(e)?[]:w(e)?e:B(e).split(t).map(U).filter(function(e){return e.length})},boolean:q,int:function(e){return"bytes"===$(e)?H(e):Y(e)},number:k,float:k,bytes:H,string:function(e){return W(e)?e:B(e)},function:function(e){return X(e)},serverapi:function(e){return Q(e)},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}}},ee=function(e,t,n){if(e===t)return e;var r=$(e);if(r!==n){var o,i=(o=e,J[n](o));if(r=$(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},et=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(r){n=ee(r,e,t)}}},en=function(e){var t={};return a(e,function(n){var r=e[n];t[n]=et(r[0],r[1])}),u(t)},er=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map(function(e){return e.toLowerCase()}).join(t)},eo=function(e,t){var n={};return a(t,function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+er(t,"_").toUpperCase(),{value:n})}}}),n},ei={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},ea=function(){return Math.random().toString(36).substring(2,11)};function eu(e){this.wrapped=e}function es(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,u=a instanceof eu;Promise.resolve(u?a.wrapped:a).then(function(e){if(u){r("next",e);return}o(i.done?"return":"normal",e)},function(e){r("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(i,a){var u={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=u:(t=n=u,r(e,o))})}
1,"function"!=typeof e.return&&(this.return=void 0)}function el(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}"function"==typeof Symbol&&Symbol.asyncIterator&&(es.prototype[Symbol.asyncIterator]=function(){return this}),es.prototype.next=function(e){return this._invoke("next",e)},es.prototype.throw=function(e){return this._invoke("throw",e)},es.prototype.return=function(e){return this._invoke("return",e)};var ec=function(e,t){return e.splice(t,1)},ef=function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},ed=function(){var e=[],t=function(t,n){ec(e,e.findIndex(function(e){return e.event===t&&(e.cb===n||!n)}))},n=function(t,n,r){e.filter(function(e){return e.event===t}).map(function(e){return e.cb}).forEach(function(e){return ef(function(){return e.apply(void 0,el(n))},r)})};return{fireSync:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n(e,r,!0)},fire:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n(e,r,!1)},on:function(t,n){e.push({event:t,cb:n})},onOnce:function(n,r){e.push({event:n,cb:function(){t(n,r),r.apply(void 0,arguments)}})},off:t}},ep=function(e,t,n){Object.getOwnPropertyNames(e).filter(function(e){return!n.includes(e)}).forEach(function(n){return Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})},eE=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],e_=function(e){var t={};return ep(e,t,eE),t},eT=function(e){e.forEach(function(t,n){t.released&&ec(e,n)})},eI={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},em={INPUT:1,LIMBO:2,LOCAL:3},ev=function(e){return/[^0-9]+/.exec(e)},eh=function(){return ev(1.1.toLocaleString())[0]},eg={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},eR=[],eO=function(e,t,n){return new Promise(function(r,o){var i=eR.filter(function(t){return t.key===e}).map(function(e){return e.cb});if(0===i.length){r(t);return}var a=i.shift();i.reduce(function(e,t){return e.then(function(e){return t(e,n)})},a(t,n)).then(function(e){return r(e)}).catch(function(e){return o(e)})})},ey=function(e,t,n){return eR.filter(function(t){return t.key===e}).map(function(e){return e.cb(t,n)})},eD=function(e,t){return eR.push({key:e,cb:t})},eS=function(){return Object.assign({},eL)},eA=function(e){a(e,function(e,t){eL[e]&&(eL[e][0]=ee(t,eL[e][0],eL[e][1]))})},eL={id:[null,eg.STRING],name:["filepond",eg.STRING],disabled:[!1,eg.BOOLEAN],className:[null,eg.STRING],required:[!1,eg.BOOLEAN],captureMethod:[null,eg.STRING],allowSyncAcceptAttribute:[!0,eg.BOOLEAN],allowDrop:[!0,eg.BOOLEAN],allowBrowse:[!0,eg.BOOLEAN],allowPaste:[!0,eg.BOOLEAN],allowMultiple:[!1,eg.BOOLEAN],allowReplace:[!0,eg.BOOLEAN],allowRevert:[!0,eg.BOOLEAN],allowRemove:[!0,eg.BOOLEAN],allowProcess:[!0,eg.BOOLEAN],allowReorder:[!1,eg.BOOLEAN],allowDirectoriesOnly:[!1,eg.BOOLEAN],storeAsFile:[!1,eg.BOOLEAN],forceRevert:[!1,eg.BOOLEAN],maxFiles:[null,eg.INT],checkValidity:[!1,eg.BOOLEAN],itemInsertLocationFreedom:[!0,eg.BOOLEAN],itemInsertLocation:["before",eg.STRING],itemInsertInterval:[75,eg.INT],dropOnPage:[!1,eg.BOOLEAN],dropOnElement:[!0,eg.BOOLEAN],dropValidation:[!1,eg.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],eg.ARRAY],instantUpload:[!0,eg.BOOLEAN],maxParallelUploads:[2,eg.INT],allowMinimumUploadDuration:[!0,eg.BOOLEAN],chunkUploads:[!1,eg.BOOLEAN],chunkForce:[!1,eg.BOOLEAN],chunkSize:[5e6,eg.INT],chunkRetryDelays:[[500,1e3,3e3],eg.ARRAY],server:[null,eg.SERVER_API],fileSizeBase:[1e3,eg.INT],labelFileSizeBytes:["bytes",eg.STRING],labelFileSizeKilobytes:["KB",eg.STRING],labelFileSizeMegabytes:["MB",eg.STRING],labelFileSizeGigabytes:["GB",eg.STRING],labelDecimalSeparator:[eh(),eg.STRING],labelThousandsSeparator:[(t=eh(),"1000"!==(n=1e3.toLocaleStr
1ing())?ev(n)[0]:"."===t?",":"."),eg.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',eg.STRING],labelInvalidField:["Field contains invalid files",eg.STRING],labelFileWaitingForSize:["Waiting for size",eg.STRING],labelFileSizeNotAvailable:["Size not available",eg.STRING],labelFileCountSingular:["file in list",eg.STRING],labelFileCountPlural:["files in list",eg.STRING],labelFileLoading:["Loading",eg.STRING],labelFileAdded:["Added",eg.STRING],labelFileLoadError:["Error during load",eg.STRING],labelFileRemoved:["Removed",eg.STRING],labelFileRemoveError:["Error during remove",eg.STRING],labelFileProcessing:["Uploading",eg.STRING],labelFileProcessingComplete:["Upload complete",eg.STRING],labelFileProcessingAborted:["Upload cancelled",eg.STRING],labelFileProcessingError:["Error during upload",eg.STRING],labelFileProcessingRevertError:["Error during revert",eg.STRING],labelTapToCancel:["tap to cancel",eg.STRING],labelTapToRetry:["tap to retry",eg.STRING],labelTapToUndo:["tap to undo",eg.STRING],labelButtonRemoveItem:["Remove",eg.STRING],labelButtonAbortItemLoad:["Abort",eg.STRING],labelButtonRetryItemLoad:["Retry",eg.STRING],labelButtonAbortItemProcessing:["Cancel",eg.STRING],labelButtonUndoItemProcessing:["
1Undo",eg.STRING],labelButtonRetryItemProcessing:["Retry",eg.STRING],labelButtonProcessItem:["Upload",eg.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>',eg.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>',eg.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>',eg.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>',eg.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>',eg.STRING],oninit:[null,eg.FUNCTION],onwarning:[null,eg.FUNCTION],onerror:[null,eg.FUNCTION],onactivatefile:[null,eg.FUNCTION],oninitfile:[null,eg.FUNCTION],onaddfilestart:[null,eg.FUNCTION],onaddfileprogress:[null,eg.FUNCTION],onaddfile:[null,eg.FUNCTION],onprocessfilestart:[null,eg.FUNCTION],onprocessfileprogress:[null,eg.FUNCTION],onprocessfileabort:[null,eg.FUNCTION],onprocessfilerevert:[null,eg.FUNCTION],onprocessfile:[null,eg.FUNCTION],onprocessfiles:[null,eg.FUNCTION],onremovefile:[null,eg.FUNCTION],onpreparefile:[null,eg.FUNCTION],onupdatefiles:[null,eg.FUNCTION],onreorderfiles:[null,eg.FUNCTION],beforeDropFile:[null,eg.FUNCTION],beforeAddFile:[null,eg.FUNCTION],beforeRemoveFile:[null,eg.FUNCTION],beforePrepareFile:[null,eg.FUNCTION],stylePanelLayout:[null,eg.STRING],stylePanelAspectRatio:[null,eg.STRING],styleItemPanelAspectRatio:[null,eg.STRING],styleButtonRemoveItemPosition:["left",eg.STRING],styleButtonProcessItemPosition:["right",eg.STRING],styleLoadIndicatorPosition:["right",eg.STRING],styleProgressIndicatorPosition:["right",eg.STRING],styleButtonRemoveItemAlign:[!1,eg.BOOLEAN],files:[[],eg.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],eg.ARRAY]},eb=function(e,t){return G(t)?e[0]||null:j(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find(function(e){return e.id===t})||null)},eP=function(e){if(G(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},eM=function(e){return e.filter(function(e){return!e.archived})},eC={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},eN=null,ew=function(){if(null===eN)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,eN=1===t.files.length}catch(e){eN=!1}return eN},eG=[eI.LOAD_ERROR,eI.PROCESSING_ERROR,eI.PROCESSING_REVERT_ERROR],eU=[eI.LOADING,eI.PROCESSING,eI.PROCESSING_QUEUED,eI.INIT],eB=[eI.PROCESSING_COMPLETE],eF=function(e){return eG.includes(e.status)},eq=function(e){return eU.includes(e.status)},eV=function(e){return eB.includes(e.status)},ex=function(e){return K(e.options.server)&&(K(e.options.server.process)||W(e.options.server.process))}
1,eY=function(e){return{GET_STATUS:function(){var t=eM(e.items),n=eC.EMPTY,r=eC.ERROR,o=eC.BUSY,i=eC.IDLE,a=eC.READY;return 0===t.length?n:t.some(eF)?r:t.some(eq)?o:t.some(eV)?a:i},GET_ITEM:function(t){return eb(e.items,t)},GET_ACTIVE_ITEM:function(t){return eb(eM(e.items),t)},GET_ACTIVE_ITEMS:function(){return eM(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=eb(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=eb(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter(function(e){return/^style/.test(e)}).map(function(t){return{name:t,value:e.options[t]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(e.options.stylePanelLayout)?1:eP(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return eM(e.items).filter(function(e){return e.status===t})},GET_TOTAL_ITEMS:function(){return eM(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&ew()&&!ex(e)},IS_ASYNC:function(){return ex(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},ek=function(e){var t=eM(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t<n},ej=function(e,t,n){return Math.max(Math.min(n,e),t)},eH=function(e,t,n){var r;return G(t)?null:(void 0===n?e.push(t):(r=n=ej(n,0,e.length),e.splice(r,0,t)),t)},eW=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},eX=function(e){return(""+e).split("/").pop().split("?").shift()},ez=function(e){return e.split(".").pop()},eQ=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:""},eZ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},eK=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+eZ(e.getMonth()+1,"00")+"-"+eZ(e.getDate(),"00")+"_"+eZ(e.getHours(),"00")+"-"+eZ(e.getMinutes(),"00")+"-"+eZ(e.getSeconds(),"00")},e$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&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,e._relativePath&&(o._relativePath=e._relativePath),V(t)||(t=eK()),t&&null===r&&ez(t)?o.name=t:(r=r||eQ(o.type),o.name=t+(r?"."+r:"")),o},eJ=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})}
1,e0=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 eJ(n,t)},e1=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},e2=function(e){var t=e1(e);return e0(atob(e.split(",")[1].replace(/\s/g,"")),t)},e3=function(e){if(!/^content-disposition:/i.test(e))return null;var t=e.split(/filename=|filename\*=.+''/).splice(1).map(function(e){return e.trim().replace(/^["']|[;"']{0,2}$/g,"")}).filter(function(e){return e.length});return t.length?decodeURI(t[t.length-1]):null},e5=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},e9=function(e){var t={source:null,name:null,size:null},n=e.split("\n"),r=!0,o=!1,i=void 0;try{for(var a,u=n[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var s=a.value,l=e3(s);if(l){t.name=l;continue}var c=e5(s);if(c){t.size=c;continue}var f=/x-content-transfer-id:/i.test(s)&&(s.split(":")[1]||"").trim()||null;if(f){t.source=f;continue}}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return t},e4=function(e){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=function(n){if(!e){r.fire("error",{type:"error",body:"Can't load URL",code:400});return}t.timestamp=Date.now(),t.request=e(n,function(e){t.duration=Date.now()-t.timestamp,t.complete=!0,e instanceof Blob&&(e=e$(e,e.name||eX(n))),r.fire("load",e instanceof Blob?e:e?e.body:null)},function(e){r.fire("error","string"==typeof e?{type:"error",code:0,body:e}:e)},function(e,n,o){if(o&&(t.size=o),t.duration=Date.now()-t.timestamp,!e){t.progress=null;return}t.progress=n/o,r.fire("progress",t.progress)},function(){r.fire("abort")},function(e){var n=e9("string"==typeof e?e:e.headers);r.fire("meta",{size:t.size||n.size,filename:n.name,source:n.source})})},r=Object.assign({},ed(),{setSource:function(e){return t.source=e},getProgress:function(){return t.progress},abort:function(){t.request&&t.request.abort&&t.request.abort()},load:function(){var e=t.source;(r.fire("init",e),e instanceof File)?r.fire("load",e):e instanceof Blob?r.fire("load",e$(e,e.name)):eW(e)?r.fire("load",e$(e2(e),void 0,null,void 0)):n(e)}});return r},e6=function(e){return/GET|HEAD/.test(e)},e7=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),e6(n.method)&&e&&(t=""+t+encodeURIComponent("string"==typeof e?e:JSON.stringify(e)));var a=new XMLHttpRequest;return(e6(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(){a.status>=200&&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),j(n.timeout)&&(a.timeout=n.timeout),Object.keys(n.headers).forEach(function(e){var t=unescape(encodeURIComponent(n.headers[e]));a.setRequestHeader(e,t)}),n.responseType&&(a.responseType=n.responseType),n.withCredentials&&(a.withCredentials=!0),a.send(e),r},e8=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},te=function(e){return function(t){e(e8("error",0,"Timeout",t.getAllResponseHeaders()))}},tt=function(e){return/\?/.test(e)},tn=function(){for(var e="",t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e+=tt(e)&&tt(t)?t.replace(/\?/,"&"):t}),e},tr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!V(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(o,i,a,u,s,l){var c=e7(o,tn(e,t.url),Object.assign({},t,{responseType:"blob"}));return c.onload=function(e){var r=e.getAllResponseHeaders(),a=e9(r).name||eX(o);i(e8("load",e.status,"HEAD"===t.method?null:e$(n(e.response),a),r))},c.onerror=function(e){a(e8("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))}
1,c.onheaders=function(e){l(e8("headers",e.status,null,e.getAllResponseHeaders()))},c.ontimeout=te(a),c.onprogress=u,c.onabort=s,c}},to={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},ti=function(e,t,n,r,o,i,a,u,s,l,c){for(var f,d,p,E,_,T,I,m,v=[],h=c.chunkTransferId,g=c.chunkServer,R=c.chunkSize,O=c.chunkRetryDelays,y={serverId:h,aborted:!1},D=t.ondata||function(e){return e},S=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},A=t.onerror||function(e){return null},L=Math.floor(r.size/R),b=0;b<=L;b++){var P=b*R,M=r.slice(P,P+R,"application/offset+octet-stream");v[b]={index:b,size:M.size,offset:P,data:M,file:r,progress:0,retries:el(O),status:to.QUEUED,error:null,request:null,timeout:null}}var C=function(e){return e.status===to.QUEUED||e.status===to.ERROR},N=function(t){if(!y.aborted){if(!(t=t||v.find(C))){v.every(function(e){return e.status===to.COMPLETE})&&i(y.serverId);return}t.status=to.PROCESSING,t.progress=null;var n=g.ondata||function(e){return e},o=g.onerror||function(e){return null},u=g.onload||function(){},l=tn(e,g.url,y.serverId),c="function"==typeof g.headers?g.headers(t):Object.assign({},g.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),f=t.request=e7(n(t.data),l,Object.assign({},g,{headers:c}));f.onload=function(e){u(e,t.index,v.length),t.status=to.COMPLETE,t.request=null,U()},f.onprogress=function(e,n,r){t.progress=e?n:null,G()},f.onerror=function(e){t.status=to.ERROR,t.request=null,t.error=o(e.response)||e.statusText,w(t)||a(e8("error",e.status,o(e.response)||e.statusText,e.getAllResponseHeaders()))},f.ontimeout=function(e){t.status=to.ERROR,t.request=null,w(t)||te(a)(e)},f.onabort=function(){t.status=to.QUEUED,t.request=null,s()}}},w=function(e){return 0!==e.retries.length&&(e.status=to.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout(function(){N(e)},e.retries.shift()),!0)},G=function(){var e=v.reduce(function(e,t){return null===e||null===t.progress?null:e+t.progress},0);if(null===e)return u(!1,0,0);u(!0,e,v.reduce(function(e,t){return e+t.size},0))},U=function(){v.filter(function(e){return e.status===to.PROCESSING}).length>=1||N()},B=function(){v.forEach(function(e){clearTimeout(e.timeout),e.request&&e.request.abort()})};return y.serverId?(f=function(e){y.aborted||(v.filter(function(t){return t.offset<e}).forEach(function(e){e.status=to.COMPLETE,e.progress=e.size}),U())},(p=e7(null,tn(e,g.url,y.serverId),d={headers:"function"==typeof t.headers?t.headers(y.serverId):Object.assign({},t.headers),method:"HEAD"})).onload=function(e){return f(S(e,d.method))},p.onerror=function(e){return a(e8("error",e.status,A(e.response)||e.statusText,e.getAllResponseHeaders()))},p.ontimeout=te(a)):(E=function(e){y.aborted||(l(e),y.serverId=e,U())},_=new FormData,K(o)&&_.append(n,JSON.stringify(o)),T="function"==typeof t.headers?t.headers(r,o):Object.assign({},t.headers,{"Upload-Length":r.size}),I=Object.assign({},t,{headers:T}),(m=e7(D(_),tn(e,t.url),I)).onload=function(e){return E(S(e,I.method))},m.onerror=function(e){return a(e8("error",e.status,A(e.response)||e.statusText,e.getAllResponseHeaders()))},m.ontimeout=te(a)),{abort:function(){y.aborted=!0,B()}}},ta=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return"function"==typeof t?function(){for(var e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];return t.apply(void 0,[n].concat(o,[r]))}:t&&V(t.url)?function(o,i,a,u,s,l,c){if(o){var f=r.chunkUploads,d=f&&o.size>r.chunkSize,p=f&&(d||r.chunkForce);if(o instanceof Blob&&p)return ti(e,t,n,o,i,a,u,s,l,c,r);var E=t.ondata||function(e){return e},_=t.onload||function(e){return e},T=t.onerror||function(e){return null},I="function"==typeof t.headers?t.headers(o,i)||{}:Object.assign({},t.headers),m=Object.assign({},t,{headers:I}),v=new FormData;K(i)&&v.append(n,JSON.stringify(i)),(o instanceof Blob?[{name:null,file:o}]:o).forEach(function(e){v.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)});var h=e7(E(v),tn(e,t.url),m);return h.onload=function(e){a(e8("load",e.status,_(e.response),e.getAllResponseHeaders()))},h.onerror=function(e){u(e8("error",e.status,T(e.response)||e.statusText,e.getAllResponseHeaders()))},h.ontimeout=te(u),h.onprogress=s,h.onabort=l,h}}:null},tu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!V(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(o,i,a){var u=e7(o,e+t.url,t);return u.onload=function(e){i(e8("load",e.status,n(e.response),e.getAllResponseHeaders()))},u.onerror=function(e){a(e8("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))}
1,u.ontimeout=te(a),u}},ts=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},tl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,o=null,i=Date.now();return t>0&&function a(){var u=Date.now()-i,s=ts(n,r);u+s>t&&(s=u+s-t);var l=u/t;if(l>=1||document.hidden){e(1);return}e(l),o=setTimeout(a,s)}(),{clear:function(){clearTimeout(o)}}},tc=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},r=t.allowMinimumUploadDuration,o=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},i=r?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},a=r?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},u=Object.assign({},ed(),{process:function(t,o){var i=function(){0!==n.duration&&null!==n.progress&&u.fire("progress",u.getProgress())},a=function(){n.complete=!0,u.fire("load-perceived",n.response.body)};u.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=tl(function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,i(),n.response&&1===n.perceivedProgress&&!n.complete&&a()},r?ts(750,1500):0),n.request=e(t,o,function(e){n.response=K(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,u.fire("load",n.response.body),(!r||r&&1===n.perceivedProgress)&&a()},function(e){n.perceivedPerformanceUpdater.clear(),u.fire("error",K(e)?e:{type:"error",code:0,body:""+e})},function(e,t,r){n.duration=Date.now()-n.timestamp,n.progress=e?t/r:null,i()},function(){n.perceivedPerformanceUpdater.clear(),u.fire("abort",n.response?n.response.body:null)},function(e){u.fire("transfer",e)})},abort:o,getProgress:i,getDuration:a,reset:function(){o(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null}});return u},tf=function(e){return e.substring(0,e.lastIndexOf("."))||e},td=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||eW(e)?t[0]=e.name||eK():eW(e)?(t[1]=e.length,t[2]=e1(e)):V(e)&&(t[0]=eX(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},tp=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},tE=function e(t){if(!K(t))return t;var n=w(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];n[r]=o&&K(o)?e(o):o}return n},t_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=ea(),o={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?eI.PROCESSING_COMPLETE:eI.INIT,activeLoader:null,activeProcessor:null},i=null,a={},s=function(e){return o.status=e},l=function(e){if(!o.released&&!o.frozen){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];f.fire.apply(f,[e].concat(n))}},c=function(e,t,n){var r=e.split("."),o=r[0],i=r.pop(),u=a;r.forEach(function(e){return u=u[e]}),JSON.stringify(u[i])!==JSON.stringify(t)&&(u[i]=t,l("metadata-update",{key:o,value:a[o],silent:n}))},f=Object.assign({id:{get:function(){return r}},origin:{get:function(){return e},set:function(t){return e=t}},serverId:{get:function(){return o.serverFileReference}},transferId:{get:function(){return o.transferId}},status:{get:function(){return o.status}},filename:{get:function(){return o.file.name}},filenameWithoutExtension:{get:function(){return tf(o.file.name)}},fileExtension:{get:function(){return ez(o.file.name)}},fileType:{get:function(){return o.file.type}},fileSize:{get:function(){return o.file.size}},file:{get:function(){return o.file}},relativePath:{get:function(){return o.file._relativePath}},source:{get:function(){return o.source}},getMetadata:function(e){return tE(e?a[e]:a)},setMetadata:function(e,t,n){return K(e)?(Object.keys(e).forEach(function(n){c(n,e[n],t)}),e):(c(e,t,n),t)},extend:function(e,t){return d[e]=t},abortLoad:function(){if(o.activeLoader){o.activeLoader.abort();return}s(eI.INIT),l("load-abort")},retryLoad:function(){o.activeLoader&&o.activeLoader.load()},requestProcessing:function(){o.processingAborted=!1,s(eI.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise(function(e){if(!o.activeProcessor){o.processingAborted=!0,s(eI.IDLE),l("process-abort"),e();return}i=function(){e()},o.activeProcessor.abort()})},load:function(t,n,r){if(o.source=t,f.fireSync("init"),o.file){f.f
1ireSync("load-skip");return}o.file=td(t),n.on("init",function(){l("load-init")}),n.on("meta",function(t){o.file.size=t.size,o.file.filename=t.filename,t.source&&(e=em.LIMBO,o.serverFileReference=t.source,o.status=eI.PROCESSING_COMPLETE),l("load-meta")}),n.on("progress",function(e){s(eI.LOADING),l("load-progress",e)}),n.on("error",function(e){s(eI.LOAD_ERROR),l("load-request-error",e)}),n.on("abort",function(){s(eI.INIT),l("load-abort")}),n.on("load",function(t){o.activeLoader=null;var n=function(t){o.file=tp(t)?t:o.file,e===em.LIMBO&&o.serverFileReference?s(eI.PROCESSING_COMPLETE):s(eI.IDLE),l("load")};if(o.serverFileReference){n(t);return}r(t,n,function(e){o.file=t,l("load-meta"),s(eI.LOAD_ERROR),l("load-file-error",e)})}),n.setSource(t),o.activeLoader=n,n.load()},process:function e(t,n){if(o.processingAborted){o.processingAborted=!1;return}if(s(eI.PROCESSING),i=null,!(o.file instanceof Blob)){f.on("load",function(){e(t,n)});return}t.on("load",function(e){o.transferId=null,o.serverFileReference=e}),t.on("transfer",function(e){o.transferId=e}),t.on("load-perceived",function(e){o.activeProcessor=null,o.transferId=null,o.serverFileReference=e,s(eI.PROCESSING_COMPLETE),l("process-complete",e)}),t.on("start",function(){l("process-start")}),t.on("error",function(e){o.activeProcessor=null,s(eI.PROCESSING_ERROR),l("process-error",e)}),t.on("abort",function(e){o.activeProcessor=null,o.serverFileReference=e,s(eI.IDLE),l("process-abort"),i&&i()}),t.on("progress",function(e){l("process-progress",e)});var r=console.error;n(o.file,function(e){o.archived||t.process(e,Object.assign({},a))},r),o.activeProcessor=t},revert:function(e,t){return new Promise(function(n,r){var i=null!==o.serverFileReference?o.serverFileReference:o.transferId;if(null===i){n();return}e(i,function(){o.serverFileReference=null,o.transferId=null,n()},function(e){if(!t){n();return}s(eI.PROCESSING_REVERT_ERROR),l("process-revert-error"),r(e)}),s(eI.IDLE),l("process-revert")})}},ed(),{freeze:function(){return o.frozen=!0},release:function(){return o.released=!0},released:{get:function(){return o.released}},archive:function(){return o.archived=!0},archived:{get:function(){return o.archived}},setFile:function(e){return o.file=e}}),d=u(f);return d},tT=function(e,t){var n=G(t)?0:V(t)?e.findIndex(function(e){return e.id===t}):-1;if(!(n<0))return e[n]||null},tI=function(e,t,n,r,o,i){var a=e7(null,e,{method:"GET",responseType:"blob"});return a.onload=function(n){var r=n.getAllResponseHeaders(),o=e9(r).name||eX(e);t(e8("load",n.status,e$(n.response,o),r))},a.onerror=function(e){n(e8("error",e.status,e.statusText,e.getAllResponseHeaders()))},a.onheaders=function(e){i(e8("headers",e.status,null,e.getAllResponseHeaders()))},a.ontimeout=te(n),a.onprogress=r,a.onabort=o,a},tm=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},tv=function(e){return function(){return W(e)?e.apply(void 0,arguments):e}},th=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(function(){e("DID_UPDATE_ITEMS",{items:eM(t.items)})},0)},tg=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise(function(t){if(!e)return t(!0);var r=e.apply(void 0,n);return null==r?t(!0):"boolean"==typeof r?t(r):void("function"==typeof r.then&&r.then(t))})},tR=function(e,t){e.items.sort(function(e,n){return t(e_(e),e_(n))})},tO=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.query,o=n.success,i=n.failure,a=void 0===i?function(){}:i,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["query","success","failure"]),s=eb(e.items,r);if(!s){a({error:e8("error",0,"Item not found"),file:null});return}t(s,void 0===o?function(){}:o,a,u||{})}},ty=function(e,t,n){return{ABORT_ALL:function(){eM(n.items).forEac
1h(function(e){e.freeze(),e.abortLoad(),e.abortProcessing()})},DID_SET_FILES:function(t){var r=t.value,o=(void 0===r?[]:r).map(function(e){return{source:e.source?e.source:e,options:e.options}}),i=eM(n.items);i.forEach(function(t){o.find(function(e){return e.source===t.source||e.source===t.file})||e("REMOVE_ITEM",{query:t,remove:!1})}),i=eM(n.items),o.forEach(function(t,n){i.find(function(e){return e.source===t.source||e.file===t.source})||e("ADD_ITEM",Object.assign({},t,{interactionMethod:ei.NONE,index:n}))})},DID_UPDATE_ITEM_METADATA:function(r){var o=r.id,i=r.action,a=r.change;a.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout(function(){var r,u=tT(n.items,o);if(!t("IS_ASYNC")){eO("SHOULD_PREPARE_OUTPUT",!1,{item:u,query:t,action:i,change:a}).then(function(n){var r=t("GET_BEFORE_PREPARE_FILE");r&&(n=r(u,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:o,item:u,success:function(t){e("DID_PREPARE_OUTPUT",{id:o,file:t})}},!0)});return}u.origin===em.LOCAL&&e("DID_LOAD_ITEM",{id:u.id,error:null,serverFileReference:u.source});var s=function(){setTimeout(function(){e("REQUEST_ITEM_PROCESSING",{query:o})},32)};return u.status===eI.PROCESSING_COMPLETE?function(e){u.revert(tu(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(e?s:function(){}).catch(function(){})}(n.options.instantUpload):u.status===eI.PROCESSING?(r=n.options.instantUpload,void u.abortProcessing().then(r?s:function(){})):void(n.options.instantUpload&&s())},0))},MOVE_ITEM:function(e){var t=e.query,r=e.index,o=eb(n.items,t);if(o){var i=n.items.indexOf(o);i!==(r=ej(r,0,n.items.length-1))&&n.items.splice(r,0,n.items.splice(i,1)[0])}},SORT:function(r){tR(n,r.compare),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var r=n.items,o=n.index,i=n.interactionMethod,a=n.success,u=n.failure,s=o;if(-1===o||void 0===o){var l=t("GET_ITEM_INSERT_LOCATION"),c=t("GET_TOTAL_ITEMS");s="before"===l?0:c}var f=t("GET_IGNORED_FILES");Promise.all(r.filter(function(e){return tp(e)?!f.includes(e.name.toLowerCase()):!G(e)}).map(function(t){return new Promise(function(n,r){e("ADD_ITEM",{interactionMethod:i,source:t.source||t,success:n,failure:r,index:s++,options:t.options||{}})})})).then(void 0===a?function(){}:a).catch(void 0===u?function(){}:u)},ADD_ITEM:function(r){var o,i=r.source,a=r.index,u=void 0===a?-1:a,s=r.interactionMethod,l=r.success,c=void 0===l?function(){}:l,f=r.failure,d=void 0===f?function(){}:f,p=r.options,E=void 0===p?{}:p;if(G(i)){d({error:e8("error",0,"No source"),file:null});return}if(!(tp(i)&&n.options.ignoredFiles.includes(i.name.toLowerCase()))){if(!ek(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var _=e8("warning",0,"Max files");e("DID_THROW_MAX_FILES",{source:i,error:_}),d({error:_,file:null});return}var T=eM(n.items)[0];if(T.status===eI.PROCESSING_COMPLETE||T.status===eI.PROCESSING_REVERT_ERROR){var I=t("GET_FORCE_REVERT");if(T.revert(tu(n.options.server.url,n.options.server.revert),I).then(function(){I&&e("ADD_ITEM",{source:i,index:u,interactionMethod:s,success:c,failure:d,options:E})}).catch(function(){}),I)return}e("REMOVE_ITEM",{query:T.id})}var m="local"===E.type?em.LOCAL:"limbo"===E.type?em.LIMBO:em.INPUT,v=t_(m,m===em.INPUT?null:i,E.file);Object.keys(E.metadata||{}).forEach(function(e){v.setMetadata(e,E.metadata[e])}),ey("DID_CREATE_ITEM",v,{query:t,dispatch:e});var h=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(u="before"===h?-1:n.items.length),eH(n.items,v,u),W(h)&&i&&tR(n,h);var g=v.id;v.on("init",function(){e("DID_INIT_ITEM",{id:g})}),v.on("load-init",function(){e("DID_START_ITEM_LOAD",{id:g})}),v.on("load-meta",function(){e("DID_UPDATE_ITEM_META",{id:g})}),v.on("load-progress",function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:g,progress:t})}),v.on("load-request-error",function(t){var r=tv(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500){e("DID_THROW_ITEM_INVALID",{id:g,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),d({error:t,file:e_(v)});return}e("DID_THROW_ITEM_LOAD_ERROR",{id:g,error:t,status:{main:r,sub:n.options.labelTapToRetry}})}),v.on("load-file-error",function(t){e("DID_THROW_ITEM_INVALID",{id:g,error:t.status,status:t.status}),d({error:t.status,file:e_(v)})}),v.on("load-abort",function(){e("REMOVE_ITEM",{query:g})}),v.on("load-skip",function(){v.on("metadata-update",function(t){tp(v.f
1ile)&&e("DID_UPDATE_ITEM_METADATA",{id:g,change:t})}),e("COMPLETE_LOAD_ITEM",{query:g,item:v,data:{source:i,success:c}})}),v.on("load",function(){var r=function(r){if(!r){e("REMOVE_ITEM",{query:g});return}v.on("metadata-update",function(t){e("DID_UPDATE_ITEM_METADATA",{id:g,change:t})}),eO("SHOULD_PREPARE_OUTPUT",!1,{item:v,query:t}).then(function(r){var o=t("GET_BEFORE_PREPARE_FILE");o&&(r=o(v,r));var a=function(){e("COMPLETE_LOAD_ITEM",{query:g,item:v,data:{source:i,success:c}}),th(e,n)};if(r){e("REQUEST_PREPARE_OUTPUT",{query:g,item:v,success:function(t){e("DID_PREPARE_OUTPUT",{id:g,file:t}),a()}},!0);return}a()})};eO("DID_LOAD_ITEM",v,{query:t,dispatch:e}).then(function(){tg(t("GET_BEFORE_ADD_FILE"),e_(v)).then(r)}).catch(function(t){if(!t||!t.error||!t.status)return r(!1);e("DID_THROW_ITEM_INVALID",{id:g,error:t.error,status:t.status})})}),v.on("process-start",function(){e("DID_START_ITEM_PROCESSING",{id:g})}),v.on("process-progress",function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:g,progress:t})}),v.on("process-error",function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:g,error:t,status:{main:tv(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})}),v.on("process-revert-error",function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:g,error:t,status:{main:tv(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})}),v.on("process-complete",function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:g,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:g,value:t})}),v.on("process-abort",function(){e("DID_ABORT_ITEM_PROCESSING",{id:g})}),v.on("process-revert",function(){e("DID_REVERT_ITEM_PROCESSING",{id:g}),e("DID_DEFINE_VALUE",{id:g,value:null})}),e("DID_ADD_ITEM",{id:g,index:u,interactionMethod:s}),th(e,n);var R=n.options.server||{},O=R.url,y=R.load,D=R.restore,S=R.fetch;v.load(i,e4(m===em.INPUT?V(i)&&((o=i).indexOf(":")>-1||o.indexOf("//")>-1)&&tm(location.href)!==tm(o)&&S?tr(O,S):tI:m===em.LIMBO?tr(O,D):tr(O,y)),function(e,n,r){eO("LOAD_FILE",e,{query:t}).then(n).catch(r)})}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,r=e.success,o=e.failure,i=void 0===o?function(){}:o,a={error:e8("error",0,"Item not found"),file:null};if(n.archived)return i(a);eO("PREPARE_OUTPUT",n.file,{query:t,item:n}).then(function(e){eO("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then(function(e){if(n.archived)return i(a);r(e)})})},COMPLETE_LOAD_ITEM:function(r){var o=r.item,i=r.data,a=i.success,u=i.source,s=t("GET_ITEM_INSERT_LOCATION");if(W(s)&&u&&tR(n,s),e("DID_LOAD_ITEM",{id:o.id,error:null,serverFileReference:o.origin===em.INPUT?null:u}),a(e_(o)),o.origin===em.LOCAL){e("DID_LOAD_LOCAL_ITEM",{id:o.id});return}if(o.origin===em.LIMBO){e("DID_COMPLETE_ITEM_PROCESSING",{id:o.id,error:null,serverFileReference:u}),e("DID_DEFINE_VALUE",{id:o.id,value:o.serverId||u});return}t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:o.id})},RETRY_ITEM_LOAD:tO(n,function(e){e.retryLoad()}),REQUEST_ITEM_PREPARE:tO(n,function(t,n,r){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(r){e("DID_PREPARE_OUTPUT",{id:t.id,file:r}),n({file:t,output:r})},failure:r},!0)}
1),REQUEST_ITEM_PROCESSING:tO(n,function(r,o,i){if(!(r.status===eI.IDLE||r.status===eI.PROCESSING_ERROR)){var a=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:o,failure:i})},u=function(){return document.hidden?a():setTimeout(a,32)};r.status===eI.PROCESSING_COMPLETE||r.status===eI.PROCESSING_REVERT_ERROR?r.revert(tu(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(u).catch(function(){}):r.status===eI.PROCESSING&&r.abortProcessing().then(u);return}r.status!==eI.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:o,failure:i},!0))}),PROCESS_ITEM:tO(n,function(r,o,i){var a=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",eI.PROCESSING).length===a){n.processingQueue.push({id:r.id,success:o,failure:i});return}if(r.status!==eI.PROCESSING){var u=function t(){var r=n.processingQueue.shift();if(r){var o=r.id,i=r.success,a=r.failure,u=eb(n.items,o);if(!u||u.archived){t();return}e("PROCESS_ITEM",{query:o,success:i,failure:a},!0)}};r.onOnce("process-complete",function(){o(e_(r)),u();var i=n.options.server;if(n.options.instantUpload&&r.origin===em.LOCAL&&W(i.remove)){var a=function(){};r.origin=em.LIMBO,n.options.server.remove(r.source,a,a)}t("GET_ITEMS_BY_STATUS",eI.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",function(e){i({error:e,file:e_(r)}),u()});var s=n.options;r.process(tc(ta(s.server.url,s.server.process,s.name,{chunkTransferId:r.transferId,chunkServer:s.server.patch,chunkUploads:s.chunkUploads,chunkForce:s.chunkForce,chunkSize:s.chunkSize,chunkRetryDelays:s.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),function(n,o,i){eO("PREPARE_OUTPUT",n,{query:t,item:r}).then(function(t){e("DID_PREPARE_OUTPUT",{id:r.id,file:t}),o(t)}).catch(i)})}}),RETRY_ITEM_PROCESSING:tO(n,function(t){e("REQUEST_ITEM_PROCESSING",{query:t})}),REQUEST_REMOVE_ITEM:tO(n,function(n){tg(t("GET_BEFORE_REMOVE_FILE"),e_(n)).then(function(t){t&&e("REMOVE_ITEM",{query:n})})}),RELEASE_ITEM:tO(n,function(e){e.release()}),REMOVE_ITEM:tO(n,function(r,o,i,a){var u=function(){var t=r.id;tT(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),th(e,n),o(e_(r))},s=n.options.server;r.origin===em.LOCAL&&s&&W(s.remove)&&!1!==a.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),s.remove(r.source,function(){return u()},function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:e8("error",0,t,null),status:{main:tv(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})})):((a.revert&&r.origin!==em.LOCAL&&null!==r.serverId||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(tu(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),u())}),ABORT_ITEM_LOAD:tO(n,function(e){e.abortLoad()}),ABORT_ITEM_PROCESSING:tO(n,function(t){if(t.serverId){e("REVERT_ITEM_PROCESSING",{id:t.id});return}t.abortProcessing().then(function(){n.options.instantUpload&&e("REMOVE_ITEM",{query:t.id})})}),REQUEST_REVERT_ITEM_PROCESSING:tO(n,function(r){if(!n.options.instantUpload){e("REVERT_ITEM_PROCESSING",{query:r});return}var o=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:r})},i=t("GET_BEFORE_REMOVE_FILE");if(!i)return o(!0);var a=i(e_(r));return null==a?o(!0):"boolean"==typeof a?o(a):void("function"==typeof a.then&&a.then(o))}),REVERT_ITEM_PROCESSING:tO(n,function(r){r.revert(tu(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(function(){(n.options.instantUpload||!tp(r.file))&&e("REMOVE_ITEM",{query:r.id})}).catch(function(){})}),SET_OPTIONS:function(t){var n=t.options,r=Object.keys(n),o=tD.filter(function(e){return r.includes(e)});[].concat(el(o),el(Object.keys(n).filter(function(e){return!o.includes(e)}))).forEach(function(t){e("SET_"+er(t,"_").toUpperCase(),{value:n[t]})})}}},tD=["server"],tS=function(e){return e},tA=function(e){return document.createElement(e)},tL=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},tb=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)}},tP=function(e,t,n,r,o,i){var a=tb(e,t,n,o),u=tb(e,t,n,r);return["M",a.x,a.y,"A",n,n,0,i,0,u.x,u.y].join(" ")},tM=function(e,t,n,r,o){var i=1;return o>r&&o-r<=.5&&(i=0),r>o&&r-o>=.5&&(i=0),tP(e,t,n,360*Math.min(.9999,r),360*Math.min(.9999,o),i)},tC=P({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=f("svg");t.ref.path=f("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(s(t.ref.path,"stroke-width"),10),o=.5*t.rect.element.width,i=0,a=0;n.spin?(i=0,a=.5):(i=0,a=n.progress);var u=tM(o,o,o-r,i,a);s(t.ref.path,"d",u),s(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),tN=P({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.innerHTML=(n.icon||"")+"<span>"+n.label+"</span>",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,s(t.element,"disabled","disabled")):!o&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))}}),tw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.labelBytes,i=r.labelKilobytes,a=r.labelMegabytes,u=r.labelGigabytes,s=n*n,l=n*n*n;return(e=Math.round(Math.abs(e)))<n?e+" "+(void 0===o?"bytes":o):e<s?Math.floor(e/n)+" "+(void 0===i?"KB":i):e<l?tG(e/s,1,t)+" "+(void 0===a?"MB":a):tG(e/l,2,t)+" "+(void 0===u?"GB":u)},tG=function(e,t,n){return e.toFixed(t).split(".").filter(function(e){return"0"!==e}).join(n)},tU=function(e){var t=e.root,n=e.props;tL(t.ref.fileSize,tw(t.query("GET_ITEM_SIZE",n.id),".",t.query("GET_FILE_SIZE_BASE"),t.query("GET_FILE_SIZE_LABELS",t.query))),tL(t.ref.fileName,tS(t.query("GET_ITEM_NAME",n.id)))},tB=function(e){var t=e.root,n=e.props;if(j(t.query("GET_ITEM_SIZE",n.id))){tU({root:t,props:n});return}tL(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},tF=P({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:M({DID_LOAD_ITEM:tU,DID_UPDATE_ITEM_META:tU,DID_THROW_ITEM_LOAD_ERROR:tB,DID_THROW_ITEM_INVALID:tB}),didCreateView:function(e){ey("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=e.props,r=tA("span");r.className="filepond--file-info-main",s(r,"aria-hidden","true"),t.appendChild(r),t.ref.fileName=r;var o=tA("span");o.className="filepond--file-info-sub",t.appendChild(o),t.ref.fileSize=o,tL(o,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),tL(r,tS(t.query("GET_ITEM_NAME",n.id)))}
vendor: 12,923 bytes, line 1
1,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),tq=function(e){return Math.round(100*e)},tV=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")+" "+tq(n.progress)+"%";tL(t.ref.main,r),tL(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},tx=function(e){var t=e.root;tL(t.ref.main,""),tL(t.ref.sub,"")},tY=function(e){var t=e.root,n=e.action;tL(t.ref.main,n.status.main),tL(t.ref.sub,n.status.sub)},tk=P({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:M({DID_LOAD_ITEM:tx,DID_REVERT_ITEM_PROCESSING:tx,DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;tL(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),tL(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(e){var t=e.root;tL(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),tL(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root;tL(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),tL(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")+" "+tq(n.progress)+"%";tL(t.ref.main,r),tL(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:tV,DID_THROW_ITEM_LOAD_ERROR:tY,DID_THROW_ITEM_INVALID:tY,DID_THROW_ITEM_PROCESSING_ERROR:tY,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:tY,DID_THROW_ITEM_REMOVE_ERROR:tY}),didCreateView:function(e){ey("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=tA("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var r=tA("span");r.className="filepond--file-status-sub",t.appendChild(r),t.ref.sub=r,tV({root:t,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),tj={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"}},tH=[];a(tj,function(e){tH.push(e)});var tW=function(e){if("right"===tZ(e))return 0;var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},tX=function(e){return e.ref.buttonAbortItemLoad.rect.element.width},tz=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},tQ=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},tZ=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},tK={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}},t$={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:tW},status:{translateX:tW}},tJ={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},t0={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:tW},status:{translateX:tW,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:tW},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:tZ},info:{translateX:tW},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:tZ},buttonRemoveItem:{opacity:1},info:{translateX:tW},status:{opacity:1,translateX:tW}},DID_LOAD_ITEM:t$,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:tW},status:{translateX:tW}},DID_START_ITEM_PROCESSING:tJ,DID_REQUEST_ITEM_PROCESSING:tJ,DID_UPDATE_ITEM_PROCESS_PROGRESS:tJ,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:tW}},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:tW},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:t$},t1=P({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}}}}),t2=M({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}}),t3=P({create:function(e){var t,n=e.root,r=e.props,o=Object.keys(tj).reduce(function(e,t){return e[t]=Object.assign({},tj[t]),e},{}),i=r.id,u=n.query("GET_ALLOW_REVERT"),s=n.query("GET_ALLOW_REMOVE"),l=n.query("GET_ALLOW_PROCESS"),c=n.query("GET_INSTANT_UPLOAD"),f=n.query("IS_ASYNC"),d=n.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");f?l&&!u?t=function(e){return!/RevertItemProcessing/.test(e)}:!l&&u?t=function(e){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(e)}:l||u||(t=function(e){return!/Process/.test(e)}):t=function(e){return!/Process/.test(e)};var p=t?tH.filter(t):tH.concat();if(c&&u&&(o.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",o.RevertItemProcessing.icon="GET_ICON_REMOVE"),f&&!u){var E=t0.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=tQ,E.info.translateY=tz,E.status.translateY=tz,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(f&&!l&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(function(e){t0[e].status.translateY=tz}),t0.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=tX),d&&u){o.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var _=t0.DID_COMPLETE_ITEM_PROCESSING;_.info.translateX=tW,_.status.translateY=tz,_.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(o.RemoveItem.disabled=!0),a(o,function(e,t){var r=n.createChildView(tN,{label:n.query(t.label),icon:n.query(t.icon),opacity:0});p.includes(e)&&n.appendChildView(r),t.disabled&&(r.element.setAttribute("disabled","disabled"),r.element.setAttribute("hidden","hidden")),r.element.dataset.align=n.query("GET_STYLE_"+t.align),r.element.classList.add(t.className),r.on("click",function(e){e.stopPropagation(),t.disabled||n.dispatch(t.action,{query:i})}),n.ref["button"+e]=r}),n.ref.processingCompleteIndicator=n.appendChildView(n.createChildView(t1)),n.ref.processingCompleteIndicator.element.dataset.align=n.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),n.ref.info=n.appendChildView(n.createChildView(tF,{id:i})),n.ref.status=n.appendChildView(n.createChildView(tk,{id:i}));var T=n.appendChildView(n.createChildView(tC,{opacity:0,align:n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));T.element.classList.add("filepond--load-indicator"),n.ref.loadProgressIndicator=T;var I=n.appendChildView(n.createChildView(tC,{opacity:0,align:n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));I.element.classList.add("filepond--process-indicator"),n.ref.processProgressIndicator=I,n.ref.activeStyles=[]},write:function(e){var t=e.root,n=e.actions;t2({root:t,actions:n,props:e.props});var r=n.concat().filter(function(e){return/^DID_/.test(e.type)}).reverse().find(function(e){return t0[e.type]});if(r){t.ref.activeStyles=[];var o=t0[r.type];a(tK,function(e,n){var r=t.ref[e];a(n,function(n,i){var a=o[e]&&void 0!==o[e][n]?o[e][n]:i;t.ref.activeStyles.push({control:r,key:n,value:a})})})}t.ref.activeStyles.forEach(function(e){var n=e.control,r=e.key,o=e.value;n[r]="function"==typeof o?o(t):o})},didCreateView:function(e){ey("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),t5=P({create:function(e){var t=e.root,n=e.props;t.ref.fileName=tA("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(t3,{id:n.id})),t.ref.data=!1},ignoreRect:!0,write:M({DID_LOAD_ITEM:function(e){var t=e.root,n=e.props;tL(t.ref.fileName,tS(t.query("GET_ITEM_NAME",n.id)))}}),didCreateView:function(e){ey("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),t9={type:"spring",damping:.6,mass:7},t4=function(e,t,n){var r=P({name:"panel-"+t.name+" filepond--"+n,mixins:t.mixins,ignoreRectUpdate:!0}),o=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(o)},t6=P({name:"panel",read:function(e){var t=e.root;return e.props.heightCurrent=t.ref.bottom.translateY},write:function(e){var t=e.root,n=e.props;if((null===t.ref.scalable||n.scalable!==t.ref.scalable)&&(t.ref.scalable=!F(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:t9},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:t9},styles:["translateY"]}}].forEach(function(e){t4(t,e,n.name)}),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),t7=function(e){var t=e.map(function(e){return e.id}),n=void 0;return{setIndex:function(e){n=e},getIndex:function(){return n},getItemIndex:function(e){return t.indexOf(e.id)}}},t8={type:"spring",stiffness:.75,damping:.45,mass:10},ne="spring",nt={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 processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",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"},nn=M({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;
vendor: 6,304 bytes, line 1
1t.height=n.height}}),nr=P({create:function(e){var t=e.root,n=e.props;t.ref.handleClick=function(e){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(t5,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(t6,{name:"item-panel"})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query("GET_ALLOW_REORDER")&&(t.element.dataset.dragState="idle",t.element.addEventListener("pointerdown",function(e){if(e.isPrimary){var r=!1,o={x:e.pageX,y:e.pageY};n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var i=t7(t.query("GET_ACTIVE_ITEMS"));t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:i});var a=function(e){e.isPrimary&&(e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-o.x,y:e.pageY-o.y},n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y>16&&!r&&(r=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:i}))},u=function(e){e.isPrimary&&(n.dragOffset={x:e.pageX-o.x,y:e.pageY-o.y},l())},s=function(){l()},l=function(){document.removeEventListener("pointercancel",s),document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",u),t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:i}),r&&setTimeout(function(){return t.element.addEventListener("click",t.ref.handleClick)},0)};document.addEventListener("pointercancel",s),document.addEventListener("pointermove",a),document.addEventListener("pointerup",u)}}))},write:M({DID_GRAB_ITEM:function(e){var t=e.root;e.props.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){e.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState="drop"}},function(e){var t=e.root,n=e.actions,r=e.props,o=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var i=n.concat().filter(function(e){return/^DID_/.test(e.type)}).reverse().find(function(e){return nt[e.type]});i&&i.type!==r.currentState&&(r.currentState=i.type,t.element.dataset.filepondItemState=nt[r.currentState]||"");var a=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");a?o||(t.height=t.rect.element.width*a):(nn({root:t,actions:n,props:r}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),o&&(t.ref.panel.height=null),t.ref.panel.height=t.height}),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","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:ne,scaleY:ne,translateX:t8,translateY:t8,opacity:{type:"tween",duration:150}}}}),no=function(e,t){return Math.max(1,Math.floor((e+1)/t))},ni=function(e,t,n){if(n){var r=e.rect.element.width,o=t.length,i=null;if(0===o||n.top<t[0].rect.element.top)return -1;var a=t[0].rect.element,u=a.marginLeft+a.marginRight,s=a.width+u,l=no(r,s);if(1===l){for(var c=0;c<o;c++){var f=t[c],d=f.rect.outer.top+.5*f.rect.element.height;if(n.top<d)return c}return o}for(var p=a.marginTop+a.marginBottom,E=a.height+p,_=0;_<o;_++){var T=_%l*s,I=Math.floor(_/l)*E,m=I-a.marginTop,v=T+s,h=I+E+a.marginBottom;if(n.top<h&&n.top>m){if(n.left<v)return _;i=_!==o-1?_:null}}return null!==i?i:o}},na={height:0,width:0,get getHeight(){return this.height},set setHeight(val){(0===this.height||0===val)&&(this.height=val)},get getWidth(){return this.width},set setWidth(val){(0===this.width||0===val)&&(this.width=val)},setDimensions:function(e,t){(0===this.height||0===e)&&(this.height=e),(0===this.width||0===t)&&(this.width=t)}},nu=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&ns(e,t,n,r,o),e.scaleX=1,e.scaleY=1,e.opacity=1))},ns=function(e,t,n,r,o){e.interactionMethod===ei.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===ei.DROP?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*o,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===ei.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===ei.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},nl=function(e){return e.rect.element.height+e.rect.element.marginBottom+e.rect.element.marginTop},nc=M({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(),u=a,s=1;if(i!==ei.NONE){s=0;var l=t.query("GET_ITEM_INSERT_INTERVAL"),c=a-t.ref.lastItemSpanwDate;u=c<l?a+(l-c):a}t.ref.lastItemSpanwDate=u,t.appendChildView(t.createChildView(nr,{spawnDate:u,id:r,opacity:s,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)},DID_DRAG_ITEM:function(e){var t=e.root,n=e.action,r=n.id,o=n.dragState,i=t.query("GET_ITEM",{id:r}),a=t.childViews.find(function(e){return e.id===r}),u=t.childViews.length,s=o.getItemIndex(i);if(a){var l={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},c=nl(a),f=a.rect.element.width+.5*a.rect.element.marginLeft+.5*a.rect.element.marginRight,d=Math.floor(t.rect.outer.width/f);d>u&&(d=u);var p=Math.floor(u/d+1);na.setHeight=c*p,na.setWidth=f*d;var E={y:Math.floor(l.y/c),x:Math.floor(l.x/f),getGridIndex:function(){return l.y>na.getHeight||l.y<0||l.x>na.getWidth||l.x<0?s:this.y*d+this.x},getColIndex:function(){for(var e=t.query("GET_ACTIVE_ITEMS"),n=t.childViews.filter(function(e){return e.rect.element.height}),r=e.map(function(e){return n.find(function(t){return t.id===e.id})}),o=r.findIndex(function(e){return e===a}),i=nl(a),u=r.length,s=u,c=0,f=0,d=0,p=0;p<u;
1p++)if(c=nl(r[p]),f=(d=f)+c,l.y<f){if(o>p){if(l.y<d+i){s=p;break}continue}s=p;break}return s}},_=d>1?E.getGridIndex():E.getColIndex();t.dispatch("MOVE_ITEM",{query:a,index:_});var T=o.getIndex();if(void 0===T||T!==_){if(o.setIndex(_),void 0===T)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:s,target:_})}}}}),nf=P({create:function(e){var t=e.root;s(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},write:function(e){var t=e.root,n=e.props,r=e.actions,o=e.shouldOptimize;nc({root:t,props:n,actions:r});var i=n.dragCoordinates,a=t.rect.element.width,u=t.childViews.filter(function(e){return e.rect.element.height}),s=t.query("GET_ACTIVE_ITEMS").map(function(e){return u.find(function(t){return t.id===e.id})}).filter(function(e){return e}),l=i?ni(t,s,i):null,c=t.ref.addIndex||null;t.ref.addIndex=null;var f=0,d=0,p=0;if(0!==s.length){var E=s[0].rect.element,_=E.marginTop+E.marginBottom,T=E.marginLeft+E.marginRight,I=E.width+T,m=E.height+_,v=no(a,I);if(1===v){var h=0,g=0;s.forEach(function(e,t){if(l){var n=t-l;g=-2===n?-(.25*_):-1===n?-(.75*_):0===n?.75*_:1===n?.25*_:0}o&&(e.translateX=null,e.translateY=null),e.markedForRemoval||nu(e,0,h+g);var r=(e.rect.element.height+_)*(e.markedForRemoval?e.opacity:1);h+=r})}else{var R=0,O=0;s.forEach(function(e,t){t===l&&(f=1),t===c&&(p+=1),e.markedForRemoval&&e.opacity<.5&&(d-=1);var n=t+p+f+d,r=n%v*I,i=Math.floor(n/v)*m,a=Math.sign(r-R),u=Math.sign(i-O);R=r,O=i,e.markedForRemoval||(o&&(e.translateX=null,e.translateY=null),nu(e,r,i,a,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(e,t){return t.filter(function(t){return!t.data||!t.data.id||e.id===t.data.id})},mixins:{apis:["dragCoordinates"]}}),nd=M({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}}),np=P({create:function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(nf)),n.dragCoordinates=null,n.overflowing=!1},write:function(e){var t=e.root,n=e.props;if(nd({root:t,props:n,actions:e.actions}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var r=Math.round(n.overflow);r!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),nE=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";n?s(e,t,r):e.removeAttribute(t)},n_=function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=tA("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},nT=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&nE(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},nI=function(e){var t=e.root,n=e.action;nE(t.element,"multiple",n.value)},nm=function(e){var t=e.root,n=e.action;nE(t.element,"webkitdirectory",n.value)},nv=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE");nE(t.element,"disabled",n||!r)},nh=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&nE(t.element,"required",!0):nE(t.element,"required",!1)},ng=function(e){var t=e.root,n=e.action;nE(t.element,"capture",!!n.value,!0===n.value?"":n.value)},nR=function(e){var t=e.root,n=t.element;if(t.query("GET_TOTAL_ITEMS")>0){nE(n,"required",!1),nE(n,"name",!1);for(var r=t.query("GET_ACTIVE_ITEMS"),o=!1,i=0;i<r.length;i++)r[i].status===eI.LOAD_ERROR&&(o=!0);t.element.setCustomValidity(o?t.query("GET_LABEL_INVALID_FIELD"):"")}else nE(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&nE(n,"required",!0)},nO=P({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(e){var t=e.root,n=e.props;
1t.element.id="filepond--browser-"+n.id,s(t.element,"name",t.query("GET_NAME")),s(t.element,"aria-controls","filepond--assistant-"+n.id),s(t.element,"aria-labelledby","filepond--drop-label-"+n.id),nT({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),nI({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),nm({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),nv({root:t}),nh({root:t,action:{value:t.query("GET_REQUIRED")}}),ng({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var r=Array.from(t.element.files).map(function(e){return e._relativePath=e.webkitRelativePath,e});setTimeout(function(){n.onload(r),n_(t.element)},250)}},t.element.addEventListener("change",t.ref.handleChange)},destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:M({DID_LOAD_ITEM:nR,DID_REMOVE_ITEM:nR,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:nv,DID_SET_ALLOW_BROWSE:nv,DID_SET_ALLOW_DIRECTORIES_ONLY:nm,DID_SET_ALLOW_MULTIPLE:nI,DID_SET_ACCEPTED_FILE_TYPES:nT,DID_SET_CAPTURE_METHOD:ng,DID_SET_REQUIRED:nh})}),ny={ENTER:13,SPACE:32},nD=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&s(n,"tabindex","0"),t},nS=P({name:"drop-label",ignoreRect:!0,create:function(e){var t=e.root,n=e.props,r=tA("label");s(r,"for","filepond--browser-"+n.id),s(r,"id","filepond--drop-label-"+n.id),t.ref.handleKeyDown=function(e){(e.keyCode===ny.ENTER||e.keyCode===ny.SPACE)&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){e.target===r||r.contains(e.target)||t.ref.label.click()},r.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),nD(r,n.caption),t.appendChild(r),t.ref.label=r},destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:M({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;nD(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),nA=P({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}}}}),nL=function(e){var t=e.root,n=.5*t.rect.element.width,r=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(nA,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))},nb=M({DID_DRAG:function(e){var t=e.root,n=e.action;if(!t.ref.blob){nL({root:t});return}t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.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)}}),nP=P({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(e){var t=e.root,n=e.props,r=e.actions;nb({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)}}),nM=function(e,t){try{var n=new DataTransfer;t.forEach(function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))}),e.files=n.files}catch(e){return!1}return!0},nC=function(e,t){return e.ref.fields[t]},nN=function(e){e.query("GET_ACTIVE_ITEMS").forEach(function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])})},nw=function(e){return nN(e.root)},nG=P({tag:"fieldset",name:"data",create:function(e){var t=e.root;t.ref.fields={};var n=document.createElement("legend");n.textContent="Files",t.element.appendChild(n)},write:M({DID_SET_DISABLED:function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},DID_ADD_ITEM:function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).origin!==em.LOCAL&&t.query("SHOULD_UPDATE_FILE_INPUT"),o=tA("input");o.type=r?"file":"hidden",o.name=t.query("GET_NAME"),t.ref.fields[n.id]=o,nN(t)},DID_LOAD_ITEM:function(e){var t=e.root,n=e.action,r=nC(t,n.id);r&&(null!==n.serverFileReference&&(r.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT")&&nM(r,[t.query("GET_ITEM",n.id).file]))},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action,r=nC(t,n.id);r&&(r.parentNode&&r.parentNode.removeChild(r),delete t.ref.fields[n.id])},DID_DEFINE_VALUE:function(e){var t=e.root,n=e.action,r=nC(t,n.id);r&&(null===n.value?r.removeAttribute("value"):"file"!=r.type&&(r.value=n.value),nN(t))},DID_PREPARE_OUTPUT:function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(function(){var e=nC(t,n.id);e&&nM(e,[n.file])},0)},DID_REORDER_ITEMS:nw,DID_SORT_ITEMS:nw}),ignoreRect:!0}),nU=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],nB=["css","csv","html","txt"],nF={zip:"zip|compressed",epub:"application/epub+zip"},nq=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(e=e.toLowerCase(),nU.includes(e))?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):nB.includes(e)?"text/"+e:nF[e]||""},nV=function(e){return new Promise(function(t,n){var r=nZ(e);if(r.length&&!nx(e))return t(r);nY(e).then(t)})},nx=function(e){return!!e.files&&e.files.length>0},nY=function(e){return new Promise(function(t,n){var r=(e.items?Array.from(e.items):[]).filter(function(e){return nk(e)}).map(function(e){return nj(e)});if(!r.length){t(e.files?Array.from(e.files):[]);return}Promise.all(r).then(function(e){var n=[];e.forEach(function(e){n.push.apply(n,e)}),t(n.filter(function(e){return e}).map(function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e}))}).catch(console.error)})},nk=function(e){if(nz(e)){var t=nQ(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},nj=function(e){return new Promise(function(t,n){if(nX(e)){nH(nQ(e)).then(t).cat
1ch(n);return}t([e.getAsFile()])})},nH=function(e){return new Promise(function(t,n){var r=[],o=0,i=0,a=function(){0===i&&0===o&&t(r)};!function e(t){o++;var u=t.createReader();!function t(){u.readEntries(function(n){if(0===n.length){o--,a();return}n.forEach(function(t){t.isDirectory?e(t):(i++,t.file(function(e){var n=nW(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),i--,a()}))}),t()},n)}()}(e)})},nW=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,r=nq(ez(e.name));return r.length&&((e=e.slice(0,e.size,r)).name=n,e.lastModifiedDate=t),e},nX=function(e){return nz(e)&&(nQ(e)||{}).isDirectory},nz=function(e){return"webkitGetAsEntry"in e},nQ=function(e){return e.webkitGetAsEntry()},nZ=function(e){var t=[];try{if((t=n$(e)).length)return t;t=nK(e)}catch(e){}return t},nK=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},n$=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[]},nJ=[],n0=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},n1=function(e,t,n){var r=n2(t),o={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return o.destroy=r.addListener(o),o},n2=function(e){var t=nJ.find(function(t){return t.element===e});if(t)return t;var n=n3(e);return nJ.push(n),n},n3=function(e){var t=[],n={dragenter:n6,dragover:n7,dragleave:re,drop:n8},r={};a(n,function(n,o){r[n]=o(e,t),e.addEventListener(n,r[n],!1)});var o={element:e,addListener:function(i){return t.push(i),function(){t.splice(t.indexOf(i),1),0===t.length&&(nJ.splice(nJ.indexOf(o),1),a(n,function(t){e.removeEventListener(t,r[t],!1)}))}}};return o},n5=function(e,t){var n,r,o=(n="getRootNode"in t?t.getRootNode():document,r={x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset},"elementFromPoint"in n||(n=document),n.elementFromPoint(r.x,r.y));return o===t||t.contains(o)},n9=null,n4=function(e,t){try{e.dropEffect=t}catch(e){}},n6=function(e,t){return function(e){e.preventDefault(),n9=e.target,t.forEach(function(t){var n=t.element,r=t.onenter;n5(e,n)&&(t.state="enter",r(n0(e)))})}},n7=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;nV(n).then(function(r){var o=!1;t.some(function(t){var i=t.filterElement,a=t.element,u=t.onenter,s=t.onexit,l=t.ondrag,c=t.allowdrop;n4(n,"copy");var f=c(r);if(!f){n4(n,"none");return}if(n5(e,a)){if(o=!0,null===t.state){t.state="enter",u(n0(e));return}if(t.state="over",i&&!f){n4(n,"none");return}l(n0(e))}else i&&!o&&n4(n,"none"),t.state&&(t.state=null,s(n0(e)))})})}},n8=function(e,t){return function(e){e.preventDefault(),nV(e.dataTransfer).then(function(n){t.forEach(function(t){var r=t.filterElement,o=t.element,i=t.ondrop,a=t.onexit,u=t.allowdrop;if(t.state=null,!r||n5(e,o)){if(!u(n))return a(n0(e));i(n0(e),n)}})})}},re=function(e,t){return function(e){n9===e.target&&t.forEach(function(t){var n=t.onexit;t.state=null,n(n0(e))})}},rt=function(e,t,n){e.classList.add("filepond--hopper");var r=n.catchesDropsOnPage,o=n.requiresDropOnElement,i=n.filterItems,a=void 0===i?function(e){return e}:i,u=n1(e,r?document.documentElement:e,o),s="",l="";u.allowdrop=function(e){return t(a(e))},u.ondrop=function(e,n){var r=a(n);if(!t(r)){c.ondragend(e);return}l="drag-drop",c.onload(r,e)},u.ondrag=function(e){c.ondrag(e)},u.onenter=function(e){l="drag-over",c.ondragstart(e)},u.onexit=function(e){l="drag-exit",c.ondragend(e)};var c={updateHopperState:function(){s!==l&&(e.dataset.hopperState=l,s=l)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){u.destroy()}};return c},rn=!1,rr=[],ro=function(e){var t=document.activeElement;if(t&&(/textarea|input/i.test(t.nodeName)||"true"===t.getAttribute("contenteditable")||""===t.getAttribute("contenteditable"))){for(var n=!1,r=t;r!==document.body;){if(r.classList.contains("filepond--root")){n=!0;break}r=r.parentNode}if(!n)return}nV(e.clipboardData).then(function(e){e.length&&rr.forEach(function(t){return t(e)})})},ri=function(e){!rr.includes(e)&&(rr.push(e),rn||(rn=!0,document.addEventListener("paste",ro)))},ra=function(e){ec(rr,rr.indexOf(e)),0===rr.length&&(document.removeEventListener("paste",ro),rn=!1)},ru=function(){var e=function(e){t.onload(e)},t={destroy:function(){ra(e)},onload:function(){}};return ri(e),t},rs=null,rl=null,rc=[],rf=function(e,t){e.element.textContent=t},rd=function(e){e.element.textContent=""},rp=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");rf(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(rl),rl=setTimeout(function(){rd(e)},1500)},rE=function(e){return e.element.parentNode.contains(document.activeElement)},r_=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");rf(t,r+" "+o)},rT=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename;rf(t,n.status.main+" "+r+" "+n.status.sub)},rI=P({create:function(e){var t=e.root,n=e.props;
1t.element.id="filepond--assistant-"+n.id,s(t.element,"role","alert"),s(t.element,"aria-live","polite"),s(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:M({DID_LOAD_ITEM:function(e){var t=e.root,n=e.action;if(rE(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);rc.push(r.filename),clearTimeout(rs),rs=setTimeout(function(){rp(t,rc.join(", "),t.query("GET_LABEL_FILE_ADDED")),rc.length=0},750)}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action;rE(t)&&rp(t,n.item.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");rf(t,r+" "+o)},DID_ABORT_ITEM_PROCESSING:r_,DID_REVERT_ITEM_PROCESSING:r_,DID_THROW_ITEM_REMOVE_ERROR:rT,DID_THROW_ITEM_LOAD_ERROR:rT,DID_THROW_ITEM_INVALID:rT,DID_THROW_ITEM_PROCESSING_ERROR:rT}),tag:"span",name:"assistant"}),rm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(RegExp(t+".","g"),function(e){return e.charAt(1).toUpperCase()})},rv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=Date.now(),o=null;return function(){for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];clearTimeout(o);var s=Date.now()-r,l=function(){r=Date.now(),e.apply(void 0,a)};s<t?n||(o=setTimeout(l,t-s)):l()}},rh=function(e){return e.preventDefault()},rg=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}},rR=function(e){var t=0,n=0,r=e.ref.list,o=r.childViews[0],i=o.childViews.filter(function(e){return e.rect.element.height}),a=e.query("GET_ACTIVE_ITEMS").map(function(e){return i.find(function(t){return t.id===e.id})}).filter(function(e){return e});if(0===a.length)return{visual:t,bounds:n};var u=o.rect.element.width,s=ni(o,a,r.dragCoordinates),l=a[0].rect.element,c=l.marginTop+l.marginBottom,f=l.marginLeft+l.marginRight,d=l.width+f,p=l.height+c,E=a.find(function(e){return e.markedForRemoval&&e.opacity<.45})?-1:0,_=a.length+(void 0!==s&&s>=0?1:0)+E,T=no(u,d);return 1===T?a.forEach(function(e){var r=e.rect.element.height+c;n+=r,t+=r*e.opacity}):t=n=Math.ceil(_/T)*p,{visual:t,bounds:n}},rO=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},ry=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&&a>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:e8("warning",0,"Max files")}),!0):(i=r?i:1,(!!r||!n)&&!!j(i)&&o+a>i&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:e8("warning",0,"Max files")}),!0))},rD=function(e,t,n){var r=e.childViews[0];return ni(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},rS=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var o=rt(e.element,function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!e.query("GET_DROP_VALIDATION")||t.every(function(t){return ey("ALLOW_HOPPER_ITEM",t,{query:e.query}).every(function(e){return!0===e})&&n(t)})},{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter(function(e){return!tp(e)||!n.includes(e.name.toLowerCase())})},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});o.onload=function(t,n){var r=e.ref.list.childViews[0].childViews.filter(function(e){return e.rect.element.height}),o=e.query("GET_ACTIVE_ITEMS").map(function(e){return r.find(function(t){return t.id===e.id})}).filter(function(e){return e});eO("ADD_ITEMS",t,{dispatch:e.dispatch}).then(function(t){if(ry(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:rD(e.ref.list,o,n),interactionMethod:ei.DROP})}),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},o.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},o.ondrag=rv(function(t){e.dispatch("DID_DRAG",{position:t})}),o.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=o,e.ref.drip=e.appendChildView(e.createChildView(nP))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},rA=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),o=n&&!r;o&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(nO,Object.assign({},t,{onload:function(t){eO("ADD_ITEMS",t,{dispatch:e.dispatch}).then(function(t){if(ry(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:ei.BROWSE})})}})),0):!o&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},rL=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=ru(),e.ref.paster.onload=function(t){eO("ADD_ITEMS",t,{dispatch:e.dispatch}).then(function(t){if(ry(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:ei.PASTE})})}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},rb=M({DID_SET_ALLOW_BROWSE:function(e){rA(e.root,e.props)},DID_SET_ALLOW_DROP:function(e){rS(e.root)},DID_SET_ALLOW_PASTE:function(e){rL(e.root)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;rS(t),rL(t),rA(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),rP=P({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:function(e){var t=e.root,n=e.props,r=t.query("GET_ID");
vendor: 9,603 bytes, line 1
1r&&(t.element.id=r);var o=t.query("GET_CLASS_NAME");o&&o.split(" ").filter(function(e){return e.length}).forEach(function(e){t.element.classList.add(e)}),t.ref.label=t.appendChildView(t.createChildView(nS,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(np,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(t6,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(rI,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(nG,Object.assign({},n))),t.ref.measure=tA("div"),t.ref.measure.style.height="100%",t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query("GET_STYLES").filter(function(e){return!G(e.value)}).map(function(e){var n=e.name,r=e.value;t.element.dataset[n]=r}),t.ref.widthPrevious=null,t.ref.widthUpdated=rv(function(){t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")},250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var i=window.matchMedia("(pointer: fine) and (hover: hover)").matches,a="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&a&&!i&&(t.element.addEventListener("touchmove",rh,{passive:!1}),t.element.addEventListener("gesturestart",rh));var u=t.query("GET_CREDITS");if(2===u.length){var s=document.createElement("a");s.className="filepond--credits",s.href=u[0],s.tabIndex=-1,s.target="_blank",s.rel="noopener noreferrer nofollow",s.textContent=u[1],t.element.appendChild(s),t.ref.credits=s}},write:function(e){var t=e.root,n=e.props,r=e.actions;if(rb({root:t,props:n,actions:r}),r.filter(function(e){return/^DID_SET_STYLE_/.test(e.type)}).filter(function(e){return!G(e.data.value)}).map(function(e){var n=e.type,r=e.data,o=rm(n.substring(8).toLowerCase(),"_");t.element.dataset[o]=r.value,t.invalidateLayout()}),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var o=t.ref.bounds;o||(o=t.ref.bounds=rO(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var i=t.ref,a=i.hopper,u=i.label,s=i.list,l=i.panel;a&&a.updateHopperState();var c=t.query("GET_PANEL_ASPECT_RATIO"),f=t.query("GET_ALLOW_MULTIPLE"),d=t.query("GET_TOTAL_ITEMS"),p=d===(f?t.query("GET_MAX_FILES")||1e6:1),E=r.find(function(e){return"DID_ADD_ITEM"===e.type});if(p&&E){var _=E.data.interactionMethod;u.opacity=0,f?u.translateY=-40:_===ei.API?u.translateX=40:_===ei.BROWSE?u.translateY=40:u.translateY=30}else p||(u.opacity=1,u.translateX=0,u.translateY=0);var T=rg(t),I=rR(t),m=u.rect.element.height,v=!f||p?0:m,h=p?s.rect.element.marginTop:0,g=0===d?0:s.rect.element.marginBottom,R=v+h+I.visual+g,O=v+h+I.bounds+g;if(s.translateY=Math.max(0,v-s.rect.element.marginTop)-T.top,c){var y=t.rect.element.width,D=y*c;c!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=c,t.ref.updateHistory=[]);var S=t.ref.updateHistory;if(S.push(y),S.length>4){for(var A=S.length,L=A-10,b=0,P=A;P>=L;P--)if(S[P]===S[P-2]&&b++,b>=2)return}l.scalable=!1,l.height=D;var M=D-v-(g-T.bottom)-(p?h:0);I.visual>M?s.overflow=M:s.overflow=null,t.height=D}else if(o.fixedHeight){l.scalable=!1;var C=o.fixedHeight-v-(g-T.bottom)-(p?h:0);I.visual>C?s.overflow=C:s.overflow=null}else if(o.cappedHeight){var N=R>=o.cappedHeight,w=Math.min(o.cappedHeight,R);l.scalable=!0,l.height=N?w:w-T.top-T.bottom;var U=w-v-(g-T.bottom)-(p?h:0);R>o.cappedHeight&&I.visual>U?s.overflow=U:s.overflow=null,t.height=Math.min(o.cappedHeight,O-T.top-T.bottom)}else{var B=d>0?T.top+T.bottom:0;l.scalable=!0,l.height=Math.max(m,R-B),t.height=Math.max(m,O-B)}t.ref.credits&&l.heightCurrent&&(t.ref.credits.style.transform="translateY("+l.heightCurrent+"px)")}},destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",rh),t.element.removeEventListener("gesturestart",rh)},mixins:{styles:["height"]}}),rM=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,n=eS(),r=o({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:en(n)},[eY,function(e){var t={};return a(n,function(n){t["GET_"+er(n,"_").toUpperCase()]=function(t){return e.options[n]}}),t}],[ty,function(e,t,r){var o={};return a(n,function(t){var n=er(t,"_").toUpperCase();o["SET_"+n]=function(o){try{r.options[t]=o.value}catch(e){}e("DID_SET_"+n,{value:r.options[t]})}}),o}]);r.dispatch("SET_OPTIONS",{options:e});var i=function(){document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",i);var s=null,l=!1,c=!1,f=null,d=null,p=function(){l||(l=!0),clearTimeout(s),s=setTimeout(function(){l=!1,f=null,d=null,c&&(c=!1,r.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",p);var E=rP(r,{id:ea()}),_=!1,T=!1,I=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({},t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var o=t.item?t.item:r.query("GET_ITEM",t.id);n.file=o?e_(o):null}return t.items&&(n.items=t.items.map(e_)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},v={DID_DESTROY:I("destroy"),DID_INIT:I("init"),DID_THROW_MAX_FILES:I("warning"),DID_INIT_ITEM:I("initfile"),DID_START_ITEM_LOAD:I("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:I("addfileprogress"),DID_LOAD_ITEM:I("addfile"),DID_THROW_ITEM_INVALID:[I("error"),I("addfile")],DID_THROW_ITEM_LOAD_ERROR:[I("error"),I("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[I("error"),I("removefile")],DID_PREPARE_OUTPUT:I("preparefile"),DID_START_ITEM_PROCESSING:I("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:I("processfileprogress"),DID_ABORT_ITEM_PROCESSING:I("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:I("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:I("processfiles"),DID_REVERT_ITEM_PROCESSING:I("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[I("error"),I("processfile")],DID_REMOVE_ITEM:I("removefile"),DID_UPDATE_ITEMS:I("updatefiles"),DID_ACTIVATE_ITEM:I("activatefile"),DID_REORDER_ITEMS:I("reorderfiles")},h=function(e){var t=Object.assign({pond:A},e);delete t.type,E.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty("error")&&n.push(e.error),e.hasOwnProperty("file")&&n.push(e.file);var o=["type","error","file"];Object.keys(e).filter(function(e){return!o.includes(e)}).forEach(function(t){return n.push(e[t])}),A.fire.apply(A,[e.type].concat(n));var i=r.query("GET_ON"+e.type.toUpperCase());i&&i.apply(void 0,n)},g=function(e){e.length&&e.filter(function(e){return v[e.type]}).forEach(function(e){var t=v[e.type];(Array.isArray(t)?t:[t]).forEach(function(t){"DID_INIT_ITEM"===e.type?h(t(e.data)):setTimeout(function(){h(t(e.data))},0)})})},R=function(e){return new Promise(function(t,n){r.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})})},O=function(e,t){var n;return"object"!=typeof e||(n=e).file&&n.id||t||(t=e,e=void 0),r.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===r.query("GET_ACTIVE_ITEM",e)},y=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise(function(e,n){var o=[],i={};if(w(t[0]))o.push.apply(o,t[0]),Object.assign(i,t[1]||{});else{var a=t[t.length-1];"object"!=typeof a||a instanceof Blob||Object.assign(i,t.pop()),o.push.apply(o,t)}r.dispatch("ADD_ITEMS",{items:o,index:i.index,interactionMethod:ei.API,success:e,failure:n})})},D=function(){return r.query("GET_ACTIVE_ITEMS")},S=function(e){return new Promise(function(t,n){r.dispatch("REQUEST_ITEM_PROCESSING",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})})},A=Object.assign({},ed(),{},{_read:function(){l&&(d=window.innerWidth,f||(f=d),c||d===f||(r.dispatch("DID_START_RESIZE"),c=!0)),T&&_&&(_=null===E.element.offsetParent),_||(E._read(),T=E.rect.element.hidden)},_write:function(e){var t=r.processActionQueue().filter(function(e){return!/^SET_/.test(e.type)});(!_||t.length)&&(g(t),_=E._write(e,t,c),eT(r.query("GET_ITEMS")),_&&r.processDispatchQueue())}},{},eo(r,n),{setOptions:function(e){return r.dispatch("SET_OPTIONS",{options:e})},addFile:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,r){y([{source:e,options:t}],{index:t.index}).then(function(e){return n(e&&e[0])}).catch(r)})},addFiles:y,getFile:function(e){return r.query("GET_ACTIVE_ITEM",e)},processFile:S,prepareFile:R,removeFile:O,moveFile:function(e,t){return r.dispatch("MOVE_ITEM",{query:e,index:t})},getFiles:D,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;return r.length?Promise.all(r.map(S)):Promise.all(D().filter(function(e){return!(e.status===eI.IDLE&&e.origin===em.LOCAL)&&e.status!==eI.PROCESSING&&e.status!==eI.PROCESSING_COMPLETE&&e.status!==eI.PROCESSING_REVERT_ERROR}).map(S))},removeFiles:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Array.isArray(n[0])?n[0]:n;"object"==typeof o[o.length-1]?e=o.pop():Array.isArray(n[0])&&(e=n[1]);var i=D();return o.length?o.map(function(e){return m(e)?i[e]?i[e].id:null:e}).filter(function(e){return e}).map(function(t){return O(t,e)}):Promise.all(i.map(function(t){return O(t,e)}))},prepareFiles: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;return Promise.all((r.length?r:D()).map(R))}
1,sort:function(e){return r.dispatch("SORT",{compare:e})},browse:function(){var e=E.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){A.fire("destroy",E.element),r.dispatch("ABORT_ALL"),E._destroy(),window.removeEventListener("resize",p),document.removeEventListener("visibilitychange",i),r.dispatch("DID_DESTROY")},insertBefore:function(e){return C(E.element,e)},insertAfter:function(e){return N(E.element,e)},appendTo:function(e){return e.appendChild(E.element)},replaceElement:function(e){C(E.element,e),e.parentNode.removeChild(e),t=e},restoreElement:function(){t&&(N(t,E.element),E.element.parentNode.removeChild(E.element),t=null)},isAttachedTo:function(e){return E.element===e||t===e},element:{get:function(){return E.element}},status:{get:function(){return r.query("GET_STATUS")}}});return r.dispatch("DID_INIT"),u(A)},rC=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return a(eS(),function(e,n){t[e]=n[0]}),rM(Object.assign({},t,{},e))},rN=function e(t,n){a(n,function(n,r){a(t,function(e,o){var i,a=new RegExp(n);if(a.test(e)&&(delete t[e],!1!==r)){if(V(r)){t[r]=o;return}var u=r.group;K(r)&&!t[u]&&(t[u]={}),t[u][(i=e.replace(a,"")).charAt(0).toLowerCase()+i.slice(1)]=o}}),r.mapping&&e(t[r.group],r.mapping)})},rw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];a(e.attributes,function(t){n.push(e.attributes[t])});var r=n.filter(function(e){return e.name}).reduce(function(t,n){var r=s(e,n.name);return t[rm(n.name.replace(/^data-/,""))]=r===n.name||r,t},{});return rN(r,t),r},rG=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};ey("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),o=rw("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(o).forEach(function(e){K(o[e])?(K(r[e])||(r[e]={}),Object.assign(r[e],o[e])):r[e]=o[e]}),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map(function(e){return{source:e.value,options:{type:e.dataset.type}}}));var i=rC(r);return e.files&&Array.from(e.files).forEach(function(e){i.addFile(e)}),i.replaceElement(e),i},rU=function(){var e;return(e=arguments.length<=0?void 0:arguments[0],e instanceof HTMLElement)?rG.apply(void 0,arguments):rC.apply(void 0,arguments)},rB=["fire","_read","_write"],rF=function(e){var t={};return ep(e,t,rB),t},rq=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,function(e,n){return t[n]})},rV=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var o=ea();r.onmessage=function(e){e.data.id===o&&t(e.data.message)},r.postMessage({id:o,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},rx=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e})},rY=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},rk=function(e){return rY(e,e.name)},rj=[],rH=function(e){rj.includes(e)||(rj.push(e),Object.assign(eL,e({addFilter:eD,utils:{Type:eg,forin:a,isString:V,isFile:tp,toNaturalFileSize:tw,replaceInString:rq,getExtensionFromFilename:ez,getFilenameWithoutExtension:tf,guesstimateMimeType:nq,getFileFromBlob:e$,getFilenameFromURL:eX,createRoute:M,createWorker:rV,createView:P,createItemAPI:e_,loadImage:rx,copyFile:rk,renameFile:rY,createBlob:eJ,applyFilterChain:eO,text:tL,getNumericAspectRatioFromString:eP},views:{fileActionButton:tN}}).options))},rW=(r=p()&&"[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&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return r}),rX={apps:[]},rz=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={}
vendor: 2,510 bytes, line 1
1,e.create=rz,e.destroy=rz,e.parse=rz,e.find=rz,e.registerPlugin=rz,e.getOptions=rz,e.setOptions=rz,rW()){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r="__framePainter";if(window[r]){window[r].readers.push(e),window[r].writers.push(t);return}window[r]={readers:[e],writers:[t]};var o=window[r],i=1e3/n,a=null,u=null,s=null,l=null,c=function(){document.hidden?(s=function(){return window.setTimeout(function(){return f(performance.now())},i)},l=function(){return window.clearTimeout(u)}):(s=function(){return window.requestAnimationFrame(f)},l=function(){return window.cancelAnimationFrame(u)})};document.addEventListener("visibilitychange",function(){l&&l(),c(),f(performance.now())});var f=function e(t){u=s(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)}))};c(),f(performance.now())}(function(){rX.apps.forEach(function(e){return e._read()})},function(e){rX.apps.forEach(function(t){return t._write(e)})});var rQ=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:rW,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout(function(){return rQ()},0):document.addEventListener("DOMContentLoaded",rQ);var rZ=function(){return a(eS(),function(t,n){e.OptionTypes[t]=n[1]})};e.Status=Object.assign({},eC),e.FileOrigin=Object.assign({},em),e.FileStatus=Object.assign({},eI),e.OptionTypes={},rZ(),e.create=function(){var t=rU.apply(void 0,arguments);return t.on("destroy",e.destroy),rX.apps.push(t),rF(t)},e.destroy=function(e){var t=rX.apps.findIndex(function(t){return t.isAttachedTo(e)});return t>=0&&(rX.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll(".filepond")).filter(function(e){return!rX.apps.find(function(t){return t.isAttachedTo(e)})}).map(function(t){return e.create(t)})},e.find=function(e){var t=rX.apps.find(function(t){return t.isAttachedTo(e)});return t?rF(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(rH),rZ()},e.getOptions=function(){var e={};return a(eS(),function(t,n){e[t]=n[0]}),e},e.setOptions=function(t){return K(t)&&(rX.apps.forEach(function(e){e.setOptions(t)}),eA(t)),e.getOptions()}}e.supported=rW,Object.defineProperty(e,"__esModule",{value:!0})}(t)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.