





<!DOCTYPE html>
<html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
  <head>
    <meta charset="utf-8">
  <link rel="dns-prefetch" href="https://github.githubassets.com">
  <link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
  <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
  <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
  <link rel="preconnect" href="https://github.githubassets.com" crossorigin>
  <link rel="preconnect" href="https://avatars.githubusercontent.com">



  <link crossorigin="anonymous" media="all" integrity="sha512-+LlYCzoIINFSwdPG8+vqo6w8TBMZRoJRBASiCU48bzL3w5EvYcA2sb9hCNg0CTnuvvQrruwwAIfQVjZPw2dqGg==" rel="stylesheet" href="https://github.githubassets.com/assets/frameworks-f8b9580b3a0820d152c1d3c6f3ebeaa3.css" />
  
    <link crossorigin="anonymous" media="all" integrity="sha512-jZzzGH5Wt7IVFAUCU/nJsbtyEt1mWb11cvXjc+68UreTfFldpRbg+wPPEbnhyiXeL1Q7QBD7aifcLBXqNkaD1g==" rel="stylesheet" href="https://github.githubassets.com/assets/behaviors-8d9cf3187e56b7b21514050253f9c9b1.css" />
    
    
    
    <link crossorigin="anonymous" media="all" integrity="sha512-gFyYfx/3EqAWGRRQLJTTi+T8ioN+qdAzlD9CUflYlcQ6b25awyXL9bRNCxgzqYRHVAu2WtoT5fRf9x+QiMhRWg==" rel="stylesheet" href="https://github.githubassets.com/assets/github-805c987f1ff712a0161914502c94d38b.css" />

  <script crossorigin="anonymous" defer="defer" integrity="sha512-CzeY4A6TiG4fGZSWZU8FxmzFFmcQFoPpArF0hkH0/J/S7UL4eed/LKEXMQXfTwiG5yEJBI+9BdKG8KQJNbhcIQ==" type="application/javascript" src="https://github.githubassets.com/assets/environment-0b3798e0.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-TZkPQbHzKQlwW+kxvQa2+1+hzGJL1lEex6ZBgQWxichlceemjfbcbmDI4XwPdks5WtONvehmrLsDlAmHhAjgWg==" type="application/javascript" src="https://github.githubassets.com/assets/chunk-frameworks-4d990f41.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-tnwEQVx3bFE+l1zTlAqGzN7AU0FENRv0o4NUl8HqIPqTt8NRaBBE+p24tf4fByTFi3pRLOmzgHZqkDX8CYibag==" type="application/javascript" src="https://github.githubassets.com/assets/chunk-vendor-b67c0441.js"></script>
  
  <script crossorigin="anonymous" defer="defer" integrity="sha512-clgqHAAv0O85BQMmY0Oi/34FOUjLH9sJQZByLzH4fCqas7bvovA4wPq1D3AtYlL0Ps+/AYK9WcjvBHGT79PVdQ==" type="application/javascript" src="https://github.githubassets.com/assets/behaviors-72582a1c.js"></script>
  
    <script crossorigin="anonymous" defer="defer" integrity="sha512-v+hxrr/7LrDH9DTy8tzqdDqKoXOnyWGr12dO4VTOYorMfADgcOjIRDVoy0RyTsLIj5gKzBTOpiFDwkze7/n8Iw==" type="application/javascript" data-module-id="./chunk-access-groups.js" data-src="https://github.githubassets.com/assets/chunk-access-groups-bfe871ae.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-BUDbrXZbK9QorUrf0KoEbZAJhTnz+BqMm10bqZCK6w5Hwy7YaORQ4F4DXhLkAVTvaJhNhxxeXgmgJLP0TB7TOw==" type="application/javascript" data-module-id="./chunk-advanced.js" data-src="https://github.githubassets.com/assets/chunk-advanced-0540dbad.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-5tWKSr7mhAzSh4Sx5YRFgKftdGxKwHKnOGYw5DlxjHhkQVURYFU3Bk5IMOGMKuAiJTlC3OXYM3xzGcyjzuEFQQ==" type="application/javascript" data-module-id="./chunk-animate-on-scroll.js" data-src="https://github.githubassets.com/assets/chunk-animate-on-scroll-e6d58a4a.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-ct3QiK2mvpg7zor9R2psdWnNMM2K32RU4RGRB/7yA5FyZ8H4iY6SNynXc7UaJqzBx6NaReg3GsWJPwW3kgAAig==" type="application/javascript" data-module-id="./chunk-codemirror.js" data-src="https://github.githubassets.com/assets/chunk-codemirror-72ddd088.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-M6W/sGLOuJXCIkw+doDl6zl7J9q2DmqdwftQCtyEiZM/UJNGRVQdyKwI/PAMxD12se/wCx3ZcyJs9nz0o0OSVw==" type="application/javascript" data-module-id="./chunk-color-modes.js" data-src="https://github.githubassets.com/assets/chunk-color-modes-33a5bfb0.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-71HZu1T5JWqRNF9wrm2NXZAqYVvzxZ8Dvor5U5l/LuEBbGCBX57Sny60Rj+qUZZAvEBGFlNsz179DEn2HFwgVA==" type="application/javascript" data-module-id="./chunk-confetti.js" data-src="https://github.githubassets.com/assets/chunk-confetti-ef51d9bb.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-P29U0lNmhUj353VrCWp6czdhNpMtF70xVKf4GBGFVKCoqGtxp0sywAM8/46+iC0kdFiRvM13EBvDnq6oyWRwiw==" type="application/javascript" data-module-id="./chunk-contributions-spider-graph.js" data-src="https://github.githubassets.com/assets/chunk-contributions-spider-graph-3f6f54d2.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-arflMFcVzVAYaP2n7m7gklPChWsVsCDtRPav2Cb6bqLeJf8pgbojWJ3EseKXILCIqfxl/v6arBduZ9SLmpMEZw==" type="application/javascript" data-module-id="./chunk-delayed-loading-element.js" data-src="https://github.githubassets.com/assets/chunk-delayed-loading-element-6ab7e530.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-6j/oSF+kbW+yetNPvI684VzAu9pzug6Vj2h+3u1LdCuRhR4jnuiHZfeQKls3nxcT/S3H+oIt7FtigE/aeoj+gg==" type="application/javascript" data-module-id="./chunk-drag-drop.js" data-src="https://github.githubassets.com/assets/chunk-drag-drop-ea3fe848.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-VSSd+Yzi2iMS+pibY6hD/WdypxAEdob5F2RMKxuKcAHS2EpFYJPeTXoVxt0NXg03tfj2dka2mEtHS+vjpYSaDw==" type="application/javascript" data-module-id="./chunk-edit-hook-secret-element.js" data-src="https://github.githubassets.com/assets/chunk-edit-hook-secret-element-55249df9.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-o98K7rYxxlUmQd7Y9Ckhc0akYwzL4lnMmiukRXrXuQUOuAaM/BuYRddD9a0oTZ052Y70W2Up4qMjeAsHLmRlKQ==" type="application/javascript" data-module-id="./chunk-edit.js" data-src="https://github.githubassets.com/assets/chunk-edit-a3df0aee.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-aiqMIGGZGo8AQMjcoImKPMTsZVVRl6htCSY7BpRmpGPG/AF+Wq+P/Oj/dthWQOIk9cCNMPEas7O2zAR6oqn0tA==" type="application/javascript" data-module-id="./chunk-emoji-picker-element.js" data-src="https://github.githubassets.com/assets/chunk-emoji-picker-element-6a2a8c20.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-qLW31c09tXeAXxFkISV7WTgrXi552Amv8JhqE1RW+1GfK8hAmuU/E24Ao/EcCpuXL5SN2c6LSAYNDAtOUsw53g==" type="application/javascript" data-module-id="./chunk-failbot.js" data-src="https://github.githubassets.com/assets/chunk-failbot-a8b5b7d5.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-KL6m1NSbDmR2ZjIqfK40Ayi9zjPHFzYFCa8r5ijNdaCT9NlbcwaPEnOFsyvPK8eYX7aYkL8f8b8zg6WjFM0dWw==" type="application/javascript" data-module-id="./chunk-feature-callout-element.js" data-src="https://github.githubassets.com/assets/chunk-feature-callout-element-28bea6d4.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-h8LRqLfdvdK2/kSKj8JYy6jyBdlTywxL4lqwV6OVOd3SCPRgUJ4/r3KHFQZPuYw0G7AWWhJY/IoitYLvAWFe5Q==" type="application/javascript" data-module-id="./chunk-filter-input.js" data-src="https://github.githubassets.com/assets/chunk-filter-input-87c2d1a8.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-ZDEs2KxFQg2a+jrEHbGKTNtzB+AQK3msBhv/KXLFiX9sV8vJaa9+9lpIW/kWd9JKtpJ63vTC/wuOJo7QJTbKKg==" type="application/javascript" data-module-id="./chunk-get-repo-element.js" data-src="https://github.githubassets.com/assets/chunk-get-repo-element-64312cd8.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-Z1wcyOFQHzyMSPqp5DLKrobr3DN2Q6Dz31cfPtw4b2vPs9PX0PrxyDXHpTbIlcZ9qT1M1BNAypHKKw8Lp6Yx/Q==" type="application/javascript" data-module-id="./chunk-insights-graph.js" data-src="https://github.githubassets.com/assets/chunk-insights-graph-675c1cc8.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-hDiTAZNldjiUNPk5eNthz6zUVY57FFqFU+n2D7WRYygzCxbDtwO9ODKDsEXxYb8kAMI7gTC8/QR3dXtHVCVgcA==" type="application/javascript" data-module-id="./chunk-insights-query.js" data-src="https://github.githubassets.com/assets/chunk-insights-query-84389301.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-lmosGyye+/xONUQs9SwGN/a9fQvUSiAFk5HrL8eLHjeuOx9DX9TW5ckRKFD+6FM54vutFf/mBmNFW/0R3KJEBw==" type="application/javascript" data-module-id="./chunk-invitations.js" data-src="https://github.githubassets.com/assets/chunk-invitations-966a2c1b.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-4MxGQhsDODvZgLbu5arO6CapfnNvZ5fXMsZ47FiklUKRmHq4B3h8uTokSIWAOAxsvCMRrZr0DVZ0i0gm3RAnsg==" type="application/javascript" data-module-id="./chunk-jump-to.js" data-src="https://github.githubassets.com/assets/chunk-jump-to-e0cc4642.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-VtdawM/OSsu+d6v25ZY6UcQa/GGLAStSESjsqdEwx+ey88GNYGkQ24o+JFFo4lY+7wLMRf7aCrLxkA5SquBoNQ==" type="application/javascript" data-module-id="./chunk-launch-code-element.js" data-src="https://github.githubassets.com/assets/chunk-launch-code-element-56d75ac0.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-RR5Uk+KE9M/CsqLcmgReChS7ZDjm8gxcOnDYWWkMdeTsrpW/xDlJHQEgUfuEC6HJXfyPNcW+oBTHqMnucNYGTQ==" type="application/javascript" data-module-id="./chunk-line-chart.js" data-src="https://github.githubassets.com/assets/chunk-line-chart-451e5493.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-RduaLAviB2ygvRK/eX5iwzYO43ie7svrJ0rYJs06x7XqpRl/IK8PPBscBWM9Moo5Z86DK2iRLE2+aR7TJ5Uc2Q==" type="application/javascript" data-module-id="./chunk-metric-selection-element.js" data-src="https://github.githubassets.com/assets/chunk-metric-selection-element-45db9a2c.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-7hZ031ngiF36wGsfcoyyCWTqwYxjX+qeTLtCV7CJ+IO+wzkzCm1RoR3WzWczfWmwLNqr+Hu3kQOgkBaGn4ntWQ==" type="application/javascript" data-module-id="./chunk-notification-list-focus.js" data-src="https://github.githubassets.com/assets/chunk-notification-list-focus-ee1674df.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-ma0OOy3nj0c1cqBx0BkcmIFsLqcSZ+MIukQxyEFM/OWTzZpG+QMgOoWPAHZz43M6fyjAUG1jH6c/6LPiiKPCyw==" type="application/javascript" data-module-id="./chunk-profile-pins-element.js" data-src="https://github.githubassets.com/assets/chunk-profile-pins-element-99ad0e3b.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-hgoSKLTlL8I3IWr/TLONCU+N4kdCtdrHCrrud4NKhgRlLrTw0XUPhqBaDdZUiFSzDQRw/nFQ1kw2VeTm0g9+lA==" type="application/javascript" data-module-id="./chunk-profile.js" data-src="https://github.githubassets.com/assets/chunk-profile-860a1228.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-W/CGm7ARGkQrOSmTAUvHx6XJH3sPfyUEY2kRDWT84K5WU9i2fNXvLxdipvaaMTQbR6AjSSxrQOBj6lR1kzgB0Q==" type="application/javascript" data-module-id="./chunk-readme-toc-element.js" data-src="https://github.githubassets.com/assets/chunk-readme-toc-element-5bf0869b.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-/Xj0UUoF3jbbyPG8kYIU32SSIcbwjCsMEcrzD8TehuXuB+/GOxxNw9427dwVYGqGkuNvhGi2m5cbSMNZI6BROA==" type="application/javascript" data-module-id="./chunk-ref-selector.js" data-src="https://github.githubassets.com/assets/chunk-ref-selector-fd78f451.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-D/MxBjtRPjes6DvnYGi2dEH7AQEnLvSvTODabEkSo+1zP6SSEZpb8oF52kFWERA97t1L19fF/P3bn4pgIsMPuA==" type="application/javascript" data-module-id="./chunk-responsive-underlinenav.js" data-src="https://github.githubassets.com/assets/chunk-responsive-underlinenav-0ff33106.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-SWy36S28Js+/YzsvYgmp+IEdC0qtMcBf6sYhXTEcj1aFPCLPOTOnOKqzFiNyH2oNVDd+u5Qi8eqYINSIu28LFQ==" type="application/javascript" data-module-id="./chunk-runner-groups.js" data-src="https://github.githubassets.com/assets/chunk-runner-groups-496cb7e9.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-SVdK0K69PnQ4FChdpl650OR+vplYWXqddxNkEGKhQf6tkehqvKkFEg5LQSZgCVKt2tfc9CnWJlmKCwbTTipEjg==" type="application/javascript" data-module-id="./chunk-series-table.js" data-src="https://github.githubassets.com/assets/chunk-series-table-49574ad0.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-tk76eoSLUqXSVZ8ANzPprrOImFIV1zQ/VBV+WzG8ZjZpVPH8cLkMH/ur5HJB1lxx9/yo+V2wjDF96t4qfUwZLA==" type="application/javascript" data-module-id="./chunk-severity-calculator-element.js" data-src="https://github.githubassets.com/assets/chunk-severity-calculator-element-b64efa7a.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-fIq9Mn7jY/bHQXnsmh+VejpDnaO+d/FDxsp+4CuZtdNLrLuO+dQCjh+m6Yd8GCYD2Cy6DWbCEyM+mH2dkB2H9A==" type="application/javascript" data-module-id="./chunk-sortable-behavior.js" data-src="https://github.githubassets.com/assets/chunk-sortable-behavior-7c8abd32.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-nKa3UdA2O7Ve4Jn24gaB20yUfJvS7wlnd8Q8C+iWD8i2tXLgaKemDWkLeexeQdrs+an98FCl5fOiy0J+izn+tQ==" type="application/javascript" data-module-id="./chunk-three.module.js" data-src="https://github.githubassets.com/assets/chunk-three.module-9ca6b751.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-WK8VXw3lfUQ/VRW0zlgKPhcMUqH0uTnB/KzePUPdZhCm/HpxfXXHKTGvj5C0Oex7+zbIM2ECzULbtTCT4ug3yg==" type="application/javascript" data-module-id="./chunk-toast.js" data-src="https://github.githubassets.com/assets/chunk-toast-58af155f.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-luqZ+mADz+7HRHtCUzlzjR5jCslW6cEOqzoa+avLS9Z1t3vX7T0PI34MJ+r7CVglMUUqLwYMN6rA/VORmmmVvQ==" type="application/javascript" data-module-id="./chunk-tweetsodium.js" data-src="https://github.githubassets.com/assets/chunk-tweetsodium-96ea99fa.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-fvcOOYapCxPkDRQWz2WQzrqL6rRhX88yHWF87fb9Xny2Fq4lri0ONaVFL7XDSTiTyu4OTp+8WoyfMVpgGUaaVg==" type="application/javascript" data-module-id="./chunk-unveil.js" data-src="https://github.githubassets.com/assets/chunk-unveil-7ef70e39.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-UOFNW/xcxynplVfC8Y3fQdFFiasmugYUUHU4N90G8sqBZGL1yR37yjVakxV8/FV5deBALx9OQMBoiba/3OHGDA==" type="application/javascript" data-module-id="./chunk-user-status-submit.js" data-src="https://github.githubassets.com/assets/chunk-user-status-submit-50e14d5b.js"></script>
    <script crossorigin="anonymous" defer="defer" integrity="sha512-cKu/+X7gT+WVH4sXKt0g3G77bfQfcgwurRObM+dt8XylPm9eEWI+/aWKhVab6VsYuvvuI5BTriKXhXfJwaSXdQ==" type="application/javascript" data-module-id="./chunk-webgl-warp.js" data-src="https://github.githubassets.com/assets/chunk-webgl-warp-70abbff9.js"></script>
  
  <script crossorigin="anonymous" defer="defer" integrity="sha512-D1XZnZOcdxbblxOHX8uohb9Szv1fEFuMPVr9j+arRLbyjskjxLhswTjE+93QTPwPosOld3mLbTvEMe72DOgVyQ==" type="application/javascript" src="https://github.githubassets.com/assets/repositories-0f55d99d.js"></script>
<script crossorigin="anonymous" defer="defer" integrity="sha512-Mgtna7Em9zv9+Ci4+hIOnqXPpHy2iqclBJW8n9zQc+0kPlO3H3frshrkxCCYvBDkrTdrhmjZ7tm6aiTSdqffzw==" type="application/javascript" src="https://github.githubassets.com/assets/diffs-320b676b.js"></script>

  <meta name="viewport" content="width=device-width">
  
  <title>filepond/filepond.min.js at master · pqina/filepond · GitHub</title>
    <meta name="description" content="🌊 A flexible and fun JavaScript file upload library - filepond/filepond.min.js at master · pqina/filepond">
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
  <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
  <meta property="fb:app_id" content="1401488693436528">
  <meta name="apple-itunes-app" content="app-id=1477376905" />
    <meta name="twitter:image:src" content="https://repository-images.githubusercontent.com/106279637/cc9f9a80-8058-11e9-9a6a-d6cb898b9fcf" /><meta name="twitter:site" content="@github" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="filepond/filepond.min.js at master · pqina/filepond" /><meta name="twitter:description" content="🌊 A flexible and fun JavaScript file upload library - filepond/filepond.min.js at master · pqina/filepond" />
    <meta property="og:image" content="https://repository-images.githubusercontent.com/106279637/cc9f9a80-8058-11e9-9a6a-d6cb898b9fcf" /><meta property="og:image:alt" content="🌊 A flexible and fun JavaScript file upload library - filepond/filepond.min.js at master · pqina/filepond" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="filepond/filepond.min.js at master · pqina/filepond" /><meta property="og:url" content="https://github.com/pqina/filepond" /><meta property="og:description" content="🌊 A flexible and fun JavaScript file upload library - filepond/filepond.min.js at master · pqina/filepond" />



    

  <link rel="assets" href="https://github.githubassets.com/">
  

  <meta name="request-id" content="10F4:7787:DEFBD:E73DD:6115927A" data-pjax-transient="true"/><meta name="html-safe-nonce" content="08813a0aea84042859561759372252792945bf878ebf07d199efd086c5eb2cba" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6Imh0dHBzOi8vZ2l0aHViLmNvbS9wcWluYS9maWxlcG9uZC90cmVlL21hc3Rlci9kaXN0IiwicmVxdWVzdF9pZCI6IjEwRjQ6Nzc4NzpERUZCRDpFNzNERDo2MTE1OTI3QSIsInZpc2l0b3JfaWQiOiIyMTQxMzg5OTcxNDc1Mzc3MDIxIiwicmVnaW9uX2VkZ2UiOiJmcmEiLCJyZWdpb25fcmVuZGVyIjoiZnJhIn0=" data-pjax-transient="true"/><meta name="visitor-hmac" content="b4540a829030b195f7266cab0c4facb6b2b3fc5231b7d6902b63a3313526eb38" data-pjax-transient="true"/>

    <meta name="hovercard-subject-tag" content="repository:106279637" data-pjax-transient>


  <meta name="github-keyboard-shortcuts" content="repository,source-code" data-pjax-transient="true" />

  

  <meta name="selected-link" value="repo_source" data-pjax-transient>

    <meta name="google-site-verification" content="c1kuD-K2HIVF635lypcsWPoD4kilo5-jA_wBFyT4uMY">
  <meta name="google-site-verification" content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU">
  <meta name="google-site-verification" content="ZzhVyEFwb7w3e0-uOTltm8Jsck2F5StVihD0exw2fsA">
  <meta name="google-site-verification" content="GXs5KoUUkNCoaAZn7wPN-t01Pywp9M3sEjnt_3_ZWPc">

  <meta name="octolytics-host" content="collector.githubapp.com" /><meta name="octolytics-app-id" content="github" /><meta name="octolytics-event-url" content="https://collector.githubapp.com/github-external/browser_event" />

  <meta name="analytics-location" content="/&lt;user-name&gt;/&lt;repo-name&gt;/blob/show" data-pjax-transient="true" />

  



  <meta name="optimizely-datafile" content="{&quot;version&quot;: &quot;4&quot;, &quot;rollouts&quot;: [], &quot;typedAudiences&quot;: [], &quot;anonymizeIP&quot;: true, &quot;projectId&quot;: &quot;16737760170&quot;, &quot;variables&quot;: [], &quot;featureFlags&quot;: [], &quot;experiments&quot;: [{&quot;status&quot;: &quot;Running&quot;, &quot;audienceIds&quot;: [], &quot;variations&quot;: [{&quot;variables&quot;: [], &quot;id&quot;: &quot;20432530142&quot;, &quot;key&quot;: &quot;control&quot;}, {&quot;variables&quot;: [], &quot;id&quot;: &quot;20418424478&quot;, &quot;key&quot;: &quot;treatment&quot;}], &quot;id&quot;: &quot;20437502121&quot;, &quot;key&quot;: &quot;recommended_plan_and_benefits_in_signup&quot;, &quot;layerId&quot;: &quot;20428035169&quot;, &quot;trafficAllocation&quot;: [{&quot;entityId&quot;: &quot;20418424478&quot;, &quot;endOfRange&quot;: 5000}, {&quot;entityId&quot;: &quot;20432530142&quot;, &quot;endOfRange&quot;: 10000}], &quot;forcedVariations&quot;: {}}, {&quot;status&quot;: &quot;Running&quot;, &quot;audienceIds&quot;: [], &quot;variations&quot;: [{&quot;variables&quot;: [], &quot;id&quot;: &quot;20489782769&quot;, &quot;key&quot;: &quot;control&quot;}, {&quot;variables&quot;: [], &quot;id&quot;: &quot;20464890159&quot;, &quot;key&quot;: &quot;calculator&quot;}], &quot;id&quot;: &quot;20470139194&quot;, &quot;key&quot;: &quot;pricing_calculator&quot;, &quot;layerId&quot;: &quot;20484939336&quot;, &quot;trafficAllocation&quot;: [{&quot;entityId&quot;: &quot;20464890159&quot;, &quot;endOfRange&quot;: 2500}, {&quot;entityId&quot;: &quot;20464890159&quot;, &quot;endOfRange&quot;: 5000}, {&quot;entityId&quot;: &quot;20489782769&quot;, &quot;endOfRange&quot;: 7500}, {&quot;entityId&quot;: &quot;20489782769&quot;, &quot;endOfRange&quot;: 10000}], &quot;forcedVariations&quot;: {&quot;1268183565.1620830370&quot;: &quot;calculator&quot;}}, {&quot;status&quot;: &quot;Running&quot;, &quot;audienceIds&quot;: [], &quot;variations&quot;: [{&quot;variables&quot;: [], &quot;id&quot;: &quot;20438636352&quot;, &quot;key&quot;: &quot;control&quot;}, {&quot;variables&quot;: [], &quot;id&quot;: &quot;20484957397&quot;, &quot;key&quot;: &quot;treatment&quot;}], &quot;id&quot;: &quot;20479227424&quot;, &quot;key&quot;: &quot;growth_ghec_onboarding_experience&quot;, &quot;layerId&quot;: &quot;20467848595&quot;, &quot;trafficAllocation&quot;: [{&quot;entityId&quot;: &quot;20484957397&quot;, &quot;endOfRange&quot;: 1000}, {&quot;entityId&quot;: &quot;20438636352&quot;, &quot;endOfRange&quot;: 5000}, {&quot;entityId&quot;: &quot;20438636352&quot;, &quot;endOfRange&quot;: 6000}, {&quot;entityId&quot;: &quot;20484957397&quot;, &quot;endOfRange&quot;: 8000}, {&quot;entityId&quot;: &quot;20484957397&quot;, &quot;endOfRange&quot;: 10000}], &quot;forcedVariations&quot;: {}}], &quot;audiences&quot;: [{&quot;conditions&quot;: &quot;[\&quot;or\&quot;, {\&quot;match\&quot;: \&quot;exact\&quot;, \&quot;name\&quot;: \&quot;$opt_dummy_attribute\&quot;, \&quot;type\&quot;: \&quot;custom_attribute\&quot;, \&quot;value\&quot;: \&quot;$opt_dummy_value\&quot;}]&quot;, &quot;id&quot;: &quot;$opt_dummy_audience&quot;, &quot;name&quot;: &quot;Optimizely-Generated Audience for Backwards Compatibility&quot;}], &quot;groups&quot;: [], &quot;attributes&quot;: [{&quot;id&quot;: &quot;16822470375&quot;, &quot;key&quot;: &quot;user_id&quot;}, {&quot;id&quot;: &quot;17143601254&quot;, &quot;key&quot;: &quot;spammy&quot;}, {&quot;id&quot;: &quot;18175660309&quot;, &quot;key&quot;: &quot;organization_plan&quot;}, {&quot;id&quot;: &quot;18813001570&quot;, &quot;key&quot;: &quot;is_logged_in&quot;}, {&quot;id&quot;: &quot;19073851829&quot;, &quot;key&quot;: &quot;geo&quot;}, {&quot;id&quot;: &quot;20175462351&quot;, &quot;key&quot;: &quot;requestedCurrency&quot;}], &quot;botFiltering&quot;: false, &quot;accountId&quot;: &quot;16737760170&quot;, &quot;events&quot;: [{&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;17911811441&quot;, &quot;key&quot;: &quot;hydro_click.dashboard.teacher_toolbox_cta&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18124116703&quot;, &quot;key&quot;: &quot;submit.organizations.complete_sign_up&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18145892387&quot;, &quot;key&quot;: &quot;no_metric.tracked_outside_of_optimizely&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18178755568&quot;, &quot;key&quot;: &quot;click.org_onboarding_checklist.add_repo&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18180553241&quot;, &quot;key&quot;: &quot;submit.repository_imports.create&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18186103728&quot;, &quot;key&quot;: &quot;click.help.learn_more_about_repository_creation&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18188530140&quot;, &quot;key&quot;: &quot;test_event.do_not_use_in_production&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18191963644&quot;, &quot;key&quot;: &quot;click.empty_org_repo_cta.transfer_repository&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18195612788&quot;, &quot;key&quot;: &quot;click.empty_org_repo_cta.import_repository&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18210945499&quot;, &quot;key&quot;: &quot;click.org_onboarding_checklist.invite_members&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18211063248&quot;, &quot;key&quot;: &quot;click.empty_org_repo_cta.create_repository&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18215721889&quot;, &quot;key&quot;: &quot;click.org_onboarding_checklist.update_profile&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18224360785&quot;, &quot;key&quot;: &quot;click.org_onboarding_checklist.dismiss&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18234832286&quot;, &quot;key&quot;: &quot;submit.organization_activation.complete&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18252392383&quot;, &quot;key&quot;: &quot;submit.org_repository.create&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18257551537&quot;, &quot;key&quot;: &quot;submit.org_member_invitation.create&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18259522260&quot;, &quot;key&quot;: &quot;submit.organization_profile.update&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18564603625&quot;, &quot;key&quot;: &quot;view.classroom_select_organization&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18568612016&quot;, &quot;key&quot;: &quot;click.classroom_sign_in_click&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18572592540&quot;, &quot;key&quot;: &quot;view.classroom_name&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18574203855&quot;, &quot;key&quot;: &quot;click.classroom_create_organization&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18582053415&quot;, &quot;key&quot;: &quot;click.classroom_select_organization&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18589463420&quot;, &quot;key&quot;: &quot;click.classroom_create_classroom&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18591323364&quot;, &quot;key&quot;: &quot;click.classroom_create_first_classroom&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18591652321&quot;, &quot;key&quot;: &quot;click.classroom_grant_access&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;18607131425&quot;, &quot;key&quot;: &quot;view.classroom_creation&quot;}, {&quot;experimentIds&quot;: [&quot;20437502121&quot;, &quot;20479227424&quot;], &quot;id&quot;: &quot;18831680583&quot;, &quot;key&quot;: &quot;upgrade_account_plan&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;19064064515&quot;, &quot;key&quot;: &quot;click.signup&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;19075373687&quot;, &quot;key&quot;: &quot;click.view_account_billing_page&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;19077355841&quot;, &quot;key&quot;: &quot;click.dismiss_signup_prompt&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;19079713938&quot;, &quot;key&quot;: &quot;click.contact_sales&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;19120963070&quot;, &quot;key&quot;: &quot;click.compare_account_plans&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;19151690317&quot;, &quot;key&quot;: &quot;click.upgrade_account_cta&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;19424193129&quot;, &quot;key&quot;: &quot;click.open_account_switcher&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;19520330825&quot;, &quot;key&quot;: &quot;click.visit_account_profile&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;19540970635&quot;, &quot;key&quot;: &quot;click.switch_account_context&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;19730198868&quot;, &quot;key&quot;: &quot;submit.homepage_signup&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;19820830627&quot;, &quot;key&quot;: &quot;click.homepage_signup&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;19988571001&quot;, &quot;key&quot;: &quot;click.create_enterprise_trial&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;20036538294&quot;, &quot;key&quot;: &quot;click.create_organization_team&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20040653299&quot;, &quot;key&quot;: &quot;click.input_enterprise_trial_form&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;20062030003&quot;, &quot;key&quot;: &quot;click.continue_with_team&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;20068947153&quot;, &quot;key&quot;: &quot;click.create_organization_free&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20086636658&quot;, &quot;key&quot;: &quot;click.signup_continue.username&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20091648988&quot;, &quot;key&quot;: &quot;click.signup_continue.create_account&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20103637615&quot;, &quot;key&quot;: &quot;click.signup_continue.email&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20111574253&quot;, &quot;key&quot;: &quot;click.signup_continue.password&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20120044111&quot;, &quot;key&quot;: &quot;view.pricing_page&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20152062109&quot;, &quot;key&quot;: &quot;submit.create_account&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20165800992&quot;, &quot;key&quot;: &quot;submit.upgrade_payment_form&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20171520319&quot;, &quot;key&quot;: &quot;submit.create_organization&quot;}, {&quot;experimentIds&quot;: [&quot;20437502121&quot;], &quot;id&quot;: &quot;20222645674&quot;, &quot;key&quot;: &quot;click.recommended_plan_in_signup.discuss_your_needs&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20227443657&quot;, &quot;key&quot;: &quot;submit.verify_primary_user_email&quot;}, {&quot;experimentIds&quot;: [&quot;20437502121&quot;], &quot;id&quot;: &quot;20234607160&quot;, &quot;key&quot;: &quot;click.recommended_plan_in_signup.try_enterprise&quot;}, {&quot;experimentIds&quot;: [&quot;20437502121&quot;], &quot;id&quot;: &quot;20238175784&quot;, &quot;key&quot;: &quot;click.recommended_plan_in_signup.team&quot;}, {&quot;experimentIds&quot;: [&quot;20437502121&quot;], &quot;id&quot;: &quot;20239847212&quot;, &quot;key&quot;: &quot;click.recommended_plan_in_signup.continue_free&quot;}, {&quot;experimentIds&quot;: [&quot;20437502121&quot;], &quot;id&quot;: &quot;20251097193&quot;, &quot;key&quot;: &quot;recommended_plan&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;20438619534&quot;, &quot;key&quot;: &quot;click.pricing_calculator.1_member&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;20456699683&quot;, &quot;key&quot;: &quot;click.pricing_calculator.15_members&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;20467868331&quot;, &quot;key&quot;: &quot;click.pricing_calculator.10_members&quot;}, {&quot;experimentIds&quot;: [], &quot;id&quot;: &quot;20476267432&quot;, &quot;key&quot;: &quot;click.trial_days_remaining&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20476357660&quot;, &quot;key&quot;: &quot;click.discover_feature&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;20479287901&quot;, &quot;key&quot;: &quot;click.pricing_calculator.custom_members&quot;}, {&quot;experimentIds&quot;: [&quot;20437502121&quot;], &quot;id&quot;: &quot;20481107083&quot;, &quot;key&quot;: &quot;click.recommended_plan_in_signup.apply_teacher_benefits&quot;}, {&quot;experimentIds&quot;: [&quot;20470139194&quot;], &quot;id&quot;: &quot;20483089392&quot;, &quot;key&quot;: &quot;click.pricing_calculator.5_members&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20484283944&quot;, &quot;key&quot;: &quot;click.onboarding_task&quot;}, {&quot;experimentIds&quot;: [&quot;20437502121&quot;], &quot;id&quot;: &quot;20484996281&quot;, &quot;key&quot;: &quot;click.recommended_plan_in_signup.apply_student_benefits&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20486713726&quot;, &quot;key&quot;: &quot;click.onboarding_task_breadcrumb&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20490791319&quot;, &quot;key&quot;: &quot;click.upgrade_to_enterprise&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20491786766&quot;, &quot;key&quot;: &quot;click.talk_to_us&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20494144087&quot;, &quot;key&quot;: &quot;click.dismiss_enterprise_trial&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20499722759&quot;, &quot;key&quot;: &quot;completed_all_tasks&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20500710104&quot;, &quot;key&quot;: &quot;completed_onboarding_tasks&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20513160672&quot;, &quot;key&quot;: &quot;click.read_doc&quot;}, {&quot;experimentIds&quot;: [&quot;20479227424&quot;], &quot;id&quot;: &quot;20518980986&quot;, &quot;key&quot;: &quot;click.dismiss_trial_banner&quot;}], &quot;revision&quot;: &quot;801&quot;}" />
  <!-- To prevent page flashing, the optimizely JS needs to be loaded in the
    <head> tag before the DOM renders -->
  <script crossorigin="anonymous" defer="defer" integrity="sha512-+jU501Se8pk+19AWlNhSR/uznFeWGI9ndTB52CGeN8Fze/Srm+6H0FN6FCnvSdvVMtHwsV1NGq1sX5RvBwEGAg==" type="application/javascript" src="https://github.githubassets.com/assets/optimizely-fa3539d3.js"></script>



  

      <meta name="hostname" content="github.com">
    <meta name="user-login" content="">


      <meta name="expected-hostname" content="github.com">


    <meta name="enabled-features" content="MARKETPLACE_PENDING_INSTALLATIONS">

  <meta http-equiv="x-pjax-version" content="16b07b9e4c59ad87c930b1b01b63ad77f0f4b5b560223b0d52d8f53227877815">
  

    
  <meta name="go-import" content="github.com/pqina/filepond git https://github.com/pqina/filepond.git">

  <meta name="octolytics-dimension-user_id" content="22966117" /><meta name="octolytics-dimension-user_login" content="pqina" /><meta name="octolytics-dimension-repository_id" content="106279637" /><meta name="octolytics-dimension-repository_nwo" content="pqina/filepond" /><meta name="octolytics-dimension-repository_public" content="true" /><meta name="octolytics-dimension-repository_is_fork" content="false" /><meta name="octolytics-dimension-repository_network_root_id" content="106279637" /><meta name="octolytics-dimension-repository_network_root_nwo" content="pqina/filepond" />



    <link rel="canonical" href="https://github.com/pqina/filepond/blob/master/dist/filepond.min.js" data-pjax-transient>


  <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">

  <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">

  <meta name="browser-optimizely-client-errors-url" content="https://api.github.com/_private/browser/optimizely_client/errors">

  <link rel="mask-icon" href="https://github.githubassets.com/pinned-octocat.svg" color="#000000">
  <link rel="alternate icon" class="js-site-favicon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png">
  <link rel="icon" class="js-site-favicon" type="image/svg+xml" href="https://github.githubassets.com/favicons/favicon.svg">

