diff --git a/dist/js/field.js b/dist/js/field.js index 8e8a92f..850ed95 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1,2 +1,2 @@ /*! For license information please see field.js.LICENSE.txt */ -(()=>{var e={4475:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(3645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,":root{--filepond-column:100%;--filepond-max-height:auto}.dark .filepond--drop-label{color:rgba(var(--colors-gray-400))}.dark .filepond--panel-root{background-color:rgba(var(--colors-gray-900))}.dark .filepond--image-preview-wrapper,.dark .filepond--panel-root{border-color:rgba(var(--colors-gray-700))}.dark .filepond--image-preview{background-color:rgba(var(--colors-gray-800))}.dark .filepond--list-scroller::-webkit-scrollbar-thumb{background-color:rgba(var(--colors-gray-700))}.dark .filepond--image-preview-overlay{color:rgba(var(--colors-gray-400))}.dark .filepond--item-panel{background:rgba(var(--colors-gray-800))}[data-filepond-item-state*=error] .filepond--item-panel,[data-filepond-item-state*=invalid] .filepond--item-panel{background-color:rgba(var(--colors-red-500))}[data-filepond-item-state=processing-complete] .filepond--item-panel{background-color:rgba(var(--colors-green-500))}.filepond--file-wrapper{background:transparent}.filepond--item-panel{background:rgba(var(--colors-gray-400))}.filepond--image-preview-overlay.filepond--image-preview-overlay-idle{color:rgba(var(--colors-gray-500))}.filepond--image-preview-overlay.filepond--image-preview-overlay-success{color:rgba(var(--colors-green-500))}.filepond--image-preview-overlay.filepond--image-preview-overlay-failure{color:rgba(var(--colors-red-500))}.filepond--image-preview{background-color:rgba(var(--colors-gray-100))}.filepond--image-preview-wrapper{border-color:rgba(var(--colors-gray-300))}.filepond--drop-label{color:rgba(var(--colors-gray-600))}.filepond--root{max-height:var(--filepond-max-height)}.filepond--panel-root{background-color:rgba(var(--colors-gray-100));border-color:rgba(var(--colors-gray-300));border-radius:.25rem;border-width:1px}.filepond--image-preview-wrapper{border-radius:.25rem;border-width:1px}.filepond--fullsize-overlay{position:fixed;z-index:20}.filepond--item{width:calc(var(--filepond-column) - .5em)}",""]);const i=o},3527:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(3645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,"/*!\n * FilePondPluginImagePreview 4.6.11\n * Licensed under MIT, https://opensource.org/licenses/MIT/\n * Please visit https://pqina.nl/filepond/ for details.\n */.filepond--image-preview-markup{left:0;position:absolute;top:0}.filepond--image-preview-wrapper{z-index:2}.filepond--image-preview-overlay{display:block;left:0;margin:0;max-height:7rem;min-height:5rem;opacity:0;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:2}.filepond--image-preview-overlay svg{color:inherit;height:auto;max-height:inherit;width:100%}.filepond--image-preview-overlay-idle{color:rgba(40,40,40,.85);mix-blend-mode:multiply}.filepond--image-preview-overlay-success{color:#369763;mix-blend-mode:normal}.filepond--image-preview-overlay-failure{color:#c44e47;mix-blend-mode:normal}@supports (-webkit-marquee-repetition:infinite) and ((-o-object-fit:fill) or (object-fit:fill)){.filepond--image-preview-overlay-idle{mix-blend-mode:normal}}.filepond--image-preview-wrapper{background:rgba(0,0,0,.01);border-radius:.45em;height:100%;left:0;margin:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.filepond--image-preview{align-items:center;background:#222;display:flex;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;will-change:transform,opacity;z-index:1}.filepond--image-clip{margin:0 auto;overflow:hidden;position:relative}.filepond--image-clip[data-transparency-indicator=grid] canvas,.filepond--image-clip[data-transparency-indicator=grid] img{background-color:#fff;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' fill='%23eee'%3E%3Cpath d='M0 0h50v50H0m50 0h50v50H50'/%3E%3C/svg%3E\");background-size:1.25em 1.25em}.filepond--image-bitmap,.filepond--image-vector{left:0;position:absolute;top:0;will-change:transform}.filepond--root[data-style-panel-layout~=integrated] .filepond--image-preview-wrapper{border-radius:0}.filepond--root[data-style-panel-layout~=integrated] .filepond--image-preview{align-items:center;display:flex;height:100%;justify-content:center}.filepond--root[data-style-panel-layout~=circle] .filepond--image-preview-wrapper{border-radius:99999rem}.filepond--root[data-style-panel-layout~=circle] .filepond--image-preview-overlay{bottom:0;top:auto;-webkit-transform:scaleY(-1);transform:scaleY(-1)}.filepond--root[data-style-panel-layout~=circle] .filepond--file .filepond--file-action-button[data-align*=bottom]:not([data-align*=center]){margin-bottom:.325em}.filepond--root[data-style-panel-layout~=circle] .filepond--file [data-align*=left]{left:calc(50% - 3em)}.filepond--root[data-style-panel-layout~=circle] .filepond--file [data-align*=right]{right:calc(50% - 3em)}.filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=left],.filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=right]{margin-bottom:.5125em}.filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=center]{margin-bottom:.1875em;margin-left:.1875em;margin-top:0}",""]);const i=o},5263:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(3645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,'/*!\n * FilePondPluginmediaPreview 1.0.11\n * Licensed under MIT, https://opensource.org/licenses/MIT/\n * Please visit undefined for details.\n */.filepond--media-preview audio{display:none}.filepond--media-preview .audioplayer{margin:2.3em auto auto;width:calc(100% - 1.4em)}.filepond--media-preview .playpausebtn{background-position:50%;background-repeat:no-repeat;border:none;border-radius:25px;cursor:pointer;float:left;height:25px;margin-right:.3em;margin-top:.3em;outline:none;width:25px}.filepond--media-preview .playpausebtn:hover{background-color:rgba(0,0,0,.5)}.filepond--media-preview .play{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAyElEQVQ4T9XUsWoCQRRG4XPaFL5SfIy8gKYKBCysrax8Ahs7qzQ2qVIFOwsrsbEWLEK6EBFGBrIQhN2d3dnGgalm+Jh7789Ix8uOPe4YDCH0gZ66atKW0pJDCE/AEngDXtRjCpwCRucbGANzNVTBqWBhfAJDdV+GNgWj8wtM41bPt3AbsDB2f69d/0dzwC0wUDe54A8wAWbqJbfkD+BZPeQO5QsYqYu6LKb0MIb7VT3VYfG8CnwEHtT3FKi4c8e/TZMyk3LYFrwCgMdHFbRDKS8AAAAASUVORK5CYII=")}.filepond--media-preview .pause{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAh0lEQVQ4T+2UsQkCURBE30PLMbAMMResQrAPsQ0TK9AqDKxGZeTLD74aGNwlhzfZssvADDMrPcOe+RggYZIJcG2s2KinMidZAvu6u6uzT8u+JCeZArfmcKUeK+EaONTdQy23bxgJX8aPHvIHsSnVuzTx36rn2pQFsGuqN//ZlK7vbIDvq6vkJ9yteBXzecYbAAAAAElFTkSuQmCC")}.filepond--media-preview .timeline{background:hsla(0,0%,100%,.3);border-radius:15px;float:left;height:3px;margin-top:1em;width:calc(100% - 2.5em)}.filepond--media-preview .playhead{background:#fff;border-radius:50%;height:13px;margin-top:-5px;width:13px}.filepond--media-preview-wrapper{background:rgba(0,0,0,.01);border-radius:.45em;height:100%;left:0;margin:0;overflow:hidden;pointer-events:auto;position:absolute;right:0;top:0}.filepond--media-preview-wrapper:before{background:linear-gradient(180deg,#000 0,transparent);content:" ";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#00000000",GradientType=0);height:2em;position:absolute;width:100%;z-index:3}.filepond--media-preview{display:block;height:100%;position:relative;-webkit-transform-origin:center center;transform-origin:center center;width:100%;will-change:transform,opacity;z-index:1}.filepond--media-preview audio,.filepond--media-preview video{width:100%;will-change:transform}',""]);const i=o},5609:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(3645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,'/*!\n * FilePond 4.30.4\n * Licensed under MIT, https://opensource.org/licenses/MIT/\n * Please visit https://pqina.nl/filepond/ for details.\n */.filepond--assistant{clip:rect(1px,1px,1px,1px);border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.filepond--browser.filepond--browser{font-size:0;left:1em;margin:0;opacity:0;padding:0;position:absolute;top:1.75em;width:calc(100% - 2em)}.filepond--data{border:none;contain:strict;height:0;margin:0;padding:0;visibility:hidden;width:0}.filepond--data,.filepond--drip{pointer-events:none;position:absolute}.filepond--drip{background:rgba(0,0,0,.01);border-radius:.5em;bottom:0;left:0;opacity:.1;overflow:hidden;right:0;top:0}.filepond--drip-blob{background:#292625;border-radius:50%;height:8em;margin-left:-4em;margin-top:-4em;-webkit-transform-origin:center center;transform-origin:center center;width:8em}.filepond--drip-blob,.filepond--drop-label{left:0;position:absolute;top:0;will-change:transform,opacity}.filepond--drop-label{align-items:center;color:#4f4f4f;display:flex;height:0;justify-content:center;margin:0;right:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.filepond--drop-label.filepond--drop-label label{display:block;margin:0;padding:.5em}.filepond--drop-label label{cursor:default;font-size:.875em;font-weight:400;line-height:1.5;text-align:center}.filepond--label-action{-webkit-text-decoration-skip:ink;cursor:pointer;text-decoration:underline;-webkit-text-decoration-color:#a7a4a4;text-decoration-color:#a7a4a4;text-decoration-skip-ink:auto}.filepond--root[data-disabled] .filepond--drop-label label{opacity:.5}.filepond--file-action-button.filepond--file-action-button{border:none;font-family:inherit;font-size:1em;height:1.625em;line-height:inherit;margin:0;outline:none;padding:0;width:1.625em;will-change:transform,opacity}.filepond--file-action-button.filepond--file-action-button span{clip:rect(1px,1px,1px,1px);border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.filepond--file-action-button.filepond--file-action-button svg{height:100%;width:100%}.filepond--file-action-button.filepond--file-action-button:after{bottom:-.75em;content:"";left:-.75em;position:absolute;right:-.75em;top:-.75em}.filepond--file-action-button{background-color:rgba(0,0,0,.5);background-image:none;border-radius:50%;box-shadow:0 0 0 0 hsla(0,0%,100%,0);color:#fff;cursor:auto;transition:box-shadow .25s ease-in}.filepond--file-action-button:focus,.filepond--file-action-button:hover{box-shadow:0 0 0 .125em hsla(0,0%,100%,.9)}.filepond--file-action-button[disabled]{background-color:rgba(0,0,0,.25);color:hsla(0,0%,100%,.5)}.filepond--file-action-button[hidden]{display:none}.filepond--action-edit-item.filepond--action-edit-item{height:2em;padding:.1875em;width:2em}.filepond--action-edit-item.filepond--action-edit-item[data-align*=center]{margin-left:-.1875em}.filepond--action-edit-item.filepond--action-edit-item[data-align*=bottom]{margin-bottom:-.1875em}.filepond--action-edit-item-alt{background:transparent;border:none;color:inherit;font-family:inherit;line-height:inherit;margin:0 0 0 .25em;outline:none;padding:0;pointer-events:all;position:absolute}.filepond--action-edit-item-alt svg{height:1.3125em;width:1.3125em}.filepond--action-edit-item-alt span{font-size:0;opacity:0}.filepond--file-info{align-items:flex-start;display:flex;flex:1;flex-direction:column;margin:0 .5em 0 0;min-width:0;pointer-events:none;position:static;-webkit-user-select:none;-ms-user-select:none;user-select:none;will-change:transform,opacity}.filepond--file-info *{margin:0}.filepond--file-info .filepond--file-info-main{font-size:.75em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.filepond--file-info .filepond--file-info-sub{font-size:.625em;opacity:.5;transition:opacity .25s ease-in-out;white-space:nowrap}.filepond--file-info .filepond--file-info-sub:empty{display:none}.filepond--file-status{align-items:flex-end;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;margin:0;min-width:2.25em;pointer-events:none;position:static;text-align:right;-webkit-user-select:none;-ms-user-select:none;user-select:none;will-change:transform,opacity}.filepond--file-status *{margin:0;white-space:nowrap}.filepond--file-status .filepond--file-status-main{font-size:.75em;line-height:1.2}.filepond--file-status .filepond--file-status-sub{font-size:.625em;opacity:.5;transition:opacity .25s ease-in-out}.filepond--file-wrapper.filepond--file-wrapper{border:none;height:100%;margin:0;min-width:0;padding:0}.filepond--file-wrapper.filepond--file-wrapper>legend{clip:rect(1px,1px,1px,1px);border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.filepond--file{align-items:flex-start;border-radius:.5em;color:#fff;display:flex;height:100%;padding:.5625em;position:static}.filepond--file .filepond--file-status{margin-left:auto;margin-right:2.25em}.filepond--file .filepond--processing-complete-indicator{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:3}.filepond--file .filepond--file-action-button,.filepond--file .filepond--processing-complete-indicator,.filepond--file .filepond--progress-indicator{position:absolute}.filepond--file [data-align*=left]{left:.5625em}.filepond--file [data-align*=right]{right:.5625em}.filepond--file [data-align*=center]{left:calc(50% - .8125em)}.filepond--file [data-align*=bottom]{bottom:1.125em}.filepond--file [data-align=center]{top:calc(50% - .8125em)}.filepond--file .filepond--progress-indicator{margin-top:.1875em}.filepond--file .filepond--progress-indicator[data-align*=right]{margin-right:.1875em}.filepond--file .filepond--progress-indicator[data-align*=left]{margin-left:.1875em}[data-filepond-item-state*=error] .filepond--file-info,[data-filepond-item-state*=invalid] .filepond--file-info,[data-filepond-item-state=cancelled] .filepond--file-info{margin-right:2.25em}[data-filepond-item-state~=processing] .filepond--file-status-sub{opacity:0}[data-filepond-item-state~=processing] .filepond--action-abort-item-processing~.filepond--file-status .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-error] .filepond--file-status-sub{opacity:0}[data-filepond-item-state=processing-error] .filepond--action-retry-item-processing~.filepond--file-status .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing svg{-webkit-animation:fall .5s linear .125s both;animation:fall .5s linear .125s both}[data-filepond-item-state=processing-complete] .filepond--file-status-sub{opacity:.5}[data-filepond-item-state=processing-complete] .filepond--file-info-sub,[data-filepond-item-state=processing-complete] .filepond--processing-complete-indicator:not([style*=hidden])~.filepond--file-status .filepond--file-status-sub{opacity:0}[data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing~.filepond--file-info .filepond--file-info-sub{opacity:.5}[data-filepond-item-state*=error] .filepond--file-wrapper,[data-filepond-item-state*=error] .filepond--panel,[data-filepond-item-state*=invalid] .filepond--file-wrapper,[data-filepond-item-state*=invalid] .filepond--panel{-webkit-animation:shake .65s linear both;animation:shake .65s linear both}[data-filepond-item-state*=busy] .filepond--progress-indicator svg{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes shake{10%,90%{-webkit-transform:translateX(-.0625em);transform:translateX(-.0625em)}20%,80%{-webkit-transform:translateX(.125em);transform:translateX(.125em)}30%,50%,70%{-webkit-transform:translateX(-.25em);transform:translateX(-.25em)}40%,60%{-webkit-transform:translateX(.25em);transform:translateX(.25em)}}@keyframes shake{10%,90%{-webkit-transform:translateX(-.0625em);transform:translateX(-.0625em)}20%,80%{-webkit-transform:translateX(.125em);transform:translateX(.125em)}30%,50%,70%{-webkit-transform:translateX(-.25em);transform:translateX(-.25em)}40%,60%{-webkit-transform:translateX(.25em);transform:translateX(.25em)}}@-webkit-keyframes fall{0%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}70%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1)}to{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:scale(1);transform:scale(1)}}@keyframes fall{0%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}70%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1;-webkit-transform:scale(1.1);transform:scale(1.1)}to{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:scale(1);transform:scale(1)}}.filepond--hopper[data-hopper-state=drag-over]>*{pointer-events:none}.filepond--hopper[data-hopper-state=drag-over]:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.filepond--progress-indicator{z-index:103}.filepond--file-action-button{z-index:102}.filepond--file-status{z-index:101}.filepond--file-info{z-index:100}.filepond--item{left:0;margin:.25em;padding:0;position:absolute;right:0;top:0;will-change:transform,opacity;z-index:1}.filepond--item>.filepond--panel{z-index:-1}.filepond--item>.filepond--panel .filepond--panel-bottom{box-shadow:0 .0625em .125em -.0625em rgba(0,0,0,.25)}.filepond--item>.filepond--file-wrapper,.filepond--item>.filepond--panel{transition:opacity .15s ease-out}.filepond--item[data-drag-state]{cursor:-webkit-grab;cursor:grab}.filepond--item[data-drag-state]>.filepond--panel{box-shadow:0 0 0 transparent;transition:box-shadow .125s ease-in-out}.filepond--item[data-drag-state=drag]{cursor:-webkit-grabbing;cursor:grabbing}.filepond--item[data-drag-state=drag]>.filepond--panel{box-shadow:0 .125em .3125em rgba(0,0,0,.325)}.filepond--item[data-drag-state]:not([data-drag-state=idle]){z-index:2}.filepond--item-panel{background-color:#64605e}[data-filepond-item-state=processing-complete] .filepond--item-panel{background-color:#369763}[data-filepond-item-state*=error] .filepond--item-panel,[data-filepond-item-state*=invalid] .filepond--item-panel{background-color:#c44e47}.filepond--item-panel{border-radius:.5em;transition:background-color .25s}.filepond--list-scroller{left:0;margin:0;position:absolute;right:0;top:0;will-change:transform}.filepond--list-scroller[data-state=overflow] .filepond--list{bottom:0;right:0}.filepond--list-scroller[data-state=overflow]{-webkit-overflow-scrolling:touch;-webkit-mask:linear-gradient(180deg,#000 calc(100% - .5em),transparent);mask:linear-gradient(180deg,#000 calc(100% - .5em),transparent);overflow-x:hidden;overflow-y:scroll}.filepond--list-scroller::-webkit-scrollbar{background:transparent}.filepond--list-scroller::-webkit-scrollbar:vertical{width:1em}.filepond--list-scroller::-webkit-scrollbar:horizontal{height:0}.filepond--list-scroller::-webkit-scrollbar-thumb{background-clip:content-box;background-color:rgba(0,0,0,.3);border:.3125em solid transparent;border-radius:99999px}.filepond--list.filepond--list{list-style-type:none;margin:0;padding:0;position:absolute;top:0;will-change:transform}.filepond--list{left:.75em;right:.75em}.filepond--root[data-style-panel-layout~=integrated]{height:100%;margin:0;max-width:none;width:100%}.filepond--root[data-style-panel-layout~=circle] .filepond--panel-root,.filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root{border-radius:0}.filepond--root[data-style-panel-layout~=circle] .filepond--panel-root>*,.filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root>*{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--drop-label,.filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label{align-items:center;bottom:0;display:flex;height:auto;justify-content:center;z-index:7}.filepond--root[data-style-panel-layout~=circle] .filepond--item-panel,.filepond--root[data-style-panel-layout~=integrated] .filepond--item-panel{display:none}.filepond--root[data-style-panel-layout~=compact] .filepond--list-scroller,.filepond--root[data-style-panel-layout~=integrated] .filepond--list-scroller{height:100%;margin-bottom:0;margin-top:0;overflow:hidden}.filepond--root[data-style-panel-layout~=compact] .filepond--list,.filepond--root[data-style-panel-layout~=integrated] .filepond--list{height:100%;left:0;right:0}.filepond--root[data-style-panel-layout~=compact] .filepond--item,.filepond--root[data-style-panel-layout~=integrated] .filepond--item{margin:0}.filepond--root[data-style-panel-layout~=compact] .filepond--file-wrapper,.filepond--root[data-style-panel-layout~=integrated] .filepond--file-wrapper{height:100%}.filepond--root[data-style-panel-layout~=compact] .filepond--drop-label,.filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label{z-index:7}.filepond--root[data-style-panel-layout~=circle]{border-radius:99999rem;overflow:hidden}.filepond--root[data-style-panel-layout~=circle]>.filepond--panel{border-radius:inherit}.filepond--root[data-style-panel-layout~=circle] .filepond--file-info,.filepond--root[data-style-panel-layout~=circle] .filepond--file-status,.filepond--root[data-style-panel-layout~=circle]>.filepond--panel>*{display:none}.filepond--root[data-style-panel-layout~=circle] .filepond--action-edit-item{opacity:1!important;visibility:visible!important}@media not all and (-webkit-min-device-pixel-ratio:0),not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent){.filepond--root[data-style-panel-layout~=circle]{will-change:transform}}}.filepond--panel-root{background-color:#f1f0ef;border-radius:.5em}.filepond--panel{height:100%!important;left:0;margin:0;pointer-events:none;position:absolute;right:0;top:0}.filepond-panel:not([data-scalable=false]){height:auto!important}.filepond--panel[data-scalable=false]>div{display:none}.filepond--panel[data-scalable=true]{background-color:transparent!important;border:none!important;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.filepond--panel-bottom,.filepond--panel-center,.filepond--panel-top{left:0;margin:0;padding:0;position:absolute;right:0;top:0}.filepond--panel-bottom,.filepond--panel-top{height:.5em}.filepond--panel-top{border-bottom:none!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.filepond--panel-top:after{background-color:inherit;bottom:-1px;content:"";height:2px;left:0;position:absolute;right:0}.filepond--panel-bottom,.filepond--panel-center{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translate3d(0,.5em,0);transform:translate3d(0,.5em,0);-webkit-transform-origin:left top;transform-origin:left top;will-change:transform}.filepond--panel-bottom{border-top:none!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.filepond--panel-bottom:before{background-color:inherit;content:"";height:2px;left:0;position:absolute;right:0;top:-1px}.filepond--panel-center{border-bottom:none!important;border-radius:0!important;border-top:none!important;height:100px!important}.filepond--panel-center:not([style]){visibility:hidden}.filepond--progress-indicator{color:#fff;height:1.25em;margin:0;pointer-events:none;position:static;width:1.25em;will-change:transform,opacity}.filepond--progress-indicator svg{height:100%;transform-box:fill-box;vertical-align:top;width:100%}.filepond--progress-indicator path{fill:none;stroke:currentColor}.filepond--list-scroller{z-index:6}.filepond--drop-label{z-index:5}.filepond--drip{z-index:3}.filepond--root>.filepond--panel{z-index:2}.filepond--browser{z-index:1}.filepond--root{box-sizing:border-box;contain:layout style size;direction:ltr;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:450;line-height:normal;margin-bottom:1em;position:relative;text-align:left;text-rendering:optimizeLegibility}.filepond--root *{box-sizing:inherit;line-height:inherit}.filepond--root :not(text){font-size:inherit}.filepond--root[data-disabled]{pointer-events:none}.filepond--root[data-disabled] .filepond--list-scroller{pointer-events:all}.filepond--root[data-disabled] .filepond--list{pointer-events:none}.filepond--root .filepond--drop-label{min-height:4.75em}.filepond--root .filepond--list-scroller{margin-bottom:1em;margin-top:1em}.filepond--root .filepond--credits{bottom:-14px;color:inherit;font-size:11px;line-height:.85;opacity:.175;position:absolute;right:0;text-decoration:none;z-index:3}.filepond--root .filepond--credits[style]{bottom:auto;margin-top:14px;top:0}',""]);const i=o},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;in)return!1;var o=r("GET_MIN_FILE_SIZE");return!(null!==o&&e.sizes)n({status:{main:r("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:o(r("GET_LABEL_MAX_FILE_SIZE"),{filesize:i(s,".",r("GET_FILE_SIZE_BASE"),r("GET_FILE_SIZE_LABELS",r))})}});else{var l=r("GET_MIN_FILE_SIZE");if(null!==l&&e.sizeu)return void n({status:{main:r("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:o(r("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:i(u,".",r("GET_FILE_SIZE_BASE"),r("GET_FILE_SIZE_LABELS",r))})}});t(e)}}}))})),{options:{allowFileSizeValidation:[!0,n.BOOLEAN],maxFileSize:[null,n.INT],minFileSize:[null,n.INT],maxTotalFileSize:[null,n.INT],fileValidateSizeFilter:[null,n.FUNCTION],labelMinFileSizeExceeded:["File is too small",n.STRING],labelMinFileSize:["Minimum file size is {filesize}",n.STRING],labelMaxFileSizeExceeded:["File is too large",n.STRING],labelMaxFileSize:["Maximum file size is {filesize}",n.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",n.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",n.STRING]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},521:function(e){e.exports=function(){"use strict";var e=function(e){var t=e.addFilter,r=e.utils,n=r.Type,o=r.isString,i=r.replaceInString,a=r.guesstimateMimeType,s=r.getExtensionFromFilename,l=r.getFilenameFromURL,u=function(e,t){return(/^[^/]+/.exec(e)||[]).pop()===t.slice(0,-2)},c=function(e,t){return e.some((function(e){return/\*$/.test(e)?u(t,e):e===t}))},f=function(e){var t="";if(o(e)){var r=l(e),n=s(r);n&&(t=a(n))}else t=e.type;return t},p=function(e,t,r){if(0===t.length)return!0;var n=f(e);return r?new Promise((function(o,i){r(e,n).then((function(e){c(t,e)?o():i()})).catch(i)})):c(t,n)},d=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 r=t.query;return!r("GET_ALLOW_FILE_TYPE_VALIDATION")||p(e,r("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var r=t.query;return new Promise((function(t,n){if(r("GET_ALLOW_FILE_TYPE_VALIDATION")){var o=r("GET_ACCEPTED_FILE_TYPES"),a=r("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),s=p(e,o,a),l=function(){var e=o.map(d(r("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter((function(e){return!1!==e})),t=e.filter((function(t,r){return e.indexOf(t)===r}));n({status:{main:r("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:i(r("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:t.join(", "),allButLastType:t.slice(0,-1).join(", "),lastType:t[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,n.BOOLEAN],acceptedFileTypes:[[],n.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",n.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",n.STRING],fileValidateTypeLabelExpectedTypesMap:[{},n.OBJECT],fileValidateTypeDetectType:[null,n.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},5227:function(e){e.exports=function(){"use strict";var e=function(e){return/^image\/jpeg/.test(e.type)},t={JPEG:65496,APP1:65505,EXIF:1165519206,TIFF:18761,Orientation:274,Unknown:65280},r=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.getUint16(t,r)},n=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.getUint32(t,r)},o=function(e){return new Promise((function(o,i){var a=new FileReader;a.onload=function(e){var i=new DataView(e.target.result);if(r(i,0)===t.JPEG){for(var a=i.byteLength,s=2;sl.naturalHeight},l.src=a;var u=function(){return s},c=function(t){var r=t.addFilter,n=t.utils,i=n.Type,a=n.isFile;return r("DID_LOAD_ITEM",(function(t,r){var n=r.query;return new Promise((function(r,i){var s=t.file;if(!(a(s)&&e(s)&&n("GET_ALLOW_IMAGE_EXIF_ORIENTATION")&&u()))return r(t);o(s).then((function(e){t.setMetadata("exif",{orientation:e}),r(t)}))}))})),{options:{allowImageExifOrientation:[!0,i.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:c})),c}()},2965:function(e){e.exports=function(){"use strict";var e=function(e){return/^image/.test(e.type)};function t(e){this.wrapped=e}function r(e){var r,n;function o(e,t){return new Promise((function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};n?n=n.next=s:(r=n=s,i(e,t))}))}function i(r,n){try{var o=e[r](n),s=o.value,l=s instanceof t;Promise.resolve(l?s.wrapped:s).then((function(e){l?i("next",e):a(o.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?i(r.key,r.arg):n=null}this._invoke=o,"function"!=typeof e.return&&(this.return=void 0)}function n(e,t){return o(e)||i(e,t)||a()}function o(e){if(Array.isArray(e))return e}function i(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}"function"==typeof Symbol&&Symbol.asyncIterator&&(r.prototype[Symbol.asyncIterator]=function(){return this}),r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)};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)},u=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)},c=function(e,t,r){var n=Math.cos(t),o=Math.sin(t),i=f(e.x-r.x,e.y-r.y);return f(r.x+n*i.x-o*i.y,r.y+o*i.x+n*i.y)},f=function(){return{x:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,y:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},p=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0;return"string"==typeof e?parseFloat(e)*r:"number"==typeof e?e*(n?t[n]:Math.min(t.width,t.height)):void 0},d=function(e,t,r){var n=e.borderStyle||e.lineStyle||"solid",o=e.backgroundColor||e.fontColor||"transparent",i=e.borderColor||e.lineColor||"transparent",a=p(e.borderWidth||e.lineWidth,t,r);return{"stroke-linecap":e.lineCap||"round","stroke-linejoin":e.lineJoin||"round","stroke-width":a||0,"stroke-dasharray":"string"==typeof n?"":n.map((function(e){return p(e,t,r)})).join(","),stroke:i,fill:o,opacity:e.opacity||1}},h=function(e){return null!=e},m=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=p(e.x,t,r,"width")||p(e.left,t,r,"width"),o=p(e.y,t,r,"height")||p(e.top,t,r,"height"),i=p(e.width,t,r,"width"),a=p(e.height,t,r,"height"),s=p(e.right,t,r,"width"),l=p(e.bottom,t,r,"height");return h(o)||(o=h(a)&&h(l)?t.height-a-l:l),h(n)||(n=h(i)&&h(s)?t.width-i-s:s),h(i)||(i=h(n)&&h(s)?t.width-n-s:0),h(a)||(a=h(o)&&h(l)?t.height-o-l:0),{x:n||0,y:o||0,width:i||0,height:a||0}},v=function(e){return e.map((function(e,t){return"".concat(0===t?"M":"L"," ").concat(e.x," ").concat(e.y)})).join(" ")},y=function(e,t){return Object.keys(t).forEach((function(r){return e.setAttribute(r,t[r])}))},g="http://www.w3.org/2000/svg",E=function(e,t){var r=document.createElementNS(g,e);return t&&y(r,t),r},b=function(e){return y(e,Object.assign({},e.rect,e.styles))},_=function(e){var t=e.rect.x+.5*e.rect.width,r=e.rect.y+.5*e.rect.height,n=.5*e.rect.width,o=.5*e.rect.height;return y(e,Object.assign({cx:t,cy:r,rx:n,ry:o},e.styles))},I={contain:"xMidYMid meet",cover:"xMidYMid slice"},T=function(e,t){y(e,Object.assign({},e.rect,e.styles,{preserveAspectRatio:I[t.fit]||"none"}))},w={left:"start",center:"middle",right:"end"},O=function(e,t,r,n){var o=p(t.fontSize,r,n),i=t.fontFamily||"sans-serif",a=t.fontWeight||"normal",s=w[t.textAlign]||"start";y(e,Object.assign({},e.rect,e.styles,{"stroke-width":0,"font-weight":a,"font-size":o,"font-family":i,"text-anchor":s})),e.text!==t.text&&(e.text=t.text,e.textContent=t.text.length?t.text:" ")},A=function(e,t,r,n){y(e,Object.assign({},e.rect,e.styles,{fill:"none"}));var o=e.childNodes[0],i=e.childNodes[1],a=e.childNodes[2],f=e.rect,d={x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height};if(y(o,{x1:f.x,y1:f.y,x2:d.x,y2:d.y}),t.lineDecoration){i.style.display="none",a.style.display="none";var h=u({x:d.x-f.x,y:d.y-f.y}),m=p(.05,r,n);if(-1!==t.lineDecoration.indexOf("arrow-begin")){var v=s(h,m),g=l(f,v),E=c(f,2,g),b=c(f,-2,g);y(i,{style:"display:block;",d:"M".concat(E.x,",").concat(E.y," L").concat(f.x,",").concat(f.y," L").concat(b.x,",").concat(b.y)})}if(-1!==t.lineDecoration.indexOf("arrow-end")){var _=s(h,-m),I=l(d,_),T=c(d,2,I),w=c(d,-2,I);y(a,{style:"display:block;",d:"M".concat(T.x,",").concat(T.y," L").concat(d.x,",").concat(d.y," L").concat(w.x,",").concat(w.y)})}}},S=function(e,t,r,n){y(e,Object.assign({},e.styles,{fill:"none",d:v(t.points.map((function(e){return{x:p(e.x,r,n,"width"),y:p(e.y,r,n,"height")}})))}))},R=function(e){return function(t){return E(e,{id:t.id})}},P=function(e){var t=E("g",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round"}),r=E("line");t.appendChild(r);var n=E("path");t.appendChild(n);var o=E("path");return t.appendChild(o),t},x={image:function(e){var t=E("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},rect:R("rect"),ellipse:R("ellipse"),text:R("text"),path:R("path"),line:P},D={rect:b,ellipse:_,image:T,text:O,path:S,line:A},L=function(e,t){return x[e](t)},M=function(e,t,r,n,o){"path"!==t&&(e.rect=m(r,n,o)),e.styles=d(r,n,o),D[t](e,r,n,o)},C=["x","y","left","top","right","bottom","width","height"],N=function(e){return"string"==typeof e&&/%/.test(e)?parseFloat(e)/100:e},j=function(e){var t=n(e,2),r=t[0],o=t[1],i=o.points?{}:C.reduce((function(e,t){return e[t]=N(o[t]),e}),{});return[r,Object.assign({zIndex:0},o,i)]},k=function(e,t){return e[1].zIndex>t[1].zIndex?1:e[1].zIndex2&&void 0!==arguments[2]?arguments[2]:1,n=e.height/e.width,o=1,i=t,a=1,s=n;s>i&&(a=(s=i)/n);var l=Math.max(o/a,i/s),u=e.width/(r*l*a);return{width:u,height:u*t}},Y=function(e,t,r,n){var o=n.x>.5?1-n.x:n.x,i=n.y>.5?1-n.y:n.y,a=2*o*e.width,s=2*i*e.height,l=W(t,r);return Math.max(l.width/a,l.height/s)},X=function(e,t){var r=e.width,n=r*t;return n>e.height&&(r=(n=e.height)/t),{x:.5*(e.width-r),y:.5*(e.height-n),width:r,height:n}},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.zoom,n=t.rotation,o=t.center,i=t.aspectRatio;i||(i=e.height/e.width);var a=H(e,i,r),s={x:.5*a.width,y:.5*a.height},l={x:0,y:0,width:a.width,height:a.height,center:s},u=void 0===t.scaleToFit||t.scaleToFit,c=r*Y(e,X(l,i),n,u?o:{x:.5,y:.5});return{widthFloat:a.width/c,heightFloat:a.height/c,width:Math.round(a.width/c),height:Math.round(a.height/c)}},Q={type:"spring",stiffness:.5,damping:.45,mass:10},Z=function(e){return e.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:function(e){var t=e.root,r=e.props;t.appendChild(r.image)}})},K=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 r=t.root,n=t.props;n.width=n.image.width,n.height=n.image.height,r.ref.bitmap=r.appendChildView(r.createChildView(Z(e),{image:n.image}))},write:function(e){var t=e.root,r=e.props.crop.flip,n=t.ref.bitmap;n.scaleX=r.horizontal?-1:1,n.scaleY=r.vertical?-1:1}})},J=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,r=e.props;r.background&&(t.element.style.backgroundColor=r.background)},create:function(t){var r=t.root,n=t.props;r.ref.image=r.appendChildView(r.createChildView(K(e),Object.assign({},n))),r.ref.createMarkup=function(){r.ref.markup||(r.ref.markup=r.appendChildView(r.createChildView(G(e),Object.assign({},n))))},r.ref.destroyMarkup=function(){r.ref.markup&&(r.removeChildView(r.ref.markup),r.ref.markup=null)};var o=r.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");null!==o&&(r.element.dataset.transparencyIndicator="grid"===o?o:"color")},write:function(e){var t=e.root,r=e.props,n=e.shouldOptimize,o=r.crop,i=r.markup,a=r.resize,s=r.dirty,l=r.width,u=r.height;t.ref.image.crop=o;var c={x:0,y:0,width:l,height:u,center:{x:.5*l,y:.5*u}},f={width:t.ref.image.width,height:t.ref.image.height},p={x:o.center.x*f.width,y:o.center.y*f.height},d={x:c.center.x-f.width*o.center.x,y:c.center.y-f.height*o.center.y},h=2*Math.PI+o.rotation%(2*Math.PI),m=o.aspectRatio||f.height/f.width,v=void 0===o.scaleToFit||o.scaleToFit,y=Y(f,X(c,m),h,v?o.center:{x:.5,y:.5}),g=o.zoom*y;i&&i.length?(t.ref.createMarkup(),t.ref.markup.width=l,t.ref.markup.height=u,t.ref.markup.resize=a,t.ref.markup.dirty=s,t.ref.markup.markup=i,t.ref.markup.crop=$(f,o)):t.ref.markup&&t.ref.destroyMarkup();var E=t.ref.image;if(n)return E.originX=null,E.originY=null,E.translateX=null,E.translateY=null,E.rotateZ=null,E.scaleX=null,void(E.scaleY=null);E.originX=p.x,E.originY=p.y,E.translateX=d.x,E.translateY=d.y,E.rotateZ=h,E.scaleX=g,E.scaleY=g}})},ee=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 r=t.root,n=t.props;r.ref.clip=r.appendChildView(r.createChildView(J(e),{id:n.id,image:n.image,crop:n.crop,markup:n.markup,resize:n.resize,dirty:n.dirty,background:n.background}))},write:function(e){var t=e.root,r=e.props,n=e.shouldOptimize,o=t.ref.clip,i=r.image,a=r.crop,s=r.markup,l=r.resize,u=r.dirty;if(o.crop=a,o.markup=s,o.resize=l,o.dirty=u,o.opacity=n?0:1,!n&&!t.rect.element.hidden){var c=i.height/i.width,f=a.aspectRatio||c,p=t.rect.inner.width,d=t.rect.inner.height,h=t.query("GET_IMAGE_PREVIEW_HEIGHT"),m=t.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),v=t.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),y=t.query("GET_PANEL_ASPECT_RATIO"),g=t.query("GET_ALLOW_MULTIPLE");y&&!g&&(h=p*y,f=y);var E=null!==h?h:Math.max(m,Math.min(p*f,v)),b=E/f;b>p&&(E=(b=p)*f),E>d&&(E=d,b=d/f),o.width=b,o.height=E}}})},te='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n',re=0,ne=function(e){return e.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:function(e){var t=e.root,r=e.props,n=te;if(document.querySelector("base")){var o=new URL(window.location.href.replace(window.location.hash,"")).href;n=n.replace(/url\(\#/g,"url("+o+"#")}re++,t.element.classList.add("filepond--image-preview-overlay-".concat(r.status)),t.element.innerHTML=n.replace(/__UID__/g,re)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}})},oe=function(){self.onmessage=function(e){createImageBitmap(e.data.message.file).then((function(t){self.postMessage({id:e.data.id,message:t},[t])}))}},ie=function(){self.onmessage=function(e){for(var t=e.data.message.imageData,r=e.data.message.colorMatrix,n=t.data,o=n.length,i=r[0],a=r[1],s=r[2],l=r[3],u=r[4],c=r[5],f=r[6],p=r[7],d=r[8],h=r[9],m=r[10],v=r[11],y=r[12],g=r[13],E=r[14],b=r[15],_=r[16],I=r[17],T=r[18],w=r[19],O=0,A=0,S=0,R=0,P=0;O=5&&n<=8){var a=[r,t];t=a[0],r=a[1]}return le(i,t,r,n),i.drawImage(e,0,0,t,r),o},ce=function(e){return/^image/.test(e.type)&&!/svg/.test(e.type)},fe=10,pe=10,de=function(e){var t=Math.min(fe/e.width,pe/e.height),r=document.createElement("canvas"),n=r.getContext("2d"),o=r.width=Math.ceil(e.width*t),i=r.height=Math.ceil(e.height*t);n.drawImage(e,0,0,o,i);var a=null;try{a=n.getImageData(0,0,o,i).data}catch(e){return null}for(var s=a.length,l=0,u=0,c=0,f=0;f1e-5){var p=a({root:t});s({root:t,props:r,image:me(p.image)})}else l({root:t,props:r})}}},c=function(e){var t=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return!((t?parseInt(t[1]):null)<=58)&&"createImageBitmap"in window&&ce(e)},f=function(e){var t=e.root,r=e.props.id,n=t.query("GET_ITEM",r);if(n){var o=URL.createObjectURL(n.file);ae(o,(function(e,n){t.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:r,width:e,height:n})}))}},p=function(e){var t=e.root,r=e.props,i=r.id,a=t.query("GET_ITEM",i);if(a){var l=URL.createObjectURL(a.file),u=function(){ye(l).then(f)},f=function(e){URL.revokeObjectURL(l);var n=(a.getMetadata("exif")||{}).orientation||-1,i=e.width,u=e.height;if(i&&u){if(n>=5&&n<=8){var c=[u,i];i=c[0],u=c[1]}var f=Math.max(1,.75*window.devicePixelRatio),p=t.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR")*f,d=u/i,h=t.rect.element.width,m=t.rect.element.height,v=h,y=v*d;d>1?y=(v=Math.min(i,h*p))*d:v=(y=Math.min(u,m*p))/d;var g=ue(e,v,y,n),E=function(){var n=t.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?de(data):null;a.setMetadata("color",n,!0),"close"in e&&e.close(),t.ref.overlayShadow.opacity=1,s({root:t,props:r,image:g})},b=a.getMetadata("filter");b?o(t,b,g).then(E):E()}};if(c(a.file)){var p=n(oe);p.post({file:a.file},(function(e){p.terminate(),e?f(e):u()}))}else u()}},d=function(e){var t=e.root,r=t.ref.images[t.ref.images.length-1];r.translateY=0,r.scaleX=1,r.scaleY=1,r.opacity=1},h=function(e){var t=e.root;t.ref.overlayShadow.opacity=1,t.ref.overlayError.opacity=0,t.ref.overlaySuccess.opacity=0},m=function(e){var t=e.root;t.ref.overlayShadow.opacity=.25,t.ref.overlayError.opacity=1},v=function(e){var t=e.root;t.ref.overlayShadow.opacity=.25,t.ref.overlaySuccess.opacity=1},y=function(e){var r=e.root;r.ref.images=[],r.ref.imageData=null,r.ref.imageViewBin=[],r.ref.overlayShadow=r.appendChildView(r.createChildView(t,{opacity:0,status:"idle"})),r.ref.overlaySuccess=r.appendChildView(r.createChildView(t,{opacity:0,status:"success"})),r.ref.overlayError=r.appendChildView(r.createChildView(t,{opacity:0,status:"failure"}))};return e.utils.createView({name:"image-preview-wrapper",create:y,styles:["height"],apis:["height"],destroy:function(e){e.root.ref.images.forEach((function(e){e.image.width=1,e.image.height=1}))},didWriteView:function(e){e.root.ref.images.forEach((function(e){e.dirty=!1}))},write:e.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:d,DID_IMAGE_PREVIEW_CONTAINER_CREATE:f,DID_FINISH_CALCULATE_PREVIEWSIZE:p,DID_UPDATE_ITEM_METADATA:u,DID_THROW_ITEM_LOAD_ERROR:m,DID_THROW_ITEM_PROCESSING_ERROR:m,DID_THROW_ITEM_INVALID:m,DID_COMPLETE_ITEM_PROCESSING:v,DID_START_ITEM_PROCESSING:h,DID_REVERT_ITEM_PROCESSING:h},(function(e){var t=e.root,r=t.ref.imageViewBin.filter((function(e){return 0===e.opacity}));t.ref.imageViewBin=t.ref.imageViewBin.filter((function(e){return e.opacity>0})),r.forEach((function(e){return i(t,e)})),r.length=0}))})},Ee=function(t){var r=t.addFilter,n=t.utils,o=n.Type,i=n.createRoute,a=n.isFile,s=ge(t);return r("CREATE_VIEW",(function(t){var r=t.is,n=t.view,o=t.query;if(r("file")&&o("GET_ALLOW_IMAGE_PREVIEW")){var l=function(t){var r=t.root,i=t.props.id,l=o("GET_ITEM",i);if(l&&a(l.file)&&!l.archived){var u=l.file;if(e(u)&&o("GET_IMAGE_PREVIEW_FILTER_ITEM")(l)){var c="createImageBitmap"in(window||{}),f=o("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!(!c&&f&&u.size>f)){r.ref.imagePreview=n.appendChildView(n.createChildView(s,{id:i}));var p=r.query("GET_IMAGE_PREVIEW_HEIGHT");p&&r.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:l.id,height:p});var d=!c&&u.size>o("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");r.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:i},d)}}}},u=function(e,t){if(e.ref.imagePreview){var r=t.id,n=e.query("GET_ITEM",{id:r});if(n){var o=e.query("GET_PANEL_ASPECT_RATIO"),i=e.query("GET_ITEM_PANEL_ASPECT_RATIO"),a=e.query("GET_IMAGE_PREVIEW_HEIGHT");if(!(o||i||a)){var s=e.ref,l=s.imageWidth,u=s.imageHeight;if(l&&u){var c=e.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),f=e.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),p=(n.getMetadata("exif")||{}).orientation||-1;if(p>=5&&p<=8){var d=[u,l];l=d[0],u=d[1]}if(!ce(n.file)||e.query("GET_IMAGE_PREVIEW_UPSCALE")){var h=2048/l;l*=h,u*=h}var m=u/l,v=(n.getMetadata("crop")||{}).aspectRatio||m,y=Math.max(c,Math.min(u,f)),g=e.rect.element.width,E=Math.min(g*v,y);e.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:n.id,height:E})}}}}},c=function(e){e.root.ref.shouldRescale=!0},f=function(e){var t=e.root;"crop"===e.action.change.key&&(t.ref.shouldRescale=!0)},p=function(e){var t=e.root,r=e.action;t.ref.imageWidth=r.width,t.ref.imageHeight=r.height,t.ref.shouldRescale=!0,t.ref.shouldDrawPreview=!0,t.dispatch("KICK")};n.registerWriter(i({DID_RESIZE_ROOT:c,DID_STOP_RESIZE:c,DID_LOAD_ITEM:l,DID_IMAGE_PREVIEW_CALCULATE_SIZE:p,DID_UPDATE_ITEM_METADATA:f},(function(e){var t=e.root,r=e.props;t.ref.imagePreview&&(t.rect.element.hidden||(t.ref.shouldRescale&&(u(t,r),t.ref.shouldRescale=!1),t.ref.shouldDrawPreview&&(requestAnimationFrame((function(){requestAnimationFrame((function(){t.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:r.id})}))})),t.ref.shouldDrawPreview=!1)))})))}})),{options:{allowImagePreview:[!0,o.BOOLEAN],imagePreviewFilterItem:[function(){return!0},o.FUNCTION],imagePreviewHeight:[null,o.INT],imagePreviewMinHeight:[44,o.INT],imagePreviewMaxHeight:[256,o.INT],imagePreviewMaxFileSize:[null,o.INT],imagePreviewZoomFactor:[2,o.INT],imagePreviewUpscale:[!1,o.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,o.INT],imagePreviewTransparencyIndicator:[null,o.STRING],imagePreviewCalculateAverageImageColor:[!1,o.BOOLEAN],imagePreviewMarkupShow:[!0,o.BOOLEAN],imagePreviewMarkupFilter:[function(){return!0},o.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Ee})),Ee}()},7908:function(e){e.exports=function(){"use strict";const e=e=>/^video/.test(e.type),t=e=>/^audio/.test(e.type);class r{constructor(e,t){this.mediaEl=e,this.audioElems=t,this.onplayhead=!1,this.duration=0,this.timelineWidth=this.audioElems.timeline.offsetWidth-this.audioElems.playhead.offsetWidth,this.moveplayheadFn=this.moveplayhead.bind(this),this.registerListeners()}registerListeners(){this.mediaEl.addEventListener("timeupdate",this.timeUpdate.bind(this),!1),this.mediaEl.addEventListener("canplaythrough",(()=>this.duration=this.mediaEl.duration),!1),this.audioElems.timeline.addEventListener("click",this.timelineClicked.bind(this),!1),this.audioElems.button.addEventListener("click",this.play.bind(this)),this.audioElems.playhead.addEventListener("mousedown",this.mouseDown.bind(this),!1),window.addEventListener("mouseup",this.mouseUp.bind(this),!1)}play(){this.mediaEl.paused?this.mediaEl.play():this.mediaEl.pause(),this.audioElems.button.classList.toggle("play"),this.audioElems.button.classList.toggle("pause")}timeUpdate(){let e=this.mediaEl.currentTime/this.duration*100;this.audioElems.playhead.style.marginLeft=e+"%",this.mediaEl.currentTime===this.duration&&(this.audioElems.button.classList.toggle("play"),this.audioElems.button.classList.toggle("pause"))}moveplayhead(e){let t=e.clientX-this.getPosition(this.audioElems.timeline);t>=0&&t<=this.timelineWidth&&(this.audioElems.playhead.style.marginLeft=t+"px"),t<0&&(this.audioElems.playhead.style.marginLeft="0px"),t>this.timelineWidth&&(this.audioElems.playhead.style.marginLeft=this.timelineWidth-4+"px")}timelineClicked(e){this.moveplayhead(e),this.mediaEl.currentTime=this.duration*this.clickPercent(e)}mouseDown(){this.onplayhead=!0,window.addEventListener("mousemove",this.moveplayheadFn,!0),this.mediaEl.removeEventListener("timeupdate",this.timeUpdate.bind(this),!1)}mouseUp(e){window.removeEventListener("mousemove",this.moveplayheadFn,!0),1==this.onplayhead&&(this.moveplayhead(e),this.mediaEl.currentTime=this.duration*this.clickPercent(e),this.mediaEl.addEventListener("timeupdate",this.timeUpdate.bind(this),!1)),this.onplayhead=!1}clickPercent(e){return(e.clientX-this.getPosition(this.audioElems.timeline))/this.timelineWidth}getPosition(e){return e.getBoundingClientRect().left}}const n=n=>n.utils.createView({name:"media-preview",tag:"div",ignoreRect:!0,create:({root:e,props:r})=>{const{id:n}=r,o=e.query("GET_ITEM",{id:r.id});let i=t(o.file)?"audio":"video";if(e.ref.media=document.createElement(i),e.ref.media.setAttribute("controls",!0),e.element.appendChild(e.ref.media),t(o.file)){let t=document.createDocumentFragment();e.ref.audio=[],e.ref.audio.container=document.createElement("div"),e.ref.audio.button=document.createElement("span"),e.ref.audio.timeline=document.createElement("div"),e.ref.audio.playhead=document.createElement("div"),e.ref.audio.container.className="audioplayer",e.ref.audio.button.className="playpausebtn play",e.ref.audio.timeline.className="timeline",e.ref.audio.playhead.className="playhead",e.ref.audio.timeline.appendChild(e.ref.audio.playhead),e.ref.audio.container.appendChild(e.ref.audio.button),e.ref.audio.container.appendChild(e.ref.audio.timeline),t.appendChild(e.ref.audio.container),e.element.appendChild(t)}},write:n.utils.createRoute({DID_MEDIA_PREVIEW_LOAD:({root:n,props:o})=>{const{id:i}=o,a=n.query("GET_ITEM",{id:o.id});if(!a)return;let s=window.URL||window.webkitURL,l=new Blob([a.file],{type:a.file.type});n.ref.media.type=a.file.type,n.ref.media.src=a.file.mock&&a.file.url||s.createObjectURL(l),t(a.file)&&new r(n.ref.media,n.ref.audio),n.ref.media.addEventListener("loadeddata",(()=>{let t=75;if(e(a.file)){let e=n.ref.media.offsetWidth,r=n.ref.media.videoWidth/e;t=n.ref.media.videoHeight/r}n.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:o.id,height:t})}),!1)}})}),o=e=>{const t=({root:e,props:t})=>{const{id:r}=t;e.query("GET_ITEM",r)&&e.dispatch("DID_MEDIA_PREVIEW_LOAD",{id:r})},r=({root:t,props:r})=>{const o=n(e);t.ref.media=t.appendChildView(t.createChildView(o,{id:r.id}))};return e.utils.createView({name:"media-preview-wrapper",create:r,write:e.utils.createRoute({DID_MEDIA_PREVIEW_CONTAINER_CREATE:t})})},i=r=>{const{addFilter:n,utils:i}=r,{Type:a,createRoute:s}=i,l=o(r);return n("CREATE_VIEW",(r=>{const{is:n,view:o,query:i}=r;if(!n("file"))return;const a=({root:r,props:n})=>{const{id:a}=n,s=i("GET_ITEM",a),u=i("GET_ALLOW_VIDEO_PREVIEW"),c=i("GET_ALLOW_AUDIO_PREVIEW");s&&!s.archived&&(e(s.file)&&u||t(s.file)&&c)&&(r.ref.mediaPreview=o.appendChildView(o.createChildView(l,{id:a})),r.dispatch("DID_MEDIA_PREVIEW_CONTAINER_CREATE",{id:a}))};o.registerWriter(s({DID_LOAD_ITEM:a},(({root:r,props:n})=>{const{id:o}=n,a=i("GET_ITEM",o),s=r.query("GET_ALLOW_VIDEO_PREVIEW"),l=r.query("GET_ALLOW_AUDIO_PREVIEW");a&&(e(a.file)&&s||t(a.file)&&l)&&r.rect.element.hidden})))})),{options:{allowVideoPreview:[!0,a.BOOLEAN],allowAudioPreview:[!0,a.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:i})),i}()},6136:function(e,t){!function(e){"use strict";var t=function(e){return e instanceof HTMLElement},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Object.assign({},e),o=[],i=[],a=function(){var e=[].concat(i);i.length=0,e.forEach((function(e){var t=e.type,r=e.data;s(t,r)}))},s=function(e,t,r){!r||document.hidden?(f[e]&&f[e](t),o.push({type:e,data:t})):i.push({type:e,data:t})},l=function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:null;if(null===r)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,r)},s="http://www.w3.org/2000/svg",l=["svg","path"],u=function(e){return l.includes(e)},c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof t&&(r=t,t=null);var n=u(e)?document.createElementNS(s,e):document.createElement(e);return t&&(u(e)?a(n,"class",t):n.className=t),o(r,(function(e,t){a(n,e,t)})),n},f=function(e){return function(t,r){void 0!==r&&e.children[r]?e.insertBefore(t,e.children[r]):e.appendChild(t)}},p=function(e,t){return function(e,r){return void 0!==r?t.splice(r,0,e):t.push(e),e}},d=function(e,t){return function(r){return t.splice(t.indexOf(r),1),r.element.parentNode&&e.removeChild(r.element),r}},h="undefined"!=typeof window&&void 0!==window.document,m=function(){return h},v="children"in(m()?c("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},y=function(e,t,r,n){var o=r[0]||e.left,i=r[1]||e.top,a=o+e.width,s=i+e.height*(n[1]||1),l={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:o,top:i,right:a,bottom:s}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){g(l.inner,Object.assign({},e.inner)),g(l.outer,Object.assign({},e.outer))})),E(l.inner),l.outer.bottom+=l.element.marginBottom,l.outer.right+=l.element.marginRight,E(l.outer),l},g=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)},E=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},b=function(e){return"number"==typeof e},_=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,r=void 0===t?.5:t,n=e.damping,o=void 0===n?.75:n,a=e.mass,s=void 0===a?10:a,l=null,u=null,c=0,f=!1,p=i({interpolate:function(e,t){if(!f){if(!b(l)||!b(u))return f=!0,void(c=0);_(u+=c+=-(u-l)*r/s,l,c*=o)||t?(u=l,c=0,f=!0,p.onupdate(u),p.oncomplete(u)):p.onupdate(u)}},target:{set:function(e){if(b(e)&&!b(u)&&(u=e),null===l&&(l=e,u=e),u===(l=e)||void 0===l)return f=!0,c=0,p.onupdate(u),void p.oncomplete(u);f=!1},get:function(){return l}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return p},T=function(e){return e<.5?2*e*e:(4-2*e)*e-1},w=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.duration,o=void 0===n?500:n,a=r.easing,s=void 0===a?T:a,l=r.delay,u=void 0===l?0:l,c=null,f=!0,p=!1,d=null,h=i({interpolate:function(r,n){f||null===d||(null===c&&(c=r),r-c=o||n?(e=1,t=p?0:1,h.onupdate(t*d),h.oncomplete(t*d),f=!0):(t=e/o,h.onupdate((e>=0?s(p?1-t:t):0)*d))))},target:{get:function(){return p?0:d},set:function(e){if(null===d)return d=e,h.onupdate(e),void h.oncomplete(e);e3&&void 0!==arguments[3]&&arguments[3];(t=Array.isArray(t)?t:[t]).forEach((function(t){e.forEach((function(e){var o=e,i=function(){return r[e]},a=function(t){return r[e]=t};"object"==typeof e&&(o=e.key,i=e.getter||i,a=e.setter||a),t[o]&&!n||(t[o]={get:i,set:a})}))}))},R=function(e){return function(t,r){e.addEventListener(t,r)}},P=function(e){return function(t,r){e.removeEventListener(t,r)}},x=function(e){return null!=e},D={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},L=function(e){var t=e.mixinConfig,r=e.viewProps,n=e.viewInternalAPI,o=e.viewExternalAPI,i=e.view,a=Object.assign({},r),s={};S(t,[n,o],r);var l=function(){return[r.translateX||0,r.translateY||0]},u=function(){return[r.scaleX||0,r.scaleY||0]},c=function(){return i.rect?y(i.rect,i.childViews,l(),u()):null};return n.rect={get:c},o.rect={get:c},t.forEach((function(e){r[e]=void 0===a[e]?D[e]:a[e]})),{write:function(){if(M(s,r))return C(i.element,r),Object.assign(s,Object.assign({},r)),!0},destroy:function(){}}},M=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var r in t)if(t[r]!==e[r])return!0;return!1},C=function(e,t){var r=t.opacity,n=t.perspective,o=t.translateX,i=t.translateY,a=t.scaleX,s=t.scaleY,l=t.rotateX,u=t.rotateY,c=t.rotateZ,f=t.originX,p=t.originY,d=t.width,h=t.height,m="",v="";(x(f)||x(p))&&(v+="transform-origin: "+(f||0)+"px "+(p||0)+"px;"),x(n)&&(m+="perspective("+n+"px) "),(x(o)||x(i))&&(m+="translate3d("+(o||0)+"px, "+(i||0)+"px, 0) "),(x(a)||x(s))&&(m+="scale3d("+(x(a)?a:1)+", "+(x(s)?s:1)+", 1) "),x(c)&&(m+="rotateZ("+c+"rad) "),x(l)&&(m+="rotateX("+l+"rad) "),x(u)&&(m+="rotateY("+u+"rad) "),m.length&&(v+="transform:"+m+";"),x(r)&&(v+="opacity:"+r+";",0===r&&(v+="visibility:hidden;"),r<1&&(v+="pointer-events:none;")),x(h)&&(v+="height:"+h+"px;"),x(d)&&(v+="width:"+d+"px;");var y=e.elementCurrentStyle||"";v.length===y.length&&v===y||(e.style.cssText=v,e.elementCurrentStyle=v)},N={styles:L,listeners:function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t=e.viewExternalAPI,r=(e.viewState,e.view),n=[],o=R(r.element),i=P(r.element);return t.on=function(e,t){n.push({type:e,fn:t}),o(e,t)},t.off=function(e,t){n.splice(n.findIndex((function(r){return r.type===e&&r.fn===t})),1),i(e,t)},{write:function(){return!0},destroy:function(){n.forEach((function(e){i(e.type,e.fn)}))}}},animations:function(e){var t=e.mixinConfig,r=e.viewProps,n=e.viewInternalAPI,i=e.viewExternalAPI,a=Object.assign({},r),s=[];return o(t,(function(e,t){var o=A(t);o&&(o.onupdate=function(t){r[e]=t},o.target=a[e],S([{key:e,setter:function(e){o.target!==e&&(o.target=e)},getter:function(){return r[e]}}],[n,i],r,!0),s.push(o))})),{write:function(e){var t=document.hidden,r=!0;return s.forEach((function(n){n.resting||(r=!1),n.interpolate(e,t)})),r},destroy:function(){}}},apis:function(e){var t=e.mixinConfig,r=e.viewProps,n=e.viewExternalAPI;S(t,n,r)}},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(r.paddingTop,10)||0,e.marginTop=parseInt(r.marginTop,10)||0,e.marginRight=parseInt(r.marginRight,10)||0,e.marginBottom=parseInt(r.marginBottom,10)||0,e.marginLeft=parseInt(r.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},k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,r=void 0===t?"div":t,n=e.name,o=void 0===n?null:n,a=e.attributes,s=void 0===a?{}:a,l=e.read,u=void 0===l?function(){}:l,h=e.write,m=void 0===h?function(){}:h,g=e.create,E=void 0===g?function(){}:g,b=e.destroy,_=void 0===b?function(){}:b,I=e.filterFrameActionsForChild,T=void 0===I?function(e,t){return t}:I,w=e.didCreateView,O=void 0===w?function(){}:w,A=e.didWriteView,S=void 0===A?function(){}:A,R=e.ignoreRect,P=void 0!==R&&R,x=e.ignoreRectUpdate,D=void 0!==x&&x,L=e.mixins,M=void 0===L?[]:L;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c(r,"filepond--"+o,s),a=window.getComputedStyle(n,null),l=j(),h=null,g=!1,b=[],I=[],w={},A={},R=[m],x=[u],L=[_],C=function(){return n},k=function(){return b.concat()},G=function(){return w},F=function(e){return function(t,r){return t(e,r)}},U=function(){return h||(h=y(l,b,[0,0],[1,1]))},B=function(){h=null,b.forEach((function(e){return e._read()})),!(D&&l.width&&l.height)&&j(l,n,a);var e={root:X,props:t,rect:l};x.forEach((function(t){return t(e)}))},V=function(e,r,n){var o=0===r.length;return R.forEach((function(i){!1===i({props:t,root:X,actions:r,timestamp:e,shouldOptimize:n})&&(o=!1)})),I.forEach((function(t){!1===t.write(e)&&(o=!1)})),b.filter((function(e){return!!e.element.parentNode})).forEach((function(t){t._write(e,T(t,r),n)||(o=!1)})),b.forEach((function(t,i){t.element.parentNode||(X.appendChild(t.element,i),t._read(),t._write(e,T(t,r),n),o=!1)})),g=o,S({props:t,root:X,actions:r,timestamp:e}),o},q=function(){I.forEach((function(e){return e.destroy()})),L.forEach((function(e){e({root:X,props:t})})),b.forEach((function(e){return e._destroy()}))},z={element:{get:C},style:{get:function(){return a}},childViews:{get:k}},W=Object.assign({},z,{rect:{get:U},ref:{get:G},is:function(e){return o===e},appendChild:f(n),createChildView:F(e),linkView:function(e){return b.push(e),e},unlinkView:function(e){b.splice(b.indexOf(e),1)},appendChildView:p(n,b),removeChildView:d(n,b),registerWriter:function(e){return R.push(e)},registerReader:function(e){return x.push(e)},registerDestroyer:function(e){return L.push(e)},invalidateLayout:function(){return n.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),H={element:{get:C},childViews:{get:k},rect:{get:U},resting:{get:function(){return g}},isRectIgnored:function(){return P},_read:B,_write:V,_destroy:q},Y=Object.assign({},z,{rect:{get:function(){return l}}});Object.keys(M).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var r=N[e]({mixinConfig:M[e],viewProps:t,viewState:A,viewInternalAPI:W,viewExternalAPI:H,view:i(Y)});r&&I.push(r)}));var X=i(W);E({root:X,props:t});var $=v(n);return b.forEach((function(e,t){X.appendChild(e.element,$+t)})),O(X),i(H)}},G=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,n="__framePainter";if(window[n])return window[n].readers.push(e),void window[n].writers.push(t);window[n]={readers:[e],writers:[t]};var o=window[n],i=1e3/r,a=null,s=null,l=null,u=null,c=function(){document.hidden?(l=function(){return window.setTimeout((function(){return f(performance.now())}),i)},u=function(){return window.clearTimeout(s)}):(l=function(){return window.requestAnimationFrame(f)},u=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",(function(){u&&u(),c(),f(performance.now())}));var f=function e(t){s=l(e),a||(a=t);var r=t-a;r<=i||(a=t-r%i,o.readers.forEach((function(e){return e()})),o.writers.forEach((function(e){return e(t)})))};return c(),f(performance.now()),{pause:function(){u(s)}}},F=function(e,t){return function(r){var n=r.root,o=r.props,i=r.actions,a=void 0===i?[]:i,s=r.timestamp,l=r.shouldOptimize;a.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:n,props:o,action:t.data,timestamp:s,shouldOptimize:l})})),t&&t({root:n,props:o,actions:a,timestamp:s,shouldOptimize:l})}},U=function(e,t){return t.parentNode.insertBefore(e,t)},B=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},V=function(e){return Array.isArray(e)},q=function(e){return null==e},z=function(e){return e.trim()},W=function(e){return""+e},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return q(e)?[]:V(e)?e:W(e).split(t).map(z).filter((function(e){return e.length}))},Y=function(e){return"boolean"==typeof e},X=function(e){return Y(e)?e:"true"===e},$=function(e){return"string"==typeof e},Q=function(e){return b(e)?e:$(e)?W(e).replace(/[a-z]+/gi,""):0},Z=function(e){return parseInt(Q(e),10)},K=function(e){return parseFloat(Q(e))},J=function(e){return b(e)&&isFinite(e)&&Math.floor(e)===e},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(J(e))return e;var r=W(e).trim();return/MB$/i.test(r)?(r=r.replace(/MB$i/,"").trim(),Z(r)*t*t):/KB/i.test(r)?(r=r.replace(/KB$i/,"").trim(),Z(r)*t):Z(r)},te=function(e){return"function"==typeof e},re=function(e){for(var t=self,r=e.split("."),n=null;n=r.shift();)if(!(t=t[n]))return null;return t},ne={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},oe=function(e){var t={};return t.url=$(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},o(ne,(function(r){t[r]=ie(r,e[r],ne[r],t.timeout,t.headers)})),t.process=e.process||$(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},ie=function(e,t,r,n,o){if(null===t)return null;if("function"==typeof t)return t;var i={url:"GET"===r||"PATCH"===r?"?"+e+"=":"",method:r,headers:o,withCredentials:!1,timeout:n,onload:null,ondata:null,onerror:null};if($(t))return i.url=t,i;if(Object.assign(i,t),$(i.headers)){var a=i.headers.split(/:(.+)/);i.headers={header:a[0],value:a[1]}}return i.withCredentials=X(i.withCredentials),i},ae=function(e){return null===e},se=function(e){return"object"==typeof e&&null!==e},le=function(e){return se(e)&&$(e.url)&&se(e.process)&&se(e.revert)&&se(e.restore)&&se(e.fetch)},ue=function(e){return V(e)?"array":ae(e)?"null":J(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":le(e)?"api":typeof e},ce=function(e){return e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},fe={array:H,boolean:X,int:function(e){return"bytes"===ue(e)?ee(e):Z(e)},number:K,float:K,bytes:ee,string:function(e){return te(e)?e:W(e)},function:function(e){return re(e)},serverapi:function(e){return oe(e)},object:function(e){try{return JSON.parse(ce(e))}catch(e){return null}}},pe=function(e,t){return fe[t](e)},de=function(e,t,r){if(e===t)return e;var n=ue(e);if(n!==r){var o=pe(e,r);if(n=ue(o),null===o)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+r+'"';e=o}return e},he=function(e,t){var r=e;return{enumerable:!0,get:function(){return r},set:function(n){r=de(n,e,t)}}},me=function(e){var t={};return o(e,(function(r){var n=e[r];t[r]=he(n[0],n[1])})),i(t)},ve=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:me(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)},ge=function(e,t){var r={};return o(t,(function(t){r[t]={get:function(){return e.getState().options[t]},set:function(r){e.dispatch("SET_"+ye(t,"_").toUpperCase(),{value:r})}}})),r},Ee=function(e){return function(t,r,n){var i={};return o(e,(function(e){var r=ye(e,"_").toUpperCase();i["SET_"+r]=function(o){try{n.options[e]=o.value}catch(e){}t("DID_SET_"+r,{value:n.options[e]})}})),i}},be=function(e){return function(t){var r={};return o(e,(function(e){r["GET_"+ye(e,"_").toUpperCase()]=function(r){return t.options[e]}})),r}},_e={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Ie=function(){return Math.random().toString(36).substring(2,11)};function Te(e){this.wrapped=e}function we(e){var t,r;function n(e,n){return new Promise((function(i,a){var s={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=s:(t=r=s,o(e,n))}))}function o(t,r){try{var n=e[t](r),a=n.value,s=a instanceof Te;Promise.resolve(s?a.wrapped:a).then((function(e){s?o("next",e):i(n.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=n,"function"!=typeof e.return&&(this.return=void 0)}function Oe(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}function Ae(e,t){if(null==e)return{};var r,n,o=Oe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Se(e){return Re(e)||Pe(e)||xe()}function Re(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1?t-1:0),o=1;o1?t-1:0),o=1;oBrowse',qe.STRING],labelInvalidField:["Field contains invalid files",qe.STRING],labelFileWaitingForSize:["Waiting for size",qe.STRING],labelFileSizeNotAvailable:["Size not available",qe.STRING],labelFileCountSingular:["file in list",qe.STRING],labelFileCountPlural:["files in list",qe.STRING],labelFileLoading:["Loading",qe.STRING],labelFileAdded:["Added",qe.STRING],labelFileLoadError:["Error during load",qe.STRING],labelFileRemoved:["Removed",qe.STRING],labelFileRemoveError:["Error during remove",qe.STRING],labelFileProcessing:["Uploading",qe.STRING],labelFileProcessingComplete:["Upload complete",qe.STRING],labelFileProcessingAborted:["Upload cancelled",qe.STRING],labelFileProcessingError:["Error during upload",qe.STRING],labelFileProcessingRevertError:["Error during revert",qe.STRING],labelTapToCancel:["tap to cancel",qe.STRING],labelTapToRetry:["tap to retry",qe.STRING],labelTapToUndo:["tap to undo",qe.STRING],labelButtonRemoveItem:["Remove",qe.STRING],labelButtonAbortItemLoad:["Abort",qe.STRING],labelButtonRetryItemLoad:["Retry",qe.STRING],labelButtonAbortItemProcessing:["Cancel",qe.STRING],labelButtonUndoItemProcessing:["Undo",qe.STRING],labelButtonRetryItemProcessing:["Retry",qe.STRING],labelButtonProcessItem:["Upload",qe.STRING],iconRemove:['',qe.STRING],iconProcess:['',qe.STRING],iconRetry:['',qe.STRING],iconUndo:['',qe.STRING],iconDone:['',qe.STRING],oninit:[null,qe.FUNCTION],onwarning:[null,qe.FUNCTION],onerror:[null,qe.FUNCTION],onactivatefile:[null,qe.FUNCTION],oninitfile:[null,qe.FUNCTION],onaddfilestart:[null,qe.FUNCTION],onaddfileprogress:[null,qe.FUNCTION],onaddfile:[null,qe.FUNCTION],onprocessfilestart:[null,qe.FUNCTION],onprocessfileprogress:[null,qe.FUNCTION],onprocessfileabort:[null,qe.FUNCTION],onprocessfilerevert:[null,qe.FUNCTION],onprocessfile:[null,qe.FUNCTION],onprocessfiles:[null,qe.FUNCTION],onremovefile:[null,qe.FUNCTION],onpreparefile:[null,qe.FUNCTION],onupdatefiles:[null,qe.FUNCTION],onreorderfiles:[null,qe.FUNCTION],beforeDropFile:[null,qe.FUNCTION],beforeAddFile:[null,qe.FUNCTION],beforeRemoveFile:[null,qe.FUNCTION],beforePrepareFile:[null,qe.FUNCTION],stylePanelLayout:[null,qe.STRING],stylePanelAspectRatio:[null,qe.STRING],styleItemPanelAspectRatio:[null,qe.STRING],styleButtonRemoveItemPosition:["left",qe.STRING],styleButtonProcessItemPosition:["right",qe.STRING],styleLoadIndicatorPosition:["right",qe.STRING],styleProgressIndicatorPosition:["right",qe.STRING],styleButtonRemoveItemAlign:[!1,qe.BOOLEAN],files:[[],qe.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],qe.ARRAY]},Ke=function(e,t){return q(t)?e[0]||null:J(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},Je=function(e){if(q(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},et=function(e){return e.filter((function(e){return!e.archived}))},tt={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},rt=null,nt=function(){if(null===rt)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,rt=1===t.files.length}catch(e){rt=!1}return rt},ot=[Ge.LOAD_ERROR,Ge.PROCESSING_ERROR,Ge.PROCESSING_REVERT_ERROR],it=[Ge.LOADING,Ge.PROCESSING,Ge.PROCESSING_QUEUED,Ge.INIT],at=[Ge.PROCESSING_COMPLETE],st=function(e){return ot.includes(e.status)},lt=function(e){return it.includes(e.status)},ut=function(e){return at.includes(e.status)},ct=function(e){return se(e.options.server)&&(se(e.options.server.process)||te(e.options.server.process))},ft=function(e){return{GET_STATUS:function(){var t=et(e.items),r=tt.EMPTY,n=tt.ERROR,o=tt.BUSY,i=tt.IDLE,a=tt.READY;return 0===t.length?r:t.some(st)?n:t.some(lt)?o:t.some(ut)?a:i},GET_ITEM:function(t){return Ke(e.items,t)},GET_ACTIVE_ITEM:function(t){return Ke(et(e.items),t)},GET_ACTIVE_ITEMS:function(){return et(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var r=Ke(e.items,t);return r?r.filename:null},GET_ITEM_SIZE:function(t){var r=Ke(e.items,t);return r?r.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter((function(e){return/^style/.test(e)})).map((function(t){return{name:t,value:e.options[t]}}))},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(e.options.stylePanelLayout)?1:Je(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return et(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return et(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&nt()&&!ct(e)},IS_ASYNC:function(){return ct(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},pt=function(e){var t=et(e.items).length;if(!e.options.allowMultiple)return 0===t;var r=e.options.maxFiles;return null===r||t1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},_t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+bt(e.getMonth()+1,"00")+"-"+bt(e.getDate(),"00")+"_"+bt(e.getHours(),"00")+"-"+bt(e.getMinutes(),"00")+"-"+bt(e.getSeconds(),"00")},It=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o="string"==typeof r?e.slice(0,e.size,r):e.slice(0,e.size,e.type);return o.lastModifiedDate=new Date,e._relativePath&&(o._relativePath=e._relativePath),$(t)||(t=_t()),t&&null===n&>(t)?o.name=t:(n=n||Et(o.type),o.name=t+(n?"."+n:"")),o},Tt=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},wt=function(e,t){var r=Tt();if(r){var n=new r;return n.append(e),n.getBlob(t)}return new Blob([e],{type:t})},Ot=function(e,t){for(var r=new ArrayBuffer(e.length),n=new Uint8Array(r),o=0;o=200&&a.status<300?n.onload(a):n.onerror(a)},a.onerror=function(){return n.onerror(a)},a.onabort=function(){o=!0,n.onabort()},a.ontimeout=function(){return n.ontimeout(a)},a.open(r.method,t,!0),J(r.timeout)&&(a.timeout=r.timeout),Object.keys(r.headers).forEach((function(e){var t=unescape(encodeURIComponent(r.headers[e]));a.setRequestHeader(e,t)})),r.responseType&&(a.responseType=r.responseType),r.withCredentials&&(a.withCredentials=!0),a.send(e),n},Gt=function(e,t,r,n){return{type:e,code:t,body:r,headers:n}},Ft=function(e){return function(t){e(Gt("error",0,"Timeout",t.getAllResponseHeaders()))}},Ut=function(e){return/\?/.test(e)},Bt=function(){for(var e="",t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!$(t.url))return null;var r=t.onload||function(e){return e},n=t.onerror||function(e){return null};return function(o,i,a,s,l,u){var c=kt(o,Bt(e,t.url),Object.assign({},t,{responseType:"blob"}));return c.onload=function(e){var n=e.getAllResponseHeaders(),a=Ct(n).name||yt(o);i(Gt("load",e.status,"HEAD"===t.method?null:It(r(e.response),a),n))},c.onerror=function(e){a(Gt("error",e.status,n(e.response)||e.statusText,e.getAllResponseHeaders()))},c.onheaders=function(e){u(Gt("headers",e.status,null,e.getAllResponseHeaders()))},c.ontimeout=Ft(a),c.onprogress=s,c.onabort=l,c}},qt={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},zt=function(e,t,r,n,o,i,a,s,l,u,c){for(var f=[],p=c.chunkTransferId,d=c.chunkServer,h=c.chunkSize,m=c.chunkRetryDelays,v={serverId:p,aborted:!1},y=t.ondata||function(e){return e},g=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},E=t.onerror||function(e){return null},b=function(i){var s=new FormData;se(o)&&s.append(r,JSON.stringify(o));var l="function"==typeof t.headers?t.headers(n,o):Object.assign({},t.headers,{"Upload-Length":n.size}),u=Object.assign({},t,{headers:l}),c=kt(y(s),Bt(e,t.url),u);c.onload=function(e){return i(g(e,u.method))},c.onerror=function(e){return a(Gt("error",e.status,E(e.response)||e.statusText,e.getAllResponseHeaders()))},c.ontimeout=Ft(a)},_=function(r){var n=Bt(e,d.url,v.serverId),o={headers:"function"==typeof t.headers?t.headers(v.serverId):Object.assign({},t.headers),method:"HEAD"},i=kt(null,n,o);i.onload=function(e){return r(g(e,o.method))},i.onerror=function(e){return a(Gt("error",e.status,E(e.response)||e.statusText,e.getAllResponseHeaders()))},i.ontimeout=Ft(a)},I=Math.floor(n.size/h),T=0;T<=I;T++){var w=T*h,O=n.slice(w,w+h,"application/offset+octet-stream");f[T]={index:T,size:O.size,offset:w,data:O,file:n,progress:0,retries:Se(m),status:qt.QUEUED,error:null,request:null,timeout:null}}var A=function(){return i(v.serverId)},S=function(e){return e.status===qt.QUEUED||e.status===qt.ERROR},R=function(t){if(!v.aborted)if(t=t||f.find(S)){t.status=qt.PROCESSING,t.progress=null;var r=d.ondata||function(e){return e},o=d.onerror||function(e){return null},i=Bt(e,d.url,v.serverId),s="function"==typeof d.headers?d.headers(t):Object.assign({},d.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":n.size,"Upload-Name":n.name}),u=t.request=kt(r(t.data),i,Object.assign({},d,{headers:s}));u.onload=function(){t.status=qt.COMPLETE,t.request=null,D()},u.onprogress=function(e,r,n){t.progress=e?r:null,x()},u.onerror=function(e){t.status=qt.ERROR,t.request=null,t.error=o(e.response)||e.statusText,P(t)||a(Gt("error",e.status,o(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=function(e){t.status=qt.ERROR,t.request=null,P(t)||Ft(a)(e)},u.onabort=function(){t.status=qt.QUEUED,t.request=null,l()}}else f.every((function(e){return e.status===qt.COMPLETE}))&&A()},P=function(e){return 0!==e.retries.length&&(e.status=qt.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout((function(){R(e)}),e.retries.shift()),!0)},x=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)},D=function(){f.filter((function(e){return e.status===qt.PROCESSING})).length>=1||R()},L=function(){f.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))};return v.serverId?_((function(e){v.aborted||(f.filter((function(t){return t.offsetn.chunkSize,d=f&&(p||n.chunkForce);if(o instanceof Blob&&d)return zt(e,t,r,o,i,a,s,l,u,c,n);var h=t.ondata||function(e){return e},m=t.onload||function(e){return e},v=t.onerror||function(e){return null},y="function"==typeof t.headers?t.headers(o,i)||{}:Object.assign({},t.headers),g=Object.assign({},t,{headers:y}),E=new FormData;se(i)&&E.append(r,JSON.stringify(i)),(o instanceof Blob?[{name:null,file:o}]:o).forEach((function(e){E.append(r,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var b=kt(h(E),Bt(e,t.url),g);return b.onload=function(e){a(Gt("load",e.status,m(e.response),e.getAllResponseHeaders()))},b.onerror=function(e){s(Gt("error",e.status,v(e.response)||e.statusText,e.getAllResponseHeaders()))},b.ontimeout=Ft(s),b.onprogress=l,b.onabort=u,b}}},Ht=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;return"function"==typeof t?function(){for(var e=arguments.length,o=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!$(t.url))return function(e,t){return t()};var r=t.onload||function(e){return e},n=t.onerror||function(e){return null};return function(o,i,a){var s=kt(o,e+t.url,t);return s.onload=function(e){i(Gt("load",e.status,r(e.response),e.getAllResponseHeaders()))},s.onerror=function(e){a(Gt("error",e.status,n(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=Ft(a),s}},Xt=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)},$t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,o=null,i=Date.now();return t>0&&function a(){var s=Date.now()-i,l=Xt(r,n);s+l>t&&(l=s+l-t);var u=s/t;u>=1||document.hidden?e(1):(e(u),o=setTimeout(a,l))}(),{clear:function(){clearTimeout(o)}}},Qt=function(e,t){var r={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},n=t.allowMinimumUploadDuration,o=function(t,o){var i=function(){0!==r.duration&&null!==r.progress&&u.fire("progress",u.getProgress())},a=function(){r.complete=!0,u.fire("load-perceived",r.response.body)};u.fire("start"),r.timestamp=Date.now(),r.perceivedPerformanceUpdater=$t((function(e){r.perceivedProgress=e,r.perceivedDuration=Date.now()-r.timestamp,i(),r.response&&1===r.perceivedProgress&&!r.complete&&a()}),n?Xt(750,1500):0),r.request=e(t,o,(function(e){r.response=se(e)?e:{type:"load",code:200,body:""+e,headers:{}},r.duration=Date.now()-r.timestamp,r.progress=1,u.fire("load",r.response.body),(!n||n&&1===r.perceivedProgress)&&a()}),(function(e){r.perceivedPerformanceUpdater.clear(),u.fire("error",se(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,n){r.duration=Date.now()-r.timestamp,r.progress=e?t/n:null,i()}),(function(){r.perceivedPerformanceUpdater.clear(),u.fire("abort",r.response?r.response.body:null)}),(function(e){u.fire("transfer",e)}))},i=function(){r.request&&(r.perceivedPerformanceUpdater.clear(),r.request.abort&&r.request.abort(),r.complete=!0)},a=function(){i(),r.complete=!1,r.perceivedProgress=0,r.progress=0,r.timestamp=null,r.perceivedDuration=0,r.duration=0,r.request=null,r.response=null},s=n?function(){return r.progress?Math.min(r.progress,r.perceivedProgress):null}:function(){return r.progress||null},l=n?function(){return Math.min(r.duration,r.perceivedDuration)}:function(){return r.duration},u=Object.assign({},Me(),{process:o,abort:i,getProgress:s,getDuration:l,reset:a});return u},Zt=function(e){return e.substring(0,e.lastIndexOf("."))||e},Kt=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||vt(e)?t[0]=e.name||_t():vt(e)?(t[1]=e.length,t[2]=At(e)):$(e)&&(t[0]=yt(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},Jt=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},er=function e(t){if(!se(t))return t;var r=V(t)?[]:{};for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];r[n]=o&&se(o)?e(o):o}return r},tr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Ie(),o={archived:!1,frozen:!1,released:!1,source:null,file:r,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Ge.PROCESSING_COMPLETE:Ge.INIT,activeLoader:null,activeProcessor:null},a=null,s={},l=function(e){return o.status=e},u=function(e){if(!o.released&&!o.frozen){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n-1||e.indexOf("//")>-1)&&ir(location.href)!==ir(e)},sr=function(e){return function(){return te(e)?e.apply(void 0,arguments):e}},lr=function(e){return!Jt(e.file)},ur=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:et(t.items)})}),0)},cr=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n=r.query,o=r.success,i=void 0===o?function(){}:o,a=r.failure,s=void 0===a?function(){}:a,l=Ae(r,["query","success","failure"]),u=Ke(e.items,n);u?t(u,i,s,l||{}):s({error:Gt("error",0,"Item not found"),file:null})}},dr=function(e,t,r){return{ABORT_ALL:function(){et(r.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var n=t.value,o=(void 0===n?[]:n).map((function(e){return{source:e.source?e.source:e,options:e.options}})),i=et(r.items);i.forEach((function(t){o.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),i=et(r.items),o.forEach((function(t,r){i.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:_e.NONE,index:r}))}))},DID_UPDATE_ITEM_METADATA:function(n){var o=n.id,i=n.action,a=n.change;a.silent||(clearTimeout(r.itemUpdateTimeout),r.itemUpdateTimeout=setTimeout((function(){var n=nr(r.items,o);if(t("IS_ASYNC")){n.origin===Fe.LOCAL&&e("DID_LOAD_ITEM",{id:n.id,error:null,serverFileReference:n.source});var s=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:o})}),32)},l=function(e){n.revert(Yt(r.options.server.url,r.options.server.revert),t("GET_FORCE_REVERT")).then(e?s:function(){}).catch((function(){}))},u=function(e){n.abortProcessing().then(e?s:function(){})};return n.status===Ge.PROCESSING_COMPLETE?l(r.options.instantUpload):n.status===Ge.PROCESSING?u(r.options.instantUpload):void(r.options.instantUpload&&s())}We("SHOULD_PREPARE_OUTPUT",!1,{item:n,query:t,action:i,change:a}).then((function(r){var i=t("GET_BEFORE_PREPARE_FILE");i&&(r=i(n,r)),r&&e("REQUEST_PREPARE_OUTPUT",{query:o,item:n,success:function(t){e("DID_PREPARE_OUTPUT",{id:o,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,n=e.index,o=Ke(r.items,t);if(o){var i=r.items.indexOf(o);i!==(n=dt(n,0,r.items.length-1))&&r.items.splice(n,0,r.items.splice(i,1)[0])}},SORT:function(n){var o=n.compare;fr(r,o),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(r){var n=r.items,o=r.index,i=r.interactionMethod,a=r.success,s=void 0===a?function(){}:a,l=r.failure,u=void 0===l?function(){}:l,c=o;if(-1===o||void 0===o){var f=t("GET_ITEM_INSERT_LOCATION"),p=t("GET_TOTAL_ITEMS");c="before"===f?0:p}var d=t("GET_IGNORED_FILES"),h=function(e){return Jt(e)?!d.includes(e.name.toLowerCase()):!q(e)},m=n.filter(h).map((function(t){return new Promise((function(r,n){e("ADD_ITEM",{interactionMethod:i,source:t.source||t,success:r,failure:n,index:c++,options:t.options||{}})}))}));Promise.all(m).then(s).catch(u)},ADD_ITEM:function(n){var o=n.source,i=n.index,a=void 0===i?-1:i,s=n.interactionMethod,l=n.success,u=void 0===l?function(){}:l,c=n.failure,f=void 0===c?function(){}:c,p=n.options,d=void 0===p?{}:p;if(q(o))f({error:Gt("error",0,"No source"),file:null});else if(!Jt(o)||!r.options.ignoredFiles.includes(o.name.toLowerCase())){if(!pt(r)){if(r.options.allowMultiple||!r.options.allowMultiple&&!r.options.allowReplace){var h=Gt("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:o,error:h}),void f({error:h,file:null})}var m=et(r.items)[0];if(m.status===Ge.PROCESSING_COMPLETE||m.status===Ge.PROCESSING_REVERT_ERROR){var v=t("GET_FORCE_REVERT");if(m.revert(Yt(r.options.server.url,r.options.server.revert),v).then((function(){v&&e("ADD_ITEM",{source:o,index:a,interactionMethod:s,success:u,failure:f,options:d})})).catch((function(){})),v)return}e("REMOVE_ITEM",{query:m.id})}var y="local"===d.type?Fe.LOCAL:"limbo"===d.type?Fe.LIMBO:Fe.INPUT,g=tr(y,y===Fe.INPUT?null:o,d.file);Object.keys(d.metadata||{}).forEach((function(e){g.setMetadata(e,d.metadata[e])})),He("DID_CREATE_ITEM",g,{query:t,dispatch:e});var E=t("GET_ITEM_INSERT_LOCATION");r.options.itemInsertLocationFreedom||(a="before"===E?-1:r.items.length),mt(r.items,g,a),te(E)&&o&&fr(r,E);var b=g.id;g.on("init",(function(){e("DID_INIT_ITEM",{id:b})})),g.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:b})})),g.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:b})})),g.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:b,progress:t})})),g.on("load-request-error",(function(t){var n=sr(r.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:b,error:t,status:{main:n,sub:t.code+" ("+t.body+")"}}),void f({error:t,file:je(g)});e("DID_THROW_ITEM_LOAD_ERROR",{id:b,error:t,status:{main:n,sub:r.options.labelTapToRetry}})})),g.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:b,error:t.status,status:t.status}),f({error:t.status,file:je(g)})})),g.on("load-abort",(function(){e("REMOVE_ITEM",{query:b})})),g.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:b,item:g,data:{source:o,success:u}})})),g.on("load",(function(){var n=function(n){n?(g.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:b,change:t})})),We("SHOULD_PREPARE_OUTPUT",!1,{item:g,query:t}).then((function(n){var i=t("GET_BEFORE_PREPARE_FILE");i&&(n=i(g,n));var a=function(){e("COMPLETE_LOAD_ITEM",{query:b,item:g,data:{source:o,success:u}}),ur(e,r)};n?e("REQUEST_PREPARE_OUTPUT",{query:b,item:g,success:function(t){e("DID_PREPARE_OUTPUT",{id:b,file:t}),a()}},!0):a()}))):e("REMOVE_ITEM",{query:b})};We("DID_LOAD_ITEM",g,{query:t,dispatch:e}).then((function(){cr(t("GET_BEFORE_ADD_FILE"),je(g)).then(n)})).catch((function(t){if(!t||!t.error||!t.status)return n(!1);e("DID_THROW_ITEM_INVALID",{id:b,error:t.error,status:t.status})}))})),g.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:b})})),g.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:b,progress:t})})),g.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:b,error:t,status:{main:sr(r.options.labelFileProcessingError)(t),sub:r.options.labelTapToRetry}})})),g.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:b,error:t,status:{main:sr(r.options.labelFileProcessingRevertError)(t),sub:r.options.labelTapToRetry}})})),g.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:b,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:b,value:t})})),g.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:b})})),g.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:b}),e("DID_DEFINE_VALUE",{id:b,value:null})})),e("DID_ADD_ITEM",{id:b,index:a,interactionMethod:s}),ur(e,r);var _=r.options.server||{},I=_.url,T=_.load,w=_.restore,O=_.fetch;g.load(o,Nt(y===Fe.INPUT?$(o)&&ar(o)&&O?Vt(I,O):or:y===Fe.LIMBO?Vt(I,w):Vt(I,T)),(function(e,r,n){We("LOAD_FILE",e,{query:t}).then(r).catch(n)}))}},REQUEST_PREPARE_OUTPUT:function(e){var r=e.item,n=e.success,o=e.failure,i=void 0===o?function(){}:o,a={error:Gt("error",0,"Item not found"),file:null};if(r.archived)return i(a);We("PREPARE_OUTPUT",r.file,{query:t,item:r}).then((function(e){We("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:r}).then((function(e){if(r.archived)return i(a);n(e)}))}))},COMPLETE_LOAD_ITEM:function(n){var o=n.item,i=n.data,a=i.success,s=i.source,l=t("GET_ITEM_INSERT_LOCATION");if(te(l)&&s&&fr(r,l),e("DID_LOAD_ITEM",{id:o.id,error:null,serverFileReference:o.origin===Fe.INPUT?null:s}),a(je(o)),o.origin!==Fe.LOCAL)return o.origin===Fe.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:o.id,error:null,serverFileReference:s}),void e("DID_DEFINE_VALUE",{id:o.id,value:o.serverId||s})):void(t("IS_ASYNC")&&r.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:o.id}));e("DID_LOAD_LOCAL_ITEM",{id:o.id})},RETRY_ITEM_LOAD:pr(r,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:pr(r,(function(t,r,n){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(n){e("DID_PREPARE_OUTPUT",{id:t.id,file:n}),r({file:t,output:n})},failure:n},!0)})),REQUEST_ITEM_PROCESSING:pr(r,(function(n,o,i){if(n.status===Ge.IDLE||n.status===Ge.PROCESSING_ERROR)n.status!==Ge.PROCESSING_QUEUED&&(n.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:n.id}),e("PROCESS_ITEM",{query:n,success:o,failure:i},!0));else{var a=function(){return e("REQUEST_ITEM_PROCESSING",{query:n,success:o,failure:i})},s=function(){return document.hidden?a():setTimeout(a,32)};n.status===Ge.PROCESSING_COMPLETE||n.status===Ge.PROCESSING_REVERT_ERROR?n.revert(Yt(r.options.server.url,r.options.server.revert),t("GET_FORCE_REVERT")).then(s).catch((function(){})):n.status===Ge.PROCESSING&&n.abortProcessing().then(s)}})),PROCESS_ITEM:pr(r,(function(n,o,i){var a=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",Ge.PROCESSING).length!==a){if(n.status!==Ge.PROCESSING){var s=function t(){var n=r.processingQueue.shift();if(n){var o=n.id,i=n.success,a=n.failure,s=Ke(r.items,o);s&&!s.archived?e("PROCESS_ITEM",{query:o,success:i,failure:a},!0):t()}};n.onOnce("process-complete",(function(){o(je(n)),s();var i=r.options.server;if(r.options.instantUpload&&n.origin===Fe.LOCAL&&te(i.remove)){var a=function(){};n.origin=Fe.LIMBO,r.options.server.remove(n.source,a,a)}t("GET_ITEMS_BY_STATUS",Ge.PROCESSING_COMPLETE).length===r.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),n.onOnce("process-error",(function(e){i({error:e,file:je(n)}),s()}));var l=r.options;n.process(Qt(Ht(l.server.url,l.server.process,l.name,{chunkTransferId:n.transferId,chunkServer:l.server.patch,chunkUploads:l.chunkUploads,chunkForce:l.chunkForce,chunkSize:l.chunkSize,chunkRetryDelays:l.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(r,o,i){We("PREPARE_OUTPUT",r,{query:t,item:n}).then((function(t){e("DID_PREPARE_OUTPUT",{id:n.id,file:t}),o(t)})).catch(i)}))}}else r.processingQueue.push({id:n.id,success:o,failure:i})})),RETRY_ITEM_PROCESSING:pr(r,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:pr(r,(function(r){cr(t("GET_BEFORE_REMOVE_FILE"),je(r)).then((function(t){t&&e("REMOVE_ITEM",{query:r})}))})),RELEASE_ITEM:pr(r,(function(e){e.release()})),REMOVE_ITEM:pr(r,(function(n,o,i,a){var s=function(){var t=n.id;nr(r.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:n}),ur(e,r),o(je(n))},l=r.options.server;n.origin===Fe.LOCAL&&l&&te(l.remove)&&!1!==a.remove?(e("DID_START_ITEM_REMOVE",{id:n.id}),l.remove(n.source,(function(){return s()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:n.id,error:Gt("error",0,t,null),status:{main:sr(r.options.labelFileRemoveError)(t),sub:r.options.labelTapToRetry}})}))):((a.revert&&n.origin!==Fe.LOCAL&&null!==n.serverId||r.options.chunkUploads&&n.file.size>r.options.chunkSize||r.options.chunkUploads&&r.options.chunkForce)&&n.revert(Yt(r.options.server.url,r.options.server.revert),t("GET_FORCE_REVERT")),s())})),ABORT_ITEM_LOAD:pr(r,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:pr(r,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){r.options.instantUpload&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:pr(r,(function(n){if(r.options.instantUpload){var o=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:n})},i=t("GET_BEFORE_REMOVE_FILE");if(!i)return o(!0);var a=i(je(n));return null==a?o(!0):"boolean"==typeof a?o(a):void("function"==typeof a.then&&a.then(o))}e("REVERT_ITEM_PROCESSING",{query:n})})),REVERT_ITEM_PROCESSING:pr(r,(function(n){n.revert(Yt(r.options.server.url,r.options.server.revert),t("GET_FORCE_REVERT")).then((function(){(r.options.instantUpload||lr(n))&&e("REMOVE_ITEM",{query:n.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var r=t.options,n=Object.keys(r),o=hr.filter((function(e){return n.includes(e)}));[].concat(Se(o),Se(Object.keys(r).filter((function(e){return!o.includes(e)})))).forEach((function(t){e("SET_"+ye(t,"_").toUpperCase(),{value:r[t]})}))}}},hr=["server"],mr=function(e){return e},vr=function(e){return document.createElement(e)},yr=function(e,t){var r=e.childNodes[0];r?t!==r.nodeValue&&(r.nodeValue=t):(r=document.createTextNode(t),e.appendChild(r))},gr=function(e,t,r,n){var o=(n%360-90)*Math.PI/180;return{x:e+r*Math.cos(o),y:t+r*Math.sin(o)}},Er=function(e,t,r,n,o,i){var a=gr(e,t,r,o),s=gr(e,t,r,n);return["M",a.x,a.y,"A",r,r,0,i,0,s.x,s.y].join(" ")},br=function(e,t,r,n,o){var i=1;return o>n&&o-n<=.5&&(i=0),n>o&&n-o>=.5&&(i=0),Er(e,t,r,360*Math.min(.9999,n),360*Math.min(.9999,o),i)},_r=k({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(e){var t=e.root,r=e.props;r.spin=!1,r.progress=0,r.opacity=0;var n=c("svg");t.ref.path=c("path",{"stroke-width":2,"stroke-linecap":"round"}),n.appendChild(t.ref.path),t.ref.svg=n,t.appendChild(n)},write:function(e){var t=e.root,r=e.props;if(0!==r.opacity){r.align&&(t.element.dataset.align=r.align);var n=parseInt(a(t.ref.path,"stroke-width"),10),o=.5*t.rect.element.width,i=0,s=0;r.spin?(i=0,s=.5):(i=0,s=r.progress);var l=br(o,o,o-n,i,s);a(t.ref.path,"d",l),a(t.ref.path,"stroke-opacity",r.spin||r.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Ir=k({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(e){var t=e.root,r=e.props;t.element.innerHTML=(r.icon||"")+""+r.label+"",r.isDisabled=!1},write:function(e){var t=e.root,r=e.props,n=r.isDisabled,o=t.query("GET_DISABLED")||0===r.opacity;o&&!n?(r.isDisabled=!0,a(t.element,"disabled","disabled")):!o&&n&&(r.isDisabled=!1,t.element.removeAttribute("disabled"))}}),Tr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.labelBytes,i=void 0===o?"bytes":o,a=n.labelKilobytes,s=void 0===a?"KB":a,l=n.labelMegabytes,u=void 0===l?"MB":l,c=n.labelGigabytes,f=void 0===c?"GB":c,p=r,d=r*r,h=r*r*r;return(e=Math.round(Math.abs(e)))16&&!n&&(n=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:r.id,dragState:i}))},s=function e(s){s.isPrimary&&(document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",e),r.dragOffset={x:s.pageX-o.x,y:s.pageY-o.y},t.dispatch("DID_DROP_ITEM",{id:r.id,dragState:i}),n&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))};document.addEventListener("pointermove",a),document.addEventListener("pointerup",s)}};t.element.addEventListener("pointerdown",n)}},un=F({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,r=e.action;t.height=r.height}}),cn=F({DID_GRAB_ITEM:function(e){var t=e.root;e.props.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){e.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,r=e.props;r.dragOffset=null,r.dragOrigin=null,t.element.dataset.dragState="drop"}},(function(e){var t=e.root,r=e.actions,n=e.props,o=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var i=r.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return sn[e.type]}));i&&i.type!==n.currentState&&(n.currentState=i.type,t.element.dataset.filepondItemState=sn[n.currentState]||"");var a=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");a?o||(t.height=t.rect.element.width*a):(un({root:t,actions:r,props:n}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),o&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),fn=k({create:ln,write:cn,destroy:function(e){var t=e.root,r=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:r.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:an,scaleY:an,translateX:on,translateY:on,opacity:{type:"tween",duration:150}}}}),pn=function(e,t){return Math.max(1,Math.floor((e+1)/t))},dn=function(e,t,r){if(r){var n=e.rect.element.width,o=t.length,i=null;if(0===o||r.topg){if(r.left3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=r,Date.now()>e.spawnDate&&(0===e.opacity&&yn(e,t,r,n,o),e.scaleX=1,e.scaleY=1,e.opacity=1))},yn=function(e,t,r,n,o){e.interactionMethod===_e.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=r):e.interactionMethod===_e.DROP?(e.translateX=null,e.translateX=t-20*n,e.translateY=null,e.translateY=r-10*o,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===_e.BROWSE?(e.translateY=null,e.translateY=r-30):e.interactionMethod===_e.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},gn=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},En=function(e){return e.rect.element.width+.5*e.rect.element.marginLeft+.5*e.rect.element.marginRight},bn=F({DID_ADD_ITEM:function(e){var t=e.root,r=e.action,n=r.id,o=r.index,i=r.interactionMethod;t.ref.addIndex=o;var a=Date.now(),s=a,l=1;if(i!==_e.NONE){l=0;var u=t.query("GET_ITEM_INSERT_INTERVAL"),c=a-t.ref.lastItemSpanwDate;s=cs&&(p=s);var d=Math.floor(s/p+1);hn.setHeight=c*d,hn.setWidth=f*p;var h={y:Math.floor(u.y/c),x:Math.floor(u.x/f),getGridIndex:function(){return u.y>hn.getHeight||u.y<0||u.x>hn.getWidth||u.x<0?l:this.y*p+this.x},getColIndex:function(){for(var e=t.query("GET_ACTIVE_ITEMS"),r=t.childViews.filter((function(e){return e.rect.element.height})),n=e.map((function(e){return r.find((function(t){return t.id===e.id}))})),o=n.findIndex((function(e){return e===a})),i=gn(a),s=n.length,l=s,c=0,f=0,p=0;pp){if(u.y1?h.getGridIndex():h.getColIndex();t.dispatch("MOVE_ITEM",{query:a,index:m});var v=o.getIndex();if(void 0===v||v!==m){if(o.setIndex(m),void 0===v)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:l,target:m})}}}}),_n=k({create:mn,write:function(e){var t=e.root,r=e.props,n=e.actions,o=e.shouldOptimize;bn({root:t,props:r,actions:n});var i=r.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})),u=i?dn(t,l,i):null,c=t.ref.addIndex||null;t.ref.addIndex=null;var f=0,p=0,d=0;if(0!==l.length){var h=l[0].rect.element,m=h.marginTop+h.marginBottom,v=h.marginLeft+h.marginRight,y=h.width+v,g=h.height+m,E=pn(a,y);if(1===E){var b=0,_=0;l.forEach((function(e,t){if(u){var r=t-u;_=-2===r?.25*-m:-1===r?.75*-m:0===r?.75*m:1===r?.25*m:0}o&&(e.translateX=null,e.translateY=null),e.markedForRemoval||vn(e,0,b+_);var n=(e.rect.element.height+m)*(e.markedForRemoval?e.opacity:1);b+=n}))}else{var I=0,T=0;l.forEach((function(e,t){t===u&&(f=1),t===c&&(d+=1),e.markedForRemoval&&e.opacity<.5&&(p-=1);var r=t+d+f+p,n=r%E,i=Math.floor(r/E),a=n*y,s=i*g,l=Math.sign(a-I),h=Math.sign(s-T);I=a,T=s,e.markedForRemoval||(o&&(e.translateX=null,e.translateY=null),vn(e,a,s,l,h))}))}}},tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter((function(e){return e.markedForRemoval&&0===e.opacity&&e.resting})).forEach((function(e){e._destroy(),t.removeChildView(e)}))},filterFrameActionsForChild:function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},mixins:{apis:["dragCoordinates"]}}),In=function(e){var t=e.root,r=e.props;t.ref.list=t.appendChildView(t.createChildView(_n)),r.dragCoordinates=null,r.overflowing=!1},Tn=F({DID_DRAG:function(e){var t=e.root,r=e.props,n=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(r.dragCoordinates={left:n.position.scopeLeft-t.ref.list.rect.element.left,top:n.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),wn=k({create:In,write:function(e){var t=e.root,r=e.props,n=e.actions;if(Tn({root:t,props:r,actions:n}),t.ref.list.dragCoordinates=r.dragCoordinates,r.overflowing&&!r.overflow&&(r.overflowing=!1,t.element.dataset.state="",t.height=null),r.overflow){var o=Math.round(r.overflow);o!==t.height&&(r.overflowing=!0,t.element.dataset.state="overflow",t.height=o)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),On=function(e,t,r){r?a(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):e.removeAttribute(t)},An=function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=vr("form"),r=e.parentNode,n=e.nextSibling;t.appendChild(e),t.reset(),n?r.insertBefore(e,n):r.appendChild(e)}}},Sn=function(e){var t=e.root,r=e.props;t.element.id="filepond--browser-"+r.id,a(t.element,"name",t.query("GET_NAME")),a(t.element,"aria-controls","filepond--assistant-"+r.id),a(t.element,"aria-labelledby","filepond--drop-label-"+r.id),Rn({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),Pn({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),xn({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),Dn({root:t}),Ln({root:t,action:{value:t.query("GET_REQUIRED")}}),Mn({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var n=Array.from(t.element.files).map((function(e){return e._relativePath=e.webkitRelativePath,e}));setTimeout((function(){r.onload(n),An(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},Rn=function(e){var t=e.root,r=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&On(t.element,"accept",!!r.value,r.value?r.value.join(","):"")},Pn=function(e){var t=e.root,r=e.action;On(t.element,"multiple",r.value)},xn=function(e){var t=e.root,r=e.action;On(t.element,"webkitdirectory",r.value)},Dn=function(e){var t=e.root,r=t.query("GET_DISABLED"),n=t.query("GET_ALLOW_BROWSE"),o=r||!n;On(t.element,"disabled",o)},Ln=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&On(t.element,"required",!0):On(t.element,"required",!1)},Mn=function(e){var t=e.root,r=e.action;On(t.element,"capture",!!r.value,!0===r.value?"":r.value)},Cn=function(e){var t=e.root,r=t.element;t.query("GET_TOTAL_ITEMS")>0?(On(r,"required",!1),On(r,"name",!1)):(On(r,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&r.setCustomValidity(""),t.query("GET_REQUIRED")&&On(r,"required",!0))},Nn=k({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Sn,destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:F({DID_LOAD_ITEM:Cn,DID_REMOVE_ITEM:Cn,DID_THROW_ITEM_INVALID:function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:Dn,DID_SET_ALLOW_BROWSE:Dn,DID_SET_ALLOW_DIRECTORIES_ONLY:xn,DID_SET_ALLOW_MULTIPLE:Pn,DID_SET_ACCEPTED_FILE_TYPES:Rn,DID_SET_CAPTURE_METHOD:Mn,DID_SET_REQUIRED:Ln})}),jn={ENTER:13,SPACE:32},kn=function(e){var t=e.root,r=e.props,n=vr("label");a(n,"for","filepond--browser-"+r.id),a(n,"id","filepond--drop-label-"+r.id),a(n,"aria-hidden","true"),t.ref.handleKeyDown=function(e){(e.keyCode===jn.ENTER||e.keyCode===jn.SPACE)&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){e.target===n||n.contains(e.target)||t.ref.label.click()},n.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),Gn(n,r.caption),t.appendChild(n),t.ref.label=n},Gn=function(e,t){e.innerHTML=t;var r=e.querySelector(".filepond--label-action");return r&&a(r,"tabindex","0"),t},Fn=k({name:"drop-label",ignoreRect:!0,create:kn,destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:F({DID_SET_LABEL_IDLE:function(e){var t=e.root,r=e.action;Gn(t.ref.label,r.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),Un=k({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}}}}),Bn=function(e){var t=e.root,r=.5*t.rect.element.width,n=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(Un,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:r,translateY:n}))},Vn=function(e){var t=e.root,r=e.props,n=e.actions;qn({root:t,props:r,actions:n});var o=t.ref.blob;0===n.length&&o&&0===o.opacity&&(t.removeChildView(o),t.ref.blob=null)},qn=F({DID_DRAG:function(e){var t=e.root,r=e.action;t.ref.blob?(t.ref.blob.translateX=r.position.scopeLeft,t.ref.blob.translateY=r.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):Bn({root:t})},DID_DROP:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},DID_END_DRAG:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)}}),zn=k({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:Vn}),Wn=function(e,t){try{var r=new DataTransfer;t.forEach((function(e){e instanceof File?r.items.add(e):r.items.add(new File([e],e.name,{type:e.type}))})),e.files=r.files}catch(e){return!1}return!0},Hn=function(e){return e.root.ref.fields={}},Yn=function(e,t){return e.ref.fields[t]},Xn=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},$n=function(e){var t=e.root;return Xn(t)},Qn=F({DID_SET_DISABLED:function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},DID_ADD_ITEM:function(e){var t=e.root,r=e.action,n=!(t.query("GET_ITEM",r.id).origin===Fe.LOCAL)&&t.query("SHOULD_UPDATE_FILE_INPUT"),o=vr("input");o.type=n?"file":"hidden",o.name=t.query("GET_NAME"),o.disabled=t.query("GET_DISABLED"),t.ref.fields[r.id]=o,Xn(t)},DID_LOAD_ITEM:function(e){var t=e.root,r=e.action,n=Yn(t,r.id);if(n&&(null!==r.serverFileReference&&(n.value=r.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var o=t.query("GET_ITEM",r.id);Wn(n,[o.file])}},DID_REMOVE_ITEM:function(e){var t=e.root,r=e.action,n=Yn(t,r.id);n&&(n.parentNode&&n.parentNode.removeChild(n),delete t.ref.fields[r.id])},DID_DEFINE_VALUE:function(e){var t=e.root,r=e.action,n=Yn(t,r.id);n&&(null===r.value?n.removeAttribute("value"):n.value=r.value,Xn(t))},DID_PREPARE_OUTPUT:function(e){var t=e.root,r=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=Yn(t,r.id);e&&Wn(e,[r.file])}),0)},DID_REORDER_ITEMS:$n,DID_SORT_ITEMS:$n}),Zn=k({tag:"fieldset",name:"data",create:Hn,write:Qn,ignoreRect:!0}),Kn=function(e){return"getRootNode"in e?e.getRootNode():document},Jn=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],eo=["css","csv","html","txt"],to={zip:"zip|compressed",epub:"application/epub+zip"},ro=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Jn.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):eo.includes(e)?"text/"+e:to[e]||""},no=function(e){return new Promise((function(t,r){var n=ho(e);if(n.length&&!oo(e))return t(n);io(e).then(t)}))},oo=function(e){return!!e.files&&e.files.length>0},io=function(e){return new Promise((function(t,r){var n=(e.items?Array.from(e.items):[]).filter((function(e){return ao(e)})).map((function(e){return so(e)}));n.length?Promise.all(n).then((function(e){var r=[];e.forEach((function(e){r.push.apply(r,e)})),t(r.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):[])}))},ao=function(e){if(fo(e)){var t=po(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},so=function(e){return new Promise((function(t,r){co(e)?lo(po(e)).then(t).catch(r):t([e.getAsFile()])}))},lo=function(e){return new Promise((function(t,r){var n=[],o=0,i=0,a=function(){0===i&&0===o&&t(n)},s=function e(t){o++;var s=t.createReader(),l=function t(){s.readEntries((function(r){if(0===r.length)return o--,void a();r.forEach((function(t){t.isDirectory?e(t):(i++,t.file((function(e){var r=uo(e);t.fullPath&&(r._relativePath=t.fullPath),n.push(r),i--,a()})))})),t()}),r)};l()};s(e)}))},uo=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,r=e.name,n=ro(gt(e.name));return n.length?((e=e.slice(0,e.size,n)).name=r,e.lastModifiedDate=t,e):e},co=function(e){return fo(e)&&(po(e)||{}).isDirectory},fo=function(e){return"webkitGetAsEntry"in e},po=function(e){return e.webkitGetAsEntry()},ho=function(e){var t=[];try{if((t=vo(e)).length)return t;t=mo(e)}catch(e){}return t},mo=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},vo=function(e){var t=e.getData("text/html");if("string"==typeof t&&t.length){var r=t.match(/src\s*=\s*"(.+?)"/);if(r)return[r[1]]}return[]},yo=[],go=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Eo=function(e,t,r){var n=bo(t),o={element:e,filterElement:r,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return o.destroy=n.addListener(o),o},bo=function(e){var t=yo.find((function(t){return t.element===e}));if(t)return t;var r=_o(e);return yo.push(r),r},_o=function(e){var t=[],r={dragenter:Ao,dragover:So,dragleave:Po,drop:Ro},n={};o(r,(function(r,o){n[r]=o(e,t),e.addEventListener(r,n[r],!1)}));var i={element:e,addListener:function(a){return t.push(a),function(){t.splice(t.indexOf(a),1),0===t.length&&(yo.splice(yo.indexOf(i),1),o(r,(function(t){e.removeEventListener(t,n[t],!1)})))}}};return i},Io=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)},To=function(e,t){var r=Kn(t),n=Io(r,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return n===t||t.contains(n)},wo=null,Oo=function(e,t){try{e.dropEffect=t}catch(e){}},Ao=function(e,t){return function(e){e.preventDefault(),wo=e.target,t.forEach((function(t){var r=t.element,n=t.onenter;To(e,r)&&(t.state="enter",n(go(e)))}))}},So=function(e,t){return function(e){e.preventDefault();var r=e.dataTransfer;no(r).then((function(n){var o=!1;t.some((function(t){var i=t.filterElement,a=t.element,s=t.onenter,l=t.onexit,u=t.ondrag,c=t.allowdrop;Oo(r,"copy");var f=c(n);if(f)if(To(e,a)){if(o=!0,null===t.state)return t.state="enter",void s(go(e));if(t.state="over",i&&!f)return void Oo(r,"none");u(go(e))}else i&&!o&&Oo(r,"none"),t.state&&(t.state=null,l(go(e)));else Oo(r,"none")}))}))}},Ro=function(e,t){return function(e){e.preventDefault();var r=e.dataTransfer;no(r).then((function(r){t.forEach((function(t){var n=t.filterElement,o=t.element,i=t.ondrop,a=t.onexit,s=t.allowdrop;if(t.state=null,!n||To(e,o))return s(r)?void i(go(e),r):a(go(e))}))}))}},Po=function(e,t){return function(e){wo===e.target&&t.forEach((function(t){var r=t.onexit;t.state=null,r(go(e))}))}},xo=function(e,t,r){e.classList.add("filepond--hopper");var n=r.catchesDropsOnPage,o=r.requiresDropOnElement,i=r.filterItems,a=void 0===i?function(e){return e}:i,s=Eo(e,n?document.documentElement:e,o),l="",u="";s.allowdrop=function(e){return t(a(e))},s.ondrop=function(e,r){var n=a(r);t(n)?(u="drag-drop",c.onload(n,e)):c.ondragend(e)},s.ondrag=function(e){c.ondrag(e)},s.onenter=function(e){u="drag-over",c.ondragstart(e)},s.onexit=function(e){u="drag-exit",c.ondragend(e)};var c={updateHopperState:function(){l!==u&&(e.dataset.hopperState=u,l=u)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return c},Do=!1,Lo=[],Mo=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){for(var r=!1,n=t;n!==document.body;){if(n.classList.contains("filepond--root")){r=!0;break}n=n.parentNode}if(!r)return}no(e.clipboardData).then((function(e){e.length&&Lo.forEach((function(t){return t(e)}))}))},Co=function(e){Lo.includes(e)||(Lo.push(e),Do||(Do=!0,document.addEventListener("paste",Mo)))},No=function(e){De(Lo,Lo.indexOf(e)),0===Lo.length&&(document.removeEventListener("paste",Mo),Do=!1)},jo=function(){var e=function(e){t.onload(e)},t={destroy:function(){No(e)},onload:function(){}};return Co(e),t},ko=null,Go=null,Fo=[],Uo=function(e,t){e.element.textContent=t},Bo=function(e){e.element.textContent=""},Vo=function(e,t,r){var n=e.query("GET_TOTAL_ITEMS");Uo(e,r+" "+t+", "+n+" "+(1===n?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(Go),Go=setTimeout((function(){Bo(e)}),1500)},qo=function(e){return e.element.parentNode.contains(document.activeElement)},zo=function(e){var t=e.root,r=e.action,n=t.query("GET_ITEM",r.id).filename,o=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");Uo(t,n+" "+o)},Wo=function(e){var t=e.root,r=e.action,n=t.query("GET_ITEM",r.id).filename;Uo(t,r.status.main+" "+n+" "+r.status.sub)},Ho=k({create:function(e){var t=e.root,r=e.props;t.element.id="filepond--assistant-"+r.id,a(t.element,"role","status"),a(t.element,"aria-live","polite"),a(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:F({DID_LOAD_ITEM:function(e){var t=e.root,r=e.action;if(qo(t)){t.element.textContent="";var n=t.query("GET_ITEM",r.id);Fo.push(n.filename),clearTimeout(ko),ko=setTimeout((function(){Vo(t,Fo.join(", "),t.query("GET_LABEL_FILE_ADDED")),Fo.length=0}),750)}},DID_REMOVE_ITEM:function(e){var t=e.root,r=e.action;if(qo(t)){var n=r.item;Vo(t,n.filename,t.query("GET_LABEL_FILE_REMOVED"))}},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,r=e.action,n=t.query("GET_ITEM",r.id).filename,o=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Uo(t,n+" "+o)},DID_ABORT_ITEM_PROCESSING:zo,DID_REVERT_ITEM_PROCESSING:zo,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"}),Yo=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()}))},Xo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Date.now(),o=null;return function(){for(var i=arguments.length,a=new Array(i),s=0;s2*S)for(var R=A.length,P=R-10,x=0,D=R;D>=P;D--)if(A[D]===A[D-2]&&x++,x>=S)return;u.scalable=!1,u.height=O;var L=O-E-(_-v.bottom)-(d?b:0);y.visual>L?l.overflow=L:l.overflow=null,t.height=O}else if(o.fixedHeight){u.scalable=!1;var M=o.fixedHeight-E-(_-v.bottom)-(d?b:0);y.visual>M?l.overflow=M:l.overflow=null}else if(o.cappedHeight){var C=I>=o.cappedHeight,N=Math.min(o.cappedHeight,I);u.scalable=!0,u.height=C?N:N-v.top-v.bottom;var j=N-E-(_-v.bottom)-(d?b:0);I>o.cappedHeight&&y.visual>j?l.overflow=j:l.overflow=null,t.height=Math.min(o.cappedHeight,T-v.top-v.bottom)}else{var k=p>0?v.top+v.bottom:0;u.scalable=!0,u.height=Math.max(g,I-k),t.height=Math.max(g,T-k)}t.ref.credits&&u.heightCurrent&&(t.ref.credits.style.transform="translateY("+u.heightCurrent+"px)")}},Jo=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}},ei=function(e){var t=0,r=0,n=e.ref.list,o=n.childViews[0],i=o.childViews.filter((function(e){return e.rect.element.height})),a=e.query("GET_ACTIVE_ITEMS").map((function(e){return i.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===a.length)return{visual:t,bounds:r};var s=o.rect.element.width,l=dn(o,a,n.dragCoordinates),u=a[0].rect.element,c=u.marginTop+u.marginBottom,f=u.marginLeft+u.marginRight,p=u.width+f,d=u.height+c,h=void 0!==l&&l>=0?1:0,m=a.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,v=a.length+h+m,y=pn(s,p);return 1===y?a.forEach((function(e){var n=e.rect.element.height+c;r+=n,t+=n*e.opacity})):(r=Math.ceil(v/y)*d,t=r),{visual:t,bounds:r}},ti=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},ri=function(e,t){var r=e.query("GET_ALLOW_REPLACE"),n=e.query("GET_ALLOW_MULTIPLE"),o=e.query("GET_TOTAL_ITEMS"),i=e.query("GET_MAX_FILES"),a=t.length;return!n&&a>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Gt("warning",0,"Max files")}),!0):!(!n&&r||!(J(i=n?i:1)&&o+a>i)||(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:Gt("warning",0,"Max files")}),0))},ni=function(e,t,r){var n=e.childViews[0];return dn(n,t,{left:r.scopeLeft-n.rect.element.left,top:r.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},oi=function(e){var t=e.query("GET_ALLOW_DROP"),r=e.query("GET_DISABLED"),n=t&&!r;if(n&&!e.ref.hopper){var o=xo(e.element,(function(t){var r=e.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!e.query("GET_DROP_VALIDATION")||t.every((function(t){return He("ALLOW_HOPPER_ITEM",t,{query:e.query}).every((function(e){return!0===e}))&&r(t)}))}),{filterItems:function(t){var r=e.query("GET_IGNORED_FILES");return t.filter((function(e){return!Jt(e)||!r.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});o.onload=function(t,r){var n=e.ref.list.childViews[0].childViews.filter((function(e){return e.rect.element.height})),o=e.query("GET_ACTIVE_ITEMS").map((function(e){return n.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(ri(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:ni(e.ref.list,o,r),interactionMethod:_e.DROP})})),e.dispatch("DID_DROP",{position:r}),e.dispatch("DID_END_DRAG",{position:r})},o.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},o.ondrag=Xo((function(t){e.dispatch("DID_DRAG",{position:t})})),o.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=o,e.ref.drip=e.appendChildView(e.createChildView(zn))}else!n&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},ii=function(e,t){var r=e.query("GET_ALLOW_BROWSE"),n=e.query("GET_DISABLED"),o=r&&!n;o&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(Nn,Object.assign({},t,{onload:function(t){We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(ri(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:_e.BROWSE})}))}})),0):!o&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},ai=function(e){var t=e.query("GET_ALLOW_PASTE"),r=e.query("GET_DISABLED"),n=t&&!r;n&&!e.ref.paster?(e.ref.paster=jo(),e.ref.paster.onload=function(t){We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(ri(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:_e.PASTE})}))}):!n&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},si=F({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,r=e.props;ii(t,r)},DID_SET_ALLOW_DROP:function(e){var t=e.root;oi(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;ai(t)},DID_SET_DISABLED:function(e){var t=e.root,r=e.props;oi(t),ai(t),ii(t,r),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),li=k({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:Zo,write:Ko,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",Qo),t.element.removeEventListener("gesturestart",Qo)},mixins:{styles:["height"]}}),ui=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,n=$e(),o=r(ve(n),[ft,be(n)],[dr,Ee(n)]);o.dispatch("SET_OPTIONS",{options:e});var a=function(){document.hidden||o.dispatch("KICK")};document.addEventListener("visibilitychange",a);var s=null,l=!1,u=!1,c=null,f=null,p=function(){l||(l=!0),clearTimeout(s),s=setTimeout((function(){l=!1,c=null,f=null,u&&(u=!1,o.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",p);var d=li(o,{id:Ie()}),h=!1,m=!1,v={_read:function(){l&&(f=window.innerWidth,c||(c=f),u||f===c||(o.dispatch("DID_START_RESIZE"),u=!0)),m&&h&&(h=null===d.element.offsetParent),h||(d._read(),m=d.rect.element.hidden)},_write:function(e){var t=o.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));h&&!t.length||(_(t),h=d._write(e,t,u),ke(o.query("GET_ITEMS")),h&&o.processDispatchQueue())}},y=function(e){return function(t){var r={type:e};if(!t)return r;if(t.hasOwnProperty("error")&&(r.error=t.error?Object.assign({},t.error):null),t.status&&(r.status=Object.assign({},t.status)),t.file&&(r.output=t.file),t.source)r.file=t.source;else if(t.item||t.id){var n=t.item?t.item:o.query("GET_ITEM",t.id);r.file=n?je(n):null}return t.items&&(r.items=t.items.map(je)),/progress/.test(e)&&(r.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(r.origin=t.origin,r.target=t.target),r}},g={DID_DESTROY:y("destroy"),DID_INIT:y("init"),DID_THROW_MAX_FILES:y("warning"),DID_INIT_ITEM:y("initfile"),DID_START_ITEM_LOAD:y("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:y("addfileprogress"),DID_LOAD_ITEM:y("addfile"),DID_THROW_ITEM_INVALID:[y("error"),y("addfile")],DID_THROW_ITEM_LOAD_ERROR:[y("error"),y("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[y("error"),y("removefile")],DID_PREPARE_OUTPUT:y("preparefile"),DID_START_ITEM_PROCESSING:y("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:y("processfileprogress"),DID_ABORT_ITEM_PROCESSING:y("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:y("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:y("processfiles"),DID_REVERT_ITEM_PROCESSING:y("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[y("error"),y("processfile")],DID_REMOVE_ITEM:y("removefile"),DID_UPDATE_ITEMS:y("updatefiles"),DID_ACTIVATE_ITEM:y("activatefile"),DID_REORDER_ITEMS:y("reorderfiles")},E=function(e){var t=Object.assign({pond:C},e);delete t.type,d.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var r=[];e.hasOwnProperty("error")&&r.push(e.error),e.hasOwnProperty("file")&&r.push(e.file);var n=["type","error","file"];Object.keys(e).filter((function(e){return!n.includes(e)})).forEach((function(t){return r.push(e[t])})),C.fire.apply(C,[e.type].concat(r));var i=o.query("GET_ON"+e.type.toUpperCase());i&&i.apply(void 0,r)},_=function(e){e.length&&e.filter((function(e){return g[e.type]})).forEach((function(e){var t=g[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?E(t(e.data)):setTimeout((function(){E(t(e.data))}),0)}))}))},I=function(e){return o.dispatch("SET_OPTIONS",{options:e})},T=function(e){return o.query("GET_ACTIVE_ITEM",e)},w=function(e){return new Promise((function(t,r){o.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){r(e)}})}))},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,n){R([{source:e,options:t}],{index:t.index}).then((function(e){return r(e&&e[0])})).catch(n)}))},A=function(e){return e.file&&e.id},S=function(e,t){return"object"!=typeof e||A(e)||t||(t=e,e=void 0),o.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===o.query("GET_ACTIVE_ITEM",e)},R=function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t={};return o($e(),(function(e,r){t[e]=r[0]})),ui(Object.assign({},t,{},e))},fi=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},pi=function(e){return Yo(e.replace(/^data-/,""))},di=function e(t,r){o(r,(function(r,n){o(t,(function(e,o){var i=new RegExp(r);if(i.test(e)&&(delete t[e],!1!==n))if($(n))t[n]=o;else{var a=n.group;se(n)&&!t[a]&&(t[a]={}),t[a][fi(e.replace(i,""))]=o}})),n.mapping&&e(t[n.group],n.mapping)}))},hi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];o(e.attributes,(function(t){r.push(e.attributes[t])}));var n=r.filter((function(e){return e.name})).reduce((function(t,r){var n=a(e,r.name);return t[pi(r.name)]=n===r.name||n,t}),{});return di(n,t),n},mi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={"^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};He("SET_ATTRIBUTE_TO_OPTION_MAP",r);var n=Object.assign({},t),o=hi("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,r);Object.keys(o).forEach((function(e){se(o[e])?(se(n[e])||(n[e]={}),Object.assign(n[e],o[e])):n[e]=o[e]})),n.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map((function(e){return{source:e.value,options:{type:e.dataset.type}}})));var i=ci(n);return e.files&&Array.from(e.files).forEach((function(e){i.addFile(e)})),i.replaceElement(e),i},vi=function(){return t(arguments.length<=0?void 0:arguments[0])?mi.apply(void 0,arguments):ci.apply(void 0,arguments)},yi=["fire","_read","_write"],gi=function(e){var t={};return Ce(e,t,yi),t},Ei=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,r){return t[r]}))},bi=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r);return{transfer:function(e,t){},post:function(e,t,r){var o=Ie();n.onmessage=function(e){e.data.id===o&&t(e.data.message)},n.postMessage({id:o,message:e},r)},terminate:function(){n.terminate(),URL.revokeObjectURL(r)}}},_i=function(e){return new Promise((function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=function(e){r(e)},n.src=e}))},Ii=function(e,t){var r=e.slice(0,e.size,e.type);return r.lastModifiedDate=e.lastModifiedDate,r.name=t,r},Ti=function(e){return Ii(e,e.name)},wi=[],Oi=function(e){if(!wi.includes(e)){wi.push(e);var t=e({addFilter:Ye,utils:{Type:qe,forin:o,isString:$,isFile:Jt,toNaturalFileSize:Tr,replaceInString:Ei,getExtensionFromFilename:gt,getFilenameWithoutExtension:Zt,guesstimateMimeType:ro,getFileFromBlob:It,getFilenameFromURL:yt,createRoute:F,createWorker:bi,createView:k,createItemAPI:je,loadImage:_i,copyFile:Ti,renameFile:Ii,createBlob:wt,applyFilterChain:We,text:yr,getNumericAspectRatioFromString:Je},views:{fileActionButton:Ir}});Xe(t.options)}},Ai=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},Si=function(){return"Promise"in window},Ri=function(){return"slice"in Blob.prototype},Pi=function(){return"URL"in window&&"createObjectURL"in window.URL},xi=function(){return"visibilityState"in document},Di=function(){return"performance"in window},Li=function(){return"supports"in(window.CSS||{})},Mi=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},Ci=(kr=m()&&!Ai()&&xi()&&Si()&&Ri()&&Pi()&&Di()&&(Li()||Mi()),function(){return kr}),Ni={apps:[]},ji="filepond",ki=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=ki,e.destroy=ki,e.parse=ki,e.find=ki,e.registerPlugin=ki,e.getOptions=ki,e.setOptions=ki,Ci()){G((function(){Ni.apps.forEach((function(e){return e._read()}))}),(function(e){Ni.apps.forEach((function(t){return t._write(e)}))}));var Gi=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:Ci,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 Gi()}),0):document.addEventListener("DOMContentLoaded",Gi);var Fi=function(){return o($e(),(function(t,r){e.OptionTypes[t]=r[1]}))};e.Status=Object.assign({},tt),e.FileOrigin=Object.assign({},Fe),e.FileStatus=Object.assign({},Ge),e.OptionTypes={},Fi(),e.create=function(){var t=vi.apply(void 0,arguments);return t.on("destroy",e.destroy),Ni.apps.push(t),gi(t)},e.destroy=function(e){var t=Ni.apps.findIndex((function(t){return t.isAttachedTo(e)}));return t>=0&&(Ni.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll("."+ji)).filter((function(e){return!Ni.apps.find((function(t){return t.isAttachedTo(e)}))})).map((function(t){return e.create(t)}))},e.find=function(e){var t=Ni.apps.find((function(t){return t.isAttachedTo(e)}));return t?gi(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),r=0;r{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),o=r(401),i=r(7667),a=r(1327),s=r(1866);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7040),o=r(4125),i=r(2117),a=r(7518),s=r(4705);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),s=r(5265);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},6384:(e,t,r)=>{var n=r(8407),o=r(7465),i=r(3779),a=r(7599),s=r(4758),l=r(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},7412:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{var n=r(2545),o=r(5694),i=r(1469),a=r(4144),s=r(5776),l=r(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),p=!r&&!c&&!f&&l(e),d=r||c||f||p,h=d?n(e.length,String):[],m=h.length;for(var v in e)!t&&!u.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4037:(e,t,r)=>{var n=r(8363),o=r(3674);e.exports=function(e,t){return e&&n(t,o(t),e)}},3886:(e,t,r)=>{var n=r(8363),o=r(1704);e.exports=function(e,t){return e&&n(t,o(t),e)}},9465:(e,t,r)=>{var n=r(8777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},5990:(e,t,r)=>{var n=r(6384),o=r(7412),i=r(4865),a=r(4037),s=r(3886),l=r(4626),u=r(278),c=r(8805),f=r(1911),p=r(8234),d=r(6904),h=r(4160),m=r(3824),v=r(9148),y=r(8517),g=r(1469),E=r(4144),b=r(6688),_=r(3218),I=r(2928),T=r(3674),w=r(1704),O="[object Arguments]",A="[object Function]",S="[object Object]",R={};R[O]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[S]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[A]=R["[object WeakMap]"]=!1,e.exports=function e(t,r,P,x,D,L){var M,C=1&r,N=2&r,j=4&r;if(P&&(M=D?P(t,x,D,L):P(t)),void 0!==M)return M;if(!_(t))return t;var k=g(t);if(k){if(M=m(t),!C)return u(t,M)}else{var G=h(t),F=G==A||"[object GeneratorFunction]"==G;if(E(t))return l(t,C);if(G==S||G==O||F&&!D){if(M=N||F?{}:y(t),!C)return N?f(t,s(M,t)):c(t,a(M,t))}else{if(!R[G])return D?t:{};M=v(t,G,C)}}L||(L=new n);var U=L.get(t);if(U)return U;L.set(t,M),I(t)?t.forEach((function(n){M.add(e(n,r,P,n,t,L))})):b(t)&&t.forEach((function(n,o){M.set(o,e(n,r,P,o,t,L))}));var B=k?void 0:(j?N?d:p:N?w:T)(t);return o(B||t,(function(n,o){B&&(n=t[o=n]),i(M,o,e(n,r,P,o,t,L))})),M}},3118:(e,t,r)=>{var n=r(3218),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},8866:(e,t,r)=>{var n=r(2488),o=r(1469);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),i=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9454:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},5588:(e,t,r)=>{var n=r(4160),o=r(7005);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},9221:(e,t,r)=>{var n=r(4160),o=r(7005);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},8749:(e,t,r)=>{var n=r(4239),o=r(1780),i=r(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},280:(e,t,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},313:(e,t,r)=>{var n=r(3218),o=r(5726),i=r(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{e.exports=function(e){return function(t){return e(t)}}},4318:(e,t,r)=>{var n=r(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},4626:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},7157:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},419:(e,t,r)=>{var n=r(2705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},7133:(e,t,r)=>{var n=r(4318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{var n=r(4865),o=r(9465);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,l=t.length;++s{var n=r(8363),o=r(9551);e.exports=function(e,t){return n(e,o(e),t)}},1911:(e,t,r)=>{var n=r(8363),o=r(1442);e.exports=function(e,t){return n(e,o(e),t)}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},8777:(e,t,r)=>{var n=r(852),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},1957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),o=r(9551),i=r(3674);e.exports=function(e){return n(e,i,o)}},6904:(e,t,r)=>{var n=r(8866),o=r(1442),i=r(1704);e.exports=function(e){return n(e,i,o)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},5924:(e,t,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9551:(e,t,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},1442:(e,t,r)=>{var n=r(2488),o=r(5924),i=r(9551),a=r(479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},4160:(e,t,r)=>{var n=r(8552),o=r(7071),i=r(3818),a=r(8525),s=r(577),l=r(4239),u=r(346),c="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",m=u(n),v=u(o),y=u(i),g=u(a),E=u(s),b=l;(n&&b(new n(new ArrayBuffer(1)))!=h||o&&b(new o)!=c||i&&b(i.resolve())!=f||a&&b(new a)!=p||s&&b(new s)!=d)&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return h;case v:return c;case y:return f;case g:return p;case E:return d}return t}),e.exports=b},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},9148:(e,t,r)=>{var n=r(4318),o=r(7157),i=r(3147),a=r(419),s=r(7133);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},8517:(e,t,r)=>{var n=r(3118),o=r(5924),i=r(5726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),i=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),o=r(7071),i=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},361:(e,t,r)=>{var n=r(5990);e.exports=function(e){return n(e,5)}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,r)=>{var n=r(3560),o=r(1780);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),o=r(5062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,t,r)=>{var n=r(5588),o=r(1717),i=r(1167),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2928:(e,t,r)=>{var n=r(9221),o=r(1717),i=r(1167),a=i&&i.isSet,s=a?o(a):n;e.exports=s},6719:(e,t,r)=>{var n=r(8749),o=r(1717),i=r(1167),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},3674:(e,t,r)=>{var n=r(4636),o=r(280),i=r(8612);e.exports=function(e){return i(e)?n(e):o(e)}},1704:(e,t,r)=>{var n=r(4636),o=r(313),i=r(8612);e.exports=function(e){return i(e)?n(e,!0):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},3379:(e,t,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function s(e){for(var t=-1,r=0;r=0&&p.splice(e,1),this._pond=null}}}};e.default=m},void 0===(i="function"==typeof n?n.apply(t,o):n)||(e.exports=i)},3744:(e,t)=>{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}},6649:(e,t,r)=>{function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(r(3950)),i=r(8009),a=n(r(6533));function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},r.handleBackForwardVisit=function(e){var t=this;window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then((function(){t.restoreScrollPositions(),E(e)}))},r.locationVisit=function(e,t){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:t})),window.location.href=e.href,v(window.location).href===v(e).href&&window.location.reload()}catch(e){return!1}},r.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(e){return!1}},r.handleLocationVisit=function(e){var t,r,n,o,i=this,a=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=null!=(t=null==(r=window.history.state)?void 0:r.rememberedState)?t:{},e.scrollRegions=null!=(n=null==(o=window.history.state)?void 0:o.scrollRegions)?n:[],this.setPage(e,{preserveScroll:a.preserveScroll,preserveState:!0}).then((function(){a.preserveScroll&&i.restoreScrollPositions(),E(e)}))},r.isLocationVisitResponse=function(e){return e&&409===e.status&&e.headers["x-inertia-location"]},r.isInertiaResponse=function(e){return null==e?void 0:e.headers["x-inertia"]},r.createVisitId=function(){return this.visitId={},this.visitId},r.cancelVisit=function(e,t){var r=t.cancelled,n=void 0!==r&&r,o=t.interrupted,i=void 0!==o&&o;!e||e.completed||e.cancelled||e.interrupted||(e.cancelToken.cancel(),e.onCancel(),e.completed=!1,e.cancelled=n,e.interrupted=i,g(e),e.onFinish(e))},r.finishVisit=function(e){e.cancelled||e.interrupted||(e.completed=!0,e.cancelled=!1,e.interrupted=!1,g(e),e.onFinish(e))},r.resolvePreserveOption=function(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e},r.visit=function(e,r){var n=this,i=void 0===r?{}:r,a=i.method,l=void 0===a?t.n$.GET:a,c=i.data,p=void 0===c?{}:c,d=i.replace,g=void 0!==d&&d,E=i.preserveScroll,b=void 0!==E&&E,_=i.preserveState,I=void 0!==_&&_,T=i.only,w=void 0===T?[]:T,O=i.headers,A=void 0===O?{}:O,S=i.errorBag,R=void 0===S?"":S,P=i.forceFormData,x=void 0!==P&&P,D=i.onCancelToken,L=void 0===D?function(){}:D,M=i.onBefore,C=void 0===M?function(){}:M,N=i.onStart,j=void 0===N?function(){}:N,k=i.onProgress,G=void 0===k?function(){}:k,F=i.onFinish,U=void 0===F?function(){}:F,B=i.onCancel,V=void 0===B?function(){}:B,q=i.onSuccess,z=void 0===q?function(){}:q,W=i.onError,H=void 0===W?function(){}:W,Y=i.queryStringArrayFormat,X=void 0===Y?"brackets":Y,$="string"==typeof e?h(e):e;if(!function e(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some((function(t){return e(t)}))||"object"==typeof t&&null!==t&&Object.values(t).some((function(t){return e(t)}))}(p)&&!x||p instanceof FormData||(p=f(p)),!(p instanceof FormData)){var Q=m(l,$,p,X),Z=Q[1];$=h(Q[0]),p=Z}var K={url:$,method:l,data:p,replace:g,preserveScroll:b,preserveState:I,only:w,headers:A,errorBag:R,forceFormData:x,queryStringArrayFormat:X,cancelled:!1,completed:!1,interrupted:!1};if(!1!==C(K)&&function(e){return y("before",{cancelable:!0,detail:{visit:e}})}(K)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var J=this.createVisitId();this.activeVisit=s({},K,{onCancelToken:L,onBefore:C,onStart:j,onProgress:G,onFinish:U,onCancel:V,onSuccess:z,onError:H,queryStringArrayFormat:X,cancelToken:o.CancelToken.source()}),L({cancel:function(){n.activeVisit&&n.cancelVisit(n.activeVisit,{cancelled:!0})}}),function(e){y("start",{detail:{visit:e}})}(K),j(K),o({method:l,url:v($).href,data:l===t.n$.GET?{}:p,params:l===t.n$.GET?p:{},cancelToken:this.activeVisit.cancelToken.token,headers:s({},A,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},w.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":w.join(",")}:{},R&&R.length?{"X-Inertia-Error-Bag":R}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(e){p instanceof FormData&&(e.percentage=Math.round(e.loaded/e.total*100),function(e){y("progress",{detail:{progress:e}})}(e),G(e))}}).then((function(e){var t;if(!n.isInertiaResponse(e))return Promise.reject({response:e});var r=e.data;w.length&&r.component===n.page.component&&(r.props=s({},n.page.props,r.props)),b=n.resolvePreserveOption(b,r),(I=n.resolvePreserveOption(I,r))&&null!=(t=window.history.state)&&t.rememberedState&&r.component===n.page.component&&(r.rememberedState=window.history.state.rememberedState);var o=$,i=h(r.url);return o.hash&&!i.hash&&v(o).href===i.href&&(i.hash=o.hash,r.url=i.href),n.setPage(r,{visitId:J,replace:g,preserveScroll:b,preserveState:I})})).then((function(){var e=n.page.props.errors||{};if(Object.keys(e).length>0){var t=R?e[R]?e[R]:{}:e;return function(e){y("error",{detail:{errors:e}})}(t),H(t)}return y("success",{detail:{page:n.page}}),z(n.page)})).catch((function(e){if(n.isInertiaResponse(e.response))return n.setPage(e.response.data,{visitId:J});if(n.isLocationVisitResponse(e.response)){var t=h(e.response.headers["x-inertia-location"]),r=$;r.hash&&!t.hash&&v(r).href===t.href&&(t.hash=r.hash),n.locationVisit(t,!0===b)}else{if(!e.response)return Promise.reject(e);y("invalid",{cancelable:!0,detail:{response:e.response}})&&u.show(e.response.data)}})).then((function(){n.activeVisit&&n.finishVisit(n.activeVisit)})).catch((function(e){if(!o.isCancel(e)){var t=y("exception",{cancelable:!0,detail:{exception:e}});if(n.activeVisit&&n.finishVisit(n.activeVisit),t)return Promise.reject(e)}}))}},r.setPage=function(e,t){var r=this,n=void 0===t?{}:t,o=n.visitId,i=void 0===o?this.createVisitId():o,a=n.replace,s=void 0!==a&&a,l=n.preserveScroll,u=void 0!==l&&l,c=n.preserveState,f=void 0!==c&&c;return Promise.resolve(this.resolveComponent(e.component)).then((function(t){i===r.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},(s=s||h(e.url).href===window.location.href)?r.replaceState(e):r.pushState(e),r.swapComponent({component:t,page:e,preserveState:f}).then((function(){u||r.resetScrollPositions(),s||E(e)})))}))},r.pushState=function(e){this.page=e,window.history.pushState(e,"",e.url)},r.replaceState=function(e){this.page=e,window.history.replaceState(e,"",e.url)},r.handlePopstateEvent=function(e){var t=this;if(null!==e.state){var r=e.state,n=this.createVisitId();Promise.resolve(this.resolveComponent(r.component)).then((function(e){n===t.visitId&&(t.page=r,t.swapComponent({component:e,page:r,preserveState:!1}).then((function(){t.restoreScrollPositions(),E(r)})))}))}else{var o=h(this.page.url);o.hash=window.location.hash,this.replaceState(s({},this.page,{url:o.href})),this.resetScrollPositions()}},r.get=function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(e,s({},n,{method:t.n$.GET,data:r}))},r.reload=function(e){return void 0===e&&(e={}),this.visit(window.location.href,s({},e,{preserveScroll:!0,preserveState:!0}))},r.replace=function(e,t){var r;return void 0===t&&(t={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(r=t.method)?r:"get")+"() instead."),this.visit(e,s({preserveState:!0},t,{replace:!0}))},r.post=function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(e,s({preserveState:!0},n,{method:t.n$.POST,data:r}))},r.put=function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(e,s({preserveState:!0},n,{method:t.n$.PUT,data:r}))},r.patch=function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(e,s({preserveState:!0},n,{method:t.n$.PATCH,data:r}))},r.delete=function(e,r){return void 0===r&&(r={}),this.visit(e,s({preserveState:!0},r,{method:t.n$.DELETE}))},r.remember=function(e,t){var r,n;void 0===t&&(t="default"),b||this.replaceState(s({},this.page,{rememberedState:s({},null==(r=this.page)?void 0:r.rememberedState,(n={},n[t]=e,n))}))},r.restore=function(e){var t,r;if(void 0===e&&(e="default"),!b)return null==(t=window.history.state)||null==(r=t.rememberedState)?void 0:r[e]},r.on=function(e,t){var r=function(e){var r=t(e);e.cancelable&&!e.defaultPrevented&&!1===r&&e.preventDefault()};return document.addEventListener("inertia:"+e,r),function(){return document.removeEventListener("inertia:"+e,r)}},e}(),I={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var r=t.content.firstChild;if(!e.startsWith("