PageSourceSearch

https://m4u.moss.it/build/299.052cc285.js

js moss.it collected 2026-10-08 05:48:13 UTC 149,526 bytes, 2 lines download raw bytes

1/*! For license information please see 299.052cc285.js.LICENSE.txt */
2(self.webpackChunk=self.webpackChunk||[]).push([[299],{88515:function(e){e.exports=function(){"use strict";var e=function(){self.onmessage=function(t){e(t.data.message,(function(e){self.postMessage({id:t.data.id,message:e})}))};var e=function(e,t){var n=e.file,r=new FileReader;r.onloadend=function(){t(r.result.replace("data:","").replace(/^.+,/,""))},r.readAsDataURL(n)}},t=function(t){var n=t.addFilter,r=t.utils,i=r.Type,o=r.createWorker,a=r.createRoute,u=r.isFile,s=function(t){var n=t.name,r=t.file;return new Promise((function(t){var i=o(e);i.post({file:r},(function(e){t({name:n,data:e}),i.terminate()}))}))},l=[];return n("DID_CREATE_ITEM",(function(e,t){(0,t.query)("GET_ALLOW_FILE_ENCODE")&&(e.extend("getFileEncodeBase64String",(function(){return l[e.id]&&l[e.id].data})),e.extend("getFileEncodeDataURL",(function(){return"data:".concat(e.fileType,";base64,").concat(l[e.id].data)})))})),n("SHOULD_PREPARE_OUTPUT",(function(e,t){var n=t.query;return new Promise((function(e){e(n("GET_ALLOW_FILE_ENCODE"))}))})),n("COMPLETE_PREPARE_OUTPUT",(function(e,t){var n=t.item,r=t.query;return new Promise((function(t){if(!r("GET_ALLOW_FILE_ENCODE")||!u(e)&&!Array.isArray(e))return t(e);l[n.id]={metadata:n.getMetadata(),data:null},Promise.all((e instanceof Blob?[{name:null,file:e}]:e).map(s)).then((function(r){l[n.id].data=e instanceof Blob?r[0].data:r,t(e)}))}))})),n("CREATE_VIEW",(function(e){var t=e.is,n=e.view,r=e.query;t("file-wrapper")&&r("GET_ALLOW_FILE_ENCODE")&&n.registerWriter(a({DID_PREPARE_OUTPUT:function(e){var t=e.root,n=e.action;if(!r("IS_ASYNC")){var i=r("GET_ITEM",n.id);if(i){var o=l[i.id],a=o.metadata,u=o.data,s=JSON.stringify({id:i.id,name:i.file.name,type:i.file.type,size:i.file.size,metadata:a,data:u});t.ref.data?t.ref.data.value=s:t.dispatch("DID_DEFINE_VALUE",{id:i.id,value:s})}}},DID_REMOVE_ITEM:function(e){var t=e.action,n=r("GET_ITEM",t.id);n&&delete l[n.id]}}))})),{options:{allowFileEncode:[!0,i.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t}()},63567:function(e){e.exports=function(){"use strict";var e=function(e){return/^image/.test(e.type)},t=function(e,t){var n=new Image;n.onload=function(){var e=n.naturalWidth,r=n.naturalHeight;n=null,t({width:e,height:r})},n.onerror=function(){return t(null)},n.src=e},n=function(n){var r=n.addFilter,i=n.utils.Type;return r("DID_LOAD_ITEM",(function(n,r){var i=r.query;return new Promise((function(r,o){var a=n.file;if(!e(a)||!i("GET_ALLOW_IMAGE_RESIZE"))return r(n);var u=i("GET_IMAGE_RESIZE_MODE"),s=i("GET_IMAGE_RESIZE_TARGET_WIDTH"),l=i("GET_IMAGE_RESIZE_TARGET_HEIGHT"),c=i("GET_IMAGE_RESIZE_UPSCALE");if(null===s&&null===l)return r(n);var f=null===s?l:s,d=null===l?f:l,p=URL.createObjectURL(a);t(p,(function(e){if(URL.revokeObjectURL(p),!e)return r(n);var t=e.width,i=e.height,o=(n.getMetadata("exif")||{}).orientation||-1;if(o>=5&&o<=8){var a=[i,t];t=a[0],i=a[1]}if(t===f&&i===d)return r(n);if(!c)if("cover"===u){if(t<=f||i<=d)return r(n)}else if(t<=f&&i<=f)return r(n);n.setMetadata("resize",{mode:u,upscale:c,size:{width:f,height:d}}),r(n)}))}))})),{options:{allowImageResize:[!0,i.BOOLEAN],imageResizeMode:["cover",i.STRING],imageResizeUpscale:[!0,i.BOOLEAN],imageResizeTargetWidth:[null,i.INT],imageResizeTargetHeight:[null,i.INT]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:n})),n}()},53863:function(e){e.exports=function(){"use strict";var e=function(e){return/^image/.test(e.type)},t=function(e){return e.substr(0,e.lastIndexOf("."))||e},n={jpeg:"jpg","svg+xml":"svg"},r=function(e,r){var i=t(e),o=r.split("/")[1],a=n[o]||o;return"".concat(i,".").concat(a)},i=function(e){return/jpeg|png|svg\+xml/.test(e)?e:"image/jpeg"},o=function(e){return/^image/.test(e.type)},a={1:function(){return[1,0,0,1,0,0]},2:function(e){return[-1,0,0,1,e,0]},3:function(e,t){return[-1,0,0,-1,e,t]},4:function(e,t){return[1,0,0,-1,0,t]},5:function(){return[0,1,1,0,0,0]},6:function(e,t){return[0,1,-1,0,t,0]},7:function(e,t){return[0,-1,-1,0,t,e]},8:function(e){return[0,-1,1,0,0,e]}},u=function(e,t,n){return-1===n&&(n=1),a[n](e,t)},s=function(e,t){return{x:e,y:t}},l=function(e,t){return e.x*t.x+e.y*t.y},c=function(e,t){return s(e.x-t.x,e.y-t.y)},f=function(e,t){return l(c(e,t),c(e,t))},d=function(e,t){return Math.sqrt(f(e,t))},p=function(e,t){var n=e,r=1.5707963267948966,i=t,o=1.5707963267948966-t,a=Math.sin(r),u=Math.sin(i),l=Math.sin(o),c=Math.cos(o),f=n/a;return s(c*(f*u),c*(f*l))},E=function(e,t){var n=e.width,r=e.height,i=p(n,t),o=p(r,t),a=s(e.x+Math.abs(i.x),e.y-Math.abs(i.y)),u=s(e.x+e.width+Math.abs(o.y),e.y+Math.abs(o.x)),l=s(e.x-Math.abs(o.y),e.y+e.height-Math.abs(o.x));return{width:d(a,u),height:d(a,l)}},h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:.5,y:.5},i=r.x>.5?1-r.x:r.x,o=r.y>.5?1-r.y:r.y,a=2*i*e.width,u=2*o*e.height,s=E(t,n);return Math.max(s.width/a,s.height/u)},v=function(e,t){var n=e.width,r=n*t;return r>e.height&&(n=(r=e.height)/t),{x:.5*(e.width-n),y:.5*(e.height-r),width:n,height:r}},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.height/e.width,i=1,o=t,a=1,u=r;u>o&&(a=(u=o)/r);var s=Math.max(i/a,o/u),l=e.width/(n*s*a);return{width:l,height:l*t}},T=function(e){e.width=1,e.height=1,e.getContext("2d").clearRect(0,0,1,1)},m=function(e){return e&&(e.horizontal||e.vertical)}
vendor: 5,996 bytes, line 2
2,g=function(e,t,n){if(t<=1&&!m(n))return e.width=e.naturalWidth,e.height=e.naturalHeight,e;var r=document.createElement("canvas"),i=e.naturalWidth,o=e.naturalHeight,a=t>=5&&t<=8;a?(r.width=o,r.height=i):(r.width=i,r.height=o);var s=r.getContext("2d");if(t&&s.transform.apply(s,u(i,o,t)),m(n)){var l=[1,0,0,1,0,0];(!a&&n.horizontal||a&n.vertical)&&(l[0]=-1,l[4]=i),(!a&&n.vertical||a&&n.horizontal)&&(l[3]=-1,l[5]=o),s.transform.apply(s,l)}return s.drawImage(e,0,0,i,o),r},I=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.canvasMemoryLimit,o=r.background,a=void 0===o?null:o,u=n.zoom||1,s=g(e,t,n.flip),l={width:s.width,height:s.height},c=n.aspectRatio||l.height/l.width,f=_(l,c,u);if(i){var d=f.width*f.height;if(d>i){var p=Math.sqrt(i)/Math.sqrt(d);l.width=Math.floor(l.width*p),l.height=Math.floor(l.height*p),f=_(l,c,u)}}var E=document.createElement("canvas"),m={x:.5*f.width,y:.5*f.height},I={x:0,y:0,width:f.width,height:f.height,center:m},R=void 0===n.scaleToFit||n.scaleToFit,y=u*h(l,v(I,c),n.rotation,R?n.center:{x:.5,y:.5});E.width=Math.round(f.width/y),E.height=Math.round(f.height/y),m.x/=y,m.y/=y;var O={x:m.x-l.width*(n.center?n.center.x:.5),y:m.y-l.height*(n.center?n.center.y:.5)},D=E.getContext("2d");a&&(D.fillStyle=a,D.fillRect(0,0,E.width,E.height)),D.translate(m.x,m.y),D.rotate(n.rotation||0),D.drawImage(s,O.x-m.x,O.y-m.y,l.width,l.height);var S=D.getImageData(0,0,E.width,E.height);return T(E),S};"undefined"!=typeof window&&void 0!==window.document&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var r=this.toDataURL(t,n).split(",")[1];setTimeout((function(){for(var n=atob(r),i=n.length,o=new Uint8Array(i),a=0;a<i;a++)o[a]=n.charCodeAt(a);e(new Blob([o],{type:t||"image/png"}))}))}}));var R=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new Promise((function(r){var i=n?n(e):e;Promise.resolve(i).then((function(e){e.toBlob(r,t.type,t.quality)}))}))},y=function(e,t){return A(e.x*t,e.y*t)},O=function(e,t){return A(e.x+t.x,e.y+t.y)},D=function(e){var t=Math.sqrt(e.x*e.x+e.y*e.y);return 0===t?{x:0,y:0}:A(e.x/t,e.y/t)},S=function(e,t,n){var r=Math.cos(t),i=Math.sin(t),o=A(e.x-n.x,e.y-n.y);return A(n.x+r*o.x-i*o.y,n.y+i*o.x+r*o.y)},A=function(){return{x:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,y:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},w=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0;return"string"==typeof e?parseFloat(e)*n:"number"==typeof e?e*(r?t[r]:Math.min(t.width,t.height)):void 0},b=function(e,t,n){var r=e.borderStyle||e.lineStyle||"solid",i=e.backgroundColor||e.fontColor||"transparent",o=e.borderColor||e.lineColor||"transparent",a=w(e.borderWidth||e.lineWidth,t,n);return{"stroke-linecap":e.lineCap||"round","stroke-linejoin":e.lineJoin||"round","stroke-width":a||0,"stroke-dasharray":"string"==typeof r?"":r.map((function(e){return w(e,t,n)})).join(","),stroke:o,fill:i,opacity:e.opacity||1}},M=function(e){return null!=e},L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=w(e.x,t,n,"width")||w(e.left,t,n,"width"),i=w(e.y,t,n,"height")||w(e.top,t,n,"height"),o=w(e.width,t,n,"width"),a=w(e.height,t,n,"height"),u=w(e.right,t,n,"width"),s=w(e.bottom,t,n,"height");return M(i)||(i=M(a)&&M(s)?t.height-a-s:s),M(r)||(r=M(o)&&M(u)?t.width-o-u:u),M(o)||(o=M(r)&&M(u)?t.width-r-u:0),M(a)||(a=M(i)&&M(s)?t.height-i-s:0),{x:r||0,y:i||0,width:o||0,height:a||0}},P=function(e){return e.map((function(e,t){return"".concat(0===t?"M":"L"," ").concat(e.x," ").concat(e.y)})).join(" ")},N=function(e,t){return Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},C="http://www.w3.org/2000/svg",G=function(e,t){var n=document.createElementNS(C,e);return t&&N(n,t),n},x=function(e){return N(e,Object.assign({},e.rect,e.styles))},U=function(e){var t=e.rect.x+.5*e.rect.width,n=e.rect.y+.5*e.rect.height,r=.5*e.rect.width,i=.5*e.rect.height;return N(e,Object.assign({cx:t,cy:n,rx:r,ry:i},e.styles))},B={contain:"xMidYMid meet",cover:"xMidYMid slice"},F=function(e,t){N(e,Object.assign({},e.rect,e.styles,{preserveAspectRatio:B[t.fit]||"none"}))},q={left:"start",center:"middle",right:"end"},V=function(e,t,n,r){var i=w(t.fontSize,n,r),o=t.fontFamily||"sans-serif",a=t.fontWeight||"normal",u=q[t.textAlign]||"start";N(e,Object.assign({},e.rect,e.styles,{"stroke-width":0,"font-weight":a,"font-size":i,"font-family":o,"text-anchor":u})),e.text!==t.text&&(e.text=t.text,e.textContent=t.text.length?t.text:" ")},k=function(e,t,n,r){N(e,Object.assign({},e.rect,e.styles,{fill:"none"}));var i=e.childNodes[0],o=e.childNodes[1],a=e.childNodes[2],u=e.rect,s={x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height};if(N(i,{x1:u.x,y1:u.y,x2:s.x,y2:s.y}),t.lineDecoration){o.style.display="none",a.style.display="none";var l=D({x:s.x-u.x,y:s.y-u.y}),c=w(.05,n,r);if(-1!==t.lineDecoration.indexOf("arrow-begin")){var f=y(l,c),d=O(u,f),p=S(u,2,d),E=S(u,-2,d);N(o,{style:"display:block;",d:"M".concat(p.x,",").concat(p.y," L").concat(u.x,",").concat(u.y," L").concat(E.x,",").concat(E.y)})}if(-1!==t.lineDecoration.indexOf("arrow-end")){var h=y(l,-c),v=O(s,h),_=S(s,2,v),T=S(s,-2,v);N(a,{style:"display:block;",d:"M".concat(_.x,",").concat(_.y," L").concat(s.x,",").concat(s.y," L").concat(T.x,",").concat(T.y)})}}},Y=function(e,t,n,r){N(e,Object.assign({},e.styles,{fill:"none",d:P(t.points.map((function(e){return{x:w(e.x,n,r,"width"),y:w(e.y,n,r,"height")}})))}))},j=function(e){return function(t){return G(e,{id:t.id})}},z=function(e){var t=G("g",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round"}),n=G("line");t.appendChild(n);var r=G("path");t.appendChild(r);var i=G("path");return t.appendChild(i),t},H={image:function(e){var t=G("image",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});
2return t.onload=function(){t.setAttribute("opacity",e.opacity||1)},t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.src),t},rect:j("rect"),ellipse:j("ellipse"),text:j("text"),path:j("path"),line:z},W={rect:x,ellipse:U,image:F,text:V,path:Y,line:k},X=function(e,t){return H[e](t)},Q=function(e,t,n,r,i){"path"!==t&&(e.rect=L(n,r,i)),e.styles=b(n,r,i),W[t](e,n,r,i)},Z=function(e,t){return e[1].zIndex>t[1].zIndex?1:e[1].zIndex<t[1].zIndex?-1:0},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return new Promise((function(i){var o=r.background,a=void 0===o?null:o,u=new FileReader;u.onloadend=function(){var e=u.result,r=document.createElement("div");r.style.cssText="position:absolute;pointer-events:none;width:0;height:0;visibility:hidden;",r.innerHTML=e;var o=r.querySelector("svg");document.body.appendChild(r);var s=o.getBBox();r.parentNode.removeChild(r);var l=r.querySelector("title"),c=o.getAttribute("viewBox")||"",f=o.getAttribute("width")||"",d=o.getAttribute("height")||"",p=parseFloat(f)||null,E=parseFloat(d)||null,_=(f.match(/[a-z]+/)||[])[0]||"",T=(d.match(/[a-z]+/)||[])[0]||"",m=c.split(" ").map(parseFloat),g=m.length?{x:m[0],y:m[1],width:m[2],height:m[3]}:s,I=null!=p?p:g.width,R=null!=E?E:g.height;o.style.overflow="visible",o.setAttribute("width",I),o.setAttribute("height",R);var y="";if(n&&n.length){var O={width:I,height:R};y=n.sort(Z).reduce((function(e,t){var n=X(t[0],t[1]);return Q(n,t[0],t[1],O),n.removeAttribute("id"),1===n.getAttribute("opacity")&&n.removeAttribute("opacity"),e+"\n"+n.outerHTML+"\n"}),""),y="\n\n<g>".concat(y.replace(/&nbsp;/g," "),"</g>\n\n")}var D=t.aspectRatio||R/I,S=I,A=S*D,w=void 0===t.scaleToFit||t.scaleToFit,b=t.center?t.center.x:.5,M=t.center?t.center.y:.5,L=h({width:I,height:R},v({width:S,height:A},D),t.rotation,w?{x:b,y:M}:{x:.5,y:.5}),P=t.zoom*L,N=t.rotation*(180/Math.PI),C={x:.5*S,y:.5*A},G={x:C.x-I*b,y:C.y-R*M},x=["rotate(".concat(N," ").concat(C.x," ").concat(C.y,")"),"translate(".concat(C.x," ").concat(C.y,")"),"scale(".concat(P,")"),"translate(".concat(-C.x," ").concat(-C.y,")"),"translate(".concat(G.x," ").concat(G.y,")")],U=t.flip&&t.flip.horizontal,B=t.flip&&t.flip.vertical,F=["scale(".concat(U?-1:1," ").concat(B?-1:1,")"),"translate(".concat(U?-I:0," ").concat(B?-R:0,")")],q='<?xml version="1.0" encoding="UTF-8"?>\n<svg width="'.concat(S).concat(_,'" height="').concat(A).concat(T,'" \nviewBox="0 0 ').concat(S," ").concat(A,'" ').concat(a?'style="background:'+a+'" ':"",'\npreserveAspectRatio="xMinYMin"\nxmlns:xlink="http://www.w3.org/1999/xlink"\nxmlns="http://www.w3.org/2000/svg">\n\x3c!-- Generated by PQINA - https://pqina.nl/ --\x3e\n<title>').concat(l?l.textContent:"",'</title>\n<g transform="').concat(x.join(" "),'">\n<g transform="').concat(F.join(" "),'">\n').concat(o.outerHTML).concat(y,"\n</g>\n</g>\n</svg>");i(q)},u.readAsText(e)}))},$=function(e){var t;try{t=new ImageData(e.width,e.height)}catch(n){t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},J=function(){var e={resize:c,filter:l},t=function(t,n){return t.forEach((function(t){n=e[t.type](n,t.data)})),n},n=function(e,n){var r=e.transforms,i=null;if(r.forEach((function(e){"filter"===e.type&&(i=e)})),i){var o=null;r.forEach((function(e){"resize"===e.type&&(o=e)})),o&&(o.data.matrix=i.data,r=r.filter((function(e){return"filter"!==e.type})))}n(t(r,e.imageData))};self.onmessage=function(e){n(e.data.message,(function(t){self.postMessage({id:e.data.id,message:t},[t.data.buffer])}))};var r=1,i=1,o=1;function a(e,t,n){var a=t[e]/255,u=t[e+1]/255,s=t[e+2]/255,l=t[e+3]/255,c=a*n[0]+u*n[1]+s*n[2]+l*n[3]+n[4],f=a*n[5]+u*n[6]+s*n[7]+l*n[8]+n[9],d=a*n[10]+u*n[11]+s*n[12]+l*n[13]+n[14],p=a*n[15]+u*n[16]+s*n[17]+l*n[18]+n[19],E=Math.max(0,c*p)+r*(1-p),h=Math.max(0,f*p)+i*(1-p),v=Math.max(0,d*p)+o*(1-p);t[e]=255*Math.max(0,Math.min(1,E)),t[e+1]=255*Math.max(0,Math.min(1,h)),t[e+2]=255*Math.max(0,Math.min(1,v))}var u=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function s(e){return self.JSON.stringify(e||[])===u}function l(e,t){if(!t||s(t))return e;for(var n=e.data,a=n.length,u=t[0],l=t[1],c=t[2],f=t[3],d=t[4],p=t[5],E=t[6],h=t[7],v=t[8],_=t[9],T=t[10],m=t[11],g=t[12],I=t[13],R=t[14],y=t[15],O=t[16],D=t[17],S=t[18],A=t[19],w=0,b=0,M=0,L=0,P=0,N=0,C=0,G=0,x=0,U=0,B=0,F=0;w<a;w+=4)N=(b=n[w]/255)*u+(M=n[w+1]/255)*l+(L=n[w+2]/255)*c+(P=n[w+3]/255)*f+d,C=b*p+M*E+L*h+P*v+_,G=b*T+M*m+L*g+P*I+R,x=b*y+M*O+L*D+P*S+A,U=Math.max(0,N*x
vendor: 4,086 bytes, line 2
2)+r*(1-x),B=Math.max(0,C*x)+i*(1-x),F=Math.max(0,G*x)+o*(1-x),n[w]=255*Math.max(0,Math.min(1,U)),n[w+1]=255*Math.max(0,Math.min(1,B)),n[w+2]=255*Math.max(0,Math.min(1,F));return e}function c(e,t){var n=t.mode,r=void 0===n?"contain":n,i=t.upscale,o=void 0!==i&&i,u=t.width,c=t.height,f=t.matrix;if(f=!f||s(f)?null:f,!u&&!c)return l(e,f);if(null===u?u=c:null===c&&(c=u),"force"!==r){var d=u/e.width,p=c/e.height,E=1;if("cover"===r?E=Math.max(d,p):"contain"===r&&(E=Math.min(d,p)),E>1&&!1===o)return l(e,f);u=e.width*E,c=e.height*E}for(var h=e.width,v=e.height,_=Math.round(u),T=Math.round(c),m=e.data,g=new Uint8ClampedArray(_*T*4),I=h/_,R=v/T,y=Math.ceil(.5*I),O=Math.ceil(.5*R),D=0;D<T;D++)for(var S=0;S<_;S++){for(var A=4*(S+D*_),w=0,b=0,M=0,L=0,P=0,N=0,C=0,G=(D+.5)*R,x=Math.floor(D*R);x<(D+1)*R;x++)for(var U=Math.abs(G-(x+.5))/O,B=(S+.5)*I,F=U*U,q=Math.floor(S*I);q<(S+1)*I;q++){var V=Math.abs(B-(q+.5))/y,k=Math.sqrt(F+V*V);if(k>=-1&&k<=1&&(w=2*k*k*k-3*k*k+1)>0){var Y=m[3+(V=4*(q+x*h))];C+=w*Y,M+=w,Y<255&&(w=w*Y/250),L+=w*m[V],P+=w*m[V+1],N+=w*m[V+2],b+=w}}g[A]=L/b,g[A+1]=P/b,g[A+2]=N/b,g[A+3]=C/M,f&&a(A,g,f)}return{data:g,width:_,height:T}}},ee=function(e,t){if(1165519206===e.getUint32(t+4,!1)){t+=4;var n=18761===e.getUint16(t+=6,!1);t+=e.getUint32(t+4,n);var r=e.getUint16(t,n);t+=2;for(var i=0;i<r;i++)if(274===e.getUint16(t+12*i,n))return e.setUint16(t+12*i+8,1,n),!0;return!1}},te=function(e){var t=new DataView(e);if(65496!==t.getUint16(0))return null;for(var n,r,i=2,o=!1;i<t.byteLength&&(n=t.getUint16(i,!1),r=t.getUint16(i+2,!1)+2,n>=65504&&n<=65519||65534===n)&&(o||(o=ee(t,i,r)),!(i+r>t.byteLength));)i+=r;return e.slice(0,i)},ne=function(e){return new Promise((function(t){var n=new FileReader;n.onload=function(){return t(te(n.result)||null)},n.readAsArrayBuffer(e.slice(0,262144))}))},re=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},ie=function(e,t){var n=re();if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},oe=function(){return Math.random().toString(36).substr(2,9)},ae=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n),i=[];return{transfer:function(){},post:function(e,t,n){var o=oe();i[o]=t,r.onmessage=function(e){var t=i[e.data.id];t&&(t(e.data.message),delete i[e.data.id])},r.postMessage({id:o,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},ue=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}))},se=function(e){return e.reduce((function(e,t){return e.then((function(e){return t().then(Array.prototype.concat.bind(e))}))}),Promise.resolve([]))},le=function(e,t){return new Promise((function(n){var r={width:e.width,height:e.height},i=e.getContext("2d"),o=t.sort(Z).map((function(e){return function(){return new Promise((function(t){de[e[0]](i,r,e[1],t)&&t()}))}}));se(o).then((function(){return n(e)}))}))},ce=function(e,t){e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},fe=function(e){e.fill(),e.stroke(),e.globalAlpha=1},de={rect:function(e,t,n){var r=L(n,t),i=b(n,t);return ce(e,i),e.rect(r.x,r.y,r.width,r.height),fe(e,i),!0},ellipse:function(e,t,n){var r=L(n,t),i=b(n,t);ce(e,i);var o=r.x,a=r.y,u=r.width,s=r.height,l=.5522848,c=u/2*l,f=s/2*l,d=o+u,p=a+s,E=o+u/2,h=a+s/2;return e.moveTo(o,h),e.bezierCurveTo(o,h-f,E-c,a,E,a),e.bezierCurveTo(E+c,a,d,h-f,d,h),e.bezierCurveTo(d,h+f,E+c,p,E,p),e.bezierCurveTo(E-c,p,o,h+f,o,h),fe(e,i),!0},image:function(e,t,n,r){var i=L(n,t),o=b(n,t);ce(e,o);var a=new Image;new URL(n.src,window.location.href).origin!==window.location.origin&&(a.crossOrigin=""),a.onload=function(){if("cover"===n.fit){var t=i.width/i.height,u=t>1?a.width:a.height*t,s=t>1?a.width/t:a.height,l=.5*a.width-.5*u,c=.5*a.height-.5*s;
2e.drawImage(a,l,c,u,s,i.x,i.y,i.width,i.height)}else if("contain"===n.fit){var f=Math.min(i.width/a.width,i.height/a.height),d=f*a.width,p=f*a.height,E=i.x+.5*i.width-.5*d,h=i.y+.5*i.height-.5*p;e.drawImage(a,0,0,a.width,a.height,E,h,d,p)}else e.drawImage(a,0,0,a.width,a.height,i.x,i.y,i.width,i.height);fe(e,o),r()},a.src=n.src},text:function(e,t,n){var r=L(n,t),i=b(n,t);ce(e,i);var o=w(n.fontSize,t),a=n.fontFamily||"sans-serif",u=n.fontWeight||"normal",s=n.textAlign||"left";return e.font="".concat(u," ").concat(o,"px ").concat(a),e.textAlign=s,e.fillText(n.text,r.x,r.y),fe(e,i),!0},line:function(e,t,n){var r=L(n,t),i=b(n,t);ce(e,i),e.beginPath();var o={x:r.x,y:r.y},a={x:r.x+r.width,y:r.y+r.height};e.moveTo(o.x,o.y),e.lineTo(a.x,a.y);var u=D({x:a.x-o.x,y:a.y-o.y}),s=.04*Math.min(t.width,t.height);if(-1!==n.lineDecoration.indexOf("arrow-begin")){var l=y(u,s),c=O(o,l),f=S(o,2,c),d=S(o,-2,c);e.moveTo(f.x,f.y),e.lineTo(o.x,o.y),e.lineTo(d.x,d.y)}if(-1!==n.lineDecoration.indexOf("arrow-end")){var p=y(u,-s),E=O(a,p),h=S(a,2,E),v=S(a,-2,E);e.moveTo(h.x,h.y),e.lineTo(a.x,a.y),e.lineTo(v.x,v.y)}return fe(e,i),!0},path:function(e,t,n){var r=b(n,t);ce(e,r),e.beginPath();var i=n.points.map((function(e){return{x:w(e.x,t,1,"width"),y:w(e.y,t,1,"height")}}));e.moveTo(i[0].x,i[0].y);for(var o=i.length,a=1;a<o;a++)e.lineTo(i[a].x,i[a].y);return fe(e,r),!0}},pe=function(e){var t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),t},Ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(r,i){if(!e||!o(e))return i({status:"not an image file",file:e});var a=n.stripImageHead,u=n.beforeCreateBlob,s=n.afterCreateBlob,l=n.canvasMemoryLimit,c=t.crop,f=t.size,d=t.filter,p=t.markup,E=t.output,h=t.image&&t.image.orientation?Math.max(1,Math.min(8,t.image.orientation)):null,v=E&&E.quality,_=null===v?null:v/100,m=E&&E.type||null,g=E&&E.background||null,y=[];!f||"number"!=typeof f.width&&"number"!=typeof f.height||y.push({type:"resize",data:f}),d&&20===d.length&&y.push({type:"filter",data:d});var O=function(e){var t=s?s(e):e;Promise.resolve(t).then(r)},D=function(t,n){var r=pe(t),o=p.length?le(r,p):r;Promise.resolve(o).then((function(t){R(t,n,u).then((function(n){if(T(t),a)return O(n);ne(e).then((function(e){null!==e&&(n=new Blob([e,n.slice(20)],{type:n.type})),O(n)}))})).catch(i)}))};if(/svg/.test(e.type)&&null===m)return K(e,c,p,{background:g}).then((function(e){r(ie(e,"image/svg+xml"))}));var S=URL.createObjectURL(e);ue(S).then((function(t){URL.revokeObjectURL(S);var n=I(t,h,c,{canvasMemoryLimit:l,background:g}),r={quality:_,type:m||e.type};if(!y.length)return D(n,r);var i=ae(J);i.post({transforms:y,imageData:n},(function(e){D($(e),r),i.terminate()}),[n.data.buffer])})).catch(i)}))};function he(e){this.wrapped=e}function ve(e){var t,n;function r(e,r){return new Promise((function(o,a){var u={key:e,arg:r,resolve:o,reject:a,next:null};n?n=n.next=u:(t=n=u,i(e,r))}))}function i(t,n){try{var r=e[t](n),a=r.value,u=a instanceof he;Promise.resolve(u?a.wrapped:a).then((function(e){u?i("next",e):o(r.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(e){o("throw",e)}}function o(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=r,"function"!=typeof e.return&&(this.return=void 0)}function _e(e,t){return Te(e)||me(e,t)||ge()}function Te(e){if(Array.isArray(e))return e}function me(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}function ge(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}"function"==typeof Symbol&&Symbol.asyncIterator&&(ve.prototype[Symbol.asyncIterator]=function(){return this}),ve.prototype.next=function(e){return this._invoke("next",e)},ve.prototype.throw=function(e){return this._invoke("throw",e)},ve.prototype.return=function(e){return this._invoke("return",e)};var Ie=["x","y","left","top","right","bottom","width","height"],Re=function(e){return"string"==typeof e&&/%/.test(e)?parseFloat(e)/100:e},ye=function(e){var t=_e(e,2),n=t[0],r=t[1],i=r.points?{}:Ie.reduce((function(e,t){return e[t]=Re(r[t]),e}),{});return[n,Object.assign({zIndex:0},r,i)]},Oe=function(e){return new Promise((function(t,n){var r=new Image;r.src=URL.createObjectURL(e);
2var i=function(){var e=r.naturalWidth,n=r.naturalHeight;e&&n&&(URL.revokeObjectURL(r.src),clearInterval(o),t({width:e,height:n}))};r.onerror=function(e){URL.revokeObjectURL(r.src),clearInterval(o),n(e)};var o=setInterval(i,1);i()}))};"undefined"!=typeof window&&void 0!==window.document&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var r=this;setTimeout((function(){for(var i=r.toDataURL(t,n).split(",")[1],o=atob(i),a=o.length,u=new Uint8Array(a);a--;)u[a]=o.charCodeAt(a);e(new Blob([u],{type:t||"image/png"}))}))}}));var De="undefined"!=typeof window&&void 0!==window.document,Se=De&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Ae=function(t){var n=t.addFilter,o=t.utils,a=o.Type,u=o.forin,s=o.getFileFromBlob,l=o.isFile,c=["crop","resize","filter","markup","output"],f=function(e){return function(t,n,r){return t(n,e?e(r):r)}},d=function(e){return null===e.aspectRatio&&0===e.rotation&&1===e.zoom&&e.center&&.5===e.center.x&&.5===e.center.y&&e.flip&&!1===e.flip.horizontal&&!1===e.flip.vertical};n("SHOULD_PREPARE_OUTPUT",(function(e,t){var n=t.query;return new Promise((function(e){e(!n("IS_ASYNC"))}))}));var p=function(t,n,r){return new Promise((function(i){if(!t("GET_ALLOW_IMAGE_TRANSFORM")||r.archived||!l(n)||!e(n))return i(!1);Oe(n).then((function(){var e=t("GET_IMAGE_TRANSFORM_IMAGE_FILTER");if(e){var r=e(n);if(null==r)return handleRevert(!0);if("boolean"==typeof r)return i(r);if("function"==typeof r.then)return r.then(i)}i(!0)})).catch((function(e){i(!1)}))}))};return n("DID_CREATE_ITEM",(function(e,t){var n=t.query,r=t.dispatch;n("GET_ALLOW_IMAGE_TRANSFORM")&&e.extend("requestPrepare",(function(){return new Promise((function(t,n){r("REQUEST_PREPARE_OUTPUT",{query:e.id,item:e,success:t,failure:n},!0)}))}))})),n("PREPARE_OUTPUT",(function(e,t){var n=t.query,o=t.item;return new Promise((function(t){p(n,e,o).then((function(a){if(!a)return t(e);var l=[];n("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_ORIGINAL")&&l.push((function(){return new Promise((function(t){t({name:n("GET_IMAGE_TRANSFORM_VARIANTS_ORIGINAL_NAME"),file:e})}))})),n("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_DEFAULT")&&l.push((function(e,t,r){return new Promise((function(i){e(t,r).then((function(e){return i({name:n("GET_IMAGE_TRANSFORM_VARIANTS_DEFAULT_NAME"),file:e})}))}))}));var p=n("GET_IMAGE_TRANSFORM_VARIANTS")||{};u(p,(function(e,t){var n=f(t);l.push((function(t,r,i){return new Promise((function(o){n(t,r,i).then((function(t){return o({name:e,file:t})}))}))}))}));var E=n("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY"),h=n("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY_MODE"),v=null===E?null:E/100,_=n("GET_IMAGE_TRANSFORM_OUTPUT_MIME_TYPE"),T=n("GET_IMAGE_TRANSFORM_CLIENT_TRANSFORMS")||c;o.setMetadata("output",{type:_,quality:v,client:T},!0);var m=function(e,t){return new Promise((function(o,a){var u=Object.assign({},t);Object.keys(u).filter((function(e){return"exif"!==e})).forEach((function(e){-1===T.indexOf(e)&&delete u[e]}));var l=u.resize,c=u.exif,f=u.output,p=u.crop,E=u.filter,v=u.markup,_={image:{orientation:c?c.orientation:null},output:f&&(f.type||"number"==typeof f.quality||f.background)?{type:f.type,quality:"number"==typeof f.quality?100*f.quality:null,background:f.background||n("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||null}:void 0,size:l&&(l.size.width||l.size.height)?Object.assign({mode:l.mode,upscale:l.upscale},l.size):void 0,crop:p&&!d(p)?Object.assign({},p):void 0,markup:v&&v.length?v.map(ye):[],filter:E};if(_.output){var m=!!f.type&&f.type!==e.type,g=/\/jpe?g$/.test(e.type),I=null!==f.quality&&g&&"always"===h;if(!(_.size||_.crop||_.filter||m||I))return o(e)}var R={beforeCreateBlob:n("GET_IMAGE_TRANSFORM_BEFORE_CREATE_BLOB"),afterCreateBlob:n("GET_IMAGE_TRANSFORM_AFTER_CREATE_BLOB"),canvasMemoryLimit:n("GET_IMAGE_TRANSFORM_CANVAS_MEMORY_LIMIT"),stripImageHead:n("GET_IMAGE_TRANSFORM_OUTPUT_STRIP_IMAGE_HEAD")};Ee(e,_,R).then((function(t){var n=s(t,r(e.name,i(t.type)));o(n)})).catch(a)}))},g=l.map((function(t){return t(m,e,o.getMetadata())}));Promise.all(g).then((function(e){t(1===e.length&&null===e[0].name?e[0].file:e)}))}))}))})),{options:{allowImageTransform:[!0,a.BOOLEAN],imageTransformImageFilter:[null,a.FUNCTION],imageTransformOutputMimeType:[null,a.STRING],imageTransformOutputQuality:[null,a.INT],imageTransformOutputStripImageHead:[!0,a.BOOLEAN],imageTransformClientTransforms:[null,a.ARRAY],imageTransformOutputQualityMode:["always",a.STRING],imageTransformVariants:[null,a.OBJECT],imageTransformVariantsIncludeDefault:[!0,a.BOOLEAN],imageTransformVariantsDefaultName:[null,a.STRING],imageTransformVariantsIncludeOriginal:[!1,a.BOOLEAN],imageTransformVariantsOriginalName:["original_",a.STRING],imageTransformBeforeCreateBlob:[null,a.FUNCTION],imageTransformAfterCreateBlob:[null,a.FUNCTION],imageTransformCanvasMemoryLimit:[De&&Se?16777216:null,a.INT],imageTransformCanvasBackgroun
vendor: 4,703 bytes, line 2
2dColor:[null,a.STRING]}}};return De&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Ae})),Ae}()},66136:function(e,t){!function(e){"use strict";var t=function(e){return e instanceof HTMLElement},n=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),i=[],o=[],a=function(){var e=[].concat(o);o.length=0,e.forEach((function(e){var t=e.type,n=e.data;u(t,n)}))},u=function(e,t,n){!n||document.hidden?(f[e]&&f[e](t),i.push({type:e,data:t})):o.push({type:e,data:t})},s=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return c[e]?(t=c)[e].apply(t,r):null},l={getState:function(){return Object.assign({},r)},processActionQueue:function(){var e=[].concat(i);return i.length=0,e},processDispatchQueue:a,dispatch:u,query:s},c={};t.forEach((function(e){c=Object.assign({},e(r),{},c)}));var f={};return n.forEach((function(e){f=Object.assign({},e(u,s,r),{},f)})),l},r=function(e,t,n){"function"!=typeof n?Object.defineProperty(e,t,Object.assign({},n)):e[t]=n},i=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},o=function(e){var t={};return i(e,(function(n){r(t,n,e[n])})),t},a=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)},u="http://www.w3.org/2000/svg",s=["svg","path"],l=function(e){return s.includes(e)},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof t&&(n=t,t=null);var r=l(e)?document.createElementNS(u,e):document.createElement(e);return t&&(l(e)?a(r,"class",t):r.className=t),i(n,(function(e,t){a(r,e,t)})),r},f=function(e){return function(t,n){void 0!==n&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)}},d=function(e,t){return function(e,n){return void 0!==n?t.splice(n,0,e):t.push(e),e}},p=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},E="undefined"!=typeof window&&void 0!==window.document,h=function(){return E},v="children"in(h()?c("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},_=function(e,t,n,r){var i=n[0]||e.left,o=n[1]||e.top,a=i+e.width,u=o+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:i,top:o,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))})),m(s.inner),s.outer.bottom+=s.element.marginBottom,s.outer.right+=s.element.marginRight,m(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)},m=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},g=function(e){return"number"==typeof e},I=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},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,r=e.damping,i=void 0===r?.75:r,a=e.mass,u=void 0===a?10:a,s=null,l=null,c=0,f=!1,d=o({interpolate:function(e,t){if(!f){if(!g(s)||!g(l))return f=!0,void(c=0);I(l+=c+=-(l-s)*n/u,s,c*=i)||t?(l=s,c=0,f=!0,d.onupdate(l),d.oncomplete(l)):d.onupdate(l)}},target:{set:function(e){if(g(e)&&!g(l)&&(l=e),null===s&&(s=e,l=e),l===(s=e)||void 0===s)return f=!0,c=0,d.onupdate(l),void d.oncomplete(l);f=!1},get:function(){return s}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return d},y=function(e){return e<.5?2*e*e:(4-2*e)*e-1},O=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.duration,i=void 0===r?500:r,a=n.easing,u=void 0===a?y:a,s=n.delay,l=void 0===s?0:s,c=null,f=!0,d=!1,p=null,E=o({interpolate:function(n,r){f||null===p||(null===c&&(c=n),n-c<l||((e=n-c-l)>=i||r?(e=1,t=d?0:1,E.onupdate(t*p),E.oncomplete(t*p),f=!0):(t=e/i,E.onupdate((e>=0?u(d?1-t:t):0)*p))))},target:{get:function(){return d?0:p},set:function(e){if(null===p)return p=e,E.onupdate(e),void E.oncomplete(e);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},D={spring:R,tween:O},S=function(e,t,n){var r=e[t]&&"object"==typeof e[t][n]?e[t][n]:e[t]||e,i="string"==typeof r?r:r.type,o="object"==typeof r?Object.assign({},r):{};return D[i]?D[i](o):null},A=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];
2(t=Array.isArray(t)?t:[t]).forEach((function(t){e.forEach((function(e){var i=e,o=function(){return n[e]},a=function(t){return n[e]=t};"object"==typeof e&&(i=e.key,o=e.getter||o,a=e.setter||a),t[i]&&!r||(t[i]={get:o,set:a})}))}))},w=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,a=Object.assign({},n),u=[];return i(t,(function(e,t){var i=S(t);i&&(i.onupdate=function(t){n[e]=t},i.target=a[e],A([{key:e,setter:function(e){i.target!==e&&(i.target=e)},getter:function(){return n[e]}}],[r,o],n,!0),u.push(i))})),{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(){}}},b=function(e){return function(t,n){e.addEventListener(t,n)}},M=function(e){return function(t,n){e.removeEventListener(t,n)}},L=function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t=e.viewExternalAPI,n=(e.viewState,e.view),r=[],i=b(n.element),o=M(n.element);return t.on=function(e,t){r.push({type:e,fn:t}),i(e,t)},t.off=function(e,t){r.splice(r.findIndex((function(n){return n.type===e&&n.fn===t})),1),o(e,t)},{write:function(){return!0},destroy:function(){r.forEach((function(e){o(e.type,e.fn)}))}}},P=function(e){return null!=e},N={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},C=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,i=e.viewExternalAPI,o=e.view,a=Object.assign({},n),u={};A(t,[r,i],n);var s=function(){return[n.translateX||0,n.translateY||0]},l=function(){return[n.scaleX||0,n.scaleY||0]},c=function(){return o.rect?_(o.rect,o.childViews,s(),l()):null};return r.rect={get:c},i.rect={get:c},t.forEach((function(e){n[e]=void 0===a[e]?N[e]:a[e]})),{write:function(){if(G(u,n))return x(o.element,n),Object.assign(u,Object.assign({},n)),!0},destroy:function(){}}},G=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},x=function(e,t){var n=t.opacity,r=t.perspective,i=t.translateX,o=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,h="",v="";(P(f)||P(d))&&(v+="transform-origin: "+(f||0)+"px "+(d||0)+"px;"),P(r)&&(h+="perspective("+r+"px) "),(P(i)||P(o))&&(h+="translate3d("+(i||0)+"px, "+(o||0)+"px, 0) "),(P(a)||P(u))&&(h+="scale3d("+(P(
2a)?a:1)+", "+(P(u)?u:1)+", 1) "),P(c)&&(h+="rotateZ("+c+"rad) "),P(s)&&(h+="rotateX("+s+"rad) "),P(l)&&(h+="rotateY("+l+"rad) "),h.length&&(v+="transform:"+h+";"),P(n)&&(v+="opacity:"+n+";",0===n&&(v+="visibility:hidden;"),n<1&&(v+="pointer-events:none;")),P(E)&&(v+="height:"+E+"px;"),P(p)&&(v+="width:"+p+"px;");var _=e.elementCurrentStyle||"";v.length===_.length&&v===_||(e.style.cssText=v,e.elementCurrentStyle=v)},U={styles:C,listeners:L,animations:w,apis:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewExternalAPI;A(t,r,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},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,r=e.name,i=void 0===r?null:r,a=e.attributes,u=void 0===a?{}:a,s=e.read,l=void 0===s?function(){}:s,E=e.write,h=void 0===E?function(){}:E,T=e.create,m=void 0===T?function(){}:T,g=e.destroy,I=void 0===g?function(){}:g,R=e.filterFrameActionsForChild,y=void 0===R?function(e,t){return t}:R,O=e.didCreateView,D=void 0===O?function(){}:O,S=e.didWriteView,A=void 0===S?function(){}:S,w=e.ignoreRect,b=void 0!==w&&w,M=e.ignoreRectUpdate,L=void 0!==M&&M,P=e.mixins,N=void 0===P?[]:P;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c(n,"filepond--"+i,u),a=window.getComputedStyle(r,null),s=B(),E=null,T=!1,g=[],R=[],O={},S={},w=[h],M=[l],P=[I],C=function(){return r},G=function(){return g.concat()},x=function(){return O},F=function(e){return function(t,n){return t(e,n)}},q=function(){return E||(E=_(s,g,[0,0],[1,1]))},V=function(){E=null,g.forEach((function(e){return e._read()})),!(L&&s.width&&s.height)&&B(s,r,a);var e={root:X,props:t,rect:s};M.forEach((function(t){return t(e)}))},k=function(e,n,r){var i=0===n.length;return w.forEach((function(o){!1===o({props:t,root:X,actions:n,timestamp:e,shouldOptimize:r})&&(i=!1)})),R.forEach((function(t){!1===t.write(e)&&(i=!1)})),g.filter((function(e){return!!e.element.parentNode})).forEach((function(t){t._write(e,y(t,n),r)||(i=!1)})),g.forEach((function(t,o){t.element.parentNode||(X.appendChild(t.element,o),t._read(),t._write(e,y(t,n),r),i=!1)})),T=i,A({props:t,root:X,actions:n,timestamp:e}),i},Y=function(){R.forEach((function(e){return e.destroy()})),P.forEach((function(e){e({root:X,props:t})})),g.forEach((function(e){return e._destroy()}))},j={element:{get:C},style:{get:function(){return a}},childViews:{get:G}},z=Object.assign({},j,{rect:{get:q},ref:{get:x},is:function(e){return i===e},appendChild:f(r),createChildView:F(e),linkView:function(e){return g.push(e),e},unlinkView:function(e){g.splice(g.indexOf(e),1)},appendChildView:d(r,g),removeChildView:p(r,g),registerWriter:function(e){return w.push(e)},registerReader:function(e){return M.push(e)},registerDestroyer:function(e){return P.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),H={element:{get:C},childViews:{get:G},rect:{get:q},resting:{get:function(){return T}},isRectIgnored:function(){return b},_read:V,_write:k,_destroy:Y},W=Object.assign({},j,{rect:{get:function(){return s}}});Object.keys(N).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var n=U[e]({mixinConfig:N[e],viewProps:t,viewState:S,viewInternalAPI:z,viewExternalAPI:H,view:o(W)});n&&R.push(n)}));var X=o(z);m({root:X,props:t});var Q=v(r);return g.forEach((function(e,t){X.appendChild(e.element,Q+t)})),D(X),o(H)}},q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r="__framePainter";if(window[r])return window[r].readers.push(e),void window[r].writers.push(t);window[r]={readers:[e],writers:[t]};var i=window[r],o=1e3/n,a=null,u=null,s=null,l=null,c=function(){document.hidden?(s=function(){return window.setTimeout((function(){return f(performance.now())}),o)},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;
2n<=o||(a=t-n%o,i.readers.forEach((function(e){return e()})),i.writers.forEach((function(e){return e(t)})))};return c(),f(performance.now()),{pause:function(){l(u)}}},V=function(e,t){return function(n){var r=n.root,i=n.props,o=n.actions,a=void 0===o?[]:o,u=n.timestamp,s=n.shouldOptimize;a.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:r,props:i,action:t.data,timestamp:u,shouldOptimize:s})})),t&&t({root:r,props:i,actions:a,timestamp:u,shouldOptimize:s})}},k=function(e,t){return t.parentNode.insertBefore(e,t)},Y=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},j=function(e){return Array.isArray(e)},z=function(e){return null==e},H=function(e){return e.trim()},W=function(e){return""+e},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return z(e)?[]:j(e)?e:W(e).split(t).map(H).filter((function(e){return e.length}))},Q=function(e){return"boolean"==typeof e},Z=function(e){return Q(e)?e:"true"===e},K=function(e){return"string"==typeof e},$=function(e){return g(e)?e:K(e)?W(e).replace(/[a-z]+/gi,""):0},J=function(e){return parseInt($(e),10)},ee=function(e){return parseFloat($(e))},te=function(e){return g(e)&&isFinite(e)&&Math.floor(e)===e},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(te(e))return e;var n=W(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),J(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),J(n)*t):J(n)},re=function(e){return"function"==typeof e},ie=function(e){for(var t=self,n=e.split("."),r=null;r=n.shift();)if(!(t=t[r]))return null;return t},oe={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},ae=function(e){var t={};return t.url=K(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},i(oe,(function(n){t[n]=ue(n,e[n],oe[n],t.timeout,t.headers)})),t.process=e.process||K(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},ue=function(e,t,n,r,i){if(null===t)return null;if("function"==typeof t)return t;var o={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(K(t))return o.url=t,o;if(Object.assign(o,t),K(o.headers)){var a=o.headers.split(/:(.+)/);o.headers={header:a[0],value:a[1]}}return o.withCredentials=Z(o.withCredentials),o},se=function(e){return null===e},le=function(e){return"object"==typeof e&&null!==e},ce=function(e){return le(e)&&K(e.url)&&le(e.process)&&le(e.revert)&&le(e.restore)&&le(e.fetch)},fe=function(e){return j(e)?"array":se(e)?"null":te(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":ce(e)?"api":typeof e},de=function(e){return e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},pe={array:X,boolean:Z,int:function(e){return"bytes"===fe(e)?ne(e):J(e)},number:ee,float:ee,bytes:ne,string:function(e){return re(e)?e:W(e)},function:function(e){return ie(e)},serverapi:function(e){return ae(e)},object:function(e){try{return JSON.parse(de(e))}catch(e){return null}}},Ee=function(e,t){return pe[t](e)},he=function(e,t,n){if(e===t)return e;var r=fe(e);if(r!==n){var i=Ee(e,n);if(r=fe(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},ve=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(r){n=he(r,e,t)}}},_e=function(e){var t={};return i(e,(function(n){var r=e[n];t[n]=ve(r[0],r[1])})),o(t)},Te=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:_e(e)}},me=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)},ge=function(e,t){var n={};return i(t,(function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+me(t,"_").toUpperCase(),{value:n})}}})),n},Ie=function(e){return function(t,n,r){var o={};return i(e,(function(e){var n=me(e,"_").toUpperCase();o["SET_"+n]=function(i){try{r.options[e]=i.value}catch(e){}t("DID_SET_"+n,{value:r.options[e]})}})),o}},Re=function(e){return function(t){var n={};return i(e,(function(e){n["GET_"+me(e,"_").toUpperCase()]=function(n){return t.options[e]}})),n}},ye={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Oe=function(){return Math.random().toString(36).substr(2,9)};function De(e){this.wrapped=e}function Se(e){var t,n;function r(e,r){return new Promise((function(o,a){var u={key:e,arg:r,resolve:o,reject:a,next:null};n?n=n.next=u:(t=n=u,i(e,r))}))}function i(t,n){try{var r=e[t](n),a=r.value,u=a instanceof De;Promise.resolve(u?a.wrapped:a).then((function(e){u?i("next",e):o(r.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(e){o("throw",e)}}function o(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}
2this._invoke=r,"function"!=typeof e.return&&(this.return=void 0)}function Ae(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function we(e,t){if(null==e)return{};var n,r,i=Ae(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function be(e){return Me(e)||Le(e)||Pe()}function Me(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Le(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function Pe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}"function"==typeof Symbol&&Symbol.asyncIterator&&(Se.prototype[Symbol.asyncIterator]=function(){return this}),Se.prototype.next=function(e){return this._invoke("next",e)},Se.prototype.throw=function(e){return this._invoke("throw",e)},Se.prototype.return=function(e){return this._invoke("return",e)};var Ne=function(e,t){return e.splice(t,1)},Ce=function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},Ge=function(){var e=[],t=function(t,n){Ne(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 Ce((function(){return e.apply(void 0,be(n))}),r)}))};return{fireSync:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,r,!0)},fire:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];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}},xe=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))}))},Ue=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],Be=function(e){var t={};return xe(e,t,Ue),t},Fe=function(e){e.forEach((function(t,n){t.released&&Ne(e,n)}))},qe={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},Ve={INPUT:1,LIMBO:2,LOCAL:3},ke=function(e){return/[^0-9]+/.exec(e)},Ye=function(){return ke(1.1.toLocaleString())[0]},je=function(){var e=Ye(),t=1e3.toLocaleString();return t!==1e3.toString()?ke(t)[0]:"."===e?",":"."},ze={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},He=[],We=function(e,t,n){return new Promise((function(r,i){var o=He.filter((function(t){return t.key===e})).map((function(e){return e.cb}));if(0!==o.length){var a=o.shift();o.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 i(e)}))}else r(t)}))},Xe=function(e,t,n){return He.filter((function(t){return t.key===e})).map((function(e){return e.cb(t,n)}))},Qe=function(e,t){return He.push({key:e,cb:t})},Ze=function(e){return Object.assign(Je,e)},Ke=function(){return Object.assign({},Je)},$e=function(e){i(e,(function(e,t){Je[e]&&(Je[e][0]=he(t,Je[e][0],Je[e][1]))}))},Je={id:[null,ze.STRING],name:["filepond",ze.STRING],disabled:[!1,ze.BOOLEAN],className:[null,ze.STRING],required:[!1,ze.BOOLEAN],captureMethod:[null,ze.STRING],allowSyncAcceptAttribute:[!0,ze.BOOLEAN],allowDrop:[!0,ze.BOOLEAN],allowBrowse:[!0,ze.BOOLEAN],allowPaste:[!0,ze.BOOLEAN],allowMultiple:[!1,ze.BOOLEAN],allowReplace:[!0,ze.BOOLEAN],allowRevert:[!0,ze.BOOLEAN],allowRemove:[!0,ze.BOOLEAN],allowProcess:[!0,ze.BOOLEAN],allowReorder:[!1,ze.BOOLEAN],allowDirectoriesOnly:[!1,ze.BOOLEAN],storeAsFile:[!1,ze.BOOLEAN],forceRevert:[!1,ze.BOOLEAN],maxFiles:[null,ze.INT],checkValidity:[!1,ze.BOOLEAN],itemInsertLocationFreedom:[!0,ze.BOOLEAN],itemInsertLocation:["before",ze.STRING],itemInsertInterval:[75,ze.INT],dropOnPage:[!1,ze.BOOLEAN],dropOnElement:[!0,ze.BOOLEAN],dropValidation:[!1,ze.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],ze.ARRAY],instantUpload:[!0,ze.BOOLEAN],maxParallelUploads:[2,ze.INT],allowMinimumUploadDuration:[!0,ze.BOOLEAN],chunkUploads:[!1,ze.BOOLEAN],chunkForce:[!1,ze.BOOLEAN],chunkSize:[5e6,ze.INT],chunkRetryDelays:[[500,1e3,3e3],ze.ARRAY],server:[null,ze.SERVER_API],fileSizeBase:[1e3,ze.INT],labelFileSizeBytes:["bytes",ze.STRING],labelFileSizeKilobytes:["KB",ze.STRING],labelFileSizeMegabytes:["MB",ze.STRING],labelFileSizeGigabytes:["GB",ze.STRING],labelDecimalSeparator:[Ye(),ze.STRING],labelThousandsSeparator:[j
vendor: 4,347 bytes, line 2
2e(),ze.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',ze.STRING],labelInvalidField:["Field contains invalid files",ze.STRING],labelFileWaitingForSize:["Waiting for size",ze.STRING],labelFileSizeNotAvailable:["Size not available",ze.STRING],labelFileCountSingular:["file in list",ze.STRING],labelFileCountPlural:["files in list",ze.STRING],labelFileLoading:["Loading",ze.STRING],labelFileAdded:["Added",ze.STRING],labelFileLoadError:["Error during load",ze.STRING],labelFileRemoved:["Removed",ze.STRING],labelFileRemoveError:["Error during remove",ze.STRING],labelFileProcessing:["Uploading",ze.STRING],labelFileProcessingComplete:["Upload complete",ze.STRING],labelFileProcessingAborted:["Upload cancelled",ze.STRING],labelFileProcessingError:["Error during upload",ze.STRING],labelFileProcessingRevertError:["Error during revert",ze.STRING],labelTapToCancel:["tap to cancel",ze.STRING],labelTapToRetry:["tap to retry",ze.STRING],labelTapToUndo:["tap to undo",ze.STRING],labelButtonRemoveItem:["Remove",ze.STRING],labelButtonAbortItemLoad:["Abort",ze.STRING],labelButtonRetryItemLoad:["Retry",ze.STRING],labelButtonAbortItemProcessing:["Cancel",ze.STRING],labelButtonUndoItemProcessing:["Undo",ze.STRING],labelButtonRetryItemProcessing:["Retry",ze.STRING],labelButtonProcessItem:["Upload",ze.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>',ze.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>',ze.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>',ze.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>',ze.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>',ze.STRING],oninit:[null,ze.FUNCTION],onwarning:[null,ze.FUNCTION],onerror:[null,ze.FUNCTION],onactivatefile:[null,ze.FUNCTION],oninitfile:[null,ze.FUNCTION],onaddfilestart:[null,ze.FUNCTION],onaddfileprogress:[null,ze.FUNCTION],onaddfile:[null,ze.FUNCTION],onprocessfilestart:[null,ze.FUNCTION],onprocessfileprogress:[null,ze.FUNCTION],onprocessfileabort:[null,ze.FUNCTION],onprocessfilerevert:[null,ze.FUNCTION],onprocessfile:[null,ze.FUNCTION],onprocessfiles:[null,ze.FUNCTION],onremovefile:[null,ze.FUNCTION],onpreparefile:[null,ze.FUNCTION],onupdatefiles:[null,ze.FUNCTION],onreorderfiles:[null,ze.FUNCTION],beforeDropFile:[null,ze.FUNCTION],beforeAddFile:[null,ze.FUNCTION],beforeRemoveFile:[null,ze.FUNCTION],beforePrepareFile:[null,ze.FUNCTION],stylePanelLayout:[null,ze.STRING],stylePanelAspectRatio:[null,ze.STRING],styleItemPanelAspectRatio:[null,ze.STRING],styleButtonRemoveItemPosition:["left",ze.STRING],styleButtonProcessItemPosition:["right",ze.STRING],styleLoadIndicatorPosition:["right",ze.STRING],styleProgressIndicatorPosition:["right",ze.STRING],styleButtonRemoveItemAlign:[!1,ze.BOOLEAN],files:[[],ze.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],ze.ARRAY]},
2et=function(e,t){return z(t)?e[0]||null:te(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},tt=function(e){if(z(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},nt=function(e){return e.filter((function(e){return!e.archived}))},rt={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},it=null,ot=function(){if(null===it)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,it=1===t.files.length}catch(e){it=!1}return it},at=[qe.LOAD_ERROR,qe.PROCESSING_ERROR,qe.PROCESSING_REVERT_ERROR],ut=[qe.LOADING,qe.PROCESSING,qe.PROCESSING_QUEUED,qe.INIT],st=[qe.PROCESSING_COMPLETE],lt=function(e){return at.includes(e.status)},ct=function(e){return ut.includes(e.status)},ft=function(e){return st.includes(e.status)},dt=function(e){return le(e.options.server)&&(le(e.options.server.process)||re(e.options.server.process))},pt=function(e){return{GET_STATUS:function(){var t=nt(e.items),n=rt.EMPTY,r=rt.ERROR,i=rt.BUSY,o=rt.IDLE,a=rt.READY;return 0===t.length?n:t.some(lt)?r:t.some(ct)?i:t.some(ft)?a:o},GET_ITEM:function(t){return et(e.items,t)},GET_ACTIVE_ITEM:function(t){return et(nt(e.items),t)},GET_ACTIVE_ITEMS:function(){return nt(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=et(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=et(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:tt(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return nt(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return nt(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&ot()&&!dt(e)},IS_ASYNC:function(){return dt(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}}}},Et=function(e){var t=nt(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t<n},ht=function(e,t,n){return Math.max(Math.min(n,e),t)},vt=function(e,t,n){return e.splice(t,0,n)},_t=function(e,t,n){return z(t)?null:void 0===n?(e.push(t),t):(n=ht(n,0,e.length),vt(e,n,t),t)},Tt=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},mt=function(e){return e.split("/").pop().split("?").shift()},gt=function(e){return e.split(".").pop()},It=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:""},Rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+Rt(e.getMonth()+1,"00")+"-"+Rt(e.getDate(),"00")+"_"+Rt(e.getHours(),"00")+"-"+Rt(e.getMinutes(),"00")+"-"+Rt(e.getSeconds(),"00")},Ot=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,i="string"==typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),K(t)||(t=yt()),t&&null===r&&gt(t)?i.name=t:(r=r||It(i.type),i.name=t+(r?"."+r:"")),i},Dt=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},St=function(e,t){var n=Dt();if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})}
2,At=function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return St(n,t)},wt=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},bt=function(e){return e.split(",")[1].replace(/\s/g,"")},Mt=function(e){return atob(bt(e))},Lt=function(e){var t=wt(e),n=Mt(e);return At(n,t)},Pt=function(e,t,n){return Ot(Lt(e),t,null,n)},Nt=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},Ct=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},Gt=function(e){return/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null},xt=function(e){var t={source:null,name:null,size:null},n=e.split("\n"),r=!0,i=!1,o=void 0;try{for(var a,u=n[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var s=a.value,l=Nt(s);if(l)t.name=l;else{var c=Ct(s);if(c)t.size=c;else{var f=Gt(s);f&&(t.source=f)}}}}catch(e){i=!0,o=e}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return t},Ut=function(e){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=function(){return t.progress},r=function(){t.request&&t.request.abort&&t.request.abort()},i=function(){var e=t.source;a.fire("init",e),e instanceof File?a.fire("load",e):e instanceof Blob?a.fire("load",Ot(e,e.name)):Tt(e)?a.fire("load",Pt(e)):o(e)},o=function(n){e?(t.timestamp=Date.now(),t.request=e(n,(function(e){t.duration=Date.now()-t.timestamp,t.complete=!0,e instanceof Blob&&(e=Ot(e,e.name||mt(n))),a.fire("load",e instanceof Blob?e:e?e.body:null)}),(function(e){a.fire("error","string"==typeof e?{type:"error",code:0,body:e}:e)}),(function(e,n,r){r&&(t.size=r),t.duration=Date.now()-t.timestamp,e?(t.progress=n/r,a.fire("progress",t.progress)):t.progress=null}),(function(){a.fire("abort")}),(function(e){var n=xt("string"==typeof e?e:e.headers);a.fire("meta",{size:t.size||n.size,filename:n.name,source:n.source})}))):a.fire("error",{type:"error",body:"Can't load URL",code:400})},a=Object.assign({},Ge(),{setSource:function(e){return t.source=e},getProgress:n,abort:r,load:i});return a},Bt=function(e){return/GET|HEAD/.test(e)},Ft=function(e,t,n){var r={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){i=!0,a.abort()}},i=!1,o=!1;n=Object.assign({method:"POST",headers:{},withCredentials:!1},n),t=encodeURI(t),Bt(n.method)&&e&&(t=""+t+encodeURIComponent("string"==typeof e?e:JSON.stringify(e)));var a=new XMLHttpRequest;return(Bt(n.method)?a:a.upload).onprogress=function(e){i||r.onprogress(e.lengthComputable,e.loaded,e.total)},a.onreadystatechange=function(){a.readyState<2||4===a.readyState&&0===a.status||o||(o=!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(){i=!0,r.onabort()},a.ontimeout=function(){return r.ontimeout(a)},a.open(n.method,t,!0),te(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},qt=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},Vt=function(e){return function(t){e(qt("error",0,"Timeout",t.getAllResponseHeaders()))}},kt=function(e){return/\?/.test(e)},Yt=function(){for(var e="",t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e+=kt(e)&&kt(t)?t.replace(/\?/,"&"):t})),e},jt=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||!K(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,o,a,u,s,l){var c=Ft(i,Yt(e,t.url),Object.assign({},t,{responseType:"blob"}));return c.onload=function(e){var r=e.getAllResponseHeaders(),a=xt(r).name||mt(i);o(qt("load",e.status,"HEAD"===t.method?null:Ot(n(e.response),a),r))},c.onerror=function(e){a(qt("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))}
2,c.onheaders=function(e){l(qt("headers",e.status,null,e.getAllResponseHeaders()))},c.ontimeout=Vt(a),c.onprogress=u,c.onabort=s,c}},zt={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Ht=function(e,t,n,r,i,o,a,u,s,l,c){for(var f=[],d=c.chunkTransferId,p=c.chunkServer,E=c.chunkSize,h=c.chunkRetryDelays,v={serverId:d,aborted:!1},_=t.ondata||function(e){return e},T=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},m=t.onerror||function(e){return null},g=function(o){var u=new FormData;le(i)&&u.append(n,JSON.stringify(i));var s="function"==typeof t.headers?t.headers(r,i):Object.assign({},t.headers,{"Upload-Length":r.size}),l=Object.assign({},t,{headers:s}),c=Ft(_(u),Yt(e,t.url),l);c.onload=function(e){return o(T(e,l.method))},c.onerror=function(e){return a(qt("error",e.status,m(e.response)||e.statusText,e.getAllResponseHeaders()))},c.ontimeout=Vt(a)},I=function(n){var r=Yt(e,p.url,v.serverId),i={headers:"function"==typeof t.headers?t.headers(v.serverId):Object.assign({},t.headers),method:"HEAD"},o=Ft(null,r,i);o.onload=function(e){return n(T(e,i.method))},o.onerror=function(e){return a(qt("error",e.status,m(e.response)||e.statusText,e.getAllResponseHeaders()))},o.ontimeout=Vt(a)},R=Math.floor(r.size/E),y=0;y<=R;y++){var O=y*E,D=r.slice(O,O+E,"application/offset+octet-stream");f[y]={index:y,size:D.size,offset:O,data:D,file:r,progress:0,retries:be(h),status:zt.QUEUED,error:null,request:null,timeout:null}}var S=function(){return o(v.serverId)},A=function(e){return e.status===zt.QUEUED||e.status===zt.ERROR},w=function(t){if(!v.aborted)if(t=t||f.find(A)){t.status=zt.PROCESSING,t.progress=null;var n=p.ondata||function(e){return e},i=p.onerror||function(e){return null},o=Yt(e,p.url,v.serverId),u="function"==typeof p.headers?p.headers(t):Object.assign({},p.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),l=t.request=Ft(n(t.data),o,Object.assign({},p,{headers:u}));l.onload=function(){t.status=zt.COMPLETE,t.request=null,L()},l.onprogress=function(e,n,r){t.progress=e?n:null,M()},l.onerror=function(e){t.status=zt.ERROR,t.request=null,t.error=i(e.response)||e.statusText,b(t)||a(qt("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},l.ontimeout=function(e){t.status=zt.ERROR,t.request=null,b(t)||Vt(a)(e)},l.onabort=function(){t.status=zt.QUEUED,t.request=null,s()}}else f.every((function(e){return e.status===zt.COMPLETE}))&&S()},b=function(e){return 0!==e.retries.length&&(e.status=zt.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout((function(){w(e)}),e.retries.shift()),!0)},M=function(){var e=f.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return u(!1,0,0);var t=f.reduce((function(e,t){return e+t.size}),0);u(!0,e,t)},L=function(){f.filter((function(e){return e.status===zt.PROCESSING})).length>=1||w()},P=function(){f.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))};return v.serverId?I((function(e){v.aborted||(f.filter((function(t){return t.offset<e})).forEach((function(e){e.status=zt.COMPLETE,e.progress=e.size})),L())})):g((function(e){v.aborted||(l(e),v.serverId=e,L())})),{abort:function(){v.aborted=!0,P()}}},Wt=function(e,t,n,r){return function(i,o,a,u,s,l,c){if(i){var f=r.chunkUploads,d=f&&i.size>r.chunkSize,p=f&&(d||r.chunkForce);if(i instanceof Blob&&p)return Ht(e,t,n,i,o,a,u,s,l,c,r);var E=t.ondata||function(e){return e},h=t.onload||function(e){return e},v=t.onerror||function(e){return null},_="function"==typeof t.headers?t.headers(i,o)||{}:Object.assign({},t.headers),T=Object.assign({},t,{headers:_}),m=new FormData;le(o)&&m.append(n,JSON.stringify(o)),(i instanceof Blob?[{name:null,file:i}]:i).forEach((function(e){m.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var g=Ft(E(m),Yt(e,t.url),T);return g.onload=function(e){a(qt("load",e.status,h(e.response),e.getAllResponseHeaders()))},g.onerror=function(e){u(qt("error",e.status,v(e.response)||e.statusText,e.getAllResponseHeaders()))},g.ontimeout=Vt(u),g.onprogress=s,g.onabort=l,g}}},Xt=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,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return t.apply(void 0,[n].concat(i,[r]))}:t&&K(t.url)?Wt(e,t,n,r):null},Qt=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||!K(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(i,o,a){var u=Ft(i,e+t.url,t);return u.onload=function(e){o(qt("load",e.status,n(e.response),e.getAllResponseHeaders()))},u.onerror=function(e){a(qt("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=Vt(a),u}},Zt=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)},Kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=null,o=Date.now();return t>0&&function a(){var u=Date.now()-o,s=Zt(n,r);u+s>t&&(s=u+s-t);var l=u/t;l>=1||document.hidden?e(1):(e(l),i=setTimeout(a,s))}(),{clear:function(){clearTimeout(i)}}},$t=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,i=function(t,i){var o=function(){0!==n.duration&&null!==n.progress&&l.fire("progress",l.getProgress())},a=function(){n.complete=!0,l.fire("load-perceived",n.response.body)};l.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=Kt((function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,o(),n.response&&1===n.perceivedProgress&&!n.complete&&a()}),r?Zt(750,1500):0),n.request=e(t,i,(function(e){n.response=le(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,l.fire("load",n.response.body),(!r||r&&1===n.perceivedProgress)&&a()}),(function(e){n.perceivedPerformanceUpdater.clear(),l.fire("error",le(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,r){n.duration=Date.now()-n.timestamp,n.progress=e?t/r:null,o()}),(function(){n.perceivedPerformanceUpdater.clear(),l.fire("abort",n.response?n.response.body:null)}),(function(e){l.fire("transfer",e)}))},o=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},a=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},u=r?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},s=r?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},l=Object.assign({}
2,Ge(),{process:i,abort:o,getProgress:u,getDuration:s,reset:a});return l},Jt=function(e){return e.substr(0,e.lastIndexOf("."))||e},en=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||Tt(e)?t[0]=e.name||yt():Tt(e)?(t[1]=e.length,t[2]=wt(e)):K(e)&&(t[0]=mt(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},tn=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},nn=function e(t){if(!le(t))return t;var n=j(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n[r]=i&&le(i)?e(i):i}return n},rn=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=Oe(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?qe.PROCESSING_COMPLETE:qe.INIT,activeLoader:null,activeProcessor:null},a=null,u={},s=function(e){return i.status=e},l=function(e){if(!i.released&&!i.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];y.fire.apply(y,[e].concat(n))}},c=function(){return gt(i.file.name)},f=function(){return i.file.type},d=function(){return i.file.size},p=function(){return i.file},E=function(t,n,r){i.source=t,y.fireSync("init"),i.file?y.fireSync("load-skip"):(i.file=en(t),n.on("init",(function(){l("load-init")})),n.on("meta",(function(t){i.file.size=t.size,i.file.filename=t.filename,t.source&&(e=Ve.LIMBO,i.serverFileReference=t.source,i.status=qe.PROCESSING_COMPLETE),l("load-meta")})),n.on("progress",(function(e){s(qe.LOADING),l("load-progress",e)})),n.on("error",(function(e){s(qe.LOAD_ERROR),l("load-request-error",e)})),n.on("abort",(function(){s(qe.INIT),l("load-abort")})),n.on("load",(function(t){i.activeLoader=null;var n=function(t){i.file=tn(t)?t:i.file,e===Ve.LIMBO&&i.serverFileReference?s(qe.PROCESSING_COMPLETE):s(qe.IDLE),l("load")},o=function(e){i.file=t,l("load-meta"),s(qe.LOAD_ERROR),l("load-file-error",e)};i.serverFileReference?n(t):r(t,n,o)})),n.setSource(t),i.activeLoader=n,n.load())},h=function(){i.activeLoader&&i.activeLoader.load()},v=function(){i.activeLoader?i.activeLoader.abort():(s(qe.INIT),l("load-abort"))},_=function e(t,n){if(i.processingAborted)i.processingAborted=!1;else if(s(qe.PROCESSING),a=null,i.file instanceof Blob){t.on("load",(function(e){i.transferId=null,i.serverFileReference=e})),t.on("transfer",(function(e){i.transferId=e})),t.on("load-perceived",(function(e){i.activeProcessor=null,i.transferId=null,i.serverFileReference=e,s(qe.PROCESSING_COMPLETE),l("process-complete",e)})),t.on("start",(function(){l("process-start")})),t.on("error",(function(e){i.activeProcessor=null,s(qe.PROCESSING_ERROR),l("process-error",e)})),t.on("abort",(function(e){i.activeProcessor=null,i.serverFileReference=e,s(qe.IDLE),l("process-abort"),a&&a()})),t.on("progress",(function(e){l("process-progress",e)}));var r=function(e){i.archived||t.process(e,Object.assign({},u))},o=console.error;n(i.file,r,o),i.activeProcessor=t}else y.on("load",(function(){e(t,n)}))},T=function(){i.processingAborted=!1,s(qe.PROCESSING_QUEUED)},m=function(){return new Promise((function(e){if(!i.activeProcessor)return i.processingAborted=!0,s(qe.IDLE),l("process-abort"),void e();a=function(){e()},i.activeProcessor.abort()}))},g=function(e,t){return new Promise((function(n,r){var o=null!==i.serverFileReference?i.serverFileReference:i.transferId;null!==o?(e(o,(function(){i.serverFileReference=null,i.transferId=null,n()}),(function(e){t?(s(qe.PROCESSING_REVERT_ERROR),l("process-revert-error"),r(e)):n()})),s(qe.IDLE),l("process-revert")):n()}))},I=function(e,t,n){var r=e.split("."),i=r[0],o=r.pop(),a=u;r.forEach((function(e){return a=a[e]})),JSON.stringify(a[o])!==JSON.stringify(t)&&(a[o]=t,l("metadata-update",{key:i,value:u[i],silent:n}))},R=function(e){return nn(e?u[e]:u)},y=Object.assign({id:{get:function(){return r}},origin:{get:function(){return e},set:function(t){return e=t}},serverId:{get:function(){return i.serverFileReference}},transferId:{get:function(){return i.transferId}},status:{get:function(){return i.status}},filename:{get:function(){return i.file.name}},filenameWithoutExtension:{get:function(){return Jt(i.file.name)}},fileExtension:{get:c},fileType:{get:f},fileSize:{get:d},file:{get:p},relativePath:{get:function(){return i.file._relativePath}},source:{get:function(){return i.source}},getMetadata:R,setMetadata:function(e,t,n){if(le(e)){var r=e;return Object.keys(r).forEach((function(e){I(e,r[e],t)})),e}return I(e,t,n),t},extend:function(e,t){return O[e]=t},abortLoad:v,retryLoad:h,requestProcessing:T,abortProcessing:m,load:E,process:_,revert:g},Ge(),{freeze:function(){return i.frozen=!0},release:function(){return i.released=!0},released:{get:function(){return i.released}},archive:function(){return i.archived=!0},archived:{get:function(){return i.archived}}}),O=o(y);return O},on=function(e,t){return z(t)?0:K(t)?e.findIndex((function(e){return e.id===t})):-1},an=function(e,t){var n=on(e,t);if(!(n<0))return e[n]||null},un=function(e,t,n,r,i,o){var a=Ft(null,e,{method:"GET",responseType:"blob"});return a.onload=function(n){var r=n.getAllResponseHeaders(),i=xt(r).name||mt(e);t(qt("load",n.status,Ot(n.response,i),r))},a.onerror=function(e){n(qt("error",e.status,e.statusText,e.getAllResponseHeaders()))}
2,a.onheaders=function(e){o(qt("headers",e.status,null,e.getAllResponseHeaders()))},a.ontimeout=Vt(n),a.onprogress=r,a.onabort=i,a},sn=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},ln=function(e){return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&sn(location.href)!==sn(e)},cn=function(e){return function(){return re(e)?e.apply(void 0,arguments):e}},fn=function(e){return!tn(e.file)},dn=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:nt(t.items)})}),0)},pn=function(e){for(var t=arguments.length,n=new 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))}))},En=function(e,t){e.items.sort((function(e,n){return t(Be(e),Be(n))}))},hn=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.query,i=n.success,o=void 0===i?function(){}:i,a=n.failure,u=void 0===a?function(){}:a,s=we(n,["query","success","failure"]),l=et(e.items,r);l?t(l,o,u,s||{}):u({error:qt("error",0,"Item not found"),file:null})}},vn=function(e,t,n){return{ABORT_ALL:function(){nt(n.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var r=t.value,i=(void 0===r?[]:r).map((function(e){return{source:e.source?e.source:e,options:e.options}})),o=nt(n.items);o.forEach((function(t){i.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})}
2)),o=nt(n.items),i.forEach((function(t,n){o.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:ye.NONE,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(r){var i=r.id,o=r.action,a=r.change;a.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var r=an(n.items,i);if(t("IS_ASYNC")){r.origin===Ve.LOCAL&&e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.source});var u=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:i})}),32)},s=function(e){r.revert(Qt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(e?u:function(){}).catch((function(){}))},l=function(e){r.abortProcessing().then(e?u:function(){})};return r.status===qe.PROCESSING_COMPLETE?s(n.options.instantUpload):r.status===qe.PROCESSING?l(n.options.instantUpload):void(n.options.instantUpload&&u())}We("SHOULD_PREPARE_OUTPUT",!1,{item:r,query:t,action:o,change:a}).then((function(n){var o=t("GET_BEFORE_PREPARE_FILE");o&&(n=o(r,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:i,item:r,success:function(t){e("DID_PREPARE_OUTPUT",{id:i,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,r=e.index,i=et(n.items,t);if(i){var o=n.items.indexOf(i);o!==(r=ht(r,0,n.items.length-1))&&n.items.splice(r,0,n.items.splice(o,1)[0])}},SORT:function(r){var i=r.compare;En(n,i),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var r=n.items,i=n.index,o=n.interactionMethod,a=n.success,u=void 0===a?function(){}:a,s=n.failure,l=void 0===s?function(){}:s,c=i;if(-1===i||void 0===i){var f=t("GET_ITEM_INSERT_LOCATION"),d=t("GET_TOTAL_ITEMS");c="before"===f?0:d}var p=t("GET_IGNORED_FILES"),E=function(e){return tn(e)?!p.includes(e.name.toLowerCase()):!z(e)},h=r.filter(E).map((function(t){return new Promise((function(n,r){e("ADD_ITEM",{interactionMethod:o,source:t.source||t,success:n,failure:r,index:c++,options:t.options||{}})}))}));Promise.all(h).then(u).catch(l)},ADD_ITEM:function(r){var i=r.source,o=r.index,a=void 0===o?-1:o,u=r.interactionMethod,s=r.success,l=void 0===s?function(){}:s,c=r.failure,f=void 0===c?function(){}:c,d=r.options,p=void 0===d?{}:d;if(z(i))f({error:qt("error",0,"No source"),file:null});else if(!tn(i)||!n.options.ignoredFiles.includes(i.name.toLowerCase())){if(!Et(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var E=qt("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:i,error:E}),void f({error:E,file:null})}var h=nt(n.items)[0];if(h.status===qe.PROCESSING_COMPLETE||h.status===qe.PROCESSING_REVERT_ERROR){var v=t("GET_FORCE_REVERT");if(h.revert(Qt(n.options.server.url,n.options.server.revert),v).then((function(){v&&e("ADD_ITEM",{source:i,index:a,interactionMethod:u,success:l,failure:f,options:p})})).catch((function(){})),v)return}e("REMOVE_ITEM",{query:h.id})}var _="local"===p.type?Ve.LOCAL:"limbo"===p.type?Ve.LIMBO:Ve.INPUT,T=rn(_,_===Ve.INPUT?null:i,p.file);Object.keys(p.metadata||{}).forEach((function(e){T.setMetadata(e,p.metadata[e])})),Xe("DID_CREATE_ITEM",T,{query:t,dispatch:e});var m=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(a="before"===m?-1:n.items.length),_t(n.items,T,a),re(m)&&i&&En(n,m);var g=T.id;T.on("init",(function(){e("DID_INIT_ITEM",{id:g})})),T.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:g})})),T.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:g})})),T.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:g,progress:t})})),T.on("load-request-error",(function(t){var r=cn(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:g,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),void f({error:t,file:Be(T)});e("DID_THROW_ITEM_LOAD_ERROR",{id:g,error:t,status:{main:r,sub:n.options.labelTapToRetry}})})),T.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:g,error:t.status,status:t.status}),f({error:t.status,file:Be(T)})})),T.on("load-abort",(function(){e("REMOVE_ITEM",{query:g})})),T.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:g,item:T,data:{source:i,success:l}})}
2)),T.on("load",(function(){var r=function(r){r?(T.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:g,change:t})})),We("SHOULD_PREPARE_OUTPUT",!1,{item:T,query:t}).then((function(r){var o=t("GET_BEFORE_PREPARE_FILE");o&&(r=o(T,r));var a=function(){e("COMPLETE_LOAD_ITEM",{query:g,item:T,data:{source:i,success:l}}),dn(e,n)};r?e("REQUEST_PREPARE_OUTPUT",{query:g,item:T,success:function(t){e("DID_PREPARE_OUTPUT",{id:g,file:t}),a()}},!0):a()}))):e("REMOVE_ITEM",{query:g})};We("DID_LOAD_ITEM",T,{query:t,dispatch:e}).then((function(){pn(t("GET_BEFORE_ADD_FILE"),Be(T)).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})}))})),T.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:g})})),T.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:g,progress:t})})),T.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:g,error:t,status:{main:cn(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),T.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:g,error:t,status:{main:cn(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),T.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:g,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:g,value:t})})),T.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:g})})),T.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:a,interactionMethod:u}),dn(e,n);var I=n.options.server||{},R=I.url,y=I.load,O=I.restore,D=I.fetch;T.load(i,Ut(_===Ve.INPUT?K(i)&&ln(i)&&D?jt(R,D):un:_===Ve.LIMBO?jt(R,O):jt(R,y)),(function(e,n,r){We("LOAD_FILE",e,{query:t}).then(n).catch(r)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,r=e.success,i=e.failure,o=void 0===i?function(){}:i,a={error:qt("error",0,"Item not found"),file:null};if(n.archived)return o(a);We("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){We("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return o(a);r(e)}))}))},COMPLETE_LOAD_ITEM:function(r){var i=r.item,o=r.data,a=o.success,u=o.source,s=t("GET_ITEM_INSERT_LOCATION");if(re(s)&&u&&En(n,s),e("DID_LOAD_ITEM",{id:i.id,error:null,serverFileReference:i.origin===Ve.INPUT?null:u}),a(Be(i)),i.origin!==Ve.LOCAL)return i.origin===Ve.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:i.id,error:null,serverFileReference:u}),void e("DID_DEFINE_VALUE",{id:i.id,value:i.serverId||u})):void(t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:i.id}));e("DID_LOAD_LOCAL_ITEM",{id:i.id})},RETRY_ITEM_LOAD:hn(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:hn(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)})),REQUEST_ITEM_PROCESSING:hn(n,(function(r,i,o){if(r.status===qe.IDLE||r.status===qe.PROCESSING_ERROR)r.status!==qe.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:i,failure:o},!0));else{var a=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:o})},u=function(){return document.hidden?a():setTimeout(a,32)};r.status===qe.PROCESSING_COMPLETE||r.status===qe.PROCESSING_REVERT_ERROR?r.revert(Qt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(u).catch((function(){})):r.status===qe.PROCESSING&&r.abortProcessing().then(u)}})),PROCESS_ITEM:hn(n,(function(r,i,o){var a=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",qe.PROCESSING).length!==a){if(r.status!==qe.PROCESSING){var u=function t(){var r=n.processingQueue.shift();if(r){var i=r.id,o=r.success,a=r.failure,u=et(n.items,i);u&&!u.archived?e("PROCESS_ITEM",{query:i,success:o,failure:a},!0):t()}};r.onOnce("process-complete",(function(){i(Be(r)),u();var o=n.options.server;if(n.options.instantUpload&&r.origin===Ve.LOCAL&&re(o.remove)){var a=function(){};r.origin=Ve.LIMBO,n.options.server.remove(r.source,a,a)}t("GET_ITEMS_BY_STATUS",qe.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),r.onOnce("process-error",(function(e){o({error:e,file:Be(r)}),u()}));var s=n.options;r.process($t(Xt(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,i,o){We("PREPARE_OUTPUT",n,{query:t,item:r}).then((function(t){e("DID_PREPARE_OUTPUT",{id:r.id,file:t}),i(t)})).catch(o)}))}}else n.processingQueue.push({id:r.id,success:i,failure:o})})),RETRY_ITEM_PROCESSING:hn(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:hn(n,(function(n){pn(t("GET_BEFORE_REMOVE_FILE"),Be(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:hn(n,(function(e){e.release()})),REMOVE_ITEM:hn(n,(function(r,i,o,a){var u=function(){var t=r.id;an(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),dn(e,n),i(Be(r))},s=n.options.server;r.origin===Ve.LOCAL&&s&&re(s.remove)&&!1!==a.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),s.remove(r.source,(function(){return u()}
2),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:qt("error",0,t,null),status:{main:cn(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):((a.revert&&r.origin!==Ve.LOCAL&&null!==r.serverId||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Qt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),u())})),ABORT_ITEM_LOAD:hn(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:hn(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){n.options.instantUpload&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:hn(n,(function(r){if(n.options.instantUpload){var i=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:r})},o=t("GET_BEFORE_REMOVE_FILE");if(!o)return i(!0);var a=o(Be(r));return null==a?i(!0):"boolean"==typeof a?i(a):void("function"==typeof a.then&&a.then(i))}e("REVERT_ITEM_PROCESSING",{query:r})})),REVERT_ITEM_PROCESSING:hn(n,(function(r){r.revert(Qt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){(n.options.instantUpload||fn(r))&&e("REMOVE_ITEM",{query:r.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options,r=Object.keys(n),i=_n.filter((function(e){return r.includes(e)}));[].concat(be(i),be(Object.keys(n).filter((function(e){return!i.includes(e)})))).forEach((function(t){e("SET_"+me(t,"_").toUpperCase(),{value:n[t]})}))}}},_n=["server"],Tn=function(e){return e},mn=function(e){return document.createElement(e)},gn=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},In=function(e,t,n,r){var i=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},Rn=function(e,t,n,r,i,o){var a=In(e,t,n,i),u=In(e,t,n,r);return["M",a.x,a.y,"A",n,n,0,o,0,u.x,u.y].join(" ")},yn=function(e,t,n,r,i){var o=1;return i>r&&i-r<=.5&&(o=0),r>i&&r-i>=.5&&(o=0),Rn(e,t,n,360*Math.min(.9999,r),360*Math.min(.9999,i),o)},On=function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=c("svg");t.ref.path=c("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},Dn=function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var r=parseInt(a(t.ref.path,"stroke-width"),10),i=.5*t.rect.element.width,o=0,u=0;n.spin?(o=0,u=.5):(o=0,u=n.progress);var s=yn(i,i,i-r,o,u);a(t.ref.path,"d",s),a(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},Sn=F({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:On,write:Dn,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),An=function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+"<span>"+n.label+"</span>",n.isDisabled=!1},wn=function(e){var t=e.root,n=e.props,r=n.isDisabled,i=t.query("GET_DISABLED")||0===n.opacity;i&&!r?(n.isDisabled=!0,a(t.element,"disabled","disabled")):!i&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))},bn=F({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:An,write:wn}),Mn=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]:{},i=r.labelBytes,o=void 0===i?"bytes":i,a=r.labelKilobytes,u=void 0===a?"KB":a,s=r.labelMegabytes,l=void 0===s?"MB":s,c=r.labelGigabytes,f=void 0===c?"GB":c,d=n,p=n*n,E=n*n*n;return(e=Math.round(Math.abs(e)))<d?e+" "+o:e<p?Math.floor(e/d)+" "+u:e<E?Ln(e/p,1,t)+" "+l:Ln(e/E,2,t)+" "+f},Ln=function(e,t,n){return e.toFixed(t).split(".").filter((function(e){return"0"!==e})).join(n)},Pn=function(e){var t=e.root,n=e.props,r=mn("span");r.className="filepond--file-info-main",a(r,"aria-hidden","true"),t.appendChild(r),t.ref.fileName=r;var i=mn("span");i.className="filepond--file-info-sub",t.appendChild(i),t.ref.fileSize=i,gn(i,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),gn(r,Tn(t.query("GET_ITEM_NAME",n.id)))},Nn=function(e){var t=e.root,n=e.props;gn(t.ref.fileSize,Mn(t.query("GET_ITEM_SIZE",n.id),".",t.query("GET_FILE_SIZE_BASE"),t.query("GET_FILE_SIZE_LABELS",t.query))),gn(t.ref.fileName,Tn(t.query("GET_ITEM_NAME",n.id)))},Cn=function(e){var t=e.root,n=e.props;te(t.query("GET_ITEM_SIZE",n.id))?Nn({root:t,props:n}):gn(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Gn=F({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:V({DID_LOAD_ITEM:Nn,DID_UPDATE_ITEM_META:Nn,DID_THROW_ITEM_LOAD_ERROR:Cn,DID_THROW_ITEM_INVALID:Cn}),didCreateView:function(e){Xe("CREATE_VIEW",Object.assign({},e,{view:e}))},create:Pn,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),xn=function(e){return Math.round(100*e)},Un=function(e){var t=e.root,n=mn("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var r=mn("span");r.className="filepond--file-status-sub",t.appendChild(r),t.ref.sub=r,Bn({root:t,action:{progress:null}})},Bn=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")+" "+xn(n.progress)+"%";gn(t.ref.main,r),gn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Fn=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")+" "+xn(n.progress)+"%";gn(t.ref.main,r),gn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},qn=function(e){var t=e.root;gn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),gn(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Vn=function(e){var t=e.root;gn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),gn(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},kn=function(e){var t=e.root;gn(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),gn(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},Yn=function(e){var t=e.root;gn(t.ref.main,""),gn(t.ref.sub,"")},jn=function(e){var t=e.root,n=e.action;gn(t.ref.main,n.status.main),gn(t.ref.sub,n.status.sub)},zn=F({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:V({DID_LOAD_ITEM:Yn,DID_REVERT_ITEM_PROCESSING:Yn,DID_REQUEST_ITEM_PROCESSING:qn,DID_ABORT_ITEM_PROCESSING:Vn,DID_COMPLETE_ITEM_PROCESSING:kn,DID_UPDATE_ITEM_PROCESS_PROGRESS:Fn,DID_
2UPDATE_ITEM_LOAD_PROGRESS:Bn,DID_THROW_ITEM_LOAD_ERROR:jn,DID_THROW_ITEM_INVALID:jn,DID_THROW_ITEM_PROCESSING_ERROR:jn,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:jn,DID_THROW_ITEM_REMOVE_ERROR:jn}),didCreateView:function(e){Xe("CREATE_VIEW",Object.assign({},e,{view:e}))},create:Un,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),Hn={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"}},Wn=[];i(Hn,(function(e){Wn.push(e)}));var Xn,Qn=function(e){if("right"===tr(e))return 0;var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},Zn=function(e){return e.ref.buttonAbortItemLoad.rect.element.width},Kn=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},$n=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},Jn=function(e){return e.query("GET_STYLE_LOAD_INDICATOR_POSITION")},er=function(e){return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")},tr=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},nr={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:Jn},processProgressIndicator:{opacity:0,align:er},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},rr={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Qn},status:{translateX:Qn}},ir={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},or={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Qn},status:{translateX:Qn,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:Qn},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:tr},info:{translateX:Qn},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:tr},buttonRemoveItem:{opacity:1},info:{translateX:Qn},status:{opacity:1,translateX:Qn}},DID_LOAD_ITEM:rr,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Qn},status:{translateX:Qn}},DID_START_ITEM_PROCESSING:ir,DID_REQUEST_ITEM_PROCESSING:ir,DID_UPDATE_ITEM_PROCESS_PROGRESS:ir,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:Qn}},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:Qn},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:rr},ar=F({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}}}}),ur=function(e){var t,n=e.root,r=e.props,o=Object.keys(Hn).reduce((function(e,t){return e[t]=Object.assign({},Hn[t]),e}),{}),a=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?Wn.filter(t):Wn.concat();if(c&&u&&(o.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",o.RevertItemProcessing.icon="GET_ICON_REMOVE"),f&&!u){var E=or.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=$n,E.info.translateY=Kn,E.status.translateY=Kn,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){or[e].status.translateY=Kn})),or.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=Zn),d&&u){o.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var h=or.DID_COMPLETE_ITEM_PROCESSING;h.info.translateX=Qn,h.status.translateY=Kn,h.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(o.RemoveItem.disabled=!0),i(o,(function(e,t){var r=n.createChildView(bn,{label:n.query(t.label),icon:n.query(t.icon),opacity:0}
2);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:a})})),n.ref["button"+e]=r})),n.ref.processingCompleteIndicator=n.appendChildView(n.createChildView(ar)),n.ref.processingCompleteIndicator.element.dataset.align=n.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),n.ref.info=n.appendChildView(n.createChildView(Gn,{id:a})),n.ref.status=n.appendChildView(n.createChildView(zn,{id:a}));var v=n.appendChildView(n.createChildView(Sn,{opacity:0,align:n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));v.element.classList.add("filepond--load-indicator"),n.ref.loadProgressIndicator=v;var _=n.appendChildView(n.createChildView(Sn,{opacity:0,align:n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));_.element.classList.add("filepond--process-indicator"),n.ref.processProgressIndicator=_,n.ref.activeStyles=[]},sr=function(e){var t=e.root,n=e.actions,r=e.props;lr({root:t,actions:n,props:r});var o=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return or[e.type]}));if(o){t.ref.activeStyles=[];var a=or[o.type];i(nr,(function(e,n){var r=t.ref[e];i(n,(function(n,i){var o=a[e]&&void 0!==a[e][n]?a[e][n]:i;t.ref.activeStyles.push({control:r,key:n,value:o})}))}))}t.ref.activeStyles.forEach((function(e){var n=e.control,r=e.key,i=e.value;n[r]="function"==typeof i?i(t):i}))},lr=V({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}}),cr=F({create:ur,write:sr,didCreateView:function(e){Xe("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),fr=function(e){var t=e.root,n=e.props;t.ref.fileName=mn("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(cr,{id:n.id})),t.ref.data=!1},dr=function(e){var t=e.root,n=e.props;gn(t.ref.fileName,Tn(t.query("GET_ITEM_NAME",n.id)))},pr=F({create:fr,ignoreRect:!0,write:V({DID_LOAD_ITEM:dr}),didCreateView:function(e){Xe("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),Er={type:"spring",damping:.6,mass:7},hr=function(e){var t=e.root,n=e.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:Er},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:Er},styles:["translateY"]}}].forEach((function(e){vr(t,e,n.name)})),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},vr=function(e,t,n){var r=F({name:"panel-"+t.name+" filepond--"+n,mixins:t.mixins,ignoreRectUpdate:!0}),i=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(i)},_r=function(e){var t=e.root,n=e.props;if(null!==t.ref.scalable&&n.scalable===t.ref.scalable||(t.ref.scalable=!Q(n.scalable)||n.scalable,t.element.dataset.scalable=t.ref.scalable),n.height){var r=t.ref.top.rect.element,i=t.ref.bottom.rect.element,o=Math.max(r.height+i.height,n.height);t.ref.center.translateY=r.height,t.ref.center.scaleY=(o-r.height-i.height)/100,t.ref.bottom.translateY=o-i.height}},Tr=F({name:"panel",read:function(e){var t=e.root;return e.props.heightCurrent=t.ref.bottom.translateY},write:_r,create:hr,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}
vendor: 7,244 bytes, line 2
2),mr=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)}}},gr={type:"spring",stiffness:.75,damping:.45,mass:10},Ir="spring",Rr={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"},yr=function(e){var t=e.root,n=e.props;if(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(pr,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(Tr,{name:"item-panel"})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query("GET_ALLOW_REORDER")){t.element.dataset.dragState="idle";var r=function(e){if(e.isPrimary){var r=!1,i={x:e.pageX,y:e.pageY};n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var o=mr(t.query("GET_ACTIVE_ITEMS"));t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:o});var a=function(e){e.isPrimary&&(e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-i.x,y:e.pageY-i.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:o}))},u=function e(u){u.isPrimary&&(document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",e),n.dragOffset={x:u.pageX-i.x,y:u.pageY-i.y},t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:o}),r&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))};document.addEventListener("pointermove",a),document.addEventListener("pointerup",u)}};t.element.addEventListener("pointerdown",r)}},Or=V({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),Dr=V({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,i=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var o=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return Rr[e.type]}));o&&o.type!==r.currentState&&(r.currentState=o.type,t.element.dataset.filepondItemState=Rr[r.currentState]||"");var a=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");a?i||(t.height=t.rect.element.width*a):(Or({root:t,actions:n,props:r}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),i&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),Sr=F({create:yr,write:Dr,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:Ir,scaleY:Ir,translateX:gr,translateY:gr,opacity:{type:"tween",duration:150}}}}),Ar=function(e,t){return Math.max(1,Math.floor((e+1)/t))},wr=function(e,t,n){if(n){var r=e.rect.element.width,i=t.length,o=null;if(0===i||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=Ar(r,s);if(1===l){for(var c=0;c<i;c++){var f=t[c],d=f.rect.outer.top+.5*f.rect.element.height;if(n.top<d)return c}return i}for(var p=a.marginTop+a.marginBottom,E=a.height+p,h=0;h<i;h++){var v=h%l*s,_=Math.floor(h/l)*E,T=_-a.marginTop,m=v+s,g=_+E+a.marginBottom;if(n.top<g&&n.top>T){if(n.left<m)return h;o=h!==i-1?h:null}}return null!==o?o:i}},br={height:0,width:0,get getHeight(){return this.height},set setHeight(e){0!==this.height&&0!==e||(this.height=e)},get getWidth(){return this.width},set setWidth(e){0!==this.width&&0!==e||(this.width=e)},setDimensions:function(e,t){0!==this.height&&0!==e||(this.height=e),0!==this.width&&0!==t||(this.width=t)}},Mr=function(e){var t=e.root;a(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},Lr=function(e){var t=e.root,n=e.action,r=n.id,i=n.index,o=n.interactionMethod;t.ref.addIndex=i;var a=Date.now(),u=a,s=1;if(o!==ye.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(Sr,{spawnDate:u,id:r,opacity:s,interactionMethod:o}),i)},Pr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=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&&Nr(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},Nr=function(e,t,n,r,i){e.interactionMethod===ye.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===ye.DROP?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*i,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===ye.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===ye.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},Cr=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)},Gr=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},xr=function(e){return e.rect.element.width+.5*e.rect.element.marginLeft+.5*e.rect.element.marginRight},Ur=function(e){var t=e.root,n=e.action,r=n.id,i=n.dragState,o=t.query("GET_ITEM",{id:r}),a=t.childViews.find((function(e){return e.id===r})),u=t.childViews.length,s=i.getItemIndex(o);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=Gr(a),f=xr(a),d=Math.floor(t.rect.outer.width/f);d>u&&(d=u);var p=Math.floor(u/d+1);br.setHeight=c*p,br.setWidth=f*d;var E={y:Math.floor(l.y/c),x:Math.floor(l.x/f),getGridIndex:function(){return l.y>br.getHeight||l.y<0||l.x>br.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}))})),i=r.findIndex((function(e){return e===a})),o=Gr(a),u=r.length,s=u,c=0,f=0,d=0;d<u;d++)if(c=(f=c)+Gr(r[d]),l.y<c){if(i>
2d){if(l.y<f+o){s=d;break}continue}s=d;break}return s}},h=d>1?E.getGridIndex():E.getColIndex();t.dispatch("MOVE_ITEM",{query:a,index:h});var v=i.getIndex();if(void 0===v||v!==h){if(i.setIndex(h),void 0===v)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:s,target:h})}}},Br=V({DID_ADD_ITEM:Lr,DID_REMOVE_ITEM:Cr,DID_DRAG_ITEM:Ur}),Fr=function(e){var t=e.root,n=e.props,r=e.actions,i=e.shouldOptimize;Br({root:t,props:n,actions:r});var o=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=o?wr(t,s,o):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,h=E.marginTop+E.marginBottom,v=E.marginLeft+E.marginRight,_=E.width+v,T=E.height+h,m=Ar(a,_);if(1===m){var g=0,I=0;s.forEach((function(e,t){if(l){var n=t-l;I=-2===n?.25*-h:-1===n?.75*-h:0===n?.75*h:1===n?.25*h:0}i&&(e.translateX=null,e.translateY=null),e.markedForRemoval||Pr(e,0,g+I);var r=(e.rect.element.height+h)*(e.markedForRemoval?e.opacity:1);g+=r}))}else{var R=0,y=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%m,o=Math.floor(n/m),a=r*_,u=o*T,s=Math.sign(a-R),E=Math.sign(u-y);R=a,y=u,e.markedForRemoval||(i&&(e.translateX=null,e.translateY=null),Pr(e,a,u,s,E))}))}}},qr=function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},Vr=F({create:Mr,write:Fr,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:qr,mixins:{apis:["dragCoordinates"]}}),kr=function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Vr)),n.dragCoordinates=null,n.overflowing=!1},Yr=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)})},jr=V({DID_DRAG:Yr,DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),zr=function(e){var t=e.root,n=e.props,r=e.actions;if(jr({root:t,props:n,actions:r}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var i=Math.round(n.overflow);i!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=i)}},Hr=F({create:kr,write:zr,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Wr=function(e,t,n){n?a(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):e.removeAttribute(t)},Xr=function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=mn("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},Qr=function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,a(t.element,"name",t.query("GET_NAME")),a(t.element,"aria-controls","filepond--assistant-"+n.id),a(t.element,"aria-labelledby","filepond--drop-label-"+n.id),Zr({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),Kr({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),$r({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),Jr({root:t}),ei({root:t,action:{value:t.query("GET_REQUIRED")}
2}),ti({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),Xr(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},Zr=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Wr(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},Kr=function(e){var t=e.root,n=e.action;Wr(t.element,"multiple",n.value)},$r=function(e){var t=e.root,n=e.action;Wr(t.element,"webkitdirectory",n.value)},Jr=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE"),i=n||!r;Wr(t.element,"disabled",i)},ei=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&Wr(t.element,"required",!0):Wr(t.element,"required",!1)},ti=function(e){var t=e.root,n=e.action;Wr(t.element,"capture",!!n.value,!0===n.value?"":n.value)},ni=function(e){var t=e.root,n=t.element;t.query("GET_TOTAL_ITEMS")>0?(Wr(n,"required",!1),Wr(n,"name",!1)):(Wr(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&Wr(n,"required",!0))},ri=function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},ii=F({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Qr,destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:V({DID_LOAD_ITEM:ni,DID_REMOVE_ITEM:ni,DID_THROW_ITEM_INVALID:ri,DID_SET_DISABLED:Jr,DID_SET_ALLOW_BROWSE:Jr,DID_SET_ALLOW_DIRECTORIES_ONLY:$r,DID_SET_ALLOW_MULTIPLE:Kr,DID_SET_ACCEPTED_FILE_TYPES:Zr,DID_SET_CAPTURE_METHOD:ti,DID_SET_REQUIRED:ei})}),oi={ENTER:13,SPACE:32},ai=function(e){var t=e.root,n=e.props,r=mn("label");a(r,"for","filepond--browser-"+n.id),a(r,"id","filepond--drop-label-"+n.id),a(r,"aria-hidden","true"),t.ref.handleKeyDown=function(e){(e.keyCode===oi.ENTER||e.keyCode===oi.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),ui(r,n.caption),t.appendChild(r),t.ref.label=r},ui=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&a(n,"tabindex","0"),t},si=F({name:"drop-label",ignoreRect:!0,create:ai,destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:V({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;ui(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),li=F({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}}}}),ci=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(li,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))},fi=function(e){var t=e.root,n=e.action;t.ref.blob?(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):ci({root:t})},di=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)},pi=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)},Ei=function(e){var t=e.root,n=e.props,r=e.actions;hi({root:t,props:n,actions:r});var i=t.ref.blob;0===r.length&&i&&0===i.opacity&&(t.removeChildView(i),t.ref.blob=null)},hi=V({DID_DRAG:fi,DID_DROP:pi,DID_END_DRAG:di}),vi=F({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:Ei}),_i=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},Ti=function(e){return e.root.ref.fields={}},mi=function(e,t){return e.ref.fields[t]},gi=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Ii=function(e){var t=e.root;return gi(t)},Ri=function(e){var t=e.root,n=e.action,r=!(t.query("GET_ITEM",n.id).origin===Ve.LOCAL)&&t.query("SHOULD_UPDATE_FILE_INPUT"),i=mn("input");i.type=r?"file":"hidden",i.name=t.query("GET_NAME"),i.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=i,gi(t)},yi=function(e){var t=e.root,n=e.action,r=mi(t,n.id);if(r&&(null!==n.serverFileReference&&(r.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var i=t.query("GET_ITEM",n.id);_i(r,[i.file])}},Oi=function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=mi(t,n.id);e&&_i(e,[n.file])}),0)},Di=function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},Si=function(e){var t=e.root,n=e.action,r=mi(t,n.id);r&&(r.parentNode&&r.parentNode.removeChild(r),delete t.ref.fields[n.id])},Ai=function(e){var t=e.root,n=e.action,r=mi(t,n.id);r&&(null===n.value?r.removeAttribute("value"):r.value=n.value,gi(t))},wi=V({DID_SET_DISABLED:Di,DID_ADD_ITEM:Ri,DID_LOAD_ITEM:yi,DID_REMOVE_ITEM:Si,DID_DEFINE_VALUE:Ai,DID_PREPARE_OUTPUT:Oi,DID_REORDER_ITEMS:Ii,DID_SORT_ITEMS:Ii}),bi=F({tag:"fieldset",name:"data",create:Ti,write:wi,ignoreRect:!0}),Mi=function(e){return"getRootNode"in e?e.getRootNode():document},Li=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Pi=["css","csv","html","txt"],Ni={zip:"zip|compressed",epub:"application/epub+zip"},Ci=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Li.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):Pi.includes(e)?"text/"+e:Ni[e]||""},Gi=function(e){return new Promise((function(t,n){var r=zi(e);if(r.length&&!xi(e))return t(r);Ui(e).then(t)}))},xi=function(e){return!!e.files&&e.files.length>0},Ui=function(e){return new Promise((function(t,n){var r=(e.items?Array.from(e.items):[]).filter((function(e){return Bi(e)})).map((function(e){return Fi(e)}));r.length?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):t(e.files?Array.from(e.files):[])}))},Bi=function(e){if(Yi(e)){var t=ji(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},Fi=function(e){return new Promise((function(t,n){ki(e)?qi(ji(e)).then(t).cat
2ch(n):t([e.getAsFile()])}))},qi=function(e){return new Promise((function(t,n){var r=[],i=0,o=0,a=function(){0===o&&0===i&&t(r)},u=function e(t){i++;var u=t.createReader(),s=function t(){u.readEntries((function(n){if(0===n.length)return i--,void a();n.forEach((function(t){t.isDirectory?e(t):(o++,t.file((function(e){var n=Vi(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),o--,a()})))})),t()}),n)};s()};u(e)}))},Vi=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,r=Ci(gt(e.name));return r.length?((e=e.slice(0,e.size,r)).name=n,e.lastModifiedDate=t,e):e},ki=function(e){return Yi(e)&&(ji(e)||{}).isDirectory},Yi=function(e){return"webkitGetAsEntry"in e},ji=function(e){return e.webkitGetAsEntry()},zi=function(e){var t=[];try{if((t=Wi(e)).length)return t;t=Hi(e)}catch(e){}return t},Hi=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},Wi=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[]},Xi=[],Qi=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Zi=function(e,t,n){var r=Ki(t),i={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return i.destroy=r.addListener(i),i},Ki=function(e){var t=Xi.find((function(t){return t.element===e}));if(t)return t;var n=$i(e);return Xi.push(n),n},$i=function(e){var t=[],n={dragenter:ro,dragover:io,dragleave:ao,drop:oo},r={};i(n,(function(n,i){r[n]=i(e,t),e.addEventListener(n,r[n],!1)}));var o={element:e,addListener:function(a){return t.push(a),function(){t.splice(t.indexOf(a),1),0===t.length&&(Xi.splice(Xi.indexOf(o),1),i(n,(function(t){e.removeEventListener(t,r[t],!1)})))}}};return o},Ji=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)},eo=function(e,t){var n=Mi(t),r=Ji(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)},to=null,no=function(e,t){try{e.dropEffect=t}catch(e){}},ro=function(e,t){return function(e){e.preventDefault(),to=e.target,t.forEach((function(t){var n=t.element,r=t.onenter;eo(e,n)&&(t.state="enter",r(Qi(e)))}))}},io=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Gi(n).then((function(r){var i=!1;t.some((function(t){var o=t.filterElement,a=t.element,u=t.onenter,s=t.onexit,l=t.ondrag,c=t.allowdrop;no(n,"copy");var f=c(r);if(f)if(eo(e,a)){if(i=!0,null===t.state)return t.state="enter",void u(Qi(e));if(t.state="over",o&&!f)return void no(n,"none");l(Qi(e))}else o&&!i&&no(n,"none"),t.state&&(t.state=null,s(Qi(e)));else no(n,"none")}))}))}},oo=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Gi(n).then((function(n){t.forEach((function(t){var r=t.filterElement,i=t.element,o=t.ondrop,a=t.onexit,u=t.allowdrop;if(t.state=null,!r||eo(e,i))return u(n)?void o(Qi(e),n):a(Qi(e))}))}))}},ao=function(e,t){return function(e){to===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(Qi(e))}))}},uo=function(e,t,n){e.classList.add("filepond--hopper");var r=n.catchesDropsOnPage,i=n.requiresDropOnElement,o=n.filterItems,a=void 0===o?function(e){return e}:o,u=Zi(e,r?document.documentElement:e,i),s="",l="";u.allowdrop=function(e){return t(a(e))},u.ondrop=function(e,n){var r=a(n);t(r)?(l="drag-drop",c.onload(r,e)):c.ondragend(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},so=!1,lo=[],co=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){for(var n=!1,r=t;r!==document.body;){if(r.classList.contains("filepond--root")){n=!0;break}r=r.parentNode}if(!n)return}Gi(e.clipboardData).then((function(e){e.length&&lo.forEach((function(t){return t(e)}))}))},fo=function(e){lo.includes(e)||(lo.push(e),so||(so=!0,document.addEventListener("paste",co)))},po=function(e){Ne(lo,lo.indexOf(e)),0===lo.length&&(document.removeEventListener("paste",co),so=!1)},Eo=function(){var e=function(e){t.onload(e)},t={destroy:function(){po(e)},onload:function(){}};return fo(e),t},ho=function(e){var t=e.root,n=e.props;
2t.element.id="filepond--assistant-"+n.id,a(t.element,"role","status"),a(t.element,"aria-live","polite"),a(t.element,"aria-relevant","additions")},vo=null,_o=null,To=[],mo=function(e,t){e.element.textContent=t},go=function(e){e.element.textContent=""},Io=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");mo(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(_o),_o=setTimeout((function(){go(e)}),1500)},Ro=function(e){return e.element.parentNode.contains(document.activeElement)},yo=function(e){var t=e.root,n=e.action;if(Ro(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);To.push(r.filename),clearTimeout(vo),vo=setTimeout((function(){Io(t,To.join(", "),t.query("GET_LABEL_FILE_ADDED")),To.length=0}),750)}},Oo=function(e){var t=e.root,n=e.action;if(Ro(t)){var r=n.item;Io(t,r.filename,t.query("GET_LABEL_FILE_REMOVED"))}},Do=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename,i=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");mo(t,r+" "+i)},So=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename,i=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");mo(t,r+" "+i)},Ao=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename;mo(t,n.status.main+" "+r+" "+n.status.sub)},wo=F({create:ho,ignoreRect:!0,ignoreRectUpdate:!0,write:V({DID_LOAD_ITEM:yo,DID_REMOVE_ITEM:Oo,DID_COMPLETE_ITEM_PROCESSING:Do,DID_ABORT_ITEM_PROCESSING:So,DID_REVERT_ITEM_PROCESSING:So,DID_THROW_ITEM_REMOVE_ERROR:Ao,DID_THROW_ITEM_LOAD_ERROR:Ao,DID_THROW_ITEM_INVALID:Ao,DID_THROW_ITEM_PROCESSING_ERROR:Ao}),tag:"span",name:"assistant"}),bo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},Mo=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(),i=null;return function(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];clearTimeout(i);var s=Date.now()-r,l=function(){r=Date.now(),e.apply(void 0,a)};s<t?n||(i=setTimeout(l,t-s)):l()}},Lo=1e6,Po=function(e){return e.preventDefault()},No=function(e){var t=e.root,n=e.props,r=t.query("GET_ID");r&&(t.element.id=r);var i=t.query("GET_CLASS_NAME");i&&i.split(" ").filter((function(e){return e.length})).forEach((function(e){t.element.classList.add(e)})),t.ref.label=t.appendChildView(t.createChildView(si,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(Hr,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(Tr,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(wo,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(bi,Object.assign({},n))),t.ref.measure=mn("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!z(e.value)})).map((function(e){var n=e.name,r=e.value;t.element.dataset[n]=r})),t.ref.widthPrevious=null,t.ref.widthUpdated=Mo((function(){t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")}),250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var o=window.matchMedia("(pointer: fine) and (hover: hover)").matches,a="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&a&&!o&&(t.element.addEventListener("touchmove",Po,{passive:!1}),t.element.addEventListener("gesturestart",Po));var u=t.query("GET_CREDITS");if(2===u.length){var s=document.createElement("a");s.className="filepond--credits",s.setAttribute("aria-hidden","true"),s.href=u[0],s.tabindex=-1,s.target="_blank",s.rel="noopener noreferrer",s.textContent=u[1],t.element.appendChild(s),t.ref.credits=s}},Co=function(e){var t=e.root,n=e.props,r=e.actions;if(Yo({root:t,props:n,actions:r}),r.filter((function(e){return/^DID_SET_STYLE_/.test(e.type)})).filter((function(e){return!z(e.data.value)})).map((function(e){var n=e.type,r=e.data,i=bo(n.substr(8).toLowerCase(),"_");t.element.dataset[i]=r.value,t.invalidateLayout()}
vendor: 1,072 bytes, line 2
2)),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var i=t.ref.bounds;i||(i=t.ref.bounds=Uo(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var o=t.ref,a=o.hopper,u=o.label,s=o.list,l=o.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")||Lo:1),E=r.find((function(e){return"DID_ADD_ITEM"===e.type}));if(p&&E){var h=E.data.interactionMethod;u.opacity=0,f?u.translateY=-40:h===ye.API?u.translateX=40:h===ye.BROWSE?u.translateY=40:u.translateY=30}else p||(u.opacity=1,u.translateX=0,u.translateY=0);var v=Go(t),_=xo(t),T=u.rect.element.height,m=!f||p?0:T,g=p?s.rect.element.marginTop:0,I=0===d?0:s.rect.element.marginBottom,R=m+g+_.visual+I,y=m+g+_.bounds+I;if(s.translateY=Math.max(0,m-s.rect.element.marginTop)-v.top,c){var O=t.rect.element.width,D=O*c;c!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=c,t.ref.updateHistory=[]);var S=t.ref.updateHistory;
2S.push(O);var A=2;if(S.length>2*A)for(var w=S.length,b=w-10,M=0,L=w;L>=b;L--)if(S[L]===S[L-2]&&M++,M>=A)return;l.scalable=!1,l.height=D;var P=D-m-(I-v.bottom)-(p?g:0);_.visual>P?s.overflow=P:s.overflow=null,t.height=D}else if(i.fixedHeight){l.scalable=!1;var N=i.fixedHeight-m-(I-v.bottom)-(p?g:0);_.visual>N?s.overflow=N:s.overflow=null}else if(i.cappedHeight){var C=R>=i.cappedHeight,G=Math.min(i.cappedHeight,R);l.scalable=!0,l.height=C?G:G-v.top-v.bottom;var x=G-m-(I-v.bottom)-(p?g:0);R>i.cappedHeight&&_.visual>x?s.overflow=x:s.overflow=null,t.height=Math.min(i.cappedHeight,y-v.top-v.bottom)}else{var U=d>0?v.top+v.bottom:0;l.scalable=!0,l.height=Math.max(T,R-U),t.height=Math.max(T,y-U)}t.ref.credits&&l.heightCurrent&&(t.ref.credits.style.transform="translateY("+l.heightCurrent+"px)")}},Go=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}},xo=function(e){var t=0,n=0,r=e.ref.list,i=r.childViews[0],o=i.childViews.filter((function(e){return e.rect.element.height})),a=e.query("GET_ACTIVE_ITEMS").map((function(e){return o.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===a.length)return{visual:t,bounds:n};var u=i.rect.element.width,s=wr(i,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=void 0!==s&&s>=0?1:0,h=a.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,v=a.length+E+h,_=Ar(u,d);return 1===_?a.forEach((function(e){var r=e.rect.element.height+c;n+=r,t+=r*e.opacity})):(n=Math.ceil(v/_)*p,t=n),{visual:t,bounds:n}},Uo=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},Bo=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS"),o=e.query("GET_MAX_FILES"),a=t.length;return!r&&a>1||!!(te(o=r||n?o:1)&&i+a>o)&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:qt("warning",0,"Max files")}),!0)},Fo=function(e,t,n){var r=e.childViews[0];return wr(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},qo=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var i=uo(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 Xe("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!tn(e)||!n.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=function(t,n){var r=e.ref.list.childViews[0].childViews.filter((function(e){return e.rect.element.height})),i=e.query("GET_ACTIVE_ITEMS").map((function(e){return r.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Bo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:Fo(e.ref.list,i,n),interactionMethod:ye.DROP})})),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},i.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},i.ondrag=Mo((function(t){e.dispatch("DID_DRAG",{position:t})})),i.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(vi))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Vo=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),i=n&&!r;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(ii,Object.assign({},t,{onload:function(t){We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Bo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:ye.BROWSE})}))}})),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},ko=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=Eo(),e.ref.paster.onload=function(t){We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Bo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:ye.PASTE})}))}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},Yo=V({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;Vo(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;qo(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;ko(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;qo(t),ko(t),Vo(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),jo=F({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:No,write:Co,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",Po),t.element.removeEventListener("gesturestart",Po)},mixins:{styles:["height"]}}),zo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,r=Ke(),i=n(Te(r),[pt,Re(r)],[vn,Ie(r)]);i.dispatch("SET_OPTIONS",{options:e});var a=function(){document.hidden||i.dispatch("KICK")};document.addEventListener("visibilitychange",a);var u=null,s=!1,l=!1,c=null,f=null,d=function(){s||(s=!0),clearTimeout(u),u=setTimeout((function(){s=!1,c=null,f=null,l&&(l=!1,i.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",d);var p=jo(i,{id:Oe()}),E=!1,h=!1,v={_read:function(){s&&(f=window.innerWidth,c||(c=f),l||f===c||(i.dispatch("DID_START_RESIZE"),l=!0)),h&&E&&(E=null===p.element.offsetParent),E||(p._read(),h=p.rect.element.hidden)},_write:function(e){var t=i.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));E&&!t.length||(I(t),E=p._write(e,t,l),Fe(i.query("GET_ITEMS")),E&&i.processDispatchQueue())}},_=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({}
2,t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var r=t.item?t.item:i.query("GET_ITEM",t.id);n.file=r?Be(r):null}return t.items&&(n.items=t.items.map(Be)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},T={DID_DESTROY:_("destroy"),DID_INIT:_("init"),DID_THROW_MAX_FILES:_("warning"),DID_INIT_ITEM:_("initfile"),DID_START_ITEM_LOAD:_("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:_("addfileprogress"),DID_LOAD_ITEM:_("addfile"),DID_THROW_ITEM_INVALID:[_("error"),_("addfile")],DID_THROW_ITEM_LOAD_ERROR:[_("error"),_("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[_("error"),_("removefile")],DID_PREPARE_OUTPUT:_("preparefile"),DID_START_ITEM_PROCESSING:_("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:_("processfileprogress"),DID_ABORT_ITEM_PROCESSING:_("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:_("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:_("processfiles"),DID_REVERT_ITEM_PROCESSING:_("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[_("error"),_("processfile")],DID_REMOVE_ITEM:_("removefile"),DID_UPDATE_ITEMS:_("updatefiles"),DID_ACTIVATE_ITEM:_("activatefile"),DID_REORDER_ITEMS:_("reorderfiles")},m=function(e){var t=Object.assign({pond:C},e);delete t.type,p.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 r=["type","error","file"];Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(t){return n.push(e[t])})),C.fire.apply(C,[e.type].concat(n));var o=i.query("GET_ON"+e.type.toUpperCase());o&&o.apply(void 0,n)},I=function(e){e.length&&e.filter((function(e){return T[e.type]})).forEach((function(e){var t=T[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?m(t(e.data)):setTimeout((function(){m(t(e.data))}),0)}))}))},R=function(e){return i.dispatch("SET_OPTIONS",{options:e})},y=function(e){return i.query("GET_ACTIVE_ITEM",e)},O=function(e){return new Promise((function(t,n){i.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){w([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(r)}))},S=function(e){return e.file&&e.id},A=function(e,t){return"object"!=typeof e||S(e)||t||(t=e,e=void 0),i.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===i.query("GET_ACTIVE_ITEM",e)},w=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((function(e,n){var r=[],o={};if(j(t[0]))r.push.apply(r,t[0]),Object.assign(o,t[1]||{});else{var a=t[t.length-1];"object"!=typeof a||a instanceof Blob||Object.assign(o,t.pop()),r.push.apply(r,t)}i.dispatch("ADD_ITEMS",{items:r,index:o.index,interactionMethod:ye.API,success:e,failure:n})}))},b=function(){return i.query("GET_ACTIVE_ITEMS")},M=function(e){return new Promise((function(t,n){i.dispatch("REQUEST_ITEM_PROCESSING",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},L=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t,i=r.length?r:b();return Promise.all(i.map(O))},P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t;if(!r.length){var i=b().filter((function(e){return!(e.status===qe.IDLE&&e.origin===Ve.LOCAL)&&e.status!==qe.PROCESSING&&e.status!==qe.PROCESSING_COMPLETE&&e.status!==qe.PROCESSING_REVERT_ERROR}));return Promise.all(i.map(M))}return Promise.all(r.map(M))},N=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Array.isArray(t[0])?t[0]:t;"object"==typeof i[i.length-1]?r=i.pop():Array.isArray(t[0])&&(r=t[1]);var o=b();return i.length?i.map((function(e){return g(e)?o[e]?o[e].id:null:e})).filter((function(e){return e})).map((function(e){return A(e,r)})):Promise.all(o.map((function(e){return A(e,r)})))},C=Object.assign({},Ge(),{},v,{},ge(i,r),{setOptions:R,addFile:D,addFiles:w,getFile:y,processFile:M,prepareFile:O,removeFile:A,moveFile:function(e,t){return i.dispatch("MOVE_ITEM",{query:e,index:t})}
2,getFiles:b,processFiles:P,removeFiles:N,prepareFiles:L,sort:function(e){return i.dispatch("SORT",{compare:e})},browse:function(){var e=p.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){C.fire("destroy",p.element),i.dispatch("ABORT_ALL"),p._destroy(),window.removeEventListener("resize",d),document.removeEventListener("visibilitychange",a),i.dispatch("DID_DESTROY")},insertBefore:function(e){return k(p.element,e)},insertAfter:function(e){return Y(p.element,e)},appendTo:function(e){return e.appendChild(p.element)},replaceElement:function(e){k(p.element,e),e.parentNode.removeChild(e),t=e},restoreElement:function(){t&&(Y(t,p.element),p.element.parentNode.removeChild(p.element),t=null)},isAttachedTo:function(e){return p.element===e||t===e},element:{get:function(){return p.element}},status:{get:function(){return i.query("GET_STATUS")}}});return i.dispatch("DID_INIT"),o(C)},Ho=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return i(Ke(),(function(e,n){t[e]=n[0]})),zo(Object.assign({},t,{},e))},Wo=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},Xo=function(e){return bo(e.replace(/^data-/,""))},Qo=function e(t,n){i(n,(function(n,r){i(t,(function(e,i){var o=new RegExp(n);if(o.test(e)&&(delete t[e],!1!==r))if(K(r))t[r]=i;else{var a=r.group;le(r)&&!t[a]&&(t[a]={}),t[a][Wo(e.replace(o,""))]=i}})),r.mapping&&e(t[r.group],r.mapping)}))},Zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];i(e.attributes,(function(t){n.push(e.attributes[t])}));var r=n.filter((function(e){return e.name})).reduce((function(t,n){var r=a(e,n.name);return t[Xo(n.name)]=r===n.name||r,t}),{});return Qo(r,t),r},Ko=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};Xe("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),i=Zo("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);
2Object.keys(i).forEach((function(e){le(i[e])?(le(r[e])||(r[e]={}),Object.assign(r[e],i[e])):r[e]=i[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 o=Ho(r);return e.files&&Array.from(e.files).forEach((function(e){o.addFile(e)})),o.replaceElement(e),o},$o=function(){return t(arguments.length<=0?void 0:arguments[0])?Ko.apply(void 0,arguments):Ho.apply(void 0,arguments)},Jo=["fire","_read","_write"],ea=function(e){var t={};return xe(e,t,Jo),t},ta=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},na=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 i=Oe();r.onmessage=function(e){e.data.id===i&&t(e.data.message)},r.postMessage({id:i,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},ra=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}))},ia=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},oa=function(e){return ia(e,e.name)},aa=[],ua=function(e){if(!aa.includes(e)){aa.push(e);var t=e({addFilter:Qe,utils:{Type:ze,forin:i,isString:K,isFile:tn,toNaturalFileSize:Mn,replaceInString:ta,getExtensionFromFilename:gt,getFilenameWithoutExtension:Jt,guesstimateMimeType:Ci,getFileFromBlob:Ot,getFilenameFromURL:mt,createRoute:V,createWorker:na,createView:F,createItemAPI:Be,loadImage:ra,copyFile:oa,renameFile:ia,createBlob:St,applyFilterChain:We,text:gn,getNumericAspectRatioFromString:tt},views:{fileActionButton:bn}});Ze(t.options)}},sa=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},la=function(){return"Promise"in window},ca=function(){return"slice"in Blob.prototype},fa=function(){return"URL"in window&&"createObjectURL"in window.URL},da=function(){return"visibilityState"in document},pa=function(){return"performance"in window},Ea=function(){return"supports"in(window.CSS||{})},ha=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},va=(Xn=h()&&!sa()&&da()&&la()&&ca()&&fa()&&pa()&&(Ea()||ha()),function(){return Xn}),_a={apps:[]},Ta="filepond",ma=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=ma,e.destroy=ma,e.parse=ma,e.find=ma,e.registerPlugin=ma,e.getOptions=ma,e.setOptions=ma,va()){q((function(){_a.apps.forEach((function(e){return e._read()}))}),(function(e){_a.apps.forEach((function(t){return t._write(e)}))}));var ga=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:va,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 ga()}),0):document.addEventListener("DOMContentLoaded",ga);var Ia=function(){return i(Ke(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},rt),e.FileOrigin=Object.assign({},Ve),e.FileStatus=Object.assign({},qe),e.OptionTypes={},Ia(),e.create=function(){var t=$o.apply(void 0,arguments);return t.on("destroy",e.destroy),_a.apps.push(t),ea(t)},e.destroy=function(e){var t=_a.apps.findIndex((function(t){return t.isAttachedTo(e)}));return t>=0&&(_a.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll("."+Ta)).filter((function(e){return!_a.apps.find((function(t){return t.isAttachedTo(e)}))})).map((function(t){return e.create(t)}))},e.find=function(e){var t=_a.apps.find((function(t){return t.isAttachedTo(e)}));return t?ea(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(ua),Ia()},e.getOptions=function(){var e={};return i(Ke(),(function(t,n){e[t]=n[0]})),e},e.setOptions=function(t){return le(t)&&(_a.apps.forEach((function(e){e.setOptions(t)})),$e(t)),e.getOptions()}}
2e.supported=va,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.