<meta name="theme-color" content="#1e2327">
<meta name="color-scheme" content="light dark" />


  <link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">

<meta name="enabled-homepage-translation-languages" content="">

  </head>

  <body class="logged-out env-production page-responsive page-blob" style="word-wrap: break-word;">
    

    <div class="position-relative js-header-wrapper ">
      <a href="#start-of-content" class="px-2 py-4 color-bg-info-inverse color-text-white show-on-focus js-skip-to-content">Skip to content</a>
      <span data-view-component="true" class="progress-pjax-loader js-pjax-loader-bar Progress position-fixed width-full">
    <span style="background-color: #79b8ff;width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar"></span>
</span>      
      


        
            
<header class="Header-old header-logged-out js-details-container Details position-relative f4 py-2" role="banner">
  <div class="container-xl d-lg-flex flex-items-center p-responsive">
    <div class="d-flex flex-justify-between flex-items-center">
        <a class="mr-4" href="https://github.com/" aria-label="Homepage" data-ga-click="(Logged out) Header, go to homepage, icon:logo-wordmark">
          <svg height="32" class="octicon octicon-mark-github color-text-white" viewBox="0 0 16 16" version="1.1" width="32" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>
        </a>

          <div class="d-lg-none css-truncate css-truncate-target width-fit p-2">
            

          </div>

        <div class="d-flex flex-items-center">
              <a href="/signup?ref_cta=Sign+up&amp;ref_loc=header+logged+out&amp;ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&amp;source=header-repo"
                class="d-inline-block d-lg-none f5 color-text-white no-underline border color-border-tertiary rounded-2 px-2 py-1 mr-3 mr-sm-5"
                data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="98da084f3c80cf6a31fc568aba70f451b91a1fc2c5326b0a8dad5d27bebd292a"
              >
                Sign&nbsp;up
              </a>

          <button class="btn-link d-lg-none mt-1 js-details-target" type="button" aria-label="Toggle navigation" aria-expanded="false">
            <svg height="24" class="octicon octicon-three-bars color-text-white" viewBox="0 0 16 16" version="1.1" width="24" aria-hidden="true"><path fill-rule="evenodd" d="M1 2.75A.75.75 0 011.75 2h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 2.75zm0 5A.75.75 0 011.75 7h12.5a.75.75 0 110 1.5H1.75A.75.75 0 011 7.75zM1.75 12a.75.75 0 100 1.5h12.5a.75.75 0 100-1.5H1.75z"></path></svg>
          </button>
        </div>
    </div>

    <div class="HeaderMenu HeaderMenu--logged-out position-fixed top-0 right-0 bottom-0 height-fit position-lg-relative d-lg-flex flex-justify-between flex-items-center flex-auto">
      <div class="d-flex d-lg-none flex-justify-end border-bottom color-bg-secondary p-3">
        <button class="btn-link js-details-target" type="button" aria-label="Toggle navigation" aria-expanded="false">
          <svg height="24" class="octicon octicon-x color-text-secondary" viewBox="0 0 24 24" version="1.1" width="24" aria-hidden="true"><path fill-rule="evenodd" d="M5.72 5.72a.75.75 0 011.06 0L12 10.94l5.22-5.22a.75.75 0 111.06 1.06L13.06 12l5.22 5.22a.75.75 0 11-1.06 1.06L12 13.06l-5.22 5.22a.75.75 0 01-1.06-1.06L10.94 12 5.72 6.78a.75.75 0 010-1.06z"></path></svg>
        </button>
      </div>

        <nav class="mt-0 px-3 px-lg-0 mb-5 mb-lg-0" aria-label="Global">
          <ul class="d-lg-flex list-style-none">
              <li class="d-block d-lg-flex flex-lg-nowrap flex-lg-items-center border-bottom border-lg-bottom-0 mr-0 mr-lg-3 edge-item-fix position-relative flex-wrap flex-justify-between d-flex flex-items-center ">
                <details class="HeaderMenu-details details-overlay details-reset width-full">
                  <summary class="HeaderMenu-summary HeaderMenu-link px-0 py-3 border-0 no-wrap d-block d-lg-inline-block">
                    Why GitHub?
                    <svg x="0px" y="0px" viewBox="0 0 14 8" xml:space="preserve" fill="none" class="icon-chevon-down-mktg position-absolute position-lg-relative">
                      <path d="M1,1l6.2,6L13,1"></path>
                    </svg>
                  </summary>
                  <div class="dropdown-menu flex-auto rounded px-0 mt-0 pb-4 p-lg-4 position-relative position-lg-absolute left-0 left-lg-n4">
                    <a href="/features" class="py-2 lh-condensed-ultra d-block Link--primary no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Features">Features <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a>
                    <ul class="list-style-none f5 pb-3">


                          <li class="edge-item-fix"><a href="/mobile" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">Mobile <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                          <li class="edge-item-fix"><a href="/features/actions" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">Actions <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                          <li class="edge-item-fix"><a href="/features/codespaces" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">Codespaces <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                          <li class="edge-item-fix"><a href="/features/packages" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">Packages <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                          <li class="edge-item-fix"><a href="/features/security" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">Security <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                          <li class="edge-item-fix"><a href="/features/code-review/" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">Code review <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                          <li class="edge-item-fix"><a href="/features/issues/" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">Issues <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                          <li class="edge-item-fix"><a href="/features/integrations" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">Integrations <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>


                    </ul>

                    <ul class="list-style-none mb-0 border-lg-top pt-lg-3">
                      <li class="edge-item-fix"><a href="/sponsors" class="py-2 lh-condensed-ultra d-block no-underline Link--primary no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Sponsors">GitHub Sponsors <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="/customer-stories" class="py-2 lh-condensed-ultra d-block no-underline Link--primary no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Customer stories">Customer stories<span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                    </ul>
                  </div>
                </details>
              </li>
              <li class="border-bottom border-lg-bottom-0 mr-0 mr-lg-3">
                <a href="/team" class="HeaderMenu-link no-underline py-3 d-block d-lg-inline-block" data-ga-click="(Logged out) Header, go to Team">Team</a>
              </li>
              <li class="border-bottom border-lg-bottom-0 mr-0 mr-lg-3">
                <a href="/enterprise" class="HeaderMenu-link no-underline py-3 d-block d-lg-inline-block" data-ga-click="(Logged out) Header, go to Enterprise">Enterprise</a>
              </li>

              <li class="d-block d-lg-flex flex-lg-nowrap flex-lg-items-center border-bottom border-lg-bottom-0 mr-0 mr-lg-3 edge-item-fix position-relative flex-wrap flex-justify-between d-flex flex-items-center ">
                <details class="HeaderMenu-details details-overlay details-reset width-full">
                  <summary class="HeaderMenu-summary HeaderMenu-link px-0 py-3 border-0 no-wrap d-block d-lg-inline-block">
                    Explore
                    <svg x="0px" y="0px" viewBox="0 0 14 8" xml:space="preserve" fill="none" class="icon-chevon-down-mktg position-absolute position-lg-relative">
                      <path d="M1,1l6.2,6L13,1"></path>
                    </svg>
                  </summary>

                  <div class="dropdown-menu flex-auto rounded px-0 pt-2 pb-0 mt-0 pb-4 p-lg-4 position-relative position-lg-absolute left-0 left-lg-n4">
                    <ul class="list-style-none mb-3">
                      <li class="edge-item-fix"><a href="/explore" class="py-2 lh-condensed-ultra d-block Link--primary no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Explore">Explore GitHub <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                    </ul>

                    <h4 class="color-text-tertiary text-normal text-mono f5 mb-2 border-lg-top pt-lg-3">Learn and contribute</h4>
                    <ul class="list-style-none mb-3">
                      <li class="edge-item-fix"><a href="/topics" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Topics">Topics <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                        <li class="edge-item-fix"><a href="/collections" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Collections">Collections <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="/trending" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Trending">Trending <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="https://lab.github.com/" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Learning lab">Learning Lab <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="https://opensource.guide" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Open source guides">Open source guides <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                    </ul>

                    <h4 class="color-text-tertiary text-normal text-mono f5 mb-2 border-lg-top pt-lg-3">Connect with others</h4>
                    <ul class="list-style-none mb-0">
                      <li class="edge-item-fix"><a href="https://github.com/readme" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover">The ReadME Project <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="https://github.com/events" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Events">Events <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="https://github.community" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Community forum">Community forum <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="https://education.github.com" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to GitHub Education">GitHub Education <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="https://stars.github.com" class="py-2 pb-0 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to GitHub Stars Program">GitHub Stars program <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                    </ul>
                  </div>
                </details>
              </li>

              <li class="border-bottom border-lg-bottom-0 mr-0 mr-lg-3">
                <a href="/marketplace" class="HeaderMenu-link no-underline py-3 d-block d-lg-inline-block" data-ga-click="(Logged out) Header, go to Marketplace">Marketplace</a>
              </li>

              <li class="d-block d-lg-flex flex-lg-nowrap flex-lg-items-center border-bottom border-lg-bottom-0 mr-0 mr-lg-3 edge-item-fix position-relative flex-wrap flex-justify-between d-flex flex-items-center ">
                <details class="HeaderMenu-details details-overlay details-reset width-full">
                  <summary class="HeaderMenu-summary HeaderMenu-link px-0 py-3 border-0 no-wrap d-block d-lg-inline-block">
                    Pricing
                    <svg x="0px" y="0px" viewBox="0 0 14 8" xml:space="preserve" fill="none" class="icon-chevon-down-mktg position-absolute position-lg-relative">
                       <path d="M1,1l6.2,6L13,1"></path>
                    </svg>
                  </summary>

                  <div class="dropdown-menu flex-auto rounded px-0 pt-2 pb-4 mt-0 p-lg-4 position-relative position-lg-absolute left-0 left-lg-n4">
                    <a href="/pricing" class="pb-2 lh-condensed-ultra d-block Link--primary no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Pricing">Plans <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a>

                    <ul class="list-style-none mb-3">
                      <li class="edge-item-fix"><a href="/pricing#feature-comparison" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Compare plans">Compare plans <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                      <li class="edge-item-fix"><a href="https://enterprise.github.com/contact" class="py-2 lh-condensed-ultra d-block Link--secondary no-underline f5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Contact Sales">Contact Sales <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                    </ul>

                    <ul class="list-style-none mb-0 border-lg-top pt-lg-3">
                      <li class="edge-item-fix"><a href="https://education.github.com" class="py-2 pb-0 lh-condensed-ultra d-block no-underline Link--primary no-underline h5 Bump-link--hover"  data-ga-click="(Logged out) Header, go to Education">Education <span class="Bump-link-symbol float-right text-normal color-text-tertiary pr-3">&rarr;</span></a></li>
                    </ul>
                  </div>
                </details>
              </li>
          </ul>
        </nav>

      <div class="d-lg-flex flex-items-center px-3 px-lg-0 text-center text-lg-left">
          <div class="d-lg-flex min-width-0 mb-3 mb-lg-0">
            



<div class="header-search flex-auto js-site-search position-relative flex-self-stretch flex-md-self-auto mb-3 mb-md-0 mr-0 mr-md-3 scoped-search site-scoped-search js-jump-to"
>
  <div class="position-relative">
    <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-site-search-form" role="search" aria-label="Site" data-scope-type="Repository" data-scope-id="106279637" data-scoped-search-url="/pqina/filepond/search" data-owner-scoped-search-url="/users/pqina/search" data-unscoped-search-url="/search" action="/pqina/filepond/search" accept-charset="UTF-8" method="get">
      <label class="form-control input-sm header-search-wrapper p-0 js-chromeless-input-container header-search-wrapper-jump-to position-relative d-flex flex-justify-between flex-items-center">
        <input type="text"
          class="form-control input-sm header-search-input jump-to-field js-jump-to-field js-site-search-focus js-site-search-field is-clearable"
          data-hotkey=s,/
          name="q"
          data-test-selector="nav-search-input"
          placeholder="Search"
          data-unscoped-placeholder="Search GitHub"
          data-scoped-placeholder="Search"
          autocapitalize="off"
          role="combobox"
          aria-haspopup="listbox"
          aria-expanded="false"
          aria-autocomplete="list"
          aria-controls="jump-to-results"
          aria-label="Search"
          data-jump-to-suggestions-path="/_graphql/GetSuggestedNavigationDestinations"
          spellcheck="false"
          autocomplete="off"
        >
        <input type="hidden" data-csrf="true" class="js-data-jump-to-suggestions-path-csrf" value="4YJYsP7XcbqLfzp5jPPmxnWCwdpY0ZzgRFj1yDuwb9+PXFwgWwve5jR2uQT4LTsKSyPznOWqpaDMOMqDIS3WKQ==" />
        <input type="hidden" class="js-site-search-type-field" name="type" >
            <svg xmlns="http://www.w3.org/2000/svg" width="22" height="20" class="mr-1 header-search-key-slash"><path fill="none" stroke="#979A9C" opacity=".4" d="M3.5.5h12c1.7 0 3 1.3 3 3v13c0 1.7-1.3 3-3 3h-12c-1.7 0-3-1.3-3-3v-13c0-1.7 1.3-3 3-3z"></path><path fill="#979A9C" d="M11.8 6L8 15.1h-.9L10.8 6h1z"></path></svg>


          <div class="Box position-absolute overflow-hidden d-none jump-to-suggestions js-jump-to-suggestions-container">
            
<ul class="d-none js-jump-to-suggestions-template-container">
  

<li class="d-flex flex-justify-start flex-items-center p-0 f5 navigation-item js-navigation-item js-jump-to-suggestion" role="option">
  <a tabindex="-1" class="no-underline d-flex flex-auto flex-items-center jump-to-suggestions-path js-jump-to-suggestion-path js-navigation-open p-2" href="" data-item-type="suggestion">
    <div class="jump-to-octicon js-jump-to-octicon flex-shrink-0 mr-2 text-center d-none">
      <svg height="16" width="16" class="octicon octicon-repo flex-shrink-0 js-jump-to-octicon-repo d-none" title="Repository" aria-label="Repository" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"></path></svg>
      <svg height="16" width="16" class="octicon octicon-project flex-shrink-0 js-jump-to-octicon-project d-none" title="Project" aria-label="Project" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M1.75 0A1.75 1.75 0 000 1.75v12.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0016 14.25V1.75A1.75 1.75 0 0014.25 0H1.75zM1.5 1.75a.25.25 0 01.25-.25h12.5a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25V1.75zM11.75 3a.75.75 0 00-.75.75v7.5a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75zm-8.25.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5zM8 3a.75.75 0 00-.75.75v3.5a.75.75 0 001.5 0v-3.5A.75.75 0 008 3z"></path></svg>
      <svg height="16" width="16" class="octicon octicon-search flex-shrink-0 js-jump-to-octicon-search d-none" title="Search" aria-label="Search" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M11.5 7a4.499 4.499 0 11-8.998 0A4.499 4.499 0 0111.5 7zm-.82 4.74a6 6 0 111.06-1.06l3.04 3.04a.75.75 0 11-1.06 1.06l-3.04-3.04z"></path></svg>
    </div>

    <img class="avatar mr-2 flex-shrink-0 js-jump-to-suggestion-avatar d-none" alt="" aria-label="Team" src="" width="28" height="28">

    <div class="jump-to-suggestion-name js-jump-to-suggestion-name flex-auto overflow-hidden text-left no-wrap css-truncate css-truncate-target">
    </div>

    <div class="border rounded-1 flex-shrink-0 color-bg-tertiary px-1 color-text-tertiary ml-1 f6 d-none js-jump-to-badge-search">
      <span class="js-jump-to-badge-search-text-default d-none" aria-label="in this repository">
        In this repository
      </span>
      <span class="js-jump-to-badge-search-text-global d-none" aria-label="in all of GitHub">
        All GitHub
      </span>
      <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
    </div>

    <div aria-hidden="true" class="border rounded-1 flex-shrink-0 color-bg-tertiary px-1 color-text-tertiary ml-1 f6 d-none d-on-nav-focus js-jump-to-badge-jump">
      Jump to
      <span class="d-inline-block ml-1 v-align-middle">↵</span>
    </div>
  </a>
</li>

</ul>

<ul class="d-none js-jump-to-no-results-template-container">
  <li class="d-flex flex-justify-center flex-items-center f5 d-none js-jump-to-suggestion p-2">
    <span class="color-text-secondary">No suggested jump to results</span>
  </li>
</ul>

<ul id="jump-to-results" role="listbox" class="p-0 m-0 js-navigation-container jump-to-suggestions-results-container js-jump-to-suggestions-results-container">
  

<li class="d-flex flex-justify-start flex-items-center p-0 f5 navigation-item js-navigation-item js-jump-to-scoped-search d-none" role="option">
  <a tabindex="-1" class="no-underline d-flex flex-auto flex-items-center jump-to-suggestions-path js-jump-to-suggestion-path js-navigation-open p-2" href="" data-item-type="scoped_search">
    <div class="jump-to-octicon js-jump-to-octicon flex-shrink-0 mr-2 text-center d-none">
      <svg height="16" width="16" class="octicon octicon-repo flex-shrink-0 js-jump-to-octicon-repo d-none" title="Repository" aria-label="Repository" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"></path></svg>
      <svg height="16" width="16" class="octicon octicon-project flex-shrink-0 js-jump-to-octicon-project d-none" title="Project" aria-label="Project" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M1.75 0A1.75 1.75 0 000 1.75v12.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0016 14.25V1.75A1.75 1.75 0 0014.25 0H1.75zM1.5 1.75a.25.25 0 01.25-.25h12.5a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25V1.75zM11.75 3a.75.75 0 00-.75.75v7.5a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75zm-8.25.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5zM8 3a.75.75 0 00-.75.75v3.5a.75.75 0 001.5 0v-3.5A.75.75 0 008 3z"></path></svg>
      <svg height="16" width="16" class="octicon octicon-search flex-shrink-0 js-jump-to-octicon-search d-none" title="Search" aria-label="Search" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M11.5 7a4.499 4.499 0 11-8.998 0A4.499 4.499 0 0111.5 7zm-.82 4.74a6 6 0 111.06-1.06l3.04 3.04a.75.75 0 11-1.06 1.06l-3.04-3.04z"></path></svg>
    </div>

    <img class="avatar mr-2 flex-shrink-0 js-jump-to-suggestion-avatar d-none" alt="" aria-label="Team" src="" width="28" height="28">

    <div class="jump-to-suggestion-name js-jump-to-suggestion-name flex-auto overflow-hidden text-left no-wrap css-truncate css-truncate-target">
    </div>

    <div class="border rounded-1 flex-shrink-0 color-bg-tertiary px-1 color-text-tertiary ml-1 f6 d-none js-jump-to-badge-search">
      <span class="js-jump-to-badge-search-text-default d-none" aria-label="in this repository">
        In this repository
      </span>
      <span class="js-jump-to-badge-search-text-global d-none" aria-label="in all of GitHub">
        All GitHub
      </span>
      <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
    </div>

    <div aria-hidden="true" class="border rounded-1 flex-shrink-0 color-bg-tertiary px-1 color-text-tertiary ml-1 f6 d-none d-on-nav-focus js-jump-to-badge-jump">
      Jump to
      <span class="d-inline-block ml-1 v-align-middle">↵</span>
    </div>
  </a>
</li>

  

<li class="d-flex flex-justify-start flex-items-center p-0 f5 navigation-item js-navigation-item js-jump-to-owner-scoped-search d-none" role="option">
  <a tabindex="-1" class="no-underline d-flex flex-auto flex-items-center jump-to-suggestions-path js-jump-to-suggestion-path js-navigation-open p-2" href="" data-item-type="owner_scoped_search">
    <div class="jump-to-octicon js-jump-to-octicon flex-shrink-0 mr-2 text-center d-none">
      <svg height="16" width="16" class="octicon octicon-repo flex-shrink-0 js-jump-to-octicon-repo d-none" title="Repository" aria-label="Repository" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"></path></svg>
      <svg height="16" width="16" class="octicon octicon-project flex-shrink-0 js-jump-to-octicon-project d-none" title="Project" aria-label="Project" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M1.75 0A1.75 1.75 0 000 1.75v12.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0016 14.25V1.75A1.75 1.75 0 0014.25 0H1.75zM1.5 1.75a.25.25 0 01.25-.25h12.5a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25V1.75zM11.75 3a.75.75 0 00-.75.75v7.5a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75zm-8.25.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5zM8 3a.75.75 0 00-.75.75v3.5a.75.75 0 001.5 0v-3.5A.75.75 0 008 3z"></path></svg>
      <svg height="16" width="16" class="octicon octicon-search flex-shrink-0 js-jump-to-octicon-search d-none" title="Search" aria-label="Search" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M11.5 7a4.499 4.499 0 11-8.998 0A4.499 4.499 0 0111.5 7zm-.82 4.74a6 6 0 111.06-1.06l3.04 3.04a.75.75 0 11-1.06 1.06l-3.04-3.04z"></path></svg>
    </div>

    <img class="avatar mr-2 flex-shrink-0 js-jump-to-suggestion-avatar d-none" alt="" aria-label="Team" src="" width="28" height="28">

    <div class="jump-to-suggestion-name js-jump-to-suggestion-name flex-auto overflow-hidden text-left no-wrap css-truncate css-truncate-target">
    </div>

    <div class="border rounded-1 flex-shrink-0 color-bg-tertiary px-1 color-text-tertiary ml-1 f6 d-none js-jump-to-badge-search">
      <span class="js-jump-to-badge-search-text-default d-none" aria-label="in this user">
        In this user
      </span>
      <span class="js-jump-to-badge-search-text-global d-none" aria-label="in all of GitHub">
        All GitHub
      </span>
      <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
    </div>

    <div aria-hidden="true" class="border rounded-1 flex-shrink-0 color-bg-tertiary px-1 color-text-tertiary ml-1 f6 d-none d-on-nav-focus js-jump-to-badge-jump">
      Jump to
      <span class="d-inline-block ml-1 v-align-middle">↵</span>
    </div>
  </a>
</li>

  

<li class="d-flex flex-justify-start flex-items-center p-0 f5 navigation-item js-navigation-item js-jump-to-global-search d-none" role="option">
  <a tabindex="-1" class="no-underline d-flex flex-auto flex-items-center jump-to-suggestions-path js-jump-to-suggestion-path js-navigation-open p-2" href="" data-item-type="global_search">
    <div class="jump-to-octicon js-jump-to-octicon flex-shrink-0 mr-2 text-center d-none">
      <svg height="16" width="16" class="octicon octicon-repo flex-shrink-0 js-jump-to-octicon-repo d-none" title="Repository" aria-label="Repository" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"></path></svg>
      <svg height="16" width="16" class="octicon octicon-project flex-shrink-0 js-jump-to-octicon-project d-none" title="Project" aria-label="Project" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M1.75 0A1.75 1.75 0 000 1.75v12.5C0 15.216.784 16 1.75 16h12.5A1.75 1.75 0 0016 14.25V1.75A1.75 1.75 0 0014.25 0H1.75zM1.5 1.75a.25.25 0 01.25-.25h12.5a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25V1.75zM11.75 3a.75.75 0 00-.75.75v7.5a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75zm-8.25.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5zM8 3a.75.75 0 00-.75.75v3.5a.75.75 0 001.5 0v-3.5A.75.75 0 008 3z"></path></svg>
      <svg height="16" width="16" class="octicon octicon-search flex-shrink-0 js-jump-to-octicon-search d-none" title="Search" aria-label="Search" viewBox="0 0 16 16" version="1.1" role="img"><path fill-rule="evenodd" d="M11.5 7a4.499 4.499 0 11-8.998 0A4.499 4.499 0 0111.5 7zm-.82 4.74a6 6 0 111.06-1.06l3.04 3.04a.75.75 0 11-1.06 1.06l-3.04-3.04z"></path></svg>
    </div>

    <img class="avatar mr-2 flex-shrink-0 js-jump-to-suggestion-avatar d-none" alt="" aria-label="Team" src="" width="28" height="28">

    <div class="jump-to-suggestion-name js-jump-to-suggestion-name flex-auto overflow-hidden text-left no-wrap css-truncate css-truncate-target">
    </div>

    <div class="border rounded-1 flex-shrink-0 color-bg-tertiary px-1 color-text-tertiary ml-1 f6 d-none js-jump-to-badge-search">
      <span class="js-jump-to-badge-search-text-default d-none" aria-label="in this repository">
        In this repository
      </span>
      <span class="js-jump-to-badge-search-text-global d-none" aria-label="in all of GitHub">
        All GitHub
      </span>
      <span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
    </div>

    <div aria-hidden="true" class="border rounded-1 flex-shrink-0 color-bg-tertiary px-1 color-text-tertiary ml-1 f6 d-none d-on-nav-focus js-jump-to-badge-jump">
      Jump to
      <span class="d-inline-block ml-1 v-align-middle">↵</span>
    </div>
  </a>
</li>


</ul>

          </div>
      </label>
</form>  </div>
</div>

          </div>

        <div class="position-relative mr-3 d-inline-block">
          <a href="/login?return_to=https%3A%2F%2Fgithub.com%2Fpqina%2Ffilepond%2Fblob%2Fmaster%2Fdist%2Ffilepond.min.js"
            class="HeaderMenu-link flex-shrink-0 no-underline"
            data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header menu&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="7c14565474c03f0657e9e2998fe26ef52dfc7fd27e2bfa4e33bc51e808a98940"
            data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">
            Sign in
          </a>
        </div>

            <a href="/signup?ref_cta=Sign+up&amp;ref_loc=header+logged+out&amp;ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&amp;source=header-repo&amp;source_repo=pqina%2Ffilepond"
              class="HeaderMenu-link flex-shrink-0 d-inline-block no-underline border color-border-tertiary rounded px-2 py-1"
              data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;site header menu&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;SIGN_UP&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="7c14565474c03f0657e9e2998fe26ef52dfc7fd27e2bfa4e33bc51e808a98940"
              data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Sign up&quot;,&quot;action&quot;:&quot;click to sign up for account&quot;,&quot;label&quot;:&quot;ref_page:/&lt;user-name&gt;/&lt;repo-name&gt;/blob/show;ref_cta:Sign up;ref_loc:header logged out&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="501bad75e1cf9c0ac864c6c02a0a79e869c35484963bddf05158c88869e650a8"
            >
              Sign up
            </a>
      </div>
    </div>
  </div>
</header>

    </div>

  <div id="start-of-content" class="show-on-focus"></div>






    <div data-pjax-replace id="js-flash-container">


  <template class="js-flash-template">
    <div class="flash flash-full  {{ className }}">
  <div class=" px-2" >
    <button class="flash-close js-flash-close" type="button" aria-label="Dismiss this message">
      <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>
</svg>
    </button>
    
      <div>{{ message }}</div>

  </div>
</div>
  </template>
</div>


    

  <include-fragment class="js-notification-shelf-include-fragment" data-base-src="https://github.com/notifications/beta/shelf"></include-fragment>




  <div
    class="application-main "
    data-commit-hovercards-enabled
    data-discussion-hovercards-enabled
    data-issue-and-pr-hovercards-enabled
  >
        <div itemscope itemtype="http://schema.org/SoftwareSourceCode" class="">
    <main id="js-repo-pjax-container" data-pjax-container >
      

    




  


  <div id="repository-container-header" class="hx_page-header-bg pt-3 hide-full-screen mb-5" data-pjax-replace>

      <div class="d-flex mb-3 px-3 px-md-4 px-lg-5">

        <div class="flex-auto min-width-0 width-fit mr-3">
            <h1 class=" d-flex flex-wrap flex-items-center break-word f3 text-normal">
    <svg class="octicon octicon-repo color-text-secondary mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 014.5 0h8.75a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75h-2.5a.75.75 0 110-1.5h1.75v-2h-8a1 1 0 00-.714 1.7.75.75 0 01-1.072 1.05A2.495 2.495 0 012 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 011-1h8zM5 12.25v3.25a.25.25 0 00.4.2l1.45-1.087a.25.25 0 01.3 0L8.6 15.7a.25.25 0 00.4-.2v-3.25a.25.25 0 00-.25-.25h-3.5a.25.25 0 00-.25.25z"></path></svg>
  <span class="author flex-self-stretch" itemprop="author">
    <a class="url fn" rel="author" data-hovercard-type="user" data-hovercard-url="/users/pqina/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="/pqina">pqina</a>
  </span>
  <span class="mx-1 flex-self-stretch color-text-secondary">/</span>
  <strong itemprop="name" class="mr-2 flex-self-stretch">
    <a data-pjax="#js-repo-pjax-container" href="/pqina/filepond">filepond</a>
  </strong>
  
</h1>


        </div>

          <ul class="pagehead-actions flex-shrink-0 d-none d-md-inline" style="padding: 2px 0;">
    <li>
      <details id="funding-links-modal" class="details-reset details-overlay details-overlay-dark d-inline-block float-left" >
        <summary id="sponsor-button-repo" class="btn btn-sm"
          title="Sponsor pqina/filepond"
          data-ga-click="Repository, show sponsor modal, action:blob#show; text:Sponsor"
          >
            <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-heart icon-sponsor text-pink mr-1">
    <path fill-rule="evenodd" d="M4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.565 20.565 0 008 13.393a20.561 20.561 0 003.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.75.75 0 01-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5zM8 14.25l-.345.666-.002-.001-.006-.003-.018-.01a7.643 7.643 0 01-.31-.17 22.075 22.075 0 01-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.08 22.08 0 01-3.744 2.584l-.018.01-.006.003h-.002L8 14.25zm0 0l.345.666a.752.752 0 01-.69 0L8 14.25z"></path>
