(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63828d29"],{"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("25f0"),n("3ca3");var r=n("6b75");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"0fd9":function(e,t,n){"use strict";n("4b85");var r=n("2b0e"),i=n("d9f7"),o=n("80d2");const a=["sm","md","lg","xl"],s=["start","end","center"];function l(e,t){return a.reduce((n,r)=>(n[e+Object(o["E"])(r)]=t(),n),{})}const c=e=>[...s,"baseline","stretch"].includes(e),u=l("align",()=>({type:String,default:null,validator:c})),f=e=>[...s,"space-between","space-around"].includes(e),d=l("justify",()=>({type:String,default:null,validator:f})),p=e=>[...s,"space-between","space-around","stretch"].includes(e),h=l("alignContent",()=>({type:String,default:null,validator:p})),v={align:Object.keys(u),justify:Object.keys(d),alignContent:Object.keys(h)},g={align:"align",justify:"justify",alignContent:"align-content"};function m(e,t,n){let r=g[e];if(null!=n){if(t){const n=t.replace(e,"");r+="-"+n}return r+="-"+n,r.toLowerCase()}}const E=new Map;t["a"]=r["default"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c},...u,justify:{type:String,default:null,validator:f},...d,alignContent:{type:String,default:null,validator:p},...h},render(e,{props:t,data:n,children:r}){let o="";for(const i in t)o+=String(t[i]);let a=E.get(o);if(!a){let e;for(e in a=[],v)v[e].forEach(n=>{const r=t[n],i=m(e,n,r);i&&a.push(i)});a.push({"no-gutters":t.noGutters,"row--dense":t.dense,["align-"+t.align]:t.align,["justify-"+t.justify]:t.justify,["align-content-"+t.alignContent]:t.alignContent}),E.set(o,a)}return e(t.tag,Object(i["a"])(n,{staticClass:"row",class:a}),r)}})},"13b3":function(e,t,n){},"14c3":function(e,t,n){var r=n("c6b6"),i=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},1501:function(e,t,n){var r,i,o;
/*!
 * vue-filepond v6.0.3
 * A handy FilePond adapter component for Vue
 * 
 * Copyright (c) 2020 PQINA
 * https://pqina.nl/filepond
 * 
 * Licensed under the MIT license.
 */(function(a,s){i=[t,n("2b0e"),n("c062")],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,(function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.setOptions=void 0,t=r(t);var i=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],o=(0,n.supported)(),a=function(e){return{string:String,boolean:Boolean,array:Array,function:Function,int:Number,serverapi:Object,object:Object}[e]},s={},l=[],c={},u=[],f={},d=function(e){f=Object.assign(f,e),u.forEach((function(e){e.setOptions(f)}))};e.setOptions=d;var p=function(){n.registerPlugin.apply(void 0,arguments),l.length=0;var e=function(e){if(/^on/.test(e))return l.push(e),"continue";s[e]=[String,a(n.OptionTypes[e])],c[e]=function(t){this._pond[e]=t}};for(var r in n.OptionTypes)e(r);return t.default.component("FilePond",{name:"FilePond",props:s,watch:c,render:function(e){return e("div",{class:{"filepond--wrapper":!0}},[e("input",{attrs:{id:this.id,name:this.name,type:"file",class:this.className,required:this.required,multiple:this.allowMultiple,accept:this.acceptedFileTypes,capture:this.captureMethod}})])},mounted:function(){var e=this;if(o){this._element=this.$el.querySelector("input");var t=l.reduce((function(t,n){return t[n]=function(){e.$emit("input",e._pond?e._pond.getFiles():[]);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.$emit.apply(e,[n.substr(2)].concat(r))},t}),{}),r=Object.assign({},this.$attrs);this._pond=(0,n.create)(this._element,Object.assign({},f,t,r,this.$options.propsData)),Object.keys(this._pond).filter((function(e){return!i.includes(e)})).forEach((function(t){e[t]=e._pond[t]})),u.push(this._pond)}},destroyed:function(){var e=this,t=this.$options.detached;if(this.$el.offsetParent){var n=function(n,r){var i=(n[0]||{}).removedNodes||[],o=i[0];o&&o.contains(e.$el)&&(r.disconnect(),t.call(e))},r=new MutationObserver(n);r.observe(document.documentElement,{childList:!0,subtree:!0})}else t.call(this)},detached:function(){if(this._pond){this._pond.destroy();var e=u.indexOf(this._pond);e>=0&&u.splice(e,1),this._pond=null}}})};e.default=p}))},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(u){c.forEach=o}}},"166a":function(e,t,n){},1681:function(e,t,n){},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},1942:function(e,t,n){
/*!
 * FilePondPluginFileValidateType 1.2.5
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,r=n.Type,i=n.isString,o=n.replaceInString,a=n.guesstimateMimeType,s=n.getExtensionFromFilename,l=n.getFilenameFromURL,c=function(e,t){var n=(/^[^/]+/.exec(e)||[]).pop(),r=t.slice(0,-2);return n===r},u=function(e,t){return e.some((function(e){return/\*$/.test(e)?c(t,e):e===t}))},f=function(e){var t="";if(i(e)){var n=l(e),r=s(n);r&&(t=a(r))}else t=e.type;return t},d=function(e,t,n){if(0===t.length)return!0;var r=f(e);return n?new Promise((function(i,o){n(e,r).then((function(e){u(t,e)?i():o()})).catch(o)})):u(t,r)},p=function(e){return function(t){return null!==e[t]&&(e[t]||t)}};return t("SET_ATTRIBUTE_TO_OPTION_MAP",(function(e){return Object.assign(e,{accept:"acceptedFileTypes"})})),t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||d(e,n("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,r){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var i=n("GET_ACCEPTED_FILE_TYPES"),a=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),s=d(e,i,a),l=function(){var e=i.map(p(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter((function(e){return!1!==e}));r({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:o(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:e.join(", "),allButLastType:e.slice(0,-1).join(", "),lastType:e[e.length-1]})}})};if("boolean"===typeof s)return s?t(e):l();s.then((function(){t(e)})).catch(l)}else t(e)}))})),{options:{allowFileTypeValidation:[!0,r.BOOLEAN],acceptedFileTypes:[[],r.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",r.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",r.STRING],fileValidateTypeLabelExpectedTypesMap:[{},r.OBJECT],fileValidateTypeDetectType:[null,r.FUNCTION]}}},t="undefined"!==typeof window&&"undefined"!==typeof window.document;return t&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}))},"1bfb":function(e,t,n){},"1c2b":function(e,t,n){"use strict";n.d(t,"i",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"j",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h}));var r=n("365c"),i={videoTimelineApi:"/api/media/video/post/timeline",videoRecommendApi:"/api/media/video/post/recommend",videoTagApi:"/api/media/video/post/tag",similarVideoApi:"/api/media/video/post/similar",videoInfoApi:"/api/media/video/post/detail",videoUrlApi:"/api/media/video/url",videoCategoryApi:"/api/media/video/category",videoPostSubmitApi:"/api/media/video/post/submit",playerRecordApi:"/api/media/video/play/record",userVideoListApi:"/api/media/video/post/user"};function o(e){return r["a"].get(i.videoTimelineApi+"/"+e)}function a(e){return r["a"].get(i.videoRecommendApi+"/"+e)}function s(e,t){return r["a"].get(i.videoTagApi+"?tag="+e+"&page="+t)}function l(e){return r["a"].get(i.similarVideoApi+"?videoId="+e)}function c(e){return r["a"].get(i.videoInfoApi+"/"+e)}function u(e){return r["a"].get(i.videoUrlApi+"/"+e)}function f(){return r["a"].get(i.videoCategoryApi)}function d(e){return r["a"].post(i.videoPostSubmitApi,e)}function p(e){return r["a"].post(i.playerRecordApi,e)}function h(e,t){return r["a"].get(i.userVideoListApi+"?page="+e+"&userId="+t)}},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,c=l[s],u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=s;(u||f)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"2cfc":function(e,t,n){
/*!
 * FilePondPluginImagePreview 4.6.4
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){return/^image/.test(e.type)};function t(e){this.wrapped=e}function n(e){var n,r;function i(e,t){return new Promise((function(i,a){var s={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=s:(n=r=s,o(e,t))}))}function o(n,r){try{var i=e[n](r),s=i.value,l=s instanceof t;Promise.resolve(l?s.wrapped:s).then((function(e){l?o("next",e):a(i.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(c){a("throw",c)}}function a(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1});break}n=n.next,n?o(n.key,n.arg):r=null}this._invoke=i,"function"!==typeof e.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(n.prototype[Symbol.asyncIterator]=function(){return this}),n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)};function r(e,t){return i(e)||o(e,t)||a()}function i(e){if(Array.isArray(e))return e}function o(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var s=function(e,t){return f(e.x*t,e.y*t)},l=function(e,t){return f(e.x+t.x,e.y+t.y)},c=function(e){var t=Math.sqrt(e.x*e.x+e.y*e.y);return 0===t?{x:0,y:0}:f(e.x/t,e.y/t)},u=function(e,t,n){var r=Math.cos(t),i=Math.sin(t),o=f(e.x-n.x,e.y-n.y);return f(n.x+r*o.x-i*o.y,n.y+i*o.x+r*o.y)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{x:e,y:t}},d=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},p=function(e,t,n){var r=e.borderStyle||e.lineStyle||"solid",i=e.backgroundColor||e.fontColor||"transparent",o=e.borderColor||e.lineColor||"transparent",a=d(e.borderWidth||e.lineWidth,t,n),s=e.lineCap||"round",l=e.lineJoin||"round",c="string"===typeof r?"":r.map((function(e){return d(e,t,n)})).join(","),u=e.opacity||1;return{"stroke-linecap":s,"stroke-linejoin":l,"stroke-width":a||0,"stroke-dasharray":c,stroke:o,fill:i,opacity:u}},h=function(e){return null!=e},v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=d(e.x,t,n,"width")||d(e.left,t,n,"width"),i=d(e.y,t,n,"height")||d(e.top,t,n,"height"),o=d(e.width,t,n,"width"),a=d(e.height,t,n,"height"),s=d(e.right,t,n,"width"),l=d(e.bottom,t,n,"height");return h(i)||(i=h(a)&&h(l)?t.height-a-l:l),h(r)||(r=h(o)&&h(s)?t.width-o-s:s),h(o)||(o=h(r)&&h(s)?t.width-r-s:0),h(a)||(a=h(i)&&h(l)?t.height-i-l:0),{x:r||0,y:i||0,width:o||0,height:a||0}},g=function(e){return e.map((function(e,t){return"".concat(0===t?"M":"L"," ").concat(e.x," ").concat(e.y)})).join(" ")},m=function(e,t){return Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])}))},E="http://www.w3.org/2000/svg",_=function(e,t){var n=document.createElementNS(E,e);return t&&m(n,t),n},I=function(e){return m(e,Object.assign({},e.rect,e.styles))},T=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 m(e,Object.assign({cx:t,cy:n,rx:r,ry:i},e.styles))},y={contain:"xMidYMid meet",cover:"xMidYMid slice"},O=function(e,t){m(e,Object.assign({},e.rect,e.styles,{preserveAspectRatio:y[t.fit]||"none"}))},R={left:"start",center:"middle",right:"end"},b=function(e,t,n,r){var i=d(t.fontSize,n,r),o=t.fontFamily||"sans-serif",a=t.fontWeight||"normal",s=R[t.textAlign]||"start";m(e,Object.assign({},e.rect,e.styles,{"stroke-width":0,"font-weight":a,"font-size":i,"font-family":o,"text-anchor":s})),e.text!==t.text&&(e.text=t.text,e.textContent=t.text.length?t.text:" ")},w=function(e,t,n,r){m(e,Object.assign({},e.rect,e.styles,{fill:"none"}));var i=e.childNodes[0],o=e.childNodes[1],a=e.childNodes[2],f=e.rect,p={x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height};if(m(i,{x1:f.x,y1:f.y,x2:p.x,y2:p.y}),t.lineDecoration){o.style.display="none",a.style.display="none";var h=c({x:p.x-f.x,y:p.y-f.y}),v=d(.05,n,r);if(-1!==t.lineDecoration.indexOf("arrow-begin")){var g=s(h,v),E=l(f,g),_=u(f,2,E),I=u(f,-2,E);m(o,{style:"display:block;",d:"M".concat(_.x,",").concat(_.y," L").concat(f.x,",").concat(f.y," L").concat(I.x,",").concat(I.y)})}if(-1!==t.lineDecoration.indexOf("arrow-end")){var T=s(h,-v),y=l(p,T),O=u(p,2,y),R=u(p,-2,y);m(a,{style:"display:block;",d:"M".concat(O.x,",").concat(O.y," L").concat(p.x,",").concat(p.y," L").concat(R.x,",").concat(R.y)})}}},S=function(e,t,n,r){m(e,Object.assign({},e.styles,{fill:"none",d:g(t.points.map((function(e){return{x:d(e.x,n,r,"width"),y:d(e.y,n,r,"height")}})))}))},A=function(e){return function(t){return _(e,{id:t.id})}},D=function(e){var t=_("image",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return t.onload=function(){t.setAttribute("opacity",e.opacity||1)},t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.src),t},M=function(e){var t=_("g",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round"}),n=_("line");t.appendChild(n);var r=_("path");t.appendChild(r);var i=_("path");return t.appendChild(i),t},P={image:D,rect:A("rect"),ellipse:A("ellipse"),text:A("text"),path:A("path"),line:M},C={rect:I,ellipse:T,image:O,text:b,path:S,line:w},L=function(e,t){return P[e](t)},x=function(e,t,n,r,i){"path"!==t&&(e.rect=v(n,r,i)),e.styles=p(n,r,i),C[t](e,n,r,i)},N=["x","y","left","top","right","bottom","width","height"],G=function(e){return"string"===typeof e&&/%/.test(e)?parseFloat(e)/100:e},V=function(e){var t=r(e,2),n=t[0],i=t[1],o=i.points?{}:N.reduce((function(e,t){return e[t]=G(i[t]),e}),{});return[n,Object.assign({zIndex:0},i,o)]},B=function(e,t){return e[1].zIndex>t[1].zIndex?1:e[1].zIndex<t[1].zIndex?-1:0},k=function(e){return e.utils.createView({name:"image-preview-markup",tag:"svg",ignoreRect:!0,mixins:{apis:["width","height","crop","markup","resize","dirty"]},write:function(e){var t=e.root,n=e.props;if(n.dirty){var i=n.crop,o=n.resize,a=n.markup,s=n.width,l=n.height,c=i.width,u=i.height;if(o){var f=o.size,d=f&&f.width,p=f&&f.height,h=o.mode,v=o.upscale;d&&!p&&(p=d),p&&!d&&(d=p);var g=c<d&&u<p;if(!g||g&&v){var m,E=d/c,_=p/u;if("force"===h)c=d,u=p;else"cover"===h?m=Math.max(E,_):"contain"===h&&(m=Math.min(E,_)),c*=m,u*=m}}var I={width:s,height:l};t.element.setAttribute("width",I.width),t.element.setAttribute("height",I.height);var T=Math.min(s/c,l/u);t.element.innerHTML="";var y=t.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");a.filter(y).map(V).sort(B).forEach((function(e){var n=r(e,2),i=n[0],o=n[1],a=L(i,o);x(a,i,o,I,T),t.element.appendChild(a)}))}}})},U=function(e,t){return{x:e,y:t}},F=function(e,t){return e.x*t.x+e.y*t.y},j=function(e,t){return U(e.x-t.x,e.y-t.y)},q=function(e,t){return F(j(e,t),j(e,t))},z=function(e,t){return Math.sqrt(q(e,t))},Y=function(e,t){var n=e,r=1.5707963267948966,i=t,o=1.5707963267948966-t,a=Math.sin(r),s=Math.sin(i),l=Math.sin(o),c=Math.cos(o),u=n/a,f=u*s,d=u*l;return U(c*f,c*d)},$=function(e,t){var n=e.width,r=e.height,i=Y(n,t),o=Y(r,t),a=U(e.x+Math.abs(i.x),e.y-Math.abs(i.y)),s=U(e.x+e.width+Math.abs(o.y),e.y+Math.abs(o.x)),l=U(e.x-Math.abs(o.y),e.y+e.height-Math.abs(o.x));return{width:z(a,s),height:z(a,l)}},W=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,s=r;s>o&&(s=o,a=s/r);var l=Math.max(i/a,o/s),c=e.width/(n*l*a),u=c*t;return{width:c,height:u}},H=function(e,t,n,r){var i=r.x>.5?1-r.x:r.x,o=r.y>.5?1-r.y:r.y,a=2*i*e.width,s=2*o*e.height,l=$(t,n);return Math.max(l.width/a,l.height/s)},X=function(e,t){var n=e.width,r=n*t;r>e.height&&(r=e.height,n=r/t);var i=.5*(e.width-n),o=.5*(e.height-r);return{x:i,y:o,width:n,height:r}},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.zoom,r=t.rotation,i=t.center,o=t.aspectRatio;o||(o=e.height/e.width);var a=W(e,o,n),s={x:.5*a.width,y:.5*a.height},l={x:0,y:0,width:a.width,height:a.height,center:s},c="undefined"===typeof t.scaleToFit||t.scaleToFit,u=H(e,X(l,o),r,c?i:{x:.5,y:.5}),f=n*u;return{widthFloat:a.width/f,heightFloat:a.height/f,width:Math.round(a.width/f),height:Math.round(a.height/f)}},Q={type:"spring",stiffness:.5,damping:.45,mass:10},K=function(e){return e.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:function(e){var t=e.root,n=e.props;t.appendChild(n.image)}})},J=function(e){return e.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:Q,originY:Q,scaleX:Q,scaleY:Q,translateX:Q,translateY:Q,rotateZ:Q}},create:function(t){var n=t.root,r=t.props;r.width=r.image.width,r.height=r.image.height,n.ref.bitmap=n.appendChildView(n.createChildView(K(e),{image:r.image}))},write:function(e){var t=e.root,n=e.props,r=n.crop.flip,i=t.ref.bitmap;i.scaleX=r.horizontal?-1:1,i.scaleY=r.vertical?-1:1}})},ee=function(e){return e.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","opacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function(e){var t=e.root,n=e.props;n.background&&(t.element.style.backgroundColor=n.background)},create:function(t){var n=t.root,r=t.props;n.ref.image=n.appendChildView(n.createChildView(J(e),Object.assign({},r))),n.ref.createMarkup=function(){n.ref.markup||(n.ref.markup=n.appendChildView(n.createChildView(k(e),Object.assign({},r))))},n.ref.destroyMarkup=function(){n.ref.markup&&(n.removeChildView(n.ref.markup),n.ref.markup=null)};var i=n.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");null!==i&&(n.element.dataset.transparencyIndicator="grid"===i?i:"color")},write:function(e){var t=e.root,n=e.props,r=e.shouldOptimize,i=n.crop,o=n.markup,a=n.resize,s=n.dirty,l=n.width,c=n.height;t.ref.image.crop=i;var u={x:0,y:0,width:l,height:c,center:{x:.5*l,y:.5*c}},f={width:t.ref.image.width,height:t.ref.image.height},d={x:i.center.x*f.width,y:i.center.y*f.height},p={x:u.center.x-f.width*i.center.x,y:u.center.y-f.height*i.center.y},h=2*Math.PI+i.rotation%(2*Math.PI),v=i.aspectRatio||f.height/f.width,g="undefined"===typeof i.scaleToFit||i.scaleToFit,m=H(f,X(u,v),h,g?i.center:{x:.5,y:.5}),E=i.zoom*m;o&&o.length?(t.ref.createMarkup(),t.ref.markup.width=l,t.ref.markup.height=c,t.ref.markup.resize=a,t.ref.markup.dirty=s,t.ref.markup.markup=o,t.ref.markup.crop=Z(f,i)):t.ref.markup&&t.ref.destroyMarkup();var _=t.ref.image;if(r)return _.originX=null,_.originY=null,_.translateX=null,_.translateY=null,_.rotateZ=null,_.scaleX=null,void(_.scaleY=null);_.originX=d.x,_.originY=d.y,_.translateX=p.x,_.translateY=p.y,_.rotateZ=h,_.scaleX=E,_.scaleY=E}})},te=function(e){return e.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:Q,scaleY:Q,translateY:Q,opacity:{type:"tween",duration:400}}},create:function(t){var n=t.root,r=t.props;n.ref.clip=n.appendChildView(n.createChildView(ee(e),{id:r.id,image:r.image,crop:r.crop,markup:r.markup,resize:r.resize,dirty:r.dirty,background:r.background}))},write:function(e){var t=e.root,n=e.props,r=e.shouldOptimize,i=t.ref.clip,o=n.image,a=n.crop,s=n.markup,l=n.resize,c=n.dirty;if(i.crop=a,i.markup=s,i.resize=l,i.dirty=c,i.opacity=r?0:1,!r&&!t.rect.element.hidden){var u=o.height/o.width,f=a.aspectRatio||u,d=t.rect.inner.width,p=t.rect.inner.height,h=t.query("GET_IMAGE_PREVIEW_HEIGHT"),v=t.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),g=t.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),m=t.query("GET_PANEL_ASPECT_RATIO"),E=t.query("GET_ALLOW_MULTIPLE");m&&!E&&(h=d*m,f=m);var _=null!==h?h:Math.max(v,Math.min(d*f,g)),I=_/f;I>d&&(I=d,_=I*f),_>p&&(_=p,I=p/f),i.width=I,i.height=_}}})},ne='<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">\n    <defs>\n        <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">\n            <stop offset=\'50%\' stop-color=\'#000000\'/>\n            <stop offset=\'56%\' stop-color=\'#0a0a0a\'/>\n            <stop offset=\'63%\' stop-color=\'#262626\'/>\n            <stop offset=\'69%\' stop-color=\'#4f4f4f\'/>\n            <stop offset=\'75%\' stop-color=\'#808080\'/>\n            <stop offset=\'81%\' stop-color=\'#b1b1b1\'/>\n            <stop offset=\'88%\' stop-color=\'#dadada\'/>\n            <stop offset=\'94%\' stop-color=\'#f6f6f6\'/>\n            <stop offset=\'100%\' stop-color=\'#ffffff\'/>\n        </radialGradient>\n        <mask id="mask-__UID__">\n            <rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"></rect>\n        </mask>\n    </defs>\n    <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect>\n</svg>',re=!1,ie=0,oe=function(e){return e.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:function(e){var t=e.root,n=e.props;!re&&document.querySelector("base")&&(ne=ne.replace(/url\(\#/g,"url("+window.location.href.replace(window.location.hash,"")+"#"),re=!0),ie++,t.element.classList.add("filepond--image-preview-overlay-".concat(n.status)),t.element.innerHTML=ne.replace(/__UID__/g,ie)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}})},ae=function(){self.onmessage=function(e){createImageBitmap(e.data.message.file).then((function(t){self.postMessage({id:e.data.id,message:t},[t])}))}},se=function(){self.onmessage=function(e){for(var t=e.data.message.imageData,n=e.data.message.colorMatrix,r=t.data,i=r.length,o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5],f=n[6],d=n[7],p=n[8],h=n[9],v=n[10],g=n[11],m=n[12],E=n[13],_=n[14],I=n[15],T=n[16],y=n[17],O=n[18],R=n[19],b=0,w=0,S=0,A=0,D=0;b<i;b+=4)w=r[b]/255,S=r[b+1]/255,A=r[b+2]/255,D=r[b+3]/255,r[b]=Math.max(0,Math.min(255*(w*o+S*a+A*s+D*l+c),255)),r[b+1]=Math.max(0,Math.min(255*(w*u+S*f+A*d+D*p+h),255)),r[b+2]=Math.max(0,Math.min(255*(w*v+S*g+A*m+D*E+_),255)),r[b+3]=Math.max(0,Math.min(255*(w*I+S*T+A*y+D*O+R),255));self.postMessage({id:e.data.id,message:t},[t.data.buffer])}},le=function(e,t){var n=new Image;n.onload=function(){var e=n.naturalWidth,r=n.naturalHeight;n=null,t(e,r)},n.src=e},ce={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]}},ue=function(e,t,n,r){-1!==r&&e.transform.apply(e,ce[r](t,n))},fe=function(e,t,n,r){t=Math.round(t),n=Math.round(n);var i=document.createElement("canvas");i.width=t,i.height=n;var o=i.getContext("2d");if(r>=5&&r<=8){var a=[n,t];t=a[0],n=a[1]}return ue(o,t,n,r),o.drawImage(e,0,0,t,n),i},de=function(e){return/^image/.test(e.type)&&!/svg/.test(e.type)},pe=10,he=10,ve=function(e){var t=Math.min(pe/e.width,he/e.height),n=document.createElement("canvas"),r=n.getContext("2d"),i=n.width=Math.ceil(e.width*t),o=n.height=Math.ceil(e.height*t);r.drawImage(e,0,0,i,o);var a=null;try{a=r.getImageData(0,0,i,o).data}catch(d){return null}for(var s=a.length,l=0,c=0,u=0,f=0;f<s;f+=4)l+=a[f]*a[f],c+=a[f+1]*a[f+1],u+=a[f+2]*a[f+2];return l=ge(l,s),c=ge(c,s),u=ge(u,s),{r:l,g:c,b:u}},ge=function(e,t){return Math.floor(Math.sqrt(e/(t/4)))},me=function(e,t){t=t||document.createElement("canvas"),t.width=e.width,t.height=e.height;var n=t.getContext("2d");return n.drawImage(e,0,0),t},Ee=function(e){var t;try{t=new ImageData(e.width,e.height)}catch(i){var n=document.createElement("canvas"),r=n.getContext("2d");t=r.createImageData(e.width,e.height)}return t.data.set(new Uint8ClampedArray(e.data)),t},_e=function(e){return new Promise((function(t,n){var r=new Image;r.crossOrigin="Anonymous",r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},Ie=function(e){var t=oe(e),n=te(e),r=e.utils.createWorker,i=function(e,t,n){return new Promise((function(i){e.ref.imageData||(e.ref.imageData=n.getContext("2d").getImageData(0,0,n.width,n.height));var o=Ee(e.ref.imageData);if(!t||20!==t.length)return n.getContext("2d").putImageData(o,0,0),i();var a=r(se);a.post({imageData:o,colorMatrix:t},(function(e){n.getContext("2d").putImageData(e,0,0),a.terminate(),i()}),[o.data.buffer])}))},o=function(e,t){e.removeChildView(t),t.image.width=1,t.image.height=1,t._destroy()},a=function(e){var t=e.root,n=t.ref.images.shift();return n.opacity=0,n.translateY=-15,t.ref.imageViewBin.push(n),n},s=function(e){var t=e.root,r=e.props,i=e.image,o=r.id,a=t.query("GET_ITEM",{id:o});if(a){var s,l,c=a.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},u=t.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),f=!1;t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(s=a.getMetadata("markup")||[],l=a.getMetadata("resize"),f=!0);var d=t.appendChildView(t.createChildView(n,{id:o,image:i,crop:c,resize:l,markup:s,dirty:f,background:u,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),t.childViews.length);t.ref.images.push(d),d.opacity=1,d.scaleX=1,d.scaleY=1,d.translateY=0,setTimeout((function(){t.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:o})}),250)}},l=function(e){var t=e.root,n=e.props,r=t.query("GET_ITEM",{id:n.id});if(r){var i=t.ref.images[t.ref.images.length-1];i.crop=r.getMetadata("crop"),i.background=t.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(i.dirty=!0,i.resize=r.getMetadata("resize"),i.markup=r.getMetadata("markup"))}},c=function(e){var t=e.root,n=e.props,r=e.action;if(/crop|filter|markup|resize/.test(r.change.key)&&t.ref.images.length){var o=t.query("GET_ITEM",{id:n.id});if(o)if(/filter/.test(r.change.key)){var c=t.ref.images[t.ref.images.length-1];i(t,r.change.value,c.image)}else if(/crop|markup|resize/.test(r.change.key)){var u=o.getMetadata("crop"),f=t.ref.images[t.ref.images.length-1];if(Math.abs(u.aspectRatio-f.crop.aspectRatio)>1e-5){var d=a({root:t});s({root:t,props:n,image:me(d.image)})}else l({root:t,props:n})}}},u=function(e){var t=window.navigator.userAgent,n=t.match(/Firefox\/([0-9]+)\./),r=n?parseInt(n[1]):null;return!(r<=58)&&("createImageBitmap"in window&&de(e))},f=function(e){var t=e.root,n=e.props,r=n.id,i=t.query("GET_ITEM",r);if(i){var o=URL.createObjectURL(i.file);le(o,(function(e,n){t.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:r,width:e,height:n})}))}},d=function(e){var t=e.root,n=e.props,o=n.id,a=t.query("GET_ITEM",o);if(a){var l=URL.createObjectURL(a.file),c=function(){_e(l).then(f)},f=function(e){URL.revokeObjectURL(l);var r=a.getMetadata("exif")||{},o=r.orientation||-1,c=e.width,u=e.height;if(o>=5&&o<=8){var f=[u,c];c=f[0],u=f[1]}var d=Math.max(1,.75*window.devicePixelRatio),p=t.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR"),h=p*d,v=u/c,g=t.rect.element.width,m=t.rect.element.height,E=g,_=E*v;v>1?(E=Math.min(c,g*h),_=E*v):(_=Math.min(u,m*h),E=_/v);var I=fe(e,E,_,o),T=function(){var r=t.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?ve(data):null;a.setMetadata("color",r,!0),"close"in e&&e.close(),t.ref.overlayShadow.opacity=1,s({root:t,props:n,image:I})},y=a.getMetadata("filter");y?i(t,y,I).then(T):T()};if(u(a.file)){var d=r(ae);d.post({file:a.file},(function(e){d.terminate(),e?f(e):c()}))}else c()}},p=function(e){var t=e.root,n=t.ref.images[t.ref.images.length-1];n.translateY=0,n.scaleX=1,n.scaleY=1,n.opacity=1},h=function(e){var t=e.root;t.ref.overlayShadow.opacity=1,t.ref.overlayError.opacity=0,t.ref.overlaySuccess.opacity=0},v=function(e){var t=e.root;t.ref.overlayShadow.opacity=.25,t.ref.overlayError.opacity=1},g=function(e){var t=e.root;t.ref.overlayShadow.opacity=.25,t.ref.overlaySuccess.opacity=1},m=function(e){var n=e.root;n.ref.images=[],n.ref.imageData=null,n.ref.imageViewBin=[],n.ref.overlayShadow=n.appendChildView(n.createChildView(t,{opacity:0,status:"idle"})),n.ref.overlaySuccess=n.appendChildView(n.createChildView(t,{opacity:0,status:"success"})),n.ref.overlayError=n.appendChildView(n.createChildView(t,{opacity:0,status:"failure"}))};return e.utils.createView({name:"image-preview-wrapper",create:m,styles:["height"],apis:["height"],destroy:function(e){var t=e.root;t.ref.images.forEach((function(e){e.image.width=1,e.image.height=1}))},didWriteView:function(e){var t=e.root;t.ref.images.forEach((function(e){e.dirty=!1}))},write:e.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:p,DID_IMAGE_PREVIEW_CONTAINER_CREATE:f,DID_FINISH_CALCULATE_PREVIEWSIZE:d,DID_UPDATE_ITEM_METADATA:c,DID_THROW_ITEM_LOAD_ERROR:v,DID_THROW_ITEM_PROCESSING_ERROR:v,DID_THROW_ITEM_INVALID:v,DID_COMPLETE_ITEM_PROCESSING:g,DID_START_ITEM_PROCESSING:h,DID_REVERT_ITEM_PROCESSING:h},(function(e){var t=e.root,n=t.ref.imageViewBin.filter((function(e){return 0===e.opacity}));t.ref.imageViewBin=t.ref.imageViewBin.filter((function(e){return e.opacity>0})),n.forEach((function(e){return o(t,e)})),n.length=0}))})},Te=function(t){var n=t.addFilter,r=t.utils,i=r.Type,o=r.createRoute,a=r.isFile,s=Ie(t);return n("CREATE_VIEW",(function(t){var n=t.is,r=t.view,i=t.query;if(n("file")&&i("GET_ALLOW_IMAGE_PREVIEW")){var l=function(t){var n=t.root,o=t.props,l=o.id,c=i("GET_ITEM",l);if(c&&a(c.file)&&!c.archived){var u=c.file;if(e(u)&&i("GET_IMAGE_PREVIEW_FILTER_ITEM")(c)){var f="createImageBitmap"in(window||{}),d=i("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!(!f&&d&&u.size>d)){n.ref.imagePreview=r.appendChildView(r.createChildView(s,{id:l}));var p=n.query("GET_IMAGE_PREVIEW_HEIGHT");p&&n.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:c.id,height:p});var h=!f&&u.size>i("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");n.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:l},h)}}}},c=function(e,t){if(e.ref.imagePreview){var n=t.id,r=e.query("GET_ITEM",{id:n});if(r){var i=e.query("GET_PANEL_ASPECT_RATIO"),o=e.query("GET_ITEM_PANEL_ASPECT_RATIO"),a=e.query("GET_IMAGE_PREVIEW_HEIGHT");if(!(i||o||a)){var s=e.ref,l=s.imageWidth,c=s.imageHeight;if(l&&c){var u=e.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),f=e.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),d=r.getMetadata("exif")||{},p=d.orientation||-1;if(p>=5&&p<=8){var h=[c,l];l=h[0],c=h[1]}if(!de(r.file)||e.query("GET_IMAGE_PREVIEW_UPSCALE")){var v=2048/l;l*=v,c*=v}var g=c/l,m=(r.getMetadata("crop")||{}).aspectRatio||g,E=Math.max(u,Math.min(c,f)),_=e.rect.element.width,I=Math.min(_*m,E);e.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:r.id,height:I})}}}}},u=function(e){var t=e.root;t.ref.shouldRescale=!0},f=function(e){var t=e.root,n=e.action;"crop"===n.change.key&&(t.ref.shouldRescale=!0)},d=function(e){var t=e.root,n=e.action;t.ref.imageWidth=n.width,t.ref.imageHeight=n.height,t.ref.shouldRescale=!0,t.ref.shouldDrawPreview=!0,t.dispatch("KICK")};r.registerWriter(o({DID_RESIZE_ROOT:u,DID_STOP_RESIZE:u,DID_LOAD_ITEM:l,DID_IMAGE_PREVIEW_CALCULATE_SIZE:d,DID_UPDATE_ITEM_METADATA:f},(function(e){var t=e.root,n=e.props;t.ref.imagePreview&&(t.rect.element.hidden||(t.ref.shouldRescale&&(c(t,n),t.ref.shouldRescale=!1),t.ref.shouldDrawPreview&&(requestAnimationFrame((function(){t.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:n.id})})),t.ref.shouldDrawPreview=!1)))})))}})),{options:{allowImagePreview:[!0,i.BOOLEAN],imagePreviewFilterItem:[function(){return!0},i.FUNCTION],imagePreviewHeight:[null,i.INT],imagePreviewMinHeight:[44,i.INT],imagePreviewMaxHeight:[256,i.INT],imagePreviewMaxFileSize:[null,i.INT],imagePreviewZoomFactor:[2,i.INT],imagePreviewUpscale:[!1,i.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,i.INT],imagePreviewTransparencyIndicator:[null,i.STRING],imagePreviewCalculateAverageImageColor:[!1,i.BOOLEAN],imagePreviewMarkupShow:[!0,i.BOOLEAN],imagePreviewMarkupFilter:[function(){return!0},i.FUNCTION]}}},ye="undefined"!==typeof window&&"undefined"!==typeof window.document;return ye&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Te})),Te}))},"2db4":function(e,t,n){"use strict";n("ca71");var r=n("8dd9"),i=n("a9ad"),o=n("7560"),a=n("f2e7"),s=n("fe6c"),l=n("58df"),c=n("80d2"),u=n("d9bd");t["a"]=Object(l["a"])(r["a"],i["a"],a["a"],Object(s["b"])(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:e=>"string"===typeof e||!1===e},vertical:Boolean},data:()=>({activeTimeout:-1}),computed:{classes(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground(){return!this.text&&!this.outlined},isDark(){return this.hasBackground?!this.light:o["a"].options.computed.isDark.call(this)},styles(){if(this.absolute)return{};const{bar:e,bottom:t,footer:n,insetFooter:r,left:i,right:o,top:a}=this.$vuetify.application;return{paddingBottom:Object(c["g"])(t+n+r),paddingLeft:this.app?Object(c["g"])(i):void 0,paddingRight:this.app?Object(c["g"])(o):void 0,paddingTop:Object(c["g"])(e+a)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted(){this.isActive&&this.setTimeout()},created(){this.$attrs.hasOwnProperty("auto-height")&&Object(u["e"])("auto-height",this),0==this.timeout&&Object(u["d"])('timeout="0"',"-1",this)},methods:{genActions(){return this.$createElement("div",{staticClass:"v-snack__action "},[Object(c["r"])(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent(){return this.$createElement("div",{staticClass:"v-snack__content",class:{[this.contentClass]:!0},attrs:{role:"status","aria-live":"polite"}},[Object(c["r"])(this)])},genWrapper(){const e=this.hasBackground?this.setBackgroundColor:this.setTextColor,t=e(this.color,{staticClass:"v-snack__wrapper",class:r["a"].options.computed.classes.call(this),directives:[{name:"show",value:this.isActive}]});return this.$createElement("div",t,[this.genContent(),this.genActions()])},genTransition(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout(){window.clearTimeout(this.activeTimeout);const e=Number(this.timeout);this.isActive&&![0,-1].includes(e)&&(this.activeTimeout=window.setTimeout(()=>{this.isActive=!1},e))}},render(e){return e("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[!1!==this.transition?this.genTransition():this.genWrapper()])}})},3408:function(e,t,n){},"36a7":function(e,t,n){},"371f":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"320px"}},[n("router-link",{attrs:{to:"/video/"+e.videoInfo.videoId}},[n("div",{staticStyle:{position:"relative",width:"320px",height:"180px"}},[n("v-img",{attrs:{src:e.videoInfo.coverUrl,outlined:"","aspect-ratio":"1.77"}}),n("span",{staticStyle:{position:"absolute",bottom:"0",right:"0",color:"red"}},[e._v(e._s(e.videoInfo.duration))])],1)]),n("v-row",[n("v-col",{attrs:{cols:"2"}},[null!==e.videoInfo.userId?n("router-link",{attrs:{to:"/u/"+e.videoInfo.userId}},[n("v-avatar",{attrs:{size:"48"}},[n("v-img",{attrs:{src:e.videoInfo.avatarUrl}})],1)],1):e._e()],1),n("v-col",{attrs:{cols:"10"}},[n("p",{staticStyle:{"font-size":"15px","margin-bottom":"0px",color:"black"}},[n("router-link",{staticStyle:{color:"black"},attrs:{to:"/video/"+e.videoInfo.videoId}},[e._v(" "+e._s(e.videoInfo.title)+" ")])],1),n("p",{staticStyle:{"font-size":"10px",color:"#606060"}},[null!==e.videoInfo.userId?n("router-link",{attrs:{to:"/u/"+e.videoInfo.userId}},[e._v(" "+e._s(e.videoInfo.username))]):e._e(),n("br"),e._v(" "+e._s(e.videoInfo.viewCount)+" 观看 "),n("span",{domProps:{innerHTML:e._s("&nbsp;&nbsp;")}}),e._v(" "+e._s(e.videoInfo.commentCount)+" 评论 "),n("span",{domProps:{innerHTML:e._s("&nbsp;&nbsp;")}})],1)])],1)],1)},i=[],o=n("9878"),a={name:"ItemCard",props:{video:{type:Object,default:function(){}}},data:function(){return{TimeUtil:o["a"],videoInfo:this.video}},created:function(){}},s=a,l=n("2877"),c=n("6544"),u=n.n(c),f=n("8212"),d=n("62ad"),p=n("adda"),h=n("0fd9"),v=Object(l["a"])(s,r,i,!1,null,null,null);t["a"]=v.exports;u()(v,{VAvatar:f["a"],VCol:d["a"],VImg:p["a"],VRow:h["a"]})},"3b96":function(e,t,n){
/*!
 * FilePondPluginFileValidateSize 2.2.1
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,r=n.Type,i=n.replaceInString,o=n.toNaturalFileSize;return t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var r=n("GET_MAX_FILE_SIZE");if(null!==r&&e.size>=r)return!1;var i=n("GET_MIN_FILE_SIZE");return!(null!==i&&e.size<=i)})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,r){if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return t(e);var a=n("GET_FILE_VALIDATE_SIZE_FILTER");if(a&&!a(e))return t(e);var s=n("GET_MAX_FILE_SIZE");if(null!==s&&e.size>=s)r({status:{main:n("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MAX_FILE_SIZE"),{filesize:o(s)})}});else{var l=n("GET_MIN_FILE_SIZE");if(null!==l&&e.size<=l)r({status:{main:n("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MIN_FILE_SIZE"),{filesize:o(l)})}});else{var c=n("GET_MAX_TOTAL_FILE_SIZE");if(null!==c){var u=n("GET_ACTIVE_ITEMS").reduce((function(e,t){return e+t.fileSize}),0);if(u>c)return void r({status:{main:n("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:o(c)})}})}t(e)}}}))})),{options:{allowFileSizeValidation:[!0,r.BOOLEAN],maxFileSize:[null,r.INT],minFileSize:[null,r.INT],maxTotalFileSize:[null,r.INT],fileValidateSizeFilter:[null,r.FUNCTION],labelMinFileSizeExceeded:["File is too small",r.STRING],labelMinFileSize:["Minimum file size is {filesize}",r.STRING],labelMaxFileSizeExceeded:["File is too large",r.STRING],labelMaxFileSize:["Maximum file size is {filesize}",r.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",r.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",r.STRING]}}},t="undefined"!==typeof window&&"undefined"!==typeof window.document;return t&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}))},4160:function(e,t,n){"use strict";var r=n("23e7"),i=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},4587:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"640px"}},[n("v-card",{attrs:{color:"white"}},[n("v-card-title",[n("v-avatar",[n("img",{attrs:{src:e.item.avatarUrl,alt:"social"}})]),n("span",{staticClass:"text-body-1 font-weight-light"},[e._v(e._s(e.item.username))]),n("span",{staticClass:"text-body-1 font-weight-light"},[e._v(e._s(e.item.createdAt))])],1),n("v-card-text",{attrs:{"class-name":"text-h5 font-weight-bold"}},[n("span",{domProps:{innerHTML:e._s(e.item.text)}}),0!==e.item.imageUrls.length?n("v-row",e._l(e.item.imageUrls,(function(t){return n("v-col",{key:t,staticClass:"d-flex child-flex",attrs:{cols:"4"}},[n("v-img",{staticClass:"grey lighten-2",attrs:{src:t.thumbnailUrl,"lazy-src":t.thumbnailUrl,"aspect-ratio":"1"},on:{click:function(t){return e.showImage(e.item.imageUrls)}},scopedSlots:e._u([{key:"placeholder",fn:function(){return[n("v-row",{staticClass:"fill-height ma-0",attrs:{align:"center",justify:"center"}},[n("v-progress-circular",{attrs:{indeterminate:"",color:"grey lighten-5"}})],1)]},proxy:!0}],null,!0)})],1)})),1):e._e()],1),n("v-icon",{attrs:{small:"",left:""}},[e._v(" mdi-twitter ")])],1)],1)},i=[],o=n("5530"),a=function(e){return s(new Date(e))};function s(e){var t=6e4,n=60*t,r=24*n,i=30*r,o=(new Date).getTime(),a=o-e;if(!(a<0)){var s=a/i,l=a/(7*r),c=a/r,u=a/n,f=a/t,d="";return d=s>=1?parseInt(s)+"月前":l>=1?parseInt(l)+"周前":c>=1?parseInt(c)+"天前":u>=1?parseInt(u)+"小时前":f>=1?parseInt(f)+"分钟前":"刚刚",d}}n("4d63"),n("ac1f"),n("25f0"),n("5319");var l=function(e){var t=e.replace("thumbnail","thumb180");return t=t.replace("wx1","wx3"),t},c=function(e){var t=e.replace("thumbnail","bmiddle");return t},u=function(e){var t;return t=e>999?e>9999?"9k+":Math.round(e/1e3)+"k+":e,t},f=n("2f62"),d={name:"StatusCard",props:{item:{type:Object,default:function(){}}},data:function(){return{}},methods:Object(o["a"])(Object(o["a"])({},Object(f["b"])(["setImageZoom","setDetailContent"])),{},{showImage:function(e){this.$viewerApi({images:e,options:{movable:!1,fullscreen:!1,keyboard:!0}})},goDetailContent:function(){this.setDetailContent(this.item),this.$router.push({name:"detail-content"})},formatTime:function(e){return a(e)},compareImgSize:function(e){var t=e/3;return t>=1},formatThumbImg:function(e){return l(e)},formatMidImg:function(e){return c(e)},formatNum:function(e){return u(e)},imageZoom:function(e){this.setImageZoom(this.formatMidImg(e)),this.$router.push({name:"imageZoom"})},imgClass:function(e){var t="";switch(e){case 1:t="img-li-one";break;case 2:case 4:t="img-li-two";break;default:t="img-li-other";break}return t}})},p=d,h=n("2877"),v=n("6544"),g=n.n(v),m=n("8212"),E=n("b0af"),_=n("99d9"),I=n("62ad"),T=n("132d"),y=n("adda"),O=n("490a"),R=n("0fd9"),b=Object(h["a"])(p,r,i,!1,null,null,null);t["a"]=b.exports;g()(b,{VAvatar:m["a"],VCard:E["a"],VCardText:_["b"],VCardTitle:_["c"],VCol:I["a"],VIcon:T["a"],VImg:y["a"],VProgressCircular:O["a"],VRow:R["a"]})},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("7156"),s=n("9bf2").f,l=n("241c").f,c=n("44e7"),u=n("ad6d"),f=n("9f7f"),d=n("6eeb"),p=n("d039"),h=n("69f3").set,v=n("2626"),g=n("b622"),m=g("match"),E=i.RegExp,_=E.prototype,I=/a/g,T=/a/g,y=new E(I)!==I,O=f.UNSUPPORTED_Y,R=r&&o("RegExp",!y||O||p((function(){return T[m]=!1,E(I)!=I||E(T)==T||"/a/i"!=E(I,"i")})));if(R){var b=function(e,t){var n,r=this instanceof b,i=c(e),o=void 0===t;if(!r&&i&&e.constructor===b&&o)return e;y?i&&!o&&(e=e.source):e instanceof b&&(o&&(t=u.call(e)),e=e.source),O&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(y?new E(e,t):E(e,t),r?this:_,b);return O&&n&&h(s,{sticky:n}),s},w=function(e){e in b||s(b,e,{configurable:!0,get:function(){return E[e]},set:function(t){E[e]=t}})},S=l(E),A=0;while(S.length>A)w(S[A++]);_.constructor=b,b.prototype=_,d(i,"RegExp",b)}v("RegExp")},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=n("ae40"),s=o("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,f,d,p,h=i(e),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,E=void 0!==m,_=c(h),I=0;if(E&&(m=r(m,g>2?arguments[2]:void 0,2)),void 0==_||v==Array&&a(_))for(t=s(h.length),n=new v(t);t>I;I++)p=E?m(h[I],I):h[I],l(n,I,p);else for(f=_.call(h),d=f.next,n=new v;!(u=d.call(f)).done;I++)p=E?o(f,m,[u.value,I],!0):u.value,l(n,I,p);return n.length=I,n}},"4ed3":function(e,t,n){},5319:function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),o=n("7b0b"),a=n("50c4"),s=n("a691"),l=n("1d80"),c=n("8aa5"),u=n("14c3"),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g,g=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,E=r.REPLACE_KEEPS_$0,_=m?"$":"$0";return[function(n,r){var i=l(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!m&&E||"string"===typeof r&&-1===r.indexOf(_)){var o=n(t,e,this,r);if(o.done)return o.value}var l=i(e),p=String(this),h="function"===typeof r;h||(r=String(r));var v=l.global;if(v){var T=l.unicode;l.lastIndex=0}var y=[];while(1){var O=u(l,p);if(null===O)break;if(y.push(O),!v)break;var R=String(O[0]);""===R&&(l.lastIndex=c(p,a(l.lastIndex),T))}for(var b="",w=0,S=0;S<y.length;S++){O=y[S];for(var A=String(O[0]),D=f(d(s(O.index),p.length),0),M=[],P=1;P<O.length;P++)M.push(g(O[P]));var C=O.groups;if(h){var L=[A].concat(M,D,p);void 0!==C&&L.push(C);var x=String(r.apply(void 0,L))}else x=I(A,p,D,M,C,r);D>=w&&(b+=p.slice(w,D)+x,w=D+A.length)}return b+p.slice(w)}];function I(e,n,r,i,a,s){var l=r+e.length,c=i.length,u=v;return void 0!==a&&(a=o(a),u=h),t.call(s,u,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>c){var f=p(u/10);return 0===f?t:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[u-1]}return void 0===s?"":s}))}}))},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},"57c8":function(e,t,n){},"604c":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n("166a");var r=n("a452"),i=n("7560"),o=n("58df"),a=n("d9bd");const s=Object(o["a"])(r["a"],i["a"]).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean},data(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes(){return{"v-item-group":!0,...this.themeClasses}},selectedIndex(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem(){if(!this.multiple)return this.selectedItems[0]},selectedItems(){return this.items.filter((e,t)=>this.toggleMethod(this.getValue(e,t)))},selectedValues(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod(){if(!this.multiple)return e=>this.internalValue===e;const e=this.internalValue;return Array.isArray(e)?t=>e.includes(t):()=>!1}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created(){this.multiple&&!Array.isArray(this.internalValue)&&Object(a["c"])("Model must be bound to an array if the multiple property is true.",this)},methods:{genData(){return{class:this.classes}},getValue(e,t){return null==e.value||""===e.value?t:e.value},onClick(e){this.updateInternalValue(this.getValue(e,this.items.indexOf(e)))},register(e){const t=this.items.push(e)-1;e.$on("change",()=>this.onClick(e)),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(e,t)},unregister(e){if(this._isDestroyed)return;const t=this.items.indexOf(e),n=this.getValue(e,t);this.items.splice(t,1);const r=this.selectedValues.indexOf(n);if(!(r<0)){if(!this.mandatory)return this.updateInternalValue(n);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter(e=>e!==n):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}},updateItem(e,t){const n=this.getValue(e,t);e.isActive=this.toggleMethod(n)},updateItemsState(){this.$nextTick(()=>{if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)})},updateInternalValue(e){this.multiple?this.updateMultiple(e):this.updateSingle(e)},updateMandatory(e){if(!this.items.length)return;const t=this.items.slice();e&&t.reverse();const n=t.find(e=>!e.disabled);if(!n)return;const r=this.items.indexOf(n);this.updateInternalValue(this.getValue(n,r))},updateMultiple(e){const t=Array.isArray(this.internalValue)?this.internalValue:[],n=t.slice(),r=n.findIndex(t=>t===e);this.mandatory&&r>-1&&n.length-1<1||null!=this.max&&r<0&&n.length+1>this.max||(r>-1?n.splice(r,1):n.push(e),this.internalValue=n)},updateSingle(e){const t=e===this.internalValue;this.mandatory&&t||(this.internalValue=t?void 0:e)}},render(e){return e("div",this.genData(),this.$slots.default)}});s.extend({name:"v-item-group",provide(){return{itemGroup:this}}})},"608c":function(e,t,n){},"615b":function(e,t,n){},"62ad":function(e,t,n){"use strict";n("4b85");var r=n("2b0e"),i=n("d9f7"),o=n("80d2");const a=["sm","md","lg","xl"],s=(()=>a.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),l=(()=>a.reduce((e,t)=>(e["offset"+Object(o["E"])(t)]={type:[String,Number],default:null},e),{}))(),c=(()=>a.reduce((e,t)=>(e["order"+Object(o["E"])(t)]={type:[String,Number],default:null},e),{}))(),u={col:Object.keys(s),offset:Object.keys(l),order:Object.keys(c)};function f(e,t,n){let r=e;if(null!=n&&!1!==n){if(t){const n=t.replace(e,"");r+="-"+n}return"col"!==e||""!==n&&!0!==n?(r+="-"+n,r.toLowerCase()):r.toLowerCase()}}const d=new Map;t["a"]=r["default"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...s,offset:{type:[String,Number],default:null},...l,order:{type:[String,Number],default:null},...c,alignSelf:{type:String,default:null,validator:e=>["auto","start","end","center","baseline","stretch"].includes(e)},tag:{type:String,default:"div"}},render(e,{props:t,data:n,children:r,parent:o}){let a="";for(const i in t)a+=String(t[i]);let s=d.get(a);if(!s){let e;for(e in s=[],u)u[e].forEach(n=>{const r=t[n],i=f(e,n,r);i&&s.push(i)});const n=s.some(e=>e.startsWith("col-"));s.push({col:!n||!t.cols,["col-"+t.cols]:t.cols,["offset-"+t.offset]:t.offset,["order-"+t.order]:t.order,["align-self-"+t.alignSelf]:t.alignSelf}),d.set(a,s)}return e(t.tag,Object(i["a"])(n,{class:s}),r)}})},"6b75":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},7156:function(e,t,n){var r=n("861d"),i=n("d2bb");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},"71a3":function(e,t,n){"use strict";var r=n("4e82"),i=n("1c87"),o=n("7560"),a=n("80d2"),s=n("58df");const l=Object(s["a"])(i["a"],Object(r["a"])("tabsBar"),o["a"]);t["a"]=l.extend().extend().extend({name:"v-tab",props:{ripple:{type:[Boolean,Object],default:!0}},data:()=>({proxyClass:"v-tab--active"}),computed:{classes(){return{"v-tab":!0,...i["a"].options.computed.classes.call(this),"v-tab--disabled":this.disabled,...this.groupClasses}},value(){let e=this.to||this.href||"";if(this.$router&&this.to===Object(this.to)){const t=this.$router.resolve(this.to,this.$route,this.append);e=t.href}return e.replace("#","")}},mounted(){this.onRouteChange()},methods:{click(e){this.href&&this.href.indexOf("#")>-1&&e.preventDefault(),e.detail&&this.$el.blur(),this.$emit("click",e),this.to||this.toggle()}},render(e){const{tag:t,data:n}=this.generateRouteLink();return n.attrs={...n.attrs,"aria-selected":String(this.isActive),role:"tab",tabindex:0},n.on={...n.on,keydown:e=>{e.keyCode===a["x"].enter&&this.click(e),this.$emit("keydown",e)}},e(t,n,this.$slots.default)}})},8212:function(e,t,n){"use strict";n("3408");var r=n("a9ad"),i=n("24b2"),o=n("a236"),a=n("80d2"),s=n("58df");t["a"]=Object(s["a"])(r["a"],i["a"],o["a"]).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes(){return{"v-avatar--left":this.left,"v-avatar--right":this.right,...this.roundedClasses}},styles(){return{height:Object(a["g"])(this.size),minWidth:Object(a["g"])(this.size),width:Object(a["g"])(this.size),...this.measurableStyles}}},render(e){const t={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return e("div",this.setBackgroundColor(this.color,t),this.$slots.default)}})},8418:function(e,t,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8efc":function(e,t,n){},9263:function(e,t,n){"use strict";var r=n("ad6d"),i=n("9f7f"),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],f=l||u||c;f&&(s=function(e){var t,n,i,s,f=this,d=c&&f.sticky,p=r.call(f),h=f.source,v=0,g=e;return d&&(p=p.replace("y",""),-1===p.indexOf("g")&&(p+="g"),g=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,v++),n=new RegExp("^(?:"+h+")",p)),u&&(n=new RegExp("^"+h+"$(?!\\s)",p)),l&&(t=f.lastIndex),i=o.call(d?n:f,g),d?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:l&&i&&(f.lastIndex=f.global?i.index+i[0].length:t),u&&i&&i.length>1&&a.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),e.exports=s},9878:function(e,t,n){"use strict";n("b65f");function r(e){if(""===e||null==e)return"";var t=new Date(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()}function i(e){if(""===e||null==e)return"";var t=new Date(e);return t.getFullYear()+"年"+(t.getMonth()+1)+"月"+t.getDate()+"日 "+t.getHours()+"时"+t.getMinutes()+"分"}function o(e,t){return i(e)+" ~ "+i(t)}function a(e){var t=(new Date).getTime(),n=t-e;return n=Math.trunc(n/1e3),n<60?n+"秒前":(n=Math.trunc(n/60),n<60?n+"分钟前":(n=Math.trunc(n/60),n<24?n+"小时前":(n=Math.trunc(n/24),n<30?n+"天前":r(e))))}var s,l,c={timeToNowStrning:a,renderTime:r,formateTimeToChinese:i,formateTime:o},u=c,f=n("2877"),d=Object(f["a"])(u,s,l,!1,null,null,null);t["a"]=d.exports},"99af":function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),f=n("1dde"),d=n("b622"),p=n("2d00"),h=d("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",m=p>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),E=f("concat"),_=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)},I=!m||!E;r({target:"Array",proto:!0,forced:I},{concat:function(e){var t,n,r,i,o,a=s(this),f=u(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],_(o)){if(i=l(o.length),d+i>v)throw TypeError(g);for(n=0;n<i;n++,d++)n in o&&c(f,d,o[n])}else{if(d>=v)throw TypeError(g);c(f,d++,o)}return f.length=d,f}})},"99d9":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var r=n("b0af"),i=n("80d2");const o=Object(i["h"])("v-card__actions"),a=Object(i["h"])("v-card__subtitle"),s=Object(i["h"])("v-card__text"),l=Object(i["h"])("v-card__title");r["a"]},"9f7f":function(e,t,n){"use strict";var r=n("d039");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a630:function(e,t,n){var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a844:function(e,t,n){"use strict";n("1681");var r=n("8654"),i=n("58df");const o=Object(i["a"])(r["a"]);t["a"]=o.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:e=>!isNaN(parseFloat(e))},rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseInt(e,10))}},computed:{classes(){return{"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle,...r["a"].options.computed.classes.call(this)}},noResizeHandle(){return this.noResize||this.autoGrow}},watch:{lazyValue(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted(){setTimeout(()=>{this.autoGrow&&this.calculateInputHeight()},0)},methods:{calculateInputHeight(){const e=this.$refs.input;if(!e)return;e.style.height="0";const t=e.scrollHeight,n=parseInt(this.rows,10)*parseFloat(this.rowHeight);e.style.height=Math.max(n,t)+"px"},genInput(){const e=r["a"].options.methods.genInput.call(this);return e.tag="textarea",delete e.data.attrs.type,e.data.attrs.rows=this.rows,e},onInput(e){r["a"].options.methods.onInput.call(this,e),this.autoGrow&&this.calculateInputHeight()},onKeyDown(e){this.isFocused&&13===e.keyCode&&e.stopPropagation(),this.$emit("keydown",e)}}})},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},adda:function(e,t,n){"use strict";n("8efc");var r=n("90a2"),i=(n("36a7"),n("24b2")),o=n("58df"),a=Object(o["a"])(i["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number]},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content"},this.$slots.default)}},render(e){return e("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),s=a,l=n("7560"),c=n("d9f7"),u=n("d9bd");const f="undefined"!==typeof window&&"IntersectionObserver"in window;t["a"]=Object(o["a"])(s,l["a"]).extend({name:"v-img",directives:{intersect:r["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const e=[],t=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&e.push(`linear-gradient(${this.gradient})`),t&&e.push(`url("${t}")`);const n=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:e.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[n]):n}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(e,t,n){if(!f||n||this.eager){if(this.normalisedSrc.lazySrc){const e=new Image;e.src=this.normalisedSrc.lazySrc,this.pollForSize(e,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const e=new Image;this.image=e,e.onload=()=>{e.decode?e.decode().catch(e=>{Object(u["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(e.message?"\nOriginal error: "+e.message:""),this)}).then(this.onLoad):this.onLoad()},e.onerror=this.onError,this.hasError=!1,e.src=this.normalisedSrc.src,this.sizes&&(e.sizes=this.sizes),this.normalisedSrc.srcset&&(e.srcset=this.normalisedSrc.srcset),this.aspectRatio||this.pollForSize(e),this.getSrc()},pollForSize(e,t=100){const n=()=>{const{naturalHeight:r,naturalWidth:i}=e;r||i?(this.naturalWidth=i,this.calculatedAspectRatio=i/r):null!=t&&!this.hasError&&setTimeout(n,t)};n()},genContent(){const e=s.options.methods.genContent.call(this);return this.naturalWidth&&this._b(e.data,"div",{style:{width:this.naturalWidth+"px"}}),e},__genPlaceholder(){if(this.$slots.placeholder){const e=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},e):e[0]}}},render(e){const t=s.options.render.call(this,e),n=Object(c["a"])(t.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:f?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return t.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],e(t.tag,n,t.children)}})},afdd:function(e,t,n){"use strict";var r=n("8336");t["a"]=r["a"]},b0af:function(e,t,n){"use strict";n("615b");var r=n("10d2"),i=n("297c"),o=n("1c87"),a=n("58df");t["a"]=Object(a["a"])(i["a"],o["a"],r["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...o["a"].options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...r["a"].options.computed.classes.call(this)}},styles(){const e={...r["a"].options.computed.styles.call(this)};return this.img&&(e.background=`url("${this.img}") center center / cover no-repeat`),e}},methods:{genProgress(){const e=i["a"].options.methods.genProgress.call(this);return e?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[e]):null}},render(e){const{tag:t,data:n}=this.generateRouteLink();return n.style=this.styles,this.isClickable&&(n.attrs=n.attrs||{},n.attrs.tabindex=0),e(t,this.setBackgroundColor(this.color,n),[this.genProgress(),this.$slots.default])}})},b64b:function(e,t,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b65f:function(e,t,n){var r=n("23e7"),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?o:i)(e)}})},b85c:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");var r=n("06c5");function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw a}}}}},c062:function(e,t,n){
/*!
 * FilePond 4.20.1
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
(function(e,n){n(t)})(0,(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(){return Object.assign({},r)},s=function(){var e=[].concat(i);return i.length=0,e},l=function(){var e=[].concat(o);o.length=0,e.forEach((function(e){var t=e.type,n=e.data;c(t,n)}))},c=function(e,t,n){!n||document.hidden?(p[e]&&p[e](t),i.push({type:e,data:t})):o.push({type:e,data:t})},u=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 d[e]?(t=d)[e].apply(t,r):null},f={getState:a,processActionQueue:s,processDispatchQueue:l,dispatch:c,query:u},d={};t.forEach((function(e){d=Object.assign({},e(r),{},d)}));var p={};return n.forEach((function(e){p=Object.assign({},e(c,u,r),{},p)})),f},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)},s="http://www.w3.org/2000/svg",l=["svg","path"],c=function(e){return l.includes(e)},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===typeof t&&(n=t,t=null);var r=c(e)?document.createElementNS(s,e):document.createElement(e);return t&&(c(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){"undefined"!==typeof n&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)}},d=function(e,t){return function(e,n){return"undefined"!==typeof 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}},h=function(){return"undefined"!==typeof window&&"undefined"!==typeof window.document}(),v=function(){return h},g=v()?u("svg"):{},m="children"in g?function(e){return e.children.length}:function(e){return e.childNodes.length},E=function(e,t,n,r){var i=n[0]||e.left,o=n[1]||e.top,a=i+e.width,s=o+e.height*(r[1]||1),l={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:s}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){_(l.inner,Object.assign({},e.inner)),_(l.outer,Object.assign({},e.outer))})),I(l.inner),l.outer.bottom+=l.element.marginBottom,l.outer.right+=l.element.marginRight,I(l.outer),l},_=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},I=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},T=function(e){return"number"===typeof e},y=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},O=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,s=void 0===a?10:a,l=null,c=null,u=0,f=!1,d=function(e,t){if(!f){if(!T(l)||!T(c))return f=!0,void(u=0);var r=-(c-l)*n;u+=r/s,c+=u,u*=i,y(c,l,u)||t?(c=l,u=0,f=!0,h.onupdate(c),h.oncomplete(c)):h.onupdate(c)}},p=function(e){if(T(e)&&!T(c)&&(c=e),null===l&&(l=e,c=e),l=e,c===l||"undefined"===typeof l)return f=!0,u=0,h.onupdate(c),void h.oncomplete(c);f=!1},h=o({interpolate:d,target:{set:p,get:function(){return l}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return h},R=function(e){return e<.5?2*e*e:(4-2*e)*e-1},b=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,s=void 0===a?R:a,l=n.delay,c=void 0===l?0:l,u=null,f=!0,d=!1,p=null,h=function(n,r){f||null===p||(null===u&&(u=n),n-u<c||(e=n-u-c,e>=i||r?(e=1,t=d?0:1,v.onupdate(t*p),v.oncomplete(t*p),f=!0):(t=e/i,v.onupdate((e>=0?s(d?1-t:t):0)*p))))},v=o({interpolate:h,target:{get:function(){return d?0:p},set:function(e){if(null===p)return p=e,v.onupdate(e),void v.oncomplete(e);e<p?(p=1,d=!0):(d=!1,p=e),f=!1,u=null}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return v},w={spring:O,tween:b},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 w[i]?w[i](o):null},A=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t=Array.isArray(t)?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})}))}))},D=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,a=Object.assign({},n),s=[];return i(t,(function(e,t){var i=S(t);if(i){i.onupdate=function(t){n[e]=t},i.target=a[e];var l={key:e,setter:function(e){i.target!==e&&(i.target=e)},getter:function(){return n[e]}};A([l],[r,o],n,!0),s.push(i)}})),{write:function(e){var t=document.hidden,n=!0;return s.forEach((function(r){r.resting||(n=!1),r.interpolate(e,t)})),n},destroy:function(){}}},M=function(e){return function(t,n){e.addEventListener(t,n)}},P=function(e){return function(t,n){e.removeEventListener(t,n)}},C=function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t=e.viewExternalAPI,n=(e.viewState,e.view),r=[],i=M(n.element),o=P(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)}))}}},L=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewExternalAPI;A(t,r,n)},x=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},G=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,i=e.viewExternalAPI,o=e.view,a=Object.assign({},n),s={};A(t,[r,i],n);var l=function(){return[n["translateX"]||0,n["translateY"]||0]},c=function(){return[n["scaleX"]||0,n["scaleY"]||0]},u=function(){return o.rect?E(o.rect,o.childViews,l(),c()):null};return r.rect={get:u},i.rect={get:u},t.forEach((function(e){n[e]="undefined"===typeof a[e]?N[e]:a[e]})),{write:function(){if(V(s,n))return B(o.element,n),Object.assign(s,Object.assign({},n)),!0},destroy:function(){}}},V=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},B=function(e,t){var n=t.opacity,r=t.perspective,i=t.translateX,o=t.translateY,a=t.scaleX,s=t.scaleY,l=t.rotateX,c=t.rotateY,u=t.rotateZ,f=t.originX,d=t.originY,p=t.width,h=t.height,v="",g="";(x(f)||x(d))&&(g+="transform-origin: "+(f||0)+"px "+(d||0)+"px;"),x(r)&&(v+="perspective("+r+"px) "),(x(i)||x(o))&&(v+="translate3d("+(i||0)+"px, "+(o||0)+"px, 0) "),(x(a)||x(s))&&(v+="scale3d("+(x(a)?a:1)+", "+(x(s)?s:1)+", 1) "),x(u)&&(v+="rotateZ("+u+"rad) "),x(l)&&(v+="rotateX("+l+"rad) "),x(c)&&(v+="rotateY("+c+"rad) "),v.length&&(g+="transform:"+v+";"),x(n)&&(g+="opacity:"+n+";",0===n&&(g+="visibility:hidden;"),n<1&&(g+="pointer-events:none;")),x(h)&&(g+="height:"+h+"px;"),x(p)&&(g+="width:"+p+"px;");var m=e.elementCurrentStyle||"";g.length===m.length&&g===m||(e.style.cssText=g,e.elementCurrentStyle=g)},k={styles:G,listeners:C,animations:D,apis:L},U=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,s=void 0===a?{}:a,l=e.read,c=void 0===l?function(){}:l,h=e.write,v=void 0===h?function(){}:h,g=e.create,_=void 0===g?function(){}:g,I=e.destroy,T=void 0===I?function(){}:I,y=e.filterFrameActionsForChild,O=void 0===y?function(e,t){return t}:y,R=e.didCreateView,b=void 0===R?function(){}:R,w=e.didWriteView,S=void 0===w?function(){}:w,A=e.ignoreRect,D=void 0!==A&&A,M=e.ignoreRectUpdate,P=void 0!==M&&M,C=e.mixins,L=void 0===C?[]:C;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=u(n,"filepond--"+i,s),a=window.getComputedStyle(r,null),l=U(),h=null,g=!1,I=[],y=[],R={},w={},A=[v],M=[c],C=[T],x=function(){return r},N=function(){return I.concat()},G=function(){return R},V=function(e){return function(t,n){return t(e,n)}},B=function(){return h||(h=E(l,I,[0,0],[1,1]),h)},F=function(){return a},j=function(){h=null,I.forEach((function(e){return e._read()}));var e=!(P&&l.width&&l.height);e&&U(l,r,a);var n={root:X,props:t,rect:l};M.forEach((function(e){return e(n)}))},q=function(e,n,r){var i=0===n.length;return A.forEach((function(o){var a=o({props:t,root:X,actions:n,timestamp:e,shouldOptimize:r});!1===a&&(i=!1)})),y.forEach((function(t){var n=t.write(e);!1===n&&(i=!1)})),I.filter((function(e){return!!e.element.parentNode})).forEach((function(t){var o=t._write(e,O(t,n),r);o||(i=!1)})),I.forEach((function(t,o){t.element.parentNode||(X.appendChild(t.element,o),t._read(),t._write(e,O(t,n),r),i=!1)})),g=i,S({props:t,root:X,actions:n,timestamp:e}),i},z=function(){y.forEach((function(e){return e.destroy()})),C.forEach((function(e){e({root:X,props:t})})),I.forEach((function(e){return e._destroy()}))},Y={element:{get:x},style:{get:F},childViews:{get:N}},$=Object.assign({},Y,{rect:{get:B},ref:{get:G},is:function(e){return i===e},appendChild:f(r),createChildView:V(e),linkView:function(e){return I.push(e),e},unlinkView:function(e){I.splice(I.indexOf(e),1)},appendChildView:d(r,I),removeChildView:p(r,I),registerWriter:function(e){return A.push(e)},registerReader:function(e){return M.push(e)},registerDestroyer:function(e){return C.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),W={element:{get:x},childViews:{get:N},rect:{get:B},resting:{get:function(){return g}},isRectIgnored:function(){return D},_read:j,_write:q,_destroy:z},H=Object.assign({},Y,{rect:{get:function(){return l}}});Object.keys(L).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var n=k[e]({mixinConfig:L[e],viewProps:t,viewState:w,viewInternalAPI:$,viewExternalAPI:W,view:o(H)});n&&y.push(n)}));var X=o($);_({root:X,props:t});var Z=m(r);return I.forEach((function(e,t){X.appendChild(e.element,Z+t)})),b(X),o(W)}},j=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,s=null,l=null,c=null,u=function(){document.hidden?(l=function(){return window.setTimeout((function(){return f(performance.now())}),o)},c=function(){return window.clearTimeout(s)}):(l=function(){return window.requestAnimationFrame(f)},c=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",(function(){c&&c(),u(),f(performance.now())}));var f=function e(t){s=l(e),a||(a=t);var n=t-a;n<=o||(a=t-n%o,i.readers.forEach((function(e){return e()})),i.writers.forEach((function(e){return e(t)})))};return u(),f(performance.now()),{pause:function(){c(s)}}},q=function(e,t){return function(n){var r=n.root,i=n.props,o=n.actions,a=void 0===o?[]:o,s=n.timestamp,l=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:s,shouldOptimize:l})})),t&&t({root:r,props:i,actions:a,timestamp:s,shouldOptimize:l})}},z=function(e,t){return t.parentNode.insertBefore(e,t)},Y=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},$=function(e){return Array.isArray(e)},W=function(e){return null==e},H=function(e){return e.trim()},X=function(e){return""+e},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return W(e)?[]:$(e)?e:X(e).split(t).map(H).filter((function(e){return e.length}))},Q=function(e){return"boolean"===typeof e},K=function(e){return Q(e)?e:"true"===e},J=function(e){return"string"===typeof e},ee=function(e){return T(e)?e:J(e)?X(e).replace(/[a-z]+/gi,""):0},te=function(e){return parseInt(ee(e),10)},ne=function(e){return parseFloat(ee(e))},re=function(e){return T(e)&&isFinite(e)&&Math.floor(e)===e},ie=function(e){if(re(e))return e;var t=X(e).trim();return/MB$/i.test(t)?(t=t.replace(/MB$i/,"").trim(),1e3*te(t)*1e3):/KB/i.test(t)?(t=t.replace(/KB$i/,"").trim(),1e3*te(t)):te(t)},oe=function(e){return"function"===typeof e},ae=function(e){var t=self,n=e.split("."),r=null;while(r=n.shift())if(t=t[r],!t)return null;return t},se={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},le=function(e){var t={};return t.url=J(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},i(se,(function(n){t[n]=ce(n,e[n],se[n],t.timeout,t.headers)})),t.remove=e.remove||null,delete t.headers,t},ce=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(J(t))return o.url=t,o;if(Object.assign(o,t),J(o.headers)){var a=o.headers.split(/:(.+)/);o.headers={header:a[0],value:a[1]}}return o.withCredentials=K(o.withCredentials),o},ue=function(e){return le(e)},fe=function(e){return null===e},de=function(e){return"object"===typeof e&&null!==e},pe=function(e){return de(e)&&J(e.url)&&de(e.process)&&de(e.revert)&&de(e.restore)&&de(e.fetch)},he=function(e){return $(e)?"array":fe(e)?"null":re(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":pe(e)?"api":typeof e},ve=function(e){return e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},ge={array:Z,boolean:K,int:function(e){return"bytes"===he(e)?ie(e):te(e)},number:ne,float:ne,bytes:ie,string:function(e){return oe(e)?e:X(e)},function:function(e){return ae(e)},serverapi:ue,object:function(e){try{return JSON.parse(ve(e))}catch(t){return null}}},me=function(e,t){return ge[t](e)},Ee=function(e,t,n){if(e===t)return e;var r=he(e);if(r!==n){var i=me(e,n);if(r=he(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},_e=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(r){n=Ee(r,e,t)}}},Ie=function(e){var t={};return i(e,(function(n){var r=e[n];t[n]=_e(r[0],r[1])})),o(t)},Te=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:Ie(e)}},ye=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)},Oe=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_"+ye(t,"_").toUpperCase(),{value:n})}}})),n},Re=function(e){return function(t,n,r){var o={};return i(e,(function(e){var n=ye(e,"_").toUpperCase();o["SET_"+n]=function(i){try{r.options[e]=i.value}catch(o){}t("DID_SET_"+n,{value:r.options[e]})}})),o}},be=function(e){return function(t){var n={};return i(e,(function(e){n["GET_"+ye(e,"_").toUpperCase()]=function(n){return t.options[e]}})),n}},we={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Se=function(){return Math.random().toString(36).substr(2,9)};function Ae(e){this.wrapped=e}function De(e){var t,n;function r(e,r){return new Promise((function(o,a){var s={key:e,arg:r,resolve:o,reject:a,next:null};n?n=n.next=s:(t=n=s,i(e,r))}))}function i(t,n){try{var r=e[t](n),a=r.value,s=a instanceof Ae;Promise.resolve(s?a.wrapped:a).then((function(e){s?i("next",e):o(r.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(l){o("throw",l)}}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});break}t=t.next,t?i(t.key,t.arg):n=null}this._invoke=r,"function"!==typeof e.return&&(this.return=void 0)}function Me(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 Pe(e,t){if(null==e)return{};var n,r,i=Me(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"===typeof Symbol&&Symbol.asyncIterator&&(De.prototype[Symbol.asyncIterator]=function(){return this}),De.prototype.next=function(e){return this._invoke("next",e)},De.prototype.throw=function(e){return this._invoke("throw",e)},De.prototype.return=function(e){return this._invoke("return",e)};function Ce(e){return Le(e)||xe(e)||Ne()}function Le(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 xe(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function Ne(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var Ge=function(e,t){return e.splice(t,1)},Ve=function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},Be=function(){var e=[],t=function(t,n){Ge(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 Ve((function(){return e.apply(void 0,Ce(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}},ke=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"],Fe=function(e){var t={};return ke(e,t,Ue),t},je=function(e){e.forEach((function(t,n){t.released&&Ge(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},ze={INPUT:1,LIMBO:2,LOCAL:3},Ye=function(e){return/[^0-9]+/.exec(e)},$e=function(){return Ye(1.1.toLocaleString())[0]},We=function(){var e=$e(),t=1e3.toLocaleString(),n=1e3.toString();return t!==n?Ye(t)[0]:"."===e?",":"."},He={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Xe=[],Ze=function(e,t,n){return new Promise((function(r,i){var o=Xe.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)}))},Qe=function(e,t,n){return Xe.filter((function(t){return t.key===e})).map((function(e){return e.cb(t,n)}))},Ke=function(e,t){return Xe.push({key:e,cb:t})},Je=function(e){return Object.assign(nt,e)},et=function(){return Object.assign({},nt)},tt=function(e){i(e,(function(e,t){nt[e]&&(nt[e][0]=Ee(t,nt[e][0],nt[e][1]))}))},nt={id:[null,He.STRING],name:["filepond",He.STRING],disabled:[!1,He.BOOLEAN],className:[null,He.STRING],required:[!1,He.BOOLEAN],captureMethod:[null,He.STRING],allowSyncAcceptAttribute:[!0,He.BOOLEAN],allowDrop:[!0,He.BOOLEAN],allowBrowse:[!0,He.BOOLEAN],allowPaste:[!0,He.BOOLEAN],allowMultiple:[!1,He.BOOLEAN],allowReplace:[!0,He.BOOLEAN],allowRevert:[!0,He.BOOLEAN],allowRemove:[!0,He.BOOLEAN],allowProcess:[!0,He.BOOLEAN],allowReorder:[!1,He.BOOLEAN],allowDirectoriesOnly:[!1,He.BOOLEAN],forceRevert:[!1,He.BOOLEAN],maxFiles:[null,He.INT],checkValidity:[!1,He.BOOLEAN],itemInsertLocationFreedom:[!0,He.BOOLEAN],itemInsertLocation:["before",He.STRING],itemInsertInterval:[75,He.INT],dropOnPage:[!1,He.BOOLEAN],dropOnElement:[!0,He.BOOLEAN],dropValidation:[!1,He.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],He.ARRAY],instantUpload:[!0,He.BOOLEAN],maxParallelUploads:[2,He.INT],chunkUploads:[!1,He.BOOLEAN],chunkForce:[!1,He.BOOLEAN],chunkSize:[5e6,He.INT],chunkRetryDelays:[[500,1e3,3e3],He.Array],server:[null,He.SERVER_API],labelDecimalSeparator:[$e(),He.STRING],labelThousandsSeparator:[We(),He.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',He.STRING],labelInvalidField:["Field contains invalid files",He.STRING],labelFileWaitingForSize:["Waiting for size",He.STRING],labelFileSizeNotAvailable:["Size not available",He.STRING],labelFileCountSingular:["file in list",He.STRING],labelFileCountPlural:["files in list",He.STRING],labelFileLoading:["Loading",He.STRING],labelFileAdded:["Added",He.STRING],labelFileLoadError:["Error during load",He.STRING],labelFileRemoved:["Removed",He.STRING],labelFileRemoveError:["Error during remove",He.STRING],labelFileProcessing:["Uploading",He.STRING],labelFileProcessingComplete:["Upload complete",He.STRING],labelFileProcessingAborted:["Upload cancelled",He.STRING],labelFileProcessingError:["Error during upload",He.STRING],labelFileProcessingRevertError:["Error during revert",He.STRING],labelTapToCancel:["tap to cancel",He.STRING],labelTapToRetry:["tap to retry",He.STRING],labelTapToUndo:["tap to undo",He.STRING],labelButtonRemoveItem:["Remove",He.STRING],labelButtonAbortItemLoad:["Abort",He.STRING],labelButtonRetryItemLoad:["Retry",He.STRING],labelButtonAbortItemProcessing:["Cancel",He.STRING],labelButtonUndoItemProcessing:["Undo",He.STRING],labelButtonRetryItemProcessing:["Retry",He.STRING],labelButtonProcessItem:["Upload",He.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>',He.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>',He.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>',He.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>',He.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>',He.STRING],oninit:[null,He.FUNCTION],onwarning:[null,He.FUNCTION],onerror:[null,He.FUNCTION],onactivatefile:[null,He.FUNCTION],oninitfile:[null,He.FUNCTION],onaddfilestart:[null,He.FUNCTION],onaddfileprogress:[null,He.FUNCTION],onaddfile:[null,He.FUNCTION],onprocessfilestart:[null,He.FUNCTION],onprocessfileprogress:[null,He.FUNCTION],onprocessfileabort:[null,He.FUNCTION],onprocessfilerevert:[null,He.FUNCTION],onprocessfile:[null,He.FUNCTION],onprocessfiles:[null,He.FUNCTION],onremovefile:[null,He.FUNCTION],onpreparefile:[null,He.FUNCTION],onupdatefiles:[null,He.FUNCTION],onreorderfiles:[null,He.FUNCTION],beforeDropFile:[null,He.FUNCTION],beforeAddFile:[null,He.FUNCTION],beforeRemoveFile:[null,He.FUNCTION],stylePanelLayout:[null,He.STRING],stylePanelAspectRatio:[null,He.STRING],styleItemPanelAspectRatio:[null,He.STRING],styleButtonRemoveItemPosition:["left",He.STRING],styleButtonProcessItemPosition:["right",He.STRING],styleLoadIndicatorPosition:["right",He.STRING],styleProgressIndicatorPosition:["right",He.STRING],styleButtonRemoveItemAlign:[!1,He.BOOLEAN],files:[[],He.ARRAY]},rt=function(e,t){return W(t)?e[0]||null:re(t)?e[t]||null:("object"===typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},it=function(e){if(W(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},ot=function(e){return e.filter((function(e){return!e.archived}))},at={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},st=[qe.LOAD_ERROR,qe.PROCESSING_ERROR,qe.PROCESSING_REVERT_ERROR],lt=[qe.LOADING,qe.PROCESSING,qe.PROCESSING_QUEUED,qe.INIT],ct=[qe.PROCESSING_COMPLETE],ut=function(e){return st.includes(e.status)},ft=function(e){return lt.includes(e.status)},dt=function(e){return ct.includes(e.status)},pt=function(e){return{GET_STATUS:function(){var t=ot(e.items),n=at.EMPTY,r=at.ERROR,i=at.BUSY,o=at.IDLE,a=at.READY;return 0===t.length?n:t.some(ut)?r:t.some(ft)?i:t.some(dt)?a:o},GET_ITEM:function(t){return rt(e.items,t)},GET_ACTIVE_ITEM:function(t){return rt(ot(e.items),t)},GET_ACTIVE_ITEMS:function(){return ot(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=rt(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=rt(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(){var t=/circle/.test(e.options.stylePanelLayout),n=t?1:it(e.options.stylePanelAspectRatio);return n},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return ot(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return ot(e.items).length},IS_ASYNC:function(){return de(e.options.server)&&(de(e.options.server.process)||oe(e.options.server.process))}}},ht=function(e){var t=ot(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t<n},vt=function(e,t,n){return Math.max(Math.min(n,e),t)},gt=function(e,t,n){return e.splice(t,0,n)},mt=function(e,t,n){return W(t)?null:"undefined"===typeof n?(e.push(t),t):(n=vt(n,0,e.length),gt(e,n,t),t)},Et=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},_t=function(e){return e.split("/").pop().split("?").shift()},It=function(e){return e.split(".").pop()},Tt=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:""},yt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},Ot=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+yt(e.getMonth()+1,"00")+"-"+yt(e.getDate(),"00")+"_"+yt(e.getHours(),"00")+"-"+yt(e.getMinutes(),"00")+"-"+yt(e.getSeconds(),"00")},Rt=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),J(t)||(t=Ot()),t&&null===r&&It(t)?i.name=t:(r=r||Tt(i.type),i.name=t+(r?"."+r:"")),i},bt=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},wt=function(e,t){var n=bt();if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},St=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 wt(n,t)},At=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},Dt=function(e){var t=e.split(",")[1];return t.replace(/\s/g,"")},Mt=function(e){return atob(Dt(e))},Pt=function(e){var t=At(e),n=Mt(e);return St(n,t)},Ct=function(e,t,n){return Rt(Pt(e),t,null,n)},Lt=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},xt=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},Nt=function(e){if(/x-content-transfer-id:/i.test(e)){var t=(e.split(":")[1]||"").trim();return t||null}return null},Gt=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,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value,c=Lt(l);if(c)t.name=c;else{var u=xt(l);if(u)t.size=u;else{var f=Nt(l);f&&(t.source=f)}}}}catch(d){i=!0,o=d}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return t},Vt=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",Rt(e,e.name)):Et(e)?a.fire("load",Ct(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=Rt(e,e.name||_t(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=Gt("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({},Be(),{setSource:function(e){return t.source=e},getProgress:n,abort:r,load:i});return a},Bt=function(e){return/GET|HEAD/.test(e)},kt=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,s=Bt(n.method)?a:a.upload;return s.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),re(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},Ut=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},Ft=function(e){return function(t){e(Ut("error",0,"Timeout",t.getAllResponseHeaders()))}},jt=function(e){return/\?/.test(e)},qt=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+=jt(e)&&jt(t)?t.replace(/\?/,"&"):t})),e},zt=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||!J(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,o,a,s,l,c){var u=kt(i,qt(e,t.url),Object.assign({},t,{responseType:"blob"}));return u.onload=function(e){var r=e.getAllResponseHeaders(),a=Gt(r).name||_t(i);o(Ut("load",e.status,"HEAD"===t.method?null:Rt(n(e.response),a),r))},u.onerror=function(e){a(Ut("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},u.onheaders=function(e){c(Ut("headers",e.status,null,e.getAllResponseHeaders()))},u.ontimeout=Ft(a),u.onprogress=s,u.onabort=l,u}},Yt={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},$t=function(e,t,n,r,i,o,a,s,l,c,u){for(var f=[],d=u.chunkTransferId,p=u.chunkServer,h=u.chunkSize,v=u.chunkRetryDelays,g={serverId:d,aborted:!1},m=t.ondata||function(e){return e},E=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},_=t.onerror||function(e){return null},I=function(o){var s=new FormData;de(i)&&s.append(n,JSON.stringify(i));var l="function"===typeof t.headers?t.headers(r,i):Object.assign({},t.headers,{"Upload-Length":r.size}),c=Object.assign({},t,{headers:l}),u=kt(m(s),qt(e,t.url),c);u.onload=function(e){return o(E(e,c.method))},u.onerror=function(e){return a(Ut("error",e.status,_(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=Ft(a)},T=function(n){var r=qt(e,p.url,g.serverId),i="function"===typeof t.headers?t.headers(g.serverId):Object.assign({},t.headers),o={headers:i,method:"HEAD"},s=kt(null,r,o);s.onload=function(e){return n(E(e,o.method))},s.onerror=function(e){return a(Ut("error",e.status,_(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=Ft(a)},y=Math.floor(r.size/h),O=0;O<=y;O++){var R=O*h,b=r.slice(R,R+h,"application/offset+octet-stream");f[O]={index:O,size:b.size,offset:R,data:b,file:r,progress:0,retries:Ce(v),status:Yt.QUEUED,error:null,request:null,timeout:null}}var w=function(){return o(g.serverId)},S=function(e){return e.status===Yt.QUEUED||e.status===Yt.ERROR},A=function(t){if(!g.aborted)if(t=t||f.find(S),t){t.status=Yt.PROCESSING,t.progress=null;var n=p.ondata||function(e){return e},i=p.onerror||function(e){return null},o=qt(e,p.url,g.serverId),s="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}),c=t.request=kt(n(t.data),o,Object.assign({},p,{headers:s}));c.onload=function(){t.status=Yt.COMPLETE,t.request=null,P()},c.onprogress=function(e,n,r){t.progress=e?n:null,M()},c.onerror=function(e){t.status=Yt.ERROR,t.request=null,t.error=i(e.response)||e.statusText,D(t)||a(Ut("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},c.ontimeout=function(e){t.status=Yt.ERROR,t.request=null,D(t)||Ft(a)(e)},c.onabort=function(){t.status=Yt.QUEUED,t.request=null,l()}}else f.every((function(e){return e.status===Yt.COMPLETE}))&&w()},D=function(e){return 0!==e.retries.length&&(e.status=Yt.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout((function(){A(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 s(!1,0,0);var t=f.reduce((function(e,t){return e+t.size}),0);s(!0,e,t)},P=function(){var e=f.filter((function(e){return e.status===Yt.PROCESSING})).length;e>=1||A()},C=function(){f.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))};return g.serverId?T((function(e){g.aborted||(f.filter((function(t){return t.offset<e})).forEach((function(e){e.status=Yt.COMPLETE,e.progress=e.size})),P())})):I((function(e){g.aborted||(c(e),g.serverId=e,P())})),{abort:function(){g.aborted=!0,C()}}},Wt=function(e,t,n,r){return function(i,o,a,s,l,c,u){if(i){var f=r.chunkUploads,d=f&&i.size>r.chunkSize,p=f&&(d||r.chunkForce);if(i instanceof Blob&&p)return $t(e,t,n,i,o,a,s,l,c,u,r);var h=t.ondata||function(e){return e},v=t.onload||function(e){return e},g=t.onerror||function(e){return null},m=new FormData;de(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 E=kt(h(m),qt(e,t.url),t);return E.onload=function(e){a(Ut("load",e.status,v(e.response),e.getAllResponseHeaders()))},E.onerror=function(e){s(Ut("error",e.status,g(e.response)||e.statusText,e.getAllResponseHeaders()))},E.ontimeout=Ft(s),E.onprogress=l,E.onabort=c,E}}},Ht=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&&J(t.url)?Wt(e,t,n,r):null},Xt=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||!J(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 s=kt(i,e+t.url,t);return s.onload=function(e){o(Ut("load",e.status,n(e.response),e.getAllResponseHeaders()))},s.onerror=function(e){a(Ut("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=Ft(a),s}},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)},Qt=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(),a=function a(){var s=Date.now()-o,l=Zt(n,r);s+l>t&&(l=s+l-t);var c=s/t;c>=1||document.hidden?e(1):(e(c),i=setTimeout(a,l))};return a(),{clear:function(){clearTimeout(i)}}},Kt=function(e){var t={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},n=function(n,r){var i=function(){0!==t.duration&&null!==t.progress&&s.fire("progress",s.getProgress())},o=function(){t.complete=!0,s.fire("load-perceived",t.response.body)};s.fire("start"),t.timestamp=Date.now(),t.perceivedPerformanceUpdater=Qt((function(e){t.perceivedProgress=e,t.perceivedDuration=Date.now()-t.timestamp,i(),t.response&&1===t.perceivedProgress&&!t.complete&&o()}),Zt(750,1500)),t.request=e(n,r,(function(e){t.response=de(e)?e:{type:"load",code:200,body:""+e,headers:{}},t.duration=Date.now()-t.timestamp,t.progress=1,s.fire("load",t.response.body),1===t.perceivedProgress&&o()}),(function(e){t.perceivedPerformanceUpdater.clear(),s.fire("error",de(e)?e:{type:"error",code:0,body:""+e})}),(function(e,n,r){t.duration=Date.now()-t.timestamp,t.progress=e?n/r:null,i()}),(function(){t.perceivedPerformanceUpdater.clear(),s.fire("abort",t.response?t.response.body:null)}),(function(e){s.fire("transfer",e)}))},r=function(){t.request&&(t.perceivedPerformanceUpdater.clear(),t.request.abort&&t.request.abort(),t.complete=!0)},i=function(){r(),t.complete=!1,t.perceivedProgress=0,t.progress=0,t.timestamp=null,t.perceivedDuration=0,t.duration=0,t.request=null,t.response=null},o=function(){return t.progress?Math.min(t.progress,t.perceivedProgress):null},a=function(){return Math.min(t.duration,t.perceivedDuration)},s=Object.assign({},Be(),{process:n,abort:r,getProgress:o,getDuration:a,reset:i});return s},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||Et(e)?t[0]=e.name||Ot():Et(e)?(t[1]=e.length,t[2]=At(e)):J(e)&&(t[0]=_t(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(!de(t))return t;var n=$(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n[r]=i&&de(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=Se(),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,s={},l=function(e){return i.status=e},c=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];O.fire.apply(O,[e].concat(n))}},u=function(){return It(i.file.name)},f=function(){return i.file.type},d=function(){return i.file.size},p=function(){return i.file},h=function(t,n,r){i.source=t,O.fireSync("init"),i.file?O.fireSync("load-skip"):(i.file=en(t),n.on("init",(function(){c("load-init")})),n.on("meta",(function(t){i.file.size=t.size,i.file.filename=t.filename,t.source&&(e=ze.LIMBO,i.serverFileReference=t.source,i.status=qe.PROCESSING_COMPLETE),c("load-meta")})),n.on("progress",(function(e){l(qe.LOADING),c("load-progress",e)})),n.on("error",(function(e){l(qe.LOAD_ERROR),c("load-request-error",e)})),n.on("abort",(function(){l(qe.INIT),c("load-abort")})),n.on("load",(function(t){i.activeLoader=null;var n=function(t){i.file=tn(t)?t:i.file,e===ze.LIMBO&&i.serverFileReference?l(qe.PROCESSING_COMPLETE):l(qe.IDLE),c("load")},o=function(e){i.file=t,c("load-meta"),l(qe.LOAD_ERROR),c("load-file-error",e)};i.serverFileReference?n(t):r(t,n,o)})),n.setSource(t),i.activeLoader=n,n.load())},v=function(){i.activeLoader&&i.activeLoader.load()},g=function(){i.activeLoader?i.activeLoader.abort():(l(qe.INIT),c("load-abort"))},m=function e(t,n){if(i.processingAborted)i.processingAborted=!1;else if(l(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,l(qe.PROCESSING_COMPLETE),c("process-complete",e)})),t.on("start",(function(){c("process-start")})),t.on("error",(function(e){i.activeProcessor=null,l(qe.PROCESSING_ERROR),c("process-error",e)})),t.on("abort",(function(e){i.activeProcessor=null,i.transferId=null,i.serverFileReference=e,l(qe.IDLE),c("process-abort"),a&&a()})),t.on("progress",(function(e){c("process-progress",e)}));var r=function(e){i.archived||t.process(e,Object.assign({},s))},o=console.error;n(i.file,r,o),i.activeProcessor=t}else O.on("load",(function(){e(t,n)}))},E=function(){i.processingAborted=!1,l(qe.PROCESSING_QUEUED)},_=function(){return new Promise((function(e){if(!i.activeProcessor)return i.processingAborted=!0,l(qe.IDLE),c("process-abort"),void e();a=function(){e()},i.activeProcessor.abort()}))},I=function(e,t){return new Promise((function(n,r){null!==i.serverFileReference?(e(i.serverFileReference,(function(){i.serverFileReference=null,n()}),(function(e){t?(l(qe.PROCESSING_REVERT_ERROR),c("process-revert-error"),r(e)):n()})),l(qe.IDLE),c("process-revert")):n()}))},T=function(e,t,n){var r=e.split("."),i=r[0],o=r.pop(),a=s;r.forEach((function(e){return a=a[e]})),JSON.stringify(a[o])!==JSON.stringify(t)&&(a[o]=t,n||c("metadata-update",{key:i,value:s[i]}))},y=function(e){return nn(e?s[e]:s)},O=Object.assign({id:{get:function(){return r}},origin:{get:function(){return e}},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:u},fileType:{get:f},fileSize:{get:d},file:{get:p},relativePath:{get:function(){return i.file._relativePath}},source:{get:function(){return i.source}},getMetadata:y,setMetadata:function(e,t,n){if(de(e)){var r=e;return Object.keys(r).forEach((function(e){T(e,r[e],t)})),e}return T(e,t,n),t},extend:function(e,t){return R[e]=t},abortLoad:g,retryLoad:v,requestProcessing:E,abortProcessing:_,load:h,process:m,revert:I},Be(),{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}}}),R=o(O);return R},on=function(e,t){return W(t)?0:J(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},sn=function(e,t,n,r,i,o){var a=kt(null,e,{method:"GET",responseType:"blob"});return a.onload=function(n){var r=n.getAllResponseHeaders(),i=Gt(r).name||_t(e);t(Ut("load",n.status,Rt(n.response,i),r))},a.onerror=function(e){n(Ut("error",e.status,e.statusText,e.getAllResponseHeaders()))},a.onheaders=function(e){o(Ut("headers",e.status,null,e.getAllResponseHeaders()))},a.ontimeout=Ft(n),a.onprogress=r,a.onabort=i,a},ln=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},cn=function(e){return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&ln(location.href)!==ln(e)},un=function(e){return function(){return oe(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:ot(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))}))},hn=function(e,t){e.items.sort((function(e,n){return t(Fe(e),Fe(n))}))},vn=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,s=void 0===a?function(){}:a,l=Pe(n,["query","success","failure"]),c=rt(e.items,r);c?t(c,o,s,l||{}):s({error:Ut("error",0,"Item not found"),file:null})}},gn=function(e,t,n){return{ABORT_ALL:function(){ot(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,o=i.map((function(e){return{source:e.source?e.source:e,options:e.options}})),a=ot(n.items);a.forEach((function(t){o.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),a=ot(n.items),o.forEach((function(t,n){a.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:we.NONE,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(r){var i=r.id;clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var r=an(n.items,i);if(t("IS_ASYNC")){var o=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:i})}),32)},a=function(e){r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(e?o:function(){}).catch((function(){}))},s=function(e){r.abortProcessing().then(e?o:function(){})};return r.status===qe.PROCESSING_COMPLETE?a(n.options.instantUpload):r.status===qe.PROCESSING?s(n.options.instantUpload):void(n.options.instantUpload&&o())}Ze("SHOULD_PREPARE_OUTPUT",!1,{item:r,query:t}).then((function(t){t&&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=rt(n.items,t);if(i){var o=n.items.indexOf(i);r=vt(r,0,n.items.length-1),o!==r&&n.items.splice(r,0,n.items.splice(o,1)[0])}},SORT:function(r){var i=r.compare;hn(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,s=void 0===a?function(){}:a,l=n.failure,c=void 0===l?function(){}:l,u=i;if(-1===i||"undefined"===typeof i){var f=t("GET_ITEM_INSERT_LOCATION"),d=t("GET_TOTAL_ITEMS");u="before"===f?0:d}var p=t("GET_IGNORED_FILES"),h=function(e){return tn(e)?!p.includes(e.name.toLowerCase()):!W(e)},v=r.filter(h),g=v.map((function(t){return new Promise((function(n,r){e("ADD_ITEM",{interactionMethod:o,source:t.source||t,success:n,failure:r,index:u++,options:t.options||{}})}))}));Promise.all(g).then(s).catch(c)},ADD_ITEM:function(r){var i=r.source,o=r.index,a=void 0===o?-1:o,s=r.interactionMethod,l=r.success,c=void 0===l?function(){}:l,u=r.failure,f=void 0===u?function(){}:u,d=r.options,p=void 0===d?{}:d;if(W(i))f({error:Ut("error",0,"No source"),file:null});else if(!tn(i)||!n.options.ignoredFiles.includes(i.name.toLowerCase())){if(!ht(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var h=Ut("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:i,error:h}),void f({error:h,file:null})}var v=ot(n.items)[0];if(v.status===qe.PROCESSING_COMPLETE||v.status===qe.PROCESSING_REVERT_ERROR){var g=t("GET_FORCE_REVERT");if(v.revert(Xt(n.options.server.url,n.options.server.revert),g).then((function(){g&&e("ADD_ITEM",{source:i,index:a,interactionMethod:s,success:c,failure:f,options:p})})).catch((function(){})),g)return}e("REMOVE_ITEM",{query:v.id})}var m="local"===p.type?ze.LOCAL:"limbo"===p.type?ze.LIMBO:ze.INPUT,E=rn(m,m===ze.INPUT?null:i,p.file);Object.keys(p.metadata||{}).forEach((function(e){E.setMetadata(e,p.metadata[e])})),Qe("DID_CREATE_ITEM",E,{query:t,dispatch:e});var _=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(a="before"===_?-1:n.items.length),mt(n.items,E,a),oe(_)&&i&&hn(n,_);var I=E.id;E.on("init",(function(){e("DID_INIT_ITEM",{id:I})})),E.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:I})})),E.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:I})})),E.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:I,progress:t})})),E.on("load-request-error",(function(t){var r=un(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:I,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),void f({error:t,file:Fe(E)});e("DID_THROW_ITEM_LOAD_ERROR",{id:I,error:t,status:{main:r,sub:n.options.labelTapToRetry}})})),E.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:I,error:t.status,status:t.status}),f({error:t.status,file:Fe(E)})})),E.on("load-abort",(function(){e("REMOVE_ITEM",{query:I})})),E.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:I,item:E,data:{source:i,success:c}})})),E.on("load",(function(){var r=function(r){r?(E.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:I,change:t})})),Ze("SHOULD_PREPARE_OUTPUT",!1,{item:E,query:t}).then((function(t){var r=function(){e("COMPLETE_LOAD_ITEM",{query:I,item:E,data:{source:i,success:c}}),dn(e,n)};t?e("REQUEST_PREPARE_OUTPUT",{query:I,item:E,success:function(t){e("DID_PREPARE_OUTPUT",{id:I,file:t}),r()}},!0):r()}))):e("REMOVE_ITEM",{query:I})};Ze("DID_LOAD_ITEM",E,{query:t,dispatch:e}).then((function(){pn(t("GET_BEFORE_ADD_FILE"),Fe(E)).then(r)})).catch((function(){r(!1)}))})),E.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:I})})),E.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:I,progress:t})})),E.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:I,error:t,status:{main:un(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),E.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:I,error:t,status:{main:un(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),E.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:I,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:I,value:t})})),E.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:I})})),E.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:I}),e("DID_DEFINE_VALUE",{id:I,value:null})})),e("DID_ADD_ITEM",{id:I,index:a,interactionMethod:s}),dn(e,n);var T=n.options.server||{},y=T.url,O=T.load,R=T.restore,b=T.fetch;E.load(i,Vt(m===ze.INPUT?J(i)&&cn(i)&&b?zt(y,b):sn:m===ze.LIMBO?zt(y,R):zt(y,O)),(function(e,n,r){Ze("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:Ut("error",0,"Item not found"),file:null};if(n.archived)return o(a);Ze("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){Ze("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,s=o.source,l=t("GET_ITEM_INSERT_LOCATION");if(oe(l)&&s&&hn(n,l),e("DID_LOAD_ITEM",{id:i.id,error:null,serverFileReference:i.origin===ze.INPUT?null:s}),a(Fe(i)),i.origin!==ze.LOCAL)return i.origin===ze.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:i.id,error:null,serverFileReference:s}),void e("DID_DEFINE_VALUE",{id:i.id,value:s})):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:vn(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:vn(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:vn(n,(function(r,i,o){var a=r.status===qe.IDLE||r.status===qe.PROCESSING_ERROR;if(a)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 s=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:o})},l=function(){return document.hidden?s():setTimeout(s,32)};r.status===qe.PROCESSING_COMPLETE||r.status===qe.PROCESSING_REVERT_ERROR?r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(l).catch((function(){})):r.status===qe.PROCESSING&&r.abortProcessing().then(l)}})),PROCESS_ITEM:vn(n,(function(r,i,o){var a=t("GET_MAX_PARALLEL_UPLOADS"),s=t("GET_ITEMS_BY_STATUS",qe.PROCESSING).length;if(s!==a){if(r.status!==qe.PROCESSING){var l=function t(){var r=n.processingQueue.shift();if(r){var i=r.id,o=r.success,a=r.failure,s=rt(n.items,i);s&&!s.archived?e("PROCESS_ITEM",{query:i,success:o,failure:a},!0):t()}};r.onOnce("process-complete",(function(){i(Fe(r)),l();var o=t("GET_ITEMS_BY_STATUS",qe.PROCESSING_COMPLETE).length===n.items.length;o&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),r.onOnce("process-error",(function(e){o({error:e,file:Fe(r)}),l()}));var c=n.options;r.process(Kt(Ht(c.server.url,c.server.process,c.name,{chunkTransferId:r.transferId,chunkServer:c.server.patch,chunkUploads:c.chunkUploads,chunkForce:c.chunkForce,chunkSize:c.chunkSize,chunkRetryDelays:c.chunkRetryDelays})),(function(n,i,o){Ze("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:vn(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:vn(n,(function(n){pn(t("GET_BEFORE_REMOVE_FILE"),Fe(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:vn(n,(function(e){e.release()})),REMOVE_ITEM:vn(n,(function(r,i,o,a){var s=function(){var t=r.id;an(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),dn(e,n),i(Fe(r))},l=n.options.server;r.origin===ze.LOCAL&&l&&oe(l.remove)&&!1!==a.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),l.remove(r.source,(function(){return s()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:Ut("error",0,t,null),status:{main:un(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):(a.revert&&r.origin!==ze.LOCAL&&null!==r.serverId&&r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),s())})),ABORT_ITEM_LOAD:vn(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:vn(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){var r=n.options.instantUpload;r&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:vn(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(Fe(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:vn(n,(function(r){r.revert(Xt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){var t=n.options.instantUpload||fn(r);t&&e("REMOVE_ITEM",{query:r.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options;i(n,(function(t,n){e("SET_"+ye(t,"_").toUpperCase(),{value:n})}))}}},mn=function(e){return e},En=function(e){return document.createElement(e)},_n=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)}},Tn=function(e,t,n,r,i,o){var a=In(e,t,n,i),s=In(e,t,n,r);return["M",a.x,a.y,"A",n,n,0,o,0,s.x,s.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),Tn(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=u("svg");t.ref.path=u("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},Rn=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,s=0;n.spin?(o=0,s=.5):(o=0,s=n.progress);var l=yn(i,i,i-r,o,s);a(t.ref.path,"d",l),a(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},bn=F({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:On,write:Rn,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),wn=function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+"<span>"+n.label+"</span>",n.isDisabled=!1},Sn=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"))},An=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:wn,write:Sn}),Dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return e=Math.round(Math.abs(e)),e<1e3?e+" bytes":e<Pn?Math.floor(e/Mn)+" KB":e<Cn?Ln(e/Pn,1,t)+" MB":Ln(e/Cn,2,t)+" GB"},Mn=1e3,Pn=1e6,Cn=1e9,Ln=function(e,t,n){return e.toFixed(t).split(".").filter((function(e){return"0"!==e})).join(n)},xn=function(e){var t=e.root,n=e.props,r=En("span");r.className="filepond--file-info-main",a(r,"aria-hidden","true"),t.appendChild(r),t.ref.fileName=r;var i=En("span");i.className="filepond--file-info-sub",t.appendChild(i),t.ref.fileSize=i,_n(i,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),_n(r,mn(t.query("GET_ITEM_NAME",n.id)))},Nn=function(e){var t=e.root,n=e.props;_n(t.ref.fileSize,Dn(t.query("GET_ITEM_SIZE",n.id))),_n(t.ref.fileName,mn(t.query("GET_ITEM_NAME",n.id)))},Gn=function(e){var t=e.root,n=e.props;re(t.query("GET_ITEM_SIZE",n.id))||_n(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Vn=F({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:q({DID_LOAD_ITEM:Nn,DID_UPDATE_ITEM_META:Nn,DID_THROW_ITEM_LOAD_ERROR:Gn,DID_THROW_ITEM_INVALID:Gn}),didCreateView:function(e){Qe("CREATE_VIEW",Object.assign({},e,{view:e}))},create:xn,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),Bn=function(e){return Math.round(100*e)},kn=function(e){var t=e.root,n=En("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var r=En("span");r.className="filepond--file-status-sub",t.appendChild(r),t.ref.sub=r,Un({root:t,action:{progress:null}})},Un=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")+" "+Bn(n.progress)+"%";_n(t.ref.main,r),_n(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")+" "+Bn(n.progress)+"%";_n(t.ref.main,r),_n(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},jn=function(e){var t=e.root;_n(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),_n(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},qn=function(e){var t=e.root;_n(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),_n(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},zn=function(e){var t=e.root;_n(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),_n(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},Yn=function(e){var t=e.root;_n(t.ref.main,""),_n(t.ref.sub,"")},$n=function(e){var t=e.root,n=e.action;_n(t.ref.main,n.status.main),_n(t.ref.sub,n.status.sub)},Wn=F({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:q({DID_LOAD_ITEM:Yn,DID_REVERT_ITEM_PROCESSING:Yn,DID_REQUEST_ITEM_PROCESSING:jn,DID_ABORT_ITEM_PROCESSING:qn,DID_COMPLETE_ITEM_PROCESSING:zn,DID_UPDATE_ITEM_PROCESS_PROGRESS:Fn,DID_UPDATE_ITEM_LOAD_PROGRESS:Un,DID_THROW_ITEM_LOAD_ERROR:$n,DID_THROW_ITEM_INVALID:$n,DID_THROW_ITEM_PROCESSING_ERROR:$n,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:$n,DID_THROW_ITEM_REMOVE_ERROR:$n}),didCreateView:function(e){Qe("CREATE_VIEW",Object.assign({},e,{view:e}))},create:kn,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"}},Xn=[];i(Hn,(function(e){Xn.push(e)}));var Zn=function(e){var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},Qn=function(e){var t=e.ref.buttonAbortItemLoad.rect.element;return t.width},Kn=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},Jn=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},er=function(e){return e.query("GET_STYLE_LOAD_INDICATOR_POSITION")},tr=function(e){return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")},nr=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},rr={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:er},processProgressIndicator:{opacity:0,align:tr},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},ir={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Zn},status:{translateX:Zn}},or={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},ar={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Zn},status:{translateX:Zn,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:Zn},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:nr},info:{translateX:Zn},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:nr},buttonRemoveItem:{opacity:1},info:{translateX:Zn},status:{opacity:1,translateX:Zn}},DID_LOAD_ITEM:ir,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Zn},status:{translateX:Zn}},DID_START_ITEM_PROCESSING:or,DID_REQUEST_ITEM_PROCESSING:or,DID_UPDATE_ITEM_PROCESS_PROGRESS:or,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:Zn}},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:Zn},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:ir},sr=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}}}}),lr=function(e){var t,n=e.root,r=e.props,o=r.id,a=n.query("GET_ALLOW_REVERT"),s=n.query("GET_ALLOW_REMOVE"),l=n.query("GET_ALLOW_PROCESS"),c=n.query("GET_INSTANT_UPLOAD"),u=n.query("IS_ASYNC"),f=n.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");u?l&&!a?t=function(e){return!/RevertItemProcessing/.test(e)}:!l&&a?t=function(e){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(e)}:l||a||(t=function(e){return!/Process/.test(e)}):t=function(e){return!/Process/.test(e)};var d=t?Xn.filter(t):Xn.concat();if(c&&a&&(Hn["RevertItemProcessing"].label="GET_LABEL_BUTTON_REMOVE_ITEM",Hn["RevertItemProcessing"].icon="GET_ICON_REMOVE"),u&&!a){var p=ar["DID_COMPLETE_ITEM_PROCESSING"];p.info.translateX=Jn,p.info.translateY=Kn,p.status.translateY=Kn,p.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(u&&!l&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach((function(e){ar[e].status.translateY=Kn})),ar["DID_THROW_ITEM_PROCESSING_ERROR"].status.translateX=Qn),f&&a){Hn["RevertItemProcessing"].align="BUTTON_REMOVE_ITEM_POSITION";var h=ar["DID_COMPLETE_ITEM_PROCESSING"];h.info.translateX=Zn,h.status.translateY=Kn,h.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(Hn["RemoveItem"].disabled=!0),i(Hn,(function(e,t){var r=n.createChildView(An,{label:n.query(t.label),icon:n.query(t.icon),opacity:0});d.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:o})})),n.ref["button"+e]=r})),n.ref.processingCompleteIndicator=n.appendChildView(n.createChildView(sr)),n.ref.processingCompleteIndicator.element.dataset.align=n.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),n.ref.info=n.appendChildView(n.createChildView(Vn,{id:o})),n.ref.status=n.appendChildView(n.createChildView(Wn,{id:o}));var v=n.appendChildView(n.createChildView(bn,{opacity:0,align:n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));v.element.classList.add("filepond--load-indicator"),n.ref.loadProgressIndicator=v;var g=n.appendChildView(n.createChildView(bn,{opacity:0,align:n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));g.element.classList.add("filepond--process-indicator"),n.ref.processProgressIndicator=g,n.ref.activeStyles=[]},cr=function(e){var t=e.root,n=e.actions,r=e.props;ur({root:t,actions:n,props:r});var o=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return ar[e.type]}));if(o){t.ref.activeStyles=[];var a=ar[o.type];i(rr,(function(e,n){var r=t.ref[e];i(n,(function(n,i){var o=a[e]&&"undefined"!==typeof 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}))},ur=q({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}}),fr=F({create:lr,write:cr,didCreateView:function(e){Qe("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),dr=function(e){var t=e.root,n=e.props;t.ref.fileName=En("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(fr,{id:n.id})),t.ref.data=!1},pr=function(e){var t=e.root,n=e.props;_n(t.ref.fileName,mn(t.query("GET_ITEM_NAME",n.id)))},hr=F({create:dr,ignoreRect:!0,write:q({DID_LOAD_ITEM:pr}),didCreateView:function(e){Qe("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),vr={type:"spring",damping:.6,mass:7},gr=function(e){var t=e.root,n=e.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:vr},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:vr},styles:["translateY"]}}].forEach((function(e){mr(t,e,n.name)})),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},mr=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)},Er=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}},_r=F({name:"panel",write:Er,create:gr,ignoreRect:!0,mixins:{apis:["height","scalable"]}}),Ir=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)}}},Tr={type:"spring",stiffness:.75,damping:.45,mass:10},yr="spring",Or={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"},Rr=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(hr,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(_r,{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=Ir(t.query("GET_ACTIVE_ITEMS"));t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:o});var a=function(e){if(e.isPrimary){e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-i.x,y:e.pageY-i.y};var a=n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y;a>16&&!r&&(r=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:o})}},s=function e(s){s.isPrimary&&(document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",e),n.dragOffset={x:s.pageX-i.x,y:s.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",s)}};t.element.addEventListener("pointerdown",r)}},br=q({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),wr=q({DID_GRAB_ITEM:function(e){var t=e.root,n=e.props;n.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){var t=e.root;t.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 Or[e.type]}));o&&o.type!==r.currentState&&(r.currentState=o.type,t.element.dataset.filepondItemState=Or[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):(br({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:Rr,write:wr,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:yr,scaleY:yr,translateX:Tr,translateY:Tr,opacity:{type:"tween",duration:150}}}}),Ar=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],s=a.rect.element,l=s.marginLeft+s.marginRight,c=s.width+l,u=Math.round(r/c);if(1===u){for(var f=0;f<i;f++){var d=t[f],p=d.rect.outer.top+.5*d.rect.element.height;if(n.top<p)return f}return i}for(var h=s.marginTop+s.marginBottom,v=s.height+h,g=0;g<i;g++){var m=g%u,E=Math.floor(g/u),_=m*c,I=E*v,T=I-s.marginTop,y=_+c,O=I+v+s.marginBottom;if(n.top<O&&n.top>T){if(n.left<y)return g;o=g!==i-1?g:null}}return null!==o?o:i}},Dr={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()},Pr=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(),s=a,l=1;if(o!==we.NONE){l=0;var c=t.query("GET_ITEM_INSERT_INTERVAL"),u=a-t.ref.lastItemSpanwDate;s=u<c?a+(c-u):a}t.ref.lastItemSpanwDate=s,t.appendChildView(t.createChildView(Sr,{spawnDate:s,id:r,opacity:l,interactionMethod:o}),i)},Cr=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&&Lr(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},Lr=function(e,t,n,r,i){e.interactionMethod===we.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===we.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===we.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===we.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},xr=function(e){var t=e.root,n=e.action,r=n.id,i=t.childViews.find((function(e){return e.id===r}));i&&(i.scaleX=.9,i.scaleY=.9,i.opacity=0,i.markedForRemoval=!0)},Nr=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},Gr=function(e){return e.rect.element.width+.5*e.rect.element.marginLeft+.5*e.rect.element.marginRight},Vr=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})),s=t.childViews.length,l=i.getItemIndex(o);if(a){var c={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},u=Nr(a),f=Gr(a),d=Math.floor(t.rect.outer.width/f);d>s&&(d=s);var p=Math.floor(s/d+1);Dr.setHeight=u*p,Dr.setWidth=f*d;var h={y:Math.floor(c.y/u),x:Math.floor(c.x/f),getGridIndex:function(){return c.y>Dr.getHeight||c.y<0||c.x>Dr.getWidth||c.x<0?l: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=Nr(a),s=r.length,l=s,u=0,f=0,d=0,p=0;p<s;p++)if(u=Nr(r[p]),d=f,f=d+u,c.y<f){if(i>p){if(c.y<d+o){l=p;break}continue}l=p;break}return l}},v=d>1?h.getGridIndex():h.getColIndex();t.dispatch("MOVE_ITEM",{query:a,index:v});var g=i.getIndex();if(void 0===g||g!==v){if(i.setIndex(v),void 0===g)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:l,target:v})}}},Br=q({DID_ADD_ITEM:Pr,DID_REMOVE_ITEM:xr,DID_DRAG_ITEM:Vr}),kr=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,s=t.childViews.filter((function(e){return e.rect.element.height})),l=t.query("GET_ACTIVE_ITEMS").map((function(e){return s.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),c=o?Ar(t,l,o):null,u=t.ref.addIndex||null;t.ref.addIndex=null;var f=0,d=0,p=0;if(0!==l.length){var h=l[0].rect.element,v=h.marginTop+h.marginBottom,g=h.marginLeft+h.marginRight,m=h.width+g,E=h.height+v,_=Math.round(a/m);if(1===_){var I=0,T=0;l.forEach((function(e,t){if(c){var n=t-c;T=-2===n?.25*-v:-1===n?.75*-v:0===n?.75*v:1===n?.25*v:0}i&&(e.translateX=null,e.translateY=null),e.markedForRemoval||Cr(e,0,I+T);var r=e.rect.element.height+v,o=r*(e.markedForRemoval?e.opacity:1);I+=o}))}else{var y=0,O=0;l.forEach((function(e,t){t===c&&(f=1),t===u&&(p+=1),e.markedForRemoval&&e.opacity<.5&&(d-=1);var n=t+p+f+d,r=n%_,o=Math.floor(n/_),a=r*m,s=o*E,l=Math.sign(a-y),h=Math.sign(s-O);y=a,O=s,e.markedForRemoval||(i&&(e.translateX=null,e.translateY=null),Cr(e,a,s,l,h))}))}}},Ur=function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},Fr=F({create:Mr,write:kr,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:Ur,mixins:{apis:["dragCoordinates"]}}),jr=function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Fr)),n.dragCoordinates=null,n.overflowing=!1},qr=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)})},zr=function(e){var t=e.props;t.dragCoordinates=null},Yr=q({DID_DRAG:qr,DID_END_DRAG:zr}),$r=function(e){var t=e.root,n=e.props,r=e.actions;if(Yr({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)}},Wr=F({create:jr,write:$r,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Hr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";n?a(e,t,r):e.removeAttribute(t)},Xr=function(e){if(e&&""!==e.value){try{e.value=""}catch(i){}if(e.value){var t=En("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},Zr=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),Qr({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),Kr({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),Jr({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),ei({root:t}),ti({root:t,action:{value:t.query("GET_REQUIRED")}}),ni({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)},Qr=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Hr(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},Kr=function(e){var t=e.root,n=e.action;Hr(t.element,"multiple",n.value)},Jr=function(e){var t=e.root,n=e.action;Hr(t.element,"webkitdirectory",n.value)},ei=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE"),i=n||!r;Hr(t.element,"disabled",i)},ti=function(e){var t=e.root,n=e.action;n.value?0===t.query("GET_TOTAL_ITEMS")&&Hr(t.element,"required",!0):Hr(t.element,"required",!1)},ni=function(e){var t=e.root,n=e.action;Hr(t.element,"capture",!!n.value,!0===n.value?"":n.value)},ri=function(e){var t=e.root,n=t.element;if(t.query("GET_TOTAL_ITEMS")>0)Hr(n,"required",!1),Hr(n,"name",!1);else{Hr(n,"name",!0,t.query("GET_NAME"));var r=t.query("GET_CHECK_VALIDITY");r&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&Hr(n,"required",!0)}},ii=function(e){var t=e.root,n=t.query("GET_CHECK_VALIDITY");n&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},oi=F({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Zr,destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:q({DID_LOAD_ITEM:ri,DID_REMOVE_ITEM:ri,DID_THROW_ITEM_INVALID:ii,DID_SET_DISABLED:ei,DID_SET_ALLOW_BROWSE:ei,DID_SET_ALLOW_DIRECTORIES_ONLY:Jr,DID_SET_ALLOW_MULTIPLE:Kr,DID_SET_ACCEPTED_FILE_TYPES:Qr,DID_SET_CAPTURE_METHOD:ni,DID_SET_REQUIRED:ti})}),ai={ENTER:13,SPACE:32},si=function(e){var t=e.root,n=e.props,r=En("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){var n=e.keyCode===ai.ENTER||e.keyCode===ai.SPACE;n&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){var n=e.target===r||r.contains(e.target);n||t.ref.label.click()},r.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),li(r,n.caption),t.appendChild(r),t.ref.label=r},li=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&a(n,"tabindex","0"),t},ci=F({name:"drop-label",ignoreRect:!0,create:si,destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:q({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;li(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),ui=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}}}}),fi=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(ui,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))},di=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):fi({root:t})},pi=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)},hi=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)},vi=function(e){var t=e.root,n=e.props,r=e.actions;gi({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)},gi=q({DID_DRAG:di,DID_DROP:hi,DID_END_DRAG:pi}),mi=F({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:vi}),Ei=function(e){var t=e.root;return t.ref.fields={}},_i=function(e,t){return e.ref.fields[t]},Ii=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Ti=function(e){var t=e.root;return Ii(t)},yi=function(e){var t=e.root,n=e.action,r=En("input");r.type="hidden",r.name=t.query("GET_NAME"),r.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=r,Ii(t)},Oi=function(e){var t=e.root,n=e.action,r=_i(t,n.id);r&&null!==n.serverFileReference&&(r.value=n.serverFileReference)},Ri=function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},bi=function(e){var t=e.root,n=e.action,r=_i(t,n.id);r&&(r.parentNode.removeChild(r),delete t.ref.fields[n.id])},wi=function(e){var t=e.root,n=e.action,r=_i(t,n.id);r&&(null===n.value?r.removeAttribute("value"):r.value=n.value,Ii(t))},Si=q({DID_SET_DISABLED:Ri,DID_ADD_ITEM:yi,DID_LOAD_ITEM:Oi,DID_REMOVE_ITEM:bi,DID_DEFINE_VALUE:wi,DID_REORDER_ITEMS:Ti,DID_SORT_ITEMS:Ti}),Ai=F({tag:"fieldset",name:"data",create:Ei,write:Si,ignoreRect:!0}),Di=function(e){return"getRootNode"in e?e.getRootNode():document},Mi=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Pi=["css","csv","html","txt"],Ci={zip:"zip|compressed",epub:"application/epub+zip"},Li=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Mi.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):Pi.includes(e)?"text/"+e:Ci[e]||""},xi=function(e){return new Promise((function(t,n){var r=zi(e);if(r.length&&!Ni(e))return t(r);Gi(e).then(t)}))},Ni=function(e){return!!e.files&&e.files.length>0},Gi=function(e){return new Promise((function(t,n){var r=(e.items?Array.from(e.items):[]).filter((function(e){return Vi(e)})).map((function(e){return Bi(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):[])}))},Vi=function(e){if(ji(e)){var t=qi(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},Bi=function(e){return new Promise((function(t,n){Fi(e)?ki(qi(e)).then(t).catch(n):t([e.getAsFile()])}))},ki=function(e){return new Promise((function(t,n){var r=[],i=0,o=0,a=function(){0===o&&0===i&&t(r)},s=function e(t){i++;var s=t.createReader(),l=function t(){s.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=Ui(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),o--,a()})))})),t()}),n)};l()};s(e)}))},Ui=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name;return e=e.slice(0,e.size,Li(It(e.name))),e.name=n,e.lastModifiedDate=t,e},Fi=function(e){return ji(e)&&(qi(e)||{}).isDirectory},ji=function(e){return"webkitGetAsEntry"in e},qi=function(e){return e.webkitGetAsEntry()},zi=function(e){var t=[];try{if(t=$i(e),t.length)return t;t=Yi(e)}catch(n){}return t},Yi=function(e){var t=e.getData("url");return"string"===typeof t&&t.length?[t]:[]},$i=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[]},Wi=[],Hi=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Xi=function(e,t,n){var r=Zi(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},Zi=function(e){var t=Wi.find((function(t){return t.element===e}));if(t)return t;var n=Qi(e);return Wi.push(n),n},Qi=function(e){var t=[],n={dragenter:no,dragover:ro,dragleave:oo,drop:io},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&&(Wi.splice(Wi.indexOf(o),1),i(n,(function(t){e.removeEventListener(t,r[t],!1)})))}}};return o},Ki=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)},Ji=function(e,t){var n=Di(t),r=Ki(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)},eo=null,to=function(e,t){try{e.dropEffect=t}catch(n){}},no=function(e,t){return function(e){e.preventDefault(),eo=e.target,t.forEach((function(t){var n=t.element,r=t.onenter;Ji(e,n)&&(t.state="enter",r(Hi(e)))}))}},ro=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;xi(n).then((function(r){var i=!1;t.some((function(t){var o=t.filterElement,a=t.element,s=t.onenter,l=t.onexit,c=t.ondrag,u=t.allowdrop;to(n,"copy");var f=u(r);if(f)if(Ji(e,a)){if(i=!0,null===t.state)return t.state="enter",void s(Hi(e));if(t.state="over",o&&!f)return void to(n,"none");c(Hi(e))}else o&&!i&&to(n,"none"),t.state&&(t.state=null,l(Hi(e)));else to(n,"none")}))}))}},io=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;xi(n).then((function(n){t.forEach((function(t){var r=t.filterElement,i=t.element,o=t.ondrop,a=t.onexit,s=t.allowdrop;if(t.state=null,!r||Ji(e,i))return s(n)?void o(Hi(e),n):a(Hi(e))}))}))}},oo=function(e,t){return function(e){eo===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(Hi(e))}))}},ao=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,s=Xi(e,r?document.documentElement:e,i),l="",c="";s.allowdrop=function(e){return t(a(e))},s.ondrop=function(e,n){var r=a(n);t(r)?(c="drag-drop",u.onload(r,e)):u.ondragend(e)},s.ondrag=function(e){u.ondrag(e)},s.onenter=function(e){c="drag-over",u.ondragstart(e)},s.onexit=function(e){c="drag-exit",u.ondragend(e)};var u={updateHopperState:function(){l!==c&&(e.dataset.hopperState=c,l=c)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return u},so=!1,lo=[],co=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){var n=!1,r=t;while(r!==document.body){if(r.classList.contains("filepond--root")){n=!0;break}r=r.parentNode}if(!n)return}xi(e.clipboardData).then((function(e){e.length&&lo.forEach((function(t){return t(e)}))}))},uo=function(e){lo.includes(e)||(lo.push(e),so||(so=!0,document.addEventListener("paste",co)))},fo=function(e){Ge(lo,lo.indexOf(e)),0===lo.length&&(document.removeEventListener("paste",co),so=!1)},po=function(){var e=function(e){t.onload(e)},t={destroy:function(){fo(e)},onload:function(){}};return uo(e),t},ho=function(e){var t=e.root,n=e.props;t.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,go=null,mo=[],Eo=function(e,t){e.element.textContent=t},_o=function(e){e.element.textContent=""},Io=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");Eo(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(go),go=setTimeout((function(){_o(e)}),1500)},To=function(e){return e.element.parentNode.contains(document.activeElement)},yo=function(e){var t=e.root,n=e.action;if(To(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);mo.push(r.filename),clearTimeout(vo),vo=setTimeout((function(){Io(t,mo.join(", "),t.query("GET_LABEL_FILE_ADDED")),mo.length=0}),750)}},Oo=function(e){var t=e.root,n=e.action;if(To(t)){var r=n.item;Io(t,r.filename,t.query("GET_LABEL_FILE_REMOVED"))}},Ro=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename,o=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Eo(t,i+" "+o)},bo=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename,o=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");Eo(t,i+" "+o)},wo=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id),i=r.filename;Eo(t,n.status.main+" "+i+" "+n.status.sub)},So=F({create:ho,ignoreRect:!0,ignoreRectUpdate:!0,write:q({DID_LOAD_ITEM:yo,DID_REMOVE_ITEM:Oo,DID_COMPLETE_ITEM_PROCESSING:Ro,DID_ABORT_ITEM_PROCESSING:bo,DID_REVERT_ITEM_PROCESSING:bo,DID_THROW_ITEM_REMOVE_ERROR:wo,DID_THROW_ITEM_LOAD_ERROR:wo,DID_THROW_ITEM_INVALID:wo,DID_THROW_ITEM_PROCESSING_ERROR:wo}),tag:"span",name:"assistant"}),Ao=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()}))},Do=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),s=0;s<o;s++)a[s]=arguments[s];clearTimeout(i);var l=Date.now()-r,c=function(){r=Date.now(),e.apply(void 0,a)};l<t?n||(i=setTimeout(c,t-l)):c()}},Mo=1e6,Po=function(e){return e.preventDefault()},Co=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(ci,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(Wr,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(_r,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(So,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(Ai,Object.assign({},n))),t.ref.measure=En("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!W(e.value)})).map((function(e){var n=e.name,r=e.value;t.element.dataset[n]=r})),t.ref.widthPrevious=null,t.ref.widthUpdated=Do((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))},Lo=function(e){var t=e.root,n=e.props,r=e.actions;if(jo({root:t,props:n,actions:r}),r.filter((function(e){return/^DID_SET_STYLE_/.test(e.type)})).filter((function(e){return!W(e.data.value)})).map((function(e){var n=e.type,r=e.data,i=Ao(n.substr(8).toLowerCase(),"_");t.element.dataset[i]=r.value,t.invalidateLayout()})),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var i=t.ref.bounds;i||(i=t.ref.bounds=Go(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var o=t.ref,a=o.hopper,s=o.label,l=o.list,c=o.panel;a&&a.updateHopperState();var u=t.query("GET_PANEL_ASPECT_RATIO"),f=t.query("GET_ALLOW_MULTIPLE"),d=t.query("GET_TOTAL_ITEMS"),p=f?t.query("GET_MAX_FILES")||Mo:1,h=d===p,v=r.find((function(e){return"DID_ADD_ITEM"===e.type}));if(h&&v){var g=v.data.interactionMethod;s.opacity=0,f?s.translateY=-40:g===we.API?s.translateX=40:g===we.BROWSE?s.translateY=40:s.translateY=30}else h||(s.opacity=1,s.translateX=0,s.translateY=0);var m=xo(t),E=No(t),_=s.rect.element.height,I=!f||h?0:_,T=h?l.rect.element.marginTop:0,y=0===d?0:l.rect.element.marginBottom,O=I+T+E.visual+y,R=I+T+E.bounds+y;if(l.translateY=Math.max(0,I-l.rect.element.marginTop)-m.top,u){var b=t.rect.element.width,w=b*u;u!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=u,t.ref.updateHistory=[]);var S=t.ref.updateHistory;S.push(b);var A=2;if(S.length>2*A)for(var D=S.length,M=D-10,P=0,C=D;C>=M;C--)if(S[C]===S[C-2]&&P++,P>=A)return;c.scalable=!1,c.height=w;var L=w-I-(y-m.bottom)-(h?T:0);E.visual>L?l.overflow=L:l.overflow=null,t.height=w}else if(i.fixedHeight){c.scalable=!1;var x=i.fixedHeight-I-(y-m.bottom)-(h?T:0);E.visual>x?l.overflow=x:l.overflow=null}else if(i.cappedHeight){var N=O>=i.cappedHeight,G=Math.min(i.cappedHeight,O);c.scalable=!0,c.height=N?G:G-m.top-m.bottom;var V=G-I-(y-m.bottom)-(h?T:0);O>i.cappedHeight&&E.visual>V?l.overflow=V:l.overflow=null,t.height=Math.min(i.cappedHeight,R-m.top-m.bottom)}else{var B=d>0?m.top+m.bottom:0;c.scalable=!0,c.height=Math.max(_,O-B),t.height=Math.max(_,R-B)}}},xo=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}},No=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 s=i.rect.element.width,l=Ar(i,a,r.dragCoordinates),c=a[0].rect.element,u=c.marginTop+c.marginBottom,f=c.marginLeft+c.marginRight,d=c.width+f,p=c.height+u,h="undefined"!==typeof l&&l>=0?1:0,v=a.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,g=a.length+h+v,m=Math.round(s/d);return 1===m?a.forEach((function(e){var r=e.rect.element.height+u;n+=r,t+=r*e.opacity})):(n=Math.ceil(g/m)*p,t=n),{visual:t,bounds:n}},Go=function(e){var t=e.ref.measureHeight||null,n=parseInt(e.style.maxHeight,10)||null,r=0===t?null:t;return{cappedHeight:n,fixedHeight:r}},Vo=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;if(!r&&a>1)return!0;o=r||n?o:1;var s=re(o);return!!(s&&i+a>o)&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Ut("warning",0,"Max files")}),!0)},Bo=function(e,t,n){var r=e.childViews[0];return Ar(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},ko=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var i=ao(e.element,(function(t){if(Vo(e,t))return!1;var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0},r=e.query("GET_DROP_VALIDATION");return!r||t.every((function(t){return Qe("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],i=r.childViews.filter((function(e){return e.rect.element.height})),o=e.query("GET_ACTIVE_ITEMS").map((function(e){return i.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));e.dispatch("ADD_ITEMS",{items:t,index:Bo(e.ref.list,o,n),interactionMethod:we.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=Do((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(mi))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Uo=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(oi,Object.assign({},t,{onload:function(t){if(Vo(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:we.BROWSE})}})),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Fo=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=po(),e.ref.paster.onload=function(t){e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:we.PASTE})}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},jo=q({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;Uo(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;ko(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;Fo(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;ko(t),Fo(t),Uo(t,n);var r=t.query("GET_DISABLED");r?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),qo=F({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:Co,write:Lo,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=et(),i=n(Te(r),[pt,be(r)],[gn,Re(r)]);i.dispatch("SET_OPTIONS",{options:e});var a=function(){document.hidden||i.dispatch("KICK")};document.addEventListener("visibilitychange",a);var s=null,l=!1,c=!1,u=null,f=null,d=function(){l||(l=!0),clearTimeout(s),s=setTimeout((function(){l=!1,u=null,f=null,c&&(c=!1,i.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",d);var p=qo(i,{id:Se()}),h=!1,v=!1,g={_read:function(){l&&(f=window.innerWidth,u||(u=f),c||f===u||(i.dispatch("DID_START_RESIZE"),c=!0)),v&&h&&(h=null===p.element.offsetParent),h||(p._read(),v=p.rect.element.hidden)},_write:function(e){var t=i.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));h&&!t.length||(I(t),h=p._write(e,t,c),je(i.query("GET_ITEMS")),h&&i.processDispatchQueue())}},m=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({},t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var r=t.item?t.item:i.query("GET_ITEM",t.id);n.file=r?Fe(r):null}return t.items&&(n.items=t.items.map(Fe)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},E={DID_DESTROY:m("destroy"),DID_INIT:m("init"),DID_THROW_MAX_FILES:m("warning"),DID_INIT_ITEM:m("initfile"),DID_START_ITEM_LOAD:m("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:m("addfileprogress"),DID_LOAD_ITEM:m("addfile"),DID_THROW_ITEM_INVALID:[m("error"),m("addfile")],DID_THROW_ITEM_LOAD_ERROR:[m("error"),m("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[m("error"),m("removefile")],DID_PREPARE_OUTPUT:m("preparefile"),DID_START_ITEM_PROCESSING:m("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:m("processfileprogress"),DID_ABORT_ITEM_PROCESSING:m("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:m("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:m("processfiles"),DID_REVERT_ITEM_PROCESSING:m("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[m("error"),m("processfile")],DID_REMOVE_ITEM:m("removefile"),DID_UPDATE_ITEMS:m("updatefiles"),DID_ACTIVATE_ITEM:m("activatefile"),DID_REORDER_ITEMS:m("reorderfiles")},_=function(e){var t=Object.assign({pond:x},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])})),x.fire.apply(x,[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 E[e.type]})).forEach((function(e){var t=E[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?_(t(e.data)):setTimeout((function(){_(t(e.data))}),0)}))}))},y=function(e){return i.dispatch("SET_OPTIONS",{options:e})},O=function(e){return i.query("GET_ACTIVE_ITEM",e)},R=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)}})}))},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){A([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(r)}))},w=function(e){return e.file&&e.id},S=function(e,t){return"object"!==typeof e||w(e)||t||(t=e,e=void 0),i.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===i.query("GET_ACTIVE_ITEM",e)},A=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($(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:we.API,success:e,failure:n})}))},D=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)}})}))},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,i=r.length?r:D();return Promise.all(i.map(R))},C=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=D().filter((function(e){return!(e.status===qe.IDLE&&e.origin===ze.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))},L=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=D();if(!i.length)return Promise.all(o.map((function(e){return S(e,r)})));var a=i.map((function(e){return T(e)?o[e]?o[e].id:null:e})).filter((function(e){return e}));return a.map((function(e){return S(e,r)}))},x=Object.assign({},Be(),{},g,{},Oe(i,r),{setOptions:y,addFile:b,addFiles:A,getFile:O,processFile:M,prepareFile:R,removeFile:S,moveFile:function(e,t){return i.dispatch("MOVE_ITEM",{query:e,index:t})},getFiles:D,processFiles:C,removeFiles:L,prepareFiles:P,sort:function(e){return i.dispatch("SORT",{compare:e})},browse:function(){var e=p.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){x.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 z(p.element,e)},insertAfter:function(e){return Y(p.element,e)},appendTo:function(e){return e.appendChild(p.element)},replaceElement:function(e){z(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(x)},Yo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};i(et(),(function(e,n){t[e]=n[0]}));var n=zo(Object.assign({},t,{},e));return n},$o=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},Wo=function(e){return Ao(e.replace(/^data-/,""))},Ho=function e(t,n){i(n,(function(n,r){i(t,(function(e,i){var o=new RegExp(n),a=o.test(e);if(a&&(delete t[e],!1!==r))if(J(r))t[r]=i;else{var s=r.group;de(r)&&!t[s]&&(t[s]={}),t[s][$o(e.replace(o,""))]=i}})),r.mapping&&e(t[r.group],r.mapping)}))},Xo=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[Wo(n.name)]=r===n.name||r,t}),{});return Ho(r,t),r},Zo=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};Qe("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),i=Xo("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach((function(e){de(i[e])?(de(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=Yo(r);return e.files&&Array.from(e.files).forEach((function(e){o.addFile(e)})),o.replaceElement(e),o},Qo=function(){return t(arguments.length<=0?void 0:arguments[0])?Zo.apply(void 0,arguments):Yo.apply(void 0,arguments)},Ko=["fire","_read","_write"],Jo=function(e){var t={};return ke(e,t,Ko),t},ea=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},ta=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=Se();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)}}},na=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}))},ra=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},ia=function(e){return ra(e,e.name)},oa=[],aa=function(e){if(!oa.includes(e)){oa.push(e);var t=e({addFilter:Ke,utils:{Type:He,forin:i,isString:J,isFile:tn,toNaturalFileSize:Dn,replaceInString:ea,getExtensionFromFilename:It,getFilenameWithoutExtension:Jt,guesstimateMimeType:Li,getFileFromBlob:Rt,getFilenameFromURL:_t,createRoute:q,createWorker:ta,createView:F,createItemAPI:Fe,loadImage:na,copyFile:ia,renameFile:ra,createBlob:wt,applyFilterChain:Ze,text:_n,getNumericAspectRatioFromString:it},views:{fileActionButton:An}});Je(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},ua=function(){return"URL"in window&&"createObjectURL"in window.URL},fa=function(){return"visibilityState"in document},da=function(){return"performance"in window},pa=function(){return"supports"in(window.CSS||{})},ha=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},va=function(){var e=v()&&!sa()&&fa()&&la()&&ca()&&ua()&&da()&&(pa()||ha());return function(){return e}}(),ga={apps:[]},ma="filepond",Ea=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=Ea,e.destroy=Ea,e.parse=Ea,e.find=Ea,e.registerPlugin=Ea,e.getOptions=Ea,e.setOptions=Ea,va()){j((function(){ga.apps.forEach((function(e){return e._read()}))}),(function(e){ga.apps.forEach((function(t){return t._write(e)}))}));var _a=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 _a()}),0):document.addEventListener("DOMContentLoaded",_a);var Ia=function(){return i(et(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},at),e.FileOrigin=Object.assign({},ze),e.FileStatus=Object.assign({},qe),e.OptionTypes={},Ia(),e.create=function(){var t=Qo.apply(void 0,arguments);return t.on("destroy",e.destroy),ga.apps.push(t),Jo(t)},e.destroy=function(e){var t=ga.apps.findIndex((function(t){return t.isAttachedTo(e)}));if(t>=0){var n=ga.apps.splice(t,1)[0];return n.restoreElement(),!0}return!1},e.parse=function(t){var n=Array.from(t.querySelectorAll("."+ma)),r=n.filter((function(e){return!ga.apps.find((function(t){return t.isAttachedTo(e)}))}));return r.map((function(t){return e.create(t)}))},e.find=function(e){var t=ga.apps.find((function(t){return t.isAttachedTo(e)}));return t?Jo(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(aa),Ia()},e.getOptions=function(){var e={};return i(et(),(function(t,n){e[t]=n[0]})),e},e.setOptions=function(t){return de(t)&&(ga.apps.forEach((function(e){e.setOptions(t)})),tt(t)),e.getOptions()}}e.supported=va,Object.defineProperty(e,"__esModule",{value:!0})}))},c3f0:function(e,t,n){"use strict";var r=n("80d2");const i=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:i}=e,o=.5,a=16;e.offsetX=n-t,e.offsetY=i-r,Math.abs(e.offsetY)<o*Math.abs(e.offsetX)&&(e.left&&n<t-a&&e.left(e),e.right&&n>t+a&&e.right(e)),Math.abs(e.offsetX)<o*Math.abs(e.offsetY)&&(e.up&&i<r-a&&e.up(e),e.down&&i>r+a&&e.down(e))};function o(e,t){const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start&&t.start(Object.assign(e,t))}function a(e,t){const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end&&t.end(Object.assign(e,t)),i(t)}function s(e,t){const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move&&t.move(Object.assign(e,t))}function l(e){const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:e=>o(e,t),touchend:e=>a(e,t),touchmove:e=>s(e,t)}}function c(e,t,n){const i=t.value,o=i.parent?e.parentElement:e,a=i.options||{passive:!0};if(!o)return;const s=l(t.value);o._touchHandlers=Object(o._touchHandlers),o._touchHandlers[n.context._uid]=s,Object(r["y"])(s).forEach(e=>{o.addEventListener(e,s[e],a)})}function u(e,t,n){const i=t.value.parent?e.parentElement:e;if(!i||!i._touchHandlers)return;const o=i._touchHandlers[n.context._uid];Object(r["y"])(o).forEach(e=>{i.removeEventListener(e,o[e])}),delete i._touchHandlers[n.context._uid]}const f={inserted:c,unbind:u};t["a"]=f},ca71:function(e,t,n){},d10f:function(e,t,n){"use strict";var r=n("2b0e");t["a"]=r["default"].extend({name:"ssr-bootable",data:()=>({isBooted:!1}),mounted(){window.requestAnimationFrame(()=>{this.$el.setAttribute("data-booted","true"),this.isBooted=!0})}})},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),a=n("9263"),s=n("9112"),l=o("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=o(e),v=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),g=v&&!i((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!g||"replace"===e&&(!c||!u||d)||"split"===e&&!p){var m=/./[h],E=n(h,""[e],(function(e,t,n,r,i){return t.exec===a?v&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),_=E[0],I=E[1];r(String.prototype,e,_),r(RegExp.prototype,h,2==t?function(e,t){return I.call(e,this,t)}:function(e){return I.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},dbb4:function(e,t,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,c=o(r),u={},f=0;while(c.length>f)n=i(r,t=c[f++]),void 0!==n&&l(u,t,n);return u}})},e439:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=i((function(){a(1)})),c=!s||l;r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e4cd:function(e,t,n){"use strict";var r=n("d9bd"),i=n("2b0e");t["a"]=i["default"].extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:e=>!isNaN(Number(e))||["xs","sm","md","lg","xl"].includes(String(e))}},computed:{isMobile(){const{mobile:e,width:t,name:n,mobileBreakpoint:r}=this.$vuetify.breakpoint;if(r===this.mobileBreakpoint)return e;const i=parseInt(this.mobileBreakpoint,10),o=!isNaN(i);return o?t<i:n===this.mobileBreakpoint}},created(){this.$attrs.hasOwnProperty("mobile-break-point")&&Object(r["d"])("mobile-break-point","mobile-breakpoint",this)}})},e851:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-container",{staticClass:"grey lighten-5"},[n("v-row",{attrs:{justify:"space-between"}},[n("v-col",[n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-card",{attrs:{color:"#385F73",dark:""}},[n("v-row",{attrs:{dense:""}},[n("v-textarea",{attrs:{solo:"",falt:"",filled:"","auto-grow":"",label:"说点什么呢?",rows:"3"},model:{value:e.statusPost.content,callback:function(t){e.$set(e.statusPost,"content",t)},expression:"statusPost.content"}})],1),n("v-row",[n("v-col",[n("div",[n("file-pond",{ref:"pond",attrs:{name:"file","label-idle":"选择图片或拖动图片到此处","label-file-processing":"图片正在上传，请稍后","label-file-processing-aborted":"图片上传被取消","label-tap-to-retry":"尝试重试","label-file-processing-complete":"图片上传成功！","label-max-file-size":"上传的图片大小不能超过 10MB","label-max-file-size-exceeded":"上传的图片大小不能超过 10MB","allow-file-size-validation":"true","max-file-size":"10MB","accepted-file-types":"image/png, image/jpeg, image/jpg, image/gif","allow-multiple":!0,"max-files":12,server:e.server,"instant-upload":!0},on:{init:e.handleFilePondInit,processfile:e.success,removefile:e.removeFile}})],1)])],1),n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-card-actions",[n("v-btn",{attrs:{text:""},on:{click:e.publish}},[e._v(" 发布 ")])],1)],1)],1)],1)],1),n("v-col",[n("v-sheet",{staticClass:"mx-auto",attrs:{"max-width":"720"}})],1),n("v-col",[n("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.loadMore,expression:"loadMore"}],attrs:{"infinite-scroll-disabled":"true","infinite-scroll-distance":"10"}},[n("v-col",{attrs:{cols:"12"}},[n("v-tabs",[n("v-tab",{on:{click:function(t){return e.setType(0)}}},[e._v("状态")]),n("v-tab",{on:{click:function(t){return e.setType(1)}}},[e._v("视频")]),n("v-tab",{on:{click:function(t){return e.setType(2)}}},[e._v("回答")])],1),e._l(e.cardList,(function(t){return n("v-row",{key:t.statusId,attrs:{dense:""}},["status"===e.cardType?n("status-card",{attrs:{item:t}}):e._e(),"video"===e.cardType?n("item-card",{attrs:{video:t}}):e._e(),"answer"===e.cardType?n("status-card",{attrs:{item:t}}):e._e()],1)}))],2)],1)])],1)],1),n("v-col",{attrs:{md:"4"}},[n("v-row",{attrs:{dense:""}},[n("v-col",{attrs:{cols:"12"}},[n("v-card",{staticClass:"mx-auto",attrs:{color:"#26c6da",dark:""}},[n("v-card-title",[n("v-avatar",{attrs:{size:"32"}},[n("v-img",{attrs:{src:this.$store.state.user.userInfo.avatarUrl,alt:this.$store.state.user.userInfo.username,title:this.$store.state.user.userInfo.username}})],1),n("span",{staticClass:"text-h6 font-weight-light"},[e._v(e._s(this.$store.state.user.userInfo.username))])],1),n("v-card-text",{staticClass:"text-h5 font-weight-light"},[e._v(" "+e._s(this.$store.state.user.userInfo.intro)+" ")]),n("v-card-text",{staticClass:"text-h5 font-weight-light"},[e._v(" 关注 "+e._s(this.$store.state.user.userInfo.followingCount)+" | 被关注 "+e._s(this.$store.state.user.userInfo.followerCount)+" ")])],1)],1),n("v-col",{attrs:{cols:"12"}},[n("v-card",{attrs:{color:"#385F73",light:""}},[n("v-card-title",{staticClass:"text-h5"},[e._v(" 热门问题 ")]),n("v-card-text",[n("p",{staticClass:"text-body-1 text--primary"},[e._v(" 1.第1条 ")]),n("p",{staticClass:"text-body-1 text--primary"},[e._v(" 2.第2条 ")])])],1)],1),n("v-col",{attrs:{cols:"12"}},[n("v-card",{attrs:{color:"#385F73",light:""}},[n("v-card-title",{staticClass:"text-h5"},[e._v(" 热门视频 ")]),n("v-card-text",[n("p",{staticClass:"text-body-1 text--primary"},[e._v(" 1.第1条 ")]),n("p",{staticClass:"text-body-1 text--primary"},[e._v(" 2.第2条 ")])])],1)],1)],1)],1)],1),n("v-snackbar",{attrs:{top:!0,timeout:3e3},scopedSlots:e._u([{key:"action",fn:function(t){var r=t.attrs;return[n("v-btn",e._b({attrs:{color:"pink",text:""},on:{click:function(t){e.showMessage=!1}}},"v-btn",r,!1),[e._v(" 关闭 ")])]}}]),model:{value:e.showMessage,callback:function(t){e.showMessage=t},expression:"showMessage"}},[e._v(" "+e._s(e.message)+" ")])],1)},i=[],o=(n("99af"),n("b0c0"),n("d3b7"),n("b85c")),a=n("6b75");function s(e){if(Array.isArray(e))return Object(a["a"])(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("3ca3"),n("ddb0");function l(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}var c=n("06c5");function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return s(e)||l(e)||Object(c["a"])(e)||u()}var d=n("5530"),p=n("2f62"),h=n("365c"),v={statusPubApi:"/api/mblog/status",statusRecommendApi:"/api/mblog/status",answerRecommendApi:"/api/mblog/answer"};function g(e){return h["a"].post(v.statusPubApi,e)}function m(e){return h["a"].get(v.statusRecommendApi+"/"+e)}var E=n("1c2b"),_=n("4587"),I=n("371f"),T=n("1501"),y=n.n(T),O=(n("4ed3"),n("2cfc")),R=n.n(O),b=(n("57c8"),n("1942")),w=n.n(b),S=n("3b96"),A=n.n(S),D=y()(w.a,R.a,A.a),M="",P={name:"Home",components:{FilePond:D,StatusCard:_["a"],ItemCard:I["a"]},data:function(){return{imgMap:{},server:{url:"//file.reghao.cn/api/file/upload/image",revert:null,process:{headers:{Authorization:this.$store.getters.token},ondata:function(e){return e},onload:function(e){M=JSON.parse(e)}}},statusPost:{imageUrls:[],content:"",location:""},cardType:null,cardList:[],busy:!1,page:1,followingUser:[{username:"haha",avatar:"",userId:1e4},{username:"haha",avatar:"",userId:10001},{username:"haha",avatar:"",userId:10002}],showMessage:!1,message:""}},computed:Object(d["a"])({},Object(p["c"])({statuses:"my_content",option:"my_content_option",showImage:"image_zoom_show"})),watch:{option:{handler:function(e,t){e&&1===e.page&&(this.cardList=[])},deep:!0},statuses:function(e,t){e&&(1===this.option.page?this.cardList=e:this.cardList=[].concat(f(this.cardList),f(e)))}},created:function(){this.getFollowingStatus(this.page)},mounted:function(){},methods:Object(d["a"])(Object(d["a"])({},Object(p["b"])(["getMyContent"])),{},{handleFilePondInit:function(){},success:function(e,t){if(null===e)if(0===M.code){var n=t.file,r=n.name;this.imgMap[r]=M.data.uploadId;var i={};i.imageFileId=M.data.imageFileId,i.thumbnailUrl=M.data.thumbnailUrl,i.originalUrl=M.data.originalUrl,this.statusPost.imageUrls.push(i)}else null!=M.msg?this.message="上传文件出现异常，请重新上传！"+M.msg:this.message="上传文件出现异常，请重新上传！",this.showMessage=!0},removeFile:function(e,t){if(null===e){var n=t.file,r=this.imgMap[n.name];fetch("//file.reghao.cn/api/file/rm/"+r,{headers:{Authorization:this.$store.getters.token},method:"DELETE"}).then((function(e){return e.json()})).then((function(e){console.log("删除 this.statusPost.imageUrls 中相应的图片")})).catch((function(e){return null}))}},setType:function(e){e!==this.type&&(this.type=e,this.page=1,0===e?(this.getFollowingStatus(this.page),this.$vuetify.goTo(e)):1===e?(this.getFollowingVideos(this.page),this.$vuetify.goTo(e)):2===e&&(this.getFollowingAnswers(this.page),this.$vuetify.goTo(e)))},loadMore:function(){var e=this;this.busy=!0,setTimeout((function(){"status"===e.cardType?e.getFollowingStatus(e.page):"video"===e.cardType?e.getFollowingVideos(e.page):"answer"===e.cardType&&e.getFollowingAnswers(e.page)}),1e3)},getFollowingStatus:function(e){var t=this;m(e).then((function(n){if(0===n.code){t.cardType="status",1===e&&(t.cardList=[]);var r,i=Object(o["a"])(n.data.list);try{for(i.s();!(r=i.n()).done;){var a=r.value;t.cardList.push(a)}}catch(s){i.e(s)}finally{i.f()}t.page+=1,t.busy=!1}else t.message=n.msg,t.showMessage=!0})).catch((function(e){t.message=e.message,t.showMessage=!0}))},getFollowingVideos:function(e){var t=this;Object(E["i"])(e).then((function(n){if(0===n.code){t.cardType="video",1===e&&(t.cardList=[]);var r,i=Object(o["a"])(n.data.list);try{for(i.s();!(r=i.n()).done;){var a=r.value;t.cardList.push(a)}}catch(s){i.e(s)}finally{i.f()}t.page+=1,t.busy=!1}else t.message=n.msg,t.showMessage=!0})).catch((function(e){t.message=e.message,t.showMessage=!0}))},getFollowingAnswers:function(e){this.cardType="answer",console.log("获取关注的用户回答")},selectFollowingUser:function(){console.log("加载选中用户的状态...")},publish:function(){var e=this;if(""===this.statusPost.content)return this.message="内容不能为空",void(this.showMessage=!0);g(this.statusPost).then((function(t){0===t.code?(e.message="状态已发布",e.showMessage=!0):(e.message=t.msg,e.showMessage=!0)})).catch((function(t){e.message=t.message,e.showMessage=!0}))}})},C=P,L=n("2877"),x=n("6544"),N=n.n(x),G=n("8212"),V=n("8336"),B=n("b0af"),k=n("99d9"),U=n("62ad"),F=n("a523"),j=n("adda"),q=n("0fd9"),z=n("8dd9"),Y=n("2db4"),$=n("71a3"),W=n("fe57"),H=n("a844"),X=Object(L["a"])(C,r,i,!1,null,null,null);t["default"]=X.exports;N()(X,{VAvatar:G["a"],VBtn:V["a"],VCard:B["a"],VCardActions:k["a"],VCardText:k["b"],VCardTitle:k["c"],VCol:U["a"],VContainer:F["a"],VImg:j["a"],VRow:q["a"],VSheet:z["a"],VSnackbar:Y["a"],VTab:$["a"],VTabs:W["a"],VTextarea:H["a"]})},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("861d"),o=n("e8b5"),a=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),f=n("1dde"),d=n("ae40"),p=f("slice"),h=d("slice",{ACCESSORS:!0,0:0,1:2}),v=u("species"),g=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,u,f=l(this),d=s(f.length),p=a(e,d),h=a(void 0===t?d:t,d);if(o(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[v],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return g.call(f,p,h);for(r=new(void 0===n?Array:n)(m(h-p,0)),u=0;p<h;p++,u++)p in f&&c(r,u,f[p]);return r.length=u,r}})},fe57:function(e,t,n){"use strict";n("1bfb"),n("608c");var r=n("9d26"),i=n("0789"),o=n("604c"),a=n("e4cd"),s=n("dc22"),l=n("c3f0"),c=n("58df");const u=Object(c["a"])(o["a"],a["a"]).extend({name:"base-slide-group",directives:{Resize:s["a"],Touch:l["a"]},props:{activeClass:{type:String,default:"v-slide-item--active"},centerActive:Boolean,nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>"boolean"===typeof e||["always","desktop","mobile"].includes(e)}},data:()=>({internalItemsLength:0,isOverflowing:!1,resizeTimeout:0,startX:0,scrollOffset:0,widths:{content:0,wrapper:0}}),computed:{__cachedNext(){return this.genTransition("next")},__cachedPrev(){return this.genTransition("prev")},classes(){return{...o["a"].options.computed.classes.call(this),"v-slide-group":!0,"v-slide-group--has-affixes":this.hasAffixes,"v-slide-group--is-overflowing":this.isOverflowing}},hasAffixes(){switch(this.showArrows){case"always":return!0;case"desktop":return!this.isMobile;case!0:return this.isOverflowing;case"mobile":return this.isMobile||this.isOverflowing;default:return!this.isMobile&&this.isOverflowing}},hasNext(){if(!this.hasAffixes)return!1;const{content:e,wrapper:t}=this.widths;return e>Math.abs(this.scrollOffset)+t},hasPrev(){return this.hasAffixes&&0!==this.scrollOffset}},watch:{internalValue:"setWidths",isOverflowing:"setWidths",scrollOffset(e){this.$refs.content.style.transform=`translateX(${-e}px)`}},beforeUpdate(){this.internalItemsLength=(this.$children||[]).length},updated(){this.internalItemsLength!==(this.$children||[]).length&&this.setWidths()},methods:{genNext(){const e=this.$scopedSlots.next?this.$scopedSlots.next({}):this.$slots.next||this.__cachedNext;return this.$createElement("div",{staticClass:"v-slide-group__next",class:{"v-slide-group__next--disabled":!this.hasNext},on:{click:()=>this.onAffixClick("next")},key:"next"},[e])},genContent(){return this.$createElement("div",{staticClass:"v-slide-group__content",ref:"content"},this.$slots.default)},genData(){return{class:this.classes,directives:[{name:"resize",value:this.onResize}]}},genIcon(e){let t=e;this.$vuetify.rtl&&"prev"===e?t="next":this.$vuetify.rtl&&"next"===e&&(t="prev");const n=`${e[0].toUpperCase()}${e.slice(1)}`,i=this["has"+n];return this.showArrows||i?this.$createElement(r["a"],{props:{disabled:!i}},this[t+"Icon"]):null},genPrev(){const e=this.$scopedSlots.prev?this.$scopedSlots.prev({}):this.$slots.prev||this.__cachedPrev;return this.$createElement("div",{staticClass:"v-slide-group__prev",class:{"v-slide-group__prev--disabled":!this.hasPrev},on:{click:()=>this.onAffixClick("prev")},key:"prev"},[e])},genTransition(e){return this.$createElement(i["d"],[this.genIcon(e)])},genWrapper(){return this.$createElement("div",{staticClass:"v-slide-group__wrapper",directives:[{name:"touch",value:{start:e=>this.overflowCheck(e,this.onTouchStart),move:e=>this.overflowCheck(e,this.onTouchMove),end:e=>this.overflowCheck(e,this.onTouchEnd)}}],ref:"wrapper"},[this.genContent()])},calculateNewOffset(e,t,n,r){const i=n?-1:1,o=i*r+("prev"===e?-1:1)*t.wrapper;return i*Math.max(Math.min(o,t.content-t.wrapper),0)},onAffixClick(e){this.$emit("click:"+e),this.scrollTo(e)},onResize(){this._isDestroyed||this.setWidths()},onTouchStart(e){const{content:t}=this.$refs;this.startX=this.scrollOffset+e.touchstartX,t.style.setProperty("transition","none"),t.style.setProperty("willChange","transform")},onTouchMove(e){this.scrollOffset=this.startX-e.touchmoveX},onTouchEnd(){const{content:e,wrapper:t}=this.$refs,n=e.clientWidth-t.clientWidth;e.style.setProperty("transition",null),e.style.setProperty("willChange",null),this.$vuetify.rtl?this.scrollOffset>0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset<=-n&&(this.scrollOffset=-n):this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=n&&(this.scrollOffset=n)},overflowCheck(e,t){e.stopPropagation(),this.isOverflowing&&t(e)},scrollIntoView(){this.selectedItem&&(0===this.selectedIndex||!this.centerActive&&!this.isOverflowing?this.scrollOffset=0:this.centerActive?this.scrollOffset=this.calculateCenteredOffset(this.selectedItem.$el,this.widths,this.$vuetify.rtl):this.isOverflowing&&(this.scrollOffset=this.calculateUpdatedOffset(this.selectedItem.$el,this.widths,this.$vuetify.rtl,this.scrollOffset)))},calculateUpdatedOffset(e,t,n,r){const i=e.clientWidth,o=n?t.content-e.offsetLeft-i:e.offsetLeft;n&&(r=-r);const a=t.wrapper+r,s=i+o,l=.4*i;return o<=r?r=Math.max(o-l,0):a<=s&&(r=Math.min(r-(a-s-l),t.content-t.wrapper)),n?-r:r},calculateCenteredOffset(e,t,n){const{offsetLeft:r,clientWidth:i}=e;if(n){const e=t.content-r-i/2-t.wrapper/2;return-Math.min(t.content-t.wrapper,Math.max(0,e))}{const e=r+i/2-t.wrapper/2;return Math.min(t.content-t.wrapper,Math.max(0,e))}},scrollTo(e){this.scrollOffset=this.calculateNewOffset(e,{content:this.$refs.content?this.$refs.content.clientWidth:0,wrapper:this.$refs.wrapper?this.$refs.wrapper.clientWidth:0},this.$vuetify.rtl,this.scrollOffset)},setWidths(){window.requestAnimationFrame(()=>{const{content:e,wrapper:t}=this.$refs;this.widths={content:e?e.clientWidth:0,wrapper:t?t.clientWidth:0},this.isOverflowing=this.widths.wrapper<this.widths.content,this.scrollIntoView()})}},render(e){return e("div",this.genData(),[this.genPrev(),this.genWrapper(),this.genNext()])}});u.extend({name:"v-slide-group",provide(){return{slideGroup:this}}});var f=n("7560"),d=n("d10f"),p=Object(c["a"])(u,d["a"],f["a"]).extend({name:"v-tabs-bar",provide(){return{tabsBar:this}},computed:{classes(){return{...u.options.computed.classes.call(this),"v-tabs-bar":!0,"v-tabs-bar--is-mobile":this.isMobile,"v-tabs-bar--show-arrows":this.showArrows,...this.themeClasses}}},watch:{items:"callSlider",internalValue:"callSlider",$route:"onRouteChange"},methods:{callSlider(){this.isBooted&&this.$emit("call:slider")},genContent(){const e=u.options.methods.genContent.call(this);return e.data=e.data||{},e.data.staticClass+=" v-tabs-bar__content",e},onRouteChange(e,t){if(this.mandatory)return;const n=this.items,r=e.path,i=t.path;let o=!1,a=!1;for(const s of n)if(s.to===r?o=!0:s.to===i&&(a=!0),o&&a)break;!o&&a&&(this.internalValue=void 0)}},render(e){const t=u.options.render.call(this,e);return t.data.attrs={role:"tablist"},t}}),h=(n("13b3"),n("afdd")),v=o["a"].extend({name:"v-window",provide(){return{windowGroup:this}},directives:{Touch:l["a"]},props:{activeClass:{type:String,default:"v-window-item--active"},continuous:Boolean,mandatory:{type:Boolean,default:!0},nextIcon:{type:[Boolean,String],default:"$next"},prevIcon:{type:[Boolean,String],default:"$prev"},reverse:{type:Boolean,default:void 0},showArrows:Boolean,showArrowsOnHover:Boolean,touch:Object,touchless:Boolean,value:{required:!1},vertical:Boolean},data(){return{changedByDelimiters:!1,internalHeight:void 0,transitionHeight:void 0,transitionCount:0,isBooted:!1,isReverse:!1}},computed:{isActive(){return this.transitionCount>0},classes(){return{...o["a"].options.computed.classes.call(this),"v-window--show-arrows-on-hover":this.showArrowsOnHover}},computedTransition(){if(!this.isBooted)return"";const e=this.vertical?"y":"x",t=this.$vuetify.rtl&&"x"===e?!this.internalReverse:this.internalReverse,n=t?"-reverse":"";return`v-window-${e}${n}-transition`},hasActiveItems(){return Boolean(this.items.find(e=>!e.disabled))},hasNext(){return this.continuous||this.internalIndex<this.items.length-1},hasPrev(){return this.continuous||this.internalIndex>0},internalIndex(){return this.items.findIndex((e,t)=>this.internalValue===this.getValue(e,t))},internalReverse(){return this.reverse?!this.isReverse:this.isReverse}},watch:{internalIndex:"updateReverse"},mounted(){window.requestAnimationFrame(()=>this.isBooted=!0)},methods:{genContainer(){const e=[this.$slots.default];return this.showArrows&&e.push(this.genControlIcons()),this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight||this.transitionHeight}},e)},genIcon(e,t,n){return this.$createElement("div",{staticClass:"v-window__"+e},[this.$createElement(h["a"],{props:{icon:!0},attrs:{"aria-label":this.$vuetify.lang.t("$vuetify.carousel."+e)},on:{click:()=>{this.changedByDelimiters=!0,n()}}},[this.$createElement(r["a"],{props:{large:!0}},t)])])},genControlIcons(){const e=[],t=this.$vuetify.rtl?this.nextIcon:this.prevIcon;if(this.hasPrev&&t&&"string"===typeof t){const n=this.genIcon("prev",t,this.prev);n&&e.push(n)}const n=this.$vuetify.rtl?this.prevIcon:this.nextIcon;if(this.hasNext&&n&&"string"===typeof n){const t=this.genIcon("next",n,this.next);t&&e.push(t)}return e},getNextIndex(e){const t=(e+1)%this.items.length,n=this.items[t];return n.disabled?this.getNextIndex(t):t},getPrevIndex(e){const t=(e+this.items.length-1)%this.items.length,n=this.items[t];return n.disabled?this.getPrevIndex(t):t},next(){if(this.isReverse=this.$vuetify.rtl,!this.hasActiveItems||!this.hasNext)return;const e=this.getNextIndex(this.internalIndex),t=this.items[e];this.internalValue=this.getValue(t,e)},prev(){if(this.isReverse=!this.$vuetify.rtl,!this.hasActiveItems||!this.hasPrev)return;const e=this.getPrevIndex(this.internalIndex),t=this.items[e];this.internalValue=this.getValue(t,e)},updateReverse(e,t){this.changedByDelimiters?this.changedByDelimiters=!1:this.isReverse=e<t}},render(e){const t={staticClass:"v-window",class:this.classes,directives:[]};if(!this.touchless){const e=this.touch||{left:()=>{this.$vuetify.rtl?this.prev():this.next()},right:()=>{this.$vuetify.rtl?this.next():this.prev()},end:e=>{e.stopPropagation()},start:e=>{e.stopPropagation()}};t.directives.push({name:"touch",value:e})}return e("div",t,[this.genContainer()])}}),g=v.extend({name:"v-tabs-items",props:{mandatory:{type:Boolean,default:!1}},computed:{classes(){return{...v.options.computed.classes.call(this),"v-tabs-items":!0}},isDark(){return this.rootIsDark}},methods:{getValue(e,t){return e.id||o["a"].options.methods.getValue.call(this,e,t)}}}),m=n("a9ad"),E=Object(c["a"])(m["a"]).extend({name:"v-tabs-slider",render(e){return e("div",this.setBackgroundColor(this.color,{staticClass:"v-tabs-slider"}))}}),_=n("a452"),I=n("80d2");const T=Object(c["a"])(m["a"],_["a"],f["a"]);t["a"]=T.extend().extend({name:"v-tabs",directives:{Resize:s["a"]},props:{activeClass:{type:String,default:""},alignWithTitle:Boolean,backgroundColor:String,centerActive:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,iconsAndText:Boolean,mobileBreakpoint:[String,Number],nextIcon:{type:String,default:"$next"},optional:Boolean,prevIcon:{type:String,default:"$prev"},right:Boolean,showArrows:[Boolean,String],sliderColor:String,sliderSize:{type:[Number,String],default:2},vertical:Boolean},data(){return{resizeTimeout:0,slider:{height:null,left:null,right:null,top:null,width:null},transitionTime:300}},computed:{classes(){return{"v-tabs--align-with-title":this.alignWithTitle,"v-tabs--centered":this.centered,"v-tabs--fixed-tabs":this.fixedTabs,"v-tabs--grow":this.grow,"v-tabs--icons-and-text":this.iconsAndText,"v-tabs--right":this.right,"v-tabs--vertical":this.vertical,...this.themeClasses}},isReversed(){return this.$vuetify.rtl&&this.vertical},sliderStyles(){return{height:Object(I["g"])(this.slider.height),left:this.isReversed?void 0:Object(I["g"])(this.slider.left),right:this.isReversed?Object(I["g"])(this.slider.right):void 0,top:this.vertical?Object(I["g"])(this.slider.top):void 0,transition:null!=this.slider.left?null:"none",width:Object(I["g"])(this.slider.width)}},computedColor(){return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"}},watch:{alignWithTitle:"callSlider",centered:"callSlider",centerActive:"callSlider",fixedTabs:"callSlider",grow:"callSlider",right:"callSlider",showArrows:"callSlider",vertical:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize","$vuetify.rtl":"onResize"},mounted(){this.$nextTick(()=>{window.setTimeout(this.callSlider,30)})},methods:{callSlider(){return!this.hideSlider&&this.$refs.items&&this.$refs.items.selectedItems.length?(this.$nextTick(()=>{const e=this.$refs.items.selectedItems[0];if(!e||!e.$el)return this.slider.width=0,void(this.slider.left=0);const t=e.$el;this.slider={height:this.vertical?t.scrollHeight:Number(this.sliderSize),left:this.vertical?0:t.offsetLeft,right:this.vertical?0:t.offsetLeft+t.offsetWidth,top:t.offsetTop,width:this.vertical?Number(this.sliderSize):t.scrollWidth}}),!0):(this.slider.width=0,!1)},genBar(e,t){const n={style:{height:Object(I["g"])(this.height)},props:{activeClass:this.activeClass,centerActive:this.centerActive,dark:this.dark,light:this.light,mandatory:!this.optional,mobileBreakpoint:this.mobileBreakpoint,nextIcon:this.nextIcon,prevIcon:this.prevIcon,showArrows:this.showArrows,value:this.internalValue},on:{"call:slider":this.callSlider,change:e=>{this.internalValue=e}},ref:"items"};return this.setTextColor(this.computedColor,n),this.setBackgroundColor(this.backgroundColor,n),this.$createElement(p,n,[this.genSlider(t),e])},genItems(e,t){return e||(t.length?this.$createElement(g,{props:{value:this.internalValue},on:{change:e=>{this.internalValue=e}}},t):null)},genSlider(e){return this.hideSlider?null:(e||(e=this.$createElement(E,{props:{color:this.sliderColor}})),this.$createElement("div",{staticClass:"v-tabs-slider-wrapper",style:this.sliderStyles},[e]))},onResize(){this._isDestroyed||(clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.callSlider,0))},parseNodes(){let e=null,t=null;const n=[],r=[],i=this.$slots.default||[],o=i.length;for(let a=0;a<o;a++){const o=i[a];if(o.componentOptions)switch(o.componentOptions.Ctor.options.name){case"v-tabs-slider":t=o;break;case"v-tabs-items":e=o;break;case"v-tab-item":n.push(o);break;default:r.push(o)}else r.push(o)}return{tab:r,slider:t,items:e,item:n}}},render(e){const{tab:t,slider:n,items:r,item:i}=this.parseNodes();return e("div",{staticClass:"v-tabs",class:this.classes,directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]},[this.genBar(t,n),this.genItems(r,i)])}})}}]);