PageSourceSearch

https://auth.hyperbound.ai/_next/static/chunks/2235-953b63d6306625e9.js

js hyperbound.ai collected 2026-10-01 12:19:42 UTC 107,930 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2235],{67084:function(e,t,r){r.d(t,{E:function(){return x}});var n=r(67294),i=r(64761),o=r(56817),a=r(96768),s=Object.defineProperty,l=Object.defineProperties,c=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&__defNormalProp(e,r,t[r]);if(p)for(var r of p(t))u.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>l(e,c(t)),h=(0,o.k)((e,{color:t})=>{let r=t||("dark"===e.colorScheme?"dark":"gray"),n=e.fn.variant({color:r,variant:"light"});return{root:__spreadProps(__spreadValues({},e.fn.fontStyles()),{lineHeight:e.lineHeight,padding:`${(0,a.h)(2)} calc(${e.spacing.xs} / 2)`,borderRadius:e.radius.sm,color:"dark"===e.colorScheme?"dark"===r?e.colors.dark[0]:e.white:e.colors.dark[7],backgroundColor:"dark"===e.colorScheme&&"dark"===r?e.colors.dark[5]:n.background,fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.xs}),block:{padding:e.spacing.xs,margin:0,overflowX:"auto"}}}),f=r(64523),m=Object.defineProperty,g=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,Code_defNormalProp=(e,t,r)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Code_spreadValues=(e,t)=>{for(var r in t||(t={}))b.call(t,r)&&Code_defNormalProp(e,r,t[r]);if(g)for(var r of g(t))y.call(t,r)&&Code_defNormalProp(e,r,t[r]);return e},__objRest=(e,t)=>{var r={};for(var n in e)b.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&g)for(var n of g(e))0>t.indexOf(n)&&y.call(e,n)&&(r[n]=e[n]);return r};let v={},x=(0,n.forwardRef)((e,t)=>{let r=(0,i.N4)("Code",v,e),{className:o,children:a,block:s,color:l,unstyled:c,variant:p}=r,d=__objRest(r,["className","children","block","color","unstyled","variant"]),{classes:u,cx:m}=h({color:l},{name:"Code",unstyled:c,variant:p});return s?n.createElement(f.x,Code_spreadValues({component:"pre",dir:"ltr",className:m(u.root,u.block,o),ref:t},d),a):n.createElement(f.x,Code_spreadValues({component:"code",className:m(u.root,o),ref:t,dir:"ltr"},d),a)});x.displayName="@mantine/core/Code"},8949:function(e,t,r){r.d(t,{a:function(){return T}});var n=r(67294),i=r(64761),o=r(68216);let[a,s]=(0,o.R)("List component was not found in tree");var l=r(56817),c=r(58404),p=r(14258),d=(0,l.k)((e,{spacing:t,center:r})=>({itemWrapper:{ref:(0,c.A)("itemWrapper"),display:"inline-flex",flexDirection:"column",whiteSpace:"normal"},item:{whiteSpace:"nowrap",lineHeight:r?1:e.lineHeight,"&:not(:first-of-type)":{marginTop:(0,p.a)({size:t,sizes:e.spacing})},"&[data-with-icon]":{listStyle:"none",[`& .${(0,c.A)("itemWrapper")}`]:{display:"inline-flex",alignItems:r?"center":"flex-start",flexDirection:"row"}}},itemIcon:{display:"inline-block",verticalAlign:"middle",marginRight:e.spacing.sm}})),u=r(64523),h=Object.defineProperty,f=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&__defNormalProp(e,r,t[r]);if(f)for(var r of f(t))g.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__objRest=(e,t)=>{var r={};for(var n in e)m.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&f)for(var n of f(e))0>t.indexOf(n)&&g.call(e,n)&&(r[n]=e[n]);return r};let b={},y=(0,n.forwardRef)((e,t)=>{let r=(0,i.N4)("ListItem",b,e),{className:o,children:a,icon:l}=r,c=__objRest(r,["className","children","icon"]),{icon:p,spacing:h,center:f,listStyleType:m,size:g,withPadding:y,classNames:v,styles:x,unstyled:E,variant:_}=s(),S=l||p,{classes:O,cx:w}=d({withPadding:y,listStyleType:m,center:f,spacing:h},{classNames:v,styles:x,unstyled:E,name:"List",variant:_,size:g});return n.createElement(u.x,__spreadValues({component:"li",className:w(O.item,o),"data-with-icon":!!S||void 0,ref:t},c),n.createElement("div",{className:O.itemWrapper},S&&n.createElement("span",{className:O.itemIcon},S),n.createElement("span",null,a)))});y.displayName="@mantine/core/ListItem";var v=Object.defineProperty,x=Object.defineProperties,E=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,List_styles_defNormalProp=(e,t,r)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,List_styles_spreadValues=(e,t)=>{for(var r in t||(t={}))S.call(t,r)&&List_styles_defNormalProp(e,r,t[r]);if(_)for(var r of _(t))O.call(t,r)&&List_styles_defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>x(e,E(t)),w=(0,l.k)((e,{withPadding:t,listStyleType:r},{size:n})=>({root:__spreadProps(List_styles_spreadValues({},e.fn.fontStyles()),{listStyleType:r,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,fontSize:(0,p.a)({size:n,sizes:e.fontSizes}),lineHeight:e.lineHeight,margin:0,paddingLeft:t?e.spacing.xl:0,listStylePosition:"inside"})})),N=Object.defineProperty,D=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,List_defNormalProp=(e,t,r)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,List_spreadValues=(e,t)=>{for(var r in t||(t={}))j.call(t,r)&&List_defNormalProp(e,r,t[r]);if(D)for(var r of D(t))P.call(t,r)&&List_defNormalProp(e,r,t[r]);return e},List_objRest=(e,t)=>
1{var r={};for(var n in e)j.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&D)for(var n of D(e))0>t.indexOf(n)&&P.call(e,n)&&(r[n]=e[n]);return r};let A={type:"unordered",size:"md",spacing:0},T=(0,n.forwardRef)((e,t)=>{let r=(0,i.N4)("List",A,e),{children:o,type:s,size:l,listStyleType:c,withPadding:p,center:d,spacing:h,icon:f,className:m,styles:g,classNames:b,unstyled:y,variant:v}=r,x=List_objRest(r,["children","type","size","listStyleType","withPadding","center","spacing","icon","className","styles","classNames","unstyled","variant"]),{classes:E,cx:_}=w({withPadding:p,listStyleType:c,center:d,spacing:h},{classNames:b,styles:g,name:"List",unstyled:y,size:l,variant:v});return n.createElement(a,{value:{spacing:h,center:d,icon:f,listStyleType:c,size:l,withPadding:p,classNames:b,styles:g,unstyled:y,variant:v}},n.createElement(u.x,List_spreadValues({component:"unordered"===s?"ul":"ol",className:_(E.root,m),ref:t},x),o))});T.Item=y,T.displayName="@mantine/core/List"},49737:function(e,t,r){r.d(t,{f:function(){return w}});var n=r(67294),i=r(3594),o=r(64761),a=r(56817),s=Object.defineProperty,l=Object.defineProperties,c=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&__defNormalProp(e,r,t[r]);if(p)for(var r of p(t))u.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>l(e,c(t)),h=(0,a.k)(e=>({root:__spreadProps(__spreadValues({},e.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})})),f=r(58036),m=r(64523),g=r(20966),b=r(17577),y=Object.defineProperty,v=Object.defineProperties,x=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,LoadingOverlay_defNormalProp=(e,t,r)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LoadingOverlay_spreadValues=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&LoadingOverlay_defNormalProp(e,r,t[r]);if(E)for(var r of E(t))S.call(t,r)&&LoadingOverlay_defNormalProp(e,r,t[r]);return e},LoadingOverlay_spreadProps=(e,t)=>v(e,x(t)),__objRest=(e,t)=>{var r={};for(var n in e)_.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&E)for(var n of E(e))0>t.indexOf(n)&&S.call(e,n)&&(r[n]=e[n]);return r};let O={overlayOpacity:.75,transitionDuration:0,radius:0,zIndex:(0,i.w)("overlay")},w=(0,n.forwardRef)((e,t)=>{let r=(0,o.N4)("LoadingOverlay",O,e),{className:i,visible:a,loaderProps:s,overlayOpacity:l,overlayColor:c,transitionDuration:p,exitTransitionDuration:d,zIndex:u,style:y,loader:v,radius:x,overlayBlur:E,unstyled:_,variant:S,keepMounted:w}=r,N=__objRest(r,["className","visible","loaderProps","overlayOpacity","overlayColor","transitionDuration","exitTransitionDuration","zIndex","style","loader","radius","overlayBlur","unstyled","variant","keepMounted"]),{classes:D,cx:j,theme:P}=h(null,{name:"LoadingOverlay",unstyled:_,variant:S}),A=`calc(${u} + 1)`;return n.createElement(f.u,{keepMounted:w,duration:p,exitDuration:d,mounted:a,transition:"fade"},e=>n.createElement(m.x,LoadingOverlay_spreadValues({className:j(D.root,i),style:LoadingOverlay_spreadProps(LoadingOverlay_spreadValues(LoadingOverlay_spreadValues({},e),y),{zIndex:u}),ref:t},N),v?n.createElement("div",{style:{zIndex:A}},v):n.createElement(g.a,LoadingOverlay_spreadValues({style:{zIndex:A}}
1,s)),n.createElement(b.a,{opacity:l,zIndex:u,radius:x,blur:E,unstyled:_,color:c||("dark"===P.colorScheme?P.colors.dark[5]:P.white)})))});w.displayName="@mantine/core/LoadingOverlay"},96310:function(e,t,r){r.d(t,{fh:function(){return eu}});var n=r(67294),i=r(3594),o=r(64761),a=r(83143),s=r(64523),l=r(91759),c=r(45697),p=r.n(c),d=r(97582),u=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 toFileWithPath(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=u.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var h=[".DS_Store","Thumbs.db"];function isObject(e){return"object"==typeof e&&null!==e}function noIgnoredFiles(e){return e.filter(function(e){return -1===h.indexOf(e.name)})}function fromList(e){if(null===e)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function toFilePromises(e){if("function"!=typeof e.webkitGetAsEntry)return fromDataTransferItem(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?fromDirEntry(t):fromDataTransferItem(e)}function fromDataTransferItem(e){var t=e.getAsFile();return t?Promise.resolve(toFileWithPath(t)):Promise.reject("".concat(e," is not a File"))}function fromEntry(e){return(0,d.mG)(this,void 0,void 0,function(){return(0,d.Jh)(this,function(t){return[2,e.isDirectory?fromDirEntry(e):function(e){return(0,d.mG)(this,void 0,void 0,function(){return(0,d.Jh)(this,function(t){return[2,new Promise(function(t,r){e.file(function(r){t(toFileWithPath(r,e.fullPath))},function(e){r(e)})})]})})}(e)]})})}function fromDirEntry(e){var t=e.createReader();return new Promise(function(e,r){var n=[];!function readEntries(){var i=this;t.readEntries(function(t){return(0,d.mG)(i,void 0,void 0,function(){var i;return(0,d.Jh)(this,function(o){switch(o.label){case 0:if(t.length)return[3,5];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return e(o.sent()),[3,4];case 3:return r(o.sent()),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(fromEntry)),n.push(i),readEntries(),o.label=6;case 6:return[2]}})})},function(e){r(e)})}()})}var f=r(58363);function _toConsumableArray(e){return function(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_unsupportedIterableToArray(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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _slicedToArray(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw n}}return o}}(e,t)||_unsupportedIterableToArray(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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var getInvalidTypeRejectionErr=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)}},getTooLargeRejectionErr=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},getTooSmallRejectionErr=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},m={code:"too-many-files",message:"Too many files"};function fileAccepted(e,t){var r="application/x-moz-file"===e.type||(0,f.Z)(e,t);return[r,r?null:getInvalidTypeRejectionErr(t)]}function fileMatchSize(e,t,r){if(isDefined(e.size)){if(isDefined(t)&&isDefined(r)){if(e.size>r)return[!1,getTooLargeRejectionErr(r)];if(e.size<t)return[!1,getTooSmallRejectionErr(t)]}else if(isDefined(t)&&e.size<t)return[!1,getTooSmallRejectionErr(t)];else if(isDefined(r)&&e.size>r)return[!1,getTooLargeRejectionErr(r)]}return[!0,null]}function isDefined(e){return null!=e}function isPropagationStopped(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function isEvtWithFiles(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 onDocumentDragOver(e){e.preventDefault()}function composeEventHandlers(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.some(function(t){return!isPropagationStopped(e)&&t&&t.apply(void 0,[e].concat(n)),isPropagationStopped(e)})}}function isMIMEType(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function isExt(e){return/^.*\.[\w]+$/.test(e)}var g=["children"],b=["open"],y=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],v=["refKey","onChange","onClick"];function es_slicedToArray(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw n}}return o}}(e,t)||es_unsupportedIterableToArray(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 es_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return es_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return es_arrayLikeToArray(e,t)}}function es_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function es_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function es_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?es_ownKeys(Object(r),!0).forEach(function(t){es_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function es_defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var x=(0,n.forwardRef)(function(e,t){var r=e.children,i=useDropzone(_objectWithoutProperties(e,g)),o=i.open,a=_objectWithoutProperties(i,b);return(0,n.useImperativeHandle)(t,function(){return{open:o}},[o]),n.createElement(n.Fragment,null,r(es_objectSpread(es_objectSpread({},a),{},{open:o})))});x.displayName="Dropzone";var E={disabled:!1,getFilesFromEvent:function(e){return(0,d.mG)(this,void 0,void 0,function(){return(0,d.Jh)(this,function(t){return isObject(e)&&isObject(e.dataTransfer)?[2,function(e,t){return(0,d.mG)(this,void 0,void 0,function(){var r;return(0,d.Jh)(this,function(n){switch(n.label){case 0:if(!e.items)return[3,2];if(r=fromList(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,r];return[4,Promise.all(r.map(toFilePromises))];case 1:return[2,noIgnoredFiles(function flatten(e){return e.reduce(function(e,t){return(0,d.ev)((0,d.ev)([],(0,d.CR)(e),!1),(0,d.CR)(Array.isArray(t)?flatten(t):[t]),!1)},[])}(n.sent()))];case 2:return[2,noIgnoredFiles(fromList(e.files).map(function(e){return toFileWithPath(e)}))]}})})}(e.dataTransfer,e.type)]:isObject(e)&&isObject(e.target)?[2,fromList(e.target.files).map(function(e){return toFileWithPath(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,d.mG)(this,void 0,void 0,function(){return(0,d.Jh)(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 toFileWithPath(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};x.defaultProps=E,x.propTypes={children:p().func,accept:p().objectOf(p().arrayOf(p().string)),multiple:p().bool,preventDropOnDocument:p().bool,noClick:p().bool,noKeyboard:p().bool,noDrag:p().bool,noDragEventsBubbling:p().bool,minSize:p().number,maxSize:p().number,maxFiles:p().number,disabled:p().bool,getFilesFromEvent:p().func,onFileDialogCancel:p().func,onFileDialogOpen:p().func,useFsAccessApi:p().bool,autoFocus:p().bool,onDragEnter:p().func,onDragLeave:p().func,onDragOver:p().func,onDrop:p().func,onDropAccepted:p().func,onDropRejected:p().func,onError:p().func,validator:p().func};var _={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function useDropzone(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=es_objectSpread(es_objectSpread({},E),e),r=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,p=t.onDragEnter,d=t.onDragLeave,u=t.onDragOver,h=t.onDrop,f=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,x=t.onFileDialogOpen,S=t.useFsAccessApi,O=t.autoFocus,w=t.preventDropOnDocument,N=t.noClick,D=t.noKeyboard,j=t.noDrag,P=t.noDragEventsBubbling,A=t.onError,T=t.validator,k=(0,n.useMemo)(function(){return function(e){if(isDefined(e))return Object.entries(e).reduce(function(e,t){var r=_slicedToArray(t,2),n=r[0],i=r[1];return[].concat(_toConsumableArray(e),[n],_toConsumableArray(i))},[]).filter(function(e){return isMIMEType(e)||isExt(e)}).join(",")}(r)},[r]),C=(0,n.useMemo)(function(){return isDefined(r)?[{description:"Files",accept:Object.entries(r).filter(function(e){var t=_slicedToArray(e,2),r=t[0],n=t[1],i=!0;return isMIMEType(r)||(console.warn('Skipped "'.concat(r,'" 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.')),i=!1),Array.isArray(n)&&n.every(isExt)||(console.warn('Skipped "'.concat(r,'" because an invali
1d file extension was provided.')),i=!1),i}).reduce(function(e,t){var r=_slicedToArray(t,2),n=r[0],i=r[1];return _objectSpread(_objectSpread({},e),{},_defineProperty({},n,i))},{})}]:r},[r]),I=(0,n.useMemo)(function(){return"function"==typeof x?x:noop},[x]),L=(0,n.useMemo)(function(){return"function"==typeof b?b:noop},[b]),M=(0,n.useRef)(null),F=(0,n.useRef)(null),R=es_slicedToArray((0,n.useReducer)(reducer,_),2),z=R[0],$=R[1],V=z.isFocused,q=z.isFileDialogActive,W=(0,n.useRef)("undefined"!=typeof window&&window.isSecureContext&&S&&"showOpenFilePicker"in window),onWindowFocus=function(){!W.current&&q&&setTimeout(function(){F.current&&!F.current.files.length&&($({type:"closeDialog"}),L())},300)};(0,n.useEffect)(function(){return window.addEventListener("focus",onWindowFocus,!1),function(){window.removeEventListener("focus",onWindowFocus,!1)}},[F,q,L,W]);var H=(0,n.useRef)([]),onDocumentDrop=function(e){M.current&&M.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,n.useEffect)(function(){return w&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",onDocumentDrop,!1)),function(){w&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",onDocumentDrop))}},[M,w]),(0,n.useEffect)(function(){return!i&&O&&M.current&&M.current.focus(),function(){}},[M,O,i]);var U=(0,n.useCallback)(function(e){A?A(e):console.error(e)},[A]),B=(0,n.useCallback)(function(e){var t;e.preventDefault(),e.persist(),stopPropagation(e),H.current=[].concat(function(e){if(Array.isArray(e))return es_arrayLikeToArray(e)}(t=H.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||es_unsupportedIterableToArray(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]),isEvtWithFiles(e)&&Promise.resolve(o(e)).then(function(t){if(!isPropagationStopped(e)||P){var r,n,i,o,d,u,h,f,m=t.length,g=m>0&&(n=(r={files:t,accept:k,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:T}).files,i=r.accept,o=r.minSize,d=r.maxSize,u=r.multiple,h=r.maxFiles,f=r.validator,(!!u||!(n.length>1))&&(!u||!(h>=1)||!(n.length>h))&&n.every(function(e){var t=_slicedToArray(fileAccepted(e,i),1)[0],r=_slicedToArray(fileMatchSize(e,o,d),1)[0],n=f?f(e):null;return t&&r&&!n}));$({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),p&&p(e)}}).catch(function(e){return U(e)})},[o,p,U,P,k,s,a,l,c,T]),X=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),stopPropagation(e);var t=isEvtWithFiles(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&u&&u(e),!1},[u,P]),Z=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),stopPropagation(e);var t=H.current.filter(function(e){return M.current&&M.current.contains(e)}),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),H.current=t,!(t.length>0)&&($({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),isEvtWithFiles(e)&&d&&d(e))},[M,d,P]),G=(0,n.useCallback)(function(e,t){var r=[],n=[];e.forEach(function(e){var t=es_slicedToArray(fileAccepted(e,k),2),i=t[0],o=t[1],l=es_slicedToArray(fileMatchSize(e,s,a),2),c=l[0],p=l[1],d=T?T(e):null;if(i&&c&&!d)r.push(e);else{var u=[o,p];d&&(u=u.concat(d)),n.push({file:e,errors:u.filter(function(e){return e})})}}),(!l&&r.length>1||l&&c>=1&&r.length>c)&&(r.forEach(function(e){n.push({file:e,errors:[m]})}),r.splice(0)),$({acceptedFiles:r,fileRejections:n,type:"setFiles"}),h&&h(r,n,t),n.length>0&&g&&g(n,t),r.length>0&&f&&f(r,t)},[$,l,k,s,a,c,h,f,g,T]),K=(0,n.useCallback)(function(e){e.preventDefault(),e.persist(),stopPropagation(e),H.current=[],isEvtWithFiles(e)&&Promise.resolve(o(e)).then(function(t){(!isPropagationStopped(e)||P)&&G(t,e)}).catch(function(e){return U(e)}),$({type:"reset"})},[o,G,U,P]),Y=(0,n.useCallback)(function(){if(W.current){$({type:"openDialog"}),I(),window.showOpenFilePicker({multiple:l,types:C}).then(function(e){return o(e)}).then(function(e){G(e,null),$({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(L(e),$({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(W.current=!1,F.current?(F.current.value=null,F.current.click()):U(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."))):U(e)});return}F.current&&($({type:"openDialog"}),I(),F.current.value=null,F.current.click())},[$,I,L,S,G,U,C,l]),J=(0,n.useCallback)(function(e){M.current&&M.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),Y())},[M,Y]),Q=(0,n.useCallback)(function(){$({type:"focus"})},[]),ee=(0,n.useCallback)(function(){$({type:"blur"})},[]),et=(0,n.useCallback)(function(){N||(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(Y,0):Y())},[N,Y]),composeHandler=function(e){return i?null:e},composeKeyboardHandler=function(e){return D?null:composeHandler(e)},composeDragHandler=function(e){return j?null:composeHandler(e)},stopPropagation=function(e){P&&e.stopPropagation()},er=(0,n.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,p=e.onDragOver,d=e.onDragLeave,u=e.onDrop,h=_objectWithoutProperties(e,y);return es_objectSpread(es_objectSpread(es_defineProperty({onKeyDown:composeKeyboardHandler(composeEventHandlers(o,J)),onFocus:composeKeyboardHandler(composeEventHandlers(a,Q)),onBlur:composeKeyboardHandler(composeEventHandlers(s,ee)),onClick:composeHandler(composeEventHandlers(l,et)),onDragEnter:composeDragHandler(composeEventHandlers(c,B)),onDragOver:composeDragHandler(composeEventHandlers(p,X)),onDragLeave:composeDragHandler(composeEventHandlers(d,Z)),onDrop:composeDragHandler(composeEventHandlers(u,K)),role:"string"==typeof n&&""!==n?n:"presentation"},r,M),i||D?{}:{tabIndex:0}),h)}},[M,J,Q,ee,et,B,X,Z,K,D,j,i]),en=(0,n.useCallback)(function(e){e.stopPropagation()},[]),ei=(0,n.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
1,t=e.refKey,r=void 0===t?"ref":t,n=e.onChange,i=e.onClick,o=_objectWithoutProperties(e,v);return es_objectSpread(es_objectSpread({},es_defineProperty({accept:k,multiple:l,type:"file",style:{display:"none"},onChange:composeHandler(composeEventHandlers(n,K)),onClick:composeHandler(composeEventHandlers(i,en)),tabIndex:-1},r,F)),o)}},[F,r,l,K,i]);return es_objectSpread(es_objectSpread({},z),{},{isFocused:V&&!i,getRootProps:er,getInputProps:ei,rootRef:M,inputRef:F,open:composeHandler(Y)})}function reducer(e,t){switch(t.type){case"focus":return es_objectSpread(es_objectSpread({},e),{},{isFocused:!0});case"blur":return es_objectSpread(es_objectSpread({},e),{},{isFocused:!1});case"openDialog":return es_objectSpread(es_objectSpread({},_),{},{isFileDialogActive:!0});case"closeDialog":return es_objectSpread(es_objectSpread({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return es_objectSpread(es_objectSpread({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return es_objectSpread(es_objectSpread({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return es_objectSpread({},_);default:return e}}function noop(){}var S=r(49737),O=r(83979),w=r(68216);let[N,D]=(0,w.R)("Dropzone component was not found in tree");function upperFirst(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)}var j=r(24241),P=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,__objRest=(e,t)=>{var r={};for(var n in e)A.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&P)for(var n of P(e))0>t.indexOf(n)&&T.call(e,n)&&(r[n]=e[n]);return r};function createDropzoneStatus(e){let Component=t=>{let r=(0,o.N4)(`Dropzone${upperFirst(e)}`,{},t),{children:i}=r,a=__objRest(r,["children"]),s=D(),l=(0,j.k)(i)?i:n.createElement("span",null,i);return s[e]?(0,n.cloneElement)(l,a):null};return Component.displayName=`@mantine/dropzone/${upperFirst(e)}`,Component}let k=createDropzoneStatus("accept"),C=createDropzoneStatus("reject"),I=createDropzoneStatus("idle");var L=r(56817),M=r(96768),F=r(14258),R=Object.defineProperty,z=Object.defineProperties,$=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&__defNormalProp(e,r,t[r]);if(V)for(var r of V(t))W.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>z(e,$(t)),H=(0,L.k)((e,{padding:t,radius:r})=>{let n=e.fn.variant({color:"red",variant:"light"}),i=e.fn.variant({color:e.primaryColor,variant:"light"});return{root:__spreadProps(__spreadValues(__spreadValues({},e.fn.fontStyles()),e.fn.focusStyles()),{boxSizing:"border-box",backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,border:`${(0,M.h)(2)} dashed ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]}`,padding:(0,F.a)({size:t,sizes:e.spacing}),borderRadius:e.fn.radius(r),cursor:"pointer",userSelect:"none",transition:"background-color 150ms ease",position:"relative","&:hover":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[0]},"&[data-loading]":{cursor:"default","&:hover":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white}},"&[data-accept]":{backgroundColor:"dark"===e.colorScheme?i.background:e.colors[e.primaryColor][0],borderColor:"dark"===e.colorScheme?i.border:e.colors[e.primaryColor][4],"&:hover":{backgroundColor:"dark"===e.colorScheme?i.background:e.colors[e.primaryColor][0]}},"&[data-reject]":{backgroundColor:"dark"===e.colorScheme?n.background:e.colors.red[0],borderColor:"dark"===e.colorScheme?n.border:e.colors.red[4],"&:hover":{backgroundColor:"dark"===e.colorScheme?n.background:e.colors.red[0]}}}),inner:{pointerEvents:"none",userSelect:"none"}}}),U=Object.defineProperty,B=Object.defineProperties,X=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Dropzone_defNormalProp=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dropzone_spreadValues=(e,t)=>{for(var r in t||(t={}))G.call(t,r)&&Dropzone_defNormalProp(e,r,t[r]);if(Z)for(var r of Z(t))K.call(t,r)&&Dropzone_defNormalProp(e,r,t[r]);return e},Dropzone_spreadProps=(e,t)=>B(e,X(t)),Dropzone_objRest=(e,t)=>
1{var r={};for(var n in e)G.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&Z)for(var n of Z(e))0>t.indexOf(n)&&K.call(e,n)&&(r[n]=e[n]);return r};let Y={padding:"md",loading:!1,multiple:!0,maxSize:1/0,autoFocus:!1,activateOnClick:!0,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,useFsAccessApi:!0};function _Dropzone(e){let t=(0,o.N4)("Dropzone",Y,e),{className:r,padding:i,radius:a,disabled:l,classNames:c,styles:p,loading:d,multiple:u,maxSize:h,accept:f,children:m,onDropAny:g,onDrop:b,onReject:y,openRef:v,name:x,unstyled:E,maxFiles:_,autoFocus:w,activateOnClick:D,activateOnDrag:j,dragEventsBubbling:P,activateOnKeyboard:A,onDragEnter:T,onDragLeave:k,onDragOver:C,onFileDialogCancel:I,onFileDialogOpen:L,preventDropOnDocument:M,useFsAccessApi:F,getFilesFromEvent:R,validator:z,variant:$}=t,V=Dropzone_objRest(t,["className","padding","radius","disabled","classNames","styles","loading","multiple","maxSize","accept","children","onDropAny","onDrop","onReject","openRef","name","unstyled","maxFiles","autoFocus","activateOnClick","activateOnDrag","dragEventsBubbling","activateOnKeyboard","onDragEnter","onDragLeave","onDragOver","onFileDialogCancel","onFileDialogOpen","preventDropOnDocument","useFsAccessApi","getFilesFromEvent","validator","variant"]),{classes:q,cx:W}=H({radius:a,padding:i},{name:"Dropzone",classNames:c,styles:p,unstyled:E,variant:$}),{getRootProps:U,getInputProps:B,isDragAccept:X,isDragReject:Z,open:G}=useDropzone(Dropzone_spreadValues({onDrop:g,onDropAccepted:b,onDropRejected:y,disabled:l||d,accept:Array.isArray(f)?f.reduce((e,t)=>Dropzone_spreadProps(Dropzone_spreadValues({},e),{[t]:[]}),{}):f,multiple:u,maxSize:h,maxFiles:_,autoFocus:w,noClick:!D,noDrag:!j,noDragEventsBubbling:!P,noKeyboard:!A,onDragEnter:T,onDragLeave:k,onDragOver:C,onFileDialogCancel:I,onFileDialogOpen:L,preventDropOnDocument:M,useFsAccessApi:F,validator:z},R?{getFilesFromEvent:R}:null));(0,O.k)(v,G);let K=!X&&!Z;return n.createElement(N,{value:{accept:X,reject:Z,idle:K}},n.createElement(s.x,Dropzone_spreadProps(Dropzone_spreadValues(Dropzone_spreadValues({},V),U()),{"data-accept":X||void 0,"data-reject":Z||void 0,"data-idle":K||void 0,"data-loading":d||void 0,className:W(q.root,r)}),n.createElement(S.f,{visible:d,radius:a,unstyled:E}),n.createElement("input",Dropzone_spreadProps(Dropzone_spreadValues({},B()),{name:x})),n.createElement("div",{className:q.inner},m)))}_Dropzone.displayName="@mantine/dropzone/Dropzone",_Dropzone.Accept=k,_Dropzone.Reject=C,_Dropzone.Idle=I;var J=Object.defineProperty,Q=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,DropzoneFullScreen_styles_defNormalProp=(e,t,r)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DropzoneFullScreen_styles_spreadValues=(e,t)=>{for(var r in t||(t={}))er.call(t,r)&&DropzoneFullScreen_styles_defNormalProp(e,r,t[r]);if(et)for(var r of et(t))en.call(t,r)&&DropzoneFullScreen_styles_defNormalProp(e,r,t[r]);return e},DropzoneFullScreen_styles_spreadProps=(e,t)=>Q(e,ee(t)),ei=(0,L.k)(e=>({wrapper:DropzoneFullScreen_styles_spreadProps(DropzoneFullScreen_styles_spreadValues({},e.fn.cover(0)),{position:"fixed",backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,display:"flex",padding:e.spacing.xs,transition:"opacity 100ms ease"}),dropzone:{flex:1}})),eo=Object.defineProperty,ea=Object.defineProperties,es=Object.getOwnPropertyDescriptors,el=Object.getOwnPropertySymbols,ec=Object.prototype.hasOwnProperty,ep=Object.prototype.propertyIsEnumerable,DropzoneFullScreen_defNormalProp=(e,t,r)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DropzoneFullScreen_spreadValues=(e,t)=>{for(var r in t||(t={}))ec.call(t,r)&&DropzoneFullScreen_defNormalProp(e,r,t[r]);if(el)for(var r of el(t))ep.call(t,r)&&DropzoneFullScreen_defNormalProp(e,r,t[r]);return e},DropzoneFullScreen_spreadProps=(e,t)=>ea(e,es(t)),DropzoneFullScreen_objRest=(e,t)=>{var r={};for(var n in e)ec.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&el)for(var n of el(e))0>t.indexOf(n)&&ep.call(e,n)&&(r[n]=e[n]);return r};let ed={padding:"md",loading:!1,multiple:!0,maxSize:1/0,autoFocus:!1,activateOnClick:!0,activateOnDrag:!0,dragEventsBubbling:!0,activateOnKeyboard:!0,active:!0,zIndex:(0,i.w)("max"),withinPortal:!0};function DropzoneFullScreen(e){let t=(0,o.N4)("DropzoneFullScreen",ed,e),{classNames:r,styles:i,sx:c,className:p,style:d,unstyled:u,active:h,onDrop:f,onReject:m,zIndex:g,withinPortal:b,portalProps:y}=t,v=DropzoneFullScreen_objRest(t,["classNames","styles","sx","className","style","unstyled","active","onDrop","onReject","zIndex","withinPortal","portalProps"]),[x,E]=n.useState(0),[_,{open:S,close:O}]=(0,l.q)(!1),{classes:w,cx:N}=ei(null,{name:"DropzoneFullScreen",classNames:r,styles:i,unstyled:u}),handleDragEnter=e=>{e.dataTransfer.types.includes("Files")&&(E(e=>e+1),S())},handleDragLeave=()=>{E(e=>e-1)};return(0,n.useEffect)(()=>{0===x&&O()},[x]),(0,n.useEffect)(()=>
1{if(h)return document.addEventListener("dragenter",handleDragEnter,!1),document.addEventListener("dragleave",handleDragLeave,!1),()=>{document.removeEventListener("dragenter",handleDragEnter,!1),document.removeEventListener("dragleave",handleDragLeave,!1)}},[h]),n.createElement(a.q,DropzoneFullScreen_spreadProps(DropzoneFullScreen_spreadValues({},y),{withinPortal:b}),n.createElement(s.x,{className:N(w.wrapper,p),sx:c,style:DropzoneFullScreen_spreadProps(DropzoneFullScreen_spreadValues({},d),{opacity:_?1:0,pointerEvents:_?"all":"none",zIndex:g})},n.createElement(_Dropzone,DropzoneFullScreen_spreadProps(DropzoneFullScreen_spreadValues({},v),{classNames:r,styles:i,unstyled:u,className:w.dropzone,onDrop:e=>{null==f||f(e),O()},onReject:e=>{null==m||m(e),O()}}))))}DropzoneFullScreen.displayName="@mantine/dropzone/DropzoneFullScreen",_Dropzone.FullScreen=DropzoneFullScreen;let eu=_Dropzone},3600:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]])},50954:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("cloud-lock","IconCloudLock",[["path",{d:"M19 18a3.5 3.5 0 0 0 0 -7h-1c.397 -1.768 -.285 -3.593 -1.788 -4.787c-1.503 -1.193 -3.6 -1.575 -5.5 -1s-3.315 2.019 -3.712 3.787c-2.199 -.088 -4.155 1.326 -4.666 3.373c-.512 2.047 .564 4.154 2.566 5.027",key:"svg-0"}],["path",{d:"M8 15m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M10 15v-2a2 2 0 1 1 4 0v2",key:"svg-2"}]])},83323:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("database-edit","IconDatabaseEdit",[["path",{d:"M4 6c0 1.657 3.582 3 8 3s8 -1.343 8 -3s-3.582 -3 -8 -3s-8 1.343 -8 3",key:"svg-0"}],["path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.478 0 .947 -.016 1.402 -.046",key:"svg-1"}],["path",{d:"M20 12v-6",key:"svg-2"}],["path",{d:"M4 12v6c0 1.526 3.04 2.786 6.972 2.975",key:"svg-3"}],["path",{d:"M18.42 15.61a2.1 2.1 0 0 1 2.97 2.97l-3.39 3.42h-3v-3l3.42 -3.39z",key:"svg-4"}]])},21942:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("edit","IconEdit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]])},57080:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("file-text","IconFileText",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M9 9l1 0",key:"svg-2"}],["path",{d:"M9 13l6 0",key:"svg-3"}],["path",{d:"M9 17l6 0",key:"svg-4"}]])},1177:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]])},74075:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]])},30904:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},44760:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("user-share","IconUserShare",[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h3",key:"svg-1"}],["path",{d:"M16 22l5 -5",key:"svg-2"}],["path",{d:"M21 21.5v-4.5h-4.5",key:"svg-3"}]])},97283:function(e,t,r){r.d(t,{Z:function(){return n}});var n=(0,r(30853).Z)("x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},58363:function(e,t){t.Z=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(",");if(0===r.length)return!0;var n=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},45890:function(e,t,r){let n;r.d(t,{Z:function(){return XMLParser}});let i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
1037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=RegExp("^"+("["+i+"][")+i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function getAllMatches(e,t){let r=[],n=t.exec(e);for(;n;){let i=[];i.startIndex=t.lastIndex-n[0].length;let o=n.length;for(let e=0;e<o;e++)i.push(n[e]);r.push(i),n=t.exec(e)}return r}let isName=function(e){let t=o.exec(e);return null!=t},a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],s=["__proto__","constructor","prototype"],defaultOnDangerousProperty=e=>a.includes(e)?"__"+e:e,l={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0,unicode:!1},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:defaultOnDangerousProperty},buildOptions=function(e){let t=Object.assign({},l,e),r=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(let{value:e,name:t}of r)e&&function(e,t){if("string"!=typeof e)return;let r=e.toLowerCase();if(a.some(e=>r===e.toLowerCase())||s.some(e=>r===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=defaultOnDangerousProperty),t.processEntities=function normalizeProcessEntities(e,t){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??"all"}:normalizeProcessEntities(!0)}(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),t};n="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");let XmlNode=class XmlNode{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][n]={startIndex:t})}static getMetaDataSymbol(){return n}};let c=":A-Za-z_\xc0-\xd6\xd8-\xf6\xf8-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�",p=c+"\\-\\.\\d\xb7̀-ͯ‿-⁀",d=":A-Za-z_\xc0-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF",u=d+"\\-\\.\\d\xb7̀-ͯ҇‿-⁀",buildRegexes=(e,t,r="")=>{let n=e.replace(":",""),i=t.replace(":",""),o=`[${n}][${i}]*`;return{name:RegExp(`^[${e}][${t}]*$`,r),ncName:RegExp(`^${o}$`,r),qName:RegExp(`^${o}(?::${o})?$`,r),nmToken:RegExp(`^[${t}]+$`,r),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,r)}},h=buildRegexes(c,p),f=buildRegexes(d,u,"u"),m=":A-Za-z_",g=m+"\\-\\.\\d",b=buildRegexes(m,g),getRegexes=(e="1.0",t=!1)=>t?b:"1.1"===e?f:h,qName=(e,{xmlVersion:t="1.0",asciiOnly:r=!1}={})=>getRegexes(t,r).qName.test(e);let DocTypeReader=class DocTypeReader{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let r=Object.create(null),n=0;if("O"===e[t+3]&&"C"===e[t+4]&&"T"===e[t+5]&&"Y"===e[t+6]&&"P"===e[t+7]&&"E"===e[t+8]){t+=9;let i=1,o=!1,a=!1;for(;t<e.length;t++)if("<"!==e[t]||a){if(">"===e[t]){if(a?"-"===e[t-1]&&"-"===e[t-2]&&(a=!1,i--):i--,0===i)break}else"["===e[t]?o=!0:e[t]}else{if(o&&hasSeq(e,"!ENTITY",t)){let i,o;if(t+=7,[i,o,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===o.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&n>=this.options.maxEntityCount)throw Error(`Entity count (${n+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);r[i]=o,n++}}else if(o&&hasSeq(e,"!ELEMENT",t)){t+=8;let{index:r}=this.readElementExp(e,t+1);t=r}else if(o&&hasSeq(e,"!ATTLIST",t))t+=8;else if(o&&hasSeq(e,"!NOTATION",t)){t+=9;let{index:r}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=r}else if(hasSeq(e,"!--",t))a=!0;else throw Error("Invalid DOCTYPE");i++}if(0!==i)throw Error("Unclosed DOCTYPE")}else throw Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:t}}
1readEntityExp(e,t){t=skipWhitespace(e,t);let r=t;for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let n=e.substring(r,t);if(validateEntityName(n,{xmlVersion:this.xmlVersion}),t=skipWhitespace(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw Error("External entities are not supported");if("%"===e[t])throw Error("Parameter entities are not supported")}let i="";if([t,i]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&i.length>this.options.maxEntitySize)throw Error(`Entity "${n}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[n,i,--t]}readNotationExp(e,t){t=skipWhitespace(e,t);let r=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let n=e.substring(r,t);this.suppressValidationErr||validateEntityName(n,{xmlVersion:this.xmlVersion}),t=skipWhitespace(e,t);let i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==i&&"PUBLIC"!==i)throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=skipWhitespace(e,t);let o=null,a=null;if("PUBLIC"===i)[t,o]=this.readIdentifierVal(e,t,"publicIdentifier"),t=skipWhitespace(e,t),('"'===e[t]||"'"===e[t])&&([t,a]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===i&&([t,a]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!a))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:o,systemIdentifier:a,index:--t}}readIdentifierVal(e,t,r){let n="",i=e[t];if('"'!==i&&"'"!==i)throw Error(`Expected quoted string, found "${i}"`);t++;let o=t;for(;t<e.length&&e[t]!==i;)t++;if(n=e.substring(o,t),e[t]!==i)throw Error(`Unterminated ${r} value`);return[++t,n]}readElementExp(e,t){t=skipWhitespace(e,t);let r=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let n=e.substring(r,t);if(!this.suppressValidationErr&&!qName(n,{xmlVersion:this.xmlVersion}))throw Error(`Invalid element name: "${n}"`);t=skipWhitespace(e,t);let i="";if("E"===e[t]&&hasSeq(e,"MPTY",t))t+=4;else if("A"===e[t]&&hasSeq(e,"NY",t))t+=2;else if("("===e[t]){t++;let r=t;for(;t<e.length&&")"!==e[t];)t++;if(i=e.substring(r,t),")"!==e[t])throw Error("Unterminated content model")}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:n,contentModel:i.trim(),index:t}}readAttlistExp(e,t){let r=t=skipWhitespace(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let n=e.substring(r,t);for(validateEntityName(n,{xmlVersion:this.xmlVersion}),r=t=skipWhitespace(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(r,t);if(!validateEntityName(i,{xmlVersion:this.xmlVersion}))throw Error(`Invalid attribute name: "${i}"`);t=skipWhitespace(e,t);let o="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(o="NOTATION",t+=8,t=skipWhitespace(e,t),"("!==e[t])throw Error(`Expected '(', found "${e[t]}"`);t++;let r=[];for(;t<e.length&&")"!==e[t];){let n=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let i=e.substring(n,t);if(!validateEntityName(i=i.trim(),{xmlVersion:this.xmlVersion}))throw Error(`Invalid notation name: "${i}"`);r.push(i),"|"===e[t]&&(t=skipWhitespace(e,++t))}if(")"!==e[t])throw Error("Unterminated list of notations");t++,o+=" ("+r.join("|")+")"}else{let r=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;if(o+=e.substring(r,t),!this.suppressValidationErr&&!["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"].includes(o.toUpperCase()))throw Error(`Invalid attribute type: "${o}"`)}t=skipWhitespace(e,t);let a="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(a="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(a="#IMPLIED",t+=7):[t,a]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:n,attributeName:i,attributeType:o,defaultValue:a,index:t}}};let skipWhitespace=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function hasSeq(e,t,r){for(let n=0;n<t.length;n++)if(t[n]!==e[r+n+1])return!1;return!0}function validateEntityName(e,t){if(qName(e,{xmlVersion:t}))return e;throw Error(`Invalid entity name ${e}`)}let y=new Map,v=new Uint8Array(63904).fill(255);for(let e of[48,1632,1776,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,65296,120782,120792,120802,120812,120822,66720,68912,69734,69872,69942,70096,70384,70736,70864,71248,71360,71472,71904,72016,72688,72784,73040,73120,73552,92768,92864,93008,123200,123632,124144,125264,130032])for(let t=0;t<10;t++){let r=e+t;r<=65535?v[r-1632]=t:y.set(r,t)}let x=new Set([8722,65293,65123]);var anynum_anynum=function(e){if("string"!=typeof e)return e;let t=e.length;if(0===t)return e;let r=-1;for(let n=0;n<t;n++){let i=e.charCodeAt(n);if((!(i>=48)||!(i<=57))&&45!==i){if(i<1632){if(x.has(i)){r=n;break}continue}if(i>=55296&&i<=56319){if(n+1<t){let t=e.charCodeAt(n+1);if(t>=56320&&t<=57343){let e=65536+(i-55296<<10)+(t-56320);if(y.has(e)){r=n;break}}}continue}if(255!==v[i-1632]||x.has(i)){r=n;break}}}if(-1===r)return e;let n=[];r>0&&n.push(e.slice(0,r));for(let i=r;i<t;i++){let r=e.charCodeAt(i);if(r>=48&&r<=57||45===r){n.push(e[i]);continue}if(r<1632){n.push(x.has(r)?"-":e[i]);continue}if(r>=55296&&r<=56319){if(i+1<t){let t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){let e=65536+(r-55296<<10)+(t-56320),o=y.get(e);if(void 0!==o){n.push(String.fromCharCode(o+48)),i++;continue}}}n.push(e[i]);continue}if(x.has(r)){n.push("-");continue}let o=v[r-1632];n.push(255!==o?String.fromCharCode(o+48):e[i])}return n.join("")};let E=/^[-+]?0x[a-fA-F0-9]+$/,_=/^0b[01]+$/,S=/^0o[0-7]+$/,O=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,w={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original",unicode:!1},N=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function parse_int(e,t){let r=e.trim();if((2===t||8===t)&&(e=r.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}let MatcherView=class MatcherView{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(0!==t.length)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(0===t.length)return!1;let r=t[t.length-1];return void 0!==r.values&&e in r.values}getAnyParentAttr(e){return this._matcher.getAnyParentAttr(e)}hasAnyParentAttr(e){return this._matcher.hasAnyParentAttr(e)}getPosition(){let e=this._matcher.path;return 0===e.length?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return 0===e.length?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}};let Matcher=class Matcher{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new MatcherView(this),this._keptAttrs=[]}push(e,t=null,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length,o=this.siblingStacks[i];o||(o={counts:new Map,total:0},this.siblingStacks[i]=o);let a=r?`${r}:${e}`:e,s=o.counts.get(a)||0,l=o.total;o.counts.set(a,s+1),o.total++;let c={tag:e,position:l,counter:s};null!=r&&(c.namespace=r),null!=t&&(c.values=t),this.path.push(c);let p=this.path.length,d=null!==n?n.keep:null;if(null!=d&&d.length>0&&t)for(let e=0;e<d.length;e++){let r=d[e];void 0!==t[r]&&this._keptAttrs.push({depth:p,name:r,value:t[r]})}}pop(){if(0===this.path.length)return;this._pathStringCache=null;let e=this.path.pop();this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1);let t=this.path.length+1;for(;this._keptAttrs.length>0&&this._keptAttrs[this._keptAttrs.length-1].depth>=t;)this._keptAttrs.pop();return e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0!==this.path.length)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(0===this.path.length)return!1;let t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getAnyParentAttr(e){let t=this._keptAttrs;for(let r=t.length-1;r>=0;r--)if(t[r].name===e)return t[r].value}hasAnyParentAttr(e){let t=this._keptAttrs;for(let r=t.length-1;r>=0;r--)if(t[r].name===e)return!0;return!1}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let r=e||this.separator,n=r===this.separator&&!0===t;if(n){if(null!==this._pathStringCache)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(r);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(r)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[],this._keptAttrs=[]}matches(e){let t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,r=e.length-1;for(;r>=0&&t>=0;){let n=e[r];if("deep-wildcard"===n.type){if(--r<0)return!0;let n=e[r],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(n,this.path[e],e===this.path.length-1)){t=e-1,r--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(n,this.path[t],t===this.path.length-1))return!1;t--,r--}}return r<0}_matchSegment(e,t,r){if("*"!==e.tag&&e.tag!==t.tag||void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace||void 0!==e.attrName&&(!r||!t.values||!(e.attrName in t.values)||void 0!==e.attrValue&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(void 0!==e.position){if(!r)return!1;let n=t.counter??0;if("first"===e.position&&0!==n||"odd"===e.position&&n%2!=1)return!1;if("even"===e.position&&n%2!=0)return!1;if("nth"===e.position&&n!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}
1snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>e?{counts:new Map(e.counts),total:e.total}:e),keptAttrs:this._keptAttrs.map(e=>({...e}))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>e?{counts:new Map(e.counts),total:e.total}:e),this._keptAttrs=(e.keptAttrs||[]).map(e=>({...e}))}readOnly(){return this._view}};let Expression=class Expression{constructor(e,t={},r){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this.data=r,this._hasDeepWildcard=this.segments.some(e=>"deep-wildcard"===e.type),this._hasAttributeCondition=this.segments.some(e=>void 0!==e.attrName),this._hasPositionSelector=this.segments.some(e=>void 0!==e.position)}_parse(e){let t=[],r=0,n="";for(;r<e.length;)e[r]===this.separator?r+1<e.length&&e[r+1]===this.separator?(n.trim()&&(t.push(this._parseSegment(n.trim())),n=""),t.push({type:"deep-wildcard"}),r+=2):(n.trim()&&t.push(this._parseSegment(n.trim())),n="",r++):(n+=e[r],r++);return n.trim()&&t.push(this._parseSegment(n.trim())),t}_parseSegment(e){let t,r;let n={type:"tag"},i=null,o=e,a=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(a&&(o=a[1]+a[3],a[2])){let e=a[2].slice(1,-1);e&&(i=e)}let s=o;if(o.includes("::")){let r=o.indexOf("::");if(t=o.substring(0,r).trim(),s=o.substring(r+2).trim(),!t)throw Error(`Invalid namespace in pattern: ${e}`)}let l=null;if(s.includes(":")){let e=s.lastIndexOf(":"),t=s.substring(0,e).trim(),n=s.substring(e+1).trim(),i=["first","last","odd","even"].includes(n)||/^nth\(\d+\)$/.test(n);i?(r=t,l=n):r=s}else r=s;if(!r)throw Error(`Invalid segment pattern: ${e}`);if(n.tag=r,t&&(n.namespace=t),i){if(i.includes("=")){let e=i.indexOf("=");n.attrName=i.substring(0,e).trim(),n.attrValue=i.substring(e+1).trim()}else n.attrName=i.trim()}if(l){let e=l.match(/^nth\((\d+)\)$/);e?(n.position="nth",n.positionValue=parseInt(e[1],10)):n.position=l}return n}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}};let ExpressionSet=class ExpressionSet{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._deepByTerminalTag=new Map,this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard()){let t=e.segments[e.segments.length-1];if(t&&"deep-wildcard"!==t.type&&"*"!==t.tag){let r=t.tag;this._deepByTerminalTag.has(r)||this._deepByTerminalTag.set(r,[]),this._deepByTerminalTag.get(r).push(e)}else this._deepWildcards.push(e);return this}let t=e.length,r=e.segments[e.segments.length-1],n=r?.tag;if(n&&"*"!==n){let r=`${t}:${n}`;this._byDepthAndTag.has(r)||this._byDepthAndTag.set(r,[]),this._byDepthAndTag.get(r).push(e)}else this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);return this}addAll(e){for(let t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return null!==this.findMatch(e)}findMatch(e){let t=e.getDepth(),r=e.getCurrentTag(),n=`${t}:${r}`,i=this._byDepthAndTag.get(n);if(i){for(let t=0;t<i.length;t++)if(e.matches(i[t]))return i[t]}let o=this._wildcardByDepth.get(t);if(o){for(let t=0;t<o.length;t++)if(e.matches(o[t]))return o[t]}let a=this._deepByTerminalTag.get(r);if(a){for(let t=0;t<a.length;t++)if(e.matches(a[t]))return a[t]}for(let t=0;t<this._deepWildcards.length;t++)if(e.matches(this._deepWildcards[t]))return this._deepWildcards[t];return null}};let D={cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",euro:"€",dollar:"$",fnof:"ƒ",inr:"₹",af:"؋",birr:"ብር",peso:"₱",rub:"₽",won:"₩",yuan:"\xa5",cedil:"\xb8"},j={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},P={nbsp:"\xa0",copy:"\xa9",reg:"\xae",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"\xab",raquo:"\xbb",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"\xb6",sect:"\xa7",deg:"\xb0",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe"},A=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),T=new Set("!?\\\\/[]$%{}^&*()<>|+");function EntityDecoder_validateEntityName(e){if("#"===e[0])throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(T.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function mergeEntityMaps(...e){let t=Object.create(null);for(let r of e)if(r)for(let e of Object.keys(r)){let n=r[e];if("string"==typeof n)t[e]=n;else if(n&&"object"==typeof n&&void 0!==n.val){let r=n.val;"string"==typeof r&&(t[e]=r)}}return t}let k="external",C="base",I=Object.freeze({allow:0,leave:1,remove:2,throw:3}),L=new Set([9,10,13]);let EntityDecoder=class EntityDecoder{constructor(e={}){var t;this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck="function"==typeof e.postCheck?e.postCheck:e=>e,this._limitTiers=(t=this._limit.applyLimitsTo??k)&&t!==k?"all"===t?new Set(["all"]):t===C?new Set([C]):Array.isArray(t)?new Set(t):new Set([k]):new Set([k]),this._numericAllowed=e.numericAllowed??!0,this._baseMap=mergeEntityMaps(j,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let r=function(e){if(!e)return{xmlVersion:1,onLevel:I.allow,nullLevel:I.remove};let t=1.1===e.xmlVersion?1.1:1,r=I[e.onNCR]??I.allow,n=I[e.nullNCR]??I.remove,i=Math.max(n,I.remove);return{xmlVersion:t,onLevel:r,nullLevel:i}}(e.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel,this._onExternalEntity="function"==typeof e.onExternalEntity?e.onExternalEntity:null,this._onInputEntity="function"==typeof e.onInputEntity?e.onInputEntity:null}_applyRegistrationHook(e,t,r,n){if(!e)return!0;let i=e(t,r);
1if(i===A.BLOCK)return!1;if(i===A.THROW)throw Error(`[EntityDecoder] Registration of ${n} entity "&${t};" was rejected by hook`);return!0}setExternalEntities(e){if(e)for(let t of Object.keys(e))EntityDecoder_validateEntityName(t);if(!this._onExternalEntity){this._externalMap=mergeEntityMaps(e);return}let t=mergeEntityMaps(e),r=Object.create(null);for(let[e,n]of Object.entries(t))this._applyRegistrationHook(this._onExternalEntity,e,n,"external")&&(r[e]=n);this._externalMap=r}addExternalEntity(e,t){EntityDecoder_validateEntityName(e),"string"==typeof t&&-1===t.indexOf("&")&&this._applyRegistrationHook(this._onExternalEntity,e,t,"external")&&(this._externalMap[e]=t)}addInputEntities(e){if(this._totalExpansions=0,this._expandedLength=0,!this._onInputEntity){this._inputMap=mergeEntityMaps(e);return}let t=mergeEntityMaps(e),r=Object.create(null);for(let[e,n]of Object.entries(t))this._applyRegistrationHook(this._onInputEntity,e,n,"input")&&(r[e]=n);this._inputMap=r}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=1.1===e?1.1:1}decode(e){if("string"!=typeof e||0===e.length||-1===e.indexOf("&"))return e;let t=[],r=e.length,n=0,i=0,o=this._maxTotalExpansions>0,a=this._maxExpandedLength>0,s=o||a;for(;i<r;){let l,c;if(38!==e.charCodeAt(i)){i++;continue}let p=i+1;for(;p<r&&59!==e.charCodeAt(p)&&p-i<=32;)p++;if(p>=r||59!==e.charCodeAt(p)){i++;continue}let d=e.slice(i+1,p);if(0===d.length){i++;continue}if(this._removeSet.has(d))l="",void 0===c&&(c=k);else if(this._leaveSet.has(d)){i++;continue}else if(35===d.charCodeAt(0)){let e=this._resolveNCR(d);if(void 0===e){i++;continue}l=e,c=C}else{let e=this._resolveName(d);l=e?.value,c=e?.tier}if(void 0===l){i++;continue}if(i>n&&t.push(e.slice(n,i)),t.push(l),i=n=p+1,s&&this._tierCounts(c)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(a){let e=l.length-(d.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}n<r&&t.push(e.slice(n));let l=0===t.length?e:t.join("");return this._postCheck(l,e)}_tierCounts(e){return!!this._limitTiers.has("all")||this._limitTiers.has(e)}_resolveName(e){return e in this._inputMap?{value:this._inputMap[e],tier:k}:e in this._externalMap?{value:this._externalMap[e],tier:k}:e in this._baseMap?{value:this._baseMap[e],tier:C}:void 0}_classifyNCR(e){return 0===e?this._ncrNullLevel:e>=55296&&e<=57343||1===this._ncrXmlVersion&&e>=1&&e<=31&&!L.has(e)?I.remove:-1}_applyNCRAction(e,t,r){switch(e){case I.allow:return String.fromCodePoint(r);case I.remove:return"";case I.leave:return;case I.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${r.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(r)}}_resolveNCR(e){let t;let r=e.charCodeAt(1);if(Number.isNaN(t=120===r||88===r?parseInt(e.slice(2),16):parseInt(e.slice(1),10))||t<0||t>1114111)return;let n=this._classifyNCR(t);if(!this._numericAllowed&&n<I.remove)return;let i=-1===n?this._ncrOnLevel:Math.max(this._ncrOnLevel,n);return this._applyNCRAction(i,e,t)}};var M=[{id:"sql-block-comment-open",description:"SQL block comment open: /* ... */ — unusual in legitimate user text",pattern:/\/\*/},{id:"sql-union-select",description:"UNION SELECT — most common SQL injection aggregation attack",pattern:/\bUNION\s{1,20}(?:ALL\s{1,20})?SELECT\b/i},{id:"sql-drop-table",description:"DROP TABLE — destructive DDL injection",pattern:/\bDROP\s{1,20}TABLE\b/i},{id:"sql-drop-database",description:"DROP DATABASE — destructive DDL injection",pattern:/\bDROP\s{1,20}DATABASE\b/i},{id:"sql-insert-into",description:"INSERT INTO — data injection",pattern:/\bINSERT\s{1,20}INTO\b/i},{id:"sql-delete-from",description:"DELETE FROM — data deletion injection",pattern:/\bDELETE\s{1,20}FROM\b/i},{id:"sql-update-set",description:"UPDATE ... SET — data modification injection",pattern:/\bUPDATE\b[\s\S]{1,60}\bSET\b/i},{id:"sql-exec-xp",description:"EXEC xp_ — MSSQL extended stored procedure execution",pattern:/\bEXEC(?:UTE)?\s{1,20}xp_/i},{id:"sql-tautology-string",description:'Classic string tautology: \' OR \'1\'=\'1 or " OR "1"="1"',pattern:/'\s{0,10}OR\s{0,10}'[^']{0,20}'\s*=\s*'[^']{0,20}/i},{id:"sql-tautology-numeric",description:"Numeric tautology: OR 1=1",pattern:/\bOR\s{1,10}1\s*=\s*1\b/i},{id:"sql-always-true-zero",description:"Numeric tautology: OR 0=0",pattern:/\bOR\s{1,10}0\s*=\s*0\b/i},{id:"sql-sleep-benchmark",description:"Time-based blind injection: SLEEP() or BENCHMARK()",pattern:/\b(?:SLEEP|BENCHMARK)\s*\(/i},{id:"sql-waitfor-delay",description:"MSSQL time-based blind injection: WAITFOR DELAY",pattern:/\bWAITFOR\s{1,20}DELAY\b/i},{id:"sql-char-function",description:"CHAR() function — used to obfuscate injected strings",pattern:/\bCHAR\s*\(\s*\d{1,3}/i},{id:"sql-information-schema",description:"INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",pattern:/\bINFORMATION_SCHEMA\b/i}];let F=[...M,{id:"sql-line-comment",description:"SQL line comment: -- followed by whitespace or end of string",pattern:/--(?:\s|$)/},{id:"sql-stacked-query",description:"Stacked queries: semicolon immediately followed by a SQL keyword",pattern:/;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i},{id:"sql-hex-encoding",description:"Hex-encoded string injection: 0x41414141 style (MySQL)",pattern:/\b0x[0-9a-f]{4,}/i}];var R=[{id:"html-script-open",description:"<script opening tag",pattern:/<script[\s>/]/i},{id:"html-script-close",description:"</script closing tag",pattern:/<\/script[\s>]/i},{id:"html-javascript-protocol",description:"javascript: URI scheme (with optional whitespace/encoding)",pattern:/j[\t\n\r ]*a[\t\n\r ]*v[\t\n\r ]*a[\t\n\r ]*s[\t\n\r ]*c[\t\n\r ]*r[\t\n\r ]*i[\t\n\r ]*p[\t\n\r ]*t[\t\n\r ]*:/i},{id:"html-vbscript-protocol",description:"vbscript: URI scheme",pattern:/vbscript[\t\n\r ]*:/i},{id:"html-data-html",description:"data:text/html URI — can execute scripts in browsers",pattern:/data[\t\n\r ]*:[\t\n\r ]*text\/html/i},{id:"html-data-xhtml",description:"data:application/xhtml+xml URI",pattern:/data[\t\n\r ]*:[\t\n\r ]*application\/xhtml/i},{id:"html-data-svg",description:"data:image/svg+xml URI — can execute scripts",pattern:/data[\t\n\r ]*:[\t\n\r ]*image\/svg\+xml/i},{id:"html-inline-event-handler",description:"Inline event handler attributes: onclick=, onerror=, onload=, etc.",pattern:/\bon\w{1,30}\s*=/i},{id:"html-entity-obfuscated-script",description:"HTML-entity-encoded <script (e.g. &#x3C;script or &lt;script)",pattern:/(?:&#x0*3[Cc];?|&#0*60;?|&lt;
1)\s*script/i},{id:"html-entity-obfuscated-javascript",description:'HTML-entity-encoded javascript: (partial — catches common &#106; or &#x6a; for "j")',pattern:/(?:&#x0*6[Aa];?|&#0*106;?)\s*(?:&#x0*61;?|a)[\s\S]{0,80}script\s*:/i},{id:"html-style-expression",description:"CSS expression() — IE-era code execution in style attributes",pattern:/style[\s\S]{0,20}expression\s*\(/i},{id:"html-object-embed",description:"<object or <embed tags that can load active content",pattern:/<(?:object|embed)[\s>/]/i},{id:"html-base-tag",description:"<base href= — can hijack all relative URLs on a page",pattern:/<base[\s>]/i},{id:"html-meta-refresh",description:'<meta http-equiv="refresh" — can redirect users',pattern:/<meta[\s\S]{0,40}http-equiv[\s\S]{0,20}refresh/i},{id:"html-srcdoc",description:"srcdoc= attribute on iframes — embeds HTML that can run scripts",pattern:/srcdoc\s*=/i},{id:"html-iframe",description:"<iframe tag",pattern:/<iframe[\s>/]/i},{id:"html-form",description:"<form tag — can be used for phishing / credential harvesting injection",pattern:/<form[\s>/]/i}],z=[{id:"xml-cdata-injection",description:"CDATA section injection: <![CDATA[ breaks out of text node context",pattern:/<!\[CDATA\[/i},{id:"xml-cdata-close",description:"CDATA close sequence: ]]> can terminate an enclosing CDATA section",pattern:/\]\]>/},{id:"xml-processing-instruction",description:"XML processing instruction: <?xml-stylesheet or <?php etc.",pattern:/<\?(?:xml[\- ]|php|asp)/i},{id:"xml-doctype-injection",description:"DOCTYPE declaration embedded in content — can define entities",pattern:/<!DOCTYPE(?:[\s[]|$)/i},{id:"xml-entity-system",description:"SYSTEM keyword — used in external entity declarations (XXE)",pattern:/\bSYSTEM\s+["']/i},{id:"xml-entity-public",description:"PUBLIC keyword — used in external entity declarations (XXE)",pattern:/\bPUBLIC\s+["']/i},{id:"xml-entity-declaration",description:"<!ENTITY declaration — defines entities, potential XXE or entity expansion",pattern:/<!ENTITY[\s%]/i},{id:"xml-billion-laughs",description:"Entity reference chaining / billion laughs: repeated &eX; style references",pattern:/(?:&\w{1,20};){3,}/},{id:"xml-namespace-confusion",description:"xmlns: attribute injection — can redefine namespaces to confuse parsers",pattern:/\bxmlns\s*(?::\w{1,40})?\s*=/i},{id:"xml-comment-injection",description:"<!-- comment injection — can hide content from some parsers",pattern:/<!--/},{id:"xml-comment-close",description:"--> closes an enclosing XML comment",pattern:/-->/},{id:"xml-pi-close",description:"?> closes an enclosing processing instruction",pattern:/\?>/}],$
vendor: 2,121 bytes, line 1
1=[{id:"svg-script-element",description:"<script element inside SVG executes JavaScript",pattern:/<script[\s>/]/i},{id:"svg-xlink-href-javascript",description:"xlink:href with javascript: — classic SVG XSS via <a> or <use>",pattern:/xlink\s*:\s*href\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-href-javascript",description:"href= with javascript: in SVG context (<a>, <animate>, etc.)",pattern:/href\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-foreignobject",description:"<foreignObject embeds HTML inside SVG — can execute scripts",pattern:/<foreignObject[\s>/]/i},{id:"svg-use-external",description:"<use xlink:href or href pointing to external resource (non-fragment URL)",pattern:/<use[\s\S]{0,60}(?:xlink\s*:\s*)?href\s*=\s*(?:["'][^#]|[^"'#\s>])/i},{id:"svg-animate-href",description:'<animate attributeName="href" — can dynamically change href to javascript:',pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*href["']/i},{id:"svg-animate-xlinkhref",description:'<animate attributeName="xlink:href"',pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*xlink\s*:\s*href["']/i},{id:"svg-set-javascript",description:'<set to="javascript:..." — sets an attribute to a javascript: URI',pattern:/<set[\s\S]{0,80}to\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-event-handler",description:"SVG-specific event handler attributes: onload=, onerror=, onactivate=, etc.",pattern:/\bon(?:load|error|activate|begin|end|repeat|focus|blur|click|mouse\w{1,20}|key\w{1,20})\s*=/i},{id:"svg-handler-generic",description:"Generic on* handler catch-all for SVG attributes",pattern:/\bon\w{1,30}\s*=/i},{id:"svg-filter-feimage",description:"<feImage href= — filter primitive that can load external resources",pattern:/<feImage[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=/i},{id:"svg-image-external",description:"<image xlink:href with http/https or javascript protocol",pattern:/<image[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=\s*["']?\s*(?:https?|javascript)\s*:/i},{id:"svg-style-javascript",description:"style= attribute containing javascript: (e.g. background:url(javascript:...))",pattern:/style\s*=[\s\S]{0,60}javascript\s*:/i}],
1V=[{id:"shell-path-traversal-unix",description:"Unix path traversal: ../  — climbing the directory tree",pattern:/\.\.\//},{id:"shell-path-traversal-windows",description:"Windows path traversal: ..\\ — climbing the directory tree",pattern:/\.\.\\/},{id:"shell-path-traversal-encoded",description:"URL-encoded path traversal: %2e%2e or %2f variants",pattern:/%2e%2e|%2f\.\.|\.\.%2f/i},{id:"shell-null-byte",description:"Null byte injection: \\x00 or %00 — truncates strings in C-backed functions",pattern:/\x00|%00/},{id:"shell-semicolon",description:"Semicolon command separator: cmd1; cmd2",pattern:/;/},{id:"shell-pipe",description:"Pipe operator: cmd1 | cmd2",pattern:/\|/},{id:"shell-and-operator",description:"AND operator: cmd1 && cmd2",pattern:/&&/},{id:"shell-or-operator",description:"OR operator: cmd1 || cmd2",pattern:/\|\|/},{id:"shell-backtick",description:"Backtick command substitution: `cmd`",pattern:/`/},{id:"shell-dollar-paren",description:"Dollar-paren command substitution: $(cmd)",pattern:/\$\(/},{id:"shell-dollar-brace",description:"Dollar-brace variable expansion: ${var} — can be abused for injection",pattern:/\$\{/},{id:"shell-redirect-out",description:"Output redirection: cmd > file or cmd >> file",pattern:/>{1,2}/}
1,{id:"shell-redirect-in",description:"Input redirection: cmd < file",pattern:/</},{id:"shell-newline-injection",description:"Newline injection: \\n or \\r — can inject new shell commands",pattern:/[\n\r]/},{id:"shell-glob-star",description:"Glob expansion: * or ? — can expand to unintended files",pattern:/[/\\][*?]/},{id:"shell-absolute-root",description:"Absolute root path injection: string starting with / or \\ (Windows UNC)",pattern:/^(?:\/|\\\\)/},{id:"shell-windows-drive",description:"Windows drive letter path injection: C:\\ or D:/",pattern:/^[a-zA-Z]:[/\\]/},{id:"shell-curl-wget",description:"curl/wget with URL or flags — can exfiltrate data or download payloads",pattern:/\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i}],q=[{id:"redos-nested-quantifier-plus",description:"Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",pattern:/\([^)]*\+[^)]*\)[+*]/},{id:"redos-nested-quantifier-star",description:"Nested * quantifier: (a*)* or (a*)+ — catastrophic backtracking",pattern:/\([^)]*\*[^)]*\)[*+]/},{id:"redos-nested-groups",description:"Doubly nested quantified groups: ((a+)+) — guaranteed catastrophic",pattern:/\(\([^)]{0,40}\)[+*]\)[+*]/},{id:"redos-alternation-overlap",description:"Overlapping alternation under quantifier: (a|a)+ — ambiguous NFA paths",pattern:/\(([^|()]{1,20})\|(?:\1)(?:\|[^|()]{1,20}){0,5}\)[+*?]{1,2}/},{id:"redos-star-plus-concat",description:"(x*x)+ pattern — triggers super-linear backtracking",pattern:/\([^)]{0,10}\*[^)]{0,10}\)[+*]/},{id:"redos-dot-star-greedy",description:"(.*){n,} or (.+){n,} — repeated greedy dot quantifiers",pattern:/\(\.[*+]\)\{?\d/},{id:"redos-large-repetition",description:"Very large fixed or range repetition count {1000,} or {1000,n} — denial of service via backtracking",pattern:/\{\d{4,}(?:,\d*)?\}/},{id:"redos-catastrophic-alternation",description:"Long alternation with many similar branches — polynomial backtracking risk",pattern:/\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/}];let W="[\"'\\s]*:",H=[{id:"nosql-where-operator",description:"$where — executes arbitrary JavaScript server-side in MongoDB",pattern:RegExp(`\\$where${W}`,"i")},{id:"nosql-ne-operator",description:'$ne — "not equal" operator used to bypass equality checks',pattern:RegExp(`\\$ne${W}`,"i")},{id:"nosql-gt-operator",description:'$gt — "greater than" used to bypass password/value checks',pattern:RegExp(`\\$gte?${W}`,"i")},{id:"nosql-lt-operator",description:'$lt / $lte — "less than" bypass variants',pattern:RegExp(`\\$lte?${W}`,"i")},{id:"nosql-regex-operator",description:"$regex — can be used to extract data character by character (blind injection)",pattern:RegExp(`\\$regex${W}`,"i")},{id:"nosql-or-operator",description:"$or — logical OR; used to create always-true conditions",pattern:RegExp(`\\$or${W}\\s*\\[`,"i")},{id:"nosql-and-operator",description:"$and — logical AND operator injection",pattern:RegExp(`\\$and${W}\\s*\\[`,"i")},{id:"nosql-nor-operator",description:"$nor — logical NOR operator injection",pattern:RegExp(`\\$nor${W}\\s*\\[`,"i")},{id:"nosql-exists-operator",description:"$exists — can enumerate fields to determine schema",pattern:RegExp(`\\$exists${W}`,"i")},{id:"nosql-in-operator",description:"$in — matches any value in a list; can enumerate values",pattern:RegExp(`\\$in${W}\\s*\\[`,"i")},{id:"nosql-expr-operator",description:"$expr — allows aggregation expressions in queries (MongoDB 3.6+)",pattern:RegExp(`\\$expr${W}`,"i")},{id:"nosql-function-operator",description:"$function — executes arbitrary JavaScript in MongoDB 4.4+",pattern:RegExp(`\\$function${W}`,"i")},{id:"nosql-accumulator-operator",description:"$accumulator — custom aggregation with arbitrary JS execution",pattern:RegExp(`\\$accumulator${W}`,"i")},{id:"nosql-proto-pollution",description:"__proto__ — prototype pollution via object key injection",pattern:/__proto__/},{id:"nosql-constructor-prototype",description:"constructor.prototype — alternative prototype pollution vector (dot notation or JSON key)",pattern:/constructor[\s"':.,{\[]*prototype/i},{id:"nosql-proto-bracket",description:'["__proto__"] — bracket-notation prototype pollution',pattern:/\[["']__proto__["']\]/}];var U=[{id:"log-crlf-injection",description:"CRLF injection: literal \\r or \\n embeds fake log lines",pattern:/[\r\n]/},{id:"log-url-encoded-crlf",description:"URL-encoded CRLF: %0d, %0a, %0D, %0A — decoded by some log parsers",pattern:/%0[dDaA]/},{id:"log-unicode-newline",description:"Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)",pattern:/[\u2028\u2029]/},{id:"log-log4shell-jndi",description:"Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",pattern:/\$\{jndi\s*:/i},{id:"log-log4shell-obfuscated",description:"Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",pattern:/\$\{::-/},{id:"log-log4j-lookup",description:"Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} — data exfiltration",pattern:/\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i},{id:"log-ssti-double-brace",description:"SSTI double-brace: {{expression}} — Jinja2, Twig, Handlebars, etc.",pattern:/\{\{[\s\S]{0,80}\}\}/},{id:"log-ssti-hash-brace",description:"SSTI hash-brace: #{expression} — Thymeleaf, Velocity, Ruby ERB",pattern:/#\{[\s\S]{0,80}\}/},{id:"log-ssti-dollar-brace",description:"SSTI/EL injection: ${expression with operators or method calls} — JSP EL, Freemarker, SpEL",pattern:/\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i},{id:"log-ssti-percent-tag",description:"SSTI ERB/ASP tag: <%= expression %> — Ruby ERB, ASP",pattern:/<%=[\s\S]{0,80}%>/},{id:"log-null-byte",description:"Null byte: \\x00 or %00 — can truncate log entries in C-backed loggers",pattern:/\x00|%00/},{id:"log-ansi-escape",description:"ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",pattern:/\x1b\[/}];R.label="HTML",z.label="XML",$.label="SVG",M.label="SQL",F.label="SQL-STRICT",V.label="SHELL",q.label="REDOS",H.label="NOSQL",U.label="LOG",Object.freeze({HTML:R,XML:z,SVG:$,SQL:M,"SQL-STRICT":F,SHELL:V,REDOS:q,NOSQL:H,LOG:U});let OrderedObjParser=class OrderedObjParser{constructor(e,t){var r;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=parseXml,this.parseTextData=parseTextData,this.resolveNameSpace=resolveNameSpace,this.buildAttributesMap=buildAttributesMap,this.isItStopNode=isItStopNode,this.replaceEntitiesValue=replaceEntitiesValue,this.readStopNodeData=readStopNodeData,this.saveTextToParentTag=saveTextToParentTag,this.addChild=addChild,this.ignoreAttributesFn="function"==typeof(r=this.options.ignoreAttributes)?r:Array.isArray(r)?e=>{for(let t of r)if("string"==typeof t&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let n={...j};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:("object"==typeof this.options.htmlEntities?n=this.options.htmlEntities:!0===this.options.htmlEntities&&(n={...P,...D}),this.entityDecoder=new EntityDecoder({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:(e,t)=>!function(e,t){(function(e){if("string"!=typeof e)throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`)})(e),function(e){if(!(e instanceof RegExp)){if(Array.isArray(e)){if(0===e.length)throw TypeError("is-unsafe: context must not be an empty array");if(Array.isArray(e[0])){for(let t of e)if(!Array.isArray(t)||0===t.length)throw TypeError("is-unsafe: each context in the array must be a non-empty pattern array (PatternList)")}return}throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`)}}(t);let{lists:r,regex:n}=t instanceof RegExp?{lists:null,regex:t}:Array.isArray(t[0])?{lists:t,regex:null}:{lists:[t],regex:null};if(n)return n.test(e);for(let t of r)if(null!==function(e,t){let r=t.label??"CUSTOM";for(let n of t)if(n.pattern.test(e))return{context:r,id:n.id,description:n.description,pattern:n.pattern};return null}(e,t))return!0;return!1}(t,[R,z])?A.ALLOW:A.BLOCK})),this.matcher=new Matcher,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new ExpressionSet;let i=this.options.stopNodes;if(i&&i.length>0){for(let e=0;e<i.length;e++){let t=i[e];"string"==typeof t?this.stopNodeExpressionsSet.add(new Expression(t)):t instanceof Expression&&this.stopNodeExpressionsSet.add(t)}this.stopNodeExpressionsSet.seal()}}};function parseTextData(e,t,r,n,i,o,a){let s=this.options;if(void 0!==e&&(s.trimValues&&!n&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e,t,r));let n=s.jPath?r.toString():r,l=s.tagValueProcessor(t,e,n,i,o);if(null==l)return e;if(typeof l!=typeof e||l!==e)return l;{if(s.trimValues)return parseValue(e,s.parseTagValue,s.numberParseOptions);let t=e.trim();return t===e?parseValue(e,s.parseTagValue,s.numberParseOptions):e}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){let t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}let B=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t,r,n=!1){let i=this.options;if(!0===n||!0!==i.ignoreAttributes&&"string"==typeof e){let n=getAllMatches(e,B),o=n.length,a={},s=Array(o),l=!1,c={};for(let e=0;e<o;e++){let t=this.resolveNameSpace(n[e][1]),o=n[e][4];if(t.length&&void 0!==o){let n=o;i.trimValues&&(n=n.trim()),n=this.replaceEntitiesValue(n,r,this.readonlyMatcher),s[e]=n,c[t]=n,l=!0}}l&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(c);let p=i.jPath?t.toString():this.readonlyMatcher,d=!1;for(let e=0;e<o;e++){let t=this.resolveNameSpace(n[e][1]);if(this.ignoreAttributesFn(t,p))continue;let r=i.attributeNamePrefix+t;if(t.length){if(i.transformAttributeName&&(r=i.transformAttributeName(r)),r=sanitizeName(r,i),void 0!==n[e][4]){let n=s[e],o=i.attributeValueProcessor(t,n,p);null==o?a[r]=n:typeof o!=typeof n||o!==n?a[r]=o:a[r]=parseValue(n,i.parseAttributeValue,i.numberParseOptions),d=!0}else i.allowBooleanAttributes&&(a[r]=!0,d=!0)}}if(!d)return;if(i.attributesGroupName&&!i.preserveOrder){let e={};return e[i.attributesGroupName]=a,e}return a}}let parseXml=function(e){e=e.replace(/\r\n?/g,"\n");let t=new XmlNode("!xml"),r=t,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let i=this.options,o=new DocTypeReader(i.processEntities),a=e.length;for(let s=0;s<a;s++){let l=e[s];if("<"===l){let l=e.charCodeAt(s+1);if(47===l){let t=findClosingIndex(e,">",s,"Closing Tag is not closed."),o=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=o.indexOf(":");-1!==e&&(o=o.substr(e+1))}o=transformTagName(i.transformTagName,o,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let a=this.matcher.getCurrentTag();if(o&&i.unpairedTagsSet.has(o))throw Error(`Unpaired tag can not be used as closing tag: </${o}>`);a&&i.unpairedTagsSet.has(a)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",s=t}else if(63===l){let t=readTagExp(e,s,!1,"?>");if(!t)throw Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let a=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(a){let e=a[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(e)||1),o.setXmlVersion(Number(e)||1)}if(i.ignoreDeclaration&&"?xml"===t.tagName||i.ignorePiTags);else{let e=new XmlNode(t.tagName);e.add(i.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&!0!==i.ignoreAttributes&&(e[":@"]=a),this.addChild(r,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(33===l&&45===e.charCodeAt(s+2)&&45===e.charCodeAt(s+3)){let t=findClosingIndex(e,"-->",s+4,"Comment is not closed.");if(i.commentPropName){let o=e.substring(s+4,t-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:o}])}s=t}else if(33===l&&68===e.charCodeAt(s+2)){if(this.doctypefound)throw Error("Multiple DOCTYPE declarations foun
1d.");this.doctypefound=!0;let t=o.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(33===l&&91===e.charCodeAt(s+2)){let t=findClosingIndex(e,"]]>",s,"CDATA is not closed.")-2,o=e.substring(s+9,t);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let a=this.parseTextData(o,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);void 0==a&&(a=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:o}]):r.add(i.textNodeName,a),s=t+2}else{let o,l=readTagExp(e,s,i.removeNSPrefix);if(!l){let t=e.substring(Math.max(0,s-50),Math.min(a,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=l.tagName,p=l.rawTagName,d=l.tagExp,u=l.attrExpPresent,h=l.closeIndex;if({tagName:c,tagExp:d}=transformTagName(i.transformTagName,c,d,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let f=r;f&&i.unpairedTagsSet.has(f.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;d.length>0&&d.lastIndexOf("/")===d.length-1&&(m=!0,d="/"===c[c.length-1]?c=c.substr(0,c.length-1):d.substr(0,d.length-1),u=c!==d);let g=null;o=function(e){if(!e||"string"!=typeof e)return;let t=e.indexOf(":");if(-1!==t&&t>0){let r=e.substring(0,t);if("xmlns"!==r)return r}}(p),c!==t.tagname&&this.matcher.push(c,{},o),c!==d&&u&&(g=this.buildAttributesMap(d,this.matcher,c))&&function(e,t){if(!e)return;let r=t.attributesGroupName?e[t.attributesGroupName]:e;if(!r)return;let n={};for(let e in r)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);n[i]=r[e]}else n[e]=r[e]}(g,i),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let b=s;if(this.isCurrentNodeStopNode){let t="";if(m)s=l.closeIndex;else if(i.unpairedTagsSet.has(c))s=l.closeIndex;else{let r=this.readStopNodeData(e,p,h+1);if(!r)throw Error(`Unexpected end of ${p}`);s=r.i,t=r.tagContent}let n=new XmlNode(c);g&&(n[":@"]=g),n.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,n,this.readonlyMatcher,b)}else{if(m){({tagName:c,tagExp:d}=transformTagName(i.transformTagName,c,d,i));let e=new XmlNode(c);g&&(e[":@"]=g),this.addChild(r,e,this.readonlyMatcher,b),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new XmlNode(c);g&&(e[":@"]=g),this.addChild(r,e,this.readonlyMatcher,b),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=l.closeIndex;continue}else{let e=new XmlNode(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),g&&(e[":@"]=g),this.addChild(r,e,this.readonlyMatcher,b),r=e}n="",s=h}}}else n+=e[s]}return t.child};function addChild(e,t,r,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?r.toString():r,o=this.options.updateTag(t.tagname,i,t[":@"]);!1===o||("string"==typeof o&&(t.tagname=o),e.addChild(t,n))}function replaceEntitiesValue(e,t,r){let n=this.options.processEntities;if(!n||!n.enabled)return e;if(n.allowedTags){let i=this.options.jPath?r.toString():r,o=Array.isArray(n.allowedTags)?n.allowedTags.includes(t):n.allowedTags(t,i);if(!o)return e}if(n.tagFilter){let i=this.options.jPath?r.toString():r;if(!n.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function saveTextToParentTag(e,t,r,n){return e&&(void 0===n&&(n=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function isItStopNode(){return 0!==this.stopNodeExpressionsSet.size&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function findClosingIndex(e,t,r,n){let i=e.indexOf(t,r);if(-1!==i)return i+t.length-1;throw Error(n)}function readTagExp(e,t,r,n=">"){let i=function(e,t,r=">"){let n=0,i=e.length,o=r.charCodeAt(0),a=r.length>1?r.charCodeAt(1):-1,s="",l=t;for(let r=t;r<i;r++){let t=e.charCodeAt(r);if(n)t===n&&(n=0);else if(34===t||39===t)n=t;else if(t===o){if(-1===a||e.charCodeAt(r+1)===a)return{data:s+=e.substring(l,r),index:r}}else 9!==t||n||(s+=e.substring(l,r)+" ",l=r+1)}}(e,t+1,n);if(!i)return;let o=i.data,a=i.index,s=o.search(/\s/),l=o,c=!0;-1!==s&&(l=o.substring(0,s),o=o.substring(s+1).trimStart());let p=l;if(r){let e=l.indexOf(":");-1!==e&&(c=(l=l.substr(e+1))!==i.data.substr(e+1))}return{tagName:l,tagExp:o,closeIndex:a,attrExpPresent:c,rawTagName:p}}function readStopNodeData(e,t,r){let n=r,i=1,o=e.length;for(;r<o;r++)if("<"===e[r]){let o=e.charCodeAt(r+1);if(47===o){let o=function(e,t,r,n){let i=e.indexOf(">",r);if(-1===i)throw Error(n);return i}(e,0,r,`${t} is not closed`);if(e.substring(r+2,o).trim()===t&&0==--i)return{tagContent:e.substring(n,r),i:o};r=o}else if(63===o){let t=findClosingIndex(e,"?>",r+1,"StopNode is not closed.");r=t}else if(33===o&&45===e.charCodeAt(r+2)&&45===e.charCodeAt(r+3)){let t=findClosingIndex(e,"-->",r+3,"StopNode is not closed.");r=t}else if(33===o&&91===e.charCodeAt(r+2)){let t=findClosingIndex(e,"]]>",r,"StopNode is not closed.")-2;r=t}else{let n=readTagExp(e,r,!1);if(n){let e=n&&n.tagName;e===t&&"/"!==n.tagExp[n.tagExp.length-1]&&i++,r=n.closeIndex}}}}function parseValue(e,t,r){if(t&&"string"==typeof e){let t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},w,t),!e||"string"!=typeof e)return e;let r=e.trim();if(0===r.length||void 0!==t.skipLike&&t.skipLike.test(r))return e;if("0"===r||t.unicode&&"0"===(r=anynum_anynum(r)))return 0;if(t.hex&&E.test(r))return parse_int(r,16);if(t.binary&&_.test(r))return parse_int(r,2);if(t.octal&&S.test(r))return parse_int(r,8);{if(!isFinite(r))return function(e,t,r){switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return t===1/0?"Infinity":"-Infinity";default:return e}}(e,Number(r),t);if(r.includes("e")||r.includes("E"))return function(e,t,r){if(!r.eNotation)return e;let n=t.match(N);if(!n)return e;{let i=n[1]||"",o=-1===n[3].indexOf("e")?"E":"e",a=n[2],s=i?e[a.length+1]===o:e[a.length]===o;return a.length>1&&s?e:1===a.length&&(n[3].startsWith(`.${o}`)||n[3][0]===o)?Number(t):a.length>0?r.leadingZeros&&!s?Number(t=(n[1]||"")+n[3]):e:Number(t)}}(e,r,t);let i=O.exec(r);if(!i)return e;{var n;let o=i[1]||"",a=i[2],s=((n=i[3])&&-1!==n.indexOf(".")&&("."===(n=n.replace(/0+$/,""))?n="0":"."===n[0]?n="0"+n:"."===n[n.length-1]&&(n=n.substring(0,n.length-1))),n),l=o?"."===e[a.length+1]:"."===e[a.length];if(!t.leadingZeros&&(a.length>1||1===a.length&&!l))return e;{let n=Number(r),i=String(n);if(0===n)return n;if(-1!==i.search(/[eE]/))return t.eNotation?n:e;if(-1!==r.indexOf("."))return"0"===i?n:i===s?n:i===`${o}${s}`?n:e;let l=a?s:r;return a?l===i||o+l===i?n:e:l===i||l===o+i?n:e}}}}(e,r)}return void 0!==e?e:""}function transformTagName(e,t,r,n){if(e){let n=e(t);r===t&&(r=n),t=n}return{tagName:t=sanitizeName(t,n),tagExp:r}}function sanitizeName(e,t){if(s.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.includes(e)?t.onDangerousProperty(e):e}let X=XmlNode.getMetaDataSymbol(),Z={allowBooleanAttributes:!1,unpairedTags:[]};function isWhiteSpace(e){return" "===e||"	"===e||"\n"===e||"\r"===e}function readPI(e,t){let r=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){let n=e.substr(r,t-r);if(t>5&&"xml"===n)return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t));if("?"!=e[t]||">"!=e[t+1])continue;t++;break}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&0==--r)break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7]){for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}}return t}
1let G=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){let r=getAllMatches(e,G),n={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return getErrorObject("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",getPositionFromMatch(r[e]));if(void 0!==r[e][3]&&void 0===r[e][4])return getErrorObject("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",getPositionFromMatch(r[e]));if(void 0===r[e][3]&&!t.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",getPositionFromMatch(r[e]));let i=r[e][2];if(!isName(i))return getErrorObject("InvalidAttr","Attribute '"+i+"' is an invalid name.",getPositionFromMatch(r[e]));if(Object.prototype.hasOwnProperty.call(n,i))return getErrorObject("InvalidAttr","Attribute '"+i+"' is repeated.",getPositionFromMatch(r[e]));n[i]=1}return!0}function getErrorObject(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function getLineNumberForPosition(e,t){let r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function getPositionFromMatch(e){return e.startIndex+e[1].length}let XMLParser=class XMLParser{constructor(e){this.externalEntities={},this.options=buildOptions(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});let r=function(e,t){t=Object.assign({},Z,t);let r=[],n=!1,i=!1;"\uFEFF"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,(o=readPI(e,o)).err)return o}else if("<"===e[o]){let a=o;if("!"===e[++o]){o=readCommentAndCDATA(e,o);continue}{let s=!1;"/"===e[o]&&(s=!0,o++);let l="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"	"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)l+=e[o];if("/"===(l=l.trim())[l.length-1]&&(l=l.substring(0,l.length-1),o--),!isName(l))return getErrorObject("InvalidTag",0===l.trim().length?"Invalid space after '<'.":"Tag '"+l+"' is an invalid name.",getLineNumberForPosition(e,o));let c=function(e,t){let r="",n="",i=!1;for(;t<e.length;t++){if('"'===e[t]||"'"===e[t])""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){i=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:i}}(e,o);if(!1===c)return getErrorObject("InvalidAttr","Attributes for '"+l+"' have open quote.",getLineNumberForPosition(e,o));let p=c.value;if(o=c.index,"/"===p[p.length-1]){let r=o-p.length;p=p.substring(0,p.length-1);let i=validateAttributeString(p,t);if(!0!==i)return getErrorObject(i.err.code,i.err.msg,getLineNumberForPosition(e,r+i.err.line));n=!0}else if(s){if(!c.tagClosed)return getErrorObject("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",getLineNumberForPosition(e,o));if(p.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,a));{if(0===r.length)return getErrorObject("InvalidTag","Closing tag '"+l+"' has not been opened.",getLineNumberForPosition(e,a));let t=r.pop();if(l!==t.tagName){let r=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+l+"'.",getLineNumberForPosition(e,a))}0==r.length&&(i=!0)}}else{let s=validateAttributeString(p,t);if(!0!==s)return getErrorObject(s.err.code,s.err.msg,getLineNumberForPosition(e,o-p.length+s.err.line));if(!0===i)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,o));-1!==t.unpairedTags.indexOf(l)||r.push({tagName:l,tagStartPos:a}),n=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o=readCommentAndCDATA(e,++o);continue}if("?"===e[o+1]){if((o=readPI(e,++o)).err)return o}else break}else if("&"===e[o]){let t=function(e,t){if(";"===e[++t])return -1;if("#"===e[t])return function(e,t){let r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return -1}(e,++t);let r=0;for(;t<e.length;t++,r++)if(!e[t].match(/\w/)||!(r<20)){if(";"===e[t])break;return -1}return t}(e,o);if(-1==t)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,o));o=t}else if(!0===i&&!isWhiteSpace(e[o]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(e,o));"<"===e[o]&&o--}}else{if(isWhiteSpace(e[o]))continue;return getErrorObject("InvalidChar","char '"+e[o]+"' is not expected.",getLineNumberForPosition(e,o))}return n?1==r.length?getErrorObject("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",getLineNumberForPosition(e,r[0].tagStartPos)):!(r.length>0)||getErrorObject("InvalidXml","Invalid '"+JSON.stringify(r.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):getErrorObject("InvalidXml","Start tag expected.",1)}(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}let r=new OrderedObjParser(this.options,this.externalEntities),n=r.parseXml(e);return this.options.preserveOrder||void 0===n?n:function compress(e,t,r,n){let i;let o={};for(let a=0;a<e.length;a++){let s=e[a],l=function(e){let t=Object.keys(e);for(let e=0;e<t.length;e++){let r=t[e];if(":@"!==r)return r}}(s);if(void 0!==l&&l!==t.textNodeName){let e=function(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;let r={};for(let n in e)if(n.startsWith(t)){let i=n.substring(t.length);r[i]=e[n]}else r[n]=e[n];return r}(s[":@"]||{},t.attributeNamePrefix);r.push(l,e)}if(l===t.textNodeName)void 0===i?i=s[l]:i+=""+s[l];else if(void 0===l)continue;else if(s[l]){let e=compress(s[l],t,r,n),i=function(e,t){let{textNodeName:r}=t,n=Object.keys(e).length;return 0===n||1===n&&(!!e[r]||"boolean"==typeof e[r]||0===e[r])}(e,t);if(0===Object.keys(e).length&&t.alwaysCreateTextNode&&(e[t.textNodeName]=""),s[":@"]?function(e,t,r,n){if(t){let i=Object.keys(t),o=i.length;for(let a=0;a<o;a++){let o=i[a],s=o.startsWith(n.attributeNamePrefix)?o.substring(n.attributeNamePrefix.length):o,l=n.jPath?r.toString()+"."+s:r;n.isArray(o,l,!0,!0)?e[o]=[t[o]]:e[o]=t[o]}}}(e,s[":@"],n,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==s[X]&&"object"==typeof e&&null!==e&&(e[X]=s[X]),void 0!==o[l]&&Object.prototype.hasOwnProperty.call(o,l))Array.isArray(o[l])||(o[l]=[o[l]]),o[l].push(e);else{let r=t.jPath?n.toString():n;t.isArray(l,r,i)?o[l]=[e]:o[l]=e}void 0!==l&&l!==t.textNodeName&&r.pop()}}return"string"==typeof i?i.length>0&&(o[t.textNodeName]=i):void 0!==i&&(o[t.textNodeName]=i),o}(n,this.options,r.matcher,r.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return XmlNode.getMetaDataSymbol()}}}}]);

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.