</svg>
            Sponsor
        </summary>
        <details-dialog
          class="anim-fade-in fast Box Box--overlay d-flex flex-column"
            src="/pqina/filepond/funding_links?fragment=1"
            preload
          >
          <div class="Box-header">
            <button class="Box-btn-octicon btn-octicon float-right" type="button" aria-label="Close dialog" data-close-dialog>
              <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>
</svg>
            </button>
            <h3 class="Box-title">
              Sponsor pqina/filepond
            </h3>
          </div>
          <div class="overflow-auto">
            <include-fragment
              >
              <svg aria-label="Loading..." style="box-sizing: content-box; color: var(--color-icon-primary);" width="64" height="64" viewBox="0 0 16 16" fill="none" data-view-component="true" class="my-3 mx-auto d-block anim-rotate">
  <circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke" />
  <path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke" />
</svg>
            </include-fragment>
          </div>
        </details-dialog>
      </details>
    </li>

  <li>
      <a class="tooltipped tooltipped-s btn btn-sm" aria-label="You must be signed in to change notification settings" rel="nofollow" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;notification subscription menu watch&quot;,&quot;repository_id&quot;:null,&quot;auth_type&quot;:&quot;LOG_IN&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="8c7cacf2c1659df2baa01d985ff11ee2ecf74d36f98db0ddd4c095b750df02f8" href="/login?return_to=%2Fpqina%2Ffilepond">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bell">
    <path d="M8 16a2 2 0 001.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 008 16z"></path><path fill-rule="evenodd" d="M8 1.5A3.5 3.5 0 004.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.018.018 0 00-.003.01l.001.006c0 .002.002.004.004.006a.017.017 0 00.006.004l.007.001h10.964l.007-.001a.016.016 0 00.006-.004.016.016 0 00.004-.006l.001-.007a.017.017 0 00-.003-.01l-1.703-2.554a1.75 1.75 0 01-.294-.97V5A3.5 3.5 0 008 1.5zM3 5a5 5 0 0110 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.518 1.518 0 0113.482 13H2.518a1.518 1.518 0 01-1.263-2.36l1.703-2.554A.25.25 0 003 7.947V5z"></path>
</svg>
    Notifications
</a>
  </li>

  <li>
          <a class="btn btn-sm btn-with-count  tooltipped tooltipped-s" aria-label="You must be signed in to star a repository" rel="nofollow" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;star button&quot;,&quot;repository_id&quot;:106279637,&quot;auth_type&quot;:&quot;LOG_IN&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="e48c844e74d81e44be5072d1842aaaac5fcf771c07e4c1279ec931c2dd384c12" href="/login?return_to=%2Fpqina%2Ffilepond">
      <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-star v-align-text-bottom mr-1">
    <path fill-rule="evenodd" d="M8 .25a.75.75 0 01.673.418l1.882 3.815 4.21.612a.75.75 0 01.416 1.279l-3.046 2.97.719 4.192a.75.75 0 01-1.088.791L8 12.347l-3.766 1.98a.75.75 0 01-1.088-.79l.72-4.194L.818 6.374a.75.75 0 01.416-1.28l4.21-.611L7.327.668A.75.75 0 018 .25zm0 2.445L6.615 5.5a.75.75 0 01-.564.41l-3.097.45 2.24 2.184a.75.75 0 01.216.664l-.528 3.084 2.769-1.456a.75.75 0 01.698 0l2.77 1.456-.53-3.084a.75.75 0 01.216-.664l2.24-2.183-3.096-.45a.75.75 0 01-.564-.41L8 2.694v.001z"></path>
</svg>
      <span data-view-component="true">
        Star
</span></a>
    <a class="social-count js-social-count" href="/pqina/filepond/stargazers"
      aria-label="11408 users starred this repository">
      11.4k
    </a>

  </li>

  <li>
        <a class="btn btn-sm btn-with-count tooltipped tooltipped-s" aria-label="You must be signed in to fork a repository" rel="nofollow" data-hydro-click="{&quot;event_type&quot;:&quot;authentication.click&quot;,&quot;payload&quot;:{&quot;location_in_page&quot;:&quot;repo details fork button&quot;,&quot;repository_id&quot;:106279637,&quot;auth_type&quot;:&quot;LOG_IN&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="35c82d77a91bc8ecd7ed53c148b02077340b13c31cd65204a9e7025df7e6cb7a" href="/login?return_to=%2Fpqina%2Ffilepond">
          <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo-forked">
    <path fill-rule="evenodd" d="M5 3.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm0 2.122a2.25 2.25 0 10-1.5 0v.878A2.25 2.25 0 005.75 8.5h1.5v2.128a2.251 2.251 0 101.5 0V8.5h1.5a2.25 2.25 0 002.25-2.25v-.878a2.25 2.25 0 10-1.5 0v.878a.75.75 0 01-.75.75h-4.5A.75.75 0 015 6.25v-.878zm3.75 7.378a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm3-8.75a.75.75 0 100-1.5.75.75 0 000 1.5z"></path>
</svg>
          Fork
</a>
      <a href="/pqina/filepond/network/members" class="social-count"
         aria-label="647 users forked this repository">
        647
      </a>
  </li>
</ul>

      </div>

      <div id="responsive-meta-container" data-pjax-replace>
</div>


        

  <nav data-pjax="#js-repo-pjax-container" aria-label="Repository" data-view-component="true" class="js-repo-nav js-sidenav-container-pjax js-responsive-underlinenav overflow-hidden UnderlineNav px-3 px-md-4 px-lg-5">

    <ul data-view-component="true" class="UnderlineNav-body list-style-none">
        <li data-view-component="true" class="d-flex">
  <a id="code-tab" href="/pqina/filepond" data-tab-item="i0code-tab" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches repo_packages repo_deployments /pqina/filepond" data-hotkey="g c" data-ga-click="Repository, Navigation click, Code tab" data-pjax="#repo-content-pjax-container" aria-current="page" data-view-component="true" class="UnderlineNav-item hx_underlinenav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item selected">
    
                  <svg class="octicon octicon-code UnderlineNav-octicon d-none d-sm-inline" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4.72 3.22a.75.75 0 011.06 1.06L2.06 8l3.72 3.72a.75.75 0 11-1.06 1.06L.47 8.53a.75.75 0 010-1.06l4.25-4.25zm6.56 0a.75.75 0 10-1.06 1.06L13.94 8l-3.72 3.72a.75.75 0 101.06 1.06l4.25-4.25a.75.75 0 000-1.06l-4.25-4.25z"></path></svg>
          <span data-content="Code">Code</span>
            <span title="Not available" data-view-component="true" class="Counter"></span>

    
</a></li>
        <li data-view-component="true" class="d-flex">
  <a id="issues-tab" href="/pqina/filepond/issues" data-tab-item="i1issues-tab" data-selected-links="repo_issues repo_labels repo_milestones /pqina/filepond/issues" data-hotkey="g i" data-ga-click="Repository, Navigation click, Issues tab" data-pjax="#repo-content-pjax-container" data-view-component="true" class="UnderlineNav-item hx_underlinenav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
                  <svg class="octicon octicon-issue-opened UnderlineNav-octicon d-none d-sm-inline" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M8 9.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"></path><path fill-rule="evenodd" d="M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z"></path></svg>
          <span data-content="Issues">Issues</span>
            <span title="35" data-view-component="true" class="Counter">35</span>

    
</a></li>
        <li data-view-component="true" class="d-flex">
  <a id="pull-requests-tab" href="/pqina/filepond/pulls" data-tab-item="i2pull-requests-tab" data-selected-links="repo_pulls checks /pqina/filepond/pulls" data-hotkey="g p" data-ga-click="Repository, Navigation click, Pull requests tab" data-pjax="#repo-content-pjax-container" data-view-component="true" class="UnderlineNav-item hx_underlinenav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
                  <svg class="octicon octicon-git-pull-request UnderlineNav-octicon d-none d-sm-inline" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.177 3.073L9.573.677A.25.25 0 0110 .854v4.792a.25.25 0 01-.427.177L7.177 3.427a.25.25 0 010-.354zM3.75 2.5a.75.75 0 100 1.5.75.75 0 000-1.5zm-2.25.75a2.25 2.25 0 113 2.122v5.256a2.251 2.251 0 11-1.5 0V5.372A2.25 2.25 0 011.5 3.25zM11 2.5h-1V4h1a1 1 0 011 1v5.628a2.251 2.251 0 101.5 0V5A2.5 2.5 0 0011 2.5zm1 10.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.75 12a.75.75 0 100 1.5.75.75 0 000-1.5z"></path></svg>
          <span data-content="Pull requests">Pull requests</span>
            <span title="5" data-view-component="true" class="Counter">5</span>

    
</a></li>
        <li data-view-component="true" class="d-flex">
  <a id="actions-tab" href="/pqina/filepond/actions" data-tab-item="i3actions-tab" data-selected-links="repo_actions /pqina/filepond/actions" data-hotkey="g a" data-ga-click="Repository, Navigation click, Actions tab" data-view-component="true" class="UnderlineNav-item hx_underlinenav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
                  <svg class="octicon octicon-play UnderlineNav-octicon d-none d-sm-inline" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM6.379 5.227A.25.25 0 006 5.442v5.117a.25.25 0 00.379.214l4.264-2.559a.25.25 0 000-.428L6.379 5.227z"></path></svg>
          <span data-content="Actions">Actions</span>
            <span title="Not available" data-view-component="true" class="Counter"></span>

    
</a></li>
        <li data-view-component="true" class="d-flex">
  <a id="security-tab" href="/pqina/filepond/security" data-tab-item="i4security-tab" data-selected-links="security overview alerts policy token_scanning code_scanning /pqina/filepond/security" data-hotkey="g s" data-ga-click="Repository, Navigation click, Security tab" data-view-component="true" class="UnderlineNav-item hx_underlinenav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
                  <svg class="octicon octicon-shield UnderlineNav-octicon d-none d-sm-inline" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.467.133a1.75 1.75 0 011.066 0l5.25 1.68A1.75 1.75 0 0115 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.7 1.7 0 01-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 011.217-1.667l5.25-1.68zm.61 1.429a.25.25 0 00-.153 0l-5.25 1.68a.25.25 0 00-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.2.2 0 00.154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.25.25 0 00-.174-.237l-5.25-1.68zM9 10.5a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.75a.75.75 0 10-1.5 0v3a.75.75 0 001.5 0v-3z"></path></svg>
          <span data-content="Security">Security</span>
            <include-fragment src="/pqina/filepond/security/overall-count" accept="text/fragment+html"></include-fragment>

    
</a></li>
        <li data-view-component="true" class="d-flex">
  <a id="insights-tab" href="/pqina/filepond/pulse" data-tab-item="i5insights-tab" data-selected-links="repo_graphs repo_contributors dependency_graph dependabot_updates pulse people community /pqina/filepond/pulse" data-ga-click="Repository, Navigation click, Insights tab" data-view-component="true" class="UnderlineNav-item hx_underlinenav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item">
    
                  <svg class="octicon octicon-graph UnderlineNav-octicon d-none d-sm-inline" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M1.5 1.75a.75.75 0 00-1.5 0v12.5c0 .414.336.75.75.75h14.5a.75.75 0 000-1.5H1.5V1.75zm14.28 2.53a.75.75 0 00-1.06-1.06L10 7.94 7.53 5.47a.75.75 0 00-1.06 0L3.22 8.72a.75.75 0 001.06 1.06L7 7.06l2.47 2.47a.75.75 0 001.06 0l5.25-5.25z"></path></svg>
          <span data-content="Insights">Insights</span>
            <span title="Not available" data-view-component="true" class="Counter"></span>

    
</a></li>
</ul>
      <div style="visibility:hidden;" data-view-component="true" class="UnderlineNav-actions  js-responsive-underlinenav-overflow position-absolute pr-3 pr-md-4 pr-lg-5 right-0">      <details data-view-component="true" class="details-overlay details-reset position-relative">
  <summary role="button" data-view-component="true">          <div class="UnderlineNav-item mr-0 border-0">
            <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal">
    <path d="M8 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM1.5 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm13 0a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"></path>
</svg>
            <span class="sr-only">More</span>
          </div>
</summary>
  <div data-view-component="true">          <details-menu role="menu" data-view-component="true" class="dropdown-menu dropdown-menu-sw">
  
            <ul>
                <li data-menu-item="i0code-tab" hidden>
                  <a role="menuitem" class="js-selected-navigation-item selected dropdown-item" aria-current="page" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches repo_packages repo_deployments /pqina/filepond" href="/pqina/filepond">
                    Code
</a>                </li>
                <li data-menu-item="i1issues-tab" hidden>
                  <a role="menuitem" class="js-selected-navigation-item dropdown-item" data-selected-links="repo_issues repo_labels repo_milestones /pqina/filepond/issues" href="/pqina/filepond/issues">
                    Issues
</a>                </li>
                <li data-menu-item="i2pull-requests-tab" hidden>
                  <a role="menuitem" class="js-selected-navigation-item dropdown-item" data-selected-links="repo_pulls checks /pqina/filepond/pulls" href="/pqina/filepond/pulls">
                    Pull requests
</a>                </li>
                <li data-menu-item="i3actions-tab" hidden>
                  <a role="menuitem" class="js-selected-navigation-item dropdown-item" data-selected-links="repo_actions /pqina/filepond/actions" href="/pqina/filepond/actions">
                    Actions
</a>                </li>
                <li data-menu-item="i4security-tab" hidden>
                  <a role="menuitem" class="js-selected-navigation-item dropdown-item" data-selected-links="security overview alerts policy token_scanning code_scanning /pqina/filepond/security" href="/pqina/filepond/security">
                    Security
</a>                </li>
                <li data-menu-item="i5insights-tab" hidden>
                  <a role="menuitem" class="js-selected-navigation-item dropdown-item" data-selected-links="repo_graphs repo_contributors dependency_graph dependabot_updates pulse people community /pqina/filepond/pulse" href="/pqina/filepond/pulse">
                    Insights
</a>                </li>
            </ul>

</details-menu></div>
</details></div>
</nav>

  </div>


<div class="container-xl clearfix new-discussion-timeline px-3 px-md-4 px-lg-5">
  <div id="repo-content-pjax-container" class="repository-content " >

    


    
      
    
<div>
  


    <a class="d-none js-permalink-shortcut" data-hotkey="y" href="/pqina/filepond/blob/b559b56cd8d6e82429646ec719df39415e7b8944/dist/filepond.min.js">Permalink</a>

    <!-- blob contrib key: blob_contributors:v22:ded75894e5d99ecf9d811d8fdd714a2873337249b94e6acf44da743dadc6e36f -->

    <div class="d-flex flex-items-start flex-shrink-0 pb-3 flex-wrap flex-md-nowrap flex-justify-between flex-md-justify-start">
      
<div class="position-relative">
  <details class="details-reset details-overlay mr-0 mb-0 " id="branch-select-menu">
    <summary class="btn css-truncate"
            data-hotkey="w"
            title="Switch branches or tags">
      <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-branch text-gray">
    <path fill-rule="evenodd" d="M11.75 2.5a.75.75 0 100 1.5.75.75 0 000-1.5zm-2.25.75a2.25 2.25 0 113 2.122V6A2.5 2.5 0 0110 8.5H6a1 1 0 00-1 1v1.128a2.251 2.251 0 11-1.5 0V5.372a2.25 2.25 0 111.5 0v1.836A2.492 2.492 0 016 7h4a1 1 0 001-1v-.628A2.25 2.25 0 019.5 3.25zM4.25 12a.75.75 0 100 1.5.75.75 0 000-1.5zM3.5 3.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0z"></path>
</svg>
      <span class="css-truncate-target" data-menu-button>master</span>
      <span class="dropdown-caret"></span>
    </summary>

      
<div class="SelectMenu">
  <div class="SelectMenu-modal">
    <header class="SelectMenu-header">
      <span class="SelectMenu-title">Switch branches/tags</span>
      <button class="SelectMenu-closeButton" type="button" data-toggle-for="branch-select-menu"><svg aria-label="Close menu" aria-hidden="false" role="img" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>
</svg></button>
    </header>

    <input-demux data-action="tab-container-change:input-demux#storeInput tab-container-changed:input-demux#updateInput">
      <tab-container class="d-flex flex-column js-branches-tags-tabs" style="min-height: 0;">
        <div class="SelectMenu-filter">
          <input data-target="input-demux.source"
                 id="context-commitish-filter-field"
                 class="SelectMenu-input form-control"
                 aria-owns="ref-list-branches"
                 data-controls-ref-menu-id="ref-list-branches"
                 autofocus
                 autocomplete="off"
                 aria-label="Filter branches/tags"
                 placeholder="Filter branches/tags"
                 type="text"
          >
        </div>

        <div class="SelectMenu-tabs" role="tablist" data-target="input-demux.control" >
          <button class="SelectMenu-tab" type="button" role="tab" aria-selected="true">Branches</button>
          <button class="SelectMenu-tab" type="button" role="tab">Tags</button>
        </div>

        <div role="tabpanel" id="ref-list-branches" data-filter-placeholder="Filter branches/tags" class="d-flex flex-column flex-auto overflow-auto" tabindex="">
          <ref-selector
            type="branch"
            data-targets="input-demux.sinks"
            data-action="
              input-entered:ref-selector#inputEntered
              tab-selected:ref-selector#tabSelected
              focus-list:ref-selector#focusFirstListMember
            "
            query-endpoint="/pqina/filepond/refs"
            
            cache-key="v0:1623228279.7398531"
            current-committish="bWFzdGVy"
            default-branch="bWFzdGVy"
            name-with-owner="cHFpbmEvZmlsZXBvbmQ="
            prefetch-on-mouseover
          >

            <template data-target="ref-selector.fetchFailedTemplate">
              <div class="SelectMenu-message" data-index="{{ index }}">Could not load branches</div>
            </template>

              <template data-target="ref-selector.noMatchTemplate">
    <div class="SelectMenu-message">Nothing to show</div>
</template>


            <!-- TODO: this max-height is necessary or else the branch list won't scroll.  why? -->
            <div data-target="ref-selector.listContainer" role="menu" class="SelectMenu-list " style="max-height: 330px" data-pjax="#repo-content-pjax-container">
              <div class="SelectMenu-loading pt-3 pb-0" aria-label="Menu is loading">
                <svg style="box-sizing: content-box; color: var(--color-icon-primary);" width="32" height="32" viewBox="0 0 16 16" fill="none" data-view-component="true" class="anim-rotate">
  <circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke" />
  <path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke" />
</svg>
              </div>
            </div>

              <template data-target="ref-selector.itemTemplate">
  <a href="https://github.com/pqina/filepond/blob/{{ urlEncodedRefName }}/dist/filepond.min.js" class="SelectMenu-item" role="menuitemradio" rel="nofollow" aria-checked="{{ isCurrent }}" data-index="{{ index }}">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check SelectMenu-icon SelectMenu-icon--check">
    <path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>
</svg>
    <span class="flex-1 css-truncate css-truncate-overflow {{ isFilteringClass }}">{{ refName }}</span>
    <span hidden="{{ isNotDefault }}" class="Label Label--secondary flex-self-start">default</span>
  </a>
</template>


              <footer class="SelectMenu-footer"><a href="/pqina/filepond/branches">View all branches</a></footer>
          </ref-selector>

        </div>

        <div role="tabpanel" id="tags-menu" data-filter-placeholder="Find a tag" class="d-flex flex-column flex-auto overflow-auto" tabindex="" hidden>
          <ref-selector
            type="tag"
            data-action="
              input-entered:ref-selector#inputEntered
              tab-selected:ref-selector#tabSelected
              focus-list:ref-selector#focusFirstListMember
            "
            data-targets="input-demux.sinks"
            query-endpoint="/pqina/filepond/refs"
            cache-key="v0:1623228279.7398531"
            current-committish="bWFzdGVy"
            default-branch="bWFzdGVy"
            name-with-owner="cHFpbmEvZmlsZXBvbmQ="
          >

            <template data-target="ref-selector.fetchFailedTemplate">
              <div class="SelectMenu-message" data-index="{{ index }}">Could not load tags</div>
            </template>

            <template data-target="ref-selector.noMatchTemplate">
              <div class="SelectMenu-message" data-index="{{ index }}">Nothing to show</div>
            </template>

              <template data-target="ref-selector.itemTemplate">
  <a href="https://github.com/pqina/filepond/blob/{{ urlEncodedRefName }}/dist/filepond.min.js" class="SelectMenu-item" role="menuitemradio" rel="nofollow" aria-checked="{{ isCurrent }}" data-index="{{ index }}">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check SelectMenu-icon SelectMenu-icon--check">
    <path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>
</svg>
    <span class="flex-1 css-truncate css-truncate-overflow {{ isFilteringClass }}">{{ refName }}</span>
    <span hidden="{{ isNotDefault }}" class="Label Label--secondary flex-self-start">default</span>
  </a>
</template>


            <div data-target="ref-selector.listContainer" role="menu" class="SelectMenu-list" style="max-height: 330px" data-pjax="#repo-content-pjax-container">
              <div class="SelectMenu-loading pt-3 pb-0" aria-label="Menu is loading">
                <svg style="box-sizing: content-box; color: var(--color-icon-primary);" width="32" height="32" viewBox="0 0 16 16" fill="none" data-view-component="true" class="anim-rotate">
  <circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke" />
  <path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke" />
</svg>
              </div>
            </div>
              <footer class="SelectMenu-footer"><a href="/pqina/filepond/tags">View all tags</a></footer>
          </ref-selector>
        </div>
      </tab-container>
    </input-demux>
  </div>
</div>

  </details>

</div>

      <h2 id="blob-path" class="breadcrumb flex-auto flex-self-center min-width-0 text-normal mx-2 width-full width-md-auto flex-order-1 flex-md-order-none mt-3 mt-md-0">
        <span class="js-repo-root text-bold"><span class="js-path-segment d-inline-block wb-break-all"><a data-pjax="#repo-content-pjax-container" href="/pqina/filepond"><span>filepond</span></a></span></span><span class="separator">/</span><span class="js-path-segment d-inline-block wb-break-all"><a data-pjax="#repo-content-pjax-container" href="/pqina/filepond/tree/master/dist"><span>dist</span></a></span><span class="separator">/</span><strong class="final-path">filepond.min.js</strong>
          <span class="separator">/</span><details class="details-reset details-overlay d-inline" id="jumpto-symbol-select-menu">
  <summary class="btn-link Link--secondary css-truncate" aria-haspopup="true" data-hotkey="r" data-hydro-click="{&quot;event_type&quot;:&quot;code_navigation.click_on_blob_definitions&quot;,&quot;payload&quot;:{&quot;action&quot;:&quot;click_on_blob_definitions&quot;,&quot;repository_id&quot;:106279637,&quot;ref&quot;:&quot;master&quot;,&quot;language&quot;:&quot;JavaScript&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="d8e243d5baeadc5c93fdd258cdf1f1664cbce4631fe27fe0663a73733e3edba2">
      <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code">
    <path fill-rule="evenodd" d="M4.72 3.22a.75.75 0 011.06 1.06L2.06 8l3.72 3.72a.75.75 0 11-1.06 1.06L.47 8.53a.75.75 0 010-1.06l4.25-4.25zm6.56 0a.75.75 0 10-1.06 1.06L13.94 8l-3.72 3.72a.75.75 0 101.06 1.06l4.25-4.25a.75.75 0 000-1.06l-4.25-4.25z"></path>
</svg>
    <span data-menu-button>Jump to</span>
    <span class="dropdown-caret"></span>
  </summary>
  <details-menu class="SelectMenu SelectMenu--hasFilter" role="menu">
    <div class="SelectMenu-modal">
      <header class="SelectMenu-header">
        <span class="SelectMenu-title">Code definitions</span>
        <button class="SelectMenu-closeButton" type="button" data-toggle-for="jumpto-symbol-select-menu">
          <svg aria-label="Close menu" role="img" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>
</svg>
        </button>
      </header>
      <div class="SelectMenu-list">
          <div class="SelectMenu-blankslate">
            <p class="mb-0 color-text-secondary">
              No definitions found in this file.
            </p>
          </div>
        <div data-filterable-for="jumpto-symbols-filter-field" data-filterable-type="substring">
        </div>
      </div>
      <footer class="SelectMenu-footer">
        <div class="d-flex flex-justify-between">
          Code navigation not available for this commit
          <svg class="octicon octicon-dot-fill text-light-gray" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8z"></path></svg>
        </div>
      </footer>
    </div>
  </details-menu>
</details>

      </h2>
      <a href="/pqina/filepond/find/master"
            class="js-pjax-capture-input btn mr-2 d-none d-md-block"
            data-pjax
            data-hotkey="t">
        Go to file
      </a>

      <details id="blob-more-options-details" data-view-component="true" class="details-overlay details-reset position-relative">
  <summary role="button" data-view-component="true" class="btn">
  
            <svg aria-label="More options" role="img" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal">
    <path d="M8 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM1.5 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm13 0a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"></path>
</svg>

  

</summary>
  <div data-view-component="true">          <ul class="dropdown-menu dropdown-menu-sw">
            <li class="d-block d-md-none">
              <a class="dropdown-item d-flex flex-items-baseline" data-hydro-click="{&quot;event_type&quot;:&quot;repository.click&quot;,&quot;payload&quot;:{&quot;target&quot;:&quot;FIND_FILE_BUTTON&quot;,&quot;repository_id&quot;:106279637,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="3a178846d2aa73bda2fed42c35159af07937ed73eee62e5f9ab1a94f388541fd" data-ga-click="Repository, find file, location:repo overview" data-hotkey="t" data-pjax="true" href="/pqina/filepond/find/master">
                <span class="flex-auto">Go to file</span>
                <span class="text-small color-text-secondary" aria-hidden="true">T</span>
</a>            </li>
            <li data-toggle-for="blob-more-options-details">
              <button type="button" data-toggle-for="jumpto-line-details-dialog" class="btn-link dropdown-item">
                <span class="d-flex flex-items-baseline">
                  <span class="flex-auto">Go to line</span>
                  <span class="text-small color-text-secondary" aria-hidden="true">L</span>
                </span>
              </button>
            </li>
            <li data-toggle-for="blob-more-options-details">
              <button type="button" data-toggle-for="jumpto-symbol-select-menu" class="btn-link dropdown-item">
                <span class="d-flex flex-items-baseline">
                  <span class="flex-auto">Go to definition</span>
                  <span class="text-small color-text-secondary" aria-hidden="true">R</span>
                </span>
              </button>
            </li>
            <li class="dropdown-divider" role="none"></li>
            <li>
              <clipboard-copy value="dist/filepond.min.js" class="dropdown-item cursor-pointer" data-toggle-for="blob-more-options-details">
                Copy path
              </clipboard-copy>
            </li>
            <li>
              <clipboard-copy value="https://github.com/pqina/filepond/blob/b559b56cd8d6e82429646ec719df39415e7b8944/dist/filepond.min.js" class="dropdown-item cursor-pointer" data-toggle-for="blob-more-options-details" >
                <span class="d-flex flex-items-baseline">
                  <span class="flex-auto">Copy permalink</span>
                </span>
              </clipboard-copy>
            </li>
          </ul>
</div>
</details>    </div>




    <div class="Box d-flex flex-column flex-shrink-0 mb-3">
      <include-fragment src="/pqina/filepond/contributors/master/dist/filepond.min.js" class="commit-loader">
        <div class="Box-header hx_commit-tease d-flex flex-items-center">
          <div class="Skeleton avatar avatar-user flex-shrink-0 ml-n1 mr-n1 mt-n1 mb-n1" style="width:24px;height:24px;"></div>
          <div class="Skeleton Skeleton--text col-5 ml-2">&nbsp;</div>
        </div>

        <div class="Box-body d-flex flex-items-center" >
          <div class="Skeleton Skeleton--text col-1">&nbsp;</div>
          <span class="color-text-danger h6 loader-error">Cannot retrieve contributors at this time</span>
        </div>
</include-fragment>    </div>








  
    <div data-target="readme-toc.content" class="Box mt-3 position-relative
    ">
      
  <div
    class="Box-header py-2 pr-2 d-flex flex-shrink-0 flex-md-row flex-items-center"
    
  >


  <div class="text-mono f6 flex-auto pr-3 flex-order-2 flex-md-order-1">

      9 lines (7 sloc)
      <span class="file-info-divider"></span>
    114 KB
  </div>

  <div class="d-flex py-1 py-md-0 flex-auto flex-order-1 flex-md-order-2 flex-sm-grow-0 flex-justify-between hide-sm hide-md">

    <div class="BtnGroup">
      <a href="/pqina/filepond/raw/master/dist/filepond.min.js" id="raw-url" role="button" data-view-component="true" class="btn-sm btn BtnGroup-item">
  
  Raw
  

</a>
        <a href="/pqina/filepond/blame/master/dist/filepond.min.js" data-hotkey="b" role="button" data-view-component="true" class="js-update-url-with-hash btn-sm btn BtnGroup-item">
  
  Blame
  

</a>
    </div>

    <div>
          <a class="btn-octicon tooltipped tooltipped-nw js-remove-unless-platform"
             data-platforms="windows,mac"
             href="https://desktop.github.com"
             aria-label="Open this file in GitHub Desktop"
             data-ga-click="Repository, open with desktop">
              <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-desktop">
    <path fill-rule="evenodd" d="M1.75 2.5h12.5a.25.25 0 01.25.25v7.5a.25.25 0 01-.25.25H1.75a.25.25 0 01-.25-.25v-7.5a.25.25 0 01.25-.25zM14.25 1H1.75A1.75 1.75 0 000 2.75v7.5C0 11.216.784 12 1.75 12h3.727c-.1 1.041-.52 1.872-1.292 2.757A.75.75 0 004.75 16h6.5a.75.75 0 00.565-1.243c-.772-.885-1.193-1.716-1.292-2.757h3.727A1.75 1.75 0 0016 10.25v-7.5A1.75 1.75 0 0014.25 1zM9.018 12H6.982a5.72 5.72 0 01-.765 2.5h3.566a5.72 5.72 0 01-.765-2.5z"></path>
</svg>
          </a>

          <a href="/login?return_to=https%3A%2F%2Fgithub.com%2Fpqina%2Ffilepond%2Fblob%2Fmaster%2Fdist%2Ffilepond.min.js" class="btn-octicon disabled tooltipped tooltipped-nw"
            aria-label="You must be signed in to make or propose changes">
            <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil">
    <path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
</svg>
          </a>
          <a href="/login?return_to=https%3A%2F%2Fgithub.com%2Fpqina%2Ffilepond%2Fblob%2Fmaster%2Fdist%2Ffilepond.min.js" class="btn-octicon btn-octicon-danger disabled tooltipped tooltipped-nw"
            aria-label="You must be signed in to make or propose changes">
            <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-trash">
    <path fill-rule="evenodd" d="M6.5 1.75a.25.25 0 01.25-.25h2.5a.25.25 0 01.25.25V3h-3V1.75zm4.5 0V3h2.25a.75.75 0 010 1.5H2.75a.75.75 0 010-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75zM4.496 6.675a.75.75 0 10-1.492.15l.66 6.6A1.75 1.75 0 005.405 15h5.19c.9 0 1.652-.681 1.741-1.576l.66-6.6a.75.75 0 00-1.492-.149l-.66 6.6a.25.25 0 01-.249.225h-5.19a.25.25 0 01-.249-.225l-.66-6.6z"></path>
</svg>
          </a>
    </div>
  </div>

    <div class="d-flex hide-lg hide-xl flex-order-2 flex-grow-0">
      <details class="dropdown details-reset details-overlay d-inline-block">
        <summary class="btn-octicon" aria-haspopup="true" aria-label="possible actions">
          <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal">
    <path d="M8 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM1.5 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm13 0a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"></path>
</svg>
        </summary>

        <ul class="dropdown-menu dropdown-menu-sw">
            <li>
                <a class="dropdown-item tooltipped tooltipped-nw js-remove-unless-platform"
                   data-platforms="windows,mac"
                   href="https://desktop.github.com"
                   data-ga-click="Repository, open with desktop">
                  Open with Desktop
                </a>
            </li>
          <li>
            <a class="dropdown-item" href="/pqina/filepond/raw/master/dist/filepond.min.js">
              View raw
            </a>
          </li>
            <li>
              <a class="dropdown-item" href="/pqina/filepond/blame/master/dist/filepond.min.js">
                View blame
              </a>
            </li>

        </ul>
      </details>
    </div>
</div>


      
  <div itemprop="text" class="Box-body p-0 blob-wrapper data type-javascript  gist-border-0">

      
<table class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip>
      <tr>
        <td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
        <td id="LC1" class="blob-code blob-code-inner js-file-line">/*!</td>
      </tr>
      <tr>
        <td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
        <td id="LC2" class="blob-code blob-code-inner js-file-line"> * FilePond 4.28.2</td>
      </tr>
      <tr>
        <td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
        <td id="LC3" class="blob-code blob-code-inner js-file-line"> * Licensed under MIT, https://opensource.org/licenses/MIT/</td>
      </tr>
      <tr>
        <td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
        <td id="LC4" class="blob-code blob-code-inner js-file-line"> * Please visit https://pqina.nl/filepond/ for details.</td>
      </tr>
      <tr>
        <td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
        <td id="LC5" class="blob-code blob-code-inner js-file-line"> */</td>
      </tr>
      <tr>
        <td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
        <td id="LC6" class="blob-code blob-code-inner js-file-line">
