1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ce0bec16-c32c-84dd-1ba7-8fa36726d6f6")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8249,e=>{"use strict";var t=e.i(843476),n=e.i(500932);e.i(785269);var r=e.i(322831),o=e.i(271645),i=e.i(343794),a=e.i(745009);function l(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((r=r.apply(e,t||[])).next())})}function c(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){var u=[l,c];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var f=("function"==typeof SuppressedError&&SuppressedError,new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]));function p(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=f.get(n);
2r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var d=[".DS_Store","Thumbs.db"];function v(e){return"object"==typeof e&&null!==e}function m(e){return e.filter(function(e){return -1===d.indexOf(e.name)})}function g(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function y(e){if("function"!=typeof e.webkitGetAsEntry)return b(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?w(t):b(e)}function b(e){var t=e.getAsFile();return t?Promise.resolve(p(t)):Promise.reject("".concat(e," is not a File"))}function h(e){return l(this,void 0,void 0,function(){return c(this,function(t){return[2,e.isDirectory?w(e):function(e){return l(this,void 0,void 0,function(){return c(this,function(t){return[2,new Promise(function(t,n){e.file(function(n){t(p(n,e.fullPath))},function(e){n(e)})})]})})}(e)]})})}function w(e){var t=e.createReader();return new Promise(function(e,n){var r=[];!function o(){var i=this;t.readEntries(function(t){return l(i,void 0,void 0,function(){var i;return c(this,function(a){switch(a.label){case 0:if(t.length)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return e(a.sent()),[3,4];case 3:return n(a.sent()),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(h)),r.push(i),o(),a.label=6;case 6:return[2]}})})},function(e){n(e)})}()})}var x=e.i(816474);function D(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||F(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var k=function(e){var t=Array.isArray(e=Array.isArray(e)&&1===e.length?e[0]:e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},P=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},z=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},C={code:"too-many-files",message:"Too many files"};function R(e,t){var n="application/x-moz-file"===e.type||(0,x.default)(e,t);return[n,n?null:k(t)]}function T(e,t,n){if(I(e.size)){if(I(t)&&I(n)){if(e.size>n)return[!1,P(n)];if(e.size<t)return[!1,z(t)]}else if(I(t)&&e.size<t)return[!1,z(t)];else if(I(n)&&e.size>n)return[!1,P(n)]}return[!0,null]}function I(e){return null!=e}function _(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function L(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function M(e){e.preventDefault()}function B(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return!_(e)&&t&&t.apply(void 0,[e].concat(r)),_(e)})}}function N(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function K(e){return/^.*\.[\w]+$/.test(e)}var U=["children"],$=["open"],W=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],G=["refKey","onChange","onClick"];function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||q(e,t)||function(){throw TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Z=(0,o.forwardRef)(function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Q(Q({},ee),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,l=t.minSize,c=t.multiple,u=t.maxFiles,s=t.onDragEnter,f=t.onDragLeave,p=t.onDragOver,d=t.onDrop,v=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,h=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,j=t.noKeyboard,F=t.noDrag,S=t.noDragEventsBubbling,k=t.onError,P=t.validator,z=(0,o.useMemo)(function(){return I(n)?Object.entries(n).reduce(function(e,t){var n=E(t,2),r=n[0],o=n[1];return[].concat(D(e),[r],D(o))},[]).filter(function(e){return N(e)||K(e)}).join(","):void 0},[n]),U=(0,o.useMemo)(function(){return I(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=E(e,2),n=t[0],r=t[1],o=!0;return N(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(K)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(e,t){var n=E(t,2),r=n[0],o=n[1];return O(O({},e),{},A({},r,o))},{})}]:n},[n]),$=(0,o.useMemo)(function(){return"function"==typeof y?y:er},[y]),J=(0,o.useMemo)(function(){return"function"==typeof g?g:er},[g]),Z=(0,o.useRef)(null),eo=(0,o.useRef)(null),ei=H((0,o.useReducer)(en,et),2),ea=ei[0],el=ei[1],ec=ea.isFocused,eu=ea.isFileDialogActive,es=(0,o.useRef)("u">typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ef=function(){!es.current&&eu&&setTimeout(function(){eo.current&&(eo.current.files.length||(el({type:"closeDialog"}),J()))},300)};(0,o.useEffect)(function(){return window.addEventListener("focus",ef,!1),function(){window.removeEventListener("focus",ef,!1)}},[eo,eu,J,es]);var ep=(0,o.useRef)([]),ed=function(e){Z.current&&Z.current.contains(e.target)||(e.preventDefault(),ep.current=[])};(0,o.useEffect)(function(){return w&&(document.addEventListener("dragover",M,!1),document.addEventListener("drop",ed,!1)),function(){w&&(document.removeEventListener("dragover",M),document.removeEventListener("drop",ed))}},[Z,w]),(0,o.useEffect)(function(){return!r&&h&&Z.current&&Z.current.focus(),function(){}},[Z,h,r]);var ev=(0,o.useCallback)(function(e){k?k(e):console.error(e)},[k]),em=(0,o.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eS(e),ep.current=[].concat(function(e){if(Array.isArray(e))return Y(e)}(t=ep.current)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||q(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),L(e)&&Promise.resolve(i(e)).then(function(t){if(!_(e)||S){var n,r,o,i,f,p,d,v,m=t.length,g=m>0&&(r=(n={files:t,accept:z,minSize:l,maxSize:a,multiple:c,maxFiles:u,validator:P}).files,o=n.accept,i=n.minSize,f=n.maxSize,p=n.multiple,d=n.maxFiles,v=n.validator,(!!p||!(r.length>1))&&(!p||!(d>=1)||!(r.length>d))&&r.every(function(e){var t=E(R(e,o),1)[0],n=E(T(e,i,f),1)[0],r=v?v(e):null;return t&&n&&!r}));el({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}}).catch(function(e){return ev(e)})},[i,s,ev,S,z,l,a,c,u,P]),eg=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),eS(e);var t=L(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1},[p,S]),ey=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),eS(e);var t=ep.current.filter(function(e){return Z.current&&Z.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ep.current=t,!(t.length>0)&&(el({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),L(e)&&f&&f(e))},[Z,f,S]),eb=(0,o.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=H(R(e,z),2),o=t[0],i=t[1],c=H(T(e,l,a),2),u=c[0],s=c[1],f=P?P(e):null;if(o&&u&&!f)n.push(e);else{var p=[i,s];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter(function(e){return e})})}}),(!c&&n.length>1||c&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[C]})}),n.splice(0)),el({acceptedFiles:n,fileRejections:r,type:"setFiles"}),d&&d(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&v&&v(n,t)},[el,c,z,l,a,u,d,v,m,P]),eh=(0,o.useCallback)(function(e){e.preventDefault(),e.persist(),eS(e),ep.current=[],L(e)&&Promise.resolve(i(e)).then(function(t){(!_(e)||S)&&eb(t,e)}).catch(function(e){return ev(e)}),el({type:"reset"})},[i,eb,ev,S]),ew=(0,o.useCallback)(function(){if(es.current){el({type:"openDialog"}),$(),window.showOpenFilePicker({multiple:c,types:U}).then(function(e){return i(e)}).then(function(e){eb(e,null),el({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(J(e),el({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(es.current=!1,eo.current?(eo.current.value=null,eo.current.click()):ev(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ev(e)});return}
2eo.current&&(el({type:"openDialog"}),$(),eo.current.value=null,eo.current.click())},[el,$,J,b,eb,ev,U,c]),ex=(0,o.useCallback)(function(e){Z.current&&Z.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ew())},[Z,ew]),eD=(0,o.useCallback)(function(){el({type:"focus"})},[]),ej=(0,o.useCallback)(function(){el({type:"blur"})},[]),eO=(0,o.useCallback)(function(){x||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ew,0):ew())},[x,ew]),eA=function(e){return r?null:e},eE=function(e){return j?null:eA(e)},eF=function(e){return F?null:eA(e)},eS=function(e){S&&e.stopPropagation()},ek=(0,o.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,o=e.onKeyDown,i=e.onFocus,a=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,s=e.onDragLeave,f=e.onDrop,p=X(e,W);return Q(Q(V({onKeyDown:eE(B(o,ex)),onFocus:eE(B(i,eD)),onBlur:eE(B(a,ej)),onClick:eA(B(l,eO)),onDragEnter:eF(B(c,em)),onDragOver:eF(B(u,eg)),onDragLeave:eF(B(s,ey)),onDrop:eF(B(f,eh)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,Z),r||j?{}:{tabIndex:0}),p)}},[Z,ex,eD,ej,eO,em,eg,ey,eh,j,F,r]),eP=(0,o.useCallback)(function(e){e.stopPropagation()},[]),ez=(0,o.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,o=X(e,G);return Q(Q({},V({accept:z,multiple:c,type:"file",style:{display:"none"},onChange:eA(B(n,eh)),onClick:eA(B(r,eP)),tabIndex:-1},void 0===t?"ref":t,eo)),o)}},[eo,n,c,eh,r]);return Q(Q({},ea),{},{isFocused:ec&&!r,getRootProps:ek,getInputProps:ez,rootRef:Z,inputRef:eo,open:eA(ew)})}(X(e,U)),i=r.open,a=X(r,$);return(0,o.useImperativeHandle)(t,function(){return{open:i}},[i]),o.default.createElement(o.Fragment,null,n(Q(Q({},a),{},{open:i})))});Z.displayName="Dropzone";var ee={disabled:!1,getFilesFromEvent:function(e){return l(this,void 0,void 0,function(){return c(this,function(t){var n;if(v(e)&&v(e.dataTransfer))return[2,function(e,t){return l(this,void 0,void 0,function(){var n;return c(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=g(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(y))];case 1:return[2,m(function e(t){return t.reduce(function(t,n){return s(s([],u(t),!1),u(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,m(g(e.files).map(function(e){return p(e)}))]}})})}(e.dataTransfer,e.type)];if(v(n=e)&&v(n.target))return[2,g(e.target.files).map(function(e){return p(e)})];return Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return l(this,void 0,void 0,function(){return c(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return p(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Z.defaultProps=ee,Z.propTypes={children:a.default.func,accept:a.default.objectOf(a.default.arrayOf(a.default.string)),multiple:a.default.bool,preventDropOnDocument:a.default.bool,noClick:a.default.bool,noKeyboard:a.default.bool,noDrag:a.default.bool,noDragEventsBubbling:a.default.bool,minSize:a.default.number,maxSize:a.default.number,maxFiles:a.default.number,disabled:a.default.bool,getFilesFromEvent:a.default.func,onFileDialogCancel:a.default.func,onFileDialogOpen:a.default.func,useFsAccessApi:a.default.bool,autoFocus:a.default.bool,onDragEnter:a.default.func,onDragLeave:a.default.func,onDragOver:a.default.func,onDrop:a.default.func,onDropAccepted:a.default.func,onDropRejected:a.default.func,onError:a.default.func,validator:a.default.func};var et={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function en(e,t){switch(t.type){case"focus":return Q(Q({},e),{},{isFocused:!0});case"blur":return Q(Q({},e),{},{isFocused:!1});case"openDialog":return Q(Q({},et),{},{isFileDialogActive:!0});case"closeDialog":return Q(Q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Q(Q({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Q(Q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Q({},et);default:return e}}function er(){}var eo=e.i(166340),ei=e.i(201135);let ea=e=>{let r,a,l,c,u,s,f,p,d,v=(0,n.c)(28),[m,g]=o.useState(!1),y=o.useRef(null);v[0]!==e?(r=t=>{e.getDraggingStatus&&e.getDraggingStatus(t)},v[0]=e,v[1]=r):r=v[1];let b=r;v[2]!==b?(a=e=>{y.current=e.target,g(!0),b(!0)},v[2]=b,v[3]=a):a=v[3];let h=a;v[4]!==b?(l=e=>{(e.target===y.current||e.target===document)&&(g(!1),b(!1))},v[4]=b,v[5]=l):l=v[5];let w=l;v[6]!==b?(c=()=>{g(!1),b(!1)},v[6]=b,v[7]=c):c=v[7];let x=c;v[8]!==e||v[9]!==b?(u=(t,n,r)=>{e.onFilesAdded&&e.onFilesAdded(t,n),e.onDrop&&e.onDrop(t,n,r),g(!1),b(!1)},v[8]=e,v[9]=b,v[10]=u):u=v[10];let D=u;return v[11]!==w||v[12]!==h||v[13]!==x||v[14]!==e.renderOverlay?(s=()=>(e.renderOverlay&&(window.addEventListener("dragenter",h),window.addEventListener("dragleave",w),window.addEventListener("drop",x)),()=>{window.removeEventListener("dragenter",h),window.removeEventListener("dragleave",w),window.removeEventListener("drop",x)}),f=[w,h,x,e.renderOverlay],v[11]=w,v[12]=h,v[13]=x,v[14]=e.renderOverlay,v[15]=s,v[16]=f):(s=v[15],f=v[16
2]),o.useEffect(s,f),v[17]!==m||v[18]!==e.className||v[19]!==e.disabled||v[20]!==e.loading||v[21]!==e.renderOverlay||v[22]!==e.title?(p=n=>{let{getRootProps:r,getInputProps:o,isDragActive:a}=n;return(0,t.jsx)("div",{className:(0,i.default)("control-dropzone",e.className,{disabled:e.disabled,focus:!1,dragactive:a,loading:e.loading}),...r(),children:(0,t.jsxs)("div",{className:(0,i.default)("control-dropzone__root"),children:[(0,t.jsx)("input",{...o()}),a&&!e.renderOverlay&&(0,t.jsx)(ei.default,{width:16,height:16,kind:"close",wrapperClassName:"control-dropzone__indicator"}),(0,t.jsxs)("div",{className:"control-dropzone__label",children:[(0,t.jsx)(ei.default,{width:16,height:16,kind:"upload"}),(0,t.jsx)("div",{children:e.title})]}),e.loading&&(0,t.jsx)("div",{className:"control-dropzone__loader",children:(0,t.jsx)(eo.default,{size:"tiny"})}),e.renderOverlay&&(0,t.jsxs)("div",{style:{pointerEvents:m?"all":"none"},children:[(0,t.jsx)("div",{className:"control-dropzone__overlay"}),(0,t.jsx)("div",{className:"control-dropzone__backdrop",style:{opacity:.2*!!m}})]})]})})},v[17]=m,v[18]=e.className,v[19]=e.disabled,v[20]=e.loading,v[21]=e.renderOverlay,v[22]=e.title,v[23]=p):p=v[23],v[24]!==D||v[25]!==e||v[26]!==p?(d=(0,t.jsx)(Z,{...e,onDrop:D,children:p}),v[24]=D,v[25]=e,v[26]=p,v[27]=d):d=v[27],d};ea.displayName="ControlDropzone";var el=e.i(279433),ec=e.i(461912);e.s(["default",0,e=>{let o,i,a,l,c,u=(0,n.c)(23),{accept:s,loading:f,files:p,setFiles:d,onFileError:v,title:m,multiple:g,maxSize:y}=e,b=void 0===g||g,h=void 0===y?0x1400000:y,{t:w}=(0,r.useTranslation)();u[0]!==p||u[1]!==h||u[2]!==b||u[3]!==v||u[4]!==d||u[5]!==w?(o=(e,t)=>{let n=e.filter(e=>!p.some(t=>t.name===e.name&&t.size===e.size&&t.lastModified===e.lastModified));p.length>0&&!b?d([n[0]]):(d([...p,...n]),t.length>0&&v(w("file.tooBig",{size:(h/1048576).toFixed(1)})))},u[0]=p,u[1]=h,u[2]=b,u[3]=v,u[4]=d,u[5]=w,u[6]=o):o=u[6];let x=o;return u[7]!==w||u[8]!==m?(i=m||w("file.choose"),u[7]=w,u[8]=m,u[9]=i):i=u[9],u[10]!==s||u[11]!==x||u[12]!==f||u[13]!==h||u[14]!==b||u[15]!==i?(a=(0,t.jsx)(ea,{accept:s,disabled:f,title:i,renderOverlay:!0,onFilesAdded:x,maxSize:h,multiple:b}),u[10]=s,u[11]=x,u[12]=f,u[13]=h,u[14]=b,u[15]=i,u[16]=a):a=u[16],u[17]!==p||u[18]!==d?(l=p.length>0&&(0,t.jsx)(el.default,{children:p.map((e,n)=>(0,t.jsx)(ec.default,{title:e.name,iconRight:"close",theme:"secondary",onClick:()=>{d(p.filter((e,t)=>t!==n))}},e.name+e.size+n))}),u[17]=p,u[18]=d,u[19]=l):l=u[19],u[20]!==a||u[21]!==l?(c=(0,t.jsxs)("div",{children:[a,l]}),u[20]=a,u[21]=l,u[22]=c):c=u[22],c}],8249)},816474,(e,t,n)=>{"use strict";n.__esModule=!0,n.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0}}]); 3 4//# debugId=ce0bec16-c32c-84dd-1ba7-8fa36726d6f6
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.