(function(){var __webpack_modules__={77162:function(t,e,n){t.exports=n(25047)},89644:function(t,e,n){t.exports=n(25644)},70353:function(t,e,n){"use strict";var o=n(93044),r=n(86955),i=n(92233),a=n(68030),c=n(97948),p=n(51875),s=n(60842),b=n(88618),u=n(98560),l=n(26714);t.exports=function(t){return new Promise((function(e,n){var M,d=t.data,z=t.headers,f=t.responseType;function O(){t.cancelToken&&t.cancelToken.unsubscribe(M),t.signal&&t.signal.removeEventListener("abort",M)}o.isFormData(d)&&delete z["Content-Type"];var A=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";z.Authorization="Basic "+btoa(m+":"+h)}var q=c(t.baseURL,t.url);function v(){if(A){var o="getAllResponseHeaders"in A?p(A.getAllResponseHeaders()):null,i={data:f&&"text"!==f&&"json"!==f?A.response:A.responseText,status:A.status,statusText:A.statusText,headers:o,config:t,request:A};r((function(t){e(t),O()}),(function(t){n(t),O()}),i),A=null}}if(A.open(t.method.toUpperCase(),a(q,t.params,t.paramsSerializer),!0),A.timeout=t.timeout,"onloadend"in A?A.onloadend=v:A.onreadystatechange=function(){A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===A.responseURL.indexOf("file:"))&&setTimeout(v)},A.onabort=function(){A&&(n(b("Request aborted",t,"ECONNABORTED",A)),A=null)},A.onerror=function(){n(b("Network Error",t,null,A)),A=null},A.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",o=t.transitional||u;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(b(e,t,o.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",A)),A=null},o.isStandardBrowserEnv()){var _=(t.withCredentials||s(q))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;_&&(z[t.xsrfHeaderName]=_)}"setRequestHeader"in A&&o.forEach(z,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete z[e]:A.setRequestHeader(e,t)})),o.isUndefined(t.withCredentials)||(A.withCredentials=!!t.withCredentials),f&&"json"!==f&&(A.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&A.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&A.upload&&A.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(M=function(t){A&&(n(!t||t&&t.type?new l("canceled"):t),A.abort(),A=null)},t.cancelToken&&t.cancelToken.subscribe(M),t.signal&&(t.signal.aborted?M():t.signal.addEventListener("abort",M))),d||(d=null),A.send(d)}))}},25644:function(t,e,n){"use strict";var o=n(93044),r=n(73644),i=n(62215),a=n(92937);var c=function t(e){var n=new i(e),c=r(i.prototype.request,n);return o.extend(c,i.prototype,n),o.extend(c,n),c.create=function(n){return t(a(e,n))},c}(n(10663));c.Axios=i,c.Cancel=n(26714),c.CancelToken=n(34089),c.isCancel=n(98041),c.VERSION=n(29241).version,c.all=function(t){return Promise.all(t)},c.spread=n(70783),c.isAxiosError=n(65587),t.exports=c,t.exports.default=c},26714:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},34089:function(t,e,n){"use strict";var o=n(26714);function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,o=n._listeners.length;for(e=0;e=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(p)})),t.exports=u},98560:function(t){"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(t){t.exports={version:"0.26.1"}},73644:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),o=0;o=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},70783:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},17525:function(t,e,n){"use strict";var o=n(29241).version,r={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){r[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};r.transitional=function(t,e,n){function r(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,o,a){if(!1===t)throw new Error(r(o," has been removed"+(e?" in "+e:"")));return e&&!i[o]&&(i[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var o=Object.keys(t),r=o.length;r-- >0;){var i=o[r],a=e[i];if(a){var c=t[i],p=void 0===c||a(c,i,t);if(!0!==p)throw new TypeError("option "+i+" must be "+p)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:r}},93044:function(t,e,n){"use strict";var o=n(73644),r=Object.prototype.toString;function i(t){return Array.isArray(t)}function a(t){return void 0===t}function c(t){return"[object ArrayBuffer]"===r.call(t)}function p(t){return null!==t&&"object"==typeof t}function s(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function b(t){return"[object Function]"===r.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,o=t.length;n1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=u(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=u(t.value,e):(n=p()(t),s("copy")),n};function M(t){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M(t)}var d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,r=t.target,i=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==M(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?l(i,{container:o}):r?"cut"===n?b(r):l(r,{container:o}):void 0};function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function f(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===z(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",o=d({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(o?"success":"error",{action:n,text:o,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return q("action",t)}},{key:"defaultTarget",value:function(t){var e=q("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return q("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return l(t,e)}},{key:"cut",value:function(t){return b(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&f(e.prototype,n),o&&f(e,o),i}(r()),_=v},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var o=n(828);function r(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,r){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&r.call(t,n)}}t.exports=function(t,e,n,o,i){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,o,i)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var o=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!o.string(e))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(o.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(o.string(t))return function(t,e,n){return r(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o.splide__list{display:block}.splide__track--fade>.splide__list>.splide__slide{left:0;opacity:0;position:absolute;top:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;position:relative;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:flex;height:2em;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:transparent}.splide__slide:focus{outline:0}@supports(outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #0bf}}@supports(outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:flex;flex-direction:column;left:auto;padding:1em 0;right:.5em;top:0}",""]),e.Z=r},61262:function(t,e,n){"use strict";var o=n(82609),r=n.n(o)()((function(t){return t[1]}));r.push([t.id,'@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.redactor-animate-hide{display:none!important}.redactor-fadeIn{-webkit-animation:fadeIn .5s ease-in-out;animation:fadeIn .5s ease-in-out;opacity:0}.redactor-fadeOut{-webkit-animation:fadeOut .5s ease-in-out;animation:fadeOut .5s ease-in-out;opacity:1}@font-face{font-family:Redactor;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBkcAAAC8AAAAYGNtYXAXVtKwAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5Zuxdz/8AAAF4AAAkQGhlYWQPMte3AAAluAAAADZoaGVhB7gD6wAAJfAAAAAkaG10eK4BD60AACYUAAAAuGxvY2GyjqiGAAAmzAAAAF5tYXhwADkBcwAAJywAAAAgbmFtZVDOJQoAACdMAAABknBvc3QAAwAAAAAo4AAAACAAAwP0AZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpKQPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Sn//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAADAAAAgAQAAwAAEgAoADwAABMhMhYVMRUUBiMhIiY1MTU0NjMDITIWFTEVFAYjITgBMSImPQE0NjMxEyEyFhUxFRQGIzEhIiY1MTU0NjO7AooZIiIZ/XYZIiIZgAOKGSIiGfx2GCMiGYACihkiIhn9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GEAYwB0AG8AclZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMFJlZGFjdG9yAFIAZQBkAGEAYwB0AG8AclJlZGFjdG9yAFIAZQBkAGEAYwB0AG8AclJlZ3VsYXIAUgBlAGcAdQBsAGEAclJlZGFjdG9yAFIAZQBkAGEAYwB0AG8AckZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}[class*=" re-icon-"],[class^=re-icon-]{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Redactor!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.re-icon-aligncenter:before{content:"\\e900"}.re-icon-alignleft:before,.re-icon-alignment:before{content:"\\e901"}.re-icon-alignright:before{content:"\\e902"}.re-icon-bold:before{content:"\\e903"}.re-icon-bookmark:before{content:"\\e904"}.re-icon-clips:before{content:"\\e905"}.re-icon-codesnippets:before{content:"\\e906"}.re-icon-deleted:before{content:"\\e907"}.re-icon-expand:before{content:"\\e908"}.re-icon-file:before{content:"\\e909"}.re-icon-fontcolor:before{content:"\\e90a"}.re-icon-fontfamily:before{content:"\\e90b"}.re-icon-fontsize:before{content:"\\e90c"}.re-icon-format:before{content:"\\e90d"}.re-icon-html:before{content:"\\e90e"}.re-icon-imagecenter:before{content:"\\e90f"}.re-icon-imageleft:before{content:"\\e910"}.re-icon-imageright:before{content:"\\e911"}.re-icon-image:before{content:"\\e912"}.re-icon-indent:before{content:"\\e913"}.re-icon-inline:before{content:"\\e914"}.re-icon-italic:before{content:"\\e915"}.re-icon-horizontalrule:before,.re-icon-line:before{content:"\\e916"}.re-icon-link:before{content:"\\e917"}.re-icon-ol:before,.re-icon-ordered:before{content:"\\e918"}.re-icon-outdent:before{content:"\\e919"}.re-icon-properties:before{content:"\\e91a"}.re-icon-readmore:before{content:"\\e91b"}.re-icon-redo:before{content:"\\e91c"}.re-icon-retract:before{content:"\\e91d"}.re-icon-specialcharacters:before{content:"\\e91e"}.re-icon-sub:before{content:"\\e91f"}.re-icon-sup:before{content:"\\e920"}.re-icon-table:before{content:"\\e921"}.re-icon-textdirection:before{content:"\\e922"}.re-icon-toggle:before{content:"\\e923"}.re-icon-underline:before{content:"\\e924"}.re-icon-undo:before{content:"\\e925"}.re-icon-lists:before,.re-icon-ul:before,.re-icon-unordered:before{content:"\\e926"}.re-icon-variable:before{content:"\\e927"}.re-icon-video:before{content:"\\e928"}.re-icon-widget:before{content:"\\e929"}.redactor-box,.redactor-box textarea{z-index:auto}.redactor-box{box-sizing:border-box;position:relative}.redactor-box.redactor-styles-on{background:#fff;border:1px solid rgba(0,0,0,.075);border-radius:3px;box-shadow:none;margin:0;padding:0}.redactor-box.redactor-inline{position:static}.redactor-focus.redactor-styles-on,.redactor-focus:focus.redactor-styles-on{border-color:#82b7ec!important}.redactor-over:hover.redactor-styles-on{border-color:#ee698a!important}.redactor-source-view,.redactor-source-view.redactor-styles-on{border-color:#000!important}.redactor-in{box-sizing:border-box;overflow:auto;position:relative;white-space:normal}.redactor-in:focus{outline:0}.redactor-inline .redactor-in{overflow:hidden}.redactor-in *,.redactor-read-only *{outline:0!important}.redactor-in blockquote:empty,.redactor-in h1:empty,.redactor-in h2:empty,.redactor-in h3:empty,.redactor-in h4:empty,.redactor-in h5:empty,.redactor-in h6:empty,.redactor-in p:empty{min-height:1.5em}.redactor-in b:empty,.redactor-in em:empty,.redactor-in i:empty,.redactor-in ins:empty,.redactor-in span:empty,.redactor-in strong:empty,.redactor-in sub:empty,.redactor-in sup:empty,.redactor-in u:empty{display:inline-block;min-height:1rem;min-width:1px}.redactor-in table{empty-cells:show}.redactor-in li figure{display:inline-block;margin:0;vertical-align:top;width:auto}.redactor-in figcaption:focus,.redactor-in figure code:focus,.redactor-in figure pre:focus,.redactor-in table td:focus,.redactor-in table th:focus{outline:0}.redactor-in figure[data-redactor-type=line]{margin-top:1em;padding:6px 0;vertical-align:baseline}.redactor-in figure[data-redactor-type=line] hr{background:rgba(0,0,0,.1);border:none;height:3px;margin:0}.redactor-component{position:relative}.redactor-component[data-redactor-type=video]:before,.redactor-component[data-redactor-type=widget]:before{content:"";display:block;height:100%;position:absolute;width:100%;z-index:1}.redactor-component[data-redactor-type=image],.redactor-component[data-redactor-type=widget]{clear:both}.redactor-component[data-redactor-type=variable]{background:rgba(0,125,255,.75);border-radius:4px;color:#fff;cursor:pointer;display:inline-block;line-height:1;padding:3px 6px;white-space:nowrap}.redactor-component-active{outline:5px solid rgba(0,125,255,.5)!important}.redactor-component-active[data-redactor-type=image]{outline:0!important}.redactor-component-active[data-redactor-type=image] img{outline:5px solid rgba(0,125,255,.5)!important}.redactor-component-active[data-redactor-type=variable]{background:#ee698a;outline:0!important}.redactor-component-active[data-redactor-type=video]{outline:0!important}.redactor-component-active[data-redactor-type=video] iframe{outline:5px solid rgba(0,125,255,.5)!important}.redactor-blur.redactor-styles-on .redactor-component-active{outline:5px solid #ddd!important}.redactor-blur.redactor-styles-on .redactor-component-active[data-redactor-type=image]{outline:0!important}.redactor-blur.redactor-styles-on .redactor-component-active[data-redactor-type=image] img{outline:5px solid #ddd!important}.redactor-blur.redactor-styles-on .redactor-component-active[data-redactor-type=video]{outline:0!important}.redactor-blur.redactor-styles-on .redactor-component-active[data-redactor-type=video] iframe{outline:5px solid #ddd!important}.redactor-blur.redactor-styles-on .redactor-component-active[data-redactor-type=variable]{background:#ddd;outline:0!important}.redactor-component-caret{left:-9999px;position:absolute}.redactor-textnodes-wrapper{display:inline-block}#redactor-image-resizer{background-color:rgba(0,125,255,.9);border:1px solid #fff;cursor:move;cursor:nwse-resize;height:13px;position:absolute;width:13px}.redactor-file-item{border:1px solid rgba(0,0,0,.2);border-radius:16px;display:inline-block;line-height:1;padding:4px 12px}.redactor-file-remover{cursor:pointer;display:inline-block;margin-left:2px;opacity:.5;padding:0 3px;position:relative;right:-3px}.redactor-file-remover:hover{opacity:1}#redactor-overlay{background-color:rgba(16,16,18,.18);bottom:0;left:0;position:fixed;right:0;top:0;z-index:1051}#redactor-overlay>.redactor-close{position:fixed;right:1rem;top:1rem}.redactor-source,.redactor-source:focus,.redactor-source:hover{background:#252525;border:none;border-radius:0;box-shadow:none;box-sizing:border-box;color:#ccc;display:block;font-family:Consolas,Menlo,Monaco,Courier New,monospace;font-size:15px;line-height:1.5;margin:0;outline:0;padding:10px 18px 20px;resize:vertical;text-align:left;width:100%}.redactor-box[dir=rtl] .redactor-source{direction:ltr}.redactor-placeholder:before{position:absolute}.redactor-in figcaption[placeholder]:empty:before,.redactor-placeholder:before{color:rgba(0,0,0,.4);content:attr(placeholder);font-weight:400}.redactor-in figcaption[placeholder]:empty:focus:before{content:""}.redactor-statusbar{background:#f8f8f8;border:none;box-sizing:border-box;font-family:Consolas,Menlo,Monaco,Courier New,monospace;list-style:none;margin:0;overflow:hidden;padding:8px 10px;position:relative}.redactor-statusbar li{border-right:1px solid rgba(0,0,0,.1);color:rgba(0,0,0,.5);float:left;font-size:12px;line-height:16px;padding:0 10px}.redactor-statusbar li:last-child{border-right-color:transparent}.redactor-statusbar a{color:rgba(0,0,0,.5);text-decoration:underline}.redactor-statusbar a:hover{color:#f03c69;text-decoration:underline}.redactor-statusbar:empty{display:none}.redactor-toolbar-wrapper{position:relative}.redactor-air,.redactor-toolbar{background:0 0;border:none;box-sizing:border-box;font-family:Trebuchet MS,Helvetica Neue,Helvetica,Tahoma,sans-serif;line-height:1!important;list-style:none!important;margin:0!important;padding:0;position:relative;z-index:100}.redactor-box.redactor-styles-on .redactor-toolbar{padding:18px 16px 0}.redactor-air a,.redactor-toolbar a{zoom:1;background:hsla(0,0%,100%,.97);border:none;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,.22);box-sizing:border-box;color:rgba(0,0,0,.85);cursor:pointer;display:inline-block;font-size:14px;margin-bottom:4px;margin-right:5px;outline:0;padding:10px 15px 9px;position:relative;text-align:center;text-decoration:none;vertical-align:middle}.redactor-air a.re-button-icon,.redactor-toolbar a.re-button-icon{font-size:16px;padding:9px 15px 6px}.redactor-air a:hover,.redactor-toolbar a:hover{background:#449aef;color:#fff;outline:0}.redactor-toolbar a.redactor-button-active{background:hsla(0,0%,96%,.95);color:rgba(0,0,0,.4)}.redactor-air a.redactor-button-disabled,.redactor-toolbar a.redactor-button-disabled{opacity:.3}.redactor-air a.redactor-button-disabled:hover,.redactor-toolbar a.redactor-button-disabled:hover{background-color:transparent!important;color:#333;cursor:default;outline:0}.redactor-source-view .redactor-toolbar{background:#252525}.redactor-source-view .redactor-toolbar a{background:#000;color:#fff}.redactor-source-view .redactor-toolbar a:hover{background:#449aef}.redactor-source-view .redactor-toolbar a.redactor-button-disabled:hover{background-color:#000!important;color:#fff!important}.re-button-tooltip{background:rgba(0,0,0,.9);border-radius:3px;color:hsla(0,0%,100%,.8);display:none;font-family:Consolas,Menlo,Monaco,Courier New,monospace;font-size:12px;line-height:1;padding:5px 9px;position:absolute;top:0;white-space:nowrap;z-index:1052}.re-button-tooltip:after{border:4px;border-bottom:4px solid rgba(0,0,0,.9);bottom:100%;content:" ";height:0;left:50%;margin-left:-4px;pointer-events:none;position:absolute;width:0}.redactor-toolbar-wrapper-air{position:absolute;z-index:100}.redactor-air{background:rgba(0,0,0,.97);border-radius:4px;max-width:576px;min-width:200px;padding:6px 3px 2px 8px}.redactor-air a{background:rgba(37,37,37,.95);box-shadow:none;color:hsla(0,0%,100%,.9)}.redactor-air a:hover{background:#3d79f2}.redactor-air a.redactor-button-active{background-color:hsla(0,0%,100%,.15);color:#fff}.redactor-air a.redactor-button-disabled:hover{color:#fff}.redactor-air-helper{background:hsla(0,0%,100%,.85);border-bottom-left-radius:4px;color:#000;cursor:pointer;font-size:15px;line-height:1;padding:7px 10px 6px;position:absolute;right:0;top:0}.redactor-air-helper:hover{background:#fff}.redactor-voice-label{display:none}.redactor-context-toolbar{background-color:rgba(0,0,0,.95);border-radius:4px;color:#555;font-family:Consolas,Menlo,Monaco,Courier New,monospace;left:0;line-height:1.5;padding:6px 18px 7px;position:absolute;top:0;z-index:1051}.redactor-context-toolbar a{color:#ccc;display:inline-block;font-size:12px;padding:2px 0 1px 12px;text-decoration:none}.redactor-context-toolbar a:first-child{padding-left:0}.redactor-context-toolbar a i{font-size:16px;position:relative;top:3px}.redactor-context-toolbar a:before{border-left:1px solid hsla(0,0%,100%,.3);content:"";padding-left:10px}.redactor-context-toolbar a:hover{color:#fff}.redactor-context-toolbar a:first-child:before{border-left:none;padding-left:0}.redactor-context-toolbar[dir=rtl] a{padding:2px 12px 1px 0}.redactor-context-toolbar[dir=rtl] a:first-child{padding-right:0}.redactor-context-toolbar[dir=rtl] a:before{border-left:none;border-right:1px solid hsla(0,0%,100%,.3);padding-left:0;padding-right:10px}.redactor-context-toolbar[dir=rtl] a:first-child:before{border-right:none;padding-right:0}.redactor-dropdown{background-color:#fff;border-radius:2px;box-shadow:0 4px 14px rgba(0,0,0,.2);display:none;font-family:Trebuchet MS,Helvetica Neue,Helvetica,Tahoma,sans-serif;font-size:15px;margin:-1px 0 0;max-height:250px;overflow:auto;padding:0;position:absolute;width:264px;z-index:1051}.redactor-dropdown a span{border-radius:3px;display:inline-block;line-height:1;padding:2px 4px}.redactor-dropdown a{border-bottom:1px solid rgba(0,0,0,.05);display:block;padding:10px 8px;text-decoration:none;white-space:nowrap}.redactor-dropdown a:last-child{border-bottom-color:transparent}.redactor-dropdown a{color:#000}.redactor-dropdown a:hover{background-color:#449aef!important;color:#fff!important}.redactor-dropdown a.redactor-dropdown-item-disabled{background:#fff;color:rgba(0,0,0,.4)}.redactor-dropdown-cells{margin:10px auto}.redactor-dropdown-cells a,.redactor-dropdown-cells span{box-sizing:border-box;cursor:pointer;float:left;font-size:14px;margin:0;padding:0;text-align:center}.redactor-dropdown-selector{display:flex;text-align:center}.redactor-dropdown-selector span{cursor:pointer;flex-grow:1;font-size:12px;padding:8px}.redactor-dropdown-selector span:hover{background:#eee}.redactor-dropdown-selector span.active{background:#eee;color:rgba(0,0,0,.3);cursor:text}.redactor-dropdown-format .redactor-dropdown-item-blockquote{color:rgba(0,0,0,.4);font-style:italic}.redactor-dropdown-format .redactor-dropdown-item-pre{font-family:monospace,sans-serif}.redactor-dropdown-format .redactor-dropdown-item-h1{font-size:40px;font-weight:700;line-height:32px}.redactor-dropdown-format .redactor-dropdown-item-h2{font-size:32px;font-weight:700;line-height:32px}.redactor-dropdown-format .redactor-dropdown-item-h3{font-size:24px;font-weight:700;line-height:24px}.redactor-dropdown-format .redactor-dropdown-item-h4{font-size:21px;font-weight:700;line-height:24px}.redactor-dropdown-format .redactor-dropdown-item-h5{font-size:18px;font-weight:700;line-height:24px}.redactor-dropdown-format .redactor-dropdown-item-h6{font-size:14px;font-weight:700;line-height:24px;text-transform:uppercase}#redactor-modal{bottom:0;font-family:Trebuchet MS,Helvetica Neue,Helvetica,Tahoma,sans-serif;left:0;line-height:24px;overflow-x:hidden;overflow-y:auto;position:fixed;right:0;top:0;z-index:1051}.redactor-modal{background:#fff;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.07),0 2px 15px rgba(80,80,80,.25);color:#000;margin:16px auto;padding:0;position:relative}.redactor-modal form{box-sizing:border-box;margin:0;padding:0}.redactor-modal input,.redactor-modal select,.redactor-modal textarea{background-color:#fff;border:1px solid #cacfd4;border-radius:.1875em;box-shadow:none;box-sizing:border-box;display:block;font-family:inherit;font-size:16px;height:40px;outline:0;padding:0 .5em;vertical-align:middle;width:100%}.redactor-modal textarea{height:auto;line-height:1.5;padding:.5em;vertical-align:top}.redactor-modal select{-webkit-appearance:none;background-image:url(\'data:image/svg+xml;utf8,\');background-position:right .65em center;background-repeat:no-repeat;padding-right:28px}.redactor-modal select[multiple]{background-image:none;height:auto;padding:.5em .75em}.redactor-modal input[type=file]{background:0 0;border:none;box-shadow:none;display:inline-block;height:auto;padding:0;width:auto}.redactor-modal input[type=checkbox],.redactor-modal input[type=radio]{bottom:.15rem;display:inline-block;font-size:115%;height:auto;margin-right:3px;padding:0;position:relative;vertical-align:middle;width:auto}.redactor-modal .form-item{margin-bottom:20px}.redactor-modal .form-item:last-child{margin-bottom:0}.redactor-modal fieldset{border:1px solid rgba(0,0,0,.1);border-radius:3px;margin-bottom:20px;padding:16px 16px 20px}.redactor-modal fieldset .form-item{margin-bottom:12px}.redactor-modal label{color:#555;display:block;font-size:14px;margin-bottom:.25em}.redactor-modal label .desc,.redactor-modal label .error,.redactor-modal label .success{font-weight:400;text-transform:none}.redactor-modal label.checkbox{color:inherit;cursor:pointer;font-size:16px;line-height:1.5}.redactor-modal .form-checkboxes label.checkbox{display:inline-block;margin-right:1em}.redactor-modal input:hover,.redactor-modal select:hover,.redactor-modal textarea:hover{background-color:#fff;border-color:#969fa9;box-shadow:none;outline:0}.redactor-modal input:focus,.redactor-modal select:focus,.redactor-modal textarea:focus{background-color:#fff;border-color:rgba(0,125,255,.5);box-shadow:0 0 3px rgba(0,125,255,.5);outline:0;transition:all .2s linear}.redactor-modal input.error,.redactor-modal select.error,.redactor-modal textarea.error{background-color:rgba(255,50,101,.1);border:1px solid #ff7f9e}.redactor-modal input.error:focus,.redactor-modal select.error:focus,.redactor-modal textarea.error:focus{border-color:#ff3265;box-shadow:0 0 1px #ff3265}.redactor-modal input.success,.redactor-modal select.success,.redactor-modal textarea.success{background-color:rgba(47,196,182,.1);border:1px solid #65dacf}.redactor-modal input.success:focus,.redactor-modal select.success:focus,.redactor-modal textarea.success:focus{border-color:#2fc4b6;box-shadow:0 0 1px #2fc4b6}.redactor-modal input.disabled,.redactor-modal input.disabled:hover,.redactor-modal input:disabled,.redactor-modal input:disabled:hover,.redactor-modal select.disabled,.redactor-modal select.disabled:hover,.redactor-modal select:disabled,.redactor-modal select:disabled:hover,.redactor-modal textarea.disabled,.redactor-modal textarea.disabled:hover,.redactor-modal textarea:disabled,.redactor-modal textarea:disabled:hover{background-color:#fff;border:1px solid #cacfd4;box-shadow:none;color:rgba(0,0,0,.5);cursor:default;font-style:italic;opacity:.6;resize:none}.redactor-modal .req{color:#ff3265;font-size:110%;font-weight:700;position:relative;top:1px}.redactor-modal .desc{color:rgba(51,51,51,.5);font-size:12px}.redactor-modal span.desc{margin-left:.25em}.redactor-modal div.desc{margin-top:.25em}.redactor-modal span.error,.redactor-modal span.success{font-size:12px;margin-left:.25em}.redactor-modal div.desc{margin-bottom:-.5em}.redactor-modal .redactor-close{color:#000;cursor:pointer;font-size:30px;line-height:30px;opacity:.3;padding:0 4px;position:absolute;right:12px;top:16px}.redactor-modal .redactor-close:hover{opacity:1}.redactor-modal .redactor-close:before{content:"\\00d7"}.redactor-modal button{align-items:center;-webkit-appearance:none;background-color:#fff;border:2px solid #007dff;border-radius:3px;color:#007dff;cursor:pointer;display:inline-flex;font-family:inherit;font-size:15px;font-weight:500;line-height:1.2;min-height:40px;outline:0;padding:.5em 1.25em;text-align:center;text-decoration:none;vertical-align:middle}.redactor-modal button:hover{background:0 0;border-color:rgba(0,125,255,.5);color:rgba(0,125,255,.6);outline:0;text-decoration:none}.redactor-modal button.redactor-button-secondary{border-color:#2a2e34;color:#2a2e34}.redactor-modal button.redactor-button-secondary:hover{border-color:rgba(42,46,52,.5);color:rgba(42,46,52,.6)}.redactor-modal button.redactor-button-danger,.redactor-modal button.redactor-button-unstyled{background:0 0;border-color:transparent;color:rgba(42,46,52,.6)}.redactor-modal button.redactor-button-danger:hover,.redactor-modal button.redactor-button-unstyled:hover{background:0 0;border-color:transparent;color:#ff3265;text-decoration:underline}.redactor-modal .redactor-modal-group:after{clear:both;content:"";display:table}.redactor-modal .redactor-modal-side{float:left;margin-right:4%;width:30%}.redactor-modal .redactor-modal-side img{display:block;height:auto;max-width:100%}.redactor-modal .redactor-modal-area{float:left;width:66%}.redactor-modal[dir=rtl] .redactor-close{left:12px;right:auto}.redactor-modal[dir=rtl] textarea{direction:ltr;text-align:left}.redactor-modal[dir=rtl] .redactor-modal-footer button.redactor-button-unstyled{float:left;margin-left:0}.redactor-modal-header{border-bottom:1px solid rgba(0,0,0,.05);color:#000;font-size:18px;font-weight:700;line-height:24px;padding:20px}.redactor-modal-header:empty{display:none}.redactor-modal-body{padding:32px 48px 40px}.redactor-modal-footer{border-top:1px solid rgba(0,0,0,.05);overflow:hidden;padding:24px}.redactor-modal-footer button{margin-right:4px}.redactor-modal-footer button.redactor-button-unstyled{float:right;margin-right:0}.redactor-modal-footer:empty{display:none}.redactor-modal-tabs{border-bottom:2px solid rgba(0,0,0,.05);display:flex;margin-bottom:1em}.redactor-modal-tabs a{border-bottom:2px solid transparent;color:rgba(0,0,0,.5);font-size:15px;margin-bottom:-2px;margin-right:14px;padding:2px 0;text-decoration:none}.redactor-modal-tabs a:hover{transition:all .2s linear}.redactor-modal-tabs a.active,.redactor-modal-tabs a:hover{border-bottom-color:#007dff;color:#007dff;font-weight:500}.redactor-styles{box-sizing:border-box;color:#333;font-family:Trebuchet MS,Helvetica Neue,Helvetica,Tahoma,sans-serif;font-size:1em;line-height:1.5;margin:0;padding:16px 18px}.redactor-styles *,.redactor-styles :after,.redactor-styles :before{box-sizing:inherit}.redactor-styles[dir=rtl]{direction:rtl;unicode-bidi:embed}.redactor-styles[dir=rtl] ol li,.redactor-styles[dir=rtl] ul li{text-align:right}.redactor-styles[dir=rtl] ol,.redactor-styles[dir=rtl] ol ol,.redactor-styles[dir=rtl] ol ul,.redactor-styles[dir=rtl] ul,.redactor-styles[dir=rtl] ul ol,.redactor-styles[dir=rtl] ul ul{margin:0 1.5em 0 0}.redactor-styles[dir=rtl] figcaption{text-align:right}.redactor-styles a,.redactor-styles a:hover{color:#3397ff}.redactor-styles address,.redactor-styles blockquote,.redactor-styles dl,.redactor-styles figure,.redactor-styles hr,.redactor-styles p,.redactor-styles pre,.redactor-styles table{margin:0 0 1em;padding:0}.redactor-styles ol,.redactor-styles ul{padding:0}.redactor-styles ol,.redactor-styles ol ol,.redactor-styles ol ul,.redactor-styles ul,.redactor-styles ul ol,.redactor-styles ul ul{margin:0 0 0 1.5em}.redactor-styles ol li,.redactor-styles ul li{text-align:left}.redactor-styles ol ol li{list-style-type:lower-alpha}.redactor-styles ol ol ol li{list-style-type:lower-roman}.redactor-styles ol,.redactor-styles ul{margin-bottom:1em}.redactor-styles h1,.redactor-styles h2,.redactor-styles h3,.redactor-styles h4,.redactor-styles h5,.redactor-styles h6{text-rendering:optimizeLegibility;color:#111;font-weight:700;line-height:1.2;margin:0 0 .5em;padding:0}.redactor-styles h1{font-size:2.0736em}.redactor-styles h2{font-size:1.728em}.redactor-styles h3{font-size:1.44em}.redactor-styles h4{font-size:1.2em}.redactor-styles h5{font-size:1em}.redactor-styles h6{font-size:.83333em;letter-spacing:.035em;text-transform:uppercase}.redactor-styles blockquote{border:none;color:rgba(0,0,0,.5);font-style:italic}.redactor-styles code,.redactor-styles kbd,.redactor-styles mark,.redactor-styles small,.redactor-styles time,.redactor-styles var{color:rgba(51,51,51,.9);display:inline-block;font-family:Consolas,Menlo,Monaco,Courier New,monospace;font-size:87.5%;line-height:1}.redactor-styles cite,.redactor-styles var{opacity:.6}.redactor-styles var{font-style:normal}.redactor-styles abbr,.redactor-styles dfn{text-transform:uppercase}.redactor-styles abbr[title],.redactor-styles dfn[title]{border-bottom:1px dotted rgba(0,0,0,.5);cursor:help;text-decoration:none}.redactor-styles code,.redactor-styles kbd{border-radius:2px;padding:.25em .25em .2em;position:relative;top:-1px}.redactor-styles code{background-color:#eff1f2}.redactor-styles mark{background-color:#fdb833;border-radius:2px;padding:.125em .25em}.redactor-styles kbd{border:1px solid #e5e7e9}.redactor-styles sub,.redactor-styles sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.redactor-styles sub{bottom:-.25em}.redactor-styles sup{top:-.5em}.redactor-styles pre{font-family:Consolas,Menlo,Monaco,Courier New,monospace;font-size:.9em}.redactor-styles pre,.redactor-styles pre code{background-color:#f6f7f8;color:rgba(51,51,51,.85);display:block;line-height:1.5;overflow:none;padding:0;top:0;white-space:pre-wrap}.redactor-styles pre{padding:1rem}.redactor-styles table{border-collapse:collapse;max-width:100%;width:100%}.redactor-styles table caption{color:rgba(0,0,0,.5);font-size:11px;padding:0;text-transform:uppercase}.redactor-styles table td,.redactor-styles table th{border:1px solid #eee;padding:16px 16px 15px}.redactor-styles table tfoot td,.redactor-styles table tfoot th{color:rgba(0,0,0,.5)}.redactor-styles audio,.redactor-styles embed,.redactor-styles img,.redactor-styles object,.redactor-styles video{max-width:100%}.redactor-styles embed,.redactor-styles img,.redactor-styles object,.redactor-styles video{height:auto!important}.redactor-styles img{-ms-interpolation-mode:bicubic;vertical-align:middle}.redactor-styles figcaption{display:block;font-size:12px;font-style:italic;opacity:.6;text-align:left}.upload-box{align-items:center;background:#fff;border:5px dashed rgba(0,125,255,.15);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;justify-content:center;min-height:220px;overflow:hidden;position:relative;text-align:center;width:100%}.upload-placeholder{color:rgba(0,0,0,.3);font-size:15px;font-style:italic;line-height:1.5}.upload-hover{background-color:rgba(0,125,255,.075)}.upload-error{background-color:rgba(255,50,101,.075)}.upload-box-hover{outline:5px dashed rgba(0,125,255,.3)}.upload-box-error{outline:5px dashed rgba(255,50,101,.3)}.redactor-structure div,.redactor-structure h1,.redactor-structure h2,.redactor-structure h3,.redactor-structure h4,.redactor-structure h5,.redactor-structure h6{position:relative}.redactor-structure div:before,.redactor-structure h1:before,.redactor-structure h2:before,.redactor-structure h3:before,.redactor-structure h4:before,.redactor-structure h5:before,.redactor-structure h6:before{font-size:10px;font-weight:400;left:-26px;margin-top:-7px;opacity:.3;position:absolute;text-align:right;top:50%;width:24px}.redactor-structure h1:before{content:"h1"}.redactor-structure h2:before{content:"h2"}.redactor-structure h3:before{content:"h3"}.redactor-structure h4:before{content:"h4"}.redactor-structure h5:before{content:"h5"}.redactor-structure h6:before{content:"h6"}.redactor-structure div:before{content:"div"}#redactor-progress{height:10px;left:0;position:fixed;top:0;width:100%;z-index:1000000}#redactor-progress span{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite;background-color:#007dff;background-image:linear-gradient(45deg,hsla(0,0%,100%,.2) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.2) 0,hsla(0,0%,100%,.2) 75%,transparent 0,transparent);background-size:40px 40px;display:block;height:100%;width:100%}@-webkit-keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}.redactor-box-fullscreen{left:0;position:fixed;top:0;width:100%;z-index:1051}.redactor-box-fullscreen-target{position:absolute!important}.redactor-body-fullscreen .redactor-context-toolbar,.redactor-body-fullscreen .redactor-dropdown{z-index:1052}.redactor-body-fullscreen #redactor-overlay{z-index:1098}.redactor-body-fullscreen #redactor-modal{z-index:1099}',""]),e.Z=r},82609:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(o)for(var i=0;i=o)return!1;var r=n("GET_MIN_FILE_SIZE");return!(null!==r&&t.size<=r)})),e("LOAD_FILE",(function(t,e){var n=e.query;return new Promise((function(e,o){if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return e(t);var a=n("GET_FILE_VALIDATE_SIZE_FILTER");if(a&&!a(t))return e(t);var c=n("GET_MAX_FILE_SIZE");if(null!==c&&t.size>=c)o({status:{main:n("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:r(n("GET_LABEL_MAX_FILE_SIZE"),{filesize:i(c,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});else{var p=n("GET_MIN_FILE_SIZE");if(null!==p&&t.size<=p)o({status:{main:n("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:r(n("GET_LABEL_MIN_FILE_SIZE"),{filesize:i(p,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});else{var s=n("GET_MAX_TOTAL_FILE_SIZE");if(null!==s&&n("GET_ACTIVE_ITEMS").reduce((function(t,e){return t+e.fileSize}),0)>s)return void o({status:{main:n("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:r(n("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:i(s,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});e(t)}}}))})),{options:{allowFileSizeValidation:[!0,o.BOOLEAN],maxFileSize:[null,o.INT],minFileSize:[null,o.INT],maxTotalFileSize:[null,o.INT],fileValidateSizeFilter:[null,o.FUNCTION],labelMinFileSizeExceeded:["File is too small",o.STRING],labelMinFileSize:["Minimum file size is {filesize}",o.STRING],labelMaxFileSizeExceeded:["File is too large",o.STRING],labelMaxFileSize:["Maximum file size is {filesize}",o.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",o.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",o.STRING]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t}()},87645:function(t){
/*!
* FilePondPluginFileValidateType 1.2.7
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
t.exports=function(){"use strict";var t=function(t){var e=t.addFilter,n=t.utils,o=n.Type,r=n.isString,i=n.replaceInString,a=n.guesstimateMimeType,c=n.getExtensionFromFilename,p=n.getFilenameFromURL,s=function(t,e){return(/^[^/]+/.exec(t)||[]).pop()===e.slice(0,-2)},b=function(t,e){return t.some((function(t){return/\*$/.test(t)?s(e,t):t===e}))},u=function(t){var e="";if(r(t)){var n=p(t),o=c(n);o&&(e=a(o))}else e=t.type;return e},l=function(t,e,n){if(0===e.length)return!0;var o=u(t);return n?new Promise((function(r,i){n(t,o).then((function(t){b(e,t)?r():i()})).catch(i)})):b(e,o)},M=function(t){return function(e){return null!==t[e]&&(t[e]||e)}};return e("SET_ATTRIBUTE_TO_OPTION_MAP",(function(t){return Object.assign(t,{accept:"acceptedFileTypes"})})),e("ALLOW_HOPPER_ITEM",(function(t,e){var n=e.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||l(t,n("GET_ACCEPTED_FILE_TYPES"))})),e("LOAD_FILE",(function(t,e){var n=e.query;return new Promise((function(e,o){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var r=n("GET_ACCEPTED_FILE_TYPES"),a=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),c=l(t,r,a),p=function(){var t=r.map(M(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter((function(t){return!1!==t}));o({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:i(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:t.join(", "),allButLastType:t.slice(0,-1).join(", "),lastType:t[t.length-1]})}})};if("boolean"==typeof c)return c?e(t):p();c.then((function(){e(t)})).catch(p)}else e(t)}))})),{options:{allowFileTypeValidation:[!0,o.BOOLEAN],acceptedFileTypes:[[],o.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",o.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",o.STRING],fileValidateTypeLabelExpectedTypesMap:[{},o.OBJECT],fileValidateTypeDetectType:[null,o.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t}()},54855:function(t){
/*!
* FilePondPluginImageExifOrientation 1.0.11
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
t.exports=function(){"use strict";var t=function(t){return/^image\/jpeg/.test(t.type)},e={JPEG:65496,APP1:65505,EXIF:1165519206,TIFF:18761,Orientation:274,Unknown:65280},n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.getUint16(e,n)},o=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.getUint32(e,n)},r=function(t){return new Promise((function(r,i){var a=new FileReader;a.onload=function(t){var i=new DataView(t.target.result);if(n(i,0)===e.JPEG){for(var a=i.byteLength,c=2;cp.naturalHeight},p.src=a;var s=function(){return c},b=function(e){var n=e.addFilter,o=e.utils,i=o.Type,a=o.isFile;return n("DID_LOAD_ITEM",(function(e,n){var o=n.query;return new Promise((function(n,i){var c=e.file;if(!(a(c)&&t(c)&&o("GET_ALLOW_IMAGE_EXIF_ORIENTATION")&&s()))return n(e);r(c).then((function(t){e.setMetadata("exif",{orientation:t}),n(e)}))}))})),{options:{allowImageExifOrientation:[!0,i.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:b})),b}()},32496:function(t,e){
/*!
* FilePond 4.30.3
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
!function(t){"use strict";var e=function(t){return t instanceof HTMLElement},n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Object.assign({},t),r=[],i=[],a=function(){var t=[].concat(i);i.length=0,t.forEach((function(t){var e=t.type,n=t.data;c(e,n)}))},c=function(t,e,n){!n||document.hidden?(u[t]&&u[t](e),r.push({type:t,data:e})):i.push({type:t,data:e})},p=function(t){for(var e,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return t.getAttribute(e)||t.hasAttribute(e);t.setAttribute(e,n)},c="http://www.w3.org/2000/svg",p=["svg","path"],s=function(t){return p.includes(t)},b=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof e&&(n=e,e=null);var o=s(t)?document.createElementNS(c,t):document.createElement(t);return e&&(s(t)?a(o,"class",e):o.className=e),r(n,(function(t,e){a(o,t,e)})),o},u=function(t){return function(e,n){void 0!==n&&t.children[n]?t.insertBefore(e,t.children[n]):t.appendChild(e)}},l=function(t,e){return function(t,n){return void 0!==n?e.splice(n,0,t):e.push(t),t}},M=function(t,e){return function(n){return e.splice(e.indexOf(n),1),n.element.parentNode&&t.removeChild(n.element),n}},d="undefined"!=typeof window&&void 0!==window.document,z=function(){return d},f="children"in(z()?b("svg"):{})?function(t){return t.children.length}:function(t){return t.childNodes.length},O=function(t,e,n,o){var r=n[0]||t.left,i=n[1]||t.top,a=r+t.width,c=i+t.height*(o[1]||1),p={element:Object.assign({},t),inner:{left:t.left,top:t.top,right:t.right,bottom:t.bottom},outer:{left:r,top:i,right:a,bottom:c}};return e.filter((function(t){return!t.isRectIgnored()})).map((function(t){return t.rect})).forEach((function(t){A(p.inner,Object.assign({},t.inner)),A(p.outer,Object.assign({},t.outer))})),m(p.inner),p.outer.bottom+=p.element.marginBottom,p.outer.right+=p.element.marginRight,m(p.outer),p},A=function(t,e){e.top+=t.top,e.right+=t.left,e.bottom+=t.top,e.left+=t.left,e.bottom>t.bottom&&(t.bottom=e.bottom),e.right>t.right&&(t.right=e.right)},m=function(t){t.width=t.right-t.left,t.height=t.bottom-t.top},h=function(t){return"number"==typeof t},q=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(t-e)0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiffness,n=void 0===e?.5:e,o=t.damping,r=void 0===o?.75:o,a=t.mass,c=void 0===a?10:a,p=null,s=null,b=0,u=!1,l=i({interpolate:function(t,e){if(!u){if(!h(p)||!h(s))return u=!0,void(b=0);q(s+=b+=-(s-p)*n/c,p,b*=r)||e?(s=p,b=0,u=!0,l.onupdate(s),l.oncomplete(s)):l.onupdate(s)}},target:{set:function(t){if(h(t)&&!h(s)&&(s=t),null===p&&(p=t,s=t),s===(p=t)||void 0===p)return u=!0,b=0,l.onupdate(s),void l.oncomplete(s);u=!1},get:function(){return p}},resting:{get:function(){return u}},onupdate:function(t){},oncomplete:function(t){}});return l},_=function(t){return t<.5?2*t*t:(4-2*t)*t-1},g=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.duration,r=void 0===o?500:o,a=n.easing,c=void 0===a?_:a,p=n.delay,s=void 0===p?0:p,b=null,u=!0,l=!1,M=null,d=i({interpolate:function(n,o){u||null===M||(null===b&&(b=n),n-b=r||o?(t=1,e=l?0:1,d.onupdate(e*M),d.oncomplete(e*M),u=!0):(e=t/r,d.onupdate((t>=0?c(l?1-e:e):0)*M))))},target:{get:function(){return l?0:M},set:function(t){if(null===M)return M=t,d.onupdate(t),void d.oncomplete(t);t3&&void 0!==arguments[3]&&arguments[3];(e=Array.isArray(e)?e:[e]).forEach((function(e){t.forEach((function(t){var r=t,i=function(){return n[t]},a=function(e){return n[t]=e};"object"==typeof t&&(r=t.key,i=t.getter||i,a=t.setter||a),e[r]&&!o||(e[r]={get:i,set:a})}))}))},L=function(t){var e=t.mixinConfig,n=t.viewProps,o=t.viewInternalAPI,i=t.viewExternalAPI,a=Object.assign({},n),c=[];return r(e,(function(t,e){var r=W(e);r&&(r.onupdate=function(e){n[t]=e},r.target=a[t],R([{key:t,setter:function(t){r.target!==t&&(r.target=t)},getter:function(){return n[t]}}],[o,i],n,!0),c.push(r))})),{write:function(t){var e=document.hidden,n=!0;return c.forEach((function(o){o.resting||(n=!1),o.interpolate(t,e)})),n},destroy:function(){}}},w=function(t){return function(e,n){t.addEventListener(e,n)}},T=function(t){return function(e,n){t.removeEventListener(e,n)}},B=function(t){t.mixinConfig,t.viewProps,t.viewInternalAPI;var e=t.viewExternalAPI,n=(t.viewState,t.view),o=[],r=w(n.element),i=T(n.element);return e.on=function(t,e){o.push({type:t,fn:e}),r(t,e)},e.off=function(t,e){o.splice(o.findIndex((function(n){return n.type===t&&n.fn===e})),1),i(t,e)},{write:function(){return!0},destroy:function(){o.forEach((function(t){i(t.type,t.fn)}))}}},x=function(t){return null!=t},E={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},S=function(t){var e=t.mixinConfig,n=t.viewProps,o=t.viewInternalAPI,r=t.viewExternalAPI,i=t.view,a=Object.assign({},n),c={};R(e,[o,r],n);var p=function(){return[n.translateX||0,n.translateY||0]},s=function(){return[n.scaleX||0,n.scaleY||0]},b=function(){return i.rect?O(i.rect,i.childViews,p(),s()):null};return o.rect={get:b},r.rect={get:b},e.forEach((function(t){n[t]=void 0===a[t]?E[t]:a[t]})),{write:function(){if(X(c,n))return k(i.element,n),Object.assign(c,Object.assign({},n)),!0},destroy:function(){}}},X=function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!0;for(var n in e)if(e[n]!==t[n])return!0;return!1},k=function(t,e){var n=e.opacity,o=e.perspective,r=e.translateX,i=e.translateY,a=e.scaleX,c=e.scaleY,p=e.rotateX,s=e.rotateY,b=e.rotateZ,u=e.originX,l=e.originY,M=e.width,d=e.height,z="",f="";(x(u)||x(l))&&(f+="transform-origin: "+(u||0)+"px "+(l||0)+"px;"),x(o)&&(z+="perspective("+o+"px) "),(x(r)||x(i))&&(z+="translate3d("+(r||0)+"px, "+(i||0)+"px, 0) "),(x(a)||x(c))&&(z+="scale3d("+(x(a)?a:1)+", "+(x(c)?c:1)+", 1) "),x(b)&&(z+="rotateZ("+b+"rad) "),x(p)&&(z+="rotateX("+p+"rad) "),x(s)&&(z+="rotateY("+s+"rad) "),z.length&&(f+="transform:"+z+";"),x(n)&&(f+="opacity:"+n+";",0===n&&(f+="visibility:hidden;"),n<1&&(f+="pointer-events:none;")),x(d)&&(f+="height:"+d+"px;"),x(M)&&(f+="width:"+M+"px;");var O=t.elementCurrentStyle||"";f.length===O.length&&f===O||(t.style.cssText=f,t.elementCurrentStyle=f)},N={styles:S,listeners:B,animations:L,apis:function(t){var e=t.mixinConfig,n=t.viewProps,o=t.viewExternalAPI;R(e,o,n)}},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.layoutCalculated||(t.paddingTop=parseInt(n.paddingTop,10)||0,t.marginTop=parseInt(n.marginTop,10)||0,t.marginRight=parseInt(n.marginRight,10)||0,t.marginBottom=parseInt(n.marginBottom,10)||0,t.marginLeft=parseInt(n.marginLeft,10)||0,e.layoutCalculated=!0),t.left=e.offsetLeft||0,t.top=e.offsetTop||0,t.width=e.offsetWidth||0,t.height=e.offsetHeight||0,t.right=t.left+t.width,t.bottom=t.top+t.height,t.scrollTop=e.scrollTop,t.hidden=null===e.offsetParent,t},D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.tag,n=void 0===e?"div":e,o=t.name,r=void 0===o?null:o,a=t.attributes,c=void 0===a?{}:a,p=t.read,s=void 0===p?function(){}:p,d=t.write,z=void 0===d?function(){}:d,A=t.create,m=void 0===A?function(){}:A,h=t.destroy,q=void 0===h?function(){}:h,v=t.filterFrameActionsForChild,_=void 0===v?function(t,e){return e}:v,g=t.didCreateView,y=void 0===g?function(){}:g,W=t.didWriteView,R=void 0===W?function(){}:W,L=t.ignoreRect,w=void 0!==L&&L,T=t.ignoreRectUpdate,B=void 0!==T&&T,x=t.mixins,E=void 0===x?[]:x;return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=b(n,"filepond--"+r,c),a=window.getComputedStyle(o,null),p=C(),d=null,A=!1,h=[],v=[],g={},W={},L=[z],T=[s],x=[q],S=function(){return o},X=function(){return h.concat()},k=function(){return g},D=function(t){return function(e,n){return e(t,n)}},$=function(){return d||(d=O(p,h,[0,0],[1,1]))},j=function(){d=null,h.forEach((function(t){return t._read()})),!(B&&p.width&&p.height)&&C(p,o,a);var t={root:G,props:e,rect:p};T.forEach((function(e){return e(t)}))},P=function(t,n,o){var r=0===n.length;return L.forEach((function(i){!1===i({props:e,root:G,actions:n,timestamp:t,shouldOptimize:o})&&(r=!1)})),v.forEach((function(e){!1===e.write(t)&&(r=!1)})),h.filter((function(t){return!!t.element.parentNode})).forEach((function(e){e._write(t,_(e,n),o)||(r=!1)})),h.forEach((function(e,i){e.element.parentNode||(G.appendChild(e.element,i),e._read(),e._write(t,_(e,n),o),r=!1)})),A=r,R({props:e,root:G,actions:n,timestamp:t}),r},I=function(){v.forEach((function(t){return t.destroy()})),x.forEach((function(t){t({root:G,props:e})})),h.forEach((function(t){return t._destroy()}))},Y={element:{get:S},style:{get:function(){return a}},childViews:{get:X}},H=Object.assign({},Y,{rect:{get:$},ref:{get:k},is:function(t){return r===t},appendChild:u(o),createChildView:D(t),linkView:function(t){return h.push(t),t},unlinkView:function(t){h.splice(h.indexOf(t),1)},appendChildView:l(o,h),removeChildView:M(o,h),registerWriter:function(t){return L.push(t)},registerReader:function(t){return T.push(t)},registerDestroyer:function(t){return x.push(t)},invalidateLayout:function(){return o.layoutCalculated=!1},dispatch:t.dispatch,query:t.query}),F={element:{get:S},childViews:{get:X},rect:{get:$},resting:{get:function(){return A}},isRectIgnored:function(){return w},_read:j,_write:P,_destroy:I},U=Object.assign({},Y,{rect:{get:function(){return p}}});Object.keys(E).sort((function(t,e){return"styles"===t?1:"styles"===e?-1:0})).forEach((function(t){var n=N[t]({mixinConfig:E[t],viewProps:e,viewState:W,viewInternalAPI:H,viewExternalAPI:F,view:i(U)});n&&v.push(n)}));var G=i(H);m({root:G,props:e});var Q=f(o);return h.forEach((function(t,e){G.appendChild(t.element,Q+e)})),y(G),i(F)}},$=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,o="__framePainter";if(window[o])return window[o].readers.push(t),void window[o].writers.push(e);window[o]={readers:[t],writers:[e]};var r=window[o],i=1e3/n,a=null,c=null,p=null,s=null,b=function(){document.hidden?(p=function(){return window.setTimeout((function(){return u(performance.now())}),i)},s=function(){return window.clearTimeout(c)}):(p=function(){return window.requestAnimationFrame(u)},s=function(){return window.cancelAnimationFrame(c)})};document.addEventListener("visibilitychange",(function(){s&&s(),b(),u(performance.now())}));var u=function t(e){c=p(t),a||(a=e);var n=e-a;n<=i||(a=e-n%i,r.readers.forEach((function(t){return t()})),r.writers.forEach((function(t){return t(e)})))};return b(),u(performance.now()),{pause:function(){s(c)}}},j=function(t,e){return function(n){var o=n.root,r=n.props,i=n.actions,a=void 0===i?[]:i,c=n.timestamp,p=n.shouldOptimize;a.filter((function(e){return t[e.type]})).forEach((function(e){return t[e.type]({root:o,props:r,action:e.data,timestamp:c,shouldOptimize:p})})),e&&e({root:o,props:r,actions:a,timestamp:c,shouldOptimize:p})}},P=function(t,e){return e.parentNode.insertBefore(t,e)},I=function(t,e){return e.parentNode.insertBefore(t,e.nextSibling)},Y=function(t){return Array.isArray(t)},H=function(t){return null==t},F=function(t){return t.trim()},U=function(t){return""+t},G=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return H(t)?[]:Y(t)?t:U(t).split(e).map(F).filter((function(t){return t.length}))},Q=function(t){return"boolean"==typeof t},V=function(t){return Q(t)?t:"true"===t},K=function(t){return"string"==typeof t},J=function(t){return h(t)?t:K(t)?U(t).replace(/[a-z]+/gi,""):0},Z=function(t){return parseInt(J(t),10)},tt=function(t){return parseFloat(J(t))},et=function(t){return h(t)&&isFinite(t)&&Math.floor(t)===t},nt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(et(t))return t;var n=U(t).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),Z(n)*e*e):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),Z(n)*e):Z(n)},ot=function(t){return"function"==typeof t},rt=function(t){for(var e=self,n=t.split("."),o=null;o=n.shift();)if(!(e=e[o]))return null;return e},it={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},at=function(t){var e={};return e.url=K(t)?t:t.url||"",e.timeout=t.timeout?parseInt(t.timeout,10):0,e.headers=t.headers?t.headers:{},r(it,(function(n){e[n]=ct(n,t[n],it[n],e.timeout,e.headers)})),e.process=t.process||K(t)||t.url?e.process:null,e.remove=t.remove||null,delete e.headers,e},ct=function(t,e,n,o,r){if(null===e)return null;if("function"==typeof e)return e;var i={url:"GET"===n||"PATCH"===n?"?"+t+"=":"",method:n,headers:r,withCredentials:!1,timeout:o,onload:null,ondata:null,onerror:null};if(K(e))return i.url=e,i;if(Object.assign(i,e),K(i.headers)){var a=i.headers.split(/:(.+)/);i.headers={header:a[0],value:a[1]}}return i.withCredentials=V(i.withCredentials),i},pt=function(t){return null===t},st=function(t){return"object"==typeof t&&null!==t},bt=function(t){return st(t)&&K(t.url)&&st(t.process)&&st(t.revert)&&st(t.restore)&&st(t.fetch)},ut=function(t){return Y(t)?"array":pt(t)?"null":et(t)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(t)?"bytes":bt(t)?"api":typeof t},lt=function(t){return t.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},Mt={array:G,boolean:V,int:function(t){return"bytes"===ut(t)?nt(t):Z(t)},number:tt,float:tt,bytes:nt,string:function(t){return ot(t)?t:U(t)},function:function(t){return rt(t)},serverapi:function(t){return at(t)},object:function(t){try{return JSON.parse(lt(t))}catch(t){return null}}},dt=function(t,e){return Mt[e](t)},zt=function(t,e,n){if(t===e)return t;var o=ut(t);if(o!==n){var r=dt(t,n);if(o=ut(r),null===r)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';t=r}return t},ft=function(t,e){var n=t;return{enumerable:!0,get:function(){return n},set:function(o){n=zt(o,t,e)}}},Ot=function(t){var e={};return r(t,(function(n){var o=t[n];e[n]=ft(o[0],o[1])})),i(e)},At=function(t){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:Ot(t)}},mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.split(/(?=[A-Z])/).map((function(t){return t.toLowerCase()})).join(e)},ht=function(t,e){var n={};return r(e,(function(e){n[e]={get:function(){return t.getState().options[e]},set:function(n){t.dispatch("SET_"+mt(e,"_").toUpperCase(),{value:n})}}})),n},qt=function(t){return function(e,n,o){var i={};return r(t,(function(t){var n=mt(t,"_").toUpperCase();i["SET_"+n]=function(r){try{o.options[t]=r.value}catch(t){}e("DID_SET_"+n,{value:o.options[t]})}})),i}},vt=function(t){return function(e){var n={};return r(t,(function(t){n["GET_"+mt(t,"_").toUpperCase()]=function(n){return e.options[t]}})),n}},_t={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},gt=function(){return Math.random().toString(36).substr(2,9)};function yt(t){this.wrapped=t}function Wt(t){var e,n;function o(t,o){return new Promise((function(i,a){var c={key:t,arg:o,resolve:i,reject:a,next:null};n?n=n.next=c:(e=n=c,r(t,o))}))}function r(e,n){try{var o=t[e](n),a=o.value,c=a instanceof yt;Promise.resolve(c?a.wrapped:a).then((function(t){c?r("next",t):i(o.done?"return":"normal",t)}),(function(t){r("throw",t)}))}catch(t){i("throw",t)}}function i(t,o){switch(t){case"return":e.resolve({value:o,done:!0});break;case"throw":e.reject(o);break;default:e.resolve({value:o,done:!1})}(e=e.next)?r(e.key,e.arg):n=null}this._invoke=o,"function"!=typeof t.return&&(this.return=void 0)}function Rt(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o=0||(r[n]=t[n]);return r}function Lt(t,e){if(null==t)return{};var n,o,r=Rt(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function wt(t){return Tt(t)||Bt(t)||xt()}function Tt(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1?e-1:0),r=1;r1?e-1:0),r=1;rBrowse',Ht.STRING],labelInvalidField:["Field contains invalid files",Ht.STRING],labelFileWaitingForSize:["Waiting for size",Ht.STRING],labelFileSizeNotAvailable:["Size not available",Ht.STRING],labelFileCountSingular:["file in list",Ht.STRING],labelFileCountPlural:["files in list",Ht.STRING],labelFileLoading:["Loading",Ht.STRING],labelFileAdded:["Added",Ht.STRING],labelFileLoadError:["Error during load",Ht.STRING],labelFileRemoved:["Removed",Ht.STRING],labelFileRemoveError:["Error during remove",Ht.STRING],labelFileProcessing:["Uploading",Ht.STRING],labelFileProcessingComplete:["Upload complete",Ht.STRING],labelFileProcessingAborted:["Upload cancelled",Ht.STRING],labelFileProcessingError:["Error during upload",Ht.STRING],labelFileProcessingRevertError:["Error during revert",Ht.STRING],labelTapToCancel:["tap to cancel",Ht.STRING],labelTapToRetry:["tap to retry",Ht.STRING],labelTapToUndo:["tap to undo",Ht.STRING],labelButtonRemoveItem:["Remove",Ht.STRING],labelButtonAbortItemLoad:["Abort",Ht.STRING],labelButtonRetryItemLoad:["Retry",Ht.STRING],labelButtonAbortItemProcessing:["Cancel",Ht.STRING],labelButtonUndoItemProcessing:["Undo",Ht.STRING],labelButtonRetryItemProcessing:["Retry",Ht.STRING],labelButtonProcessItem:["Upload",Ht.STRING],iconRemove:['',Ht.STRING],iconProcess:['',Ht.STRING],iconRetry:['',Ht.STRING],iconUndo:['',Ht.STRING],iconDone:['',Ht.STRING],oninit:[null,Ht.FUNCTION],onwarning:[null,Ht.FUNCTION],onerror:[null,Ht.FUNCTION],onactivatefile:[null,Ht.FUNCTION],oninitfile:[null,Ht.FUNCTION],onaddfilestart:[null,Ht.FUNCTION],onaddfileprogress:[null,Ht.FUNCTION],onaddfile:[null,Ht.FUNCTION],onprocessfilestart:[null,Ht.FUNCTION],onprocessfileprogress:[null,Ht.FUNCTION],onprocessfileabort:[null,Ht.FUNCTION],onprocessfilerevert:[null,Ht.FUNCTION],onprocessfile:[null,Ht.FUNCTION],onprocessfiles:[null,Ht.FUNCTION],onremovefile:[null,Ht.FUNCTION],onpreparefile:[null,Ht.FUNCTION],onupdatefiles:[null,Ht.FUNCTION],onreorderfiles:[null,Ht.FUNCTION],beforeDropFile:[null,Ht.FUNCTION],beforeAddFile:[null,Ht.FUNCTION],beforeRemoveFile:[null,Ht.FUNCTION],beforePrepareFile:[null,Ht.FUNCTION],stylePanelLayout:[null,Ht.STRING],stylePanelAspectRatio:[null,Ht.STRING],styleItemPanelAspectRatio:[null,Ht.STRING],styleButtonRemoveItemPosition:["left",Ht.STRING],styleButtonProcessItemPosition:["right",Ht.STRING],styleLoadIndicatorPosition:["right",Ht.STRING],styleProgressIndicatorPosition:["right",Ht.STRING],styleButtonRemoveItemAlign:[!1,Ht.BOOLEAN],files:[[],Ht.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],Ht.ARRAY]},te=function(t,e){return H(e)?t[0]||null:et(e)?t[e]||null:("object"==typeof e&&(e=e.id),t.find((function(t){return t.id===e}))||null)},ee=function(t){if(H(t))return t;if(/:/.test(t)){var e=t.split(":");return e[1]/e[0]}return parseFloat(t)},ne=function(t){return t.filter((function(t){return!t.archived}))},oe={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},re=null,ie=function(){if(null===re)try{var t=new DataTransfer;t.items.add(new File(["hello world"],"This_Works.txt"));var e=document.createElement("input");e.setAttribute("type","file"),e.files=t.files,re=1===e.files.length}catch(t){re=!1}return re},ae=[$t.LOAD_ERROR,$t.PROCESSING_ERROR,$t.PROCESSING_REVERT_ERROR],ce=[$t.LOADING,$t.PROCESSING,$t.PROCESSING_QUEUED,$t.INIT],pe=[$t.PROCESSING_COMPLETE],se=function(t){return ae.includes(t.status)},be=function(t){return ce.includes(t.status)},ue=function(t){return pe.includes(t.status)},le=function(t){return st(t.options.server)&&(st(t.options.server.process)||ot(t.options.server.process))},Me=function(t){return{GET_STATUS:function(){var e=ne(t.items),n=oe.EMPTY,o=oe.ERROR,r=oe.BUSY,i=oe.IDLE,a=oe.READY;return 0===e.length?n:e.some(se)?o:e.some(be)?r:e.some(ue)?a:i},GET_ITEM:function(e){return te(t.items,e)},GET_ACTIVE_ITEM:function(e){return te(ne(t.items),e)},GET_ACTIVE_ITEMS:function(){return ne(t.items)},GET_ITEMS:function(){return t.items},GET_ITEM_NAME:function(e){var n=te(t.items,e);return n?n.filename:null},GET_ITEM_SIZE:function(e){var n=te(t.items,e);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(t.options).filter((function(t){return/^style/.test(t)})).map((function(e){return{name:e,value:t.options[e]}}))},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(t.options.stylePanelLayout)?1:ee(t.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return t.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(e){return ne(t.items).filter((function(t){return t.status===e}))},GET_TOTAL_ITEMS:function(){return ne(t.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return t.options.storeAsFile&&ie()&&!le(t)},IS_ASYNC:function(){return le(t)},GET_FILE_SIZE_LABELS:function(t){return{labelBytes:t("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:t("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:t("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:t("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},de=function(t){var e=ne(t.items).length;if(!t.options.allowMultiple)return 0===e;var n=t.options.maxFiles;return null===n||e1&&void 0!==arguments[1]?arguments[1]:"";return(e+t).slice(-e.length)},_e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return t.getFullYear()+"-"+ve(t.getMonth()+1,"00")+"-"+ve(t.getDate(),"00")+"_"+ve(t.getHours(),"00")+"-"+ve(t.getMinutes(),"00")+"-"+ve(t.getSeconds(),"00")},ge=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="string"==typeof n?t.slice(0,t.size,n):t.slice(0,t.size,t.type);return r.lastModifiedDate=new Date,t._relativePath&&(r._relativePath=t._relativePath),K(e)||(e=_e()),e&&null===o&&he(e)?r.name=e:(o=o||qe(r.type),r.name=e+(o?"."+o:"")),r},ye=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},We=function(t,e){var n=ye();if(n){var o=new n;return o.append(t),o.getBlob(e)}return new Blob([t],{type:e})},Re=function(t,e){for(var n=new ArrayBuffer(t.length),o=new Uint8Array(n),r=0;r=200&&a.status<300?o.onload(a):o.onerror(a)},a.onerror=function(){return o.onerror(a)},a.onabort=function(){r=!0,o.onabort()},a.ontimeout=function(){return o.ontimeout(a)},a.open(n.method,e,!0),et(n.timeout)&&(a.timeout=n.timeout),Object.keys(n.headers).forEach((function(t){var e=unescape(encodeURIComponent(n.headers[t]));a.setRequestHeader(t,e)})),n.responseType&&(a.responseType=n.responseType),n.withCredentials&&(a.withCredentials=!0),a.send(t),o},$e=function(t,e,n,o){return{type:t,code:e,body:n,headers:o}},je=function(t){return function(e){t($e("error",0,"Timeout",e.getAllResponseHeaders()))}},Pe=function(t){return/\?/.test(t)},Ie=function(){for(var t="",e=arguments.length,n=new Array(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if("function"==typeof e)return e;if(!e||!K(e.url))return null;var n=e.onload||function(t){return t},o=e.onerror||function(t){return null};return function(r,i,a,c,p,s){var b=De(r,Ie(t,e.url),Object.assign({},e,{responseType:"blob"}));return b.onload=function(t){var o=t.getAllResponseHeaders(),a=ke(o).name||me(r);i($e("load",t.status,"HEAD"===e.method?null:ge(n(t.response),a),o))},b.onerror=function(t){a($e("error",t.status,o(t.response)||t.statusText,t.getAllResponseHeaders()))},b.onheaders=function(t){s($e("headers",t.status,null,t.getAllResponseHeaders()))},b.ontimeout=je(a),b.onprogress=c,b.onabort=p,b}},He={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Fe=function(t,e,n,o,r,i,a,c,p,s,b){for(var u=[],l=b.chunkTransferId,M=b.chunkServer,d=b.chunkSize,z=b.chunkRetryDelays,f={serverId:l,aborted:!1},O=e.ondata||function(t){return t},A=e.onload||function(t,e){return"HEAD"===e?t.getResponseHeader("Upload-Offset"):t.response},m=e.onerror||function(t){return null},h=function(i){var c=new FormData;st(r)&&c.append(n,JSON.stringify(r));var p="function"==typeof e.headers?e.headers(o,r):Object.assign({},e.headers,{"Upload-Length":o.size}),s=Object.assign({},e,{headers:p}),b=De(O(c),Ie(t,e.url),s);b.onload=function(t){return i(A(t,s.method))},b.onerror=function(t){return a($e("error",t.status,m(t.response)||t.statusText,t.getAllResponseHeaders()))},b.ontimeout=je(a)},q=function(n){var o=Ie(t,M.url,f.serverId),r={headers:"function"==typeof e.headers?e.headers(f.serverId):Object.assign({},e.headers),method:"HEAD"},i=De(null,o,r);i.onload=function(t){return n(A(t,r.method))},i.onerror=function(t){return a($e("error",t.status,m(t.response)||t.statusText,t.getAllResponseHeaders()))},i.ontimeout=je(a)},v=Math.floor(o.size/d),_=0;_<=v;_++){var g=_*d,y=o.slice(g,g+d,"application/offset+octet-stream");u[_]={index:_,size:y.size,offset:g,data:y,file:o,progress:0,retries:wt(z),status:He.QUEUED,error:null,request:null,timeout:null}}var W=function(){return i(f.serverId)},R=function(t){return t.status===He.QUEUED||t.status===He.ERROR},L=function(e){if(!f.aborted)if(e=e||u.find(R)){e.status=He.PROCESSING,e.progress=null;var n=M.ondata||function(t){return t},r=M.onerror||function(t){return null},i=Ie(t,M.url,f.serverId),c="function"==typeof M.headers?M.headers(e):Object.assign({},M.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":e.offset,"Upload-Length":o.size,"Upload-Name":o.name}),s=e.request=De(n(e.data),i,Object.assign({},M,{headers:c}));s.onload=function(){e.status=He.COMPLETE,e.request=null,B()},s.onprogress=function(t,n,o){e.progress=t?n:null,T()},s.onerror=function(t){e.status=He.ERROR,e.request=null,e.error=r(t.response)||t.statusText,w(e)||a($e("error",t.status,r(t.response)||t.statusText,t.getAllResponseHeaders()))},s.ontimeout=function(t){e.status=He.ERROR,e.request=null,w(e)||je(a)(t)},s.onabort=function(){e.status=He.QUEUED,e.request=null,p()}}else u.every((function(t){return t.status===He.COMPLETE}))&&W()},w=function(t){return 0!==t.retries.length&&(t.status=He.WAITING,clearTimeout(t.timeout),t.timeout=setTimeout((function(){L(t)}),t.retries.shift()),!0)},T=function(){var t=u.reduce((function(t,e){return null===t||null===e.progress?null:t+e.progress}),0);if(null===t)return c(!1,0,0);var e=u.reduce((function(t,e){return t+e.size}),0);c(!0,t,e)},B=function(){u.filter((function(t){return t.status===He.PROCESSING})).length>=1||L()},x=function(){u.forEach((function(t){clearTimeout(t.timeout),t.request&&t.request.abort()}))};return f.serverId?q((function(t){f.aborted||(u.filter((function(e){return e.offseto.chunkSize,M=u&&(l||o.chunkForce);if(r instanceof Blob&&M)return Fe(t,e,n,r,i,a,c,p,s,b,o);var d=e.ondata||function(t){return t},z=e.onload||function(t){return t},f=e.onerror||function(t){return null},O="function"==typeof e.headers?e.headers(r,i)||{}:Object.assign({},e.headers),A=Object.assign({},e,{headers:O}),m=new FormData;st(i)&&m.append(n,JSON.stringify(i)),(r instanceof Blob?[{name:null,file:r}]:r).forEach((function(t){m.append(n,t.file,null===t.name?t.file.name:""+t.name+t.file.name)}));var h=De(d(m),Ie(t,e.url),A);return h.onload=function(t){a($e("load",t.status,z(t.response),t.getAllResponseHeaders()))},h.onerror=function(t){c($e("error",t.status,f(t.response)||t.statusText,t.getAllResponseHeaders()))},h.ontimeout=je(c),h.onprogress=p,h.onabort=s,h}}},Ge=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return"function"==typeof e?function(){for(var t=arguments.length,r=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if("function"==typeof e)return e;if(!e||!K(e.url))return function(t,e){return e()};var n=e.onload||function(t){return t},o=e.onerror||function(t){return null};return function(r,i,a){var c=De(r,t+e.url,e);return c.onload=function(t){i($e("load",t.status,n(t.response),t.getAllResponseHeaders()))},c.onerror=function(t){a($e("error",t.status,o(t.response)||t.statusText,t.getAllResponseHeaders()))},c.ontimeout=je(a),c}},Ve=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t+Math.random()*(e-t)},Ke=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,r=null,i=Date.now();return e>0&&function a(){var c=Date.now()-i,p=Ve(n,o);c+p>e&&(p=c+p-e);var s=c/e;s>=1||document.hidden?t(1):(t(s),r=setTimeout(a,p))}(),{clear:function(){clearTimeout(r)}}},Je=function(t,e){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},o=e.allowMinimumUploadDuration,r=function(e,r){var i=function(){0!==n.duration&&null!==n.progress&&s.fire("progress",s.getProgress())},a=function(){n.complete=!0,s.fire("load-perceived",n.response.body)};s.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=Ke((function(t){n.perceivedProgress=t,n.perceivedDuration=Date.now()-n.timestamp,i(),n.response&&1===n.perceivedProgress&&!n.complete&&a()}),o?Ve(750,1500):0),n.request=t(e,r,(function(t){n.response=st(t)?t:{type:"load",code:200,body:""+t,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,s.fire("load",n.response.body),(!o||o&&1===n.perceivedProgress)&&a()}),(function(t){n.perceivedPerformanceUpdater.clear(),s.fire("error",st(t)?t:{type:"error",code:0,body:""+t})}),(function(t,e,o){n.duration=Date.now()-n.timestamp,n.progress=t?e/o:null,i()}),(function(){n.perceivedPerformanceUpdater.clear(),s.fire("abort",n.response?n.response.body:null)}),(function(t){s.fire("transfer",t)}))},i=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},a=function(){i(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},c=o?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},p=o?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},s=Object.assign({},Xt(),{process:r,abort:i,getProgress:c,getDuration:p,reset:a});return s},Ze=function(t){return t.substr(0,t.lastIndexOf("."))||t},tn=function(t){var e=[t.name,t.size,t.type];return t instanceof Blob||Ae(t)?e[0]=t.name||_e():Ae(t)?(e[1]=t.length,e[2]=Le(t)):K(t)&&(e[0]=me(t),e[1]=0,e[2]="application/octet-stream"),{name:e[0],size:e[1],type:e[2]}},en=function(t){return!!(t instanceof File||t instanceof Blob&&t.name)},nn=function t(e){if(!st(e))return e;var n=Y(e)?[]:{};for(var o in e)if(e.hasOwnProperty(o)){var r=e[o];n[o]=r&&st(r)?t(r):r}return n},on=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=gt(),r={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:e,transferId:null,processingAborted:!1,status:e?$t.PROCESSING_COMPLETE:$t.INIT,activeLoader:null,activeProcessor:null},a=null,c={},p=function(t){return r.status=t},s=function(t){if(!r.released&&!r.frozen){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o-1||t.indexOf("//")>-1)&&pn(location.href)!==pn(t)},bn=function(t){return function(){return ot(t)?t.apply(void 0,arguments):t}},un=function(t){return!en(t.file)},ln=function(t,e){clearTimeout(e.listUpdateTimeout),e.listUpdateTimeout=setTimeout((function(){t("DID_UPDATE_ITEMS",{items:ne(e.items)})}),0)},Mn=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},o=n.query,r=n.success,i=void 0===r?function(){}:r,a=n.failure,c=void 0===a?function(){}:a,p=Lt(n,["query","success","failure"]),s=te(t.items,o);s?e(s,i,c,p||{}):c({error:$e("error",0,"Item not found"),file:null})}},fn=function(t,e,n){return{ABORT_ALL:function(){ne(n.items).forEach((function(t){t.freeze(),t.abortLoad(),t.abortProcessing()}))},DID_SET_FILES:function(e){var o=e.value,r=(void 0===o?[]:o).map((function(t){return{source:t.source?t.source:t,options:t.options}})),i=ne(n.items);i.forEach((function(e){r.find((function(t){return t.source===e.source||t.source===e.file}))||t("REMOVE_ITEM",{query:e,remove:!1})})),i=ne(n.items),r.forEach((function(e,n){i.find((function(t){return t.source===e.source||t.file===e.source}))||t("ADD_ITEM",Object.assign({},e,{interactionMethod:_t.NONE,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(o){var r=o.id,i=o.action,a=o.change;a.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var o=an(n.items,r);if(e("IS_ASYNC")){o.origin===jt.LOCAL&&t("DID_LOAD_ITEM",{id:o.id,error:null,serverFileReference:o.source});var c=function(){setTimeout((function(){t("REQUEST_ITEM_PROCESSING",{query:r})}),32)},p=function(t){o.revert(Qe(n.options.server.url,n.options.server.revert),e("GET_FORCE_REVERT")).then(t?c:function(){}).catch((function(){}))},s=function(t){o.abortProcessing().then(t?c:function(){})};return o.status===$t.PROCESSING_COMPLETE?p(n.options.instantUpload):o.status===$t.PROCESSING?s(n.options.instantUpload):void(n.options.instantUpload&&c())}Ut("SHOULD_PREPARE_OUTPUT",!1,{item:o,query:e,action:i,change:a}).then((function(n){var i=e("GET_BEFORE_PREPARE_FILE");i&&(n=i(o,n)),n&&t("REQUEST_PREPARE_OUTPUT",{query:r,item:o,success:function(e){t("DID_PREPARE_OUTPUT",{id:r,file:e})}},!0)}))}),0))},MOVE_ITEM:function(t){var e=t.query,o=t.index,r=te(n.items,e);if(r){var i=n.items.indexOf(r);i!==(o=ze(o,0,n.items.length-1))&&n.items.splice(o,0,n.items.splice(i,1)[0])}},SORT:function(o){var r=o.compare;dn(n,r),t("DID_SORT_ITEMS",{items:e("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var o=n.items,r=n.index,i=n.interactionMethod,a=n.success,c=void 0===a?function(){}:a,p=n.failure,s=void 0===p?function(){}:p,b=r;if(-1===r||void 0===r){var u=e("GET_ITEM_INSERT_LOCATION"),l=e("GET_TOTAL_ITEMS");b="before"===u?0:l}var M=e("GET_IGNORED_FILES"),d=function(t){return en(t)?!M.includes(t.name.toLowerCase()):!H(t)},z=o.filter(d).map((function(e){return new Promise((function(n,o){t("ADD_ITEM",{interactionMethod:i,source:e.source||e,success:n,failure:o,index:b++,options:e.options||{}})}))}));Promise.all(z).then(c).catch(s)},ADD_ITEM:function(o){var r=o.source,i=o.index,a=void 0===i?-1:i,c=o.interactionMethod,p=o.success,s=void 0===p?function(){}:p,b=o.failure,u=void 0===b?function(){}:b,l=o.options,M=void 0===l?{}:l;if(H(r))u({error:$e("error",0,"No source"),file:null});else if(!en(r)||!n.options.ignoredFiles.includes(r.name.toLowerCase())){if(!de(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var d=$e("warning",0,"Max files");return t("DID_THROW_MAX_FILES",{source:r,error:d}),void u({error:d,file:null})}var z=ne(n.items)[0];if(z.status===$t.PROCESSING_COMPLETE||z.status===$t.PROCESSING_REVERT_ERROR){var f=e("GET_FORCE_REVERT");if(z.revert(Qe(n.options.server.url,n.options.server.revert),f).then((function(){f&&t("ADD_ITEM",{source:r,index:a,interactionMethod:c,success:s,failure:u,options:M})})).catch((function(){})),f)return}t("REMOVE_ITEM",{query:z.id})}var O="local"===M.type?jt.LOCAL:"limbo"===M.type?jt.LIMBO:jt.INPUT,A=on(O,O===jt.INPUT?null:r,M.file);Object.keys(M.metadata||{}).forEach((function(t){A.setMetadata(t,M.metadata[t])})),Gt("DID_CREATE_ITEM",A,{query:e,dispatch:t});var m=e("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(a="before"===m?-1:n.items.length),Oe(n.items,A,a),ot(m)&&r&&dn(n,m);var h=A.id;A.on("init",(function(){t("DID_INIT_ITEM",{id:h})})),A.on("load-init",(function(){t("DID_START_ITEM_LOAD",{id:h})})),A.on("load-meta",(function(){t("DID_UPDATE_ITEM_META",{id:h})})),A.on("load-progress",(function(e){t("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:h,progress:e})})),A.on("load-request-error",(function(e){var o=bn(n.options.labelFileLoadError)(e);if(e.code>=400&&e.code<500)return t("DID_THROW_ITEM_INVALID",{id:h,error:e,status:{main:o,sub:e.code+" ("+e.body+")"}}),void u({error:e,file:Ct(A)});t("DID_THROW_ITEM_LOAD_ERROR",{id:h,error:e,status:{main:o,sub:n.options.labelTapToRetry}})})),A.on("load-file-error",(function(e){t("DID_THROW_ITEM_INVALID",{id:h,error:e.status,status:e.status}),u({error:e.status,file:Ct(A)})})),A.on("load-abort",(function(){t("REMOVE_ITEM",{query:h})})),A.on("load-skip",(function(){t("COMPLETE_LOAD_ITEM",{query:h,item:A,data:{source:r,success:s}})})),A.on("load",(function(){var o=function(o){o?(A.on("metadata-update",(function(e){t("DID_UPDATE_ITEM_METADATA",{id:h,change:e})})),Ut("SHOULD_PREPARE_OUTPUT",!1,{item:A,query:e}).then((function(o){var i=e("GET_BEFORE_PREPARE_FILE");i&&(o=i(A,o));var a=function(){t("COMPLETE_LOAD_ITEM",{query:h,item:A,data:{source:r,success:s}}),ln(t,n)};o?t("REQUEST_PREPARE_OUTPUT",{query:h,item:A,success:function(e){t("DID_PREPARE_OUTPUT",{id:h,file:e}),a()}},!0):a()}))):t("REMOVE_ITEM",{query:h})};Ut("DID_LOAD_ITEM",A,{query:e,dispatch:t}).then((function(){Mn(e("GET_BEFORE_ADD_FILE"),Ct(A)).then(o)})).catch((function(e){if(!e||!e.error||!e.status)return o(!1);t("DID_THROW_ITEM_INVALID",{id:h,error:e.error,status:e.status})}))})),A.on("process-start",(function(){t("DID_START_ITEM_PROCESSING",{id:h})})),A.on("process-progress",(function(e){t("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:h,progress:e})})),A.on("process-error",(function(e){t("DID_THROW_ITEM_PROCESSING_ERROR",{id:h,error:e,status:{main:bn(n.options.labelFileProcessingError)(e),sub:n.options.labelTapToRetry}})})),A.on("process-revert-error",(function(e){t("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:h,error:e,status:{main:bn(n.options.labelFileProcessingRevertError)(e),sub:n.options.labelTapToRetry}})})),A.on("process-complete",(function(e){t("DID_COMPLETE_ITEM_PROCESSING",{id:h,error:null,serverFileReference:e}),t("DID_DEFINE_VALUE",{id:h,value:e})})),A.on("process-abort",(function(){t("DID_ABORT_ITEM_PROCESSING",{id:h})})),A.on("process-revert",(function(){t("DID_REVERT_ITEM_PROCESSING",{id:h}),t("DID_DEFINE_VALUE",{id:h,value:null})})),t("DID_ADD_ITEM",{id:h,index:a,interactionMethod:c}),ln(t,n);var q=n.options.server||{},v=q.url,_=q.load,g=q.restore,y=q.fetch;A.load(r,Ne(O===jt.INPUT?K(r)&&sn(r)&&y?Ye(v,y):cn:O===jt.LIMBO?Ye(v,g):Ye(v,_)),(function(t,n,o){Ut("LOAD_FILE",t,{query:e}).then(n).catch(o)}))}},REQUEST_PREPARE_OUTPUT:function(t){var n=t.item,o=t.success,r=t.failure,i=void 0===r?function(){}:r,a={error:$e("error",0,"Item not found"),file:null};if(n.archived)return i(a);Ut("PREPARE_OUTPUT",n.file,{query:e,item:n}).then((function(t){Ut("COMPLETE_PREPARE_OUTPUT",t,{query:e,item:n}).then((function(t){if(n.archived)return i(a);o(t)}))}))},COMPLETE_LOAD_ITEM:function(o){var r=o.item,i=o.data,a=i.success,c=i.source,p=e("GET_ITEM_INSERT_LOCATION");if(ot(p)&&c&&dn(n,p),t("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===jt.INPUT?null:c}),a(Ct(r)),r.origin!==jt.LOCAL)return r.origin===jt.LIMBO?(t("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:c}),void t("DID_DEFINE_VALUE",{id:r.id,value:r.serverId||c})):void(e("IS_ASYNC")&&n.options.instantUpload&&t("REQUEST_ITEM_PROCESSING",{query:r.id}));t("DID_LOAD_LOCAL_ITEM",{id:r.id})},RETRY_ITEM_LOAD:zn(n,(function(t){t.retryLoad()})),REQUEST_ITEM_PREPARE:zn(n,(function(e,n,o){t("REQUEST_PREPARE_OUTPUT",{query:e.id,item:e,success:function(o){t("DID_PREPARE_OUTPUT",{id:e.id,file:o}),n({file:e,output:o})},failure:o},!0)})),REQUEST_ITEM_PROCESSING:zn(n,(function(o,r,i){if(o.status===$t.IDLE||o.status===$t.PROCESSING_ERROR)o.status!==$t.PROCESSING_QUEUED&&(o.requestProcessing(),t("DID_REQUEST_ITEM_PROCESSING",{id:o.id}),t("PROCESS_ITEM",{query:o,success:r,failure:i},!0));else{var a=function(){return t("REQUEST_ITEM_PROCESSING",{query:o,success:r,failure:i})},c=function(){return document.hidden?a():setTimeout(a,32)};o.status===$t.PROCESSING_COMPLETE||o.status===$t.PROCESSING_REVERT_ERROR?o.revert(Qe(n.options.server.url,n.options.server.revert),e("GET_FORCE_REVERT")).then(c).catch((function(){})):o.status===$t.PROCESSING&&o.abortProcessing().then(c)}})),PROCESS_ITEM:zn(n,(function(o,r,i){var a=e("GET_MAX_PARALLEL_UPLOADS");if(e("GET_ITEMS_BY_STATUS",$t.PROCESSING).length!==a){if(o.status!==$t.PROCESSING){var c=function e(){var o=n.processingQueue.shift();if(o){var r=o.id,i=o.success,a=o.failure,c=te(n.items,r);c&&!c.archived?t("PROCESS_ITEM",{query:r,success:i,failure:a},!0):e()}};o.onOnce("process-complete",(function(){r(Ct(o)),c();var i=n.options.server;if(n.options.instantUpload&&o.origin===jt.LOCAL&&ot(i.remove)){var a=function(){};o.origin=jt.LIMBO,n.options.server.remove(o.source,a,a)}e("GET_ITEMS_BY_STATUS",$t.PROCESSING_COMPLETE).length===n.items.length&&t("DID_COMPLETE_ITEM_PROCESSING_ALL")})),o.onOnce("process-error",(function(t){i({error:t,file:Ct(o)}),c()}));var p=n.options;o.process(Je(Ge(p.server.url,p.server.process,p.name,{chunkTransferId:o.transferId,chunkServer:p.server.patch,chunkUploads:p.chunkUploads,chunkForce:p.chunkForce,chunkSize:p.chunkSize,chunkRetryDelays:p.chunkRetryDelays}),{allowMinimumUploadDuration:e("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(n,r,i){Ut("PREPARE_OUTPUT",n,{query:e,item:o}).then((function(e){t("DID_PREPARE_OUTPUT",{id:o.id,file:e}),r(e)})).catch(i)}))}}else n.processingQueue.push({id:o.id,success:r,failure:i})})),RETRY_ITEM_PROCESSING:zn(n,(function(e){t("REQUEST_ITEM_PROCESSING",{query:e})})),REQUEST_REMOVE_ITEM:zn(n,(function(n){Mn(e("GET_BEFORE_REMOVE_FILE"),Ct(n)).then((function(e){e&&t("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:zn(n,(function(t){t.release()})),REMOVE_ITEM:zn(n,(function(o,r,i,a){var c=function(){var e=o.id;an(n.items,e).archive(),t("DID_REMOVE_ITEM",{error:null,id:e,item:o}),ln(t,n),r(Ct(o))},p=n.options.server;o.origin===jt.LOCAL&&p&&ot(p.remove)&&!1!==a.remove?(t("DID_START_ITEM_REMOVE",{id:o.id}),p.remove(o.source,(function(){return c()}),(function(e){t("DID_THROW_ITEM_REMOVE_ERROR",{id:o.id,error:$e("error",0,e,null),status:{main:bn(n.options.labelFileRemoveError)(e),sub:n.options.labelTapToRetry}})}))):((a.revert&&o.origin!==jt.LOCAL&&null!==o.serverId||n.options.chunkUploads&&o.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&o.revert(Qe(n.options.server.url,n.options.server.revert),e("GET_FORCE_REVERT")),c())})),ABORT_ITEM_LOAD:zn(n,(function(t){t.abortLoad()})),ABORT_ITEM_PROCESSING:zn(n,(function(e){e.serverId?t("REVERT_ITEM_PROCESSING",{id:e.id}):e.abortProcessing().then((function(){n.options.instantUpload&&t("REMOVE_ITEM",{query:e.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:zn(n,(function(o){if(n.options.instantUpload){var r=function(e){e&&t("REVERT_ITEM_PROCESSING",{query:o})},i=e("GET_BEFORE_REMOVE_FILE");if(!i)return r(!0);var a=i(Ct(o));return null==a?r(!0):"boolean"==typeof a?r(a):void("function"==typeof a.then&&a.then(r))}t("REVERT_ITEM_PROCESSING",{query:o})})),REVERT_ITEM_PROCESSING:zn(n,(function(o){o.revert(Qe(n.options.server.url,n.options.server.revert),e("GET_FORCE_REVERT")).then((function(){(n.options.instantUpload||un(o))&&t("REMOVE_ITEM",{query:o.id})})).catch((function(){}))})),SET_OPTIONS:function(e){var n=e.options,o=Object.keys(n),r=On.filter((function(t){return o.includes(t)}));[].concat(wt(r),wt(Object.keys(n).filter((function(t){return!r.includes(t)})))).forEach((function(e){t("SET_"+mt(e,"_").toUpperCase(),{value:n[e]})}))}}},On=["server"],An=function(t){return t},mn=function(t){return document.createElement(t)},hn=function(t,e){var n=t.childNodes[0];n?e!==n.nodeValue&&(n.nodeValue=e):(n=document.createTextNode(e),t.appendChild(n))},qn=function(t,e,n,o){var r=(o%360-90)*Math.PI/180;return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}},vn=function(t,e,n,o,r,i){var a=qn(t,e,n,r),c=qn(t,e,n,o);return["M",a.x,a.y,"A",n,n,0,i,0,c.x,c.y].join(" ")},_n=function(t,e,n,o,r){var i=1;return r>o&&r-o<=.5&&(i=0),o>r&&o-r>=.5&&(i=0),vn(t,e,n,360*Math.min(.9999,o),360*Math.min(.9999,r),i)},gn=function(t){var e=t.root,n=t.props;n.spin=!1,n.progress=0,n.opacity=0;var o=b("svg");e.ref.path=b("path",{"stroke-width":2,"stroke-linecap":"round"}),o.appendChild(e.ref.path),e.ref.svg=o,e.appendChild(o)},yn=function(t){var e=t.root,n=t.props;if(0!==n.opacity){n.align&&(e.element.dataset.align=n.align);var o=parseInt(a(e.ref.path,"stroke-width"),10),r=.5*e.rect.element.width,i=0,c=0;n.spin?(i=0,c=.5):(i=0,c=n.progress);var p=_n(r,r,r-o,i,c);a(e.ref.path,"d",p),a(e.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},Wn=D({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:gn,write:yn,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Rn=function(t){var e=t.root,n=t.props;e.element.innerHTML=(n.icon||"")+""+n.label+"",n.isDisabled=!1},Ln=function(t){var e=t.root,n=t.props,o=n.isDisabled,r=e.query("GET_DISABLED")||0===n.opacity;r&&!o?(n.isDisabled=!0,a(e.element,"disabled","disabled")):!r&&o&&(n.isDisabled=!1,e.element.removeAttribute("disabled"))},wn=D({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:Rn,write:Ln}),Tn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=o.labelBytes,i=void 0===r?"bytes":r,a=o.labelKilobytes,c=void 0===a?"KB":a,p=o.labelMegabytes,s=void 0===p?"MB":p,b=o.labelGigabytes,u=void 0===b?"GB":b,l=n,M=n*n,d=n*n*n;return(t=Math.round(Math.abs(t)))16&&!o&&(o=!0,e.element.removeEventListener("click",e.ref.handleClick)),e.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:i}))},c=function t(c){c.isPrimary&&(document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",t),n.dragOffset={x:c.pageX-r.x,y:c.pageY-r.y},e.dispatch("DID_DROP_ITEM",{id:n.id,dragState:i}),o&&setTimeout((function(){return e.element.addEventListener("click",e.ref.handleClick)}),0))};document.addEventListener("pointermove",a),document.addEventListener("pointerup",c)}};e.element.addEventListener("pointerdown",o)}},yo=j({DID_UPDATE_PANEL_HEIGHT:function(t){var e=t.root,n=t.action;e.height=n.height}}),Wo=j({DID_GRAB_ITEM:function(t){var e=t.root;t.props.dragOrigin={x:e.translateX,y:e.translateY}},DID_DRAG_ITEM:function(t){t.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(t){var e=t.root,n=t.props;n.dragOffset=null,n.dragOrigin=null,e.element.dataset.dragState="drop"}},(function(t){var e=t.root,n=t.actions,o=t.props,r=t.shouldOptimize;"drop"===e.element.dataset.dragState&&e.scaleX<=1&&(e.element.dataset.dragState="idle");var i=n.concat().filter((function(t){return/^DID_/.test(t.type)})).reverse().find((function(t){return _o[t.type]}));i&&i.type!==o.currentState&&(o.currentState=i.type,e.element.dataset.filepondItemState=_o[o.currentState]||"");var a=e.query("GET_ITEM_PANEL_ASPECT_RATIO")||e.query("GET_PANEL_ASPECT_RATIO");a?r||(e.height=e.rect.element.width*a):(yo({root:e,actions:n,props:o}),!e.height&&e.ref.container.rect.element.height>0&&(e.height=e.ref.container.rect.element.height)),r&&(e.ref.panel.height=null),e.ref.panel.height=e.height})),Ro=D({create:go,write:Wo,destroy:function(t){var e=t.root,n=t.props;e.element.removeEventListener("click",e.ref.handleClick),e.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:vo,scaleY:vo,translateX:qo,translateY:qo,opacity:{type:"tween",duration:150}}}}),Lo=function(t,e){return Math.max(1,Math.floor((t+1)/e))},wo=function(t,e,n){if(n){var o=t.rect.element.width,r=e.length,i=null;if(0===r||n.topA){if(n.left3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t.dragOffset?(t.translateX=null,t.translateY=null,t.translateX=t.dragOrigin.x+t.dragOffset.x,t.translateY=t.dragOrigin.y+t.dragOffset.y,t.scaleX=1.025,t.scaleY=1.025):(t.translateX=e,t.translateY=n,Date.now()>t.spawnDate&&(0===t.opacity&&So(t,e,n,o,r),t.scaleX=1,t.scaleY=1,t.opacity=1))},So=function(t,e,n,o,r){t.interactionMethod===_t.NONE?(t.translateX=null,t.translateX=e,t.translateY=null,t.translateY=n):t.interactionMethod===_t.DROP?(t.translateX=null,t.translateX=e-20*o,t.translateY=null,t.translateY=n-10*r,t.scaleX=.8,t.scaleY=.8):t.interactionMethod===_t.BROWSE?(t.translateY=null,t.translateY=n-30):t.interactionMethod===_t.API&&(t.translateX=null,t.translateX=e-30,t.translateY=null)},Xo=function(t){var e=t.root,n=t.action.id,o=e.childViews.find((function(t){return t.id===n}));o&&(o.scaleX=.9,o.scaleY=.9,o.opacity=0,o.markedForRemoval=!0)},ko=function(t){return t.rect.element.height+.5*t.rect.element.marginBottom+.5*t.rect.element.marginTop},No=function(t){return t.rect.element.width+.5*t.rect.element.marginLeft+.5*t.rect.element.marginRight},Co=function(t){var e=t.root,n=t.action,o=n.id,r=n.dragState,i=e.query("GET_ITEM",{id:o}),a=e.childViews.find((function(t){return t.id===o})),c=e.childViews.length,p=r.getItemIndex(i);if(a){var s={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},b=ko(a),u=No(a),l=Math.floor(e.rect.outer.width/u);l>c&&(l=c);var M=Math.floor(c/l+1);To.setHeight=b*M,To.setWidth=u*l;var d={y:Math.floor(s.y/b),x:Math.floor(s.x/u),getGridIndex:function(){return s.y>To.getHeight||s.y<0||s.x>To.getWidth||s.x<0?p:this.y*l+this.x},getColIndex:function(){for(var t=e.query("GET_ACTIVE_ITEMS"),n=e.childViews.filter((function(t){return t.rect.element.height})),o=t.map((function(t){return n.find((function(e){return e.id===t.id}))})),r=o.findIndex((function(t){return t===a})),i=ko(a),c=o.length,p=c,b=0,u=0,l=0;ll){if(s.y1?d.getGridIndex():d.getColIndex();e.dispatch("MOVE_ITEM",{query:a,index:z});var f=r.getIndex();if(void 0===f||f!==z){if(r.setIndex(z),void 0===f)return;e.dispatch("DID_REORDER_ITEMS",{items:e.query("GET_ACTIVE_ITEMS"),origin:p,target:z})}}},Do=j({DID_ADD_ITEM:xo,DID_REMOVE_ITEM:Xo,DID_DRAG_ITEM:Co}),$o=function(t){var e=t.root,n=t.props,o=t.actions,r=t.shouldOptimize;Do({root:e,props:n,actions:o});var i=n.dragCoordinates,a=e.rect.element.width,c=e.childViews.filter((function(t){return t.rect.element.height})),p=e.query("GET_ACTIVE_ITEMS").map((function(t){return c.find((function(e){return e.id===t.id}))})).filter((function(t){return t})),s=i?wo(e,p,i):null,b=e.ref.addIndex||null;e.ref.addIndex=null;var u=0,l=0,M=0;if(0!==p.length){var d=p[0].rect.element,z=d.marginTop+d.marginBottom,f=d.marginLeft+d.marginRight,O=d.width+f,A=d.height+z,m=Lo(a,O);if(1===m){var h=0,q=0;p.forEach((function(t,e){if(s){var n=e-s;q=-2===n?.25*-z:-1===n?.75*-z:0===n?.75*z:1===n?.25*z:0}r&&(t.translateX=null,t.translateY=null),t.markedForRemoval||Eo(t,0,h+q);var o=(t.rect.element.height+z)*(t.markedForRemoval?t.opacity:1);h+=o}))}else{var v=0,_=0;p.forEach((function(t,e){e===s&&(u=1),e===b&&(M+=1),t.markedForRemoval&&t.opacity<.5&&(l-=1);var n=e+M+u+l,o=n%m,i=Math.floor(n/m),a=o*O,c=i*A,p=Math.sign(a-v),d=Math.sign(c-_);v=a,_=c,t.markedForRemoval||(r&&(t.translateX=null,t.translateY=null),Eo(t,a,c,p,d))}))}}},jo=function(t,e){return e.filter((function(e){return!e.data||!e.data.id||t.id===e.data.id}))},Po=D({create:Bo,write:$o,tag:"ul",name:"list",didWriteView:function(t){var e=t.root;e.childViews.filter((function(t){return t.markedForRemoval&&0===t.opacity&&t.resting})).forEach((function(t){t._destroy(),e.removeChildView(t)}))},filterFrameActionsForChild:jo,mixins:{apis:["dragCoordinates"]}}),Io=function(t){var e=t.root,n=t.props;e.ref.list=e.appendChildView(e.createChildView(Po)),n.dragCoordinates=null,n.overflowing=!1},Yo=function(t){var e=t.root,n=t.props,o=t.action;e.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:o.position.scopeLeft-e.ref.list.rect.element.left,top:o.position.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Ho=j({DID_DRAG:Yo,DID_END_DRAG:function(t){t.props.dragCoordinates=null}}),Fo=function(t){var e=t.root,n=t.props,o=t.actions;if(Ho({root:e,props:n,actions:o}),e.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,e.element.dataset.state="",e.height=null),n.overflow){var r=Math.round(n.overflow);r!==e.height&&(n.overflowing=!0,e.element.dataset.state="overflow",e.height=r)}},Uo=D({create:Io,write:Fo,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Go=function(t,e,n){n?a(t,e,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):t.removeAttribute(e)},Qo=function(t){if(t&&""!==t.value){try{t.value=""}catch(t){}if(t.value){var e=mn("form"),n=t.parentNode,o=t.nextSibling;e.appendChild(t),e.reset(),o?n.insertBefore(t,o):n.appendChild(t)}}},Vo=function(t){var e=t.root,n=t.props;e.element.id="filepond--browser-"+n.id,a(e.element,"name",e.query("GET_NAME")),a(e.element,"aria-controls","filepond--assistant-"+n.id),a(e.element,"aria-labelledby","filepond--drop-label-"+n.id),Ko({root:e,action:{value:e.query("GET_ACCEPTED_FILE_TYPES")}}),Jo({root:e,action:{value:e.query("GET_ALLOW_MULTIPLE")}}),Zo({root:e,action:{value:e.query("GET_ALLOW_DIRECTORIES_ONLY")}}),tr({root:e}),er({root:e,action:{value:e.query("GET_REQUIRED")}}),nr({root:e,action:{value:e.query("GET_CAPTURE_METHOD")}}),e.ref.handleChange=function(t){if(e.element.value){var o=Array.from(e.element.files).map((function(t){return t._relativePath=t.webkitRelativePath,t}));setTimeout((function(){n.onload(o),Qo(e.element)}),250)}},e.element.addEventListener("change",e.ref.handleChange)},Ko=function(t){var e=t.root,n=t.action;e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Go(e.element,"accept",!!n.value,n.value?n.value.join(","):"")},Jo=function(t){var e=t.root,n=t.action;Go(e.element,"multiple",n.value)},Zo=function(t){var e=t.root,n=t.action;Go(e.element,"webkitdirectory",n.value)},tr=function(t){var e=t.root,n=e.query("GET_DISABLED"),o=e.query("GET_ALLOW_BROWSE"),r=n||!o;Go(e.element,"disabled",r)},er=function(t){var e=t.root;t.action.value?0===e.query("GET_TOTAL_ITEMS")&&Go(e.element,"required",!0):Go(e.element,"required",!1)},nr=function(t){var e=t.root,n=t.action;Go(e.element,"capture",!!n.value,!0===n.value?"":n.value)},or=function(t){var e=t.root,n=e.element;e.query("GET_TOTAL_ITEMS")>0?(Go(n,"required",!1),Go(n,"name",!1)):(Go(n,"name",!0,e.query("GET_NAME")),e.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),e.query("GET_REQUIRED")&&Go(n,"required",!0))},rr=function(t){var e=t.root;e.query("GET_CHECK_VALIDITY")&&e.element.setCustomValidity(e.query("GET_LABEL_INVALID_FIELD"))},ir=D({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Vo,destroy:function(t){var e=t.root;e.element.removeEventListener("change",e.ref.handleChange)},write:j({DID_LOAD_ITEM:or,DID_REMOVE_ITEM:or,DID_THROW_ITEM_INVALID:rr,DID_SET_DISABLED:tr,DID_SET_ALLOW_BROWSE:tr,DID_SET_ALLOW_DIRECTORIES_ONLY:Zo,DID_SET_ALLOW_MULTIPLE:Jo,DID_SET_ACCEPTED_FILE_TYPES:Ko,DID_SET_CAPTURE_METHOD:nr,DID_SET_REQUIRED:er})}),ar={ENTER:13,SPACE:32},cr=function(t){var e=t.root,n=t.props,o=mn("label");a(o,"for","filepond--browser-"+n.id),a(o,"id","filepond--drop-label-"+n.id),a(o,"aria-hidden","true"),e.ref.handleKeyDown=function(t){(t.keyCode===ar.ENTER||t.keyCode===ar.SPACE)&&(t.preventDefault(),e.ref.label.click())},e.ref.handleClick=function(t){t.target===o||o.contains(t.target)||e.ref.label.click()},o.addEventListener("keydown",e.ref.handleKeyDown),e.element.addEventListener("click",e.ref.handleClick),pr(o,n.caption),e.appendChild(o),e.ref.label=o},pr=function(t,e){t.innerHTML=e;var n=t.querySelector(".filepond--label-action");return n&&a(n,"tabindex","0"),e},sr=D({name:"drop-label",ignoreRect:!0,create:cr,destroy:function(t){var e=t.root;e.ref.label.addEventListener("keydown",e.ref.handleKeyDown),e.element.removeEventListener("click",e.ref.handleClick)},write:j({DID_SET_LABEL_IDLE:function(t){var e=t.root,n=t.action;pr(e.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),br=D({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}}}}),ur=function(t){var e=t.root,n=.5*e.rect.element.width,o=.5*e.rect.element.height;e.ref.blob=e.appendChildView(e.createChildView(br,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:o}))},lr=function(t){var e=t.root,n=t.action;e.ref.blob?(e.ref.blob.translateX=n.position.scopeLeft,e.ref.blob.translateY=n.position.scopeTop,e.ref.blob.scaleX=1,e.ref.blob.scaleY=1,e.ref.blob.opacity=1):ur({root:e})},Mr=function(t){var e=t.root;e.ref.blob&&(e.ref.blob.opacity=0)},dr=function(t){var e=t.root;e.ref.blob&&(e.ref.blob.scaleX=2.5,e.ref.blob.scaleY=2.5,e.ref.blob.opacity=0)},zr=function(t){var e=t.root,n=t.props,o=t.actions;fr({root:e,props:n,actions:o});var r=e.ref.blob;0===o.length&&r&&0===r.opacity&&(e.removeChildView(r),e.ref.blob=null)},fr=j({DID_DRAG:lr,DID_DROP:dr,DID_END_DRAG:Mr}),Or=D({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:zr}),Ar=function(t,e){try{var n=new DataTransfer;e.forEach((function(t){t instanceof File?n.items.add(t):n.items.add(new File([t],t.name,{type:t.type}))})),t.files=n.files}catch(t){return!1}return!0},mr=function(t){return t.root.ref.fields={}},hr=function(t,e){return t.ref.fields[e]},qr=function(t){t.query("GET_ACTIVE_ITEMS").forEach((function(e){t.ref.fields[e.id]&&t.element.appendChild(t.ref.fields[e.id])}))},vr=function(t){var e=t.root;return qr(e)},_r=function(t){var e=t.root,n=t.action,o=!(e.query("GET_ITEM",n.id).origin===jt.LOCAL)&&e.query("SHOULD_UPDATE_FILE_INPUT"),r=mn("input");r.type=o?"file":"hidden",r.name=e.query("GET_NAME"),r.disabled=e.query("GET_DISABLED"),e.ref.fields[n.id]=r,qr(e)},gr=function(t){var e=t.root,n=t.action,o=hr(e,n.id);if(o&&(null!==n.serverFileReference&&(o.value=n.serverFileReference),e.query("SHOULD_UPDATE_FILE_INPUT"))){var r=e.query("GET_ITEM",n.id);Ar(o,[r.file])}},yr=function(t){var e=t.root,n=t.action;e.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var t=hr(e,n.id);t&&Ar(t,[n.file])}),0)},Wr=function(t){var e=t.root;e.element.disabled=e.query("GET_DISABLED")},Rr=function(t){var e=t.root,n=t.action,o=hr(e,n.id);o&&(o.parentNode&&o.parentNode.removeChild(o),delete e.ref.fields[n.id])},Lr=function(t){var e=t.root,n=t.action,o=hr(e,n.id);o&&(null===n.value?o.removeAttribute("value"):o.value=n.value,qr(e))},wr=j({DID_SET_DISABLED:Wr,DID_ADD_ITEM:_r,DID_LOAD_ITEM:gr,DID_REMOVE_ITEM:Rr,DID_DEFINE_VALUE:Lr,DID_PREPARE_OUTPUT:yr,DID_REORDER_ITEMS:vr,DID_SORT_ITEMS:vr}),Tr=D({tag:"fieldset",name:"data",create:mr,write:wr,ignoreRect:!0}),Br=function(t){return"getRootNode"in t?t.getRootNode():document},xr=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Er=["css","csv","html","txt"],Sr={zip:"zip|compressed",epub:"application/epub+zip"},Xr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=t.toLowerCase(),xr.includes(t)?"image/"+("jpg"===t?"jpeg":"svg"===t?"svg+xml":t):Er.includes(t)?"text/"+t:Sr[t]||""},kr=function(t){return new Promise((function(e,n){var o=Fr(t);if(o.length&&!Nr(t))return e(o);Cr(t).then(e)}))},Nr=function(t){return!!t.files&&t.files.length>0},Cr=function(t){return new Promise((function(e,n){var o=(t.items?Array.from(t.items):[]).filter((function(t){return Dr(t)})).map((function(t){return $r(t)}));o.length?Promise.all(o).then((function(t){var n=[];t.forEach((function(t){n.push.apply(n,t)})),e(n.filter((function(t){return t})).map((function(t){return t._relativePath||(t._relativePath=t.webkitRelativePath),t})))})).catch(console.error):e(t.files?Array.from(t.files):[])}))},Dr=function(t){if(Yr(t)){var e=Hr(t);if(e)return e.isFile||e.isDirectory}return"file"===t.kind},$r=function(t){return new Promise((function(e,n){Ir(t)?jr(Hr(t)).then(e).catch(n):e([t.getAsFile()])}))},jr=function(t){return new Promise((function(e,n){var o=[],r=0,i=0,a=function(){0===i&&0===r&&e(o)},c=function t(e){r++;var c=e.createReader(),p=function e(){c.readEntries((function(n){if(0===n.length)return r--,void a();n.forEach((function(e){e.isDirectory?t(e):(i++,e.file((function(t){var n=Pr(t);e.fullPath&&(n._relativePath=e.fullPath),o.push(n),i--,a()})))})),e()}),n)};p()};c(t)}))},Pr=function(t){if(t.type.length)return t;var e=t.lastModifiedDate,n=t.name,o=Xr(he(t.name));return o.length?((t=t.slice(0,t.size,o)).name=n,t.lastModifiedDate=e,t):t},Ir=function(t){return Yr(t)&&(Hr(t)||{}).isDirectory},Yr=function(t){return"webkitGetAsEntry"in t},Hr=function(t){return t.webkitGetAsEntry()},Fr=function(t){var e=[];try{if((e=Gr(t)).length)return e;e=Ur(t)}catch(t){}return e},Ur=function(t){var e=t.getData("url");return"string"==typeof e&&e.length?[e]:[]},Gr=function(t){var e=t.getData("text/html");if("string"==typeof e&&e.length){var n=e.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Qr=[],Vr=function(t){return{pageLeft:t.pageX,pageTop:t.pageY,scopeLeft:t.offsetX||t.layerX,scopeTop:t.offsetY||t.layerY}},Kr=function(t,e,n){var o=Jr(e),r={element:t,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return r.destroy=o.addListener(r),r},Jr=function(t){var e=Qr.find((function(e){return e.element===t}));if(e)return e;var n=Zr(t);return Qr.push(n),n},Zr=function(t){var e=[],n={dragenter:ri,dragover:ii,dragleave:ci,drop:ai},o={};r(n,(function(n,r){o[n]=r(t,e),t.addEventListener(n,o[n],!1)}));var i={element:t,addListener:function(a){return e.push(a),function(){e.splice(e.indexOf(a),1),0===e.length&&(Qr.splice(Qr.indexOf(i),1),r(n,(function(e){t.removeEventListener(e,o[e],!1)})))}}};return i},ti=function(t,e){return"elementFromPoint"in t||(t=document),t.elementFromPoint(e.x,e.y)},ei=function(t,e){var n=Br(e),o=ti(n,{x:t.pageX-window.pageXOffset,y:t.pageY-window.pageYOffset});return o===e||e.contains(o)},ni=null,oi=function(t,e){try{t.dropEffect=e}catch(t){}},ri=function(t,e){return function(t){t.preventDefault(),ni=t.target,e.forEach((function(e){var n=e.element,o=e.onenter;ei(t,n)&&(e.state="enter",o(Vr(t)))}))}},ii=function(t,e){return function(t){t.preventDefault();var n=t.dataTransfer;kr(n).then((function(o){var r=!1;e.some((function(e){var i=e.filterElement,a=e.element,c=e.onenter,p=e.onexit,s=e.ondrag,b=e.allowdrop;oi(n,"copy");var u=b(o);if(u)if(ei(t,a)){if(r=!0,null===e.state)return e.state="enter",void c(Vr(t));if(e.state="over",i&&!u)return void oi(n,"none");s(Vr(t))}else i&&!r&&oi(n,"none"),e.state&&(e.state=null,p(Vr(t)));else oi(n,"none")}))}))}},ai=function(t,e){return function(t){t.preventDefault();var n=t.dataTransfer;kr(n).then((function(n){e.forEach((function(e){var o=e.filterElement,r=e.element,i=e.ondrop,a=e.onexit,c=e.allowdrop;if(e.state=null,!o||ei(t,r))return c(n)?void i(Vr(t),n):a(Vr(t))}))}))}},ci=function(t,e){return function(t){ni===t.target&&e.forEach((function(e){var n=e.onexit;e.state=null,n(Vr(t))}))}},pi=function(t,e,n){t.classList.add("filepond--hopper");var o=n.catchesDropsOnPage,r=n.requiresDropOnElement,i=n.filterItems,a=void 0===i?function(t){return t}:i,c=Kr(t,o?document.documentElement:t,r),p="",s="";c.allowdrop=function(t){return e(a(t))},c.ondrop=function(t,n){var o=a(n);e(o)?(s="drag-drop",b.onload(o,t)):b.ondragend(t)},c.ondrag=function(t){b.ondrag(t)},c.onenter=function(t){s="drag-over",b.ondragstart(t)},c.onexit=function(t){s="drag-exit",b.ondragend(t)};var b={updateHopperState:function(){p!==s&&(t.dataset.hopperState=s,p=s)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){c.destroy()}};return b},si=!1,bi=[],ui=function(t){var e=document.activeElement;if(e&&/textarea|input/i.test(e.nodeName)){for(var n=!1,o=e;o!==document.body;){if(o.classList.contains("filepond--root")){n=!0;break}o=o.parentNode}if(!n)return}kr(t.clipboardData).then((function(t){t.length&&bi.forEach((function(e){return e(t)}))}))},li=function(t){bi.includes(t)||(bi.push(t),si||(si=!0,document.addEventListener("paste",ui)))},Mi=function(t){Et(bi,bi.indexOf(t)),0===bi.length&&(document.removeEventListener("paste",ui),si=!1)},di=function(){var t=function(t){e.onload(t)},e={destroy:function(){Mi(t)},onload:function(){}};return li(t),e},zi=function(t){var e=t.root,n=t.props;e.element.id="filepond--assistant-"+n.id,a(e.element,"role","status"),a(e.element,"aria-live","polite"),a(e.element,"aria-relevant","additions")},fi=null,Oi=null,Ai=[],mi=function(t,e){t.element.textContent=e},hi=function(t){t.element.textContent=""},qi=function(t,e,n){var o=t.query("GET_TOTAL_ITEMS");mi(t,n+" "+e+", "+o+" "+(1===o?t.query("GET_LABEL_FILE_COUNT_SINGULAR"):t.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(Oi),Oi=setTimeout((function(){hi(t)}),1500)},vi=function(t){return t.element.parentNode.contains(document.activeElement)},_i=function(t){var e=t.root,n=t.action;if(vi(e)){e.element.textContent="";var o=e.query("GET_ITEM",n.id);Ai.push(o.filename),clearTimeout(fi),fi=setTimeout((function(){qi(e,Ai.join(", "),e.query("GET_LABEL_FILE_ADDED")),Ai.length=0}),750)}},gi=function(t){var e=t.root,n=t.action;if(vi(e)){var o=n.item;qi(e,o.filename,e.query("GET_LABEL_FILE_REMOVED"))}},yi=function(t){var e=t.root,n=t.action,o=e.query("GET_ITEM",n.id).filename,r=e.query("GET_LABEL_FILE_PROCESSING_COMPLETE");mi(e,o+" "+r)},Wi=function(t){var e=t.root,n=t.action,o=e.query("GET_ITEM",n.id).filename,r=e.query("GET_LABEL_FILE_PROCESSING_ABORTED");mi(e,o+" "+r)},Ri=function(t){var e=t.root,n=t.action,o=e.query("GET_ITEM",n.id).filename;mi(e,n.status.main+" "+o+" "+n.status.sub)},Li=D({create:zi,ignoreRect:!0,ignoreRectUpdate:!0,write:j({DID_LOAD_ITEM:_i,DID_REMOVE_ITEM:gi,DID_COMPLETE_ITEM_PROCESSING:yi,DID_ABORT_ITEM_PROCESSING:Wi,DID_REVERT_ITEM_PROCESSING:Wi,DID_THROW_ITEM_REMOVE_ERROR:Ri,DID_THROW_ITEM_LOAD_ERROR:Ri,DID_THROW_ITEM_INVALID:Ri,DID_THROW_ITEM_PROCESSING_ERROR:Ri}),tag:"span",name:"assistant"}),wi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return t.replace(new RegExp(e+".","g"),(function(t){return t.charAt(1).toUpperCase()}))},Ti=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=Date.now(),r=null;return function(){for(var i=arguments.length,a=new Array(i),c=0;c2*R)for(var L=W.length,w=L-10,T=0,B=L;B>=w;B--)if(W[B]===W[B-2]&&T++,T>=R)return;s.scalable=!1,s.height=y;var x=y-m-(q-f.bottom)-(M?h:0);O.visual>x?p.overflow=x:p.overflow=null,e.height=y}else if(r.fixedHeight){s.scalable=!1;var E=r.fixedHeight-m-(q-f.bottom)-(M?h:0);O.visual>E?p.overflow=E:p.overflow=null}else if(r.cappedHeight){var S=v>=r.cappedHeight,X=Math.min(r.cappedHeight,v);s.scalable=!0,s.height=S?X:X-f.top-f.bottom;var k=X-m-(q-f.bottom)-(M?h:0);v>r.cappedHeight&&O.visual>k?p.overflow=k:p.overflow=null,e.height=Math.min(r.cappedHeight,_-f.top-f.bottom)}else{var N=l>0?f.top+f.bottom:0;s.scalable=!0,s.height=Math.max(A,v-N),e.height=Math.max(A,_-N)}e.ref.credits&&s.heightCurrent&&(e.ref.credits.style.transform="translateY("+s.heightCurrent+"px)")}},Xi=function(t){var e=t.ref.list.childViews[0].childViews[0];return e?{top:e.rect.element.marginTop,bottom:e.rect.element.marginBottom}:{top:0,bottom:0}},ki=function(t){var e=0,n=0,o=t.ref.list,r=o.childViews[0],i=r.childViews.filter((function(t){return t.rect.element.height})),a=t.query("GET_ACTIVE_ITEMS").map((function(t){return i.find((function(e){return e.id===t.id}))})).filter((function(t){return t}));if(0===a.length)return{visual:e,bounds:n};var c=r.rect.element.width,p=wo(r,a,o.dragCoordinates),s=a[0].rect.element,b=s.marginTop+s.marginBottom,u=s.marginLeft+s.marginRight,l=s.width+u,M=s.height+b,d=void 0!==p&&p>=0?1:0,z=a.find((function(t){return t.markedForRemoval&&t.opacity<.45}))?-1:0,f=a.length+d+z,O=Lo(c,l);return 1===O?a.forEach((function(t){var o=t.rect.element.height+b;n+=o,e+=o*t.opacity})):(n=Math.ceil(f/O)*M,e=n),{visual:e,bounds:n}},Ni=function(t){var e=t.ref.measureHeight||null;return{cappedHeight:parseInt(t.style.maxHeight,10)||null,fixedHeight:0===e?null:e}},Ci=function(t,e){var n=t.query("GET_ALLOW_REPLACE"),o=t.query("GET_ALLOW_MULTIPLE"),r=t.query("GET_TOTAL_ITEMS"),i=t.query("GET_MAX_FILES"),a=e.length;return!o&&a>1||!!(et(i=o||n?i:1)&&r+a>i)&&(t.dispatch("DID_THROW_MAX_FILES",{source:e,error:$e("warning",0,"Max files")}),!0)},Di=function(t,e,n){var o=t.childViews[0];return wo(o,e,{left:n.scopeLeft-o.rect.element.left,top:n.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},$i=function(t){var e=t.query("GET_ALLOW_DROP"),n=t.query("GET_DISABLED"),o=e&&!n;if(o&&!t.ref.hopper){var r=pi(t.element,(function(e){var n=t.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!t.query("GET_DROP_VALIDATION")||e.every((function(e){return Gt("ALLOW_HOPPER_ITEM",e,{query:t.query}).every((function(t){return!0===t}))&&n(e)}))}),{filterItems:function(e){var n=t.query("GET_IGNORED_FILES");return e.filter((function(t){return!en(t)||!n.includes(t.name.toLowerCase())}))},catchesDropsOnPage:t.query("GET_DROP_ON_PAGE"),requiresDropOnElement:t.query("GET_DROP_ON_ELEMENT")});r.onload=function(e,n){var o=t.ref.list.childViews[0].childViews.filter((function(t){return t.rect.element.height})),r=t.query("GET_ACTIVE_ITEMS").map((function(t){return o.find((function(e){return e.id===t.id}))})).filter((function(t){return t}));Ut("ADD_ITEMS",e,{dispatch:t.dispatch}).then((function(e){if(Ci(t,e))return!1;t.dispatch("ADD_ITEMS",{items:e,index:Di(t.ref.list,r,n),interactionMethod:_t.DROP})})),t.dispatch("DID_DROP",{position:n}),t.dispatch("DID_END_DRAG",{position:n})},r.ondragstart=function(e){t.dispatch("DID_START_DRAG",{position:e})},r.ondrag=Ti((function(e){t.dispatch("DID_DRAG",{position:e})})),r.ondragend=function(e){t.dispatch("DID_END_DRAG",{position:e})},t.ref.hopper=r,t.ref.drip=t.appendChildView(t.createChildView(Or))}else!o&&t.ref.hopper&&(t.ref.hopper.destroy(),t.ref.hopper=null,t.removeChildView(t.ref.drip))},ji=function(t,e){var n=t.query("GET_ALLOW_BROWSE"),o=t.query("GET_DISABLED"),r=n&&!o;r&&!t.ref.browser?t.ref.browser=t.appendChildView(t.createChildView(ir,Object.assign({},e,{onload:function(e){Ut("ADD_ITEMS",e,{dispatch:t.dispatch}).then((function(e){if(Ci(t,e))return!1;t.dispatch("ADD_ITEMS",{items:e,index:-1,interactionMethod:_t.BROWSE})}))}})),0):!r&&t.ref.browser&&(t.removeChildView(t.ref.browser),t.ref.browser=null)},Pi=function(t){var e=t.query("GET_ALLOW_PASTE"),n=t.query("GET_DISABLED"),o=e&&!n;o&&!t.ref.paster?(t.ref.paster=di(),t.ref.paster.onload=function(e){Ut("ADD_ITEMS",e,{dispatch:t.dispatch}).then((function(e){if(Ci(t,e))return!1;t.dispatch("ADD_ITEMS",{items:e,index:-1,interactionMethod:_t.PASTE})}))}):!o&&t.ref.paster&&(t.ref.paster.destroy(),t.ref.paster=null)},Ii=j({DID_SET_ALLOW_BROWSE:function(t){var e=t.root,n=t.props;ji(e,n)},DID_SET_ALLOW_DROP:function(t){var e=t.root;$i(e)},DID_SET_ALLOW_PASTE:function(t){var e=t.root;Pi(e)},DID_SET_DISABLED:function(t){var e=t.root,n=t.props;$i(e),Pi(e),ji(e,n),e.query("GET_DISABLED")?e.element.dataset.disabled="disabled":e.element.removeAttribute("data-disabled")}}),Yi=D({name:"root",read:function(t){var e=t.root;e.ref.measure&&(e.ref.measureHeight=e.ref.measure.offsetHeight)},create:Ei,write:Si,destroy:function(t){var e=t.root;e.ref.paster&&e.ref.paster.destroy(),e.ref.hopper&&e.ref.hopper.destroy(),e.element.removeEventListener("touchmove",xi),e.element.removeEventListener("gesturestart",xi)},mixins:{styles:["height"]}}),Hi=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=null,o=Kt(),r=n(At(o),[Me,vt(o)],[fn,qt(o)]);r.dispatch("SET_OPTIONS",{options:t});var a=function(){document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",a);var c=null,p=!1,s=!1,b=null,u=null,l=function(){p||(p=!0),clearTimeout(c),c=setTimeout((function(){p=!1,b=null,u=null,s&&(s=!1,r.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",l);var M=Yi(r,{id:gt()}),d=!1,z=!1,f={_read:function(){p&&(u=window.innerWidth,b||(b=u),s||u===b||(r.dispatch("DID_START_RESIZE"),s=!0)),z&&d&&(d=null===M.element.offsetParent),d||(M._read(),z=M.rect.element.hidden)},_write:function(t){var e=r.processActionQueue().filter((function(t){return!/^SET_/.test(t.type)}));d&&!e.length||(q(e),d=M._write(t,e,s),Dt(r.query("GET_ITEMS")),d&&r.processDispatchQueue())}},O=function(t){return function(e){var n={type:t};if(!e)return n;if(e.hasOwnProperty("error")&&(n.error=e.error?Object.assign({},e.error):null),e.status&&(n.status=Object.assign({},e.status)),e.file&&(n.output=e.file),e.source)n.file=e.source;else if(e.item||e.id){var o=e.item?e.item:r.query("GET_ITEM",e.id);n.file=o?Ct(o):null}return e.items&&(n.items=e.items.map(Ct)),/progress/.test(t)&&(n.progress=e.progress),e.hasOwnProperty("origin")&&e.hasOwnProperty("target")&&(n.origin=e.origin,n.target=e.target),n}},A={DID_DESTROY:O("destroy"),DID_INIT:O("init"),DID_THROW_MAX_FILES:O("warning"),DID_INIT_ITEM:O("initfile"),DID_START_ITEM_LOAD:O("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:O("addfileprogress"),DID_LOAD_ITEM:O("addfile"),DID_THROW_ITEM_INVALID:[O("error"),O("addfile")],DID_THROW_ITEM_LOAD_ERROR:[O("error"),O("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[O("error"),O("removefile")],DID_PREPARE_OUTPUT:O("preparefile"),DID_START_ITEM_PROCESSING:O("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:O("processfileprogress"),DID_ABORT_ITEM_PROCESSING:O("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:O("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:O("processfiles"),DID_REVERT_ITEM_PROCESSING:O("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[O("error"),O("processfile")],DID_REMOVE_ITEM:O("removefile"),DID_UPDATE_ITEMS:O("updatefiles"),DID_ACTIVATE_ITEM:O("activatefile"),DID_REORDER_ITEMS:O("reorderfiles")},m=function(t){var e=Object.assign({pond:S},t);delete e.type,M.element.dispatchEvent(new CustomEvent("FilePond:"+t.type,{detail:e,bubbles:!0,cancelable:!0,composed:!0}));var n=[];t.hasOwnProperty("error")&&n.push(t.error),t.hasOwnProperty("file")&&n.push(t.file);var o=["type","error","file"];Object.keys(t).filter((function(t){return!o.includes(t)})).forEach((function(e){return n.push(t[e])})),S.fire.apply(S,[t.type].concat(n));var i=r.query("GET_ON"+t.type.toUpperCase());i&&i.apply(void 0,n)},q=function(t){t.length&&t.filter((function(t){return A[t.type]})).forEach((function(t){var e=A[t.type];(Array.isArray(e)?e:[e]).forEach((function(e){"DID_INIT_ITEM"===t.type?m(e(t.data)):setTimeout((function(){m(e(t.data))}),0)}))}))},v=function(t){return r.dispatch("SET_OPTIONS",{options:t})},_=function(t){return r.query("GET_ACTIVE_ITEM",t)},g=function(t){return new Promise((function(e,n){r.dispatch("REQUEST_ITEM_PREPARE",{query:t,success:function(t){e(t)},failure:function(t){n(t)}})}))},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){L([{source:t,options:e}],{index:e.index}).then((function(t){return n(t&&t[0])})).catch(o)}))},W=function(t){return t.file&&t.id},R=function(t,e){return"object"!=typeof t||W(t)||e||(e=t,t=void 0),r.dispatch("REMOVE_ITEM",Object.assign({},e,{query:t})),null===r.query("GET_ACTIVE_ITEM",t)},L=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e={};return r(Kt(),(function(t,n){e[t]=n[0]})),Hi(Object.assign({},e,{},t))},Ui=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Gi=function(t){return wi(t.replace(/^data-/,""))},Qi=function t(e,n){r(n,(function(n,o){r(e,(function(t,r){var i=new RegExp(n);if(i.test(t)&&(delete e[t],!1!==o))if(K(o))e[o]=r;else{var a=o.group;st(o)&&!e[a]&&(e[a]={}),e[a][Ui(t.replace(i,""))]=r}})),o.mapping&&t(e[o.group],o.mapping)}))},Vi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];r(t.attributes,(function(e){n.push(t.attributes[e])}));var o=n.filter((function(t){return t.name})).reduce((function(e,n){var o=a(t,n.name);return e[Gi(n.name)]=o===n.name||o,e}),{});return Qi(o,e),o},Ki=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Gt("SET_ATTRIBUTE_TO_OPTION_MAP",n);var o=Object.assign({},e),r=Vi("FIELDSET"===t.nodeName?t.querySelector("input[type=file]"):t,n);Object.keys(r).forEach((function(t){st(r[t])?(st(o[t])||(o[t]={}),Object.assign(o[t],r[t])):o[t]=r[t]})),o.files=(e.files||[]).concat(Array.from(t.querySelectorAll("input:not([type=file])")).map((function(t){return{source:t.value,options:{type:t.dataset.type}}})));var i=Fi(o);return t.files&&Array.from(t.files).forEach((function(t){i.addFile(t)})),i.replaceElement(t),i},Ji=function(){return e(arguments.length<=0?void 0:arguments[0])?Ki.apply(void 0,arguments):Fi.apply(void 0,arguments)},Zi=["fire","_read","_write"],ta=function(t){var e={};return kt(t,e,Zi),e},ea=function(t,e){return t.replace(/(?:{([a-zA-Z]+)})/g,(function(t,n){return e[n]}))},na=function(t){var e=new Blob(["(",t.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(e),o=new Worker(n);return{transfer:function(t,e){},post:function(t,e,n){var r=gt();o.onmessage=function(t){t.data.id===r&&e(t.data.message)},o.postMessage({id:r,message:t},n)},terminate:function(){o.terminate(),URL.revokeObjectURL(n)}}},oa=function(t){return new Promise((function(e,n){var o=new Image;o.onload=function(){e(o)},o.onerror=function(t){n(t)},o.src=t}))},ra=function(t,e){var n=t.slice(0,t.size,t.type);return n.lastModifiedDate=t.lastModifiedDate,n.name=e,n},ia=function(t){return ra(t,t.name)},aa=[],ca=function(t){if(!aa.includes(t)){aa.push(t);var e=t({addFilter:Qt,utils:{Type:Ht,forin:r,isString:K,isFile:en,toNaturalFileSize:Tn,replaceInString:ea,getExtensionFromFilename:he,getFilenameWithoutExtension:Ze,guesstimateMimeType:Xr,getFileFromBlob:ge,getFilenameFromURL:me,createRoute:j,createWorker:na,createView:D,createItemAPI:Ct,loadImage:oa,copyFile:ia,renameFile:ra,createBlob:We,applyFilterChain:Ut,text:hn,getNumericAspectRatioFromString:ee},views:{fileActionButton:wn}});Vt(e.options)}},pa=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},sa=function(){return"Promise"in window},ba=function(){return"slice"in Blob.prototype},ua=function(){return"URL"in window&&"createObjectURL"in window.URL},la=function(){return"visibilityState"in document},Ma=function(){return"performance"in window},da=function(){return"supports"in(window.CSS||{})},za=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},fa=(Gn=z()&&!pa()&&la()&&sa()&&ba()&&ua()&&Ma()&&(da()||za()),function(){return Gn}),Oa={apps:[]},Aa="filepond",ma=function(){};if(t.Status={},t.FileStatus={},t.FileOrigin={},t.OptionTypes={},t.create=ma,t.destroy=ma,t.parse=ma,t.find=ma,t.registerPlugin=ma,t.getOptions=ma,t.setOptions=ma,fa()){$((function(){Oa.apps.forEach((function(t){return t._read()}))}),(function(t){Oa.apps.forEach((function(e){return e._write(t)}))}));var ha=function e(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:fa,create:t.create,destroy:t.destroy,parse:t.parse,find:t.find,registerPlugin:t.registerPlugin,setOptions:t.setOptions}})),document.removeEventListener("DOMContentLoaded",e)};"loading"!==document.readyState?setTimeout((function(){return ha()}),0):document.addEventListener("DOMContentLoaded",ha);var qa=function(){return r(Kt(),(function(e,n){t.OptionTypes[e]=n[1]}))};t.Status=Object.assign({},oe),t.FileOrigin=Object.assign({},jt),t.FileStatus=Object.assign({},$t),t.OptionTypes={},qa(),t.create=function(){var e=Ji.apply(void 0,arguments);return e.on("destroy",t.destroy),Oa.apps.push(e),ta(e)},t.destroy=function(t){var e=Oa.apps.findIndex((function(e){return e.isAttachedTo(t)}));return e>=0&&(Oa.apps.splice(e,1)[0].restoreElement(),!0)},t.parse=function(e){return Array.from(e.querySelectorAll("."+Aa)).filter((function(t){return!Oa.apps.find((function(e){return e.isAttachedTo(t)}))})).map((function(e){return t.create(e)}))},t.find=function(t){var e=Oa.apps.find((function(e){return e.isAttachedTo(t)}));return e?ta(e):null},t.registerPlugin=function(){for(var t=arguments.length,e=new Array(t),n=0;n=300&&304!==this.xhr.status)},send:function(){this.p.async?(this.xhr.onload=this.loaded.bind(this),this.xhr.send(this.p.data)):(this.xhr.send(this.p.data),this.loaded.call(this))},loaded:function(){if(this.isComplete()){var t=this.xhr.response;t=this.parseJson(t)||t,"function"==typeof this.p.success&&this.p.success(t,this.xhr)}else"function"==typeof this.p.error&&this.p.error(this.xhr.statusText)},parseJson:function(t){try{var e=JSON.parse(t);if(e&&"object"==_typeof(e))return e}catch(t){}return!1},toParams:function(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}};var DomCache=[0],DomExpando="data"+new Date,DomDisplayCache={},Dom=function(t,e){return this.parse(t,e)};Dom.ready=function(t){"loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t)},Dom.prototype={get dom(){return!0},get length(){return this.nodes.length},parse:function(t,e){var n;if(t){if(t.dom)return this.nodes=t.nodes,t;n="string"!=typeof t?t.nodeType&&11===t.nodeType?t.childNodes:t.nodeType||t===window?[t]:t:/^\s*<(\w+|!)[^>]*>/.test(t)?this.create(t):this._query(t,e)}else n=[];this.nodes=this._slice(n)},create:function(t){if(/^<(\w+)\s*\/?>(?:<\/\1>|)$/.test(t))return[document.createElement(RegExp.$1)];var e=[],n=document.createElement("div"),o=n.childNodes;n.innerHTML=t;for(var r=0,i=o.length;r0},filter:function(t){var e;return void 0===t?this:(e="function"==typeof t?t:function(e){return t instanceof Node?t===e:t&&t.dom?-1!==t.nodes.indexOf(e):(e.matches=e.matches||e.msMatchesSelector||e.webkitMatchesSelector,1===e.nodeType&&e.matches(t||"*"))},new Dom(this.nodes.filter(e)))},not:function(t){return this.filter((function(e){return!new Dom(e).is(t||!0)}))},find:function(t){var e=[];return this.each((function(n){for(var o=this._query(t||"*",n),r=0;r
",markerChar:"\ufeff",imageTypes:["image/png","image/jpeg","image/gif"],inlineTags:["a","span","strong","strike","b","u","em","i","code","del","ins","samp","kbd","sup","sub","mark","var","cite","small","abbr"],blockTags:["pre","ul","ol","li","p","h1","h2","h3","h4","h5","h6","dl","dt","dd","div","table","tbody","thead","tfoot","tr","th","td","blockquote","output","figcaption","figure","address","section","header","footer","aside","article","iframe"],regex:{youtube:/https?:\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com\S*[^\w\-\s])([\w\-]{11})(?=[^\w\-]|$)(?![?=&+%\w.-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*/gi,vimeo:/https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/gi,imageurl:/((https?|www)[^\s]+\.)(jpe?g|png|gif)(\?[^\s-]+)?/gi,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/gi},input:!0,zindex:!1,modes:{inline:{pastePlainText:!0,pasteImages:!1,enterKey:!1,toolbar:!1,autoparse:!1,source:!1,showSource:!1,styles:!1,air:!1},original:{styles:!1}}},$R.lang.en={format:"Format",image:"Image",file:"File",link:"Link",bold:"Bold",italic:"Italic",deleted:"Strikethrough",underline:"Underline",superscript:"Superscript",subscript:"Subscript","bold-abbr":"B","italic-abbr":"I","deleted-abbr":"S","underline-abbr":"U","superscript-abbr":"Sup","subscript-abbr":"Sub",lists:"Lists","link-insert":"Insert Link","link-edit":"Edit Link","link-in-new-tab":"Open link in new tab",unlink:"Unlink",cancel:"Cancel",close:"Close",insert:"Insert",save:"Save",delete:"Delete",text:"Text",edit:"Edit",title:"Title",paragraph:"Normal text",quote:"Quote",code:"Code",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",filename:"Name",optional:"optional",unorderedlist:"Unordered List",orderedlist:"Ordered List",outdent:"Outdent",indent:"Indent",horizontalrule:"Line",upload:"Upload","upload-label":"Drop files here or click to upload","accessibility-help-label":"Rich text editor",caption:"Caption",bulletslist:"Bullets",numberslist:"Numbers","image-position":"Position",none:"None",left:"Left",right:"Right",center:"Center",undo:"Undo",redo:"Redo"},$R.buttons={html:{title:"HTML",icon:!0,api:"module.source.toggle"},undo:{title:"## undo ##",icon:!0,api:"module.buffer.undo"},redo:{title:"## redo ##",icon:!0,api:"module.buffer.redo"},format:{title:"## format ##",icon:!0,dropdown:{p:{title:"## paragraph ##",api:"module.block.format",args:{tag:"p"}},blockquote:{title:"## quote ##",api:"module.block.format",args:{tag:"blockquote"}},pre:{title:"## code ##",api:"module.block.format",args:{tag:"pre"}},h1:{title:"## heading1 ##",api:"module.block.format",args:{tag:"h1"}},h2:{title:"## heading2 ##",api:"module.block.format",args:{tag:"h2"}},h3:{title:"## heading3 ##",api:"module.block.format",args:{tag:"h3"}},h4:{title:"## heading4 ##",api:"module.block.format",args:{tag:"h4"}},h5:{title:"## heading5 ##",api:"module.block.format",args:{tag:"h5"}},h6:{title:"## heading6 ##",api:"module.block.format",args:{tag:"h6"}}}},bold:{title:"## bold-abbr ##",icon:!0,tooltip:"## bold ##",api:"module.inline.format",args:{tag:"b"}},italic:{title:"## italic-abbr ##",icon:!0,tooltip:"## italic ##",api:"module.inline.format",args:{tag:"i"}},deleted:{title:"## deleted-abbr ##",icon:!0,tooltip:"## deleted ##",api:"module.inline.format",args:{tag:"del"}},underline:{title:"## underline-abbr ##",icon:!0,tooltip:"## underline ##",api:"module.inline.format",args:{tag:"u"}},sup:{title:"## superscript-abbr ##",icon:!0,tooltip:"## superscript ##",api:"module.inline.format",args:{tag:"sup"}},sub:{title:"## subscript-abbr ##",icon:!0,tooltip:"## subscript ##",api:"module.inline.format",args:{tag:"sub"}},lists:{title:"## lists ##",icon:!0,observe:"list",dropdown:{observe:"list",unorderedlist:{title:"• ## unorderedlist ##",api:"module.list.toggle",args:"ul"},orderedlist:{title:"1. ## orderedlist ##",api:"module.list.toggle",args:"ol"},outdent:{title:"< ## outdent ##",api:"module.list.outdent"},indent:{title:"> ## indent ##",api:"module.list.indent"}}},ul:{title:"• ## bulletslist ##",icon:!0,api:"module.list.toggle",observe:"list",args:"ul"},ol:{title:"1. ## numberslist ##",icon:!0,api:"module.list.toggle",observe:"list",args:"ol"},outdent:{title:"## outdent ##",icon:!0,api:"module.list.outdent",observe:"list"},indent:{title:"## indent ##",icon:!0,api:"module.list.indent",observe:"list"},image:{title:"## image ##",icon:!0,api:"module.image.open"},file:{title:"## file ##",icon:!0,api:"module.file.open"},link:{title:"## link ##",icon:!0,observe:"link",dropdown:{observe:"link",link:{title:"## link-insert ##",api:"module.link.open"},unlink:{title:"## unlink ##",api:"module.link.unlink"}}},line:{title:"## horizontalrule ##",icon:!0,api:"module.line.insert"}};var App=function(t,e,n){this.module={},this.plugin={},this.instances={},this.started=!1,this.stopped=!1,this.uuid=n,this.rootElement=t,this.rootOpts=e,this.dragInside=!1,this.dragComponentInside=!1,this.keycodes=$R.keycodes,this.namespace="redactor",this.$win=$R.dom(window),this.$doc=$R.dom(document),this.$body=$R.dom("body"),this.editorReadOnly=!1,this.opts=$R.create("service.options",e,t),this.lang=$R.create("service.lang",this),this.buildServices(),this.buildModules(),this.buildPlugins(),this.start()};App.prototype={start:function(){this.stopped=!1,this.broadcast("start"),this.broadcast("startcode"),this.opts.clickToEdit?this.broadcast("startclicktoedit"):(this.broadcast("enable"),this.opts.showSource&&this.broadcast("startcodeshow"),this.broadcast("enablefocus")),this.broadcast("started"),this.started=!0},stop:function(){this.started=!1,this.stopped=!0,this.broadcast("stop"),this.broadcast("disable"),this.broadcast("stopped")},isStarted:function(){return this.started},isStopped:function(){return this.stopped},buildServices:function(){var t=["options","lang"],e=["uuid","keycodes","opts","lang","$win","$doc","$body"],n=[];for(var o in $R.services)-1===t.indexOf(o)&&(this[o]=$R.create("service."+o,this),n.push(o),e.push(o));for(var r=0;r0;){var n=t.attributes[e],o=n.name;"style"!==o&&"class"!==o&&t.removeAttributeNode(n)}}))},_convertStyleQuotes:function(t){var e=t.attr("style");e&&t.attr("style",e.replace(/"/g,"'"))},_clearAll:function(t,e){!1!==e&&this.selection.save();for(var n=0;n0;)o.removeAttribute(o.attributes[0].name);return t=this._unwrapSpanWithoutAttr(t),!1!==e&&this.selection.restore(),t},_unwrapSpanWithoutAttr:function(t){for(var e=[],n=0;n<\/p>$/i,"");if(this.getHtml(!1).length!==r.length)return!1}if(n&&this.editor.isEmpty()||this.isCollapsed())return!1;var i=this.offset.get(e,!0),a=this.offset.size(e,!0);return!n&&o.isComponentType("code")&&(a=this.getText().trim().length),!(!i||0!==i.start||i.end!==a)},hasNonEditable:function(){var t=this.getHtml(),e=$R.dom("").html(t);return!this.isCollapsed()&&0!==e.find(".non-editable").length},setRange:function(t){var e=window.getSelection();e.removeAllRanges(),e.addRange(t)},setAll:function(t){var e=this.utils.getNode(t);if(e){var n=this.inspector.parse(e);if(this.component.clearActive(),this.editor.focus(),this.editor.saveScroll(),this.editor.disableNonEditables(),e&&"TABLE"===e.tagName){var o=n.findFirstNode("td, th"),r=n.findLastNode("td, th");$R.dom(o).prepend(this.marker.build("start")),$R.dom(r).append(this.marker.build("end")),this.restoreMarkers()}else if(!n.isFigcaption()&&this.component.isNonEditable(e))this.component.setActive(e);else{n.isComponentType("code")&&(e=n.getComponentCodeElement()).focus();var i=document.createRange();i.selectNodeContents(e),this.setRange(i)}this.editor.enableNonEditables(),this.editor.restoreScroll()}},get:function(){var t=window.getSelection();return t.rangeCount>0?t:null},getRange:function(){var t=this.get();return t&&t.getRangeAt(0)?t.getRangeAt(0):null},getTextBeforeCaret:function(t){t=void 0===t?1:t;var e=this.editor.getElement().get(),n=this.getRange(),o=!1;return n&&((n=n.cloneRange()).collapse(!0),n.setStart(e,0),o=n.toString().slice(-t)),o},getTextAfterCaret:function(t){t=void 0===t?1:t;var e=this.editor.getElement().get(),n=this.getRange(),o=!1;if(n){var r=n.cloneRange();r.selectNodeContents(e),r.setStart(n.endContainer,n.endOffset),o=r.toString().slice(0,t)}return o},getPosition:function(){var t=this.getRange(),e={top:0,left:0,width:0,height:0};if(window.getSelection&&t.getBoundingClientRect){var n=(t=t.cloneRange()).startOffset-1;t.setStart(t.startContainer,n<0?0:n);var o=t.getBoundingClientRect();e={top:o.top,left:o.left,width:o.right-o.left,height:o.bottom-o.top}}return e},getCurrent:function(){var t=!1,e=this.get(),n=this.component.getActive();return n?t=n:e&&this.is()&&(t=!this.inspector.parse(e.anchorNode).isEditor()&&e.anchorNode),t},getParent:function(){var t=!1,e=this.getCurrent();if(e){var n=e.parentNode;t=!this.inspector.parse(n).isEditor()&&n}return t},getElement:function(t){for(var e=t||this.getCurrent();e;){var n=this.inspector.parse(e);if(n.isElement()&&n.isInEditor())return e;e=e.parentNode}return!1},getInline:function(t){for(var e=t||this.getCurrent(),n=!1;e;)this._isInlineNode(e)&&(n=e),e=e.parentNode;return n},getInlineFirst:function(t){for(var e=t||this.getCurrent();e;){if(this._isInlineNode(e))return e;e=e.parentNode}return!1},getInlineAll:function(t){for(var e=t||this.getCurrent(),n=[];e;)this._isInlineNode(e)&&n.push(e),e=e.parentNode;return n},getBlock:function(t){for(var e=t||this.getCurrent();e;){var n=this.inspector.parse(e);if(this.inspector.isBlockTag(e.tagName)&&n.isInEditor(e))return e;e=e.parentNode}return!1},getInlinesAllSelected:function(t){if(this.isAll())return[];var e=this.getInlines({all:!0}),n=this.getNodes({textnodes:!0,inline:!1}),o=this.getText().replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),r=[];if(0!==n.length)return r;if(""===o)r=e;else if(e.length>1)for(var i=0;i
<\/p>$/i,"")}return e},clear:function(){this.component.clearActive(),this.get().removeAllRanges()},collapseToStart:function(){var t=this.get();t&&!t.isCollapsed&&t.collapseToStart()},collapseToEnd:function(){var t=this.get();t&&!t.isCollapsed&&t.collapseToEnd()},saveActiveComponent:function(){var t=this.component.getActive();return!!t&&(this.savedComponent=t,!0)},restoreActiveComponent:function(){return!!this.savedComponent&&(this.component.setActive(this.savedComponent),!0)},save:function(){this._clearSaved();var t=this.getElement();!t||"TD"!==t.tagName&&"TH"!==t.tagName||""!==t.innerHTML?this.saveActiveComponent()||(this.saved=this.offset.get()):this.savedElement=t},restore:function(){(this.saved||this.savedComponent||this.savedElement)&&(this.editor.saveScroll(),this.savedElement?this.caret.setStart(this.savedElement):this.restoreActiveComponent()||this.offset.set(this.saved),this._clearSaved(),this.editor.restoreScroll())},saveMarkers:function(){this._clearSaved(),this.saveActiveComponent()||this.marker.insert()},restoreMarkers:function(){this.editor.saveScroll(),this.restoreActiveComponent()||this.marker.restore(),this._clearSaved(),this.editor.restoreScroll()},_getNextNode:function(t){if(t.hasChildNodes())return t.firstChild;for(;t&&!t.nextSibling;)t=t.parentNode;return t?t.nextSibling:null},_getNodesComponent:function(t){var e=this.getCurrent(),n=this.inspector.parse(e);return n.isFigcaption()?[n.getFigcaption()]:[t]},_getRangeSelectedNodes:function(){var t=[],e=this.getRange(),n=e.startContainer,o=e.startContainer,r=e.endContainer,i=this.editor.getElement();if(o===i.get()&&this.isAll())t=this.utils.getChildNodes(i);else if(n==r)t=[n];else{for(;n&&n!=r;)t.push(n=this._getNextNode(n));for(n=e.startContainer;n&&n!=e.commonAncestorContainer;)t.unshift(n),n=n.parentNode}return t},_isInNodesArray:function(t,e){return-1!==t.indexOf(e)},_filterEditor:function(t){for(var e=[],n=0;n":t.get();this.$editor=$R.dom(e)},_getScrollTarget:function(){return this.opts.scrollTarget?$R.dom(this.opts.scrollTarget):this.$doc},_isContenteditableFocus:function(){var t=this.selection.getBlock();return 0!==(t?$R.dom(t).closest("[contenteditable=true]").not(".redactor-in"):[]).length}}),$R.add("service","container",{init:function(t){this.app=t},start:function(){this._build()},getElement:function(){return this.$container},_build:function(){var t=this.element.isType("inline")?"":"";this.$container=$R.dom(t)}}),$R.add("service","source",{init:function(t){this.app=t,this.$source={},this.content=""},start:function(){this._build(),this._buildName(),this._buildStartedContent()},getElement:function(){return this.$source},getCode:function(){return this.$source.val()},getName:function(){return this.$source.attr("name")},getStartedContent:function(){return this.content},setCode:function(t){return this.insertion.set(t,!0,!1)},isNameGenerated:function(){return this.name},_build:function(){var t=this.element.getElement(),e=this.element.isType("textarea")?t.get():"