</td>
      </tr>
      <tr>
        <td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
        <td id="LC7" class="blob-code blob-code-inner js-file-line">/* eslint-disable */</td>
      </tr>
      <tr>
        <td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
        <td id="LC8" class="blob-code blob-code-inner js-file-line">
</td>
      </tr>
      <tr>
        <td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
        <td id="LC9" class="blob-code blob-code-inner js-file-line">!function(e,t){&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module?t(exports):&quot;function&quot;==typeof define&amp;&amp;define.amd?define([&quot;exports&quot;],t):t((e=e||self).FilePond={})}(this,function(e){&quot;use strict&quot;;var t=function(e,t){for(var n in e)e.hasOwnProperty(n)&amp;&amp;t(n,e[n])},n=function(e){var n={};return t(e,function(t){!function(e,t,n){&quot;function&quot;!=typeof n?Object.defineProperty(e,t,Object.assign({},n)):e[t]=n}(n,t,e[t])}),n},r=function(e,t){var n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},o=[&quot;svg&quot;,&quot;path&quot;],i=function(e){return o.includes(e)},a=function(e,n){var o=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};&quot;object&quot;==typeof n&amp;&amp;(o=n,n=null);var a=i(e)?document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,e):document.createElement(e);return n&amp;&amp;(i(e)?r(a,&quot;class&quot;,n):a.className=n),t(o,function(e,t){r(a,e,t)}),a},u=function(e,t){return function(e,n){return void 0!==n?t.splice(n,0,e):t.push(e),e}},s=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&amp;&amp;e.removeChild(n.element),n}},l=&quot;undefined&quot;!=typeof window&amp;&amp;void 0!==window.document,c=function(){return l},f=&quot;children&quot;in(c()?a(&quot;svg&quot;):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},d=function(e,t,n,r){var o=n[0]||e.left,i=n[1]||e.top,a=o+e.width,u=i+e.height*(r[1]||1),s={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:o,top:i,right:a,bottom:u}};return t.filter(function(e){return!e.isRectIgnored()}).map(function(e){return e.rect}).forEach(function(e){p(s.inner,Object.assign({},e.inner)),p(s.outer,Object.assign({},e.outer))}),E(s.inner),s.outer.bottom+=s.element.marginBottom,s.outer.right+=s.element.marginRight,E(s.outer),s},p=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom&gt;e.bottom&amp;&amp;(e.bottom=t.bottom),t.right&gt;e.right&amp;&amp;(e.right=t.right)},E=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},_=function(e){return&quot;number&quot;==typeof e},T=function(e){return e&lt;.5?2*e*e:(4-2*e)*e-1},I={spring:function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,r=void 0===t?.5:t,o=e.damping,i=void 0===o?.75:o,a=e.mass,u=void 0===a?10:a,s=null,l=null,c=0,f=!1,d=n({interpolate:function(e,t){if(!f){if(!_(s)||!_(l))return f=!0,void(c=0);(function(e,t,n){var r=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)&lt;r&amp;&amp;Math.abs(n)&lt;r})(l+=c+=-(l-s)*r/u,s,c*=i)||t?(l=s,c=0,f=!0,d.onupdate(l),d.oncomplete(l)):d.onupdate(l)}},target:{set:function(e){if(_(e)&amp;&amp;!_(l)&amp;&amp;(l=e),null===s&amp;&amp;(s=e,l=e),l===(s=e)||void 0===s)return f=!0,c=0,d.onupdate(l),void d.oncomplete(l);f=!1},get:function(){return s}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return d},tween:function(){var e,t,r=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},o=r.duration,i=void 0===o?500:o,a=r.easing,u=void 0===a?T:a,s=r.delay,l=void 0===s?0:s,c=null,f=!0,d=!1,p=null,E=n({interpolate:function(n,r){f||null===p||(null===c&amp;&amp;(c=n),n-c&lt;l||((e=n-c-l)&gt;=i||r?(e=1,t=d?0:1,E.onupdate(t*p),E.oncomplete(t*p),f=!0):(t=e/i,E.onupdate((e&gt;=0?u(d?1-t:t):0)*p))))},target:{get:function(){return d?0:p},set:function(e){if(null===p)return p=e,E.onupdate(e),void E.oncomplete(e);e&lt;p?(p=1,d=!0):(d=!1,p=e),f=!1,c=null}},resting:{get:function(){return f}},onupdate:function(e){},oncomplete:function(e){}});return E}},v=function(e,t,n){var r=e[t]&amp;&amp;&quot;object&quot;==typeof e[t][n]?e[t][n]:e[t]||e,o=&quot;string&quot;==typeof r?r:r.type,i=&quot;object&quot;==typeof r?Object.assign({},r):{};return I[o]?I[o](i):null},m=function(e,t,n){var r=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]&amp;&amp;arguments[3];(t=Array.isArray(t)?t:[t]).forEach(function(t){e.forEach(function(e){var o=e,i=function(){return n[e]},a=function(t){return n[e]=t};&quot;object&quot;==typeof e&amp;&amp;(o=e.key,i=e.getter||i,a=e.setter||a),t[o]&amp;&amp;!r||(t[o]={get:i,set:a})})})},h=function(e){return null!=e},g={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},R=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},O=function(e,t){var n=t.opacity,r=t.perspective,o=t.translateX,i=t.translateY,a=t.scaleX,u=t.scaleY,s=t.rotateX,l=t.rotateY,c=t.rotateZ,f=t.originX,d=t.originY,p=t.width,E=t.height,_=&quot;&quot;,T=&quot;&quot;;(h(f)||h(d))&amp;&amp;(T+=&quot;transform-origin: &quot;+(f||0)+&quot;px &quot;+(d||0)+&quot;px;&quot;),h(r)&amp;&amp;(_+=&quot;perspective(&quot;+r+&quot;px) &quot;),(h(o)||h(i))&amp;&amp;(_+=&quot;translate3d(&quot;+(o||0)+&quot;px, &quot;+(i||0)+&quot;px, 0) &quot;),(h(a)||h(u))&amp;&amp;(_+=&quot;scale3d(&quot;+(h(a)?a:1)+&quot;, &quot;+(h(u)?u:1)+&quot;, 1) &quot;),h(c)&amp;&amp;(_+=&quot;rotateZ(&quot;+c+&quot;rad) &quot;),h(s)&amp;&amp;(_+=&quot;rotateX(&quot;+s+&quot;rad) &quot;),h(l)&amp;&amp;(_+=&quot;rotateY(&quot;+l+&quot;rad) &quot;),_.length&amp;&amp;(T+=&quot;transform:&quot;+_+&quot;;&quot;),h(n)&amp;&amp;(T+=&quot;opacity:&quot;+n+&quot;;&quot;,0===n&amp;&amp;(T+=&quot;visibility:hidden;&quot;),n&lt;1&amp;&amp;(T+=&quot;pointer-events:none;&quot;)),h(E)&amp;&amp;(T+=&quot;height:&quot;+E+&quot;px;&quot;),h(p)&amp;&amp;(T+=&quot;width:&quot;+p+&quot;px;&quot;);var I=e.elementCurrentStyle||&quot;&quot;;T.length===I.length&amp;&amp;T===I||(e.style.cssText=T,e.elementCurrentStyle=T)},D={styles:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,o=e.viewExternalAPI,i=e.view,a=Object.assign({},n),u={};m(t,[r,o],n);var s=function(){return i.rect?d(i.rect,i.childViews,[n.translateX||0,n.translateY||0],[n.scaleX||0,n.scaleY||0]):null};return r.rect={get:s},o.rect={get:s},t.forEach(function(e){n[e]=void 0===a[e]?g[e]:a[e]}),{write:function(){if(R(u,n))return O(i.element,n),Object.assign(u,Object.assign({},n)),!0},destroy:function(){}}},listeners:function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t,n=e.viewExternalAPI,r=(e.viewState,e.view),o=[],i=(t=r.element,function(e,n){t.addEventListener(e,n)}),a=function(e){return function(t,n){e.removeEventListener(t,n)}}(r.element);return n.on=function(e,t){o.push({type:e,fn:t}),i(e,t)},n.off=function(e,t){o.splice(o.findIndex(function(n){return n.type===e&amp;&amp;n.fn===t}),1),a(e,t)},{write:function(){return!0},destroy:function(){o.forEach(function(e){a(e.type,e.fn)})}}},animations:function(e){var n=e.mixinConfig,r=e.viewProps,o=e.viewInternalAPI,i=e.viewExternalAPI,a=Object.assign({},r),u=[];return t(n,function(e,t){var n=v(t);n&amp;&amp;(n.onupdate=function(t){r[e]=t},n.target=a[e],m([{key:e,setter:function(e){n.target!==e&amp;&amp;(n.target=e)},getter:function(){return r[e]}}],[o,i],r,!0),u.push(n))}),{write:function(e){var t=document.hidden,n=!0;return u.forEach(function(r){r.resting||(n=!1),r.interpolate(e,t)}),n},destroy:function(){}}},apis:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewExternalAPI;m(t,r,n)}},y=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},S=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},t=e.tag,r=void 0===t?&quot;div&quot;:t,o=e.name,i=void 0===o?null:o,l=e.attributes,c=void 0===l?{}:l,p=e.read,E=void 0===p?function(){}:p,_=e.write,T=void 0===_?function(){}:_,I=e.create,v=void 0===I?function(){}:I,m=e.destroy,h=void 0===m?function(){}:m,g=e.filterFrameActionsForChild,R=void 0===g?function(e,t){return t}:g,O=e.didCreateView,S=void 0===O?function(){}:O,A=e.didWriteView,L=void 0===A?function(){}:A,P=e.ignoreRect,b=void 0!==P&amp;&amp;P,M=e.ignoreRectUpdate,w=void 0!==M&amp;&amp;M,C=e.mixins,N=void 0===C?[]:C;return function(e){var t,o=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},l=a(r,&quot;filepond--&quot;+i,c),p=window.getComputedStyle(l,null),_=y(),I=null,m=!1,g=[],O=[],A={},P={},M=[T],C=[E],G=[h],U=function(){return l},B=function(){return g.concat()},q=function(){return I||(I=d(_,g,[0,0],[1,1]))},F={element:{get:U},style:{get:function(){return p}},childViews:{get:B}},V=Object.assign({},F,{rect:{get:q},ref:{get:function(){return A}},is:function(e){return i===e},appendChild:(t=l,function(e,n){void 0!==n&amp;&amp;t.children[n]?t.insertBefore(e,t.children[n]):t.appendChild(e)}),createChildView:function(e){return function(t,n){return t(e,n)}}(e),linkView:function(e){return g.push(e),e},unlinkView:function(e){g.splice(g.indexOf(e),1)},appendChildView:u(0,g),removeChildView:s(l,g),registerWriter:function(e){return M.push(e)},registerReader:function(e){return C.push(e)},registerDestroyer:function(e){return G.push(e)},invalidateLayout:function(){return l.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),x={element:{get:U},childViews:{get:B},rect:{get:q},resting:{get:function(){return m}},isRectIgnored:function(){return b},_read:function(){I=null,g.forEach(function(e){return e._read()}),!(w&amp;&amp;_.width&amp;&amp;_.height)&amp;&amp;y(_,l,p);var e={root:j,props:o,rect:_};C.forEach(function(t){return t(e)})},_write:function(e,t,n){var r=0===t.length;return M.forEach(function(i){!1===i({props:o,root:j,actions:t,timestamp:e,shouldOptimize:n})&amp;&amp;(r=!1)}),O.forEach(function(t){!1===t.write(e)&amp;&amp;(r=!1)}),g.filter(function(e){return!!e.element.parentNode}).forEach(function(o){o._write(e,R(o,t),n)||(r=!1)}),g.forEach(function(o,i){o.element.parentNode||(j.appendChild(o.element,i),o._read(),o._write(e,R(o,t),n),r=!1)}),m=r,L({props:o,root:j,actions:t,timestamp:e}),r},_destroy:function(){O.forEach(function(e){return e.destroy()}),G.forEach(function(e){e({root:j,props:o})}),g.forEach(function(e){return e._destroy()})}},Y=Object.assign({},F,{rect:{get:function(){return _}}});Object.keys(N).sort(function(e,t){return&quot;styles&quot;===e?1:&quot;styles&quot;===t?-1:0}).forEach(function(e){var t=D[e]({mixinConfig:N[e],viewProps:o,viewState:P,viewInternalAPI:V,viewExternalAPI:x,view:n(Y)});t&amp;&amp;O.push(t)});var j=n(V);v({root:j,props:o});var k=f(l);return g.forEach(function(e,t){j.appendChild(e.element,k+t)}),S(j),n(x)}},A=function(e,t){return function(n){var r=n.root,o=n.props,i=n.actions,a=void 0===i?[]:i,u=n.timestamp,s=n.shouldOptimize;a.filter(function(t){return e[t.type]}).forEach(function(t){return e[t.type]({root:r,props:o,action:t.data,timestamp:u,shouldOptimize:s})}),t&amp;&amp;t({root:r,props:o,actions:a,timestamp:u,shouldOptimize:s})}},L=function(e,t){return t.parentNode.insertBefore(e,t)},P=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},b=function(e){return Array.isArray(e)},M=function(e){return null==e},w=function(e){return e.trim()},C=function(e){return&quot;&quot;+e},N=function(e){return&quot;boolean&quot;==typeof e},G=function(e){return N(e)?e:&quot;true&quot;===e},U=function(e){return&quot;string&quot;==typeof e},B=function(e){return _(e)?e:U(e)?C(e).replace(/[a-z]+/gi,&quot;&quot;):0},q=function(e){return parseInt(B(e),10)},F=function(e){return parseFloat(B(e))},V=function(e){return _(e)&amp;&amp;isFinite(e)&amp;&amp;Math.floor(e)===e},x=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:1e3;if(V(e))return e;var n=C(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,&quot;&quot;).trim(),q(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,&quot;&quot;).trim(),q(n)*t):q(n)},Y=function(e){return&quot;function&quot;==typeof e},j={process:&quot;POST&quot;,patch:&quot;PATCH&quot;,revert:&quot;DELETE&quot;,fetch:&quot;GET&quot;,restore:&quot;GET&quot;,load:&quot;GET&quot;},k=function(e,t,n,r,o){if(null===t)return null;if(&quot;function&quot;==typeof t)return t;var i={url:&quot;GET&quot;===n||&quot;PATCH&quot;===n?&quot;?&quot;+e+&quot;=&quot;:&quot;&quot;,method:n,headers:o,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(U(t))return i.url=t,i;if(Object.assign(i,t),U(i.headers)){var a=i.headers.split(/:(.+)/);i.headers={header:a[0],value:a[1]}}return i.withCredentials=G(i.withCredentials),i},H=function(e){return&quot;object&quot;==typeof e&amp;&amp;null!==e},X=function(e){return b(e)?&quot;array&quot;:function(e){return null===e}(e)?&quot;null&quot;:V(e)?&quot;int&quot;:/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?&quot;bytes&quot;:function(e){return H(e)&amp;&amp;U(e.url)&amp;&amp;H(e.process)&amp;&amp;H(e.revert)&amp;&amp;H(e.restore)&amp;&amp;H(e.fetch)}(e)?&quot;api&quot;:typeof e},W={array:function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:&quot;,&quot;;return M(e)?[]:b(e)?e:C(e).split(t).map(w).filter(function(e){return e.length})},boolean:G,int:function(e){return&quot;bytes&quot;===X(e)?x(e):q(e)},number:F,float:F,bytes:x,string:function(e){return Y(e)?e:C(e)},function:function(e){return function(e){for(var t=self,n=e.split(&quot;.&quot;),r=null;r=n.shift();)if(!(t=t[r]))return null;return t}(e)},serverapi:function(e){return(r={}).url=U(n=e)?n:n.url||&quot;&quot;,r.timeout=n.timeout?parseInt(n.timeout,10):0,r.headers=n.headers?n.headers:{},t(j,function(e){r[e]=k(e,n[e],j[e],r.timeout,r.headers)}),r.process=n.process||U(n)||n.url?r.process:null,r.remove=n.remove||null,delete r.headers,r;var n,r},object:function(e){try{return JSON.parse(e.replace(/{\s*&#39;/g,&#39;{&quot;&#39;).replace(/&#39;\s*}/g,&#39;&quot;}&#39;).replace(/&#39;\s*:/g,&#39;&quot;:&#39;).replace(/:\s*&#39;/g,&#39;:&quot;&#39;).replace(/,\s*&#39;/g,&#39;,&quot;&#39;).replace(/&#39;\s*,/g,&#39;&quot;,&#39;))}catch(e){return null}}},z=function(e,t,n){if(e===t)return e;var r,o=X(e);if(o!==n){var i=(r=e,W[n](r));if(o=X(i),null===i)throw&#39;Trying to assign value with incorrect type to &quot;&#39;+option+&#39;&quot;, allowed type: &quot;&#39;+n+&#39;&quot;&#39;;e=i}return e},Q=function(e){var r={};return t(e,function(t){var n,o,i,a=e[t];r[t]=(n=a[0],o=a[1],i=n,{enumerable:!0,get:function(){return i},set:function(e){i=z(e,n,o)}})}),n(r)},Z=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:&quot;-&quot;;return e.split(/(?=[A-Z])/).map(function(e){return e.toLowerCase()}).join(t)},$=function(e){return function(n,r,o){var i={};return t(e,function(e){var t=Z(e,&quot;_&quot;).toUpperCase();i[&quot;SET_&quot;+t]=function(r){try{o.options[e]=r.value}catch(e){}n(&quot;DID_SET_&quot;+t,{value:o.options[e]})}}),i}},K=function(e){return function(n){var r={};return t(e,function(e){r[&quot;GET_&quot;+Z(e,&quot;_&quot;).toUpperCase()]=function(t){return n.options[e]}}),r}},J=1,ee=2,te=3,ne=4,re=5,oe=function(){return Math.random().toString(36).substr(2,9)};function ie(e){this.wrapped=e}function ae(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,u=a instanceof ie;Promise.resolve(u?a.wrapped:a).then(function(e){u?r(&quot;next&quot;,e):o(i.done?&quot;return&quot;:&quot;normal&quot;,e)},function(e){r(&quot;throw&quot;,e)})}catch(e){o(&quot;throw&quot;,e)}}function o(e,o){switch(e){case&quot;return&quot;:t.resolve({value:o,done:!0});break;case&quot;throw&quot;:t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(i,a){var u={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=u:(t=n=u,r(e,o))})},&quot;function&quot;!=typeof e.return&amp;&amp;(this.return=void 0)}function ue(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r&lt;i.length;r++)n=i[r],t.indexOf(n)&gt;=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r&lt;i.length;r++)n=i[r],t.indexOf(n)&gt;=0||Object.prototype.propertyIsEnumerable.call(e,n)&amp;&amp;(o[n]=e[n])}return o}&quot;function&quot;==typeof Symbol&amp;&amp;Symbol.asyncIterator&amp;&amp;(ae.prototype[Symbol.asyncIterator]=function(){return this}),ae.prototype.next=function(e){return this._invoke(&quot;next&quot;,e)},ae.prototype.throw=function(e){return this._invoke(&quot;throw&quot;,e)},ae.prototype.return=function(e){return this._invoke(&quot;return&quot;,e)};function se(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t&lt;e.length;t++)n[t]=e[t];return n}}(e)||le(e)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance&quot;)}()}function le(e){if(Symbol.iterator in Object(e)||&quot;[object Arguments]&quot;===Object.prototype.toString.call(e))return Array.from(e)}var ce,fe,de=function(e,t){return e.splice(t,1)},pe=function(){var e=[],t=function(t,n){de(e,e.findIndex(function(e){return e.event===t&amp;&amp;(e.cb===n||!n)}))},n=function(t,n,r){e.filter(function(e){return e.event===t}).map(function(e){return e.cb}).forEach(function(e){return function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)}(function(){return e.apply(void 0,se(n))},r)})};return{fireSync:function(e){for(var t=arguments.length,r=new Array(t&gt;1?t-1:0),o=1;o&lt;t;o++)r[o-1]=arguments[o];n(e,r,!0)},fire:function(e){for(var t=arguments.length,r=new Array(t&gt;1?t-1:0),o=1;o&lt;t;o++)r[o-1]=arguments[o];n(e,r,!1)},on:function(t,n){e.push({event:t,cb:n})},onOnce:function(n,r){e.push({event:n,cb:function(){t(n,r),r.apply(void 0,arguments)}})},off:t}},Ee=function(e,t,n){Object.getOwnPropertyNames(e).filter(function(e){return!n.includes(e)}).forEach(function(n){return Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})},_e=[&quot;fire&quot;,&quot;process&quot;,&quot;revert&quot;,&quot;load&quot;,&quot;on&quot;,&quot;off&quot;,&quot;onOnce&quot;,&quot;retryLoad&quot;,&quot;extend&quot;,&quot;archive&quot;,&quot;archived&quot;,&quot;release&quot;,&quot;released&quot;,&quot;requestProcessing&quot;,&quot;freeze&quot;],Te=function(e){var t={};return Ee(e,t,_e),t},Ie={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},ve={INPUT:1,LIMBO:2,LOCAL:3},me=function(e){return/[^0-9]+/.exec(e)},he=function(){return me(1.1.toLocaleString())[0]},ge={BOOLEAN:&quot;boolean&quot;,INT:&quot;int&quot;,NUMBER:&quot;number&quot;,STRING:&quot;string&quot;,ARRAY:&quot;array&quot;,OBJECT:&quot;object&quot;,FUNCTION:&quot;function&quot;,ACTION:&quot;action&quot;,SERVER_API:&quot;serverapi&quot;,REGEX:&quot;regex&quot;},Re=[],Oe=function(e,t,n){return new Promise(function(r,o){var i=Re.filter(function(t){return t.key===e}).map(function(e){return e.cb});if(0!==i.length){var a=i.shift();i.reduce(function(e,t){return e.then(function(e){return t(e,n)})},a(t,n)).then(function(e){return r(e)}).catch(function(e){return o(e)})}else r(t)})},De=function(e,t,n){return Re.filter(function(t){return t.key===e}).map(function(e){return e.cb(t,n)})},ye=function(e,t){return Re.push({key:e,cb:t})},Se=function(){return Object.assign({},Ae)},Ae={id:[null,ge.STRING],name:[&quot;filepond&quot;,ge.STRING],disabled:[!1,ge.BOOLEAN],className:[null,ge.STRING],required:[!1,ge.BOOLEAN],captureMethod:[null,ge.STRING],allowSyncAcceptAttribute:[!0,ge.BOOLEAN],allowDrop:[!0,ge.BOOLEAN],allowBrowse:[!0,ge.BOOLEAN],allowPaste:[!0,ge.BOOLEAN],allowMultiple:[!1,ge.BOOLEAN],allowReplace:[!0,ge.BOOLEAN],allowRevert:[!0,ge.BOOLEAN],allowRemove:[!0,ge.BOOLEAN],allowProcess:[!0,ge.BOOLEAN],allowReorder:[!1,ge.BOOLEAN],allowDirectoriesOnly:[!1,ge.BOOLEAN],storeAsFile:[!1,ge.BOOLEAN],forceRevert:[!1,ge.BOOLEAN],maxFiles:[null,ge.INT],checkValidity:[!1,ge.BOOLEAN],itemInsertLocationFreedom:[!0,ge.BOOLEAN],itemInsertLocation:[&quot;before&quot;,ge.STRING],itemInsertInterval:[75,ge.INT],dropOnPage:[!1,ge.BOOLEAN],dropOnElement:[!0,ge.BOOLEAN],dropValidation:[!1,ge.BOOLEAN],ignoredFiles:[[&quot;.ds_store&quot;,&quot;thumbs.db&quot;,&quot;desktop.ini&quot;],ge.ARRAY],instantUpload:[!0,ge.BOOLEAN],maxParallelUploads:[2,ge.INT],allowMinimumUploadDuration:[!0,ge.BOOLEAN],chunkUploads:[!1,ge.BOOLEAN],chunkForce:[!1,ge.BOOLEAN],chunkSize:[5e6,ge.INT],chunkRetryDelays:[[500,1e3,3e3],ge.ARRAY],server:[null,ge.SERVER_API],fileSizeBase:[1e3,ge.INT],labelDecimalSeparator:[he(),ge.STRING],labelThousandsSeparator:[(ce=he(),fe=1e3.toLocaleString(),fe!==1e3.toString()?me(fe)[0]:&quot;.&quot;===ce?&quot;,&quot;:&quot;.&quot;),ge.STRING],labelIdle:[&#39;Drag &amp; Drop your files or &lt;span class=&quot;filepond--label-action&quot;&gt;Browse&lt;/span&gt;&#39;,ge.STRING],labelInvalidField:[&quot;Field contains invalid files&quot;,ge.STRING],labelFileWaitingForSize:[&quot;Waiting for size&quot;,ge.STRING],labelFileSizeNotAvailable:[&quot;Size not available&quot;,ge.STRING],labelFileCountSingular:[&quot;file in list&quot;,ge.STRING],labelFileCountPlural:[&quot;files in list&quot;,ge.STRING],labelFileLoading:[&quot;Loading&quot;,ge.STRING],labelFileAdded:[&quot;Added&quot;,ge.STRING],labelFileLoadError:[&quot;Error during load&quot;,ge.STRING],labelFileRemoved:[&quot;Removed&quot;,ge.STRING],labelFileRemoveError:[&quot;Error during remove&quot;,ge.STRING],labelFileProcessing:[&quot;Uploading&quot;,ge.STRING],labelFileProcessingComplete:[&quot;Upload complete&quot;,ge.STRING],labelFileProcessingAborted:[&quot;Upload cancelled&quot;,ge.STRING],labelFileProcessingError:[&quot;Error during upload&quot;,ge.STRING],labelFileProcessingRevertError:[&quot;Error during revert&quot;,ge.STRING],labelTapToCancel:[&quot;tap to cancel&quot;,ge.STRING],labelTapToRetry:[&quot;tap to retry&quot;,ge.STRING],labelTapToUndo:[&quot;tap to undo&quot;,ge.STRING],labelButtonRemoveItem:[&quot;Remove&quot;,ge.STRING],labelButtonAbortItemLoad:[&quot;Abort&quot;,ge.STRING],labelButtonRetryItemLoad:[&quot;Retry&quot;,ge.STRING],labelButtonAbortItemProcessing:[&quot;Cancel&quot;,ge.STRING],labelButtonUndoItemProcessing:[&quot;Undo&quot;,ge.STRING],labelButtonRetryItemProcessing:[&quot;Retry&quot;,ge.STRING],labelButtonProcessItem:[&quot;Upload&quot;,ge.STRING],iconRemove:[&#39;&lt;svg width=&quot;26&quot; height=&quot;26&quot; viewBox=&quot;0 0 26 26&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;path d=&quot;M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z&quot; fill=&quot;currentColor&quot; fill-rule=&quot;nonzero&quot;/&gt;&lt;/svg&gt;&#39;,ge.STRING],iconProcess:[&#39;&lt;svg width=&quot;26&quot; height=&quot;26&quot; viewBox=&quot;0 0 26 26&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;path d=&quot;M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z&quot; fill=&quot;currentColor&quot; fill-rule=&quot;evenodd&quot;/&gt;&lt;/svg&gt;&#39;,ge.STRING],iconRetry:[&#39;&lt;svg width=&quot;26&quot; height=&quot;26&quot; viewBox=&quot;0 0 26 26&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;path d=&quot;M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z&quot; fill=&quot;currentColor&quot; fill-rule=&quot;nonzero&quot;/&gt;&lt;/svg&gt;&#39;,ge.STRING],iconUndo:[&#39;&lt;svg width=&quot;26&quot; height=&quot;26&quot; viewBox=&quot;0 0 26 26&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;path d=&quot;M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z&quot; fill=&quot;currentColor&quot; fill-rule=&quot;nonzero&quot;/&gt;&lt;/svg&gt;&#39;,ge.STRING],iconDone:[&#39;&lt;svg width=&quot;26&quot; height=&quot;26&quot; viewBox=&quot;0 0 26 26&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;path d=&quot;M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z&quot; fill=&quot;currentColor&quot; fill-rule=&quot;nonzero&quot;/&gt;&lt;/svg&gt;&#39;,ge.STRING],oninit:[null,ge.FUNCTION],onwarning:[null,ge.FUNCTION],onerror:[null,ge.FUNCTION],onactivatefile:[null,ge.FUNCTION],oninitfile:[null,ge.FUNCTION],onaddfilestart:[null,ge.FUNCTION],onaddfileprogress:[null,ge.FUNCTION],onaddfile:[null,ge.FUNCTION],onprocessfilestart:[null,ge.FUNCTION],onprocessfileprogress:[null,ge.FUNCTION],onprocessfileabort:[null,ge.FUNCTION],onprocessfilerevert:[null,ge.FUNCTION],onprocessfile:[null,ge.FUNCTION],onprocessfiles:[null,ge.FUNCTION],onremovefile:[null,ge.FUNCTION],onpreparefile:[null,ge.FUNCTION],onupdatefiles:[null,ge.FUNCTION],onreorderfiles:[null,ge.FUNCTION],beforeDropFile:[null,ge.FUNCTION],beforeAddFile:[null,ge.FUNCTION],beforeRemoveFile:[null,ge.FUNCTION],beforePrepareFile:[null,ge.FUNCTION],stylePanelLayout:[null,ge.STRING],stylePanelAspectRatio:[null,ge.STRING],styleItemPanelAspectRatio:[null,ge.STRING],styleButtonRemoveItemPosition:[&quot;left&quot;,ge.STRING],styleButtonProcessItemPosition:[&quot;right&quot;,ge.STRING],styleLoadIndicatorPosition:[&quot;right&quot;,ge.STRING],styleProgressIndicatorPosition:[&quot;right&quot;,ge.STRING],styleButtonRemoveItemAlign:[!1,ge.BOOLEAN],files:[[],ge.ARRAY],credits:[[&quot;https://pqina.nl/&quot;,&quot;Powered by PQINA&quot;],ge.ARRAY]},Le=function(e,t){return M(t)?e[0]||null:V(t)?e[t]||null:(&quot;object&quot;==typeof t&amp;&amp;(t=t.id),e.find(function(e){return e.id===t})||null)},Pe=function(e){if(M(e))return e;if(/:/.test(e)){var t=e.split(&quot;:&quot;);return t[1]/t[0]}return parseFloat(e)},be=function(e){return e.filter(function(e){return!e.archived})},Me={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},we=null,Ce=[Ie.LOAD_ERROR,Ie.PROCESSING_ERROR,Ie.PROCESSING_REVERT_ERROR],Ne=[Ie.LOADING,Ie.PROCESSING,Ie.PROCESSING_QUEUED,Ie.INIT],Ge=[Ie.PROCESSING_COMPLETE],Ue=function(e){return Ce.includes(e.status)},Be=function(e){return Ne.includes(e.status)},qe=function(e){return Ge.includes(e.status)},Fe=function(e){return H(e.options.server)&amp;&amp;(H(e.options.server.process)||Y(e.options.server.process))},Ve=function(e){return{GET_STATUS:function(){var t=be(e.items),n=Me.EMPTY,r=Me.ERROR,o=Me.BUSY,i=Me.IDLE,a=Me.READY;return 0===t.length?n:t.some(Ue)?r:t.some(Be)?o:t.some(qe)?a:i},GET_ITEM:function(t){return Le(e.items,t)},GET_ACTIVE_ITEM:function(t){return Le(be(e.items),t)},GET_ACTIVE_ITEMS:function(){return be(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=Le(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=Le(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter(function(e){return/^style/.test(e)}).map(function(t){return{name:t,value:e.options[t]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(e.options.stylePanelLayout)?1:Pe(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return be(e.items).filter(function(e){return e.status===t})},GET_TOTAL_ITEMS:function(){return be(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&amp;&amp;function(){if(null===we)try{var e=new DataTransfer;e.items.add(new File([&quot;hello world&quot;],&quot;This_Works.txt&quot;));var t=document.createElement(&quot;input&quot;);t.setAttribute(&quot;type&quot;,&quot;file&quot;),t.files=e.files,we=1===t.files.length}catch(e){we=!1}return we}()&amp;&amp;!Fe(e)},IS_ASYNC:function(){return Fe(e)}}},xe=function(e,t,n){return Math.max(Math.min(n,e),t)},Ye=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&amp;&#39;,()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},je=function(e){return e.split(&quot;/&quot;).pop().split(&quot;?&quot;).shift()},ke=function(e){return e.split(&quot;.&quot;).pop()},He=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:&quot;&quot;;return(t+e).slice(-t.length)},Xe=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+&quot;-&quot;+He(e.getMonth()+1,&quot;00&quot;)+&quot;-&quot;+He(e.getDate(),&quot;00&quot;)+&quot;_&quot;+He(e.getHours(),&quot;00&quot;)+&quot;-&quot;+He(e.getMinutes(),&quot;00&quot;)+&quot;-&quot;+He(e.getSeconds(),&quot;00&quot;)},We=function(e,t){var n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:null,r=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:null,o=&quot;string&quot;==typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return o.lastModifiedDate=new Date,e._relativePath&amp;&amp;(o._relativePath=e._relativePath),U(t)||(t=Xe()),t&amp;&amp;null===r&amp;&amp;ke(t)?o.name=t:(r=r||function(e){if(&quot;string&quot;!=typeof e)return&quot;&quot;;var t=e.split(&quot;/&quot;).pop();return/svg/.test(t)?&quot;svg&quot;:/zip|compressed/.test(t)?&quot;zip&quot;:/plain/.test(t)?&quot;txt&quot;:/msword/.test(t)?&quot;doc&quot;:/[a-z]+/.test(t)?&quot;jpeg&quot;===t?&quot;jpg&quot;:t:&quot;&quot;}(o.type),o.name=t+(r?&quot;.&quot;+r:&quot;&quot;)),o},ze=function(e,t){var n=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},Qe=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},Ze=function(e){var t=Qe(e);return function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),o=0;o&lt;e.length;o++)r[o]=e.charCodeAt(o);return ze(n,t)}(function(e){return atob(function(e){return e.split(&quot;,&quot;)[1].replace(/\s/g,&quot;&quot;)}(e))}(e),t)},$e=function(e){if(!/^content-disposition:/i.test(e))return null;var t=e.split(/filename=|filename\*=.+&#39;&#39;/).splice(1).map(function(e){return e.trim().replace(/^[&quot;&#39;]|[;&quot;&#39;]{0,2}$/g,&quot;&quot;)}).filter(function(e){return e.length});return t.length?decodeURI(t[t.length-1]):null},Ke=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},Je=function(e){return/x-content-transfer-id:/i.test(e)&amp;&amp;(e.split(&quot;:&quot;)[1]||&quot;&quot;).trim()||null},et=function(e){var t={source:null,name:null,size:null},n=e.split(&quot;\n&quot;),r=!0,o=!1,i=void 0;try{for(var a,u=n[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var s=a.value,l=$e(s);if(l)t.name=l;else{var c=Ke(s);if(c)t.size=c;else{var f=Je(s);f&amp;&amp;(t.source=f)}}}}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return t},tt=function(e){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=function(n){e?(t.timestamp=Date.now(),t.request=e(n,function(e){t.duration=Date.now()-t.timestamp,t.complete=!0,e instanceof Blob&amp;&amp;(e=We(e,e.name||je(n))),r.fire(&quot;load&quot;,e instanceof Blob?e:e?e.body:null)},function(e){r.fire(&quot;error&quot;,&quot;string&quot;==typeof e?{type:&quot;error&quot;,code:0,body:e}:e)},function(e,n,o){o&amp;&amp;(t.size=o),t.duration=Date.now()-t.timestamp,e?(t.progress=n/o,r.fire(&quot;progress&quot;,t.progress)):t.progress=null},function(){r.fire(&quot;abort&quot;)},function(e){var n=et(&quot;string&quot;==typeof e?e:e.headers);r.fire(&quot;meta&quot;,{size:t.size||n.size,filename:n.name,source:n.source})})):r.fire(&quot;error&quot;,{type:&quot;error&quot;,body:&quot;Can&#39;t load URL&quot;,code:400})},r=Object.assign({},pe(),{setSource:function(e){return t.source=e},getProgress:function(){return t.progress},abort:function(){t.request&amp;&amp;t.request.abort&amp;&amp;t.request.abort()},load:function(){var e,o,i=t.source;r.fire(&quot;init&quot;,i),i instanceof File?r.fire(&quot;load&quot;,i):i instanceof Blob?r.fire(&quot;load&quot;,We(i,i.name)):Ye(i)?r.fire(&quot;load&quot;,We(Ze(i),e,null,o)):n(i)}});return r},nt=function(e){return/GET|HEAD/.test(e)},rt=function(e,t,n){var r={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){o=!0,a.abort()}},o=!1,i=!1;n=Object.assign({method:&quot;POST&quot;,headers:{},withCredentials:!1},n),t=encodeURI(t),nt(n.method)&amp;&amp;e&amp;&amp;(t=&quot;&quot;+t+encodeURIComponent(&quot;string&quot;==typeof e?e:JSON.stringify(e)));var a=new XMLHttpRequest;return(nt(n.method)?a:a.upload).onprogress=function(e){o||r.onprogress(e.lengthComputable,e.loaded,e.total)},a.onreadystatechange=function(){a.readyState&lt;2||4===a.readyState&amp;&amp;0===a.status||i||(i=!0,r.onheaders(a))},a.onload=function(){a.status&gt;=200&amp;&amp;a.status&lt;300?r.onload(a):r.onerror(a)},a.onerror=function(){return r.onerror(a)},a.onabort=function(){o=!0,r.onabort()},a.ontimeout=function(){return r.ontimeout(a)},a.open(n.method,t,!0),V(n.timeout)&amp;&amp;(a.timeout=n.timeout),Object.keys(n.headers).forEach(function(e){var t=unescape(encodeURIComponent(n.headers[e]));a.setRequestHeader(e,t)}),n.responseType&amp;&amp;(a.responseType=n.responseType),n.withCredentials&amp;&amp;(a.withCredentials=!0),a.send(e),r},ot=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},it=function(e){return function(t){e(ot(&quot;error&quot;,0,&quot;Timeout&quot;,t.getAllResponseHeaders()))}},at=function(e){return/\?/.test(e)},ut=function(){for(var e=&quot;&quot;,t=arguments.length,n=new Array(t),r=0;r&lt;t;r++)n[r]=arguments[r];return n.forEach(function(t){e+=at(e)&amp;&amp;at(t)?t.replace(/\?/,&quot;&amp;&quot;):t}),e},st=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:&quot;&quot;,t=arguments.length&gt;1?arguments[1]:void 0;if(&quot;function&quot;==typeof t)return t;if(!t||!U(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(o,i,a,u,s,l){var c=rt(o,ut(e,t.url),Object.assign({},t,{responseType:&quot;blob&quot;}));return c.onload=function(e){var r=e.getAllResponseHeaders(),a=et(r).name||je(o);i(ot(&quot;load&quot;,e.status,&quot;HEAD&quot;===t.method?null:We(n(e.response),a),r))},c.onerror=function(e){a(ot(&quot;error&quot;,e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},c.onheaders=function(e){l(ot(&quot;headers&quot;,e.status,null,e.getAllResponseHeaders()))},c.ontimeout=it(a),c.onprogress=u,c.onabort=s,c}},lt=0,ct=1,ft=2,dt=3,pt=4,Et=function(e,t,n,r,o,i,a,u,s,l,c){for(var f=[],d=c.chunkTransferId,p=c.chunkServer,E=c.chunkSize,_=c.chunkRetryDelays,T={serverId:d,aborted:!1},I=t.ondata||function(e){return e},v=t.onload||function(e,t){return&quot;HEAD&quot;===t?e.getResponseHeader(&quot;Upload-Offset&quot;):e.response},m=t.onerror||function(e){return null},h=Math.floor(r.size/E),g=0;g&lt;=h;g++){var R=g*E,O=r.slice(R,R+E,&quot;application/offset+octet-stream&quot;);f[g]={index:g,size:O.size,offset:R,data:O,file:r,progress:0,retries:se(_),status:lt,error:null,request:null,timeout:null}}var D,y,S,A,L=function(e){return e.status===lt||e.status===dt},P=function(t){if(!T.aborted)if(t=t||f.find(L)){t.status=ft,t.progress=null;var n=p.ondata||function(e){return e},o=p.onerror||function(e){return null},u=ut(e,p.url,T.serverId),l=&quot;function&quot;==typeof p.headers?p.headers(t):Object.assign({},p.headers,{&quot;Content-Type&quot;:&quot;application/offset+octet-stream&quot;,&quot;Upload-Offset&quot;:t.offset,&quot;Upload-Length&quot;:r.size,&quot;Upload-Name&quot;:r.name}),c=t.request=rt(n(t.data),u,Object.assign({},p,{headers:l}));c.onload=function(){t.status=ct,t.request=null,w()},c.onprogress=function(e,n,r){t.progress=e?n:null,M()},c.onerror=function(e){t.status=dt,t.request=null,t.error=o(e.response)||e.statusText,b(t)||a(ot(&quot;error&quot;,e.status,o(e.response)||e.statusText,e.getAllResponseHeaders()))},c.ontimeout=function(e){t.status=dt,t.request=null,b(t)||it(a)(e)},c.onabort=function(){t.status=lt,t.request=null,s()}}else f.every(function(e){return e.status===ct})&amp;&amp;i(T.serverId)},b=function(e){return 0!==e.retries.length&amp;&amp;(e.status=pt,clearTimeout(e.timeout),e.timeout=setTimeout(function(){P(e)},e.retries.shift()),!0)},M=function(){var e=f.reduce(function(e,t){return null===e||null===t.progress?null:e+t.progress},0);if(null===e)return u(!1,0,0);var t=f.reduce(function(e,t){return e+t.size},0);u(!0,e,t)},w=function(){f.filter(function(e){return e.status===ft}).length&gt;=1||P()};return T.serverId?(D=function(e){T.aborted||(f.filter(function(t){return t.offset&lt;e}).forEach(function(e){e.status=ct,e.progress=e.size}),w())},y=ut(e,p.url,T.serverId),S={headers:&quot;function&quot;==typeof t.headers?t.headers(T.serverId):Object.assign({},t.headers),method:&quot;HEAD&quot;},(A=rt(null,y,S)).onload=function(e){return D(v(e,S.method))},A.onerror=function(e){return a(ot(&quot;error&quot;,e.status,m(e.response)||e.statusText,e.getAllResponseHeaders()))},A.ontimeout=it(a)):function(i){var u=new FormData;H(o)&amp;&amp;u.append(n,JSON.stringify(o));var s=&quot;function&quot;==typeof t.headers?t.headers(r,o):Object.assign({},t.headers,{&quot;Upload-Length&quot;:r.size}),l=Object.assign({},t,{headers:s}),c=rt(I(u),ut(e,t.url),l);c.onload=function(e){return i(v(e,l.method))},c.onerror=function(e){return a(ot(&quot;error&quot;,e.status,m(e.response)||e.statusText,e.getAllResponseHeaders()))},c.ontimeout=it(a)}(function(e){T.aborted||(l(e),T.serverId=e,w())}),{abort:function(){T.aborted=!0,f.forEach(function(e){clearTimeout(e.timeout),e.request&amp;&amp;e.request.abort()})}}},_t=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:&quot;&quot;,t=arguments.length&gt;1?arguments[1]:void 0,n=arguments.length&gt;2?arguments[2]:void 0,r=arguments.length&gt;3?arguments[3]:void 0;return&quot;function&quot;==typeof t?function(){for(var e=arguments.length,o=new Array(e),i=0;i&lt;e;i++)o[i]=arguments[i];return t.apply(void 0,[n].concat(o,[r]))}:t&amp;&amp;U(t.url)?function(e,t,n,r){return function(o,i,a,u,s,l,c){if(o){var f=r.chunkUploads,d=f&amp;&amp;o.size&gt;r.chunkSize,p=f&amp;&amp;(d||r.chunkForce);if(o instanceof Blob&amp;&amp;p)return Et(e,t,n,o,i,a,u,s,l,c,r);var E=t.ondata||function(e){return e},_=t.onload||function(e){return e},T=t.onerror||function(e){return null},I=&quot;function&quot;==typeof t.headers?t.headers(o,i)||{}:Object.assign({},t.headers),v=Object.assign({},t,{headers:I}),m=new FormData;H(i)&amp;&amp;m.append(n,JSON.stringify(i)),(o instanceof Blob?[{name:null,file:o}]:o).forEach(function(e){m.append(n,e.file,null===e.name?e.file.name:&quot;&quot;+e.name+e.file.name)});var h=rt(E(m),ut(e,t.url),v);return h.onload=function(e){a(ot(&quot;load&quot;,e.status,_(e.response),e.getAllResponseHeaders()))},h.onerror=function(e){u(ot(&quot;error&quot;,e.status,T(e.response)||e.statusText,e.getAllResponseHeaders()))},h.ontimeout=it(u),h.onprogress=s,h.onabort=l,h}}}(e,t,n,r):null},Tt=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:&quot;&quot;,t=arguments.length&gt;1?arguments[1]:void 0;if(&quot;function&quot;==typeof t)return t;if(!t||!U(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(o,i,a){var u=rt(o,e+t.url,t);return u.onload=function(e){i(ot(&quot;load&quot;,e.status,n(e.response),e.getAllResponseHeaders()))},u.onerror=function(e){a(ot(&quot;error&quot;,e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},u.ontimeout=it(a),u}},It=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:0,t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},vt=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},r=t.allowMinimumUploadDuration,o=function(){n.request&amp;&amp;(n.perceivedPerformanceUpdater.clear(),n.request.abort&amp;&amp;n.request.abort(),n.complete=!0)},i=r?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},a=r?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},u=Object.assign({},pe(),{process:function(t,o){var i=function(){0!==n.duration&amp;&amp;null!==n.progress&amp;&amp;u.fire(&quot;progress&quot;,u.getProgress())},a=function(){n.complete=!0,u.fire(&quot;load-perceived&quot;,n.response.body)};u.fire(&quot;start&quot;),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:1e3,n=(arguments.length&gt;2&amp;&amp;void 0!==arguments[2]&amp;&amp;arguments[2],arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:25),r=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:250,o=null,i=Date.now();return t&gt;0&amp;&amp;function a(){var u=Date.now()-i,s=It(n,r);u+s&gt;t&amp;&amp;(s=u+s-t);var l=u/t;l&gt;=1||document.hidden?e(1):(e(l),o=setTimeout(a,s))}(),{clear:function(){clearTimeout(o)}}}(function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,i(),n.response&amp;&amp;1===n.perceivedProgress&amp;&amp;!n.complete&amp;&amp;a()},r?It(750,1500):0),n.request=e(t,o,function(e){n.response=H(e)?e:{type:&quot;load&quot;,code:200,body:&quot;&quot;+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,u.fire(&quot;load&quot;,n.response.body),(!r||r&amp;&amp;1===n.perceivedProgress)&amp;&amp;a()},function(e){n.perceivedPerformanceUpdater.clear(),u.fire(&quot;error&quot;,H(e)?e:{type:&quot;error&quot;,code:0,body:&quot;&quot;+e})},function(e,t,r){n.duration=Date.now()-n.timestamp,n.progress=e?t/r:null,i()},function(){n.perceivedPerformanceUpdater.clear(),u.fire(&quot;abort&quot;,n.response?n.response.body:null)},function(e){u.fire(&quot;transfer&quot;,e)})},abort:o,getProgress:i,getDuration:a,reset:function(){o(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null}});return u},mt=function(e){return e.substr(0,e.lastIndexOf(&quot;.&quot;))||e},ht=function(e){return!!(e instanceof File||e instanceof Blob&amp;&amp;e.name)},gt=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:null,t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:null,r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:null,o=oe(),i={archived:!1,frozen:!1,released:!1,source:null,file:r,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Ie.PROCESSING_COMPLETE:Ie.INIT,activeLoader:null,activeProcessor:null},a=null,u={},s=function(e){return i.status=e},l=function(e){if(!i.released&amp;&amp;!i.frozen){for(var t=arguments.length,n=new Array(t&gt;1?t-1:0),r=1;r&lt;t;r++)n[r-1]=arguments[r];f.fire.apply(f,[e].concat(n))}},c=function(e,t,n){var r=e.split(&quot;.&quot;),o=r[0],i=r.pop(),a=u;r.forEach(function(e){return a=a[e]}),JSON.stringify(a[i])!==JSON.stringify(t)&amp;&amp;(a[i]=t,l(&quot;metadata-update&quot;,{key:o,value:u[o],silent:n}))},f=Object.assign({id:{get:function(){return o}},origin:{get:function(){return e},set:function(t){return e=t}},serverId:{get:function(){return i.serverFileReference}},transferId:{get:function(){return i.transferId}},status:{get:function(){return i.status}},filename:{get:function(){return i.file.name}},filenameWithoutExtension:{get:function(){return mt(i.file.name)}},fileExtension:{get:function(){return ke(i.file.name)}},fileType:{get:function(){return i.file.type}},fileSize:{get:function(){return i.file.size}},file:{get:function(){return i.file}},relativePath:{get:function(){return i.file._relativePath}},source:{get:function(){return i.source}},getMetadata:function(e){return function e(t){if(!H(t))return t;var n=b(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];n[r]=o&amp;&amp;H(o)?e(o):o}return n}(e?u[e]:u)},setMetadata:function(e,t,n){if(H(e)){var r=e;return Object.keys(r).forEach(function(e){c(e,r[e],t)}),e}return c(e,t,n),t},extend:function(e,t){return d[e]=t},abortLoad:function(){i.activeLoader?i.activeLoader.abort():(s(Ie.INIT),l(&quot;load-abort&quot;))},retryLoad:function(){i.activeLoader&amp;&amp;i.activeLoader.load()},requestProcessing:function(){i.processingAborted=!1,s(Ie.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise(function(e){if(!i.activeProcessor)return i.processingAborted=!0,s(Ie.IDLE),l(&quot;process-abort&quot;),void e();a=function(){e()},i.activeProcessor.abort()})},load:function(t,n,r){i.source=t,f.fireSync(&quot;init&quot;),i.file?f.fireSync(&quot;load-skip&quot;):(i.file=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||Ye(e)?t[0]=e.name||Xe():Ye(e)?(t[1]=e.length,t[2]=Qe(e)):U(e)&amp;&amp;(t[0]=je(e),t[1]=0,t[2]=&quot;application/octet-stream&quot;),{name:t[0],size:t[1],type:t[2]}}(t),n.on(&quot;init&quot;,function(){l(&quot;load-init&quot;)}),n.on(&quot;meta&quot;,function(t){i.file.size=t.size,i.file.filename=t.filename,t.source&amp;&amp;(e=ve.LIMBO,i.serverFileReference=t.source,i.status=Ie.PROCESSING_COMPLETE),l(&quot;load-meta&quot;)}),n.on(&quot;progress&quot;,function(e){s(Ie.LOADING),l(&quot;load-progress&quot;,e)}),n.on(&quot;error&quot;,function(e){s(Ie.LOAD_ERROR),l(&quot;load-request-error&quot;,e)}),n.on(&quot;abort&quot;,function(){s(Ie.INIT),l(&quot;load-abort&quot;)}),n.on(&quot;load&quot;,function(t){i.activeLoader=null;var n=function(t){i.file=ht(t)?t:i.file,e===ve.LIMBO&amp;&amp;i.serverFileReference?s(Ie.PROCESSING_COMPLETE):s(Ie.IDLE),l(&quot;load&quot;)};i.serverFileReference?n(t):r(t,n,function(e){i.file=t,l(&quot;load-meta&quot;),s(Ie.LOAD_ERROR),l(&quot;load-file-error&quot;,e)})}),n.setSource(t),i.activeLoader=n,n.load())},process:function e(t,n){if(i.processingAborted)i.processingAborted=!1;else if(s(Ie.PROCESSING),a=null,i.file instanceof Blob){t.on(&quot;load&quot;,function(e){i.transferId=null,i.serverFileReference=e}),t.on(&quot;transfer&quot;,function(e){i.transferId=e}),t.on(&quot;load-perceived&quot;,function(e){i.activeProcessor=null,i.transferId=null,i.serverFileReference=e,s(Ie.PROCESSING_COMPLETE),l(&quot;process-complete&quot;,e)}),t.on(&quot;start&quot;,function(){l(&quot;process-start&quot;)}),t.on(&quot;error&quot;,function(e){i.activeProcessor=null,s(Ie.PROCESSING_ERROR),l(&quot;process-error&quot;,e)}),t.on(&quot;abort&quot;,function(e){i.activeProcessor=null,i.transferId=null,i.serverFileReference=e,s(Ie.IDLE),l(&quot;process-abort&quot;),a&amp;&amp;a()}),t.on(&quot;progress&quot;,function(e){l(&quot;process-progress&quot;,e)});var r=console.error;n(i.file,function(e){i.archived||t.process(e,Object.assign({},u))},r),i.activeProcessor=t}else f.on(&quot;load&quot;,function(){e(t,n)})},revert:function(e,t){return new Promise(function(n,r){null!==i.serverFileReference?(e(i.serverFileReference,function(){i.serverFileReference=null,n()},function(e){t?(s(Ie.PROCESSING_REVERT_ERROR),l(&quot;process-revert-error&quot;),r(e)):n()}),s(Ie.IDLE),l(&quot;process-revert&quot;)):n()})}},pe(),{freeze:function(){return i.frozen=!0},release:function(){return i.released=!0},released:{get:function(){return i.released}},archive:function(){return i.archived=!0},archived:{get:function(){return i.archived}}}),d=n(f);return d},Rt=function(e,t){var n=function(e,t){return M(t)?0:U(t)?e.findIndex(function(e){return e.id===t}):-1}(e,t);if(!(n&lt;0))return e[n]||null},Ot=function(e,t,n,r,o,i){var a=rt(null,e,{method:&quot;GET&quot;,responseType:&quot;blob&quot;});return a.onload=function(n){var r=n.getAllResponseHeaders(),o=et(r).name||je(e);t(ot(&quot;load&quot;,n.status,We(n.response,o),r))},a.onerror=function(e){n(ot(&quot;error&quot;,e.status,e.statusText,e.getAllResponseHeaders()))},a.onheaders=function(e){i(ot(&quot;headers&quot;,e.status,null,e.getAllResponseHeaders()))},a.ontimeout=it(n),a.onprogress=r,a.onabort=o,a},Dt=function(e){return 0===e.indexOf(&quot;//&quot;)&amp;&amp;(e=location.protocol+e),e.toLowerCase().replace(&quot;blob:&quot;,&quot;&quot;).replace(/([a-z])?:\/\//,&quot;$1&quot;).split(&quot;/&quot;)[0]},yt=function(e){return function(){return Y(e)?e.apply(void 0,arguments):e}},St=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(function(){e(&quot;DID_UPDATE_ITEMS&quot;,{items:be(t.items)})},0)},At=function(e){for(var t=arguments.length,n=new Array(t&gt;1?t-1:0),r=1;r&lt;t;r++)n[r-1]=arguments[r];return new Promise(function(t){if(!e)return t(!0);var r=e.apply(void 0,n);return null==r?t(!0):&quot;boolean&quot;==typeof r?t(r):void(&quot;function&quot;==typeof r.then&amp;&amp;r.then(t))})},Lt=function(e,t){e.items.sort(function(e,n){return t(Te(e),Te(n))})},Pt=function(e,t){return function(){var n=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},r=n.query,o=n.success,i=void 0===o?function(){}:o,a=n.failure,u=void 0===a?function(){}:a,s=ue(n,[&quot;query&quot;,&quot;success&quot;,&quot;failure&quot;]),l=Le(e.items,r);l?t(l,i,u,s||{}):u({error:ot(&quot;error&quot;,0,&quot;Item not found&quot;),file:null})}},bt=function(e,n,r){return{ABORT_ALL:function(){be(r.items).forEach(function(e){e.freeze(),e.abortLoad(),e.abortProcessing()})},DID_SET_FILES:function(t){var n=t.value,o=(void 0===n?[]:n).map(function(e){return{source:e.source?e.source:e,options:e.options}}),i=be(r.items);i.forEach(function(t){o.find(function(e){return e.source===t.source||e.source===t.file})||e(&quot;REMOVE_ITEM&quot;,{query:t,remove:!1})}),i=be(r.items),o.forEach(function(t,n){i.find(function(e){return e.source===t.source||e.file===t.source})||e(&quot;ADD_ITEM&quot;,Object.assign({},t,{interactionMethod:re,index:n}))})},DID_UPDATE_ITEM_METADATA:function(t){var o=t.id,i=t.action,a=t.change;a.silent||(clearTimeout(r.itemUpdateTimeout),r.itemUpdateTimeout=setTimeout(function(){var t=Rt(r.items,o);if(n(&quot;IS_ASYNC&quot;)){t.origin===ve.LOCAL&amp;&amp;e(&quot;DID_LOAD_ITEM&quot;,{id:t.id,error:null,serverFileReference:t.source});var u,s=function(){setTimeout(function(){e(&quot;REQUEST_ITEM_PROCESSING&quot;,{query:o})},32)};return t.status===Ie.PROCESSING_COMPLETE?(u=r.options.instantUpload,void t.revert(Tt(r.options.server.url,r.options.server.revert),n(&quot;GET_FORCE_REVERT&quot;)).then(u?s:function(){}).catch(function(){})):t.status===Ie.PROCESSING?function(e){t.abortProcessing().then(e?s:function(){})}(r.options.instantUpload):void(r.options.instantUpload&amp;&amp;s())}Oe(&quot;SHOULD_PREPARE_OUTPUT&quot;,!1,{item:t,query:n,action:i,change:a}).then(function(r){var i=n(&quot;GET_BEFORE_PREPARE_FILE&quot;);i&amp;&amp;(r=i(t,r)),r&amp;&amp;e(&quot;REQUEST_PREPARE_OUTPUT&quot;,{query:o,item:t,success:function(t){e(&quot;DID_PREPARE_OUTPUT&quot;,{id:o,file:t})}},!0)})},0))},MOVE_ITEM:function(e){var t=e.query,n=e.index,o=Le(r.items,t);if(o){var i=r.items.indexOf(o);i!==(n=xe(n,0,r.items.length-1))&amp;&amp;r.items.splice(n,0,r.items.splice(i,1)[0])}},SORT:function(t){var o=t.compare;Lt(r,o),e(&quot;DID_SORT_ITEMS&quot;,{items:n(&quot;GET_ACTIVE_ITEMS&quot;)})},ADD_ITEMS:function(t){var r=t.items,o=t.index,i=t.interactionMethod,a=t.success,u=void 0===a?function(){}:a,s=t.failure,l=void 0===s?function(){}:s,c=o;if(-1===o||void 0===o){var f=n(&quot;GET_ITEM_INSERT_LOCATION&quot;),d=n(&quot;GET_TOTAL_ITEMS&quot;);c=&quot;before&quot;===f?0:d}var p=n(&quot;GET_IGNORED_FILES&quot;),E=r.filter(function(e){return ht(e)?!p.includes(e.name.toLowerCase()):!M(e)}).map(function(t){return new Promise(function(n,r){e(&quot;ADD_ITEM&quot;,{interactionMethod:i,source:t.source||t,success:n,failure:r,index:c++,options:t.options||{}})})});Promise.all(E).then(u).catch(l)},ADD_ITEM:function(t){var o=t.source,i=t.index,a=void 0===i?-1:i,u=t.interactionMethod,s=t.success,l=void 0===s?function(){}:s,c=t.failure,f=void 0===c?function(){}:c,d=t.options,p=void 0===d?{}:d;if(M(o))f({error:ot(&quot;error&quot;,0,&quot;No source&quot;),file:null});else if(!ht(o)||!r.options.ignoredFiles.includes(o.name.toLowerCase())){if(!function(e){var t=be(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t&lt;n}(r)){if(r.options.allowMultiple||!r.options.allowMultiple&amp;&amp;!r.options.allowReplace){var E=ot(&quot;warning&quot;,0,&quot;Max files&quot;);return e(&quot;DID_THROW_MAX_FILES&quot;,{source:o,error:E}),void f({error:E,file:null})}var _=be(r.items)[0];if(_.status===Ie.PROCESSING_COMPLETE||_.status===Ie.PROCESSING_REVERT_ERROR){var T=n(&quot;GET_FORCE_REVERT&quot;);if(_.revert(Tt(r.options.server.url,r.options.server.revert),T).then(function(){T&amp;&amp;e(&quot;ADD_ITEM&quot;,{source:o,index:a,interactionMethod:u,success:l,failure:f,options:p})}).catch(function(){}),T)return}e(&quot;REMOVE_ITEM&quot;,{query:_.id})}var I=&quot;local&quot;===p.type?ve.LOCAL:&quot;limbo&quot;===p.type?ve.LIMBO:ve.INPUT,v=gt(I,I===ve.INPUT?null:o,p.file);Object.keys(p.metadata||{}).forEach(function(e){v.setMetadata(e,p.metadata[e])}),De(&quot;DID_CREATE_ITEM&quot;,v,{query:n,dispatch:e});var m=n(&quot;GET_ITEM_INSERT_LOCATION&quot;);r.options.itemInsertLocationFreedom||(a=&quot;before&quot;===m?-1:r.items.length),function(e,t,n){M(t)||(void 0===n?e.push(t):function(e,t,n){e.splice(t,0,n)}(e,n=xe(n,0,e.length),t))}(r.items,v,a),Y(m)&amp;&amp;o&amp;&amp;Lt(r,m);var h=v.id;v.on(&quot;init&quot;,function(){e(&quot;DID_INIT_ITEM&quot;,{id:h})}),v.on(&quot;load-init&quot;,function(){e(&quot;DID_START_ITEM_LOAD&quot;,{id:h})}),v.on(&quot;load-meta&quot;,function(){e(&quot;DID_UPDATE_ITEM_META&quot;,{id:h})}),v.on(&quot;load-progress&quot;,function(t){e(&quot;DID_UPDATE_ITEM_LOAD_PROGRESS&quot;,{id:h,progress:t})}),v.on(&quot;load-request-error&quot;,function(t){var n=yt(r.options.labelFileLoadError)(t);if(t.code&gt;=400&amp;&amp;t.code&lt;500)return e(&quot;DID_THROW_ITEM_INVALID&quot;,{id:h,error:t,status:{main:n,sub:t.code+&quot; (&quot;+t.body+&quot;)&quot;}}),void f({error:t,file:Te(v)});e(&quot;DID_THROW_ITEM_LOAD_ERROR&quot;,{id:h,error:t,status:{main:n,sub:r.options.labelTapToRetry}})}),v.on(&quot;load-file-error&quot;,function(t){e(&quot;DID_THROW_ITEM_INVALID&quot;,{id:h,error:t.status,status:t.status}),f({error:t.status,file:Te(v)})}),v.on(&quot;load-abort&quot;,function(){e(&quot;REMOVE_ITEM&quot;,{query:h})}),v.on(&quot;load-skip&quot;,function(){e(&quot;COMPLETE_LOAD_ITEM&quot;,{query:h,item:v,data:{source:o,success:l}})}),v.on(&quot;load&quot;,function(){var t=function(t){t?(v.on(&quot;metadata-update&quot;,function(t){e(&quot;DID_UPDATE_ITEM_METADATA&quot;,{id:h,change:t})}),Oe(&quot;SHOULD_PREPARE_OUTPUT&quot;,!1,{item:v,query:n}).then(function(t){var i=n(&quot;GET_BEFORE_PREPARE_FILE&quot;);i&amp;&amp;(t=i(v,t));var a=function(){e(&quot;COMPLETE_LOAD_ITEM&quot;,{query:h,item:v,data:{source:o,success:l}}),St(e,r)};t?e(&quot;REQUEST_PREPARE_OUTPUT&quot;,{query:h,item:v,success:function(t){e(&quot;DID_PREPARE_OUTPUT&quot;,{id:h,file:t}),a()}},!0):a()})):e(&quot;REMOVE_ITEM&quot;,{query:h})};Oe(&quot;DID_LOAD_ITEM&quot;,v,{query:n,dispatch:e}).then(function(){At(n(&quot;GET_BEFORE_ADD_FILE&quot;),Te(v)).then(t)}).catch(function(){t(!1)})}),v.on(&quot;process-start&quot;,function(){e(&quot;DID_START_ITEM_PROCESSING&quot;,{id:h})}),v.on(&quot;process-progress&quot;,function(t){e(&quot;DID_UPDATE_ITEM_PROCESS_PROGRESS&quot;,{id:h,progress:t})}),v.on(&quot;process-error&quot;,function(t){e(&quot;DID_THROW_ITEM_PROCESSING_ERROR&quot;,{id:h,error:t,status:{main:yt(r.options.labelFileProcessingError)(t),sub:r.options.labelTapToRetry}})}),v.on(&quot;process-revert-error&quot;,function(t){e(&quot;DID_THROW_ITEM_PROCESSING_REVERT_ERROR&quot;,{id:h,error:t,status:{main:yt(r.options.labelFileProcessingRevertError)(t),sub:r.options.labelTapToRetry}})}),v.on(&quot;process-complete&quot;,function(t){e(&quot;DID_COMPLETE_ITEM_PROCESSING&quot;,{id:h,error:null,serverFileReference:t}),e(&quot;DID_DEFINE_VALUE&quot;,{id:h,value:t})}),v.on(&quot;process-abort&quot;,function(){e(&quot;DID_ABORT_ITEM_PROCESSING&quot;,{id:h})}),v.on(&quot;process-revert&quot;,function(){e(&quot;DID_REVERT_ITEM_PROCESSING&quot;,{id:h}),e(&quot;DID_DEFINE_VALUE&quot;,{id:h,value:null})}),e(&quot;DID_ADD_ITEM&quot;,{id:h,index:a,interactionMethod:u}),St(e,r);var g=r.options.server||{},R=g.url,O=g.load,D=g.restore,y=g.fetch;v.load(o,tt(I===ve.INPUT?U(o)&amp;&amp;function(e){return(e.indexOf(&quot;:&quot;)&gt;-1||e.indexOf(&quot;//&quot;)&gt;-1)&amp;&amp;Dt(location.href)!==Dt(e)}(o)&amp;&amp;y?st(R,y):Ot:st(R,I===ve.LIMBO?D:O)),function(e,t,r){Oe(&quot;LOAD_FILE&quot;,e,{query:n}).then(t).catch(r)})}},REQUEST_PREPARE_OUTPUT:function(e){var t=e.item,r=e.success,o=e.failure,i=void 0===o?function(){}:o,a={error:ot(&quot;error&quot;,0,&quot;Item not found&quot;),file:null};if(t.archived)return i(a);Oe(&quot;PREPARE_OUTPUT&quot;,t.file,{query:n,item:t}).then(function(e){Oe(&quot;COMPLETE_PREPARE_OUTPUT&quot;,e,{query:n,item:t}).then(function(e){if(t.archived)return i(a);r(e)})})},COMPLETE_LOAD_ITEM:function(t){var o=t.item,i=t.data,a=i.success,u=i.source,s=n(&quot;GET_ITEM_INSERT_LOCATION&quot;);if(Y(s)&amp;&amp;u&amp;&amp;Lt(r,s),e(&quot;DID_LOAD_ITEM&quot;,{id:o.id,error:null,serverFileReference:o.origin===ve.INPUT?null:u}),a(Te(o)),o.origin!==ve.LOCAL)return o.origin===ve.LIMBO?(e(&quot;DID_COMPLETE_ITEM_PROCESSING&quot;,{id:o.id,error:null,serverFileReference:u}),void e(&quot;DID_DEFINE_VALUE&quot;,{id:o.id,value:o.serverId||u})):void(n(&quot;IS_ASYNC&quot;)&amp;&amp;r.options.instantUpload&amp;&amp;e(&quot;REQUEST_ITEM_PROCESSING&quot;,{query:o.id}));e(&quot;DID_LOAD_LOCAL_ITEM&quot;,{id:o.id})},RETRY_ITEM_LOAD:Pt(r,function(e){e.retryLoad()}),REQUEST_ITEM_PREPARE:Pt(r,function(t,n,r){e(&quot;REQUEST_PREPARE_OUTPUT&quot;,{query:t.id,item:t,success:function(r){e(&quot;DID_PREPARE_OUTPUT&quot;,{id:t.id,file:r}),n({file:t,output:r})},failure:r},!0)}),REQUEST_ITEM_PROCESSING:Pt(r,function(t,o,i){if(t.status===Ie.IDLE||t.status===Ie.PROCESSING_ERROR)t.status!==Ie.PROCESSING_QUEUED&amp;&amp;(t.requestProcessing(),e(&quot;DID_REQUEST_ITEM_PROCESSING&quot;,{id:t.id}),e(&quot;PROCESS_ITEM&quot;,{query:t,success:o,failure:i},!0));else{var a=function(){return e(&quot;REQUEST_ITEM_PROCESSING&quot;,{query:t,success:o,failure:i})},u=function(){return document.hidden?a():setTimeout(a,32)};t.status===Ie.PROCESSING_COMPLETE||t.status===Ie.PROCESSING_REVERT_ERROR?t.revert(Tt(r.options.server.url,r.options.server.revert),n(&quot;GET_FORCE_REVERT&quot;)).then(u).catch(function(){}):t.status===Ie.PROCESSING&amp;&amp;t.abortProcessing().then(u)}}),PROCESS_ITEM:Pt(r,function(t,o,i){var a=n(&quot;GET_MAX_PARALLEL_UPLOADS&quot;);if(n(&quot;GET_ITEMS_BY_STATUS&quot;,Ie.PROCESSING).length!==a){if(t.status!==Ie.PROCESSING){var u=function t(){var n=r.processingQueue.shift();if(n){var o=n.id,i=n.success,a=n.failure,u=Le(r.items,o);u&amp;&amp;!u.archived?e(&quot;PROCESS_ITEM&quot;,{query:o,success:i,failure:a},!0):t()}};t.onOnce(&quot;process-complete&quot;,function(){o(Te(t)),u();var i=r.options.server;if(r.options.instantUpload&amp;&amp;t.origin===ve.LOCAL&amp;&amp;Y(i.remove)){var a=function(){};t.origin=ve.LIMBO,r.options.server.remove(t.source,a,a)}n(&quot;GET_ITEMS_BY_STATUS&quot;,Ie.PROCESSING_COMPLETE).length===r.items.length&amp;&amp;e(&quot;DID_COMPLETE_ITEM_PROCESSING_ALL&quot;)}),t.onOnce(&quot;process-error&quot;,function(e){i({error:e,file:Te(t)}),u()});var s=r.options;t.process(vt(_t(s.server.url,s.server.process,s.name,{chunkTransferId:t.transferId,chunkServer:s.server.patch,chunkUploads:s.chunkUploads,chunkForce:s.chunkForce,chunkSize:s.chunkSize,chunkRetryDelays:s.chunkRetryDelays}),{allowMinimumUploadDuration:n(&quot;GET_ALLOW_MINIMUM_UPLOAD_DURATION&quot;)}),function(r,o,i){Oe(&quot;PREPARE_OUTPUT&quot;,r,{query:n,item:t}).then(function(n){e(&quot;DID_PREPARE_OUTPUT&quot;,{id:t.id,file:n}),o(n)}).catch(i)})}}else r.processingQueue.push({id:t.id,success:o,failure:i})}),RETRY_ITEM_PROCESSING:Pt(r,function(t){e(&quot;REQUEST_ITEM_PROCESSING&quot;,{query:t})}),REQUEST_REMOVE_ITEM:Pt(r,function(t){At(n(&quot;GET_BEFORE_REMOVE_FILE&quot;),Te(t)).then(function(n){n&amp;&amp;e(&quot;REMOVE_ITEM&quot;,{query:t})})}),RELEASE_ITEM:Pt(r,function(e){e.release()}),REMOVE_ITEM:Pt(r,function(t,o,i,a){var u=function(){var n=t.id;Rt(r.items,n).archive(),e(&quot;DID_REMOVE_ITEM&quot;,{error:null,id:n,item:t}),St(e,r),o(Te(t))},s=r.options.server;t.origin===ve.LOCAL&amp;&amp;s&amp;&amp;Y(s.remove)&amp;&amp;!1!==a.remove?(e(&quot;DID_START_ITEM_REMOVE&quot;,{id:t.id}),s.remove(t.source,function(){return u()},function(n){e(&quot;DID_THROW_ITEM_REMOVE_ERROR&quot;,{id:t.id,error:ot(&quot;error&quot;,0,n,null),status:{main:yt(r.options.labelFileRemoveError)(n),sub:r.options.labelTapToRetry}})})):(a.revert&amp;&amp;t.origin!==ve.LOCAL&amp;&amp;null!==t.serverId&amp;&amp;t.revert(Tt(r.options.server.url,r.options.server.revert),n(&quot;GET_FORCE_REVERT&quot;)),u())}),ABORT_ITEM_LOAD:Pt(r,function(e){e.abortLoad()}),ABORT_ITEM_PROCESSING:Pt(r,function(t){t.serverId?e(&quot;REVERT_ITEM_PROCESSING&quot;,{id:t.id}):t.abortProcessing().then(function(){r.options.instantUpload&amp;&amp;e(&quot;REMOVE_ITEM&quot;,{query:t.id})})}),REQUEST_REVERT_ITEM_PROCESSING:Pt(r,function(t){if(r.options.instantUpload){var o=function(n){n&amp;&amp;e(&quot;REVERT_ITEM_PROCESSING&quot;,{query:t})},i=n(&quot;GET_BEFORE_REMOVE_FILE&quot;);if(!i)return o(!0);var a=i(Te(t));return null==a?o(!0):&quot;boolean&quot;==typeof a?o(a):void(&quot;function&quot;==typeof a.then&amp;&amp;a.then(o))}e(&quot;REVERT_ITEM_PROCESSING&quot;,{query:t})}),REVERT_ITEM_PROCESSING:Pt(r,function(t){t.revert(Tt(r.options.server.url,r.options.server.revert),n(&quot;GET_FORCE_REVERT&quot;)).then(function(){(r.options.instantUpload||function(e){return!ht(e.file)}(t))&amp;&amp;e(&quot;REMOVE_ITEM&quot;,{query:t.id})}).catch(function(){})}),SET_OPTIONS:function(n){var r=n.options;t(r,function(t,n){e(&quot;SET_&quot;+Z(t,&quot;_&quot;).toUpperCase(),{value:n})})}}},Mt=function(e){return e},wt=function(e){return document.createElement(e)},Ct=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&amp;&amp;(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},Nt=function(e,t,n,r){var o=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},Gt=function(e,t,n,r,o){var i=1;return o&gt;r&amp;&amp;o-r&lt;=.5&amp;&amp;(i=0),r&gt;o&amp;&amp;r-o&gt;=.5&amp;&amp;(i=0),function(e,t,n,r,o,i){var a=Nt(e,t,n,o),u=Nt(e,t,n,r);return[&quot;M&quot;,a.x,a.y,&quot;A&quot;,n,n,0,i,0,u.x,u.y].join(&quot; &quot;)}(e,t,n,360*Math.min(.9999,r),360*Math.min(.9999,o),i)},Ut=S({tag:&quot;div&quot;,name:&quot;progress-indicator&quot;,ignoreRectUpdate:!0,ignoreRect:!0,create:function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=a(&quot;svg&quot;);t.ref.path=a(&quot;path&quot;,{&quot;stroke-width&quot;:2,&quot;stroke-linecap&quot;:&quot;round&quot;}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},write:function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&amp;&amp;(t.element.dataset.align=n.align);var o=parseInt(r(t.ref.path,&quot;stroke-width&quot;),10),i=.5*t.rect.element.width,a=0,u=0;n.spin?(a=0,u=.5):(a=0,u=n.progress);var s=Gt(i,i,i-o,a,u);r(t.ref.path,&quot;d&quot;,s),r(t.ref.path,&quot;stroke-opacity&quot;,n.spin||n.progress&gt;0?1:0)}},mixins:{apis:[&quot;progress&quot;,&quot;spin&quot;,&quot;align&quot;],styles:[&quot;opacity&quot;],animations:{opacity:{type:&quot;tween&quot;,duration:500},progress:{type:&quot;spring&quot;,stiffness:.95,damping:.65,mass:10}}}}),Bt=S({tag:&quot;button&quot;,attributes:{type:&quot;button&quot;},ignoreRect:!0,ignoreRectUpdate:!0,name:&quot;file-action-button&quot;,mixins:{apis:[&quot;label&quot;],styles:[&quot;translateX&quot;,&quot;translateY&quot;,&quot;scaleX&quot;,&quot;scaleY&quot;,&quot;opacity&quot;],animations:{scaleX:&quot;spring&quot;,scaleY:&quot;spring&quot;,translateX:&quot;spring&quot;,translateY:&quot;spring&quot;,opacity:{type:&quot;tween&quot;,duration:250}},listeners:!0},create:function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||&quot;&quot;)+&quot;&lt;span&gt;&quot;+n.label+&quot;&lt;/span&gt;&quot;,n.isDisabled=!1},write:function(e){var t=e.root,n=e.props,o=n.isDisabled,i=t.query(&quot;GET_DISABLED&quot;)||0===n.opacity;i&amp;&amp;!o?(n.isDisabled=!0,r(t.element,&quot;disabled&quot;,&quot;disabled&quot;)):!i&amp;&amp;o&amp;&amp;(n.isDisabled=!1,t.element.removeAttribute(&quot;disabled&quot;))}}),qt=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:&quot;.&quot;,n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:1e3,r=n,o=n*n,i=n*n*n;return(e=Math.round(Math.abs(e)))&lt;r?e+&quot; bytes&quot;:e&lt;o?Math.floor(e/r)+&quot; KB&quot;:e&lt;i?Ft(e/o,1,t)+&quot; MB&quot;:Ft(e/i,2,t)+&quot; GB&quot;},Ft=function(e,t,n){return e.toFixed(t).split(&quot;.&quot;).filter(function(e){return&quot;0&quot;!==e}).join(n)},Vt=function(e){var t=e.root,n=e.props;Ct(t.ref.fileSize,qt(t.query(&quot;GET_ITEM_SIZE&quot;,n.id),&quot;.&quot;,t.query(&quot;GET_FILE_SIZE_BASE&quot;))),Ct(t.ref.fileName,Mt(t.query(&quot;GET_ITEM_NAME&quot;,n.id)))},xt=function(e){var t=e.root,n=e.props;V(t.query(&quot;GET_ITEM_SIZE&quot;,n.id))||Ct(t.ref.fileSize,t.query(&quot;GET_LABEL_FILE_SIZE_NOT_AVAILABLE&quot;))},Yt=S({name:&quot;file-info&quot;,ignoreRect:!0,ignoreRectUpdate:!0,write:A({DID_LOAD_ITEM:Vt,DID_UPDATE_ITEM_META:Vt,DID_THROW_ITEM_LOAD_ERROR:xt,DID_THROW_ITEM_INVALID:xt}),didCreateView:function(e){De(&quot;CREATE_VIEW&quot;,Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=e.props,o=wt(&quot;span&quot;);o.className=&quot;filepond--file-info-main&quot;,r(o,&quot;aria-hidden&quot;,&quot;true&quot;),t.appendChild(o),t.ref.fileName=o;var i=wt(&quot;span&quot;);i.className=&quot;filepond--file-info-sub&quot;,t.appendChild(i),t.ref.fileSize=i,Ct(i,t.query(&quot;GET_LABEL_FILE_WAITING_FOR_SIZE&quot;)),Ct(o,Mt(t.query(&quot;GET_ITEM_NAME&quot;,n.id)))},mixins:{styles:[&quot;translateX&quot;,&quot;translateY&quot;],animations:{translateX:&quot;spring&quot;,translateY:&quot;spring&quot;}}}),jt=function(e){return Math.round(100*e)},kt=function(e){var t=e.root,n=e.action,r=null===n.progress?t.query(&quot;GET_LABEL_FILE_LOADING&quot;):t.query(&quot;GET_LABEL_FILE_LOADING&quot;)+&quot; &quot;+jt(n.progress)+&quot;%&quot;;Ct(t.ref.main,r),Ct(t.ref.sub,t.query(&quot;GET_LABEL_TAP_TO_CANCEL&quot;))},Ht=function(e){var t=e.root;Ct(t.ref.main,&quot;&quot;),Ct(t.ref.sub,&quot;&quot;)},Xt=function(e){var t=e.root,n=e.action;Ct(t.ref.main,n.status.main),Ct(t.ref.sub,n.status.sub)},Wt=S({name:&quot;file-status&quot;,ignoreRect:!0,ignoreRectUpdate:!0,write:A({DID_LOAD_ITEM:Ht,DID_REVERT_ITEM_PROCESSING:Ht,DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;Ct(t.ref.main,t.query(&quot;GET_LABEL_FILE_PROCESSING&quot;)),Ct(t.ref.sub,t.query(&quot;GET_LABEL_TAP_TO_CANCEL&quot;))},DID_ABORT_ITEM_PROCESSING:function(e){var t=e.root;Ct(t.ref.main,t.query(&quot;GET_LABEL_FILE_PROCESSING_ABORTED&quot;)),Ct(t.ref.sub,t.query(&quot;GET_LABEL_TAP_TO_RETRY&quot;))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root;Ct(t.ref.main,t.query(&quot;GET_LABEL_FILE_PROCESSING_COMPLETE&quot;)),Ct(t.ref.sub,t.query(&quot;GET_LABEL_TAP_TO_UNDO&quot;))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action,r=null===n.progress?t.query(&quot;GET_LABEL_FILE_PROCESSING&quot;):t.query(&quot;GET_LABEL_FILE_PROCESSING&quot;)+&quot; &quot;+jt(n.progress)+&quot;%&quot;;Ct(t.ref.main,r),Ct(t.ref.sub,t.query(&quot;GET_LABEL_TAP_TO_CANCEL&quot;))},DID_UPDATE_ITEM_LOAD_PROGRESS:kt,DID_THROW_ITEM_LOAD_ERROR:Xt,DID_THROW_ITEM_INVALID:Xt,DID_THROW_ITEM_PROCESSING_ERROR:Xt,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Xt,DID_THROW_ITEM_REMOVE_ERROR:Xt}),didCreateView:function(e){De(&quot;CREATE_VIEW&quot;,Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=wt(&quot;span&quot;);n.className=&quot;filepond--file-status-main&quot;,t.appendChild(n),t.ref.main=n;var r=wt(&quot;span&quot;);r.className=&quot;filepond--file-status-sub&quot;,t.appendChild(r),t.ref.sub=r,kt({root:t,action:{progress:null}})},mixins:{styles:[&quot;translateX&quot;,&quot;translateY&quot;,&quot;opacity&quot;],animations:{opacity:{type:&quot;tween&quot;,duration:250},translateX:&quot;spring&quot;,translateY:&quot;spring&quot;}}}),zt={AbortItemLoad:{label:&quot;GET_LABEL_BUTTON_ABORT_ITEM_LOAD&quot;,action:&quot;ABORT_ITEM_LOAD&quot;,className:&quot;filepond--action-abort-item-load&quot;,align:&quot;LOAD_INDICATOR_POSITION&quot;},RetryItemLoad:{label:&quot;GET_LABEL_BUTTON_RETRY_ITEM_LOAD&quot;,action:&quot;RETRY_ITEM_LOAD&quot;,icon:&quot;GET_ICON_RETRY&quot;,className:&quot;filepond--action-retry-item-load&quot;,align:&quot;BUTTON_PROCESS_ITEM_POSITION&quot;},RemoveItem:{label:&quot;GET_LABEL_BUTTON_REMOVE_ITEM&quot;,action:&quot;REQUEST_REMOVE_ITEM&quot;,icon:&quot;GET_ICON_REMOVE&quot;,className:&quot;filepond--action-remove-item&quot;,align:&quot;BUTTON_REMOVE_ITEM_POSITION&quot;},ProcessItem:{label:&quot;GET_LABEL_BUTTON_PROCESS_ITEM&quot;,action:&quot;REQUEST_ITEM_PROCESSING&quot;,icon:&quot;GET_ICON_PROCESS&quot;,className:&quot;filepond--action-process-item&quot;,align:&quot;BUTTON_PROCESS_ITEM_POSITION&quot;},AbortItemProcessing:{label:&quot;GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING&quot;,action:&quot;ABORT_ITEM_PROCESSING&quot;,className:&quot;filepond--action-abort-item-processing&quot;,align:&quot;BUTTON_PROCESS_ITEM_POSITION&quot;},RetryItemProcessing:{label:&quot;GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING&quot;,action:&quot;RETRY_ITEM_PROCESSING&quot;,icon:&quot;GET_ICON_RETRY&quot;,className:&quot;filepond--action-retry-item-processing&quot;,align:&quot;BUTTON_PROCESS_ITEM_POSITION&quot;},RevertItemProcessing:{label:&quot;GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING&quot;,action:&quot;REQUEST_REVERT_ITEM_PROCESSING&quot;,icon:&quot;GET_ICON_UNDO&quot;,className:&quot;filepond--action-revert-item-processing&quot;,align:&quot;BUTTON_PROCESS_ITEM_POSITION&quot;}},Qt=[];t(zt,function(e){Qt.push(e)});var Zt,$t=function(e){if(&quot;right&quot;===tn(e))return 0;var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},Kt=function(e){return e.ref.buttonAbortItemLoad.rect.element.width},Jt=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},en=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},tn=function(e){return e.query(&quot;GET_STYLE_BUTTON_REMOVE_ITEM_POSITION&quot;)},nn={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(e){return e.query(&quot;GET_STYLE_LOAD_INDICATOR_POSITION&quot;)}},processProgressIndicator:{opacity:0,align:function(e){return e.query(&quot;GET_STYLE_PROGRESS_INDICATOR_POSITION&quot;)}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},rn={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:$t},status:{translateX:$t}},on={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},an={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:$t},status:{translateX:$t,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:$t},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:tn},info:{translateX:$t},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:tn},buttonRemoveItem:{opacity:1},info:{translateX:$t},status:{opacity:1,translateX:$t}},DID_LOAD_ITEM:rn,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:$t},status:{translateX:$t}},DID_START_ITEM_PROCESSING:on,DID_REQUEST_ITEM_PROCESSING:on,DID_UPDATE_ITEM_PROCESS_PROGRESS:on,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:$t}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:$t},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:rn},un=S({create:function(e){var t=e.root;t.element.innerHTML=t.query(&quot;GET_ICON_DONE&quot;)},name:&quot;processing-complete-indicator&quot;,ignoreRect:!0,mixins:{styles:[&quot;scaleX&quot;,&quot;scaleY&quot;,&quot;opacity&quot;],animations:{scaleX:&quot;spring&quot;,scaleY:&quot;spring&quot;,opacity:{type:&quot;tween&quot;,duration:250}}}}),sn=A({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemProcessing.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemLoad.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemRemoval.label=n.value},DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(e){var t=e.root;t.ref.loadProgressIndicator.spin=!0,t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.loadProgressIndicator.spin=!1,t.ref.loadProgressIndicator.progress=n.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.processProgressIndicator.spin=!1,t.ref.processProgressIndicator.progress=n.progress}}),ln=S({create:function(e){var n,r=e.root,o=e.props,i=Object.keys(zt).reduce(function(e,t){return e[t]=Object.assign({},zt[t]),e},{}),a=o.id,u=r.query(&quot;GET_ALLOW_REVERT&quot;),s=r.query(&quot;GET_ALLOW_REMOVE&quot;),l=r.query(&quot;GET_ALLOW_PROCESS&quot;),c=r.query(&quot;GET_INSTANT_UPLOAD&quot;),f=r.query(&quot;IS_ASYNC&quot;),d=r.query(&quot;GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN&quot;);f?l&amp;&amp;!u?n=function(e){return!/RevertItemProcessing/.test(e)}:!l&amp;&amp;u?n=function(e){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(e)}:l||u||(n=function(e){return!/Process/.test(e)}):n=function(e){return!/Process/.test(e)};var p=n?Qt.filter(n):Qt.concat();if(c&amp;&amp;u&amp;&amp;(i.RevertItemProcessing.label=&quot;GET_LABEL_BUTTON_REMOVE_ITEM&quot;,i.RevertItemProcessing.icon=&quot;GET_ICON_REMOVE&quot;),f&amp;&amp;!u){var E=an.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=en,E.info.translateY=Jt,E.status.translateY=Jt,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(f&amp;&amp;!l&amp;&amp;([&quot;DID_START_ITEM_PROCESSING&quot;,&quot;DID_REQUEST_ITEM_PROCESSING&quot;,&quot;DID_UPDATE_ITEM_PROCESS_PROGRESS&quot;,&quot;DID_THROW_ITEM_PROCESSING_ERROR&quot;].forEach(function(e){an[e].status.translateY=Jt}),an.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=Kt),d&amp;&amp;u){i.RevertItemProcessing.align=&quot;BUTTON_REMOVE_ITEM_POSITION&quot;;var _=an.DID_COMPLETE_ITEM_PROCESSING;_.info.translateX=$t,_.status.translateY=Jt,_.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(i.RemoveItem.disabled=!0),t(i,function(e,t){var n=r.createChildView(Bt,{label:r.query(t.label),icon:r.query(t.icon),opacity:0});p.includes(e)&amp;&amp;r.appendChildView(n),t.disabled&amp;&amp;(n.element.setAttribute(&quot;disabled&quot;,&quot;disabled&quot;),n.element.setAttribute(&quot;hidden&quot;,&quot;hidden&quot;)),n.element.dataset.align=r.query(&quot;GET_STYLE_&quot;+t.align),n.element.classList.add(t.className),n.on(&quot;click&quot;,function(e){e.stopPropagation(),t.disabled||r.dispatch(t.action,{query:a})}),r.ref[&quot;button&quot;+e]=n}),r.ref.processingCompleteIndicator=r.appendChildView(r.createChildView(un)),r.ref.processingCompleteIndicator.element.dataset.align=r.query(&quot;GET_STYLE_BUTTON_PROCESS_ITEM_POSITION&quot;),r.ref.info=r.appendChildView(r.createChildView(Yt,{id:a})),r.ref.status=r.appendChildView(r.createChildView(Wt,{id:a}));var T=r.appendChildView(r.createChildView(Ut,{opacity:0,align:r.query(&quot;GET_STYLE_LOAD_INDICATOR_POSITION&quot;)}));T.element.classList.add(&quot;filepond--load-indicator&quot;),r.ref.loadProgressIndicator=T;var I=r.appendChildView(r.createChildView(Ut,{opacity:0,align:r.query(&quot;GET_STYLE_PROGRESS_INDICATOR_POSITION&quot;)}));I.element.classList.add(&quot;filepond--process-indicator&quot;),r.ref.processProgressIndicator=I,r.ref.activeStyles=[]},write:function(e){var n=e.root,r=e.actions,o=e.props;sn({root:n,actions:r,props:o});var i=r.concat().filter(function(e){return/^DID_/.test(e.type)}).reverse().find(function(e){return an[e.type]});if(i){n.ref.activeStyles=[];var a=an[i.type];t(nn,function(e,r){var o=n.ref[e];t(r,function(t,r){var i=a[e]&amp;&amp;void 0!==a[e][t]?a[e][t]:r;n.ref.activeStyles.push({control:o,key:t,value:i})})})}n.ref.activeStyles.forEach(function(e){var t=e.control,r=e.key,o=e.value;t[r]=&quot;function&quot;==typeof o?o(n):o})},didCreateView:function(e){De(&quot;CREATE_VIEW&quot;,Object.assign({},e,{view:e}))},name:&quot;file&quot;}),cn=S({create:function(e){var t=e.root,n=e.props;t.ref.fileName=wt(&quot;legend&quot;),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(ln,{id:n.id})),t.ref.data=!1},ignoreRect:!0,write:A({DID_LOAD_ITEM:function(e){var t=e.root,n=e.props;Ct(t.ref.fileName,Mt(t.query(&quot;GET_ITEM_NAME&quot;,n.id)))}}),didCreateView:function(e){De(&quot;CREATE_VIEW&quot;,Object.assign({},e,{view:e}))},tag:&quot;fieldset&quot;,name:&quot;file-wrapper&quot;}),fn={type:&quot;spring&quot;,damping:.6,mass:7},dn=function(e,t,n){var r=S({name:&quot;panel-&quot;+t.name+&quot; filepond--&quot;+n,mixins:t.mixins,ignoreRectUpdate:!0}),o=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(o)},pn=S({name:&quot;panel&quot;,read:function(e){var t=e.root;return e.props.heightCurrent=t.ref.bottom.translateY},write:function(e){var t=e.root,n=e.props;if(null!==t.ref.scalable&amp;&amp;n.scalable===t.ref.scalable||(t.ref.scalable=!N(n.scalable)||n.scalable,t.element.dataset.scalable=t.ref.scalable),n.height){var r=t.ref.top.rect.element,o=t.ref.bottom.rect.element,i=Math.max(r.height+o.height,n.height);t.ref.center.translateY=r.height,t.ref.center.scaleY=(i-r.height-o.height)/100,t.ref.bottom.translateY=i-o.height}},create:function(e){var t=e.root,n=e.props;[{name:&quot;top&quot;},{name:&quot;center&quot;,props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:fn},styles:[&quot;translateY&quot;,&quot;scaleY&quot;]}},{name:&quot;bottom&quot;,props:{translateY:null},mixins:{animations:{translateY:fn},styles:[&quot;translateY&quot;]}}].forEach(function(e){dn(t,e,n.name)}),t.element.classList.add(&quot;filepond--&quot;+n.name),t.ref.scalable=null},ignoreRect:!0,mixins:{apis:[&quot;height&quot;,&quot;heightCurrent&quot;,&quot;scalable&quot;]}}),En={type:&quot;spring&quot;,stiffness:.75,damping:.45,mass:10},_n={DID_START_ITEM_LOAD:&quot;busy&quot;,DID_UPDATE_ITEM_LOAD_PROGRESS:&quot;loading&quot;,DID_THROW_ITEM_INVALID:&quot;load-invalid&quot;,DID_THROW_ITEM_LOAD_ERROR:&quot;load-error&quot;,DID_LOAD_ITEM:&quot;idle&quot;,DID_THROW_ITEM_REMOVE_ERROR:&quot;remove-error&quot;,DID_START_ITEM_REMOVE:&quot;busy&quot;,DID_START_ITEM_PROCESSING:&quot;busy processing&quot;,DID_REQUEST_ITEM_PROCESSING:&quot;busy processing&quot;,DID_UPDATE_ITEM_PROCESS_PROGRESS:&quot;processing&quot;,DID_COMPLETE_ITEM_PROCESSING:&quot;processing-complete&quot;,DID_THROW_ITEM_PROCESSING_ERROR:&quot;processing-error&quot;,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:&quot;processing-revert-error&quot;,DID_ABORT_ITEM_PROCESSING:&quot;cancelled&quot;,DID_REVERT_ITEM_PROCESSING:&quot;idle&quot;},Tn=A({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),In=A({DID_GRAB_ITEM:function(e){var t=e.root;e.props.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){e.root.element.dataset.dragState=&quot;drag&quot;},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState=&quot;drop&quot;}},function(e){var t=e.root,n=e.actions,r=e.props,o=e.shouldOptimize;&quot;drop&quot;===t.element.dataset.dragState&amp;&amp;t.scaleX&lt;=1&amp;&amp;(t.element.dataset.dragState=&quot;idle&quot;);var i=n.concat().filter(function(e){return/^DID_/.test(e.type)}).reverse().find(function(e){return _n[e.type]});i&amp;&amp;i.type!==r.currentState&amp;&amp;(r.currentState=i.type,t.element.dataset.filepondItemState=_n[r.currentState]||&quot;&quot;);var a=t.query(&quot;GET_ITEM_PANEL_ASPECT_RATIO&quot;)||t.query(&quot;GET_PANEL_ASPECT_RATIO&quot;);a?o||(t.height=t.rect.element.width*a):(Tn({root:t,actions:n,props:r}),!t.height&amp;&amp;t.ref.container.rect.element.height&gt;0&amp;&amp;(t.height=t.ref.container.rect.element.height)),o&amp;&amp;(t.ref.panel.height=null),t.ref.panel.height=t.height}),vn=S({create:function(e){var t=e.root,n=e.props;t.ref.handleClick=function(e){return t.dispatch(&quot;DID_ACTIVATE_ITEM&quot;,{id:n.id})},t.element.id=&quot;filepond--item-&quot;+n.id,t.element.addEventListener(&quot;click&quot;,t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(cn,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(pn,{name:&quot;item-panel&quot;})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query(&quot;GET_ALLOW_REORDER&quot;)&amp;&amp;(t.element.dataset.dragState=&quot;idle&quot;,t.element.addEventListener(&quot;pointerdown&quot;,function(e){if(e.isPrimary){var r=!1,o=e.pageX,i=e.pageY;n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var a,u,s,l=(a=t.query(&quot;GET_ACTIVE_ITEMS&quot;),u=a.map(function(e){return e.id}),s=void 0,{setIndex:function(e){s=e},getIndex:function(){return s},getItemIndex:function(e){return u.indexOf(e.id)}});t.dispatch(&quot;DID_GRAB_ITEM&quot;,{id:n.id,dragState:l});var c=function(e){e.isPrimary&amp;&amp;(e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-o,y:e.pageY-i},n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y&gt;16&amp;&amp;!r&amp;&amp;(r=!0,t.element.removeEventListener(&quot;click&quot;,t.ref.handleClick)),t.dispatch(&quot;DID_DRAG_ITEM&quot;,{id:n.id,dragState:l}))};document.addEventListener(&quot;pointermove&quot;,c),document.addEventListener(&quot;pointerup&quot;,function e(a){a.isPrimary&amp;&amp;(document.removeEventListener(&quot;pointermove&quot;,c),document.removeEventListener(&quot;pointerup&quot;,e),n.dragOffset={x:a.pageX-o,y:a.pageY-i},t.dispatch(&quot;DID_DROP_ITEM&quot;,{id:n.id,dragState:l}),r&amp;&amp;setTimeout(function(){return t.element.addEventListener(&quot;click&quot;,t.ref.handleClick)},0))})}}))},write:In,destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener(&quot;click&quot;,t.ref.handleClick),t.dispatch(&quot;RELEASE_ITEM&quot;,{query:n.id})},tag:&quot;li&quot;,name:&quot;item&quot;,mixins:{apis:[&quot;id&quot;,&quot;interactionMethod&quot;,&quot;markedForRemoval&quot;,&quot;spawnDate&quot;,&quot;dragCenter&quot;,&quot;dragOrigin&quot;,&quot;dragOffset&quot;],styles:[&quot;translateX&quot;,&quot;translateY&quot;,&quot;scaleX&quot;,&quot;scaleY&quot;,&quot;opacity&quot;,&quot;height&quot;],animations:{scaleX:&quot;spring&quot;,scaleY:&quot;spring&quot;,translateX:En,translateY:En,opacity:{type:&quot;tween&quot;,duration:150}}}}),mn=function(e,t){return Math.max(1,Math.floor((e+1)/t))},hn=function(e,t,n){if(n){var r=e.rect.element.width,o=t.length,i=null;if(0===o||n.top&lt;t[0].rect.element.top)return-1;var a=t[0].rect.element,u=a.marginLeft+a.marginRight,s=a.width+u,l=mn(r,s);if(1===l){for(var c=0;c&lt;o;c++){var f=t[c],d=f.rect.outer.top+.5*f.rect.element.height;if(n.top&lt;d)return c}return o}for(var p=a.marginTop+a.marginBottom,E=a.height+p,_=0;_&lt;o;_++){var T=_%l*s,I=Math.floor(_/l)*E,v=I-a.marginTop,m=T+s,h=I+E+a.marginBottom;if(n.top&lt;h&amp;&amp;n.top&gt;v){if(n.left&lt;m)return _;i=_!==o-1?_:null}}return null!==i?i:o}},gn={height:0,width:0,get getHeight(){return this.height},set setHeight(e){0!==this.height&amp;&amp;0!==e||(this.height=e)},get getWidth(){return this.width},set setWidth(e){0!==this.width&amp;&amp;0!==e||(this.width=e)},setDimensions:function(e,t){0!==this.height&amp;&amp;0!==e||(this.height=e),0!==this.width&amp;&amp;0!==t||(this.width=t)}},Rn=function(e,t,n){var r=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:0,o=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()&gt;e.spawnDate&amp;&amp;(0===e.opacity&amp;&amp;On(e,t,n,r,o),e.scaleX=1,e.scaleY=1,e.opacity=1))},On=function(e,t,n,r,o){e.interactionMethod===re?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===ee?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*o,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===te?(e.translateY=null,e.translateY=n-30):e.interactionMethod===J&amp;&amp;(e.translateX=null,e.translateX=t-30,e.translateY=null)},Dn=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},yn=A({DID_ADD_ITEM:function(e){var t=e.root,n=e.action,r=n.id,o=n.index,i=n.interactionMethod;t.ref.addIndex=o;var a=Date.now(),u=a,s=1;if(i!==re){s=0;var l=t.query(&quot;GET_ITEM_INSERT_INTERVAL&quot;),c=a-t.ref.lastItemSpanwDate;u=c&lt;l?a+(l-c):a}t.ref.lastItemSpanwDate=u,t.appendChildView(t.createChildView(vn,{spawnDate:u,id:r,opacity:s,interactionMethod:i}),o)},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action.id,r=t.childViews.find(function(e){return e.id===n});r&amp;&amp;(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)},DID_DRAG_ITEM:function(e){var t=e.root,n=e.action,r=n.id,o=n.dragState,i=t.query(&quot;GET_ITEM&quot;,{id:r}),a=t.childViews.find(function(e){return e.id===r}),u=t.childViews.length,s=o.getItemIndex(i);if(a){var l,c=a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,f=a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y,d=Dn(a),p=(l=a).rect.element.width+.5*l.rect.element.marginLeft+.5*l.rect.element.marginRight,E=Math.floor(t.rect.outer.width/p);E&gt;u&amp;&amp;(E=u);var _=Math.floor(u/E+1);gn.setHeight=d*_,gn.setWidth=p*E;var T={y:Math.floor(f/d),x:Math.floor(c/p),getGridIndex:function(){return f&gt;gn.getHeight||f&lt;0||c&gt;gn.getWidth||c&lt;0?s:this.y*E+this.x},getColIndex:function(){for(var e=t.query(&quot;GET_ACTIVE_ITEMS&quot;),n=t.childViews.filter(function(e){return e.rect.element.height}),r=e.map(function(e){return n.find(function(t){return t.id===e.id})}),o=r.findIndex(function(e){return e===a}),i=Dn(a),u=r.length,s=u,l=0,c=0,d=0,p=0;p&lt;u;p++)if(l=Dn(r[p]),f&lt;(c=(d=c)+l)){if(o&gt;p){if(f&lt;d+i){s=p;break}continue}s=p;break}return s}},I=E&gt;1?T.getGridIndex():T.getColIndex();t.dispatch(&quot;MOVE_ITEM&quot;,{query:a,index:I});var v=o.getIndex();if(void 0===v||v!==I){if(o.setIndex(I),void 0===v)return;t.dispatch(&quot;DID_REORDER_ITEMS&quot;,{items:t.query(&quot;GET_ACTIVE_ITEMS&quot;),origin:s,target:I})}}}}),Sn=S({create:function(e){var t=e.root;r(t.element,&quot;role&quot;,&quot;list&quot;),t.ref.lastItemSpanwDate=Date.now()},write:function(e){var t=e.root,n=e.props,r=e.actions,o=e.shouldOptimize;yn({root:t,props:n,actions:r});var i=n.dragCoordinates,a=t.rect.element.width,u=t.childViews.filter(function(e){return e.rect.element.height}),s=t.query(&quot;GET_ACTIVE_ITEMS&quot;).map(function(e){return u.find(function(t){return t.id===e.id})}).filter(function(e){return e}),l=i?hn(t,s,i):null,c=t.ref.addIndex||null;t.ref.addIndex=null;var f=0,d=0,p=0;if(0!==s.length){var E=s[0].rect.element,_=E.marginTop+E.marginBottom,T=E.marginLeft+E.marginRight,I=E.width+T,v=E.height+_,m=mn(a,I);if(1===m){var h=0,g=0;s.forEach(function(e,t){if(l){var n=t-l;g=-2===n?.25*-_:-1===n?.75*-_:0===n?.75*_:1===n?.25*_:0}o&amp;&amp;(e.translateX=null,e.translateY=null),e.markedForRemoval||Rn(e,0,h+g);var r=(e.rect.element.height+_)*(e.markedForRemoval?e.opacity:1);h+=r})}else{var R=0,O=0;s.forEach(function(e,t){t===l&amp;&amp;(f=1),t===c&amp;&amp;(p+=1),e.markedForRemoval&amp;&amp;e.opacity&lt;.5&amp;&amp;(d-=1);var n=t+p+f+d,r=n%m,i=Math.floor(n/m),a=r*I,u=i*v,s=Math.sign(a-R),E=Math.sign(u-O);R=a,O=u,e.markedForRemoval||(o&amp;&amp;(e.translateX=null,e.translateY=null),Rn(e,a,u,s,E))})}}},tag:&quot;ul&quot;,name:&quot;list&quot;,didWriteView:function(e){var t=e.root;t.childViews.filter(function(e){return e.markedForRemoval&amp;&amp;0===e.opacity&amp;&amp;e.resting}).forEach(function(e){e._destroy(),t.removeChildView(e)})},filterFrameActionsForChild:function(e,t){return t.filter(function(t){return!t.data||!t.data.id||e.id===t.data.id})},mixins:{apis:[&quot;dragCoordinates&quot;]}}),An=A({DID_DRAG:function(e){var t=e.root,n=e.props,r=e.action;t.query(&quot;GET_ITEM_INSERT_LOCATION_FREEDOM&quot;)&amp;&amp;(n.dragCoordinates={left:r.position.scopeLeft-t.ref.list.rect.element.left,top:r.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),Ln=S({create:function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Sn)),n.dragCoordinates=null,n.overflowing=!1},write:function(e){var t=e.root,n=e.props,r=e.actions;if(An({root:t,props:n,actions:r}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&amp;&amp;!n.overflow&amp;&amp;(n.overflowing=!1,t.element.dataset.state=&quot;&quot;,t.height=null),n.overflow){var o=Math.round(n.overflow);o!==t.height&amp;&amp;(n.overflowing=!0,t.element.dataset.state=&quot;overflow&quot;,t.height=o)}},name:&quot;list-scroller&quot;,mixins:{apis:[&quot;overflow&quot;,&quot;dragCoordinates&quot;],styles:[&quot;height&quot;,&quot;translateY&quot;],animations:{translateY:&quot;spring&quot;}}}),Pn=function(e,t,n){var o=arguments.length&gt;3&amp;&amp;void 0!==arguments[3]?arguments[3]:&quot;&quot;;n?r(e,t,o):e.removeAttribute(t)},bn=function(e){var t=e.root,n=e.action;t.query(&quot;GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE&quot;)&amp;&amp;Pn(t.element,&quot;accept&quot;,!!n.value,n.value?n.value.join(&quot;,&quot;):&quot;&quot;)},Mn=function(e){var t=e.root,n=e.action;Pn(t.element,&quot;multiple&quot;,n.value)},wn=function(e){var t=e.root,n=e.action;Pn(t.element,&quot;webkitdirectory&quot;,n.value)},Cn=function(e){var t=e.root,n=t.query(&quot;GET_DISABLED&quot;),r=t.query(&quot;GET_ALLOW_BROWSE&quot;),o=n||!r;Pn(t.element,&quot;disabled&quot;,o)},Nn=function(e){var t=e.root;e.action.value?0===t.query(&quot;GET_TOTAL_ITEMS&quot;)&amp;&amp;Pn(t.element,&quot;required&quot;,!0):Pn(t.element,&quot;required&quot;,!1)},Gn=function(e){var t=e.root,n=e.action;Pn(t.element,&quot;capture&quot;,!!n.value,!0===n.value?&quot;&quot;:n.value)},Un=function(e){var t=e.root,n=t.element;t.query(&quot;GET_TOTAL_ITEMS&quot;)&gt;0?(Pn(n,&quot;required&quot;,!1),Pn(n,&quot;name&quot;,!1)):(Pn(n,&quot;name&quot;,!0,t.query(&quot;GET_NAME&quot;)),t.query(&quot;GET_CHECK_VALIDITY&quot;)&amp;&amp;n.setCustomValidity(&quot;&quot;),t.query(&quot;GET_REQUIRED&quot;)&amp;&amp;Pn(n,&quot;required&quot;,!0))},Bn=S({tag:&quot;input&quot;,name:&quot;browser&quot;,ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:&quot;file&quot;},create:function(e){var t=e.root,n=e.props;t.element.id=&quot;filepond--browser-&quot;+n.id,r(t.element,&quot;name&quot;,t.query(&quot;GET_NAME&quot;)),r(t.element,&quot;aria-controls&quot;,&quot;filepond--assistant-&quot;+n.id),r(t.element,&quot;aria-labelledby&quot;,&quot;filepond--drop-label-&quot;+n.id),bn({root:t,action:{value:t.query(&quot;GET_ACCEPTED_FILE_TYPES&quot;)}}),Mn({root:t,action:{value:t.query(&quot;GET_ALLOW_MULTIPLE&quot;)}}),wn({root:t,action:{value:t.query(&quot;GET_ALLOW_DIRECTORIES_ONLY&quot;)}}),Cn({root:t}),Nn({root:t,action:{value:t.query(&quot;GET_REQUIRED&quot;)}}),Gn({root:t,action:{value:t.query(&quot;GET_CAPTURE_METHOD&quot;)}}),t.ref.handleChange=function(e){if(t.element.value){var r=Array.from(t.element.files).map(function(e){return e._relativePath=e.webkitRelativePath,e});setTimeout(function(){n.onload(r),function(e){if(e&amp;&amp;&quot;&quot;!==e.value){try{e.value=&quot;&quot;}catch(e){}if(e.value){var t=wt(&quot;form&quot;),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}}(t.element)},250)}},t.element.addEventListener(&quot;change&quot;,t.ref.handleChange)},destroy:function(e){var t=e.root;t.element.removeEventListener(&quot;change&quot;,t.ref.handleChange)},write:A({DID_LOAD_ITEM:Un,DID_REMOVE_ITEM:Un,DID_THROW_ITEM_INVALID:function(e){var t=e.root;t.query(&quot;GET_CHECK_VALIDITY&quot;)&amp;&amp;t.element.setCustomValidity(t.query(&quot;GET_LABEL_INVALID_FIELD&quot;))},DID_SET_DISABLED:Cn,DID_SET_ALLOW_BROWSE:Cn,DID_SET_ALLOW_DIRECTORIES_ONLY:wn,DID_SET_ALLOW_MULTIPLE:Mn,DID_SET_ACCEPTED_FILE_TYPES:bn,DID_SET_CAPTURE_METHOD:Gn,DID_SET_REQUIRED:Nn})}),qn=13,Fn=32,Vn=function(e,t){e.innerHTML=t;var n=e.querySelector(&quot;.filepond--label-action&quot;);return n&amp;&amp;r(n,&quot;tabindex&quot;,&quot;0&quot;),t},xn=S({name:&quot;drop-label&quot;,ignoreRect:!0,create:function(e){var t=e.root,n=e.props,o=wt(&quot;label&quot;);r(o,&quot;for&quot;,&quot;filepond--browser-&quot;+n.id),r(o,&quot;id&quot;,&quot;filepond--drop-label-&quot;+n.id),r(o,&quot;aria-hidden&quot;,&quot;true&quot;),t.ref.handleKeyDown=function(e){(e.keyCode===qn||e.keyCode===Fn)&amp;&amp;(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){e.target===o||o.contains(e.target)||t.ref.label.click()},o.addEventListener(&quot;keydown&quot;,t.ref.handleKeyDown),t.element.addEventListener(&quot;click&quot;,t.ref.handleClick),Vn(o,n.caption),t.appendChild(o),t.ref.label=o},destroy:function(e){var t=e.root;t.ref.label.addEventListener(&quot;keydown&quot;,t.ref.handleKeyDown),t.element.removeEventListener(&quot;click&quot;,t.ref.handleClick)},write:A({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;Vn(t.ref.label,n.value)}}),mixins:{styles:[&quot;opacity&quot;,&quot;translateX&quot;,&quot;translateY&quot;],animations:{opacity:{type:&quot;tween&quot;,duration:150},translateX:&quot;spring&quot;,translateY:&quot;spring&quot;}}}),Yn=S({name:&quot;drip-blob&quot;,ignoreRect:!0,mixins:{styles:[&quot;translateX&quot;,&quot;translateY&quot;,&quot;scaleX&quot;,&quot;scaleY&quot;,&quot;opacity&quot;],animations:{scaleX:&quot;spring&quot;,scaleY:&quot;spring&quot;,translateX:&quot;spring&quot;,translateY:&quot;spring&quot;,opacity:{type:&quot;tween&quot;,duration:250}}}}),jn=A({DID_DRAG:function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):function(e){var t=e.root,n=.5*t.rect.element.width,r=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(Yn,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))}({root:t})},DID_DROP:function(e){var t=e.root;t.ref.blob&amp;&amp;(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},DID_END_DRAG:function(e){var t=e.root;t.ref.blob&amp;&amp;(t.ref.blob.opacity=0)}}),kn=S({ignoreRect:!0,ignoreRectUpdate:!0,name:&quot;drip&quot;,write:function(e){var t=e.root,n=e.props,r=e.actions;jn({root:t,props:n,actions:r});var o=t.ref.blob;0===r.length&amp;&amp;o&amp;&amp;0===o.opacity&amp;&amp;(t.removeChildView(o),t.ref.blob=null)}}),Hn=function(e,t){try{var n=new DataTransfer;t.forEach(function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))}),e.files=n.files}catch(e){return!1}return!0},Xn=function(e,t){return e.ref.fields[t]},Wn=function(e){e.query(&quot;GET_ACTIVE_ITEMS&quot;).forEach(function(t){e.ref.fields[t.id]&amp;&amp;e.element.appendChild(e.ref.fields[t.id])})},zn=function(e){var t=e.root;return Wn(t)},Qn=A({DID_SET_DISABLED:function(e){var t=e.root;t.element.disabled=t.query(&quot;GET_DISABLED&quot;)},DID_ADD_ITEM:function(e){var t=e.root,n=e.action,r=!(t.query(&quot;GET_ITEM&quot;,n.id).origin===ve.LOCAL)&amp;&amp;t.query(&quot;SHOULD_UPDATE_FILE_INPUT&quot;),o=wt(&quot;input&quot;);o.type=r?&quot;file&quot;:&quot;hidden&quot;,o.name=t.query(&quot;GET_NAME&quot;),o.disabled=t.query(&quot;GET_DISABLED&quot;),t.ref.fields[n.id]=o,Wn(t)},DID_LOAD_ITEM:function(e){var t=e.root,n=e.action,r=Xn(t,n.id);if(r&amp;&amp;(null!==n.serverFileReference&amp;&amp;(r.value=n.serverFileReference),t.query(&quot;SHOULD_UPDATE_FILE_INPUT&quot;))){var o=t.query(&quot;GET_ITEM&quot;,n.id);Hn(r,[o.file])}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action,r=Xn(t,n.id);r&amp;&amp;(r.parentNode&amp;&amp;r.parentNode.removeChild(r),delete t.ref.fields[n.id])},DID_DEFINE_VALUE:function(e){var t=e.root,n=e.action,r=Xn(t,n.id);r&amp;&amp;(null===n.value?r.removeAttribute(&quot;value&quot;):r.value=n.value,Wn(t))},DID_PREPARE_OUTPUT:function(e){var t=e.root,n=e.action;t.query(&quot;SHOULD_UPDATE_FILE_INPUT&quot;)&amp;&amp;setTimeout(function(){var e=Xn(t,n.id);e&amp;&amp;Hn(e,[n.file])},0)},DID_REORDER_ITEMS:zn,DID_SORT_ITEMS:zn}),Zn=S({tag:&quot;fieldset&quot;,name:&quot;data&quot;,create:function(e){return e.root.ref.fields={}},write:Qn,ignoreRect:!0}),$n=[&quot;jpg&quot;,&quot;jpeg&quot;,&quot;png&quot;,&quot;gif&quot;,&quot;bmp&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;tiff&quot;],Kn=[&quot;css&quot;,&quot;csv&quot;,&quot;html&quot;,&quot;txt&quot;],Jn={zip:&quot;zip|compressed&quot;,epub:&quot;application/epub+zip&quot;},er=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:&quot;&quot;;return e=e.toLowerCase(),$n.includes(e)?&quot;image/&quot;+(&quot;jpg&quot;===e?&quot;jpeg&quot;:&quot;svg&quot;===e?&quot;svg+xml&quot;:e):Kn.includes(e)?&quot;text/&quot;+e:Jn[e]||&quot;&quot;},tr=function(e){return new Promise(function(t,n){var r=fr(e);if(r.length&amp;&amp;!nr(e))return t(r);rr(e).then(t)})},nr=function(e){return!!e.files&amp;&amp;e.files.length&gt;0},rr=function(e){return new Promise(function(t,n){var r=(e.items?Array.from(e.items):[]).filter(function(e){return or(e)}).map(function(e){return ir(e)});r.length?Promise.all(r).then(function(e){var n=[];e.forEach(function(e){n.push.apply(n,e)}),t(n.filter(function(e){return e}).map(function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e}))}).catch(console.error):t(e.files?Array.from(e.files):[])})},or=function(e){if(lr(e)){var t=cr(e);if(t)return t.isFile||t.isDirectory}return&quot;file&quot;===e.kind},ir=function(e){return new Promise(function(t,n){sr(e)?ar(cr(e)).then(t).catch(n):t([e.getAsFile()])})},ar=function(e){return new Promise(function(t,n){var r=[],o=0,i=0,a=function(){0===i&amp;&amp;0===o&amp;&amp;t(r)};!function e(t){o++;var u=t.createReader();!function t(){u.readEntries(function(n){if(0===n.length)return o--,void a();n.forEach(function(t){t.isDirectory?e(t):(i++,t.file(function(e){var n=ur(e);t.fullPath&amp;&amp;(n._relativePath=t.fullPath),r.push(n),i--,a()}))}),t()},n)}()}(e)})},ur=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,r=er(ke(e.name));return r.length?((e=e.slice(0,e.size,r)).name=n,e.lastModifiedDate=t,e):e},sr=function(e){return lr(e)&amp;&amp;(cr(e)||{}).isDirectory},lr=function(e){return&quot;webkitGetAsEntry&quot;in e},cr=function(e){return e.webkitGetAsEntry()},fr=function(e){var t=[];try{if((t=pr(e)).length)return t;t=dr(e)}catch(e){}return t},dr=function(e){var t=e.getData(&quot;url&quot;);return&quot;string&quot;==typeof t&amp;&amp;t.length?[t]:[]},pr=function(e){var t=e.getData(&quot;text/html&quot;);if(&quot;string&quot;==typeof t&amp;&amp;t.length){var n=t.match(/src\s*=\s*&quot;(.+?)&quot;/);if(n)return[n[1]]}return[]},Er=[],_r=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Tr=function(e){var t=Er.find(function(t){return t.element===e});if(t)return t;var n=Ir(e);return Er.push(n),n},Ir=function(e){var n=[],r={dragenter:gr,dragover:Rr,dragleave:Dr,drop:Or},o={};t(r,function(t,r){o[t]=r(e,n),e.addEventListener(t,o[t],!1)});var i={element:e,addListener:function(a){return n.push(a),function(){n.splice(n.indexOf(a),1),0===n.length&amp;&amp;(Er.splice(Er.indexOf(i),1),t(r,function(t){e.removeEventListener(t,o[t],!1)}))}}};return i},vr=function(e,t){var n,r=function(e,t){return&quot;elementFromPoint&quot;in e||(e=document),e.elementFromPoint(t.x,t.y)}(&quot;getRootNode&quot;in(n=t)?n.getRootNode():document,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)},mr=null,hr=function(e,t){try{e.dropEffect=t}catch(e){}},gr=function(e,t){return function(e){e.preventDefault(),mr=e.target,t.forEach(function(t){var n=t.element,r=t.onenter;vr(e,n)&amp;&amp;(t.state=&quot;enter&quot;,r(_r(e)))})}},Rr=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;tr(n).then(function(r){var o=!1;t.some(function(t){var i=t.filterElement,a=t.element,u=t.onenter,s=t.onexit,l=t.ondrag,c=t.allowdrop;hr(n,&quot;copy&quot;);var f=c(r);if(f)if(vr(e,a)){if(o=!0,null===t.state)return t.state=&quot;enter&quot;,void u(_r(e));if(t.state=&quot;over&quot;,i&amp;&amp;!f)return void hr(n,&quot;none&quot;);l(_r(e))}else i&amp;&amp;!o&amp;&amp;hr(n,&quot;none&quot;),t.state&amp;&amp;(t.state=null,s(_r(e)));else hr(n,&quot;none&quot;)})})}},Or=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;tr(n).then(function(n){t.forEach(function(t){var r=t.filterElement,o=t.element,i=t.ondrop,a=t.onexit,u=t.allowdrop;if(t.state=null,!r||vr(e,o))return u(n)?void i(_r(e),n):a(_r(e))})})}},Dr=function(e,t){return function(e){mr===e.target&amp;&amp;t.forEach(function(t){var n=t.onexit;t.state=null,n(_r(e))})}},yr=function(e,t,n){e.classList.add(&quot;filepond--hopper&quot;);var r=n.catchesDropsOnPage,o=n.requiresDropOnElement,i=n.filterItems,a=void 0===i?function(e){return e}:i,u=function(e,t,n){var r=Tr(t),o={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return o.destroy=r.addListener(o),o}(e,r?document.documentElement:e,o),s=&quot;&quot;,l=&quot;&quot;;u.allowdrop=function(e){return t(a(e))},u.ondrop=function(e,n){var r=a(n);t(r)?(l=&quot;drag-drop&quot;,c.onload(r,e)):c.ondragend(e)},u.ondrag=function(e){c.ondrag(e)},u.onenter=function(e){l=&quot;drag-over&quot;,c.ondragstart(e)},u.onexit=function(e){l=&quot;drag-exit&quot;,c.ondragend(e)};var c={updateHopperState:function(){s!==l&amp;&amp;(e.dataset.hopperState=l,s=l)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){u.destroy()}};return c},Sr=!1,Ar=[],Lr=function(e){var t=document.activeElement;if(t&amp;&amp;/textarea|input/i.test(t.nodeName)){for(var n=!1,r=t;r!==document.body;){if(r.classList.contains(&quot;filepond--root&quot;)){n=!0;break}r=r.parentNode}if(!n)return}tr(e.clipboardData).then(function(e){e.length&amp;&amp;Ar.forEach(function(t){return t(e)})})},Pr=function(){var e=function(e){t.onload(e)},t={destroy:function(){var t;t=e,de(Ar,Ar.indexOf(t)),0===Ar.length&amp;&amp;(document.removeEventListener(&quot;paste&quot;,Lr),Sr=!1)},onload:function(){}};return function(e){Ar.includes(e)||(Ar.push(e),Sr||(Sr=!0,document.addEventListener(&quot;paste&quot;,Lr)))}(e),t},br=null,Mr=null,wr=[],Cr=function(e,t){e.element.textContent=t},Nr=function(e,t,n){var r=e.query(&quot;GET_TOTAL_ITEMS&quot;);Cr(e,n+&quot; &quot;+t+&quot;, &quot;+r+&quot; &quot;+(1===r?e.query(&quot;GET_LABEL_FILE_COUNT_SINGULAR&quot;):e.query(&quot;GET_LABEL_FILE_COUNT_PLURAL&quot;))),clearTimeout(Mr),Mr=setTimeout(function(){!function(e){e.element.textContent=&quot;&quot;}(e)},1500)},Gr=function(e){return e.element.parentNode.contains(document.activeElement)},Ur=function(e){var t=e.root,n=e.action,r=t.query(&quot;GET_ITEM&quot;,n.id).filename,o=t.query(&quot;GET_LABEL_FILE_PROCESSING_ABORTED&quot;);Cr(t,r+&quot; &quot;+o)},Br=function(e){var t=e.root,n=e.action,r=t.query(&quot;GET_ITEM&quot;,n.id).filename;Cr(t,n.status.main+&quot; &quot;+r+&quot; &quot;+n.status.sub)},qr=S({create:function(e){var t=e.root,n=e.props;t.element.id=&quot;filepond--assistant-&quot;+n.id,r(t.element,&quot;role&quot;,&quot;status&quot;),r(t.element,&quot;aria-live&quot;,&quot;polite&quot;),r(t.element,&quot;aria-relevant&quot;,&quot;additions&quot;)},ignoreRect:!0,ignoreRectUpdate:!0,write:A({DID_LOAD_ITEM:function(e){var t=e.root,n=e.action;if(Gr(t)){t.element.textContent=&quot;&quot;;var r=t.query(&quot;GET_ITEM&quot;,n.id);wr.push(r.filename),clearTimeout(br),br=setTimeout(function(){Nr(t,wr.join(&quot;, &quot;),t.query(&quot;GET_LABEL_FILE_ADDED&quot;)),wr.length=0},750)}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action;if(Gr(t)){var r=n.item;Nr(t,r.filename,t.query(&quot;GET_LABEL_FILE_REMOVED&quot;))}},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,n=e.action,r=t.query(&quot;GET_ITEM&quot;,n.id).filename,o=t.query(&quot;GET_LABEL_FILE_PROCESSING_COMPLETE&quot;);Cr(t,r+&quot; &quot;+o)},DID_ABORT_ITEM_PROCESSING:Ur,DID_REVERT_ITEM_PROCESSING:Ur,DID_THROW_ITEM_REMOVE_ERROR:Br,DID_THROW_ITEM_LOAD_ERROR:Br,DID_THROW_ITEM_INVALID:Br,DID_THROW_ITEM_PROCESSING_ERROR:Br}),tag:&quot;span&quot;,name:&quot;assistant&quot;}),Fr=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:&quot;-&quot;;return e.replace(new RegExp(t+&quot;.&quot;,&quot;g&quot;),function(e){return e.charAt(1).toUpperCase()})},Vr=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length&gt;2&amp;&amp;void 0!==arguments[2])||arguments[2],r=Date.now(),o=null;return function(){for(var i=arguments.length,a=new Array(i),u=0;u&lt;i;u++)a[u]=arguments[u];clearTimeout(o);var s=Date.now()-r,l=function(){r=Date.now(),e.apply(void 0,a)};s&lt;t?n||(o=setTimeout(l,t-s)):l()}},xr=function(e){return e.preventDefault()},Yr=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},jr=function(e){var t=0,n=0,r=e.ref.list,o=r.childViews[0],i=o.childViews.filter(function(e){return e.rect.element.height}),a=e.query(&quot;GET_ACTIVE_ITEMS&quot;).map(function(e){return i.find(function(t){return t.id===e.id})}).filter(function(e){return e});if(0===a.length)return{visual:t,bounds:n};var u=o.rect.element.width,s=hn(o,a,r.dragCoordinates),l=a[0].rect.element,c=l.marginTop+l.marginBottom,f=l.marginLeft+l.marginRight,d=l.width+f,p=l.height+c,E=void 0!==s&amp;&amp;s&gt;=0?1:0,_=a.find(function(e){return e.markedForRemoval&amp;&amp;e.opacity&lt;.45})?-1:0,T=a.length+E+_,I=mn(u,d);return 1===I?a.forEach(function(e){var r=e.rect.element.height+c;n+=r,t+=r*e.opacity}):(n=Math.ceil(T/I)*p,t=n),{visual:t,bounds:n}},kr=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},Hr=function(e,t){var n=e.query(&quot;GET_ALLOW_REPLACE&quot;),r=e.query(&quot;GET_ALLOW_MULTIPLE&quot;),o=e.query(&quot;GET_TOTAL_ITEMS&quot;),i=e.query(&quot;GET_MAX_FILES&quot;),a=t.length;return!r&amp;&amp;a&gt;1||!!(V(i=r?i:n?i:1)&amp;&amp;o+a&gt;i)&amp;&amp;(e.dispatch(&quot;DID_THROW_MAX_FILES&quot;,{source:t,error:ot(&quot;warning&quot;,0,&quot;Max files&quot;)}),!0)},Xr=function(e,t,n){var r=e.childViews[0];return hn(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Wr=function(e){var t=e.query(&quot;GET_ALLOW_DROP&quot;),n=e.query(&quot;GET_DISABLED&quot;),r=t&amp;&amp;!n;if(r&amp;&amp;!e.ref.hopper){var o=yr(e.element,function(t){var n=e.query(&quot;GET_BEFORE_DROP_FILE&quot;)||function(){return!0};return!e.query(&quot;GET_DROP_VALIDATION&quot;)||t.every(function(t){return De(&quot;ALLOW_HOPPER_ITEM&quot;,t,{query:e.query}).every(function(e){return!0===e})&amp;&amp;n(t)})},{filterItems:function(t){var n=e.query(&quot;GET_IGNORED_FILES&quot;);return t.filter(function(e){return!ht(e)||!n.includes(e.name.toLowerCase())})},catchesDropsOnPage:e.query(&quot;GET_DROP_ON_PAGE&quot;),requiresDropOnElement:e.query(&quot;GET_DROP_ON_ELEMENT&quot;)});o.onload=function(t,n){var r=e.ref.list.childViews[0].childViews.filter(function(e){return e.rect.element.height}),o=e.query(&quot;GET_ACTIVE_ITEMS&quot;).map(function(e){return r.find(function(t){return t.id===e.id})}).filter(function(e){return e});Oe(&quot;ADD_ITEMS&quot;,t,{dispatch:e.dispatch}).then(function(t){if(Hr(e,t))return!1;e.dispatch(&quot;ADD_ITEMS&quot;,{items:t,index:Xr(e.ref.list,o,n),interactionMethod:ee})}),e.dispatch(&quot;DID_DROP&quot;,{position:n}),e.dispatch(&quot;DID_END_DRAG&quot;,{position:n})},o.ondragstart=function(t){e.dispatch(&quot;DID_START_DRAG&quot;,{position:t})},o.ondrag=Vr(function(t){e.dispatch(&quot;DID_DRAG&quot;,{position:t})}),o.ondragend=function(t){e.dispatch(&quot;DID_END_DRAG&quot;,{position:t})},e.ref.hopper=o,e.ref.drip=e.appendChildView(e.createChildView(kn))}else!r&amp;&amp;e.ref.hopper&amp;&amp;(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},zr=function(e,t){var n=e.query(&quot;GET_ALLOW_BROWSE&quot;),r=e.query(&quot;GET_DISABLED&quot;),o=n&amp;&amp;!r;o&amp;&amp;!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(Bn,Object.assign({},t,{onload:function(t){Oe(&quot;ADD_ITEMS&quot;,t,{dispatch:e.dispatch}).then(function(t){if(Hr(e,t))return!1;e.dispatch(&quot;ADD_ITEMS&quot;,{items:t,index:-1,interactionMethod:te})})}})),0):!o&amp;&amp;e.ref.browser&amp;&amp;(e.removeChildView(e.ref.browser),e.ref.browser=null)},Qr=function(e){var t=e.query(&quot;GET_ALLOW_PASTE&quot;),n=e.query(&quot;GET_DISABLED&quot;),r=t&amp;&amp;!n;r&amp;&amp;!e.ref.paster?(e.ref.paster=Pr(),e.ref.paster.onload=function(t){Oe(&quot;ADD_ITEMS&quot;,t,{dispatch:e.dispatch}).then(function(t){if(Hr(e,t))return!1;e.dispatch(&quot;ADD_ITEMS&quot;,{items:t,index:-1,interactionMethod:ne})})}):!r&amp;&amp;e.ref.paster&amp;&amp;(e.ref.paster.destroy(),e.ref.paster=null)},Zr=A({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;zr(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;Wr(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;Qr(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;Wr(t),Qr(t),zr(t,n),t.query(&quot;GET_DISABLED&quot;)?t.element.dataset.disabled=&quot;disabled&quot;:t.element.removeAttribute(&quot;data-disabled&quot;)}}),$r=S({name:&quot;root&quot;,read:function(e){var t=e.root;t.ref.measure&amp;&amp;(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:function(e){var t=e.root,n=e.props,r=t.query(&quot;GET_ID&quot;);r&amp;&amp;(t.element.id=r);var o=t.query(&quot;GET_CLASS_NAME&quot;);o&amp;&amp;o.split(&quot; &quot;).filter(function(e){return e.length}).forEach(function(e){t.element.classList.add(e)}),t.ref.label=t.appendChildView(t.createChildView(xn,Object.assign({},n,{translateY:null,caption:t.query(&quot;GET_LABEL_IDLE&quot;)}))),t.ref.list=t.appendChildView(t.createChildView(Ln,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(pn,{name:&quot;panel-root&quot;})),t.ref.assistant=t.appendChildView(t.createChildView(qr,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(Zn,Object.assign({},n))),t.ref.measure=wt(&quot;div&quot;),t.ref.measure.style.height=&quot;100%&quot;,t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query(&quot;GET_STYLES&quot;).filter(function(e){return!M(e.value)}).map(function(e){var n=e.name,r=e.value;t.element.dataset[n]=r}),t.ref.widthPrevious=null,t.ref.widthUpdated=Vr(function(){t.ref.updateHistory=[],t.dispatch(&quot;DID_RESIZE_ROOT&quot;)},250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var i=window.matchMedia(&quot;(pointer: fine) and (hover: hover)&quot;).matches,a=&quot;PointerEvent&quot;in window;t.query(&quot;GET_ALLOW_REORDER&quot;)&amp;&amp;a&amp;&amp;!i&amp;&amp;(t.element.addEventListener(&quot;touchmove&quot;,xr,{passive:!1}),t.element.addEventListener(&quot;gesturestart&quot;,xr));var u=t.query(&quot;GET_CREDITS&quot;);if(2===u.length){var s=document.createElement(&quot;a&quot;);s.className=&quot;filepond--credits&quot;,s.setAttribute(&quot;aria-hidden&quot;,&quot;true&quot;),s.href=u[0],s.tabindex=-1,s.target=&quot;_blank&quot;,s.rel=&quot;noopener noreferrer&quot;,s.textContent=u[1],t.element.appendChild(s),t.ref.credits=s}},write:function(e){var t=e.root,n=e.props,r=e.actions;if(Zr({root:t,props:n,actions:r}),r.filter(function(e){return/^DID_SET_STYLE_/.test(e.type)}).filter(function(e){return!M(e.data.value)}).map(function(e){var n=e.type,r=e.data,o=Fr(n.substr(8).toLowerCase(),&quot;_&quot;);t.element.dataset[o]=r.value,t.invalidateLayout()}),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&amp;&amp;(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var o=t.ref.bounds;o||(o=t.ref.bounds=kr(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var i=t.ref,a=i.hopper,u=i.label,s=i.list,l=i.panel;a&amp;&amp;a.updateHopperState();var c=t.query(&quot;GET_PANEL_ASPECT_RATIO&quot;),f=t.query(&quot;GET_ALLOW_MULTIPLE&quot;),d=t.query(&quot;GET_TOTAL_ITEMS&quot;),p=d===(f?t.query(&quot;GET_MAX_FILES&quot;)||1e6:1),E=r.find(function(e){return&quot;DID_ADD_ITEM&quot;===e.type});if(p&amp;&amp;E){var _=E.data.interactionMethod;u.opacity=0,f?u.translateY=-40:_===J?u.translateX=40:u.translateY=_===te?40:30}else p||(u.opacity=1,u.translateX=0,u.translateY=0);var T=Yr(t),I=jr(t),v=u.rect.element.height,m=!f||p?0:v,h=p?s.rect.element.marginTop:0,g=0===d?0:s.rect.element.marginBottom,R=m+h+I.visual+g,O=m+h+I.bounds+g;if(s.translateY=Math.max(0,m-s.rect.element.marginTop)-T.top,c){var D=t.rect.element.width,y=D*c;c!==t.ref.previousAspectRatio&amp;&amp;(t.ref.previousAspectRatio=c,t.ref.updateHistory=[]);var S=t.ref.updateHistory;if(S.push(D),S.length&gt;4)for(var A=S.length,L=A-10,P=0,b=A;b&gt;=L;b--)if(S[b]===S[b-2]&amp;&amp;P++,P&gt;=2)return;l.scalable=!1,l.height=y;var w=y-m-(g-T.bottom)-(p?h:0);I.visual&gt;w?s.overflow=w:s.overflow=null,t.height=y}else if(o.fixedHeight){l.scalable=!1;var C=o.fixedHeight-m-(g-T.bottom)-(p?h:0);I.visual&gt;C?s.overflow=C:s.overflow=null}else if(o.cappedHeight){var N=R&gt;=o.cappedHeight,G=Math.min(o.cappedHeight,R);l.scalable=!0,l.height=N?G:G-T.top-T.bottom;var U=G-m-(g-T.bottom)-(p?h:0);R&gt;o.cappedHeight&amp;&amp;I.visual&gt;U?s.overflow=U:s.overflow=null,t.height=Math.min(o.cappedHeight,O-T.top-T.bottom)}else{var B=d&gt;0?T.top+T.bottom:0;l.scalable=!0,l.height=Math.max(v,R-B),t.height=Math.max(v,O-B)}t.ref.credits&amp;&amp;l.heightCurrent&amp;&amp;(t.ref.credits.style.transform=&quot;translateY(&quot;+l.heightCurrent+&quot;px)&quot;)}},destroy:function(e){var t=e.root;t.ref.paster&amp;&amp;t.ref.paster.destroy(),t.ref.hopper&amp;&amp;t.ref.hopper.destroy(),t.element.removeEventListener(&quot;touchmove&quot;,xr),t.element.removeEventListener(&quot;gesturestart&quot;,xr)},mixins:{styles:[&quot;height&quot;]}}),Kr=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},r=null,o=Se(),i=function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:[],n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e),o=[],i=[],a=function(e,t,n){!n||document.hidden?(c[e]&amp;&amp;c[e](t),o.push({type:e,data:t})):i.push({type:e,data:t})},u=function(e){for(var t,n=arguments.length,r=new Array(n&gt;1?n-1:0),o=1;o&lt;n;o++)r[o-1]=arguments[o];return l[e]?(t=l)[e].apply(t,r):null},s={getState:function(){return Object.assign({},r)},processActionQueue:function(){var e=[].concat(o);return o.length=0,e},processDispatchQueue:function(){var e=[].concat(i);i.length=0,e.forEach(function(e){var t=e.type,n=e.data;a(t,n)})},dispatch:a,query:u},l={};t.forEach(function(e){l=Object.assign({},e(r),{},l)});var c={};return n.forEach(function(e){c=Object.assign({},e(a,u,r),{},c)}),s}({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:Q(o)},[Ve,K(o)],[bt,$(o)]);i.dispatch(&quot;SET_OPTIONS&quot;,{options:e});var a=function(){document.hidden||i.dispatch(&quot;KICK&quot;)};document.addEventListener(&quot;visibilitychange&quot;,a);var u=null,s=!1,l=!1,c=null,f=null,d=function(){s||(s=!0),clearTimeout(u),u=setTimeout(function(){s=!1,c=null,f=null,l&amp;&amp;(l=!1,i.dispatch(&quot;DID_STOP_RESIZE&quot;))},500)};window.addEventListener(&quot;resize&quot;,d);var p=$r(i,{id:oe()}),E=!1,T=!1,I={_read:function(){s&amp;&amp;(f=window.innerWidth,c||(c=f),l||f===c||(i.dispatch(&quot;DID_START_RESIZE&quot;),l=!0)),T&amp;&amp;E&amp;&amp;(E=null===p.element.offsetParent),E||(p._read(),T=p.rect.element.hidden)},_write:function(e){var t,n=i.processActionQueue().filter(function(e){return!/^SET_/.test(e.type)});E&amp;&amp;!n.length||(g(n),E=p._write(e,n,l),(t=i.query(&quot;GET_ITEMS&quot;)).forEach(function(e,n){e.released&amp;&amp;de(t,n)}),E&amp;&amp;i.processDispatchQueue())}},v=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty(&quot;error&quot;)&amp;&amp;(n.error=t.error?Object.assign({},t.error):null),t.status&amp;&amp;(n.status=Object.assign({},t.status)),t.file&amp;&amp;(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var r=t.item?t.item:i.query(&quot;GET_ITEM&quot;,t.id);n.file=r?Te(r):null}return t.items&amp;&amp;(n.items=t.items.map(Te)),/progress/.test(e)&amp;&amp;(n.progress=t.progress),t.hasOwnProperty(&quot;origin&quot;)&amp;&amp;t.hasOwnProperty(&quot;target&quot;)&amp;&amp;(n.origin=t.origin,n.target=t.target),n}},m={DID_DESTROY:v(&quot;destroy&quot;),DID_INIT:v(&quot;init&quot;),DID_THROW_MAX_FILES:v(&quot;warning&quot;),DID_INIT_ITEM:v(&quot;initfile&quot;),DID_START_ITEM_LOAD:v(&quot;addfilestart&quot;),DID_UPDATE_ITEM_LOAD_PROGRESS:v(&quot;addfileprogress&quot;),DID_LOAD_ITEM:v(&quot;addfile&quot;),DID_THROW_ITEM_INVALID:[v(&quot;error&quot;),v(&quot;addfile&quot;)],DID_THROW_ITEM_LOAD_ERROR:[v(&quot;error&quot;),v(&quot;addfile&quot;)],DID_THROW_ITEM_REMOVE_ERROR:[v(&quot;error&quot;),v(&quot;removefile&quot;)],DID_PREPARE_OUTPUT:v(&quot;preparefile&quot;),DID_START_ITEM_PROCESSING:v(&quot;processfilestart&quot;),DID_UPDATE_ITEM_PROCESS_PROGRESS:v(&quot;processfileprogress&quot;),DID_ABORT_ITEM_PROCESSING:v(&quot;processfileabort&quot;),DID_COMPLETE_ITEM_PROCESSING:v(&quot;processfile&quot;),DID_COMPLETE_ITEM_PROCESSING_ALL:v(&quot;processfiles&quot;),DID_REVERT_ITEM_PROCESSING:v(&quot;processfilerevert&quot;),DID_THROW_ITEM_PROCESSING_ERROR:[v(&quot;error&quot;),v(&quot;processfile&quot;)],DID_REMOVE_ITEM:v(&quot;removefile&quot;),DID_UPDATE_ITEMS:v(&quot;updatefiles&quot;),DID_ACTIVATE_ITEM:v(&quot;activatefile&quot;),DID_REORDER_ITEMS:v(&quot;reorderfiles&quot;)},h=function(e){var t=Object.assign({pond:A},e);delete t.type,p.element.dispatchEvent(new CustomEvent(&quot;FilePond:&quot;+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty(&quot;error&quot;)&amp;&amp;n.push(e.error),e.hasOwnProperty(&quot;file&quot;)&amp;&amp;n.push(e.file);var r=[&quot;type&quot;,&quot;error&quot;,&quot;file&quot;];Object.keys(e).filter(function(e){return!r.includes(e)}).forEach(function(t){return n.push(e[t])}),A.fire.apply(A,[e.type].concat(n));var o=i.query(&quot;GET_ON&quot;+e.type.toUpperCase());o&amp;&amp;o.apply(void 0,n)},g=function(e){e.length&amp;&amp;e.filter(function(e){return m[e.type]}).forEach(function(e){var t=m[e.type];(Array.isArray(t)?t:[t]).forEach(function(t){&quot;DID_INIT_ITEM&quot;===e.type?h(t(e.data)):setTimeout(function(){h(t(e.data))},0)})})},R=function(e){return new Promise(function(t,n){i.dispatch(&quot;REQUEST_ITEM_PREPARE&quot;,{query:e,success:function(e){t(e)},failure:function(e){n(e)}})})},O=function(e,t){var n;return&quot;object&quot;!=typeof e||(n=e).file&amp;&amp;n.id||t||(t=e,e=void 0),i.dispatch(&quot;REMOVE_ITEM&quot;,Object.assign({},t,{query:e})),null===i.query(&quot;GET_ACTIVE_ITEM&quot;,e)},D=function(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];return new Promise(function(e,n){var r=[],o={};if(b(t[0]))r.push.apply(r,t[0]),Object.assign(o,t[1]||{});else{var a=t[t.length-1];&quot;object&quot;!=typeof a||a instanceof Blob||Object.assign(o,t.pop()),r.push.apply(r,t)}i.dispatch(&quot;ADD_ITEMS&quot;,{items:r,index:o.index,interactionMethod:J,success:e,failure:n})})},y=function(){return i.query(&quot;GET_ACTIVE_ITEMS&quot;)},S=function(e){return new Promise(function(t,n){i.dispatch(&quot;REQUEST_ITEM_PROCESSING&quot;,{query:e,success:function(e){t(e)},failure:function(e){n(e)}})})},A=Object.assign({},pe(),{},I,{},function(e,n){var r={};return t(n,function(t){r[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch(&quot;SET_&quot;+Z(t,&quot;_&quot;).toUpperCase(),{value:n})}}}),r}(i,o),{setOptions:function(e){return i.dispatch(&quot;SET_OPTIONS&quot;,{options:e})},addFile:function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,r){D([{source:e,options:t}],{index:t.index}).then(function(e){return n(e&amp;&amp;e[0])}).catch(r)})},addFiles:D,getFile:function(e){return i.query(&quot;GET_ACTIVE_ITEM&quot;,e)},processFile:S,prepareFile:R,removeFile:O,moveFile:function(e,t){return i.dispatch(&quot;MOVE_ITEM&quot;,{query:e,index:t})},getFiles:y,processFiles:function(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t;if(!r.length){var o=y().filter(function(e){return!(e.status===Ie.IDLE&amp;&amp;e.origin===ve.LOCAL)&amp;&amp;e.status!==Ie.PROCESSING&amp;&amp;e.status!==Ie.PROCESSING_COMPLETE&amp;&amp;e.status!==Ie.PROCESSING_REVERT_ERROR});return Promise.all(o.map(S))}return Promise.all(r.map(S))},removeFiles:function(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];var r,o=Array.isArray(t[0])?t[0]:t;&quot;object&quot;==typeof o[o.length-1]?r=o.pop():Array.isArray(t[0])&amp;&amp;(r=t[1]);var i=y();return o.length?o.map(function(e){return _(e)?i[e]?i[e].id:null:e}).filter(function(e){return e}).map(function(e){return O(e,r)}):Promise.all(i.map(function(e){return O(e,r)}))},prepareFiles:function(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t,o=r.length?r:y();return Promise.all(o.map(R))},sort:function(e){return i.dispatch(&quot;SORT&quot;,{compare:e})},browse:function(){var e=p.element.querySelector(&quot;input[type=file]&quot;);e&amp;&amp;e.click()},destroy:function(){A.fire(&quot;destroy&quot;,p.element),i.dispatch(&quot;ABORT_ALL&quot;),p._destroy(),window.removeEventListener(&quot;resize&quot;,d),document.removeEventListener(&quot;visibilitychange&quot;,a),i.dispatch(&quot;DID_DESTROY&quot;)},insertBefore:function(e){return L(p.element,e)},insertAfter:function(e){return P(p.element,e)},appendTo:function(e){return e.appendChild(p.element)},replaceElement:function(e){L(p.element,e),e.parentNode.removeChild(e),r=e},restoreElement:function(){r&amp;&amp;(P(r,p.element),p.element.parentNode.removeChild(p.element),r=null)},isAttachedTo:function(e){return p.element===e||r===e},element:{get:function(){return p.element}},status:{get:function(){return i.query(&quot;GET_STATUS&quot;)}}});return i.dispatch(&quot;DID_INIT&quot;),n(A)},Jr=function(){var e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},n={};return t(Se(),function(e,t){n[e]=t[0]}),Kr(Object.assign({},n,{},e))},eo=function(e){var n=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},o=[];t(e.attributes,function(t){o.push(e.attributes[t])});var i=o.filter(function(e){return e.name}).reduce(function(t,n){var o,i=r(e,n.name);return t[(o=n.name,Fr(o.replace(/^data-/,&quot;&quot;)))]=i===n.name||i,t},{});return function e(n,r){t(r,function(r,o){t(n,function(e,t){var i=new RegExp(r);if(i.test(e)&amp;&amp;(delete n[e],!1!==o))if(U(o))n[o]=t;else{var a,u=o.group;H(o)&amp;&amp;!n[u]&amp;&amp;(n[u]={}),n[u][(a=e.replace(i,&quot;&quot;),a.charAt(0).toLowerCase()+a.slice(1))]=t}}),o.mapping&amp;&amp;e(n[o.group],o.mapping)})}(i,n),i},to=function(){return(arguments.length&lt;=0?void 0:arguments[0])instanceof HTMLElement?function(e){var t=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:{},n={&quot;^class$&quot;:&quot;className&quot;,&quot;^multiple$&quot;:&quot;allowMultiple&quot;,&quot;^capture$&quot;:&quot;captureMethod&quot;,&quot;^webkitdirectory$&quot;:&quot;allowDirectoriesOnly&quot;,&quot;^server&quot;:{group:&quot;server&quot;,mapping:{&quot;^process&quot;:{group:&quot;process&quot;},&quot;^revert&quot;:{group:&quot;revert&quot;},&quot;^fetch&quot;:{group:&quot;fetch&quot;},&quot;^restore&quot;:{group:&quot;restore&quot;},&quot;^load&quot;:{group:&quot;load&quot;}}},&quot;^type$&quot;:!1,&quot;^files$&quot;:!1};De(&quot;SET_ATTRIBUTE_TO_OPTION_MAP&quot;,n);var r=Object.assign({},t),o=eo(&quot;FIELDSET&quot;===e.nodeName?e.querySelector(&quot;input[type=file]&quot;):e,n);Object.keys(o).forEach(function(e){H(o[e])?(H(r[e])||(r[e]={}),Object.assign(r[e],o[e])):r[e]=o[e]}),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll(&quot;input:not([type=file])&quot;)).map(function(e){return{source:e.value,options:{type:e.dataset.type}}}));var i=Jr(r);return e.files&amp;&amp;Array.from(e.files).forEach(function(e){i.addFile(e)}),i.replaceElement(e),i}.apply(void 0,arguments):Jr.apply(void 0,arguments)},no=[&quot;fire&quot;,&quot;_read&quot;,&quot;_write&quot;],ro=function(e){var t={};return Ee(e,t,no),t},oo=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,function(e,n){return t[n]})},io=function(e){var t=new Blob([&quot;(&quot;,e.toString(),&quot;)()&quot;],{type:&quot;application/javascript&quot;}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var o=oe();r.onmessage=function(e){e.data.id===o&amp;&amp;t(e.data.message)},r.postMessage({id:o,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},ao=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e})},uo=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},so=function(e){return uo(e,e.name)},lo=[],co=function(e){if(!lo.includes(e)){lo.push(e);var n,r=e({addFilter:ye,utils:{Type:ge,forin:t,isString:U,isFile:ht,toNaturalFileSize:qt,replaceInString:oo,getExtensionFromFilename:ke,getFilenameWithoutExtension:mt,guesstimateMimeType:er,getFileFromBlob:We,getFilenameFromURL:je,createRoute:A,createWorker:io,createView:S,createItemAPI:Te,loadImage:ao,copyFile:so,renameFile:uo,createBlob:ze,applyFilterChain:Oe,text:Ct,getNumericAspectRatioFromString:Pe},views:{fileActionButton:Bt}});n=r.options,Object.assign(Ae,n)}},fo=(Zt=c()&amp;&amp;!(&quot;[object OperaMini]&quot;===Object.prototype.toString.call(window.operamini))&amp;&amp;&quot;visibilityState&quot;in document&amp;&amp;&quot;Promise&quot;in window&amp;&amp;&quot;slice&quot;in Blob.prototype&amp;&amp;&quot;URL&quot;in window&amp;&amp;&quot;createObjectURL&quot;in window.URL&amp;&amp;&quot;performance&quot;in window&amp;&amp;(&quot;supports&quot;in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return Zt}),po={apps:[]},Eo=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=Eo,e.destroy=Eo,e.parse=Eo,e.find=Eo,e.registerPlugin=Eo,e.getOptions=Eo,e.setOptions=Eo,fo()){!function(e,t){var n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:60,r=&quot;__framePainter&quot;;if(window[r])return window[r].readers.push(e),void window[r].writers.push(t);window[r]={readers:[e],writers:[t]};var o=window[r],i=1e3/n,a=null,u=null,s=null,l=null,c=function(){document.hidden?(s=function(){return window.setTimeout(function(){return f(performance.now())},i)},l=function(){return window.clearTimeout(u)}):(s=function(){return window.requestAnimationFrame(f)},l=function(){return window.cancelAnimationFrame(u)})};document.addEventListener(&quot;visibilitychange&quot;,function(){l&amp;&amp;l(),c(),f(performance.now())});var f=function e(t){u=s(e),a||(a=t);var n=t-a;n&lt;=i||(a=t-n%i,o.readers.forEach(function(e){return e()}),o.writers.forEach(function(e){return e(t)}))};c(),f(performance.now())}(function(){po.apps.forEach(function(e){return e._read()})},function(e){po.apps.forEach(function(t){return t._write(e)})});var _o=function t(){document.dispatchEvent(new CustomEvent(&quot;FilePond:loaded&quot;,{detail:{supported:fo,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener(&quot;DOMContentLoaded&quot;,t)};&quot;loading&quot;!==document.readyState?setTimeout(function(){return _o()},0):document.addEventListener(&quot;DOMContentLoaded&quot;,_o);var To=function(){return t(Se(),function(t,n){e.OptionTypes[t]=n[1]})};e.Status=Object.assign({},Me),e.FileOrigin=Object.assign({},ve),e.FileStatus=Object.assign({},Ie),e.OptionTypes={},To(),e.create=function(){var t=to.apply(void 0,arguments);return t.on(&quot;destroy&quot;,e.destroy),po.apps.push(t),ro(t)},e.destroy=function(e){var t=po.apps.findIndex(function(t){return t.isAttachedTo(e)});return t&gt;=0&amp;&amp;(po.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll(&quot;.filepond&quot;)).filter(function(e){return!po.apps.find(function(t){return t.isAttachedTo(e)})}).map(function(t){return e.create(t)})},e.find=function(e){var t=po.apps.find(function(t){return t.isAttachedTo(e)});return t?ro(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n&lt;e;n++)t[n]=arguments[n];t.forEach(co),To()},e.getOptions=function(){var e={};return t(Se(),function(t,n){e[t]=n[0]}),e},e.setOptions=function(n){return H(n)&amp;&amp;(po.apps.forEach(function(e){e.setOptions(n)}),function(e){t(e,function(e,t){Ae[e]&amp;&amp;(Ae[e][0]=z(t,Ae[e][0],Ae[e][1]))})}(n)),e.getOptions()}}e.supported=fo,Object.defineProperty(e,&quot;__esModule&quot;,{value:!0})});</td>
      </tr>
</table>

  <details class="details-reset details-overlay BlobToolbar position-absolute js-file-line-actions dropdown d-none" aria-hidden="true">
    <summary class="btn-octicon ml-0 px-2 p-0 color-bg-primary border color-border-tertiary rounded-1" aria-label="Inline file action toolbar">
      <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal">
    <path d="M8 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM1.5 9a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm13 0a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"></path>
</svg>
    </summary>
    <details-menu>

      <ul class="BlobToolbar-dropdown dropdown-menu dropdown-menu-se ml-2 mt-2"
      style="width:185px"
      >
        <li>
          <clipboard-copy role="menuitem" class="dropdown-item" id="js-copy-lines" style="cursor:pointer;">
            Copy lines
          </clipboard-copy>
        </li>
        <li>
          <clipboard-copy role="menuitem" class="dropdown-item" id="js-copy-permalink" style="cursor:pointer;">
            Copy permalink
          </clipboard-copy>
        </li>
        <li><a class="dropdown-item js-update-url-with-hash" id="js-view-git-blame" role="menuitem" href="/pqina/filepond/blame/b559b56cd8d6e82429646ec719df39415e7b8944/dist/filepond.min.js">View git blame</a></li>
          <li><a class="dropdown-item" id="js-new-issue" role="menuitem" href="/pqina/filepond/issues/new">Reference in new issue</a></li>
      </ul>
    </details-menu>
  </details>

  </div>

    </div>


  

  <details class="details-reset details-overlay details-overlay-dark" id="jumpto-line-details-dialog">
    <summary data-hotkey="l" aria-label="Jump to line"></summary>
    <details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast linejump" aria-label="Jump to line">
      <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-jump-to-line-form Box-body d-flex" action="" accept-charset="UTF-8" method="get">
        <input class="form-control flex-auto mr-3 linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line&hellip;" aria-label="Jump to line" autofocus>
        <button data-close-dialog="" type="submit" data-view-component="true" class="btn">
  
  Go
  

</button>
</form>    </details-dialog>
  </details>

    <div class="Popover anim-scale-in js-tagsearch-popover"
     hidden
     data-tagsearch-url="/pqina/filepond/find-definition"
     data-tagsearch-ref="master"
     data-tagsearch-path="dist/filepond.min.js"
     data-tagsearch-lang="JavaScript"
     data-hydro-click="{&quot;event_type&quot;:&quot;code_navigation.click_on_symbol&quot;,&quot;payload&quot;:{&quot;action&quot;:&quot;click_on_symbol&quot;,&quot;repository_id&quot;:106279637,&quot;ref&quot;:&quot;master&quot;,&quot;language&quot;:&quot;JavaScript&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}"
     data-hydro-click-hmac="632d325386a54472488f60b7063e6e26dc23e50db9d9e69df37817c42562431b">
  <div class="Popover-message Popover-message--large Popover-message--top-left TagsearchPopover mt-1 mb-4 mx-auto Box color-shadow-large">
    <div class="TagsearchPopover-content js-tagsearch-popover-content overflow-auto" style="will-change:transform;">
    </div>
  </div>
</div>


</div>



  </div>
</div>

    </main>
  </div>

  </div>

          
<div class="footer container-xl width-full p-responsive" role="contentinfo">
  <div class="position-relative d-flex flex-row-reverse flex-lg-row flex-wrap flex-lg-nowrap flex-justify-center flex-lg-justify-between pt-6 pb-2 mt-6 f6 color-text-secondary border-top color-border-secondary ">
    <ul class="list-style-none d-flex flex-wrap col-12 col-lg-5 flex-justify-center flex-lg-justify-between mb-2 mb-lg-0">
      <li class="mr-3 mr-lg-0">&copy; 2021 GitHub, Inc.</li>
        <li class="mr-3 mr-lg-0"><a href="https://docs.github.com/en/github/site-policy/github-terms-of-service" data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to terms&quot;,&quot;label&quot;:&quot;text:terms&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="3af1c8bad7e08567124d69c1c2e9ecffd1dbd3c1d8c1b592edb8cad5cf4e5259">Terms</a></li>
        <li class="mr-3 mr-lg-0"><a href="https://docs.github.com/en/github/site-policy/github-privacy-statement" data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to privacy&quot;,&quot;label&quot;:&quot;text:privacy&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="7717996f52a2730e56e6c451d6529a6d3ee82cf9b76ebb42ba84b7dcdad3fc04">Privacy</a></li>
        <li class="mr-3 mr-lg-0"><a data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to security&quot;,&quot;label&quot;:&quot;text:security&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="45c9e9001fa0a3ad0658189607fb80853055b493149f3d26bdaa9f730da3c036" href="https://github.com/security">Security</a></li>
        <li class="mr-3 mr-lg-0"><a href="https://www.githubstatus.com/" data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to status&quot;,&quot;label&quot;:&quot;text:status&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="8bb3a69c53d54895e8653ec86a048cc0e603e2680fda8dbe96cae700be85e007">Status</a></li>
        <li><a data-ga-click="Footer, go to help, text:Docs" href="https://docs.github.com">Docs</a></li>
    </ul>

    <a aria-label="Homepage" title="GitHub" class="footer-octicon d-none d-lg-block mx-lg-4" href="https://github.com">
      <svg aria-hidden="true" height="24" viewBox="0 0 16 16" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github">
    <path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>
</svg>
</a>
    <ul class="list-style-none d-flex flex-wrap col-12 col-lg-5 flex-justify-center flex-lg-justify-between mb-2 mb-lg-0">
        <li class="mr-3 mr-lg-0"><a href="https://support.github.com" data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to contact&quot;,&quot;label&quot;:&quot;text:contact&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="6fd654ae3b014409afa6713766ea1a18e4df278fbcf47e081b07f72432ebabc8">Contact GitHub</a></li>
        <li class="mr-3 mr-lg-0"><a href="https://github.com/pricing" data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to Pricing&quot;,&quot;label&quot;:&quot;text:Pricing&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="e8b482a289f76d87ef9c0daefc89fc560754f90a120559eae3a0876416f3c508">Pricing</a></li>
      <li class="mr-3 mr-lg-0"><a href="https://docs.github.com" data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to api&quot;,&quot;label&quot;:&quot;text:api&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="e2111b96ac3d5912d8e332a57155431d809a8c90e70d2e0eccf152e6d36fc7d3">API</a></li>
      <li class="mr-3 mr-lg-0"><a href="https://services.github.com" data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to training&quot;,&quot;label&quot;:&quot;text:training&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="8b3f8fc7f7052ce9196654e470445004c2e85282ed9bd7637e83f1ee4796329e">Training</a></li>
        <li class="mr-3 mr-lg-0"><a href="https://github.blog" data-hydro-click="{&quot;event_type&quot;:&quot;analytics.event&quot;,&quot;payload&quot;:{&quot;category&quot;:&quot;Footer&quot;,&quot;action&quot;:&quot;go to blog&quot;,&quot;label&quot;:&quot;text:blog&quot;,&quot;originating_url&quot;:&quot;https://github.com/pqina/filepond/blob/master/dist/filepond.min.js&quot;,&quot;user_id&quot;:null}}" data-hydro-click-hmac="b6dbe08c3cf8dc96ed23b7fc2cec538b2fc812b4be22a9fcf048e2b543d0fe65">Blog</a></li>
        <li><a data-ga-click="Footer, go to about, text:about" href="https://github.com/about">About</a></li>
    </ul>
  </div>
  <div class="d-flex flex-justify-center pb-6">
    <span class="f6 color-text-tertiary"></span>
  </div>

  
</div>



  <div id="ajax-error-message" class="ajax-error-message flash flash-error" hidden>
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path fill-rule="evenodd" d="M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z"></path>
</svg>
    <button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
      <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>
</svg>
    </button>
    You can’t perform that action at this time.
  </div>

  <div class="js-stale-session-flash flash flash-warn flash-banner" hidden
    >
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path fill-rule="evenodd" d="M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z"></path>
</svg>
    <span class="js-stale-session-flash-signed-in" hidden>You signed in with another tab or window. <a href="">Reload</a> to refresh your session.</span>
    <span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. <a href="">Reload</a> to refresh your session.</span>
  </div>
    <template id="site-details-dialog">
  <details class="details-reset details-overlay details-overlay-dark lh-default color-text-primary hx_rsm" open>
    <summary role="button" aria-label="Close dialog"></summary>
    <details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_rsm-dialog hx_rsm-modal">
      <button class="Box-btn-octicon m-0 btn-octicon position-absolute right-0 top-0" type="button" aria-label="Close dialog" data-close-dialog>
        <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
    <path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path>
</svg>
      </button>
      <div class="octocat-spinner my-6 js-details-dialog-spinner"></div>
    </details-dialog>
  </details>
</template>

    <div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;" tabindex="0">
  <div class="Popover-message Popover-message--bottom-left Popover-message--large Box color-shadow-large" style="width:360px;">
  </div>
</div>

    <template id="snippet-clipboard-copy-button">
  <div class="zeroclipboard-container position-absolute right-0 top-0">
    <clipboard-copy aria-label="Copy" class="ClipboardButton btn js-clipboard-copy m-2 p-0 tooltipped-no-delay" data-copy-feedback="Copied!" data-tooltip-direction="w">
      <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-paste js-clipboard-clippy-icon m-2">
    <path fill-rule="evenodd" d="M5.75 1a.75.75 0 00-.75.75v3c0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75v-3a.75.75 0 00-.75-.75h-4.5zm.75 3V2.5h3V4h-3zm-2.874-.467a.75.75 0 00-.752-1.298A1.75 1.75 0 002 3.75v9.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 13.25v-9.5a1.75 1.75 0 00-.874-1.515.75.75 0 10-.752 1.298.25.25 0 01.126.217v9.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-9.5a.25.25 0 01.126-.217z"></path>
</svg>
      <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-text-success d-none m-2">
    <path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path>
</svg>
    </clipboard-copy>
  </div>
</template>



  

  </body>
</html>

