/*! For license information please see main.501f9d53.js.LICENSE.txt */
(()=>{var __webpack_modules__={270:(e,t,n)=>{"use strict";var r=n(520),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}},123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var a,i,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(s[c]=a[c]);if(t){i=t(a);for(var u=0;u<i.length;u++)r.call(a,i[u])&&(s[i[u]]=a[i[u]])}}return s}},749:(module,__unused_webpack_exports,__webpack_require__)=>{var _classPrivateGetter=__webpack_require__(183).default,_defineProperty=__webpack_require__(693).default,_classPrivateMethodInitSpec=__webpack_require__(312).default,_assertClassBrand=__webpack_require__(756).default,_classPrivateFieldInitSpec=__webpack_require__(459).default,_classPrivateFieldGet=__webpack_require__(668).default,_classPrivateFieldSet=__webpack_require__(88).default,root,factory;root=globalThis,factory=()=>(()=>{"use strict";var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||s(t)},t.bytesToString=u,t.createValidAbsoluteUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(n&&"string"===typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);(null===t||void 0===t?void 0:t.length)>=2&&(e="http://".concat(e))}if(n.tryConvertEncoding)try{e=p(e)}catch{}}const r=t?new URL(e,t):new URL(e);if(function(e){switch(null===e||void 0===e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch{}return null},t.getModificationDate=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){var e,t;if("undefined"!==typeof crypto&&"function"===typeof(null===(e=crypto)||void 0===e?void 0:e.randomUUID))return crypto.randomUUID();const n=new Uint8Array(32);if("undefined"!==typeof crypto&&"function"===typeof(null===(t=crypto)||void 0===t?void 0:t.getRandomValues))crypto.getRandomValues(n);else for(let r=0;r<32;r++)n[r]=Math.floor(255*Math.random());return u(n)},t.getVerbosityLevel=function(){return a},t.info=function(e){a>=o.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.byteLength)},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0},t.isNodeJS=void 0,t.normalizeUnicode=function(e){return g||(g=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,v=new Map([["\ufb05","\u017ft"]])),e.replaceAll(g,((e,t,n)=>t?t.normalize("NFKC"):v.get(n)))},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,r]of e)t[n]=r;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(a=e)},t.shadow=l,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=d,t.stringToPDFString=function(e){if(e[0]>="\xef"){let t;if("\xfe"===e[0]&&"\xff"===e[1]?t="utf-16be":"\xff"===e[0]&&"\xfe"===e[1]?t="utf-16le":"\xef"===e[0]&&"\xbb"===e[1]&&"\xbf"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=d(e);return n.decode(r)}catch(n){i('stringToPDFString: "'.concat(n,'".'))}}const t=[];for(let r=0,o=e.length;r<o;r++){const n=h[e.charCodeAt(r)];t.push(n?String.fromCharCode(n):e.charAt(r))}return t.join("")},t.stringToUTF8String=p,t.unreachable=s,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=i;const n="object"===typeof process&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n,t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.MAX_IMAGE_SIZE_TO_CACHE=1e7,t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35;const r=.35/1.35;t.BASELINE_FACTOR=r,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15},t.AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"};const o={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=o,t.CMapCompressionType={NONE:0,BINARY:1},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let a=o.WARNINGS;function i(e){a>=o.WARNINGS&&console.log("Warning: ".concat(e))}function s(e){throw new Error(e)}function l(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}const c=function(){function e(t,n){this.constructor===e&&s("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function u(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||s("Invalid argument for bytesToString");const t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);const r=[];for(let o=0;o<t;o+=n){const a=Math.min(o+n,t),i=e.subarray(o,a);r.push(String.fromCharCode.apply(null,i))}return r.join("")}function d(e){"string"!==typeof e&&s("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}t.BaseException=c,t.PasswordException=class extends c{constructor(e,t){super(e,"PasswordException"),this.code=t}},t.UnknownErrorException=class extends c{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},t.InvalidPDFException=class extends c{constructor(e){super(e,"InvalidPDFException")}},t.MissingPDFException=class extends c{constructor(e){super(e,"MissingPDFException")}},t.UnexpectedResponseException=class extends c{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}},t.FormatError=class extends c{constructor(e){super(e,"FormatError")}},t.AbortException=class extends c{constructor(e){super(e,"AbortException")}},t.FeatureTest=class{static get isLittleEndian(){return l(this,"isLittleEndian",function(){const e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return l(this,"isEvalSupported",function(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return l(this,"isOffscreenCanvasSupported","undefined"!==typeof OffscreenCanvas)}static get platform(){return"undefined"===typeof navigator?l(this,"platform",{isWin:!1,isMac:!1}):l(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var e,t;return l(this,"isCSSRoundSupported",null===(e=globalThis.CSS)||void 0===e||null===(t=e.supports)||void 0===t?void 0:t.call(e,"width: round(1.5px, 1px)"))}};const f=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));t.Util=class{static makeHexColor(e,t,n){return"#".concat(f[e]).concat(f[t]).concat(f[n])}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=this.applyTransform(e,t),r=this.applyTransform(e.slice(2,4),t),o=this.applyTransform([e[0],e[3]],t),a=this.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],o[0],a[0]),Math.min(n[1],r[1],o[1],a[1]),Math.max(n[0],r[0],o[0],a[0]),Math.max(n[1],r[1],o[1],a[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],o=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],i=(n+a)/2,s=Math.sqrt((n+a)**2-4*(n*a-o*r))/2,l=i+s||1,c=i-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const o=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return o>a?null:[n,o,r,a]}static bezierBoundingBox(e,t,n,r,o,a,i,s){const l=[],c=[[],[]];let u,d,f,h,p,m,g,v;for(let x=0;x<2;++x)if(0===x?(d=6*e-12*n+6*o,u=-3*e+9*n-9*o+3*i,f=3*n-3*e):(d=6*t-12*r+6*a,u=-3*t+9*r-9*a+3*s,f=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;h=-f/d,0<h&&h<1&&l.push(h)}else g=d*d-4*f*u,v=Math.sqrt(g),g<0||(p=(-d+v)/(2*u),0<p&&p<1&&l.push(p),m=(-d-v)/(2*u),0<m&&m<1&&l.push(m));let y,b=l.length;const w=b;for(;b--;)h=l[b],y=1-h,c[0][b]=y*y*y*e+3*y*y*h*n+3*y*h*h*o+h*h*h*i,c[1][b]=y*y*y*t+3*y*y*h*r+3*y*h*h*a+h*h*h*s;return c[0][w]=e,c[1][w]=t,c[0][w+1]=i,c[1][w+1]=s,c[0].length=c[1].length=w+2,[Math.min(...c[0]),Math.min(...c[1]),Math.max(...c[0]),Math.max(...c[1])]}};const h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function p(e){return decodeURIComponent(escape(e))}var m=new WeakMap;t.PromiseCapability=class{constructor(){_classPrivateFieldInitSpec(this,m,!1),this.promise=new Promise(((e,t)=>{this.resolve=t=>{_classPrivateFieldSet(m,this,!0),e(t)},this.reject=e=>{_classPrivateFieldSet(m,this,!0),t(e)}}))}get settled(){return _classPrivateFieldGet(m,this)}};let g=null,v=null;t.AnnotationPrefix="pdfjs_internal_id_"},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(e){var t,n;if("string"===typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!==typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const r=new PDFDocumentLoadingTask,{docId:o}=r,a=e.url?getUrlProp(e.url):null,i=e.data?getDataProp(e.data):null,s=e.httpHeaders||null,l=!0===e.withCredentials,c=null!==(t=e.password)&&void 0!==t?t:null,u=e.range instanceof PDFDataRangeTransport?e.range:null,d=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let f=e.worker instanceof PDFWorker?e.worker:null;const h=e.verbosity,p="string"!==typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,m="string"===typeof e.cMapUrl?e.cMapUrl:null,g=!1!==e.cMapPacked,v=e.CMapReaderFactory||DefaultCMapReaderFactory,y="string"===typeof e.standardFontDataUrl?e.standardFontDataUrl:null,b=e.StandardFontDataFactory||DefaultStandardFontDataFactory,w=!0!==e.stopAtErrors,x=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,S=!1!==e.isEvalSupported,C="boolean"===typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,_=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,E="boolean"===typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,k=!0===e.fontExtraProperties,P=!0===e.enableXfa,A=e.ownerDocument||globalThis.document,O=!0===e.disableRange,T=!0===e.disableStream,M=!0===e.disableAutoFetch,I=!0===e.pdfBug,R=u?u.length:null!==(n=e.length)&&void 0!==n?n:NaN,F="boolean"===typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!E,N="boolean"===typeof e.useWorkerFetch?e.useWorkerFetch:v===_display_utils.DOMCMapReaderFactory&&b===_display_utils.DOMStandardFontDataFactory&&m&&y&&(0,_display_utils.isValidFetchUrl)(m,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(y,document.baseURI),j=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:A}),D=e.filterFactory||new DefaultFilterFactory({docId:o,ownerDocument:A});(0,_util.setVerbosityLevel)(h);const L={canvasFactory:j,filterFactory:D};if(N||(L.cMapReaderFactory=new v({baseUrl:m,isCompressed:g}),L.standardFontDataFactory=new b({baseUrl:y})),!f){const e={verbosity:h,port:_worker_options.GlobalWorkerOptions.workerPort};f=e.port?PDFWorker.fromPort(e):new PDFWorker(e),r._worker=f}const B={docId:o,apiVersion:"3.11.174",data:i,password:c,disableAutoFetch:M,rangeChunkSize:d,length:R,docBaseUrl:p,enableXfa:P,evaluatorOptions:{maxImageSize:x,disableFontFace:E,ignoreErrors:w,isEvalSupported:S,isOffscreenCanvasSupported:C,canvasMaxAreaInBytes:_,fontExtraProperties:k,useSystemFonts:F,cMapUrl:N?m:null,standardFontDataUrl:N?y:null}},z={ignoreErrors:w,isEvalSupported:S,disableFontFace:E,fontExtraProperties:k,enableXfa:P,ownerDocument:A,disableAutoFetch:M,pdfBug:I,styleElement:null};return f.promise.then((function(){if(r.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(f,B),t=new Promise((function(e){let t;var n;u?t=new _transport_stream.PDFDataTransportStream({length:R,initialData:u.initialData,progressiveDone:u.progressiveDone,contentDispositionFilename:u.contentDispositionFilename,disableRange:O,disableStream:T},u):i||(n={url:a,length:R,httpHeaders:s,withCredentials:l,rangeChunkSize:d,disableRange:O,disableStream:T},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(n):(0,_display_utils.isValidFetchUrl)(n.url)?new _displayFetch_stream.PDFFetchStream(n):new _displayNetwork.PDFNetworkStream(n)),e(t)}));return Promise.all([e,t]).then((function(e){let[t,n]=e;if(r.destroyed)throw new Error("Loading aborted");const a=new _message_handler.MessageHandler(o,t,f.port),i=new WorkerTransport(a,r,n,z,L);r._transport=i,a.send("Ready",null)}))})).catch(r._capability.reject),r}async function _fetchDocument(e,t){if(e.destroyed)throw new Error("Worker was destroyed");const n=await e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(e.destroyed)throw new Error("Worker was destroyed");return n}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(_util.isNodeJS&&"string"===typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!==typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"===typeof e)return(0,_util.stringToBytes)(e);if("object"===typeof e&&!isNaN(null===e||void 0===e?void 0:e.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;class PDFDocumentLoadingTask{constructor(){var e,t;this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d".concat((_docId._=(e=_docId._,t=e++,e),t)),this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{var e,t;null!==(e=this._worker)&&void 0!==e&&e.port&&(this._worker._pendingDestroy=!0),await(null===(t=this._transport)||void 0===t?void 0:t.destroy())}catch(r){var n;throw null!==(n=this._worker)&&void 0!==n&&n.port&&delete this._worker._pendingDestroy,r}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}var _docId={_:0};exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then((e=>{if(!e)return e;const t=[];for(const n in e)t.push(...e[n]);return t})))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;var _delayedCleanupTimeout=new WeakMap,_pendingCleanup=new WeakMap,_PDFPageProxy_brand=new WeakSet;class PDFPageProxy{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classPrivateMethodInitSpec(this,_PDFPageProxy_brand),_classPrivateFieldInitSpec(this,_delayedCleanupTimeout,null),_classPrivateFieldInitSpec(this,_pendingCleanup,!1),this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=r?new _display_utils.StatTimer:null,this._pdfBug=r,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:o})}getAnnotations(){let{intent:e="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var e;return(null===(e=this._transport._htmlForXfa)||void 0===e?void 0:e.children[this._pageIndex])||null}render(e){var t,n;let{canvasContext:r,viewport:o,intent:a="display",annotationMode:i=_util.AnnotationMode.ENABLE,transform:s=null,background:l=null,optionalContentConfigPromise:c=null,annotationCanvasMap:u=null,pageColors:d=null,printAnnotationStorage:f=null}=e;null===(t=this._stats)||void 0===t||t.time("Overall");const h=this._transport.getRenderingIntent(a,i,f);_classPrivateFieldSet(_pendingCleanup,this,!1),_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),c||(c=this._transport.getOptionalContentConfig());let p=this._intentStates.get(h.cacheKey);p||(p=Object.create(null),this._intentStates.set(h.cacheKey,p)),p.streamReaderCancelTimeout&&(clearTimeout(p.streamReaderCancelTimeout),p.streamReaderCancelTimeout=null);const m=!!(h.renderingIntent&_util.RenderingIntentFlag.PRINT);var g;p.displayReadyCapability||(p.displayReadyCapability=new _util.PromiseCapability,p.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(g=this._stats)||void 0===g||g.time("Page Request"),this._pumpOperatorList(h));const v=e=>{var t,n;p.renderTasks.delete(y),(this._maybeCleanupAfterRender||m)&&_classPrivateFieldSet(_pendingCleanup,this,!0),_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!m),e?(y.capability.reject(e),this._abortOperatorList({intentState:p,reason:e instanceof Error?e:new Error(e)})):y.capability.resolve(),null===(t=this._stats)||void 0===t||t.timeEnd("Rendering"),null===(n=this._stats)||void 0===n||n.timeEnd("Overall")},y=new InternalRenderTask({callback:v,params:{canvasContext:r,viewport:o,transform:s,background:l},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:p.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!m,pdfBug:this._pdfBug,pageColors:d});((n=p).renderTasks||(n.renderTasks=new Set)).add(y);const b=y.task;return Promise.all([p.displayReadyCapability.promise,c]).then((e=>{var t;let[n,r]=e;this.destroyed?v():(null===(t=this._stats)||void 0===t||t.time("Rendering"),y.initializeGraphics({transparency:n,optionalContentConfig:r}),y.operatorListChanged())})).catch(v),b}getOperatorList(){let{intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this._transport.getRenderingIntent(e,t,n,!0);let o,a=this._intentStates.get(r.cacheKey);var i,s;return a||(a=Object.create(null),this._intentStates.set(r.cacheKey,a)),a.opListReadCapability||(o=Object.create(null),o.operatorListChanged=function(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(o))},a.opListReadCapability=new _util.PromiseCapability,((i=a).renderTasks||(i.renderTasks=new Set)).add(o),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null===(s=this._stats)||void 0===s||s.time("Page Request"),this._pumpOperatorList(r)),a.opListReadCapability.promise}streamTextContent(){let{includeMarkedContent:e=!1,disableNormalization:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const r=t.getReader(),o={items:[],styles:Object.create(null)};!function t(){r.read().then((function(n){let{value:r,done:a}=n;a?e(o):(Object.assign(o.styles,r.styles),o.items.push(...r.items),t())}),n)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),_classPrivateFieldSet(_pendingCleanup,this,!1),_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),Promise.all(e)}cleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldSet(_pendingCleanup,this,!0);const t=_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!1);return e&&t&&this._stats&&(this._stats=new _display_utils.StatTimer),t}_startRenderPage(e,t){var n,r;const o=this._intentStates.get(t);o&&(null===(n=this._stats)||void 0===n||n.timeEnd("Page Request"),null===(r=o.displayReadyCapability)||void 0===r||r.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n<r;n++)t.operatorList.fnArray.push(e.fnArray[n]),t.operatorList.argsArray.push(e.argsArray[n]);t.operatorList.lastChunk=e.lastChunk,t.operatorList.separateAnnots=e.separateAnnots;for(const n of t.renderTasks)n.operatorListChanged();e.lastChunk&&_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!0)}_pumpOperatorList(e){let{renderingIntent:t,cacheKey:n,annotationStorageSerializable:r}=e;const{map:o,transfers:a}=r,i=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:t,cacheKey:n,annotationStorage:o},a).getReader(),s=this._intentStates.get(n);s.streamReader=i;const l=()=>{i.read().then((e=>{let{value:t,done:n}=e;n?s.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,s),l())}),(e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){s.operatorList.lastChunk=!0;for(const e of s.renderTasks)e.operatorListChanged();_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!0)}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}}))};l()}_abortOperatorList(e){let{intentState:t,reason:n,force:r=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!r){if(t.renderTasks.size>0)return;if(n instanceof _display_utils.RenderingCancelledException){let e=RENDERING_CANCELLED_TIMEOUT;return n.extraDelay>0&&n.extraDelay<1e3&&(e+=n.extraDelay),void(t.streamReaderCancelTimeout=setTimeout((()=>{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:n,force:!0})}),e))}}if(t.streamReader.cancel(new _util.AbortException(n.message)).catch((()=>{})),t.streamReader=null,!this._transport.destroyed){for(const[e,n]of this._intentStates)if(n===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}function _tryCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_assertClassBrand(_PDFPageProxy_brand,this,_abortDelayedCleanup).call(this),!_classPrivateFieldGet(_pendingCleanup,this)||this.destroyed)return!1;if(e)return _classPrivateFieldSet(_delayedCleanupTimeout,this,setTimeout((()=>{_classPrivateFieldSet(_delayedCleanupTimeout,this,null),_assertClassBrand(_PDFPageProxy_brand,this,_tryCleanup).call(this,!1)}),DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:t,operatorList:n}of this._intentStates.values())if(t.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),_classPrivateFieldSet(_pendingCleanup,this,!1),!0}function _abortDelayedCleanup(){_classPrivateFieldGet(_delayedCleanupTimeout,this)&&(clearTimeout(_classPrivateFieldGet(_delayedCleanupTimeout,this)),_classPrivateFieldSet(_delayedCleanupTimeout,this,null))}exports.PDFPageProxy=PDFPageProxy;var _listeners=new WeakMap,_deferred=new WeakMap;class LoopbackPort{constructor(){_classPrivateFieldInitSpec(this,_listeners,new Set),_classPrivateFieldInitSpec(this,_deferred,Promise.resolve())}postMessage(e,t){const n={data:structuredClone(e,t?{transfer:t}:null)};_classPrivateFieldGet(_deferred,this).then((()=>{for(const e of _classPrivateFieldGet(_listeners,this))e.call(this,n)}))}addEventListener(e,t){_classPrivateFieldGet(_listeners,this).add(t)}removeEventListener(e,t){_classPrivateFieldGet(_listeners,this).delete(t)}terminate(){_classPrivateFieldGet(_listeners,this).clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===typeof document){var _document;const e=null===(_document=document)||void 0===_document||null===(_document=_document.currentScript)||void 0===_document?void 0:_document.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch{return!1}const r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t='importScripts("'.concat(e,'");');return URL.createObjectURL(new Blob([t]))};class PDFWorker{constructor(){let{name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,t){var r;if(null!==(r=_workerPorts._)&&void 0!==r&&r.has(t))throw new Error("Cannot use more than one PDFWorker per port.");return(_workerPorts._||(_workerPorts._=new WeakMap)).set(t,this),void this._initializeFromPort(t)}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:e}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),r=()=>{t.removeEventListener("error",o),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=()=>{this._webWorker||r()};t.addEventListener("error",o),n.on("test",(e=>{t.removeEventListener("error",o),this.destroyed?r():e?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())})),n.on("ready",(e=>{if(t.removeEventListener("error",o),this.destroyed)r();else try{a()}catch{this._setupFakeWorker()}}));const a=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void a()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake".concat(PDFWorkerUtil.fakeWorkerId++),r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const o=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=o,this._readyCapability.resolve(),o.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}destroy(){var e;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null===(e=_workerPorts._)||void 0===e||e.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){var t;if(null===e||void 0===e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const n=null===(t=_assertClassBrand(PDFWorker,this,_workerPorts)._)||void 0===t?void 0:t.get(e.port);if(n){if(n._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{var e;return(null===(e=globalThis.pdfjsWorker)||void 0===e?void 0:e.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}var _workerPorts={_:void 0};exports.PDFWorker=PDFWorker;var _methodPromises=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_passwordCapability=new WeakMap,_WorkerTransport_brand=new WeakSet;class WorkerTransport{constructor(e,t,n,r,o){_classPrivateMethodInitSpec(this,_WorkerTransport_brand),_classPrivateFieldInitSpec(this,_methodPromises,new Map),_classPrivateFieldInitSpec(this,_pageCache,new Map),_classPrivateFieldInitSpec(this,_pagePromises,new Map),_classPrivateFieldInitSpec(this,_passwordCapability,null),this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this._params=r,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=_util.RenderingIntentFlag.DISPLAY,a=_annotation_storage.SerializableEmpty;switch(e){case"any":o=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":o=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(e))}switch(t){case _util.AnnotationMode.DISABLE:o+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:o+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:o+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,a=(o&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(t))}return r&&(o+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:o,cacheKey:"".concat(o,"_").concat(a.hash),annotationStorageSerializable:a}}destroy(){var e;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,null===(e=_classPrivateFieldGet(_passwordCapability,this))||void 0===e||e.reject(new Error("Worker was destroyed during onPassword callback"));const t=[];for(const r of _classPrivateFieldGet(_pageCache,this).values())t.push(r._destroy());_classPrivateFieldGet(_pageCache,this).clear(),_classPrivateFieldGet(_pagePromises,this).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const n=this.messageHandler.sendWithPromise("Terminate",null);return t.push(n),Promise.all(t).then((()=>{var e;this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldGet(_methodPromises,this).clear(),this.filterFactory.destroy(),null===(e=this._networkStream)||void 0===e||e.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)(n instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=new _util.PromiseCapability,r=this._fullReader;return r.headersReady.then((()=>{var e;r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&(null===(e=t.onProgress)||void 0===e||e.call(t,this._lastProgress)),r.onProgress=e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})});n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function(e){let{value:n,done:r}=e;r?t.close():((0,_util.assert)(n instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(n),1,[n]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(e=>{let{pdfInfo:n}=e;this._numPages=n.numPages,this._htmlForXfa=n.htmlForXfa,delete n.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(n,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(_classPrivateFieldSet(_passwordCapability,this,new _util.PromiseCapability),t.onPassword){const r=e=>{e instanceof Error?_classPrivateFieldGet(_passwordCapability,this).reject(e):_classPrivateFieldGet(_passwordCapability,this).resolve({password:e})};try{t.onPassword(r,e.code)}catch(n){_classPrivateFieldGet(_passwordCapability,this).reject(n)}}else _classPrivateFieldGet(_passwordCapability,this).reject(new _util.PasswordException(e.message,e.code));return _classPrivateFieldGet(_passwordCapability,this).promise})),e.on("DataLoaded",(e=>{var n;null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||_classPrivateFieldGet(_pageCache,this).get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(t=>{var n;let[r,o,a]=t;if(!this.destroyed&&!this.commonObjs.has(r))switch(o){case"Font":const t=this._params;if("error"in a){const e=a.error;(0,_util.warn)("Error during font loading: ".concat(e)),this.commonObjs.resolve(r,e);break}const i=t.pdfBug&&null!==(n=globalThis.FontInspector)&&void 0!==n&&n.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,s=new _font_loader.FontFaceObject(a,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,inspectFont:i});this.fontLoader.bind(s).catch((t=>e.sendWithPromise("FontFallback",{id:r}))).finally((()=>{!t.fontExtraProperties&&s.data&&(s.data=null),this.commonObjs.resolve(r,s)}));break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(r,a);break;default:throw new Error("Got unknown common object type ".concat(o))}})),e.on("obj",(e=>{let[t,n,r,o]=e;if(this.destroyed)return;const a=_classPrivateFieldGet(_pageCache,this).get(n);if(!a.objs.has(t))switch(r){case"Image":if(a.objs.resolve(t,o),o){let e;if(o.bitmap){const{width:t,height:n}=o;e=t*n*4}else{var i;e=(null===(i=o.data)||void 0===i?void 0:i.length)||0}e>_util.MAX_IMAGE_SIZE_TO_CACHE&&(a._maybeCleanupAfterRender=!0)}break;case"Pattern":a.objs.resolve(t,o);break;default:throw new Error("Got unknown object type ".concat(r))}})),e.on("DocProgress",(e=>{var n;this.destroyed||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var e,t;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:n,transfers:r}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:n,filename:null!==(e=null===(t=this._fullReader)||void 0===t?void 0:t.filename)&&void 0!==e?e:null},r).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=_classPrivateFieldGet(_pagePromises,this).get(t);if(n)return n;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.pdfBug);return _classPrivateFieldGet(_pageCache,this).set(t,n),n}));return _classPrivateFieldGet(_pagePromises,this).set(t,r),r}getPageIndex(e){return"object"!==typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"GetFieldObjects")}hasJSActions(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return _assertClassBrand(_WorkerTransport_brand,this,_cacheSimpleMethod).call(this,"GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=_classPrivateFieldGet(_methodPromises,this).get(e);if(t)return t;const n=this.messageHandler.sendWithPromise(e,null).then((e=>{var t,n,r,o;return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:null!==(t=null===(n=this._fullReader)||void 0===n?void 0:n.filename)&&void 0!==t?t:null,contentLength:null!==(r=null===(o=this._fullReader)||void 0===o?void 0:o.contentLength)&&void 0!==r?r:null}}));return _classPrivateFieldGet(_methodPromises,this).set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const e of _classPrivateFieldGet(_pageCache,this).values())if(!e.cleanup())throw new Error("startCleanup: Page ".concat(e.pageNumber," is currently rendering."));this.commonObjs.clear(),e||this.fontLoader.clear(),_classPrivateFieldGet(_methodPromises,this).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:e,enableXfa:t}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e,enableXfa:t})}}function _cacheSimpleMethod(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=_classPrivateFieldGet(_methodPromises,this).get(e);if(n)return n;const r=this.messageHandler.sendWithPromise(e,t);return _classPrivateFieldGet(_methodPromises,this).set(e,r),r}var _objs=new WeakMap,_PDFObjects_brand=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_PDFObjects_brand),_classPrivateFieldInitSpec(this,_objs,Object.create(null))}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){const n=_assertClassBrand(_PDFObjects_brand,this,_ensureObj).call(this,e);return n.capability.promise.then((()=>t(n.data))),null}const n=_classPrivateFieldGet(_objs,this)[e];if(null===n||void 0===n||!n.capability.settled)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return n.data}has(e){const t=_classPrivateFieldGet(_objs,this)[e];return(null===t||void 0===t?void 0:t.capability.settled)||!1}resolve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=_assertClassBrand(_PDFObjects_brand,this,_ensureObj).call(this,e);n.data=t,n.capability.resolve()}clear(){for(const t in _classPrivateFieldGet(_objs,this)){var e;const{data:n}=_classPrivateFieldGet(_objs,this)[t];null===n||void 0===n||null===(e=n.bitmap)||void 0===e||e.close()}_classPrivateFieldSet(_objs,this,Object.create(null))}}function _ensureObj(e){var t;return(t=_classPrivateFieldGet(_objs,this))[e]||(t[e]={capability:new _util.PromiseCapability,data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(e){_classPrivateFieldInitSpec(this,_internalRenderTask,null),_classPrivateFieldSet(_internalRenderTask,this,e),this.onContinue=null}get promise(){return _classPrivateFieldGet(_internalRenderTask,this).capability.promise}cancel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;_classPrivateFieldGet(_internalRenderTask,this).cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=_classPrivateFieldGet(_internalRenderTask,this).operatorList;if(!e)return!1;const{annotationCanvasMap:t}=_classPrivateFieldGet(_internalRenderTask,this);return e.form||e.canvas&&(null===t||void 0===t?void 0:t.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(e){let{callback:t,params:n,objs:r,commonObjs:o,annotationCanvasMap:a,operatorList:i,pageIndex:s,canvasFactory:l,filterFactory:c,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:f=null}=e;this.callback=t,this.params=n,this.objs=r,this.commonObjs=o,this.annotationCanvasMap=a,this.operatorListIdx=null,this.operatorList=i,this._pageIndex=s,this.canvasFactory=l,this.filterFactory=c,this._pdfBug=d,this.pageColors=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===u&&"undefined"!==typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics(e){var t,n;let{transparency:r=!1,optionalContentConfig:o}=e;if(this.cancelled)return;if(this._canvas){if(_canvasInUse._.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_canvasInUse._.add(this._canvas)}this._pdfBug&&null!==(t=globalThis.StepperManager)&&void 0!==t&&t.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:a,viewport:i,transform:s,background:l}=this.params;this.gfx=new _canvas.CanvasGraphics(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:o},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:s,viewport:i,transparency:r,background:l}),this.operatorListIdx=0,this.graphicsReady=!0,null===(n=this.graphicsReadyCallback)||void 0===n||n.call(this)}cancel(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null===(e=this.gfx)||void 0===e||e.endDrawing(),_canvasInUse._.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),n))}operatorListChanged(){var e;this.graphicsReady?(null===(e=this.stepper)||void 0===e||e.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),_canvasInUse._.delete(this._canvas),this.callback())))}}var _canvasInUse={_:new WeakSet};const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var r=n(1),o=n(4),a=n(8);const i=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=i;var s=new WeakMap,l=new WeakMap,c=new WeakSet;class u{constructor(){_classPrivateMethodInitSpec(this,c),_classPrivateFieldInitSpec(this,s,!1),_classPrivateFieldInitSpec(this,l,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=_classPrivateFieldGet(l,this).get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return _classPrivateFieldGet(l,this).get(e)}remove(e){if(_classPrivateFieldGet(l,this).delete(e),0===_classPrivateFieldGet(l,this).size&&this.resetModified(),"function"===typeof this.onAnnotationEditor){for(const e of _classPrivateFieldGet(l,this).values())if(e instanceof o.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=_classPrivateFieldGet(l,this).get(e);let r=!1;if(void 0!==n)for(const[o,a]of Object.entries(t))n[o]!==a&&(r=!0,n[o]=a);else r=!0,_classPrivateFieldGet(l,this).set(e,t);r&&_assertClassBrand(c,this,d).call(this),t instanceof o.AnnotationEditor&&"function"===typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return _classPrivateFieldGet(l,this).has(e)}getAll(){return _classPrivateFieldGet(l,this).size>0?(0,r.objectFromMap)(_classPrivateFieldGet(l,this)):null}setAll(e){for(const[t,n]of Object.entries(e))this.setValue(t,n)}get size(){return _classPrivateFieldGet(l,this).size}resetModified(){_classPrivateFieldGet(s,this)&&(_classPrivateFieldSet(s,this,!1),"function"===typeof this.onResetModified&&this.onResetModified())}get print(){return new h(this)}get serializable(){if(0===_classPrivateFieldGet(l,this).size)return i;const e=new Map,t=new a.MurmurHash3_64,n=[],r=Object.create(null);let s=!1;for(const[a,i]of _classPrivateFieldGet(l,this)){const n=i instanceof o.AnnotationEditor?i.serialize(!1,r):i;n&&(e.set(a,n),t.update("".concat(a,":").concat(JSON.stringify(n))),s||(s=!!n.bitmap))}if(s)for(const o of e.values())o.bitmap&&n.push(o.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfers:n}:i}}function d(){_classPrivateFieldGet(s,this)||(_classPrivateFieldSet(s,this,!0),"function"===typeof this.onSetModified&&this.onSetModified())}t.AnnotationStorage=u;var f=new WeakMap;class h extends u{constructor(e){super(),_classPrivateFieldInitSpec(this,f,void 0);const{map:t,hash:n,transfers:r}=e.serializable,o=structuredClone(t,r?{transfer:r}:null);_classPrivateFieldSet(f,this,{map:o,hash:n,transfers:r})}get print(){(0,r.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return _classPrivateFieldGet(f,this)}}t.PrintAnnotationStorage=h},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var o=n(5),a=n(1),i=n(6),s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakMap,x=new WeakSet;class S{constructor(e){_classPrivateMethodInitSpec(this,x),_classPrivateFieldInitSpec(this,s,""),_classPrivateFieldInitSpec(this,l,!1),_classPrivateFieldInitSpec(this,c,null),_classPrivateFieldInitSpec(this,u,null),_classPrivateFieldInitSpec(this,d,null),_classPrivateFieldInitSpec(this,f,!1),_classPrivateFieldInitSpec(this,h,null),_classPrivateFieldInitSpec(this,p,this.focusin.bind(this)),_classPrivateFieldInitSpec(this,m,this.focusout.bind(this)),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldInitSpec(this,y,!1),_defineProperty(this,"_initialOptions",Object.create(null)),_defineProperty(this,"_uiManager",null),_defineProperty(this,"_focusEventsAllowed",!0),_defineProperty(this,"_l10nPromise",null),_classPrivateFieldInitSpec(this,b,!1),_classPrivateFieldInitSpec(this,w,S._zIndex++),this.constructor===S&&(0,a.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;const{rotation:t,rawDims:{pageWidth:n,pageHeight:r,pageX:o,pageY:i}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,r],this.pageTranslation=[o,i];const[C,_]=this.parentDimensions;this.x=e.x/C,this.y=e.y/_,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,a.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new I({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(S._l10nPromise||(S._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((t=>[t,e.get(t)])))),null!==t&&void 0!==t&&t.strings)for(const r of t.strings)S._l10nPromise.set(r,e.get(r));if(-1!==S._borderLineWidth)return;const n=getComputedStyle(document.documentElement);S._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){(0,a.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return _classPrivateFieldGet(b,this)}set _isDraggable(e){var t;_classPrivateFieldSet(b,this,e),null===(t=this.div)||void 0===t||t.classList.toggle("draggable",e)}center(){const[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=_classPrivateFieldGet(w,this)}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(_classPrivateFieldGet(g,this)?_classPrivateFieldSet(g,this,!1):this.parent.setSelected(this))}focusout(e){var t;if(!this._focusEventsAllowed)return;if(!this.isAttachedToDOM)return;const n=e.relatedTarget;null!==n&&void 0!==n&&n.closest("#".concat(this.id))||(e.preventDefault(),null!==(t=this.parent)&&void 0!==t&&t.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,r){const[o,a]=this.parentDimensions;[n,r]=this.screenToPageTranslation(n,r),this.x=(e+n)/o,this.y=(t+r)/a,this.fixAndSetPosition()}translate(e,t){_assertClassBrand(x,this,C).call(this,this.parentDimensions,e,t)}translateInPage(e,t){_assertClassBrand(x,this,C).call(this,this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){const[n,r]=this.parentDimensions;if(this.x+=e/n,this.y+=t/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:e,y:t}=this.div.getBoundingClientRect();this.parent.findNewParent(this,e,t)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:o,y:a}=this;const[i,s]=_assertClassBrand(x,this,_).call(this);o+=i,a+=s,this.div.style.left="".concat((100*o).toFixed(2),"%"),this.div.style.top="".concat((100*a).toFixed(2),"%"),this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[e,t]=this.pageDimensions;let{x:n,y:r,width:o,height:a}=this;switch(o*=e,a*=t,n*=e,r*=t,this.rotation){case 0:n=Math.max(0,Math.min(e-o,n)),r=Math.max(0,Math.min(t-a,r));break;case 90:n=Math.max(0,Math.min(e-a,n)),r=Math.min(t,Math.max(o,r));break;case 180:n=Math.min(e,Math.max(o,n)),r=Math.min(t,Math.max(a,r));break;case 270:n=Math.min(e,Math.max(a,n)),r=Math.max(0,Math.min(t-o,r))}this.x=n/=e,this.y=r/=t;const[i,s]=_assertClassBrand(x,this,_).call(this);n+=i,r+=s;const{style:l}=this.div;l.left="".concat((100*n).toFixed(2),"%"),l.top="".concat((100*r).toFixed(2),"%"),this.moveInDOM()}screenToPageTranslation(e,t){return E.call(S,e,t,this.parentRotation)}pageTranslationToScreen(e,t){return E.call(S,e,t,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,n]}=this,r=t*e,o=n*e;return a.FeatureTest.isCSSRoundSupported?[Math.round(r),Math.round(o)]:[r,o]}setDims(e,t){var n;const[r,o]=this.parentDimensions;this.div.style.width="".concat((100*e/r).toFixed(2),"%"),_classPrivateFieldGet(f,this)||(this.div.style.height="".concat((100*t/o).toFixed(2),"%")),null===(n=_classPrivateFieldGet(c,this))||void 0===n||n.classList.toggle("small",e<S.SMALL_EDITOR_SIZE||t<S.SMALL_EDITOR_SIZE)}fixDims(){const{style:e}=this.div,{height:t,width:n}=e,r=n.endsWith("%"),o=!_classPrivateFieldGet(f,this)&&t.endsWith("%");if(r&&o)return;const[a,i]=this.parentDimensions;r||(e.width="".concat((100*parseFloat(n)/a).toFixed(2),"%")),_classPrivateFieldGet(f,this)||o||(e.height="".concat((100*parseFloat(t)/i).toFixed(2),"%"))}getInitialTranslation(){return[0,0]}async addAltTextButton(){if(_classPrivateFieldGet(c,this))return;const e=_classPrivateFieldSet(c,this,document.createElement("button"));e.className="altText";const t=await S._l10nPromise.get("editor_alt_text_button_label");if(e.textContent=t,e.setAttribute("aria-label",t),e.tabIndex="0",e.addEventListener("contextmenu",i.noContextMenu),e.addEventListener("pointerdown",(e=>e.stopPropagation())),e.addEventListener("click",(e=>{e.preventDefault(),this._uiManager.editAltText(this)}),{capture:!0}),e.addEventListener("keydown",(t=>{t.target===e&&"Enter"===t.key&&(t.preventDefault(),this._uiManager.editAltText(this))})),_assertClassBrand(x,this,T).call(this),this.div.append(e),!S.SMALL_EDITOR_SIZE){const t=40;S.SMALL_EDITOR_SIZE=Math.min(128,Math.round(e.getBoundingClientRect().width*(1+t/100)))}}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:_classPrivateFieldGet(s,this),decorative:_classPrivateFieldGet(l,this)}}set altTextData(e){let{altText:t,decorative:n}=e;_classPrivateFieldGet(s,this)===t&&_classPrivateFieldGet(l,this)===n||(_classPrivateFieldSet(s,this,t),_classPrivateFieldSet(l,this,n),_assertClassBrand(x,this,T).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",_classPrivateFieldGet(p,this)),this.div.addEventListener("focusout",_classPrivateFieldGet(m,this));const[e,t]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth="".concat((100*t/e).toFixed(2),"%"),this.div.style.maxHeight="".concat((100*e/t).toFixed(2),"%"));const[n,r]=this.getInitialTranslation();return this.translate(n,r),(0,o.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){const{isMac:t}=a.FeatureTest.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(_classPrivateFieldSet(g,this,!0),_assertClassBrand(x,this,M).call(this,e))}moveInDOM(){var e;null===(e=this.parent)||void 0===e||e.moveEditorInDOM(this)}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition()}getRect(e,t){const n=this.parentScale,[r,o]=this.pageDimensions,[a,i]=this.pageTranslation,s=e/n,l=t/n,c=this.x*r,u=this.y*o,d=this.width*r,f=this.height*o;switch(this.rotation){case 0:return[c+s+a,o-u-l-f+i,c+s+d+a,o-u-l+i];case 90:return[c+l+a,o-u+s+i,c+l+f+a,o-u+s+d+i];case 180:return[c-s-d+a,o-u+l+i,c-s+a,o-u+l+f+i];case 270:return[c-l-f+a,o-u-s-d+i,c-l+a,o-u-s+i];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,r,o,a]=e,i=o-n,s=a-r;switch(this.rotation){case 0:return[n,t-a,i,s];case 90:return[n,t-r,s,i];case 180:return[o,t-r,i,s];case 270:return[o,t-a,s,i];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){_classPrivateFieldSet(y,this,!0)}disableEditMode(){_classPrivateFieldSet(y,this,!1)}isInEditMode(){return _classPrivateFieldGet(y,this)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var e,t;null===(e=this.div)||void 0===e||e.addEventListener("focusin",_classPrivateFieldGet(p,this)),null===(t=this.div)||void 0===t||t.addEventListener("focusout",_classPrivateFieldGet(m,this))}serialize(){(0,a.unreachable)("An editor must be serializable")}static deserialize(e,t,n){const r=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n});r.rotation=e.rotation;const[o,a]=r.pageDimensions,[i,s,l,c]=r.getRectInCurrentCoords(e.rect,a);return r.x=i/o,r.y=s/a,r.width=l/o,r.height=c/a,r}remove(){var e;this.div.removeEventListener("focusin",_classPrivateFieldGet(p,this)),this.div.removeEventListener("focusout",_classPrivateFieldGet(m,this)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),null===(e=_classPrivateFieldGet(c,this))||void 0===e||e.remove(),_classPrivateFieldSet(c,this,null),_classPrivateFieldSet(u,this,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(_assertClassBrand(x,this,P).call(this),_classPrivateFieldGet(h,this).classList.remove("hidden"))}select(){var e;this.makeResizable(),null===(e=this.div)||void 0===e||e.classList.add("selectedEditor")}unselect(){var e,t,n;null===(e=_classPrivateFieldGet(h,this))||void 0===e||e.classList.add("hidden"),null===(t=this.div)||void 0===t||t.classList.remove("selectedEditor"),null!==(n=this.div)&&void 0!==n&&n.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).hidden=!0)}enableEditing(){_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return _classPrivateFieldGet(v,this)}set isEditing(e){_classPrivateFieldSet(v,this,e),this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){_classPrivateFieldSet(f,this,!0);const n=e/t,{style:r}=this.div;r.aspectRatio=n,r.height="auto"}static get MIN_SIZE(){return 16}}function C(e,t,n){let[r,o]=e;[t,n]=this.screenToPageTranslation(t,n),this.x+=t/r,this.y+=n/o,this.fixAndSetPosition()}function _(){const[e,t]=this.parentDimensions,{_borderLineWidth:n}=r,o=n/e,a=n/t;switch(this.rotation){case 90:return[-o,a];case 180:return[o,a];case 270:return[o,-a];default:return[-o,-a]}}function E(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}function k(e){switch(e){case 90:{const[e,t]=this.pageDimensions;return[0,-e/t,t/e,0]}case 180:return[-1,0,0,-1];case 270:{const[e,t]=this.pageDimensions;return[0,e/t,-t/e,0]}default:return[1,0,0,1]}}function P(){if(_classPrivateFieldGet(h,this))return;_classPrivateFieldSet(h,this,document.createElement("div")),_classPrivateFieldGet(h,this).classList.add("resizers");const e=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||e.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const t of e){const e=document.createElement("div");_classPrivateFieldGet(h,this).append(e),e.classList.add("resizer",t),e.addEventListener("pointerdown",_assertClassBrand(x,this,A).bind(this,t)),e.addEventListener("contextmenu",i.noContextMenu)}this.div.prepend(_classPrivateFieldGet(h,this))}function A(e,t){t.preventDefault();const{isMac:n}=a.FeatureTest.platform;if(0!==t.button||t.ctrlKey&&n)return;const r=_assertClassBrand(x,this,O).bind(this,e),o=this._isDraggable;this._isDraggable=!1;const i={passive:!0,capture:!0};window.addEventListener("pointermove",r,i);const s=this.x,l=this.y,c=this.width,u=this.height,d=this.parent.div.style.cursor,f=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const h=()=>{this._isDraggable=o,window.removeEventListener("pointerup",h),window.removeEventListener("blur",h),window.removeEventListener("pointermove",r,i),this.parent.div.style.cursor=d,this.div.style.cursor=f;const e=this.x,t=this.y,n=this.width,a=this.height;e===s&&t===l&&n===c&&a===u||this.addCommands({cmd:()=>{this.width=n,this.height=a,this.x=e,this.y=t;const[r,o]=this.parentDimensions;this.setDims(r*n,o*a),this.fixAndSetPosition()},undo:()=>{this.width=c,this.height=u,this.x=s,this.y=l;const[e,t]=this.parentDimensions;this.setDims(e*c,t*u),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",h),window.addEventListener("blur",h)}function O(e,t){const[n,o]=this.parentDimensions,a=this.x,i=this.y,s=this.width,l=this.height,c=r.MIN_SIZE/n,u=r.MIN_SIZE/o,d=e=>Math.round(1e4*e)/1e4,f=_assertClassBrand(x,this,k).call(this,this.rotation),h=(e,t)=>[f[0]*e+f[2]*t,f[1]*e+f[3]*t],p=_assertClassBrand(x,this,k).call(this,360-this.rotation);let m,g,v=!1,y=!1;switch(e){case"topLeft":v=!0,m=(e,t)=>[0,0],g=(e,t)=>[e,t];break;case"topMiddle":m=(e,t)=>[e/2,0],g=(e,t)=>[e/2,t];break;case"topRight":v=!0,m=(e,t)=>[e,0],g=(e,t)=>[0,t];break;case"middleRight":y=!0,m=(e,t)=>[e,t/2],g=(e,t)=>[0,t/2];break;case"bottomRight":v=!0,m=(e,t)=>[e,t],g=(e,t)=>[0,0];break;case"bottomMiddle":m=(e,t)=>[e/2,t],g=(e,t)=>[e/2,0];break;case"bottomLeft":v=!0,m=(e,t)=>[0,t],g=(e,t)=>[e,0];break;case"middleLeft":y=!0,m=(e,t)=>[0,t/2],g=(e,t)=>[e,t/2]}const b=m(s,l),w=g(s,l);let S=h(...w);const C=d(a+S[0]),_=d(i+S[1]);let E=1,P=1,[A,O]=this.screenToPageTranslation(t.movementX,t.movementY);var T,M;if([A,O]=(T=A/n,M=O/o,[p[0]*T+p[2]*M,p[1]*T+p[3]*M]),v){const e=Math.hypot(s,l);E=P=Math.max(Math.min(Math.hypot(w[0]-b[0]-A,w[1]-b[1]-O)/e,1/s,1/l),c/s,u/l)}else y?E=Math.max(c,Math.min(1,Math.abs(w[0]-b[0]-A)))/s:P=Math.max(u,Math.min(1,Math.abs(w[1]-b[1]-O)))/l;const I=d(s*E),R=d(l*P);S=h(...g(I,R));const F=C-S[0],N=_-S[1];this.width=I,this.height=R,this.x=F,this.y=N,this.setDims(n*I,o*R),this.fixAndSetPosition()}async function T(){const e=_classPrivateFieldGet(c,this);if(!e)return;var t;if(!_classPrivateFieldGet(s,this)&&!_classPrivateFieldGet(l,this))return e.classList.remove("done"),void(null===(t=_classPrivateFieldGet(u,this))||void 0===t||t.remove());r._l10nPromise.get("editor_alt_text_edit_button_label").then((t=>{e.setAttribute("aria-label",t)}));let n=_classPrivateFieldGet(u,this);if(!n){_classPrivateFieldSet(u,this,n=document.createElement("span")),n.className="tooltip",n.setAttribute("role","tooltip");const t=n.id="alt-text-tooltip-".concat(this.id);e.setAttribute("aria-describedby",t);const r=100;e.addEventListener("mouseenter",(()=>{_classPrivateFieldSet(d,this,setTimeout((()=>{_classPrivateFieldSet(d,this,null),_classPrivateFieldGet(u,this).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})}),r))})),e.addEventListener("mouseleave",(()=>{var e;clearTimeout(_classPrivateFieldGet(d,this)),_classPrivateFieldSet(d,this,null),null===(e=_classPrivateFieldGet(u,this))||void 0===e||e.classList.remove("show")}))}e.classList.add("done"),n.innerText=_classPrivateFieldGet(l,this)?await r._l10nPromise.get("editor_alt_text_decorative_tooltip"):_classPrivateFieldGet(s,this),n.parentNode||e.append(n)}function M(e){if(!this._isDraggable)return;const t=this._uiManager.isSelected(this);let n,r;this._uiManager.setUpDragSession(),t&&(n={passive:!0,capture:!0},r=e=>{const[t,n]=this.screenToPageTranslation(e.movementX,e.movementY);this._uiManager.dragSelectedEditors(t,n)},window.addEventListener("pointermove",r,n));const o=()=>{if(window.removeEventListener("pointerup",o),window.removeEventListener("blur",o),t&&window.removeEventListener("pointermove",r,n),_classPrivateFieldSet(g,this,!1),!this._uiManager.endDragSession()){const{isMac:t}=a.FeatureTest.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",o),window.addEventListener("blur",o)}r=S,_defineProperty(S,"_borderLineWidth",-1),_defineProperty(S,"_colorManager",new o.ColorManager),_defineProperty(S,"_zIndex",1),_defineProperty(S,"SMALL_EDITOR_SIZE",0),t.AnnotationEditor=S;class I extends S{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const r of n)t.addEventListener(r,e[r].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var o=n(1),a=n(6),i=new WeakMap;class s{constructor(){_classPrivateFieldInitSpec(this,i,0)}getId(){var e,t;return"".concat(o.AnnotationEditorPrefix).concat((_classPrivateFieldSet(i,this,(e=_classPrivateFieldGet(i,this),t=e++,e)),t))}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;class f{constructor(){_classPrivateMethodInitSpec(this,d),_classPrivateFieldInitSpec(this,l,(0,o.getUuid)()),_classPrivateFieldInitSpec(this,c,0),_classPrivateFieldInitSpec(this,u,null)}static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>';const n=t.decode().then((()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])));return(0,o.shadow)(this,"_isSVGFittingCanvas",n)}async getFromFile(e){const{lastModified:t,name:n,size:r,type:o}=e;return _assertClassBrand(d,this,h).call(this,"".concat(t,"_").concat(n,"_").concat(r,"_").concat(o),e)}async getFromUrl(e){return _assertClassBrand(d,this,h).call(this,e,e)}async getFromId(e){_classPrivateFieldGet(u,this)||_classPrivateFieldSet(u,this,new Map);const t=_classPrivateFieldGet(u,this).get(e);return t?t.bitmap?(t.refCounter+=1,t):t.file?this.getFromFile(t.file):this.getFromUrl(t.url):null}getSvgUrl(e){const t=_classPrivateFieldGet(u,this).get(e);return null!==t&&void 0!==t&&t.isSvg?t.svgUrl:null}deleteId(e){_classPrivateFieldGet(u,this)||_classPrivateFieldSet(u,this,new Map);const t=_classPrivateFieldGet(u,this).get(e);t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}isValidId(e){return e.startsWith("image_".concat(_classPrivateFieldGet(l,this),"_"))}}async function h(e,t){var n;_classPrivateFieldGet(u,this)||_classPrivateFieldSet(u,this,new Map);let o=_classPrivateFieldGet(u,this).get(e);if(null===o)return null;if(null!==(n=o)&&void 0!==n&&n.bitmap)return o.refCounter+=1,o;try{var a,i;let e;if(o||(o={bitmap:null,id:"image_".concat(_classPrivateFieldGet(l,this),"_").concat((_classPrivateFieldSet(c,this,(a=_classPrivateFieldGet(c,this),i=a++,a)),i)),refCounter:0,isSvg:!1}),"string"===typeof t){o.url=t;const n=await fetch(t);if(!n.ok)throw new Error(n.statusText);e=await n.blob()}else e=o.file=t;if("image/svg+xml"===e.type){const t=r._isSVGFittingCanvas,n=new FileReader,a=new Image,i=new Promise(((e,r)=>{a.onload=()=>{o.bitmap=a,o.isSvg=!0,e()},n.onload=async()=>{const e=o.svgUrl=n.result;a.src=await t?"".concat(e,"#svgView(preserveAspectRatio(none))"):e},a.onerror=n.onerror=r}));n.readAsDataURL(e),await i}else o.bitmap=await createImageBitmap(e);o.refCounter=1}catch(s){console.error(s),o=null}return _classPrivateFieldGet(u,this).set(e,o),o&&_classPrivateFieldGet(u,this).set(o.id,o),o}r=f;var p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap;class y{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128;_classPrivateFieldInitSpec(this,p,[]),_classPrivateFieldInitSpec(this,m,!1),_classPrivateFieldInitSpec(this,g,void 0),_classPrivateFieldInitSpec(this,v,-1),_classPrivateFieldSet(g,this,e)}add(e){let{cmd:t,undo:n,mustExec:r,type:o=NaN,overwriteIfSameType:a=!1,keepUndo:i=!1}=e;if(r&&t(),_classPrivateFieldGet(m,this))return;const s={cmd:t,undo:n,type:o};if(-1===_classPrivateFieldGet(v,this))return _classPrivateFieldGet(p,this).length>0&&(_classPrivateFieldGet(p,this).length=0),_classPrivateFieldSet(v,this,0),void _classPrivateFieldGet(p,this).push(s);if(a&&_classPrivateFieldGet(p,this)[_classPrivateFieldGet(v,this)].type===o)return i&&(s.undo=_classPrivateFieldGet(p,this)[_classPrivateFieldGet(v,this)].undo),void(_classPrivateFieldGet(p,this)[_classPrivateFieldGet(v,this)]=s);const l=_classPrivateFieldGet(v,this)+1;l===_classPrivateFieldGet(g,this)?_classPrivateFieldGet(p,this).splice(0,1):(_classPrivateFieldSet(v,this,l),l<_classPrivateFieldGet(p,this).length&&_classPrivateFieldGet(p,this).splice(l)),_classPrivateFieldGet(p,this).push(s)}undo(){-1!==_classPrivateFieldGet(v,this)&&(_classPrivateFieldSet(m,this,!0),_classPrivateFieldGet(p,this)[_classPrivateFieldGet(v,this)].undo(),_classPrivateFieldSet(m,this,!1),_classPrivateFieldSet(v,this,_classPrivateFieldGet(v,this)-1))}redo(){_classPrivateFieldGet(v,this)<_classPrivateFieldGet(p,this).length-1&&(_classPrivateFieldSet(v,this,_classPrivateFieldGet(v,this)+1),_classPrivateFieldSet(m,this,!0),_classPrivateFieldGet(p,this)[_classPrivateFieldGet(v,this)].cmd(),_classPrivateFieldSet(m,this,!1))}hasSomethingToUndo(){return-1!==_classPrivateFieldGet(v,this)}hasSomethingToRedo(){return _classPrivateFieldGet(v,this)<_classPrivateFieldGet(p,this).length-1}destroy(){_classPrivateFieldSet(p,this,null)}}t.CommandManager=y;var b=new WeakSet;class w{constructor(e){_classPrivateMethodInitSpec(this,b),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:t}=o.FeatureTest.platform;for(const[n,r,o={}]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),{callback:r,options:o}),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,{callback:r,options:o}),this.allKeys.add(e.split("+").at(-1)))}}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(_assertClassBrand(b,this,x).call(this,t));if(!n)return;const{callback:r,options:{bubbles:o=!1,args:a=[],checker:i=null}}=n;i&&!i(e,t)||(r.bind(e,...a)(),o||(t.stopPropagation(),t.preventDefault()))}}function x(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}t.KeyboardManager=w;class S{get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return(0,a.getColorValues)(e),(0,o.shadow)(this,"_colors",e)}convert(e){const t=(0,a.getRGB)(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[n,r]of this._colors)if(r.every(((e,n)=>e===t[n])))return S._colorsMapping.get(n);return t}getHexCode(e){const t=this._colors.get(e);return t?o.Util.makeHexColor(...t):e}}_defineProperty(S,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),t.ColorManager=S;var C=new WeakMap,_=new WeakMap,E=new WeakMap,k=new WeakMap,P=new WeakMap,A=new WeakMap,O=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,R=new WeakMap,F=new WeakMap,N=new WeakMap,j=new WeakMap,D=new WeakMap,L=new WeakMap,B=new WeakMap,z=new WeakMap,H=new WeakMap,W=new WeakMap,G=new WeakMap,V=new WeakMap,U=new WeakMap,q=new WeakMap,K=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,Q=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=new WeakSet;class oe{static get _keyboardManager(){const e=oe.prototype,t=e=>{const{activeElement:t}=document;return t&&_classPrivateFieldGet(te,e).contains(t)&&e.hasSomethingToControl()},n=this.TRANSLATE_SMALL,r=this.TRANSLATE_BIG;return(0,o.shadow)(this,"_keyboardManager",new w([[["ctrl+a","mac+meta+a"],e.selectAll],[["ctrl+z","mac+meta+z"],e.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-r,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:t}]]))}constructor(e,t,n,r,i,l){_classPrivateMethodInitSpec(this,re),_classPrivateFieldInitSpec(this,C,null),_classPrivateFieldInitSpec(this,_,new Map),_classPrivateFieldInitSpec(this,E,new Map),_classPrivateFieldInitSpec(this,k,null),_classPrivateFieldInitSpec(this,P,null),_classPrivateFieldInitSpec(this,A,new y),_classPrivateFieldInitSpec(this,O,0),_classPrivateFieldInitSpec(this,T,new Set),_classPrivateFieldInitSpec(this,M,null),_classPrivateFieldInitSpec(this,I,null),_classPrivateFieldInitSpec(this,R,new Set),_classPrivateFieldInitSpec(this,F,null),_classPrivateFieldInitSpec(this,N,new s),_classPrivateFieldInitSpec(this,j,!1),_classPrivateFieldInitSpec(this,D,!1),_classPrivateFieldInitSpec(this,L,null),_classPrivateFieldInitSpec(this,B,o.AnnotationEditorType.NONE),_classPrivateFieldInitSpec(this,z,new Set),_classPrivateFieldInitSpec(this,H,null),_classPrivateFieldInitSpec(this,W,this.blur.bind(this)),_classPrivateFieldInitSpec(this,G,this.focus.bind(this)),_classPrivateFieldInitSpec(this,V,this.copy.bind(this)),_classPrivateFieldInitSpec(this,U,this.cut.bind(this)),_classPrivateFieldInitSpec(this,q,this.paste.bind(this)),_classPrivateFieldInitSpec(this,K,this.keydown.bind(this)),_classPrivateFieldInitSpec(this,X,this.onEditingAction.bind(this)),_classPrivateFieldInitSpec(this,Y,this.onPageChanging.bind(this)),_classPrivateFieldInitSpec(this,Z,this.onScaleChanging.bind(this)),_classPrivateFieldInitSpec(this,$,this.onRotationChanging.bind(this)),_classPrivateFieldInitSpec(this,Q,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}),_classPrivateFieldInitSpec(this,J,[0,0]),_classPrivateFieldInitSpec(this,ee,null),_classPrivateFieldInitSpec(this,te,null),_classPrivateFieldInitSpec(this,ne,null),_classPrivateFieldSet(te,this,e),_classPrivateFieldSet(ne,this,t),_classPrivateFieldSet(k,this,n),this._eventBus=r,this._eventBus._on("editingaction",_classPrivateFieldGet(X,this)),this._eventBus._on("pagechanging",_classPrivateFieldGet(Y,this)),this._eventBus._on("scalechanging",_classPrivateFieldGet(Z,this)),this._eventBus._on("rotationchanging",_classPrivateFieldGet($,this)),_classPrivateFieldSet(P,this,i.annotationStorage),_classPrivateFieldSet(F,this,i.filterFactory),_classPrivateFieldSet(H,this,l),this.viewParameters={realScale:a.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){_assertClassBrand(re,this,le).call(this),_assertClassBrand(re,this,ie).call(this),this._eventBus._off("editingaction",_classPrivateFieldGet(X,this)),this._eventBus._off("pagechanging",_classPrivateFieldGet(Y,this)),this._eventBus._off("scalechanging",_classPrivateFieldGet(Z,this)),this._eventBus._off("rotationchanging",_classPrivateFieldGet($,this));for(const e of _classPrivateFieldGet(E,this).values())e.destroy();_classPrivateFieldGet(E,this).clear(),_classPrivateFieldGet(_,this).clear(),_classPrivateFieldGet(R,this).clear(),_classPrivateFieldSet(C,this,null),_classPrivateFieldGet(z,this).clear(),_classPrivateFieldGet(A,this).destroy(),_classPrivateFieldGet(k,this).destroy()}get hcmFilter(){return(0,o.shadow)(this,"hcmFilter",_classPrivateFieldGet(H,this)?_classPrivateFieldGet(F,this).addHCMFilter(_classPrivateFieldGet(H,this).foreground,_classPrivateFieldGet(H,this).background):"none")}get direction(){return(0,o.shadow)(this,"direction",getComputedStyle(_classPrivateFieldGet(te,this)).direction)}editAltText(e){var t;null===(t=_classPrivateFieldGet(k,this))||void 0===t||t.editAltText(this,e)}onPageChanging(e){let{pageNumber:t}=e;_classPrivateFieldSet(O,this,t-1)}focusMainContainer(){_classPrivateFieldGet(te,this).focus()}findParent(e,t){for(const n of _classPrivateFieldGet(E,this).values()){const{x:r,y:o,width:a,height:i}=n.div.getBoundingClientRect();if(e>=r&&e<=r+a&&t>=o&&t<=o+i)return n}return null}disableUserSelect(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classPrivateFieldGet(ne,this).classList.toggle("noUserSelect",e)}addShouldRescale(e){_classPrivateFieldGet(R,this).add(e)}removeShouldRescale(e){_classPrivateFieldGet(R,this).delete(e)}onScaleChanging(e){let{scale:t}=e;this.commitOrRemove(),this.viewParameters.realScale=t*a.PixelsPerInch.PDF_TO_CSS_UNITS;for(const n of _classPrivateFieldGet(R,this))n.onScaleChanging()}onRotationChanging(e){let{pagesRotation:t}=e;this.commitOrRemove(),this.viewParameters.rotation=t}addToAnnotationStorage(e){e.isEmpty()||!_classPrivateFieldGet(P,this)||_classPrivateFieldGet(P,this).has(e.id)||_classPrivateFieldGet(P,this).setValue(e.id,e)}blur(){if(!this.hasSelection)return;const{activeElement:e}=document;for(const t of _classPrivateFieldGet(z,this))if(t.div.contains(e)){_classPrivateFieldSet(L,this,[t,e]),t._focusEventsAllowed=!1;break}}focus(){if(!_classPrivateFieldGet(L,this))return;const[e,t]=_classPrivateFieldGet(L,this);_classPrivateFieldSet(L,this,null),t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus()}addEditListeners(){_assertClassBrand(re,this,se).call(this),_assertClassBrand(re,this,ce).call(this)}removeEditListeners(){_assertClassBrand(re,this,le).call(this),_assertClassBrand(re,this,ue).call(this)}copy(e){var t;if(e.preventDefault(),null===(t=_classPrivateFieldGet(C,this))||void 0===t||t.commitOrRemove(),!this.hasSelection)return;const n=[];for(const r of _classPrivateFieldGet(z,this)){const e=r.serialize(!0);e&&n.push(e)}0!==n.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();const{clipboardData:t}=e;for(const o of t.items)for(const e of _classPrivateFieldGet(I,this))if(e.isHandlingMimeForPasting(o.type))return void e.paste(o,this.currentLayer);let n=t.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(a){return void(0,o.warn)('paste: "'.concat(a.message,'".'))}if(!Array.isArray(n))return;this.unselectAll();const r=this.currentLayer;try{const e=[];for(const a of n){const t=r.deserialize(a);if(!t)return;e.push(t)}const t=()=>{for(const t of e)_assertClassBrand(re,this,me).call(this,t);_assertClassBrand(re,this,ve).call(this,e)},o=()=>{for(const t of e)t.remove()};this.addCommands({cmd:t,undo:o,mustExec:!0})}catch(a){(0,o.warn)('paste: "'.concat(a.message,'".'))}}keydown(e){var t;null!==(t=this.getActive())&&void 0!==t&&t.shouldGetKeyboardEvents()||oe._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}setEditingState(e){e?(_assertClassBrand(re,this,ae).call(this),_assertClassBrand(re,this,se).call(this),_assertClassBrand(re,this,ce).call(this),_assertClassBrand(re,this,de).call(this,{isEditing:_classPrivateFieldGet(B,this)!==o.AnnotationEditorType.NONE,isEmpty:_assertClassBrand(re,this,ge).call(this),hasSomethingToUndo:_classPrivateFieldGet(A,this).hasSomethingToUndo(),hasSomethingToRedo:_classPrivateFieldGet(A,this).hasSomethingToRedo(),hasSelectedEditor:!1})):(_assertClassBrand(re,this,ie).call(this),_assertClassBrand(re,this,le).call(this),_assertClassBrand(re,this,ue).call(this),_assertClassBrand(re,this,de).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!_classPrivateFieldGet(I,this)){_classPrivateFieldSet(I,this,e);for(const e of _classPrivateFieldGet(I,this))_assertClassBrand(re,this,fe).call(this,e.defaultPropertiesToUpdate)}}getId(){return _classPrivateFieldGet(N,this).getId()}get currentLayer(){return _classPrivateFieldGet(E,this).get(_classPrivateFieldGet(O,this))}getLayer(e){return _classPrivateFieldGet(E,this).get(e)}get currentPageIndex(){return _classPrivateFieldGet(O,this)}addLayer(e){_classPrivateFieldGet(E,this).set(e.pageIndex,e),_classPrivateFieldGet(j,this)?e.enable():e.disable()}removeLayer(e){_classPrivateFieldGet(E,this).delete(e.pageIndex)}updateMode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_classPrivateFieldGet(B,this)!==e){if(_classPrivateFieldSet(B,this,e),e===o.AnnotationEditorType.NONE)return this.setEditingState(!1),void _assertClassBrand(re,this,pe).call(this);this.setEditingState(!0),_assertClassBrand(re,this,he).call(this),this.unselectAll();for(const t of _classPrivateFieldGet(E,this).values())t.updateMode(e);if(t)for(const e of _classPrivateFieldGet(_,this).values())if(e.annotationElementId===t){this.setSelected(e),e.enterInEditMode();break}}}updateToolbar(e){e!==_classPrivateFieldGet(B,this)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(_classPrivateFieldGet(I,this))if(e!==o.AnnotationEditorParamsType.CREATE){for(const n of _classPrivateFieldGet(z,this))n.updateParams(e,t);for(const n of _classPrivateFieldGet(I,this))n.updateDefaultParams(e,t)}else this.currentLayer.addNewEditor(e)}enableWaiting(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(_classPrivateFieldGet(D,this)!==e){_classPrivateFieldSet(D,this,e);for(const t of _classPrivateFieldGet(E,this).values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}getEditors(e){const t=[];for(const n of _classPrivateFieldGet(_,this).values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return _classPrivateFieldGet(_,this).get(e)}addEditor(e){_classPrivateFieldGet(_,this).set(e.id,e)}removeEditor(e){var t;_classPrivateFieldGet(_,this).delete(e.id),this.unselect(e),e.annotationElementId&&_classPrivateFieldGet(T,this).has(e.annotationElementId)||null===(t=_classPrivateFieldGet(P,this))||void 0===t||t.remove(e.id)}addDeletedAnnotationElement(e){_classPrivateFieldGet(T,this).add(e.annotationElementId),e.deleted=!0}isDeletedAnnotationElement(e){return _classPrivateFieldGet(T,this).has(e)}removeDeletedAnnotationElement(e){_classPrivateFieldGet(T,this).delete(e.annotationElementId),e.deleted=!1}setActiveEditor(e){_classPrivateFieldGet(C,this)!==e&&(_classPrivateFieldSet(C,this,e),e&&_assertClassBrand(re,this,fe).call(this,e.propertiesToUpdate))}toggleSelected(e){if(_classPrivateFieldGet(z,this).has(e))return _classPrivateFieldGet(z,this).delete(e),e.unselect(),void _assertClassBrand(re,this,de).call(this,{hasSelectedEditor:this.hasSelection});_classPrivateFieldGet(z,this).add(e),e.select(),_assertClassBrand(re,this,fe).call(this,e.propertiesToUpdate),_assertClassBrand(re,this,de).call(this,{hasSelectedEditor:!0})}setSelected(e){for(const t of _classPrivateFieldGet(z,this))t!==e&&t.unselect();_classPrivateFieldGet(z,this).clear(),_classPrivateFieldGet(z,this).add(e),e.select(),_assertClassBrand(re,this,fe).call(this,e.propertiesToUpdate),_assertClassBrand(re,this,de).call(this,{hasSelectedEditor:!0})}isSelected(e){return _classPrivateFieldGet(z,this).has(e)}unselect(e){e.unselect(),_classPrivateFieldGet(z,this).delete(e),_assertClassBrand(re,this,de).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==_classPrivateFieldGet(z,this).size}undo(){_classPrivateFieldGet(A,this).undo(),_assertClassBrand(re,this,de).call(this,{hasSomethingToUndo:_classPrivateFieldGet(A,this).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:_assertClassBrand(re,this,ge).call(this)})}redo(){_classPrivateFieldGet(A,this).redo(),_assertClassBrand(re,this,de).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:_classPrivateFieldGet(A,this).hasSomethingToRedo(),isEmpty:_assertClassBrand(re,this,ge).call(this)})}addCommands(e){_classPrivateFieldGet(A,this).add(e),_assertClassBrand(re,this,de).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:_assertClassBrand(re,this,ge).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const e=[..._classPrivateFieldGet(z,this)];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)_assertClassBrand(re,this,me).call(this,t)},mustExec:!0})}commitOrRemove(){var e;null===(e=_classPrivateFieldGet(C,this))||void 0===e||e.commitOrRemove()}hasSomethingToControl(){return _classPrivateFieldGet(C,this)||this.hasSelection}selectAll(){for(const e of _classPrivateFieldGet(z,this))e.commit();_assertClassBrand(re,this,ve).call(this,_classPrivateFieldGet(_,this).values())}unselectAll(){if(_classPrivateFieldGet(C,this))_classPrivateFieldGet(C,this).commitOrRemove();else if(this.hasSelection){for(const e of _classPrivateFieldGet(z,this))e.unselect();_classPrivateFieldGet(z,this).clear(),_assertClassBrand(re,this,de).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),!this.hasSelection)return;_classPrivateFieldGet(J,this)[0]+=e,_classPrivateFieldGet(J,this)[1]+=t;const[n,r]=_classPrivateFieldGet(J,this),o=[..._classPrivateFieldGet(z,this)];_classPrivateFieldGet(ee,this)&&clearTimeout(_classPrivateFieldGet(ee,this)),_classPrivateFieldSet(ee,this,setTimeout((()=>{_classPrivateFieldSet(ee,this,null),_classPrivateFieldGet(J,this)[0]=_classPrivateFieldGet(J,this)[1]=0,this.addCommands({cmd:()=>{for(const e of o)_classPrivateFieldGet(_,this).has(e.id)&&e.translateInPage(n,r)},undo:()=>{for(const e of o)_classPrivateFieldGet(_,this).has(e.id)&&e.translateInPage(-n,-r)},mustExec:!1})}),1e3));for(const a of o)a.translateInPage(e,t)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),_classPrivateFieldSet(M,this,new Map);for(const e of _classPrivateFieldGet(z,this))_classPrivateFieldGet(M,this).set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!_classPrivateFieldGet(M,this))return!1;this.disableUserSelect(!1);const e=_classPrivateFieldGet(M,this);_classPrivateFieldSet(M,this,null);let t=!1;for(const[{x:r,y:o,pageIndex:a},i]of e)i.newX=r,i.newY=o,i.newPageIndex=a,t||(t=r!==i.savedX||o!==i.savedY||a!==i.savedPageIndex);if(!t)return!1;const n=(e,t,n,r)=>{if(_classPrivateFieldGet(_,this).has(e.id)){const o=_classPrivateFieldGet(E,this).get(r);o?e._setParentAndPosition(o,t,n):(e.pageIndex=r,e.x=t,e.y=n)}};return this.addCommands({cmd:()=>{for(const[t,{newX:r,newY:o,newPageIndex:a}]of e)n(t,r,o,a)},undo:()=>{for(const[t,{savedX:r,savedY:o,savedPageIndex:a}]of e)n(t,r,o,a)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(_classPrivateFieldGet(M,this))for(const n of _classPrivateFieldGet(M,this).keys())n.drag(e,t)}rebuild(e){if(null===e.parent){const t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}isActive(e){return _classPrivateFieldGet(C,this)===e}getActive(){return _classPrivateFieldGet(C,this)}getMode(){return _classPrivateFieldGet(B,this)}get imageManager(){return(0,o.shadow)(this,"imageManager",new f)}}function ae(){window.addEventListener("focus",_classPrivateFieldGet(G,this)),window.addEventListener("blur",_classPrivateFieldGet(W,this))}function ie(){window.removeEventListener("focus",_classPrivateFieldGet(G,this)),window.removeEventListener("blur",_classPrivateFieldGet(W,this))}function se(){window.addEventListener("keydown",_classPrivateFieldGet(K,this),{capture:!0})}function le(){window.removeEventListener("keydown",_classPrivateFieldGet(K,this),{capture:!0})}function ce(){document.addEventListener("copy",_classPrivateFieldGet(V,this)),document.addEventListener("cut",_classPrivateFieldGet(U,this)),document.addEventListener("paste",_classPrivateFieldGet(q,this))}function ue(){document.removeEventListener("copy",_classPrivateFieldGet(V,this)),document.removeEventListener("cut",_classPrivateFieldGet(U,this)),document.removeEventListener("paste",_classPrivateFieldGet(q,this))}function de(e){Object.entries(e).some((e=>{let[t,n]=e;return _classPrivateFieldGet(Q,this)[t]!==n}))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(_classPrivateFieldGet(Q,this),e)})}function fe(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}function he(){if(!_classPrivateFieldGet(j,this)){_classPrivateFieldSet(j,this,!0);for(const e of _classPrivateFieldGet(E,this).values())e.enable()}}function pe(){if(this.unselectAll(),_classPrivateFieldGet(j,this)){_classPrivateFieldSet(j,this,!1);for(const e of _classPrivateFieldGet(E,this).values())e.disable()}}function me(e){const t=_classPrivateFieldGet(E,this).get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}function ge(){if(0===_classPrivateFieldGet(_,this).size)return!0;if(1===_classPrivateFieldGet(_,this).size)for(const e of _classPrivateFieldGet(_,this).values())return e.isEmpty();return!1}function ve(e){_classPrivateFieldGet(z,this).clear();for(const t of e)t.isEmpty()||(_classPrivateFieldGet(z,this).add(t),t.select());_assertClassBrand(re,this,de).call(this,{hasSelectedEditor:!0})}_defineProperty(oe,"TRANSLATE_SMALL",1),_defineProperty(oe,"TRANSLATE_BIG",10),t.AnnotationEditorUIManager=oe},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const r=window.getComputedStyle(t).color;e.set(n,L(r))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:n,c:r,d:o,e:a,f:i}=e.getTransform();return[t,n,r,o,a,i]},t.getCurrentTransformInverse=function(e){const{a:t,b:n,c:r,d:o,e:a,f:i}=e.getTransform().invertSelf();return[t,n,r,o,a,i]},t.getFilenameFromUrl=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||([e]=e.split(/[#?]/,1)),e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(N(e))return(0,a.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let o=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(o&&(o=o[0],o.includes("%")))try{o=n.exec(decodeURIComponent(o))[0]}catch{}return o||t},t.getRGB=L,t.getXfaPageViewport=function(e,t){let{scale:n=1,rotation:r=0}=t;const{width:o,height:a}=e.attributes.style,i=[0,0,parseInt(o),parseInt(a)];return new R({viewBox:i,scale:n,rotation:r})},t.isDataScheme=N,t.isPdfFile=function(e){return"string"===typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=j,t.loadScript=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(((n,r)=>{const o=document.createElement("script");o.src=e,o.onload=function(e){t&&o.remove(),n(e)},o.onerror=function(){r(new Error("Cannot load script at: ".concat(o.src)))},(document.head||document.documentElement).append(o)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t instanceof R){const{pageWidth:r,pageHeight:o}=t.rawDims,{style:i}=e,s=a.FeatureTest.isCSSRoundSupported,l="var(--scale-factor) * ".concat(r,"px"),c="var(--scale-factor) * ".concat(o,"px"),u=s?"round(".concat(l,", 1px)"):"calc(".concat(l,")"),d=s?"round(".concat(c,", 1px)"):"calc(".concat(c,")");n&&t.rotation%180!==0?(i.width=d,i.height=u):(i.width=u,i.height=d)}r&&e.setAttribute("data-main-rotation",t.rotation)};var o=n(7),a=n(1);const i="http://www.w3.org/2000/svg";class s{}r=s,_defineProperty(s,"CSS",96),_defineProperty(s,"PDF",72),_defineProperty(s,"PDF_TO_CSS_UNITS",r.CSS/r.PDF),t.PixelsPerInch=s;var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakSet;class w extends o.BaseFilterFactory{constructor(){let{docId:e,ownerDocument:t=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),_classPrivateMethodInitSpec(this,b),_classPrivateFieldInitSpec(this,l,void 0),_classPrivateFieldInitSpec(this,c,void 0),_classPrivateFieldInitSpec(this,u,void 0),_classPrivateFieldInitSpec(this,d,void 0),_classPrivateFieldInitSpec(this,f,void 0),_classPrivateFieldInitSpec(this,h,void 0),_classPrivateFieldInitSpec(this,p,void 0),_classPrivateFieldInitSpec(this,m,void 0),_classPrivateFieldInitSpec(this,g,void 0),_classPrivateFieldInitSpec(this,v,void 0),_classPrivateFieldInitSpec(this,y,0),_classPrivateFieldSet(u,this,e),_classPrivateFieldSet(d,this,t)}addFilter(e){var t,n;if(!e)return"none";let r,o,a,i,s=_classPrivateGetter(b,this,x).get(e);if(s)return s;if(1===e.length){const t=e[0],n=new Array(256);for(let e=0;e<256;e++)n[e]=t[e]/255;i=r=o=a=n.join(",")}else{const[t,n,s]=e,l=new Array(256),c=new Array(256),u=new Array(256);for(let e=0;e<256;e++)l[e]=t[e]/255,c[e]=n[e]/255,u[e]=s[e]/255;r=l.join(","),o=c.join(","),a=u.join(","),i="".concat(r).concat(o).concat(a)}if(s=_classPrivateGetter(b,this,x).get(i),s)return _classPrivateGetter(b,this,x).set(e,s),s;const l="g_".concat(_classPrivateFieldGet(u,this),"_transfer_map_").concat((_classPrivateFieldSet(y,this,(t=_classPrivateFieldGet(y,this),n=t++,t)),n)),c="url(#".concat(l,")");_classPrivateGetter(b,this,x).set(e,c),_classPrivateGetter(b,this,x).set(i,c);const d=_assertClassBrand(b,this,_).call(this,l);return _assertClassBrand(b,this,k).call(this,r,o,a,d),c}addHCMFilter(e,t){var n;const r="".concat(e,"-").concat(t);if(_classPrivateFieldGet(h,this)===r)return _classPrivateFieldGet(p,this);if(_classPrivateFieldSet(h,this,r),_classPrivateFieldSet(p,this,"none"),null===(n=_classPrivateFieldGet(f,this))||void 0===n||n.remove(),!e||!t)return _classPrivateFieldGet(p,this);const o=_assertClassBrand(b,this,P).call(this,e);e=a.Util.makeHexColor(...o);const i=_assertClassBrand(b,this,P).call(this,t);if(t=a.Util.makeHexColor(...i),_classPrivateGetter(b,this,S).style.color="","#000000"===e&&"#ffffff"===t||e===t)return _classPrivateFieldGet(p,this);const s=new Array(256);for(let a=0;a<=255;a++){const e=a/255;s[a]=e<=.03928?e/12.92:((e+.055)/1.055)**2.4}const l=s.join(","),c="g_".concat(_classPrivateFieldGet(u,this),"_hcm_filter"),d=_classPrivateFieldSet(m,this,_assertClassBrand(b,this,_).call(this,c));_assertClassBrand(b,this,k).call(this,l,l,l,d),_assertClassBrand(b,this,C).call(this,d);const g=(e,t)=>{const n=o[e]/255,r=i[e]/255,a=new Array(t+1);for(let o=0;o<=t;o++)a[o]=n+o/t*(r-n);return a.join(",")};return _assertClassBrand(b,this,k).call(this,g(0,5),g(1,5),g(2,5),d),_classPrivateFieldSet(p,this,"url(#".concat(c,")")),_classPrivateFieldGet(p,this)}addHighlightHCMFilter(e,t,n,r){var o;const a="".concat(e,"-").concat(t,"-").concat(n,"-").concat(r);if(_classPrivateFieldGet(g,this)===a)return _classPrivateFieldGet(v,this);if(_classPrivateFieldSet(g,this,a),_classPrivateFieldSet(v,this,"none"),null===(o=_classPrivateFieldGet(m,this))||void 0===o||o.remove(),!e||!t)return _classPrivateFieldGet(v,this);const[i,s]=[e,t].map(_assertClassBrand(b,this,P).bind(this));let l=Math.round(.2126*i[0]+.7152*i[1]+.0722*i[2]),c=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),[d,f]=[n,r].map(_assertClassBrand(b,this,P).bind(this));c<l&&([l,c,d,f]=[c,l,f,d]),_classPrivateGetter(b,this,S).style.color="";const h=(e,t,n)=>{const r=new Array(256),o=(c-l)/n,a=e/255,i=(t-e)/(255*n);let s=0;for(let c=0;c<=n;c++){const e=Math.round(l+c*o),t=a+c*i;for(let n=s;n<=e;n++)r[n]=t;s=e+1}for(let l=s;l<256;l++)r[l]=r[s-1];return r.join(",")},p="g_".concat(_classPrivateFieldGet(u,this),"_hcm_highlight_filter"),y=_classPrivateFieldSet(m,this,_assertClassBrand(b,this,_).call(this,p));return _assertClassBrand(b,this,C).call(this,y),_assertClassBrand(b,this,k).call(this,h(d[0],f[0],5),h(d[1],f[1],5),h(d[2],f[2],5),y),_classPrivateFieldSet(v,this,"url(#".concat(p,")")),_classPrivateFieldGet(v,this)}destroy(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(_classPrivateFieldGet(p,this)||_classPrivateFieldGet(v,this))||(_classPrivateFieldGet(c,this)&&(_classPrivateFieldGet(c,this).parentNode.parentNode.remove(),_classPrivateFieldSet(c,this,null)),_classPrivateFieldGet(l,this)&&(_classPrivateFieldGet(l,this).clear(),_classPrivateFieldSet(l,this,null)),_classPrivateFieldSet(y,this,0))}}function x(e){return _classPrivateFieldGet(l,e)||_classPrivateFieldSet(l,e,new Map)}function S(e){if(!_classPrivateFieldGet(c,e)){const t=_classPrivateFieldGet(d,e).createElement("div"),{style:n}=t;n.visibility="hidden",n.contain="strict",n.width=n.height=0,n.position="absolute",n.top=n.left=0,n.zIndex=-1;const r=_classPrivateFieldGet(d,e).createElementNS(i,"svg");r.setAttribute("width",0),r.setAttribute("height",0),_classPrivateFieldSet(c,e,_classPrivateFieldGet(d,e).createElementNS(i,"defs")),t.append(r),r.append(_classPrivateFieldGet(c,e)),_classPrivateFieldGet(d,e).body.append(t)}return _classPrivateFieldGet(c,e)}function C(e){const t=_classPrivateFieldGet(d,this).createElementNS(i,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}function _(e){const t=_classPrivateFieldGet(d,this).createElementNS(i,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),_classPrivateGetter(b,this,S).append(t),t}function E(e,t,n){const r=_classPrivateFieldGet(d,this).createElementNS(i,t);r.setAttribute("type","discrete"),r.setAttribute("tableValues",n),e.append(r)}function k(e,t,n,r){const o=_classPrivateFieldGet(d,this).createElementNS(i,"feComponentTransfer");r.append(o),_assertClassBrand(b,this,E).call(this,o,"feFuncR",e),_assertClassBrand(b,this,E).call(this,o,"feFuncG",t),_assertClassBrand(b,this,E).call(this,o,"feFuncB",n)}function P(e){return _classPrivateGetter(b,this,S).style.color=e,L(getComputedStyle(_classPrivateGetter(b,this,S)).getPropertyValue("color"))}t.DOMFilterFactory=w;class A extends o.BaseCanvasFactory{constructor(){let{ownerDocument:e=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function O(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(j(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,a.stringToBytes)(await n.text())}return new Promise(((n,r)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),t&&(o.responseType="arraybuffer"),o.onreadystatechange=()=>{if(o.readyState===XMLHttpRequest.DONE){if(200===o.status||0===o.status){let e;if(t&&o.response?e=new Uint8Array(o.response):!t&&o.responseText&&(e=(0,a.stringToBytes)(o.responseText)),e)return void n(e)}r(new Error(o.statusText))}},o.send(null)}))}t.DOMCanvasFactory=A;class T extends o.BaseCMapReaderFactory{_fetchData(e,t){return O(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=T;class M extends o.BaseStandardFontDataFactory{_fetchData(e){return O(e,!0)}}t.DOMStandardFontDataFactory=M;class I extends o.BaseSVGFactory{_createSVG(e){return document.createElementNS(i,e)}}t.DOMSVGFactory=I;class R{constructor(e){let{viewBox:t,scale:n,rotation:r,offsetX:o=0,offsetY:a=0,dontFlip:i=!1}=e;this.viewBox=t,this.scale=n,this.rotation=r,this.offsetX=o,this.offsetY=a;const s=(t[2]+t[0])/2,l=(t[3]+t[1])/2;let c,u,d,f,h,p,m,g;switch(r%=360,r<0&&(r+=360),r){case 180:c=-1,u=0,d=0,f=1;break;case 90:c=0,u=1,d=1,f=0;break;case 270:c=0,u=-1,d=-1,f=0;break;case 0:c=1,u=0,d=0,f=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}i&&(d=-d,f=-f),0===c?(h=Math.abs(l-t[1])*n+o,p=Math.abs(s-t[0])*n+a,m=(t[3]-t[1])*n,g=(t[2]-t[0])*n):(h=Math.abs(s-t[0])*n+o,p=Math.abs(l-t[1])*n+a,m=(t[2]-t[0])*n,g=(t[3]-t[1])*n),this.transform=[c*n,u*n,d*n,f*n,h-c*n*s-d*n*l,p-u*n*s-f*n*l],this.width=m,this.height=g}get rawDims(){const{viewBox:e}=this;return(0,a.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){let{scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new R({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:o})}convertToViewportPoint(e,t){return a.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=a.Util.applyTransform([e[0],e[1]],this.transform),n=a.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return a.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=R;class F extends a.BaseException{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(e,"RenderingCancelledException"),this.extraDelay=t}}function N(e){const t=e.length;let n=0;for(;n<t&&""===e[n].trim();)n++;return"data:"===e.substring(n,n+5).toLowerCase()}function j(e,t){try{const{protocol:n}=t?new URL(e,t):new URL(e);return"http:"===n||"https:"===n}catch{return!1}}let D;function L(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,a.warn)('Not a valid color format: "'.concat(e,'"')),[0,0,0])}t.RenderingCancelledException=F,t.StatTimer=class{constructor(){_defineProperty(this,"started",Object.create(null)),_defineProperty(this,"times",[])}time(e){e in this.started&&(0,a.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,a.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const{name:n}of this.times)t=Math.max(n.length,t);for(const{name:n,start:r,end:o}of this.times)e.push("".concat(n.padEnd(t)," ").concat(o-r,"ms\n"));return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!==typeof e)return null;D||(D=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=D.exec(e);if(!t)return null;const n=parseInt(t[1],10);let r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;let o=parseInt(t[3],10);o=o>=1&&o<=31?o:1;let a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;let i=parseInt(t[5],10);i=i>=0&&i<=59?i:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(a+=c,i+=u):"+"===l&&(a-=c,i-=u),new Date(Date.UTC(n,r,o,a,i,s))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1);class o{constructor(){this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,n,r){return"none"}destroy(){}}t.BaseFilterFactory=o;class a{constructor(){this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=a;class i{constructor(e){let{baseUrl:t=null,isCompressed:n=!0}=e;this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=n}async fetch(e){let{name:t}=e;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const n=this.baseUrl+t+(this.isCompressed?".bcmap":""),o=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return this._fetchData(n,o).catch((e=>{throw new Error("Unable to load ".concat(this.isCompressed?"binary ":"","CMap at: ").concat(n))}))}_fetchData(e,t){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=i;class s{constructor(e){let{baseUrl:t=null}=e;this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch(e){let{filename:t}=e;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const n="".concat(this.baseUrl).concat(t);return this._fetchData(n).catch((e=>{throw new Error("Unable to load font data at: ".concat(n))}))}_fetchData(e){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=s;class l{constructor(){this.constructor===l&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),n||(r.setAttribute("width","".concat(e,"px")),r.setAttribute("height","".concat(t,"px"))),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 ".concat(e," ").concat(t)),r}createElement(e){if("string"!==typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,r.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1);const o=3285377520,a=4294901760,i=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:o,this.h2=e?4294967295&e:o}update(e){let t,n;if("string"===typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,o=e.length;r<o;r++){const o=e.charCodeAt(r);o<=255?t[n++]=o:(t[n++]=o>>>8,t[n++]=255&o)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const o=n>>2,s=n-4*o,l=new Uint32Array(t.buffer,0,o);let c=0,u=0,d=this.h1,f=this.h2;const h=3432918353,p=461845907,m=11601,g=13715;for(let r=0;r<o;r++)1&r?(c=l[r],c=c*h&a|c*m&i,c=c<<15|c>>>17,c=c*p&a|c*g&i,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[r],u=u*h&a|u*m&i,u=u<<15|u>>>17,u=u*p&a|u*g&i,f^=u,f=f<<13|f>>>19,f=5*f+3864292196);switch(c=0,s){case 3:c^=t[4*o+2]<<16;case 2:c^=t[4*o+1]<<8;case 1:c^=t[4*o],c=c*h&a|c*m&i,c=c<<15|c>>>17,c=c*p&a|c*g&i,1&o?d^=c:f^=c}this.h1=d,this.h2=f}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&a|36045*e&i,t=4283543511*t&a|(2950163797*(t<<16|e>>>16)&a)>>>16,e^=t>>>1,e=444984403*e&a|60499*e&i,t=3301882366*t&a|(3120437893*(t<<16|e>>>16)&a)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1),o=new WeakMap;t.FontLoader=class{constructor(e){let{ownerDocument:t=globalThis.document,styleElement:n=null}=e;_classPrivateFieldInitSpec(this,o,new Set),this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),_classPrivateFieldGet(o,this).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(e){if(e&&!_classPrivateFieldGet(o,this).has(e.loadedName))if((0,r.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:t,src:n,style:a}=e,i=new FontFace(t,n,a);this.addNativeFontFace(i);try{await i.load(),_classPrivateFieldGet(o,this).add(t)}catch{(0,r.warn)("Cannot load system font: ".concat(e.baseFontName,", installing it could help to improve PDF rendering.")),this.removeNativeFontFace(i)}}else(0,r.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo)return void await this.loadSystemFont(e.systemFontInfo);if(this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw(0,r.warn)("Failed to load font '".concat(t.family,"': '").concat(n,"'.")),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((t=>{const n=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,n)}))}}get isFontLoadingAPISupported(){var e;const t=!(null===(e=this._document)||void 0===e||!e.fonts);return(0,r.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let e=!1;return(r.isNodeJS||"undefined"!==typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const{loadingRequests:t}=this,n={done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.length>0&&t[0].done;){const e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(n),n}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,r.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function o(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let a,i;const s=this._document.createElement("canvas");s.width=1,s.height=1;const l=s.getContext("2d");let c=0;const u="lt".concat(Date.now()).concat(this.loadTestFontId++);let d=this._loadTestFont;d=o(d,976,u.length,u);const f=1482184792;let h=n(d,16);for(a=0,i=u.length-3;a<i;a+=4)h=h-f+n(u,a)|0;a<u.length&&(h=h-f+n(u+"XXX",a)|0),d=o(d,16,4,(0,r.string32)(h));const p="url(data:font/opentype;base64,".concat(btoa(d),");"),m='@font-face {font-family:"'.concat(u,'";src:').concat(p,"}");this.insertRule(m);const g=this._document.createElement("div");g.style.visibility="hidden",g.style.width=g.style.height="10px",g.style.position="absolute",g.style.top=g.style.left="0px";for(const r of[e.loadedName,u]){const e=this._document.createElement("span");e.textContent="Hi",e.style.fontFamily=r,g.append(e)}this._document.body.append(g),function e(t,n){if(++c>30)return(0,r.warn)("Load test font never loaded."),void n();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(u,(()=>{g.remove(),t.complete()}))}},t.FontFaceObject=class{constructor(e,t){let{isEvalSupported:n=!0,disableFontFace:r=!1,ignoreErrors:o=!1,inspectFont:a=null}=t;this.compiledGlyphs=Object.create(null);for(const i in e)this[i]=e[i];this.isEvalSupported=!1!==n,this.disableFontFace=!0===r,this.ignoreErrors=!0===o,this._inspectFont=a}createNativeFontFace(){var e;if(!this.data||this.disableFontFace)return null;let t;if(this.cssFontInfo){const e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),t=new FontFace(this.cssFontInfo.fontFamily,this.data,e)}else t=new FontFace(this.loadedName,this.data,{});return null===(e=this._inspectFont)||void 0===e||e.call(this,this),t}createFontFaceRule(){var e;if(!this.data||this.disableFontFace)return null;const t=(0,r.bytesToString)(this.data),n="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");");let o;if(this.cssFontInfo){let e="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(e+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),o='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(e,"src:").concat(n,"}")}else o='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(n,"}");return null===(e=this._inspectFont)||void 0===e||e.call(this,this,n),o}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(o){if(!this.ignoreErrors)throw o;return(0,r.warn)('getPathGenerator - ignoring character: "'.concat(o,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const r of n)"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(7);n(1);const o=function(e){return new Promise(((t,n)=>{__webpack_require__(237).readFile(e,((e,r)=>{!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))};class a extends r.BaseFilterFactory{}t.NodeFilterFactory=a;class i extends r.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(640).createCanvas(e,t)}}t.NodeCanvasFactory=i;class s extends r.BaseCMapReaderFactory{_fetchData(e,t){return o(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=s;class l extends r.BaseStandardFontDataFactory{_fetchData(e){return o(e)}}t.NodeStandardFontDataFactory=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(1),o=n(6),a=n(12),i=n(13);const s=4096,l=16;class c{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),r}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function u(e,t,n,r,a,i,s,l,c,u){const[d,f,h,p,m,g]=(0,o.getCurrentTransform)(e);if(0===f&&0===h){const o=s*d+m,v=Math.round(o),y=l*p+g,b=Math.round(y),w=(s+c)*d+m,x=Math.abs(Math.round(w)-v)||1,S=(l+u)*p+g,C=Math.abs(Math.round(S)-b)||1;return e.setTransform(Math.sign(d),0,0,Math.sign(p),v,b),e.drawImage(t,n,r,a,i,0,0,x,C),e.setTransform(d,f,h,p,m,g),[x,C]}if(0===d&&0===p){const o=l*h+m,v=Math.round(o),y=s*f+g,b=Math.round(y),w=(l+u)*h+m,x=Math.abs(Math.round(w)-v)||1,S=(s+c)*f+g,C=Math.abs(Math.round(S)-b)||1;return e.setTransform(0,Math.sign(f),Math.sign(h),0,v,b),e.drawImage(t,n,r,a,i,0,0,C,x),e.setTransform(d,f,h,p,m,g),[C,x]}return e.drawImage(t,n,r,a,i,s,l,c,u),[Math.hypot(d,f)*c,Math.hypot(h,p)*u]}class d{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=r.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=r.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=r.Util.applyTransform(t,e),o=r.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],o[0]),this.minY=Math.min(this.minY,n[1],o[1]),this.maxX=Math.max(this.maxX,n[0],o[0]),this.maxY=Math.max(this.maxY,n[1],o[1])}updateScalingPathMinMax(e,t){r.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,o,a,i,s,l,c,u){const d=r.Util.bezierBoundingBox(t,n,o,a,i,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===a.PathType.STROKE){t||(0,r.unreachable)("Stroke bounding box must include transform.");const e=r.Util.singularValueDecompose2dScale(t),o=e[0]*this.lineWidth/2,a=e[1]*this.lineWidth/2;n[0]-=o,n[1]-=a,n[2]+=o,n[3]+=a}return n}updateClipFromPath(){const e=r.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.PathType.FILL,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function f(e,t){if("undefined"!==typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const n=t.height,o=t.width,a=n%l,i=(n-a)/l,s=0===a?i:i+1,c=e.createImageData(o,l);let u,d=0;const f=t.data,h=c.data;let p,m,g,v;if(t.kind===r.ImageKind.GRAYSCALE_1BPP){const t=f.byteLength,n=new Uint32Array(h.buffer,0,h.byteLength>>2),v=n.length,y=o+7>>3,b=4294967295,w=r.FeatureTest.isLittleEndian?4278190080:255;for(p=0;p<s;p++){for(g=p<i?l:a,u=0,m=0;m<g;m++){const e=t-d;let r=0;const a=e>y?o:8*e-7,i=-8&a;let s=0,l=0;for(;r<i;r+=8)l=f[d++],n[u++]=128&l?b:w,n[u++]=64&l?b:w,n[u++]=32&l?b:w,n[u++]=16&l?b:w,n[u++]=8&l?b:w,n[u++]=4&l?b:w,n[u++]=2&l?b:w,n[u++]=1&l?b:w;for(;r<a;r++)0===s&&(l=f[d++],s=128),n[u++]=l&s?b:w,s>>=1}for(;u<v;)n[u++]=0;e.putImageData(c,0,p*l)}}else if(t.kind===r.ImageKind.RGBA_32BPP){for(m=0,v=o*l*4,p=0;p<i;p++)h.set(f.subarray(d,d+v)),d+=v,e.putImageData(c,0,m),m+=l;p<s&&(v=o*a*4,h.set(f.subarray(d,d+v)),e.putImageData(c,0,m))}else{if(t.kind!==r.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(g=l,v=o*g,p=0;p<s;p++){for(p>=i&&(g=a,v=o*g),u=0,m=v;m--;)h[u++]=f[d++],h[u++]=f[d++],h[u++]=f[d++],h[u++]=255;e.putImageData(c,0,p*l)}}}function h(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,r=t.width,o=n%l,a=(n-o)/l,s=0===o?a:a+1,c=e.createImageData(r,l);let u=0;const d=t.data,f=c.data;for(let h=0;h<s;h++){const t=h<a?l:o;({srcPos:u}=(0,i.convertBlackAndWhiteToRGBA)({src:d,srcPos:u,dest:f,width:r,height:t,nonBlackColor:0})),e.putImageData(c,0,h*l)}}function p(e,t){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const r of n)void 0!==e[r]&&(t[r]=e[r]);void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function m(e){if(e.strokeStyle=e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0),!r.isNodeJS){const{filter:t}=e;"none"!==t&&""!==t&&(e.filter="none")}}function g(e,t,n,r){const o=e.length;for(let a=3;a<o;a+=4){const o=e[a];if(0===o)e[a-3]=t,e[a-2]=n,e[a-1]=r;else if(o<255){const i=255-o;e[a-3]=e[a-3]*o+t*i>>8,e[a-2]=e[a-2]*o+n*i>>8,e[a-1]=e[a-1]*o+r*i>>8}}}function v(e,t,n){const r=e.length,o=1/255;for(let a=3;a<r;a+=4){const r=n?n[e[a]]:e[a];t[a]=t[a]*r*o|0}}function y(e,t,n){const r=e.length;for(let o=3;o<r;o+=4){const r=77*e[o-3]+152*e[o-2]+28*e[o-1];t[o]=n?t[o]*n[r>>8]>>8:t[o]*r>>16}}function b(e,t,n,r){const o=r[0],a=r[1],i=r[2]-o,s=r[3]-a;0!==i&&0!==s&&(function(e,t,n,r,o,a,i,s,l,c,u){const d=!!a,f=d?a[0]:0,h=d?a[1]:0,p=d?a[2]:0,m="Luminosity"===o?y:v,b=Math.min(r,Math.ceil(1048576/n));for(let v=0;v<r;v+=b){const o=Math.min(b,r-v),a=e.getImageData(s-c,v+(l-u),n,o),y=t.getImageData(s,v+l,n,o);d&&g(a.data,f,h,p),m(a.data,y.data,i),t.putImageData(y,s,v+l)}}(t.context,n,i,s,t.subtype,t.backdrop,t.transferMap,o,a,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}function w(e,t){const n=r.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const a=Math.fround((globalThis.devicePixelRatio||1)*o.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=a||n[1]<=a}const x=["butt","round","square"],S=["miter","round","bevel"],C={},_={};var E=new WeakSet;class k{constructor(e,t,n,r,o,a,i,s){let{optionalContentConfig:l,markedContentStack:u=null}=a;_classPrivateMethodInitSpec(this,E),this.ctx=e,this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.filterFactory=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=u||[],this.optionalContentConfig=l,this.cachedCanvases=new c(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=i,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=s,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing(e){let{transform:t,viewport:n,transparency:r=!1,background:a=null}=e;const i=this.ctx.canvas.width,s=this.ctx.canvas.height,l=this.ctx.fillStyle;if(this.ctx.fillStyle=a||"#ffffff",this.ctx.fillRect(0,0,i,s),this.ctx.fillStyle=l,r){const e=this.cachedCanvases.getCanvas("transparent",i,s);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,o.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),m(this.ctx),t&&(this.ctx.transform(...t),this.outputScaleX=t[0],this.outputScaleY=t[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=(0,o.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,n,o){const a=e.argsArray,i=e.fnArray;let s=t||0;const l=a.length;if(l===s)return s;const c=l-s>10&&"function"===typeof n,u=c?Date.now()+15:0;let d=0;const f=this.commonObjs,h=this.objs;let p;for(;;){if(void 0!==o&&s===o.nextBreakPoint)return o.breakIt(s,n),s;if(p=i[s],p!==r.OPS.dependency)this[p].apply(this,a[s]);else for(const e of a[s]){const t=e.startsWith("g_")?f:h;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++d>10){if(Date.now()>u)return n(),s;d=0}}}endDrawing(){_assertClassBrand(E,this,P).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),_assertClassBrand(E,this,A).call(this)}_scaleImage(e,t){const n=e.width,r=e.height;let o,a,i=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=r,u="prescale1";for(;i>2&&l>1||s>2&&c>1;){let t=l,n=c;i>2&&l>1&&(t=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),i/=l/t),s>2&&c>1&&(n=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,s/=c/n),o=this.cachedCanvases.getCanvas(u,t,n),a=o.context,a.clearRect(0,0,t,n),a.drawImage(e,0,0,l,c,0,0,t,n),e=o.canvas,l=t,c=n,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:i}=e,s=this.current.fillColor,l=this.current.patternFill,c=(0,o.getCurrentTransform)(t);let d,f,p,m;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer;f=JSON.stringify(l?c:[c.slice(0,4),s]),d=this._cachedBitmapsMap.get(t),d||(d=new Map,this._cachedBitmapsMap.set(t,d));const n=d.get(f);if(n&&!l)return{canvas:n,offsetX:Math.round(Math.min(c[0],c[2])+c[4]),offsetY:Math.round(Math.min(c[1],c[3])+c[5])};p=n}p||(m=this.cachedCanvases.getCanvas("maskCanvas",n,i),h(m.context,e));let g=r.Util.transform(c,[1/n,0,0,-1/i,0,0]);g=r.Util.transform(g,[1,0,0,1,0,-i]);const v=r.Util.applyTransform([0,0],g),y=r.Util.applyTransform([n,i],g),b=r.Util.normalizeRect([v[0],v[1],y[0],y[1]]),x=Math.round(b[2]-b[0])||1,S=Math.round(b[3]-b[1])||1,C=this.cachedCanvases.getCanvas("fillCanvas",x,S),_=C.context,E=Math.min(v[0],y[0]),k=Math.min(v[1],y[1]);_.translate(-E,-k),_.transform(...g),p||(p=this._scaleImage(m.canvas,(0,o.getCurrentTransformInverse)(_)),p=p.img,d&&l&&d.set(f,p)),_.imageSmoothingEnabled=w((0,o.getCurrentTransform)(_),e.interpolate),u(_,p,0,0,p.width,p.height,0,0,n,i),_.globalCompositeOperation="source-in";const P=r.Util.transform((0,o.getCurrentTransformInverse)(_),[1,0,0,1,-E,-k]);return _.fillStyle=l?s.getPattern(t,this,P,a.PathType.FILL):s,_.fillRect(0,0,n,i),d&&!l&&(this.cachedCanvases.delete("fillCanvas"),d.set(f,C.canvas)),{canvas:C.canvas,offsetX:Math.round(E),offsetY:Math.round(k)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=x[e]}setLineJoin(e){this.ctx.lineJoin=S[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(n,e,t);this.suspendedCtx=this.ctx,this.ctx=r.context;const a=this.ctx;a.setTransform(...(0,o.getCurrentTransform)(this.suspendedCtx)),p(this.suspendedCtx,a),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,o,a,i){t.transform(e,n,r,o,a,i),this.__originalTransform(e,n,r,o,a,i)},e.setTransform=function(e,n,r,o,a,i){t.setTransform(e,n,r,o,a,i),this.__originalSetTransform(e,n,r,o,a,i)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,o,a,i){t.bezierCurveTo(e,n,r,o,a,i),this.__originalBezierCurveTo(e,n,r,o,a,i)},e.rect=function(e,n,r,o){t.rect(e,n,r,o),this.__originalRect(e,n,r,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(a,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),p(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;b(this.suspendedCtx,t,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(p(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),p(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,n,r,o,a){this.ctx.transform(e,t,n,r,o,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n){const a=this.ctx,i=this.current;let s,l,c=i.x,u=i.y;const d=(0,o.getCurrentTransform)(a),f=0===d[0]&&0===d[3]||0===d[1]&&0===d[2],h=f?n.slice(0):null;for(let o=0,p=0,m=e.length;o<m;o++)switch(0|e[o]){case r.OPS.rectangle:c=t[p++],u=t[p++];const e=t[p++],n=t[p++],o=c+e,m=u+n;a.moveTo(c,u),0===e||0===n?a.lineTo(o,m):(a.lineTo(o,u),a.lineTo(o,m),a.lineTo(c,m)),f||i.updateRectMinMax(d,[c,u,o,m]),a.closePath();break;case r.OPS.moveTo:c=t[p++],u=t[p++],a.moveTo(c,u),f||i.updatePathMinMax(d,c,u);break;case r.OPS.lineTo:c=t[p++],u=t[p++],a.lineTo(c,u),f||i.updatePathMinMax(d,c,u);break;case r.OPS.curveTo:s=c,l=u,c=t[p+4],u=t[p+5],a.bezierCurveTo(t[p],t[p+1],t[p+2],t[p+3],c,u),i.updateCurvePathMinMax(d,s,l,t[p],t[p+1],t[p+2],t[p+3],c,u,h),p+=6;break;case r.OPS.curveTo2:s=c,l=u,a.bezierCurveTo(c,u,t[p],t[p+1],t[p+2],t[p+3]),i.updateCurvePathMinMax(d,s,l,c,u,t[p],t[p+1],t[p+2],t[p+3],h),c=t[p+2],u=t[p+3],p+=4;break;case r.OPS.curveTo3:s=c,l=u,c=t[p+2],u=t[p+3],a.bezierCurveTo(t[p],t[p+1],c,u,c,u),i.updateCurvePathMinMax(d,s,l,t[p],t[p+1],c,u,c,u,h),p+=4;break;case r.OPS.closePath:a.closePath()}f&&i.updateScalingPathMinMax(d,h),i.setCurrentPoint(c,u)}closePath(){this.ctx.closePath()}stroke(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.ctx,n=this.current.strokeColor;t.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"===typeof n&&null!==n&&void 0!==n&&n.getPattern?(t.save(),t.strokeStyle=n.getPattern(t,this,(0,o.getCurrentTransformInverse)(t),a.PathType.STROKE),this.rescaleAndStroke(!1),t.restore()):this.rescaleAndStroke(!0)),e&&this.consumePath(this.current.getClippedPathBoundingBox()),t.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.ctx,n=this.current.fillColor;let r=!1;this.current.patternFill&&(t.save(),t.fillStyle=n.getPattern(t,this,(0,o.getCurrentTransformInverse)(t),a.PathType.FILL),r=!0);const i=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==i&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),r&&t.restore(),e&&this.consumePath(i)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=C}eoClip(){this.pendingClip=_}beginText(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(const n of e)t.setTransform(...n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize);t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()}setCharSpacing(e){this.current.charSpacing=e}setWordSpacing(e){this.current.wordSpacing=e}setHScale(e){this.current.textHScale=e/100}setLeading(e){this.current.leading=-e}setFont(e,t){var n;const o=this.commonObjs.get(e),a=this.current;if(!o)throw new Error("Can't find font for ".concat(e));if(a.fontMatrix=o.fontMatrix||r.FONT_IDENTITY_MATRIX,0!==a.fontMatrix[0]&&0!==a.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+e),t<0?(t=-t,a.fontDirection=-1):a.fontDirection=1,this.current.font=o,this.current.fontSize=t,o.isType3Font)return;const i=o.loadedName||"sans-serif",s=(null===(n=o.systemFontInfo)||void 0===n?void 0:n.css)||'"'.concat(i,'", ').concat(o.fallbackName);let l="normal";o.black?l="900":o.bold&&(l="bold");const c=o.italic?"italic":"normal";let u=t;t<16?u=16:t>100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font="".concat(c," ").concat(l," ").concat(u,"px ").concat(s)}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,r,o,a){this.current.textMatrix=[e,t,n,r,o,a],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,a){const i=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&r.TextRenderingMode.FILL_STROKE_MASK,f=!!(c&r.TextRenderingMode.ADD_TO_PATH_FLAG),h=s.patternFill&&!l.missingFile;let p;(l.disableFontFace||f||h)&&(p=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||h?(i.save(),i.translate(t,n),i.beginPath(),p(i,u),a&&i.setTransform(...a),d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||i.fill(),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||i.stroke(),i.restore()):(d!==r.TextRenderingMode.FILL&&d!==r.TextRenderingMode.FILL_STROKE||i.fillText(e,t,n),d!==r.TextRenderingMode.STROKE&&d!==r.TextRenderingMode.FILL_STROKE||i.strokeText(e,t,n)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,o.getCurrentTransform)(i),x:t,y:n,fontSize:u,addToPath:p})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let r=3;r<t.length;r+=4)if(t[r]>0&&t[r]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const i=t.fontSize;if(0===i)return;const s=this.ctx,l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,f=t.textHScale*d,h=e.length,p=n.vertical,m=p?1:-1,g=n.defaultVMetrics,v=i*t.fontMatrix[0],y=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let b;if(s.save(),s.transform(...t.textMatrix),s.translate(t.x,t.y+t.textRise),d>0?s.scale(f,-1):s.scale(f,1),t.patternFill){s.save();const e=t.fillColor.getPattern(s,this,(0,o.getCurrentTransformInverse)(s),a.PathType.FILL);b=(0,o.getCurrentTransform)(s),s.restore(),s.fillStyle=e}let w=t.lineWidth;const x=t.textMatrixScale;if(0===x||0===w){const e=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;e!==r.TextRenderingMode.STROKE&&e!==r.TextRenderingMode.FILL_STROKE||(w=this.getSinglePixelWidth())}else w/=x;if(1!==l&&(s.scale(l,l),w/=l),s.lineWidth=w,n.isInvalidPDFjsFont){const n=[];let r=0;for(const t of e)n.push(t.unicode),r+=t.width;return s.fillText(n.join(""),0,0),t.x+=r*v*f,s.restore(),void this.compose()}let S,C=0;for(S=0;S<h;++S){const t=e[S];if("number"===typeof t){C+=m*t*i/1e3;continue}let r=!1;const o=(t.isSpace?u:0)+c,a=t.fontChar,f=t.accent;let h,w,x=t.width;if(p){const e=t.vmetric||g,n=-(t.vmetric?e[1]:.5*x)*v,r=e[2]*v;x=e?-e[0]:x,h=n/l,w=(C+r)/l}else h=C/l,w=0;if(n.remeasure&&x>0){const e=1e3*s.measureText(a).width/i*l;if(x<e&&this.isFontSubpixelAAEnabled){const t=x/e;r=!0,s.save(),s.scale(t,1),h/=t}else x!==e&&(h+=(x-e)/2e3*i/l)}if(this.contentVisible&&(t.isInFont||n.missingFile))if(y&&!f)s.fillText(a,h,w);else if(this.paintChar(a,h,w,b),f){const e=h+i*f.offset.x/l,t=w-i*f.offset.y/l;this.paintChar(f.fontChar,e,t,b)}C+=p?x*v-o*d:x*v+o*d,r&&s.restore()}p?t.y-=C:t.x+=C*f,s.restore(),this.compose()}showType3Text(e){const t=this.ctx,n=this.current,o=n.font,a=n.fontSize,i=n.fontDirection,s=o.vertical?1:-1,l=n.charSpacing,c=n.wordSpacing,u=n.textHScale*i,d=n.fontMatrix||r.FONT_IDENTITY_MATRIX,f=e.length;let h,p,m,g;if(n.textRenderingMode!==r.TextRenderingMode.INVISIBLE&&0!==a){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,t.save(),t.transform(...n.textMatrix),t.translate(n.x,n.y),t.scale(u,i),h=0;h<f;++h){if(p=e[h],"number"===typeof p){g=s*p*a/1e3,this.ctx.translate(g,0),n.x+=g*u;continue}const i=(p.isSpace?c:0)+l,f=o.charProcOperatorList[p.operatorListId];f?(this.contentVisible&&(this.processingType3=p,this.save(),t.scale(a,a),t.transform(...d),this.executeOperatorList(f),this.restore()),m=r.Util.applyTransform([p.width,0],d)[0]*a+i,t.translate(m,0),n.x+=m*u):(0,r.warn)('Type3 character "'.concat(p.operatorListId,'" is not available.'))}t.restore(),this.processingType3=null}}setCharWidth(e,t){}setCharWidthAndBounds(e,t,n,r,o,a){this.ctx.rect(n,r,o-n,a-r),this.ctx.clip(),this.endPath()}getColorN_Pattern(e){let t;if("TilingPattern"===e[0]){const n=e[1],r=this.baseTransform||(0,o.getCurrentTransform)(this.ctx),i={createCanvasGraphics:e=>new k(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new a.TilingPattern(e,n,this.ctx,i,r)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const o=r.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=o,this.current.strokeColor=o}setFillRGBColor(e,t,n){const o=r.Util.makeHexColor(e,t,n);this.ctx.fillStyle=o,this.current.fillColor=o,this.current.patternFill=!1}_getPattern(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(e)?t=this.cachedPatterns.get(e):(t=(0,a.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,t)),n&&(t.matrix=n),t}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,o.getCurrentTransformInverse)(t),a.PathType.SHADING);const i=(0,o.getCurrentTransformInverse)(t);if(i){const{width:e,height:n}=t.canvas,[o,a,s,l]=r.Util.getAxialAlignedBoundingBox([0,0,e,n],i);this.ctx.fillRect(o,a,s-o,l-a)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,r.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,r.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,o.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax((0,o.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");const n=(0,o.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let a=r.Util.getAxialAlignedBoundingBox(e.bbox,(0,o.getCurrentTransform)(t));const i=[0,0,t.canvas.width,t.canvas.height];a=r.Util.intersect(a,i)||[0,0,0,0];const l=Math.floor(a[0]),c=Math.floor(a[1]);let u=Math.max(Math.ceil(a[2])-l,1),d=Math.max(Math.ceil(a[3])-c,1),f=1,h=1;u>s&&(f=u/s,u=s),d>s&&(h=d/s,d=s),this.current.startNewPathAndClipBox([0,0,u,d]);let m="groupAt"+this.groupLevel;e.smask&&(m+="_smask_"+this.smaskCounter++%2);const g=this.cachedCanvases.getCanvas(m,u,d),v=g.context;v.scale(1/f,1/h),v.translate(-l,-c),v.transform(...n),e.smask?this.smaskStack.push({canvas:g.canvas,context:v,offsetX:l,offsetY:c,scaleX:f,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,c),t.scale(f,h),t.save()),p(t,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,o.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...e);const n=r.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,a,i){if(_assertClassBrand(E,this,P).call(this),m(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const a=t[2]-t[0],s=t[3]-t[1];if(i&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=a,t[3]=s;const[i,l]=r.Util.singularValueDecompose2dScale((0,o.getCurrentTransform)(this.ctx)),{viewportScale:c}=this,u=Math.ceil(a*this.outputScaleX*c),d=Math.ceil(s*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(u,d);const{canvas:f,context:h}=this.annotationCanvas;this.annotationCanvasMap.set(e,f),this.annotationCanvas.savedCtx=this.ctx,this.ctx=h,this.ctx.save(),this.ctx.setTransform(i,0,0,-l,0,s*l),m(this.ctx)}else m(this.ctx),this.ctx.rect(t[0],t[1],a,s),this.ctx.clip(),this.endPath()}this.current=new d(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),_assertClassBrand(E,this,A).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function(e){const{width:t,height:n}=e;if(t>1e3||n>1e3)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1;let a,i,s,l=new Uint8Array(o*(n+1));const c=t+7&-8;let u=new Uint8Array(c*n),d=0;for(const m of e.data){let e=128;for(;e>0;)u[d++]=m&e?0:255,e>>=1}let f=0;for(d=0,0!==u[d]&&(l[0]=1,++f),i=1;i<t;i++)u[d]!==u[d+1]&&(l[i]=u[d]?2:1,++f),d++;for(0!==u[d]&&(l[i]=2,++f),a=1;a<n;a++){d=a*c,s=a*o,u[d-c]!==u[d]&&(l[s]=u[d]?1:8,++f);let e=(u[d]?4:0)+(u[d-c]?8:0);for(i=1;i<t;i++)e=(e>>2)+(u[d+1]?4:0)+(u[d-c+1]?8:0),r[e]&&(l[s+i]=r[e],++f),d++;if(u[d-c]!==u[d]&&(l[s+i]=u[d]?2:4,++f),f>1e3)return null}for(d=c*(n-1),s=a*o,0!==u[d]&&(l[s]=8,++f),i=1;i<t;i++)u[d]!==u[d+1]&&(l[s+i]=u[d]?4:8,++f),d++;if(0!==u[d]&&(l[s+i]=4,++f),f>1e3)return null;const h=new Int32Array([0,o,-1,0,-o,0,0,0,1]),p=new Path2D;for(a=0;f&&a<=n;a++){let e=a*o;const n=e+t;for(;e<n&&!l[e];)e++;if(e===n)continue;p.moveTo(e%o,a);const r=e;let i=l[e];do{const t=h[i];do{e+=t}while(!l[e]);const n=l[e];5!==n&&10!==n?(i=n,l[e]=0):(i=n&51*i>>4,l[e]&=i>>2|i<<2),p.lineTo(e%o,e/o|0),l[e]||--f}while(r!==e);--a}return u=null,l=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(p),e.beginPath(),e.restore()}}(e)),r.compiled))return void r.compiled(n);const o=this._createMaskCanvas(e),a=o.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(a,o.offsetX,o.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const c=(0,o.getCurrentTransform)(l);l.transform(t,n,a,i,0,0);const u=this._createMaskCanvas(e);l.setTransform(1,0,0,1,u.offsetX-c[4],u.offsetY-c[5]);for(let o=0,d=s.length;o<d;o+=2){const e=r.Util.transform(c,[t,n,a,i,s[o],s[o+1]]),[d,f]=r.Util.applyTransform([0,0],e);l.drawImage(u.canvas,d,f)}l.restore(),this.compose()}paintImageMaskXObjectGroup(e){if(!this.contentVisible)return;const t=this.ctx,n=this.current.fillColor,r=this.current.patternFill;for(const i of e){const{data:e,width:s,height:l,transform:c}=i,d=this.cachedCanvases.getCanvas("maskCanvas",s,l),f=d.context;f.save(),h(f,this.getObject(e,i)),f.globalCompositeOperation="source-in",f.fillStyle=r?n.getPattern(f,this,(0,o.getCurrentTransformInverse)(t),a.PathType.FILL):n,f.fillRect(0,0,s,l),f.restore(),t.save(),t.transform(...c),t.scale(1,-1),u(t,d.canvas,0,0,s,l,0,-1,1,1),t.restore()}this.compose()}paintImageXObject(e){if(!this.contentVisible)return;const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,r.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(e,t,n,o){if(!this.contentVisible)return;const a=this.getObject(e);if(!a)return void(0,r.warn)("Dependent image isn't ready yet");const i=a.width,s=a.height,l=[];for(let r=0,c=o.length;r<c;r+=2)l.push({transform:[t,0,0,n,o[r],o[r+1]],x:0,y:0,w:i,h:s});this.paintInlineImageXObjectGroup(a,l)}applyTransferMapsToCanvas(e){return"none"!==this.current.transferMaps&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if("none"===this.current.transferMaps)return e.bitmap;const{bitmap:t,width:n,height:r}=e,o=this.cachedCanvases.getCanvas("inlineImage",n,r),a=o.context;return a.filter=this.current.transferMaps,a.drawImage(t,0,0),a.filter="none",o.canvas}paintInlineImageXObject(e){if(!this.contentVisible)return;const t=e.width,n=e.height,a=this.ctx;if(this.save(),!r.isNodeJS){const{filter:e}=a;"none"!==e&&""!==e&&(a.filter="none")}let i;if(a.scale(1/t,-1/n),e.bitmap)i=this.applyTransferMapsToBitmap(e);else if("function"===typeof HTMLElement&&e instanceof HTMLElement||!e.data)i=e;else{const r=this.cachedCanvases.getCanvas("inlineImage",t,n).context;f(r,e),i=this.applyTransferMapsToCanvas(r)}const s=this._scaleImage(i,(0,o.getCurrentTransformInverse)(a));a.imageSmoothingEnabled=w((0,o.getCurrentTransform)(a),e.interpolate),u(a,s.img,0,0,s.paintWidth,s.paintHeight,0,-n,t,n),this.compose(),this.restore()}paintInlineImageXObjectGroup(e,t){if(!this.contentVisible)return;const n=this.ctx;let r;if(e.bitmap)r=e.bitmap;else{const t=e.width,n=e.height,o=this.cachedCanvases.getCanvas("inlineImage",t,n).context;f(o,e),r=this.applyTransferMapsToCanvas(o)}for(const o of t)n.save(),n.transform(...o.transform),n.scale(1,-1),u(n,r,o.x,o.y,o.w,o.h,0,-1,1,1),n.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e){}markPointProps(e,t){}beginMarkedContent(e){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(e){const t=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(e);const n=this.ctx;this.pendingClip&&(t||(this.pendingClip===_?n.clip("evenodd"):n.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),n.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=(0,o.getCurrentTransform)(this.ctx);if(0===e[1]&&0===e[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const t=Math.abs(e[0]*e[3]-e[2]*e[1]),n=Math.hypot(e[0],e[2]),r=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(n,r)/t}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(-1===this._cachedScaleForStroking[0]){const{lineWidth:e}=this.current,{a:t,b:n,c:r,d:o}=this.ctx.getTransform();let a,i;if(0===n&&0===r){const n=Math.abs(t),r=Math.abs(o);if(n===r)if(0===e)a=i=1/n;else{const t=n*e;a=i=t<1?1/t:1}else if(0===e)a=1/n,i=1/r;else{const t=n*e,o=r*e;a=t<1?1/t:1,i=o<1?1/o:1}}else{const s=Math.abs(t*o-n*r),l=Math.hypot(t,n),c=Math.hypot(r,o);if(0===e)a=c/s,i=l/s;else{const t=e*s;a=c>t?c/t:1,i=l>t?l/t:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=i}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[r,o]=this.getScaleForStroking();if(t.lineWidth=n||1,1===r&&1===o)return void t.stroke();const a=t.getLineDash();if(e&&t.save(),t.scale(r,o),a.length>0){const e=Math.max(r,o);t.setLineDash(a.map((t=>t/e))),t.lineDashOffset/=e}t.stroke(),e&&t.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}function P(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}function A(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}t.CanvasGraphics=k;for(const O in r.OPS)void 0!==k.prototype[O]&&(k.prototype[r.OPS[O]]=k.prototype[O])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new d(e);case"Dummy":return new f}throw new Error("Unknown IR type: ".concat(e[0]))};var r=n(1),o=n(6);const a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function i(e,t){if(!t)return;const n=t[2]-t[0],r=t[3]-t[1],o=new Path2D;o.rect(t[0],t[1],n,r),e.clip(o)}t.PathType=a;class s{constructor(){this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,r.unreachable)("Abstract method `getPattern` called.")}}class l extends s{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const n of this._colorStops)t.addColorStop(n[0],n[1]);return t}getPattern(e,t,n,s){let l;if(s===a.STROKE||s===a.FILL){const a=t.current.getClippedPathBoundingBox(s,(0,o.getCurrentTransform)(e))||[0,0,0,0],c=Math.ceil(a[2]-a[0])||1,u=Math.ceil(a[3]-a[1])||1,d=t.cachedCanvases.getCanvas("pattern",c,u,!0),f=d.context;f.clearRect(0,0,f.canvas.width,f.canvas.height),f.beginPath(),f.rect(0,0,f.canvas.width,f.canvas.height),f.translate(-a[0],-a[1]),n=r.Util.transform(n,[1,0,0,1,a[0],a[1]]),f.transform(...t.baseTransform),this.matrix&&f.transform(...this.matrix),i(f,this._bbox),f.fillStyle=this._createGradient(f),f.fill(),l=e.createPattern(d.canvas,"no-repeat");const h=new DOMMatrix(n);l.setTransform(h)}else i(e,this._bbox),l=this._createGradient(e);return l}}function c(e,t,n,r,o,a,i,s){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let f;l[n+1]>l[r+1]&&(f=n,n=r,r=f,f=a,a=i,i=f),l[r+1]>l[o+1]&&(f=r,r=o,o=f,f=i,i=s,s=f),l[n+1]>l[r+1]&&(f=n,n=r,r=f,f=a,a=i,i=f);const h=(l[n]+t.offsetX)*t.scaleX,p=(l[n+1]+t.offsetY)*t.scaleY,m=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,v=(l[o]+t.offsetX)*t.scaleX,y=(l[o+1]+t.offsetY)*t.scaleY;if(p>=y)return;const b=c[a],w=c[a+1],x=c[a+2],S=c[i],C=c[i+1],_=c[i+2],E=c[s],k=c[s+1],P=c[s+2],A=Math.round(p),O=Math.round(y);let T,M,I,R,F,N,j,D;for(let L=A;L<=O;L++){if(L<g){const e=L<p?0:(p-L)/(p-g);T=h-(h-m)*e,M=b-(b-S)*e,I=w-(w-C)*e,R=x-(x-_)*e}else{let e;e=L>y?1:g===y?0:(g-L)/(g-y),T=m-(m-v)*e,M=S-(S-E)*e,I=C-(C-k)*e,R=_-(_-P)*e}let e;e=L<p?0:L>y?1:(p-L)/(p-y),F=h-(h-v)*e,N=b-(b-E)*e,j=w-(w-k)*e,D=x-(x-P)*e;const t=Math.round(Math.min(T,F)),n=Math.round(Math.max(T,F));let r=d*L+4*t;for(let o=t;o<=n;o++)e=(T-o)/(T-F),e<0?e=0:e>1&&(e=1),u[r++]=M-(M-N)*e|0,u[r++]=I-(I-j)*e|0,u[r++]=R-(R-D)*e|0,u[r++]=255}}function u(e,t,n){const r=t.coords,o=t.colors;let a,i;switch(t.type){case"lattice":const s=t.verticesPerRow,l=Math.floor(r.length/s)-1,u=s-1;for(a=0;a<l;a++){let t=a*s;for(let a=0;a<u;a++,t++)c(e,n,r[t],r[t+1],r[t+s],o[t],o[t+1],o[t+s]),c(e,n,r[t+s+1],r[t+1],r[t+s],o[t+s+1],o[t+1],o[t+s])}break;case"triangles":for(a=0,i=r.length;a<i;a+=3)c(e,n,r[a],r[a+1],r[a+2],o[a],o[a+1],o[a+2]);break;default:throw new Error("illegal figure")}}class d extends s{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[7],this._background=e[8],this.matrix=null}_createMeshCanvas(e,t,n){const r=Math.floor(this._bounds[0]),o=Math.floor(this._bounds[1]),a=Math.ceil(this._bounds[2])-r,i=Math.ceil(this._bounds[3])-o,s=Math.min(Math.ceil(Math.abs(a*e[0]*1.1)),3e3),l=Math.min(Math.ceil(Math.abs(i*e[1]*1.1)),3e3),c=a/s,d=i/l,f={coords:this._coords,colors:this._colors,offsetX:-r,offsetY:-o,scaleX:1/c,scaleY:1/d},h=s+4,p=l+4,m=n.getCanvas("mesh",h,p,!1),g=m.context,v=g.createImageData(s,l);if(t){const e=v.data;for(let n=0,r=e.length;n<r;n+=4)e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=255}for(const y of this._figures)u(v,y,f);return g.putImageData(v,2,2),{canvas:m.canvas,offsetX:r-2*c,offsetY:o-2*d,scaleX:c,scaleY:d}}getPattern(e,t,n,s){let l;if(i(e,this._bbox),s===a.SHADING)l=r.Util.singularValueDecompose2dScale((0,o.getCurrentTransform)(e));else if(l=r.Util.singularValueDecompose2dScale(t.baseTransform),this.matrix){const e=r.Util.singularValueDecompose2dScale(this.matrix);l=[l[0]*e[0],l[1]*e[1]]}const c=this._createMeshCanvas(l,s===a.SHADING?null:this._background,t.cachedCanvases);return s!==a.SHADING&&(e.setTransform(...t.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(c.offsetX,c.offsetY),e.scale(c.scaleX,c.scaleY),e.createPattern(c.canvas,"no-repeat")}}class f extends s{getPattern(){return"hotpink"}}const h=1,p=2;class m{constructor(e,t,n,r,o){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.ctx=n,this.canvasGraphicsFactory=r,this.baseTransform=o}createPatternCanvas(e){const t=this.operatorList,n=this.bbox,a=this.xstep,i=this.ystep,s=this.paintType,l=this.tilingType,c=this.color,u=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+l);const d=n[0],f=n[1],h=n[2],p=n[3],m=r.Util.singularValueDecompose2dScale(this.matrix),g=r.Util.singularValueDecompose2dScale(this.baseTransform),v=[m[0]*g[0],m[1]*g[1]],y=this.getSizeAndScale(a,this.ctx.canvas.width,v[0]),b=this.getSizeAndScale(i,this.ctx.canvas.height,v[1]),w=e.cachedCanvases.getCanvas("pattern",y.size,b.size,!0),x=w.context,S=u.createCanvasGraphics(x);S.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(S,s,c);let C=d,_=f,E=h,k=p;return d<0&&(C=0,E+=Math.abs(d)),f<0&&(_=0,k+=Math.abs(f)),x.translate(-y.scale*C,-b.scale*_),S.transform(y.scale,0,0,b.scale,0,0),x.save(),this.clipBbox(S,C,_,E,k),S.baseTransform=(0,o.getCurrentTransform)(S.ctx),S.executeOperatorList(t),S.endDrawing(),{canvas:w.canvas,scaleX:y.scale,scaleY:b.scale,offsetX:C,offsetY:_}}getSizeAndScale(e,t,n){e=Math.abs(e);const r=Math.max(m.MAX_PATTERN_SIZE,t);let o=Math.ceil(e*n);return o>=r?o=r:n=o/e,{scale:n,size:o}}clipBbox(e,t,n,r,a){const i=r-t,s=a-n;e.ctx.rect(t,n,i,s),e.current.updateRectMinMax((0,o.getCurrentTransform)(e.ctx),[t,n,r,a]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const o=e.ctx,a=e.current;switch(t){case h:const e=this.ctx;o.fillStyle=e.fillStyle,o.strokeStyle=e.strokeStyle,a.fillColor=e.fillStyle,a.strokeColor=e.strokeStyle;break;case p:const i=r.Util.makeHexColor(n[0],n[1],n[2]);o.fillStyle=i,o.strokeStyle=i,a.fillColor=i,a.strokeColor=i;break;default:throw new r.FormatError("Unsupported paint type: ".concat(t))}}getPattern(e,t,n,o){let i=n;o!==a.SHADING&&(i=r.Util.transform(i,t.baseTransform),this.matrix&&(i=r.Util.transform(i,this.matrix)));const s=this.createPatternCanvas(t);let l=new DOMMatrix(i);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");return c.setTransform(l),c}}_defineProperty(m,"MAX_PATTERN_SIZE",3e3),t.TilingPattern=m},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=o,t.convertToRGBA=function(e){switch(e.kind){case r.ImageKind.GRAYSCALE_1BPP:return o(e);case r.ImageKind.RGB_24BPP:return function(e){let{src:t,srcPos:n=0,dest:o,destPos:a=0,width:i,height:s}=e,l=0;const c=t.length>>2,u=new Uint32Array(t.buffer,n,c);if(r.FeatureTest.isLittleEndian){for(;l<c-2;l+=3,a+=4){const e=u[l],t=u[l+1],n=u[l+2];o[a]=4278190080|e,o[a+1]=e>>>24|t<<8|4278190080,o[a+2]=t>>>16|n<<16|4278190080,o[a+3]=n>>>8|4278190080}for(let e=4*l,n=t.length;e<n;e+=3)o[a++]=t[e]|t[e+1]<<8|t[e+2]<<16|4278190080}else{for(;l<c-2;l+=3,a+=4){const e=u[l],t=u[l+1],n=u[l+2];o[a]=255|e,o[a+1]=e<<24|t>>>8|255,o[a+2]=t<<16|n>>>16|255,o[a+3]=n<<8|255}for(let e=4*l,n=t.length;e<n;e+=3)o[a++]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|255}return{srcPos:n,destPos:a}}(e)}return null},t.grayToRGBA=function(e,t){if(r.FeatureTest.isLittleEndian)for(let n=0,r=e.length;n<r;n++)t[n]=65793*e[n]|4278190080;else for(let n=0,r=e.length;n<r;n++)t[n]=16843008*e[n]|255};var r=n(1);function o(e){let{src:t,srcPos:n=0,dest:o,width:a,height:i,nonBlackColor:s=4294967295,inverseDecode:l=!1}=e;const c=r.FeatureTest.isLittleEndian?4278190080:255,[u,d]=l?[s,c]:[c,s],f=a>>3,h=7&a,p=t.length;o=new Uint32Array(o.buffer);let m=0;for(let r=0;r<i;r++){for(const r=n+f;n<r;n++){const e=n<p?t[n]:255;o[m++]=128&e?d:u,o[m++]=64&e?d:u,o[m++]=32&e?d:u,o[m++]=16&e?d:u,o[m++]=8&e?d:u,o[m++]=4&e?d:u,o[m++]=2&e?d:u,o[m++]=1&e?d:u}if(0===h)continue;const e=n<p?t[n++]:255;for(let t=0;t<h;t++)o[m++]=e&1<<7-t?d:u}return{srcPos:n,destPos:m}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=null,n.workerSrc=""},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1);const o=1,a=2,i=1,s=2,l=3,c=4,u=5,d=6,f=7,h=8;function p(e){switch(e instanceof Error||"object"===typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}var m=new WeakSet;function g(e){const t=e.streamId,n=this.sourceName,o=e.sourceName,a=this.comObj,i=this,s=this.actionHandler[e.action],d={enqueue(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=i,l>0&&this.desiredSize<=0&&(this.sinkCapability=new r.PromiseCapability,this.ready=this.sinkCapability.promise),a.postMessage({sourceName:n,targetName:o,stream:c,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:n,targetName:o,stream:l,streamId:t}),delete i.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,a.postMessage({sourceName:n,targetName:o,stream:u,streamId:t,reason:p(e)}))},sinkCapability:new r.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){a.postMessage({sourceName:n,targetName:o,stream:h,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:n,targetName:o,stream:h,streamId:t,reason:p(e)})}))}function v(e){const t=e.streamId,n=this.sourceName,o=e.sourceName,a=this.comObj,g=this.streamControllers[t],v=this.streamSinks[t];switch(e.stream){case h:e.success?g.startCall.resolve():g.startCall.reject(p(e.reason));break;case f:e.success?g.pullCall.resolve():g.pullCall.reject(p(e.reason));break;case d:if(!v){a.postMessage({sourceName:n,targetName:o,stream:f,streamId:t,success:!0});break}v.desiredSize<=0&&e.desiredSize>0&&v.sinkCapability.resolve(),v.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=v.onPull)||void 0===t?void 0:t.call(v))})).then((function(){a.postMessage({sourceName:n,targetName:o,stream:f,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:n,targetName:o,stream:f,streamId:t,reason:p(e)})}));break;case c:if((0,r.assert)(g,"enqueue should have stream controller"),g.isClosed)break;g.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(g,"close should have stream controller"),g.isClosed)break;g.isClosed=!0,g.controller.close(),_assertClassBrand(m,this,y).call(this,g,t);break;case u:(0,r.assert)(g,"error should have stream controller"),g.controller.error(p(e.reason)),_assertClassBrand(m,this,y).call(this,g,t);break;case s:e.success?g.cancelCall.resolve():g.cancelCall.reject(p(e.reason)),_assertClassBrand(m,this,y).call(this,g,t);break;case i:if(!v)break;new Promise((function(t){var n;t(null===(n=v.onCancel)||void 0===n?void 0:n.call(v,p(e.reason)))})).then((function(){a.postMessage({sourceName:n,targetName:o,stream:s,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:n,targetName:o,stream:s,streamId:t,reason:p(e)})})),v.sinkCapability.reject(p(e.reason)),v.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async function y(e,t){var n,r,o;await Promise.allSettled([null===(n=e.startCall)||void 0===n?void 0:n.promise,null===(r=e.pullCall)||void 0===r?void 0:r.promise,null===(o=e.cancelCall)||void 0===o?void 0:o.promise]),delete this.streamControllers[t]}t.MessageHandler=class{constructor(e,t,n){_classPrivateMethodInitSpec(this,m),this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void _assertClassBrand(m,this,v).call(this,t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error("Cannot resolve callback ".concat(e));if(delete this.callbackCapabilities[e],t.callback===o)n.resolve(t.data);else{if(t.callback!==a)throw new Error("Unexpected callback case");n.reject(p(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){const e=this.sourceName,i=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:i,callback:o,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:i,callback:a,callbackId:t.callbackId,reason:p(r)})}))}else t.streamId?_assertClassBrand(m,this,g).call(this,t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called "'.concat(e,'"'));n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const o=this.callbackId++,a=new r.PromiseCapability;this.callbackCapabilities[o]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:o,data:t},n)}catch(i){a.reject(i)}return a.promise}sendWithStream(e,t,n,o){const a=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const i=new r.PromiseCapability;return this.streamControllers[a]={controller:n,startCall:i,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:a,data:t,desiredSize:n.desiredSize},o),i.promise},pull:e=>{const t=new r.PromiseCapability;return this.streamControllers[a].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:d,streamId:a,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=new r.PromiseCapability;return this.streamControllers[a].cancelCall=t,this.streamControllers[a].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:i,streamId:a,reason:p(e)}),t.promise}},n)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1),o=new WeakMap,a=new WeakMap;t.Metadata=class{constructor(e){let{parsedData:t,rawData:n}=e;_classPrivateFieldInitSpec(this,o,void 0),_classPrivateFieldInitSpec(this,a,void 0),_classPrivateFieldSet(o,this,t),_classPrivateFieldSet(a,this,n)}getRaw(){return _classPrivateFieldGet(a,this)}get(e){var t;return null!==(t=_classPrivateFieldGet(o,this).get(e))&&void 0!==t?t:null}getAll(){return(0,r.objectFromMap)(_classPrivateFieldGet(o,this))}has(e){return _classPrivateFieldGet(o,this).has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1),o=n(8);const a=Symbol("INTERNAL");var i=new WeakMap;class s{constructor(e,t){_classPrivateFieldInitSpec(this,i,!0),this.name=e,this.intent=t}get visible(){return _classPrivateFieldGet(i,this)}_setVisible(e,t){e!==a&&(0,r.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(i,this,t)}}var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakSet;function h(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let o=1;o<t;o++){const t=e[o];let a;if(Array.isArray(t))a=_assertClassBrand(f,this,h).call(this,t);else{if(!_classPrivateFieldGet(c,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;a=_classPrivateFieldGet(c,this).get(t).visible}switch(n){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return"And"===n}t.OptionalContentConfig=class{constructor(e){if(_classPrivateMethodInitSpec(this,f),_classPrivateFieldInitSpec(this,l,null),_classPrivateFieldInitSpec(this,c,new Map),_classPrivateFieldInitSpec(this,u,null),_classPrivateFieldInitSpec(this,d,null),this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,_classPrivateFieldSet(d,this,e.order);for(const t of e.groups)_classPrivateFieldGet(c,this).set(t.id,new s(t.name,t.intent));if("OFF"===e.baseState)for(const e of _classPrivateFieldGet(c,this).values())e._setVisible(a,!1);for(const t of e.on)_classPrivateFieldGet(c,this).get(t)._setVisible(a,!0);for(const t of e.off)_classPrivateFieldGet(c,this).get(t)._setVisible(a,!1);_classPrivateFieldSet(u,this,this.getHash())}}isVisible(e){if(0===_classPrivateFieldGet(c,this).size)return!0;if(!e)return(0,r.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return _classPrivateFieldGet(c,this).has(e.id)?_classPrivateFieldGet(c,this).get(e.id).visible:((0,r.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return _assertClassBrand(f,this,h).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(c,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(_classPrivateFieldGet(c,this).get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(c,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(!_classPrivateFieldGet(c,this).get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(c,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(!_classPrivateFieldGet(c,this).get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(const t of e.ids){if(!_classPrivateFieldGet(c,this).has(t))return(0,r.warn)("Optional content group not found: ".concat(t)),!0;if(_classPrivateFieldGet(c,this).get(t).visible)return!1}return!0}return(0,r.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,r.warn)("Unknown group type ".concat(e.type,".")),!0}setVisibility(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(c,this).has(e)?(_classPrivateFieldGet(c,this).get(e)._setVisible(a,!!t),_classPrivateFieldSet(l,this,null)):(0,r.warn)("Optional content group not found: ".concat(e))}get hasInitialVisibility(){return null===_classPrivateFieldGet(u,this)||this.getHash()===_classPrivateFieldGet(u,this)}getOrder(){return _classPrivateFieldGet(c,this).size?_classPrivateFieldGet(d,this)?_classPrivateFieldGet(d,this).slice():[..._classPrivateFieldGet(c,this).keys()]:null}getGroups(){return _classPrivateFieldGet(c,this).size>0?(0,r.objectFromMap)(_classPrivateFieldGet(c,this)):null}getGroup(e){return _classPrivateFieldGet(c,this).get(e)||null}getHash(){if(null!==_classPrivateFieldGet(l,this))return _classPrivateFieldGet(l,this);const e=new o.MurmurHash3_64;for(const[t,n]of _classPrivateFieldGet(c,this))e.update("".concat(t,":").concat(n.visible));return _classPrivateFieldSet(l,this,e.hexdigest())}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(1),o=n(6);t.PDFDataTransportStream=class{constructor(e,t){let{length:n,initialData:o,progressiveDone:a=!1,contentDispositionFilename:i=null,disableRange:s=!1,disableStream:l=!1}=e;if((0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=i,(null===o||void 0===o?void 0:o.length)>0){const e=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!l,this._isRangeSupported=!s,this._contentLength=n,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){let{begin:t,chunk:n}=e;const o=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(o):this._queuedChunks.push(o);else{const e=this._rangeReaders.some((function(e){return e._begin===t&&(e._enqueue(o),!0)}));(0,r.assert)(e,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}_onProgress(e){var t,n,r,o;void 0===e.total?null===(t=this._rangeReaders[0])||void 0===t||null===(n=t.onProgress)||void 0===n||n.call(t,{loaded:e.loaded}):null===(r=this._fullRequestReader)||void 0===r||null===(o=r.onProgress)||void 0===o||o.call(r,{loaded:e.loaded,total:e.total})}_onProgressiveDone(){var e;null===(e=this._fullRequestReader)||void 0===e||e.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new a(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new i(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeReaders.slice(0))n.cancel(e);this._pdfDataRangeTransport.abort()}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=e,this._done=n||!1,this._filename=(0,o.isPdfFile)(r)?r:null,this._queuedChunks=t||[],this._loaded=0;for(const o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=new r.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class i{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new r.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),o=n(20);function a(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function i(e){const t=new Headers;for(const n in e){const r=e[n];void 0!==r&&t.append(n,r)}return t}function s(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,r.warn)("getArrayBuffer - unexpected data format: ".concat(e)),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new c(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new r.PromiseCapability,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=i(this._stream.httpHeaders);const n=t.url;fetch(n,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:i}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;await this._headersCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),{value:s(t),done:!1})}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}class c{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=new r.PromiseCapability,this._isStreamingSupported=!s.disableStream,this._abortController=new AbortController,this._headers=i(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(t,"-").concat(n-1));const l=s.url;fetch(l,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;await this._readCapability.promise;const{value:t,done:n}=await this._reader.read();return n?{value:t,done:n}:(this._loaded+=t.byteLength,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),{value:s(t),done:!1})}cancel(e){var t;null===(t=this._reader)||void 0===t||t.cancel(e),this._abortController.abort()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException("Unexpected server response (".concat(e,') while retrieving PDF "').concat(t,'".'),e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,o.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch{}if((0,a.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function(e){let{getResponseHeader:t,isHttp:n,rangeChunkSize:r,disableRange:o}=e;const a={allowRangeRequests:!1,suggestedLength:void 0},i=parseInt(t("Content-Length"),10);return Number.isInteger(i)?(a.suggestedLength=i,i<=2*r||o||!n||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(a.allowRangeRequests=!0),a):a},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),o=n(21),a=n(6)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=o("filename\\*","i").exec(e);if(n){n=n[1];let e=s(n);return e=unescape(e),e=l(e),e=c(e),i(e)}if(n=function(e){const t=[];let n;const r=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(e));){let[,e,r,o]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[r,o]}const a=[];for(let o=0;o<t.length&&o in t;++o){let[e,n]=t[o];n=s(n),e&&(n=unescape(n),0===o&&(n=l(n))),a.push(n)}return a.join("")}(e),n)return i(c(n));if(n=o("filename","i").exec(e),n){n=n[1];let e=s(n);return e=c(e),i(e)}function o(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function a(e,n){if(e){if(!/^[\x00-\xFF]+$/.test(n))return n;try{const o=new TextDecoder(e,{fatal:!0}),a=(0,r.stringToBytes)(n);n=o.decode(a),t=!1}catch{}}return n}function i(e){return t&&/[\x80-\xff]/.test(e)&&(e=a("utf-8",e),t&&(e=a("iso-8859-1",e))),e}function s(e){if(e.startsWith('"')){const t=e.slice(1).split('\\"');for(let e=0;e<t.length;++e){const n=t[e].indexOf('"');-1!==n&&(t[e]=t[e].slice(0,n),t.length=e+1),t[e]=t[e].replaceAll(/\\(.)/g,"$1")}e=t.join('"')}return e}function l(e){const t=e.indexOf("'");return-1===t?e:a(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function c(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,n,r){if("q"===n||"Q"===n)return a(t,r=(r=r.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{r=atob(r)}catch{}return a(t,r)}))}return""};var r=n(1)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(1),o=n(20);class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const o in n)r[o]=n[o];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=new XMLHttpRequest,n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const o in this.httpHeaders){const e=this.httpHeaders[o];void 0!==e&&t.setRequestHeader(o,e)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){var n;const r=this.pendingRequests[e];r&&(null===(n=r.onProgress)||void 0===n||n.call(r,t))}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const o=n.xhr;if(o.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==o.readyState)return;if(!(e in this.pendingRequests))return;var a;if(delete this.pendingRequests[e],0===o.status&&this.isHttp)return void(null===(a=n.onError)||void 0===a||a.call(n,o.status));const i=o.status||200;var s;if((200!==i||206!==n.expectedStatus)&&i!==n.expectedStatus)return void(null===(s=n.onError)||void 0===s||s.call(n,o.status));const l=function(e){const t=e.response;return"string"!==typeof t?t:(0,r.stringToBytes)(t).buffer}(o);if(206===i){const e=o.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:l})}else if(l)n.onDone({begin:0,chunk:l});else{var c;null===(c=n.onError)||void 0===c||c.call(n,o.status)}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new a(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new s(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class i{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=new r.PromiseCapability,this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:a}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,o.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var t;null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=new r.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;null===(e=this.onClosed)||void 0===e||e.call(this,this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,o.createResponseStatusError)(e,this._url);for(const t of this._requests)t.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){var t;this.isStreamingSupported||null===(t=this.onProgress)||void 0===t||t.call(this,{loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new r.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const t of this._requests)t.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),o=n(20);const a=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=__webpack_require__(671),n=t.parse(e);return"file:"===n.protocol||n.host?n:/^[a-z]:[/\\]/i.test(e)?t.parse("file:///".concat(e)):(n.host||(n.protocol="file:"),n)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var e,t;return null!==(e=null===(t=this._fullRequestReader)||void 0===t?void 0:t._loaded)&&void 0!==e?e:0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new d(this):new c(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new f(this,e,t):new u(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){var t;null===(t=this._fullRequestReader)||void 0===t||t.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}};class i{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=new r.PromiseCapability,this._headersCapability=new r.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return null===t?(this._readCapability=new r.PromiseCapability,this.read()):(this._loaded+=t.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class s{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new r.PromiseCapability;const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var e;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const t=this._readableStream.read();return null===t?(this._readCapability=new r.PromiseCapability,this.read()):(this._loaded+=t.length,null===(e=this.onProgress)||void 0===e||e.call(this,{loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class c extends i{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new r.MissingPDFException('Missing PDF "'.concat(this._url,'".'));return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:i}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(n)};if(this._request=null,"http:"===this._url.protocol){const n=__webpack_require__(492);this._request=n.request(l(this._url,e.httpHeaders),t)}else{const n=__webpack_require__(815);this._request=n.request(l(this._url,e.httpHeaders),t)}this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class u extends s{constructor(e,t,n){super(e),this._httpHeaders={};for(const r in e.httpHeaders){const t=e.httpHeaders[r];void 0!==t&&(this._httpHeaders[r]=t)}this._httpHeaders.Range="bytes=".concat(t,"-").concat(n-1);const o=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException('Missing PDF "'.concat(this._url,'".'));this._storedError=e}};if(this._request=null,"http:"===this._url.protocol){const e=__webpack_require__(492);this._request=e.request(l(this._url,this._httpHeaders),o)}else{const e=__webpack_require__(815);this._request=e.request(l(this._url,this._httpHeaders),o)}this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class d extends i{constructor(e){super(e);let t=decodeURIComponent(this._url.path);a.test(this._url.href)&&(t=t.replace(/^\//,""));const n=__webpack_require__(237);n.lstat(t,((e,o)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException('Missing PDF "'.concat(t,'".'))),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=o.size,this._setReadableStream(n.createReadStream(t)),this._headersCapability.resolve()}))}}class f extends s{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);a.test(this._url.href)&&(r=r.replace(/^\//,""));const o=__webpack_require__(237);this._setReadableStream(o.createReadStream(r,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(6),o=n(1);const a="normal",i="normal",s="#000000",l=["butt","round","square"],c=["miter","round","bevel"],u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!==typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let o="data:".concat(t,";base64,");for(let a=0,i=e.length;a<i;a+=3){const t=255&e[a],n=255&e[a+1],s=255&e[a+2];o+=r[t>>2]+r[(3&t)<<4|n>>4]+r[a+1<i?(15&n)<<2|s>>6:64]+r[a+2<i?63&s:64]}return o},d=function(){const e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256);for(let o=0;o<256;o++){let e=o;for(let t=0;t<8;t++)e=1&e?3988292384^e>>1&2147483647:e>>1&2147483647;t[o]=e}function n(e,n,r,o){let a=o;const i=n.length;r[a]=i>>24&255,r[a+1]=i>>16&255,r[a+2]=i>>8&255,r[a+3]=255&i,a+=4,r[a]=255&e.charCodeAt(0),r[a+1]=255&e.charCodeAt(1),r[a+2]=255&e.charCodeAt(2),r[a+3]=255&e.charCodeAt(3),a+=4,r.set(n,a),a+=n.length;const s=function(e,n,r){let o=-1;for(let a=n;a<r;a++){const n=255&(o^e[a]);o=o>>>8^t[n]}return~o}(r,o+4,a);r[a]=s>>24&255,r[a+1]=s>>16&255,r[a+2]=s>>8&255,r[a+3]=255&s}function r(e){let t=e.length;const n=65535,r=Math.ceil(t/n),o=new Uint8Array(2+t+5*r+4);let a=0;o[a++]=120,o[a++]=156;let i=0;for(;t>n;)o[a++]=0,o[a++]=255,o[a++]=255,o[a++]=0,o[a++]=0,o.set(e.subarray(i,i+n),a),a+=n,i+=n,t-=n;o[a++]=1,o[a++]=255&t,o[a++]=t>>8&255,o[a++]=255&~t,o[a++]=(65535&~t)>>8&255,o.set(e.subarray(i),a),a+=e.length-i;const s=function(e,t,n){let r=1,o=0;for(let a=t;a<n;++a)r=(r+(255&e[a]))%65521,o=(o+r)%65521;return o<<16|r}(e,0,e.length);return o[a++]=s>>24&255,o[a++]=s>>16&255,o[a++]=s>>8&255,o[a++]=255&s,o}function a(t,a,i,s){const l=t.width,c=t.height;let d,f,h;const p=t.data;switch(a){case o.ImageKind.GRAYSCALE_1BPP:f=0,d=1,h=l+7>>3;break;case o.ImageKind.RGB_24BPP:f=2,d=8,h=3*l;break;case o.ImageKind.RGBA_32BPP:f=6,d=8,h=4*l;break;default:throw new Error("invalid format")}const m=new Uint8Array((1+h)*c);let g=0,v=0;for(let e=0;e<c;++e)m[g++]=0,m.set(p.subarray(v,v+h),g),v+=h,g+=h;if(a===o.ImageKind.GRAYSCALE_1BPP&&s){g=0;for(let e=0;e<c;e++){g++;for(let e=0;e<h;e++)m[g++]^=255}}const y=new Uint8Array([l>>24&255,l>>16&255,l>>8&255,255&l,c>>24&255,c>>16&255,c>>8&255,255&c,d,f,0,0,0]),b=function(e){if(!o.isNodeJS)return r(e);try{const t=parseInt(process.versions.node)>=8?e:Buffer.from(e),n=__webpack_require__(787).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,o.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return r(e)}(m),w=e.length+36+y.length+b.length,x=new Uint8Array(w);let S=0;return x.set(e,S),S+=e.length,n("IHDR",y,x,S),S+=12+y.length,n("IDATA",b,x,S),S+=12+b.length,n("IEND",new Uint8Array(0),x,S),u(x,"image/png",i)}return function(e,t,n){return a(e,void 0===e.kind?o.ImageKind.GRAYSCALE_1BPP:e.kind,t,n)}}();class f{constructor(){this.fontSizeScale=1,this.fontWeight=i,this.fontSize=0,this.textMatrix=o.IDENTITY_MATRIX,this.fontMatrix=o.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=o.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=s,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function h(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function p(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(h(e[0])," ").concat(h(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){const t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(h(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(h(e[4])," ").concat(h(e[5]),")");return"matrix(".concat(h(e[0])," ").concat(h(e[1])," ").concat(h(e[2])," ").concat(h(e[3])," ").concat(h(e[4])," ")+"".concat(h(e[5]),")")}let m=0,g=0,v=0;t.SVGGraphics=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new r.DOMSVGFactory,this.current=new f,this.transformMatrix=o.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const r in o.OPS)this._operatorIdMapping[o.OPS[r]]=r}getObject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"===typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let r=0,a=t.length;r<a;r++)if(t[r]===o.OPS.dependency)for(const e of n[r]){const t=e.startsWith("g_")?this.commonObjs:this.objs,n=new Promise((n=>{t.get(e,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,r,a,i){const s=[e,t,n,r,a,i];this.transformMatrix=o.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=o.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,o=[];for(let a=0,i=r.length;a<i;a++){const e=r[a];o.push({fnId:e,fn:t[e],args:n[a]})}return function(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t.at(-1).items);return t}(o)}executeOpTree(e){for(const t of e){const e=t.fn,n=t.fnId,r=t.args;switch(0|n){case o.OPS.beginText:this.beginText();break;case o.OPS.dependency:break;case o.OPS.setLeading:this.setLeading(r);break;case o.OPS.setLeadingMoveText:this.setLeadingMoveText(r[0],r[1]);break;case o.OPS.setFont:this.setFont(r);break;case o.OPS.showText:case o.OPS.showSpacedText:this.showText(r[0]);break;case o.OPS.endText:this.endText();break;case o.OPS.moveText:this.moveText(r[0],r[1]);break;case o.OPS.setCharSpacing:this.setCharSpacing(r[0]);break;case o.OPS.setWordSpacing:this.setWordSpacing(r[0]);break;case o.OPS.setHScale:this.setHScale(r[0]);break;case o.OPS.setTextMatrix:this.setTextMatrix(r[0],r[1],r[2],r[3],r[4],r[5]);break;case o.OPS.setTextRise:this.setTextRise(r[0]);break;case o.OPS.setTextRenderingMode:this.setTextRenderingMode(r[0]);break;case o.OPS.setLineWidth:this.setLineWidth(r[0]);break;case o.OPS.setLineJoin:this.setLineJoin(r[0]);break;case o.OPS.setLineCap:this.setLineCap(r[0]);break;case o.OPS.setMiterLimit:this.setMiterLimit(r[0]);break;case o.OPS.setFillRGBColor:this.setFillRGBColor(r[0],r[1],r[2]);break;case o.OPS.setStrokeRGBColor:this.setStrokeRGBColor(r[0],r[1],r[2]);break;case o.OPS.setStrokeColorN:this.setStrokeColorN(r);break;case o.OPS.setFillColorN:this.setFillColorN(r);break;case o.OPS.shadingFill:this.shadingFill(r[0]);break;case o.OPS.setDash:this.setDash(r[0],r[1]);break;case o.OPS.setRenderingIntent:this.setRenderingIntent(r[0]);break;case o.OPS.setFlatness:this.setFlatness(r[0]);break;case o.OPS.setGState:this.setGState(r[0]);break;case o.OPS.fill:this.fill();break;case o.OPS.eoFill:this.eoFill();break;case o.OPS.stroke:this.stroke();break;case o.OPS.fillStroke:this.fillStroke();break;case o.OPS.eoFillStroke:this.eoFillStroke();break;case o.OPS.clip:this.clip("nonzero");break;case o.OPS.eoClip:this.clip("evenodd");break;case o.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case o.OPS.paintImageXObject:this.paintImageXObject(r[0]);break;case o.OPS.paintInlineImageXObject:this.paintInlineImageXObject(r[0]);break;case o.OPS.paintImageMaskXObject:this.paintImageMaskXObject(r[0]);break;case o.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(r[0],r[1]);break;case o.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case o.OPS.closePath:this.closePath();break;case o.OPS.closeStroke:this.closeStroke();break;case o.OPS.closeFillStroke:this.closeFillStroke();break;case o.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case o.OPS.nextLine:this.nextLine();break;case o.OPS.transform:this.transform(r[0],r[1],r[2],r[3],r[4],r[5]);break;case o.OPS.constructPath:this.constructPath(r[0],r[1]);break;case o.OPS.endPath:this.endPath();break;case 92:this.group(t.items);break;default:(0,o.warn)("Unimplemented operator ".concat(e))}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,n,r,o,a){const i=this.current;i.textMatrix=i.lineMatrix=[e,t,n,r,o,a],i.textMatrixScale=Math.hypot(e,t),i.x=i.lineX=0,i.y=i.lineY=0,i.xcoords=[],i.ycoords=[],i.tspan=this.svgFactory.createElement("svg:tspan"),i.tspan.setAttributeNS(null,"font-family",i.fontFamily),i.tspan.setAttributeNS(null,"font-size","".concat(h(i.fontSize),"px")),i.tspan.setAttributeNS(null,"y",h(-i.y)),i.txtElement=this.svgFactory.createElement("svg:text"),i.txtElement.append(i.tspan)}beginText(){const e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=o.IDENTITY_MATRIX,e.lineMatrix=o.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){const n=this.current;n.x=n.lineX+=e,n.y=n.lineY+=t,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(h(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",h(-n.y))}showText(e){const t=this.current,n=t.font,r=t.fontSize;if(0===r)return;const l=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,f=t.textHScale*d,m=n.vertical,g=m?1:-1,v=n.defaultVMetrics,y=r*t.fontMatrix[0];let b=0;for(const o of e){if(null===o){b+=d*u;continue}if("number"===typeof o){b+=g*o*r/1e3;continue}const e=(o.isSpace?u:0)+c,a=o.fontChar;let i,s,f=o.width;if(m){let e;const t=o.vmetric||v;e=o.vmetric?t[1]:.5*f,e=-e*y;const n=t[2]*y;f=t?-t[0]:f,i=e/l,s=(b+n)/l}else i=b/l,s=0;(o.isInFont||n.missingFile)&&(t.xcoords.push(t.x+i),m&&t.ycoords.push(-t.y+s),t.tspan.textContent+=a),b+=m?f*y-e*d:f*y+e*d}t.tspan.setAttributeNS(null,"x",t.xcoords.map(h).join(" ")),m?t.tspan.setAttributeNS(null,"y",t.ycoords.map(h).join(" ")):t.tspan.setAttributeNS(null,"y",h(-t.y)),m?t.y-=b:t.x+=b*f,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(h(t.fontSize),"px")),t.fontStyle!==a&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==i&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);const w=t.textRenderingMode&o.TextRenderingMode.FILL_STROKE_MASK;if(w===o.TextRenderingMode.FILL||w===o.TextRenderingMode.FILL_STROKE?(t.fillColor!==s&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===o.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),w===o.TextRenderingMode.STROKE||w===o.TextRenderingMode.FILL_STROKE){const e=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,e)}let x=t.textMatrix;0!==t.textRise&&(x=x.slice(),x[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(p(x)," scale(").concat(h(f),", -1)")),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.append(t.tspan),t.txtgrp.append(t.txtElement),this._ensureTransformGroup().append(t.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const t=u(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}setFont(e){const t=this.current,n=this.commonObjs.get(e[0]);let r=e[1];t.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),t.fontMatrix=n.fontMatrix||o.FONT_IDENTITY_MATRIX;let a="normal";n.black?a="900":n.bold&&(a="bold");const i=n.italic?"italic":"normal";r<0?(r=-r,t.fontDirection=-1):t.fontDirection=1,t.fontSize=r,t.fontFamily=n.loadedName,t.fontWeight=a,t.fontStyle=i,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",h(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){var e;const t=this.current;t.textRenderingMode&o.TextRenderingMode.ADD_TO_PATH_FLAG&&null!==(e=t.txtElement)&&void 0!==e&&e.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=l[e]}setLineJoin(e){this.current.lineJoin=c[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=o.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=o.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const{width:t,height:n}=this.viewport,r=o.Util.inverseTransform(this.transformMatrix),[a,i,s,l]=o.Util.getAxialAlignedBoundingBox([0,0,t,n],r),c=this.svgFactory.createElement("svg:rect");c.setAttributeNS(null,"x",a),c.setAttributeNS(null,"y",i),c.setAttributeNS(null,"width",s-a),c.setAttributeNS(null,"height",l-i),c.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&c.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(c)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],r=e[3]||o.IDENTITY_MATRIX,[a,i,s,l]=e[4],c=e[5],u=e[6],d=e[7],f="shading".concat(v++),[h,p,m,g]=o.Util.normalizeRect([...o.Util.applyTransform([a,i],r),...o.Util.applyTransform([s,l],r)]),[y,b]=o.Util.singularValueDecompose2dScale(r),w=c*y,x=u*b,S=this.svgFactory.createElement("svg:pattern");S.setAttributeNS(null,"id",f),S.setAttributeNS(null,"patternUnits","userSpaceOnUse"),S.setAttributeNS(null,"width",w),S.setAttributeNS(null,"height",x),S.setAttributeNS(null,"x","".concat(h)),S.setAttributeNS(null,"y","".concat(p));const C=this.svg,_=this.transformMatrix,E=this.current.fillColor,k=this.current.strokeColor,P=this.svgFactory.create(m-h,g-p);if(this.svg=P,this.transformMatrix=r,2===d){const e=o.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=C,this.transformMatrix=_,this.current.fillColor=E,this.current.strokeColor=k,S.append(P.childNodes[0]),this.defs.append(S),"url(#".concat(f,")")}_makeShadingPattern(e){switch("string"===typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading".concat(v++),n=e[3];let r;switch(e[1]){case"axial":const n=e[4],o=e[5];r=this.svgFactory.createElement("svg:linearGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"x1",n[0]),r.setAttributeNS(null,"y1",n[1]),r.setAttributeNS(null,"x2",o[0]),r.setAttributeNS(null,"y2",o[1]);break;case"radial":const a=e[4],i=e[5],s=e[6],l=e[7];r=this.svgFactory.createElement("svg:radialGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"cx",i[0]),r.setAttributeNS(null,"cy",i[1]),r.setAttributeNS(null,"r",l),r.setAttributeNS(null,"fx",a[0]),r.setAttributeNS(null,"fy",a[1]),r.setAttributeNS(null,"fr",s);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),r.append(t)}return this.defs.append(r),"url(#".concat(t,")");case"Mesh":return(0,o.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let r=n.x,a=n.y,i=[],s=0;for(const l of e)switch(0|l){case o.OPS.rectangle:r=t[s++],a=t[s++];const e=r+t[s++],n=a+t[s++];i.push("M",h(r),h(a),"L",h(e),h(a),"L",h(e),h(n),"L",h(r),h(n),"Z");break;case o.OPS.moveTo:r=t[s++],a=t[s++],i.push("M",h(r),h(a));break;case o.OPS.lineTo:r=t[s++],a=t[s++],i.push("L",h(r),h(a));break;case o.OPS.curveTo:r=t[s+4],a=t[s+5],i.push("C",h(t[s]),h(t[s+1]),h(t[s+2]),h(t[s+3]),h(r),h(a)),s+=6;break;case o.OPS.curveTo2:i.push("C",h(r),h(a),h(t[s]),h(t[s+1]),h(t[s+2]),h(t[s+3])),r=t[s+2],a=t[s+3],s+=4;break;case o.OPS.curveTo3:r=t[s+2],a=t[s+3],i.push("C",h(t[s]),h(t[s+1]),h(r),h(a),h(r),h(a)),s+=4;break;case o.OPS.closePath:i.push("Z")}i=i.join(" "),n.path&&e.length>0&&e[0]!==o.OPS.rectangle&&e[0]!==o.OPS.moveTo?i=n.path.getAttributeNS(null,"d")+i:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",i),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(r,a)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath".concat(m++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",p(this.transformMatrix));const r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(r),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,o.warn)("Unimplemented graphic state operator ".concat(t))}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",h(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",h(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(h).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",h(t*n.dashPhase)+"px")}eoFill(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var e;null===(e=this.current.element)||void 0===e||e.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,o.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}paintInlineImageXObject(e,t){const n=e.width,r=e.height,o=d(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",h(n)),a.setAttributeNS(null,"height",h(r)),this.current.element=a,this.clip("nonzero");const i=this.svgFactory.createElement("svg:image");i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y",h(-r)),i.setAttributeNS(null,"width",h(n)+"px"),i.setAttributeNS(null,"height",h(r)+"px"),i.setAttributeNS(null,"transform","scale(".concat(h(1/n)," ").concat(h(-1/r),")")),t?t.append(i):this._ensureTransformGroup().append(i)}paintImageMaskXObject(e){const t=this.getObject(e.data,e);if(t.bitmap)return void(0,o.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");const n=this.current,r=t.width,a=t.height,i=n.fillColor;n.maskId="mask".concat(g++);const s=this.svgFactory.createElement("svg:mask");s.setAttributeNS(null,"id",n.maskId);const l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",h(r)),l.setAttributeNS(null,"height",h(a)),l.setAttributeNS(null,"fill",i),l.setAttributeNS(null,"mask","url(#".concat(n.maskId,")")),this.defs.append(s),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,s)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",h(e)),r.setAttributeNS(null,"height",h(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",p(e.transform)),t.append(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",p(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function e(r){var o;if(!r)return;let a=null;const i=r.name;if("#text"===i)a=r.value;else{if(!n.shouldBuildText(i))return;null!==r&&void 0!==r&&null!==(o=r.attributes)&&void 0!==o&&o.textContent?a=r.attributes.textContent:r.value&&(a=r.value)}if(null!==a&&t.push({str:a}),r.children)for(const t of r.children)e(t)}(e),r}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,o.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);const{container:t,viewport:n}=e,r=getComputedStyle(t),a=r.getPropertyValue("visibility"),i=parseFloat(r.getPropertyValue("--scale-factor"));"visible"===a&&(!i||Math.abs(i-n.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const s=new d(e);return s._render(),s},t.updateTextLayer=function(e){let{container:t,viewport:n,textDivs:r,textDivProperties:a,isOffscreenCanvasSupported:i,mustRotate:s=!0,mustRescale:c=!0}=e;if(s&&(0,o.setLayerDimensions)(t,{rotation:n.rotation}),c){const e=l(0,i),t={prevFontSize:null,prevFontFamily:null,div:null,scale:n.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:e};for(const n of r)t.properties=a.get(n),t.div=n,u(t)}};var r=n(1),o=n(6);const a=30,i=.8,s=new Map;function l(e,t){let n;if(t&&r.FeatureTest.isOffscreenCanvasSupported)n=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{const t=document.createElement("canvas");t.width=t.height=e,n=t.getContext("2d",{alpha:!1})}return n}function c(e,t,n){const o=document.createElement("span"),c={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(o);const u=r.Util.transform(e._transform,t.transform);let d=Math.atan2(u[1],u[0]);const f=n[t.fontName];f.vertical&&(d+=Math.PI/2);const h=Math.hypot(u[2],u[3]),p=h*function(e,t){const n=s.get(e);if(n)return n;const r=l(a,t);r.font="".concat(a,"px ").concat(e);const o=r.measureText("");let c=o.fontBoundingBoxAscent,u=Math.abs(o.fontBoundingBoxDescent);if(c){const t=c/(c+u);return s.set(e,t),r.canvas.width=r.canvas.height=0,t}r.strokeStyle="red",r.clearRect(0,0,a,a),r.strokeText("g",0,0);let d=r.getImageData(0,0,a,a).data;u=0;for(let i=d.length-1-3;i>=0;i-=4)if(d[i]>0){u=Math.ceil(i/4/a);break}r.clearRect(0,0,a,a),r.strokeText("A",0,a),d=r.getImageData(0,0,a,a).data,c=0;for(let i=0,s=d.length;i<s;i+=4)if(d[i]>0){c=a-Math.floor(i/4/a);break}if(r.canvas.width=r.canvas.height=0,c){const t=c/(c+u);return s.set(e,t),t}return s.set(e,i),i}(f.fontFamily,e._isOffscreenCanvasSupported);let m,g;0===d?(m=u[4],g=u[5]-p):(m=u[4]+p*Math.sin(d),g=u[5]-p*Math.cos(d));const v="calc(var(--scale-factor)*",y=o.style;e._container===e._rootContainer?(y.left="".concat((100*m/e._pageWidth).toFixed(2),"%"),y.top="".concat((100*g/e._pageHeight).toFixed(2),"%")):(y.left="".concat(v).concat(m.toFixed(2),"px)"),y.top="".concat(v).concat(g.toFixed(2),"px)")),y.fontSize="".concat(v).concat(h.toFixed(2),"px)"),y.fontFamily=f.fontFamily,c.fontSize=h,o.setAttribute("role","presentation"),o.textContent=t.str,o.dir=t.dir,e._fontInspectorEnabled&&(o.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));let b=!1;if(t.str.length>1)b=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(b=!0)}b&&(c.canvasWidth=f.vertical?t.height:t.width),e._textDivProperties.set(o,c),e._isReadableStream&&e._layoutText(o)}function u(e){const{div:t,scale:n,properties:r,ctx:o,prevFontSize:a,prevFontFamily:i}=e,{style:s}=t;let l="";if(0!==r.canvasWidth&&r.hasText){const{fontFamily:c}=s,{canvasWidth:u,fontSize:d}=r;a===d&&i===c||(o.font="".concat(d*n,"px ").concat(c),e.prevFontSize=d,e.prevFontFamily=c);const{width:f}=o.measureText(t.textContent);f>0&&(l="scaleX(".concat(u*n/f,")"))}0!==r.angle&&(l="rotate(".concat(r.angle,"deg) ").concat(l)),l.length>0&&(s.transform=l)}class d{constructor(e){var t;let{textContentSource:n,container:a,viewport:i,textDivs:s,textDivProperties:c,textContentItemsStr:u,isOffscreenCanvasSupported:d}=e;this._textContentSource=n,this._isReadableStream=n instanceof ReadableStream,this._container=this._rootContainer=a,this._textDivs=s||[],this._textContentItemsStr=u||[],this._isOffscreenCanvasSupported=d,this._fontInspectorEnabled=!(null===(t=globalThis.FontInspector)||void 0===t||!t.enabled),this._reader=null,this._textDivProperties=c||new WeakMap,this._canceled=!1,this._capability=new r.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:i.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:l(0,d)};const{pageWidth:f,pageHeight:h,pageX:p,pageY:m}=i.rawDims;this._transform=[1,0,0,-1,-p,m+h],this._pageWidth=f,this._pageHeight=h,(0,o.setLayerDimensions)(a,i),this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new r.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(const n of e)if(void 0!==n.str)this._textContentItemsStr.push(n.str),c(this,n,t);else if("beginMarkedContentProps"===n.type||"beginMarkedContent"===n.type){const e=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==n.id&&this._container.setAttribute("id","".concat(n.id)),e.append(this._container)}else"endMarkedContent"===n.type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,u(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(){const e=new r.PromiseCapability;let t=Object.create(null);if(this._isReadableStream){const n=()=>{this._reader.read().then((r=>{let{value:o,done:a}=r;a?e.resolve():(Object.assign(t,o.styles),this._processItems(o.items,t),n())}),e.reject)};this._reader=this._textContentSource.getReader(),n()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:t,styles:n}=this._textContentSource;this._processItems(t,n),e.resolve()}}e.promise.then((()=>{t=null,function(e){if(e._canceled)return;const t=e._textDivs,n=e._capability;if(t.length>1e5)n.resolve();else{if(!e._isReadableStream)for(const n of t)e._layoutText(n);n.resolve()}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var r=n(1),o=n(4),a=n(28),i=n(33),s=n(6),l=n(34),c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakSet;class w{constructor(e){let{uiManager:t,pageIndex:n,div:r,accessibilityManager:o,annotationLayer:s,viewport:x,l10n:S}=e;_classPrivateMethodInitSpec(this,b),_classPrivateFieldInitSpec(this,c,void 0),_classPrivateFieldInitSpec(this,u,!1),_classPrivateFieldInitSpec(this,d,null),_classPrivateFieldInitSpec(this,f,this.pointerup.bind(this)),_classPrivateFieldInitSpec(this,h,this.pointerdown.bind(this)),_classPrivateFieldInitSpec(this,p,new Map),_classPrivateFieldInitSpec(this,m,!1),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldInitSpec(this,y,void 0);const C=[a.FreeTextEditor,i.InkEditor,l.StampEditor];if(!w._initialized){w._initialized=!0;for(const e of C)e.initialize(S)}t.registerEditorTypes(C),_classPrivateFieldSet(y,this,t),this.pageIndex=n,this.div=r,_classPrivateFieldSet(c,this,o),_classPrivateFieldSet(d,this,s),this.viewport=x,_classPrivateFieldGet(y,this).addLayer(this)}get isEmpty(){return 0===_classPrivateFieldGet(p,this).size}updateToolbar(e){_classPrivateFieldGet(y,this).updateToolbar(e)}updateMode(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_classPrivateFieldGet(y,this).getMode();_assertClassBrand(b,this,_).call(this),e===r.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==r.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===r.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===r.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===r.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(e){if(e||_classPrivateFieldGet(y,this).getMode()===r.AnnotationEditorType.INK){if(!e)for(const e of _classPrivateFieldGet(p,this).values())if(e.isEmpty())return void e.setInBackground();_assertClassBrand(b,this,S).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){_classPrivateFieldGet(y,this).setEditingState(e)}addCommands(e){_classPrivateFieldGet(y,this).addCommands(e)}enable(){this.div.style.pointerEvents="auto";const e=new Set;for(const n of _classPrivateFieldGet(p,this).values())n.enableEditing(),n.annotationElementId&&e.add(n.annotationElementId);if(!_classPrivateFieldGet(d,this))return;const t=_classPrivateFieldGet(d,this).getEditableAnnotations();for(const n of t){if(n.hide(),_classPrivateFieldGet(y,this).isDeletedAnnotationElement(n.data.id))continue;if(e.has(n.data.id))continue;const t=this.deserialize(n);t&&(this.addOrRebuild(t),t.enableEditing())}}disable(){_classPrivateFieldSet(v,this,!0),this.div.style.pointerEvents="none";const e=new Set;for(const n of _classPrivateFieldGet(p,this).values()){var t;n.disableEditing(),n.annotationElementId&&null===n.serialize()?(null===(t=this.getEditableAnnotation(n.annotationElementId))||void 0===t||t.show(),n.remove()):e.add(n.annotationElementId)}if(_classPrivateFieldGet(d,this)){const t=_classPrivateFieldGet(d,this).getEditableAnnotations();for(const n of t){const{id:t}=n.data;e.has(t)||_classPrivateFieldGet(y,this).isDeletedAnnotationElement(t)||n.show()}}_assertClassBrand(b,this,_).call(this),this.isEmpty&&(this.div.hidden=!0),_classPrivateFieldSet(v,this,!1)}getEditableAnnotation(e){var t;return(null===(t=_classPrivateFieldGet(d,this))||void 0===t?void 0:t.getEditableAnnotation(e))||null}setActiveEditor(e){_classPrivateFieldGet(y,this).getActive()!==e&&_classPrivateFieldGet(y,this).setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",_classPrivateFieldGet(h,this)),this.div.addEventListener("pointerup",_classPrivateFieldGet(f,this))}disableClick(){this.div.removeEventListener("pointerdown",_classPrivateFieldGet(h,this)),this.div.removeEventListener("pointerup",_classPrivateFieldGet(f,this))}attach(e){_classPrivateFieldGet(p,this).set(e.id,e);const{annotationElementId:t}=e;t&&_classPrivateFieldGet(y,this).isDeletedAnnotationElement(t)&&_classPrivateFieldGet(y,this).removeDeletedAnnotationElement(e)}detach(e){var t;_classPrivateFieldGet(p,this).delete(e.id),null===(t=_classPrivateFieldGet(c,this))||void 0===t||t.removePointerInTextLayer(e.contentDiv),!_classPrivateFieldGet(v,this)&&e.annotationElementId&&_classPrivateFieldGet(y,this).addDeletedAnnotationElement(e)}remove(e){this.detach(e),_classPrivateFieldGet(y,this).removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((()=>{_classPrivateFieldGet(y,this).focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,_classPrivateFieldGet(g,this)||this.addInkEditorIfNeeded(!1)}changeParent(e){var t;e.parent!==this&&(e.annotationElementId&&(_classPrivateFieldGet(y,this).addDeletedAnnotationElement(e.annotationElementId),o.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),null===(t=e.parent)||void 0===t||t.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.changeParent(e),_classPrivateFieldGet(y,this).addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),_classPrivateFieldGet(y,this).addToAnnotationStorage(e)}moveEditorInDOM(e){var t;if(!e.isAttachedToDOM)return;const{activeElement:n}=document;e.div.contains(n)&&(e._focusEventsAllowed=!1,setTimeout((()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),n.focus())}),0)),e._structTreeParentId=null===(t=_classPrivateFieldGet(c,this))||void 0===t?void 0:t.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return _classPrivateFieldGet(y,this).getId()}pasteEditor(e,t){_classPrivateFieldGet(y,this).updateToolbar(e),_classPrivateFieldGet(y,this).updateMode(e);const{offsetX:n,offsetY:r}=_assertClassBrand(b,this,C).call(this),o=this.getNextId(),a=_assertClassBrand(b,this,x).call(this,{parent:this,id:o,x:n,y:r,uiManager:_classPrivateFieldGet(y,this),isCentered:!0,...t});a&&this.add(a)}deserialize(e){var t;switch(null!==(t=e.annotationType)&&void 0!==t?t:e.annotationEditorType){case r.AnnotationEditorType.FREETEXT:return a.FreeTextEditor.deserialize(e,this,_classPrivateFieldGet(y,this));case r.AnnotationEditorType.INK:return i.InkEditor.deserialize(e,this,_classPrivateFieldGet(y,this));case r.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,_classPrivateFieldGet(y,this))}return null}addNewEditor(){_assertClassBrand(b,this,S).call(this,_assertClassBrand(b,this,C).call(this),!0)}setSelected(e){_classPrivateFieldGet(y,this).setSelected(e)}toggleSelected(e){_classPrivateFieldGet(y,this).toggleSelected(e)}isSelected(e){return _classPrivateFieldGet(y,this).isSelected(e)}unselect(e){_classPrivateFieldGet(y,this).unselect(e)}pointerup(e){const{isMac:t}=r.FeatureTest.platform;0!==e.button||e.ctrlKey&&t||e.target===this.div&&_classPrivateFieldGet(m,this)&&(_classPrivateFieldSet(m,this,!1),_classPrivateFieldGet(u,this)?_classPrivateFieldGet(y,this).getMode()!==r.AnnotationEditorType.STAMP?_assertClassBrand(b,this,S).call(this,e,!1):_classPrivateFieldGet(y,this).unselectAll():_classPrivateFieldSet(u,this,!0))}pointerdown(e){if(_classPrivateFieldGet(m,this))return void _classPrivateFieldSet(m,this,!1);const{isMac:t}=r.FeatureTest.platform;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;_classPrivateFieldSet(m,this,!0);const n=_classPrivateFieldGet(y,this).getActive();_classPrivateFieldSet(u,this,!n||n.isEmpty())}findNewParent(e,t,n){const r=_classPrivateFieldGet(y,this).findParent(t,n);return null!==r&&r!==this&&(r.changeParent(e),!0)}destroy(){var e;(null===(e=_classPrivateFieldGet(y,this).getActive())||void 0===e?void 0:e.parent)===this&&(_classPrivateFieldGet(y,this).commitOrRemove(),_classPrivateFieldGet(y,this).setActiveEditor(null));for(const n of _classPrivateFieldGet(p,this).values()){var t;null===(t=_classPrivateFieldGet(c,this))||void 0===t||t.removePointerInTextLayer(n.contentDiv),n.setParent(null),n.isAttachedToDOM=!1,n.div.remove()}this.div=null,_classPrivateFieldGet(p,this).clear(),_classPrivateFieldGet(y,this).removeLayer(this)}render(e){let{viewport:t}=e;this.viewport=t,(0,s.setLayerDimensions)(this.div,t);for(const n of _classPrivateFieldGet(y,this).getEditors(this.pageIndex))this.add(n);this.updateMode()}update(e){let{viewport:t}=e;_classPrivateFieldGet(y,this).commitOrRemove(),this.viewport=t,(0,s.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}function x(e){switch(_classPrivateFieldGet(y,this).getMode()){case r.AnnotationEditorType.FREETEXT:return new a.FreeTextEditor(e);case r.AnnotationEditorType.INK:return new i.InkEditor(e);case r.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}function S(e,t){const n=this.getNextId(),r=_assertClassBrand(b,this,x).call(this,{parent:this,id:n,x:e.offsetX,y:e.offsetY,uiManager:_classPrivateFieldGet(y,this),isCentered:t});return r&&this.add(r),r}function C(){const{x:e,y:t,width:n,height:r}=this.div.getBoundingClientRect(),o=Math.max(0,e),a=Math.max(0,t),i=(o+Math.min(window.innerWidth,e+n))/2-e,s=(a+Math.min(window.innerHeight,t+r))/2-t,[l,c]=this.viewport.rotation%180===0?[i,s]:[s,i];return{offsetX:l,offsetY:c}}function _(){_classPrivateFieldSet(g,this,!0);for(const e of _classPrivateFieldGet(p,this).values())e.isEmpty()&&e.remove();_classPrivateFieldSet(g,this,!1)}_defineProperty(w,"_initialized",!1),t.AnnotationEditorLayer=w},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var o=n(1),a=n(5),i=n(4),s=n(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakSet;class y extends i.AnnotationEditor{static get _keyboardManager(){const e=y.prototype,t=e=>e.isEmpty(),n=a.AnnotationEditorUIManager.TRANSLATE_SMALL,r=a.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,o.shadow)(this,"_keyboardManager",new a.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[r,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,r],checker:t}]]))}constructor(e){super({...e,name:"freeTextEditor"}),_classPrivateMethodInitSpec(this,v),_classPrivateFieldInitSpec(this,l,this.editorDivBlur.bind(this)),_classPrivateFieldInitSpec(this,c,this.editorDivFocus.bind(this)),_classPrivateFieldInitSpec(this,u,this.editorDivInput.bind(this)),_classPrivateFieldInitSpec(this,d,this.editorDivKeydown.bind(this)),_classPrivateFieldInitSpec(this,f,void 0),_classPrivateFieldInitSpec(this,h,""),_classPrivateFieldInitSpec(this,p,"".concat(this.id,"-editor")),_classPrivateFieldInitSpec(this,m,void 0),_classPrivateFieldInitSpec(this,g,null),_classPrivateFieldSet(f,this,e.color||y._defaultColor||i.AnnotationEditor._defaultLineColor),_classPrivateFieldSet(m,this,e.fontSize||y._defaultFontSize)}static initialize(e){i.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case o.AnnotationEditorParamsType.FREETEXT_SIZE:y._defaultFontSize=t;break;case o.AnnotationEditorParamsType.FREETEXT_COLOR:y._defaultColor=t}}updateParams(e,t){switch(e){case o.AnnotationEditorParamsType.FREETEXT_SIZE:_assertClassBrand(v,this,b).call(this,t);break;case o.AnnotationEditorParamsType.FREETEXT_COLOR:_assertClassBrand(v,this,w).call(this,t)}}static get defaultPropertiesToUpdate(){return[[o.AnnotationEditorParamsType.FREETEXT_SIZE,y._defaultFontSize],[o.AnnotationEditorParamsType.FREETEXT_COLOR,y._defaultColor||i.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[o.AnnotationEditorParamsType.FREETEXT_SIZE,_classPrivateFieldGet(m,this)],[o.AnnotationEditorParamsType.FREETEXT_COLOR,_classPrivateFieldGet(f,this)]]}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){const e=this.parentScale;return[-y._internalPadding*e,-(y._internalPadding+_classPrivateFieldGet(m,this))*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(o.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",_classPrivateFieldGet(d,this)),this.editorDiv.addEventListener("focus",_classPrivateFieldGet(c,this)),this.editorDiv.addEventListener("blur",_classPrivateFieldGet(l,this)),this.editorDiv.addEventListener("input",_classPrivateFieldGet(u,this)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",_classPrivateFieldGet(p,this)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",_classPrivateFieldGet(d,this)),this.editorDiv.removeEventListener("focus",_classPrivateFieldGet(c,this)),this.editorDiv.removeEventListener("blur",_classPrivateFieldGet(l,this)),this.editorDiv.removeEventListener("input",_classPrivateFieldGet(u,this)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var e;this.width?_assertClassBrand(v,this,E).call(this):(this.enableEditMode(),this.editorDiv.focus(),null!==(e=this._initialOptions)&&void 0!==e&&e.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=_classPrivateFieldGet(h,this),t=_classPrivateFieldSet(h,this,_assertClassBrand(v,this,x).call(this).trimEnd());if(e===t)return;const n=e=>{_classPrivateFieldSet(h,this,e),e?(_assertClassBrand(v,this,C).call(this),this._uiManager.rebuild(this),_assertClassBrand(v,this,S).call(this)):this.remove()};this.addCommands({cmd:()=>{n(t)},undo:()=>{n(e)},mustExec:!1}),_assertClassBrand(v,this,S).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){y._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",_classPrivateFieldGet(p,this)),this.enableEditing(),i.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("aria-label",e)})),i.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((e=>{var t;return null===(t=this.editorDiv)||void 0===t?void 0:t.setAttribute("default-content",e)})),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize="calc(".concat(_classPrivateFieldGet(m,this),"px * var(--scale-factor))"),n.color=_classPrivateFieldGet(f,this),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,a.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,r]=this.parentDimensions;if(this.annotationElementId){const{position:o}=_classPrivateFieldGet(g,this);let[a,i]=this.getInitialTranslation();[a,i]=this.pageTranslationToScreen(a,i);const[s,l]=this.pageDimensions,[c,u]=this.pageTranslation;let d,f;switch(this.rotation){case 0:d=e+(o[0]-c)/s,f=t+this.height-(o[1]-u)/l;break;case 90:d=e+(o[0]-c)/s,f=t-(o[1]-u)/l,[a,i]=[i,-a];break;case 180:d=e-this.width+(o[0]-c)/s,f=t-(o[1]-u)/l,[a,i]=[-a,-i];break;case 270:d=e+(o[0]-c-this.height*l)/s,f=t+(o[1]-u-this.width*s)/l,[a,i]=[-i,a]}this.setAt(d*n,f*r,a,i)}else this.setAt(e*n,t*r,this.width*n,this.height*r);_assertClassBrand(v,this,C).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(e,t,n){let r=null;if(e instanceof s.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:t,fontColor:n},rect:a,rotation:i,id:s},textContent:l,textPosition:c,parent:{page:{pageNumber:u}}}=e;if(!l||0===l.length)return null;r=e={annotationType:o.AnnotationEditorType.FREETEXT,color:Array.from(n),fontSize:t,value:l.join("\n"),position:c,pageIndex:u-1,rect:a,rotation:i,id:s,deleted:!1}}const a=super.deserialize(e,t,n);return _classPrivateFieldSet(m,a,e.fontSize),_classPrivateFieldSet(f,a,o.Util.makeHexColor(...e.color)),_classPrivateFieldSet(h,a,e.value),a.annotationElementId=e.id||null,_classPrivateFieldSet(g,a,r),a}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const t=y._internalPadding*this.parentScale,n=this.getRect(t,t),r=i.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:_classPrivateFieldGet(f,this)),a={annotationType:o.AnnotationEditorType.FREETEXT,color:r,fontSize:_classPrivateFieldGet(m,this),value:_classPrivateFieldGet(h,this),pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?a:this.annotationElementId&&!_assertClassBrand(v,this,_).call(this,a)?null:(a.id=this.annotationElementId,a)}}function b(e){const t=e=>{this.editorDiv.style.fontSize="calc(".concat(e,"px * var(--scale-factor))"),this.translate(0,-(e-_classPrivateFieldGet(m,this))*this.parentScale),_classPrivateFieldSet(m,this,e),_assertClassBrand(v,this,S).call(this)},n=_classPrivateFieldGet(m,this);this.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:o.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function w(e){const t=_classPrivateFieldGet(f,this);this.addCommands({cmd:()=>{_classPrivateFieldSet(f,this,this.editorDiv.style.color=e)},undo:()=>{_classPrivateFieldSet(f,this,this.editorDiv.style.color=t)},mustExec:!0,type:o.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function x(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(const n of e)t.push(n.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}function S(){const[e,t]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:e,div:t}=this,r=t.style.display;t.style.display="hidden",e.div.append(this.div),n=t.getBoundingClientRect(),t.remove(),t.style.display=r}this.rotation%180===this.parentRotation%180?(this.width=n.width/e,this.height=n.height/t):(this.width=n.height/e,this.height=n.width/t),this.fixAndSetPosition()}function C(){if(this.editorDiv.replaceChildren(),_classPrivateFieldGet(h,this))for(const e of _classPrivateFieldGet(h,this).split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}function _(e){const{value:t,fontSize:n,color:r,rect:o,pageIndex:a}=_classPrivateFieldGet(g,this);return e.value!==t||e.fontSize!==n||e.rect.some(((e,t)=>Math.abs(e-o[t])>=1))||e.color.some(((e,t)=>e!==r[t]))||e.pageIndex!==a}function E(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.annotationElementId)return;if(_assertClassBrand(v,this,S).call(this),!e&&(0===this.width||0===this.height))return void setTimeout((()=>_assertClassBrand(v,this,E).call(this,!0)),0);const t=r._internalPadding*this.parentScale;_classPrivateFieldGet(g,this).rect=this.getRect(t,t)}r=y,_defineProperty(y,"_freeTextDefaultContent",""),_defineProperty(y,"_internalPadding",0),_defineProperty(y,"_defaultColor",null),_defineProperty(y,"_defaultFontSize",10),_defineProperty(y,"_type","freetext"),t.FreeTextEditor=y},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var r=n(1),o=n(6),a=n(3),i=n(30),s=n(31),l=n(32);const c=1e3,u=new WeakSet;function d(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class f{static create(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new g(e);case r.AnnotationType.TEXT:return new b(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new x(e);case"Btn":return e.data.radioButton?new _(e):e.data.checkBox?new C(e):new E(e);case"Ch":return new k(e);case"Sig":return new S(e)}return new w(e);case r.AnnotationType.POPUP:return new P(e);case r.AnnotationType.FREETEXT:return new $(e);case r.AnnotationType.LINE:return new J(e);case r.AnnotationType.SQUARE:return new te(e);case r.AnnotationType.CIRCLE:return new re(e);case r.AnnotationType.POLYLINE:return new ae(e);case r.AnnotationType.CARET:return new se(e);case r.AnnotationType.INK:return new ce(e);case r.AnnotationType.POLYGON:return new ie(e);case r.AnnotationType.HIGHLIGHT:return new ue(e);case r.AnnotationType.UNDERLINE:return new de(e);case r.AnnotationType.SQUIGGLY:return new fe(e);case r.AnnotationType.STRIKEOUT:return new he(e);case r.AnnotationType.STAMP:return new pe(e);case r.AnnotationType.FILEATTACHMENT:return new ve(e);default:return new p(e)}}}var h=new WeakMap;class p{constructor(e){let{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classPrivateFieldInitSpec(this,h,!1),this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(n)),r&&this._createQuadrilaterals()}static _hasPopupData(e){let{titleObj:t,contentsObj:n,richText:r}=e;return!!(null!==t&&void 0!==t&&t.str||null!==n&&void 0!==n&&n.str||null!==r&&void 0!==r&&r.str)}get hasPopupData(){return p._hasPopupData(this.data)}_createContainer(e){const{data:t,parent:{page:n,viewport:o}}=this,a=document.createElement("section");a.setAttribute("data-annotation-id",t.id),this instanceof w||(a.tabIndex=c),a.style.zIndex=this.parent.zIndex++,this.data.popupRef&&a.setAttribute("aria-haspopup","dialog"),t.noRotate&&a.classList.add("norotate");const{pageWidth:i,pageHeight:s,pageX:l,pageY:u}=o.rawDims;if(!t.rect||this instanceof P){const{rotation:e}=t;return t.hasOwnCanvas||0===e||this.setRotation(e,a),a}const{width:f,height:p}=d(t.rect),m=r.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(!e&&t.borderStyle.width>0){a.style.borderWidth="".concat(t.borderStyle.width,"px");const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t="calc(".concat(e,"px * var(--scale-factor)) / calc(").concat(n,"px * var(--scale-factor))");a.style.borderRadius=t}else if(this instanceof _){const e="calc(".concat(f,"px * var(--scale-factor)) / calc(").concat(p,"px * var(--scale-factor))");a.style.borderRadius=e}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}const o=t.borderColor||null;o?(_classPrivateFieldSet(h,this,!0),a.style.borderColor=r.Util.makeHexColor(0|o[0],0|o[1],0|o[2])):a.style.borderWidth=0}a.style.left="".concat(100*(m[0]-l)/i,"%"),a.style.top="".concat(100*(m[1]-u)/s,"%");const{rotation:g}=t;return t.hasOwnCanvas||0===g?(a.style.width="".concat(100*f/i,"%"),a.style.height="".concat(100*p/s,"%")):this.setRotation(g,a),a}setRotation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(!this.data.rect)return;const{pageWidth:n,pageHeight:r}=this.parent.viewport.rawDims,{width:o,height:a}=d(this.data.rect);let i,s;e%180===0?(i=100*o/n,s=100*a/r):(i=100*a/n,s=100*o/r),t.style.width="".concat(i,"%"),t.style.height="".concat(s,"%"),t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const r=n.detail[e],o=r[0],a=r.slice(1);n.target.style[t]=i.ColorConverters["".concat(o,"_HTML")](a),this.annotationStorage.setValue(this.data.id,{[t]:i.ColorConverters["".concat(o,"_rgb")](a)})};return(0,r.shadow)(this,"_commonActions",{display:e=>{const{display:t}=e.detail,n=t%2===1;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:t}=e.detail;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const r of Object.keys(t.detail)){const o=e[r]||n[r];null===o||void 0===o||o(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[r,o]of Object.entries(t)){const a=n[r];a&&(a({detail:{[r]:o},target:e}),delete t[r])}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[t,n,r,o]=this.data.rect;if(1===e.length){const[,{x:a,y:i},{x:s,y:l}]=e[0];if(r===a&&o===i&&t===s&&n===l)return}const{style:a}=this.container;let i;if(_classPrivateFieldGet(h,this)){const{borderColor:e,borderWidth:t}=a;a.borderWidth=0,i=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">','<g fill="transparent" stroke="'.concat(e,'" stroke-width="').concat(t,'">')],this.container.classList.add("hasBorder")}const s=r-t,l=o-n,{svgFactory:c}=this,u=c.createElement("svg");u.classList.add("quadrilateralsContainer"),u.setAttribute("width",0),u.setAttribute("height",0);const d=c.createElement("defs");u.append(d);const f=c.createElement("clipPath"),p="clippath_".concat(this.data.id);f.setAttribute("id",p),f.setAttribute("clipPathUnits","objectBoundingBox"),d.append(f);for(const[,{x:h,y:g},{x:v,y:y}]of e){var m;const e=c.createElement("rect"),n=(v-t)/s,r=(o-g)/l,a=(h-v)/s,u=(g-y)/l;e.setAttribute("x",n),e.setAttribute("y",r),e.setAttribute("width",a),e.setAttribute("height",u),f.append(e),null===(m=i)||void 0===m||m.push('<rect vector-effect="non-scaling-stroke" x="'.concat(n,'" y="').concat(r,'" width="').concat(a,'" height="').concat(u,'"/>'))}_classPrivateFieldGet(h,this)&&(i.push("</g></svg>')"),a.backgroundImage=i.join("")),this.container.append(u),this.container.style.clipPath="url(#".concat(p,")")}_createPopup(){const{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");const n=new P({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:"popup_".concat(t.id),rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[];if(this._fieldObjects){const o=this._fieldObjects[e];if(o)for(const{page:e,id:a,exportValues:i}of o){if(-1===e)continue;if(a===t)continue;const o="string"===typeof i?i:null,s=document.querySelector('[data-element-id="'.concat(a,'"]'));!s||u.has(s)?n.push({id:a,exportValue:o,domElement:s}):(0,r.warn)("_getElementsByName - element not allowed: ".concat(a))}return n}for(const r of document.getElementsByName(e)){const{exportValue:e}=r,o=r.getAttribute("data-element-id");o!==t&&u.has(r)&&n.push({id:o,exportValue:e,domElement:r})}return n}show(){var e;this.container&&(this.container.hidden=!1),null===(e=this.popup)||void 0===e||e.maybeShow()}hide(){var e;this.container&&(this.container.hidden=!0),null===(e=this.popup)||void 0===e||e.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",(()=>{var n;null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})}))}}var m=new WeakSet;class g extends p{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,{isRenderable:!0,ignoreBorder:!(null===t||void 0===t||!t.ignoreBorder),createQuadrilaterals:!0}),_classPrivateMethodInitSpec(this,m),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action),r=!0):e.attachment?(this._bindAttachment(n,e.attachment),r=!0):e.setOCGState?(_assertClassBrand(m,this,y).call(this,n,e.setOCGState),r=!0):e.dest?(this._bindLink(n,e.dest),r=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.container.classList.add("linkAnnotation"),r&&this.container.append(n),this.container}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&_assertClassBrand(m,this,v).call(this)}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),_assertClassBrand(m,this,v).call(this)}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>{var e;return null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,t.content,t.filename),!1},_assertClassBrand(m,this,v).call(this)}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){const o=n.get(r);o&&(e[o]=()=>{var e;return null===(e=this.linkService.eventBus)||void 0===e||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1})}e.onclick||(e.onclick=()=>!1),_assertClassBrand(m,this,v).call(this)}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),_assertClassBrand(m,this,v).call(this),!this._fieldObjects)return(0,r.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{null===n||void 0===n||n();const{fields:e,refs:o,include:a}=t,i=[];if(0!==e.length||0!==o.length){const t=new Set(o);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===a&&i.push(n)}else for(const t of Object.values(this._fieldObjects))i.push(...t);const s=this.annotationStorage,l=[];for(const t of i){const{id:e}=t;switch(l.push(e),t.type){case"text":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}case"checkbox":case"radiobutton":{const n=t.defaultValue===t.exportValues;s.setValue(e,{value:n});break}case"combobox":case"listbox":{const n=t.defaultValue||"";s.setValue(e,{value:n});break}default:continue}const n=document.querySelector('[data-element-id="'.concat(e,'"]'));n&&(u.has(n)?n.dispatchEvent(new Event("resetform")):(0,r.warn)("_bindResetFormAction - element not allowed: ".concat(e)))}var c;return this.enableScripting&&(null===(c=this.linkService.eventBus)||void 0===c||c.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}})),!1}}}function v(){this.container.setAttribute("data-internal-link","")}function y(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),_assertClassBrand(m,this,v).call(this)}class b extends p{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class w extends p{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(e){var t;this.data.hasOwnCanvas&&("CANVAS"===(null===(t=e.previousSibling)||void 0===t?void 0:t.nodeName)&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){const{isWin:t,isMac:n}=r.FeatureTest.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,r,o){n.includes("mouse")?e.addEventListener(n,(e=>{var t;null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:o(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(n,(e=>{var a;if("blur"===n){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===n){if(t.focused)return;t.focused=!0}o&&(null===(a=this.linkService.eventBus)||void 0===a||a.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:o(e)}}))}))}_setEventListeners(e,t,n,r){for(const[s,l]of n){var o,a,i;("Action"===l||null!==(o=this.data.actions)&&void 0!==o&&o[l])&&("Focus"!==l&&"Blur"!==l||t||(t={focused:!1}),this._setEventListener(e,t,s,l,r),"Focus"!==l||null!==(a=this.data.actions)&&void 0!==a&&a.Blur?"Blur"!==l||null!==(i=this.data.actions)&&void 0!==i&&i.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":r.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,o=this.data.defaultAppearanceData.fontSize||9,a=e.style;let i;const s=e=>Math.round(10*e)/10;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(r.LINE_FACTOR*o))||1);i=Math.min(o,s(t/r.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);i=Math.min(o,s(e/r.LINE_FACTOR))}a.fontSize="calc(".concat(i,"px * var(--scale-factor))"),a.color=r.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(a.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class x extends w{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,r){const o=this.annotationStorage;for(const a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[t]=n),o.setValue(a.id,{[r]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){var r;const s=e.getValue(t,{value:this.data.fieldValue});let l=s.value||"";const d=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;d&&l.length>d&&(l=l.slice(0,d));let f=s.formattedValue||(null===(r=this.data.textContent)||void 0===r?void 0:r.join("\n"))||null;f&&this.data.comb&&(f=f.replaceAll(/\s+/g,""));const h={userValue:l,formattedValue:f,lastCommittedValue:null,commitKey:1,focused:!1};var o,a;this.data.multiLine?(n=document.createElement("textarea"),n.textContent=null!==(o=f)&&void 0!==o?o:l,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",null!==(a=f)&&void 0!==a?a:l),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),u.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=c,this._setRequired(n,this.data.required),d&&(n.maxLength=d),n.addEventListener("input",(r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,"value",r.target.value,"value"),h.formattedValue=null})),n.addEventListener("resetform",(e=>{var t;const r=null!==(t=this.data.defaultFieldValue)&&void 0!==t?t:"";n.value=h.userValue=r,h.formattedValue=null}));let p=e=>{const{formattedValue:t}=h;null!==t&&void 0!==t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var i;n.addEventListener("focus",(e=>{if(h.focused)return;const{target:t}=e;h.userValue&&(t.value=h.userValue),h.lastCommittedValue=t.value,h.commitKey=1,h.focused=!0})),n.addEventListener("updatefromsandbox",(n=>{this.showElementAndHideCanvas(n.target);const r={value(n){var r;h.userValue=null!==(r=n.detail.value)&&void 0!==r?r:"",e.setValue(t,{value:h.userValue.toString()}),n.target.value=h.userValue},formattedValue(n){const{formattedValue:r}=n.detail;h.formattedValue=r,null!==r&&void 0!==r&&n.target!==document.activeElement&&(n.target.value=r),e.setValue(t,{formattedValue:r})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{var r;const{charLimit:o}=n.detail,{target:a}=n;if(0===o)return void a.removeAttribute("maxLength");a.setAttribute("maxLength",o);let i=h.userValue;!i||i.length<=o||(i=i.slice(0,o),a.value=h.userValue=i,e.setValue(t,{value:i}),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:1,selStart:a.selectionStart,selEnd:a.selectionEnd}}))}};this._dispatchEventFromSandbox(r,n)})),n.addEventListener("keydown",(e=>{var n;h.commitKey=1;let r=-1;if("Escape"===e.key?r=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(h.commitKey=3):r=2,-1===r)return;const{value:o}=e.target;h.lastCommittedValue!==o&&(h.lastCommittedValue=o,h.userValue=o,null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,willCommit:!0,commitKey:r,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const r=p;p=null,n.addEventListener("blur",(e=>{if(!h.focused||!e.relatedTarget)return;h.focused=!1;const{value:n}=e.target;var o;h.userValue=n,h.lastCommittedValue!==n&&(null===(o=this.linkService.eventBus)||void 0===o||o.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:h.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),r(e)})),null!==(i=this.data.actions)&&void 0!==i&&i.Keystroke&&n.addEventListener("beforeinput",(e=>{var n;h.lastCommittedValue=null;const{data:r,target:o}=e,{value:a,selectionStart:i,selectionEnd:s}=o;let l=i,c=s;switch(e.inputType){case"deleteWordBackward":{const e=a.substring(0,i).match(/\w*[^\w]*$/);e&&(l-=e[0].length);break}case"deleteWordForward":{const e=a.substring(i).match(/^[^\w]*\w*/);e&&(c+=e[0].length);break}case"deleteContentBackward":i===s&&(l-=1);break;case"deleteContentForward":i===s&&(c+=1)}e.preventDefault(),null===(n=this.linkService.eventBus)||void 0===n||n.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,change:r||"",willCommit:!1,selStart:l,selEnd:c}})})),this._setEventListeners(n,h,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(p&&n.addEventListener("blur",p),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/d;n.classList.add("comb"),n.style.letterSpacing="calc(".concat(e,"px * var(--scale-factor) - 1ch)")}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class S extends w{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class C extends w{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"===typeof r&&(r="Off"!==r,e.setValue(n,{value:r})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const o=document.createElement("input");return u.add(o),o.setAttribute("data-element-id",n),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=t.fieldName,r&&o.setAttribute("checked",!0),o.setAttribute("exportValue",t.exportValue),o.tabIndex=c,o.addEventListener("change",(r=>{const{name:o,checked:a}=r.target;for(const i of this._getElementsByName(o,n)){const n=a&&i.exportValue===t.exportValue;i.domElement&&(i.domElement.checked=n),e.setValue(i.id,{value:n})}e.setValue(n,{value:a})})),o.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",(t=>{const r={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class _ extends w{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"===typeof r&&(r=r!==t.buttonValue,e.setValue(n,{value:r}));const o=document.createElement("input");if(u.add(o),o.setAttribute("data-element-id",n),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=t.fieldName,r&&o.setAttribute("checked",!0),o.tabIndex=c,o.addEventListener("change",(t=>{const{name:r,checked:o}=t.target;for(const a of this._getElementsByName(r,n))e.setValue(a.id,{value:!1});e.setValue(n,{value:o})})),o.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!==n&&void 0!==n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const r=t.buttonValue;o.addEventListener("updatefromsandbox",(t=>{const o={value:t=>{const o=r===t.detail.value;for(const r of this._getElementsByName(t.target.name)){const t=o&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}};this._dispatchEventFromSandbox(o,t)})),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class E extends g{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class k extends w{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),r=document.createElement("select");u.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=c;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const n of r.options)n.selected=n.value===t}));for(const c of this.data.options){const e=document.createElement("option");e.textContent=c.displayValue,e.value=c.exportValue,n.value.includes(c.exportValue)&&(e.setAttribute("selected",!0),o=!1),r.append(e)}let a=null;if(o){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),r.prepend(e),a=()=>{e.remove(),r.removeEventListener("input",a),a=null},r.addEventListener("input",a)}const i=e=>{const t=e?"value":"textContent",{options:n,multiple:o}=r;return o?Array.prototype.filter.call(n,(e=>e.selected)).map((e=>e[t])):-1===n.selectedIndex?null:n[n.selectedIndex][t]};let s=i(!1);const l=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(n=>{const o={value(n){var o;null===(o=a)||void 0===o||o();const l=n.detail.value,c=new Set(Array.isArray(l)?l:[l]);for(const e of r.options)e.selected=c.has(e.value);e.setValue(t,{value:i(!0)}),s=i(!1)},multipleSelection(e){r.multiple=!0},remove(n){const o=r.options,a=n.detail.remove;o[a].selected=!1,r.remove(a),o.length>0&&-1===Array.prototype.findIndex.call(o,(e=>e.selected))&&(o[0].selected=!0),e.setValue(t,{value:i(!0),items:l(n)}),s=i(!1)},clear(n){for(;0!==r.length;)r.remove(0);e.setValue(t,{value:null,items:[]}),s=i(!1)},insert(n){const{index:o,displayValue:a,exportValue:c}=n.detail.insert,u=r.children[o],d=document.createElement("option");d.textContent=a,d.value=c,u?u.before(d):r.append(d),e.setValue(t,{value:i(!0),items:l(n)}),s=i(!1)},items(n){const{items:o}=n.detail;for(;0!==r.length;)r.remove(0);for(const e of o){const{displayValue:t,exportValue:n}=e,o=document.createElement("option");o.textContent=t,o.value=n,r.append(o)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:i(!0),items:l(n)}),s=i(!1)},indices(n){const r=new Set(n.detail.indices);for(const e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:i(!0)}),s=i(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(o,n)})),r.addEventListener("input",(n=>{var r;const o=i(!0);e.setValue(t,{value:o}),n.preventDefault(),null===(r=this.linkService.eventBus)||void 0===r||r.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,changeEx:o,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(e=>e.target.value))):r.addEventListener("input",(function(n){e.setValue(t,{value:i(!0)})})),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class P extends p{constructor(e){const{data:t,elements:n}=e;super(e,{isRenderable:p._hasPopupData(t)}),this.elements=n}render(){this.container.classList.add("popupAnnotation");const e=new q({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),t=[];for(const n of this.elements)n.popup=e,t.push(n.data.id),n.addHighlightArea();return this.container.setAttribute("aria-controls",t.map((e=>"".concat(r.AnnotationPrefix).concat(e))).join(",")),this.container}}var A=new WeakMap,O=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,R=new WeakMap,F=new WeakMap,N=new WeakMap,j=new WeakMap,D=new WeakMap,L=new WeakMap,B=new WeakMap,z=new WeakMap,H=new WeakMap,W=new WeakMap,G=new WeakMap,V=new WeakMap,U=new WeakSet;class q{constructor(e){let{container:t,color:n,elements:r,titleObj:a,modificationDate:i,contentsObj:s,richText:l,parent:c,rect:u,parentRect:d,open:f}=e;_classPrivateMethodInitSpec(this,U),_classPrivateFieldInitSpec(this,A,null),_classPrivateFieldInitSpec(this,O,_assertClassBrand(U,this,K).bind(this)),_classPrivateFieldInitSpec(this,T,_assertClassBrand(U,this,Z).bind(this)),_classPrivateFieldInitSpec(this,M,_assertClassBrand(U,this,Y).bind(this)),_classPrivateFieldInitSpec(this,I,_assertClassBrand(U,this,X).bind(this)),_classPrivateFieldInitSpec(this,R,null),_classPrivateFieldInitSpec(this,F,null),_classPrivateFieldInitSpec(this,N,null),_classPrivateFieldInitSpec(this,j,null),_classPrivateFieldInitSpec(this,D,null),_classPrivateFieldInitSpec(this,L,null),_classPrivateFieldInitSpec(this,B,!1),_classPrivateFieldInitSpec(this,z,null),_classPrivateFieldInitSpec(this,H,null),_classPrivateFieldInitSpec(this,W,null),_classPrivateFieldInitSpec(this,G,null),_classPrivateFieldInitSpec(this,V,!1),_classPrivateFieldSet(F,this,t),_classPrivateFieldSet(G,this,a),_classPrivateFieldSet(N,this,s),_classPrivateFieldSet(W,this,l),_classPrivateFieldSet(D,this,c),_classPrivateFieldSet(R,this,n),_classPrivateFieldSet(H,this,u),_classPrivateFieldSet(L,this,d),_classPrivateFieldSet(j,this,r);const h=o.PDFDateString.toDateObject(i);h&&_classPrivateFieldSet(A,this,c.l10n.get("annotation_date_string",{date:h.toLocaleDateString(),time:h.toLocaleTimeString()})),this.trigger=r.flatMap((e=>e.getElementsToTriggerPopup()));for(const o of this.trigger)o.addEventListener("click",_classPrivateFieldGet(I,this)),o.addEventListener("mouseenter",_classPrivateFieldGet(M,this)),o.addEventListener("mouseleave",_classPrivateFieldGet(T,this)),o.classList.add("popupTriggerArea");for(const o of r){var p;null===(p=o.container)||void 0===p||p.addEventListener("keydown",_classPrivateFieldGet(O,this))}_classPrivateFieldGet(F,this).hidden=!0,f&&_assertClassBrand(U,this,X).call(this)}render(){if(_classPrivateFieldGet(z,this))return;const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:n,pageX:o,pageY:a}}}=_classPrivateFieldGet(D,this),i=_classPrivateFieldSet(z,this,document.createElement("div"));if(i.className="popup",_classPrivateFieldGet(R,this)){const e=i.style.outlineColor=r.Util.makeHexColor(..._classPrivateFieldGet(R,this));if(CSS.supports("background-color","color-mix(in srgb, red 30%, white)"))i.style.backgroundColor="color-mix(in srgb, ".concat(e," 30%, white)");else{const e=.7;i.style.backgroundColor=r.Util.makeHexColor(..._classPrivateFieldGet(R,this).map((t=>Math.floor(e*(255-t)+t))))}}const s=document.createElement("span");s.className="header";const c=document.createElement("h1");if(s.append(c),({dir:c.dir,str:c.textContent}=_classPrivateFieldGet(G,this)),i.append(s),_classPrivateFieldGet(A,this)){const e=document.createElement("span");e.classList.add("popupDate"),_classPrivateFieldGet(A,this).then((t=>{e.textContent=t})),s.append(e)}const u=_classPrivateFieldGet(N,this),d=_classPrivateFieldGet(W,this);if(null===d||void 0===d||!d.str||null!==u&&void 0!==u&&u.str&&u.str!==d.str){const e=this._formatContents(u);i.append(e)}else l.XfaLayer.render({xfaHtml:d.html,intent:"richText",div:i}),i.lastChild.classList.add("richText","popupContent");let f=!!_classPrivateFieldGet(L,this),h=_classPrivateFieldGet(f?L:H,this);for(const l of _classPrivateFieldGet(j,this))if(!h||null!==r.Util.intersect(l.data.rect,h)){h=l.data.rect,f=!0;break}const p=r.Util.normalizeRect([h[0],e[3]-h[1]+e[1],h[2],e[3]-h[3]+e[1]]),m=f?h[2]-h[0]+5:0,g=p[0]+m,v=p[1],{style:y}=_classPrivateFieldGet(F,this);y.left="".concat(100*(g-o)/t,"%"),y.top="".concat(100*(v-a)/n,"%"),_classPrivateFieldGet(F,this).append(i)}_formatContents(e){let{str:t,dir:n}=e;const r=document.createElement("p");r.classList.add("popupContent"),r.dir=n;const o=t.split(/(?:\r\n?|\n)/);for(let a=0,i=o.length;a<i;++a){const e=o[a];r.append(document.createTextNode(e)),a<i-1&&r.append(document.createElement("br"))}return r}forceHide(){_classPrivateFieldSet(V,this,this.isVisible),_classPrivateFieldGet(V,this)&&(_classPrivateFieldGet(F,this).hidden=!0)}maybeShow(){_classPrivateFieldGet(V,this)&&(_classPrivateFieldSet(V,this,!1),_classPrivateFieldGet(F,this).hidden=!1)}get isVisible(){return!1===_classPrivateFieldGet(F,this).hidden}}function K(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||("Enter"===e.key||"Escape"===e.key&&_classPrivateFieldGet(B,this))&&_assertClassBrand(U,this,X).call(this)}function X(){_classPrivateFieldSet(B,this,!_classPrivateFieldGet(B,this)),_classPrivateFieldGet(B,this)?(_assertClassBrand(U,this,Y).call(this),_classPrivateFieldGet(F,this).addEventListener("click",_classPrivateFieldGet(I,this)),_classPrivateFieldGet(F,this).addEventListener("keydown",_classPrivateFieldGet(O,this))):(_assertClassBrand(U,this,Z).call(this),_classPrivateFieldGet(F,this).removeEventListener("click",_classPrivateFieldGet(I,this)),_classPrivateFieldGet(F,this).removeEventListener("keydown",_classPrivateFieldGet(O,this)))}function Y(){_classPrivateFieldGet(z,this)||this.render(),this.isVisible?_classPrivateFieldGet(B,this)&&_classPrivateFieldGet(F,this).classList.add("focused"):(_classPrivateFieldGet(F,this).hidden=!1,_classPrivateFieldGet(F,this).style.zIndex=parseInt(_classPrivateFieldGet(F,this).style.zIndex)+1e3)}function Z(){_classPrivateFieldGet(F,this).classList.remove("focused"),!_classPrivateFieldGet(B,this)&&this.isVisible&&(_classPrivateFieldGet(F,this).hidden=!0,_classPrivateFieldGet(F,this).style.zIndex=parseInt(_classPrivateFieldGet(F,this).style.zIndex)-1e3)}class $ extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=r.AnnotationEditorType.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const t of this.textContent){const n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}t.FreeTextAnnotationElement=$;var Q=new WeakMap;class J extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),_classPrivateFieldInitSpec(this,Q,null)}render(){this.container.classList.add("lineAnnotation");const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0),o=_classPrivateFieldSet(Q,this,this.svgFactory.createElement("svg:line"));return o.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),o.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),o.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),o.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),o.setAttribute("stroke-width",e.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return _classPrivateFieldGet(Q,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var ee=new WeakMap;class te extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),_classPrivateFieldInitSpec(this,ee,null)}render(){this.container.classList.add("squareAnnotation");const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0),o=e.borderStyle.width,a=_classPrivateFieldSet(ee,this,this.svgFactory.createElement("svg:rect"));return a.setAttribute("x",o/2),a.setAttribute("y",o/2),a.setAttribute("width",t-o),a.setAttribute("height",n-o),a.setAttribute("stroke-width",o||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),r.append(a),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return _classPrivateFieldGet(ee,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var ne=new WeakMap;class re extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),_classPrivateFieldInitSpec(this,ne,null)}render(){this.container.classList.add("circleAnnotation");const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0),o=e.borderStyle.width,a=_classPrivateFieldSet(ne,this,this.svgFactory.createElement("svg:ellipse"));return a.setAttribute("cx",t/2),a.setAttribute("cy",n/2),a.setAttribute("rx",t/2-o/2),a.setAttribute("ry",n/2-o/2),a.setAttribute("stroke-width",o||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),r.append(a),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return _classPrivateFieldGet(ne,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}var oe=new WeakMap;class ae extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),_classPrivateFieldInitSpec(this,oe,null),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0);let o=[];for(const i of e.vertices){const t=i.x-e.rect[0],n=e.rect[3]-i.y;o.push(t+","+n)}o=o.join(" ");const a=_classPrivateFieldSet(oe,this,this.svgFactory.createElement(this.svgElementName));return a.setAttribute("points",o),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),r.append(a),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return _classPrivateFieldGet(oe,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}class ie extends ae{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class se extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}var le=new WeakMap;class ce extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),_classPrivateFieldInitSpec(this,le,[]),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=r.AnnotationEditorType.INK}render(){this.container.classList.add(this.containerClassName);const e=this.data,{width:t,height:n}=d(e.rect),r=this.svgFactory.create(t,n,!0);for(const o of e.inkLists){let t=[];for(const r of o){const n=r.x-e.rect[0],o=e.rect[3]-r.y;t.push("".concat(n,",").concat(o))}t=t.join(" ");const n=this.svgFactory.createElement(this.svgElementName);_classPrivateFieldGet(le,this).push(n),n.setAttribute("points",t),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","transparent"),!e.popupRef&&this.hasPopupData&&this._createPopup(),r.append(n)}return this.container.append(r),this.container}getElementsToTriggerPopup(){return _classPrivateFieldGet(le,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}t.InkAnnotationElement=ce;class ue extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class de extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class fe extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class he extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class pe extends p{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}t.StampAnnotationElement=pe;var me=new WeakMap,ge=new WeakSet;class ve extends p{constructor(e){var t;super(e,{isRenderable:!0}),_classPrivateMethodInitSpec(this,ge),_classPrivateFieldInitSpec(this,me,null);const{filename:n,content:r}=this.data.file;this.filename=(0,o.getFilenameFromUrl)(n,!0),this.content=r,null===(t=this.linkService.eventBus)||void 0===t||t.dispatch("fileattachmentannotation",{source:this,filename:n,content:r})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:e,data:t}=this;let n;t.hasAppearance||0===t.fillAlpha?n=document.createElement("div"):(n=document.createElement("img"),n.src="".concat(this.imageResourcesPath,"annotation-").concat(/paperclip/i.test(t.name)?"paperclip":"pushpin",".svg"),t.fillAlpha&&t.fillAlpha<1&&(n.style="filter: opacity(".concat(Math.round(100*t.fillAlpha),"%);"))),n.addEventListener("dblclick",_assertClassBrand(ge,this,ye).bind(this)),_classPrivateFieldSet(me,this,n);const{isMac:o}=r.FeatureTest.platform;return e.addEventListener("keydown",(e=>{"Enter"===e.key&&(o?e.metaKey:e.ctrlKey)&&_assertClassBrand(ge,this,ye).call(this)})),!t.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return _classPrivateFieldGet(me,this)}addHighlightArea(){this.container.classList.add("highlightArea")}}function ye(){var e;null===(e=this.downloadManager)||void 0===e||e.openOrDownloadData(this.container,this.content,this.filename)}var be=new WeakMap,we=new WeakMap,xe=new WeakMap,Se=new WeakSet;function Ce(e,t){var n;const o=e.firstChild||e;o.id="".concat(r.AnnotationPrefix).concat(t),this.div.append(e),null===(n=_classPrivateFieldGet(be,this))||void 0===n||n.moveElementInDOM(this.div,e,o,!1)}function _e(){if(!_classPrivateFieldGet(we,this))return;const e=this.div;for(const[t,n]of _classPrivateFieldGet(we,this)){const r=e.querySelector('[data-annotation-id="'.concat(t,'"]'));if(!r)continue;const{firstChild:o}=r;o?"CANVAS"===o.nodeName?o.replaceWith(n):o.before(n):r.append(n)}_classPrivateFieldGet(we,this).clear()}t.AnnotationLayer=class{constructor(e){let{div:t,accessibilityManager:n,annotationCanvasMap:r,l10n:o,page:a,viewport:i}=e;_classPrivateMethodInitSpec(this,Se),_classPrivateFieldInitSpec(this,be,null),_classPrivateFieldInitSpec(this,we,null),_classPrivateFieldInitSpec(this,xe,new Map),this.div=t,_classPrivateFieldSet(be,this,n),_classPrivateFieldSet(we,this,r),this.l10n=o,this.page=a,this.viewport=i,this.zIndex=0,this.l10n||(this.l10n=s.NullL10n)}async render(e){const{annotations:t}=e,n=this.div;(0,o.setLayerDimensions)(n,this.viewport);const i=new Map,s={data:null,layer:n,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new o.DOMSVGFactory,annotationStorage:e.annotationStorage||new a.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const o of t){if(o.noHTML)continue;const e=o.annotationType===r.AnnotationType.POPUP;if(e){const e=i.get(o.id);if(!e)continue;s.elements=e}else{const{width:e,height:t}=d(o.rect);if(e<=0||t<=0)continue}s.data=o;const t=f.create(s);if(!t.isRenderable)continue;if(!e&&o.popupRef){const e=i.get(o.popupRef);e?e.push(t):i.set(o.popupRef,[t])}t.annotationEditorType>0&&_classPrivateFieldGet(xe,this).set(t.data.id,t);const n=t.render();o.hidden&&(n.style.visibility="hidden"),_assertClassBrand(Se,this,Ce).call(this,n,o.id)}_assertClassBrand(Se,this,_e).call(this),await this.l10n.translate(n)}update(e){let{viewport:t}=e;const n=this.div;this.viewport=t,(0,o.setLayerDimensions)(n,{rotation:t.rotation}),_assertClassBrand(Se,this,_e).call(this),n.hidden=!1}getEditableAnnotations(){return Array.from(_classPrivateFieldGet(xe,this).values())}getEditableAnnotation(e){return _classPrivateFieldGet(xe,this).get(e)}}},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function r(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){let[t,n,r,o]=e;return["G",1-Math.min(1,.3*t+.59*r+.11*n+o)]}static G_CMYK(e){let[t]=e;return["CMYK",0,0,0,1-t]}static G_RGB(e){let[t]=e;return["RGB",t,t,t]}static G_rgb(e){let[t]=e;return t=r(t),[t,t,t]}static G_HTML(e){let[t]=e;const r=n(t);return"#".concat(r).concat(r).concat(r)}static RGB_G(e){let[t,n,r]=e;return["G",.3*t+.59*n+.11*r]}static RGB_rgb(e){return e.map(r)}static RGB_HTML(e){return"#".concat(e.map(n).join(""))}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(e){let[t,n,r,o]=e;return["RGB",1-Math.min(1,t+o),1-Math.min(1,r+o),1-Math.min(1,n+o)]}static CMYK_rgb(e){let[t,n,o,a]=e;return[r(1-Math.min(1,t+a)),r(1-Math.min(1,o+a)),r(1-Math.min(1,n+a))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(e){let[t,n,r]=e;const o=1-t,a=1-n,i=1-r;return["CMYK",o,a,i,Math.min(o,a,i)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=r;const n={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing\u2026",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};function r(e,t){switch(e){case"find_match_count":e="find_match_count[".concat(1===t.total?"one":"other","]");break;case"find_match_count_limit":e="find_match_count_limit[".concat(1===t.limit?"one":"other","]")}return n[e]||""}n.print_progress_percent="{{progress}}%";const o={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",async get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,n)=>n in t?t[n]:"{{"+n+"}}")):e}(arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(e,t),t)},async translate(e){}};t.NullL10n=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(25);t.XfaLayer=class{static setupStorage(e,t,n,r,o){const a=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==a.value&&(e.textContent=a.value),"print"===o)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(a.value===n.attributes.xfaOn?e.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===o)break;e.addEventListener("change",(e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==a.value&&e.setAttribute("value",a.value),"print"===o)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==a.value){e.setAttribute("value",a.value);for(const e of n.children)e.attributes.value===a.value?e.attributes.selected=!0:e.attributes.hasOwnProperty("selected")&&delete e.attributes.selected}e.addEventListener("input",(e=>{const n=e.target.options,o=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:o})}))}}static setAttributes(e){let{html:t,element:n,storage:r=null,intent:o,linkService:a}=e;const{attributes:i}=n,s=t instanceof HTMLAnchorElement;"radio"===i.type&&(i.name="".concat(i.name,"-").concat(o));for(const[l,c]of Object.entries(i))if(null!==c&&void 0!==c)switch(l){case"class":c.length&&t.setAttribute(l,c.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",c);break;case"style":Object.assign(t.style,c);break;case"textContent":t.textContent=c;break;default:(!s||"href"!==l&&"newWindow"!==l)&&t.setAttribute(l,c)}s&&a.addLinkAttributes(t,i.href,i.newWindow),r&&i.dataId&&this.setupStorage(t,i.dataId,n,r)}static render(e){const t=e.annotationStorage,n=e.linkService,o=e.xfaHtml,a=e.intent||"display",i=document.createElement(o.name);o.attributes&&this.setAttributes({html:i,element:o,intent:a,linkService:n});const s=[[o,-1,i]],l=e.div;if(l.append(i),e.viewport){const t="matrix(".concat(e.viewport.transform.join(","),")");l.style.transform=t}"richText"!==a&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;s.length>0;){var u;const[e,o,i]=s.at(-1);if(o+1===e.children.length){s.pop();continue}const l=e.children[++s.at(-1)[1]];if(null===l)continue;const{name:d}=l;if("#text"===d){const e=document.createTextNode(l.value);c.push(e),i.append(e);continue}const f=null!==l&&void 0!==l&&null!==(u=l.attributes)&&void 0!==u&&u.xmlns?document.createElementNS(l.attributes.xmlns,d):document.createElement(d);if(i.append(f),l.attributes&&this.setAttributes({html:f,element:l,storage:t,intent:a,linkService:n}),l.children&&l.children.length>0)s.push([l,-1,f]);else if(l.value){const e=document.createTextNode(l.value);r.XfaText.shouldBuildText(d)&&c.push(e),f.append(e)}}for(const r of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))r.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t="matrix(".concat(e.viewport.transform.join(","),")");e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var o=n(1),a=n(4),i=n(29),s=n(6),l=n(5),c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakSet;class _ extends a.AnnotationEditor{constructor(e){super({...e,name:"inkEditor"}),_classPrivateMethodInitSpec(this,C),_classPrivateFieldInitSpec(this,c,0),_classPrivateFieldInitSpec(this,u,0),_classPrivateFieldInitSpec(this,d,this.canvasPointermove.bind(this)),_classPrivateFieldInitSpec(this,f,this.canvasPointerleave.bind(this)),_classPrivateFieldInitSpec(this,h,this.canvasPointerup.bind(this)),_classPrivateFieldInitSpec(this,p,this.canvasPointerdown.bind(this)),_classPrivateFieldInitSpec(this,m,new Path2D),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldInitSpec(this,y,!1),_classPrivateFieldInitSpec(this,b,null),_classPrivateFieldInitSpec(this,w,0),_classPrivateFieldInitSpec(this,x,0),_classPrivateFieldInitSpec(this,S,null),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(e){a.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case o.AnnotationEditorParamsType.INK_THICKNESS:_._defaultThickness=t;break;case o.AnnotationEditorParamsType.INK_COLOR:_._defaultColor=t;break;case o.AnnotationEditorParamsType.INK_OPACITY:_._defaultOpacity=t/100}}updateParams(e,t){switch(e){case o.AnnotationEditorParamsType.INK_THICKNESS:_assertClassBrand(C,this,E).call(this,t);break;case o.AnnotationEditorParamsType.INK_COLOR:_assertClassBrand(C,this,k).call(this,t);break;case o.AnnotationEditorParamsType.INK_OPACITY:_assertClassBrand(C,this,P).call(this,t)}}static get defaultPropertiesToUpdate(){return[[o.AnnotationEditorParamsType.INK_THICKNESS,_._defaultThickness],[o.AnnotationEditorParamsType.INK_COLOR,_._defaultColor||a.AnnotationEditor._defaultLineColor],[o.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*_._defaultOpacity)]]}get propertiesToUpdate(){var e;return[[o.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||_._defaultThickness],[o.AnnotationEditorParamsType.INK_COLOR,this.color||_._defaultColor||a.AnnotationEditor._defaultLineColor],[o.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!==(e=this.opacity)&&void 0!==e?e:_._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.canvas||(_assertClassBrand(C,this,B).call(this),_assertClassBrand(C,this,z).call(this)),this.isAttachedToDOM||(this.parent.add(this),_assertClassBrand(C,this,H).call(this)),_assertClassBrand(C,this,Z).call(this)))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,_classPrivateFieldGet(b,this).disconnect(),_classPrivateFieldSet(b,this,null),super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){const[e,t]=this.parentDimensions,n=this.width*e,r=this.height*t;this.setDimensions(n,r)}enableEditMode(){_classPrivateFieldGet(g,this)||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(p,this)))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(p,this)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}commit(){_classPrivateFieldGet(g,this)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),_classPrivateFieldSet(g,this,!0),this.div.classList.add("disabled"),_assertClassBrand(C,this,Z).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),this.enableEditMode())}canvasPointerdown(e){0===e.button&&this.isInEditMode()&&!_classPrivateFieldGet(g,this)&&(this.setInForeground(),e.preventDefault(),"mouse"!==e.type&&this.div.focus(),_assertClassBrand(C,this,T).call(this,e.offsetX,e.offsetY))}canvasPointermove(e){e.preventDefault(),_assertClassBrand(C,this,M).call(this,e.offsetX,e.offsetY)}canvasPointerup(e){e.preventDefault(),_assertClassBrand(C,this,L).call(this,e)}canvasPointerleave(e){_assertClassBrand(C,this,L).call(this,e)}get isResizable(){return!this.isEmpty()&&_classPrivateFieldGet(g,this)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),a.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((e=>{var t;return null===(t=this.div)||void 0===t?void 0:t.setAttribute("aria-label",e)}));const[n,r,o,i]=_assertClassBrand(C,this,A).call(this);if(this.setAt(n,r,0,0),this.setDims(o,i),_assertClassBrand(C,this,B).call(this),this.width){const[n,r]=this.parentDimensions;this.setAspectRatio(this.width*n,this.height*r),this.setAt(e*n,t*r,this.width*n,this.height*r),_classPrivateFieldSet(y,this,!0),_assertClassBrand(C,this,H).call(this),this.setDims(this.width*n,this.height*r),_assertClassBrand(C,this,D).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return _assertClassBrand(C,this,z).call(this),this.div}setDimensions(e,t){const n=Math.round(e),r=Math.round(t);if(_classPrivateFieldGet(w,this)===n&&_classPrivateFieldGet(x,this)===r)return;_classPrivateFieldSet(w,this,n),_classPrivateFieldSet(x,this,r),this.canvas.style.visibility="hidden";const[o,a]=this.parentDimensions;this.width=e/o,this.height=t/a,this.fixAndSetPosition(),_classPrivateFieldGet(g,this)&&_assertClassBrand(C,this,W).call(this,e,t),_assertClassBrand(C,this,H).call(this),_assertClassBrand(C,this,D).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(e,t,n){if(e instanceof i.InkAnnotationElement)return null;const r=super.deserialize(e,t,n);r.thickness=e.thickness,r.color=o.Util.makeHexColor(...e.color),r.opacity=e.opacity;const[s,l]=r.pageDimensions,d=r.width*s,f=r.height*l,h=r.parentScale,p=e.thickness/2;_classPrivateFieldSet(g,r,!0),_classPrivateFieldSet(w,r,Math.round(d)),_classPrivateFieldSet(x,r,Math.round(f));const{paths:m,rect:v,rotation:y}=e;for(let{bezier:o}of m){o=q.call(_,o,v,y);const e=[];r.paths.push(e);let t=h*(o[0]-p),n=h*(o[1]-p);for(let r=2,i=o.length;r<i;r+=6){const a=h*(o[r]-p),i=h*(o[r+1]-p),s=h*(o[r+2]-p),l=h*(o[r+3]-p),c=h*(o[r+4]-p),u=h*(o[r+5]-p);e.push([[t,n],[a,i],[s,l],[c,u]]),t=c,n=u}const a=_assertClassBrand(_,this,V).call(this,e);r.bezierPath2D.push(a)}const b=_assertClassBrand(C,r,X).call(r);return _classPrivateFieldSet(u,r,Math.max(a.AnnotationEditor.MIN_SIZE,b[2]-b[0])),_classPrivateFieldSet(c,r,Math.max(a.AnnotationEditor.MIN_SIZE,b[3]-b[1])),_assertClassBrand(C,r,W).call(r,d,f),r}serialize(){if(this.isEmpty())return null;const e=this.getRect(0,0),t=a.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:o.AnnotationEditorType.INK,color:t,thickness:this.thickness,opacity:this.opacity,paths:_assertClassBrand(C,this,K).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,e),pageIndex:this.pageIndex,rect:e,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}}function E(e){const t=this.thickness;this.addCommands({cmd:()=>{this.thickness=e,_assertClassBrand(C,this,Z).call(this)},undo:()=>{this.thickness=t,_assertClassBrand(C,this,Z).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function k(e){const t=this.color;this.addCommands({cmd:()=>{this.color=e,_assertClassBrand(C,this,D).call(this)},undo:()=>{this.color=t,_assertClassBrand(C,this,D).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function P(e){e/=100;const t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,_assertClassBrand(C,this,D).call(this)},undo:()=>{this.opacity=t,_assertClassBrand(C,this,D).call(this)},mustExec:!0,type:o.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function A(){const{parentRotation:e,parentDimensions:[t,n]}=this;switch(e){case 90:return[0,n,n,t];case 180:return[t,n,t,n];case 270:return[t,0,n,t];default:return[0,0,t,n]}}function O(){const{ctx:e,color:t,opacity:n,thickness:r,parentScale:o,scaleFactor:a}=this;e.lineWidth=r*o/a,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle="".concat(t).concat((0,l.opacityToHex)(n))}function T(e,t){var n;this.canvas.addEventListener("contextmenu",s.noContextMenu),this.canvas.addEventListener("pointerleave",_classPrivateFieldGet(f,this)),this.canvas.addEventListener("pointermove",_classPrivateFieldGet(d,this)),this.canvas.addEventListener("pointerup",_classPrivateFieldGet(h,this)),this.canvas.removeEventListener("pointerdown",_classPrivateFieldGet(p,this)),this.isEditing=!0,_classPrivateFieldGet(y,this)||(_classPrivateFieldSet(y,this,!0),_assertClassBrand(C,this,H).call(this),this.thickness||(this.thickness=r._defaultThickness),this.color||(this.color=r._defaultColor||a.AnnotationEditor._defaultLineColor),null!==(n=this.opacity)&&void 0!==n||(this.opacity=r._defaultOpacity)),this.currentPath.push([e,t]),_classPrivateFieldSet(v,this,!1),_assertClassBrand(C,this,O).call(this),_classPrivateFieldSet(S,this,(()=>{_assertClassBrand(C,this,F).call(this),_classPrivateFieldGet(S,this)&&window.requestAnimationFrame(_classPrivateFieldGet(S,this))})),window.requestAnimationFrame(_classPrivateFieldGet(S,this))}function M(e,t){const[n,r]=this.currentPath.at(-1);if(this.currentPath.length>1&&e===n&&t===r)return;const o=this.currentPath;let a=_classPrivateFieldGet(m,this);if(o.push([e,t]),_classPrivateFieldSet(v,this,!0),o.length<=2)return a.moveTo(...o[0]),void a.lineTo(e,t);3===o.length&&(_classPrivateFieldSet(m,this,a=new Path2D),a.moveTo(...o[0])),_assertClassBrand(C,this,N).call(this,a,...o.at(-3),...o.at(-2),e,t)}function I(){if(0===this.currentPath.length)return;const e=this.currentPath.at(-1);_classPrivateFieldGet(m,this).lineTo(...e)}function R(e,t){let n;if(_classPrivateFieldSet(S,this,null),e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),_assertClassBrand(C,this,M).call(this,e,t),_assertClassBrand(C,this,I).call(this),1!==this.currentPath.length)n=_assertClassBrand(C,this,j).call(this);else{const r=[e,t];n=[[r,r.slice(),r.slice(),r]]}const r=_classPrivateFieldGet(m,this),o=this.currentPath;this.currentPath=[],_classPrivateFieldSet(m,this,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(o),this.paths.push(n),this.bezierPath2D.push(r),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(_assertClassBrand(C,this,B).call(this),_assertClassBrand(C,this,z).call(this)),_assertClassBrand(C,this,Z).call(this))},mustExec:!0})}function F(){if(!_classPrivateFieldGet(v,this))return;_classPrivateFieldSet(v,this,!1);Math.ceil(this.thickness*this.parentScale);const e=this.currentPath.slice(-3),t=e.map((e=>e[0])),n=e.map((e=>e[1])),{ctx:r}=(Math.min(...t),Math.max(...t),Math.min(...n),Math.max(...n),this);r.save(),r.clearRect(0,0,this.canvas.width,this.canvas.height);for(const o of this.bezierPath2D)r.stroke(o);r.stroke(_classPrivateFieldGet(m,this)),r.restore()}function N(e,t,n,r,o,a,i){const s=(t+r)/2,l=(n+o)/2,c=(r+a)/2,u=(o+i)/2;e.bezierCurveTo(s+2*(r-s)/3,l+2*(o-l)/3,c+2*(r-c)/3,u+2*(o-u)/3,c,u)}function j(){const e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];const t=[];let n,[r,o]=e[0];for(n=1;n<e.length-2;n++){const[a,i]=e[n],[s,l]=e[n+1],c=(a+s)/2,u=(i+l)/2,d=[r+2*(a-r)/3,o+2*(i-o)/3],f=[c+2*(a-c)/3,u+2*(i-u)/3];t.push([[r,o],d,f,[c,u]]),[r,o]=[c,u]}const[a,i]=e[n],[s,l]=e[n+1],c=[r+2*(a-r)/3,o+2*(i-o)/3],u=[s+2*(a-s)/3,l+2*(i-l)/3];return t.push([[r,o],c,u,[s,l]]),t}function D(){if(this.isEmpty())return void _assertClassBrand(C,this,G).call(this);_assertClassBrand(C,this,O).call(this);const{canvas:e,ctx:t}=this;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.width,e.height),_assertClassBrand(C,this,G).call(this);for(const n of this.bezierPath2D)t.stroke(n)}function L(e){this.canvas.removeEventListener("pointerleave",_classPrivateFieldGet(f,this)),this.canvas.removeEventListener("pointermove",_classPrivateFieldGet(d,this)),this.canvas.removeEventListener("pointerup",_classPrivateFieldGet(h,this)),this.canvas.addEventListener("pointerdown",_classPrivateFieldGet(p,this)),setTimeout((()=>{this.canvas.removeEventListener("contextmenu",s.noContextMenu)}),10),_assertClassBrand(C,this,R).call(this,e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}function B(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",a.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>{var t;return null===(t=this.canvas)||void 0===t?void 0:t.setAttribute("aria-label",e)})),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function z(){_classPrivateFieldSet(b,this,new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)}))),_classPrivateFieldGet(b,this).observe(this.div)}function H(){if(!_classPrivateFieldGet(y,this))return;const[e,t]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),_assertClassBrand(C,this,G).call(this)}function W(e,t){const n=_assertClassBrand(C,this,Y).call(this),r=(e-n)/_classPrivateFieldGet(u,this),o=(t-n)/_classPrivateFieldGet(c,this);this.scaleFactor=Math.min(r,o)}function G(){const e=_assertClassBrand(C,this,Y).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}function V(e){const t=new Path2D;for(let n=0,r=e.length;n<r;n++){const[r,o,a,i]=e[n];0===n&&t.moveTo(...r),t.bezierCurveTo(o[0],o[1],a[0],a[1],i[0],i[1])}return t}function U(e,t,n){const[r,o,a,i]=t;switch(n){case 0:for(let t=0,n=e.length;t<n;t+=2)e[t]+=r,e[t+1]=i-e[t+1];break;case 90:for(let t=0,n=e.length;t<n;t+=2){const n=e[t];e[t]=e[t+1]+r,e[t+1]=n+o}break;case 180:for(let t=0,n=e.length;t<n;t+=2)e[t]=a-e[t],e[t+1]+=o;break;case 270:for(let t=0,n=e.length;t<n;t+=2){const n=e[t];e[t]=a-e[t+1],e[t+1]=i-n}break;default:throw new Error("Invalid rotation")}return e}function q(e,t,n){const[r,o,a,i]=t;switch(n){case 0:for(let t=0,n=e.length;t<n;t+=2)e[t]-=r,e[t+1]=i-e[t+1];break;case 90:for(let t=0,n=e.length;t<n;t+=2){const n=e[t];e[t]=e[t+1]-o,e[t+1]=n-r}break;case 180:for(let t=0,n=e.length;t<n;t+=2)e[t]=a-e[t],e[t+1]-=o;break;case 270:for(let t=0,n=e.length;t<n;t+=2){const n=e[t];e[t]=i-e[t+1],e[t+1]=a-n}break;default:throw new Error("Invalid rotation")}return e}function K(e,t,n,o){const a=[],i=this.thickness/2,s=e*t+i,l=e*n+i;for(const c of this.paths){const t=[],n=[];for(let r=0,o=c.length;r<o;r++){const[a,i,u,d]=c[r],f=e*a[0]+s,h=e*a[1]+l,p=e*i[0]+s,m=e*i[1]+l,g=e*u[0]+s,v=e*u[1]+l,y=e*d[0]+s,b=e*d[1]+l;0===r&&(t.push(f,h),n.push(f,h)),t.push(p,m,g,v,y,b),n.push(p,m),r===o-1&&n.push(y,b)}a.push({bezier:U.call(r,t,o,this.rotation),points:U.call(r,n,o,this.rotation)})}return a}function X(){let e=1/0,t=-1/0,n=1/0,r=-1/0;for(const a of this.paths)for(const[i,s,l,c]of a){const a=o.Util.bezierBoundingBox(...i,...s,...l,...c);e=Math.min(e,a[0]),n=Math.min(n,a[1]),t=Math.max(t,a[2]),r=Math.max(r,a[3])}return[e,n,t,r]}function Y(){return _classPrivateFieldGet(g,this)?Math.ceil(this.thickness*this.parentScale):0}function Z(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return;if(!_classPrivateFieldGet(g,this))return void _assertClassBrand(C,this,D).call(this);const t=_assertClassBrand(C,this,X).call(this),n=_assertClassBrand(C,this,Y).call(this);_classPrivateFieldSet(u,this,Math.max(a.AnnotationEditor.MIN_SIZE,t[2]-t[0])),_classPrivateFieldSet(c,this,Math.max(a.AnnotationEditor.MIN_SIZE,t[3]-t[1]));const r=Math.ceil(n+_classPrivateFieldGet(u,this)*this.scaleFactor),o=Math.ceil(n+_classPrivateFieldGet(c,this)*this.scaleFactor),[i,s]=this.parentDimensions;this.width=r/i,this.height=o/s,this.setAspectRatio(r,o);const l=this.translationX,d=this.translationY;this.translationX=-t[0],this.translationY=-t[1],_assertClassBrand(C,this,H).call(this),_assertClassBrand(C,this,D).call(this),_classPrivateFieldSet(w,this,r),_classPrivateFieldSet(x,this,o),this.setDims(r,o);const f=e?n/this.scaleFactor/2:0;this.translate(l-this.translationX-f,d-this.translationY-f)}r=_,_defineProperty(_,"_defaultColor",null),_defineProperty(_,"_defaultOpacity",1),_defineProperty(_,"_defaultThickness",1),_defineProperty(_,"_type","ink"),t.InkEditor=_},(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var o=n(1),a=n(4),i=n(6),s=n(29),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakSet;class b extends a.AnnotationEditor{constructor(e){super({...e,name:"stampEditor"}),_classPrivateMethodInitSpec(this,y),_classPrivateFieldInitSpec(this,l,null),_classPrivateFieldInitSpec(this,c,null),_classPrivateFieldInitSpec(this,u,null),_classPrivateFieldInitSpec(this,d,null),_classPrivateFieldInitSpec(this,f,null),_classPrivateFieldInitSpec(this,h,null),_classPrivateFieldInitSpec(this,p,null),_classPrivateFieldInitSpec(this,m,null),_classPrivateFieldInitSpec(this,g,!1),_classPrivateFieldInitSpec(this,v,!1),_classPrivateFieldSet(d,this,e.bitmapUrl),_classPrivateFieldSet(f,this,e.bitmapFile)}static initialize(e){a.AnnotationEditor.initialize(e)}static get supportedTypes(){return(0,o.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((e=>"image/".concat(e))))}static get supportedTypesStr(){return(0,o.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(e){return this.supportedTypes.includes(e)}static paste(e,t){t.pasteEditor(o.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}remove(){var e,t;_classPrivateFieldGet(c,this)&&(_classPrivateFieldSet(l,this,null),this._uiManager.imageManager.deleteId(_classPrivateFieldGet(c,this)),null===(e=_classPrivateFieldGet(h,this))||void 0===e||e.remove(),_classPrivateFieldSet(h,this,null),null===(t=_classPrivateFieldGet(p,this))||void 0===t||t.disconnect(),_classPrivateFieldSet(p,this,null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(_classPrivateFieldGet(c,this)&&_assertClassBrand(y,this,S).call(this),this.isAttachedToDOM||this.parent.add(this))):_classPrivateFieldGet(c,this)&&_assertClassBrand(y,this,S).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(_classPrivateFieldGet(u,this)||_classPrivateFieldGet(l,this)||_classPrivateFieldGet(d,this)||_classPrivateFieldGet(f,this))}get isResizable(){return!0}render(){if(this.div)return this.div;let e,t;if(this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,_classPrivateFieldGet(l,this)?_assertClassBrand(y,this,C).call(this):_assertClassBrand(y,this,S).call(this),this.width){const[n,r]=this.parentDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r)}return this.div}static deserialize(e,t,n){if(e instanceof s.StampAnnotationElement)return null;const r=super.deserialize(e,t,n),{rect:o,bitmapUrl:a,bitmapId:i,isSvg:l,accessibilityData:u}=e;i&&n.imageManager.isValidId(i)?_classPrivateFieldSet(c,r,i):_classPrivateFieldSet(d,r,a),_classPrivateFieldSet(g,r,l);const[f,h]=r.pageDimensions;return r.width=(o[2]-o[0])/f,r.height=(o[3]-o[1])/h,u&&(r.altTextData=u),r}serialize(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;const n={annotationType:o.AnnotationEditorType.STAMP,bitmapId:_classPrivateFieldGet(c,this),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:_classPrivateFieldGet(g,this),structTreeParentId:this._structTreeParentId};if(e)return n.bitmapUrl=_assertClassBrand(y,this,P).call(this,!0),n.accessibilityData=this.altTextData,n;const{decorative:r,altText:a}=this.altTextData;if(!r&&a&&(n.accessibilityData={type:"Figure",alt:a}),null===t)return n;t.stamps||(t.stamps=new Map);const i=_classPrivateFieldGet(g,this)?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(t.stamps.has(_classPrivateFieldGet(c,this))){if(_classPrivateFieldGet(g,this)){const e=t.stamps.get(_classPrivateFieldGet(c,this));i>e.area&&(e.area=i,e.serialized.bitmap.close(),e.serialized.bitmap=_assertClassBrand(y,this,P).call(this,!1))}}else t.stamps.set(_classPrivateFieldGet(c,this),{area:i,serialized:n}),n.bitmap=_assertClassBrand(y,this,P).call(this,!1);return n}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(_classPrivateFieldSet(l,this,e.bitmap),t||(_classPrivateFieldSet(c,this,e.id),_classPrivateFieldSet(g,this,e.isSvg)),_assertClassBrand(y,this,C).call(this)):this.remove()}function x(){_classPrivateFieldSet(u,this,null),this._uiManager.enableWaiting(!1),_classPrivateFieldGet(h,this)&&this.div.focus()}function S(){if(_classPrivateFieldGet(c,this))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(_classPrivateFieldGet(c,this)).then((e=>_assertClassBrand(y,this,w).call(this,e,!0))).finally((()=>_assertClassBrand(y,this,x).call(this)));if(_classPrivateFieldGet(d,this)){const e=_classPrivateFieldGet(d,this);return _classPrivateFieldSet(d,this,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(u,this,this._uiManager.imageManager.getFromUrl(e).then((e=>_assertClassBrand(y,this,w).call(this,e))).finally((()=>_assertClassBrand(y,this,x).call(this))))}if(_classPrivateFieldGet(f,this)){const e=_classPrivateFieldGet(f,this);return _classPrivateFieldSet(f,this,null),this._uiManager.enableWaiting(!0),void _classPrivateFieldSet(u,this,this._uiManager.imageManager.getFromFile(e).then((e=>_assertClassBrand(y,this,w).call(this,e))).finally((()=>_assertClassBrand(y,this,x).call(this))))}const e=document.createElement("input");e.type="file",e.accept=r.supportedTypesStr,_classPrivateFieldSet(u,this,new Promise((t=>{e.addEventListener("change",(async()=>{if(e.files&&0!==e.files.length){this._uiManager.enableWaiting(!0);const t=await this._uiManager.imageManager.getFromFile(e.files[0]);_assertClassBrand(y,this,w).call(this,t)}else this.remove();t()})),e.addEventListener("cancel",(()=>{this.remove(),t()}))})).finally((()=>_assertClassBrand(y,this,x).call(this)))),e.click()}function C(){const{div:e}=this;let{width:t,height:n}=_classPrivateFieldGet(l,this);const[r,o]=this.pageDimensions,a=.75;if(this.width)t=this.width*r,n=this.height*o;else if(t>a*r||n>a*o){const e=Math.min(a*r/t,a*o/n);t*=e,n*=e}const[i,s]=this.parentDimensions;this.setDims(t*i/r,n*s/o),this._uiManager.enableWaiting(!1);const c=_classPrivateFieldSet(h,this,document.createElement("canvas"));e.append(c),e.hidden=!1,_assertClassBrand(y,this,k).call(this,t,n),_assertClassBrand(y,this,A).call(this),_classPrivateFieldGet(v,this)||(this.parent.addUndoableEditor(this),_classPrivateFieldSet(v,this,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}function _(e,t){var n;const[r,o]=this.parentDimensions;this.width=e/r,this.height=t/o,this.setDims(e,t),null!==(n=this._initialOptions)&&void 0!==n&&n.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==_classPrivateFieldGet(m,this)&&clearTimeout(_classPrivateFieldGet(m,this)),_classPrivateFieldSet(m,this,setTimeout((()=>{_classPrivateFieldSet(m,this,null),_assertClassBrand(y,this,k).call(this,e,t)}),200))}function E(e,t){const{width:n,height:r}=_classPrivateFieldGet(l,this);let o=n,a=r,i=_classPrivateFieldGet(l,this);for(;o>2*e||a>2*t;){const n=o,r=a;o>2*e&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2)),a>2*t&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));const s=new OffscreenCanvas(o,a);s.getContext("2d").drawImage(i,0,0,n,r,0,0,o,a),i=s.transferToImageBitmap()}return i}function k(e,t){e=Math.ceil(e),t=Math.ceil(t);const n=_classPrivateFieldGet(h,this);if(!n||n.width===e&&n.height===t)return;n.width=e,n.height=t;const r=_classPrivateFieldGet(g,this)?_classPrivateFieldGet(l,this):_assertClassBrand(y,this,E).call(this,e,t),o=n.getContext("2d");o.filter=this._uiManager.hcmFilter,o.drawImage(r,0,0,r.width,r.height,0,0,e,t)}function P(e){if(e){if(_classPrivateFieldGet(g,this)){const e=this._uiManager.imageManager.getSvgUrl(_classPrivateFieldGet(c,this));if(e)return e}const e=document.createElement("canvas");return({width:e.width,height:e.height}=_classPrivateFieldGet(l,this)),e.getContext("2d").drawImage(_classPrivateFieldGet(l,this),0,0),e.toDataURL()}if(_classPrivateFieldGet(g,this)){const[e,t]=this.pageDimensions,n=Math.round(this.width*e*i.PixelsPerInch.PDF_TO_CSS_UNITS),r=Math.round(this.height*t*i.PixelsPerInch.PDF_TO_CSS_UNITS),o=new OffscreenCanvas(n,r);return o.getContext("2d").drawImage(_classPrivateFieldGet(l,this),0,0,_classPrivateFieldGet(l,this).width,_classPrivateFieldGet(l,this).height,0,0,n,r),o.transferToImageBitmap()}return structuredClone(_classPrivateFieldGet(l,this))}function A(){_classPrivateFieldSet(p,this,new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&_assertClassBrand(y,this,_).call(this,t.width,t.height)}))),_classPrivateFieldGet(p,this).observe(this.div)}r=b,_defineProperty(b,"_type","stamp"),t.StampEditor=b}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __nested_webpack_exports__={};return(()=>{var e=__nested_webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return a.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return i.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return s.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return r.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return n.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return r.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return r.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return o.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return r.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return o.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(2),r=__w_pdfjs_require__(6),o=__w_pdfjs_require__(26),a=__w_pdfjs_require__(27),i=__w_pdfjs_require__(5),s=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),c=__w_pdfjs_require__(32)})(),__nested_webpack_exports__})(),module.exports=root.pdfjsLib=factory()},497:(e,t,n)=>{"use strict";var r=n(218);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},173:(e,t,n)=>{e.exports=n(497)()},218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},730:(e,t,n)=>{"use strict";var r=n(43),o=n(67);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function m(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function N(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=F&&e[F]||e["@@iterator"])?e:null}var j,D=Object.assign;function L(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function H(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case E:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){$(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ae(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,_e=null;function Ee(e){if(e=wo(e)){if("function"!==typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function ke(e){Ce?_e?_e.push(e):_e=[e]:Ce=e}function Pe(){if(Ce){var e=Ce,t=_e;if(_e=Ce=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ae(e,t){return e(t)}function Oe(){}var Te=!1;function Me(e,t,n){if(Te)return e(t,n);Te=!0;try{return Ae(e,t,n)}finally{Te=!1,(null!==Ce||null!==_e)&&(Oe(),Pe())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Re=!1;if(u)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ue){Re=!1}function Ne(e,t,n,r,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,De=null,Le=!1,Be=null,ze={onError:function(e){je=!0,De=e}};function He(e,t,n,r,o,a,i,s,l){je=!1,De=null,Ne.apply(ze,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(We(e)!==e)throw Error(a(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ve(o),e;if(i===r)return Ve(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Xe=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ze=o.unstable_requestPaint,$e=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=dt(s):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,St,Ct,_t,Et,kt=!1,Pt=[],At=null,Ot=null,Tt=null,Mt=new Map,It=new Map,Rt=[],Ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function jt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void Et(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Lt(e)&&n.delete(t)}function zt(){kt=!1,null!==At&&Lt(At)&&(At=null),null!==Ot&&Lt(Ot)&&(Ot=null),null!==Tt&&Lt(Tt)&&(Tt=null),Mt.forEach(Bt),It.forEach(Bt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Wt(e){function t(t){return Ht(t,e)}if(0<Pt.length){Ht(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Ht(At,e),null!==Ot&&Ht(Ot,e),null!==Tt&&Ht(Tt,e),Mt.forEach(t),It.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Rt.shift()}var Gt=w.ReactCurrentBatchConfig,Vt=!0;function Ut(e,t,n,r){var o=bt,a=Gt.transition;Gt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,Gt.transition=a}}function qt(e,t,n,r){var o=bt,a=Gt.transition;Gt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,Gt.transition=a}}function Kt(e,t,n,r){if(Vt){var o=Yt(e,t,n,r);if(null===o)Vr(e,t,r,Xt,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return At=jt(At,e,t,n,r,o),!0;case"dragenter":return Ot=jt(Ot,e,t,n,r,o),!0;case"mouseover":return Tt=jt(Tt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Mt.set(a,jt(Mt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,It.set(a,jt(It.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Ft.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&xt(a),null===(a=Yt(e,t,n,r))&&Vr(e,t,r,Xt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Xt=null;function Yt(e,t,n,r){if(Xt=null,null!==(e=bo(e=xe(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var $t=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,r=n.length,o="value"in $t?$t.value:$t.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=D({},cn,{view:0,detail:0}),fn=on(dn),hn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),mn=on(D({},hn,{dataTransfer:0})),gn=on(D({},dn,{relatedTarget:0})),vn=on(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(D({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function En(){return _n}var kn=D({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(kn),An=on(D({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Tn=on(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=D({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Mn),Rn=[9,13,27,32],Fn=u&&"CompositionEvent"in window,Nn=null;u&&"documentMode"in document&&(Nn=document.documentMode);var jn=u&&"TextEvent"in window&&!Nn,Dn=u&&(!Fn||Nn&&8<Nn&&11>=Nn),Ln=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=qr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Xn(e){Lr(e,0)}function Yn(e){if(K(xo(e)))return e}function Zn(e,t){if("change"===e)return t}var $n=!1;if(u){var Qn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Qn=Jn}else Qn=!1;$n=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];Un(t,Kn,e,xe(e)),Me(Xn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function ar(e,t){if("click"===e)return Yn(t)}function ir(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==X(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=qr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Cr={},_r={};function Er(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Cr[e]=n[t];return e}u&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=Er("animationend"),Pr=Er("animationiteration"),Ar=Er("animationstart"),Or=Er("transitionend"),Tr=new Map,Mr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Tr.set(e,t),l(t,[e])}for(var Rr=0;Rr<Mr.length;Rr++){var Fr=Mr[Rr];Ir(Fr.toLowerCase(),"on"+(Fr[0].toUpperCase()+Fr.slice(1)))}Ir(kr,"onAnimationEnd"),Ir(Pr,"onAnimationIteration"),Ir(Ar,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Or,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(He.apply(this,arguments),je){if(!je)throw Error(a(198));var u=De;je=!1,De=null,Le||(Le=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Dr(o,s,c),a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Dr(o,s,c),a=l}}}if(Le)throw e=Be,Le=!1,Be=null,e}function Br(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Gr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Gr(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Hr]){e[Hr]=!0,i.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,zr("selectionchange",!1,t))}}function Gr(e,t,n,r){switch(Zt(t)){case 1:var o=Ut;break;case 4:o=qt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=bo(s)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}s=s.parentNode}}r=r.return}Me((function(){var r=a,o=xe(n),i=[];e:{var s=Tr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case kr:case Pr:case Ar:l=vn;break;case Or:l=Tn;break;case"scroll":l=fn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=Ie(p,f))&&u.push(Ur(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,o),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:xo(l),h=null==c?s:xo(c),(s=new u(m,p+"leave",l,n,o)).target=d,s.relatedTarget=h,m=null,bo(o)===r&&((u=new u(f,p+"enter",c,n,o)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=Kr(h))p++;for(h=0,m=f;m;m=Kr(m))h++;for(;0<p-h;)u=Kr(u),p--;for(;0<h-p;)f=Kr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==l&&Xr(i,s,l,u,!1),null!==c&&null!==d&&Xr(i,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Zn;else if(Vn(s))if($n)g=ir;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ar);switch(g&&(g=g(e,r))?Un(i,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(i,n,o)}var y;if(Fn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(y=en()):(Qt="value"in($t=o)?$t.value:$t.textContent,Wn=!0)),0<(v=qr(r,b)).length&&(b=new wn(b,e,null,n,o),i.push({event:b,listeners:v}),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Fn&&zn(e,t)?(e=en(),Jt=Qt=$t=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Lr(i,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ie(e,n))&&r.unshift(Ur(e,a,o)),null!=(a=Ie(e,t))&&r.push(Ur(e,a,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Ie(n,a))&&i.unshift(Ur(n,l,s)):o||null!=(l=Ie(n,a))&&i.push(Ur(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function $r(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Zr,"")}function Qr(e,t,n){if(t=$r(t),$r(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,ao="function"===typeof Promise?Promise:void 0,io="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ao?function(e){return ao.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function So(e){return e[po]||null}var Co=[],_o=-1;function Eo(e){return{current:e}}function ko(e){0>_o||(e.current=Co[_o],Co[_o]=null,_o--)}function Po(e,t){_o++,Co[_o]=e.current,e.current=t}var Ao={},Oo=Eo(Ao),To=Eo(!1),Mo=Ao;function Io(e,t){var n=e.type.contextTypes;if(!n)return Ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ro(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Fo(){ko(To),ko(Oo)}function No(e,t,n){if(Oo.current!==Ao)throw Error(a(168));Po(Oo,t),Po(To,n)}function jo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,G(e)||"Unknown",o));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Mo=Oo.current,Po(Oo,e),Po(To,To.current),!0}function Lo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=jo(e,t,Mo),r.__reactInternalMemoizedMergedChildContext=e,ko(To),ko(Oo),Po(Oo,e)):ko(To),Po(To,n)}var Bo=null,zo=!1,Ho=!1;function Wo(e){null===Bo?Bo=[e]:Bo.push(e)}function Go(){if(!Ho&&null!==Bo){Ho=!0;var e=0,t=bt;try{var n=Bo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,zo=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ke(Je,Go),o}finally{bt=t,Ho=!1}}return null}var Vo=[],Uo=0,qo=null,Ko=0,Xo=[],Yo=0,Zo=null,$o=1,Qo="";function Jo(e,t){Vo[Uo++]=Ko,Vo[Uo++]=qo,qo=e,Ko=t}function ea(e,t,n){Xo[Yo++]=$o,Xo[Yo++]=Qo,Xo[Yo++]=Zo,Zo=e;var r=$o;e=Qo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,$o=1<<32-it(t)+o|n<<o|r,Qo=a+e}else $o=1<<a|n<<o|r,Qo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=Vo[--Uo],Vo[Uo]=null,Ko=Vo[--Uo],Vo[Uo]=null;for(;e===Zo;)Zo=Xo[--Yo],Xo[Yo]=null,Qo=Xo[--Yo],Xo[Yo]=null,$o=Xo[--Yo],Xo[Yo]=null}var ra=null,oa=null,aa=!1,ia=null;function sa(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:$o,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&la(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw ha(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=oa;e;)e=co(e.nextSibling)}function pa(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var ga=w.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Eo(null),ba=null,wa=null,xa=null;function Sa(){xa=wa=ba=null}function Ca(e){var t=ya.current;ko(ya),e._currentValue=t}function _a(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ea(e,t){ba=e,xa=wa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function ka(e){var t=e._currentValue;if(xa!==e)if(e={context:e,memoizedValue:t,next:null},null===wa){if(null===ba)throw Error(a(308));wa=e,ba.dependencies={lanes:0,firstContext:e}}else wa=wa.next=e;return t}var Pa=null;function Aa(e){null===Pa?Pa=[e]:Pa.push(e)}function Oa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Aa(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ta(e,r)}function Ta(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ma=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ra(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Na(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Ol)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ta(e,n)}return null===(o=r.interleaved)?(t.next=t,Aa(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ta(e,n)}function ja(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Da(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function La(e,t,n,r){var o=e.updateQueue;Ma=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"===typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=m.payload)?p.call(h,d,f):p)||void 0===f)break e;d=D({},d,f);break e;case 2:Ma=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Dl|=i,e.lanes=i,e.memoizedState=d}}function Ba(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var za=(new r.Component).refs;function Ha(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wa={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Fa(r,o);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Na(e,a,o))&&(rc(t,e,o,r),ja(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Fa(r,o);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Na(e,a,o))&&(rc(t,e,o,r),ja(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Fa(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Na(e,o,r))&&(rc(t,e,r,n),ja(t,e,r))}};function Ga(e,t,n,r,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,a))}function Va(e,t,n){var r=!1,o=Ao,a=t.contextType;return"object"===typeof a&&null!==a?a=ka(a):(o=Ro(t)?Mo:Oo.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Io(e,o):Ao),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ua(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Wa.enqueueReplaceState(t,t.state,null)}function qa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=za,Ia(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=ka(a):(a=Ro(t)?Mo:Oo.current,o.context=Io(e,a)),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Ha(e,t,a,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Wa.enqueueReplaceState(o,o.state,null),La(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function Ka(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===za&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Xa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ya(e){return(0,e._init)(e._payload)}function Za(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Fc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===I&&Ya(a)===t.type)?((r=o(t,n.props)).ref=Ka(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=Ka(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=jc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=Ka(e,null,t),n.return=e,n;case S:return(t=Bc(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=jc(t,e.mode,n,null)).return=e,t;Xa(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case I:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||N(n))return null!==o?null:d(e,t,n,r,null);Xa(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||N(r))return d(t,e=e.get(n)||null,r,o,null);Xa(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),aa&&Jo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return aa&&Jo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=p(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),aa&&Jo(o,m),c}function g(o,s,l,c){var u=N(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),aa&&Jo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return aa&&Jo(o,g),u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=p(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),aa&&Jo(o,g),u}return function e(r,a,i,l){if("object"===typeof i&&null!==i&&i.type===C&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case x:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===C){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===I&&Ya(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=Ka(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===C?((a=jc(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=Nc(i.type,i.key,i.props,null,r.mode,l)).ref=Ka(r,a,i),l.return=r,r=l)}return s(r);case S:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Bc(i,r.mode,l)).return=r,r=a}return s(r);case I:return e(r,a,(u=i._init)(i._payload),l)}if(te(i))return m(r,a,i,l);if(N(i))return g(r,a,i,l);Xa(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Lc(i,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var $a=Za(!0),Qa=Za(!1),Ja={},ei=Eo(Ja),ti=Eo(Ja),ni=Eo(Ja);function ri(e){if(e===Ja)throw Error(a(174));return e}function oi(e,t){switch(Po(ni,t),Po(ti,e),Po(ei,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(ei),Po(ei,t)}function ai(){ko(ei),ko(ti),ko(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(Po(ti,e),Po(ei,n))}function si(e){ti.current===e&&(ko(ei),ko(ti))}var li=Eo(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var fi=w.ReactCurrentDispatcher,hi=w.ReactCurrentBatchConfig,pi=0,mi=null,gi=null,vi=null,yi=!1,bi=!1,wi=0,xi=0;function Si(){throw Error(a(321))}function Ci(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function _i(e,t,n,r,o,i){if(pi=i,mi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),bi){i=0;do{if(bi=!1,wi=0,25<=i)throw Error(a(301));i+=1,vi=gi=null,t.updateQueue=null,fi.current=cs,e=n(r,o)}while(bi)}if(fi.current=is,t=null!==gi&&null!==gi.next,pi=0,vi=gi=mi=null,yi=!1,t)throw Error(a(300));return e}function Ei(){var e=0!==wi;return wi=0,e}function ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vi?mi.memoizedState=vi=e:vi=vi.next=e,vi}function Pi(){if(null===gi){var e=mi.alternate;e=null!==e?e.memoizedState:null}else e=gi.next;var t=null===vi?mi.memoizedState:vi.next;if(null!==t)vi=t,gi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(gi=e).memoizedState,baseState:gi.baseState,baseQueue:gi.baseQueue,queue:gi.queue,next:null},null===vi?mi.memoizedState=vi=e:vi=vi.next=e}return vi}function Ai(e,t){return"function"===typeof t?t(e):t}function Oi(e){var t=Pi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=gi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((pi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,mi.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,mi.lanes|=i,Dl|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ti(e){var t=Pi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sr(i,t.memoizedState)||(ws=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Mi(){}function Ii(e,t){var n=mi,r=Pi(),o=t(),i=!sr(r.memoizedState,o);if(i&&(r.memoizedState=o,ws=!0),r=r.queue,Vi(Ni.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==vi&&1&vi.memoizedState.tag){if(n.flags|=2048,Bi(9,Fi.bind(null,n,r,o,t),void 0,null),null===Tl)throw Error(a(349));0!==(30&pi)||Ri(n,t,o)}return o}function Ri(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Fi(e,t,n,r){t.value=n,t.getSnapshot=r,ji(t)&&Di(e)}function Ni(e,t,n){return n((function(){ji(t)&&Di(e)}))}function ji(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Di(e){var t=Ta(e,1);null!==t&&rc(t,e,1,-1)}function Li(e){var t=ki();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mi,e),[t.memoizedState,e]}function Bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mi.updateQueue)?(t={lastEffect:null,stores:null},mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Pi().memoizedState}function Hi(e,t,n,r){var o=ki();mi.flags|=e,o.memoizedState=Bi(1|t,n,void 0,void 0===r?null:r)}function Wi(e,t,n,r){var o=Pi();r=void 0===r?null:r;var a=void 0;if(null!==gi){var i=gi.memoizedState;if(a=i.destroy,null!==r&&Ci(r,i.deps))return void(o.memoizedState=Bi(t,n,a,r))}mi.flags|=e,o.memoizedState=Bi(1|t,n,a,r)}function Gi(e,t){return Hi(8390656,8,e,t)}function Vi(e,t){return Wi(2048,8,e,t)}function Ui(e,t){return Wi(4,2,e,t)}function qi(e,t){return Wi(4,4,e,t)}function Ki(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Xi(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Wi(4,4,Ki.bind(null,t,e),n)}function Yi(){}function Zi(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ci(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $i(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ci(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qi(e,t,n){return 0===(21&pi)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),mi.lanes|=n,Dl|=n,e.baseState=!0),t)}function Ji(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=hi.transition;hi.transition={};try{e(!1),t()}finally{bt=n,hi.transition=r}}function es(){return Pi().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))os(t,n);else if(null!==(n=Oa(e,t,n,r))){rc(n,e,r,tc()),as(n,t,r)}}function ns(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(o.next=o,Aa(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Oa(e,t,o,r))&&(rc(n,e,r,o=tc()),as(n,t,r))}}function rs(e){var t=e.alternate;return e===mi||null!==t&&t===mi}function os(e,t){bi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var is={readContext:ka,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},ss={readContext:ka,useCallback:function(e,t){return ki().memoizedState=[e,void 0===t?null:t],e},useContext:ka,useEffect:Gi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Hi(4194308,4,Ki.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(4,2,e,t)},useMemo:function(e,t){var n=ki();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ki();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ki().memoizedState=e},useState:Li,useDebugValue:Yi,useDeferredValue:function(e){return ki().memoizedState=e},useTransition:function(){var e=Li(!1),t=e[0];return e=Ji.bind(null,e[1]),ki().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mi,o=ki();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Tl)throw Error(a(349));0!==(30&pi)||Ri(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Gi(Ni.bind(null,r,i,e),[e]),r.flags|=2048,Bi(9,Fi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ki(),t=Tl.identifierPrefix;if(aa){var n=Qo;t=":"+t+"R"+(n=($o&~(1<<32-it($o)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:ka,useCallback:Zi,useContext:ka,useEffect:Vi,useImperativeHandle:Xi,useInsertionEffect:Ui,useLayoutEffect:qi,useMemo:$i,useReducer:Oi,useRef:zi,useState:function(){return Oi(Ai)},useDebugValue:Yi,useDeferredValue:function(e){return Qi(Pi(),gi.memoizedState,e)},useTransition:function(){return[Oi(Ai)[0],Pi().memoizedState]},useMutableSource:Mi,useSyncExternalStore:Ii,useId:es,unstable_isNewReconciler:!1},cs={readContext:ka,useCallback:Zi,useContext:ka,useEffect:Vi,useImperativeHandle:Xi,useInsertionEffect:Ui,useLayoutEffect:qi,useMemo:$i,useReducer:Ti,useRef:zi,useState:function(){return Ti(Ai)},useDebugValue:Yi,useDeferredValue:function(e){var t=Pi();return null===gi?t.memoizedState=e:Qi(t,gi.memoizedState,e)},useTransition:function(){return[Ti(Ai)[0],Pi().memoizedState]},useMutableSource:Mi,useSyncExternalStore:Ii,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,ql=r),fs(0,t)},n}function ms(e,t,n){(n=Fa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fs(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!==typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fa(-1,1)).tag=2,Na(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,n,r){t.child=null===e?Qa(t,null,n,r):$a(t,e.child,n,r)}function Ss(e,t,n,r,o){n=n.render;var a=t.ref;return Ea(t,o),r=_i(e,t,n,r,a,o),n=Ei(),null===e||ws?(aa&&n&&ta(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Cs(e,t,n,r,o){if(null===e){var a=n.type;return"function"!==typeof a||Rc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,_s(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Fc(a,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);0!==(131072&e.flags)&&(ws=!0)}}return Ps(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Fl,Rl),Rl|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Fl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Po(Fl,Rl),Rl|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Po(Fl,Rl),Rl|=r;return xs(e,t,o,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,o){var a=Ro(n)?Mo:Oo.current;return a=Io(t,a),Ea(t,o),n=_i(e,t,n,r,a,o),r=Ei(),null===e||ws?(aa&&r&&ta(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function As(e,t,n,r,o){if(Ro(n)){var a=!0;Do(t)}else a=!1;if(Ea(t,o),null===t.stateNode)Vs(e,t),Va(t,n,r),qa(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"===typeof c&&null!==c?c=ka(c):c=Io(t,c=Ro(n)?Mo:Oo.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Ua(t,i,r,c),Ma=!1;var f=t.memoizedState;i.state=f,La(t,r,i,o),l=t.memoizedState,s!==r||f!==l||To.current||Ma?("function"===typeof u&&(Ha(t,n,u,r),l=t.memoizedState),(s=Ma||Ga(t,n,s,r,f,l,c))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ra(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:va(t.type,s),i.props=c,d=t.pendingProps,f=i.context,"object"===typeof(l=n.contextType)&&null!==l?l=ka(l):l=Io(t,l=Ro(n)?Mo:Oo.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==d||f!==l)&&Ua(t,i,r,l),Ma=!1,f=t.memoizedState,i.state=f,La(t,r,i,o);var p=t.memoizedState;s!==d||f!==p||To.current||Ma?("function"===typeof h&&(Ha(t,n,h,r),p=t.memoizedState),(c=Ma||Ga(t,n,c,r,f,p,l)||!1)?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=c):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,a,o)}function Os(e,t,n,r,o,a){ks(e,t);var i=0!==(128&t.flags);if(!r&&!i)return o&&Lo(t,n,!1),Us(e,t,a);r=t.stateNode,bs.current=t;var s=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=$a(t,e.child,null,a),t.child=$a(t,null,s,a)):xs(e,t,s,a),t.memoizedState=r.state,o&&Lo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),oi(e,t.containerInfo)}function Ms(e,t,n,r,o){return pa(),ma(o),t.flags|=256,xs(e,t,n,r),t.child}var Is,Rs,Fs,Ns,js={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,o=t.pendingProps,i=li.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Po(li,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Dc(l,o,0,null),e=jc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=js,e):Bs(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=ds(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Dc({mode:"visible",children:r.children},o,0,null),(i=jc(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&$a(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=js,i);if(0===(1&t.mode))return zs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=ds(i=Error(a(419)),r,void 0))}if(l=0!==(s&e.childLanes),ws||l){if(null!==(r=Tl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ta(e,o),rc(r,e,o,-1))}return gc(),zs(e,t,s,r=ds(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Xo[Yo++]=$o,Xo[Yo++]=Qo,Xo[Yo++]=Zo,$o=e.id,Qo=e.overflow,Zo=t),t=Bs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(s){s=o.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Fc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Fc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,o}return e=(s=e.child).sibling,o=Fc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Bs(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&ma(r),$a(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_a(e.return,t,n)}function Ws(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Gs(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=li.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hs(e,n,t);else if(19===e.tag)Hs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(li,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ws(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ws(t,!0,n,null,a);break;case"together":Ws(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Fc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xs(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Ro(t.type)&&Fo(),Ks(t),null;case 3:return r=t.stateNode,ai(),ko(To),ko(Oo),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ia&&(sc(ia),ia=null))),Rs(e,t),Ks(t),null;case 5:si(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Fs(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Ks(t),null}if(e=ri(ei.current),fa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ho]=t,r[po]=i,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Nr.length;o++)Br(Nr[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Z(r,i),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Br("invalid",r);break;case"textarea":oe(r,i),Br("invalid",r)}for(var l in ye(n,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Qr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Qr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":q(r),J(r,i,!0);break;case"textarea":q(r),ie(r);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[po]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Nr.length;o++)Br(Nr[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":Z(e,r),o=Y(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(i in ye(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ge(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Br("scroll",e):null!=u&&b(e,i,u,l))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=ri(ni.current),ri(ei.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Qr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!==(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ks(t),null;case 13:if(ko(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!==(1&t.mode)&&0===(128&t.flags))ha(),pa(),t.flags|=98560,i=!1;else if(i=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[ho]=t}else pa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),i=!1}else null!==ia&&(sc(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&li.current)?0===Nl&&(Nl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return ai(),Rs(e,t),null===e&&Wr(t.stateNode.containerInfo),Ks(t),null;case 10:return Ca(t.type._context),Ks(t),null;case 19:if(ko(li),null===(i=t.memoizedState))return Ks(t),null;if(r=0!==(128&t.flags),null===(l=i.rendering))if(r)qs(i,!1);else{if(0!==Nl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,qs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&$e()>Gl&&(t.flags|=128,r=!0,qs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Ks(t),null}else 2*$e()-i.renderingStartTime>Gl&&1073741824!==n&&(t.flags|=128,r=!0,qs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$e(),t.sibling=null,n=li.current,Po(li,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Rl)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Ys(e,t){switch(na(t),t.tag){case 1:return Ro(t.type)&&Fo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),ko(To),ko(Oo),di(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(ko(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(li),null;case 4:return ai(),null;case 10:return Ca(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Fs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),i=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zs=!1,$s=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(t,n,a)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,fl=!1;function hl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:$s||el(n,t);case 6:var r=dl,o=fl;dl=null,hl(e,t,n),fl=o,null!==(dl=r)&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Wt(e)):lo(dl,n.stateNode));break;case 4:r=dl,o=fl,dl=n.stateNode.containerInfo,fl=!0,hl(e,t,n),dl=r,fl=o;break;case 0:case 11:case 14:case 15:if(!$s&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&tl(n,t,i),o=o.next}while(o!==r)}hl(e,t,n);break;case 1:if(!$s&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ec(n,t,s)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?($s=(r=$s)||null!==n.memoizedState,hl(e,t,n),$s=r):hl(e,t,n);break;default:hl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Oc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));pl(i,s,o),dl=null,fl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Ec(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(g){Ec(e,e.return,g)}try{rl(5,e,e.return)}catch(g){Ec(e,e.return,g)}}break;case 1:gl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(g){Ec(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&$(o,i),be(l,s);var u=be(l,i);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":Q(o,i);break;case"textarea":ae(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?ne(o,!!i.multiple,p,!1):h!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[po]=i}catch(g){Ec(e,e.return,g)}}break;case 6:if(gl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Ec(e,e.return,g)}}break;case 3:if(gl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(g){Ec(e,e.return,g)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Wl=$e())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($s=(u=$s)||d,gl(t,e),$s=u):gl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(p=(h=Js).child,h.tag){case 0:case 11:case 14:case 15:rl(4,h,h.return);break;case 1:el(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Ec(r,n,g)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){Sl(f);continue}}null!==p?(p.return=h,Js=p):Sl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Ec(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Ec(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),yl(e),4&r&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),ul(e,ll(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(a(161))}}catch(s){Ec(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,wl(e,t,n)}function wl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var o=Js,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Zs;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||$s;s=Zs;var c=$s;if(Zs=i,($s=l)&&!c)for(Js=o;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?Cl(o):null!==l?(l.return=i,Js=l):Cl(o);for(;null!==a;)Js=a,wl(a,t,n),a=a.sibling;Js=o,Zs=s,$s=c}xl(e)}else 0!==(8772&o.subtreeFlags)&&null!==a?(a.return=o,Js=a):xl(e)}}function xl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$s||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$s)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:va(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ba(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ba(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(a(163))}$s||512&t.flags&&al(t)}catch(h){Ec(t,t.return,h)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Cl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Ec(t,o,l)}}var a=t.return;try{al(t)}catch(l){Ec(t,a,l)}break;case 5:var i=t.return;try{al(t)}catch(l){Ec(t,i,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var _l,El=Math.ceil,kl=w.ReactCurrentDispatcher,Pl=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Ol=0,Tl=null,Ml=null,Il=0,Rl=0,Fl=Eo(0),Nl=0,jl=null,Dl=0,Ll=0,Bl=0,zl=null,Hl=null,Wl=0,Gl=1/0,Vl=null,Ul=!1,ql=null,Kl=null,Xl=!1,Yl=null,Zl=0,$l=0,Ql=null,Jl=-1,ec=0;function tc(){return 0!==(6&Ol)?$e():-1!==Jl?Jl:Jl=$e()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Ol)&&0!==Il?Il&-Il:null!==ga.transition?(0===ec&&(ec=mt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function rc(e,t,n,r){if(50<$l)throw $l=0,Ql=null,Error(a(185));vt(e,n,r),0!==(2&Ol)&&e===Tl||(e===Tl&&(0===(2&Ol)&&(Ll|=n),4===Nl&&lc(e,Il)),oc(e,r),1===n&&0===Ol&&0===(1&t.mode)&&(Gl=$e()+500,zo&&Go()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?0!==(s&n)&&0===(s&r)||(o[i]=ht(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=ft(e,e===Tl?Il:0);if(0===r)null!==n&&Xe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Xe(n),1===t)0===e.tag?function(e){zo=!0,Wo(e)}(cc.bind(null,e)):Wo(cc.bind(null,e)),io((function(){0===(6&Ol)&&Go()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Jl=-1,ec=0,0!==(6&Ol))throw Error(a(327));var n=e.callbackNode;if(Cc()&&e.callbackNode!==n)return null;var r=ft(e,e===Tl?Il:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vc(e,r);else{t=r;var o=Ol;Ol|=2;var i=mc();for(Tl===e&&Il===t||(Vl=null,Gl=$e()+500,hc(e,t));;)try{bc();break}catch(l){pc(e,l)}Sa(),kl.current=i,Ol=o,null!==Ml?t=0:(Tl=null,Il=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=ic(e,o))),1===t)throw n=jl,hc(e,0),lc(e,r),oc(e,$e()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!sr(a(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=vc(e,r))&&(0!==(i=pt(e))&&(r=i,t=ic(e,i))),1===t))throw n=jl,hc(e,0),lc(e,r),oc(e,$e()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Sc(e,Hl,Vl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Wl+500-$e())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Sc.bind(null,e,Hl,Vl),t);break}Sc(e,Hl,Vl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>o&&(o=s),r&=~i}if(r=o,10<(r=(120>(r=$e()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ro(Sc.bind(null,e,Hl,Vl),r);break}Sc(e,Hl,Vl);break;default:throw Error(a(329))}}}return oc(e,$e()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Hl,Hl=n,null!==t&&sc(t)),e}function sc(e){null===Hl?Hl=e:Hl.push.apply(Hl,e)}function lc(e,t){for(t&=~Bl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Ol))throw Error(a(327));Cc();var t=ft(e,0);if(0===(1&t))return oc(e,$e()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=jl,hc(e,0),lc(e,t),oc(e,$e()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Hl,Vl),oc(e,$e()),null}function uc(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Gl=$e()+500,zo&&Go())}}function dc(e){null!==Yl&&0===Yl.tag&&0===(6&Ol)&&Cc();var t=Ol;Ol|=1;var n=Al.transition,r=bt;try{if(Al.transition=null,bt=1,e)return e()}finally{bt=r,Al.transition=n,0===(6&(Ol=t))&&Go()}}function fc(){Rl=Fl.current,ko(Fl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ml)for(n=Ml.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Fo();break;case 3:ai(),ko(To),ko(Oo),di();break;case 5:si(r);break;case 4:ai();break;case 13:case 19:ko(li);break;case 10:Ca(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Tl=e,Ml=e=Fc(e.current,null),Il=Rl=t,Nl=0,jl=null,Bl=Ll=Dl=0,Hl=zl=null,null!==Pa){for(t=0;t<Pa.length;t++)if(null!==(r=(n=Pa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Pa=null}return e}function pc(e,t){for(;;){var n=Ml;try{if(Sa(),fi.current=is,yi){for(var r=mi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}yi=!1}if(pi=0,vi=gi=mi=null,bi=!1,wi=0,Pl.current=null,null===n||null===n.return){Nl=1,jl=t,Ml=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&gs(i,u,t),c=u;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){gs(i,u,t),gc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var v=vs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),ys(v,s,l,0,t),ma(us(c,l));break e}}i=c=us(c,l),4!==Nl&&(Nl=2),null===zl?zl=[i]:zl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Da(i,ps(0,c,t));break e;case 1:l=c;var y=i.type,b=i.stateNode;if(0===(128&i.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Da(i,ms(i,l,t));break e}}i=i.return}while(null!==i)}xc(n)}catch(w){t=w,Ml===n&&null!==n&&(Ml=n=n.return);continue}break}}function mc(){var e=kl.current;return kl.current=is,null===e?is:e}function gc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Tl||0===(268435455&Dl)&&0===(268435455&Ll)||lc(Tl,Il)}function vc(e,t){var n=Ol;Ol|=2;var r=mc();for(Tl===e&&Il===t||(Vl=null,hc(e,t));;)try{yc();break}catch(o){pc(e,o)}if(Sa(),Ol=n,kl.current=r,null!==Ml)throw Error(a(261));return Tl=null,Il=0,Nl}function yc(){for(;null!==Ml;)wc(Ml)}function bc(){for(;null!==Ml&&!Ye();)wc(Ml)}function wc(e){var t=_l(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?xc(e):Ml=t,Pl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Xs(n,t,Rl)))return void(Ml=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Ml=n);if(null===e)return Nl=6,void(Ml=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ml=t);Ml=t=e}while(null!==t);0===Nl&&(Nl=5)}function Sc(e,t,n){var r=bt,o=Al.transition;try{Al.transition=null,bt=1,function(e,t,n,r){do{Cc()}while(null!==Yl);if(0!==(6&Ol))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Tl&&(Ml=Tl=null,Il=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Xl||(Xl=!0,Tc(tt,(function(){return Cc(),null}))),i=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||i){i=Al.transition,Al.transition=null;var s=bt;bt=1;var l=Ol;Ol|=4,Pl.current=null,function(e,t){if(eo=Vt,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==i||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++d===r&&(c=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Vt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:va(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(x){Ec(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),vl(n,e),pr(to),Vt=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ze(),Ol=l,bt=s,Al.transition=i}else e.current=n;if(Xl&&(Xl=!1,Yl=e,Zl=o),i=e.pendingLanes,0===i&&(Kl=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),oc(e,$e()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=ql,ql=null,e;0!==(1&Zl)&&0!==e.tag&&Cc(),i=e.pendingLanes,0!==(1&i)?e===Ql?$l++:($l=0,Ql=e):$l=0,Go()}(e,t,n,r)}finally{Al.transition=o,bt=r}return null}function Cc(){if(null!==Yl){var e=wt(Zl),t=Al.transition,n=bt;try{if(Al.transition=null,bt=16>e?16:e,null===Yl)var r=!1;else{if(e=Yl,Yl=null,Zl=0,0!==(6&Ol))throw Error(a(331));var o=Ol;for(Ol|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(0!==(16&Js.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var h=(d=Js).sibling,p=d.return;if(il(d),d===u){Js=null;break}if(null!==h){h.return=p,Js=h;break}Js=p}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=i}}if(0!==(2064&i.subtreeFlags)&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(0!==(2048&(i=Js).flags))switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Js=y;break e}Js=i.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(S){Ec(l,l.return,S)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Ol=o,Go(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(S){}r=!0}return r}finally{bt=n,Al.transition=t}}return!1}function _c(e,t,n){e=Na(e,t=ps(0,t=us(n,t),1),1),t=tc(),null!==e&&(vt(e,1,t),oc(e,t))}function Ec(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Na(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(vt(t,1,e),oc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Il&n)===n&&(4===Nl||3===Nl&&(130023424&Il)===Il&&500>$e()-Wl?hc(e,0):Bl|=n),oc(e,t)}function Pc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Ta(e,t))&&(vt(e,t,n),oc(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pc(e,n)}function Oc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Pc(e,n)}function Tc(e,t){return Ke(e,t)}function Mc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,r){return new Mc(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,o,i){var s=2;if(r=e,"function"===typeof e)Rc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case C:return jc(n.children,o,i,t);case _:s=8,o|=8;break;case E:return(e=Ic(12,n,t,2|o)).elementType=E,e.lanes=i,e;case O:return(e=Ic(13,n,t,o)).elementType=O,e.lanes=i,e;case T:return(e=Ic(19,n,t,o)).elementType=T,e.lanes=i,e;case R:return Dc(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case P:s=9;break e;case A:s=11;break e;case M:s=14;break e;case I:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function jc(e,t,n,r){return(e=Ic(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Ic(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,r,o,a,i,s,l){return e=new zc(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ic(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(a),e}function Wc(e){if(!e)return Ao;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ro(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Ro(n))return jo(e,n,t)}return t}function Gc(e,t,n,r,o,a,i,s,l){return(e=Hc(n,r,!0,e,0,a,0,s,l)).context=Wc(null),n=e.current,(a=Fa(r=tc(),o=nc(n))).callback=void 0!==t&&null!==t?t:null,Na(n,a,o),e.current.lanes=o,vt(e,o,r),oc(e,r),e}function Vc(e,t,n,r){var o=t.current,a=tc(),i=nc(o);return n=Wc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Na(o,t,i))&&(rc(e,o,i,a),ja(e,o,i)),i}function Uc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)ws=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),pa();break;case 5:ii(t);break;case 1:Ro(t.type)&&Do(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(li,1&li.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Po(li,1&li.current),null!==(e=Us(e,t,n))?e.sibling:null);Po(li,1&li.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Gs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Us(e,t,n)}(e,t,n);ws=0!==(131072&e.flags)}else ws=!1,aa&&0!==(1048576&t.flags)&&ea(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var o=Io(t,Oo.current);Ea(t,n),o=_i(null,t,r,e,o,n);var i=Ei();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ro(r)?(i=!0,Do(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ia(t),o.updater=Wa,t.stateNode=o,o._reactInternals=t,qa(t,r,e,n),t=Os(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),xs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Rc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===M)return 14}return 2}(r),e=va(r,e),o){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=As(null,t,r,e,n);break e;case 11:t=Ss(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,va(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ps(e,t,r,o=t.elementType===r?o:va(r,o),n);case 1:return r=t.type,o=t.pendingProps,As(e,t,r,o=t.elementType===r?o:va(r,o),n);case 3:e:{if(Ts(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ra(e,t),La(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ms(e,t,r,n,o=us(Error(a(423)),t));break e}if(r!==o){t=Ms(e,t,r,n,o=us(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Qa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===o){t=Us(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==i&&no(r,i)&&(t.flags|=32),ks(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Ls(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=$a(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ss(e,t,r,o=t.elementType===r?o:va(r,o),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Po(ya,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===o.children&&!To.current){t=Us(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Fa(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),_a(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),_a(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}xs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ea(t,n),r=r(o=ka(o)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return o=va(r=t.type,t.pendingProps),Cs(e,t,r,o=va(r.type,o),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:va(r,o),Vs(e,t),t.tag=1,Ro(r)?(e=!0,Do(t)):e=!1,Ea(t,n),Va(t,r,o),qa(t,r,o,n),Os(null,t,r,!0,e,n);case 19:return Gs(e,t,n);case 22:return Es(e,t,n)}throw Error(a(156,t.tag))};var Xc="function"===typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"===typeof o){var s=o;o=function(){var e=Uc(i);s.call(e)}}Vc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"===typeof r){var a=r;r=function(){var e=Uc(i);a.call(e)}}var i=Gc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[mo]=i.current,Wr(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Uc(l);s.call(e)}}var l=Hc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mo]=l.current,Wr(8===e.nodeType?e.parentNode:e),dc((function(){Vc(t,l,n,r)})),l}(n,t,e,o,r);return Uc(i)}Zc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Vc(e,t,null,null)},Zc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Vc(null,e,null,null)})),t[mo]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Dt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),oc(t,$e()),0===(6&Ol)&&(Gl=$e()+500,Go()))}break;case 13:dc((function(){var t=Ta(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Kc(e,1)}},St=function(e){if(13===e.tag){var t=Ta(e,134217728);if(null!==t)rc(t,e,134217728,tc());Kc(e,134217728)}},Ct=function(e){if(13===e.tag){var t=nc(e),n=Ta(e,t);if(null!==n)rc(n,e,t,tc());Kc(e,t)}},_t=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(a(90));K(r),Q(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=uc,Oe=dc;var tu={usingClientEntryPoint:!1,Events:[wo,xo,So,ke,Pe,uc]},nu={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!$c(e))throw Error(a(299));var n=!1,r="",o=Xc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Hc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$c(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=Xc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Gc(t,null,e,1,null!=n?n:null,o,0,i,s),e[mo]=t.current,Wr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Zc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},391:(e,t,n)=>{"use strict";var r=n(950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(730)},612:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<o&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,h=3,p=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,R(S);else{var t=r(u);null!==t&&F(x,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(k),k=-1),p=!0;var a=h;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!O());){var i=f.callback;if("function"===typeof i){f.callback=null,h=f.priorityLevel;var s=i(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&F(x,d.startTime-n),l=!1}return l}finally{f=null,h=a,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,_=!1,E=null,k=-1,P=5,A=-1;function O(){return!(t.unstable_now()-A<P)}function T(){if(null!==E){var e=t.unstable_now();A=e;var n=!0;try{n=E(!0,e)}finally{n?C():(_=!1,E=null)}}else _=!1}if("function"===typeof b)C=function(){b(T)};else if("undefined"!==typeof MessageChannel){var M=new MessageChannel,I=M.port2;M.port1.onmessage=T,C=function(){I.postMessage(null)}}else C=function(){v(T,0)};function R(e){E=e,_||(_=!0,C())}function F(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,R(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,F(x,a-i))):(e.sortIndex=s,n(c,e),m||p||(m=!0,R(S))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},67:(e,t,n)=>{"use strict";e.exports=n(612)},366:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!==l--;)if(!a(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!a(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!==l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof i.toString)return e.toString()===i.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!a(e[c[l]],i[c[l]]))return!1;return!0}return e!==e&&i!==i}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},82:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case s:case i:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case p:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return v(e)===a},t.isMemo=function(e){return v(e)===p}},86:(e,t,n)=>{"use strict";e.exports=n(82)},161:(e,t,n)=>{"use strict";var r,o=n(43),a=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):n&&(l=n(l))}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return l},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var i=o.prototype;return i.UNSAFE_componentWillMount=function(){c.push(this),u()},i.componentDidUpdate=function(){u()},i.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},i.render=function(){return a.createElement(r,this.props)},o}(o.PureComponent);return i(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),i(d,"canUseDOM",s),d}}},153:(e,t,n)=>{"use strict";var r=n(43),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,o)&&!_.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:n,type:e,key:i,ref:s,props:a,_owner:C.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function A(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===a?"."+A(l,0):a,x(i)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),O(i,t,o,"",(function(e){return e}))):null!=i&&(k(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(P,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",x(e))for(var c=0;c<e.length;c++){var u=a+A(s=e[c],c);l+=O(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=O(s=s.value,t,o,u=a+A(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},R={transition:null},F={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:R,ReactCurrentOwner:C};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=i,t.PureComponent=b,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},43:(e,t,n)=>{"use strict";e.exports=n(202)},579:(e,t,n)=>{"use strict";e.exports=n(153)},520:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},440:e=>{"use strict";var t=function(){};e.exports=t},640:()=>{},237:()=>{},492:()=>{},815:()=>{},671:()=>{},787:()=>{},756:e=>{e.exports=function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")},e.exports.__esModule=!0,e.exports.default=e.exports},101:e=>{e.exports=function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")},e.exports.__esModule=!0,e.exports.default=e.exports},668:(e,t,n)=>{var r=n(756);e.exports=function(e,t){return e.get(r(e,t))},e.exports.__esModule=!0,e.exports.default=e.exports},459:(e,t,n)=>{var r=n(101);e.exports=function(e,t,n){r(e,t),t.set(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},88:(e,t,n)=>{var r=n(756);e.exports=function(e,t,n){return e.set(r(e,t),n),n},e.exports.__esModule=!0,e.exports.default=e.exports},183:(e,t,n)=>{var r=n(756);e.exports=function(e,t,n){return n(r(e,t))},e.exports.__esModule=!0,e.exports.default=e.exports},312:(e,t,n)=>{var r=n(101);e.exports=function(e,t){r(e,t),t.add(e)},e.exports.__esModule=!0,e.exports.default=e.exports},693:(e,t,n)=>{var r=n(736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},45:(e,t,n)=>{var r=n(738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},736:(e,t,n)=>{var r=n(738).default,o=n(45);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},139:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var o=Object.create(null);__webpack_require__.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,__webpack_require__.d(o,a),o}})(),__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,n)=>(__webpack_require__.f[n](e,t),t)),[])),__webpack_require__.u=e=>"static/js/"+e+".d3342b1c.chunk.js",__webpack_require__.miniCssF=e=>{},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="react_app:";__webpack_require__.l=(n,r,o,a)=>{if(e[n])e[n].push(r);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+o){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",t+o),i.src=n),e[n]=[r];var d=(t,r)=>{i.onerror=i.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),s&&document.head.appendChild(i)}}})(),__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.p="/",(()=>{var e={792:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=__webpack_require__.p+__webpack_require__.u(t),i=new Error;__webpack_require__.l(a,(n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,r[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,a=n[0],i=n[1],s=n[2],l=0;if(a.some((t=>0!==e[t]))){for(r in i)__webpack_require__.o(i,r)&&(__webpack_require__.m[r]=i[r]);if(s)s(__webpack_require__)}for(t&&t(n);l<a.length;l++)o=a[l],__webpack_require__.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkreact_app=self.webpackChunkreact_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var __webpack_exports__={};(()=>{"use strict";var e=__webpack_require__(43),t=__webpack_require__.t(e,2),n=__webpack_require__(391);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e))return e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){return i(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||l(e,t)||c()}function d(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function f(e){return function(e){if(Array.isArray(e))return s(e)}(e)||d(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const m=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function g(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function v(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var y="data-rc-order",b="data-rc-priority",w="rc-util-key",x=new Map;function S(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):w}function C(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function _(e){return Array.from((x.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!g())return null;var n=t.csp,r=t.prepend,o=t.priority,a=void 0===o?0:o,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===i,l=document.createElement("style");l.setAttribute(y,i),s&&a&&l.setAttribute(b,"".concat(a)),null!==n&&void 0!==n&&n.nonce&&(l.nonce=null===n||void 0===n?void 0:n.nonce),l.innerHTML=e;var c=C(t),u=c.firstChild;if(r){if(s){var d=(t.styles||_(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(y)))return!1;var t=Number(e.getAttribute(b)||0);return a>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=C(t);return(t.styles||_(n)).find((function(n){return n.getAttribute(S(t))===e}))}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=k(e,t);n&&C(t).removeChild(n)}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=C(n),o=_(r),a=p(p({},n),{},{styles:o});!function(e,t){var n=x.get(e);if(!n||!v(document,n)){var r=E("",t),o=r.parentNode;x.set(e,o),e.removeChild(r)}}(r,a);var i=k(t,a);if(i){var s,l,c;if(null!==(s=a.csp)&&void 0!==s&&s.nonce&&i.nonce!==(null===(l=a.csp)||void 0===l?void 0:l.nonce))i.nonce=null===(c=a.csp)||void 0===c?void 0:c.nonce;return i.innerHTML!==e&&(i.innerHTML=e),i}var u=E(e,a);return u.setAttribute(S(a),t),u}function O(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}var T={},M=[];function I(e,t){}function R(e,t){}function F(e,t,n){t||T[n]||(e(!1,n),T[n]=!0)}function N(e,t){F(I,e,t)}N.preMessage=function(e){M.push(e)},N.resetWarned=function(){T={}},N.noteOnce=function(e,t){F(R,e,t)};const j=N;const D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,a){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=o.has(t);if(j(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(n&&i>1)return!1;o.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],a[c],l))return!1;return!0}if(t&&a&&"object"===r(t)&&"object"===r(a)){var u=Object.keys(t);return u.length===Object.keys(a).length&&u.every((function(n){return e(t[n],a[n],l)}))}return!1}(e,t)};function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function z(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var H="%";function W(e){return e.join(H)}var G=function(){function e(t){L(this,e),a(this,"instanceId",void 0),a(this,"cache",new Map),this.instanceId=t}return z(e,[{key:"get",value:function(e){return this.opGet(W(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(W(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const V=G;var U="data-token-hash",q="data-css-hash",K="__cssinjs_instance__";function X(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(q,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[K]=t[K]||e,t[K]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(q,"]"))).forEach((function(t){var n,o=t.getAttribute(q);r[o]?t[K]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new V(e)}var Y=e.createContext({hashPriority:"low",cache:X(),defaultCache:!0});const Z=Y;function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function J(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(te=function(){return!!e})()}function ne(e){var t=te();return function(){var n,o=ee(e);if(t){var a=ee(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $(e)}(this,n)}}const re=z((function e(){L(this,e)}));var oe="CALC_UNIT",ae=new RegExp(oe,"g");function ie(e){return"number"===typeof e?"".concat(e).concat(oe):e}var se=function(e){J(n,e);var t=ne(n);function n(e,o){var i;L(this,n),a($(i=t.call(this)),"result",""),a($(i),"unitlessCssVar",void 0),a($(i),"lowPriority",void 0);var s=r(e);return i.unitlessCssVar=o,e instanceof n?i.result="(".concat(e.result,")"):"number"===s?i.result=ie(e):"string"===s&&(i.result=e),i}return z(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(ie(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(ie(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"===typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(ae,r?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(re),le=function(e){J(n,e);var t=ne(n);function n(e){var r;return L(this,n),a($(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"===typeof e&&(r.result=e),r}return z(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(re);const ce=function(e,t){var n="css"===e?se:le;return function(e){return new n(e,t)}};var ue=function(){function e(){L(this,e),a(this,"cache",void 0),a(this,"keys",void 0),a(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return z(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=u(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),a=u(o,1)[0];this.delete(a)}this.keys.push(t)}var i=this.cache;t.forEach((function(e,o){if(o===t.length-1)i.set(e,{value:[n,r.cacheCallTimes++]});else{var a=i.get(e);a?a.map||(a.map=new Map):i.set(e,{map:new Map}),i=i.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();a(ue,"MAX_CACHE_SIZE",20),a(ue,"MAX_CACHE_OFFSET",5);var de=0,fe=function(){function e(t){L(this,e),a(this,"derivatives",void 0),a(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=de,0===t.length&&t.length,de+=1}return z(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),he=new ue;function pe(e){var t=Array.isArray(e)?e:[e];return he.has(t)||he.set(t,new fe(t)),he.get(t)}var me=new WeakMap,ge={};var ve=new WeakMap;function ye(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ve.get(e)||"";return n||(Object.keys(e).forEach((function(o){var a=e[o];n+=o,a instanceof fe?n+=a.id:a&&"object"===r(a)?n+=ye(a,t):n+=a})),t&&(n=m(n)),ve.set(e,n)),n}function be(e,t){return m("".concat(t,"_").concat(ye(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var we=g();function xe(e){return"number"===typeof e?"".concat(e,"px"):e}function Se(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=p(p({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},a(a({},U,t),q,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},_e=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=u(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Ee=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,a,i=u(e,2),s=i[0],l=i[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[s])o[s]=l;else if(("string"===typeof l||"number"===typeof l)&&(null===n||void 0===n||null===(a=n.ignore)||void 0===a||!a[s])){var c,d=Ce(s,null===n||void 0===n?void 0:n.prefix);r[d]="number"!==typeof l||null!==n&&void 0!==n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),o[s]="var(".concat(d,")")}})),[o,_e(r,t,{scope:null===n||void 0===n?void 0:n.scope})]},ke=g()?e.useLayoutEffect:e.useEffect,Pe=function(t,n){var r=e.useRef(!0);ke((function(){return t(r.current)}),n),ke((function(){return r.current=!1,function(){r.current=!0}}),[])},Ae=function(e,t){Pe((function(t){if(!t)return e()}),t)};const Oe=Pe;var Te=p({},t).useInsertionEffect;const Me=Te?function(e,t,n){return Te((function(){return e(),t()}),n)}:function(t,n,r){e.useMemo(t,r),Oe((function(){return n(!0)}),r)};const Ie="undefined"!==typeof p({},t).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),t),function(e){r||n.push(e)}}:function(){return function(e){e()}};const Re=function(){return!1};function Fe(t,n,r,o,a){var i=e.useContext(Z).cache,s=W([t].concat(f(n))),l=Ie([s]),c=(Re(),function(e){i.opUpdate(s,(function(t){var n=u(t||[void 0,void 0],2),o=n[0];var a=[void 0===o?0:o,n[1]||r()];return e?e(a):a}))});e.useMemo((function(){c()}),[s]);var d=i.opGet(s)[1];return Me((function(){null===a||void 0===a||a(d)}),(function(e){return c((function(t){var n=u(t,2),r=n[0],o=n[1];return e&&0===r&&(null===a||void 0===a||a(d)),[r+1,o]})),function(){i.opUpdate(s,(function(t){var n=u(t||[],2),r=n[0],a=void 0===r?0:r,c=n[1];return 0===a-1?(l((function(){!e&&i.opGet(s)||null===o||void 0===o||o(c,!1)})),null):[a-1,c]}))}}),[s]),d}var Ne={},je="css",De=new Map;var Le=0;function Be(e,t){De.set(e,(De.get(e)||0)-1);var n=Array.from(De.keys()),r=n.filter((function(e){return(De.get(e)||0)<=0}));n.length-r.length>Le&&r.forEach((function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(U,'="').concat(e,'"]')).forEach((function(e){var n;e[K]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),De.delete(e)}))}var ze=function(e,t,n,r){var o=p(p({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},He="token";function We(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,e.useContext)(Z),a=o.cache.instanceId,i=o.container,s=r.salt,l=void 0===s?"":s,c=r.override,d=void 0===c?Ne:c,h=r.formatToken,g=r.getComputedToken,v=r.cssVar,y=function(e,t){for(var n=me,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(ge)||n.set(ge,e()),n.get(ge)}((function(){return Object.assign.apply(Object,[{}].concat(f(n)))}),n),b=ye(y),w=ye(d),x=v?ye(v):"",S=Fe(He,[l,t.id,b,w,x],(function(){var e,n=g?g(y,d,t):ze(y,d,t,h),r=p({},n),o="";if(v){var a=u(Ee(n,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),2);n=a[0],o=a[1]}var i=be(n,l);n._tokenKey=i,r._tokenKey=be(r,l);var s=null!==(e=null===v||void 0===v?void 0:v.key)&&void 0!==e?e:i;n._themeKey=s,function(e){De.set(e,(De.get(e)||0)+1)}(s);var c="".concat(je,"-").concat(m(i));return n._hashId=c,[n,c,r,o,(null===v||void 0===v?void 0:v.key)||""]}),(function(e){Be(e[0]._themeKey,a)}),(function(e){var t=u(e,4),n=t[0],r=t[3];if(v&&r){var o=A(r,m("css-variables-".concat(n._themeKey)),{mark:q,prepend:"queue",attachTo:i,priority:-999});o[K]=a,o.setAttribute(U,n._themeKey)}}));return S}function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ge.apply(this,arguments)}const Ve={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ue="comm",qe="rule",Ke="decl",Xe="@import",Ye="@keyframes",Ze="@layer",$e=Math.abs,Qe=String.fromCharCode;Object.assign;function Je(e){return e.trim()}function et(e,t,n){return e.replace(t,n)}function tt(e,t,n){return e.indexOf(t,n)}function nt(e,t){return 0|e.charCodeAt(t)}function rt(e,t,n){return e.slice(t,n)}function ot(e){return e.length}function at(e,t){return t.push(e),e}function it(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function st(e,t,n,r){switch(e.type){case Ze:if(e.children.length)break;case Xe:case Ke:return e.return=e.return||e.value;case Ue:return"";case Ye:return e.return=e.value+"{"+it(e.children,r)+"}";case qe:if(!ot(e.value=e.props.join(",")))return""}return ot(n=it(e.children,r))?e.return=e.value+"{"+n+"}":""}var lt=1,ct=1,ut=0,dt=0,ft=0,ht="";function pt(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:lt,column:ct,length:i,return:"",siblings:s}}function mt(){return ft=dt>0?nt(ht,--dt):0,ct--,10===ft&&(ct=1,lt--),ft}function gt(){return ft=dt<ut?nt(ht,dt++):0,ct++,10===ft&&(ct=1,lt++),ft}function vt(){return nt(ht,dt)}function yt(){return dt}function bt(e,t){return rt(ht,e,t)}function wt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xt(e){return lt=ct=1,ut=ot(ht=e),dt=0,[]}function St(e){return ht="",e}function Ct(e){return Je(bt(dt-1,kt(91===e?e+2:40===e?e+1:e)))}function _t(e){for(;(ft=vt())&&ft<33;)gt();return wt(e)>2||wt(ft)>3?"":" "}function Et(e,t){for(;--t&&gt()&&!(ft<48||ft>102||ft>57&&ft<65||ft>70&&ft<97););return bt(e,yt()+(t<6&&32==vt()&&32==gt()))}function kt(e){for(;gt();)switch(ft){case e:return dt;case 34:case 39:34!==e&&39!==e&&kt(ft);break;case 40:41===e&&kt(e);break;case 92:gt()}return dt}function Pt(e,t){for(;gt()&&e+ft!==57&&(e+ft!==84||47!==vt()););return"/*"+bt(t,dt-1)+"*"+Qe(47===e?e:gt())}function At(e){for(;!wt(vt());)gt();return bt(e,dt)}function Ot(e){return St(Tt("",null,null,null,[""],e=xt(e),0,[0],e))}function Tt(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,h=0,p=0,m=1,g=1,v=1,y=0,b="",w=o,x=a,S=r,C=b;g;)switch(p=y,y=gt()){case 40:if(108!=p&&58==nt(C,d-1)){-1!=tt(C+=et(Ct(y),"&","&\f"),"&\f",$e(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Ct(y);break;case 9:case 10:case 13:case 32:C+=_t(p);break;case 92:C+=Et(yt()-1,7);continue;case 47:switch(vt()){case 42:case 47:at(It(Pt(gt(),yt()),t,n,l),l);break;default:C+="/"}break;case 123*m:s[c++]=ot(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(C=et(C,/\f/g,"")),h>0&&ot(C)-d&&at(h>32?Rt(C+";",r,n,d-1,l):Rt(et(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(at(S=Mt(C,t,n,c,u,o,s,b,w=[],x=[],d,a),a),123===y)if(0===u)Tt(C,t,S,S,w,a,d,s,x);else switch(99===f&&110===nt(C,3)?100:f){case 100:case 108:case 109:case 115:Tt(e,S,S,r&&at(Mt(e,S,S,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:Tt(C,S,S,S,[""],x,0,s,x)}}c=u=h=0,m=v=1,b=C="",d=i;break;case 58:d=1+ot(C),h=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==mt())continue;switch(C+=Qe(y),y*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(ot(C)-1)*v,v=1;break;case 64:45===vt()&&(C+=Ct(gt())),f=vt(),u=d=ot(b=C+=At(yt())),y++;break;case 45:45===p&&2==ot(C)&&(m=0)}}return a}function Mt(e,t,n,r,o,a,i,s,l,c,u,d){for(var f=o-1,h=0===o?a:[""],p=function(e){return e.length}(h),m=0,g=0,v=0;m<r;++m)for(var y=0,b=rt(e,f+1,f=$e(g=i[m])),w=e;y<p;++y)(w=Je(g>0?h[y]+" "+b:et(b,/&\f/g,h[y])))&&(l[v++]=w);return pt(e,t,n,0===o?qe:s,l,c,u,d)}function It(e,t,n,r){return pt(e,t,n,Ue,Qe(ft),rt(e,2,-2),0,r)}function Rt(e,t,n,r,o){return pt(e,t,n,Ke,rt(e,0,r),rt(e,r+1,-1),r,o)}var Ft,Nt="data-ant-cssinjs-cache-path",jt="_FILE_STYLE__";var Dt=!0;function Lt(e){return function(){if(!Ft&&(Ft={},g())){var e=document.createElement("div");e.className=Nt,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=u(e.split(":"),2),n=t[0],r=t[1];Ft[n]=r}));var n,r=document.querySelector("style[".concat(Nt,"]"));r&&(Dt=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ft[e]}var Bt="_multi_value_";function zt(e){return it(Ot(e),st).replace(/\{%%%\:[^;];}/g,";")}var Ht=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=o.root,i=o.injectHash,s=o.parentSelectors,l=n.hashId,c=n.layer,d=(n.path,n.hashPriority),h=n.transformers,m=void 0===h?[]:h,g=(n.linters,""),v={};function y(t){var r=t.getName(l);if(!v[r]){var o=u(e(t.style,n,{root:!1,parentSelectors:s}),1)[0];v[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var o="string"!==typeof t||a?t:{};if("string"===typeof o)g+="".concat(o,"\n");else if(o._keyframe)y(o);else{var c=m.reduce((function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(c).forEach((function(t){var o=c[t];if("object"!==r(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===r(e)&&e&&("_skip_check_"in e||Bt in e)}(o)){var h;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Ve[e]||"number"!==typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(y(t),r=t.getName(l)),g+="".concat(n,":").concat(r,";")}var m=null!==(h=null===o||void 0===o?void 0:o.value)&&void 0!==h?h:o;"object"===r(o)&&null!==o&&void 0!==o&&o[Bt]&&Array.isArray(m)?m.forEach((function(e){E(t,e)})):E(t,m)}else{var b=!1,w=t.trim(),x=!1;(a||i)&&l?w.startsWith("@")?b=!0:w=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat(f(n.slice(1))).join(" ")})).join(",")}(t,l,d):!a||l||"&"!==w&&""!==w||(w="",x=!0);var S=u(e(o,n,{root:x,injectHash:b,parentSelectors:[].concat(f(s),[w])}),2),C=S[0],_=S[1];v=p(p({},v),_),g+="".concat(w).concat(C)}}))}})),a?c&&(g="@layer ".concat(c.name," {").concat(g,"}"),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):g="{".concat(g,"}"),[g,v]};function Wt(e,t){return m("".concat(e.join("%")).concat(t))}function Gt(){return null}var Vt="style";function Ut(t,n){var r=t.token,o=t.path,i=t.hashId,s=t.layer,l=t.nonce,c=t.clientOnly,d=t.order,h=void 0===d?0:d,m=e.useContext(Z),v=m.autoClear,y=(m.mock,m.defaultCache),b=m.hashPriority,w=m.container,x=m.ssrInline,S=m.transformers,C=m.linters,_=m.cache,E=m.layer,k=r._tokenKey,O=[k];E&&O.push("layer"),O.push.apply(O,f(o));var T=we;var M=Fe(Vt,O,(function(){var e=O.join("|");if(Lt(e)){var t=function(e){var t=Ft[e],n=null;if(t&&g())if(Dt)n=jt;else{var r=document.querySelector("style[".concat(q,'="').concat(Ft[e],'"]'));r?n=r.innerHTML:delete Ft[e]}return[n,t]}(e),r=u(t,2),a=r[0],l=r[1];if(a)return[a,k,l,{},c,h]}var d=n(),f=u(Ht(d,{hashId:i,hashPriority:b,layer:E?s:void 0,path:o.join("-"),transformers:S,linters:C}),2),p=f[0],m=f[1],v=zt(p),y=Wt(O,v);return[v,k,y,m,c,h]}),(function(e,t){var n=u(e,3)[2];(t||v)&&we&&P(n,{mark:q})}),(function(e){var t=u(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(T&&n!==jt){var a={mark:q,prepend:!E&&"queue",attachTo:w,priority:h},i="function"===typeof l?l():l;i&&(a.csp={nonce:i});var s=[],c=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?s.push(e):c.push(e)})),s.forEach((function(e){A(zt(o[e]),"_layer-".concat(e),p(p({},a),{},{prepend:!0}))}));var d=A(n,r,a);d[K]=_.instanceId,d.setAttribute(U,k),c.forEach((function(e){A(zt(o[e]),"_effect-".concat(e),a)}))}})),I=u(M,3),R=I[0],F=I[1],N=I[2];return function(t){var n;return n=x&&!T&&y?e.createElement("style",Ge({},a(a({},U,F),q,N),{dangerouslySetInnerHTML:{__html:R}})):e.createElement(Gt,null),e.createElement(e.Fragment,null,n,t)}}var qt="cssVar";const Kt=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=void 0===l?"":l,d=(0,e.useContext)(Z),h=d.cache.instanceId,p=d.container,m=s._tokenKey,g=[].concat(f(t.path),[r,c,m]),v=Fe(qt,g,(function(){var e=n(),t=u(Ee(e,r,{prefix:o,unitless:a,ignore:i,scope:c}),2),s=t[0],l=t[1];return[s,l,Wt(g,l),r]}),(function(e){var t=u(e,3)[2];we&&P(t,{mark:q})}),(function(e){var t=u(e,3),n=t[1],o=t[2];if(n){var a=A(n,o,{mark:q,prepend:"queue",attachTo:p,priority:-999});a[K]=h,a.setAttribute(U,r)}}));return v};a(a(a({},Vt,(function(e,t,n){var r=u(e,6),o=r[0],a=r[1],i=r[2],s=r[3],l=r[4],c=r[5],d=(n||{}).plain;if(l)return null;var f=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return f=Se(o,a,i,h,d),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Se(zt(s[e]),a,"_effect-".concat(e),h,d);e.startsWith("@layer")?f=n+f:f+=n}})),[c,i,f]})),He,(function(e,t,n){var r=u(e,5),o=r[2],a=r[3],i=r[4],s=(n||{}).plain;if(!a)return null;var l=o._tokenKey;return[-999,l,Se(a,i,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),qt,(function(e,t,n){var r=u(e,4),o=r[1],a=r[2],i=r[3],s=(n||{}).plain;if(!o)return null;return[-999,a,Se(o,i,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var Xt=function(){function e(t,n){L(this,e),a(this,"name",void 0),a(this,"style",void 0),a(this,"_keyframe",!0),this.name=t,this.style=n}return z(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const Yt=Xt;function Zt(e){return e.notSplit=!0,e}Zt(["borderTop","borderBottom"]),Zt(["borderTop"]),Zt(["borderBottom"]),Zt(["borderLeft","borderRight"]),Zt(["borderLeft"]),Zt(["borderRight"]);const $t=(0,e.createContext)({});function Qt(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function en(e){var t=function(e,t){if("object"!=Jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Jt(t)?t:t+""}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=en(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function on(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function an(e,t){if(e){if("string"===typeof e)return rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rn(e,t):void 0}}function sn(e){return function(e){if(Array.isArray(e))return rn(e)}(e)||on(e)||an(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e){if(Array.isArray(e))return e}function cn(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function un(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function dn(e,t,n,r){if(!t.length)return n;var o,a,i=ln(o=t)||on(o)||an(o)||cn(),s=i[0],l=i.slice(1);return a=e||"number"!==typeof s?Array.isArray(e)?sn(e):nn({},e):[],r&&void 0===n&&1===l.length?delete a[s][l[0]]:a[s]=dn(a[s],l,n,r),a}function fn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!un(e,t.slice(0,-1))?e:dn(e,t,n,r)}function hn(e){return Array.isArray(e)?[]:{}}var pn="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function mn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hn(t[0]);return t.forEach((function(e){!function t(n,o){var a,i=new Set(o),s=un(e,n),l=Array.isArray(s);if(l||"object"===Jt(a=s)&&null!==a&&Object.getPrototypeOf(a)===Object.prototype){if(!i.has(s)){i.add(s);var c=un(r,n);l?r=fn(r,n,[]):c&&"object"===Jt(c)||(r=fn(r,n,hn(s))),pn(s).forEach((function(e){t([].concat(sn(n),[e]),i)}))}}else r=fn(r,n,s)}([])})),r}var gn={},vn=[];function yn(e,t){}function bn(e,t){}function wn(e,t,n){t||gn[n]||(e(!1,n),gn[n]=!0)}function xn(e,t){wn(yn,e,t)}xn.preMessage=function(e){vn.push(e)},xn.resetWarned=function(){gn={}},xn.noteOnce=function(e,t){wn(bn,e,t)};const Sn=xn;function Cn(){}const _n=e.createContext({}),En=()=>{const e=()=>{};return e.deprecated=Cn,e},kn=(0,e.createContext)(void 0);const Pn={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function On(e){var t=function(e,t){if("object"!=An(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=An(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==An(t)?t:t+""}function Tn(e,t,n){return(t=On(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){Tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Rn=In(In({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),Fn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Nn={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Rn),timePickerLocale:Object.assign({},Fn)},jn="${label} is not a valid ${type}",Dn={locale:"en",Pagination:Pn,DatePicker:Nn,TimePicker:Fn,Calendar:Nn,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:jn,method:jn,array:jn,object:jn,number:jn,date:jn,boolean:jn,integer:jn,float:jn,regexp:jn,email:jn,url:jn,hex:jn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let Ln=Object.assign({},Dn.Modal),Bn=[];const zn=()=>Bn.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Dn.Modal);function Hn(){return Ln}const Wn=(0,e.createContext)(void 0);const Gn=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;e.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Bn.push(t),Ln=zn(),()=>{Bn=Bn.filter((e=>e!==t)),Ln=zn()}}Ln=Object.assign({},Dn.Modal)}(null===n||void 0===n?void 0:n.Modal);return e}),[n]);const a=e.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return e.createElement(Wn.Provider,{value:a},r)};function Vn(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Un(e){return Math.min(1,Math.max(0,e))}function qn(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Kn(e){return e<=1?"".concat(100*Number(e),"%"):e}function Xn(e){return 1===e.length?"0"+e:String(e)}function Yn(e,t,n){e=Vn(e,255),t=Vn(t,255),n=Vn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else{var l=r-o;switch(i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:i,l:s}}function Zn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $n(e,t,n){e=Vn(e,255),t=Vn(t,255),n=Vn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,l=0===r?0:s/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}a/=6}return{h:a,s:l,v:i}}function Qn(e,t,n,r){var o=[Xn(Math.round(e).toString(16)),Xn(Math.round(t).toString(16)),Xn(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Jn(e){return Math.round(255*parseFloat(e)).toString(16)}function er(e){return tr(e)/255}function tr(e){return parseInt(e,16)}var nr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function rr(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,s=!1;return"string"===typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(nr[e])e=nr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=sr.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=sr.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=sr.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=sr.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=sr.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=sr.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=sr.hex8.exec(e),n)return{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),a:er(n[4]),format:t?"name":"hex8"};if(n=sr.hex6.exec(e),n)return{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),format:t?"name":"hex"};if(n=sr.hex4.exec(e),n)return{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),a:er(n[4]+n[4]),format:t?"name":"hex8"};if(n=sr.hex3.exec(e),n)return{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(lr(e.r)&&lr(e.g)&&lr(e.b)?(t=function(e,t,n){return{r:255*Vn(e,255),g:255*Vn(t,255),b:255*Vn(n,255)}}(e.r,e.g,e.b),i=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):lr(e.h)&&lr(e.s)&&lr(e.v)?(r=Kn(e.s),o=Kn(e.v),t=function(e,t,n){e=6*Vn(e,360),t=Vn(t,100),n=Vn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,i,a,a,s,n][l],g:255*[s,n,n,i,a,a][l],b:255*[a,a,s,n,n,i][l]}}(e.h,r,o),i=!0,s="hsv"):lr(e.h)&&lr(e.s)&&lr(e.l)&&(r=Kn(e.s),a=Kn(e.l),t=function(e,t,n){var r,o,a;if(e=Vn(e,360),t=Vn(t,100),n=Vn(n,100),0===t)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=Zn(s,i,e+1/3),o=Zn(s,i,e),a=Zn(s,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=qn(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var or="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ar="[\\s|\\(]+(".concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")\\s*\\)?"),ir="[\\s|\\(]+(".concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")[,|\\s]+(").concat(or,")\\s*\\)?"),sr={CSS_UNIT:new RegExp(or),rgb:new RegExp("rgb"+ar),rgba:new RegExp("rgba"+ir),hsl:new RegExp("hsl"+ar),hsla:new RegExp("hsla"+ir),hsv:new RegExp("hsv"+ar),hsva:new RegExp("hsva"+ir),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function lr(e){return Boolean(sr.CSS_UNIT.exec(String(e)))}var cr=2,ur=.16,dr=.05,fr=.05,hr=.15,pr=5,mr=4,gr=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function vr(e){var t=$n(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function yr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Qn(t,n,r,!1))}function br(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-cr*t:Math.round(e.h)+cr*t:n?Math.round(e.h)+cr*t:Math.round(e.h)-cr*t)<0?r+=360:r>=360&&(r-=360),r}function wr(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-ur*t:t===mr?e.s+ur:e.s+dr*t)>1&&(r=1),n&&t===pr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function xr(e,t,n){var r;return(r=n?e.v+fr*t:e.v-hr*t)>1&&(r=1),Number(r.toFixed(2))}function Sr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=rr(e),o=pr;o>0;o-=1){var a=vr(r),i=yr(rr({h:br(a,o,!0),s:wr(a,o,!0),v:xr(a,o,!0)}));n.push(i)}n.push(yr(r));for(var s=1;s<=mr;s+=1){var l=vr(r),c=yr(rr({h:br(l,s),s:wr(l,s),v:xr(l,s)}));n.push(c)}return"dark"===t.theme?gr.map((function(e){var r=e.index,o=e.opacity;return yr(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(rr(t.backgroundColor||"#141414"),rr(n[r]),100*o))})):n}var Cr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},_r=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_r.primary=_r[5];var Er=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Er.primary=Er[5];var kr=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];kr.primary=kr[5];var Pr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Pr.primary=Pr[5];var Ar=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ar.primary=Ar[5];var Or=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Or.primary=Or[5];var Tr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Tr.primary=Tr[5];var Mr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Mr.primary=Mr[5];var Ir=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ir.primary=Ir[5];var Rr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Rr.primary=Rr[5];var Fr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Fr.primary=Fr[5];var Nr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Nr.primary=Nr[5];var jr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];jr.primary=jr[5];var Dr={red:_r,volcano:Er,orange:kr,gold:Pr,yellow:Ar,lime:Or,green:Tr,cyan:Mr,blue:Ir,geekblue:Rr,purple:Fr,magenta:Nr,grey:jr},Lr=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Lr.primary=Lr[5];var Br=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Br.primary=Br[5];var zr=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];zr.primary=zr[5];var Hr=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Hr.primary=Hr[5];var Wr=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Wr.primary=Wr[5];var Gr=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Gr.primary=Gr[5];var Vr=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Vr.primary=Vr[5];var Ur=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Ur.primary=Ur[5];var qr=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];qr.primary=qr[5];var Kr=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Kr.primary=Kr[5];var Xr=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Xr.primary=Xr[5];var Yr=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Yr.primary=Yr[5];var Zr=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Zr.primary=Zr[5];const $r={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Qr=Object.assign(Object.assign({},$r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var Jr=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=rr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=qn(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=$n(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=$n(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Yn(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Yn(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Qn(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var a=[Xn(Math.round(e).toString(16)),Xn(Math.round(t).toString(16)),Xn(Math.round(n).toString(16)),Xn(Jn(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Vn(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Vn(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Qn(this.r,this.g,this.b,!1),t=0,n=Object.entries(nr);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Un(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Un(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Un(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Un(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function eo(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),h=n(a),p=n(i),m=n(s),g=r(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Jr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const to=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const no=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function ro(e){return(e+8)/e}const oo=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),a=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(a/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:ro(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const ao=(e,t)=>new Jr(e).setAlpha(t).toRgbString(),io=(e,t)=>new Jr(e).darken(t).toHexString(),so=e=>{const t=Sr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},lo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ao(r,.88),colorTextSecondary:ao(r,.65),colorTextTertiary:ao(r,.45),colorTextQuaternary:ao(r,.25),colorFill:ao(r,.15),colorFillSecondary:ao(r,.06),colorFillTertiary:ao(r,.04),colorFillQuaternary:ao(r,.02),colorBgLayout:io(n,4),colorBgContainer:io(n,0),colorBgElevated:io(n,0),colorBgSpotlight:ao(r,.85),colorBgBlur:"transparent",colorBorder:io(n,15),colorBorderSecondary:io(n,6)}};function co(e){Cr.pink=Cr.magenta,Dr.pink=Dr.magenta;const t=Object.keys($r).map((t=>{const n=e[t]===Cr[t]?Dr[t]:Sr(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),eo(e,{generateColorPalettes:so,generateNeutralColorPalettes:lo})),oo(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),no(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:o+1},to(r))}(e))}const uo=pe(co),fo={token:Qr,override:{override:Qr},hashed:!0},ho=e.createContext(fo),po="ant",mo="anticon",go=["outlined","borderless","filled"],vo=e.createContext({getPrefixCls:(e,t)=>t||(e?"".concat(po,"-").concat(e):po),iconPrefixCls:mo}),{Consumer:yo}=vo;function bo(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var wo="data-rc-order",xo="data-rc-priority",So="rc-util-key",Co=new Map;function _o(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):So}function Eo(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ko(e){return Array.from((Co.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Po(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!bo())return null;var n=t.csp,r=t.prepend,o=t.priority,a=void 0===o?0:o,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===i,l=document.createElement("style");l.setAttribute(wo,i),s&&a&&l.setAttribute(xo,"".concat(a)),null!==n&&void 0!==n&&n.nonce&&(l.nonce=null===n||void 0===n?void 0:n.nonce),l.innerHTML=e;var c=Eo(t),u=c.firstChild;if(r){if(s){var d=(t.styles||ko(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(wo)))return!1;var t=Number(e.getAttribute(xo)||0);return a>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Eo(t);return(t.styles||ko(n)).find((function(n){return n.getAttribute(_o(t))===e}))}function Oo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Eo(n),o=ko(r),a=nn(nn({},n),{},{styles:o});!function(e,t){var n=Co.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=Po("",t),o=r.parentNode;Co.set(e,o),e.removeChild(r)}}(r,a);var i=Ao(t,a);if(i){var s,l,c;if(null!==(s=a.csp)&&void 0!==s&&s.nonce&&i.nonce!==(null===(l=a.csp)||void 0===l?void 0:l.nonce))i.nonce=null===(c=a.csp)||void 0===c?void 0:c.nonce;return i.innerHTML!==e&&(i.innerHTML=e),i}var u=Po(e,a);return u.setAttribute(_o(a),t),u}const To="-ant-".concat(Date.now(),"-").concat(Math.random());function Mo(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Jr(e),a=Sr(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=a[1],n["".concat(t,"-color-hover")]=a[4],n["".concat(t,"-color-active")]=a[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=a[0],n["".concat(t,"-color-deprecated-border")]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Jr(t.primaryColor),a=Sr(e.toRgbString());a.forEach(((e,t)=>{n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const i=new Jr(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(i,(e=>e.darken(2)))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");const a=Object.keys(n).map((t=>"--".concat(e,"-").concat(t,": ").concat(n[t],";")));return"\n  :root {\n    ".concat(a.join("\n"),"\n  }\n  ").trim()}(e,t);bo()&&Oo(n,"".concat(To,"-dynamic-theme"))}const Io=e.createContext(!1),Ro=t=>{let{children:n,disabled:r}=t;const o=e.useContext(Io);return e.createElement(Io.Provider,{value:null!==r&&void 0!==r?r:o},n)},Fo=Io,No=e.createContext(void 0),jo=t=>{let{children:n,size:r}=t;const o=e.useContext(No);return e.createElement(No.Provider,{value:r||o},n)},Do=No;const Lo=function(){return{componentDisabled:(0,e.useContext)(Fo),componentSize:(0,e.useContext)(Do)}};const Bo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.has(t);if(Sn(!i,"Warning: There may be circular references"),i)return!1;if(t===o)return!0;if(n&&a>1)return!1;r.add(t);var s=a+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],o[l],s))return!1;return!0}if(t&&o&&"object"===Jt(t)&&"object"===Jt(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],s)}))}return!1}(e,t)},zo=Object.assign({},t),{useId:Ho}=zo,Wo="undefined"===typeof Ho?()=>"":Ho;function Go(e){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Go(e)}function Vo(e){var t=function(e,t){if("object"!=Go(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Go(t)?t:t+""}function Uo(e,t,n){return(t=Vo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){Uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"===typeof e)return Xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zo=__webpack_require__(139),$o=__webpack_require__.n(Zo),Qo=__webpack_require__(950),Jo=__webpack_require__.t(Qo,2);function ea(e){return e instanceof HTMLElement||e instanceof SVGElement}function ta(t){var n,r=function(e){return e&&"object"===Jt(e)&&ea(e.nativeElement)?e.nativeElement:ea(e)?e:null}(t);return r||(t instanceof e.Component?null===(n=Qo.findDOMNode)||void 0===n?void 0:n.call(Qo,t):null)}var na=__webpack_require__(86),ra=function(e,t){"function"===typeof e?e(t):"object"===Jt(e)&&e&&"current"in e&&(e.current=t)},oa=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){ra(t,e)}))}},aa=function(e){var t,n,r=(0,na.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===na.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===na.ForwardRef)};function ia(t){return(0,e.isValidElement)(t)&&!(0,na.isFragment)(t)}Number(e.version.split(".")[0]);function sa(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var la=["children"],ca=e.createContext({});function ua(t){var n=t.children,r=sa(t,la);return e.createElement(ca.Provider,{value:r},n)}function da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vo(r.key),r)}}function ha(e,t,n){return t&&fa(e.prototype,t),n&&fa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pa(e,t){return pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pa(e,t)}function ma(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pa(e,t)}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ga(e)}function va(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(va=function(){return!!e})()}function ya(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ba(e){var t=va();return function(){var n,r=ga(e);if(t){var o=ga(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Go(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ya(e)}(this,n)}}const wa=function(e){ma(n,e);var t=ba(n);function n(){return da(this,n),t.apply(this,arguments)}return ha(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);function xa(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}function Sa(e,t){return ln(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||an(e,t)||cn()}var Ca=bo()?e.useLayoutEffect:e.useEffect,_a=function(t,n){var r=e.useRef(!0);Ca((function(){return t(r.current)}),n),Ca((function(){return r.current=!1,function(){r.current=!0}}),[])},Ea=function(e,t){_a((function(t){if(!t)return e()}),t)};const ka=_a;function Pa(t){var n=e.useRef(!1),r=Sa(e.useState(t),2),o=r[0],a=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||a(e)}]}function Aa(e){return void 0!==e}function Oa(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=Sa(Pa((function(){return Aa(o)?o:Aa(r)?"function"===typeof r?r():r:"function"===typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==o?o:l,d=i?i(u):u,f=xa(a),h=Sa(Pa([u]),2),p=h[0],m=h[1];return Ea((function(){var e=p[0];l!==e&&f(l,e)}),[p]),Ea((function(){Aa(o)||c(o)}),[o]),[d,xa((function(e,t){c(e,t),m([u],t)}))]}var Ta="none",Ma="appear",Ia="enter",Ra="leave",Fa="none",Na="prepare",ja="start",Da="active",La="end",Ba="prepared";function za(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Ha=function(e,t){var n={animationend:za("Animation","AnimationEnd"),transitionend:za("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(bo(),"undefined"!==typeof window?window:{}),Wa={};if(bo()){var Ga=document.createElement("div");Wa=Ga.style}var Va={};function Ua(e){if(Va[e])return Va[e];var t=Ha[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Wa)return Va[e]=t[a],Va[e]}return""}var qa=Ua("animationend"),Ka=Ua("transitionend"),Xa=!(!qa||!Ka),Ya=qa||"animationend",Za=Ka||"transitionend";function $a(e,t){if(!e)return null;if("object"===Go(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const Qa=function(t){var n=(0,e.useRef)();function r(e){e&&(e.removeEventListener(Za,t),e.removeEventListener(Ya,t))}return e.useEffect((function(){return function(){r(n.current)}}),[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener(Za,t),e.addEventListener(Ya,t),n.current=e)},r]};const Ja=bo()?e.useLayoutEffect:e.useEffect;var ei=function(e){return+setTimeout(e,16)},ti=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(ei=function(e){return window.requestAnimationFrame(e)},ti=function(e){return window.cancelAnimationFrame(e)});var ni=0,ri=new Map;function oi(e){ri.delete(e)}var ai=function(e){var t=ni+=1;return function n(r){if(0===r)oi(t),e();else{var o=ei((function(){n(r-1)}));ri.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};ai.cancel=function(e){var t=ri.get(e);return oi(e),ti(t)};const ii=ai;var si=[Na,ja,Da,La],li=[Na,Ba],ci=!1,ui=!0;function di(e){return e===Da||e===La}const fi=function(t,n,r){var o=Yo(Pa(Fa),2),a=o[0],i=o[1],s=function(){var t=e.useRef(null);function n(){ii.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var a=ii((function(){o<=1?r({isCanceled:function(){return a!==t.current}}):e(r,o-1)}));t.current=a},n]}(),l=Yo(s,2),c=l[0],u=l[1];var d=n?li:si;return Ja((function(){if(a!==Fa&&a!==La){var e=d.indexOf(a),t=d[e+1],n=r(a);n===ci?i(t,!0):t&&c((function(e){function r(){e.isCanceled()||i(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,a]),e.useEffect((function(){return function(){u()}}),[]),[function(){i(Na,!0)},a]};function hi(t,n,r,o){var a=o.motionEnter,i=void 0===a||a,s=o.motionAppear,l=void 0===s||s,c=o.motionLeave,u=void 0===c||c,d=o.motionDeadline,f=o.motionLeaveImmediately,h=o.onAppearPrepare,p=o.onEnterPrepare,m=o.onLeavePrepare,g=o.onAppearStart,v=o.onEnterStart,y=o.onLeaveStart,b=o.onAppearActive,w=o.onEnterActive,x=o.onLeaveActive,S=o.onAppearEnd,C=o.onEnterEnd,_=o.onLeaveEnd,E=o.onVisibleChanged,k=Yo(Pa(),2),P=k[0],A=k[1],O=Yo(function(t){var n=Sa(e.useReducer((function(e){return e+1}),0),2)[1],r=e.useRef(t);return[xa((function(){return r.current})),xa((function(e){r.current="function"===typeof e?e(r.current):e,n()}))]}(Ta),2),T=O[0],M=O[1],I=Yo(Pa(null),2),R=I[0],F=I[1],N=T(),j=(0,e.useRef)(!1),D=(0,e.useRef)(null);function L(){return r()}var B=(0,e.useRef)(!1);function z(){M(Ta),F(null,!0)}var H=xa((function(e){var t=T();if(t!==Ta){var n=L();if(!e||e.deadline||e.target===n){var r,o=B.current;t===Ma&&o?r=null===S||void 0===S?void 0:S(n,e):t===Ia&&o?r=null===C||void 0===C?void 0:C(n,e):t===Ra&&o&&(r=null===_||void 0===_?void 0:_(n,e)),o&&!1!==r&&z()}}})),W=Yo(Qa(H),1)[0],G=function(e){switch(e){case Ma:return Uo(Uo(Uo({},Na,h),ja,g),Da,b);case Ia:return Uo(Uo(Uo({},Na,p),ja,v),Da,w);case Ra:return Uo(Uo(Uo({},Na,m),ja,y),Da,x);default:return{}}},V=e.useMemo((function(){return G(N)}),[N]),U=Yo(fi(N,!t,(function(e){if(e===Na){var t=V[Na];return t?t(L()):ci}var n;K in V&&F((null===(n=V[K])||void 0===n?void 0:n.call(V,L(),null))||null);return K===Da&&N!==Ta&&(W(L()),d>0&&(clearTimeout(D.current),D.current=setTimeout((function(){H({deadline:!0})}),d))),K===Ba&&z(),ui})),2),q=U[0],K=U[1],X=di(K);B.current=X,Ja((function(){A(n);var e,r=j.current;j.current=!0,!r&&n&&l&&(e=Ma),r&&n&&i&&(e=Ia),(r&&!n&&u||!r&&f&&!n&&u)&&(e=Ra);var o=G(e);e&&(t||o[Na])?(M(e),q()):M(Ta)}),[n]),(0,e.useEffect)((function(){(N===Ma&&!l||N===Ia&&!i||N===Ra&&!u)&&M(Ta)}),[l,i,u]),(0,e.useEffect)((function(){return function(){j.current=!1,clearTimeout(D.current)}}),[]);var Y=e.useRef(!1);(0,e.useEffect)((function(){P&&(Y.current=!0),void 0!==P&&N===Ta&&((Y.current||P)&&(null===E||void 0===E||E(P)),Y.current=!0)}),[P,N]);var Z=R;return V[Na]&&K===ja&&(Z=Ko({transition:"none"},Z)),[N,K,Z,null!==P&&void 0!==P?P:n]}const pi=function(t){var n=t;"object"===Go(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,a=void 0===o||o,i=t.removeOnLeave,s=void 0===i||i,l=t.forceRender,c=t.children,u=t.motionName,d=t.leavedClassName,f=t.eventProps,h=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(ca).motion),p=(0,e.useRef)(),m=(0,e.useRef)();var g=Yo(hi(h,a,(function(){try{return p.current instanceof HTMLElement?p.current:ta(m.current)}catch(x7){return null}}),t),4),v=g[0],y=g[1],b=g[2],w=g[3],x=e.useRef(w);w&&(x.current=!0);var S,C=e.useCallback((function(e){p.current=e,ra(r,e)}),[r]),_=Ko(Ko({},f),{},{visible:a});if(c)if(v===Ta)S=w?c(Ko({},_),C):!s&&x.current&&d?c(Ko(Ko({},_),{},{className:d}),C):l||!s&&!d?c(Ko(Ko({},_),{},{style:{display:"none"}}),C):null;else{var E;y===Na?E="prepare":di(y)?E="active":y===ja&&(E="start");var k=$a(u,"".concat(v,"-").concat(E));S=c(Ko(Ko({},_),{},{className:$o()($a(u,v),Uo(Uo({},k,k&&E),u,"string"===typeof u)),style:b}),C)}else S=null;e.isValidElement(S)&&aa(S)&&(S.ref||(S=e.cloneElement(S,{ref:C})));return e.createElement(wa,{ref:m},S)}));return r.displayName="CSSMotion",r}(Xa);function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mi.apply(this,arguments)}var gi="add",vi="keep",yi="remove",bi="removed";function wi(e){var t;return Ko(Ko({},t=e&&"object"===Go(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function xi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(wi)}var Si=["component","children","onVisibleChanged","onAllRemoved"],Ci=["status"],_i=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pi,r=function(t){ma(o,t);var r=ba(o);function o(){var e;da(this,o);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Uo(ya(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),Uo(ya(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Ko(Ko({},e),{},{status:bi})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==bi})).length})),e}return ha(o,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,a=o.component,i=o.children,s=o.onVisibleChanged,l=o.onAllRemoved,c=sa(o,Si),u=a||e.Fragment,d={};return _i.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,e.createElement(u,c,r.map((function(r,o){var a=r.status,c=sa(r,Ci),u=a===gi||a===vi;return e.createElement(n,mi({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){(null===s||void 0===s||s(e,{key:c.key}),e)||0===t.removeKey(c.key)&&l&&l()}}),(function(e,t){return i(Ko(Ko({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=xi(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=xi(e),i=xi(t);a.forEach((function(e){for(var t=!1,a=r;a<o;a+=1){var s=i[a];if(s.key===e.key){r<a&&(n=n.concat(i.slice(r,a).map((function(e){return Ko(Ko({},e),{},{status:gi})}))),r=a),n.push(Ko(Ko({},s),{},{status:vi})),r+=1,t=!0;break}}t||n.push(Ko(Ko({},e),{},{status:yi}))})),r<o&&(n=n.concat(i.slice(r).map((function(e){return Ko(Ko({},e),{},{status:gi})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==yi}))).forEach((function(t){t.key===e&&(t.status=vi)}))})),n}(r,o);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==bi||e.status!==yi}))}}}]),o}(e.Component);Uo(r,"defaultProps",{component:"div"})}(Xa);const Ei=pi,ki="5.19.2";function Pi(e){return e>=0&&e<=255}const Ai=function(e,t){const{r:n,g:r,b:o,a:a}=new Jr(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Jr(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-i*(1-c))/c),t=Math.round((r-s*(1-c))/c),a=Math.round((o-l*(1-c))/c);if(Pi(e)&&Pi(t)&&Pi(a))return new Jr({r:e,g:t,b:a,a:Math.round(100*c)/100}).toRgbString()}return new Jr({r:n,g:r,b:o,a:1}).toRgbString()};var Oi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Ti(e){const{override:t}=e,n=Oi(e,["override"]),r=Object.assign({},t);Object.keys(Qr).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),a=1200,i=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ai(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ai(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ai(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ai(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n      0 1px 2px -2px ".concat(new Jr("rgba(0, 0, 0, 0.16)").toRgbString(),",\n      0 3px 6px 0 ").concat(new Jr("rgba(0, 0, 0, 0.12)").toRgbString(),",\n      0 5px 12px 4px ").concat(new Jr("rgba(0, 0, 0, 0.09)").toRgbString(),"\n    "),boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Mi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ii={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},Ri={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Fi={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Ni=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Mi(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Ti(i),a&&Object.entries(a).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Mi(n,["theme"]);let a=o;r&&(a=Ni(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a})),i};function ji(){const{token:t,hashed:n,theme:r,override:o,cssVar:a}=e.useContext(ho),i="".concat(ki,"-").concat(n||""),s=r||uo,[l,c,u]=We(s,[Qr,t],{salt:i,override:o,getComputedToken:Ni,formatToken:Ti,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Ii,ignore:Ri,preserve:Fi}});return[s,u,n?c:"",l,a]}function Di(t){const{children:n}=t,[,r]=ji(),{motion:o}=r,a=e.useRef(!1);return a.current=a.current||!1===o,a.current?e.createElement(ua,{motion:o},n):n}const Li=()=>null,Bi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zi=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Hi=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Wi=(e,t,n,r)=>{const o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]'),a=n?".".concat(n):o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},Gi=e=>({outline:"".concat(xe(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Vi=e=>({"&:focus-visible":Object.assign({},Gi(e))}),Ui=(e,t)=>{const[n,r]=ji();return Ut({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[".".concat(e)]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}]))};var qi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ki=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Xi,Yi,Zi,$i;function Qi(){return Xi||po}function Ji(){return Yi||mo}const es=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(Qi(),"-").concat(e):Qi()),getIconPrefixCls:Ji,getRootPrefixCls:()=>Xi||Qi(),getTheme:()=>Zi,holderRender:$i}),ts=t=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:a,anchor:i,form:s,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:m,legacyLocale:g,parentContext:v,iconPrefixCls:y,theme:b,componentDisabled:w,segmented:x,statistic:S,spin:C,calendar:_,carousel:E,cascader:k,collapse:P,typography:A,checkbox:O,descriptions:T,divider:M,drawer:I,skeleton:R,steps:F,image:N,layout:j,list:D,mentions:L,modal:B,progress:z,result:H,slider:W,breadcrumb:G,menu:V,pagination:U,input:q,textArea:K,empty:X,badge:Y,radio:Z,rate:$,switch:Q,transfer:J,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ae,timeline:ie,timePicker:se,upload:le,notification:ce,tree:ue,colorPicker:de,datePicker:fe,rangePicker:he,flex:me,wave:ge,dropdown:ve,warning:ye,tour:be,floatButtonGroup:we,variant:xe,inputNumber:Se,treeSelect:Ce}=t,_e=e.useCallback(((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||v.getPrefixCls("");return e?"".concat(o,"-").concat(e):o}),[v.getPrefixCls,t.prefixCls]),Ee=y||v.iconPrefixCls||mo,ke=r||v.csp;Ui(Ee,ke);const Pe=function(e,t,n){var r;En("ConfigProvider");const o=e||{},a=!1!==o.inherit&&t?t:Object.assign(Object.assign({},fo),{hashed:null!==(r=null===t||void 0===t?void 0:t.hashed)&&void 0!==r?r:fo.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),i=Wo();return Qt((()=>{var r,s;if(!e)return t;const l=Object.assign({},a.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const c="css-var-".concat(i.replace(/:/g,"")),u=(null!==(r=o.cssVar)&&void 0!==r?r:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null===n||void 0===n?void 0:n.prefixCls},"object"===typeof a.cssVar?a.cssVar:{}),"object"===typeof o.cssVar?o.cssVar:{}),{key:"object"===typeof o.cssVar&&(null===(s=o.cssVar)||void 0===s?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:l,cssVar:u})}),[o,a],((e,t)=>e.some(((e,n)=>{const r=t[n];return!Bo(e,r,!0)}))))}(b,v.theme,{prefixCls:_e("")});const Ae={csp:ke,autoInsertSpaceInButton:o,alert:a,anchor:i,locale:l||g,direction:u,space:d,virtual:f,popupMatchSelectWidth:null!==p&&void 0!==p?p:h,popupOverflow:m,getPrefixCls:_e,iconPrefixCls:Ee,theme:Pe,segmented:x,statistic:S,spin:C,calendar:_,carousel:E,cascader:k,collapse:P,typography:A,checkbox:O,descriptions:T,divider:M,drawer:I,skeleton:R,steps:F,image:N,input:q,textArea:K,layout:j,list:D,mentions:L,modal:B,progress:z,result:H,slider:W,breadcrumb:G,menu:V,pagination:U,empty:X,badge:Y,radio:Z,rate:$,switch:Q,transfer:J,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ae,timeline:ie,timePicker:se,upload:le,notification:ce,tree:ue,colorPicker:de,datePicker:fe,rangePicker:he,flex:me,wave:ge,dropdown:ve,warning:ye,tour:be,floatButtonGroup:we,variant:xe,inputNumber:Se,treeSelect:Ce};const Oe=Object.assign({},v);Object.keys(Ae).forEach((e=>{void 0!==Ae[e]&&(Oe[e]=Ae[e])})),Ki.forEach((e=>{const n=t[e];n&&(Oe[e]=n)})),"undefined"!==typeof o&&(Oe.button=Object.assign({autoInsertSpace:o},Oe.button));const Te=Qt((()=>Oe),Oe,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Me=e.useMemo((()=>({prefixCls:Ee,csp:ke})),[Ee,ke]);let Ie=e.createElement(e.Fragment,null,e.createElement(Li,{dropdownMatchSelectWidth:h}),n);const Re=e.useMemo((()=>{var e,t,n,r;return mn((null===(e=Dn.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Te.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Te.form)||void 0===r?void 0:r.validateMessages)||{},(null===s||void 0===s?void 0:s.validateMessages)||{})}),[Te,null===s||void 0===s?void 0:s.validateMessages]);Object.keys(Re).length>0&&(Ie=e.createElement(kn.Provider,{value:Re},Ie)),l&&(Ie=e.createElement(Gn,{locale:l,_ANT_MARK__:"internalMark"},Ie)),(Ee||ke)&&(Ie=e.createElement($t.Provider,{value:Me},Ie)),c&&(Ie=e.createElement(jo,{size:c},Ie)),Ie=e.createElement(Di,null,Ie);const Fe=e.useMemo((()=>{const e=Pe||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=qi(e,["algorithm","token","components","cssVar"]),i=t&&(!Array.isArray(t)||t.length>0)?pe(t):uo,s={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"===typeof r.algorithm)&&(r.theme=pe(r.algorithm)),delete r.algorithm),s[t]=r}));const l=Object.assign(Object.assign({},Qr),n);return Object.assign(Object.assign({},a),{theme:i,token:l,components:s,override:Object.assign({override:l},s),cssVar:o})}),[Pe]);return b&&(Ie=e.createElement(ho.Provider,{value:Fe},Ie)),Te.warning&&(Ie=e.createElement(_n.Provider,{value:Te.warning},Ie)),void 0!==w&&(Ie=e.createElement(Ro,{disabled:w},Ie)),e.createElement(vo.Provider,{value:Te},Ie)},ns=t=>{const n=e.useContext(vo),r=e.useContext(Wn);return e.createElement(ts,Object.assign({parentContext:n,legacyLocale:r},t))};ns.ConfigContext=vo,ns.SizeContext=Do,ns.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Xi=t),void 0!==n&&(Yi=n),"holderRender"in e&&($i=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?Zi=r:Mo(Qi(),r))},ns.useConfig=Lo,Object.defineProperty(ns,"SizeContext",{get:()=>Do});const rs=ns;function os(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function as(e){return function(e){if(Array.isArray(e))return os(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return os(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?os(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function is(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const ss=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ls(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,(function(e){(void 0!==e&&null!==e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(ls(e)):(0,na.isFragment)(e)&&e.props?r=r.concat(ls(e.props.children,n)):r.push(e))})),r}const cs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function us(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ds=2,fs=.16,hs=.05,ps=.05,ms=.15,gs=5,vs=4,ys=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function bs(e){var t=$n(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ws(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Qn(t,n,r,!1))}function xs(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ds*t:Math.round(e.h)+ds*t:n?Math.round(e.h)+ds*t:Math.round(e.h)-ds*t)<0?r+=360:r>=360&&(r-=360),r}function Ss(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-fs*t:t===vs?e.s+fs:e.s+hs*t)>1&&(r=1),n&&t===gs&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Cs(e,t,n){var r;return(r=n?e.v+ps*t:e.v-ms*t)>1&&(r=1),Number(r.toFixed(2))}function _s(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=rr(e),o=gs;o>0;o-=1){var a=bs(r),i=ws(rr({h:xs(a,o,!0),s:Ss(a,o,!0),v:Cs(a,o,!0)}));n.push(i)}n.push(ws(r));for(var s=1;s<=vs;s+=1){var l=bs(r),c=ws(rr({h:xs(l,s),s:Ss(l,s),v:Cs(l,s)}));n.push(c)}return"dark"===t.theme?ys.map((function(e){var r=e.index,o=e.opacity;return ws(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(rr(t.backgroundColor||"#141414"),rr(n[r]),100*o))})):n}var Es={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ks={},Ps={};Object.keys(Es).forEach((function(e){ks[e]=_s(Es[e]),ks[e].primary=ks[e][5],Ps[e]=_s(Es[e],{theme:"dark",backgroundColor:"#141414"}),Ps[e].primary=Ps[e][5]}));ks.red,ks.volcano,ks.gold,ks.orange,ks.yellow,ks.lime,ks.green,ks.cyan;var As=ks.blue;ks.geekblue,ks.purple,ks.magenta,ks.grey,ks.grey;function Os(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ts(e){return function(e){return Os(e)instanceof ShadowRoot}(e)?Os(e):null}function Ms(e){return"object"===r(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===r(e.icon)||"function"===typeof e.icon)}function Is(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=r;return t}),{})}function Rs(t,n,r){return r?e.createElement(t.tag,p(p({key:n},Is(t.attrs)),r),(t.children||[]).map((function(e,r){return Rs(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.createElement(t.tag,p({key:n},Is(t.attrs)),(t.children||[]).map((function(e,r){return Rs(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Fs(e){return _s(e)[0]}function Ns(e){return e?Array.isArray(e)?e:[e]:[]}var js=["icon","className","onClick","style","primaryColor","secondaryColor"],Ds={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ls=function(t){var n,r,o=t.icon,a=t.className,i=t.onClick,s=t.style,l=t.primaryColor,c=t.secondaryColor,u=us(t,js),d=e.useRef(),f=Ds;if(l&&(f={primaryColor:l,secondaryColor:c||Fs(l)}),function(t){var n=(0,e.useContext)($t),r=n.csp,o=n.prefixCls,a="\n.anticon {\n  display: inline-flex;\n  align-items: center;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";o&&(a=a.replace(/anticon/g,o)),(0,e.useEffect)((function(){var e=Ts(t.current);A(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[])}(d),n=Ms(o),r="icon should be icon definiton, but got ".concat(o),j(n,"[@ant-design/icons] ".concat(r)),!Ms(o))return null;var h=o;return h&&"function"===typeof h.icon&&(h=p(p({},h),{},{icon:h.icon(f.primaryColor,f.secondaryColor)})),Rs(h.icon,"svg-".concat(h.name),p(p({className:a,onClick:i,style:s,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};Ls.displayName="IconReact",Ls.getTwoToneColors=function(){return p({},Ds)},Ls.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ds.primaryColor=t,Ds.secondaryColor=n||Fs(t),Ds.calculated=!!n};const Bs=Ls;function zs(e){var t=u(Ns(e),2),n=t[0],r=t[1];return Bs.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Hs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];zs(As.primary);var Ws=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,s=t.rotate,l=t.tabIndex,c=t.onClick,d=t.twoToneColor,f=us(t,Hs),h=e.useContext($t),p=h.prefixCls,m=void 0===p?"anticon":p,g=h.rootClassName,v=$o()(g,m,a(a({},"".concat(m,"-").concat(o.name),!!o.name),"".concat(m,"-spin"),!!i||"loading"===o.name),r),y=l;void 0===y&&c&&(y=-1);var b=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,w=u(Ns(d),2),x=w[0],S=w[1];return e.createElement("span",Ge({role:"img","aria-label":o.name},f,{ref:n,tabIndex:y,onClick:c,className:v}),e.createElement(Bs,{icon:o,primaryColor:x,secondaryColor:S,style:b}))}));Ws.displayName="AntdIcon",Ws.getTwoToneColor=function(){var e=Bs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ws.setTwoToneColor=zs;const Gs=Ws;var Vs=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:cs}))};const Us=e.forwardRef(Vs);const qs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var Ks=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:qs}))};const Xs=e.forwardRef(Ks);const Ys={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var Zs=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Ys}))};const $s=e.forwardRef(Zs),Qs=e=>!isNaN(parseFloat(e))&&isFinite(e);var Js=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const el={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},tl=e.createContext({}),nl=(()=>{let e=0;return function(){return e+=1,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(e)}})(),rl=e.forwardRef(((t,n)=>{const{prefixCls:r,className:o,trigger:a,children:i,defaultCollapsed:s=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=t,y=Js(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,e.useContext)(ss),[w,x]=(0,e.useState)("collapsed"in t?t.collapsed:s),[S,C]=(0,e.useState)(!1);(0,e.useEffect)((()=>{"collapsed"in t&&x(t.collapsed)}),[t.collapsed]);const _=(e,n)=>{"collapsed"in t||x(e),null===g||void 0===g||g(e,n)},E=(0,e.useRef)();E.current=e=>{C(e.matches),null===v||void 0===v||v(e.matches),w!==e.matches&&_(e.matches,"responsive")},(0,e.useEffect)((()=>{function e(e){return E.current(e)}let t;if("undefined"!==typeof window){const{matchMedia:r}=window;if(r&&m&&m in el){t=r("screen and (max-width: ".concat(el[m],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null===t||void 0===t||t.removeEventListener("change",e)}catch(n){null===t||void 0===t||t.removeListener(e)}}}),[m]),(0,e.useEffect)((()=>{const e=nl("ant-sider-");return b.addSider(e),()=>b.removeSider(e)}),[]);const k=()=>{_(!w,"clickTrigger")},{getPrefixCls:P}=(0,e.useContext)(vo),A=e.useMemo((()=>({siderCollapsed:w})),[w]);return e.createElement(tl.Provider,{value:A},(()=>{const t=P("layout-sider",r),s=is(y,["collapsed"]),m=w?h:f,g=Qs(m)?"".concat(m,"px"):String(m),v=0===parseFloat(String(h||0))?e.createElement("span",{onClick:k,className:$o()("".concat(t,"-zero-width-trigger"),"".concat(t,"-zero-width-trigger-").concat(d?"right":"left")),style:p},a||e.createElement(Us,null)):null,b={expanded:d?e.createElement($s,null):e.createElement(Xs,null),collapsed:d?e.createElement(Xs,null):e.createElement($s,null)}[w?"collapsed":"expanded"],x=null!==a?v||e.createElement("div",{className:"".concat(t,"-trigger"),onClick:k,style:{width:g}},a||b):null,C=Object.assign(Object.assign({},c),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),_=$o()(t,"".concat(t,"-").concat(l),{["".concat(t,"-collapsed")]:!!w,["".concat(t,"-has-trigger")]:u&&null!==a&&!v,["".concat(t,"-below")]:!!S,["".concat(t,"-zero-width")]:0===parseFloat(g)},o);return e.createElement("aside",Object.assign({className:_},s,{style:C,ref:n}),e.createElement("div",{className:"".concat(t,"-children")},i),u||S&&v?x:null)})())}));const ol=rl;function al(e){return al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},al(e)}function il(e){var t=function(e,t){if("object"!=al(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=al(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==al(t)?t:t+""}function sl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,il(r.key),r)}}let ll=function(){return function(e,t,n){return t&&sl(e.prototype,t),n&&sl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map=new Map,this.objectIDMap=new WeakMap,this.nextID=0,this.lastAccessBeat=new Map,this.accessBeat=0}),[{key:"set",value:function(e,t){this.clear();const n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){const t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){return e.map((e=>e&&"object"===typeof e?"obj_".concat(this.getObjectID(e)):"".concat(typeof e,"_").concat(e))).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);const t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){if(this.accessBeat>1e4){const e=Date.now();this.lastAccessBeat.forEach(((t,n)=>{e-t>6e5&&(this.map.delete(n),this.lastAccessBeat.delete(n))})),this.accessBeat=0}}}])}();const cl=new ll;const ul=function(t,n){return e.useMemo((()=>{const e=cl.get(n);if(e)return e;const r=t();return cl.set(n,r),r}),n)};const dl="undefined"!==typeof CSSINJS_STATISTIC;let fl=!0;function hl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!dl)return Object.assign.apply(Object,[{}].concat(t));fl=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),fl=!0,r}const pl={};function ml(){}const gl=e=>{let t,n=e,r=ml;return dl&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(fl&&t.add(n),e[n])}),r=(e,n)=>{var r;pl[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=pl[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}},vl=(e,t,n)=>{var r;return"function"===typeof n?n(hl(t,null!==(r=t[e])&&void 0!==r?r:{})):null!==n&&void 0!==n?n:{}},yl=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null===r||void 0===r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null===o||void 0===o?void 0:o[t])||(null===o||void 0===o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null===o||void 0===o?void 0:o[t]))}))}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach((e=>{a[e]===t[e]&&delete a[e]})),a},bl=(e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"));function wl(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=Array.isArray(t)?t:[t,t],[i]=a,s=a.join("-");return function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const[l,c,u,d,f]=ji(),{getPrefixCls:h,iconPrefixCls:p,csp:m}=(0,e.useContext)(vo),g=h(),v=f?"css":"js",y=ul((()=>{const e=new Set;return f&&Object.keys(o.unitless||{}).forEach((t=>{e.add(Ce(t,f.prefix)),e.add(Ce(t,bl(i,f.prefix)))})),ce(v,e)}),[v,i,null===f||void 0===f?void 0:f.prefix]),{max:b,min:w}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((e=>xe(e))).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((e=>xe(e))).join(","),")")}}}(v),x={theme:l,token:d,hashId:u,nonce:()=>null===m||void 0===m?void 0:m.nonce,clientOnly:o.clientOnly,layer:{name:"antd"},order:o.order||-999};Ut(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":Hi(d)}])),Ui(p,m);return[Ut(Object.assign(Object.assign({},x),{path:[s,t,p]}),(()=>{if(!1===o.injectStyle)return[];const{token:e,flush:s}=gl(d),l=vl(i,c,r),h=".".concat(t),m=yl(i,c,l,{deprecatedTokens:o.deprecatedTokens});f&&Object.keys(l).forEach((e=>{l[e]="var(".concat(Ce(e,bl(i,f.prefix)),")")}));const v=hl(e,{componentCls:h,prefixCls:t,iconCls:".".concat(p),antCls:".".concat(g),calc:y,max:b,min:w},f?l:m),x=n(v,{hashId:u,prefixCls:t,rootPrefixCls:g,iconPrefixCls:p});return s(i,m),[!1===o.resetStyle?null:Wi(v,t,a,o.resetFont),x]})),u]}}const xl=(e,t,n,r)=>{const o=wl(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},Sl=(t,n,r,o)=>{const a=Array.isArray(t)?t[0]:t;function i(e){return"".concat(a).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}const s=(null===o||void 0===o?void 0:o.unitless)||{},l=Object.assign(Object.assign({},Ii),{[i("zIndexPopup")]:!0});Object.keys(s).forEach((e=>{l[i(e)]=s[e]}));const c=Object.assign(Object.assign({},o),{unitless:l,prefixToken:i}),u=wl(t,n,r,c),d=((t,n,r)=>{const{unitless:o,injectStyle:a=!0,prefixToken:i}=r,s=e=>{let{rootCls:a,cssVar:s}=e;const[,l]=ji();return Kt({path:[t],prefix:s.prefix,key:null===s||void 0===s?void 0:s.key,unitless:o,ignore:Ri,token:l,scope:a},(()=>{const e=vl(t,l,n),o=yl(t,l,e,{deprecatedTokens:null===r||void 0===r?void 0:r.deprecatedTokens});return Object.keys(e).forEach((e=>{o[i(e)]=o[e],delete o[e]})),o})),null};return n=>{const[,,,,r]=ji();return[o=>a&&r?e.createElement(e.Fragment,null,e.createElement(s,{rootCls:n,cssVar:r,component:t}),o):o,null===r||void 0===r?void 0:r.key]}})(a,r,c);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=u(e,t),[r,o]=d(t);return[r,n,o]}},Cl=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{["".concat(t,"-sider-light")]:{background:r,["".concat(t,"-sider-trigger")]:{color:a,background:o},["".concat(t,"-sider-zero-width-trigger")]:{color:a,background:o,border:"1px solid ".concat(n),borderInlineStart:0}}}},_l=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:h,motionDurationMid:p,motionDurationSlow:m,fontSize:g,borderRadius:v,bodyBg:y,headerBg:b,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},["&".concat(n,"-has-sider")]:{flexDirection:"row",["> ".concat(n,", > ").concat(n,"-content")]:{width:0}},["".concat(n,"-header, &").concat(n,"-footer")]:{flex:"0 0 auto"},["".concat(n,"-sider")]:{position:"relative",minWidth:0,background:w,transition:"all ".concat(p,", background 0s"),"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,["".concat(t,"-menu").concat(t,"-menu-inline-collapsed")]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:xe(d),textAlign:"center",background:i,cursor:"pointer",transition:"all ".concat(p)},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:"background ".concat(m," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(m),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},Cl(e)),{"&-rtl":{direction:"rtl"}}),["".concat(n,"-header")]:{height:s,padding:l,color:c,lineHeight:xe(s),background:b,["".concat(t,"-menu")]:{lineHeight:"inherit"}},["".concat(n,"-footer")]:{padding:u,color:r,fontSize:g,background:a},["".concat(n,"-content")]:{flex:"auto",color:r,minHeight:0}}},El=Sl("Layout",(e=>[_l(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:"0 ".concat(c,"px"),headerColor:o,footerPadding:"".concat(a,"px ").concat(c,"px"),footerBg:t,siderBg:"#001529",triggerHeight:r+2*i,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var kl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Pl(t){let{suffixCls:n,tagName:r,displayName:o}=t;return t=>e.forwardRef(((o,a)=>e.createElement(t,Object.assign({ref:a,suffixCls:n,tagName:r},o))))}const Al=e.forwardRef(((t,n)=>{const{prefixCls:r,suffixCls:o,className:a,tagName:i}=t,s=kl(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=e.useContext(vo),c=l("layout",r),[u,d,f]=El(c),h=o?"".concat(c,"-").concat(o):c;return u(e.createElement(i,Object.assign({className:$o()(r||h,a,d,f),ref:n},s)))})),Ol=e.forwardRef(((t,n)=>{const{direction:r}=e.useContext(vo),[o,a]=e.useState([]),{prefixCls:i,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=t,h=is(kl(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:p,layout:m}=e.useContext(vo),g=p("layout",i),v=function(e,t,n){return"boolean"===typeof n?n:!!e.length||ls(t).some((e=>e.type===ol))}(o,c,u),[y,b,w]=El(g),x=$o()(g,{["".concat(g,"-has-sider")]:v,["".concat(g,"-rtl")]:"rtl"===r},null===m||void 0===m?void 0:m.className,s,l,b,w),S=e.useMemo((()=>({siderHook:{addSider:e=>{a((t=>[].concat(as(t),[e])))},removeSider:e=>{a((t=>t.filter((t=>t!==e))))}}})),[]);return y(e.createElement(ss.Provider,{value:S},e.createElement(d,Object.assign({ref:n,className:x,style:Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),f)},h),c)))})),Tl=Pl({tagName:"div",displayName:"Layout"})(Ol),Ml=Pl({suffixCls:"header",tagName:"header",displayName:"Header"})(Al),Il=Pl({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Al),Rl=Pl({suffixCls:"content",tagName:"main",displayName:"Content"})(Al),Fl=Tl;Fl.Header=Ml,Fl.Footer=Il,Fl.Content=Rl,Fl.Sider=ol,Fl._InternalSiderContext=tl;const Nl=Fl;var jl=__webpack_require__(579);const Dl={token:{colorPrimary:"#ceff00",colorBgBase:"#262730",colorTextBase:"#e6e6e7",colorTextLightSolid:"#0e1117",colorBgLayout:"#0e1117",colorBgContainer:"#262730",colorTextPlaceholder:"#7f8084",borderRadius:2},components:{Layout:{siderBg:"#262730",triggerBg:"#262730"},Select:{optionSelectedBg:"#ceff00",optionSelectedColor:"#0f1117"}}},Ll=e=>{let{children:t}=e;return(0,jl.jsx)(rs,{theme:Dl,children:(0,jl.jsx)(Nl,{style:{minHeight:"100vh"},children:t})})},Bl=e=>{e&&e instanceof Function&&__webpack_require__.e(488).then(__webpack_require__.bind(__webpack_require__,488)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:a,getTTFB:i}=t;n(e),r(e),o(e),a(e),i(e)}))};var zl=e=>"checkbox"===e.type,Hl=e=>e instanceof Date,Wl=e=>null==e;const Gl=e=>"object"===typeof e;var Vl=e=>!Wl(e)&&!Array.isArray(e)&&Gl(e)&&!Hl(e),Ul=e=>Vl(e)&&e.target?zl(e.target)?e.target.checked:e.target.value:e,ql=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Kl=e=>{const t=e.constructor&&e.constructor.prototype;return Vl(t)&&t.hasOwnProperty("isPrototypeOf")},Xl="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function Yl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Xl&&(e instanceof Blob||e instanceof FileList)||!n&&!Vl(e))return e;if(t=n?[]:{},n||Kl(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Yl(e[n]));else t=e}return t}var Zl=e=>Array.isArray(e)?e.filter(Boolean):[],$l=e=>void 0===e,Ql=(e,t,n)=>{if(!t||!Vl(e))return n;const r=Zl(t.split(/[,[\].]+?/)).reduce(((e,t)=>Wl(e)?e:e[t]),e);return $l(r)||r===e?$l(e[t])?n:e[t]:r},Jl=e=>"boolean"===typeof e,ec=e=>/^\w*$/.test(e),tc=e=>Zl(e.replace(/["|']|\]/g,"").split(/\.|\[/)),nc=(e,t,n)=>{let r=-1;const o=ec(t)?[t]:tc(t),a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=Vl(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}if("__proto__"===t)return;e[t]=a,e=e[t]}return e};const rc={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},oc={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ac="max",ic="min",sc="maxLength",lc="minLength",cc="pattern",uc="required",dc="validate";e.createContext(null);var fc=function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const o=a;return t._proxyFormState[o]!==oc.all&&(t._proxyFormState[o]=!r||oc.all),n&&(n[o]=!0),e[o]}});return o},hc=e=>Vl(e)&&!Object.keys(e).length,pc=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return hc(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!r||oc.all)))},mc=e=>Array.isArray(e)?e:[e];function gc(t){const n=e.useRef(t);n.current=t,e.useEffect((()=>{const e=!t.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{e&&e.unsubscribe()}}),[t.disabled])}var vc=e=>"string"===typeof e,yc=(e,t,n,r,o)=>vc(e)?(r&&t.watch.add(e),Ql(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),Ql(n,e)))):(r&&(t.watchAll=!0),n);var bc=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},wc=e=>({isOnSubmit:!e||e===oc.onSubmit,isOnBlur:e===oc.onBlur,isOnChange:e===oc.onChange,isOnAll:e===oc.all,isOnTouch:e===oc.onTouched}),xc=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const Sc=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const n=Ql(e,o);if(n){const{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(Sc(a,t))break}else if(Vl(a)&&Sc(a,t))break}}};var Cc=(e,t,n)=>{const r=mc(Ql(e,n));return nc(r,"root",t[n]),nc(e,n,r),e},_c=e=>"file"===e.type,Ec=e=>"function"===typeof e,kc=e=>{if(!Xl)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Pc=e=>vc(e),Ac=e=>"radio"===e.type,Oc=e=>e instanceof RegExp;const Tc={value:!1,isValid:!1},Mc={value:!0,isValid:!0};var Ic=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!$l(e[0].attributes.value)?$l(e[0].value)||""===e[0].value?Mc:{value:e[0].value,isValid:!0}:Mc:Tc}return Tc};const Rc={isValid:!1,value:null};var Fc=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Rc):Rc;function Nc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(Pc(e)||Array.isArray(e)&&e.every(Pc)||Jl(e)&&!e)return{type:n,message:Pc(e)?e:"",ref:t}}var jc=e=>Vl(e)&&!Oc(e)?e:{value:e,message:""},Dc=async(e,t,n,r,o)=>{const{ref:a,refs:i,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:h,name:p,valueAsNumber:m,mount:g,disabled:v}=e._f,y=Ql(t,p);if(!g||v)return{};const b=i?i[0]:a,w=e=>{r&&b.reportValidity&&(b.setCustomValidity(Jl(e)?"":e||""),b.reportValidity())},x={},S=Ac(a),C=zl(a),_=S||C,E=(m||_c(a))&&$l(a.value)&&$l(y)||kc(a)&&""===a.value||""===y||Array.isArray(y)&&!y.length,k=bc.bind(null,p,n,x),P=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sc,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:lc;const i=e?t:n;x[p]={type:e?r:o,message:i,ref:a,...k(e?r:o,i)}};if(o?!Array.isArray(y)||!y.length:s&&(!_&&(E||Wl(y))||Jl(y)&&!y||C&&!Ic(i).isValid||S&&!Fc(i).isValid)){const{value:e,message:t}=Pc(s)?{value:!!s,message:s}:jc(s);if(e&&(x[p]={type:uc,message:t,ref:b,...k(uc,t)},!n))return w(t),x}if(!E&&(!Wl(u)||!Wl(d))){let e,t;const r=jc(d),o=jc(u);if(Wl(y)||isNaN(y)){const n=a.valueAsDate||new Date(y),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;vc(r.value)&&y&&(e=s?i(y)>i(r.value):l?y>r.value:n>new Date(r.value)),vc(o.value)&&y&&(t=s?i(y)<i(o.value):l?y<o.value:n<new Date(o.value))}else{const n=a.valueAsNumber||(y?+y:y);Wl(r.value)||(e=n>r.value),Wl(o.value)||(t=n<o.value)}if((e||t)&&(P(!!e,r.message,o.message,ac,ic),!n))return w(x[p].message),x}if((l||c)&&!E&&(vc(y)||o&&Array.isArray(y))){const e=jc(l),t=jc(c),r=!Wl(e.value)&&y.length>+e.value,o=!Wl(t.value)&&y.length<+t.value;if((r||o)&&(P(r,e.message,t.message),!n))return w(x[p].message),x}if(f&&!E&&vc(y)){const{value:e,message:t}=jc(f);if(Oc(e)&&!y.match(e)&&(x[p]={type:cc,message:t,ref:a,...k(cc,t)},!n))return w(t),x}if(h)if(Ec(h)){const e=Nc(await h(y,t),b);if(e&&(x[p]={...e,...k(dc,e.message)},!n))return w(e.message),x}else if(Vl(h)){let e={};for(const r in h){if(!hc(e)&&!n)break;const o=Nc(await h[r](y,t),b,r);o&&(e={...o,...k(r,o.message)},w(o.message),n&&(x[p]=e))}if(!hc(e)&&(x[p]={ref:b,...e},!n))return x}return w(!0),x};function Lc(e,t){const n=Array.isArray(t)?t:ec(t)?[t]:tc(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=$l(e)?r++:e[t[r++]];return e}(e,n),o=n.length-1,a=n[o];return r&&delete r[a],0!==o&&(Vl(r)&&hc(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!$l(e[t]))return!1;return!0}(r))&&Lc(e,n.slice(0,-1)),e}var Bc=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},zc=e=>Wl(e)||!Gl(e);function Hc(e,t){if(zc(e)||zc(t))return e===t;if(Hl(e)&&Hl(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(Hl(n)&&Hl(e)||Vl(n)&&Vl(e)||Array.isArray(n)&&Array.isArray(e)?!Hc(n,e):n!==e)return!1}}return!0}var Wc=e=>"select-multiple"===e.type,Gc=e=>Ac(e)||zl(e),Vc=e=>kc(e)&&e.isConnected,Uc=e=>{for(const t in e)if(Ec(e[t]))return!0;return!1};function qc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Array.isArray(e);if(Vl(e)||n)for(const r in e)Array.isArray(e[r])||Vl(e[r])&&!Uc(e[r])?(t[r]=Array.isArray(e[r])?[]:{},qc(e[r],t[r])):Wl(e[r])||(t[r]=!0);return t}function Kc(e,t,n){const r=Array.isArray(e);if(Vl(e)||r)for(const o in e)Array.isArray(e[o])||Vl(e[o])&&!Uc(e[o])?$l(t)||zc(n[o])?n[o]=Array.isArray(e[o])?qc(e[o],[]):{...qc(e[o])}:Kc(e[o],Wl(t)?{}:t[o],n[o]):n[o]=!Hc(e[o],t[o]);return n}var Xc=(e,t)=>Kc(e,t,qc(t)),Yc=(e,t)=>{let{valueAsNumber:n,valueAsDate:r,setValueAs:o}=t;return $l(e)?e:n?""===e?NaN:e?+e:e:r&&vc(e)?new Date(e):o?o(e):e};function Zc(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return _c(t)?t.files:Ac(t)?Fc(e.refs).value:Wc(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):zl(t)?Ic(e.refs).value:Yc($l(t.value)?e.ref.value:t.value,e)}var $c=(e,t,n,r)=>{const o={};for(const a of e){const e=Ql(t,a);e&&nc(o,a,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Qc=e=>$l(e)?e:Oc(e)?e.source:Vl(e)?Oc(e.value)?e.value.source:e.value:e;const Jc="AsyncFunction";var eu=e=>(!e||!e.validate)&&!!(Ec(e.validate)&&e.validate.constructor.name===Jc||Vl(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===Jc))),tu=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function nu(e,t,n){const r=Ql(e,n);if(r||ec(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),a=Ql(t,r),i=Ql(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(i&&i.type)return{name:r,error:i};o.pop()}return{name:n}}var ru=(e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e),ou=(e,t)=>!Zl(Ql(e,t)).length&&Lc(e,t);const au={mode:oc.onSubmit,reValidateMode:oc.onChange,shouldFocusError:!0};function iu(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={...au,...t},r={submitCount:0,isDirty:!1,isLoading:Ec(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},a=(Vl(n.defaultValues)||Vl(n.values))&&Yl(n.defaultValues||n.values)||{},i=n.shouldUnregister?{}:Yl(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Bc(),array:Bc(),state:Bc()},f=wc(n.mode),h=wc(n.reValidateMode),p=n.criteriaMode===oc.all,m=async e=>{if(u.isValid||e){const e=n.resolver?hc((await w()).errors):await x(o,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{(u.isValidating||u.validatingFields)&&((e||Array.from(l.mount)).forEach((e=>{e&&(t?nc(r.validatingFields,e,t):Lc(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!hc(r.validatingFields)}))},v=(e,t,n,r)=>{const l=Ql(o,e);if(l){const o=Ql(i,e,$l(n)?Ql(a,e):n);$l(o)||r&&r.defaultChecked||t?nc(i,e,t?o:Zc(l._f)):_(e,o),s.mount&&m()}},y=(e,t,n,i,s)=>{let l=!1,c=!1;const f={name:e},h=!!(Ql(o,e)&&Ql(o,e)._f&&Ql(o,e)._f.disabled);if(!n||i){u.isDirty&&(c=r.isDirty,r.isDirty=f.isDirty=S(),l=c!==f.isDirty);const n=h||Hc(Ql(a,e),t);c=!(h||!Ql(r.dirtyFields,e)),n||h?Lc(r.dirtyFields,e):nc(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,l=l||u.dirtyFields&&c!==!n}if(n){const t=Ql(r.touchedFields,e);t||(nc(r.touchedFields,e,n),f.touchedFields=r.touchedFields,l=l||u.touchedFields&&t!==n)}return l&&s&&d.state.next(f),l?f:{}},b=(n,o,a,i)=>{const s=Ql(r.errors,n),l=u.isValid&&Jl(o)&&r.isValid!==o;var f;if(t.delayError&&a?(f=()=>((e,t)=>{nc(r.errors,e,t),d.state.next({errors:r.errors})})(n,a),e=e=>{clearTimeout(c),c=setTimeout(f,e)},e(t.delayError)):(clearTimeout(c),e=null,a?nc(r.errors,n,a):Lc(r.errors,n)),(a?!Hc(s,a):s)||!hc(i)||l){const e={...i,...l&&Jl(o)?{isValid:o}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}},w=async e=>{g(e,!0);const t=await n.resolver(i,n.context,$c(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},x=async function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const a in e){const s=e[a];if(s){const{_f:e,...c}=s;if(e){const c=l.array.has(e.name),d=s._f&&eu(s._f);d&&u.validatingFields&&g([a],!0);const f=await Dc(s,i,p,n.shouldUseNativeValidation&&!t,c);if(d&&u.validatingFields&&g([a]),f[e.name]&&(o.valid=!1,t))break;!t&&(Ql(f,e.name)?c?Cc(r.errors,f,e.name):nc(r.errors,e.name,f[e.name]):Lc(r.errors,e.name))}!hc(c)&&await x(c,t,o)}}return o.valid},S=(e,t)=>(e&&t&&nc(i,e,t),!Hc(T(),a)),C=(e,t,n)=>yc(e,l,{...s.mount?i:$l(t)?a:vc(e)?{[e]:t}:t},n,t),_=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Ql(o,e);let a=t;if(r){const n=r._f;n&&(!n.disabled&&nc(i,e,Yc(t,n)),a=kc(n.ref)&&Wl(t)?"":t,Wc(n.ref)?[...n.ref.options].forEach((e=>e.selected=a.includes(e.value))):n.refs?zl(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find((t=>t===e.value)):a===e.value))):n.refs[0]&&(n.refs[0].checked=!!a):n.refs.forEach((e=>e.checked=e.value===a)):_c(n.ref)?n.ref.value="":(n.ref.value=a,n.ref.type||d.values.next({name:e,values:{...i}})))}(n.shouldDirty||n.shouldTouch)&&y(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&O(e)},E=(e,t,n)=>{for(const r in t){const a=t[r],i="".concat(e,".").concat(r),s=Ql(o,i);!l.array.has(e)&&zc(a)&&(!s||s._f)||Hl(a)?_(i,a,n):E(i,a,n)}},k=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const c=Ql(o,e),f=l.array.has(e),h=Yl(t);nc(i,e,h),f?(d.array.next({name:e,values:{...i}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:Xc(a,i),isDirty:S(e,h)})):!c||c._f||Wl(h)?_(e,h,n):E(e,h,n),xc(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...i}})},P=async a=>{s.mount=!0;const c=a.target;let v=c.name,S=!0;const C=Ql(o,v),_=e=>{S=Number.isNaN(e)||Hc(e,Ql(i,v,e))};if(C){let s,E;const k=c.type?Zc(C._f):Ul(a),P=a.type===rc.BLUR||a.type===rc.FOCUS_OUT,A=!tu(C._f)&&!n.resolver&&!Ql(r.errors,v)&&!C._f.deps||ru(P,Ql(r.touchedFields,v),r.isSubmitted,h,f),T=xc(v,l,P);nc(i,v,k),P?(C._f.onBlur&&C._f.onBlur(a),e&&e(0)):C._f.onChange&&C._f.onChange(a);const M=y(v,k,P,!1),I=!hc(M)||T;if(!P&&d.values.next({name:v,type:a.type,values:{...i}}),A)return u.isValid&&("onBlur"===t.mode?P&&m():m()),I&&d.state.next({name:v,...T?{}:M});if(!P&&T&&d.state.next({...r}),n.resolver){const{errors:e}=await w([v]);if(_(k),S){const t=nu(r.errors,o,v),n=nu(e,o,t.name||v);s=n.error,v=n.name,E=hc(e)}}else g([v],!0),s=(await Dc(C,i,p,n.shouldUseNativeValidation))[v],g([v]),_(k),S&&(s?E=!1:u.isValid&&(E=await x(o,!0)));S&&(C._f.deps&&O(C._f.deps),b(v,E,s,M))}},A=(e,t)=>{if(Ql(r.errors,t)&&e.focus)return e.focus(),1},O=async function(e){let t,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=mc(e);if(n.resolver){const n=await(async e=>{const{errors:t}=await w(e);if(e)for(const n of e){const e=Ql(t,n);e?nc(r.errors,n,e):Lc(r.errors,n)}else r.errors=t;return t})($l(e)?e:s);t=hc(n),a=e?!s.some((e=>Ql(n,e))):t}else e?(a=(await Promise.all(s.map((async e=>{const t=Ql(o,e);return await x(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&m()):a=t=await x(o);return d.state.next({...!vc(e)||u.isValid&&t!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:t}:{},errors:r.errors}),i.shouldFocus&&!a&&Sc(o,A,e?s:l.mount),a},T=e=>{const t={...s.mount?i:a};return $l(e)?t:vc(e)?Ql(t,e):e.map((e=>Ql(t,e)))},M=(e,t)=>({invalid:!!Ql((t||r).errors,e),isDirty:!!Ql((t||r).dirtyFields,e),error:Ql((t||r).errors,e),isValidating:!!Ql(r.validatingFields,e),isTouched:!!Ql((t||r).touchedFields,e)}),I=(e,t,n)=>{const a=(Ql(o,e,{_f:{}})._f||{}).ref,i=Ql(r.errors,e)||{},{ref:s,message:l,type:c,...u}=i;nc(r.errors,e,{...u,...t,ref:a}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&a&&a.focus&&a.focus()},R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const s of e?mc(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Lc(o,s),Lc(i,s)),!t.keepError&&Lc(r.errors,s),!t.keepDirty&&Lc(r.dirtyFields,s),!t.keepTouched&&Lc(r.touchedFields,s),!t.keepIsValidating&&Lc(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Lc(a,s);d.values.next({values:{...i}}),d.state.next({...r,...t.keepDirty?{isDirty:S()}:{}}),!t.keepIsValid&&m()},F=e=>{let{disabled:t,name:n,field:r,fields:o,value:a}=e;if(Jl(t)&&s.mount||t){const e=t?void 0:$l(a)?Zc(r?r._f:Ql(o,n)._f):a;nc(i,n,e),y(n,e,!1,!1,!0)}},N=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Ql(o,e);const c=Jl(r.disabled)||Jl(t.disabled);return nc(o,e,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:e}},name:e,mount:!0,...r}}),l.mount.add(e),i?F({field:i,disabled:Jl(r.disabled)?r.disabled:t.disabled,name:e,value:r.value}):v(e,!0,r.value),{...c?{disabled:r.disabled||t.disabled}:{},...n.progressive?{required:!!r.required,min:Qc(r.min),max:Qc(r.max),minLength:Qc(r.minLength),maxLength:Qc(r.maxLength),pattern:Qc(r.pattern)}:{},name:e,onChange:P,onBlur:P,ref:t=>{if(t){N(e,r),i=Ql(o,e);const n=$l(t.value)&&t.querySelectorAll&&t.querySelectorAll("input,select,textarea")[0]||t,s=Gc(n),l=i._f.refs||[];if(s?l.find((e=>e===n)):n===i._f.ref)return;nc(o,e,{_f:{...i._f,...s?{refs:[...l.filter(Vc),n,...Array.isArray(Ql(a,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),v(e,!1,void 0,n)}else i=Ql(o,e,{}),i._f&&(i._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!ql(l.array,e)||!s.action)&&l.unMount.add(e)}}},j=()=>n.shouldFocusError&&Sc(o,A,l.mount),D=(e,t)=>async a=>{let s;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let l=Yl(i);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await w();r.errors=e,l=t}else await x(o);if(Lc(r.errors,"root"),hc(r.errors)){d.state.next({errors:{}});try{await e(l,a)}catch(c){s=c}}else t&&await t({...r.errors},a),j(),setTimeout(j);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:hc(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},L=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=e?Yl(e):a,f=Yl(c),h=hc(e),p=h?a:f;if(n.keepDefaultValues||(a=c),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)Ql(r.dirtyFields,e)?nc(p,e,Ql(i,e)):k(e,Ql(p,e));else{if(Xl&&$l(e))for(const e of l.mount){const t=Ql(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(kc(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}i=t.shouldUnregister?n.keepDefaultValues?Yl(a):{}:Yl(p),d.array.next({values:{...p}}),d.values.next({values:{...p}})}l={mount:n.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!n.keepIsValid||!!n.keepDirtyValues,s.watch=!!t.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!h&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||Hc(e,a))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:h?{}:n.keepDirtyValues?n.keepDefaultValues&&i?Xc(a,i):r.dirtyFields:n.keepDefaultValues&&e?Xc(a,e):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>L(Ec(e)?e(i):e,t);return{control:{register:N,unregister:R,getFieldState:M,handleSubmit:D,setError:I,_executeSchema:w,_getWatch:C,_getDirty:S,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=Ql(o,e);t&&(t._f.refs?t._f.refs.every((e=>!Vc(e))):!Vc(t._f.ref))&&R(e)}l.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(l&&n){if(s.action=!0,f&&Array.isArray(Ql(o,e))){const t=n(Ql(o,e),l.argA,l.argB);c&&nc(o,e,t)}if(f&&Array.isArray(Ql(r.errors,e))){const t=n(Ql(r.errors,e),l.argA,l.argB);c&&nc(r.errors,e,t),ou(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(Ql(r.touchedFields,e))){const t=n(Ql(r.touchedFields,e),l.argA,l.argB);c&&nc(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=Xc(a,i)),d.state.next({name:e,isDirty:S(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else nc(i,e,t)},_updateDisabledField:F,_getFieldArray:e=>Zl(Ql(s.mount?i:a,e,t.shouldUnregister?Ql(a,e,[]):[])),_reset:L,_resetDefaultValues:()=>Ec(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{Jl(e)&&(d.state.next({disabled:e}),Sc(o,((t,n)=>{const r=Ql(o,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return o},get _formValues(){return i},get _state(){return s},set _state(e){s=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:O,register:N,handleSubmit:D,watch:(e,t)=>Ec(e)?d.values.subscribe({next:n=>e(C(void 0,t),n)}):C(e,t,!0),setValue:k,getValues:T,reset:B,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ql(o,e)&&($l(t.defaultValue)?k(e,Yl(Ql(a,e))):(k(e,t.defaultValue),nc(a,e,Yl(t.defaultValue))),t.keepTouched||Lc(r.touchedFields,e),t.keepDirty||(Lc(r.dirtyFields,e),r.isDirty=t.defaultValue?S(e,Yl(Ql(a,e))):S()),t.keepError||(Lc(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&mc(e).forEach((e=>Lc(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:R,setError:I,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Ql(o,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:M}}const su=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ql(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},lu=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?su(r.ref,n,e):r.refs&&r.refs.forEach((t=>su(t,n,e)))}},cu=(e,t)=>{t.shouldUseNativeValidation&&lu(e,t);const n={};for(const r in e){const o=Ql(t.fields,r),a=Object.assign(e[r]||{},{ref:o&&o.ref});if(uu(t.names||Object.keys(e),r)){const e=Object.assign({},Ql(n,r));nc(e,"root",a),nc(n,r,e)}else nc(n,r,a)}return n},uu=(e,t)=>e.some((e=>e.startsWith(t+".")));var du=function(e,t){for(var n={};e.length;){var r=e[0],o=r.code,a=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[i]={message:s.message,type:s.code}}else n[i]={message:a,type:o};if("unionErrors"in r&&r.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=n[i].types,c=l&&l[r.code];n[i]=bc(i,t,n,o,c?[].concat(c,r.message):r.message)}e.shift()}return n},fu=function(e,t,n){return void 0===n&&(n={}),function(r,o,a){try{return Promise.resolve(function(o,i){try{var s=Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](r,t)).then((function(e){return a.shouldUseNativeValidation&&lu({},a),{errors:{},values:n.raw?r:e}}))}catch(k_){return i(k_)}return s&&s.then?s.then(void 0,i):s}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:cu(du(e.errors,!a.shouldUseNativeValidation&&"all"===a.criteriaMode),a)};throw e})))}catch(k_){return Promise.reject(k_)}}};function hu(){hu=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),s=new T(r||[]);return o(i,"_invoke",{value:k(e,n,s)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function v(){}function y(){}function b(){}var w={};c(w,i,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(M([])));S&&S!==n&&r.call(S,i)&&(w=S);var C=b.prototype=v.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Jt(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function k(t,n,r){var o=f;return function(a,i){if(o===p)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=P(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Jt(t)+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new E(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(C),c(C,l,"Generator"),c(C,i,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function pu(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function mu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){pu(a,r,o,i,s,"next",e)}function s(e){pu(a,r,o,i,s,"throw",e)}i(void 0)}))}}var gu,vu=nn({},Jo),yu=vu.version,bu=vu.render,wu=vu.unmountComponentAtNode;try{Number((yu||"").split(".")[0])>=18&&(gu=vu.createRoot)}catch(x7){}function xu(e){var t=vu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Jt(t)&&(t.usingClientEntryPoint=e)}var Su="__rc_react_root__";function Cu(e,t){gu?function(e,t){xu(!0);var n=t[Su]||gu(t);xu(!1),n.render(e),t[Su]=n}(e,t):function(e,t){bu(e,t)}(e,t)}function _u(e){return Eu.apply(this,arguments)}function Eu(){return(Eu=mu(hu().mark((function e(t){return hu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Su])||void 0===e||e.unmount(),delete t[Su]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ku(e){wu(e)}function Pu(e){return Au.apply(this,arguments)}function Au(){return(Au=mu(hu().mark((function e(t){return hu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===gu){e.next=2;break}return e.abrupt("return",_u(t));case 2:ku(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Ou=e.createContext({});const Tu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var Mu=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Tu}))};const Iu=e.forwardRef(Mu);const Ru={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var Fu=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Ru}))};const Nu=e.forwardRef(Fu);const ju={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Du=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:ju}))};const Lu=e.forwardRef(Du);const Bu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var zu=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Bu}))};const Hu=e.forwardRef(zu);const Wu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var Gu=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Wu}))};const Vu=e.forwardRef(Gu);const Uu={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var qu=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Uu}))};const Ku=e.forwardRef(qu);function Xu(e){return e instanceof HTMLElement||e instanceof SVGElement}function Yu(t){return Xu(t)?t:t instanceof e.Component?Qo.findDOMNode(t):null}function Zu(e,t){"function"===typeof e?e(t):"object"===r(e)&&e&&"current"in e&&(e.current=t)}function $u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){Zu(t,e)}))}}function Qu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O((function(){return $u.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function Ju(e){var t,n,r=(0,na.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===na.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===na.ForwardRef)}var ed=e.createContext({});var td=function(e){J(n,e);var t=ne(n);function n(){return L(this,n),t.apply(this,arguments)}return z(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);const nd=td;function rd(t){var n=e.useRef(!1),r=u(e.useState(t),2),o=r[0],a=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||a(e)}]}var od="none",ad="appear",id="enter",sd="leave",ld="none",cd="prepare",ud="start",dd="active",fd="end",hd="prepared";function pd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var md=function(e,t){var n={animationend:pd("Animation","AnimationEnd"),transitionend:pd("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(g(),"undefined"!==typeof window?window:{}),gd={};if(g()){var vd=document.createElement("div");gd=vd.style}var yd={};function bd(e){if(yd[e])return yd[e];var t=md[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in gd)return yd[e]=t[a],yd[e]}return""}var wd=bd("animationend"),xd=bd("transitionend"),Sd=!(!wd||!xd),Cd=wd||"animationend",_d=xd||"transitionend";function Ed(e,t){if(!e)return null;if("object"===r(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const kd=function(t){var n=(0,e.useRef)(),r=(0,e.useRef)(t);r.current=t;var o=e.useCallback((function(e){r.current(e)}),[]);function a(e){e&&(e.removeEventListener(_d,o),e.removeEventListener(Cd,o))}return e.useEffect((function(){return function(){a(n.current)}}),[]),[function(e){n.current&&n.current!==e&&a(n.current),e&&e!==n.current&&(e.addEventListener(_d,o),e.addEventListener(Cd,o),n.current=e)},a]};const Pd=g()?e.useLayoutEffect:e.useEffect;var Ad=function(e){return+setTimeout(e,16)},Od=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(Ad=function(e){return window.requestAnimationFrame(e)},Od=function(e){return window.cancelAnimationFrame(e)});var Td=0,Md=new Map;function Id(e){Md.delete(e)}var Rd=function(e){var t=Td+=1;return function n(r){if(0===r)Id(t),e();else{var o=Ad((function(){n(r-1)}));Md.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Rd.cancel=function(e){var t=Md.get(e);return Id(e),Od(t)};const Fd=Rd;var Nd=[cd,ud,dd,fd],jd=[cd,hd],Dd=!1,Ld=!0;function Bd(e){return e===dd||e===fd}const zd=function(t,n,r){var o=u(rd(ld),2),a=o[0],i=o[1],s=function(){var t=e.useRef(null);function n(){Fd.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var a=Fd((function(){o<=1?r({isCanceled:function(){return a!==t.current}}):e(r,o-1)}));t.current=a},n]}(),l=u(s,2),c=l[0],d=l[1];var f=n?jd:Nd;return Pd((function(){if(a!==ld&&a!==fd){var e=f.indexOf(a),t=f[e+1],n=r(a);n===Dd?i(t,!0):t&&c((function(e){function r(){e.isCanceled()||i(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,a]),e.useEffect((function(){return function(){d()}}),[]),[function(){i(cd,!0)},a]};const Hd=function(t){var n=t;"object"===r(t)&&(n=t.transitionSupport);var o=e.forwardRef((function(t,r){var o=t.visible,i=void 0===o||o,s=t.removeOnLeave,l=void 0===s||s,c=t.forceRender,d=t.children,f=t.motionName,h=t.leavedClassName,m=t.eventProps,g=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(ed).motion),v=(0,e.useRef)(),y=(0,e.useRef)();var b=function(t,n,r,o){var i=o.motionEnter,s=void 0===i||i,l=o.motionAppear,c=void 0===l||l,d=o.motionLeave,f=void 0===d||d,h=o.motionDeadline,m=o.motionLeaveImmediately,g=o.onAppearPrepare,v=o.onEnterPrepare,y=o.onLeavePrepare,b=o.onAppearStart,w=o.onEnterStart,x=o.onLeaveStart,S=o.onAppearActive,C=o.onEnterActive,_=o.onLeaveActive,E=o.onAppearEnd,k=o.onEnterEnd,P=o.onLeaveEnd,A=o.onVisibleChanged,O=u(rd(),2),T=O[0],M=O[1],I=u(rd(od),2),R=I[0],F=I[1],N=u(rd(null),2),j=N[0],D=N[1],L=(0,e.useRef)(!1),B=(0,e.useRef)(null);function z(){return r()}var H=(0,e.useRef)(!1);function W(){F(od,!0),D(null,!0)}function G(e){var t=z();if(!e||e.deadline||e.target===t){var n,r=H.current;R===ad&&r?n=null===E||void 0===E?void 0:E(t,e):R===id&&r?n=null===k||void 0===k?void 0:k(t,e):R===sd&&r&&(n=null===P||void 0===P?void 0:P(t,e)),R!==od&&r&&!1!==n&&W()}}var V=u(kd(G),1)[0],U=function(e){var t,n,r;switch(e){case ad:return a(t={},cd,g),a(t,ud,b),a(t,dd,S),t;case id:return a(n={},cd,v),a(n,ud,w),a(n,dd,C),n;case sd:return a(r={},cd,y),a(r,ud,x),a(r,dd,_),r;default:return{}}},q=e.useMemo((function(){return U(R)}),[R]),K=u(zd(R,!t,(function(e){if(e===cd){var t=q[cd];return t?t(z()):Dd}var n;return Y in q&&D((null===(n=q[Y])||void 0===n?void 0:n.call(q,z(),null))||null),Y===dd&&(V(z()),h>0&&(clearTimeout(B.current),B.current=setTimeout((function(){G({deadline:!0})}),h))),Y===hd&&W(),Ld})),2),X=K[0],Y=K[1],Z=Bd(Y);H.current=Z,Pd((function(){M(n);var e,r=L.current;L.current=!0,!r&&n&&c&&(e=ad),r&&n&&s&&(e=id),(r&&!n&&f||!r&&m&&!n&&f)&&(e=sd);var o=U(e);e&&(t||o[cd])?(F(e),X()):F(od)}),[n]),(0,e.useEffect)((function(){(R===ad&&!c||R===id&&!s||R===sd&&!f)&&F(od)}),[c,s,f]),(0,e.useEffect)((function(){return function(){L.current=!1,clearTimeout(B.current)}}),[]);var $=e.useRef(!1);(0,e.useEffect)((function(){T&&($.current=!0),void 0!==T&&R===od&&(($.current||T)&&(null===A||void 0===A||A(T)),$.current=!0)}),[T,R]);var Q=j;return q[cd]&&Y===ud&&(Q=p({transition:"none"},Q)),[R,Y,Q,null!==T&&void 0!==T?T:n]}(g,i,(function(){try{return v.current instanceof HTMLElement?v.current:Yu(y.current)}catch(x7){return null}}),t),w=u(b,4),x=w[0],S=w[1],C=w[2],_=w[3],E=e.useRef(_);_&&(E.current=!0);var k,P=e.useCallback((function(e){v.current=e,Zu(r,e)}),[r]),A=p(p({},m),{},{visible:i});if(d)if(x===od)k=_?d(p({},A),P):!l&&E.current&&h?d(p(p({},A),{},{className:h}),P):c||!l&&!h?d(p(p({},A),{},{style:{display:"none"}}),P):null;else{var O,T;S===cd?T="prepare":Bd(S)?T="active":S===ud&&(T="start");var M=Ed(f,"".concat(x,"-").concat(T));k=d(p(p({},A),{},{className:$o()(Ed(f,x),(O={},a(O,M,M&&T),a(O,f,"string"===typeof f),O)),style:C}),P)}else k=null;e.isValidElement(k)&&Ju(k)&&(k.ref||(k=e.cloneElement(k,{ref:P})));return e.createElement(nd,{ref:y},k)}));return o.displayName="CSSMotion",o}(Sd);var Wd="add",Gd="keep",Vd="remove",Ud="removed";function qd(e){var t;return p(p({},t=e&&"object"===r(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Kd(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(qd)}var Xd=["component","children","onVisibleChanged","onAllRemoved"],Yd=["status"],Zd=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const $d=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hd,r=function(t){J(o,t);var r=ne(o);function o(){var e;L(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return a($(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),a($(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:p(p({},e),{},{status:Ud})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Ud})).length})),e}return z(o,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,a=o.component,i=o.children,s=o.onVisibleChanged,l=o.onAllRemoved,c=us(o,Xd),u=a||e.Fragment,d={};return Zd.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,e.createElement(u,c,r.map((function(r,o){var a=r.status,c=us(r,Yd),u=a===Wd||a===Gd;return e.createElement(n,Ge({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){(null===s||void 0===s||s(e,{key:c.key}),e)||0===t.removeKey(c.key)&&l&&l()}}),(function(e,t){return i(p(p({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Kd(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=Kd(e),i=Kd(t);a.forEach((function(e){for(var t=!1,a=r;a<o;a+=1){var s=i[a];if(s.key===e.key){r<a&&(n=n.concat(i.slice(r,a).map((function(e){return p(p({},e),{},{status:Wd})}))),r=a),n.push(p(p({},s),{},{status:Gd})),r+=1,t=!0;break}}t||n.push(p(p({},e),{},{status:Vd}))})),r<o&&(n=n.concat(i.slice(r).map((function(e){return p(p({},e),{},{status:Wd})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Vd}))).forEach((function(t){t.key===e&&(t.status=Gd)}))})),n}(r,o);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Ud||e.status!==Vd}))}}}]),o}(e.Component);return a(r,"defaultProps",{component:"div"}),r}(Sd),Qd=Hd;var Jd={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Jd.F1&&t<=Jd.F12)return!1;switch(t){case Jd.ALT:case Jd.CAPS_LOCK:case Jd.CONTEXT_MENU:case Jd.CTRL:case Jd.DOWN:case Jd.END:case Jd.ESC:case Jd.HOME:case Jd.INSERT:case Jd.LEFT:case Jd.MAC_FF_META:case Jd.META:case Jd.NUMLOCK:case Jd.NUM_CENTER:case Jd.PAGE_DOWN:case Jd.PAGE_UP:case Jd.PAUSE:case Jd.PRINT_SCREEN:case Jd.RIGHT:case Jd.SHIFT:case Jd.UP:case Jd.WIN_KEY:case Jd.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Jd.ZERO&&e<=Jd.NINE)return!0;if(e>=Jd.NUM_ZERO&&e<=Jd.NUM_MULTIPLY)return!0;if(e>=Jd.A&&e<=Jd.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Jd.SPACE:case Jd.QUESTION_MARK:case Jd.NUM_PLUS:case Jd.NUM_MINUS:case Jd.NUM_PERIOD:case Jd.NUM_DIVISION:case Jd.SEMICOLON:case Jd.DASH:case Jd.EQUALS:case Jd.COMMA:case Jd.PERIOD:case Jd.SLASH:case Jd.APOSTROPHE:case Jd.SINGLE_QUOTE:case Jd.OPEN_SQUARE_BRACKET:case Jd.BACKSLASH:case Jd.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const ef=Jd;var tf="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),nf="aria-",rf="data-";function of(e,t){return 0===e.indexOf(t)}function af(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:p({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||of(n,nf))||t.data&&of(n,rf)||t.attr&&tf.includes(n))&&(r[n]=e[n])})),r}var sf=e.forwardRef((function(t,n){var o=t.prefixCls,i=t.style,s=t.className,l=t.duration,c=void 0===l?4.5:l,d=t.showProgress,f=t.pauseOnHover,h=void 0===f||f,p=t.eventKey,m=t.content,g=t.closable,v=t.closeIcon,y=void 0===v?"x":v,b=t.props,w=t.onClick,x=t.onNoticeClose,S=t.times,C=t.hovering,_=u(e.useState(!1),2),E=_[0],k=_[1],P=u(e.useState(0),2),A=P[0],O=P[1],T=u(e.useState(0),2),M=T[0],I=T[1],R=C||E,F=c>0&&d,N=function(){x(p)};e.useEffect((function(){if(!R&&c>0){var e=Date.now()-M,t=setTimeout((function(){N()}),1e3*c-M);return function(){h&&clearTimeout(t),I(Date.now()-e)}}}),[c,R,S]),e.useEffect((function(){if(!R&&F&&(h||0===M)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+M-t,o=Math.min(r/(1e3*c),1);O(100*o),o<1&&n()}))}(),function(){h&&cancelAnimationFrame(e)}}}),[c,M,R,F,S]);var j=e.useMemo((function(){return"object"===r(g)&&null!==g?g:g?{closeIcon:y}:{}}),[g,y]),D=af(j,!0),L=100-(!A||A<0?0:A>100?100:A),B="".concat(o,"-notice");return e.createElement("div",Ge({},b,{ref:n,className:$o()(B,s,a({},"".concat(B,"-closable"),g)),style:i,onMouseEnter:function(e){var t;k(!0),null===b||void 0===b||null===(t=b.onMouseEnter)||void 0===t||t.call(b,e)},onMouseLeave:function(e){var t;k(!1),null===b||void 0===b||null===(t=b.onMouseLeave)||void 0===t||t.call(b,e)},onClick:w}),e.createElement("div",{className:"".concat(B,"-content")},m),g&&e.createElement("a",Ge({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==ef.ENTER||N()},"aria-label":"Close"},D,{onClick:function(e){e.preventDefault(),e.stopPropagation(),N()}}),j.closeIcon),F&&e.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:L},L+"%"))}));const lf=sf;var cf=e.createContext({});const uf=function(t){var n=t.children,r=t.classNames;return e.createElement(cf.Provider,{value:{classNames:r}},n)};const df=function(e){var t,n,o,a={offset:8,threshold:3,gap:16};e&&"object"===r(e)&&(a.offset=null!==(t=e.offset)&&void 0!==t?t:8,a.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,a.gap=null!==(o=e.gap)&&void 0!==o?o:16);return[!!e,a]};var ff=["className","style","classNames","styles"];const hf=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,s=t.style,l=t.motion,c=t.onAllNoticeRemoved,d=t.onNoticeClose,h=t.stack,m=(0,e.useContext)(cf).classNames,g=(0,e.useRef)({}),v=u((0,e.useState)(null),2),y=v[0],b=v[1],w=u((0,e.useState)([]),2),x=w[0],S=w[1],C=n.map((function(e){return{config:e,key:String(e.key)}})),_=u(df(h),2),E=_[0],k=_[1],P=k.offset,A=k.threshold,O=k.gap,T=E&&(x.length>0||C.length<=A),M="function"===typeof l?l(r):l;return(0,e.useEffect)((function(){E&&x.length>1&&S((function(e){return e.filter((function(e){return C.some((function(t){var n=t.key;return e===n}))}))}))}),[x,C,E]),(0,e.useEffect)((function(){var e,t;E&&g.current[null===(e=C[C.length-1])||void 0===e?void 0:e.key]&&b(g.current[null===(t=C[C.length-1])||void 0===t?void 0:t.key])}),[C,E]),e.createElement($d,Ge({key:r,className:$o()(o,"".concat(o,"-").concat(r),null===m||void 0===m?void 0:m.list,i,a(a({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),T)),style:s,keys:C,motionAppear:!0},M,{onAllRemoved:function(){c(r)}}),(function(t,n){var a=t.config,i=t.className,s=t.style,l=t.index,c=a,u=c.key,h=c.times,v=String(u),b=a,w=b.className,_=b.style,k=b.classNames,A=b.styles,M=us(b,ff),I=C.findIndex((function(e){return e.key===v})),R={};if(E){var F=C.length-1-(I>-1?I:l-1),N="top"===r||"bottom"===r?"-50%":"0";if(F>0){var j,D,L;R.height=T?null===(j=g.current[v])||void 0===j?void 0:j.offsetHeight:null===y||void 0===y?void 0:y.offsetHeight;for(var B=0,z=0;z<F;z++){var H;B+=(null===(H=g.current[C[C.length-1-z].key])||void 0===H?void 0:H.offsetHeight)+O}var W=(T?B:F*P)*(r.startsWith("top")?1:-1),G=!T&&null!==y&&void 0!==y&&y.offsetWidth&&null!==(D=g.current[v])&&void 0!==D&&D.offsetWidth?((null===y||void 0===y?void 0:y.offsetWidth)-2*P*(F<3?F:3))/(null===(L=g.current[v])||void 0===L?void 0:L.offsetWidth):1;R.transform="translate3d(".concat(N,", ").concat(W,"px, 0) scaleX(").concat(G,")")}else R.transform="translate3d(".concat(N,", 0, 0)")}return e.createElement("div",{ref:n,className:$o()("".concat(o,"-notice-wrapper"),i,null===k||void 0===k?void 0:k.wrapper),style:p(p(p({},s),R),null===A||void 0===A?void 0:A.wrapper),onMouseEnter:function(){return S((function(e){return e.includes(v)?e:[].concat(f(e),[v])}))},onMouseLeave:function(){return S((function(e){return e.filter((function(e){return e!==v}))}))}},e.createElement(lf,Ge({},M,{ref:function(e){I>-1?g.current[v]=e:delete g.current[v]},prefixCls:o,classNames:k,styles:A,className:$o()(w,null===m||void 0===m?void 0:m.notice),style:_,times:h,key:u,eventKey:u,onNoticeClose:d,hovering:E&&x.length>0})))}))};var pf=e.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-notification":r,a=t.container,i=t.motion,s=t.maxCount,l=t.className,c=t.style,d=t.onAllRemoved,h=t.stack,m=t.renderNotifications,g=u(e.useState([]),2),v=g[0],y=g[1],b=function(e){var t,n=v.find((function(t){return t.key===e}));null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),y((function(t){return t.filter((function(t){return t.key!==e}))}))};e.useImperativeHandle(n,(function(){return{open:function(e){y((function(t){var n,r=f(t),o=r.findIndex((function(t){return t.key===e.key})),a=p({},e);o>=0?(a.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=a):(a.times=0,r.push(a));return s>0&&r.length>s&&(r=r.slice(-s)),r}))},close:function(e){b(e)},destroy:function(){y([])}}}));var w=u(e.useState({}),2),x=w[0],S=w[1];e.useEffect((function(){var e={};v.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(x).forEach((function(t){e[t]=e[t]||[]})),S(e)}),[v]);var C=function(e){S((function(t){var n=p({},t);return(n[e]||[]).length||delete n[e],n}))},_=e.useRef(!1);if(e.useEffect((function(){Object.keys(x).length>0?_.current=!0:_.current&&(null===d||void 0===d||d(),_.current=!1)}),[x]),!a)return null;var E=Object.keys(x);return(0,Qo.createPortal)(e.createElement(e.Fragment,null,E.map((function(t){var n=x[t],r=e.createElement(hf,{key:t,configList:n,placement:t,prefixCls:o,className:null===l||void 0===l?void 0:l(t),style:null===c||void 0===c?void 0:c(t),motion:i,onNoticeClose:b,onAllNoticeRemoved:C,stack:h});return m?m(r,{prefixCls:o,key:t}):r}))),a)}));const mf=pf;var gf=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],vf=function(){return document.body},yf=0;function bf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getContainer,r=void 0===n?vf:n,o=t.motion,a=t.prefixCls,i=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,d=t.stack,h=t.renderNotifications,p=us(t,gf),m=u(e.useState(),2),g=m[0],v=m[1],y=e.useRef(),b=e.createElement(mf,{container:g,ref:y,prefixCls:a,motion:o,maxCount:i,className:s,style:l,onAllRemoved:c,stack:d,renderNotifications:h}),w=u(e.useState([]),2),x=w[0],S=w[1],C=e.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(p,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(yf),yf+=1),S((function(e){return[].concat(f(e),[{type:"open",config:t}])}))},close:function(e){S((function(t){return[].concat(f(t),[{type:"close",key:e}])}))},destroy:function(){S((function(e){return[].concat(f(e),[{type:"destroy"}])}))}}}),[]);return e.useEffect((function(){v(r())})),e.useEffect((function(){y.current&&x.length&&(x.forEach((function(e){switch(e.type){case"open":y.current.open(e.config);break;case"close":y.current.close(e.key);break;case"destroy":y.current.destroy()}})),S((function(e){return e.filter((function(e){return!x.includes(e)}))})))}),[x]),[C,b]}const wf=e=>{const[,,,,t]=ji();return t?"".concat(e,"-css-var"):""};const xf=e.createContext(void 0),Sf=100,Cf={Modal:Sf,Drawer:Sf,Popover:Sf,Popconfirm:Sf,Tooltip:Sf,Tour:Sf},_f={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ef(t,n){const[,r]=ji(),o=e.useContext(xf),a=function(e){return e in Cf}(t);let i;if(void 0!==n)i=[n,n];else{let e=null!==o&&void 0!==o?o:0;e+=a?(o?0:r.zIndexPopupBase)+Cf[t]:_f[t],i=[void 0===o?n:e,e]}return i}const kf=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o="".concat(t,"-notice"),a=new Yt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new Yt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Yt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Yt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{["&".concat(t,"-top, &").concat(t,"-bottom")]:{marginInline:0,[o]:{marginInline:"auto auto"}},["&".concat(t,"-top")]:{["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationName:i}},["&".concat(t,"-bottom")]:{["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationName:s}},["&".concat(t,"-topRight, &").concat(t,"-bottomRight")]:{["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationName:a}},["&".concat(t,"-topLeft, &").concat(t,"-bottomLeft")]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationName:l}}}}},Pf=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Af={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Of=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t["&:nth-last-child(".concat(n+1,")")]={overflow:"hidden",["& > ".concat(e.componentCls,"-notice")]:{opacity:0,transition:"opacity ".concat(e.motionDurationMid)}};return Object.assign({["&:not(:nth-last-child(-n+".concat(e.notificationStackLayer,"))")]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Tf=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t["&:nth-last-child(".concat(n+1,")")]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},Mf=e=>{const{componentCls:t}=e;return Object.assign({["".concat(t,"-stack")]:{["& > ".concat(t,"-notice-wrapper")]:Object.assign({transition:"all ".concat(e.motionDurationSlow,", backdrop-filter 0s"),position:"absolute"},Of(e))},["".concat(t,"-stack:not(").concat(t,"-stack-expanded)")]:{["& > ".concat(t,"-notice-wrapper")]:Object.assign({},Tf(e))},["".concat(t,"-stack").concat(t,"-stack-expanded")]:{["& > ".concat(t,"-notice-wrapper")]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",["& > ".concat(e.componentCls,"-notice")]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Pf.map((t=>((e,t)=>{const{componentCls:n}=e;return{["".concat(n,"-").concat(t)]:{["&".concat(n,"-stack > ").concat(n,"-notice-wrapper")]:{[t.startsWith("top")?"top":"bottom"]:0,[Af[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},If=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:h,notificationMarginEdge:p,notificationProgressBg:m,notificationProgressHeight:g,fontSize:v,lineHeight:y,width:b,notificationIconSize:w,colorText:x}=e,S="".concat(n,"-notice");return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:f,borderRadius:i,boxShadow:r,[S]:{padding:h,width:b,maxWidth:"calc(100vw - ".concat(xe(e.calc(p).mul(2).equal()),")"),overflow:"hidden",lineHeight:y,wordWrap:"break-word"},["".concat(S,"-message")]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},["".concat(S,"-description")]:{fontSize:v,color:x},["".concat(S,"-closable ").concat(S,"-message")]:{paddingInlineEnd:e.paddingLG},["".concat(S,"-with-icon ").concat(S,"-message")]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:o},["".concat(S,"-with-icon ").concat(S,"-description")]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:v},["".concat(S,"-icon")]:{position:"absolute",fontSize:w,lineHeight:1,["&-success".concat(t)]:{color:s},["&-info".concat(t)]:{color:l},["&-warning".concat(t)]:{color:c},["&-error".concat(t)]:{color:u}},["".concat(S,"-close")]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:"background-color ".concat(e.motionDurationMid,", color ").concat(e.motionDurationMid),display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Vi(e)),["".concat(S,"-progress")]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:"calc(100% - ".concat(xe(i)," * 2)"),left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:m},"&::-webkit-progress-value":{borderRadius:i,background:m}},["".concat(S,"-btn")]:{float:"right",marginTop:e.marginSM}}},Rf=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i="".concat(t,"-notice"),s=new Yt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},zi(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},["".concat(t,"-hook-holder")]:{position:"relative"},["".concat(t,"-fade-appear-prepare")]:{opacity:"0 !important"},["".concat(t,"-fade-enter, ").concat(t,"-fade-appear")]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},["".concat(t,"-fade-leave")]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},["".concat(t,"-fade-enter").concat(t,"-fade-enter-active, ").concat(t,"-fade-appear").concat(t,"-fade-appear-active")]:{animationPlayState:"running"},["".concat(t,"-fade-leave").concat(t,"-fade-leave-active")]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",["".concat(i,"-btn")]:{float:"left"}}})},{[t]:{["".concat(i,"-wrapper")]:Object.assign({},If(e))}}]},Ff=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384}),Nf=e=>{const t=e.paddingMD,n=e.paddingLG;return hl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:"".concat(xe(e.paddingMD)," ").concat(xe(e.paddingContentHorizontalLG)),notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:"linear-gradient(90deg, ".concat(e.colorPrimaryBorderHover,", ").concat(e.colorPrimary,")")})},jf=Sl("Notification",(e=>{const t=Nf(e);return[Rf(t),kf(t),Mf(t)]}),Ff),Df=xl(["Notification","PurePanel"],(e=>{const t="".concat(e.componentCls,"-notice"),n=Nf(e);return{["".concat(t,"-pure-panel")]:Object.assign(Object.assign({},If(n)),{width:n.width,maxWidth:"calc(100vw - ".concat(xe(e.calc(n.notificationMarginEdge).mul(2).equal()),")"),margin:0})}}),Ff);var Lf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Bf(t,n){return null===n||!1===n?null:n||e.createElement(Lu,{className:"".concat(t,"-close-icon")})}const zf={success:Iu,info:Vu,error:Nu,warning:Hu},Hf=t=>{const{prefixCls:n,icon:r,type:o,message:a,description:i,btn:s,role:l="alert"}=t;let c=null;return r?c=e.createElement("span",{className:"".concat(n,"-icon")},r):o&&(c=e.createElement(zf[o]||null,{className:$o()("".concat(n,"-icon"),"".concat(n,"-icon-").concat(o))})),e.createElement("div",{className:$o()({["".concat(n,"-with-icon")]:c}),role:l},c,e.createElement("div",{className:"".concat(n,"-message")},a),e.createElement("div",{className:"".concat(n,"-description")},i),s&&e.createElement("div",{className:"".concat(n,"-btn")},s))},Wf=t=>{const{prefixCls:n,className:r,icon:o,type:a,message:i,description:s,btn:l,closable:c=!0,closeIcon:u,className:d}=t,f=Lf(t,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:h}=e.useContext(vo),p=n||h("notification"),m="".concat(p,"-notice"),g=wf(p),[v,y,b]=jf(p,g);return v(e.createElement("div",{className:$o()("".concat(m,"-pure-panel"),y,r,b,g)},e.createElement(Df,{prefixCls:p}),e.createElement(lf,Object.assign({},f,{prefixCls:p,eventKey:"pure",duration:null,closable:c,className:$o()({notificationClassName:d}),closeIcon:Bf(p,u),content:e.createElement(Hf,{prefixCls:m,icon:o,type:a,message:i,description:s,btn:l})}))))};var Gf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vf="topRight",Uf=t=>{let{children:n,prefixCls:r}=t;const o=wf(r),[a,i,s]=jf(r,o);return a(e.createElement(uf,{classNames:{list:$o()(i,s,o)}},n))},qf=(t,n)=>{let{prefixCls:r,key:o}=n;return e.createElement(Uf,{prefixCls:r,key:o},t)},Kf=e.forwardRef(((t,n)=>{const{top:r,bottom:o,prefixCls:a,getContainer:i,maxCount:s,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:h}=t,{getPrefixCls:p,getPopupContainer:m,notification:g,direction:v}=(0,e.useContext)(vo),[,y]=ji(),b=a||p("notification"),[w,x]=bf({prefixCls:b,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!==r&&void 0!==r?r:24,null!==o&&void 0!==o?o:24),className:()=>$o()({["".concat(b,"-rtl")]:null!==l&&void 0!==l?l:"rtl"===v}),motion:()=>function(e){return{motionName:"".concat(e,"-fade")}}(b),closable:!0,closeIcon:Bf(b),duration:null!==d&&void 0!==d?d:4.5,getContainer:()=>(null===i||void 0===i?void 0:i())||(null===m||void 0===m?void 0:m())||document.body,maxCount:s,pauseOnHover:f,showProgress:h,onAllRemoved:c,renderNotifications:qf,stack:!1!==u&&{threshold:"object"===typeof u?null===u||void 0===u?void 0:u.threshold:void 0,offset:8,gap:y.margin}});return e.useImperativeHandle(n,(()=>Object.assign(Object.assign({},w),{prefixCls:b,notification:g}))),x}));function Xf(t){const n=e.useRef(null),r=(En("Notification"),e.useMemo((()=>{const r=r=>{var o;if(!n.current)return;const{open:a,prefixCls:i,notification:s}=n.current,l="".concat(i,"-notice"),{message:c,description:u,icon:d,type:f,btn:h,className:p,style:m,role:g="alert",closeIcon:v,closable:y}=r,b=Gf(r,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),w=Bf(l,"undefined"!==typeof v?v:null===s||void 0===s?void 0:s.closeIcon);return a(Object.assign(Object.assign({placement:null!==(o=null===t||void 0===t?void 0:t.placement)&&void 0!==o?o:Vf},b),{content:e.createElement(Hf,{prefixCls:l,icon:d,type:f,message:c,description:u,btn:h,role:g}),className:$o()(f&&"".concat(l,"-").concat(f),p,null===s||void 0===s?void 0:s.className),style:Object.assign(Object.assign({},null===s||void 0===s?void 0:s.style),m),closeIcon:w,closable:null!==y&&void 0!==y?y:!!w}))},o={open:r,destroy:e=>{var t,r;void 0!==e?null===(t=n.current)||void 0===t||t.close(e):null===(r=n.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[r,e.createElement(Kf,Object.assign({key:"notification-holder"},t,{ref:n}))]}let Yf=null,Zf=e=>e(),$f=[],Qf={};function Jf(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:a,pauseOnHover:i}=Qf,s=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:o,showProgress:a,pauseOnHover:i}}const eh=e.forwardRef(((t,n)=>{const{notificationConfig:r,sync:o}=t,{getPrefixCls:a}=(0,e.useContext)(vo),i=Qf.prefixCls||a("notification"),s=(0,e.useContext)(Ou),[l,c]=Xf(Object.assign(Object.assign(Object.assign({},r),{prefixCls:i}),s.notification));return e.useEffect(o,[]),e.useImperativeHandle(n,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),l[t].apply(l,arguments)}})),{instance:e,sync:o}})),c})),th=e.forwardRef(((t,n)=>{const[r,o]=e.useState(Jf),a=()=>{o(Jf)};e.useEffect(a,[]);const i=es(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=e.createElement(eh,{ref:n,sync:a,notificationConfig:r});return e.createElement(rs,{prefixCls:s,iconPrefixCls:l,theme:c},i.holderRender?i.holderRender(u):u)}));function nh(){if(!Yf){const t=document.createDocumentFragment(),n={fragment:t};return Yf=n,void Zf((()=>{Cu(e.createElement(th,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,nh())}))}}),t)}))}Yf.instance&&($f.forEach((e=>{switch(e.type){case"open":Zf((()=>{Yf.instance.open(Object.assign(Object.assign({},Qf),e.config))}));break;case"destroy":Zf((()=>{null===Yf||void 0===Yf||Yf.instance.destroy(e.key)}))}})),$f=[])}function rh(e){es();$f.push({type:"open",config:e}),nh()}const oh={open:rh,destroy:e=>{$f.push({type:"destroy",key:e}),nh()},config:function(e){Qf=Object.assign(Object.assign({},Qf),e),Zf((()=>{var e;null===(e=null===Yf||void 0===Yf?void 0:Yf.sync)||void 0===e||e.call(Yf)}))},useNotification:function(e){return Xf(e)},_InternalPanelDoNotUseOrYouWillBeFired:Wf},ah=oh;["success","info","warning","error"].forEach((e=>{ah[e]=t=>rh(Object.assign(Object.assign({},t),{type:e}))}));const ih=ah,sh=(0,e.createContext)(null),lh=t=>{let{children:n}=t;const[r,o]=(0,e.useState)("newRequest"),[a,i]=(0,e.useState)("request"),[s,l]=(0,e.useState)({bpoOrderId:null,uboOrderId:null}),[c,u]=(0,e.useState)(!1),[d,f]=(0,e.useState)(!1),[h,p]=(0,e.useState)(null);return(0,jl.jsx)(sh.Provider,{value:{selectedOrderId:s,setSelectedOrderId:l,menuItem:r,setMenuItem:o,tabOpen:a,setTabOpen:i,debugMode:c,setDebugMode:u,kyc:d,setKyc:f,jwt:h,setJwt:p},children:n})},ch={CONDUKT_API_URL:"https://prod-condukt-api-5vdio3ahvq-ew.a.run.app",HOTJAR_SITE_ID:"4993607",CONDUKT_WEBSITE_URL:"https://condukt.co",CONDUKT_CONTACT_EMAIL:"customer@condukt.co"};const uh=new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ch.CONDUKT_API_URL;this.baseUrl=e,this.sessionToken=null,this.refreshToken=localStorage.getItem("refreshToken"),this.jwtTokenDecoded=null,this.refreshToken&&this.getSessionToken()}async logIn(e,t){const n="".concat(this.baseUrl,"/app/login/"),r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:e,password:t})});if(!r.ok)throw new Error("HTTP error! Status: ".concat(r.status));return await r.json()}async getSessionToken(){const e="".concat(this.baseUrl,"/v1/refresh-access-token"),t=await fetch(e,{method:"POST",headers:{Authorization:"Bearer ".concat(this.refreshToken)}});if(!t.ok)throw new Error("Authentication failed");const n=await t.json();this.sessionToken=n.session_token}async getJWTToken(){return null===this.sessionToken&&await this.getSessionToken(),this.jwtTokenDecoded=(e=>{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)})(this.sessionToken),this.jwtTokenDecoded}async getKYCToken(){const e="".concat(this.baseUrl,"/internal/v1/fourthline/kyc");return this.makeRequest("GET",e)}async makeRequest(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={Authorization:"Bearer ".concat(this.sessionToken),...n.headers},o=await fetch(t,{method:e,headers:r,...n});if(401===o.status){if((await o.text()).includes("Token expired"))return await this.getSessionToken(),this.makeRequest(e,t,n)}if(!o.ok)throw new Error("Request failed");return o.json()}async makeFileRequest(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={Authorization:"Bearer ".concat(this.sessionToken),...n.headers},o=await fetch(t,{method:e,headers:r,...n});if(401===o.status){if((await o.text()).includes("Token expired"))return await this.getSessionToken(),this.makeFileRequest(e,t,n)}if(!o.ok)throw new Error("Request failed");return o.blob()}async createBusinessProfileOrder(e){const t="".concat(this.baseUrl,"/v1/business-profile-orders");return this.makeRequest("POST",t,{body:JSON.stringify(e),headers:{Authorization:"Bearer ".concat(this.sessionToken),"Content-Type":"application/json"}})}async createUBOOrder(e){const t="".concat(this.baseUrl,"/v1/ubo-order");return this.makeRequest("POST",t,{body:JSON.stringify(e),headers:{Authorization:"Bearer ".concat(this.sessionToken),"Content-Type":"application/json"}})}async fetchUBOOrder(e){const t="".concat(this.baseUrl,"/v1/ubo-order/").concat(e);return this.makeRequest("GET",t)}async search(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40;const o="".concat(this.baseUrl,"/v1/search?country=").concat(e,"&query=").concat(t,"&offset=").concat(n,"&limit=").concat(r);return this.makeRequest("GET",o)}async fetchBusinessProfileOrder(e){const t="".concat(this.baseUrl,"/v1/business-profile-orders/").concat(e);return this.makeRequest("GET",t)}async fetchBusinessProfileOrders(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=n?"&status=".concat(n):"",o="".concat(this.baseUrl,"/v1/business-profile-orders?offset=").concat(e,"&limit=").concat(t).concat(r);return this.makeRequest("GET",o)}async fetchBusinessProfile(e){const t="".concat(this.baseUrl,"/v1/business-profiles/").concat(e);return this.makeRequest("GET",t)}async fetchDocument(e){const t="".concat(this.baseUrl,"/v1/documents/").concat(e);return this.makeRequest("GET",t)}};var dh=__webpack_require__(173),fh=__webpack_require__.n(dh),hh=__webpack_require__(161),ph=__webpack_require__.n(hh),mh=__webpack_require__(366),gh=__webpack_require__.n(mh),vh=__webpack_require__(123),yh=__webpack_require__.n(vh),bh="bodyAttributes",wh="htmlAttributes",xh="titleAttributes",Sh={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},Ch=(Object.keys(Sh).map((function(e){return Sh[e]})),"charset"),_h="cssText",Eh="href",kh="http-equiv",Ph="innerHTML",Ah="itemprop",Oh="name",Th="property",Mh="rel",Ih="src",Rh="target",Fh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Nh="defaultTitle",jh="defer",Dh="encodeSpecialCharacters",Lh="onChangeClientState",Bh="titleTemplate",zh=Object.keys(Fh).reduce((function(e,t){return e[Fh[t]]=t,e}),{}),Hh=[Sh.NOSCRIPT,Sh.SCRIPT,Sh.STYLE],Wh="data-react-helmet",Gh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vh=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Uh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qh=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Kh=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Xh=function(e){var t=Jh(e,Sh.TITLE),n=Jh(e,Bh);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Jh(e,Nh);return t||r||void 0},Yh=function(e){return Jh(e,Lh)||function(){}},Zh=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Uh({},e,t)}),{})},$h=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[Sh.BASE]})).map((function(e){return e[Sh.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},Qh=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&op("Helmet: "+e+' should be of type "Array". Instead found type "'+Gh(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var s=a[i],l=s.toLowerCase();-1===t.indexOf(l)||n===Mh&&"canonical"===e[n].toLowerCase()||l===Mh&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==Ph&&s!==_h&&s!==Ah||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var s=a[i],l=yh()({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},Jh=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ep=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){ep(t)}),0)}}(),tp=function(e){return clearTimeout(e)},np="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ep:__webpack_require__.g.requestAnimationFrame||ep,rp="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||tp:__webpack_require__.g.cancelAnimationFrame||tp,op=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},ap=null,ip=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;cp(Sh.BODY,r),cp(Sh.HTML,o),lp(d,f);var h={baseTag:up(Sh.BASE,n),linkTags:up(Sh.LINK,a),metaTags:up(Sh.META,i),noscriptTags:up(Sh.NOSCRIPT,s),scriptTags:up(Sh.SCRIPT,c),styleTags:up(Sh.STYLE,u)},p={},m={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(m[e]=h[e].oldTags)})),t&&t(),l(e,p,m)},sp=function(e){return Array.isArray(e)?e.join(""):e},lp=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=sp(e)),cp(Sh.TITLE,t)},cp=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Wh),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s++){var l=i[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=a.indexOf(l);-1!==u&&a.splice(u,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(Wh):n.getAttribute(Wh)!==i.join(",")&&n.setAttribute(Wh,i.join(","))}},up=function(e,t){var n=document.head||document.querySelector(Sh.HEAD),r=n.querySelectorAll(e+"["+Wh+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Ph)n.innerHTML=t.innerHTML;else if(r===_h)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(Wh,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},dp=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Fh[n]||n]=e[n],t}),t)},hp=function(t,n,r){switch(t){case Sh.TITLE:return{toComponent:function(){return function(t,n,r){var o,a=((o={key:n})[Wh]=!0,o),i=fp(r,a);return[e.createElement(Sh.TITLE,i,n)]}(0,n.title,n.titleAttributes)},toString:function(){return function(e,t,n,r){var o=dp(n),a=sp(t);return o?"<"+e+" "+Wh+'="true" '+o+">"+Kh(a,r)+"</"+e+">":"<"+e+" "+Wh+'="true">'+Kh(a,r)+"</"+e+">"}(t,n.title,n.titleAttributes,r)}};case bh:case wh:return{toComponent:function(){return fp(n)},toString:function(){return dp(n)}};default:return{toComponent:function(){return function(t,n){return n.map((function(n,r){var o,a=((o={key:r})[Wh]=!0,o);return Object.keys(n).forEach((function(e){var t=Fh[e]||e;if(t===Ph||t===_h){var r=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:r}}else a[t]=n[e]})),e.createElement(t,a)}))}(t,n)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===Ph||e===_h)})).reduce((function(e,t){var o="undefined"===typeof r[t]?t:t+'="'+Kh(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===Hh.indexOf(e);return t+"<"+e+" "+Wh+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(t,n,r)}}}},pp=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:hp(Sh.BASE,t,r),bodyAttributes:hp(bh,n,r),htmlAttributes:hp(wh,o,r),link:hp(Sh.LINK,a,r),meta:hp(Sh.META,i,r),noscript:hp(Sh.NOSCRIPT,s,r),script:hp(Sh.SCRIPT,l,r),style:hp(Sh.STYLE,c,r),title:hp(Sh.TITLE,{title:d,titleAttributes:f},r)}},mp=function(t){var n,r;return r=n=function(n){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,n.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r.prototype.shouldComponentUpdate=function(e){return!gh()(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Sh.SCRIPT:case Sh.NOSCRIPT:return{innerHTML:t};case Sh.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return Uh({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Uh({},o,this.mapNestedChildrenToProps(n,a))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case Sh.TITLE:return Uh({},o,((t={})[r.type]=i,t.titleAttributes=Uh({},a),t));case Sh.BODY:return Uh({},o,{bodyAttributes:Uh({},a)});case Sh.HTML:return Uh({},o,{htmlAttributes:Uh({},a)})}return Uh({},o,((n={})[r.type]=Uh({},a),n))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Uh({},t);return Object.keys(e).forEach((function(t){var r;n=Uh({},n,((r={})[t]=e[t],r))})),n},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(t,n){var r=this,o={};return e.Children.forEach(t,(function(e){if(e&&e.props){var t=e.props,a=t.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[zh[n]||n]=e[n],t}),t)}(qh(t,["children"]));switch(r.warnOnInvalidChildren(e,a),e.type){case Sh.LINK:case Sh.META:case Sh.NOSCRIPT:case Sh.SCRIPT:case Sh.STYLE:o=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:o,newChildProps:i,nestedChildren:a});break;default:n=r.mapObjectTypeChildren({child:e,newProps:n,newChildProps:i,nestedChildren:a})}}})),n=this.mapArrayTypeChildrenToProps(o,n)},r.prototype.render=function(){var n=this.props,r=n.children,o=qh(n,["children"]),a=Uh({},o);return r&&(a=this.mapChildrenToProps(r,a)),e.createElement(t,a)},Vh(r,null,[{key:"canUseDOM",set:function(e){t.canUseDOM=e}}]),r}(e.Component),n.propTypes={base:fh().object,bodyAttributes:fh().object,children:fh().oneOfType([fh().arrayOf(fh().node),fh().node]),defaultTitle:fh().string,defer:fh().bool,encodeSpecialCharacters:fh().bool,htmlAttributes:fh().object,link:fh().arrayOf(fh().object),meta:fh().arrayOf(fh().object),noscript:fh().arrayOf(fh().object),onChangeClientState:fh().func,script:fh().arrayOf(fh().object),style:fh().arrayOf(fh().object),title:fh().string,titleAttributes:fh().object,titleTemplate:fh().string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var e=t.rewind();return e||(e=pp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},r}(ph()((function(e){return{baseTag:$h([Eh,Rh],e),bodyAttributes:Zh(bh,e),defer:Jh(e,jh),encode:Jh(e,Dh),htmlAttributes:Zh(wh,e),linkTags:Qh(Sh.LINK,[Mh,Eh],e),metaTags:Qh(Sh.META,[Oh,Ch,kh,Th,Ah],e),noscriptTags:Qh(Sh.NOSCRIPT,[Ph],e),onChangeClientState:Yh(e),scriptTags:Qh(Sh.SCRIPT,[Ih,Ph],e),styleTags:Qh(Sh.STYLE,[_h],e),title:Xh(e),titleAttributes:Zh(xh,e)}}),(function(e){ap&&rp(ap),e.defer?ap=np((function(){ip(e,(function(){ap=null}))})):(ip(e),ap=null)}),pp)((function(){return null})));mp.renderStatic=mp.rewind;var gp,vp;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" | ";return e.map((e=>"string"===typeof e?"'".concat(e,"'"):e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(gp||(gp={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(vp||(vp={}));const yp=gp.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bp=e=>{switch(typeof e){case"undefined":return yp.undefined;case"string":return yp.string;case"number":return isNaN(e)?yp.nan:yp.number;case"boolean":return yp.boolean;case"function":return yp.function;case"bigint":return yp.bigint;case"symbol":return yp.symbol;case"object":return Array.isArray(e)?yp.array:null===e?yp.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?yp.promise:"undefined"!==typeof Map&&e instanceof Map?yp.map:"undefined"!==typeof Set&&e instanceof Set?yp.set:"undefined"!==typeof Date&&e instanceof Date?yp.date:yp.object;default:return yp.unknown}},wp=gp.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class xp extends Error{constructor(e){var t;super(),t=this,this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.issues=[...t.issues,...e]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof xp))throw new Error("Not a ZodError: ".concat(e))}toString(){return this.message}get message(){return JSON.stringify(this.issues,gp.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e.message;const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}xp.create=e=>new xp(e);const Sp=(e,t)=>{let n;switch(e.code){case wp.invalid_type:n=e.received===yp.undefined?"Required":"Expected ".concat(e.expected,", received ").concat(e.received);break;case wp.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,gp.jsonStringifyReplacer));break;case wp.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(gp.joinValues(e.keys,", "));break;case wp.invalid_union:n="Invalid input";break;case wp.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(gp.joinValues(e.options));break;case wp.invalid_enum_value:n="Invalid enum value. Expected ".concat(gp.joinValues(e.options),", received '").concat(e.received,"'");break;case wp.invalid_arguments:n="Invalid function arguments";break;case wp.invalid_return_type:n="Invalid function return type";break;case wp.invalid_date:n="Invalid date";break;case wp.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n='Invalid input: must include "'.concat(e.validation.includes,'"'),"number"===typeof e.validation.position&&(n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position))):"startsWith"in e.validation?n='Invalid input: must start with "'.concat(e.validation.startsWith,'"'):"endsWith"in e.validation?n='Invalid input: must end with "'.concat(e.validation.endsWith,'"'):gp.assertNever(e.validation):n="regex"!==e.validation?"Invalid ".concat(e.validation):"Invalid";break;case wp.too_small:n="array"===e.type?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)"):"string"===e.type?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)"):"number"===e.type?"Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum):"date"===e.type?"Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum))):"Invalid input";break;case wp.too_big:n="array"===e.type?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)"):"string"===e.type?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)"):"number"===e.type?"Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):"bigint"===e.type?"BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):"date"===e.type?"Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum))):"Invalid input";break;case wp.custom:n="Invalid input";break;case wp.invalid_intersection_types:n="Intersection results could not be merged";break;case wp.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case wp.not_finite:n="Number must be finite";break;default:n=t.defaultError,gp.assertNever(e)}return{message:n}};let Cp=Sp;function _p(){return Cp}const Ep=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,a=[...n,...o.path||[]],i={...o,path:a};if(void 0!==o.message)return{...o,path:a,message:o.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(i,{data:t,defaultError:s}).message;return{...o,path:a,message:s}};function kp(e,t){const n=_p(),r=Ep({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Sp?void 0:Sp].filter((e=>!!e))});e.common.issues.push(r)}class Pp{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return Ap;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return Pp.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status)return Ap;if("aborted"===o.status)return Ap;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof o.value&&!r.alwaysSet||(n[t.value]=o.value)}return{status:e.value,value:n}}}const Ap=Object.freeze({status:"aborted"}),Op=e=>({status:"dirty",value:e}),Tp=e=>({status:"valid",value:e}),Mp=e=>"aborted"===e.status,Ip=e=>"dirty"===e.status,Rp=e=>"valid"===e.status,Fp=e=>"undefined"!==typeof Promise&&e instanceof Promise;function Np(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function jp(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}var Dp,Lp,Bp;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(Dp||(Dp={}));class zp{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Hp=(e,t)=>{if(Rp(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new xp(e.common.issues);return this._error=t,this._error}}};function Wp(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{var a,i;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:o.defaultError}:"undefined"===typeof o.data?{message:null!==(a=null!==s&&void 0!==s?s:r)&&void 0!==a?a:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(i=null!==s&&void 0!==s?s:n)&&void 0!==i?i:o.defaultError}},description:o}}class Gp{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return bp(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:bp(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Pp,ctx:{common:e.parent.common,data:e.data,parsedType:bp(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Fp(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:bp(e)},o=this._parseSync({data:e,path:r.path,parent:r});return Hp(r,o)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:bp(e)},r=this._parse({data:e,path:n.path,parent:n}),o=await(Fp(r)?r:Promise.resolve(r));return Hp(n,o)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const o=e(t),a=()=>r.addIssue({code:wp.custom,...n(t)});return"undefined"!==typeof Promise&&o instanceof Promise?o.then((e=>!!e||(a(),!1))):!!o||(a(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Lm({schema:this,typeName:Zm.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Bm.create(this,this._def)}nullable(){return zm.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bm.create(this,this._def)}promise(){return Dm.create(this,this._def)}or(e){return Sm.create([this,e],this._def)}and(e){return km.create(this,e,this._def)}transform(e){return new Lm({...Wp(this._def),schema:this,typeName:Zm.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Hm({...Wp(this._def),innerType:this,defaultValue:t,typeName:Zm.ZodDefault})}brand(){return new Um({typeName:Zm.ZodBranded,type:this,...Wp(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Wm({...Wp(this._def),innerType:this,catchValue:t,typeName:Zm.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return qm.create(this,e)}readonly(){return Km.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Vp=/^c[^\s-]{8,}$/i,Up=/^[0-9a-z]+$/,qp=/^[0-9A-HJKMNP-TV-Z]{26}$/,Kp=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Xp=/^[a-z0-9_-]{21}$/i,Yp=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Zp=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let $p;const Qp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Jp=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,em=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tm="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",nm=new RegExp("^".concat(tm,"$"));function rm(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t="".concat(t,"\\.\\d{").concat(e.precision,"}"):null==e.precision&&(t="".concat(t,"(\\.\\d+)?")),t}function om(e){let t="".concat(tm,"T").concat(rm(e));const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t="".concat(t,"(").concat(n.join("|"),")"),new RegExp("^".concat(t,"$"))}function am(e,t){return!("v4"!==t&&t||!Qp.test(e))||!("v6"!==t&&t||!Jp.test(e))}class im extends Gp{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==yp.string){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.string,received:t.parsedType}),Ap}const t=new Pp;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const r=e.data.length>o.value,a=e.data.length<o.value;(r||a)&&(n=this._getOrReturnCtx(e,n),r?kp(n,{code:wp.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&kp(n,{code:wp.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),t.dirty())}else if("email"===o.kind)Zp.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"email",code:wp.invalid_string,message:o.message}),t.dirty());else if("emoji"===o.kind)$p||($p=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),$p.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"emoji",code:wp.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)Kp.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"uuid",code:wp.invalid_string,message:o.message}),t.dirty());else if("nanoid"===o.kind)Xp.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"nanoid",code:wp.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)Vp.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"cuid",code:wp.invalid_string,message:o.message}),t.dirty());else if("cuid2"===o.kind)Up.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"cuid2",code:wp.invalid_string,message:o.message}),t.dirty());else if("ulid"===o.kind)qp.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"ulid",code:wp.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(r){n=this._getOrReturnCtx(e,n),kp(n,{validation:"url",code:wp.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"regex",code:wp.invalid_string,message:o.message}),t.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),t.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty());else if("datetime"===o.kind){om(o).test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.invalid_string,validation:"datetime",message:o.message}),t.dirty())}else if("date"===o.kind){nm.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.invalid_string,validation:"date",message:o.message}),t.dirty())}else if("time"===o.kind){new RegExp("^".concat(rm(o),"$")).test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.invalid_string,validation:"time",message:o.message}),t.dirty())}else"duration"===o.kind?Yp.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"duration",code:wp.invalid_string,message:o.message}),t.dirty()):"ip"===o.kind?am(e.data,o.version)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"ip",code:wp.invalid_string,message:o.message}),t.dirty()):"base64"===o.kind?em.test(e.data)||(n=this._getOrReturnCtx(e,n),kp(n,{validation:"base64",code:wp.invalid_string,message:o.message}),t.dirty()):gp.assertNever(o);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:wp.invalid_string,...Dp.errToObj(n)})}_addCheck(e){return new im({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Dp.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Dp.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Dp.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Dp.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Dp.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Dp.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Dp.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Dp.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Dp.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Dp.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...Dp.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...Dp.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...Dp.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Dp.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...Dp.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Dp.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Dp.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Dp.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Dp.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Dp.errToObj(t)})}nonempty(e){return this.min(1,Dp.errToObj(e))}trim(){return new im({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new im({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new im({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function sm(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}im.create=e=>{var t;return new im({checks:[],typeName:Zm.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...Wp(e)})};class lm extends Gp{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==yp.number){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.number,received:t.parsedType}),Ap}let t;const n=new Pp;for(const r of this._def.checks)if("int"===r.kind)gp.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),kp(t,{code:wp.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),kp(t,{code:wp.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),kp(t,{code:wp.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==sm(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),kp(t,{code:wp.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),kp(t,{code:wp.not_finite,message:r.message}),n.dirty()):gp.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Dp.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Dp.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Dp.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Dp.toString(t))}setLimit(e,t,n,r){return new lm({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Dp.toString(r)}]})}_addCheck(e){return new lm({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Dp.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Dp.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Dp.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Dp.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Dp.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Dp.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Dp.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Dp.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Dp.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&gp.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}lm.create=e=>new lm({checks:[],typeName:Zm.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...Wp(e)});class cm extends Gp{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==yp.bigint){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.bigint,received:t.parsedType}),Ap}let t;const n=new Pp;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),kp(t,{code:wp.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),kp(t,{code:wp.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),kp(t,{code:wp.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):gp.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Dp.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Dp.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Dp.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Dp.toString(t))}setLimit(e,t,n,r){return new cm({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Dp.toString(r)}]})}_addCheck(e){return new cm({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Dp.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Dp.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Dp.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Dp.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Dp.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}cm.create=e=>{var t;return new cm({checks:[],typeName:Zm.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...Wp(e)})};class um extends Gp{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==yp.boolean){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.boolean,received:t.parsedType}),Ap}return Tp(e.data)}}um.create=e=>new um({typeName:Zm.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...Wp(e)});class dm extends Gp{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==yp.date){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.date,received:t.parsedType}),Ap}if(isNaN(e.data.getTime())){return kp(this._getOrReturnCtx(e),{code:wp.invalid_date}),Ap}const t=new Pp;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),kp(n,{code:wp.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):gp.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new dm({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Dp.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Dp.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}dm.create=e=>new dm({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:Zm.ZodDate,...Wp(e)});class fm extends Gp{_parse(e){if(this._getType(e)!==yp.symbol){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.symbol,received:t.parsedType}),Ap}return Tp(e.data)}}fm.create=e=>new fm({typeName:Zm.ZodSymbol,...Wp(e)});class hm extends Gp{_parse(e){if(this._getType(e)!==yp.undefined){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.undefined,received:t.parsedType}),Ap}return Tp(e.data)}}hm.create=e=>new hm({typeName:Zm.ZodUndefined,...Wp(e)});class pm extends Gp{_parse(e){if(this._getType(e)!==yp.null){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.null,received:t.parsedType}),Ap}return Tp(e.data)}}pm.create=e=>new pm({typeName:Zm.ZodNull,...Wp(e)});class mm extends Gp{constructor(){super(...arguments),this._any=!0}_parse(e){return Tp(e.data)}}mm.create=e=>new mm({typeName:Zm.ZodAny,...Wp(e)});class gm extends Gp{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Tp(e.data)}}gm.create=e=>new gm({typeName:Zm.ZodUnknown,...Wp(e)});class vm extends Gp{_parse(e){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.never,received:t.parsedType}),Ap}}vm.create=e=>new vm({typeName:Zm.ZodNever,...Wp(e)});class ym extends Gp{_parse(e){if(this._getType(e)!==yp.undefined){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.void,received:t.parsedType}),Ap}return Tp(e.data)}}ym.create=e=>new ym({typeName:Zm.ZodVoid,...Wp(e)});class bm extends Gp{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==yp.array)return kp(t,{code:wp.invalid_type,expected:yp.array,received:t.parsedType}),Ap;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(kp(t,{code:e?wp.too_big:wp.too_small,minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(kp(t,{code:wp.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(kp(t,{code:wp.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new zp(t,e,t.path,n))))).then((e=>Pp.mergeArray(n,e)));const o=[...t.data].map(((e,n)=>r.type._parseSync(new zp(t,e,t.path,n))));return Pp.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new bm({...this._def,minLength:{value:e,message:Dp.toString(t)}})}max(e,t){return new bm({...this._def,maxLength:{value:e,message:Dp.toString(t)}})}length(e,t){return new bm({...this._def,exactLength:{value:e,message:Dp.toString(t)}})}nonempty(e){return this.min(1,e)}}function wm(e){if(e instanceof xm){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Bm.create(wm(r))}return new xm({...e._def,shape:()=>t})}return e instanceof bm?new bm({...e._def,type:wm(e.element)}):e instanceof Bm?Bm.create(wm(e.unwrap())):e instanceof zm?zm.create(wm(e.unwrap())):e instanceof Pm?Pm.create(e.items.map((e=>wm(e)))):e}bm.create=(e,t)=>new bm({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Zm.ZodArray,...Wp(t)});class xm extends Gp{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=gp.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==yp.object){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.object,received:t.parsedType}),Ap}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof vm&&"strip"===this._def.unknownKeys))for(const s in n.data)o.includes(s)||a.push(s);const i=[];for(const s of o){const e=r[s],t=n.data[s];i.push({key:{status:"valid",value:s},value:e._parse(new zp(n,t,n.path,s)),alwaysSet:s in n.data})}if(this._def.catchall instanceof vm){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)i.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(kp(n,{code:wp.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new zp(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of i){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>Pp.mergeObjectSync(t,e))):Pp.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return Dp.errToObj,new xm({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,a,i;const s=null!==(a=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(i=Dp.errToObj(e).message)&&void 0!==i?i:s}:{message:s}}}:{}})}strip(){return new xm({...this._def,unknownKeys:"strip"})}passthrough(){return new xm({...this._def,unknownKeys:"passthrough"})}extend(e){return new xm({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new xm({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Zm.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new xm({...this._def,catchall:e})}pick(e){const t={};return gp.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new xm({...this._def,shape:()=>t})}omit(e){const t={};return gp.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new xm({...this._def,shape:()=>t})}deepPartial(){return wm(this)}partial(e){const t={};return gp.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new xm({...this._def,shape:()=>t})}required(e){const t={};return gp.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Bm;)e=e._def.innerType;t[n]=e}})),new xm({...this._def,shape:()=>t})}keyof(){return Fm(gp.objectKeys(this.shape))}}xm.create=(e,t)=>new xm({shape:()=>e,unknownKeys:"strip",catchall:vm.create(),typeName:Zm.ZodObject,...Wp(t)}),xm.strictCreate=(e,t)=>new xm({shape:()=>e,unknownKeys:"strict",catchall:vm.create(),typeName:Zm.ZodObject,...Wp(t)}),xm.lazycreate=(e,t)=>new xm({shape:e,unknownKeys:"strip",catchall:vm.create(),typeName:Zm.ZodObject,...Wp(t)});class Sm extends Gp{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new xp(e.ctx.common.issues)));return kp(t,{code:wp.invalid_union,unionErrors:n}),Ap}));{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=r.map((e=>new xp(e)));return kp(t,{code:wp.invalid_union,unionErrors:o}),Ap}}get options(){return this._def.options}}Sm.create=(e,t)=>new Sm({options:e,typeName:Zm.ZodUnion,...Wp(t)});const Cm=e=>e instanceof Im?Cm(e.schema):e instanceof Lm?Cm(e.innerType()):e instanceof Rm?[e.value]:e instanceof Nm?e.options:e instanceof jm?gp.objectValues(e.enum):e instanceof Hm?Cm(e._def.innerType):e instanceof hm?[void 0]:e instanceof pm?[null]:e instanceof Bm?[void 0,...Cm(e.unwrap())]:e instanceof zm?[null,...Cm(e.unwrap())]:e instanceof Um||e instanceof Km?Cm(e.unwrap()):e instanceof Wm?Cm(e._def.innerType):[];class _m extends Gp{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==yp.object)return kp(t,{code:wp.invalid_type,expected:yp.object,received:t.parsedType}),Ap;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(kp(t,{code:wp.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ap)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const o of t){const t=Cm(o.shape[e]);if(!t.length)throw new Error("A discriminator value for key `".concat(e,"` could not be extracted from all schema options"));for(const n of t){if(r.has(n))throw new Error("Discriminator property ".concat(String(e)," has duplicate value ").concat(String(n)));r.set(n,o)}}return new _m({typeName:Zm.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...Wp(n)})}}function Em(e,t){const n=bp(e),r=bp(t);if(e===t)return{valid:!0,data:e};if(n===yp.object&&r===yp.object){const n=gp.objectKeys(t),r=gp.objectKeys(e).filter((e=>-1!==n.indexOf(e))),o={...e,...t};for(const a of r){const n=Em(e[a],t[a]);if(!n.valid)return{valid:!1};o[a]=n.data}return{valid:!0,data:o}}if(n===yp.array&&r===yp.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=Em(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===yp.date&&r===yp.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class km extends Gp{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(Mp(e)||Mp(r))return Ap;const o=Em(e.value,r.value);return o.valid?((Ip(e)||Ip(r))&&t.dirty(),{status:t.value,value:o.data}):(kp(n,{code:wp.invalid_intersection_types}),Ap)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((e=>{let[t,n]=e;return r(t,n)})):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}km.create=(e,t,n)=>new km({left:e,right:t,typeName:Zm.ZodIntersection,...Wp(n)});class Pm extends Gp{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==yp.array)return kp(n,{code:wp.invalid_type,expected:yp.array,received:n.parsedType}),Ap;if(n.data.length<this._def.items.length)return kp(n,{code:wp.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ap;!this._def.rest&&n.data.length>this._def.items.length&&(kp(n,{code:wp.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new zp(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>Pp.mergeArray(t,e))):Pp.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new Pm({...this._def,rest:e})}}Pm.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Pm({items:e,typeName:Zm.ZodTuple,rest:null,...Wp(t)})};class Am extends Gp{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==yp.object)return kp(n,{code:wp.invalid_type,expected:yp.object,received:n.parsedType}),Ap;const r=[],o=this._def.keyType,a=this._def.valueType;for(const i in n.data)r.push({key:o._parse(new zp(n,i,n.path,i)),value:a._parse(new zp(n,n.data[i],n.path,i)),alwaysSet:i in n.data});return n.common.async?Pp.mergeObjectAsync(t,r):Pp.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Am(t instanceof Gp?{keyType:e,valueType:t,typeName:Zm.ZodRecord,...Wp(n)}:{keyType:im.create(),valueType:e,typeName:Zm.ZodRecord,...Wp(t)})}}class Om extends Gp{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==yp.map)return kp(n,{code:wp.invalid_type,expected:yp.map,received:n.parsedType}),Ap;const r=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map(((e,t)=>{let[a,i]=e;return{key:r._parse(new zp(n,a,n.path,[t,"key"])),value:o._parse(new zp(n,i,n.path,[t,"value"]))}}));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return Ap;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return Ap;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}Om.create=(e,t,n)=>new Om({valueType:t,keyType:e,typeName:Zm.ZodMap,...Wp(n)});class Tm extends Gp{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==yp.set)return kp(n,{code:wp.invalid_type,expected:yp.set,received:n.parsedType}),Ap;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(kp(n,{code:wp.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(kp(n,{code:wp.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const o=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return Ap;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const i=[...n.data.values()].map(((e,t)=>o._parse(new zp(n,e,n.path,t))));return n.common.async?Promise.all(i).then((e=>a(e))):a(i)}min(e,t){return new Tm({...this._def,minSize:{value:e,message:Dp.toString(t)}})}max(e,t){return new Tm({...this._def,maxSize:{value:e,message:Dp.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Tm.create=(e,t)=>new Tm({valueType:e,minSize:null,maxSize:null,typeName:Zm.ZodSet,...Wp(t)});class Mm extends Gp{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==yp.function)return kp(t,{code:wp.invalid_type,expected:yp.function,received:t.parsedType}),Ap;function n(e,n){return Ep({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_p(),Sp].filter((e=>!!e)),issueData:{code:wp.invalid_arguments,argumentsError:n}})}function r(e,n){return Ep({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_p(),Sp].filter((e=>!!e)),issueData:{code:wp.invalid_return_type,returnTypeError:n}})}const o={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Dm){const e=this;return Tp((async function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const l=new xp([]),c=await e._def.args.parseAsync(i,o).catch((e=>{throw l.addIssue(n(i,e)),l})),u=await Reflect.apply(a,this,c),d=await e._def.returns._def.type.parseAsync(u,o).catch((e=>{throw l.addIssue(r(u,e)),l}));return d}))}{const e=this;return Tp((function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const l=e._def.args.safeParse(i,o);if(!l.success)throw new xp([n(i,l.error)]);const c=Reflect.apply(a,this,l.data),u=e._def.returns.safeParse(c,o);if(!u.success)throw new xp([r(c,u.error)]);return u.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Mm({...this._def,args:Pm.create(t).rest(gm.create())})}returns(e){return new Mm({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Mm({args:e||Pm.create([]).rest(gm.create()),returns:t||gm.create(),typeName:Zm.ZodFunction,...Wp(n)})}}class Im extends Gp{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Im.create=(e,t)=>new Im({getter:e,typeName:Zm.ZodLazy,...Wp(t)});class Rm extends Gp{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return kp(t,{received:t.data,code:wp.invalid_literal,expected:this._def.value}),Ap}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Fm(e,t){return new Nm({values:e,typeName:Zm.ZodEnum,...Wp(t)})}Rm.create=(e,t)=>new Rm({value:e,typeName:Zm.ZodLiteral,...Wp(t)});class Nm extends Gp{constructor(){super(...arguments),Lp.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return kp(t,{expected:gp.joinValues(n),received:t.parsedType,code:wp.invalid_type}),Ap}if(Np(this,Lp,"f")||jp(this,Lp,new Set(this._def.values),"f"),!Np(this,Lp,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return kp(t,{received:t.data,code:wp.invalid_enum_value,options:n}),Ap}return Tp(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return Nm.create(e,{...this._def,...t})}exclude(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return Nm.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}Lp=new WeakMap,Nm.create=Fm;class jm extends Gp{constructor(){super(...arguments),Bp.set(this,void 0)}_parse(e){const t=gp.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==yp.string&&n.parsedType!==yp.number){const e=gp.objectValues(t);return kp(n,{expected:gp.joinValues(e),received:n.parsedType,code:wp.invalid_type}),Ap}if(Np(this,Bp,"f")||jp(this,Bp,new Set(gp.getValidEnumValues(this._def.values)),"f"),!Np(this,Bp,"f").has(e.data)){const e=gp.objectValues(t);return kp(n,{received:n.data,code:wp.invalid_enum_value,options:e}),Ap}return Tp(e.data)}get enum(){return this._def.values}}Bp=new WeakMap,jm.create=(e,t)=>new jm({values:e,typeName:Zm.ZodNativeEnum,...Wp(t)});class Dm extends Gp{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==yp.promise&&!1===t.common.async)return kp(t,{code:wp.invalid_type,expected:yp.promise,received:t.parsedType}),Ap;const n=t.parsedType===yp.promise?t.data:Promise.resolve(t.data);return Tp(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Dm.create=(e,t)=>new Dm({type:e,typeName:Zm.ZodPromise,...Wp(t)});class Lm extends Gp{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Zm.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,o={addIssue:e=>{kp(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===r.type){const e=r.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return Ap;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?Ap:"dirty"===r.status||"dirty"===t.value?Op(r.value):r}));{if("aborted"===t.value)return Ap;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?Ap:"dirty"===r.status||"dirty"===t.value?Op(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?Ap:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?Ap:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Rp(e))return e;const a=r.transform(e.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>Rp(e)?Promise.resolve(r.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}gp.assertNever(r)}}Lm.create=(e,t,n)=>new Lm({schema:e,typeName:Zm.ZodEffects,effect:t,...Wp(n)}),Lm.createWithPreprocess=(e,t,n)=>new Lm({schema:t,effect:{type:"preprocess",transform:e},typeName:Zm.ZodEffects,...Wp(n)});class Bm extends Gp{_parse(e){return this._getType(e)===yp.undefined?Tp(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Bm.create=(e,t)=>new Bm({innerType:e,typeName:Zm.ZodOptional,...Wp(t)});class zm extends Gp{_parse(e){return this._getType(e)===yp.null?Tp(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}zm.create=(e,t)=>new zm({innerType:e,typeName:Zm.ZodNullable,...Wp(t)});class Hm extends Gp{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===yp.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Hm.create=(e,t)=>new Hm({innerType:e,typeName:Zm.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...Wp(t)});class Wm extends Gp{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Fp(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new xp(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new xp(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Wm.create=(e,t)=>new Wm({innerType:e,typeName:Zm.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...Wp(t)});class Gm extends Gp{_parse(e){if(this._getType(e)!==yp.nan){const t=this._getOrReturnCtx(e);return kp(t,{code:wp.invalid_type,expected:yp.nan,received:t.parsedType}),Ap}return{status:"valid",value:e.data}}}Gm.create=e=>new Gm({typeName:Zm.ZodNaN,...Wp(e)});const Vm=Symbol("zod_brand");class Um extends Gp{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class qm extends Gp{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ap:"dirty"===e.status?(t.dirty(),Op(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?Ap:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new qm({in:e,out:t,typeName:Zm.ZodPipeline})}}class Km extends Gp{_parse(e){const t=this._def.innerType._parse(e),n=e=>(Rp(e)&&(e.value=Object.freeze(e.value)),e);return Fp(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Xm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e?mm.create().superRefine(((r,o)=>{var a,i;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(i=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===i||i,l="string"===typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}})):mm.create()}Km.create=(e,t)=>new Km({innerType:e,typeName:Zm.ZodReadonly,...Wp(t)});const Ym={object:xm.lazycreate};var Zm;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Zm||(Zm={}));const $m=im.create,Qm=lm.create,Jm=Gm.create,eg=cm.create,tg=um.create,ng=dm.create,rg=fm.create,og=hm.create,ag=pm.create,ig=mm.create,sg=gm.create,lg=vm.create,cg=ym.create,ug=bm.create,dg=xm.create,fg=xm.strictCreate,hg=Sm.create,pg=_m.create,mg=km.create,gg=Pm.create,vg=Am.create,yg=Om.create,bg=Tm.create,wg=Mm.create,xg=Im.create,Sg=Rm.create,Cg=Nm.create,_g=jm.create,Eg=Dm.create,kg=Lm.create,Pg=Bm.create,Ag=zm.create,Og=Lm.createWithPreprocess,Tg=qm.create,Mg={string:e=>im.create({...e,coerce:!0}),number:e=>lm.create({...e,coerce:!0}),boolean:e=>um.create({...e,coerce:!0}),bigint:e=>cm.create({...e,coerce:!0}),date:e=>dm.create({...e,coerce:!0})},Ig=Ap;var Rg=Object.freeze({__proto__:null,defaultErrorMap:Sp,setErrorMap:function(e){Cp=e},getErrorMap:_p,makeIssue:Ep,EMPTY_PATH:[],addIssueToContext:kp,ParseStatus:Pp,INVALID:Ap,DIRTY:Op,OK:Tp,isAborted:Mp,isDirty:Ip,isValid:Rp,isAsync:Fp,get util(){return gp},get objectUtil(){return vp},ZodParsedType:yp,getParsedType:bp,ZodType:Gp,datetimeRegex:om,ZodString:im,ZodNumber:lm,ZodBigInt:cm,ZodBoolean:um,ZodDate:dm,ZodSymbol:fm,ZodUndefined:hm,ZodNull:pm,ZodAny:mm,ZodUnknown:gm,ZodNever:vm,ZodVoid:ym,ZodArray:bm,ZodObject:xm,ZodUnion:Sm,ZodDiscriminatedUnion:_m,ZodIntersection:km,ZodTuple:Pm,ZodRecord:Am,ZodMap:Om,ZodSet:Tm,ZodFunction:Mm,ZodLazy:Im,ZodLiteral:Rm,ZodEnum:Nm,ZodNativeEnum:jm,ZodPromise:Dm,ZodEffects:Lm,ZodTransformer:Lm,ZodOptional:Bm,ZodNullable:zm,ZodDefault:Hm,ZodCatch:Wm,ZodNaN:Gm,BRAND:Vm,ZodBranded:Um,ZodPipeline:qm,ZodReadonly:Km,custom:Xm,Schema:Gp,ZodSchema:Gp,late:Ym,get ZodFirstPartyTypeKind(){return Zm},coerce:Mg,any:ig,array:ug,bigint:eg,boolean:tg,date:ng,discriminatedUnion:pg,effect:kg,enum:Cg,function:wg,instanceof:function(e){return Xm((t=>t instanceof e),arguments.length>1&&void 0!==arguments[1]?arguments[1]:{message:"Input not instance of ".concat(e.name)})},intersection:mg,lazy:xg,literal:Sg,map:yg,nan:Jm,nativeEnum:_g,never:lg,null:ag,nullable:Ag,number:Qm,object:dg,oboolean:()=>tg().optional(),onumber:()=>Qm().optional(),optional:Pg,ostring:()=>$m().optional(),pipeline:Tg,preprocess:Og,promise:Eg,record:vg,set:bg,strictObject:fg,string:$m,symbol:rg,transformer:kg,tuple:gg,undefined:og,union:hg,unknown:sg,void:cg,NEVER:Ig,ZodIssueCode:wp,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:xp});function Fg(e){if("undefined"===typeof Proxy)return e;const t=new Map;return new Proxy((function(){return e(...arguments)}),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function Ng(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const jg=e=>Array.isArray(e);function Dg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Lg(e){return"string"===typeof e||Array.isArray(e)}function Bg(e){const t=[{},{}];return null===e||void 0===e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function zg(e,t,n,r){if("function"===typeof t){const[o,a]=Bg(r);t=t(void 0!==n?n:e.custom,o,a)}if("string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t){const[o,a]=Bg(r);t=t(void 0!==n?n:e.custom,o,a)}return t}function Hg(e,t,n){const r=e.getProps();return zg(r,t,void 0!==n?n:r.custom,e)}const Wg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gg=["initial",...Wg],Vg=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ug=new Set(Vg),qg=e=>1e3*e,Kg=e=>e/1e3,Xg={type:"spring",stiffness:500,damping:25,restSpeed:10},Yg={type:"keyframes",duration:.8},Zg={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$g=(e,t)=>{let{keyframes:n}=t;return n.length>2?Yg:Ug.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:Xg:Zg};function Qg(e,t){return e[t]||e.default||e}const Jg=!1,ev=!1,tv=!1,nv=e=>null!==e;function rv(e,t,n){let{repeat:r,repeatType:o="loop"}=t;const a=e.filter(nv),i=r&&"loop"!==o&&r%2===1?0:a.length-1;return i&&void 0!==n?n:a[i]}const ov=e=>e;const av=["read","resolveKeyframes","update","preRender","render","postRender"];function iv(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,i=av.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const a=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(l.schedule(t),e()),t(i)}const l={schedule:function(e){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&r?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{i=e,r?o=!0:(r=!0,[t,n]=[n,t],n.clear(),t.forEach(s),r=!1,o&&(o=!1,l.process(e)))}};return l}(a),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=i,h=()=>{const a=ev?o.timestamp:performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(a-o.timestamp,40),1),o.timestamp=a,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},p=av.reduce(((t,a)=>{const s=i[a];return t[a]=function(t){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,o.isProcessing||e(h)),s.schedule(t,a,i)},t}),{});return{schedule:p,cancel:e=>{for(let t=0;t<av.length;t++)i[av[t]].cancel(e)},state:o,steps:i}}const{schedule:sv,cancel:lv,state:cv,steps:uv}=iv("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:ov,!0),dv=e=>/^0[^.\s]+$/u.test(e);let fv=ov,hv=ov;const pv=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mv=e=>t=>"string"===typeof t&&t.startsWith(e),gv=mv("--"),vv=mv("var(--"),yv=e=>!!vv(e)&&bv.test(e.split("/*")[0].trim()),bv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;hv(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));const[r,o]=function(e){const t=wv.exec(e);if(!t)return[,];const[,n,r,o]=t;return["--".concat(null!==n&&void 0!==n?n:r),o]}(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const e=a.trim();return pv(e)?parseFloat(e):e}return yv(o)?xv(o,t,n+1):o}const Sv=(e,t,n)=>n>t?t:n<e?e:n,Cv={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},_v={...Cv,transform:e=>Sv(0,1,e)},Ev={...Cv,default:1},kv=e=>Math.round(1e5*e)/1e5,Pv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Av=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Ov=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Tv(e){return"string"===typeof e}const Mv=e=>({test:t=>Tv(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),Iv=Mv("deg"),Rv=Mv("%"),Fv=Mv("px"),Nv=Mv("vh"),jv=Mv("vw"),Dv={...Rv,parse:e=>Rv.parse(e)/100,transform:e=>Rv.transform(100*e)},Lv=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Bv=e=>e===Cv||e===Fv,zv=(e,t)=>parseFloat(e.split(", ")[t]),Hv=(e,t)=>(n,r)=>{let{transform:o}=r;if("none"===o||!o)return 0;const a=o.match(/^matrix3d\((.+)\)$/u);if(a)return zv(a[1],t);{const t=o.match(/^matrix\((.+)\)$/u);return t?zv(t[1],e):0}},Wv=new Set(["x","y","z"]),Gv=Vg.filter((e=>!Wv.has(e)));const Vv={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:o="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(o)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:o="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(o)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:Hv(4,13),y:Hv(5,14)};Vv.translateX=Vv.x,Vv.translateY=Vv.y;const Uv=e=>t=>t.test(e),qv=[Cv,Fv,Rv,Iv,jv,Nv,{test:e=>"auto"===e,parse:e=>e}],Kv=e=>qv.find(Uv(e)),Xv=new Set;let Yv=!1,Zv=!1;function $v(){if(Zv){const e=Array.from(Xv).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Gv.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((t=>{let[n,r]=t;var o;null===(o=e.getValue(n))||void 0===o||o.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Zv=!1,Yv=!1,Xv.forEach((e=>e.complete())),Xv.clear()}function Qv(){Xv.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Zv=!0)}))}class Jv{constructor(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xv.add(this),Yv||(Yv=!0,sv.read(Qv),sv.resolveKeyframes($v))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null===r||void 0===r?void 0:r.get(),a=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,a);void 0!==r&&null!==r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xv.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xv.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ey=(e,t)=>n=>Boolean(Tv(n)&&Ov.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),ty=(e,t,n)=>r=>{if(!Tv(r))return r;const[o,a,i,s]=r.match(Pv);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},ny={...Cv,transform:e=>Math.round((e=>Sv(0,255,e))(e))},ry={test:ey("rgb","red"),parse:ty("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:o=1}=e;return"rgba("+ny.transform(t)+", "+ny.transform(n)+", "+ny.transform(r)+", "+kv(_v.transform(o))+")"}};const oy={test:ey("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:ry.transform},ay={test:ey("hsl","hue"),parse:ty("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:o=1}=e;return"hsla("+Math.round(t)+", "+Rv.transform(kv(n))+", "+Rv.transform(kv(r))+", "+kv(_v.transform(o))+")"}},iy={test:e=>ry.test(e)||oy.test(e)||ay.test(e),parse:e=>ry.test(e)?ry.parse(e):ay.test(e)?ay.parse(e):oy.parse(e),transform:e=>Tv(e)?e:e.hasOwnProperty("red")?ry.transform(e):ay.transform(e)};const sy="number",ly="color",cy="var",uy="var(",dy="${}",fy=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function hy(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let a=0;const i=t.replace(fy,(e=>(iy.test(e)?(r.color.push(a),o.push(ly),n.push(iy.parse(e))):e.startsWith(uy)?(r.var.push(a),o.push(cy),n.push(e)):(r.number.push(a),o.push(sy),n.push(parseFloat(e))),++a,dy))).split(dy);return{values:n,split:i,indexes:r,types:o}}function py(e){return hy(e).values}function my(e){const{split:t,types:n}=hy(e),r=t.length;return e=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],void 0!==e[a]){const t=n[a];o+=t===sy?kv(e[a]):t===ly?iy.transform(e[a]):e[a]}return o}}const gy=e=>"number"===typeof e?0:e;const vy={test:function(e){var t,n;return isNaN(e)&&Tv(e)&&((null===(t=e.match(Pv))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Av))||void 0===n?void 0:n.length)||0)>0},parse:py,createTransformer:my,getAnimatableNone:function(e){const t=py(e);return my(e)(t.map(gy))}},yy=new Set(["brightness","contrast","saturate","opacity"]);function by(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Pv)||[];if(!r)return e;const o=n.replace(r,"");let a=yy.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const wy=/\b([a-z-]*)\(.*?\)/gu,xy={...vy,getAnimatableNone:e=>{const t=e.match(wy);return t?t.map(by).join(" "):e}},Sy={...Cv,transform:Math.round},Cy={borderWidth:Fv,borderTopWidth:Fv,borderRightWidth:Fv,borderBottomWidth:Fv,borderLeftWidth:Fv,borderRadius:Fv,radius:Fv,borderTopLeftRadius:Fv,borderTopRightRadius:Fv,borderBottomRightRadius:Fv,borderBottomLeftRadius:Fv,width:Fv,maxWidth:Fv,height:Fv,maxHeight:Fv,size:Fv,top:Fv,right:Fv,bottom:Fv,left:Fv,padding:Fv,paddingTop:Fv,paddingRight:Fv,paddingBottom:Fv,paddingLeft:Fv,margin:Fv,marginTop:Fv,marginRight:Fv,marginBottom:Fv,marginLeft:Fv,rotate:Iv,rotateX:Iv,rotateY:Iv,rotateZ:Iv,scale:Ev,scaleX:Ev,scaleY:Ev,scaleZ:Ev,skew:Iv,skewX:Iv,skewY:Iv,distance:Fv,translateX:Fv,translateY:Fv,translateZ:Fv,x:Fv,y:Fv,z:Fv,perspective:Fv,transformPerspective:Fv,opacity:_v,originX:Dv,originY:Dv,originZ:Fv,zIndex:Sy,backgroundPositionX:Fv,backgroundPositionY:Fv,fillOpacity:_v,strokeOpacity:_v,numOctaves:Sy},_y={...Cy,color:iy,backgroundColor:iy,outlineColor:iy,fill:iy,stroke:iy,borderColor:iy,borderTopColor:iy,borderRightColor:iy,borderBottomColor:iy,borderLeftColor:iy,filter:xy,WebkitFilter:xy},Ey=e=>_y[e];function ky(e,t){let n=Ey(e);return n!==xy&&(n=vy),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Py=new Set(["auto","none","0"]);class Ay extends Jv{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let n=e[s];if("string"===typeof n&&(n=n.trim(),yv(n))){const r=xv(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Lv.has(n)||2!==e.length)return;const[r,o]=e,a=Kv(r),i=Kv(o);if(a!==i)if(Bv(a)&&Bv(i))for(let s=0;s<e.length;s++){const t=e[s];"string"===typeof t&&(e[s]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let o=0;o<e.length;o++)("number"===typeof(r=e[o])?0===r:null===r||"none"===r||"0"===r||dv(r))&&n.push(o);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"===typeof t&&!Py.has(t)&&hy(t).values.length&&(r=e[o]),o++}if(r&&n)for(const a of t)e[a]=ky(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Vv[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const a=r.length-1,i=r[a];r[a]=Vv[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((e=>{let[n,r]=e;t.getValue(n).set(r)})),this.resolveNoneKeyframes()}}function Oy(e){let t;return()=>(void 0===t&&(t=e()),t)}let Ty;function My(){Ty=void 0}const Iy={now:()=>(void 0===Ty&&Iy.set(cv.isProcessing||ev?cv.timestamp:performance.now()),Ty),set:e=>{Ty=e,queueMicrotask(My)}},Ry=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!vy.test(e)&&"0"!==e||e.startsWith("url(")));class Fy{constructor(e){let{autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:i="loop",...s}=e;this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Iy.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:a,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Qv(),$v()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Iy.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:a,onComplete:i,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],i=Ry(o,t),s=Ry(a,t);return fv(i===s,"You are trying to animate ".concat(t,' from "').concat(o,'" to "').concat(a,'". ').concat(o," is not an animatable value - to enable this animation set ").concat(o," to a value animatable to ").concat(a," via the `style` property.")),!(!i||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,o)){if(tv||!a)return null===s||void 0===s||s(rv(e,this.options,t)),null===i||void 0===i||i(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function Ny(e,t){return t?e*(1e3/t):0}const jy=5;function Dy(e,t,n){const r=Math.max(t-jy,0);return Ny(n-e(r),t-r)}const Ly=.001,By=.01,zy=10,Hy=.05,Wy=1;function Gy(e){let t,n,{duration:r=800,bounce:o=.25,velocity:a=0,mass:i=1}=e;fv(r<=qg(zy),"Spring duration must be 10 seconds or less");let s=1-o;s=Sv(Hy,Wy,s),r=Sv(By,zy,Kg(r)),s<1?(t=e=>{const t=e*s,n=t*r,o=t-a,i=Uy(e,s),l=Math.exp(-n);return Ly-o/i*l},n=e=>{const n=e*s*r,o=n*a+a,i=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),c=Uy(Math.pow(e,2),s);return(-t(e)+Ly>0?-1:1)*((o-i)*l)/c}):(t=e=>Math.exp(-e*r)*((e-a)*r+1)-Ly,n=e=>Math.exp(-e*r)*(r*r*(a-e)));const l=function(e,t,n){let r=n;for(let o=1;o<Vy;o++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=qg(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{const e=Math.pow(l,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:r}}}const Vy=12;function Uy(e,t){return e*Math.sqrt(1-t*t)}const qy=["duration","bounce"],Ky=["stiffness","damping","mass"];function Xy(e,t){return t.some((t=>void 0!==e[t]))}function Yy(e){let{keyframes:t,restDelta:n,restSpeed:r,...o}=e;const a=t[0],i=t[t.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Xy(e,Ky)&&Xy(e,qy)){const n=Gy(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...o,velocity:-Kg(o.velocity||0)}),p=f||0,m=c/(2*Math.sqrt(l*u)),g=i-a,v=Kg(Math.sqrt(l/u)),y=Math.abs(g)<5;let b;if(r||(r=y?.01:2),n||(n=y?.005:.5),m<1){const e=Uy(v,m);b=t=>{const n=Math.exp(-m*v*t);return i-n*((p+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>i-Math.exp(-v*e)*(g+(p+v*g)*e);else{const e=v*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*v*t),r=Math.min(e*t,300);return i-n*((p+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}return{calculatedDuration:h&&d||null,next:e=>{const t=b(e);if(h)s.done=e>=d;else{let o=0;m<1&&(o=0===e?qg(p):Dy(b,e,t));const a=Math.abs(o)<=r,l=Math.abs(i-t)<=n;s.done=a&&l}return s.value=s.done?i:t,s}}}function Zy(e){let{keyframes:t,velocity:n=0,power:r=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:c,restDelta:u=.5,restSpeed:d}=e;const f=t[0],h={done:!1,value:f},p=e=>void 0===l?c:void 0===c||Math.abs(l-e)<Math.abs(c-e)?l:c;let m=r*n;const g=f+m,v=void 0===s?g:s(g);v!==g&&(m=v-f);const y=e=>-m*Math.exp(-e/o),b=e=>v+y(e),w=e=>{const t=y(e),n=b(e);h.done=Math.abs(t)<=u,h.value=h.done?v:n};let x,S;const C=e=>{var t;(t=h.value,void 0!==l&&t<l||void 0!==c&&t>c)&&(x=e,S=Yy({keyframes:[h.value,p(h.value)],velocity:Dy(b,e,h.value),damping:a,stiffness:i,restDelta:u,restSpeed:d}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return S||void 0!==x||(t=!0,w(e),C(e)),void 0!==x&&e>=x?S.next(e-x):(!t&&w(e),h)}}}const $y=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qy=1e-7,Jy=12;function eb(e,t,n,r){if(e===t&&n===r)return ov;const o=t=>function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=$y(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>Qy&&++s<Jy);return i}(t,0,1,e,n);return e=>0===e||1===e?e:$y(o(e),t,r)}const tb=eb(.42,0,1,1),nb=eb(0,0,.58,1),rb=eb(.42,0,.58,1),ob=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ab=e=>t=>1-e(1-t),ib=e=>1-Math.sin(Math.acos(e)),sb=ab(ib),lb=ob(ib),cb=eb(.33,1.53,.69,.99),ub=ab(cb),db=ob(ub),fb={linear:ov,easeIn:tb,easeInOut:rb,easeOut:nb,circIn:ib,circInOut:lb,circOut:sb,backIn:ub,backInOut:db,backOut:cb,anticipate:e=>(e*=2)<1?.5*ub(e):.5*(2-Math.pow(2,-10*(e-1)))},hb=e=>{if(Array.isArray(e)){hv(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return eb(t,n,r,o)}return"string"===typeof e?(hv(void 0!==fb[e],"Invalid easing type '".concat(e,"'")),fb[e]):e},pb=(e,t)=>n=>t(e(n)),mb=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(pb)},gb=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},vb=(e,t,n)=>e+(t-e)*n;function yb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bb(e,t){return n=>n>0?t:e}const wb=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},xb=[oy,ry,ay];function Sb(e){const t=(n=e,xb.find((e=>e.test(n))));var n;if(fv(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")),!Boolean(t))return!1;let r=t.parse(e);return t===ay&&(r=function(e){let{hue:t,saturation:n,lightness:r,alpha:o}=e;t/=360,n/=100,r/=100;let a=0,i=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,o=2*r-e;a=yb(o,e,t+1/3),i=yb(o,e,t),s=yb(o,e,t-1/3)}else a=i=s=r;return{red:Math.round(255*a),green:Math.round(255*i),blue:Math.round(255*s),alpha:o}}(r)),r}const Cb=(e,t)=>{const n=Sb(e),r=Sb(t);if(!n||!r)return bb(e,t);const o={...n};return e=>(o.red=wb(n.red,r.red,e),o.green=wb(n.green,r.green,e),o.blue=wb(n.blue,r.blue,e),o.alpha=vb(n.alpha,r.alpha,e),ry.transform(o))},_b=new Set(["none","hidden"]);function Eb(e,t){return n=>vb(e,t,n)}function kb(e){return"number"===typeof e?Eb:"string"===typeof e?yv(e)?bb:iy.test(e)?Cb:Ob:Array.isArray(e)?Pb:"object"===typeof e?iy.test(e)?Cb:Ab:bb}function Pb(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>kb(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Ab(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=kb(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Ob=(e,t)=>{const n=vy.createTransformer(t),r=hy(e),o=hy(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?_b.has(e)&&!o.values.length||_b.has(t)&&!r.values.length?function(e,t){return _b.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):mb(Pb(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const i=t.types[a],s=e.indexes[i][o[i]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[a]=l,o[i]++}return r}(r,o),o.values),n):(fv(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),bb(e,t))};function Tb(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return vb(e,t,n);return kb(e)(e,t)}function Mb(e,t){let{clamp:n=!0,ease:r,mixer:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=e.length;if(hv(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=function(e,t,n){const r=[],o=n||Tb,a=e.length-1;for(let i=0;i<a;i++){let n=o(e[i],e[i+1]);if(t){const e=Array.isArray(t)?t[i]||ov:t;n=mb(e,n)}r.push(n)}return r}(t,r,o),s=i.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=gb(e[n],e[n+1],t);return i[n](r)};return n?t=>l(Sv(e[0],e[a-1],t)):l}function Ib(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=gb(0,t,r);e.push(vb(n,1,o))}}(t,e.length-1),t}function Rb(e){let{duration:t=300,keyframes:n,times:r,ease:o="easeInOut"}=e;const a=(e=>Array.isArray(e)&&"number"!==typeof e[0])(o)?o.map(hb):hb(o),i={done:!1,value:n[0]},s=function(e,t){return e.map((e=>e*t))}(r&&r.length===n.length?r:Ib(n),t),l=Mb(s,n,{ease:Array.isArray(a)?a:(c=n,u=a,c.map((()=>u||rb)).splice(0,c.length-1))});var c,u;return{calculatedDuration:t,next:e=>(i.value=l(e),i.done=e>=t,i)}}const Fb=e=>{const t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>sv.update(t,!0),stop:()=>lv(t),now:()=>cv.isProcessing?cv.timestamp:Iy.now()}},Nb={decay:Zy,inertia:Zy,tween:Rb,keyframes:Rb,spring:Yy},jb=e=>e/100;class Db extends Fy{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,a=(null===r||void 0===r?void 0:r.KeyframeResolver)||Jv;this.resolver=new a(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,i=Nb[t]||Rb;let s,l;i!==Rb&&"number"!==typeof e[0]&&(s=mb(jb,Tb(e[0],e[1])),e=[0,100]);const c=i({...this.options,keyframes:e});"mirror"===o&&(l=i({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:a,mapPercentToKeyframes:i,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,b=o;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1);Boolean(t%2)&&("reverse"===h?(n=1-n,p&&(n-=p/u)):"mirror"===h&&(b=a)),y=Sv(0,1,n)*u}const w=v?{done:!1,value:s[0]}:b.next(y);i&&(w.value=i(w.value));let{done:x}=w;v||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&void 0!==r&&(w.value=rv(s,this.options,r)),m&&m(w.value),S&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Kg(e.calculatedDuration):0}get time(){return Kg(this.currentTime)}set time(e){e=qg(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Kg(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Fb,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!==n&&void 0!==n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Lb=new Set(["opacity","clipPath","filter","transform"]),Bb=e=>Array.isArray(e)&&"number"===typeof e[0];function zb(e){return Boolean(!e||"string"===typeof e&&e in Wb||Bb(e)||Array.isArray(e)&&e.every(zb))}const Hb=e=>{let[t,n,r,o]=e;return"cubic-bezier(".concat(t,", ").concat(n,", ").concat(r,", ").concat(o,")")},Wb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hb([0,.65,.55,1]),circOut:Hb([.55,0,1,.45]),backIn:Hb([.31,.01,.66,-.59]),backOut:Hb([.33,1.53,.69,.99])};function Gb(e){return Vb(e)||Wb.easeOut}function Vb(e){return e?Bb(e)?Hb(e):Array.isArray(e)?e.map(Gb):Wb[e]:void 0}const Ub=Oy((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class qb extends Fy{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Ay(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:o,ease:a,type:i,motionValue:s,name:l,startTime:c}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||!zb(u.ease)){const{onComplete:t,onUpdate:n,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new Db({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let a=0;for(;!r.done&&a<2e4;)r=n.sample(a),o.push(r.value),a+=10;return{times:void 0,keyframes:o,duration:a-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),r=u.duration,o=u.times,a=u.ease,i="keyframes"}var u;const d=function(e,t,n){let{delay:r=0,duration:o=300,repeat:a=0,repeatType:i="loop",ease:s,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c={[t]:n};l&&(c.offset=l);const u=Vb(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:"reverse"===i?"alternate":"normal"})}(s.owner.current,l,e,{...this.options,duration:r,times:o,ease:a});return d.startTime=null!==c&&void 0!==c?c:this.calcStartTime(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:n}=this.options;s.set(rv(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:i,ease:a,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Kg(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Kg(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=qg(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return ov;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return ov}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:a,times:i}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new Db({...c,keyframes:n,duration:r,type:o,ease:a,times:i,isGenerator:!0}),d=qg(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:a,type:i}=e;return Ub()&&n&&Lb.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==a&&"inertia"!==i}}const Kb=Oy((()=>void 0!==window.ScrollTimeline));class Xb{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!Kb()||!t.attachTimeline)return t.pause(),function(e,t){let n;const r=()=>{const{currentTime:r}=t,o=(null===r?0:r.value)/100;n!==o&&e(o),n=o};return sv.update(r,!0),()=>lv(r)}((e=>{t.time=t.duration*e}),e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Yb=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;return s=>{const l=Qg(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u-=qg(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete(),i&&i()},onStop:i,name:e,motionValue:t,element:a?void 0:o};(function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:o,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:l,from:c,elapsed:u,...d}=e;return!!Object.keys(d).length})(l)||(d={...d,...$g(e,d)}),d.duration&&(d.duration=qg(d.duration)),d.repeatDelay&&(d.repeatDelay=qg(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(f=!0)),(tv||Jg)&&(f=!0,d.duration=0,d.delay=0),f&&!a&&void 0!==t.get()){const e=rv(d.keyframes,l);if(void 0!==e)return sv.update((()=>{d.onUpdate(e),d.onComplete()})),new Xb([])}return!a&&qb.supports(d)?new qb(d):new Db(d)}},Zb=e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue),$b=e=>jg(e)?e[e.length-1]||0:e;function Qb(e,t){-1===e.indexOf(t)&&e.push(t)}function Jb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ew{constructor(){this.subscriptions=[]}add(e){return Qb(this.subscriptions,e),()=>Jb(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const tw={current:void 0};class nw{constructor(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="11.5.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=Iy.now();t.updatedAt!==r&&t.setPrevFrameValue(),t.prev=t.current,t.setCurrent(e),t.current!==t.prev&&t.events.change&&t.events.change.notify(t.current),n&&t.events.renderRequest&&t.events.renderRequest.notify(t.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Iy.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ew);const n=this.events[e].add(t);return"change"===e?()=>{n(),sv.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return tw.current&&tw.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Iy.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ny(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rw(e,t){return new nw(e,t)}function ow(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rw(n))}const aw=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),iw="data-"+aw("framerAppearId");function sw(e){return e.props[iw]}function lw(e){return Ug.has(e)?"transform":Lb.has(e)?aw(e):void 0}class cw extends nw{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=lw(e);if(!t)return;const n=this.counts.get(t)||0;this.counts.set(t,n+1),0===n&&(this.output.push(t),this.update());let r=!1;return()=>{if(r)return;r=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&(Jb(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}const uw=e=>Boolean(e&&e.getVelocity);function dw(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");return r||(null===(n=e.props.style)||void 0===n?void 0:n.willChange)||(r=new cw("auto"),e.addValue("willChange",r)),o=r,Boolean(uw(o)&&o.add)?r.add(t):void 0;var o}function fw(e,t){let{protectedKeys:n,needsAnimating:r}=e;const o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}function hw(e,t){let{delay:n=0,transitionOverride:r,type:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a;let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const t=e.getValue(d,null!==(a=e.latestValues[d])&&void 0!==a?a:null),r=l[d];if(void 0===r||u&&fw(u,d))continue;const o={delay:n,...Qg(i||{},d)};let s=!1;if(window.MotionHandoffAnimation){const t=sw(e);if(t){const e=window.MotionHandoffAnimation(t,d,sv);null!==e&&(o.startTime=e,s=!0)}}t.start(Yb(d,t,r,e.shouldReduceMotion&&Ug.has(d)?{type:!1}:o,e,s,dw(e,d)));const f=t.animation;f&&c.push(f)}return s&&Promise.all(c).then((()=>{sv.update((()=>{s&&function(e,t){const n=Hg(e,t);let{transitionEnd:r={},transition:o={},...a}=n||{};a={...a,...r};for(const i in a)ow(e,i,$b(a[i]))}(e,s)}))})),c}function pw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r;const o=Hg(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>Promise.all(hw(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:o=0,staggerChildren:i,staggerDirection:s}=a;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5?arguments[5]:void 0;const i=[],s=(e.variantChildren.size-1)*r,l=1===o?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return s-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(e.variantChildren).sort(mw).forEach(((e,r)=>{e.notify("AnimationStart",t),i.push(pw(e,t,{...a,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(i)}(e,t,o+r,i,s,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[e,t]="beforeChildren"===l?[i,s]:[s,i];return e().then((()=>t()))}return Promise.all([i(),s(n.delay)])}function mw(e,t){return e.sortNodePosition(t)}const gw=[...Wg].reverse(),vw=Wg.length;function yw(e){return t=>Promise.all(t.map((t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>pw(e,t,r)));n=Promise.all(o)}else if("string"===typeof t)n=pw(e,t,r);else{const o="function"===typeof t?Hg(e,t,r.custom):t;n=Promise.all(hw(e,o,r))}return n.then((()=>{e.notify("AnimationComplete",t)}))}(e,n,r)})))}function bw(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Dg(t,e)}function ww(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xw(){return{animate:ww(!0),whileInView:ww(),whileHover:ww(),whileTap:ww(),whileDrag:ww(),whileFocus:ww(),exit:ww()}}class Sw{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Cw=0;const _w={animation:{Feature:class extends Sw{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=yw(e),n=xw(),r=!0;const o=t=>(n,r)=>{var o;const a=Hg(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(a){const{transition:e,transitionEnd:t,...r}=a;n={...n,...r,...t}}return n};function a(a){const i=e.getProps(),s=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<vw;t++){const f=gw[t],h=n[f],p=void 0!==i[f]?i[f]:s[f],m=Lg(p),g=f===a?h.isActive:null;!1===g&&(d=t);let v=p===s[f]&&p!==i[f]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...u},!h.isActive&&null===g||!p&&!h.prevProp||Ng(p)||"boolean"===typeof p)continue;let y=bw(h.prevProp,p)||f===a&&h.isActive&&!v&&m||t>d&&m,b=!1;const w=Array.isArray(p)?p:[p];let x=w.reduce(o(f),{});!1===g&&(x={});const{prevResolvedValues:S={}}=h,C={...S,...x},_=t=>{y=!0,c.has(t)&&(b=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=x[e],n=S[e];if(u.hasOwnProperty(e))continue;let r=!1;r=jg(t)&&jg(n)?!Dg(t,n):t!==n,r?void 0!==t&&null!==t?_(e):c.add(e):void 0!==t&&c.has(e)?_(e):h.protectedKeys[e]=!0}h.prevProp=p,h.prevResolvedValues=x,h.isActive&&(u={...u,...x}),r&&e.blockInitialAnimation&&(y=!1),!y||v&&!b||l.push(...w.map((e=>({animation:e,options:{type:f}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!==r&&void 0!==r?r:null})),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==i.initial&&i.initial!==i.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const i=a(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=xw(),r=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ng(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Sw{constructor(){super(...arguments),this.id=Cw++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ew=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function kw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e["".concat(t,"X")],y:e["".concat(t,"Y")]}}}const Pw=e=>t=>Ew(t)&&e(t,kw(t));function Aw(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ow(e,t,n,r){return Aw(e,t,Pw(n),r)}const Tw=(e,t)=>Math.abs(e-t);class Mw{constructor(e,t){let{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Fw(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Tw(e.x,t.x),r=Tw(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=cv;this.history.push({...r,timestamp:o});const{onStart:a,onMove:i}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),i&&i(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Iw(t,this.transformPagePoint),sv.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=Fw("pointercancel"===e.type?this.lastMoveEventInfo:Iw(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Ew(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const a=Iw(kw(e),this.transformPagePoint),{point:i}=a,{timestamp:s}=cv;this.history=[{...i,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Fw(a,this.history)),this.removeListeners=mb(Ow(this.contextWindow,"pointermove",this.handlePointerMove),Ow(this.contextWindow,"pointerup",this.handlePointerUp),Ow(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),lv(this.updatePoint)}}function Iw(e,t){return t?{point:t(e.point)}:e}function Rw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fw(e,t){let{point:n}=e;return{point:n,delta:Rw(n,jw(t)),offset:Rw(n,Nw(t)),velocity:Dw(t,.1)}}function Nw(e){return e[0]}function jw(e){return e[e.length-1]}function Dw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jw(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qg(t)));)n--;if(!r)return{x:0,y:0};const a=Kg(o.timestamp-r.timestamp);if(0===a)return{x:0,y:0};const i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Lw(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Bw=Lw("dragHorizontal"),zw=Lw("dragVertical");function Hw(e){let t=!1;if("y"===e)t=zw();else if("x"===e)t=Bw();else{const e=Bw(),n=zw();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Ww(){const e=Hw(!0);return!e||(e(),!1)}function Gw(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const Vw=.9999,Uw=1.0001,qw=-.01,Kw=.01;function Xw(e){return e.max-e.min}function Yw(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=vb(t.min,t.max,e.origin),e.scale=Xw(n)/Xw(t),e.translate=vb(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Vw&&e.scale<=Uw||isNaN(e.scale))&&(e.scale=1),(e.translate>=qw&&e.translate<=Kw||isNaN(e.translate))&&(e.translate=0)}function Zw(e,t,n,r){Yw(e.x,t.x,n.x,r?r.originX:void 0),Yw(e.y,t.y,n.y,r?r.originY:void 0)}function $w(e,t,n){e.min=n.min+t.min,e.max=e.min+Xw(t)}function Qw(e,t,n){e.min=t.min-n.min,e.max=e.min+Xw(t)}function Jw(e,t,n){Qw(e.x,t.x,n.x),Qw(e.y,t.y,n.y)}function ex(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function tx(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const nx=.35;function rx(e,t,n){return{min:ox(e,t),max:ox(e,n)}}function ox(e,t){return"number"===typeof e?e:e[t]||0}const ax=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),ix=()=>({x:{min:0,max:0},y:{min:0,max:0}});function sx(e){return[e("x"),e("y")]}function lx(e){let{top:t,left:n,right:r,bottom:o}=e;return{x:{min:n,max:r},y:{min:t,max:o}}}function cx(e){return void 0===e||1===e}function ux(e){let{scale:t,scaleX:n,scaleY:r}=e;return!cx(t)||!cx(n)||!cx(r)}function dx(e){return ux(e)||fx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fx(e){return hx(e.x)||hx(e.y)}function hx(e){return e&&"0%"!==e}function px(e,t,n){return n+t*(e-n)}function mx(e,t,n,r,o){return void 0!==o&&(e=px(e,o,r)),px(e,n,r)+t}function gx(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;e.min=mx(e.min,t,n,r,o),e.max=mx(e.max,t,n,r,o)}function vx(e,t){let{x:n,y:r}=t;gx(e.x,n.translate,n.scale,n.originPoint),gx(e.y,r.translate,r.scale,r.originPoint)}const yx=.999999999999,bx=1.0000000000001;function wx(e,t){e.min=e.min+t,e.max=e.max+t}function xx(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;gx(e,t,n,vb(e.min,e.max,o),r)}function Sx(e,t){xx(e.x,t.x,t.scaleX,t.scale,t.originX),xx(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cx(e,t){return lx(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const _x=e=>{let{current:t}=e;return t?t.ownerDocument.defaultView:null},Ex=new WeakMap;class kx{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ix(),this.visualElement=e}start(e){let{snapToCursor:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Mw(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(kw(e,"page").point)},onStart:(e,t)=>{var n;const{drag:r,dragPropagation:o,onDragStart:a}=this.getProps();if(r&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Hw(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sx((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Rv.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Xw(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),a&&sv.postRender((()=>a(e,t))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=dw(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:i}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(i),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,i),this.updateAxis("y",t.point,i),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>sx((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:_x(this.visualElement)})}stop(e,t){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&sv.postRender((()=>a(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Px(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){let{min:r,max:o}=t;return void 0!==r&&e<r?e=n?vb(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?vb(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&Gw(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,t){let{top:n,left:r,bottom:o,right:a}=t;return{x:ex(e.x,r,a),y:ex(e.y,n,o)}}(r.layoutBox,t),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nx;return!1===e?e=0:!0===e&&(e=nx),{x:rx(e,"left","right"),y:rx(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&sx((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Gw(e))return!1;const n=e.current;hv(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Cx(e,n),{scroll:o}=t;return o&&(wx(r.x,o.offset.x),wx(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let a=function(e,t){return{x:tx(e.x,t.x),y:tx(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function(e){let{x:t,y:n}=e;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=lx(e))}return a}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:i}=this.getProps(),s=this.constraints||{},l=sx((i=>{if(!Px(i,t,this.currentDirection))return;let l=s&&s[i]||{};a&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[i]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(i,d)}));return Promise.all(l).then(i)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Yb(e,n,0,t,this.visualElement,!1,dw(this.visualElement,e)))}stopAnimation(){sx((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){sx((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag".concat(e.toUpperCase()),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){sx((t=>{const{drag:n}=this.getProps();if(!Px(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:a}=r.layout.layoutBox[t];o.set(e[t]-vb(n,a,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Gw(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};sx((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Xw(e),o=Xw(t);return o>r?n=gb(t.min,t.max-r,e.min):r>o&&(n=gb(e.min,e.max-o,t.min)),Sv(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),sx((t=>{if(!Px(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:a}=this.constraints[t];n.set(vb(o,a,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Ex.set(this.visualElement,this);const e=Ow(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Gw(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),sv.read(t);const o=Aw(window,"resize",(()=>this.scalePositionWithinConstraints())),a=n.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n}=e;this.isDragging&&n&&(sx((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:a=nx,dragMomentum:i=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:a,dragMomentum:i}}}function Px(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const Ax=e=>(t,n)=>{e&&sv.postRender((()=>e(t,n)))};const Ox=(0,e.createContext)(null);const Tx=(0,e.createContext)({}),Mx=(0,e.createContext)({}),Ix={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fx={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!Fv.test(e))return e;e=parseFloat(e)}const n=Rx(e,t.target.x),r=Rx(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Nx={correct:(e,t)=>{let{treeScale:n,projectionDelta:r}=t;const o=e,a=vy.parse(e);if(a.length>5)return o;const i=vy.createTransformer(e),s="number"!==typeof a[0]?1:0,l=r.x.scale*n.x,c=r.y.scale*n.y;a[0+s]/=l,a[1+s]/=c;const u=vb(l,c,.5);return"number"===typeof a[2+s]&&(a[2+s]/=u),"number"===typeof a[3+s]&&(a[3+s]/=u),i(a)}},jx={};const{schedule:Dx,cancel:Lx}=iv(queueMicrotask,!1);class Bx extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var a;a=Hx,Object.assign(jx,a),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ix.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,a=n.projection;return a?(a.isPresent=o,r||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||sv.postRender((()=>{const e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Dx.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function zx(t){const[n,r]=function(){const t=(0,e.useContext)(Ox);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,a=(0,e.useId)();(0,e.useEffect)((()=>o(a)),[]);const i=(0,e.useCallback)((()=>r&&r(a)),[a,r]);return!n&&r?[!1,i]:[!0]}(),o=(0,e.useContext)(Tx);return(0,jl.jsx)(Bx,{...t,layoutGroup:o,switchLayoutGroup:(0,e.useContext)(Mx),isPresent:n,safeToRemove:r})}const Hx={borderRadius:{...Fx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fx,borderTopRightRadius:Fx,borderBottomLeftRadius:Fx,borderBottomRightRadius:Fx,boxShadow:Nx},Wx=["TopLeft","TopRight","BottomLeft","BottomRight"],Gx=Wx.length,Vx=e=>"string"===typeof e?parseFloat(e):e,Ux=e=>"number"===typeof e||Fv.test(e);function qx(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Kx=Yx(0,.5,sb),Xx=Yx(.5,.95,ov);function Yx(e,t,n){return r=>r<e?0:r>t?1:n(gb(e,t,r))}function Zx(e,t){e.min=t.min,e.max=t.max}function $x(e,t){Zx(e.x,t.x),Zx(e.y,t.y)}function Qx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Jx(e,t,n,r,o){return e=px(e-=t,1/n,r),void 0!==o&&(e=px(e,1/o,r)),e}function eS(e,t,n,r,o){let[a,i,s]=n;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;Rv.test(t)&&(t=parseFloat(t),t=vb(i.min,i.max,t/100)-i.min);if("number"!==typeof t)return;let s=vb(a.min,a.max,r);e===a&&(s-=t),e.min=Jx(e.min,t,n,s,o),e.max=Jx(e.max,t,n,s,o)}(e,t[a],t[i],t[s],t.scale,r,o)}const tS=["x","scaleX","originX"],nS=["y","scaleY","originY"];function rS(e,t,n,r){eS(e.x,t,tS,n?n.x:void 0,r?r.x:void 0),eS(e.y,t,nS,n?n.y:void 0,r?r.y:void 0)}function oS(e){return 0===e.translate&&1===e.scale}function aS(e){return oS(e.x)&&oS(e.y)}function iS(e,t){return e.min===t.min&&e.max===t.max}function sS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function lS(e,t){return sS(e.x,t.x)&&sS(e.y,t.y)}function cS(e){return Xw(e.x)/Xw(e.y)}function uS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class dS{constructor(){this.members=[]}add(e){Qb(this.members,e),e.scheduleRender()}remove(e){if(Jb(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const fS=(e,t)=>e.depth-t.depth;class hS{constructor(){this.children=[],this.isDirty=!1}add(e){Qb(this.children,e),this.isDirty=!0}remove(e){Jb(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(fS),this.isDirty=!1,this.children.forEach(e)}}function pS(e){const t=uw(e)?e.get():e;return Zb(t)?t.toValue():t}const mS={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},gS="undefined"!==typeof window&&void 0!==window.MotionDebug,vS=["","X","Y","Z"],yS={visibility:"hidden"};let bS=0;function wS(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function xS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=sw(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",sv,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&xS(r)}function SS(e){let{attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:o,resetTransform:a}=e;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=bS++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,gS&&(mS.totalNodes=mS.resolvedTargetDeltas=mS.recalculatedProjection=0),this.nodes.forEach(ES),this.nodes.forEach(IS),this.nodes.forEach(RS),this.nodes.forEach(kS),gS&&window.MotionDebug.record(mS)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new hS)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ew),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t&&t.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:o,layout:a,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(a||o)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Iy.now(),r=o=>{let{timestamp:a}=o;const i=a-n;i>=t&&(lv(r),e(i-t))};return sv.read(r,!0),()=>lv(r)}(r,250),Ix.hasAnimatedSinceResize&&(Ix.hasAnimatedSinceResize=!1,this.nodes.forEach(MS))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&i&&(o||a)&&this.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n,hasRelativeTargetChanged:r,layout:o}=e;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const a=this.options.transition||i.getDefaultTransition()||BS,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=i.getProps(),c=!this.targetLayout||!lS(this.targetLayout,o)||r,u=!n&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||n&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Qg(a,"layout"),onPlay:s,onComplete:l};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else n||MS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,lv(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(FS),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(AS);this.isUpdating||this.nodes.forEach(OS),this.isUpdating=!1,this.nodes.forEach(TS),this.nodes.forEach(CS),this.nodes.forEach(_S),this.clearAllSnapshots();const e=Iy.now();cv.delta=Sv(0,1e3/60,e-cv.timestamp),cv.timestamp=e,cv.isProcessing=!0,uv.update.process(cv),uv.preRender.process(cv),uv.render.process(cv),cv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Dx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(PS),this.sharedNodes.forEach(NS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,sv.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){sv.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ix(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!aS(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||dx(this.latestValues)||o)&&(a(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),function(e){WS(e.x),WS(e.y)}(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return ix();const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(VS))){const{scroll:e}=this.root;e&&(wx(n.x,e.offset.x),wx(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=ix();if($x(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let r=0;r<this.path.length;r++){const t=this.path[r],{scroll:o,options:a}=t;t!==this.root&&o&&a.layoutScroll&&(o.wasRoot&&$x(n,e),wx(n.x,o.offset.x),wx(n.y,o.offset.y))}return n}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=ix();$x(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Sx(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),dx(e.latestValues)&&Sx(n,e.latestValues)}return dx(this.latestValues)&&Sx(n,this.latestValues),n}removeTransform(e){const t=ix();$x(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!dx(e.latestValues))continue;ux(e.latestValues)&&e.updateSnapshot();const r=ix();$x(r,e.measurePageBox()),rS(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return dx(this.latestValues)&&rS(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==cv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:a}=this.options;if(this.layout&&(o||a)){if(this.resolvedRelativeTargetAt=cv.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ix(),this.relativeTargetOrigin=ix(),Jw(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),$x(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var i,s,l;if(this.target||(this.target=ix(),this.targetWithTransforms=ix()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,l=this.relativeParent.target,$w(i.x,s.x,l.x),$w(i.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):$x(this.target,this.layout.layoutBox),vx(this.target,this.targetDelta)):$x(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ix(),this.relativeTargetOrigin=ix(),Jw(this.relativeTargetOrigin,this.target,e.target),$x(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}gS&&mS.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ux(this.parent.latestValues)&&!fx(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===cv.timestamp&&(r=!1),r)return;const{layout:o,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!a)return;$x(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=n.length;if(!o)return;let a,i;t.x=t.y=1;for(let s=0;s<o;s++){a=n[s],i=a.projectionDelta;const{visualElement:o}=a.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Sx(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,vx(e,i)),r&&dx(a.latestValues)&&Sx(e,a.latestValues))}t.x<bx&&t.x>yx&&(t.x=1),t.y<bx&&t.y>yx&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=ix());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Qx(this.prevProjectionDelta.x,this.projectionDelta.x),Qx(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Zw(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===s&&uS(this.projectionDelta.x,this.prevProjectionDelta.x)&&uS(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),gS&&mS.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ax(),this.projectionDelta=ax(),this.projectionDeltaWithTransform=ax()}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},a=ax();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const i=ix(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(LS));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f;jS(a.x,e.x,n),jS(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jw(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){DS(e.x,t.x,n.x,r),DS(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,i,n),d&&(l=this.relativeTarget,f=d,iS(l.x,f.x)&&iS(l.y,f.y))&&(this.isProjectionDirty=!1),d||(d=ix()),$x(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,a){o?(e.opacity=vb(0,void 0!==n.opacity?n.opacity:1,Kx(r)),e.opacityExit=vb(void 0!==t.opacity?t.opacity:1,0,Xx(r))):a&&(e.opacity=vb(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<Gx;i++){const o="border".concat(Wx[i],"Radius");let a=qx(t,o),s=qx(n,o);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ux(a)===Ux(s)?(e[o]=Math.max(vb(Vx(a),Vx(s),r),0),(Rv.test(s)||Rv.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=vb(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(lv(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=sv.update((()=>{Ix.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=uw(e)?e:rw(e);return r.start(Yb("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&GS(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||ix();const t=Xw(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Xw(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}$x(t,n),Sx(t,o),Zw(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new dS);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote(){let{needsReset:e,transition:t,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&wS("z",e,r,this.animationValues);for(let o=0;o<vS.length;o++)wS("rotate".concat(vS[o]),e,r,this.animationValues),wS("skew".concat(vS[o]),e,r,this.animationValues);e.render();for(const o in r)e.setStaticValue(o,r[o]),this.animationValues&&(this.animationValues[o]=r[o]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return yS;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=pS(null===e||void 0===e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=pS(null===e||void 0===e?void 0:e.pointerEvents)||""),this.hasProjected&&!dx(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const i=a.animationValues||a.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,a=e.y.translate/t.y,i=(null===n||void 0===n?void 0:n.z)||0;if((o||a||i)&&(r="translate3d(".concat(o,"px, ").concat(a,"px, ").concat(i,"px) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:a,skewX:i,skewY:s}=n;e&&(r="perspective(".concat(e,"px) ").concat(r)),t&&(r+="rotate(".concat(t,"deg) ")),o&&(r+="rotateX(".concat(o,"deg) ")),a&&(r+="rotateY(".concat(a,"deg) ")),i&&(r+="skewX(".concat(i,"deg) ")),s&&(r+="skewY(".concat(s,"deg) "))}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+="scale(".concat(s,", ").concat(l,")")),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i),o&&(r.transform=o(i,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin="".concat(100*s.origin,"% ").concat(100*l.origin,"% 0"),a.animationValues?r.opacity=a===this?null!==(n=null!==(t=i.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r.opacity=a===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const c in jx){if(void 0===i[c])continue;const{correct:e,applyTo:t}=jx[c],n="none"===r.transform?i[c]:e(i[c],a);if(t){const e=t.length;for(let o=0;o<e;o++)r[t[o]]=n}else r[c]=n}return this.options.layoutId&&(r.pointerEvents=a===this?pS(null===e||void 0===e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(AS),this.root.sharedNodes.clear()}}}function CS(e){e.updateLayout()}function _S(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;"size"===o?sx((e=>{const r=a?n.measuredBox[e]:n.layoutBox[e],o=Xw(r);r.min=t[e].min,r.max=r.min+o})):GS(o,n.layoutBox,t)&&sx((r=>{const o=a?n.measuredBox[r]:n.layoutBox[r],i=Xw(t[r]);o.max=o.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+i)}));const i=ax();Zw(i,t,n.layoutBox);const s=ax();a?Zw(s,e.applyTransform(r,!0),n.measuredBox):Zw(s,t,n.layoutBox);const l=!aS(i);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:a}=r;if(o&&a){const i=ix();Jw(i,n.layoutBox,o.layoutBox);const s=ix();Jw(s,t,a.layoutBox),lS(i,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=i,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ES(e){gS&&mS.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function kS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function PS(e){e.clearSnapshot()}function AS(e){e.clearMeasurements()}function OS(e){e.isLayoutDirty=!1}function TS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function MS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function IS(e){e.resolveTargetDelta()}function RS(e){e.calcProjection()}function FS(e){e.resetSkewAndRotation()}function NS(e){e.removeLeadSnapshot()}function jS(e,t,n){e.translate=vb(t.translate,0,n),e.scale=vb(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function DS(e,t,n,r){e.min=vb(t.min,n.min,r),e.max=vb(t.max,n.max,r)}function LS(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const BS={duration:.45,ease:[.4,0,.1,1]},zS=e=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),HS=zS("applewebkit/")&&!zS("chrome/")?Math.round:ov;function WS(e){e.min=HS(e.min),e.max=HS(e.max)}function GS(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=cS(t),o=cS(n),a=.2,!(Math.abs(r-o)<=a));var r,o,a}function VS(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const US=SS({attachResizeListener:(e,t)=>Aw(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qS={current:void 0},KS=SS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qS.current){const e=new US({});e.mount(window),e.setOptions({layoutScroll:!0}),qS.current=e}return qS.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),XS={pan:{Feature:class extends Sw{constructor(){super(...arguments),this.removePointerDownListener=ov}onPointerDown(e){this.session=new Mw(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_x(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ax(e),onStart:Ax(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&sv.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Ow(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Sw{constructor(e){super(e),this.removeGroupControls=ov,this.removeListeners=ov,this.controls=new kx(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ov}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:KS,MeasureLayout:zx}};function YS(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return Ow(e.current,n,((n,o)=>{if("touch"===n.pointerType||Ww())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const i=a[r];i&&sv.postRender((()=>i(n,o)))}),{passive:!e.getProps()[r]})}const ZS=(e,t)=>!!t&&(e===t||ZS(e,t.parentElement));function $S(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,kw(n))}const QS=new WeakMap,JS=new WeakMap,eC=e=>{const t=QS.get(e.target);t&&t(e)},tC=e=>{e.forEach(eC)};function nC(e,t,n){const r=function(e){let{root:t,...n}=e;const r=t||document;JS.has(r)||JS.set(r,{});const o=JS.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(tC,{root:t,...n})),o[a]}(t);return QS.set(e,n),r.observe(e),()=>{QS.delete(e),r.unobserve(e)}}const rC={some:0,all:1};const oC={inView:{Feature:class extends Sw{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"===typeof r?r:rC[r]};return nC(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Sw{constructor(){super(...arguments),this.removeStartListeners=ov,this.removeEndListeners=ov,this.removeAccessibleListeners=ov,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Ow(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps(),a=o||ZS(this.node.current,e.target)?n:r;a&&sv.update((()=>a(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),o=Ow(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=mb(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Aw(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Aw(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&$S("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&sv.postRender((()=>n(e,t)))}))})),$S("down",((e,t)=>{this.startPress(e,t)}))})),t=Aw(this.node.current,"blur",(()=>{this.isPressing&&$S("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=mb(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&sv.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ww()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&sv.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Ow(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Aw(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=mb(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Sw{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(x7){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mb(Aw(this.node.current,"focus",(()=>this.onFocus())),Aw(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Sw{mount(){this.unmount=mb(YS(this.node,!0),YS(this.node,!1))}unmount(){}}}},aC={layout:{ProjectionNode:KS,MeasureLayout:zx}},iC=(0,e.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),sC=(0,e.createContext)({}),lC="undefined"!==typeof window,cC=lC?e.useLayoutEffect:e.useEffect,uC=(0,e.createContext)({strict:!1});let dC=!1;function fC(t,n,r,o,a){var i;const{visualElement:s}=(0,e.useContext)(sC),l=(0,e.useContext)(uC),c=(0,e.useContext)(Ox),u=(0,e.useContext)(iC).reducedMotion,d=(0,e.useRef)();o=o||l.renderer,!d.current&&o&&(d.current=o(t,{visualState:n,parent:s,props:r,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const f=d.current,h=(0,e.useContext)(Mx);!f||f.projection||!a||"html"!==f.type&&"svg"!==f.type||function(e,t,n,r){const{layoutId:o,layout:a,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:pC(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:Boolean(i)||s&&Gw(s),visualElement:e,animationType:"string"===typeof a?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(d.current,r,a,h),(0,e.useInsertionEffect)((()=>{f&&f.update(r,c)}));const p=r[iw],m=(0,e.useRef)(Boolean(p)&&!window.MotionHandoffIsComplete&&(null===(i=window.MotionHasOptimisedAnimation)||void 0===i?void 0:i.call(window,p)));return cC((()=>{f&&(f.updateFeatures(),Dx.render(f.render),m.current&&f.animationState&&f.animationState.animateChanges())})),(0,e.useEffect)((()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current=!1,dC||(dC=!0,queueMicrotask(hC)))})),f}function hC(){window.MotionHandoffIsComplete=!0}function pC(e){if(e)return!1!==e.options.allowProjection?e.projection:pC(e.parent)}function mC(t,n,r){return(0,e.useCallback)((e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),r&&("function"===typeof r?r(e):Gw(r)&&(r.current=e))}),[n])}function gC(e){return Ng(e.animate)||Gg.some((t=>Lg(e[t])))}function vC(e){return Boolean(gC(e)||e.variants)}function yC(t){const{initial:n,animate:r}=function(e,t){if(gC(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Lg(t)?t:void 0,animate:Lg(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(sC));return(0,e.useMemo)((()=>({initial:n,animate:r})),[bC(n),bC(r)])}function bC(e){return Array.isArray(e)?e.join(" "):e}const wC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xC={};for(const P7 in wC)xC[P7]={isEnabled:e=>wC[P7].some((t=>!!e[t]))};const SC=Symbol.for("motionComponentSymbol");function CC(t){let{preloadedFeatures:n,createVisualElement:r,useRender:o,useVisualState:a,Component:i}=t;n&&function(e){for(const t in e)xC[t]={...xC[t],...e[t]}}(n);const s=(0,e.forwardRef)((function(t,n){let s;const l={...(0,e.useContext)(iC),...t,layoutId:_C(t)},{isStatic:c}=l,u=yC(t),d=a(t,c);if(!c&&lC){!function(t,n){(0,e.useContext)(uC).strict;0}();const t=function(e){const{drag:t,layout:n}=xC;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null===t||void 0===t?void 0:t.isEnabled(e))||(null===n||void 0===n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);s=t.MeasureLayout,u.visualElement=fC(i,d,l,r,t.ProjectionNode)}return(0,jl.jsxs)(sC.Provider,{value:u,children:[s&&u.visualElement?(0,jl.jsx)(s,{visualElement:u.visualElement,...l}):null,o(i,t,mC(d,u.visualElement,n),d,c,u.visualElement)]})}));return s[SC]=i,s}function _C(t){let{layoutId:n}=t;const r=(0,e.useContext)(Tx).id;return r&&void 0!==n?r+"-"+n:n}const EC=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kC(e){return"string"===typeof e&&!e.includes("-")&&!!(EC.indexOf(e)>-1||/[A-Z]/u.test(e))}function PC(e,t,n,r){let{style:o,vars:a}=t;Object.assign(e.style,o,r&&r.getProjectionStyles(n));for(const i in a)e.style.setProperty(i,a[i])}const AC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function OC(e,t,n,r){PC(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(AC.has(o)?o:aw(o),t.attrs[o])}function TC(e,t){let{layout:n,layoutId:r}=t;return Ug.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!jx[e]||"opacity"===e)}function MC(e,t,n){var r;const{style:o}=e,a={};for(const i in o)(uw(o[i])||t.style&&uw(t.style[i])||TC(i,e)||void 0!==(null===(r=null===n||void 0===n?void 0:n.getValue(i))||void 0===r?void 0:r.liveStyle))&&(a[i]=o[i]);return n&&o&&"string"===typeof o.willChange&&(n.applyWillChange=!1),a}function IC(e,t,n){const r=MC(e,t,n);for(const o in e)if(uw(e[o])||uw(t[o])){r[-1!==Vg.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=e[o]}return r}const RC=t=>(n,r)=>{const o=(0,e.useContext)(sC),a=(0,e.useContext)(Ox),i=()=>function(e,t,n,r,o){let{applyWillChange:a=!1,scrapeMotionValuesFromProps:i,createRenderState:s,onMount:l}=e;const c={latestValues:jC(t,n,r,!o&&a,i),renderState:s()};return l&&(c.mount=e=>l(t,e,c)),c}(t,n,o,a,r);return r?i():function(t){const n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}(i)};function FC(e,t){const n=lw(t);n&&Qb(e,n)}function NC(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o<r.length;o++){const t=zg(e,r[o]);if(t){const{transitionEnd:e,transition:r,...o}=t;n(o,e)}}}function jC(e,t,n,r,o){var a;const i={},s=[],l=r&&void 0===(null===(a=e.style)||void 0===a?void 0:a.willChange),c=o(e,{});for(const g in c)i[g]=pS(c[g]);let{initial:u,animate:d}=e;const f=gC(e),h=vC(e);t&&h&&!f&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===d&&(d=t.animate));let p=!!n&&!1===n.initial;p=p||!1===u;const m=p?d:u;return m&&"boolean"!==typeof m&&!Ng(m)&&NC(e,m,((e,t)=>{for(const n in e){let t=e[n];if(Array.isArray(t)){t=t[p?t.length-1:0]}null!==t&&(i[n]=t)}for(const n in t)i[n]=t[n]})),l&&(d&&!1!==u&&!Ng(d)&&NC(e,d,(e=>{for(const t in e)FC(s,t)})),s.length&&(i.willChange=s.join(","))),i}const DC=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),LC=()=>({...DC(),attrs:{}}),BC=(e,t)=>t&&"number"===typeof e?t.transform(e):e,zC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},HC=Vg.length;function WC(e,t,n){const{style:r,vars:o,transformOrigin:a}=e;let i=!1,s=!1;for(const l in t){const e=t[l];if(Ug.has(l))i=!0;else if(gv(l))o[l]=e;else{const t=BC(e,Cy[l]);l.startsWith("origin")?(s=!0,a[l]=t):r[l]=t}}if(t.transform||(i||n?r.transform=function(e,t,n){let r="",o=!0;for(let a=0;a<HC;a++){const i=Vg[a],s=e[i];if(void 0===s)continue;let l=!0;if(l="number"===typeof s?s===(i.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=BC(s,Cy[i]);if(!l){o=!1;const t=zC[i]||i;r+="".concat(t,"(").concat(e,") ")}n&&(t[i]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin="".concat(e," ").concat(t," ").concat(n)}}function GC(e,t,n){return"string"===typeof e?e:Fv.transform(t+n*e)}const VC={offset:"stroke-dashoffset",array:"stroke-dasharray"},UC={offset:"strokeDashoffset",array:"strokeDasharray"};function qC(e,t,n,r){let{attrX:o,attrY:a,attrScale:i,originX:s,originY:l,pathLength:c,pathSpacing:u=1,pathOffset:d=0,...f}=t;if(WC(e,f,r),n)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:m}=e;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(void 0!==s||void 0!==l||p.transform)&&(p.transformOrigin=function(e,t,n){const r=GC(t,e.x,e.width),o=GC(n,e.y,e.height);return"".concat(r," ").concat(o)}(m,void 0!==s?s:.5,void 0!==l?l:.5)),void 0!==o&&(h.x=o),void 0!==a&&(h.y=a),void 0!==i&&(h.scale=i),void 0!==c&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const a=o?VC:UC;e[a.offset]=Fv.transform(-r);const i=Fv.transform(t),s=Fv.transform(n);e[a.array]="".concat(i," ").concat(s)}(h,c,u,d,!1)}const KC=e=>"string"===typeof e&&"svg"===e.toLowerCase(),XC={useVisualState:RC({scrapeMotionValuesFromProps:IC,createRenderState:LC,onMount:(e,t,n)=>{let{renderState:r,latestValues:o}=n;sv.read((()=>{try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(x7){r.dimensions={x:0,y:0,width:0,height:0}}})),sv.render((()=>{qC(r,o,KC(t.tagName),e.transformTemplate),OC(t,r)}))}})},YC={useVisualState:RC({applyWillChange:!0,scrapeMotionValuesFromProps:MC,createRenderState:DC})};function ZC(e,t,n){for(const r in t)uw(t[r])||TC(r,n)||(e[r]=t[r])}function $C(t,n){const r={};return ZC(r,t.style||{},t),Object.assign(r,function(t,n){let{transformTemplate:r}=t;return(0,e.useMemo)((()=>{const e=DC();return WC(e,n,r),Object.assign({},e.vars,e.style)}),[n])}(t,n)),r}function QC(e,t){const n={},r=$C(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const JC=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function e_(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||JC.has(e)}let t_=e=>!e_(e);try{(n_=require("@emotion/is-prop-valid").default)&&(t_=e=>e.startsWith("on")?!e_(e):n_(e))}catch(k7){}var n_;function r_(t,n,r,o){const a=(0,e.useMemo)((()=>{const e=LC();return qC(e,n,KC(o),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};ZC(e,t.style,t),a.style={...e,...a.style}}return a}function o_(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(n,r,o,a,i)=>{let{latestValues:s}=a;const l=(kC(n)?r_:QC)(r,s,i,n),c=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"===typeof e.values||(t_(o)||!0===n&&e_(o)||!t&&!e_(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"===typeof n,t),u=n!==e.Fragment?{...c,...l,ref:o}:{},{children:d}=r,f=(0,e.useMemo)((()=>uw(d)?d.get():d),[d]);return(0,e.createElement)(n,{...u,children:f})}}function a_(e,t){return function(n){let{forwardMotionProps:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return CC({...kC(n)?XC:YC,preloadedFeatures:e,useRender:o_(r),createVisualElement:t,Component:n})}}const i_={current:null},s_={current:!1};const l_=new WeakMap,c_=[...qv,iy,vy],u_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],d_=Gg.length;class f_{scrapeMotionValuesFromProps(e,t,n){return{}}constructor(e){let{parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:a,visualState:i}=e,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Jv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,sv.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=Boolean(a),this.isControllingVariants=gC(n),this.isVariantNode=vC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const e=d[f];void 0!==l[f]&&uw(e)&&e.set(l[f],!1)}}mount(e){this.current=e,l_.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),s_.current||function(){if(s_.current=!0,lC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i_.current=e.matches;e.addListener(t),t()}else i_.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i_.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){l_.delete(this.current),this.projection&&this.projection.unmount(),lv(this.notifyUpdate),lv(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Ug.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&sv.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),a&&a(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in xC){const t=xC[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ix()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<u_.length;n++){const t=u_[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],a=n[r];if(uw(o))e.addValue(r,o);else if(uw(a))e.addValue(r,rw(o,{owner:e}));else if(a!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,rw(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const e={};for(let t=0;t<d_;t++){const n=Gg[t],r=this.props[n];(Lg(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=rw(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var o;return void 0!==r&&null!==r&&("string"===typeof r&&(pv(r)||dv(r))?r=parseFloat(r):(o=r,!c_.find(Uv(o))&&vy.test(t)&&(r=ky(e,t))),this.setBaseTarget(e,uw(r)?r.get():r)),uw(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"===typeof n||"object"===typeof n){const o=zg(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||uw(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new ew),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e].notify(...n)}}}class h_ extends f_{constructor(){super(...arguments),this.KeyframeResolver=Ay}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}}class p_ extends h_{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=PC}readValueFromInstance(e,t){if(Ug.has(t)){const e=Ey(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(gv(t)?r.getPropertyValue(t):r[t])||0;return"string"===typeof o?o.trim():o}var n}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return Cx(e,n)}build(e,t,n){WC(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return MC(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;uw(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent="".concat(e))})))}}class m_ extends h_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ix}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ug.has(t)){const e=Ey(t);return e&&e.default||0}return t=AC.has(t)?t:aw(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return IC(e,t,n)}build(e,t,n){qC(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){OC(e,t,0,r)}mount(e){this.isSVGTag=KC(e.tagName),super.mount(e)}}const g_=Fg(a_({..._w,...oC,...XS,...aC},((t,n)=>kC(t)?new m_(n):new p_(n,{allowProjection:t!==e.Fragment})))),v_={show:{pathLength:1,opacity:1},hide:{pathLength:0,opacity:0}},y_=()=>{const[t,n]=(0,e.useState)(!1);return(0,jl.jsxs)("a",{href:"mailto:".concat(ch.CONDUKT_CONTACT_EMAIL),className:"flex items-center gap-1.5 font-bold hover:underline hover:text-foreground",onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:[(0,jl.jsx)("span",{children:"Contact Us"}),(0,jl.jsxs)("svg",{width:"9",height:"8",viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,jl.jsx)("path",{d:"M5.5 1L8.5 4L5.5 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,jl.jsx)(g_.path,{d:"M8.5 4H1",stroke:"currentColor",strokeLinecap:"round",variants:v_,initial:"hide",animate:t?"show":"hide"})]})]})};function b_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.forEach((t=>function(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}(t,e)))}function w_(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useCallback(b_(...n),n)}var x_=e.forwardRef(((t,n)=>{const{children:r,...o}=t,a=e.Children.toArray(r),i=a.find(__);if(i){const t=i.props.children,r=a.map((n=>n===i?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return(0,jl.jsx)(S_,{...o,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return(0,jl.jsx)(S_,{...o,ref:n,children:r})}));x_.displayName="Slot";var S_=e.forwardRef(((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(r);return e.cloneElement(r,{...E_(o,r.props),ref:n?b_(n,t):t})}return e.Children.count(r)>1?e.Children.only(null):null}));S_.displayName="SlotClone";var C_=e=>{let{children:t}=e;return(0,jl.jsx)(jl.Fragment,{children:t})};function __(t){return e.isValidElement(t)&&t.type===C_}function E_(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=function(){a(...arguments),o(...arguments)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function k_(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=k_(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function P_(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=k_(e))&&(r&&(r+=" "),r+=t);return r}const A_=e=>"boolean"===typeof e?"".concat(e):0===e?"0":e,O_=P_;function T_(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=T_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function M_(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=T_(e))&&(r&&(r+=" "),r+=t);return r}const I_=e=>{const t=j_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),R_(n,t)||N_(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},R_=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),a=o?R_(e.slice(1),o):void 0;if(a)return a;if(0===t.validators.length)return;const i=e.join("-");return null===(n=t.validators.find((e=>{let{validator:t}=e;return t(i)})))||void 0===n?void 0:n.classGroupId},F_=/^\[(.+)\]$/,N_=e=>{if(F_.test(e)){const t=F_.exec(e)[1],n=null===t||void 0===t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},j_=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return z_(Object.entries(e.classGroups),n).forEach((e=>{let[n,o]=e;D_(o,r,n,t)})),r},D_=(e,t,n,r)=>{e.forEach((e=>{if("string"!==typeof e){if("function"===typeof e)return B_(e)?void D_(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((e=>{let[o,a]=e;D_(a,L_(t,o),n,r)}))}else{(""===e?t:L_(t,e)).classGroupId=n}}))},L_=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},B_=e=>e.isThemeGetter,z_=(e,t)=>t?e.map((e=>{let[n,r]=e;return[n,r.map((e=>"string"===typeof e?t+e:"object"===typeof e?Object.fromEntries(Object.entries(e).map((e=>{let[n,r]=e;return[t+n,r]}))):e))]})):e,H_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},W_=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===o&&(r||e.slice(d,d+a)===t)){n.push(e.slice(l,d)),l=d+a;continue}if("/"===c){i=d;continue}}"["===c?s++:"]"===c&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},G_=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},V_=/\s+/;function U_(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=q_(e))&&(r&&(r+=" "),r+=t);return r}const q_=e=>{if("string"===typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=q_(e[r]))&&(n&&(n+=" "),n+=t);return n};function K_(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let o,a,i,s=function(t){const r=n.reduce(((e,t)=>t(e)),e());return o=(e=>({cache:H_(e.cacheSize),parseClassName:W_(e),...I_(e)}))(r),a=o.cache.get,i=o.cache.set,s=l,l(t)};function l(e){const t=a(e);if(t)return t;const n=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(V_);let s="";for(let l=i.length-1;l>=0;l-=1){const e=i[l],{modifiers:t,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let f=Boolean(d),h=r(f?u.substring(0,d):u);if(!h){if(!f){s=e+(s.length>0?" "+s:s);continue}if(h=r(u),!h){s=e+(s.length>0?" "+s:s);continue}f=!1}const p=G_(t).join(":"),m=c?p+"!":p,g=m+h;if(a.includes(g))continue;a.push(g);const v=o(h,f);for(let n=0;n<v.length;++n){const e=v[n];a.push(m+e)}s=e+(s.length>0?" "+s:s)}return s})(e,o);return i(e,n),n}return function(){return s(U_.apply(null,arguments))}}const X_=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Y_=/^\[(?:([a-z-]+):)?(.+)\]$/i,Z_=/^\d+\/\d+$/,$_=new Set(["px","full","screen"]),Q_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,J_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rE=e=>aE(e)||$_.has(e)||Z_.test(e),oE=e=>yE(e,"length",bE),aE=e=>Boolean(e)&&!Number.isNaN(Number(e)),iE=e=>yE(e,"number",aE),sE=e=>Boolean(e)&&Number.isInteger(Number(e)),lE=e=>e.endsWith("%")&&aE(e.slice(0,-1)),cE=e=>Y_.test(e),uE=e=>Q_.test(e),dE=new Set(["length","size","percentage"]),fE=e=>yE(e,dE,wE),hE=e=>yE(e,"position",wE),pE=new Set(["image","url"]),mE=e=>yE(e,pE,SE),gE=e=>yE(e,"",xE),vE=()=>!0,yE=(e,t,n)=>{const r=Y_.exec(e);return!!r&&(r[1]?"string"===typeof t?r[1]===t:t.has(r[1]):n(r[2]))},bE=e=>J_.test(e)&&!eE.test(e),wE=()=>!1,xE=e=>tE.test(e),SE=e=>nE.test(e),CE=(Symbol.toStringTag,()=>{const e=X_("colors"),t=X_("spacing"),n=X_("blur"),r=X_("brightness"),o=X_("borderColor"),a=X_("borderRadius"),i=X_("borderSpacing"),s=X_("borderWidth"),l=X_("contrast"),c=X_("grayscale"),u=X_("hueRotate"),d=X_("invert"),f=X_("gap"),h=X_("gradientColorStops"),p=X_("gradientColorStopPositions"),m=X_("inset"),g=X_("margin"),v=X_("opacity"),y=X_("padding"),b=X_("saturate"),w=X_("scale"),x=X_("sepia"),S=X_("skew"),C=X_("space"),_=X_("translate"),E=()=>["auto",cE,t],k=()=>[cE,t],P=()=>["",rE,oE],A=()=>["auto",aE,cE],O=()=>["","0",cE],T=()=>[aE,cE];return{cacheSize:500,separator:":",theme:{colors:[vE],spacing:[rE,oE],blur:["none","",uE,cE],brightness:T(),borderColor:[e],borderRadius:["none","","full",uE,cE],borderSpacing:k(),borderWidth:P(),contrast:T(),grayscale:O(),hueRotate:T(),invert:O(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[lE,oE],inset:E(),margin:E(),opacity:T(),padding:k(),saturate:T(),scale:T(),sepia:O(),skew:T(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",cE]}],container:["container"],columns:[{columns:[uE]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",cE]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sE,cE]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",cE]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",sE,cE]}],"grid-cols":[{"grid-cols":[vE]}],"col-start-end":[{col:["auto",{span:["full",sE,cE]},cE]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[vE]}],"row-start-end":[{row:["auto",{span:[sE,cE]},cE]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",cE]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",cE]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",cE,t]}],"min-w":[{"min-w":[cE,t,"min","max","fit"]}],"max-w":[{"max-w":[cE,t,"none","full","min","max","fit","prose",{screen:[uE]},uE]}],h:[{h:[cE,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[cE,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[cE,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[cE,t,"auto","min","max","fit"]}],"font-size":[{text:["base",uE,oE]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",iE]}],"font-family":[{font:[vE]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",cE]}],"line-clamp":[{"line-clamp":["none",aE,iE]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rE,cE]}],"list-image":[{"list-image":["none",cE]}],"list-style-type":[{list:["none","disc","decimal",cE]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rE,oE]}],"underline-offset":[{"underline-offset":["auto",rE,cE]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",cE]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",cE]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",hE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[rE,cE]}],"outline-w":[{outline:[rE,oE]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[rE,oE]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",uE,gE]}],"shadow-color":[{shadow:[vE]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",uE,cE]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",cE]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",cE]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",cE]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[sE,cE]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",cE]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",cE]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",cE]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[rE,oE,iE]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),_E=K_(CE);function EE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _E(M_(t))}const kE=((e,t)=>n=>{var r;if(null==(null===t||void 0===t?void 0:t.variants))return O_(e,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map((e=>{const t=null===n||void 0===n?void 0:n[e],r=null===a||void 0===a?void 0:a[e];if(null===t)return null;const i=A_(t)||A_(r);return o[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null===t||void 0===t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n}))?[...e,n,r]:e}),[]);return O_(e,i,l,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className)})("group/button inline-flex h-10 items-center justify-center whitespace-nowrap rounded-lg px-4 py-2 text-sm font-medium !leading-6 transition-colors duration-300 disabled:pointer-events-none disabled:border-foreground disabled:border-opacity-[0.16] disabled:bg-transparent disabled:text-foreground disabled:text-opacity-[0.32]",{variants:{variant:{primary:"border border-transparent bg-foreground text-primary",outline:"border border-foreground border-opacity-[0.16] bg-transparent hover:bg-background-dark",ghost:"bg-transparent text-foreground hover:bg-background-dark"}},defaultVariants:{variant:"primary"}}),PE=e.forwardRef(((e,t)=>{let{className:n,variant:r,asChild:o=!1,...a}=e;const i=o?x_:"button";return(0,jl.jsx)(i,{className:EE(kE({variant:r,className:n})),ref:t,...a})}));PE.displayName="Button";const AE=e=>{let{flipText:t,label:n,children:r,...o}=e;return(0,jl.jsxs)(PE,{...o,children:[(0,jl.jsxs)("span",{className:"inline-flex h-[calc(1em+2px)] flex-col overflow-hidden ",children:[(0,jl.jsx)("span",{className:"leading-[calc(1em+2px)] transition-transform group-hover/button:translate-y-[calc((1em+2px)*-1)]",children:n}),(0,jl.jsx)("span",{className:"leading-[calc(1em+2px)] transition-transform group-hover/button:translate-y-[calc((1em+2px)*-1)]","aria-hidden":!0,children:t||n})]}),r]})},OE=(0,e.forwardRef)(((t,n)=>{let{className:r,containerClassName:o,type:a,label:i,id:s,children:l,onChange:c,...u}=t;const[d,f]=(0,e.useState)("");return(0,jl.jsxs)("div",{className:EE("flex items-center rounded-lg border border-background-dark bg-white transition-colors hover:border-grey focus-within:!border-foreground relative group/input has-[input[aria-invalid=true]]:!border-error",o),children:[(0,jl.jsx)("label",{className:EE("pointer-events-none absolute left-3 top-1/2 origin-top-left -translate-y-1/2 bg-transparent text-sm !leading-6 text-grey transition-all group-focus-within/input:top-0 group-focus-within/input:bg-background group-focus-within/input:px-0.5 group-focus-within/input:text-[0.625rem] group-focus-within/input:!leading-none group-focus-within/input:text-foreground group-has-[input[aria-invalid=true]]/input:!text-error",{"top-0 bg-background px-0.5 text-[0.625rem] !leading-none text-foreground":!!d}),htmlFor:s,children:i}),(0,jl.jsx)("input",{type:a,className:EE("h-10 w-full rounded-lg px-3 py-2 text-sm !leading-6 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",r),ref:n,id:s,onChange:e=>{c&&c(e),f(e.target.value)},...u}),l]})}));OE.displayName="Input";const TE=(0,e.forwardRef)(((t,n)=>{let{containerClassName:r,children:o,...a}=t;const[i,s]=(0,e.useState)(!1);return(0,jl.jsxs)(OE,{ref:n,type:i?"text":"password",containerClassName:EE("pr-4 gap-3",r),...a,children:[o,(0,jl.jsx)("button",{type:"button",onClick:()=>s((e=>!e)),className:EE("text-base text-grey transition-colors",{"text-foreground":i}),children:(0,jl.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",className:"size-4",children:[(0,jl.jsx)("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2",d:"M1.33325 7.99967s2-4.66666 6.66667-4.66666c4.66668 0 6.66668 4.66666 6.66668 4.66666s-2 4.66663-6.66668 4.66663c-4.66667 0-6.66667-4.66663-6.66667-4.66663Z"}),(0,jl.jsx)("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.2",d:"M8 10c1.10457 0 2-.89543 2-2s-.89543-2-2-2-2 .89543-2 2 .89543 2 2 2Z"})]})})]})}));function ME(e,t){let{checkForDefaultPrevented:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){if(null===e||void 0===e||e(r),!1===n||!r.defaultPrevented)return null===t||void 0===t?void 0:t(r)}}function IE(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null===r||void 0===r?void 0:r[t])||n;return e.useMemo((()=>({["__scope".concat(t)]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const a=e.createContext(o),i=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null===r||void 0===r?void 0:r[t][i])||a,c=e.useMemo((()=>s),Object.values(s));return(0,jl.jsx)(l.Provider,{value:c,children:o})}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null===s||void 0===s?void 0:s[t][i])||a,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error("`".concat(r,"` must be used within `").concat(n,"`"))}]},RE(o,...n)]}function RE(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n[0];if(1===n.length)return o;const a=()=>{const t=n.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(n){const r=t.reduce(((e,t)=>{let{useScope:r,scopeName:o}=t;return{...e,...r(n)["__scope".concat(o)]}}),{});return e.useMemo((()=>({["__scope".concat(o.scopeName)]:r})),[r])}};return a.scopeName=o.scopeName,a}TE.displayName="PasswordInput";var FE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((e,t)=>{const{asChild:r,...o}=e,a=r?x_:n;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,jl.jsx)(a,{...o,ref:t})}));return r.displayName="Primitive.".concat(n),{...t,[n]:r}}),{});function NE(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call(n,...r)}),[])}var jE,DE="dismissableLayer.update",LE="dismissableLayer.pointerDownOutside",BE="dismissableLayer.focusOutside",zE=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),HE=e.forwardRef(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=e.useContext(zE),[f,h]=e.useState(null),p=null!==(r=null===f||void 0===f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=e.useState({}),g=w_(n,(e=>h(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,C=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const r=NE(t),o=e.useRef(!1),a=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){VE(LE,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));S&&!n&&(null===i||void 0===i||i(e),null===l||void 0===l||l(e),e.defaultPrevented||null===c||void 0===c||c())}),p),_=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const r=NE(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){VE(BE,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null===s||void 0===s||s(e),null===l||void 0===l||l(e),e.defaultPrevented||null===c||void 0===c||c())}),p);return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const r=NE(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})}),[r,n])}((e=>{w===d.layers.size-1&&(null===a||void 0===a||a(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),e.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(jE=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),GE(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=jE)}}),[f,p,o,d]),e.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),GE())}),[f,d]),e.useEffect((()=>{const e=()=>m({});return document.addEventListener(DE,e),()=>document.removeEventListener(DE,e)}),[]),(0,jl.jsx)(FE.div,{...u,ref:g,style:{pointerEvents:x?S?"auto":"none":void 0,...t.style},onFocusCapture:ME(t.onFocusCapture,_.onFocusCapture),onBlurCapture:ME(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ME(t.onPointerDownCapture,C.onPointerDownCapture)})}));HE.displayName="DismissableLayer";var WE=e.forwardRef(((t,n)=>{const r=e.useContext(zE),o=e.useRef(null),a=w_(n,o);return e.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),(0,jl.jsx)(FE.div,{...t,ref:a})}));function GE(){const e=new CustomEvent(DE);document.dispatchEvent(e)}function VE(e,t,n,r){let{discrete:o}=r;const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?function(e,t){e&&Qo.flushSync((()=>e.dispatchEvent(t)))}(a,i):a.dispatchEvent(i)}WE.displayName="DismissableLayerBranch";var UE=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},qE=t["useId".toString()]||(()=>{}),KE=0;const XE=["top","right","bottom","left"],YE=Math.min,ZE=Math.max,$E=Math.round,QE=Math.floor,JE=e=>({x:e,y:e}),ek={left:"right",right:"left",bottom:"top",top:"bottom"},tk={start:"end",end:"start"};function nk(e,t,n){return ZE(e,YE(t,n))}function rk(e,t){return"function"===typeof e?e(t):e}function ok(e){return e.split("-")[0]}function ak(e){return e.split("-")[1]}function ik(e){return"x"===e?"y":"x"}function sk(e){return"y"===e?"height":"width"}function lk(e){return["top","bottom"].includes(ok(e))?"y":"x"}function ck(e){return ik(lk(e))}function uk(e){return e.replace(/start|end/g,(e=>tk[e]))}function dk(e){return e.replace(/left|right|bottom|top/g,(e=>ek[e]))}function fk(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function hk(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function pk(e,t,n){let{reference:r,floating:o}=e;const a=lk(t),i=ck(t),s=sk(i),l=ok(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(ak(t)){case"start":h[i]-=f*(n&&c?-1:1);break;case"end":h[i]+=f*(n&&c?-1:1)}return h}async function mk(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=rk(t,e),p=fk(h),m=s[f?"floating"===d?"reference":"floating":d],g=hk(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=hk(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}function gk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function vk(e){return XE.some((t=>e[t]>=0))}function yk(e){return xk(e)?(e.nodeName||"").toLowerCase():"#document"}function bk(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function wk(e){var t;return null==(t=(xk(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function xk(e){return e instanceof Node||e instanceof bk(e).Node}function Sk(e){return e instanceof Element||e instanceof bk(e).Element}function Ck(e){return e instanceof HTMLElement||e instanceof bk(e).HTMLElement}function _k(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof bk(e).ShadowRoot)}function Ek(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mk(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function kk(e){return["table","td","th"].includes(yk(e))}function Pk(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(x7){return!1}}))}function Ak(e){const t=Ok(),n=Sk(e)?Mk(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Ok(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Tk(e){return["html","body","#document"].includes(yk(e))}function Mk(e){return bk(e).getComputedStyle(e)}function Ik(e){return Sk(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rk(e){if("html"===yk(e))return e;const t=e.assignedSlot||e.parentNode||_k(e)&&e.host||wk(e);return _k(t)?t.host:t}function Fk(e){const t=Rk(e);return Tk(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ck(t)&&Ek(t)?t:Fk(t)}function Nk(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Fk(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=bk(o);if(a){const e=jk(i);return t.concat(i,i.visualViewport||[],Ek(o)?o:[],e&&n?Nk(e):[])}return t.concat(o,Nk(o,[],n))}function jk(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dk(e){const t=Mk(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ck(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=$E(n)!==a||$E(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Lk(e){return Sk(e)?e:e.contextElement}function Bk(e){const t=Lk(e);if(!Ck(t))return JE(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Dk(t);let i=(a?$E(n.width):n.width)/r,s=(a?$E(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const zk=JE(0);function Hk(e){const t=bk(e);return Ok()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:zk}function Wk(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Lk(e);let i=JE(1);t&&(r?Sk(r)&&(i=Bk(r)):i=Bk(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==bk(e))&&t}(a,n,r)?Hk(a):JE(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=bk(a),t=r&&Sk(r)?bk(r):r;let n=e,o=jk(n);for(;o&&r&&t!==n;){const e=Bk(o),t=o.getBoundingClientRect(),r=Mk(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=bk(o),o=jk(n)}}return hk({width:u,height:d,x:l,y:c})}function Gk(e){return Wk(wk(e)).left+Ik(e).scrollLeft}function Vk(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=bk(e),r=wk(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Ok();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=wk(e),n=Ik(e),r=e.ownerDocument.body,o=ZE(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ZE(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Gk(e);const s=-n.scrollTop;return"rtl"===Mk(r).direction&&(i+=ZE(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(wk(e));else if(Sk(t))r=function(e,t){const n=Wk(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ck(e)?Bk(e):JE(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=Hk(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return hk(r)}function Uk(e,t){const n=Rk(e);return!(n===t||!Sk(n)||Tk(n))&&("fixed"===Mk(n).position||Uk(n,t))}function qk(e,t,n){const r=Ck(t),o=wk(t),a="fixed"===n,i=Wk(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=JE(0);if(r||!r&&!a)if(("body"!==yk(t)||Ek(o))&&(s=Ik(t)),r){const e=Wk(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Gk(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Kk(e){return"static"===Mk(e).position}function Xk(e,t){return Ck(e)&&"fixed"!==Mk(e).position?t?t(e):e.offsetParent:null}function Yk(e,t){const n=bk(e);if(Pk(e))return n;if(!Ck(e)){let t=Rk(e);for(;t&&!Tk(t);){if(Sk(t)&&!Kk(t))return t;t=Rk(t)}return n}let r=Xk(e,t);for(;r&&kk(r)&&Kk(r);)r=Xk(r,t);return r&&Tk(r)&&Kk(r)&&!Ak(r)?n:r||function(e){let t=Rk(e);for(;Ck(t)&&!Tk(t);){if(Ak(t))return t;if(Pk(t))return null;t=Rk(t)}return null}(e)||n}const Zk={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=wk(r),s=!!t&&Pk(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=JE(1);const u=JE(0),d=Ck(r);if((d||!d&&!a)&&(("body"!==yk(r)||Ek(i))&&(l=Ik(r)),Ck(r))){const e=Wk(r);c=Bk(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:wk,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Pk(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Nk(e,[],!1).filter((e=>Sk(e)&&"body"!==yk(e))),o=null;const a="fixed"===Mk(e).position;let i=a?Rk(e):e;for(;Sk(i)&&!Tk(i);){const t=Mk(i),n=Ak(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ek(i)&&!n&&Uk(e,i))?r=r.filter((e=>e!==i)):o=t,i=Rk(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],s=a.reduce(((e,n)=>{const r=Vk(t,n,o);return e.top=ZE(r.top,e.top),e.right=YE(r.right,e.right),e.bottom=YE(r.bottom,e.bottom),e.left=ZE(r.left,e.left),e}),Vk(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Yk,getElementRects:async function(e){const t=this.getOffsetParent||Yk,n=this.getDimensions,r=await n(e.floating);return{reference:qk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Dk(e);return{width:t,height:n}},getScale:Bk,isElement:Sk,isRTL:function(e){return"rtl"===Mk(e).direction}};function $k(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:l=!1}=r,c=Lk(e),u=o||a?[...c?Nk(c):[],...Nk(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=wk(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const h={rootMargin:-QE(u)+"px "+-QE(o.clientWidth-(c+d))+"px "+-QE(o.clientHeight-(u+f))+"px "+-QE(c)+"px",threshold:ZE(0,YE(1,l))||1};let p=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}p=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(x7){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),a}(c,n):null;let f,h=-1,p=null;i&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let m=l?Wk(e):null;return l&&function t(){const r=Wk(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const Qk=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=ok(n),s=ak(n),l="y"===lk(n),c=["left","top"].includes(i)?-1:1,u=a&&l?-1:1,d=rk(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"===typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Jk=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=rk(e,t),c={x:n,y:r},u=await mk(t,l),d=lk(ok(o)),f=ik(d);let h=c[f],p=c[d];if(a){const e="y"===f?"bottom":"right";h=nk(h+u["y"===f?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";p=nk(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eP=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=rk(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=ok(o),y=lk(s),b=ok(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!m?[dk(s)]:function(e){const t=dk(e);return[uk(e),t,uk(t)]}(s)),S="none"!==p;!f&&S&&x.push(...function(e,t,n,r){const o=ak(e);let a=function(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}(ok(e),"start"===n,r);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(uk)))),a}(s,m,p,w));const C=[s,...x],_=await mk(t,g),E=[];let k=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&E.push(_[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ak(e),o=ck(e),a=sk(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=dk(i)),[i,dk(i)]}(o,i,w);E.push(_[e[0]],_[e[1]])}if(k=[...k,{placement:o,overflows:E}],!E.every((e=>e<=0))){var P,A;const e=((null==(P=a.flip)?void 0:P.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(A=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(h){case"bestFit":{var O;const e=null==(O=k.filter((e=>{if(S){const t=lk(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},tP=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:i=(()=>{}),...s}=rk(e,t),l=await mk(t,s),c=ok(n),u=ak(n),d="y"===lk(n),{width:f,height:h}=r.floating;let p,m;"top"===c||"bottom"===c?(p=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=c,p="end"===u?"top":"bottom");const g=h-l.top-l.bottom,v=f-l.left-l.right,y=YE(h-l[p],g),b=YE(f-l[m],v),w=!t.middlewareData.shift;let x=y,S=b;if(d?S=u||w?YE(b,v):v:x=u||w?YE(y,g):g,w&&!u){const e=ZE(l.left,0),t=ZE(l.right,0),n=ZE(l.top,0),r=ZE(l.bottom,0);d?S=f-2*(0!==e||0!==t?e+t:ZE(l.left,l.right)):x=h-2*(0!==n||0!==r?n+r:ZE(l.top,l.bottom))}await i({...t,availableWidth:S,availableHeight:x});const C=await o.getDimensions(a.floating);return f!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},nP=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=rk(e,t);switch(r){case"referenceHidden":{const e=gk(await mk(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:vk(e)}}}case"escaped":{const e=gk(await mk(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:vk(e)}}}default:return{}}}}},rP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=rk(e,t)||{};if(null==c)return{};const d=fk(u),f={x:n,y:r},h=ck(o),p=sk(h),m=await i.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=a.reference[p]+a.reference[h]-f[h]-a.floating[p],x=f[h]-a.reference[h],S=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let C=S?S[b]:0;C&&await(null==i.isElement?void 0:i.isElement(S))||(C=s.floating[b]||a.floating[p]);const _=w/2-x/2,E=C/2-m[p]/2-1,k=YE(d[v],E),P=YE(d[y],E),A=k,O=C-m[p]-P,T=C/2-m[p]/2+_,M=nk(A,T,O),I=!l.arrow&&null!=ak(o)&&T!==M&&a.reference[p]/2-(T<A?k:P)-m[p]/2<0,R=I?T<A?T-A:T-O:0;return{[h]:f[h]+R,data:{[h]:M,centerOffset:T-M-R,...I&&{alignmentOffset:R}},reset:I}}}),oP=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=rk(e,t),u={x:n,y:r},d=lk(o),f=ik(d);let h=u[f],p=u[d];const m=rk(s,t),g="number"===typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(ok(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:h,[d]:p}}}},aP=(e,t,n)=>{const r=new Map,o={platform:Zk,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=pk(c,r,l),f=r,h={},p=0;for(let m=0;m<s.length;m++){const{name:n,fn:a}=s[m],{x:g,y:v,data:y,reset:b}=await a({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[n]:{...h[n],...y}},b&&p<=50&&(p++,"object"===typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=pk(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:a})};var iP="undefined"!==typeof document?e.useLayoutEffect:e.useEffect;function sP(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!sP(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!sP(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function lP(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cP(e,t){const n=lP(e);return Math.round(t*n)/n}function uP(t){const n=e.useRef(t);return iP((()=>{n.current=t})),n}const dP=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"===typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?rP({element:n.current,padding:r}).fn(t):{}:n?rP({element:n,padding:r}).fn(t):{};var o}}),fP=(e,t)=>({...Jk(e),options:[e,t]}),hP=(e,t)=>({...oP(e),options:[e,t]}),pP=(e,t)=>({...eP(e),options:[e,t]}),mP=(e,t)=>({...tP(e),options:[e,t]}),gP=(e,t)=>({...nP(e),options:[e,t]}),vP=(e,t)=>({...dP(e),options:[e,t]});var yP=e.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return(0,jl.jsx)(FE.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,jl.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));yP.displayName="Arrow";var bP=yP;var wP="Popper",[xP,SP]=IE(wP),[CP,_P]=xP(wP),EP=t=>{const{__scopePopper:n,children:r}=t,[o,a]=e.useState(null);return(0,jl.jsx)(CP,{scope:n,anchor:o,onAnchorChange:a,children:r})};EP.displayName=wP;var kP="PopperAnchor",PP=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...a}=t,i=_P(kP,r),s=e.useRef(null),l=w_(n,s);return e.useEffect((()=>{i.onAnchorChange((null===o||void 0===o?void 0:o.current)||s.current)})),o?null:(0,jl.jsx)(FE.div,{...a,ref:l})}));PP.displayName=kP;var AP="PopperContent",[OP,TP]=xP(AP),MP=e.forwardRef(((t,n)=>{var r,o,a,i,s,l,c,u;const{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:x=!1,updatePositionStrategy:S="optimized",onPlaced:C,..._}=t,E=_P(AP,d),[k,P]=e.useState(null),A=w_(n,(e=>P(e))),[O,T]=e.useState(null),M=function(t){const[n,r]=e.useState(void 0);return UE((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}(O),I=null!==(r=null===M||void 0===M?void 0:M.width)&&void 0!==r?r:0,R=null!==(o=null===M||void 0===M?void 0:M.height)&&void 0!==o?o:0,F=f+("center"!==p?"-"+p:""),N="number"===typeof b?b:{top:0,right:0,bottom:0,left:0,...b},j=Array.isArray(y)?y:[y],D=j.length>0,L={padding:N,boundary:j.filter(NP),altBoundary:D},{refs:B,floatingStyles:z,placement:H,isPositioned:W,middlewareData:G}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[h,p]=e.useState(o);sP(h,o)||p(o);const[m,g]=e.useState(null),[v,y]=e.useState(null),b=e.useCallback((e=>{e!==C.current&&(C.current=e,g(e))}),[]),w=e.useCallback((e=>{e!==_.current&&(_.current=e,y(e))}),[]),x=i||m,S=s||v,C=e.useRef(null),_=e.useRef(null),E=e.useRef(d),k=null!=c,P=uP(c),A=uP(a),O=e.useCallback((()=>{if(!C.current||!_.current)return;const e={placement:n,strategy:r,middleware:h};A.current&&(e.platform=A.current),aP(C.current,_.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!sP(E.current,t)&&(E.current=t,Qo.flushSync((()=>{f(t)})))}))}),[h,n,r,A]);iP((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const T=e.useRef(!1);iP((()=>(T.current=!0,()=>{T.current=!1})),[]),iP((()=>{if(x&&(C.current=x),S&&(_.current=S),x&&S){if(P.current)return P.current(x,S,O);O()}}),[x,S,O,P,k]);const M=e.useMemo((()=>({reference:C,floating:_,setReference:b,setFloating:w})),[b,w]),I=e.useMemo((()=>({reference:x,floating:S})),[x,S]),R=e.useMemo((()=>{const e={position:r,left:0,top:0};if(!I.floating)return e;const t=cP(I.floating,d.x),n=cP(I.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...lP(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,I.floating,d.x,d.y]);return e.useMemo((()=>({...d,update:O,refs:M,elements:I,floatingStyles:R})),[d,O,M,I,R])}({strategy:"fixed",placement:F,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $k(...t,{animationFrame:"always"===S})},elements:{reference:E.anchor},middleware:[(V={mainAxis:h+R,alignmentAxis:m},{...Qk(V),options:[V,U]}),v&&fP({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?hP():void 0,...L}),v&&pP({...L}),mP({...L,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e;const{width:a,height:i}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(o,"px")),s.setProperty("--radix-popper-anchor-width","".concat(a,"px")),s.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),O&&vP({element:O,padding:g}),jP({arrowWidth:I,arrowHeight:R}),x&&gP({strategy:"referenceHidden",...L})]});var V,U;const[q,K]=DP(H),X=NE(C);UE((()=>{W&&(null===X||void 0===X||X())}),[W,X]);const Y=null===(a=G.arrow)||void 0===a?void 0:a.x,Z=null===(i=G.arrow)||void 0===i?void 0:i.y,$=0!==(null===(s=G.arrow)||void 0===s?void 0:s.centerOffset),[Q,J]=e.useState();return UE((()=>{k&&J(window.getComputedStyle(k).zIndex)}),[k]),(0,jl.jsx)("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:W?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=G.transformOrigin)||void 0===l?void 0:l.x,null===(c=G.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(u=G.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,jl.jsx)(OP,{scope:d,placedSide:q,onArrowChange:T,arrowX:Y,arrowY:Z,shouldHideArrow:$,children:(0,jl.jsx)(FE.div,{"data-side":q,"data-align":K,..._,ref:A,style:{..._.style,animation:W?void 0:"none"}})})})}));MP.displayName=AP;var IP="PopperArrow",RP={top:"bottom",right:"left",bottom:"top",left:"right"},FP=e.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=TP(IP,n),a=RP[o.placedSide];return(0,jl.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,jl.jsx)(bP,{...r,ref:t,style:{...r.style,display:"block"}})})}));function NP(e){return null!==e}FP.displayName=IP;var jP=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[h,p]=DP(s),m={start:"0%",center:"50%",end:"100%"}[p],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(a=null===(i=c.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+f/2;let y="",b="";return"bottom"===h?(y=u?m:"".concat(g,"px"),b="".concat(-f,"px")):"top"===h?(y=u?m:"".concat(g,"px"),b="".concat(l.floating.height+f,"px")):"right"===h?(y="".concat(-f,"px"),b=u?m:"".concat(v,"px")):"left"===h&&(y="".concat(l.floating.width+f,"px"),b=u?m:"".concat(v,"px")),{data:{x:y,y:b}}}});function DP(e){const[t,n="center"]=e.split("-");return[t,n]}var LP=EP,BP=PP,zP=MP,HP=FP,WP=e.forwardRef(((t,n)=>{var r;const{container:o,...a}=t,[i,s]=e.useState(!1);UE((()=>s(!0)),[]);const l=o||i&&(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body);return l?Qo.createPortal((0,jl.jsx)(FE.div,{...a,ref:n}),l):null}));WP.displayName="Portal";var GP=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef({}),a=e.useRef(t),i=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer(((e,t)=>{const r=n[e][t];return null!==r&&void 0!==r?r:e}),t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=VP(o.current);i.current="mounted"===l?e:"none"}),[l]),UE((()=>{const e=o.current,n=a.current;if(n!==t){const r=i.current,o=VP(e);if(t)c("MOUNT");else if("none"===o||"none"===(null===e||void 0===e?void 0:e.display))c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=t}}),[t,c]),UE((()=>{if(n){const e=e=>{const t=VP(o.current).includes(e.animationName);e.target===n&&t&&Qo.flushSync((()=>c("ANIMATION_END")))},t=e=>{e.target===n&&(i.current=VP(o.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback((e=>{e&&(o.current=getComputedStyle(e)),r(e)}),[])}}(n),a="function"===typeof r?r({present:o.isPresent}):e.Children.only(r),i=w_(o.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(a));return"function"===typeof r||o.isPresent?e.cloneElement(a,{ref:i}):null};function VP(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}function UP(t){let{prop:n,defaultProp:r,onChange:o=(()=>{})}=t;const[a,i]=function(t){let{defaultProp:n,onChange:r}=t;const o=e.useState(n),[a]=o,i=e.useRef(a),s=NE(r);return e.useEffect((()=>{i.current!==a&&(s(a),i.current=a)}),[a,i,s]),o}({defaultProp:r,onChange:o}),s=void 0!==n,l=s?n:a,c=NE(o);return[l,e.useCallback((e=>{if(s){const t="function"===typeof e?e(n):e;t!==n&&c(t)}else i(e)}),[s,n,i,c])]}GP.displayName="Presence";var qP=e.forwardRef(((e,t)=>(0,jl.jsx)(FE.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));qP.displayName="VisuallyHidden";var KP=qP,[XP,YP]=IE("Tooltip",[SP]),ZP=SP(),$P="TooltipProvider",QP=700,JP="tooltip.open",[eA,tA]=XP($P),nA=t=>{const{__scopeTooltip:n,delayDuration:r=QP,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=t,[s,l]=e.useState(!0),c=e.useRef(!1),u=e.useRef(0);return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),(0,jl.jsx)(eA,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:e.useCallback((()=>{window.clearTimeout(u.current),l(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>l(!0)),o)}),[o]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback((e=>{c.current=e}),[]),disableHoverableContent:a,children:i})};nA.displayName=$P;var rA="Tooltip",[oA,aA]=XP(rA),iA=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=t,c=tA(rA,t.__scopeTooltip),u=ZP(n),[d,f]=e.useState(null),h=function(t){const[n,r]=e.useState(qE());return UE((()=>{t||r((e=>null!==e&&void 0!==e?e:String(KE++)))}),[t]),t||(n?"radix-".concat(n):"")}(),p=e.useRef(0),m=null!==s&&void 0!==s?s:c.disableHoverableContent,g=null!==l&&void 0!==l?l:c.delayDuration,v=e.useRef(!1),[y=!1,b]=UP({prop:o,defaultProp:a,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(JP))):c.onClose(),null===i||void 0===i||i(e)}}),w=e.useMemo((()=>y?v.current?"delayed-open":"instant-open":"closed"),[y]),x=e.useCallback((()=>{window.clearTimeout(p.current),v.current=!1,b(!0)}),[b]),S=e.useCallback((()=>{window.clearTimeout(p.current),b(!1)}),[b]),C=e.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{v.current=!0,b(!0)}),g)}),[g,b]);return e.useEffect((()=>()=>window.clearTimeout(p.current)),[]),(0,jl.jsx)(LP,{...u,children:(0,jl.jsx)(oA,{scope:n,contentId:h,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:e.useCallback((()=>{c.isOpenDelayed?C():x()}),[c.isOpenDelayed,C,x]),onTriggerLeave:e.useCallback((()=>{m?S():window.clearTimeout(p.current)}),[S,m]),onOpen:x,onClose:S,disableHoverableContent:m,children:r})})};iA.displayName=rA;var sA="TooltipTrigger",lA=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,a=aA(sA,r),i=tA(sA,r),s=ZP(r),l=w_(n,e.useRef(null),a.onTriggerChange),c=e.useRef(!1),u=e.useRef(!1),d=e.useCallback((()=>c.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),(0,jl.jsx)(BP,{asChild:!0,...s,children:(0,jl.jsx)(FE.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:l,onPointerMove:ME(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(u.current||i.isPointerInTransitRef.current||(a.onTriggerEnter(),u.current=!0))})),onPointerLeave:ME(t.onPointerLeave,(()=>{a.onTriggerLeave(),u.current=!1})),onPointerDown:ME(t.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:ME(t.onFocus,(()=>{c.current||a.onOpen()})),onBlur:ME(t.onBlur,a.onClose),onClick:ME(t.onClick,a.onClose)})})}));lA.displayName=sA;var cA="TooltipPortal",[uA,dA]=XP(cA,{forceMount:void 0}),fA=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=aA(cA,t);return(0,jl.jsx)(uA,{scope:t,forceMount:n,children:(0,jl.jsx)(GP,{present:n||a.open,children:(0,jl.jsx)(WP,{asChild:!0,container:o,children:r})})})};fA.displayName=cA;var hA="TooltipContent",pA=e.forwardRef(((e,t)=>{const n=dA(hA,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=aA(hA,e.__scopeTooltip);return(0,jl.jsx)(GP,{present:r||i.open,children:i.disableHoverableContent?(0,jl.jsx)(yA,{side:o,...a,ref:t}):(0,jl.jsx)(mA,{side:o,...a,ref:t})})})),mA=e.forwardRef(((t,n)=>{const r=aA(hA,t.__scopeTooltip),o=tA(hA,t.__scopeTooltip),a=e.useRef(null),i=w_(n,a),[s,l]=e.useState(null),{trigger:c,onClose:u}=r,d=a.current,{onPointerInTransitChange:f}=o,h=e.useCallback((()=>{l(null),f(!1)}),[f]),p=e.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(a),f(!0)}),[f]);return e.useEffect((()=>()=>h()),[h]),e.useEffect((()=>{if(c&&d){const e=e=>p(e,d),t=e=>p(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[c,d,p,h]),e.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null===c||void 0===c?void 0:c.contains(t))||(null===d||void 0===d?void 0:d.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const e=t[a].x,s=t[a].y,l=t[i].x,c=t[i].y;s>r!==c>r&&n<(l-e)*(r-s)/(c-s)+e&&(o=!o)}return o}(n,s);r?h():o&&(h(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,d,s,u,h]),(0,jl.jsx)(yA,{...t,ref:i})})),[gA,vA]=XP(rA,{isInside:!1}),yA=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=t,c=aA(hA,r),u=ZP(r),{onClose:d}=c;return e.useEffect((()=>(document.addEventListener(JP,d),()=>document.removeEventListener(JP,d))),[d]),e.useEffect((()=>{if(c.trigger){const e=e=>{const t=e.target;null!==t&&void 0!==t&&t.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[c.trigger,d]),(0,jl.jsx)(HE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,jl.jsxs)(zP,{"data-state":c.stateAttribute,...u,...l,ref:n,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,jl.jsx)(C_,{children:o}),(0,jl.jsx)(gA,{scope:r,isInside:!0,children:(0,jl.jsx)(KP,{id:c.contentId,role:"tooltip",children:a||o})})]})})}));pA.displayName=hA;var bA="TooltipArrow",wA=e.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ZP(n);return vA(bA,n).isInside?null:(0,jl.jsx)(HP,{...o,...r,ref:t})}));wA.displayName=bA;var xA=nA,SA=pA;const CA=e=>{let{delayDuration:t=300,skipDelayDuration:n=100,...r}=e;return(0,jl.jsx)(xA,{delayDuration:t,skipDelayDuration:n,...r})},_A=iA,EA=lA,kA=e.forwardRef(((e,t)=>{let{className:n,sideOffset:r=4,...o}=e;return(0,jl.jsx)(SA,{ref:t,sideOffset:r,className:EE("z-50 overflow-hidden rounded-md bg-foreground text-white border border-background-dark px-2 py-1 text-[0.625rem] !leading-3 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...o})}));kA.displayName=SA.displayName;const PA=Rg.object({username:Rg.string().min(1,"Please enter your email"),password:Rg.string().min(1,"Please enter your password")}),AA=e=>{let{className:t}=e;return(0,jl.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",className:t,children:[(0,jl.jsx)("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2",clipPath:"url(#a)",children:(0,jl.jsx)("path",{d:"M7.99992 14.6663c3.68188 0 6.66668-2.9847 6.66668-6.66663 0-3.68189-2.9848-6.66666-6.66668-6.66666-3.6819 0-6.66667 2.98477-6.66667 6.66666 0 3.68193 2.98477 6.66663 6.66667 6.66663ZM8 5v3M8 10.667h.00667"})}),(0,jl.jsx)("defs",{children:(0,jl.jsx)("clipPath",{id:"a",children:(0,jl.jsx)("path",{fill:"#fff",d:"M0 0h16v16H0z"})})})]})},OA=()=>{const[t,n]=(0,e.useState)(!1),{setJwt:r}=(0,e.useContext)(sh),{register:o,handleSubmit:a,formState:{errors:i}}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.useRef(),r=e.useRef(),[o,a]=e.useState({isDirty:!1,isValidating:!1,isLoading:Ec(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,defaultValues:Ec(t.defaultValues)?void 0:t.defaultValues});n.current||(n.current={...iu(t),formState:o});const i=n.current.control;return i._options=t,gc({subject:i._subjects.state,next:e=>{pc(e,i._proxyFormState,i._updateFormState,!0)&&a({...i._formState})}}),e.useEffect((()=>i._disableForm(t.disabled)),[i,t.disabled]),e.useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==o.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,o.isDirty]),e.useEffect((()=>{t.values&&!Hc(t.values,r.current)?(i._reset(t.values,i._options.resetOptions),r.current=t.values,a((e=>({...e})))):i._resetDefaultValues()}),[t.values,i]),e.useEffect((()=>{t.errors&&i._setErrors(t.errors)}),[t.errors,i]),e.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),e.useEffect((()=>{t.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})}),[t.shouldUnregister,i]),n.current.formState=fc(o,i),n.current}({resolver:fu(PA),defaultValues:{username:"",password:""},mode:"onTouched"});return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsxs)(mp,{children:[(0,jl.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,jl.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:!0}),(0,jl.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@400..800&display=swap",rel:"stylesheet"})]}),(0,jl.jsxs)("div",{className:"flex min-h-screen flex-col bg-background text-foreground font-sans",children:[(0,jl.jsx)("header",{className:"border-b border-background-dark",children:(0,jl.jsx)("div",{className:"w-full px-5 lg:px-8 py-8",children:(0,jl.jsx)("a",{href:ch.CONDUKT_WEBSITE_URL,target:"_blank",children:(0,jl.jsx)("img",{src:"/logo.svg",alt:"Condukt Logo",height:18})})})}),(0,jl.jsxs)("main",{className:"relative isolate flex flex-1 flex-col items-center justify-center",children:[(0,jl.jsxs)("div",{className:"max-w-max w-full px-5 lg:px-8 py-30 text-center",children:[(0,jl.jsxs)("h1",{className:"mb-12 text-2xl",children:[(0,jl.jsx)("span",{className:"text-grey",children:"Welcome to Condukt!"}),(0,jl.jsx)("br",{}),(0,jl.jsx)("span",{children:"Enter your credentials to continue"})]}),(0,jl.jsxs)("form",{onSubmit:a((async e=>{n(!0);try{var t,o;const n=await uh.logIn(e.username,e.password);uh.refreshToken=null===n||void 0===n||null===(t=n.access_token)||void 0===t?void 0:t.token_plaintext,localStorage.setItem("refreshToken",null===n||void 0===n||null===(o=n.access_token)||void 0===o?void 0:o.token_plaintext),localStorage.setItem("username",null===n||void 0===n?void 0:n.user_name),r(await uh.getJWTToken()),window.location.reload()}catch(a){ih.error({message:"Unable to log in"})}n(!1)})),className:"mx-auto flex flex-col space-y-4 text-left",children:[(0,jl.jsxs)("div",{children:[(0,jl.jsx)(OE,{...o("username"),label:"Business Email",id:"email","aria-invalid":!!i.username,"aria-describedby":"username-error",containerClassName:"pr-4",children:i.username&&(0,jl.jsx)(CA,{children:(0,jl.jsxs)(_A,{children:[(0,jl.jsx)(EA,{children:(0,jl.jsx)(AA,{className:"text-error size-4"})}),(0,jl.jsx)(kA,{children:i.username.message})]})})}),i.username&&(0,jl.jsx)("p",{className:"sr-only",id:"username-error",role:"alert",children:i.username.message})]}),(0,jl.jsxs)("div",{children:[(0,jl.jsx)(TE,{...o("password"),label:"Password",id:"password","aria-invalid":!!i.password,"aria-describedby":"password-error",children:i.password&&(0,jl.jsx)(CA,{children:(0,jl.jsxs)(_A,{children:[(0,jl.jsx)(EA,{children:(0,jl.jsx)(AA,{className:"text-error size-4"})}),(0,jl.jsx)(kA,{children:i.password.message})]})})}),i.password&&(0,jl.jsx)("p",{className:"sr-only",id:"password-error",role:"alert",children:i.password.message})]}),(0,jl.jsxs)("p",{className:"flex justify-end gap-2 text-right text-sm !leading-4.5",children:[(0,jl.jsx)("span",{children:"Forgot password?"}),(0,jl.jsx)(y_,{})]}),(0,jl.jsx)(AE,{disabled:t,label:t?"Logging in...":"Log in",className:"!mt-6"})]})]}),(0,jl.jsx)("div",{className:"absolute inset-y-0 right-0 -z-10 overflow-hidden",children:(0,jl.jsx)("img",{src:"/condukt-shape-login-1.svg",alt:"",className:"translate-y-[-7.5%]"})}),(0,jl.jsx)("div",{className:"absolute bottom-0 left-0 -z-10",children:(0,jl.jsx)("img",{src:"/condukt-shape-login-2.svg",alt:""})})]})]})]})};const TA=function(){return(0,jl.jsx)(OA,{})};const MA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"};var IA=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:MA}))};const RA=e.forwardRef(IA);const FA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"};var NA=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:FA}))};const jA=e.forwardRef(NA);const DA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};var LA=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:DA}))};const BA=e.forwardRef(LA),zA=e=>{const t=(null===e||void 0===e?void 0:e.algorithm)?pe(e.algorithm):pe(co),n=Object.assign(Object.assign({},Qr),null===e||void 0===e?void 0:e.token);return ze(n,{override:null===e||void 0===e?void 0:e.token},t,Ti)};const HA=(e,t)=>{const n=null!==t&&void 0!==t?t:co(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!==t&&void 0!==t?t:e)),oo(r)),{controlHeight:o}),no(Object.assign(Object.assign({},n),{controlHeight:o})))},WA=(e,t)=>new Jr(e).setAlpha(t).toRgbString(),GA=(e,t)=>new Jr(e).lighten(t).toHexString(),VA=e=>{const t=Sr(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},UA=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:WA(r,.85),colorTextSecondary:WA(r,.65),colorTextTertiary:WA(r,.45),colorTextQuaternary:WA(r,.25),colorFill:WA(r,.18),colorFillSecondary:WA(r,.12),colorFillTertiary:WA(r,.08),colorFillQuaternary:WA(r,.04),colorBgElevated:GA(n,12),colorBgContainer:GA(n,8),colorBgLayout:GA(n,0),colorBgSpotlight:GA(n,26),colorBgBlur:WA(r,.04),colorBorder:GA(n,26),colorBorderSecondary:GA(n,19)}},qA=(e,t)=>{const n=Object.keys($r).map((t=>{const n=Sr(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),r=null!==t&&void 0!==t?t:co(e);return Object.assign(Object.assign(Object.assign({},r),n),eo(e,{generateColorPalettes:VA,generateNeutralColorPalettes:UA}))};const KA={defaultConfig:fo,defaultSeed:fo.token,useToken:function(){const[e,t,n]=ji();return{theme:e,token:t,hashId:n}},defaultAlgorithm:co,darkAlgorithm:qA,compactAlgorithm:HA,getDesignToken:zA};function XA(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,(function(e){(void 0!==e&&null!==e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(XA(e)):(0,na.isFragment)(e)&&e.props?r=r.concat(XA(e.props.children,n)):r.push(e))})),r}var YA=e.createContext(null);var ZA=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),$A="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,QA="undefined"!==typeof __webpack_require__.g&&__webpack_require__.g.Math===Math?__webpack_require__.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),JA="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(QA):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var eO=["top","right","bottom","left","width","height","size","weight"],tO="undefined"!==typeof MutationObserver,nO=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){JA(a)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){$A&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){$A&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;eO.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),rO=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},oO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||QA},aO=dO(0,0,0,0);function iO(e){return parseFloat(e)||0}function sO(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+iO(e["border-"+n+"-width"])}),0)}function lO(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return aO;var r=oO(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=iO(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,s=iO(r.width),l=iO(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=sO(r,"left","right")+a),Math.round(l+i)!==n&&(l-=sO(r,"top","bottom")+i)),!function(e){return e===oO(e).document.documentElement}(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return dO(o.left,o.top,s,l)}var cO="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof oO(e).SVGGraphicsElement}:function(e){return e instanceof oO(e).SVGElement&&"function"===typeof e.getBBox};function uO(e){return $A?cO(e)?function(e){var t=e.getBBox();return dO(0,0,t.width,t.height)}(e):lO(e):aO}function dO(e,t,n,r){return{x:e,y:t,width:n,height:r}}var fO=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=dO(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=uO(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),hO=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,i=Object.create(a.prototype);return rO(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}(t);rO(this,{target:e,contentRect:n})},pO=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ZA,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof oO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new fO(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof oO(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new hO(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),mO="undefined"!==typeof WeakMap?new WeakMap:new ZA,gO=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=nO.getInstance(),r=new pO(t,n,this);mO.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){gO.prototype[e]=function(){var t;return(t=mO.get(this))[e].apply(t,arguments)}}));const vO="undefined"!==typeof QA.ResizeObserver?QA.ResizeObserver:gO;var yO=new Map;var bO=new vO((function(e){e.forEach((function(e){var t,n=e.target;null===(t=yO.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var wO=function(e){J(n,e);var t=ne(n);function n(){return L(this,n),t.apply(this,arguments)}return z(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);function xO(t,n){var o=t.children,a=t.disabled,i=e.useRef(null),s=e.useRef(null),l=e.useContext(YA),c="function"===typeof o,u=c?o(i):o,d=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!c&&e.isValidElement(u)&&Ju(u),h=Qu(f?u.ref:null,i),m=function(){var e;return Yu(i.current)||(i.current&&"object"===r(i.current)?Yu(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Yu(s.current)};e.useImperativeHandle(n,(function(){return m()}));var g=e.useRef(t);g.current=t;var v=e.useCallback((function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,i=o.height,s=e.offsetWidth,c=e.offsetHeight,u=Math.floor(a),f=Math.floor(i);if(d.current.width!==u||d.current.height!==f||d.current.offsetWidth!==s||d.current.offsetHeight!==c){var h={width:u,height:f,offsetWidth:s,offsetHeight:c};d.current=h;var m=s===Math.round(a)?a:s,v=c===Math.round(i)?i:c,y=p(p({},h),{},{offsetWidth:m,offsetHeight:v});null===l||void 0===l||l(y,e,r),n&&Promise.resolve().then((function(){n(y,e)}))}}),[]);return e.useEffect((function(){var e,t,n=m();return n&&!a&&(e=n,t=v,yO.has(e)||(yO.set(e,new Set),bO.observe(e)),yO.get(e).add(t)),function(){return function(e,t){yO.has(e)&&(yO.get(e).delete(t),yO.get(e).size||(bO.unobserve(e),yO.delete(e)))}(n,v)}}),[i.current,a]),e.createElement(wO,{ref:s},f?e.cloneElement(u,{ref:h}):u)}const SO=e.forwardRef(xO);function CO(t,n){var r=t.children;return("function"===typeof r?[r]:XA(r)).map((function(r,o){var a=(null===r||void 0===r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(SO,Ge({},t,{key:a,ref:0===o?n:void 0}),r)}))}var _O=e.forwardRef(CO);_O.Collection=function(t){var n=t.children,r=t.onBatchResize,o=e.useRef(0),a=e.useRef([]),i=e.useContext(YA),s=e.useCallback((function(e,t,n){o.current+=1;var s=o.current;a.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){s===o.current&&(null===r||void 0===r||r(a.current),a.current=[])})),null===i||void 0===i||i(e,t,n)}),[r,i]);return e.createElement(YA.Provider,{value:s},n)};const EO=_O;var kO=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],PO=void 0;function AO(t,n){var r=t.prefixCls,o=t.invalidate,a=t.item,i=t.renderItem,s=t.responsive,l=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,f=t.style,h=t.children,m=t.display,g=t.order,v=t.component,y=void 0===v?"div":v,b=us(t,kO),w=s&&!m;function x(e){c(u,e)}e.useEffect((function(){return function(){x(null)}}),[]);var S,C=i&&a!==PO?i(a):h;o||(S={opacity:w?0:1,height:w?0:PO,overflowY:w?"hidden":PO,order:s?g:PO,pointerEvents:w?"none":PO,position:w?"absolute":PO});var _={};w&&(_["aria-hidden"]=!0);var E=e.createElement(y,Ge({className:$o()(!o&&r,d),style:p(p({},S),f)},_,b,{ref:n}),C);return s&&(E=e.createElement(EO,{onResize:function(e){x(e.offsetWidth)},disabled:l},E)),E}var OO=e.forwardRef(AO);OO.displayName="Item";const TO=OO;function MO(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}function IO(){var t=e.useRef(null);return function(e){t.current||(t.current=[],function(e){if("undefined"===typeof MessageChannel)Fd(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,Qo.unstable_batchedUpdates)((function(){t.current.forEach((function(e){e()})),t.current=null}))}))),t.current.push(e)}}function RO(t,n){var r=u(e.useState(n),2),o=r[0],a=r[1];return[o,MO((function(e){t((function(){a(e)}))}))]}var FO=e.createContext(null),NO=["component"],jO=["className"],DO=["className"],LO=function(t,n){var r=e.useContext(FO);if(!r){var o=t.component,a=void 0===o?"div":o,i=us(t,NO);return e.createElement(a,Ge({},i,{ref:n}))}var s=r.className,l=us(r,jO),c=t.className,u=us(t,DO);return e.createElement(FO.Provider,{value:null},e.createElement(TO,Ge({ref:n,className:$o()(s,c)},l,u)))},BO=e.forwardRef(LO);BO.displayName="RawItem";const zO=BO;var HO=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],WO="responsive",GO="invalidate";function VO(e){return"+ ".concat(e.length," ...")}function UO(t,n){var r=t.prefixCls,o=void 0===r?"rc-overflow":r,a=t.data,i=void 0===a?[]:a,s=t.renderItem,l=t.renderRawItem,c=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,h=t.ssr,m=t.style,g=t.className,v=t.maxCount,y=t.renderRest,b=t.renderRawRest,w=t.suffix,x=t.component,S=void 0===x?"div":x,C=t.itemComponent,_=t.onVisibleChange,E=us(t,HO),k="full"===h,P=IO(),A=u(RO(P,null),2),O=A[0],T=A[1],M=O||0,I=u(RO(P,new Map),2),R=I[0],F=I[1],N=u(RO(P,0),2),j=N[0],D=N[1],L=u(RO(P,0),2),B=L[0],z=L[1],H=u(RO(P,0),2),W=H[0],G=H[1],V=u((0,e.useState)(null),2),U=V[0],q=V[1],K=u((0,e.useState)(null),2),X=K[0],Y=K[1],Z=e.useMemo((function(){return null===X&&k?Number.MAX_SAFE_INTEGER:X||0}),[X,O]),$=u((0,e.useState)(!1),2),Q=$[0],J=$[1],ee="".concat(o,"-item"),te=Math.max(j,B),ne=v===WO,re=i.length&&ne,oe=v===GO,ae=re||"number"===typeof v&&i.length>v,ie=(0,e.useMemo)((function(){var e=i;return re?e=null===O&&k?i:i.slice(0,Math.min(i.length,M/f)):"number"===typeof v&&(e=i.slice(0,v)),e}),[i,f,O,v,re]),se=(0,e.useMemo)((function(){return re?i.slice(Z+1):i.slice(ie.length)}),[i,ie,re,Z]),le=(0,e.useCallback)((function(e,t){var n;return"function"===typeof c?c(e):null!==(n=c&&(null===e||void 0===e?void 0:e[c]))&&void 0!==n?n:t}),[c]),ce=(0,e.useCallback)(s||function(e){return e},[s]);function ue(e,t,n){(X!==e||void 0!==t&&t!==U)&&(Y(e),n||(J(e<i.length-1),null===_||void 0===_||_(e)),void 0!==t&&q(t))}function de(e,t){F((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function fe(e){return R.get(le(ie[e],e))}Oe((function(){if(M&&"number"===typeof te&&ie){var e=W,t=ie.length,n=t-1;if(!t)return void ue(0,null);for(var r=0;r<t;r+=1){var o=fe(r);if(k&&(o=o||0),void 0===o){ue(r-1,void 0,!0);break}if(e+=o,0===n&&e<=M||r===n-1&&e+fe(n)<=M){ue(n,null);break}if(e+te>M){ue(r-1,e-o-W+B);break}}w&&fe(0)+W>M&&q(null)}}),[M,R,B,W,le,ie]);var he=Q&&!!se.length,pe={};null!==U&&re&&(pe={position:"absolute",left:U,top:0});var me,ge={prefixCls:ee,responsive:re,component:C,invalidate:oe},ve=l?function(t,n){var r=le(t,n);return e.createElement(FO.Provider,{key:r,value:p(p({},ge),{},{order:n,item:t,itemKey:r,registerSize:de,display:n<=Z})},l(t,n))}:function(t,n){var r=le(t,n);return e.createElement(TO,Ge({},ge,{order:n,key:r,item:t,renderItem:ce,itemKey:r,registerSize:de,display:n<=Z}))},ye={order:he?Z:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:function(e,t){z(t),D(B)},display:he};if(b)b&&(me=e.createElement(FO.Provider,{value:p(p({},ge),ye)},b(se)));else{var be=y||VO;me=e.createElement(TO,Ge({},ge,ye),"function"===typeof be?be(se):be)}var we=e.createElement(S,Ge({className:$o()(!oe&&o,g),style:m,ref:n},E),ie.map(ve),ae?me:null,w&&e.createElement(TO,Ge({},ge,{responsive:ne,responsiveDisabled:!re,order:Z,className:"".concat(ee,"-suffix"),registerSize:function(e,t){G(t)},display:!0,style:pe}),w));return ne&&(we=e.createElement(EO,{onResize:function(e,t){T(t.clientWidth)},disabled:!re},we)),we}var qO=e.forwardRef(UO);qO.displayName="Overflow",qO.Item=zO,qO.RESPONSIVE=WO,qO.INVALIDATE=GO;const KO=qO;function XO(e){return void 0!==e}function YO(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=u(rd((function(){return XO(o)?o:XO(r)?"function"===typeof r?r():r:"function"===typeof e?e():e})),2),l=s[0],c=s[1],d=void 0!==o?o:l,f=i?i(d):d,h=MO(a),p=u(rd([d]),2),m=p[0],g=p[1];return Ae((function(){var e=m[0];l!==e&&h(l,e)}),[m]),Ae((function(){XO(o)||c(o)}),[o]),[f,MO((function(e,t){c(e,t),g([d],t)}))]}var ZO=e.createContext(null);function $O(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function QO(t){return $O(e.useContext(ZO),t)}var JO=["children","locked"],eT=e.createContext(null);function tT(t){var n=t.children,r=t.locked,o=us(t,JO),a=e.useContext(eT),i=O((function(){return function(e,t){var n=p({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(a,o)}),[a,o],(function(e,t){return!r&&(e[0]!==t[0]||!D(e[1],t[1],!0))}));return e.createElement(eT.Provider,{value:i},n)}var nT=[],rT=e.createContext(null);function oT(){return e.useContext(rT)}var aT=e.createContext(nT);function iT(t){var n=e.useContext(aT);return e.useMemo((function(){return void 0!==t?[].concat(f(n),[t]):n}),[n,t])}var sT=e.createContext(null);const lT=e.createContext({}),cT=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1};function uT(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(cT(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function dT(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=f(e.querySelectorAll("*")).filter((function(e){return uT(e,t)}));return uT(e,t)&&n.unshift(e),n}var fT=ef.LEFT,hT=ef.RIGHT,pT=ef.UP,mT=ef.DOWN,gT=ef.ENTER,vT=ef.ESC,yT=ef.HOME,bT=ef.END,wT=[pT,mT,fT,hT];function xT(e,t){return dT(e,!0).filter((function(e){return t.has(e)}))}function ST(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=xT(e,t),a=o.length,i=o.findIndex((function(e){return n===e}));return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var CT=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var a=document.querySelector("[data-menu-id='".concat($O(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))})),{elements:n,key2element:r,element2key:o}};function _T(t,n,r,o,i,s,l,c,u,d){var f=e.useRef(),h=e.useRef();h.current=n;var p=function(){Fd.cancel(f.current)};return e.useEffect((function(){return function(){p()}}),[]),function(e){var m=e.which;if([].concat(wT,[gT,vT,yT,bT]).includes(m)){var g=s(),v=CT(g,o),y=v,b=y.elements,w=y.key2element,x=y.element2key,S=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(w.get(n),b),C=x.get(S),_=function(e,t,n,r){var o,i,s,l,c="prev",u="next",d="children",f="parent";if("inline"===e&&r===gT)return{inlineTrigger:!0};var h=(a(o={},pT,c),a(o,mT,u),o),p=(a(i={},fT,n?u:c),a(i,hT,n?c:u),a(i,mT,d),a(i,gT,d),i),m=(a(s={},pT,c),a(s,mT,u),a(s,gT,d),a(s,vT,f),a(s,fT,n?d:f),a(s,hT,n?f:d),s);switch(null===(l={inline:h,horizontal:p,vertical:m,inlineSub:h,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(t,1===l(C,!0).length,r,m);if(!_&&m!==yT&&m!==bT)return;(wT.includes(m)||[yT,bT].includes(m))&&e.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var r=x.get(e);c(r),p(),f.current=Fd((function(){h.current===r&&t.focus()}))}};if([yT,bT].includes(m)||_.sibling||!S){var k,P,A=xT(k=S&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(S):i.current,b);P=m===yT?A[0]:m===bT?A[A.length-1]:ST(k,b,S,_.offset),E(P)}else if(_.inlineTrigger)u(C);else if(_.offset>0)u(C,!0),p(),f.current=Fd((function(){v=CT(g,o);var e=S.getAttribute("aria-controls"),t=ST(document.getElementById(e),v.elements);E(t)}),5);else if(_.offset<0){var O=l(C,!0),T=O[O.length-2],M=w.get(T);u(T,!1),E(M)}}null===d||void 0===d||d(e)}}var ET="__RC_UTIL_PATH_SPLIT__",kT=function(e){return e.join(ET)},PT="rc-menu-more";function AT(){var t=u(e.useState({}),2)[1],n=(0,e.useRef)(new Map),r=(0,e.useRef)(new Map),o=u(e.useState([]),2),a=o[0],i=o[1],s=(0,e.useRef)(0),l=(0,e.useRef)(!1),c=(0,e.useCallback)((function(e,o){var a=kT(o);r.current.set(a,e),n.current.set(e,a),s.current+=1;var i,c=s.current;i=function(){c===s.current&&(l.current||t({}))},Promise.resolve().then(i)}),[]),d=(0,e.useCallback)((function(e,t){var o=kT(t);r.current.delete(o),n.current.delete(e)}),[]),h=(0,e.useCallback)((function(e){i(e)}),[]),p=(0,e.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(ET);return t&&a.includes(o[0])&&o.unshift(PT),o}),[a]),m=(0,e.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return p(e,!0).includes(t)}))}),[p]),g=(0,e.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(ET),o=new Set;return f(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return e.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:c,unregisterPath:d,refreshOverflowKeys:h,isSubPathKey:m,getKeyPath:p,getKeys:function(){var e=f(n.current.keys());return a.length&&e.push(PT),e},getSubPathKeys:g}}function OT(t){var n=e.useRef(t);n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return t?r:void 0}var TT=Math.random().toFixed(5).toString().slice(2),MT=0;function IT(e,t){var n=p({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}function RT(t,n,r,o){var a=e.useContext(eT),i=a.activeKey,s=a.onActive,l=a.onInactive,c={active:i===t};return n||(c.onMouseEnter=function(e){null===r||void 0===r||r({key:t,domEvent:e}),s(t)},c.onMouseLeave=function(e){null===o||void 0===o||o({key:t,domEvent:e}),l(t)}),c}function FT(t){var n=e.useContext(eT),r=n.mode,o=n.rtl,a=n.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:t*a}:{paddingLeft:t*a}}function NT(t){var n,r=t.icon,o=t.props,a=t.children;return null===r||!1===r?null:("function"===typeof r?n=e.createElement(r,p({},o)):"boolean"!==typeof r&&(n=r),n||a||null)}var jT=["item"];function DT(e){var t=e.item,n=us(e,jT);return Object.defineProperty(n,"item",{get:function(){return j(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var LT=["title","attribute","elementRef"],BT=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],zT=["active"],HT=function(t){J(r,t);var n=ne(r);function r(){return L(this,r),n.apply(this,arguments)}return z(r,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.attribute,o=t.elementRef,a=IT(us(t,LT),["eventKey","popupClassName","popupOffset","onTitleClick"]);return j(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(KO.Item,Ge({},r,{title:"string"===typeof n?n:void 0},a,{ref:o}))}}]),r}(e.Component),WT=e.forwardRef((function(t,n){var r,o=t.style,i=t.className,s=t.eventKey,l=(t.warnKey,t.disabled),c=t.itemIcon,u=t.children,d=t.role,h=t.onMouseEnter,m=t.onMouseLeave,g=t.onClick,v=t.onKeyDown,y=t.onFocus,b=us(t,BT),w=QO(s),x=e.useContext(eT),S=x.prefixCls,C=x.onItemClick,_=x.disabled,E=x.overflowDisabled,k=x.itemIcon,P=x.selectedKeys,A=x.onActive,O=e.useContext(lT)._internalRenderMenuItem,T="".concat(S,"-item"),M=e.useRef(),I=e.useRef(),R=_||l,F=Qu(n,I),N=iT(s);var j=function(e){return{key:s,keyPath:f(N).reverse(),item:M.current,domEvent:e}},D=c||k,L=RT(s,R,h,m),B=L.active,z=us(L,zT),H=P.includes(s),W=FT(N.length),G={};"option"===t.role&&(G["aria-selected"]=H);var V=e.createElement(HT,Ge({ref:M,elementRef:F,role:null===d?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":E&&w?null:w},b,z,G,{component:"li","aria-disabled":l,style:p(p({},W),o),className:$o()(T,(r={},a(r,"".concat(T,"-active"),B),a(r,"".concat(T,"-selected"),H),a(r,"".concat(T,"-disabled"),R),r),i),onClick:function(e){if(!R){var t=j(e);null===g||void 0===g||g(DT(t)),C(t)}},onKeyDown:function(e){if(null===v||void 0===v||v(e),e.which===ef.ENTER){var t=j(e);null===g||void 0===g||g(DT(t)),C(t)}},onFocus:function(e){A(s),null===y||void 0===y||y(e)}}),u,e.createElement(NT,{props:p(p({},t),{},{isSelected:H}),icon:D}));return O&&(V=O(V,t,{selected:H})),V}));function GT(t,n){var r=t.eventKey,o=oT(),a=iT(r);return e.useEffect((function(){if(o)return o.registerPath(r,a),function(){o.unregisterPath(r,a)}}),[a]),o?null:e.createElement(WT,Ge({},t,{ref:n}))}const VT=e.forwardRef(GT);var UT=["className","children"],qT=function(t,n){var r=t.className,o=t.children,a=us(t,UT),i=e.useContext(eT),s=i.prefixCls,l=i.mode,c=i.rtl;return e.createElement("ul",Ge({className:$o()(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===l?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},KT=e.forwardRef(qT);KT.displayName="SubMenuList";const XT=KT;function YT(t,n){return XA(t).map((function(t,r){if(e.isValidElement(t)){var o,a,i=t.key,s=null!==(o=null===(a=t.props)||void 0===a?void 0:a.eventKey)&&void 0!==o?o:i;(null===s||void 0===s)&&(s="tmp_key-".concat([].concat(f(n),[r]).join("-")));var l={key:s,eventKey:s};return e.cloneElement(t,l)}return t}))}const ZT=e.createContext(null);var $T,QT=[];function JT(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,a=n.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var i=getComputedStyle(e);a.scrollbarColor=i.scrollbarColor,a.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";A("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(x7){console.error(x7),r=l,o=c}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,h=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),P(t),{width:f,height:h}}function eM(e){return"undefined"===typeof document?0:((e||void 0===$T)&&($T=JT()),$T.width)}function tM(e){return"undefined"!==typeof document&&e&&e instanceof Element?JT(e):{width:0,height:0}}var nM="rc-util-locker-".concat(Date.now()),rM=0;function oM(t){var n=!!t,r=u(e.useState((function(){return rM+=1,"".concat(nM,"_").concat(rM)})),1)[0];Oe((function(){if(n){var e=tM(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;A("\nhtml body {\n  overflow-y: hidden;\n  ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else P(r);return function(){P(r)}}),[n,r])}var aM=!1;var iM=function(e){return!1!==e&&(g()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)},sM=e.forwardRef((function(t,n){var r=t.open,o=t.autoLock,a=t.getContainer,i=(t.debug,t.autoDestroy),s=void 0===i||i,l=t.children,c=u(e.useState(r),2),d=c[0],h=c[1],p=d||r;e.useEffect((function(){(s||r)&&h(r)}),[r,s]);var m=u(e.useState((function(){return iM(a)})),2),v=m[0],y=m[1];e.useEffect((function(){var e=iM(a);y(null!==e&&void 0!==e?e:null)}));var b=function(t,n){var r=u(e.useState((function(){return g()?document.createElement("div"):null})),1)[0],o=e.useRef(!1),a=e.useContext(ZT),i=u(e.useState(QT),2),s=i[0],l=i[1],c=a||(o.current?void 0:function(e){l((function(t){return[e].concat(f(t))}))});function d(){r.parentElement||document.body.appendChild(r),o.current=!0}function h(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}return Oe((function(){return t?a?a(d):d():h(),h}),[t]),Oe((function(){s.length&&(s.forEach((function(e){return e()})),l(QT))}),[s]),[r,c]}(p&&!v),w=u(b,2),x=w[0],S=w[1],C=null!==v&&void 0!==v?v:x;oM(o&&r&&g()&&(C===x||C===document.body));var _=null;l&&Ju(l)&&n&&(_=l.ref);var E=Qu(_,n);if(!p||!g()||void 0===v)return null;var k,P=!1===C||("boolean"===typeof k&&(aM=k),aM),A=l;return n&&(A=e.cloneElement(l,{ref:E})),e.createElement(ZT.Provider,{value:S},P?A:(0,Qo.createPortal)(A,C))}));const lM=sM;var cM=0;var uM=p({},t).useId;const dM=uM?function(e){var t=uM();return e||t}:function(t){var n=u(e.useState("ssr-id"),2),r=n[0],o=n[1];return e.useEffect((function(){var e=cM;cM+=1,o("rc_unique_".concat(e))}),[]),t||r},fM=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};function hM(t){var n=t.prefixCls,r=t.align,o=t.arrow,a=t.arrowPos,i=o||{},s=i.className,l=i.content,c=a.x,u=void 0===c?0:c,d=a.y,f=void 0===d?0:d,h=e.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(!1!==r.autoArrow){var m=r.points[0],g=r.points[1],v=m[0],y=m[1],b=g[0],w=g[1];v!==b&&["t","b"].includes(v)?"t"===v?p.top=0:p.bottom=0:p.top=f,y!==w&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return e.createElement("div",{ref:h,className:$o()("".concat(n,"-arrow"),s),style:p},l)}function pM(t){var n=t.prefixCls,r=t.open,o=t.zIndex,a=t.mask,i=t.motion;return a?e.createElement(Qd,Ge({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:$o()("".concat(n,"-mask"),r)})})):null}var mM=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));const gM=mM;var vM=e.forwardRef((function(t,n){var r=t.popup,o=t.className,a=t.prefixCls,i=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,d=t.keepDom,f=t.fresh,h=t.onClick,m=t.mask,g=t.arrow,v=t.arrowPos,y=t.align,b=t.motion,w=t.maskMotion,x=t.forceRender,S=t.getPopupContainer,C=t.autoDestroy,_=t.portal,E=t.zIndex,k=t.onMouseEnter,P=t.onMouseLeave,A=t.onPointerEnter,O=t.ready,T=t.offsetX,M=t.offsetY,I=t.offsetR,R=t.offsetB,F=t.onAlign,N=t.onPrepare,j=t.stretch,D=t.targetWidth,L=t.targetHeight,B="function"===typeof r?r():r,z=c||d,H=(null===S||void 0===S?void 0:S.length)>0,W=u(e.useState(!S||!H),2),G=W[0],V=W[1];if(Oe((function(){!G&&H&&s&&V(!0)}),[G,H,s]),!G)return null;var U="auto",q={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(O||!c){var K,X=y.points,Y=y.dynamicInset||(null===(K=y._experimental)||void 0===K?void 0:K.dynamicInset),Z=Y&&"r"===X[0][1],$=Y&&"b"===X[0][0];Z?(q.right=I,q.left=U):(q.left=T,q.right=U),$?(q.bottom=R,q.top=U):(q.top=M,q.bottom=U)}var Q={};return j&&(j.includes("height")&&L?Q.height=L:j.includes("minHeight")&&L&&(Q.minHeight=L),j.includes("width")&&D?Q.width=D:j.includes("minWidth")&&D&&(Q.minWidth=D)),c||(Q.pointerEvents="none"),e.createElement(_,{open:x||z,getContainer:S&&function(){return S(s)},autoDestroy:C},e.createElement(pM,{prefixCls:a,open:c,zIndex:E,mask:m,motion:w}),e.createElement(EO,{onResize:F,disabled:!c},(function(t){return e.createElement(Qd,Ge({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:N,onEnterPrepare:N,visible:c,onVisibleChanged:function(e){var t;null===b||void 0===b||null===(t=b.onVisibleChanged)||void 0===t||t.call(b,e),l(e)}}),(function(r,s){var l=r.className,u=r.style,d=$o()(a,l,o);return e.createElement("div",{ref:$u(t,n,s),className:d,style:p(p(p(p({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},q),Q),u),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:k,onMouseLeave:P,onPointerEnter:A,onClick:h},g&&e.createElement(hM,{prefixCls:a,arrow:g,arrowPos:v,align:y}),e.createElement(gM,{cache:!c&&!f},B))}))})))}));const yM=vM;var bM=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,a=Ju(r),i=e.useCallback((function(e){Zu(n,o?o(e):e)}),[o]),s=Qu(i,r.ref);return a?e.cloneElement(r,{ref:s}):r}));const wM=bM;const xM=e.createContext(null);function SM(e){return e?Array.isArray(e)?e:[e]:[]}function CM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function _M(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function EM(e){return e.ownerDocument.defaultView}function kM(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=EM(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function PM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function AM(e){return PM(parseFloat(e),0)}function OM(e,t){var n=p({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=EM(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,h=e.clientWidth,p=AM(a),m=AM(i),g=AM(s),v=AM(l),y=PM(Math.round(c.width/f*1e3)/1e3),b=PM(Math.round(c.height/u*1e3)/1e3),w=(f-h-g-v)*y,x=(u-d-p-m)*b,S=p*b,C=m*b,_=g*y,E=v*y,k=0,P=0;if("clip"===r){var A=AM(o);k=A*y,P=A*b}var O=c.x+_-k,T=c.y+S-P,M=O+c.width+2*k-_-E-w,I=T+c.height+2*P-S-C-x;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,I)}})),n}function TM(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function MM(e,t){var n=u(t||[],2),r=n[0],o=n[1];return[TM(e.width,r),TM(e.height,o)]}function IM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function RM(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function FM(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var NM=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const jM=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lM,n=e.forwardRef((function(n,r){var o=n.prefixCls,a=void 0===o?"rc-trigger-popup":o,i=n.children,s=n.action,l=void 0===s?"hover":s,c=n.showAction,d=n.hideAction,h=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,y=n.mouseEnterDelay,b=n.mouseLeaveDelay,w=void 0===b?.1:b,x=n.focusDelay,S=n.blurDelay,C=n.mask,_=n.maskClosable,E=void 0===_||_,k=n.getPopupContainer,P=n.forceRender,A=n.autoDestroy,O=n.destroyPopupOnHide,T=n.popup,M=n.popupClassName,I=n.popupStyle,R=n.popupPlacement,F=n.builtinPlacements,N=void 0===F?{}:F,j=n.popupAlign,D=n.zIndex,L=n.stretch,B=n.getPopupClassNameFromAlign,z=n.fresh,H=n.alignPoint,W=n.onPopupClick,G=n.onPopupAlign,V=n.arrow,U=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,X=n.popupAnimation,Y=n.maskTransitionName,Z=n.maskAnimation,$=n.className,Q=n.getTriggerDOMNode,J=us(n,NM),ee=A||O||!1,te=u(e.useState(!1),2),ne=te[0],re=te[1];Oe((function(){re(fM())}),[]);var oe=e.useRef({}),ae=e.useContext(xM),ie=e.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null===ae||void 0===ae||ae.registerSubPopup(e,t)}}}),[ae]),se=dM(),le=u(e.useState(null),2),ce=le[0],ue=le[1],de=MO((function(e){Xu(e)&&ce!==e&&ue(e),null===ae||void 0===ae||ae.registerSubPopup(se,e)})),fe=u(e.useState(null),2),he=fe[0],pe=fe[1],me=e.useRef(null),ge=MO((function(e){Xu(e)&&he!==e&&(pe(e),me.current=e)})),ve=e.Children.only(i),ye=(null===ve||void 0===ve?void 0:ve.props)||{},be={},we=MO((function(e){var t,n,r=he;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=Ts(r))||void 0===t?void 0:t.host)===e||e===r||(null===ce||void 0===ce?void 0:ce.contains(e))||(null===(n=Ts(ce))||void 0===n?void 0:n.host)===e||e===ce||Object.values(oe.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),xe=_M(a,U,X,K),Se=_M(a,q,Z,Y),Ce=u(e.useState(m||!1),2),_e=Ce[0],Ee=Ce[1],ke=null!==h&&void 0!==h?h:_e,Pe=MO((function(e){void 0===h&&Ee(e)}));Oe((function(){Ee(h||!1)}),[h]);var Ae=e.useRef(ke);Ae.current=ke;var Te=e.useRef([]);Te.current=[];var Me=MO((function(e){var t;Pe(e),(null!==(t=Te.current[Te.current.length-1])&&void 0!==t?t:ke)!==e&&(Te.current.push(e),null===g||void 0===g||g(e))})),Ie=e.useRef(),Re=function(){clearTimeout(Ie.current)},Fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Re(),0===t?Me(e):Ie.current=setTimeout((function(){Me(e)}),1e3*t)};e.useEffect((function(){return Re}),[]);var Ne=u(e.useState(!1),2),je=Ne[0],De=Ne[1];Oe((function(e){e&&!ke||De(!0)}),[ke]);var Le=u(e.useState(null),2),Be=Le[0],ze=Le[1],He=u(e.useState([0,0]),2),We=He[0],Ge=He[1],Ve=function(e){Ge([e.clientX,e.clientY])},Ue=function(t,n,r,o,a,i,s){var l=u(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),2),c=l[0],d=l[1],f=e.useRef(0),h=e.useMemo((function(){return n?kM(n):[]}),[n]),m=e.useRef({});t||(m.current={});var g=MO((function(){if(n&&r&&t){var e,l,c,f=n,g=f.ownerDocument,v=EM(f).getComputedStyle(f),y=v.width,b=v.height,w=v.position,x=f.style.left,S=f.style.top,C=f.style.right,_=f.style.bottom,E=f.style.overflow,k=p(p({},a[o]),i),P=g.createElement("div");if(null===(e=f.parentElement)||void 0===e||e.appendChild(P),P.style.left="".concat(f.offsetLeft,"px"),P.style.top="".concat(f.offsetTop,"px"),P.style.position=w,P.style.height="".concat(f.offsetHeight,"px"),P.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(r))c={x:r[0],y:r[1],width:0,height:0};else{var A=r.getBoundingClientRect();c={x:A.x,y:A.y,width:A.width,height:A.height}}var O=f.getBoundingClientRect(),T=g.documentElement,M=T.clientWidth,I=T.clientHeight,R=T.scrollWidth,F=T.scrollHeight,N=T.scrollTop,j=T.scrollLeft,D=O.height,L=O.width,B=c.height,z=c.width,H={left:0,top:0,right:M,bottom:I},W={left:-j,top:-N,right:R-j,bottom:F-N},G=k.htmlRegion,V="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=V);var q=G===U,K=OM(W,h),X=OM(H,h),Y=G===V?X:K,Z=q?X:Y;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var $=f.getBoundingClientRect();f.style.left=x,f.style.top=S,f.style.right=C,f.style.bottom=_,f.style.overflow=E,null===(l=f.parentElement)||void 0===l||l.removeChild(P);var Q=PM(Math.round(L/parseFloat(y)*1e3)/1e3),J=PM(Math.round(D/parseFloat(b)*1e3)/1e3);if(0===Q||0===J||Xu(r)&&!cT(r))return;var ee=k.offset,te=k.targetOffset,ne=u(MM(O,ee),2),re=ne[0],oe=ne[1],ae=u(MM(c,te),2),ie=ae[0],se=ae[1];c.x-=ie,c.y-=se;var le=u(k.points||[],2),ce=le[0],ue=IM(le[1]),de=IM(ce),fe=RM(c,ue),he=RM(O,de),pe=p({},k),me=fe.x-he.x+re,ge=fe.y-he.y+oe;function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y,r=O.x+e,o=O.y+t,a=r+L,i=o+D,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(a,n.right),u=Math.min(i,n.bottom);return Math.max(0,(c-s)*(u-l))}var ve,ye,be,we,xe=ct(me,ge),Se=ct(me,ge,X),Ce=RM(c,["t","l"]),_e=RM(O,["t","l"]),Ee=RM(c,["b","r"]),ke=RM(O,["b","r"]),Pe=k.overflow||{},Ae=Pe.adjustX,Oe=Pe.adjustY,Te=Pe.shiftX,Me=Pe.shiftY,Ie=function(e){return"boolean"===typeof e?e:e>=0};function ut(){ve=O.y+ge,ye=ve+D,be=O.x+me,we=be+L}ut();var Re=Ie(Oe),Fe=de[0]===ue[0];if(Re&&"t"===de[0]&&(ye>Z.bottom||m.current.bt)){var Ne=ge;Fe?Ne-=D-B:Ne=Ce.y-ke.y-oe;var je=ct(me,Ne),De=ct(me,Ne,X);je>xe||je===xe&&(!q||De>=Se)?(m.current.bt=!0,ge=Ne,oe=-oe,pe.points=[FM(de,0),FM(ue,0)]):m.current.bt=!1}if(Re&&"b"===de[0]&&(ve<Z.top||m.current.tb)){var Le=ge;Fe?Le+=D-B:Le=Ee.y-_e.y-oe;var Be=ct(me,Le),ze=ct(me,Le,X);Be>xe||Be===xe&&(!q||ze>=Se)?(m.current.tb=!0,ge=Le,oe=-oe,pe.points=[FM(de,0),FM(ue,0)]):m.current.tb=!1}var He=Ie(Ae),We=de[1]===ue[1];if(He&&"l"===de[1]&&(we>Z.right||m.current.rl)){var Ge=me;We?Ge-=L-z:Ge=Ce.x-ke.x-re;var Ve=ct(Ge,ge),Ue=ct(Ge,ge,X);Ve>xe||Ve===xe&&(!q||Ue>=Se)?(m.current.rl=!0,me=Ge,re=-re,pe.points=[FM(de,1),FM(ue,1)]):m.current.rl=!1}if(He&&"r"===de[1]&&(be<Z.left||m.current.lr)){var qe=me;We?qe+=L-z:qe=Ee.x-_e.x-re;var Ke=ct(qe,ge),Xe=ct(qe,ge,X);Ke>xe||Ke===xe&&(!q||Xe>=Se)?(m.current.lr=!0,me=qe,re=-re,pe.points=[FM(de,1),FM(ue,1)]):m.current.lr=!1}ut();var Ye=!0===Te?0:Te;"number"===typeof Ye&&(be<X.left&&(me-=be-X.left-re,c.x+z<X.left+Ye&&(me+=c.x-X.left+z-Ye)),we>X.right&&(me-=we-X.right-re,c.x>X.right-Ye&&(me+=c.x-X.right+Ye)));var Ze=!0===Me?0:Me;"number"===typeof Ze&&(ve<X.top&&(ge-=ve-X.top-oe,c.y+B<X.top+Ze&&(ge+=c.y-X.top+B-Ze)),ye>X.bottom&&(ge-=ye-X.bottom-oe,c.y>X.bottom-Ze&&(ge+=c.y-X.bottom+Ze)));var $e=O.x+me,Qe=$e+L,Je=O.y+ge,et=Je+D,tt=c.x,nt=tt+z,rt=c.y,ot=rt+B,at=(Math.max($e,tt)+Math.min(Qe,nt))/2-$e,it=(Math.max(Je,rt)+Math.min(et,ot))/2-Je;null===s||void 0===s||s(n,pe);var st=$.right-O.x-(me+O.width),lt=$.bottom-O.y-(ge+O.height);d({ready:!0,offsetX:me/Q,offsetY:ge/J,offsetR:st/Q,offsetB:lt/J,arrowX:at/Q,arrowY:it/J,scaleX:Q,scaleY:J,align:pe})}})),v=function(){d((function(e){return p(p({},e),{},{ready:!1})}))};return Oe(v,[o]),Oe((function(){t||v()}),[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&g()}))}]}(ke,ce,H?We:he,R,N,j,G),qe=u(Ue,11),Ke=qe[0],Xe=qe[1],Ye=qe[2],Ze=qe[3],$e=qe[4],Qe=qe[5],Je=qe[6],et=qe[7],tt=qe[8],nt=qe[9],rt=qe[10],ot=function(t,n,r,o){return e.useMemo((function(){var e=SM(null!==r&&void 0!==r?r:n),a=SM(null!==o&&void 0!==o?o:n),i=new Set(e),s=new Set(a);return t&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]}),[t,n,r,o])}(ne,l,c,d),at=u(ot,2),it=at[0],st=at[1],lt=it.has("click"),ct=st.has("click")||st.has("contextMenu"),ut=MO((function(){je||rt()}));!function(e,t,n,r,o){Oe((function(){if(e&&t&&n){var a=n,i=kM(t),s=kM(a),l=EM(a),c=new Set([l].concat(f(i),f(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(ke,he,ce,ut,(function(){Ae.current&&H&&ct&&Fe(!1)})),Oe((function(){ut()}),[We,R]),Oe((function(){!ke||null!==N&&void 0!==N&&N[R]||ut()}),[JSON.stringify(j)]);var dt=e.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(CM(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(N,a,nt,H);return $o()(e,null===B||void 0===B?void 0:B(nt))}),[nt,B,N,a,H]);e.useImperativeHandle(r,(function(){return{nativeElement:me.current,forceAlign:ut}}));var ft=u(e.useState(0),2),ht=ft[0],pt=ft[1],mt=u(e.useState(0),2),gt=mt[0],vt=mt[1],yt=function(){if(L&&he){var e=he.getBoundingClientRect();pt(e.width),vt(e.height)}};function bt(e,t,n,r){be[e]=function(o){var a;null===r||void 0===r||r(o),Fe(t,n);for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];null===(a=ye[e])||void 0===a||a.call.apply(a,[ye,o].concat(s))}}Oe((function(){Be&&(rt(),Be(),ze(null))}),[Be]),(lt||ct)&&(be.onClick=function(e){var t;Ae.current&&ct?Fe(!1):!Ae.current&&lt&&(Ve(e),Fe(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onClick)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),function(t,n,r,o,a,i,s,l){var c=e.useRef(t);c.current=t,e.useEffect((function(){if(n&&o&&(!a||i)){var e=function(e){var t=e.target;c.current&&!s(t)&&l(!1)},t=EM(o);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u=Ts(r);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[n,r,o,a,i])}(ke,ct,he,ce,C,E,we,Fe);var wt,xt,St=it.has("hover"),Ct=st.has("hover");St&&(bt("onMouseEnter",!0,y,(function(e){Ve(e)})),bt("onPointerEnter",!0,y,(function(e){Ve(e)})),wt=function(e){(ke||je)&&null!==ce&&void 0!==ce&&ce.contains(e.target)&&Fe(!0,y)},H&&(be.onMouseMove=function(e){var t;null===(t=ye.onMouseMove)||void 0===t||t.call(ye,e)})),Ct&&(bt("onMouseLeave",!1,w),bt("onPointerLeave",!1,w),xt=function(){Fe(!1,w)}),it.has("focus")&&bt("onFocus",!0,x),st.has("focus")&&bt("onBlur",!1,S),it.has("contextMenu")&&(be.onContextMenu=function(e){var t;Ae.current&&st.has("contextMenu")?Fe(!1):(Ve(e),Fe(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onContextMenu)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),$&&(be.className=$o()(ye.className,$));var _t=p(p({},ye),be),Et={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){J[e]&&(Et[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=_t[e])||void 0===t||t.call.apply(t,[_t].concat(r)),J[e].apply(J,r)})}));var kt=e.cloneElement(ve,p(p({},_t),Et)),Pt={x:Qe,y:Je},At=V?p({},!0!==V?V:{}):null;return e.createElement(e.Fragment,null,e.createElement(EO,{disabled:!ke,ref:ge,onResize:function(){yt(),ut()}},e.createElement(wM,{getTriggerDOMNode:Q},kt)),e.createElement(xM.Provider,{value:ie},e.createElement(yM,{portal:t,ref:de,prefixCls:a,popup:T,className:$o()(M,dt),style:I,target:he,onMouseEnter:wt,onMouseLeave:xt,onPointerEnter:wt,zIndex:D,open:ke,keepDom:je,fresh:z,onClick:W,mask:C,motion:xe,maskMotion:Se,onVisibleChanged:function(e){De(!1),rt(),null===v||void 0===v||v(e)},onPrepare:function(){return new Promise((function(e){yt(),ze((function(){return e}))}))},forceRender:P,autoDestroy:ee,getPopupContainer:k,align:nt,arrow:At,arrowPos:Pt,ready:Ke,offsetX:Xe,offsetY:Ye,offsetR:Ze,offsetB:$e,onAlign:ut,stretch:L,targetWidth:ht/et,targetHeight:gt/tt})))}));return n}(lM);var DM={adjustX:1,adjustY:1},LM={topLeft:{points:["bl","tl"],overflow:DM},topRight:{points:["br","tr"],overflow:DM},bottomLeft:{points:["tl","bl"],overflow:DM},bottomRight:{points:["tr","br"],overflow:DM},leftTop:{points:["tr","tl"],overflow:DM},leftBottom:{points:["br","bl"],overflow:DM},rightTop:{points:["tl","tr"],overflow:DM},rightBottom:{points:["bl","br"],overflow:DM}},BM={topLeft:{points:["bl","tl"],overflow:DM},topRight:{points:["br","tr"],overflow:DM},bottomLeft:{points:["tl","bl"],overflow:DM},bottomRight:{points:["tr","br"],overflow:DM},rightTop:{points:["tr","tl"],overflow:DM},rightBottom:{points:["br","bl"],overflow:DM},leftTop:{points:["tl","tr"],overflow:DM},leftBottom:{points:["bl","br"],overflow:DM}};function zM(e,t,n){return t||(n?n[e]||n.other:void 0)}var HM={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function WM(t){var n=t.prefixCls,r=t.visible,o=t.children,i=t.popup,s=t.popupStyle,l=t.popupClassName,c=t.popupOffset,d=t.disabled,f=t.mode,h=t.onVisibleChange,m=e.useContext(eT),g=m.getPopupContainer,v=m.rtl,y=m.subMenuOpenDelay,b=m.subMenuCloseDelay,w=m.builtinPlacements,x=m.triggerSubMenuAction,S=m.forceSubMenuRender,C=m.rootClassName,_=m.motion,E=m.defaultMotions,k=u(e.useState(!1),2),P=k[0],A=k[1],O=p(p({},v?BM:LM),w),T=HM[f],M=zM(f,_,E),I=e.useRef(M);"inline"!==f&&(I.current=M);var R=p(p({},I.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=e.useRef();return e.useEffect((function(){return F.current=Fd((function(){A(r)})),function(){Fd.cancel(F.current)}}),[r]),e.createElement(jM,{prefixCls:n,popupClassName:$o()("".concat(n,"-popup"),a({},"".concat(n,"-rtl"),v),l,C),stretch:"horizontal"===f?"minWidth":null,getPopupContainer:g,builtinPlacements:O,popupPlacement:T,popupVisible:P,popup:i,popupStyle:s,popupAlign:c&&{offset:c},action:d?[]:[x],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:h,forceRender:S,popupMotion:R,fresh:!0},o)}function GM(t){var n=t.id,r=t.open,o=t.keyPath,a=t.children,i="inline",s=e.useContext(eT),l=s.prefixCls,c=s.forceSubMenuRender,d=s.motion,f=s.defaultMotions,h=s.mode,m=e.useRef(!1);m.current=h===i;var g=u(e.useState(!m.current),2),v=g[0],y=g[1],b=!!m.current&&r;e.useEffect((function(){m.current&&y(!1)}),[h]);var w=p({},zM(i,d,f));o.length>1&&(w.motionAppear=!1);var x=w.onVisibleChanged;return w.onVisibleChanged=function(e){return m.current||e||y(!0),null===x||void 0===x?void 0:x(e)},v?null:e.createElement(tT,{mode:i,locked:!m.current},e.createElement(Qd,Ge({visible:b},w,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(t){var r=t.className,o=t.style;return e.createElement(XT,{id:n,className:r,style:o},a)})))}var VM=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],UM=["active"],qM=e.forwardRef((function(t,n){var r,o=t.style,i=t.className,s=t.title,l=t.eventKey,c=(t.warnKey,t.disabled),d=t.internalPopupClose,f=t.children,h=t.itemIcon,m=t.expandIcon,g=t.popupClassName,v=t.popupOffset,y=t.popupStyle,b=t.onClick,w=t.onMouseEnter,x=t.onMouseLeave,S=t.onTitleClick,C=t.onTitleMouseEnter,_=t.onTitleMouseLeave,E=us(t,VM),k=QO(l),P=e.useContext(eT),A=P.prefixCls,O=P.mode,T=P.openKeys,M=P.disabled,I=P.overflowDisabled,R=P.activeKey,F=P.selectedKeys,N=P.itemIcon,j=P.expandIcon,D=P.onItemClick,L=P.onOpenChange,B=P.onActive,z=e.useContext(lT)._internalRenderSubMenuItem,H=e.useContext(sT).isSubPathKey,W=iT(),G="".concat(A,"-submenu"),V=M||c,U=e.useRef(),q=e.useRef();var K=null!==h&&void 0!==h?h:N,X=null!==m&&void 0!==m?m:j,Y=T.includes(l),Z=!I&&Y,$=H(F,l),Q=RT(l,V,C,_),J=Q.active,ee=us(Q,UM),te=u(e.useState(!1),2),ne=te[0],re=te[1],oe=function(e){V||re(e)},ae=e.useMemo((function(){return J||"inline"!==O&&(ne||H([R],l))}),[O,J,R,ne,l,H]),ie=FT(W.length),se=OT((function(e){null===b||void 0===b||b(DT(e)),D(e)})),le=k&&"".concat(k,"-popup"),ce=e.createElement("div",Ge({role:"menuitem",style:ie,className:"".concat(G,"-title"),tabIndex:V?null:-1,ref:U,title:"string"===typeof s?s:null,"data-menu-id":I&&k?null:k,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":V,onClick:function(e){V||(null===S||void 0===S||S({key:l,domEvent:e}),"inline"===O&&L(l,!Y))},onFocus:function(){B(l)}},ee),s,e.createElement(NT,{icon:"horizontal"!==O?X:void 0,props:p(p({},t),{},{isOpen:Z,isSubMenu:!0})},e.createElement("i",{className:"".concat(G,"-arrow")}))),ue=e.useRef(O);if("inline"!==O&&W.length>1?ue.current="vertical":ue.current=O,!I){var de=ue.current;ce=e.createElement(WM,{mode:de,prefixCls:G,visible:!d&&Z&&"inline"!==O,popupClassName:g,popupOffset:v,popupStyle:y,popup:e.createElement(tT,{mode:"horizontal"===de?"vertical":de},e.createElement(XT,{id:le,ref:q},f)),disabled:V,onVisibleChange:function(e){"inline"!==O&&L(l,e)}},ce)}var fe=e.createElement(KO.Item,Ge({ref:n,role:"none"},E,{component:"li",style:o,className:$o()(G,"".concat(G,"-").concat(O),i,(r={},a(r,"".concat(G,"-open"),Z),a(r,"".concat(G,"-active"),ae),a(r,"".concat(G,"-selected"),$),a(r,"".concat(G,"-disabled"),V),r)),onMouseEnter:function(e){oe(!0),null===w||void 0===w||w({key:l,domEvent:e})},onMouseLeave:function(e){oe(!1),null===x||void 0===x||x({key:l,domEvent:e})}}),ce,!I&&e.createElement(GM,{id:le,open:Z,keyPath:W},f));return z&&(fe=z(fe,t,{selected:$,active:ae,open:Z,disabled:V})),e.createElement(tT,{onItemClick:se,mode:"horizontal"===O?"vertical":O,itemIcon:K,expandIcon:X},fe)}));const KM=e.forwardRef((function(t,n){var r,o=t.eventKey,a=t.children,i=iT(o),s=YT(a,i),l=oT();return e.useEffect((function(){if(l)return l.registerPath(o,i),function(){l.unregisterPath(o,i)}}),[i]),r=l?s:e.createElement(qM,Ge({ref:n},t),s),e.createElement(aT.Provider,{value:i},r)}));function XM(t){var n=t.className,r=t.style,o=e.useContext(eT).prefixCls;return oT()?null:e.createElement("li",{role:"separator",className:$o()("".concat(o,"-item-divider"),n),style:r})}var YM=["className","title","eventKey","children"],ZM=e.forwardRef((function(t,n){var r=t.className,o=t.title,a=(t.eventKey,t.children),i=us(t,YM),s=e.useContext(eT).prefixCls,l="".concat(s,"-item-group");return e.createElement("li",Ge({ref:n,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:$o()(l,r)}),e.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"===typeof o?o:void 0},o),e.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}));const $M=e.forwardRef((function(t,n){var r=t.eventKey,o=YT(t.children,iT(r));return oT()?o:e.createElement(ZM,Ge({ref:n},IT(t,["warnKey"])),o)}));var QM=["label","children","key","type"];function JM(t,n){var o=n.item,a=n.group,i=n.submenu,s=n.divider;return(t||[]).map((function(t,l){if(t&&"object"===r(t)){var c=t,u=c.label,d=c.children,f=c.key,h=c.type,p=us(c,QM),m=null!==f&&void 0!==f?f:"tmp-".concat(l);return d||"group"===h?"group"===h?e.createElement(a,Ge({key:m},p,{title:u}),JM(d,n)):e.createElement(i,Ge({key:m},p,{title:u}),JM(d,n)):"divider"===h?e.createElement(s,Ge({key:m},p)):e.createElement(o,Ge({key:m},p),u)}return null})).filter((function(e){return e}))}function eI(e,t,n,r){var o=e,a=p({divider:XM,item:VT,group:$M,submenu:KM},r);return t&&(o=JM(t,a)),YT(o,n)}var tI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],nI=[],rI=e.forwardRef((function(t,n){var r,o,i=t,s=i.prefixCls,l=void 0===s?"rc-menu":s,c=i.rootClassName,d=i.style,h=i.className,m=i.tabIndex,g=void 0===m?0:m,v=i.items,y=i.children,b=i.direction,w=i.id,x=i.mode,S=void 0===x?"vertical":x,C=i.inlineCollapsed,_=i.disabled,E=i.disabledOverflow,k=i.subMenuOpenDelay,P=void 0===k?.1:k,A=i.subMenuCloseDelay,O=void 0===A?.1:A,T=i.forceSubMenuRender,M=i.defaultOpenKeys,I=i.openKeys,R=i.activeKey,F=i.defaultActiveFirst,N=i.selectable,j=void 0===N||N,L=i.multiple,B=void 0!==L&&L,z=i.defaultSelectedKeys,H=i.selectedKeys,W=i.onSelect,G=i.onDeselect,V=i.inlineIndent,U=void 0===V?24:V,q=i.motion,K=i.defaultMotions,X=i.triggerSubMenuAction,Y=void 0===X?"hover":X,Z=i.builtinPlacements,$=i.itemIcon,Q=i.expandIcon,J=i.overflowedIndicator,ee=void 0===J?"...":J,te=i.overflowedIndicatorPopupClassName,ne=i.getPopupContainer,re=i.onClick,oe=i.onOpenChange,ae=i.onKeyDown,ie=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),se=i._internalRenderSubMenuItem,le=i._internalComponents,ce=us(i,tI),ue=u(e.useMemo((function(){return[eI(y,v,nI,le),eI(y,v,nI,{})]}),[y,v,le]),2),de=ue[0],fe=ue[1],he=u(e.useState(!1),2),pe=he[0],me=he[1],ge=e.useRef(),ve=function(t){var n=u(YO(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect((function(){MT+=1;var e="".concat(TT,"-").concat(MT);o("rc-menu-uuid-".concat(e))}),[]),r}(w),ye="rtl"===b;var be=YO(M,{value:I,postState:function(e){return e||nI}}),we=u(be,2),xe=we[0],Se=we[1],Ce=function(e){function t(){Se(e),null===oe||void 0===oe||oe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Qo.flushSync)(t):t()},_e=u(e.useState(xe),2),Ee=_e[0],ke=_e[1],Pe=e.useRef(!1),Ae=u(e.useMemo((function(){return"inline"!==S&&"vertical"!==S||!C?[S,!1]:["vertical",C]}),[S,C]),2),Oe=Ae[0],Te=Ae[1],Me="inline"===Oe,Ie=u(e.useState(Oe),2),Re=Ie[0],Fe=Ie[1],Ne=u(e.useState(Te),2),je=Ne[0],De=Ne[1];e.useEffect((function(){Fe(Oe),De(Te),Pe.current&&(Me?Se(Ee):Ce(nI))}),[Oe,Te]);var Le=u(e.useState(0),2),Be=Le[0],ze=Le[1],He=Be>=de.length-1||"horizontal"!==Re||E;e.useEffect((function(){Me&&ke(xe)}),[xe]),e.useEffect((function(){return Pe.current=!0,function(){Pe.current=!1}}),[]);var We=AT(),Ve=We.registerPath,Ue=We.unregisterPath,qe=We.refreshOverflowKeys,Ke=We.isSubPathKey,Xe=We.getKeyPath,Ye=We.getKeys,Ze=We.getSubPathKeys,$e=e.useMemo((function(){return{registerPath:Ve,unregisterPath:Ue}}),[Ve,Ue]),Qe=e.useMemo((function(){return{isSubPathKey:Ke}}),[Ke]);e.useEffect((function(){qe(He?nI:de.slice(Be+1).map((function(e){return e.key})))}),[Be,He]);var Je=u(YO(R||F&&(null===(r=de[0])||void 0===r?void 0:r.key),{value:R}),2),et=Je[0],tt=Je[1],nt=OT((function(e){tt(e)})),rt=OT((function(){tt(void 0)}));(0,e.useImperativeHandle)(n,(function(){return{list:ge.current,focus:function(e){var t,n,r=Ye(),o=CT(r,ve),a=o.elements,i=o.key2element,s=o.element2key,l=xT(ge.current,a),c=null!==et&&void 0!==et?et:l[0]?s.get(l[0]):null===(t=de.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=i.get(c);c&&u&&(null===u||void 0===u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var ot=YO(z||[],{value:H,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?nI:[e]}}),at=u(ot,2),it=at[0],st=at[1],lt=OT((function(e){null===re||void 0===re||re(DT(e)),function(e){if(j){var t,n=e.key,r=it.includes(n);t=B?r?it.filter((function(e){return e!==n})):[].concat(f(it),[n]):[n],st(t);var o=p(p({},e),{},{selectedKeys:t});r?null===G||void 0===G||G(o):null===W||void 0===W||W(o)}!B&&xe.length&&"inline"!==Re&&Ce(nI)}(e)})),ct=OT((function(e,t){var n=xe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=Ze(e);n=n.filter((function(e){return!r.has(e)}))}D(xe,n,!0)||Ce(n,!0)})),ut=_T(Re,et,ye,ve,ge,Ye,Xe,tt,(function(e,t){var n=null!==t&&void 0!==t?t:!xe.includes(e);ct(e,n)}),ae);e.useEffect((function(){me(!0)}),[]);var dt=e.useMemo((function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:se}}),[ie,se]),ft="horizontal"!==Re||E?de:de.map((function(t,n){return e.createElement(tT,{key:t.key,overflowDisabled:n>Be},t)})),ht=e.createElement(KO,Ge({id:w,ref:ge,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:VT,className:$o()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Re),h,(o={},a(o,"".concat(l,"-inline-collapsed"),je),a(o,"".concat(l,"-rtl"),ye),o),c),dir:b,style:d,role:"menu",tabIndex:g,data:ft,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,r=n?de.slice(-n):null;return e.createElement(KM,{eventKey:PT,title:ee,disabled:He,internalPopupClose:0===n,popupClassName:te},r)},maxCount:"horizontal"!==Re||E?KO.INVALIDATE:KO.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){ze(e)},onKeyDown:ut},ce));return e.createElement(lT.Provider,{value:dt},e.createElement(ZO.Provider,{value:ve},e.createElement(tT,{prefixCls:l,rootClassName:c,mode:Re,openKeys:xe,rtl:ye,disabled:_,motion:pe?q:null,defaultMotions:pe?K:null,activeKey:et,onActive:nt,onInactive:rt,selectedKeys:it,inlineIndent:U,subMenuOpenDelay:P,subMenuCloseDelay:O,forceSubMenuRender:T,builtinPlacements:Z,triggerSubMenuAction:Y,getPopupContainer:ne,itemIcon:$,expandIcon:Q,onItemClick:lt,onOpenChange:ct},e.createElement(sT.Provider,{value:Qe},ht),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(rT.Provider,{value:$e},fe)))))}));var oI=rI;oI.Item=VT,oI.SubMenu=KM,oI.ItemGroup=$M,oI.Divider=XM;const aI=oI;const iI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var sI=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:iI}))};const lI=e.forwardRef(sI),cI=()=>({height:0,opacity:0}),uI=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},dI=e=>({height:e?e.offsetHeight:0}),fI=(e,t)=>!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName,hI=(e,t,n)=>void 0!==n?n:"".concat(e,"-").concat(t),pI=function(){return{motionName:"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant","-motion-collapse"),onAppearStart:cI,onEnterStart:cI,onAppearActive:uI,onEnterActive:uI,onLeaveStart:dI,onLeaveActive:cI,onAppearEnd:fI,onEnterEnd:fI,onLeaveEnd:fI,motionDeadline:500}};function mI(t){return t&&e.isValidElement(t)&&t.type===e.Fragment}const gI=(t,n,r)=>e.isValidElement(t)?e.cloneElement(t,"function"===typeof r?r(t.props||{}):r):n;function vI(e,t){return gI(e,e,t)}const yI=(0,e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var bI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wI=t=>{const{prefixCls:n,className:r,dashed:o}=t,a=bI(t,["prefixCls","className","dashed"]),{getPrefixCls:i}=e.useContext(vo),s=i("menu",n),l=$o()({["".concat(s,"-item-divider-dashed")]:!!o},r);return e.createElement(XM,Object.assign({className:l},a))};function xI(t){var n=t.children,r=t.prefixCls,o=t.id,a=t.overlayInnerStyle,i=t.className,s=t.style;return e.createElement("div",{className:$o()("".concat(r,"-content"),i),style:s},e.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:a},"function"===typeof n?n():n))}var SI={shiftX:64,adjustY:1},CI={adjustX:1,shiftY:!0},_I=[0,0],EI={left:{points:["cr","cl"],overflow:CI,offset:[-4,0],targetOffset:_I},right:{points:["cl","cr"],overflow:CI,offset:[4,0],targetOffset:_I},top:{points:["bc","tc"],overflow:SI,offset:[0,-4],targetOffset:_I},bottom:{points:["tc","bc"],overflow:SI,offset:[0,4],targetOffset:_I},topLeft:{points:["bl","tl"],overflow:SI,offset:[0,-4],targetOffset:_I},leftTop:{points:["tr","tl"],overflow:CI,offset:[-4,0],targetOffset:_I},topRight:{points:["br","tr"],overflow:SI,offset:[0,-4],targetOffset:_I},rightTop:{points:["tl","tr"],overflow:CI,offset:[4,0],targetOffset:_I},bottomRight:{points:["tr","br"],overflow:SI,offset:[0,4],targetOffset:_I},rightBottom:{points:["bl","br"],overflow:CI,offset:[4,0],targetOffset:_I},bottomLeft:{points:["tl","bl"],overflow:SI,offset:[0,4],targetOffset:_I},leftBottom:{points:["br","bl"],overflow:CI,offset:[-4,0],targetOffset:_I}};var kI=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],PI=function(t,n){var r=t.overlayClassName,o=t.trigger,a=void 0===o?["hover"]:o,i=t.mouseEnterDelay,s=void 0===i?0:i,l=t.mouseLeaveDelay,c=void 0===l?.1:l,u=t.overlayStyle,d=t.prefixCls,f=void 0===d?"rc-tooltip":d,h=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,b=t.motion,w=t.placement,x=void 0===w?"right":w,S=t.align,C=void 0===S?{}:S,_=t.destroyTooltipOnHide,E=void 0!==_&&_,k=t.defaultVisible,P=t.getTooltipContainer,A=t.overlayInnerStyle,O=(t.arrowContent,t.overlay),T=t.id,M=t.showArrow,I=void 0===M||M,R=us(t,kI),F=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(function(){return F.current}));var N=p({},R);"visible"in t&&(N.popupVisible=t.visible);return e.createElement(jM,Ge({popupClassName:r,prefixCls:f,popup:function(){return e.createElement(xI,{key:"content",prefixCls:f,id:T,overlayInnerStyle:A},O)},action:a,builtinPlacements:EI,popupPlacement:x,ref:F,popupAlign:C,getPopupContainer:P,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:b,defaultPopupVisible:k,autoDestroy:E,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:I},N),h)};const AI=(0,e.forwardRef)(PI);function OI(){OI=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),s=new M(r||[]);return a(i,"_invoke",{value:P(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",v={};function y(){}function b(){}function w(){}var x={};u(x,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(I([])));C&&C!==n&&o.call(C,s)&&(x=C);var _=w.prototype=y.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(a,i,s,l){var c=f(e[a],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function P(t,n,r){var o=h;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=A(s,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=f(t,n,r);if("normal"===c.type){if(o=r.done?g:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function A(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=f(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function n(){for(;++a<t.length;)if(o.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=w,a(_,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},E(k.prototype),u(k.prototype,l,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new k(d(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(_),u(_,c,"Generator"),u(_,s,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function TI(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function MI(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){TI(a,r,o,i,s,"next",e)}function s(e){TI(a,r,o,i,s,"throw",e)}i(void 0)}))}}var II="RC_FORM_INTERNAL_HOOKS",RI=function(){j(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const FI=e.createContext({getFieldValue:RI,getFieldsValue:RI,getFieldError:RI,getFieldWarning:RI,getFieldsError:RI,isFieldsTouched:RI,isFieldTouched:RI,isFieldValidating:RI,isFieldsValidating:RI,resetFields:RI,setFields:RI,setFieldValue:RI,setFieldsValue:RI,validateFields:RI,submit:RI,getInternalHooks:function(){return RI(),{dispatch:RI,initEntityValue:RI,registerField:RI,useSubscribe:RI,setInitialValues:RI,destroyForm:RI,setCallbacks:RI,registerWatch:RI,getFields:RI,setValidateMessages:RI,setPreserve:RI,getInitialValue:RI}}});const NI=e.createContext(null);function jI(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function DI(e){return DI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DI(e)}function LI(e){var t=function(e,t){if("object"!=DI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=DI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DI(t)?t:t+""}function BI(e,t,n){return(t=LI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zI(Object(n),!0).forEach((function(t){BI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function GI(e){return function(e){if(Array.isArray(e))return WI(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return WI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WI(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LI(r.key),r)}}function qI(e,t,n){return t&&UI(e.prototype,t),n&&UI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function KI(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var XI=KI();function YI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZI(e,t){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZI(e,t)}function $I(e){return $I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$I(e)}function QI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QI=function(){return!!e})()}function JI(e){var t=QI();return function(){var n,r=$I(e);if(t){var o=$I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==DI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YI(e)}(this,n)}}function eR(e){var t="function"==typeof Map?new Map:void 0;return eR=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(du){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(QI())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ZI(o,n.prototype),o}(e,arguments,$I(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ZI(n,e)},eR(e)}var tR=/%[sdj%]/g;function nR(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function rR(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;return"function"===typeof e?e.apply(null,n):"string"===typeof e?e.replace(tR,(function(e){if("%%"===e)return"%";if(o>=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function oR(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function aR(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var s=r;r+=1,s<o?t(e[s],a):n([])}}([])}var iR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZI(e,t)}(n,e);var t=JI(n);function n(e,r){var o;return VI(this,n),BI(YI(o=t.call(this,"Async Validation Error")),"errors",void 0),BI(YI(o),"fields",void 0),o.errors=e,o.fields=r,o}return qI(n)}(eR(Error));function sR(e,t,n,r,o){if(t.first){var a=new Promise((function(t,a){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,GI(e[n]||[]))})),t}(e);aR(i,n,(function(e){return r(e),e.length?a(new iR(e,nR(e))):t(o)}))}));return a.catch((function(e){return e})),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,a){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?a(new iR(u,nR(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?aR(r,n,d):function(e,t,n){var r=[],o=0,a=e.length;function i(e){r.push.apply(r,GI(e||[])),++o===a&&n(r)}e.forEach((function(e){t(e,i)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function lR(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function cR(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===DI(r)&&"object"===DI(e[n])?e[n]=HI(HI({},e[n]),r):e[n]=r}return e}var uR="enum";const dR=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!oR(t,a||e.type)||r.push(rR(o.messages.required,e.fullField))};var fR;var hR=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,pR=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,mR={integer:function(e){return mR.number(e)&&parseInt(e,10)===e},float:function(e){return mR.number(e)&&!mR.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(x7){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===DI(e)&&!mR.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(hR)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(fR)return fR;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(a,"$")),c=function(e){return e&&e.exact?i:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(a).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(a).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return fR=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(pR)}};const gR=function(e,t,n,r,o){if(e.required&&void 0===t)dR(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?mR[a](t)||r.push(rR(o.messages.types[a],e.fullField,e.type)):a&&DI(t)!==e.type&&r.push(rR(o.messages.types[a],e.fullField,e.type))}};const vR={required:dR,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(rR(o.messages.whitespace,e.fullField))},type:gR,range:function(e,t,n,r,o){var a="number"===typeof e.len,i="number"===typeof e.min,s="number"===typeof e.max,l=t,c=null,u="number"===typeof t,d="string"===typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&r.push(rR(o.messages[c].len,e.fullField,e.len)):i&&!s&&l<e.min?r.push(rR(o.messages[c].min,e.fullField,e.min)):s&&!i&&l>e.max?r.push(rR(o.messages[c].max,e.fullField,e.max)):i&&s&&(l<e.min||l>e.max)&&r.push(rR(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[uR]=Array.isArray(e[uR])?e[uR]:[],-1===e[uR].indexOf(t)&&r.push(rR(o.messages[uR],e.fullField,e[uR].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(rR(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(rR(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const yR=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":DI(t);vR.required(e,t,r,a,o,i),n(a)};const bR=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t,a)&&!e.required)return n();vR.required(e,t,r,i,o,a),oR(t,a)||vR.type(e,t,r,i,o)}n(i)},wR={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t,"string")&&!e.required)return n();vR.required(e,t,r,a,o,"string"),oR(t,"string")||(vR.type(e,t,r,a,o),vR.range(e,t,r,a,o),vR.pattern(e,t,r,a,o),!0===e.whitespace&&vR.whitespace(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t)&&!e.required)return n();vR.required(e,t,r,a,o),void 0!==t&&vR.type(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),oR(t)&&!e.required)return n();vR.required(e,t,r,a,o),void 0!==t&&(vR.type(e,t,r,a,o),vR.range(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t)&&!e.required)return n();vR.required(e,t,r,a,o),void 0!==t&&vR.type(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t)&&!e.required)return n();vR.required(e,t,r,a,o),oR(t)||vR.type(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t)&&!e.required)return n();vR.required(e,t,r,a,o),void 0!==t&&(vR.type(e,t,r,a,o),vR.range(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t)&&!e.required)return n();vR.required(e,t,r,a,o),void 0!==t&&(vR.type(e,t,r,a,o),vR.range(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();vR.required(e,t,r,a,o,"array"),void 0!==t&&null!==t&&(vR.type(e,t,r,a,o),vR.range(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t)&&!e.required)return n();vR.required(e,t,r,a,o),void 0!==t&&vR.type(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t)&&!e.required)return n();vR.required(e,t,r,a,o),void 0!==t&&vR.enum(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t,"string")&&!e.required)return n();vR.required(e,t,r,a,o),oR(t,"string")||vR.pattern(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t,"date")&&!e.required)return n();var i;if(vR.required(e,t,r,a,o),!oR(t,"date"))i=t instanceof Date?t:new Date(t),vR.type(e,i,r,a,o),i&&vR.range(e,i.getTime(),r,a,o)}n(a)},url:bR,hex:bR,email:bR,required:yR,any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(oR(t)&&!e.required)return n();vR.required(e,t,r,a,o)}n(a)}};var xR=function(){function e(t){VI(this,e),BI(this,"rules",null),BI(this,"_messages",XI),this.define(t)}return qI(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==DI(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=cR(KI(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"===typeof o&&(a=o,o={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,r),Promise.resolve(r);if(o.messages){var i=this.messages();i===XI&&(i=KI()),cR(i,o.messages),o.messages=i}else o.messages=this.messages();var s={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],a=r[e];o.forEach((function(o){var i=o;"function"===typeof i.transform&&(r===t&&(r=HI({},r)),void 0!==(a=r[e]=i.transform(a))&&null!==a&&(i.type=i.type||(Array.isArray(a)?"array":DI(a)))),(i="function"===typeof i?{validator:i}:HI({},i)).validator=n.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=n.getType(i),s[e]=s[e]||[],s[e].push({rule:i,value:a,source:r,field:e}))}))}));var l={};return sR(s,o,(function(t,n){var a,i=t.rule,s=("object"===i.type||"array"===i.type)&&("object"===DI(i.fields)||"object"===DI(i.defaultField));function c(e,t){return HI(HI({},t),{},{fullField:"".concat(i.fullField,".").concat(e),fullFields:i.fullFields?[].concat(GI(i.fullFields),[e]):[e]})}function u(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(a)?a:[a];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==i.message&&(u=[].concat(i.message));var d=u.map(lR(i,r));if(o.first&&d.length)return l[i.field]=1,n(d);if(s){if(i.required&&!t.value)return void 0!==i.message?d=[].concat(i.message).map(lR(i,r)):o.error&&(d=[o.error(i,rR(o.messages.required,i.field))]),n(d);var f={};i.defaultField&&Object.keys(t.value).map((function(e){f[e]=i.defaultField})),f=HI(HI({},f),t.rule.fields);var h={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];h[e]=n.map(c.bind(null,e))}));var p=new e(h);p.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),p.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,GI(d)),e&&e.length&&t.push.apply(t,GI(e)),n(t.length?t:null)}))}else n(d)}if(s=s&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)a=i.asyncValidator(i,t.value,u,t.source,o);else if(i.validator){try{a=i.validator(i,t.value,u,t.source,o)}catch(h){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,h),o.suppressValidatorError||setTimeout((function(){throw h}),0),u(h.message)}!0===a?u():!1===a?u("function"===typeof i.message?i.message(i.fullField||i.field):i.message||"".concat(i.fullField||i.field," fails")):a instanceof Array?u(a):a instanceof Error&&u(a.message)}a&&a.then&&a.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,GI(e)):t.push(e)}for(var i=0;i<e.length;i++)o(e[i]);t.length?(n=nR(t),a(t,n)):a(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!wR.hasOwnProperty(e.type))throw new Error(rR("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?wR.required:wR[this.getType(e)]||void 0}}]),e}();BI(xR,"register",(function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");wR[e]=t})),BI(xR,"warning",(function(){})),BI(xR,"messages",XI),BI(xR,"validators",wR);const SR=xR;var CR="'${name}' is not a valid ${type}",_R={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:CR,method:CR,array:CR,object:CR,number:CR,date:CR,boolean:CR,integer:CR,float:CR,regexp:CR,email:CR,url:CR,hex:CR},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function ER(e){return i(e)||d(e)||l(e)||c()}function kR(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function PR(e,t,n,r){if(!t.length)return n;var o,a=ER(t),i=a[0],s=a.slice(1);return o=e||"number"!==typeof i?Array.isArray(e)?f(e):p({},e):[],r&&void 0===n&&1===s.length?delete o[i][s[0]]:o[i]=PR(o[i],s,n,r),o}function AR(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!kR(e,t.slice(0,-1))?e:PR(e,t,n,r)}function OR(e){return Array.isArray(e)?[]:{}}var TR="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function MR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=OR(t[0]);return t.forEach((function(e){!function t(n,a){var i,s=new Set(a),l=kR(e,n),c=Array.isArray(l);if(c||"object"===r(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!s.has(l)){s.add(l);var u=kR(o,n);c?o=AR(o,n,[]):u&&"object"===r(u)||(o=AR(o,n,OR(l))),TR(l).forEach((function(e){t([].concat(f(n),[e]),s)}))}}else o=AR(o,n,l)}([])})),o}var IR=SR;function RR(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var FR="CODE_LOGIC_ERROR";function NR(e,t,n,r,o){return jR.apply(this,arguments)}function jR(){return jR=MI(OI().mark((function t(n,r,o,i,s){var l,c,u,d,h,m,g,v,y;return OI().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(l=p({},o)).ruleIndex,IR.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(FR)}}),u=null,l&&"array"===l.type&&l.defaultField&&(u=l.defaultField,delete l.defaultField),d=new IR(a({},n,[l])),h=MR(_R,i.validateMessages),d.messages(h),m=[],t.prev=10,t.next=13,Promise.resolve(d.validate(a({},n,r),p({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(m=t.t0.errors.map((function(t,n){var r=t.message,o=r===FR?h.default:r;return e.isValidElement(o)?e.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(m.length||!u){t.next=23;break}return t.next=21,Promise.all(r.map((function(e,t){return NR("".concat(n,".").concat(t),e,u,i,s)})));case 21:return g=t.sent,t.abrupt("return",g.reduce((function(e,t){return[].concat(f(e),f(t))}),[]));case 23:return v=p(p({},o),{},{name:n,enum:(o.enum||[]).join(", ")},s),y=m.map((function(e){return"string"===typeof e?RR(e,v):e})),t.abrupt("return",y);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),jR.apply(this,arguments)}function DR(e,t,n,r,o,a){var i,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=p(p({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,a=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){j(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=a&&"function"===typeof a.then&&"function"===typeof a.catch,j(o,"`callback` is deprecated. Please return a promise instead."),o&&a.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,a=t.ruleIndex;return!!n===!!o?r-a:n?1:-1}));if(!0===o)i=new Promise(function(){var e=MI(OI().mark((function e(n,o){var i,c,u;return OI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<l.length)){e.next=12;break}return c=l[i],e.next=5,NR(s,t,c,r,a);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:i+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return NR(s,t,e,r,a).then((function(t){return{errors:t,rule:e}}))}));i=(o?function(e){return BR.apply(this,arguments)}(c):function(e){return LR.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return i.catch((function(e){return e})),i}function LR(){return(LR=MI(OI().mark((function e(t){return OI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,f(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function BR(){return BR=MI(OI().mark((function e(t){var n;return OI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),BR.apply(this,arguments)}function zR(e){return jI(e)}function HR(e,t){var n={};return t.forEach((function(t){var r=kR(e,t);n=AR(n,t,r)})),n}function WR(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return GR(t,e,n)}))}function GR(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function VR(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===r(t.target)&&e in t.target?t.target[e]:t}function UR(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(f(e.slice(0,n)),[o],f(e.slice(n,t)),f(e.slice(t+1,r))):a<0?[].concat(f(e.slice(0,t)),f(e.slice(t+1,n+1)),[o],f(e.slice(n+1,r))):e}var qR=["name"],KR=[];function XR(e,t,n,r,o,a){return"function"===typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var YR=function(t){J(r,t);var n=ne(r);function r(t){var o;(L(this,r),a($(o=n.call(this,t)),"state",{resetCount:0}),a($(o),"cancelRegisterFunc",null),a($(o),"mounted",!1),a($(o),"touched",!1),a($(o),"dirty",!1),a($(o),"validatePromise",void 0),a($(o),"prevValidating",void 0),a($(o),"errors",KR),a($(o),"warnings",KR),a($(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,zR(r)),o.cancelRegisterFunc=null})),a($(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(f(void 0===n?[]:n),f(t)):[]})),a($(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"===typeof e?e(r):e}))})),a($(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),a($(o),"metaCache",null),a($(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=p(p({},o.getMeta()),{},{destroy:e});D(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),a($(o),"onStoreChange",(function(e,t,n){var r=o.props,a=r.shouldUpdate,i=r.dependencies,s=void 0===i?[]:i,l=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),h=t&&WR(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||D(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=KR,o.warnings=KR,o.triggerMetaEvent()),n.type){case"reset":if(!t||h)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=KR,o.warnings=KR,o.triggerMetaEvent(),null===l||void 0===l||l(),void o.refresh();break;case"remove":if(a)return void o.reRender();break;case"setField":var p=n.data;if(h)return"touched"in p&&(o.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(o.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(o.errors=p.errors||KR),"warnings"in p&&(o.warnings=p.warnings||KR),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in p&&WR(t,u,!0))return void o.reRender();if(a&&!u.length&&XR(a,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(zR).some((function(e){return WR(n.relatedFields,e)})))return void o.reRender();break;default:if(h||(!s.length||u.length||a)&&XR(a,e,c,d,f,n))return void o.reRender()}!0===a&&o.reRender()})),a($(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},a=r.triggerName,i=r.validateOnly,s=void 0!==i&&i,l=Promise.resolve().then(MI(OI().mark((function r(){var i,s,c,u,d,h,p;return OI().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(i=o.props,s=i.validateFirst,c=void 0!==s&&s,u=i.messageVariables,d=i.validateDebounce,h=o.getRules(),a&&(h=h.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||jI(t).includes(a)}))),!d||!a){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===l){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=DR(t,n,h,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:KR;if(o.validatePromise===l){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,a=void 0===o?KR:o;t?r.push.apply(r,f(a)):n.push.apply(n,f(a))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return s||(o.validatePromise=l,o.dirty=!0,o.errors=KR,o.warnings=KR,o.triggerMetaEvent(),o.reRender()),l})),a($(o),"isFieldValidating",(function(){return!!o.validatePromise})),a($(o),"isFieldTouched",(function(){return o.touched})),a($(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(II).getInitialValue)(o.getNamePath())})),a($(o),"getErrors",(function(){return o.errors})),a($(o),"getWarnings",(function(){return o.warnings})),a($(o),"isListField",(function(){return o.props.isListField})),a($(o),"isList",(function(){return o.props.isList})),a($(o),"isPreserve",(function(){return o.props.preserve})),a($(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),a($(o),"getOnlyChild",(function(t){if("function"===typeof t){var n=o.getMeta();return p(p({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=XA(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),a($(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return kR(e||t(!0),n)})),a($(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,s=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,u=t.getValueProps,d=t.fieldContext,f=void 0!==i?i:d.validateTrigger,h=o.getNamePath(),m=d.getInternalHooks,g=d.getFieldsValue,v=m(II).dispatch,y=o.getValue(),b=u||function(e){return a({},c,e)},w=e[r],x=void 0!==n?b(y):{};var S=p(p({},e),x);return S[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=s?s.apply(void 0,n):VR.apply(void 0,[c].concat(n)),l&&(e=l(e,y,g(!0))),v({type:"updateValue",namePath:h,value:e}),w&&w.apply(void 0,n)},jI(f||[]).forEach((function(e){var t=S[e];S[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:h,triggerName:e})}})),S})),t.fieldContext)&&(0,(0,t.fieldContext.getInternalHooks)(II).initEntityValue)($(o));return o}return z(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(II).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),a=o.child;return o.isFunction?t=a:e.isValidElement(a)?t=e.cloneElement(a,this.getControlled(a.props)):(j(!a,"`children` of Field is not validate ReactElement."),t=a),e.createElement(e.Fragment,{key:n},t)}}]),r}(e.Component);a(YR,"contextType",FI),a(YR,"defaultProps",{trigger:"onChange",valuePropName:"value"});const ZR=function(t){var n=t.name,r=us(t,qR),o=e.useContext(FI),a=e.useContext(NI),i=void 0!==n?zR(n):void 0,s="keep";return r.isListField||(s="_".concat((i||[]).join("_"))),e.createElement(YR,Ge({key:s,name:i,isListField:!!a},r,{fieldContext:o}))};const $R=function(t){var n=t.name,r=t.initialValue,o=t.children,a=t.rules,i=t.validateTrigger,s=t.isListField,l=e.useContext(FI),c=e.useContext(NI),u=e.useRef({keys:[],id:0}).current,d=e.useMemo((function(){var e=zR(l.prefixName)||[];return[].concat(f(e),f(zR(n)))}),[l.prefixName,n]),h=e.useMemo((function(){return p(p({},l),{},{prefixName:d})}),[l,d]),m=e.useMemo((function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[d]);return"function"!==typeof o?(j(!1,"Form.List only accepts function as children."),null):e.createElement(NI.Provider,{value:m},e.createElement(FI.Provider,{value:h},e.createElement(ZR,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:a,validateTrigger:i,initialValue:r,isList:!0,isListField:null!==s&&void 0!==s?s:!!c},(function(e,t){var n=e.value,r=void 0===n?[]:n,a=e.onChange,i=l.getFieldValue,s=function(){return i(d||[])||[]},c={add:function(e,t){var n=s();t>=0&&t<=n.length?(u.keys=[].concat(f(u.keys.slice(0,t)),[u.id],f(u.keys.slice(t))),a([].concat(f(n.slice(0,t)),[e],f(n.slice(t))))):(u.keys=[].concat(f(u.keys),[u.id]),a([].concat(f(n),[e]))),u.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),a(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(u.keys=UR(u.keys,e,t),a(UR(n,e,t)))}}},h=r||[];return Array.isArray(h)||(h=[]),o(h.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),c,t)}))))};var QR="__@field_split__";function JR(e){return e.map((function(e){return"".concat(r(e),":").concat(e)})).join(QR)}var eF=function(){function e(){L(this,e),a(this,"kvs",new Map)}return z(e,[{key:"set",value:function(e,t){this.kvs.set(JR(e),t)}},{key:"get",value:function(e){return this.kvs.get(JR(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(JR(e))}},{key:"map",value:function(e){return f(this.kvs.entries()).map((function(t){var n=u(t,2),r=n[0],o=n[1],a=r.split(QR);return e({key:a.map((function(e){var t=u(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const tF=eF;var nF=["name"],rF=z((function e(t){var n=this;L(this,e),a(this,"formHooked",!1),a(this,"forceRootUpdate",void 0),a(this,"subscribable",!0),a(this,"store",{}),a(this,"fieldEntities",[]),a(this,"initialValues",{}),a(this,"callbacks",{}),a(this,"validateMessages",null),a(this,"preserve",null),a(this,"lastValidatePromise",null),a(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),a(this,"getInternalHooks",(function(e){return e===II?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(j(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),a(this,"useSubscribe",(function(e){n.subscribable=e})),a(this,"prevWithoutPreserves",null),a(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=MR(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=AR(o,n,kR(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),a(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new tF;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),a(this,"getInitialValue",(function(e){var t=kR(n.initialValues,e);return e.length?MR(t):t})),a(this,"setCallbacks",(function(e){n.callbacks=e})),a(this,"setValidateMessages",(function(e){n.validateMessages=e})),a(this,"setPreserve",(function(e){n.preserve=e})),a(this,"watchList",[]),a(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),a(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),a(this,"timeoutId",null),a(this,"warningUnhooked",(function(){0})),a(this,"updateStore",(function(e){n.store=e})),a(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),a(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new tF;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),a(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=zR(e);return t.get(n)||{INVALIDATE_NAME_PATH:zR(e)}}))})),a(this,"getFieldsValue",(function(e,t){var o,a,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,a=t):e&&"object"===r(e)&&(i=e.strict,a=e.filter),!0===o&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),l=[];return s.forEach((function(e){var t,n,r,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(r=(s=e).isList)&&void 0!==r&&r.call(s))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(a){var u="getMeta"in e?e.getMeta():null;a(u)&&l.push(c)}else l.push(c)})),HR(n.store,l.map(zR))})),a(this,"getFieldValue",(function(e){n.warningUnhooked();var t=zR(e);return kR(n.store,t)})),a(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:zR(e[n]),errors:[],warnings:[]}}))})),a(this,"getFieldError",(function(e){n.warningUnhooked();var t=zR(e);return n.getFieldsError([t])[0].errors})),a(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=zR(e);return n.getFieldsError([t])[0].warnings})),a(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,a=t[0],i=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(a)?(o=a.map(zR),s=!1):(o=null,s=a):(o=a.map(zR),s=i);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return s?l.every((function(e){return c(e)||e.isList()})):l.some(c);var u=new tF;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(f(t),[e])}))}))}));var d=function(e){return e.some(c)},h=u.map((function(e){return e.value}));return s?h.every(d):h.some(d)})),a(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),a(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(zR);return t.some((function(e){var t=e.getNamePath();return WR(r,t)&&e.isFieldValidating()}))})),a(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),a(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new tF,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,f(f(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))j(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=t.get(o);if(a&&a.size>1)j(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==i||n.updateStore(AR(n.store,o,f(a)[0].value))}}}}))})),a(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(MR(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(zR);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(AR(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),a(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=us(e,nF),i=zR(o);r.push(i),"value"in a&&n.updateStore(AR(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)})),a(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=p(p({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),a(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===kR(n.store,r)&&n.updateStore(AR(n.store,r,t))}})),a(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t})),a(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||a.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!GR(e.getNamePath(),t)}))){var s=n.store;n.updateStore(AR(s,t,i,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),a(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,a=e.triggerName;n.validateFields([o],{triggerName:a})}})),a(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=p(p({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),a(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(f(r))}),r})),a(this,"updateValue",(function(e,t){var r=zR(e),o=n.store;n.updateStore(AR(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(o,r),i=n.callbacks.onValuesChange;i&&i(HR(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(f(a)))})),a(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=MR(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),a(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),a(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new tF;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=zR(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),a(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new tF;t.forEach((function(e){var t=e.name,n=e.errors;a.set(t,n)})),o.forEach((function(e){e.errors=a.get(e.name)||e.errors}))}var i=o.filter((function(t){var n=t.name;return WR(e,n)}));i.length&&r(i,o)}})),a(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(r=e,o=t):o=e;var a=!!r,i=a?r.map(zR):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,h=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(a||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!h||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!a||WR(i,t,d)){var r=e.validateRules(p({validateMessages:p(p({},_R),n.validateMessages)},o));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,f(n)):r.push.apply(r,f(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var m=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,a){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=m,m.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var g=m.then((function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==m})}));g.catch((function(e){return e}));var v=i.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(v),g})),a(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const oF=function(t){var n=e.useRef(),r=u(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new rF((function(){r({})}));n.current=o.getForm()}return[n.current]};var aF=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const iF=aF;var sF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const lF=function(t,n){var o=t.name,a=t.initialValues,i=t.fields,s=t.form,l=t.preserve,c=t.children,d=t.component,h=void 0===d?"form":d,m=t.validateMessages,g=t.validateTrigger,v=void 0===g?"onChange":g,y=t.onValuesChange,b=t.onFieldsChange,w=t.onFinish,x=t.onFinishFailed,S=t.clearOnDestroy,C=us(t,sF),_=e.useRef(null),E=e.useContext(iF),k=u(oF(s),1)[0],P=k.getInternalHooks(II),A=P.useSubscribe,O=P.setInitialValues,T=P.setCallbacks,M=P.setValidateMessages,I=P.setPreserve,R=P.destroyForm;e.useImperativeHandle(n,(function(){return p(p({},k),{},{nativeElement:_.current})})),e.useEffect((function(){return E.registerForm(o,k),function(){E.unregisterForm(o)}}),[E,k,o]),M(p(p({},E.validateMessages),m)),T({onValuesChange:y,onFieldsChange:function(e){if(E.triggerFormChange(o,e),b){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];b.apply(void 0,[e].concat(n))}},onFinish:function(e){E.triggerFormFinish(o,e),w&&w(e)},onFinishFailed:x}),I(l);var F,N=e.useRef(null);O(a,!N.current),N.current||(N.current=!0),e.useEffect((function(){return function(){return R(S)}}),[]);var j="function"===typeof c;j?F=c(k.getFieldsValue(!0),k):F=c;A(!j);var D=e.useRef();e.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==r(e)||"object"!==r(t))return!1;var n=Object.keys(e),o=Object.keys(t);return f(new Set([].concat(n,o))).every((function(n){var r=e[n],o=t[n];return"function"===typeof r&&"function"===typeof o||r===o}))})(D.current||[],i||[])||k.setFields(i||[]),D.current=i}),[i,k]);var L=e.useMemo((function(){return p(p({},k),{},{validateTrigger:v})}),[k,v]),B=e.createElement(NI.Provider,{value:null},e.createElement(FI.Provider,{value:L},F));return!1===h?B:e.createElement(h,Ge({},C,{ref:_,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k.submit()},onReset:function(e){var t;e.preventDefault(),k.resetFields(),null===(t=C.onReset)||void 0===t||t.call(C,e)}}),B)};function cF(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var uF=function(){};const dF=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],a=n[1],i=void 0===a?{}:a,s=function(e){return e&&!!e._init}(i)?{form:i}:i,l=s.form,c=u((0,e.useState)(),2),d=c[0],f=c[1],h=(0,e.useMemo)((function(){return cF(d)}),[d]),p=(0,e.useRef)(h);p.current=h;var m=(0,e.useContext)(FI),g=l||m,v=g&&g._init,y=zR(o),b=(0,e.useRef)(y);return b.current=y,uF(y),(0,e.useEffect)((function(){if(v){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(II).registerWatch,n=function(e,t){var n=s.preserve?t:e;return"function"===typeof o?o(n):kR(n,b.current)},r=t((function(e,t){var r=n(e,t),o=cF(r);p.current!==o&&(p.current=o,f(r))})),a=n(e(),e(!0));return d!==a&&f(a),r}}),[v]),d};var fF=e.forwardRef(lF);fF.FormProvider=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,s=e.useContext(aF),l=e.useRef({});return e.createElement(aF.Provider,{value:p(p({},s),{},{validateMessages:p(p({},s.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),s.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),s.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=p(p({},l.current),{},a({},e,t))),s.registerForm(e,t)},unregisterForm:function(e){var t=p({},l.current);delete t[e],l.current=t,s.unregisterForm(e)}})},i)},fF.Field=ZR,fF.List=$R,fF.useForm=oF,fF.useWatch=dF;const hF=e.createContext({});const pF=t=>{let{children:n,status:r,override:o}=t;const a=(0,e.useContext)(hF),i=(0,e.useMemo)((()=>{const e=Object.assign({},a);return o&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,o,a]);return e.createElement(hF.Provider,{value:i},n)},mF=(0,e.createContext)(void 0),gF=t=>{const n=e.useContext(Do);return e.useMemo((()=>t?"string"===typeof t?null!==t&&void 0!==t?t:n:t instanceof Function?t(n):n:n),[t,n])},vF=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},yF=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},["".concat(t,"-item:empty")]:{display:"none"},["".concat(t,"-item > ").concat(n,"-badge-not-a-wrapper:only-child")]:{display:"block"}}}},bF=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},wF=Sl("Space",(e=>{const t=hl(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[yF(t),bF(t),vF(t)]}),(()=>({})),{resetStyle:!1});var xF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const SF=e.createContext(null),CF=(t,n)=>{const r=e.useContext(SF),o=e.useMemo((()=>{if(!r)return"";const{compactDirection:e,isFirstItem:o,isLastItem:a}=r,i="vertical"===e?"-vertical-":"-";return $o()("".concat(t,"-compact").concat(i,"item"),{["".concat(t,"-compact").concat(i,"first-item")]:o,["".concat(t,"-compact").concat(i,"last-item")]:a,["".concat(t,"-compact").concat(i,"item-rtl")]:"rtl"===n})}),[t,n,r]);return{compactSize:null===r||void 0===r?void 0:r.compactSize,compactDirection:null===r||void 0===r?void 0:r.compactDirection,compactItemClassnames:o}},_F=t=>{let{children:n}=t;return e.createElement(SF.Provider,{value:null},n)},EF=t=>{var{children:n}=t,r=xF(t,["children"]);return e.createElement(SF.Provider,{value:r},n)},kF=t=>{const{getPrefixCls:n,direction:r}=e.useContext(vo),{size:o,direction:a,block:i,prefixCls:s,className:l,rootClassName:c,children:u}=t,d=xF(t,["size","direction","block","prefixCls","className","rootClassName","children"]),f=gF((e=>null!==o&&void 0!==o?o:e)),h=n("space-compact",s),[p,m]=wF(h),g=$o()(h,m,{["".concat(h,"-rtl")]:"rtl"===r,["".concat(h,"-block")]:i,["".concat(h,"-vertical")]:"vertical"===a},l,c),v=e.useContext(SF),y=ls(u),b=e.useMemo((()=>y.map(((t,n)=>{const r=(null===t||void 0===t?void 0:t.key)||"".concat(h,"-item-").concat(n);return e.createElement(EF,{key:r,compactSize:f,compactDirection:a,isFirstItem:0===n&&(!v||(null===v||void 0===v?void 0:v.isFirstItem)),isLastItem:n===y.length-1&&(!v||(null===v||void 0===v?void 0:v.isLastItem))},t)}))),[o,y,v]);return 0===y.length?null:p(e.createElement("div",Object.assign({className:g},d),b))},PF=t=>{const{space:n,form:r,children:o}=t;if(void 0===o||null===o)return null;let a=o;return r&&(a=e.createElement(pF,{override:!0,status:!0},a)),n&&(a=e.createElement(_F,null,a)),a};function AF(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=o,i=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,d=c,f=2*o-i,h=s,p=2*o-0,m=a,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),y="polygon(".concat(v,"px 100%, 50% ").concat(v,"px, ").concat(2*o-v,"px 100%, ").concat(v,"px 100%)");return{arrowShadowWidth:g,arrowPath:"path('M ".concat(0," ").concat(a," A ").concat(r," ").concat(r," 0 0 0 ").concat(i," ").concat(s," L ").concat(l," ").concat(c," A ").concat(n," ").concat(n," 0 0 1 ").concat(u," ").concat(d," L ").concat(f," ").concat(h," A ").concat(r," ").concat(r," 0 0 0 ").concat(p," ").concat(m," Z')"),arrowPolygon:y}}const OF=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat(xe(s)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},TF=8;function MF(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?TF:r}}function IF(e,t){return e?t:{}}function RF(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(r,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},OF(e,t,o)),{"&:before":{background:t}})]},IF(!!l.top,{[["&-placement-top > ".concat(r,"-arrow"),"&-placement-topLeft > ".concat(r,"-arrow"),"&-placement-topRight > ".concat(r,"-arrow")].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:i}},["&-placement-topRight > ".concat(r,"-arrow")]:{right:{_skip_check_:!0,value:i}}})),IF(!!l.bottom,{[["&-placement-bottom > ".concat(r,"-arrow"),"&-placement-bottomLeft > ".concat(r,"-arrow"),"&-placement-bottomRight > ".concat(r,"-arrow")].join(",")]:{top:s,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:i}},["&-placement-bottomRight > ".concat(r,"-arrow")]:{right:{_skip_check_:!0,value:i}}})),IF(!!l.left,{[["&-placement-left > ".concat(r,"-arrow"),"&-placement-leftTop > ".concat(r,"-arrow"),"&-placement-leftBottom > ".concat(r,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(r,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(r,"-arrow")]:{top:a},["&-placement-leftBottom > ".concat(r,"-arrow")]:{bottom:a}})),IF(!!l.right,{[["&-placement-right > ".concat(r,"-arrow"),"&-placement-rightTop > ".concat(r,"-arrow"),"&-placement-rightBottom > ".concat(r,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(r,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(r,"-arrow")]:{top:a},["&-placement-rightBottom > ".concat(r,"-arrow")]:{bottom:a}}))}}const FF={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},NF={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},jF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function DF(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(FF).forEach((e=>{const c=r&&NF[e]||FF[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,jF.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const d=MF({contentRadius:a,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"===typeof r?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.arrowOffsetHorizontal+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.arrowOffsetVertical+n,a.shiftX=!0,a.adjustX=!0}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,d,t,n),i&&(u.htmlRegion="visibleFirst")})),l}const LF=e=>({animationDuration:e,animationFillMode:"both"}),BF=e=>({animationDuration:e,animationFillMode:"both"}),zF=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{["\n      ".concat(o).concat(e,"-enter,\n      ").concat(o).concat(e,"-appear\n    ")]:Object.assign(Object.assign({},LF(r)),{animationPlayState:"paused"}),["".concat(o).concat(e,"-leave")]:Object.assign(Object.assign({},BF(r)),{animationPlayState:"paused"}),["\n      ".concat(o).concat(e,"-enter").concat(e,"-enter-active,\n      ").concat(o).concat(e,"-appear").concat(e,"-appear-active\n    ")]:{animationName:t,animationPlayState:"running"},["".concat(o).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},HF=new Yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),WF=new Yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),GF=new Yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),VF=new Yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),UF=new Yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),qF=new Yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),KF={zoom:{inKeyframes:HF,outKeyframes:WF},"zoom-big":{inKeyframes:GF,outKeyframes:VF},"zoom-big-fast":{inKeyframes:GF,outKeyframes:VF},"zoom-left":{inKeyframes:new Yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:UF,outKeyframes:qF},"zoom-down":{inKeyframes:new Yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},XF=(e,t)=>{const{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:o,outKeyframes:a}=KF[t];return[zF(r,o,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{["\n        ".concat(r,"-enter,\n        ").concat(r,"-appear\n      ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]},YF=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function ZF(e,t){return YF.reduce(((n,r)=>{const o=e["".concat(r,"1")],a=e["".concat(r,"3")],i=e["".concat(r,"6")],s=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))}),{})}const $F=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,["".concat(t,"-inner")]:{minWidth:"1em",minHeight:s,padding:"".concat(xe(e.calc(c).div(2).equal())," ").concat(xe(u)),color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{["".concat(t,"-inner")]:{borderRadius:e.min(a,TF)}},["".concat(t,"-content")]:{position:"relative"}}),ZF(e,((e,n)=>{let{darkColor:r}=n;return{["&".concat(t,"-").concat(e)]:{["".concat(t,"-inner")]:{backgroundColor:r},["".concat(t,"-arrow")]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},RF(e,"var(--antd-arrow-background-color)"),{["".concat(t,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},QF=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},MF({contentRadius:e.borderRadius,limitVerticalRadius:!0})),AF(hl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),JF=function(e){const t=Sl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=hl(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[$F(o),XF(e,"zoom-big-fast")]}),QF,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},eN=YF.map((e=>"".concat(e,"-inverse"))),tN=["success","processing","error","default","warning"];function nN(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(as(eN),as(YF)).includes(e):YF.includes(e)}function rN(e,t){const n=nN(t),r=$o()({["".concat(e,"-").concat(t)]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const oN=t=>{const{prefixCls:n,className:r,placement:o="top",title:a,color:i,overlayInnerStyle:s}=t,{getPrefixCls:l}=e.useContext(vo),c=l("tooltip",n),[u,d,f]=JF(c),h=rN(c,i),p=h.arrowStyle,m=Object.assign(Object.assign({},s),h.overlayStyle),g=$o()(d,f,c,"".concat(c,"-pure"),"".concat(c,"-placement-").concat(o),r,h.className);return u(e.createElement("div",{className:g,style:p},e.createElement("div",{className:"".concat(c,"-arrow")}),e.createElement(xI,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:m}),a)))};var aN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const iN=e.forwardRef(((t,n)=>{var r,o;const{prefixCls:a,openClassName:i,getTooltipContainer:s,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:h,destroyTooltipOnHide:p,arrow:m=!0,title:g,overlay:v,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:w=!0}=t,x=!!m,[,S]=ji(),{getPopupContainer:C,getPrefixCls:_,direction:E}=e.useContext(vo),k=En("Tooltip"),P=e.useRef(null),A=()=>{var e;null===(e=P.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,(()=>{var e;return{forceAlign:A,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:null===(e=P.current)||void 0===e?void 0:e.nativeElement}}));const[O,T]=Oa(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),M=!g&&!v&&0!==g,I=e.useMemo((()=>{var e,t;let n=b;return"object"===typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:b),y||DF({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})}),[b,m,y,S]),R=e.useMemo((()=>0===g?g:v||g||""),[v,g]),F=e.createElement(PF,{space:!0},"function"===typeof R?R():R),{getPopupContainer:N,placement:j="top",mouseEnterDelay:D=.1,mouseLeaveDelay:L=.1,overlayStyle:B,rootClassName:z}=t,H=aN(t,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=_("tooltip",a),G=_(),V=t["data-popover-inject"];let U=O;"open"in t||"visible"in t||!M||(U=!1);const q=e.isValidElement(d)&&!mI(d)?d:e.createElement("span",null,d),K=q.props,X=K.className&&"string"!==typeof K.className?K.className:$o()(K.className,i||"".concat(W,"-open")),[Y,Z,$]=JF(W,!V),Q=rN(W,c),J=Q.arrowStyle,ee=Object.assign(Object.assign({},u),Q.overlayStyle),te=$o()(l,{["".concat(W,"-rtl")]:"rtl"===E},Q.className,z,Z,$),[ne,re]=Ef("Tooltip",H.zIndex),oe=e.createElement(AI,Object.assign({},H,{zIndex:ne,showArrow:x,placement:j,mouseEnterDelay:D,mouseLeaveDelay:L,prefixCls:W,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},J),B),getTooltipContainer:N||s||C,ref:P,builtinPlacements:I,overlay:F,visible:U,onVisibleChange:e=>{var n,r;T(!M&&e),M||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(r=t.onVisibleChange)||void 0===r||r.call(t,e))},afterVisibleChange:null!==f&&void 0!==f?f:h,overlayInnerStyle:ee,arrowContent:e.createElement("span",{className:"".concat(W,"-arrow-content")}),motion:{motionName:hI(G,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),U?vI(q,{className:X}):q);return Y(e.createElement(xf.Provider,{value:re},oe))})),sN=iN;sN._InternalPanelDoNotUseOrYouWillBeFired=oN;const lN=sN,cN=t=>{var n;const{className:r,children:o,icon:a,title:i,danger:s}=t,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=e.useContext(yI),{siderCollapsed:h}=e.useContext(tl);let p=i;"undefined"===typeof i?p=c?o:"":!1===i&&(p="");const m={title:p};h||f||(m.title=null,m.open=!1);const g=ls(o).length;let v=e.createElement(VT,Object.assign({},is(t,["title","icon","danger"]),{className:$o()({["".concat(l,"-item-danger")]:s,["".concat(l,"-item-only-child")]:1===(a?g+1:g)},r),title:"string"===typeof i?i:void 0}),vI(a,{className:$o()(e.isValidElement(a)?null===(n=a.props)||void 0===n?void 0:n.className:"","".concat(l,"-item-icon"))}),(t=>{const n=e.createElement("span",{className:"".concat(l,"-title-content")},o);return(!a||e.isValidElement(o)&&"span"===o.type)&&o&&t&&c&&"string"===typeof o?e.createElement("div",{className:"".concat(l,"-inline-collapsed-noicon")},o.charAt(0)):n})(f));return d||(v=e.createElement(lN,Object.assign({},m,{placement:"rtl"===u?"left":"right",overlayClassName:"".concat(l,"-inline-collapsed-tooltip")}),v)),v};var uN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dN=e.createContext(null),fN=e.forwardRef(((t,n)=>{const{children:r}=t,o=uN(t,["children"]),a=e.useContext(dN),i=e.useMemo((()=>Object.assign(Object.assign({},a),o)),[a,o.prefixCls,o.mode,o.selectable,o.rootClassName]),s=function(e){return ia(e)&&aa(e)}(r),l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qt((function(){return oa.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}(n,s?r.ref:null);return e.createElement(dN.Provider,{value:i},e.createElement(PF,{space:!0},s?e.cloneElement(r,{ref:l}):r))})),hN=dN,pN=e=>({[e.componentCls]:{["".concat(e.antCls,"-motion-collapse-legacy")]:{overflow:"hidden","&-active":{transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n        opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}},["".concat(e.antCls,"-motion-collapse")]:{overflow:"hidden",transition:"height ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut,",\n        opacity ").concat(e.motionDurationMid," ").concat(e.motionEaseInOut," !important")}}}),mN=new Yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),gN=new Yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),vN=new Yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),yN=new Yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),bN=new Yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),wN=new Yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),xN=new Yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),SN=new Yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),CN={"slide-up":{inKeyframes:mN,outKeyframes:gN},"slide-down":{inKeyframes:vN,outKeyframes:yN},"slide-left":{inKeyframes:bN,outKeyframes:wN},"slide-right":{inKeyframes:xN,outKeyframes:SN}},_N=(e,t)=>{const{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:o,outKeyframes:a}=CN[t];return[zF(r,o,a,e.motionDurationMid),{["\n      ".concat(r,"-enter,\n      ").concat(r,"-appear\n    ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]},EN=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{["".concat(t,"-horizontal")]:{lineHeight:r,border:0,borderBottom:"".concat(xe(a)," ").concat(i," ").concat(o),boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},["".concat(t,"-item, ").concat(t,"-submenu")]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},["> ".concat(t,"-item:hover,\n        > ").concat(t,"-item-active,\n        > ").concat(t,"-submenu ").concat(t,"-submenu-title:hover")]:{backgroundColor:"transparent"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{transition:["border-color ".concat(n),"background ".concat(n)].join(",")},["".concat(t,"-submenu-arrow")]:{display:"none"}}}},kN=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-submenu-rtl")]:{transformOrigin:"100% 0"},["".concat(t,"-rtl").concat(t,"-vertical,\n    ").concat(t,"-submenu-rtl ").concat(t,"-vertical")]:{["".concat(t,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateY(".concat(xe(r(n).mul(-1).equal()),")")},"&::after":{transform:"rotate(45deg) translateY(".concat(xe(n),")")}}}}},PN=e=>Object.assign({},Gi(e)),AN=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:p,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:_,dangerItemSelectedBg:E,popupBg:k,itemHoverBg:P,itemActiveBg:A,menuSubMenuBg:O,horizontalItemSelectedColor:T,horizontalItemSelectedBg:M,horizontalItemBorderRadius:I,horizontalItemHoverBg:R}=e;return{["".concat(n,"-").concat(t,", ").concat(n,"-").concat(t," > ").concat(n)]:{color:r,background:i,["&".concat(n,"-root:focus-visible")]:Object.assign({},PN(e)),["".concat(n,"-item-group-title")]:{color:a},["".concat(n,"-submenu-selected")]:{["> ".concat(n,"-submenu-title")]:{color:o}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:{color:r,["&:not(".concat(n,"-item-disabled):focus-visible")]:Object.assign({},PN(e))},["".concat(n,"-item-disabled, ").concat(n,"-submenu-disabled")]:{color:"".concat(w," !important")},["".concat(n,"-item:not(").concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{["&:hover, > ".concat(n,"-submenu-title:hover")]:{color:v}},["&:not(".concat(n,"-horizontal)")]:{["".concat(n,"-item:not(").concat(n,"-item-selected)")]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:A}},["".concat(n,"-submenu-title")]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:A}}},["".concat(n,"-item-danger")]:{color:x,["&".concat(n,"-item:hover")]:{["&:not(".concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{color:S}},["&".concat(n,"-item:active")]:{background:_}},["".concat(n,"-item a")]:{"&, &:hover":{color:"inherit"}},["".concat(n,"-item-selected")]:{color:o,["&".concat(n,"-item-danger")]:{color:C},"a, a:hover":{color:"inherit"}},["& ".concat(n,"-item-selected")]:{backgroundColor:l,["&".concat(n,"-item-danger")]:{backgroundColor:E}},["&".concat(n,"-submenu > ").concat(n)]:{backgroundColor:O},["&".concat(n,"-popup > ").concat(n)]:{backgroundColor:k},["&".concat(n,"-submenu-popup > ").concat(n)]:{backgroundColor:k},["&".concat(n,"-horizontal")]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{["> ".concat(n,"-item, > ").concat(n,"-submenu")]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:I,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:"".concat(xe(c)," solid transparent"),transition:"border-color ".concat(f," ").concat(h),content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:c,borderBottomColor:T}},"&-selected":{color:T,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:c,borderBottomColor:T}}}}),["&".concat(n,"-root")]:{["&".concat(n,"-inline, &").concat(n,"-vertical")]:{borderInlineEnd:"".concat(xe(d)," ").concat(y," ").concat(b)}},["&".concat(n,"-inline")]:{["".concat(n,"-sub").concat(n,"-inline")]:{background:s},["".concat(n,"-item")]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:"".concat(xe(u)," solid ").concat(o),transform:"scaleY(0.0001)",opacity:0,transition:["transform ".concat(g," ").concat(p),"opacity ".concat(g," ").concat(p)].join(","),content:'""'},["&".concat(n,"-item-danger")]:{"&::after":{borderInlineEndColor:C}}},["".concat(n,"-selected, ").concat(n,"-item-selected")]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform ".concat(g," ").concat(h),"opacity ".concat(g," ").concat(h)].join(",")}}}}}},ON=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s,itemWidth:l}=e,c=e.calc(a).add(o).add(i).equal();return{["".concat(t,"-item")]:{position:"relative",overflow:"hidden"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{height:n,lineHeight:xe(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},["> ".concat(t,"-item,\n            > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{height:n,lineHeight:xe(n)},["".concat(t,"-item-group-list ").concat(t,"-submenu-title,\n            ").concat(t,"-submenu-title")]:{paddingInlineEnd:c}}},TN=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:p,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:xe(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({["&".concat(t,"-root")]:{boxShadow:"none"}},ON(e))},["".concat(t,"-submenu-popup")]:{["".concat(t,"-vertical")]:Object.assign(Object.assign({},ON(e)),{boxShadow:p})}},{["".concat(t,"-submenu-popup ").concat(t,"-vertical").concat(t,"-sub")]:{minWidth:a,maxHeight:"calc(100vh - ".concat(xe(e.calc(i).mul(2.5).equal()),")"),padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{["".concat(t,"-inline")]:{width:"100%",["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{display:"flex",alignItems:"center",transition:["border-color ".concat(f),"background ".concat(f),"padding ".concat(s," ").concat(l),"padding-inline calc(50% - ".concat(xe(e.calc(d).div(2).equal())," - ").concat(xe(u),")")].join(","),["> ".concat(t,"-title-content")]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},["".concat(t,"-sub").concat(t,"-inline")]:{padding:0,border:0,borderRadius:0,boxShadow:"none",["& > ".concat(t,"-submenu > ").concat(t,"-submenu-title")]:v,["& ".concat(t,"-item-group-title")]:{paddingInlineStart:c}},["".concat(t,"-item")]:v}},{["".concat(t,"-inline-collapsed")]:{width:m,["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu ").concat(t,"-submenu-title")]:{["> ".concat(t,"-inline-collapsed-noicon")]:{fontSize:d,textAlign:"center"}}},["> ".concat(t,"-item,\n          > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-item,\n          > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-submenu > ").concat(t,"-submenu-title,\n          > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{insetInlineStart:0,paddingInline:"calc(50% - ".concat(xe(e.calc(d).div(2).equal())," - ").concat(xe(u),")"),textOverflow:"clip",["\n            ".concat(t,"-submenu-arrow,\n            ").concat(t,"-submenu-expand-icon\n          ")]:{opacity:0},["".concat(t,"-item-icon, ").concat(n)]:{margin:0,fontSize:g,lineHeight:xe(r),"+ span":{display:"inline-block",opacity:0}}},["".concat(t,"-item-icon, ").concat(n)]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",["".concat(t,"-item-icon, ").concat(n)]:{display:"none"},"a, a:hover":{color:o}},["".concat(t,"-item-group-title")]:Object.assign(Object.assign({},Bi),{paddingInline:h})}}]},MN=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:l}=e;return{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color ".concat(n),"background ".concat(n),"padding ".concat(n," ").concat(o)].join(","),["".concat(t,"-item-icon, ").concat(i)]:{minWidth:s,fontSize:s,transition:["font-size ".concat(r," ").concat(a),"margin ".concat(n," ").concat(o),"color ".concat(n)].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:["opacity ".concat(n," ").concat(o),"margin ".concat(n),"color ".concat(n)].join(",")}},["".concat(t,"-item-icon")]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),["&".concat(t,"-item-only-child")]:{["> ".concat(i,", > ").concat(t,"-item-icon")]:{marginInlineEnd:0}}},["".concat(t,"-item-disabled, ").concat(t,"-submenu-disabled")]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},["> ".concat(t,"-submenu-title")]:{color:"inherit !important",cursor:"not-allowed"}}}},IN=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{["".concat(t,"-submenu")]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:"transform ".concat(n," ").concat(r,", opacity ").concat(n)},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background ".concat(n," ").concat(r),"transform ".concat(n," ").concat(r),"top ".concat(n," ").concat(r),"color ".concat(n," ").concat(r)].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(".concat(xe(e.calc(i).mul(-1).equal()),")")},"&::after":{transform:"rotate(-45deg) translateY(".concat(xe(i),")")}}}}},RN=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:m,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{["".concat(n)]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},["".concat(n,"-submenu-hidden")]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:"width ".concat(o," cubic-bezier(0.2, 0, 0, 1) 0s"),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",["".concat(n,"-item")]:{flex:"none"}},["".concat(n,"-item, ").concat(n,"-submenu, ").concat(n,"-submenu-title")]:{borderRadius:e.itemBorderRadius},["".concat(n,"-item-group-title")]:{padding:"".concat(xe(s)," ").concat(xe(l)),fontSize:y,lineHeight:v,transition:"all ".concat(o)},["&-horizontal ".concat(n,"-submenu")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i)].join(",")},["".concat(n,"-submenu, ").concat(n,"-submenu-inline")]:{transition:["border-color ".concat(o," ").concat(i),"background ".concat(o," ").concat(i),"padding ".concat(a," ").concat(i)].join(",")},["".concat(n,"-submenu ").concat(n,"-sub")]:{cursor:"initial",transition:["background ".concat(o," ").concat(i),"padding ".concat(o," ").concat(i)].join(",")},["".concat(n,"-title-content")]:{transition:"color ".concat(o),["> ".concat(t,"-typography-ellipsis-single-line")]:{display:"inline",verticalAlign:"unset"}},["".concat(n,"-item a")]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},["".concat(n,"-item-divider")]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),MN(e)),{["".concat(n,"-item-group")]:{["".concat(n,"-item-group-list")]:{margin:0,padding:0,["".concat(n,"-item, ").concat(n,"-submenu-title")]:{paddingInline:"".concat(xe(e.calc(r).mul(2).equal())," ").concat(xe(l))}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",["&".concat(n,"-submenu")]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},["> ".concat(n)]:Object.assign(Object.assign(Object.assign({borderRadius:f},MN(e)),IN(e)),{["".concat(n,"-item, ").concat(n,"-submenu > ").concat(n,"-submenu-title")]:{borderRadius:h},["".concat(n,"-submenu-title::after")]:{transition:"transform ".concat(o," ").concat(i)}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS}}}),IN(e)),{["&-inline-collapsed ".concat(n,"-submenu-arrow,\n        &-inline ").concat(n,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateX(".concat(xe(m),")")},"&::after":{transform:"rotate(45deg) translateX(".concat(xe(e.calc(m).mul(-1).equal()),")")}},["".concat(n,"-submenu-open").concat(n,"-submenu-inline > ").concat(n,"-submenu-title > ").concat(n,"-submenu-arrow")]:{transform:"translateY(".concat(xe(e.calc(p).mul(.2).mul(-1).equal()),")"),"&::after":{transform:"rotate(-45deg) translateX(".concat(xe(e.calc(m).mul(-1).equal()),")")},"&::before":{transform:"rotate(45deg) translateX(".concat(xe(m),")")}}})},{["".concat(t,"-layout-header")]:{[n]:{lineHeight:"inherit"}}}]},FN=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:p,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:v,lineHeight:y,colorBgElevated:b,marginXXS:w,padding:x,fontSize:S,controlHeightSM:C,fontSizeLG:_,colorTextLightSolid:E,colorErrorHover:k}=e,P=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,A=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:h,O=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,T=new Jr(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:A,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:O,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:2*v,popupBg:b,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:"".concat(1.15*v,"px"),iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:_,groupTitleFontSize:S,darkItemDisabledColor:new Jr(E).setAlpha(.25).toRgbString(),darkItemColor:T,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:T,darkItemHoverColor:E,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:P?"calc(100% + ".concat(A,"px)"):"calc(100% - ".concat(2*O,"px)")}},NN=t=>{var n;const{popupClassName:r,icon:o,title:a,theme:i}=t,s=e.useContext(yI),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=iT();let f;if(o){const t=e.isValidElement(a)&&"span"===a.type;f=e.createElement(e.Fragment,null,vI(o,{className:$o()(e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:"","".concat(l,"-item-icon"))}),t?a:e.createElement("span",{className:"".concat(l,"-title-content")},a))}else f=c&&!d.length&&a&&"string"===typeof a?e.createElement("div",{className:"".concat(l,"-inline-collapsed-noicon")},a.charAt(0)):e.createElement("span",{className:"".concat(l,"-title-content")},a);const h=e.useMemo((()=>Object.assign(Object.assign({},s),{firstLevel:!1})),[s]),[p]=Ef("Menu");return e.createElement(yI.Provider,{value:h},e.createElement(KM,Object.assign({},is(t,["icon"]),{title:f,popupClassName:$o()(l,r,"".concat(l,"-").concat(i||u)),popupStyle:{zIndex:p}})))};var jN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function DN(e){return null===e||!1===e}const LN={item:cN,submenu:NN,divider:wI},BN=(0,e.forwardRef)(((t,n)=>{var r;const o=e.useContext(hN),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=e.useContext(vo),u=i(),{prefixCls:d,className:f,style:h,theme:p="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:b,mode:w,selectable:x,onClick:S,overflowedIndicatorPopupClassName:C}=t,_=is(jN(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(r=a.validator)||void 0===r||r.call(a,{mode:w});const E=xa((function(){var e;null===S||void 0===S||S.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),k=a.mode||w,P=null!==x&&void 0!==x?x:a.selectable,A=e.useMemo((()=>void 0!==y?y:v),[v,y]),O={horizontal:{motionName:"".concat(u,"-slide-up")},inline:pI(u),other:{motionName:"".concat(u,"-zoom-big")}},T=i("menu",d||a.prefixCls),M=wf(T),[I,R,F]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Sl("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:a,darkItemBg:i,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:h,darkItemDisabledColor:p,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:y,darkPopupBg:b}=e,w=e.calc(r).div(7).mul(5).equal(),x=hl(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:y}),S=hl(x,{itemColor:o,itemHoverColor:h,groupTitleColor:f,itemSelectedColor:l,itemBg:i,popupBg:b,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:p,dangerItemColor:a,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[RN(x),EN(x),TN(x),AN(x,"light"),AN(S,"dark"),kN(x),pN(x),_N(x,"slide-up"),_N(x,"slide-down"),XF(x,"zoom-big")]}),FN,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(T,M,!o),N=$o()("".concat(T,"-").concat(p),null===c||void 0===c?void 0:c.className,f),j=e.useMemo((()=>{var t,n;if("function"===typeof m||DN(m))return m||null;if("function"===typeof a.expandIcon||DN(a.expandIcon))return a.expandIcon||null;if("function"===typeof(null===c||void 0===c?void 0:c.expandIcon)||DN(null===c||void 0===c?void 0:c.expandIcon))return(null===c||void 0===c?void 0:c.expandIcon)||null;const r=null!==(t=null!==m&&void 0!==m?m:null===a||void 0===a?void 0:a.expandIcon)&&void 0!==t?t:null===c||void 0===c?void 0:c.expandIcon;return vI(r,{className:$o()("".concat(T,"-submenu-expand-icon"),e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:void 0)})}),[m,null===a||void 0===a?void 0:a.expandIcon,null===c||void 0===c?void 0:c.expandIcon,T]),D=e.useMemo((()=>({prefixCls:T,inlineCollapsed:A||!1,direction:l,firstLevel:!0,theme:p,mode:k,disableMenuItemTitleTooltip:g})),[T,A,l,g,p]);return I(e.createElement(hN.Provider,{value:null},e.createElement(yI.Provider,{value:D},e.createElement(aI,Object.assign({getPopupContainer:s,overflowedIndicator:e.createElement(lI,null),overflowedIndicatorPopupClassName:$o()(T,"".concat(T,"-").concat(p),C),mode:k,selectable:P,onClick:E},_,{inlineCollapsed:A,style:Object.assign(Object.assign({},null===c||void 0===c?void 0:c.style),h),className:N,prefixCls:T,direction:l,defaultMotions:O,expandIcon:j,ref:n,rootClassName:$o()(b,R,a.rootClassName,F,M),_internalComponents:LN})))))})),zN=BN,HN=(0,e.forwardRef)(((t,n)=>{const r=(0,e.useRef)(null),o=e.useContext(tl);return(0,e.useImperativeHandle)(n,(()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}}))),e.createElement(zN,Object.assign({ref:r},t,o))}));HN.Item=cN,HN.SubMenu=NN,HN.Divider=wI,HN.ItemGroup=$M;const WN=HN,GN=Object.freeze({ITALY:Symbol("italy"),GERMANY:Symbol("germany"),UNITED_KINGDOM:Symbol("united_kingdom"),FRANCE:Symbol("france"),UBO:Symbol("ubo"),KYC:Symbol("kyc"),HIDDEN_SETTING:Symbol("hidden_setting")}),VN=Object.freeze({ADMIN:[GN.ITALY,GN.GERMANY,GN.UNITED_KINGDOM,GN.FRANCE,GN.UBO,GN.KYC,GN.HIDDEN_SETTING],COMMON:[GN.ITALY,GN.GERMANY,GN.UNITED_KINGDOM,GN.FRANCE,GN.KYC,GN.HIDDEN_SETTING],ALL_COUNTRIES:[GN.ITALY,GN.GERMANY,GN.UNITED_KINGDOM,GN.FRANCE],KYC:[GN.KYC],UBO:[GN.UBO],ITALY:[GN.ITALY],GERMANY:[GN.GERMANY],UNITED_KINGDOM:[GN.UNITED_KINGDOM],FRANCE:[GN.FRANCE]}),UN={"c-df81fbee-5b03-482a-9e6b-9c0f0d2e1ecb":[VN.ITALY],"c-101bc56c-7744-48b1-a4b4-517a88fdf4e6":[VN.ADMIN]},qN=t=>{var n;const r=(0,e.useContext)(sh),o=null===r||void 0===r||null===(n=r.jwt)||void 0===n?void 0:n.customer_id;if(void 0===o)return;return(UN[o]||[VN.COMMON]).flat().includes(t)};const KN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var XN=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:KN}))};const YN=e.forwardRef(XN);const ZN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z"}}]},name:"idcard",theme:"outlined"};var $N=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:ZN}))};const QN=e.forwardRef($N);const JN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"};var ej=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:JN}))};const tj=e.forwardRef(ej);const nj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"};var rj=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:nj}))};const oj=e.forwardRef(rj);const aj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var ij=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:aj}))};const sj=e.forwardRef(ij),lj=(0,e.createContext)(null);const cj=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=void 0===a?{}:a,s=i.size,l=i.align,c=void 0===l?"center":l,d=u((0,e.useState)(),2),f=d[0],h=d[1],p=(0,e.useRef)(),m=e.useCallback((function(e){return"function"===typeof s?s(e):"number"===typeof s?s:e}),[s]);function g(){Fd.cancel(p.current)}return(0,e.useEffect)((function(){var e={};if(n)if(r){e.width=m(n.width);var t=o?"right":"left";"start"===c&&(e[t]=n[t]),"center"===c&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=m(n.height),"start"===c&&(e.top=n.top),"center"===c&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return g(),p.current=Fd((function(){h(e)})),g}),[n,r,o,c,m]),{style:f}};var uj={width:0,height:0,left:0,top:0};function dj(t,n){var r=e.useRef(t),o=u(e.useState({}),2)[1];return[r.current,function(e){var t="function"===typeof e?e(r.current):e;t!==r.current&&n(t,r.current),r.current=t,o({})}]}var fj=Math.pow(.995,20);function hj(t){var n=u((0,e.useState)(0),2),r=n[0],o=n[1],a=(0,e.useRef)(0),i=(0,e.useRef)();return i.current=t,Ae((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}var pj={width:0,height:0,left:0,top:0,right:0};function mj(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function gj(e){return String(e).replace(/"/g,"TABS_DQ")}function vj(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var yj=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.editable,a=t.locale,i=t.style;return o&&!1!==o.showAdd?e.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:i,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const bj=yj;var wj=e.forwardRef((function(t,n){var o,a=t.position,i=t.prefixCls,s=t.extra;if(!s)return null;var l={};return"object"!==r(s)||e.isValidElement(s)?l.right=s:l=s,"right"===a&&(o=l.right),"left"===a&&(o=l.left),o?e.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},o):null}));const xj=wj;var Sj=ef.ESC,Cj=ef.TAB;var _j=(0,e.forwardRef)((function(t,n){var r=t.overlay,o=t.arrow,a=t.prefixCls,i=(0,e.useMemo)((function(){return"function"===typeof r?r():r}),[r]),s=$u(n,null===i||void 0===i?void 0:i.ref);return e.createElement(e.Fragment,null,o&&e.createElement("div",{className:"".concat(a,"-arrow")}),e.cloneElement(i,{ref:Ju(i)?s:void 0}))}));const Ej=_j;var kj={adjustX:1,adjustY:1},Pj=[0,0];const Aj={topLeft:{points:["bl","tl"],overflow:kj,offset:[0,-4],targetOffset:Pj},top:{points:["bc","tc"],overflow:kj,offset:[0,-4],targetOffset:Pj},topRight:{points:["br","tr"],overflow:kj,offset:[0,-4],targetOffset:Pj},bottomLeft:{points:["tl","bl"],overflow:kj,offset:[0,4],targetOffset:Pj},bottom:{points:["tc","bc"],overflow:kj,offset:[0,4],targetOffset:Pj},bottomRight:{points:["tr","br"],overflow:kj,offset:[0,4],targetOffset:Pj}};var Oj=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Tj(t,n){var r,o=t.arrow,i=void 0!==o&&o,s=t.prefixCls,l=void 0===s?"rc-dropdown":s,c=t.transitionName,d=t.animation,f=t.align,h=t.placement,p=void 0===h?"bottomLeft":h,m=t.placements,g=void 0===m?Aj:m,v=t.getPopupContainer,y=t.showAction,b=t.hideAction,w=t.overlayClassName,x=t.overlayStyle,S=t.visible,C=t.trigger,_=void 0===C?["hover"]:C,E=t.autoFocus,k=t.overlay,P=t.children,A=t.onVisibleChange,O=us(t,Oj),T=u(e.useState(),2),M=T[0],I=T[1],R="visible"in t?S:M,F=e.useRef(null),N=e.useRef(null),j=e.useRef(null);e.useImperativeHandle(n,(function(){return F.current}));var D=function(e){I(e),null===A||void 0===A||A(e)};!function(t){var n=t.visible,r=t.triggerRef,o=t.onVisibleChange,a=t.autoFocus,i=t.overlayRef,s=e.useRef(!1),l=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null===o||void 0===o||o(!1))},c=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus)&&(i.current.focus(),s.current=!0,!0)},u=function(e){switch(e.keyCode){case Sj:l();break;case Cj:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};e.useEffect((function(){return n?(window.addEventListener("keydown",u),a&&Fd(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}}),[n])}({visible:R,triggerRef:j,onVisibleChange:D,autoFocus:E,overlayRef:N});var L=function(){return e.createElement(Ej,{ref:N,overlay:k,prefixCls:l,arrow:i})},B=e.cloneElement(P,{className:$o()(null===(r=P.props)||void 0===r?void 0:r.className,R&&function(){var e=t.openClassName;return void 0!==e?e:"".concat(l,"-open")}()),ref:Ju(P)?$u(j,P.ref):void 0}),z=b;return z||-1===_.indexOf("contextMenu")||(z=["click"]),e.createElement(jM,Ge({builtinPlacements:g},O,{prefixCls:l,ref:F,popupClassName:$o()(w,a({},"".concat(l,"-show-arrow"),i)),popupStyle:x,action:_,showAction:y,hideAction:z,popupPlacement:p,popupAlign:f,popupTransitionName:c,popupAnimation:d,popupVisible:R,stretch:function(){var e=t.minOverlayWidthMatchTrigger,n=t.alignPoint;return"minOverlayWidthMatchTrigger"in t?e:!n}()?"minWidth":"",popup:"function"===typeof k?L:L(),onPopupVisibleChange:D,onPopupClick:function(e){var n=t.onOverlayClick;I(!1),n&&n(e)},getPopupContainer:v}),B)}const Mj=e.forwardRef(Tj);var Ij=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.id,i=t.tabs,s=t.locale,l=t.mobile,c=t.more,d=void 0===c?{}:c,f=t.style,h=t.className,p=t.editable,m=t.tabBarGutter,g=t.rtl,v=t.removeAriaLabel,y=t.onTabClick,b=t.getPopupContainer,w=t.popupClassName,x=u((0,e.useState)(!1),2),S=x[0],C=x[1],_=u((0,e.useState)(null),2),E=_[0],k=_[1],P=d.icon,A=void 0===P?"More":P,O="".concat(o,"-more-popup"),T="".concat(r,"-dropdown"),M=null!==E?"".concat(O,"-").concat(E):null,I=null===s||void 0===s?void 0:s.dropdownAriaLabel;var R=e.createElement(aI,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),C(!1)},prefixCls:"".concat(T,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[E],"aria-label":void 0!==I?I:"expanded dropdown"},i.map((function(t){var n=t.closable,r=t.disabled,a=t.closeIcon,i=t.key,s=t.label,l=vj(n,a,p,r);return e.createElement(VT,{key:i,id:"".concat(O,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:r},e.createElement("span",null,s),l&&e.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,i)}},a||p.removeIcon||"\xd7"))})));function F(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void k(a.key)}}(0,e.useEffect)((function(){var e=document.getElementById(M);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),(0,e.useEffect)((function(){S||k(null)}),[S]);var N=a({},g?"marginRight":"marginLeft",m);i.length||(N.visibility="hidden",N.order=1);var j=$o()(a({},"".concat(T,"-rtl"),g)),D=l?null:e.createElement(Mj,Ge({prefixCls:T,overlay:R,visible:!!i.length&&S,onVisibleChange:C,overlayClassName:$o()(j,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},d),e.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:N,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":O,id:"".concat(o,"-more"),"aria-expanded":S,onKeyDown:function(e){var t=e.which;if(S)switch(t){case ef.UP:F(-1),e.preventDefault();break;case ef.DOWN:F(1),e.preventDefault();break;case ef.ESC:C(!1);break;case ef.SPACE:case ef.ENTER:null!==E&&y(E,e)}else[ef.DOWN,ef.SPACE,ef.ENTER].includes(t)&&(C(!0),e.preventDefault())}},A));return e.createElement("div",{className:$o()("".concat(r,"-nav-operations"),h),style:f,ref:n},D,e.createElement(bj,{prefixCls:r,locale:s,editable:p}))}));const Rj=e.memo(Ij,(function(e,t){return t.tabMoving}));const Fj=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,s=i.key,l=i.label,c=i.disabled,u=i.closeIcon,d=i.icon,f=t.closable,h=t.renderWrapper,p=t.removeAriaLabel,m=t.editable,g=t.onClick,v=t.onFocus,y=t.style,b="".concat(n,"-tab"),w=vj(f,u,m,c);function x(e){c||g(e)}var S=e.useMemo((function(){return d&&"string"===typeof l?e.createElement("span",null,l):l}),[l,d]),C=e.createElement("div",{key:s,"data-node-key":gj(s),className:$o()(b,a(a(a({},"".concat(b,"-with-remove"),w),"".concat(b,"-active"),o),"".concat(b,"-disabled"),c)),style:y,onClick:x},e.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[ef.SPACE,ef.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:v},d&&e.createElement("span",{className:"".concat(b,"-icon")},d),l&&S),w&&e.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:s,event:t})}},u||m.removeIcon||"\xd7"));return h?h(C):C};var Nj=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,a=void 0===o?0:o;if(e.current){var i=e.current.getBoundingClientRect(),s=i.width,l=i.height;if(Math.abs(s-r)<1)return[s,l]}return[r,a]},jj=function(e,t){return e[t?0:1]},Dj=e.forwardRef((function(t,n){var r=t.className,o=t.style,i=t.id,s=t.animated,l=t.activeKey,c=t.rtl,d=t.extra,h=t.editable,m=t.locale,g=t.tabPosition,v=t.tabBarGutter,y=t.children,b=t.onTabClick,w=t.onTabScroll,x=t.indicator,S=e.useContext(lj),C=S.prefixCls,_=S.tabs,E=(0,e.useRef)(null),k=(0,e.useRef)(null),P=(0,e.useRef)(null),A=(0,e.useRef)(null),O=(0,e.useRef)(null),T=(0,e.useRef)(null),M=(0,e.useRef)(null),I="top"===g||"bottom"===g,R=dj(0,(function(e,t){I&&w&&w({direction:e>t?"left":"right"})})),F=u(R,2),N=F[0],j=F[1],D=dj(0,(function(e,t){!I&&w&&w({direction:e>t?"top":"bottom"})})),L=u(D,2),B=L[0],z=L[1],H=u((0,e.useState)([0,0]),2),W=H[0],G=H[1],V=u((0,e.useState)([0,0]),2),U=V[0],q=V[1],K=u((0,e.useState)([0,0]),2),X=K[0],Y=K[1],Z=u((0,e.useState)([0,0]),2),$=Z[0],Q=Z[1],J=function(t){var n=(0,e.useRef)([]),r=u((0,e.useState)({}),2)[1],o=(0,e.useRef)("function"===typeof t?t():t),a=hj((function(){var e=o.current;n.current.forEach((function(t){e=t(e)})),n.current=[],o.current=e,r({})}));return[o.current,function(e){n.current.push(e),a()}]}(new Map),ee=u(J,2),te=ee[0],ne=ee[1],re=function(t,n,r){return(0,e.useMemo)((function(){for(var e,r=new Map,o=n.get(null===(e=t[0])||void 0===e?void 0:e.key)||uj,a=o.left+o.width,i=0;i<t.length;i+=1){var s,l=t[i].key,c=n.get(l);c||(c=n.get(null===(s=t[i-1])||void 0===s?void 0:s.key)||uj);var u=r.get(l)||p({},c);u.right=a-u.left-u.width,r.set(l,u)}return r}),[t.map((function(e){return e.key})).join("_"),n,r])}(_,te,U[0]),oe=jj(W,I),ae=jj(U,I),ie=jj(X,I),se=jj($,I),le=oe<ae+ie,ce=le?oe-se:oe-ie,ue="".concat(C,"-nav-operations-hidden"),de=0,fe=0;function he(e){return e<de?de:e>fe?fe:e}I&&c?(de=0,fe=Math.max(0,ae-ce)):(de=Math.min(0,ce-ae),fe=0);var pe=(0,e.useRef)(null),me=u((0,e.useState)(),2),ge=me[0],ve=me[1];function ye(){ve(Date.now())}function be(){pe.current&&clearTimeout(pe.current)}!function(t,n){var r=u((0,e.useState)(),2),o=r[0],a=r[1],i=u((0,e.useState)(0),2),s=i[0],l=i[1],c=u((0,e.useState)(0),2),d=c[0],f=c[1],h=u((0,e.useState)(),2),p=h[0],m=h[1],g=(0,e.useRef)(),v=(0,e.useRef)(),y=(0,e.useRef)(null);y.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(g.current)},onTouchMove:function(e){if(o){e.preventDefault();var t=e.touches[0],r=t.screenX,i=t.screenY;a({x:r,y:i});var c=r-o.x,u=i-o.y;n(c,u);var d=Date.now();l(d),f(d-s),m({x:c,y:u})}},onTouchEnd:function(){if(o&&(a(null),m(null),p)){var e=p.x/d,t=p.y/d,r=Math.abs(e),i=Math.abs(t);if(Math.max(r,i)<.1)return;var s=e,l=t;g.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(g.current):n(20*(s*=fj),20*(l*=fj))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,a=Math.abs(t),i=Math.abs(r);a===i?o="x"===v.current?t:r:a>i?(o=t,v.current="x"):(o=r,v.current="y"),n(-o,-o)&&e.preventDefault()}},e.useEffect((function(){function e(e){y.current.onTouchMove(e)}function n(e){y.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),t.current.addEventListener("touchstart",(function(e){y.current.onTouchStart(e)}),{passive:!0}),t.current.addEventListener("wheel",(function(e){y.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}),[])}(A,(function(e,t){function n(e,t){e((function(e){return he(e+t)}))}return!!le&&(I?n(j,e):n(z,t),be(),ye(),!0)})),(0,e.useEffect)((function(){return be(),ge&&(pe.current=setTimeout((function(){ve(0)}),100)),be}),[ge]);var we=function(t,n,r,o,a,i,s){var l,c,u,d=s.tabs,f=s.tabPosition,h=s.rtl;return["top","bottom"].includes(f)?(l="width",c=h?"right":"left",u=Math.abs(r)):(l="height",c="top",u=-r),(0,e.useMemo)((function(){if(!d.length)return[0,0];for(var e=d.length,r=e,o=0;o<e;o+=1){var a=t.get(d[o].key)||pj;if(a[c]+a[l]>u+n){r=o-1;break}}for(var i=0,s=e-1;s>=0;s-=1)if((t.get(d[s].key)||pj)[c]<u){i=s+1;break}return i>=r?[0,0]:[i,r]}),[t,n,o,a,i,u,f,d.map((function(e){return e.key})).join("_"),h])}(re,ce,I?N:B,ae,ie,se,p(p({},t),{},{tabs:_})),xe=u(we,2),Se=xe[0],Ce=xe[1],_e=MO((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(I){var n=N;c?t.right<N?n=t.right:t.right+t.width>N+ce&&(n=t.right+t.width-ce):t.left<-N?n=-t.left:t.left+t.width>-N+ce&&(n=-(t.left+t.width-ce)),z(0),j(he(n))}else{var r=B;t.top<-B?r=-t.top:t.top+t.height>-B+ce&&(r=-(t.top+t.height-ce)),j(0),z(he(r))}})),Ee={};"top"===g||"bottom"===g?Ee[c?"marginRight":"marginLeft"]=v:Ee.marginTop=v;var ke=_.map((function(t,n){var r=t.key;return e.createElement(Fj,{id:i,prefixCls:C,key:r,tab:t,style:0===n?void 0:Ee,closable:t.closable,editable:h,active:r===l,renderWrapper:y,removeAriaLabel:null===m||void 0===m?void 0:m.removeAriaLabel,onClick:function(e){b(r,e)},onFocus:function(){_e(r),ye(),A.current&&(c||(A.current.scrollLeft=0),A.current.scrollTop=0)}})})),Pe=function(){return ne((function(){var e,t=new Map,n=null===(e=O.current)||void 0===e?void 0:e.getBoundingClientRect();return _.forEach((function(e){var r,o=e.key,a=null===(r=O.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(gj(o),'"]'));if(a){var i=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,a=e.offsetLeft,i=e.getBoundingClientRect(),s=i.width,l=i.height,c=i.x,u=i.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,r,a,o]}(a,n),s=u(i,4),l=s[0],c=s[1],d=s[2],f=s[3];t.set(o,{width:l,height:c,left:d,top:f})}})),t}))};(0,e.useEffect)((function(){Pe()}),[_.map((function(e){return e.key})).join("_")]);var Ae=hj((function(){var e=Nj(E),t=Nj(k),n=Nj(P);G([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Nj(M);Y(r);var o=Nj(T);Q(o);var a=Nj(O);q([a[0]-r[0],a[1]-r[1]]),Pe()})),Oe=_.slice(0,Se),Te=_.slice(Ce+1),Me=[].concat(f(Oe),f(Te)),Ie=re.get(l),Re=cj({activeTabOffset:Ie,horizontal:I,indicator:x,rtl:c}).style;(0,e.useEffect)((function(){_e()}),[l,de,fe,mj(Ie),mj(re),I]),(0,e.useEffect)((function(){Ae()}),[c]);var Fe,Ne,je,De,Le=!!Me.length,Be="".concat(C,"-nav-wrap");return I?c?(Ne=N>0,Fe=N!==fe):(Fe=N<0,Ne=N!==de):(je=B<0,De=B!==de),e.createElement(EO,{onResize:Ae},e.createElement("div",{ref:Qu(n,E),role:"tablist",className:$o()("".concat(C,"-nav"),r),style:o,onKeyDown:function(){ye()}},e.createElement(xj,{ref:k,position:"left",extra:d,prefixCls:C}),e.createElement(EO,{onResize:Ae},e.createElement("div",{className:$o()(Be,a(a(a(a({},"".concat(Be,"-ping-left"),Fe),"".concat(Be,"-ping-right"),Ne),"".concat(Be,"-ping-top"),je),"".concat(Be,"-ping-bottom"),De)),ref:A},e.createElement(EO,{onResize:Ae},e.createElement("div",{ref:O,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(B,"px)"),transition:ge?"none":void 0}},ke,e.createElement(bj,{ref:M,prefixCls:C,locale:m,editable:h,style:p(p({},0===ke.length?void 0:Ee),{},{visibility:Le?"hidden":null})}),e.createElement("div",{className:$o()("".concat(C,"-ink-bar"),a({},"".concat(C,"-ink-bar-animated"),s.inkBar)),style:Re}))))),e.createElement(Rj,Ge({},t,{removeAriaLabel:null===m||void 0===m?void 0:m.removeAriaLabel,ref:T,prefixCls:C,tabs:Me,className:!Le&&ue,tabMoving:!!ge})),e.createElement(xj,{ref:P,position:"right",extra:d,prefixCls:C})))}));const Lj=Dj;var Bj=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.className,a=t.style,i=t.id,s=t.active,l=t.tabKey,c=t.children;return e.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!s,style:a,className:$o()(r,s&&"".concat(r,"-active"),o),ref:n},c)}));const zj=Bj;var Hj=["renderTabBar"],Wj=["label","key"];const Gj=function(t){var n=t.renderTabBar,r=us(t,Hj),o=e.useContext(lj).tabs;return n?n(p(p({},r),{},{panes:o.map((function(t){var n=t.label,r=t.key,o=us(t,Wj);return e.createElement(zj,Ge({tab:n,key:r,tabKey:r},o))}))}),Lj):e.createElement(Lj,r)};var Vj=["key","forceRender","style","className","destroyInactiveTabPane"];const Uj=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,s=t.destroyInactiveTabPane,l=e.useContext(lj),c=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return e.createElement("div",{className:$o()("".concat(c,"-content-holder"))},e.createElement("div",{className:$o()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),a({},"".concat(c,"-content-animated"),d))},u.map((function(t){var a=t.key,i=t.forceRender,l=t.style,c=t.className,u=t.destroyInactiveTabPane,h=us(t,Vj),m=a===r;return e.createElement(Qd,Ge({key:a,visible:m,forceRender:i,removeOnLeave:!(!s&&!u),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),(function(t,r){var o=t.style,i=t.className;return e.createElement(zj,Ge({},h,{prefixCls:f,id:n,tabKey:a,animated:d,active:m,style:p(p({},l),o),className:$o()(c,i),ref:r}))}))}))))};var qj=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Kj=0,Xj=e.forwardRef((function(t,n){var o=t.id,i=t.prefixCls,s=void 0===i?"rc-tabs":i,l=t.className,c=t.items,d=t.direction,f=t.activeKey,h=t.defaultActiveKey,m=t.editable,g=t.animated,v=t.tabPosition,y=void 0===v?"top":v,b=t.tabBarGutter,w=t.tabBarStyle,x=t.tabBarExtraContent,S=t.locale,C=t.more,_=t.destroyInactiveTabPane,E=t.renderTabBar,k=t.onChange,P=t.onTabClick,A=t.onTabScroll,O=t.getPopupContainer,T=t.popupClassName,M=t.indicator,I=us(t,qj),R=e.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===r(e)&&"key"in e}))}),[c]),F="rtl"===d,N=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:p({inkBar:!0},"object"===r(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(g),j=u((0,e.useState)(!1),2),D=j[0],L=j[1];(0,e.useEffect)((function(){L(fM())}),[]);var B=u(YO((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:f,defaultValue:h}),2),z=B[0],H=B[1],W=u((0,e.useState)((function(){return R.findIndex((function(e){return e.key===z}))})),2),G=W[0],V=W[1];(0,e.useEffect)((function(){var e,t=R.findIndex((function(e){return e.key===z}));-1===t&&(t=Math.max(0,Math.min(G,R.length-1)),H(null===(e=R[t])||void 0===e?void 0:e.key));V(t)}),[R.map((function(e){return e.key})).join("_"),z,G]);var U=u(YO(null,{value:o}),2),q=U[0],K=U[1];(0,e.useEffect)((function(){o||(K("rc-tabs-".concat(Kj)),Kj+=1)}),[]);var X={id:q,activeKey:z,animated:N,tabPosition:y,rtl:F,mobile:D},Y=p(p({},X),{},{editable:m,locale:S,more:C,tabBarGutter:b,onTabClick:function(e,t){null===P||void 0===P||P(e,t);var n=e!==z;H(e),n&&(null===k||void 0===k||k(e))},onTabScroll:A,extra:x,style:w,panes:null,getPopupContainer:O,popupClassName:T,indicator:M});return e.createElement(lj.Provider,{value:{tabs:R,prefixCls:s}},e.createElement("div",Ge({ref:n,id:o,className:$o()(s,"".concat(s,"-").concat(y),a(a(a({},"".concat(s,"-mobile"),D),"".concat(s,"-editable"),m),"".concat(s,"-rtl"),F),l)},I),e.createElement(Gj,Ge({},Y,{renderTabBar:E})),e.createElement(Uj,Ge({destroyInactiveTabPane:_},X,{animated:N}))))}));const Yj=Xj,Zj={motionAppear:!1,motionEnter:!0,motionLeave:!0};var $j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Qj=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{["".concat(t,"-switch")]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity ".concat(n)}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity ".concat(n)}}}}},[_N(e,"slide-up"),_N(e,"slide-down")]]},Jj=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{["".concat(t,"-card")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{margin:0,padding:n,background:r,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(a),transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)},["".concat(t,"-tab-active")]:{color:i,background:e.colorBgContainer},["".concat(t,"-ink-bar")]:{visibility:"hidden"}},["&".concat(t,"-top, &").concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginLeft:{_skip_check_:!0,value:xe(o)}}}},["&".concat(t,"-top")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:"".concat(xe(e.borderRadiusLG)," ").concat(xe(e.borderRadiusLG)," 0 0")},["".concat(t,"-tab-active")]:{borderBottomColor:e.colorBgContainer}}},["&".concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:"0 0 ".concat(xe(e.borderRadiusLG)," ").concat(xe(e.borderRadiusLG))},["".concat(t,"-tab-active")]:{borderTopColor:e.colorBgContainer}}},["&".concat(t,"-left, &").concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginTop:xe(o)}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat(xe(e.borderRadiusLG)," 0 0 ").concat(xe(e.borderRadiusLG))}},["".concat(t,"-tab-active")]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat(xe(e.borderRadiusLG)," ").concat(xe(e.borderRadiusLG)," 0")}},["".concat(t,"-tab-active")]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},eD=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{["".concat(t,"-dropdown")]:Object.assign(Object.assign({},zi(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},["".concat(t,"-dropdown-menu")]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:"".concat(xe(r)," 0"),overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Bi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:"".concat(xe(e.paddingXXS)," ").concat(xe(e.paddingSM)),color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},tD=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:s}=e;return{["".concat(t,"-top, ").concat(t,"-bottom")]:{flexDirection:"column",["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(r),content:"''"},["".concat(t,"-ink-bar")]:{height:e.lineWidthBold,"&-animated":{transition:"width ".concat(e.motionDurationSlow,", left ").concat(e.motionDurationSlow,",\n            right ").concat(e.motionDurationSlow)}},["".concat(t,"-nav-wrap")]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},["&".concat(t,"-nav-wrap-ping-left::before")]:{opacity:1},["&".concat(t,"-nav-wrap-ping-right::after")]:{opacity:1}}}},["".concat(t,"-top")]:{["> ".concat(t,"-nav,\n        > div > ").concat(t,"-nav")]:{"&::before":{bottom:0},["".concat(t,"-ink-bar")]:{bottom:0}}},["".concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},["".concat(t,"-ink-bar")]:{top:0}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{order:0}},["".concat(t,"-left, ").concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),["".concat(t,"-tab")]:{padding:a,textAlign:"center"},["".concat(t,"-tab + ").concat(t,"-tab")]:{margin:i},["".concat(t,"-nav-wrap")]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},["&".concat(t,"-nav-wrap-ping-top::before")]:{opacity:1},["&".concat(t,"-nav-wrap-ping-bottom::after")]:{opacity:1}},["".concat(t,"-ink-bar")]:{width:e.lineWidthBold,"&-animated":{transition:"height ".concat(e.motionDurationSlow,", top ").concat(e.motionDurationSlow)}},["".concat(t,"-nav-list, ").concat(t,"-nav-operations")]:{flex:"1 0 auto",flexDirection:"column"}}},["".concat(t,"-left")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-ink-bar")]:{right:{_skip_check_:!0,value:0}}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{marginLeft:{_skip_check_:!0,value:xe(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},["> ".concat(t,"-content > ").concat(t,"-tabpane")]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},["".concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{order:1,["".concat(t,"-ink-bar")]:{left:{_skip_check_:!0,value:0}}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},["> ".concat(t,"-content > ").concat(t,"-tabpane")]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},nD=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:a,fontSize:e.titleFontSizeLG}}}},["".concat(t,"-card")]:{["&".concat(t,"-small")]:{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:n}},["&".concat(t,"-bottom")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:"0 0 ".concat(xe(e.borderRadius)," ").concat(xe(e.borderRadius))}},["&".concat(t,"-top")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:"".concat(xe(e.borderRadius)," ").concat(xe(e.borderRadius)," 0 0")}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat(xe(e.borderRadius)," ").concat(xe(e.borderRadius)," 0")}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat(xe(e.borderRadius)," 0 0 ").concat(xe(e.borderRadius))}}}},["&".concat(t,"-large")]:{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:r}}}}}},rD=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c="".concat(t,"-tab");return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Vi(e)),"&-btn":{outline:"none",transition:"all ".concat(e.motionDurationSlow),["".concat(c,"-icon:not(:last-child)")]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},["&".concat(c,"-active ").concat(c,"-btn")]:{color:s,textShadow:e.tabsActiveTextShadow},["&".concat(c,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed"},["&".concat(c,"-disabled ").concat(c,"-btn, &").concat(c,"-disabled ").concat(t,"-remove")]:{"&:focus, &:active":{color:e.colorTextDisabled}},["& ".concat(c,"-remove ").concat(o)]:{margin:0},["".concat(o,":not(:last-child)")]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},["".concat(c," + ").concat(c)]:{margin:{_skip_check_:!0,value:a}}}},oD=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{["".concat(t,"-rtl")]:{direction:"rtl",["".concat(t,"-nav")]:{["".concat(t,"-tab")]:{margin:{_skip_check_:!0,value:n},["".concat(t,"-tab:last-of-type")]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:xe(e.marginSM)}},["".concat(t,"-tab-remove")]:{marginRight:{_skip_check_:!0,value:xe(e.marginXS)},marginLeft:{_skip_check_:!0,value:xe(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav")]:{order:1},["> ".concat(t,"-content-holder")]:{order:0}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav")]:{order:0},["> ".concat(t,"-content-holder")]:{order:1}},["&".concat(t,"-card").concat(t,"-top, &").concat(t,"-card").concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},["".concat(t,"-dropdown-rtl")]:{direction:"rtl"},["".concat(t,"-menu-item")]:{["".concat(t,"-dropdown-rtl")]:{textAlign:{_skip_check_:!0,value:"right"}}}}},aD=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),{display:"flex",["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{position:"relative",display:"flex",flex:"none",alignItems:"center",["".concat(t,"-nav-wrap")]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:"opacity ".concat(e.motionDurationSlow),content:"''",pointerEvents:"none"}},["".concat(t,"-nav-list")]:{position:"relative",display:"flex",transition:"opacity ".concat(e.motionDurationSlow)},["".concat(t,"-nav-operations")]:{display:"flex",alignSelf:"stretch"},["".concat(t,"-nav-operations-hidden")]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},["".concat(t,"-nav-more")]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},["".concat(t,"-nav-add")]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:"0 ".concat(xe(e.paddingXS)),background:"transparent",border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(s),borderRadius:"".concat(xe(e.borderRadiusLG)," ").concat(xe(e.borderRadiusLG)," 0 0"),outline:"none",cursor:"pointer",color:e.colorText,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},Vi(e))},["".concat(t,"-extra-content")]:{flex:"none"},["".concat(t,"-ink-bar")]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),rD(e)),{["".concat(t,"-content")]:{position:"relative",width:"100%"},["".concat(t,"-content-holder")]:{flex:"auto",minWidth:0,minHeight:0},["".concat(t,"-tabpane")]:{outline:"none","&-hidden":{display:"none"}}}),["".concat(t,"-centered")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-nav-wrap")]:{["&:not([class*='".concat(t,"-nav-wrap-ping'])")]:{justifyContent:"center"}}}}}},iD=Sl("Tabs",(e=>{const t=hl(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 ".concat(xe(e.horizontalItemGutter)),tabsHorizontalItemMarginRTL:"0 0 0 ".concat(xe(e.horizontalItemGutter))});return[nD(t),oD(t),tD(t),eD(t),Jj(t),aD(t),Qj(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"".concat((t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth,"px ").concat(e.padding,"px"),cardPaddingSM:"".concat(1.5*e.paddingXXS,"px ").concat(e.padding,"px"),cardPaddingLG:"".concat(e.paddingXS,"px ").concat(e.padding,"px ").concat(1.5*e.paddingXXS,"px"),titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:"0 0 ".concat(e.margin,"px 0"),horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:"".concat(e.paddingSM,"px 0"),horizontalItemPaddingSM:"".concat(e.paddingXS,"px 0"),horizontalItemPaddingLG:"".concat(e.padding,"px 0"),verticalItemPadding:"".concat(e.paddingXS,"px ").concat(e.paddingLG,"px"),verticalItemMargin:"".concat(e.margin,"px 0 0 0"),itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var sD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lD=t=>{var n,r,o,a,i,s,l,c,u,d,f;const{type:h,className:p,rootClassName:m,size:g,onEdit:v,hideAdd:y,centered:b,addIcon:w,removeIcon:x,moreIcon:S,more:C,popupClassName:_,children:E,items:k,animated:P,style:A,indicatorSize:O,indicator:T}=t,M=sD(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=M,{direction:R,tabs:F,getPrefixCls:N,getPopupContainer:j}=e.useContext(vo),D=N("tabs",I),L=wf(D),[B,z,H]=iD(D,L);let W;"editable-card"===h&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null===v||void 0===v||v("add"===e?r:n,e)},removeIcon:null!==(n=null!==x&&void 0!==x?x:null===F||void 0===F?void 0:F.removeIcon)&&void 0!==n?n:e.createElement(Lu,null),addIcon:(null!==w&&void 0!==w?w:null===F||void 0===F?void 0:F.addIcon)||e.createElement(sj,null),showAdd:!0!==y});const G=N();const V=gF(g),U=function(t,n){if(t)return t;const r=ls(n).map((t=>{if(e.isValidElement(t)){const{key:e,props:n}=t,r=n||{},{tab:o}=r,a=$j(r,["tab"]);return Object.assign(Object.assign({key:String(e)},a),{label:o})}return null}));return function(e){return e.filter((e=>e))}(r)}(k,E),q=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Zj),{motionName:hI(e,"switch")})),t}(D,P),K=Object.assign(Object.assign({},null===F||void 0===F?void 0:F.style),A),X={align:null!==(r=null===T||void 0===T?void 0:T.align)&&void 0!==r?r:null===(o=null===F||void 0===F?void 0:F.indicator)||void 0===o?void 0:o.align,size:null!==(l=null!==(i=null!==(a=null===T||void 0===T?void 0:T.size)&&void 0!==a?a:O)&&void 0!==i?i:null===(s=null===F||void 0===F?void 0:F.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null===F||void 0===F?void 0:F.indicatorSize};return B(e.createElement(Yj,Object.assign({direction:R,getPopupContainer:j},M,{items:U,className:$o()({["".concat(D,"-").concat(V)]:V,["".concat(D,"-card")]:["card","editable-card"].includes(h),["".concat(D,"-editable-card")]:"editable-card"===h,["".concat(D,"-centered")]:b},null===F||void 0===F?void 0:F.className,p,m,z,H,L),popupClassName:$o()(_,z,H,L),style:K,editable:W,more:Object.assign({icon:null!==(f=null!==(d=null!==(u=null===(c=null===F||void 0===F?void 0:F.more)||void 0===c?void 0:c.icon)&&void 0!==u?u:null===F||void 0===F?void 0:F.moreIcon)&&void 0!==d?d:S)&&void 0!==f?f:e.createElement(lI,null),transitionName:"".concat(G,"-slide-up")},C),prefixCls:D,animated:q,indicator:X})))};lD.TabPane=()=>null;const cD=lD,uD=t=>{const{prefixCls:n,className:r,style:o,size:a,shape:i}=t,s=$o()({["".concat(n,"-lg")]:"large"===a,["".concat(n,"-sm")]:"small"===a}),l=$o()({["".concat(n,"-circle")]:"circle"===i,["".concat(n,"-square")]:"square"===i,["".concat(n,"-round")]:"round"===i}),c=e.useMemo((()=>"number"===typeof a?{width:a,height:a,lineHeight:"".concat(a,"px")}:{}),[a]);return e.createElement("span",{className:$o()(n,s,l,r),style:Object.assign(Object.assign({},c),o)})},dD=new Yt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),fD=e=>({height:e,lineHeight:xe(e)}),hD=e=>Object.assign({width:e},fD(e)),pD=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:dD,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),mD=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},fD(e)),gD=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{["".concat(t)]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},hD(r)),["".concat(t).concat(t,"-circle")]:{borderRadius:"50%"},["".concat(t).concat(t,"-lg")]:Object.assign({},hD(o)),["".concat(t).concat(t,"-sm")]:Object.assign({},hD(a))}},vD=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{["".concat(r)]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},mD(t,s)),["".concat(r,"-lg")]:Object.assign({},mD(o,s)),["".concat(r,"-sm")]:Object.assign({},mD(a,s))}},yD=e=>Object.assign({width:e},fD(e)),bD=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{["".concat(t)]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},yD(a(n).mul(2).equal())),{["".concat(t,"-path")]:{fill:"#bfbfbf"},["".concat(t,"-svg")]:Object.assign(Object.assign({},yD(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),["".concat(t,"-svg").concat(t,"-svg-circle")]:{borderRadius:"50%"}}),["".concat(t).concat(t,"-circle")]:{borderRadius:"50%"}}},wD=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{["".concat(n).concat(r,"-circle")]:{width:t,minWidth:t,borderRadius:"50%"},["".concat(n).concat(r,"-round")]:{borderRadius:t}}},xD=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},fD(e)),SD=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({["".concat(n)]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},xD(r,s))},wD(e,r,n)),{["".concat(n,"-lg")]:Object.assign({},xD(o,s))}),wD(e,o,"".concat(n,"-lg"))),{["".concat(n,"-sm")]:Object.assign({},xD(a,s))}),wD(e,a,"".concat(n,"-sm")))},CD=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:h,borderRadius:p,titleHeight:m,blockRadius:g,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{["".concat(t)]:{display:"table",width:"100%",["".concat(t,"-header")]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",["".concat(n)]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},hD(l)),["".concat(n,"-circle")]:{borderRadius:"50%"},["".concat(n,"-lg")]:Object.assign({},hD(c)),["".concat(n,"-sm")]:Object.assign({},hD(u))},["".concat(t,"-content")]:{display:"table-cell",width:"100%",verticalAlign:"top",["".concat(r)]:{width:"100%",height:m,background:d,borderRadius:g,["+ ".concat(o)]:{marginBlockStart:u}},["".concat(o)]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:y}}},["".concat(o,"> li:last-child:not(:first-child):not(:nth-child(2))")]:{width:"61%"}},["&-round ".concat(t,"-content")]:{["".concat(r,", ").concat(o," > li")]:{borderRadius:p}}},["".concat(t,"-with-avatar ").concat(t,"-content")]:{["".concat(r)]:{marginBlockStart:h,["+ ".concat(o)]:{marginBlockStart:b}}},["".concat(t).concat(t,"-element")]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},SD(e)),gD(e)),vD(e)),bD(e)),["".concat(t).concat(t,"-block")]:{width:"100%",["".concat(a)]:{width:"100%"},["".concat(i)]:{width:"100%"}},["".concat(t).concat(t,"-active")]:{["\n        ".concat(r,",\n        ").concat(o," > li,\n        ").concat(n,",\n        ").concat(a,",\n        ").concat(i,",\n        ").concat(s,"\n      ")]:Object.assign({},pD(e))}}},_D=Sl("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=hl(e,{skeletonAvatarCls:"".concat(t,"-avatar"),skeletonTitleCls:"".concat(t,"-title"),skeletonParagraphCls:"".concat(t,"-paragraph"),skeletonButtonCls:"".concat(t,"-button"),skeletonInputCls:"".concat(t,"-input"),skeletonImageCls:"".concat(t,"-image"),imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:"linear-gradient(90deg, ".concat(e.gradientFromColor," 25%, ").concat(e.gradientToColor," 37%, ").concat(e.gradientFromColor," 63%)"),skeletonLoadingMotionDuration:"1.4s"});return[CD(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ED=t=>{const{prefixCls:n,className:r,rootClassName:o,active:a,shape:i="circle",size:s="default"}=t,{getPrefixCls:l}=e.useContext(vo),c=l("skeleton",n),[u,d,f]=_D(c),h=is(t,["prefixCls","className"]),p=$o()(c,"".concat(c,"-element"),{["".concat(c,"-active")]:a},r,o,d,f);return u(e.createElement("div",{className:p},e.createElement(uD,Object.assign({prefixCls:"".concat(c,"-avatar"),shape:i,size:s},h))))},kD=t=>{const{prefixCls:n,className:r,rootClassName:o,active:a,block:i=!1,size:s="default"}=t,{getPrefixCls:l}=e.useContext(vo),c=l("skeleton",n),[u,d,f]=_D(c),h=is(t,["prefixCls"]),p=$o()(c,"".concat(c,"-element"),{["".concat(c,"-active")]:a,["".concat(c,"-block")]:i},r,o,d,f);return u(e.createElement("div",{className:p},e.createElement(uD,Object.assign({prefixCls:"".concat(c,"-button"),size:s},h))))},PD=t=>{const{prefixCls:n,className:r,rootClassName:o,style:a,active:i}=t,{getPrefixCls:s}=e.useContext(vo),l=s("skeleton",n),[c,u,d]=_D(l),f=$o()(l,"".concat(l,"-element"),{["".concat(l,"-active")]:i},r,o,u,d);return c(e.createElement("div",{className:f},e.createElement("div",{className:$o()("".concat(l,"-image"),r),style:a},e.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(l,"-image-svg")},e.createElement("title",null,"Image placeholder"),e.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(l,"-image-path")})))))},AD=t=>{const{prefixCls:n,className:r,rootClassName:o,active:a,block:i,size:s="default"}=t,{getPrefixCls:l}=e.useContext(vo),c=l("skeleton",n),[u,d,f]=_D(c),h=is(t,["prefixCls"]),p=$o()(c,"".concat(c,"-element"),{["".concat(c,"-active")]:a,["".concat(c,"-block")]:i},r,o,d,f);return u(e.createElement("div",{className:p},e.createElement(uD,Object.assign({prefixCls:"".concat(c,"-input"),size:s},h))))};const OD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var TD=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:OD}))};const MD=e.forwardRef(TD),ID=t=>{const{prefixCls:n,className:r,rootClassName:o,style:a,active:i,children:s}=t,{getPrefixCls:l}=e.useContext(vo),c=l("skeleton",n),[u,d,f]=_D(c),h=$o()(c,"".concat(c,"-element"),{["".concat(c,"-active")]:i},d,r,o,f),p=null!==s&&void 0!==s?s:e.createElement(MD,null);return u(e.createElement("div",{className:h},e.createElement("div",{className:$o()("".concat(c,"-image"),r),style:a},p)))},RD=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},FD=t=>{const{prefixCls:n,className:r,style:o,rows:a}=t,i=as(Array(a)).map(((n,r)=>e.createElement("li",{key:r,style:{width:RD(r,t)}})));return e.createElement("ul",{className:$o()(n,r),style:o},i)},ND=t=>{let{prefixCls:n,className:r,width:o,style:a}=t;return e.createElement("h3",{className:$o()(n,r),style:Object.assign({width:o},a)})};function jD(e){return e&&"object"===typeof e?e:{}}const DD=t=>{const{prefixCls:n,loading:r,className:o,rootClassName:a,style:i,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=t,{getPrefixCls:h,direction:p,skeleton:m}=e.useContext(vo),g=h("skeleton",n),[v,y,b]=_D(g);if(r||!("loading"in t)){const t=!!l,n=!!c,r=!!u;let s,h;if(t){const t=Object.assign(Object.assign({prefixCls:"".concat(g,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(n,r)),jD(l));s=e.createElement("div",{className:"".concat(g,"-header")},e.createElement(uD,Object.assign({},t)))}if(n||r){let o,a;if(n){const n=Object.assign(Object.assign({prefixCls:"".concat(g,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(t,r)),jD(c));o=e.createElement(ND,Object.assign({},n))}if(r){const r=Object.assign(Object.assign({prefixCls:"".concat(g,"-paragraph")},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(t,n)),jD(u));a=e.createElement(FD,Object.assign({},r))}h=e.createElement("div",{className:"".concat(g,"-content")},o,a)}const w=$o()(g,{["".concat(g,"-with-avatar")]:t,["".concat(g,"-active")]:d,["".concat(g,"-rtl")]:"rtl"===p,["".concat(g,"-round")]:f},null===m||void 0===m?void 0:m.className,o,a,y,b);return v(e.createElement("div",{className:w,style:Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),i)},s,h))}return null!==s&&void 0!==s?s:null};DD.Button=kD,DD.Avatar=ED,DD.Input=AD,DD.Image=PD,DD.Node=ID;const LD=DD,BD=["xxl","xl","lg","md","sm","xs"],zD=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),HD=e=>{const t=e,n=[].concat(BD).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),a="screen".concat(o,"Min"),i="screen".concat(o);if(!(t[a]<=t[i]))throw new Error("".concat(a,"<=").concat(i," fails : !(").concat(t[a],"<=").concat(t[i],")"));if(r<n.length-1){const e="screen".concat(o,"Max");if(!(t[i]<=t[e]))throw new Error("".concat(i,"<=").concat(e," fails : !(").concat(t[i],"<=").concat(t[e],")"));const a=n[r+1].toUpperCase(),s="screen".concat(a,"Min");if(!(t[e]<=t[s]))throw new Error("".concat(e,"<=").concat(s," fails : !(").concat(t[e],"<=").concat(t[s],")"))}})),e};function WD(){const[,t]=ji(),n=zD(HD(t));return e.useMemo((()=>{const e=new Map;let t=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(n).forEach((e=>{const t=n[e],r=this.matchHandlers[t];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),e.clear()},register(){Object.keys(n).forEach((e=>{const t=n[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},a=window.matchMedia(t);a.addListener(o),this.matchHandlers[t]={mql:a,listener:o},o(a)}))},responsiveMap:n}}),[t])}const GD=(0,e.createContext)({}),VD=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},UD=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)0===i?(a["".concat(r).concat(t,"-").concat(i)]={display:"none"},a["".concat(r,"-push-").concat(i)]={insetInlineStart:"auto"},a["".concat(r,"-pull-").concat(i)]={insetInlineEnd:"auto"},a["".concat(r).concat(t,"-push-").concat(i)]={insetInlineStart:"auto"},a["".concat(r).concat(t,"-pull-").concat(i)]={insetInlineEnd:"auto"},a["".concat(r).concat(t,"-offset-").concat(i)]={marginInlineStart:0},a["".concat(r).concat(t,"-order-").concat(i)]={order:0}):(a["".concat(r).concat(t,"-").concat(i)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(i/o*100,"%"),maxWidth:"".concat(i/o*100,"%")}],a["".concat(r).concat(t,"-push-").concat(i)]={insetInlineStart:"".concat(i/o*100,"%")},a["".concat(r).concat(t,"-pull-").concat(i)]={insetInlineEnd:"".concat(i/o*100,"%")},a["".concat(r).concat(t,"-offset-").concat(i)]={marginInlineStart:"".concat(i/o*100,"%")},a["".concat(r).concat(t,"-order-").concat(i)]={order:i});return a["".concat(r).concat(t,"-flex")]={flex:"var(--".concat(n).concat(t,"-flex)")},a})(e,t),qD=Sl("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),KD=Sl("Grid",(e=>{const t=hl(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[VD(t),UD(t,""),UD(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({["@media (min-width: ".concat(xe(t),")")]:Object.assign({},UD(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var XD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function YD(t,n){const[r,o]=e.useState("string"===typeof t?t:"");return e.useEffect((()=>{(()=>{if("string"===typeof t&&o(t),"object"===typeof t)for(let e=0;e<BD.length;e++){const r=BD[e];if(!n[r])continue;const a=t[r];if(void 0!==a)return void o(a)}})()}),[JSON.stringify(t),n]),r}const ZD=e.forwardRef(((t,n)=>{const{prefixCls:r,justify:o,align:a,className:i,style:s,children:l,gutter:c=0,wrap:u}=t,d=XD(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=e.useContext(vo),[p,m]=e.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=e.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=YD(a,g),b=YD(o,g),w=e.useRef(c),x=WD();e.useEffect((()=>{const e=x.subscribe((e=>{v(e);const t=w.current||0;(!Array.isArray(t)&&"object"===typeof t||Array.isArray(t)&&("object"===typeof t[0]||"object"===typeof t[1]))&&m(e)}));return()=>x.unsubscribe(e)}),[]);const S=f("row",r),[C,_,E]=qD(S),k=(()=>{const e=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach(((t,n)=>{if("object"===typeof t)for(let r=0;r<BD.length;r++){const o=BD[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),P=$o()(S,{["".concat(S,"-no-wrap")]:!1===u,["".concat(S,"-").concat(b)]:b,["".concat(S,"-").concat(y)]:y,["".concat(S,"-rtl")]:"rtl"===h},i,_,E),A={},O=null!=k[0]&&k[0]>0?k[0]/-2:void 0;O&&(A.marginLeft=O,A.marginRight=O);const[T,M]=k;A.rowGap=M;const I=e.useMemo((()=>({gutter:[T,M],wrap:u})),[T,M,u]);return C(e.createElement(GD.Provider,{value:I},e.createElement("div",Object.assign({},d,{className:P,style:Object.assign(Object.assign({},A),s),ref:n}),l)))}));const $D=ZD,QD=$D;var JD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function eL(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}const tL=["xs","sm","md","lg","xl","xxl"],nL=e.forwardRef(((t,n)=>{const{getPrefixCls:r,direction:o}=e.useContext(vo),{gutter:a,wrap:i}=e.useContext(GD),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:f,className:h,children:p,flex:m,style:g}=t,v=JD(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=r("col",s),[b,w,x]=KD(y),S={};let C={};tL.forEach((e=>{let n={};const r=t[e];"number"===typeof r?n.span=r:"object"===typeof r&&(n=r||{}),delete v[e],C=Object.assign(Object.assign({},C),{["".concat(y,"-").concat(e,"-").concat(n.span)]:void 0!==n.span,["".concat(y,"-").concat(e,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(y,"-").concat(e,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(y,"-").concat(e,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(y,"-").concat(e,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(y,"-rtl")]:"rtl"===o}),n.flex&&(C["".concat(y,"-").concat(e,"-flex")]=!0,S["--".concat(y,"-").concat(e,"-flex")]=eL(n.flex))}));const _=$o()(y,{["".concat(y,"-").concat(l)]:void 0!==l,["".concat(y,"-order-").concat(c)]:c,["".concat(y,"-offset-").concat(u)]:u,["".concat(y,"-push-").concat(d)]:d,["".concat(y,"-pull-").concat(f)]:f},h,C,w,x),E={};if(a&&a[0]>0){const e=a[0]/2;E.paddingLeft=e,E.paddingRight=e}return m&&(E.flex=eL(m),!1!==i||E.minWidth||(E.minWidth=0)),b(e.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),g),S),className:_,ref:n}),p))}));const rL=nL,oL=rL;const aL=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,s=t.onClick,l="function"===typeof r?r(o):r;return e.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null===i||void 0===i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==l?l:e.createElement("span",{className:$o()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))};var iL=e.createContext(null);function sL(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=e.useRef(null),r=e.useRef(null);return e.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}var lL=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,h=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,y=t.onChange,b=t.onPaste,w=t.onCompositionStart,x=t.onCompositionEnd,S=t.open,C=t.attrs,_=i||e.createElement("input",null),E=_,k=E.ref,P=E.props,A=P.onKeyDown,O=P.onChange,T=P.onMouseDown,M=P.onCompositionStart,I=P.onCompositionEnd,R=P.style;return _.props,_=e.cloneElement(_,p(p(p({type:"search"},P),{},{id:a,ref:$u(n,k),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:$o()("".concat(o,"-selection-search-input"),null===(r=_)||void 0===r||null===(r=r.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":S?f:void 0},C),{},{value:d?h:"",maxLength:m,readOnly:!d,unselectable:d?null:"on",style:p(p({},R),{},{opacity:d?null:0}),onKeyDown:function(e){g(e),A&&A(e)},onMouseDown:function(e){v(e),T&&T(e)},onChange:function(e){y(e),O&&O(e)},onCompositionStart:function(e){w(e),M&&M(e)},onCompositionEnd:function(e){x(e),I&&I(e)},onPaste:b}))};const cL=e.forwardRef(lL);function uL(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var dL="undefined"!==typeof window&&window.document&&window.document.documentElement;function fL(e){return["string","number"].includes(r(e))}function hL(e){var t=void 0;return e&&(fL(e.title)?t=e.title.toString():fL(e.label)&&(t=e.label.toString())),t}function pL(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var mL=function(e){e.preventDefault(),e.stopPropagation()};const gL=function(t){var n,r,o=t.id,i=t.prefixCls,s=t.values,l=t.open,c=t.searchValue,d=t.autoClearSearchValue,f=t.inputRef,h=t.placeholder,p=t.disabled,m=t.mode,g=t.showSearch,v=t.autoFocus,y=t.autoComplete,b=t.activeDescendantId,w=t.tabIndex,x=t.removeIcon,S=t.maxTagCount,C=t.maxTagTextLength,_=t.maxTagPlaceholder,E=void 0===_?function(e){return"+ ".concat(e.length," ...")}:_,k=t.tagRender,P=t.onToggleOpen,A=t.onRemove,O=t.onInputChange,T=t.onInputPaste,M=t.onInputKeyDown,I=t.onInputMouseDown,R=t.onInputCompositionStart,F=t.onInputCompositionEnd,N=e.useRef(null),j=u((0,e.useState)(0),2),D=j[0],L=j[1],B=u((0,e.useState)(!1),2),z=B[0],H=B[1],W="".concat(i,"-selection"),G=l||"multiple"===m&&!1===d||"tags"===m?c:"",V="tags"===m||"multiple"===m&&!1===d||g&&(l||z);n=function(){L(N.current.scrollWidth)},r=[G],dL?e.useLayoutEffect(n,r):e.useEffect(n,r);var U=function(t,n,r,o,i){return e.createElement("span",{title:hL(t),className:$o()("".concat(W,"-item"),a({},"".concat(W,"-item-disabled"),r))},e.createElement("span",{className:"".concat(W,"-item-content")},n),o&&e.createElement(aL,{className:"".concat(W,"-item-remove"),onMouseDown:mL,onClick:i,customizeIcon:x},"\xd7"))},q=function(t,n,r,o,a,i){return e.createElement("span",{onMouseDown:function(e){mL(e),P(!l)}},k({label:n,value:t,disabled:r,closable:o,onClose:a,isMaxTag:!!i}))},K=e.createElement("div",{className:"".concat(W,"-search"),style:{width:D},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},e.createElement(cL,{ref:f,open:l,prefixCls:i,id:o,inputElement:null,disabled:p,autoFocus:v,autoComplete:y,editable:V,activeDescendantId:b,value:G,onKeyDown:M,onMouseDown:I,onChange:O,onPaste:T,onCompositionStart:R,onCompositionEnd:F,tabIndex:w,attrs:af(t,!0)}),e.createElement("span",{ref:N,className:"".concat(W,"-search-mirror"),"aria-hidden":!0},G,"\xa0")),X=e.createElement(KO,{prefixCls:"".concat(W,"-overflow"),data:s,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!p&&!t,a=n;if("number"===typeof C&&("string"===typeof n||"number"===typeof n)){var i=String(a);i.length>C&&(a="".concat(i.slice(0,C),"..."))}var s=function(t){t&&t.stopPropagation(),A(e)};return"function"===typeof k?q(r,a,t,o,s):U(e,a,t,o,s)},renderRest:function(e){var t="function"===typeof E?E(e):E;return"function"===typeof k?q(void 0,t,!1,!1,void 0,!0):U({title:t},t,!1)},suffix:K,itemKey:pL,maxCount:S});return e.createElement(e.Fragment,null,X,!s.length&&!G&&e.createElement("span",{className:"".concat(W,"-placeholder")},h))};const vL=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,h=t.values,p=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,b=t.maxLength,w=t.onInputKeyDown,x=t.onInputMouseDown,S=t.onInputChange,C=t.onInputPaste,_=t.onInputCompositionStart,E=t.onInputCompositionEnd,k=t.title,P=u(e.useState(!1),2),A=P[0],O=P[1],T="combobox"===d,M=T||g,I=h[0],R=v||"";T&&y&&!A&&(R=y),e.useEffect((function(){T&&O(!1)}),[T,y]);var F=!("combobox"!==d&&!f&&!g)&&!!R,N=void 0===k?hL(I):k,j=e.useMemo((function(){return I?null:e.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},p)}),[I,F,p,r]);return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(r,"-selection-search")},e.createElement(cL,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:c,value:R,onKeyDown:w,onMouseDown:x,onChange:function(e){O(!0),S(e)},onPaste:C,onCompositionStart:_,onCompositionEnd:E,tabIndex:m,attrs:af(t,!0),maxLength:T?b:void 0})),!T&&I?e.createElement("span",{className:"".concat(r,"-selection-item"),title:N,style:F?{visibility:"hidden"}:void 0},I.label):null,j)};var yL=function(t,n){var r=(0,e.useRef)(null),o=(0,e.useRef)(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,h=t.onSearch,p=t.onSearchSubmit,m=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;e.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var y=u(sL(0),2),b=y[0],w=y[1],x=(0,e.useRef)(null),S=function(e){!1!==h(e,!0,o.current)&&m(!0)},C={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==ef.UP&&n!==ef.DOWN||e.preventDefault(),g&&g(e),n!==ef.ENTER||"tags"!==s||o.current||i||null===p||void 0===p||p(e.target.value),t=n,[ef.ESC,ef.SHIFT,ef.BACKSPACE,ef.TAB,ef.WIN_KEY,ef.ALT,ef.META,ef.WIN_KEY_RIGHT,ef.CTRL,ef.SEMICOLON,ef.EQUALS,ef.CAPS_LOCK,ef.CONTEXT_MENU,ef.F1,ef.F2,ef.F3,ef.F4,ef.F5,ef.F6,ef.F7,ef.F8,ef.F9,ef.F10,ef.F11,ef.F12].includes(t)||m(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(c&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,S(t)},onInputPaste:function(e){var t=e.clipboardData,n=null===t||void 0===t?void 0:t.getData("text");x.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&S(e.target.value)}},_="multiple"===s||"tags"===s?e.createElement(gL,Ge({},t,C)):e.createElement(vL,Ge({},t,C));return e.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=b();e.target===r.current||t||"combobox"===s&&d||e.preventDefault(),("combobox"===s||l&&t)&&i||(i&&!1!==f&&h("",!0,!1),m())}},_)};const bL=e.forwardRef(yL);function wL(t){var n=t.prefixCls,r=t.align,o=t.arrow,a=t.arrowPos,i=o||{},s=i.className,l=i.content,c=a.x,u=void 0===c?0:c,d=a.y,f=void 0===d?0:d,h=e.useRef();if(!r||!r.points)return null;var p={position:"absolute"};if(!1!==r.autoArrow){var m=r.points[0],g=r.points[1],v=m[0],y=m[1],b=g[0],w=g[1];v!==b&&["t","b"].includes(v)?"t"===v?p.top=0:p.bottom=0:p.top=f,y!==w&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return e.createElement("div",{ref:h,className:$o()("".concat(n,"-arrow"),s),style:p},l)}function xL(t){var n=t.prefixCls,r=t.open,o=t.zIndex,a=t.mask,i=t.motion;return a?e.createElement(Qd,Ge({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:$o()("".concat(n,"-mask"),r)})})):null}var SL=e.memo((function(e){return e.children}),(function(e,t){return t.cache}));const CL=SL;var _L=e.forwardRef((function(t,n){var r=t.popup,o=t.className,a=t.prefixCls,i=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,d=t.keepDom,f=t.fresh,h=t.onClick,m=t.mask,g=t.arrow,v=t.arrowPos,y=t.align,b=t.motion,w=t.maskMotion,x=t.forceRender,S=t.getPopupContainer,C=t.autoDestroy,_=t.portal,E=t.zIndex,k=t.onMouseEnter,P=t.onMouseLeave,A=t.onPointerEnter,O=t.ready,T=t.offsetX,M=t.offsetY,I=t.offsetR,R=t.offsetB,F=t.onAlign,N=t.onPrepare,j=t.stretch,D=t.targetWidth,L=t.targetHeight,B="function"===typeof r?r():r,z=c||d,H=(null===S||void 0===S?void 0:S.length)>0,W=u(e.useState(!S||!H),2),G=W[0],V=W[1];if(Oe((function(){!G&&H&&s&&V(!0)}),[G,H,s]),!G)return null;var U="auto",q={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(O||!c){var K,X=y.points,Y=y.dynamicInset||(null===(K=y._experimental)||void 0===K?void 0:K.dynamicInset),Z=Y&&"r"===X[0][1],$=Y&&"b"===X[0][0];Z?(q.right=I,q.left=U):(q.left=T,q.right=U),$?(q.bottom=R,q.top=U):(q.top=M,q.bottom=U)}var Q={};return j&&(j.includes("height")&&L?Q.height=L:j.includes("minHeight")&&L&&(Q.minHeight=L),j.includes("width")&&D?Q.width=D:j.includes("minWidth")&&D&&(Q.minWidth=D)),c||(Q.pointerEvents="none"),e.createElement(_,{open:x||z,getContainer:S&&function(){return S(s)},autoDestroy:C},e.createElement(xL,{prefixCls:a,open:c,zIndex:E,mask:m,motion:w}),e.createElement(EO,{onResize:F,disabled:!c},(function(t){return e.createElement(Qd,Ge({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:N,onEnterPrepare:N,visible:c,onVisibleChanged:function(e){var t;null===b||void 0===b||null===(t=b.onVisibleChanged)||void 0===t||t.call(b,e),l(e)}}),(function(r,s){var l=r.className,u=r.style,d=$o()(a,l,o);return e.createElement("div",{ref:$u(t,n,s),className:d,style:p(p(p(p({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},q),Q),u),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:k,onMouseLeave:P,onPointerEnter:A,onClick:h},g&&e.createElement(wL,{prefixCls:a,arrow:g,arrowPos:v,align:y}),e.createElement(CL,{cache:!c&&!f},B))}))})))}));const EL=_L;var kL=e.forwardRef((function(t,n){var r=t.children,o=t.getTriggerDOMNode,a=Ju(r),i=e.useCallback((function(e){Zu(n,o?o(e):e)}),[o]),s=Qu(i,r.ref);return a?e.cloneElement(r,{ref:s}):r}));const PL=kL;const AL=e.createContext(null);function OL(e){return e?Array.isArray(e)?e:[e]:[]}function TL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ML(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function IL(e){return e.ownerDocument.defaultView}function RL(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=IL(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function FL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function NL(e){return FL(parseFloat(e),0)}function jL(e,t){var n=p({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=IL(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,h=e.clientWidth,p=NL(a),m=NL(i),g=NL(s),v=NL(l),y=FL(Math.round(c.width/f*1e3)/1e3),b=FL(Math.round(c.height/u*1e3)/1e3),w=(f-h-g-v)*y,x=(u-d-p-m)*b,S=p*b,C=m*b,_=g*y,E=v*y,k=0,P=0;if("clip"===r){var A=NL(o);k=A*y,P=A*b}var O=c.x+_-k,T=c.y+S-P,M=O+c.width+2*k-_-E-w,I=T+c.height+2*P-S-C-x;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,I)}})),n}function DL(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function LL(e,t){var n=u(t||[],2),r=n[0],o=n[1];return[DL(e.width,r),DL(e.height,o)]}function BL(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function zL(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function HL(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var WL=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const GL=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lM,n=e.forwardRef((function(n,r){var o=n.prefixCls,a=void 0===o?"rc-trigger-popup":o,i=n.children,s=n.action,l=void 0===s?"hover":s,c=n.showAction,d=n.hideAction,h=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,y=n.mouseEnterDelay,b=n.mouseLeaveDelay,w=void 0===b?.1:b,x=n.focusDelay,S=n.blurDelay,C=n.mask,_=n.maskClosable,E=void 0===_||_,k=n.getPopupContainer,P=n.forceRender,A=n.autoDestroy,O=n.destroyPopupOnHide,T=n.popup,M=n.popupClassName,I=n.popupStyle,R=n.popupPlacement,F=n.builtinPlacements,N=void 0===F?{}:F,j=n.popupAlign,D=n.zIndex,L=n.stretch,B=n.getPopupClassNameFromAlign,z=n.fresh,H=n.alignPoint,W=n.onPopupClick,G=n.onPopupAlign,V=n.arrow,U=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,X=n.popupAnimation,Y=n.maskTransitionName,Z=n.maskAnimation,$=n.className,Q=n.getTriggerDOMNode,J=us(n,WL),ee=A||O||!1,te=u(e.useState(!1),2),ne=te[0],re=te[1];Oe((function(){re(fM())}),[]);var oe=e.useRef({}),ae=e.useContext(AL),ie=e.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null===ae||void 0===ae||ae.registerSubPopup(e,t)}}}),[ae]),se=dM(),le=u(e.useState(null),2),ce=le[0],ue=le[1],de=e.useRef(null),fe=MO((function(e){de.current=e,Xu(e)&&ce!==e&&ue(e),null===ae||void 0===ae||ae.registerSubPopup(se,e)})),he=u(e.useState(null),2),pe=he[0],me=he[1],ge=e.useRef(null),ve=MO((function(e){Xu(e)&&pe!==e&&(me(e),ge.current=e)})),ye=e.Children.only(i),be=(null===ye||void 0===ye?void 0:ye.props)||{},we={},xe=MO((function(e){var t,n,r=pe;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=Ts(r))||void 0===t?void 0:t.host)===e||e===r||(null===ce||void 0===ce?void 0:ce.contains(e))||(null===(n=Ts(ce))||void 0===n?void 0:n.host)===e||e===ce||Object.values(oe.current).some((function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t}))})),Se=ML(a,U,X,K),Ce=ML(a,q,Z,Y),_e=u(e.useState(m||!1),2),Ee=_e[0],ke=_e[1],Pe=null!==h&&void 0!==h?h:Ee,Ae=MO((function(e){void 0===h&&ke(e)}));Oe((function(){ke(h||!1)}),[h]);var Te=e.useRef(Pe);Te.current=Pe;var Me=e.useRef([]);Me.current=[];var Ie=MO((function(e){var t;Ae(e),(null!==(t=Me.current[Me.current.length-1])&&void 0!==t?t:Pe)!==e&&(Me.current.push(e),null===g||void 0===g||g(e))})),Re=e.useRef(),Fe=function(){clearTimeout(Re.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Fe(),0===t?Ie(e):Re.current=setTimeout((function(){Ie(e)}),1e3*t)};e.useEffect((function(){return Fe}),[]);var je=u(e.useState(!1),2),De=je[0],Le=je[1];Oe((function(e){e&&!Pe||Le(!0)}),[Pe]);var Be=u(e.useState(null),2),ze=Be[0],He=Be[1],We=u(e.useState([0,0]),2),Ge=We[0],Ve=We[1],Ue=function(e){Ve([e.clientX,e.clientY])},qe=function(t,n,r,o,a,i,s){var l=u(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),2),c=l[0],d=l[1],f=e.useRef(0),h=e.useMemo((function(){return n?RL(n):[]}),[n]),m=e.useRef({});t||(m.current={});var g=MO((function(){if(n&&r&&t){var e,l,c,f=n,g=f.ownerDocument,v=IL(f).getComputedStyle(f),y=v.width,b=v.height,w=v.position,x=f.style.left,S=f.style.top,C=f.style.right,_=f.style.bottom,E=f.style.overflow,k=p(p({},a[o]),i),P=g.createElement("div");if(null===(e=f.parentElement)||void 0===e||e.appendChild(P),P.style.left="".concat(f.offsetLeft,"px"),P.style.top="".concat(f.offsetTop,"px"),P.style.position=w,P.style.height="".concat(f.offsetHeight,"px"),P.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(r))c={x:r[0],y:r[1],width:0,height:0};else{var A=r.getBoundingClientRect();c={x:A.x,y:A.y,width:A.width,height:A.height}}var O=f.getBoundingClientRect(),T=g.documentElement,M=T.clientWidth,I=T.clientHeight,R=T.scrollWidth,F=T.scrollHeight,N=T.scrollTop,j=T.scrollLeft,D=O.height,L=O.width,B=c.height,z=c.width,H={left:0,top:0,right:M,bottom:I},W={left:-j,top:-N,right:R-j,bottom:F-N},G=k.htmlRegion,V="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=V);var q=G===U,K=jL(W,h),X=jL(H,h),Y=G===V?X:K,Z=q?X:Y;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var $=f.getBoundingClientRect();f.style.left=x,f.style.top=S,f.style.right=C,f.style.bottom=_,f.style.overflow=E,null===(l=f.parentElement)||void 0===l||l.removeChild(P);var Q=FL(Math.round(L/parseFloat(y)*1e3)/1e3),J=FL(Math.round(D/parseFloat(b)*1e3)/1e3);if(0===Q||0===J||Xu(r)&&!cT(r))return;var ee=k.offset,te=k.targetOffset,ne=u(LL(O,ee),2),re=ne[0],oe=ne[1],ae=u(LL(c,te),2),ie=ae[0],se=ae[1];c.x-=ie,c.y-=se;var le=u(k.points||[],2),ce=le[0],ue=BL(le[1]),de=BL(ce),fe=zL(c,ue),he=zL(O,de),pe=p({},k),me=fe.x-he.x+re,ge=fe.y-he.y+oe;function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y,r=O.x+e,o=O.y+t,a=r+L,i=o+D,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(a,n.right),u=Math.min(i,n.bottom);return Math.max(0,(c-s)*(u-l))}var ve,ye,be,we,xe=ct(me,ge),Se=ct(me,ge,X),Ce=zL(c,["t","l"]),_e=zL(O,["t","l"]),Ee=zL(c,["b","r"]),ke=zL(O,["b","r"]),Pe=k.overflow||{},Ae=Pe.adjustX,Oe=Pe.adjustY,Te=Pe.shiftX,Me=Pe.shiftY,Ie=function(e){return"boolean"===typeof e?e:e>=0};function ut(){ve=O.y+ge,ye=ve+D,be=O.x+me,we=be+L}ut();var Re=Ie(Oe),Fe=de[0]===ue[0];if(Re&&"t"===de[0]&&(ye>Z.bottom||m.current.bt)){var Ne=ge;Fe?Ne-=D-B:Ne=Ce.y-ke.y-oe;var je=ct(me,Ne),De=ct(me,Ne,X);je>xe||je===xe&&(!q||De>=Se)?(m.current.bt=!0,ge=Ne,oe=-oe,pe.points=[HL(de,0),HL(ue,0)]):m.current.bt=!1}if(Re&&"b"===de[0]&&(ve<Z.top||m.current.tb)){var Le=ge;Fe?Le+=D-B:Le=Ee.y-_e.y-oe;var Be=ct(me,Le),ze=ct(me,Le,X);Be>xe||Be===xe&&(!q||ze>=Se)?(m.current.tb=!0,ge=Le,oe=-oe,pe.points=[HL(de,0),HL(ue,0)]):m.current.tb=!1}var He=Ie(Ae),We=de[1]===ue[1];if(He&&"l"===de[1]&&(we>Z.right||m.current.rl)){var Ge=me;We?Ge-=L-z:Ge=Ce.x-ke.x-re;var Ve=ct(Ge,ge),Ue=ct(Ge,ge,X);Ve>xe||Ve===xe&&(!q||Ue>=Se)?(m.current.rl=!0,me=Ge,re=-re,pe.points=[HL(de,1),HL(ue,1)]):m.current.rl=!1}if(He&&"r"===de[1]&&(be<Z.left||m.current.lr)){var qe=me;We?qe+=L-z:qe=Ee.x-_e.x-re;var Ke=ct(qe,ge),Xe=ct(qe,ge,X);Ke>xe||Ke===xe&&(!q||Xe>=Se)?(m.current.lr=!0,me=qe,re=-re,pe.points=[HL(de,1),HL(ue,1)]):m.current.lr=!1}ut();var Ye=!0===Te?0:Te;"number"===typeof Ye&&(be<X.left&&(me-=be-X.left-re,c.x+z<X.left+Ye&&(me+=c.x-X.left+z-Ye)),we>X.right&&(me-=we-X.right-re,c.x>X.right-Ye&&(me+=c.x-X.right+Ye)));var Ze=!0===Me?0:Me;"number"===typeof Ze&&(ve<X.top&&(ge-=ve-X.top-oe,c.y+B<X.top+Ze&&(ge+=c.y-X.top+B-Ze)),ye>X.bottom&&(ge-=ye-X.bottom-oe,c.y>X.bottom-Ze&&(ge+=c.y-X.bottom+Ze)));var $e=O.x+me,Qe=$e+L,Je=O.y+ge,et=Je+D,tt=c.x,nt=tt+z,rt=c.y,ot=rt+B,at=(Math.max($e,tt)+Math.min(Qe,nt))/2-$e,it=(Math.max(Je,rt)+Math.min(et,ot))/2-Je;null===s||void 0===s||s(n,pe);var st=$.right-O.x-(me+O.width),lt=$.bottom-O.y-(ge+O.height);1===Q&&(me=Math.round(me),st=Math.round(st)),1===J&&(ge=Math.round(ge),lt=Math.round(lt)),d({ready:!0,offsetX:me/Q,offsetY:ge/J,offsetR:st/Q,offsetB:lt/J,arrowX:at/Q,arrowY:it/J,scaleX:Q,scaleY:J,align:pe})}})),v=function(){d((function(e){return p(p({},e),{},{ready:!1})}))};return Oe(v,[o]),Oe((function(){t||v()}),[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&g()}))}]}(Pe,ce,H?Ge:pe,R,N,j,G),Ke=u(qe,11),Xe=Ke[0],Ye=Ke[1],Ze=Ke[2],$e=Ke[3],Qe=Ke[4],Je=Ke[5],et=Ke[6],tt=Ke[7],nt=Ke[8],rt=Ke[9],ot=Ke[10],at=function(t,n,r,o){return e.useMemo((function(){var e=OL(null!==r&&void 0!==r?r:n),a=OL(null!==o&&void 0!==o?o:n),i=new Set(e),s=new Set(a);return t&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]}),[t,n,r,o])}(ne,l,c,d),it=u(at,2),st=it[0],lt=it[1],ct=st.has("click"),ut=lt.has("click")||lt.has("contextMenu"),dt=MO((function(){De||ot()}));!function(e,t,n,r,o){Oe((function(){if(e&&t&&n){var a=n,i=RL(t),s=RL(a),l=IL(a),c=new Set([l].concat(f(i),f(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(Pe,pe,ce,dt,(function(){Te.current&&H&&ut&&Ne(!1)})),Oe((function(){dt()}),[Ge,R]),Oe((function(){!Pe||null!==N&&void 0!==N&&N[R]||dt()}),[JSON.stringify(j)]);var ft=e.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(TL(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(N,a,rt,H);return $o()(e,null===B||void 0===B?void 0:B(rt))}),[rt,B,N,a,H]);e.useImperativeHandle(r,(function(){return{nativeElement:ge.current,popupElement:de.current,forceAlign:dt}}));var ht=u(e.useState(0),2),pt=ht[0],mt=ht[1],gt=u(e.useState(0),2),vt=gt[0],yt=gt[1],bt=function(){if(L&&pe){var e=pe.getBoundingClientRect();mt(e.width),yt(e.height)}};function wt(e,t,n,r){we[e]=function(o){var a;null===r||void 0===r||r(o),Ne(t,n);for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];null===(a=be[e])||void 0===a||a.call.apply(a,[be,o].concat(s))}}Oe((function(){ze&&(ot(),ze(),He(null))}),[ze]),(ct||ut)&&(we.onClick=function(e){var t;Te.current&&ut?Ne(!1):!Te.current&&ct&&(Ue(e),Ne(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=be.onClick)||void 0===t||t.call.apply(t,[be,e].concat(r))}),function(t,n,r,o,a,i,s,l){var c=e.useRef(t);c.current=t,e.useEffect((function(){if(n&&o&&(!a||i)){var e=function(e){var t=e.target;c.current&&!s(t)&&l(!1)},t=IL(o);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u=Ts(r);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[n,r,o,a,i])}(Pe,ut,pe,ce,C,E,xe,Ne);var xt,St,Ct=st.has("hover"),_t=lt.has("hover");Ct&&(wt("onMouseEnter",!0,y,(function(e){Ue(e)})),wt("onPointerEnter",!0,y,(function(e){Ue(e)})),xt=function(e){(Pe||De)&&null!==ce&&void 0!==ce&&ce.contains(e.target)&&Ne(!0,y)},H&&(we.onMouseMove=function(e){var t;null===(t=be.onMouseMove)||void 0===t||t.call(be,e)})),_t&&(wt("onMouseLeave",!1,w),wt("onPointerLeave",!1,w),St=function(){Ne(!1,w)}),st.has("focus")&&wt("onFocus",!0,x),lt.has("focus")&&wt("onBlur",!1,S),st.has("contextMenu")&&(we.onContextMenu=function(e){var t;Te.current&&lt.has("contextMenu")?Ne(!1):(Ue(e),Ne(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=be.onContextMenu)||void 0===t||t.call.apply(t,[be,e].concat(r))}),$&&(we.className=$o()(be.className,$));var Et=p(p({},be),we),kt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){J[e]&&(kt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Et[e])||void 0===t||t.call.apply(t,[Et].concat(r)),J[e].apply(J,r)})}));var Pt=e.cloneElement(ye,p(p({},Et),kt)),At={x:Je,y:et},Ot=V?p({},!0!==V?V:{}):null;return e.createElement(e.Fragment,null,e.createElement(EO,{disabled:!Pe,ref:ve,onResize:function(){bt(),dt()}},e.createElement(PL,{getTriggerDOMNode:Q},Pt)),e.createElement(AL.Provider,{value:ie},e.createElement(EL,{portal:t,ref:fe,prefixCls:a,popup:T,className:$o()(M,ft),style:I,target:pe,onMouseEnter:xt,onMouseLeave:St,onPointerEnter:xt,zIndex:D,open:Pe,keepDom:De,fresh:z,onClick:W,mask:C,motion:Se,maskMotion:Ce,onVisibleChanged:function(e){Le(!1),ot(),null===v||void 0===v||v(e)},onPrepare:function(){return new Promise((function(e){bt(),He((function(){return e}))}))},forceRender:P,autoDestroy:ee,getPopupContainer:k,align:rt,arrow:Ot,arrowPos:At,ready:Xe,offsetX:Ye,offsetY:Ze,offsetR:$e,offsetB:Qe,onAlign:dt,stretch:L,targetWidth:pt/tt,targetHeight:vt/nt})))}));return n}(lM);var VL=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],UL=function(t,n){var r=t.prefixCls,o=(t.disabled,t.visible),i=t.children,s=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,h=void 0===f?"ltr":f,m=t.placement,g=t.builtinPlacements,v=t.dropdownMatchSelectWidth,y=t.dropdownRender,b=t.dropdownAlign,w=t.getPopupContainer,x=t.empty,S=t.getTriggerDOMNode,C=t.onPopupVisibleChange,_=t.onPopupMouseEnter,E=us(t,VL),k="".concat(r,"-dropdown"),P=s;y&&(P=y(s));var A=e.useMemo((function(){return g||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(v)}),[g,v]),O=l?"".concat(k,"-").concat(l):c,T="number"===typeof v,M=e.useMemo((function(){return T?null:!1===v?"minWidth":"width"}),[v,T]),I=u;T&&(I=p(p({},I),{},{width:v}));var R=e.useRef(null);return e.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.popupElement}}})),e.createElement(GL,Ge({},E,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:m||("rtl"===h?"bottomRight":"bottomLeft"),builtinPlacements:A,prefixCls:k,popupTransitionName:O,popup:e.createElement("div",{onMouseEnter:_},P),ref:R,stretch:M,popupAlign:b,popupVisible:o,getPopupContainer:w,popupClassName:$o()(d,a({},"".concat(k,"-empty"),x)),popupStyle:I,getTriggerDOMNode:S,onPopupVisibleChange:C}),i)};const qL=e.forwardRef(UL);function KL(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!==r&&void 0!==r?r:void 0!==n?n:"rc-index-key-".concat(t)}function XL(e){return"undefined"!==typeof e&&!Number.isNaN(e)}function YL(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function ZL(e){var t=p({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return j(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const $L=e.createContext(null);function QL(t){var n=t.visible,o=t.values;if(!n)return null;return e.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(o.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(r(t))?t:n})).join(", ")),o.length>50?", ...":null)}var JL=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],eB=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],tB=function(e){return"tags"===e||"multiple"===e},nB=e.forwardRef((function(t,n){var o,i=t.id,s=t.prefixCls,l=t.className,c=t.showSearch,d=t.tagRender,h=t.direction,m=t.omitDomProps,g=t.displayValues,v=t.onDisplayValuesChange,y=t.emptyOptions,b=t.notFoundContent,w=void 0===b?"Not Found":b,x=t.onClear,S=t.mode,C=t.disabled,_=t.loading,E=t.getInputElement,k=t.getRawInputElement,P=t.open,A=t.defaultOpen,O=t.onDropdownVisibleChange,T=t.activeValue,M=t.onActiveValueChange,I=t.activeDescendantId,R=t.searchValue,F=t.autoClearSearchValue,N=t.onSearch,j=t.onSearchSplit,D=t.tokenSeparators,L=t.allowClear,B=t.suffixIcon,z=t.clearIcon,H=t.OptionList,W=t.animation,G=t.transitionName,V=t.dropdownStyle,U=t.dropdownClassName,q=t.dropdownMatchSelectWidth,K=t.dropdownRender,X=t.dropdownAlign,Y=t.placement,Z=t.builtinPlacements,$=t.getPopupContainer,Q=t.showAction,J=void 0===Q?[]:Q,ee=t.onFocus,te=t.onBlur,ne=t.onKeyUp,re=t.onKeyDown,oe=t.onMouseDown,ae=us(t,JL),ie=tB(S),se=(void 0!==c?c:ie)||"combobox"===S,le=p({},ae);eB.forEach((function(e){delete le[e]})),null===m||void 0===m||m.forEach((function(e){delete le[e]}));var ce=u(e.useState(!1),2),ue=ce[0],de=ce[1];e.useEffect((function(){de(fM())}),[]);var fe=e.useRef(null),he=e.useRef(null),pe=e.useRef(null),me=e.useRef(null),ge=e.useRef(null),ve=e.useRef(!1),ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=u(e.useState(!1),2),r=n[0],o=n[1],a=e.useRef(null),i=function(){window.clearTimeout(a.current)};return e.useEffect((function(){return i}),[]),[r,function(e,n){i(),a.current=window.setTimeout((function(){o(e),n&&n()}),t)},i]}(),be=u(ye,3),we=be[0],xe=be[1],Se=be[2];e.useImperativeHandle(n,(function(){var e,t;return{focus:null===(e=me.current)||void 0===e?void 0:e.focus,blur:null===(t=me.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ge.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:fe.current||he.current}}));var Ce=e.useMemo((function(){var e;if("combobox"!==S)return R;var t=null===(e=g[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[R,S,g]),_e="combobox"===S&&"function"===typeof E&&E()||null,Ee="function"===typeof k&&k(),ke=Qu(he,null===Ee||void 0===Ee||null===(o=Ee.props)||void 0===o?void 0:o.ref),Pe=u(e.useState(!1),2),Ae=Pe[0],Te=Pe[1];Oe((function(){Te(!0)}),[]);var Me=u(YO(!1,{defaultValue:A,value:P}),2),Ie=Me[0],Re=Me[1],Fe=!!Ae&&Ie,Ne=!w&&y;(C||Ne&&Fe&&"combobox"===S)&&(Fe=!1);var je=!Ne&&Fe,De=e.useCallback((function(e){var t=void 0!==e?e:!Fe;C||(Re(t),Fe!==t&&(null===O||void 0===O||O(t)))}),[C,Fe,Re,O]),Le=e.useMemo((function(){return(D||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[D]),Be=e.useContext($L)||{},ze=Be.maxCount,He=Be.rawValues,We=function(e,t,n){if(!(ie&&XL(ze)&&(null===He||void 0===He?void 0:He.size)>=ze)){var r=!0,o=e;null===M||void 0===M||M(null);var a=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=ER(n),a=o[0],i=o.slice(1);if(!a)return[t];var s=t.split(a);return r=r||s.length>1,s.reduce((function(t,n){return[].concat(f(t),f(e(n,i)))}),[]).filter(Boolean)}(e,t);return r?"undefined"!==typeof n?o.slice(0,n):o:null}(e,D,XL(ze)?ze-He.size:void 0),i=n?null:a;return"combobox"!==S&&i&&(o="",null===j||void 0===j||j(i),De(!1),r=!1),N&&Ce!==o&&N(o,{source:t?"typing":"effect"}),r}};e.useEffect((function(){Fe||ie||"combobox"===S||We("",!1,!1)}),[Fe]),e.useEffect((function(){Ie&&C&&Re(!1),C&&!ve.current&&xe(!1)}),[C]);var Ve=u(sL(),2),Ue=Ve[0],qe=Ve[1],Ke=e.useRef(!1),Xe=[];e.useEffect((function(){return function(){Xe.forEach((function(e){return clearTimeout(e)})),Xe.splice(0,Xe.length)}}),[]);var Ye,Ze=u(e.useState({}),2)[1];Ee&&(Ye=function(e){De(e)}),function(t,n,r,o){var a=e.useRef(null);a.current={open:n,triggerOpen:r,customizedTrigger:o},e.useEffect((function(){function e(e){var n;if(null===(n=a.current)||void 0===n||!n.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),a.current.open&&t().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}((function(){var e;return[fe.current,null===(e=pe.current)||void 0===e?void 0:e.getPopupElement()]}),je,De,!!Ee);var $e,Qe=e.useMemo((function(){return p(p({},t),{},{notFoundContent:w,open:Fe,triggerOpen:je,id:i,showSearch:se,multiple:ie,toggleOpen:De})}),[t,w,je,Fe,i,se,ie,De]),Je=!!B||_;Je&&($e=e.createElement(aL,{className:$o()("".concat(s,"-arrow"),a({},"".concat(s,"-arrow-loading"),_)),customizeIcon:B,customizeIconProps:{loading:_,searchValue:Ce,open:Fe,focused:we,showSearch:se}}));var et,tt=function(t,n,o,a,i){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=e.useMemo((function(){return"object"===r(a)?a.clearIcon:i||void 0}),[a,i]);return{allowClear:e.useMemo((function(){return!(s||!a||!o.length&&!l||"combobox"===c&&""===l)}),[a,s,o.length,l,c]),clearIcon:e.createElement(aL,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"\xd7")}}(s,(function(){var e;null===x||void 0===x||x(),null===(e=me.current)||void 0===e||e.focus(),v([],{type:"clear",values:g}),We("",!1,!1)}),g,L,z,C,Ce,S),nt=tt.allowClear,rt=tt.clearIcon,ot=e.createElement(H,{ref:ge}),at=$o()(s,l,a(a(a(a(a(a(a(a(a(a({},"".concat(s,"-focused"),we),"".concat(s,"-multiple"),ie),"".concat(s,"-single"),!ie),"".concat(s,"-allow-clear"),L),"".concat(s,"-show-arrow"),Je),"".concat(s,"-disabled"),C),"".concat(s,"-loading"),_),"".concat(s,"-open"),Fe),"".concat(s,"-customize-input"),_e),"".concat(s,"-show-search"),se)),it=e.createElement(qL,{ref:pe,disabled:C,prefixCls:s,visible:je,popupElement:ot,animation:W,transitionName:G,dropdownStyle:V,dropdownClassName:U,direction:h,dropdownMatchSelectWidth:q,dropdownRender:K,dropdownAlign:X,placement:Y,builtinPlacements:Z,getPopupContainer:$,empty:y,getTriggerDOMNode:function(e){return he.current||e},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Ze({})}},Ee?e.cloneElement(Ee,{ref:ke}):e.createElement(bL,Ge({},t,{domRef:he,prefixCls:s,inputElement:_e,ref:me,id:i,showSearch:se,autoClearSearchValue:F,mode:S,activeDescendantId:I,tagRender:d,values:g,open:Fe,onToggleOpen:De,activeValue:T,searchValue:Ce,onSearch:We,onSearchSubmit:function(e){e&&e.trim()&&N(e,{source:"submit"})},onRemove:function(e){var t=g.filter((function(t){return t!==e}));v(t,{type:"remove",values:[e]})},tokenWithEnter:Le})));return et=Ee?it:e.createElement("div",Ge({className:at},le,{ref:fe,onMouseDown:function(e){var t,n=e.target,r=null===(t=pe.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Xe.indexOf(o);-1!==t&&Xe.splice(t,1),Se(),ue||r.contains(document.activeElement)||null===(e=me.current)||void 0===e||e.focus()}));Xe.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];null===oe||void 0===oe||oe.apply(void 0,[e].concat(i))},onKeyDown:function(e){var t,n=Ue(),r=e.which;if(r===ef.ENTER&&("combobox"!==S&&e.preventDefault(),Fe||De(!0)),qe(!!Ce),r===ef.BACKSPACE&&!n&&ie&&!Ce&&g.length){for(var o=f(g),a=null,i=o.length-1;i>=0;i-=1){var s=o[i];if(!s.disabled){o.splice(i,1),a=s;break}}a&&v(o,{type:"remove",values:[a]})}for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];Fe&&(null===(t=ge.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(c))),null===re||void 0===re||re.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Fe&&(null===(o=ge.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),null===ne||void 0===ne||ne.apply(void 0,[e].concat(n))},onFocus:function(){xe(!0),C||(ee&&!Ke.current&&ee.apply(void 0,arguments),J.includes("focus")&&De(!0)),Ke.current=!0},onBlur:function(){ve.current=!0,xe(!1,(function(){Ke.current=!1,ve.current=!1,De(!1)})),C||(Ce&&("tags"===S?N(Ce,{source:"submit"}):"multiple"===S&&N("",{source:"blur"})),te&&te.apply(void 0,arguments))}}),e.createElement(QL,{visible:we&&!Fe,values:g}),it,$e,nt&&rt),e.createElement(iL.Provider,{value:Qe},et)}));const rB=nB;var oB=function(){return null};oB.isSelectOptGroup=!0;const aB=oB;var iB=function(){return null};iB.isSelectOption=!0;const sB=iB;var lB=e.forwardRef((function(t,n){var r=t.height,o=t.offsetY,i=t.offsetX,s=t.children,l=t.prefixCls,c=t.onInnerResize,u=t.innerProps,d=t.rtl,f=t.extra,h={},m={display:"flex",flexDirection:"column"};return void 0!==o&&(h={height:r,position:"relative",overflow:"hidden"},m=p(p({},m),{},a(a(a(a(a({transform:"translateY(".concat(o,"px)")},d?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),e.createElement("div",{style:h},e.createElement(EO,{onResize:function(e){e.offsetHeight&&c&&c()}},e.createElement("div",Ge({style:m,className:$o()(a({},"".concat(l,"-holder-inner"),l)),ref:n},u),s,f)))}));lB.displayName="Filler";const cB=lB;function uB(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var dB=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.rtl,i=t.scrollOffset,s=t.scrollRange,l=t.onStartMove,c=t.onStopMove,d=t.onScroll,f=t.horizontal,h=t.spinSize,m=t.containerSize,g=t.style,v=t.thumbStyle,y=u(e.useState(!1),2),b=y[0],w=y[1],x=u(e.useState(null),2),S=x[0],C=x[1],_=u(e.useState(null),2),E=_[0],k=_[1],P=!o,A=e.useRef(),O=e.useRef(),T=u(e.useState(!1),2),M=T[0],I=T[1],R=e.useRef(),F=function(){clearTimeout(R.current),I(!0),R.current=setTimeout((function(){I(!1)}),3e3)},N=s-m||0,j=m-h||0,D=e.useMemo((function(){return 0===i||0===N?0:i/N*j}),[i,N,j]),L=e.useRef({top:D,dragging:b,pageY:S,startTop:E});L.current={top:D,dragging:b,pageY:S,startTop:E};var B=function(e){w(!0),C(uB(e,f)),k(L.current.top),l(),e.stopPropagation(),e.preventDefault()};e.useEffect((function(){var e=function(e){e.preventDefault()},t=A.current,n=O.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",B),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",B)}}),[]);var z=e.useRef();z.current=N;var H=e.useRef();H.current=j,e.useEffect((function(){if(b){var e,t=function(t){var n=L.current,r=n.dragging,o=n.pageY,a=n.startTop;if(Fd.cancel(e),r){var i=uB(t,f)-o,s=a;!P&&f?s-=i:s+=i;var l=z.current,c=H.current,u=c?s/c:0,h=Math.ceil(u*l);h=Math.max(h,0),h=Math.min(h,l),e=Fd((function(){d(h,f)}))}},n=function(){w(!1),c()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Fd.cancel(e)}}}),[b]),e.useEffect((function(){F()}),[i]),e.useImperativeHandle(n,(function(){return{delayHidden:F}}));var W="".concat(r,"-scrollbar"),G={position:"absolute",visibility:M?null:"hidden"},V={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(G.height=8,G.left=0,G.right=0,G.bottom=0,V.height="100%",V.width=h,P?V.left=D:V.right=D):(G.width=8,G.top=0,G.bottom=0,P?G.right=0:G.left=0,V.width="100%",V.height=h,V.top=D),e.createElement("div",{ref:A,className:$o()(W,a(a(a({},"".concat(W,"-horizontal"),f),"".concat(W,"-vertical"),!f),"".concat(W,"-visible"),M)),style:p(p({},G),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:F},e.createElement("div",{ref:O,className:$o()("".concat(W,"-thumb"),a({},"".concat(W,"-thumb-moving"),b)),style:p(p({},V),v),onMouseDown:B}))}));const fB=dB;function hB(t){var n=t.children,r=t.setRef,o=e.useCallback((function(e){r(e)}),[]);return e.cloneElement(n,{ref:o})}const pB=function(){function e(){L(this,e),a(this,"maps",void 0),a(this,"id",0),this.maps=Object.create(null)}return z(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var mB=10;function gB(t,n,r){var o=u(e.useState(t),2),a=o[0],i=o[1],s=u(e.useState(null),2),l=s[0],c=s[1];return e.useEffect((function(){var e=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(a-i),d=0;d<o.length;d+=1){var f=l(r[d]);if(f!==l(o[d])){c=d,u=u||f!==l(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(a||[],t||[],n);void 0!==(null===e||void 0===e?void 0:e.index)&&(null===r||void 0===r||r(e.index),c(t[e.index])),i(t)}),[t]),[l]}const vB="object"===("undefined"===typeof navigator?"undefined":r(navigator))&&/Firefox/i.test(navigator.userAgent),yB=function(t,n){var r=(0,e.useRef)(!1),o=(0,e.useRef)(null);var a=(0,e.useRef)({top:t,bottom:n});return a.current.top=t,a.current.bottom=n,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e<0&&a.current.top||e>0&&a.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||(clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)),!r.current&&n}};function bB(t,n,r,o,a){var i=(0,e.useRef)(0),s=(0,e.useRef)(null),l=(0,e.useRef)(null),c=(0,e.useRef)(!1),u=yB(n,r);var d=(0,e.useRef)(null),f=(0,e.useRef)(null);return[function(e){if(t){Fd.cancel(f.current),f.current=Fd((function(){d.current=null}),2);var n=e.deltaX,r=e.deltaY,h=e.shiftKey,p=n,m=r;("sx"===d.current||!d.current&&h&&r&&!n)&&(p=r,m=0,d.current="sx");var g=Math.abs(p),v=Math.abs(m);null===d.current&&(d.current=o&&g>v?"x":"y"),"y"===d.current?function(e,t){Fd.cancel(s.current),i.current+=t,l.current=t,u(t)||(vB||e.preventDefault(),s.current=Fd((function(){var e=c.current?10:1;a(i.current*e),i.current=0})))}(e,m):function(e,t){a(t,!0),vB||e.preventDefault()}(e,p)}},function(e){t&&(c.current=e.detail===l.current)}]}var wB=14/15;var xB=20;function SB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,xB),Math.floor(t)}var CB=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],_B=[],EB={overflowY:"auto",overflowAnchor:"none"};function kB(t,n){var o=t.prefixCls,i=void 0===o?"rc-virtual-list":o,s=t.className,l=t.height,c=t.itemHeight,d=t.fullHeight,f=void 0===d||d,h=t.style,m=t.data,g=t.children,v=t.itemKey,y=t.virtual,b=t.direction,w=t.scrollWidth,x=t.component,S=void 0===x?"div":x,C=t.onScroll,_=t.onVirtualScroll,E=t.onVisibleChange,k=t.innerProps,P=t.extraRender,A=t.styles,O=us(t,CB),T=!(!1===y||!l||!c),M=T&&m&&(c*m.length>l||!!w),I="rtl"===b,R=$o()(i,a({},"".concat(i,"-rtl"),I),s),F=m||_B,N=(0,e.useRef)(),j=(0,e.useRef)(),D=u((0,e.useState)(0),2),L=D[0],B=D[1],z=u((0,e.useState)(0),2),H=z[0],W=z[1],G=u((0,e.useState)(!1),2),V=G[0],U=G[1],q=function(){U(!0)},K=function(){U(!1)},X=e.useCallback((function(e){return"function"===typeof v?v(e):null===e||void 0===e?void 0:e[v]}),[v]),Y={getKey:X};function Z(e){B((function(t){var n=function(e){var t=e;Number.isNaN(be.current)||(t=Math.min(t,be.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return N.current.scrollTop=n,n}))}var $=(0,e.useRef)({start:0,end:F.length}),Q=(0,e.useRef)(),J=u(gB(F,X),1)[0];Q.current=J;var ee=function(t,n,r){var o=u(e.useState(0),2),a=o[0],i=o[1],s=(0,e.useRef)(new Map),l=(0,e.useRef)(new pB),c=(0,e.useRef)();function d(){Fd.cancel(c.current)}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){s.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Yu(e),r=n.offsetHeight;l.current.get(t)!==r&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():c.current=Fd(t)}return(0,e.useEffect)((function(){return d}),[]),[function(e,o){var a=t(e),i=s.current.get(a);o?(s.current.set(a,o),f()):s.current.delete(a),!i!==!o&&(o?null===n||void 0===n||n(e):null===r||void 0===r||r(e))},f,l.current,a]}(X,null,null),te=u(ee,4),ne=te[0],re=te[1],oe=te[2],ae=te[3],ie=e.useMemo((function(){if(!T)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};var e;if(!M)return{scrollHeight:(null===(e=j.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:F.length-1,offset:void 0};for(var t,n,r,o=0,a=F.length,i=0;i<a;i+=1){var s=F[i],u=X(s),d=oe.get(u),f=o+(void 0===d?c:d);f>=L&&void 0===t&&(t=i,n=o),f>L+l&&void 0===r&&(r=i),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(l/c)),void 0===r&&(r=F.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,F.length-1),offset:n}}),[M,T,L,F,ae,l]),se=ie.scrollHeight,le=ie.start,ce=ie.end,ue=ie.offset;$.current.start=le,$.current.end=ce;var de=u(e.useState({width:0,height:l}),2),fe=de[0],he=de[1],pe=(0,e.useRef)(),me=(0,e.useRef)(),ge=e.useMemo((function(){return SB(fe.width,w)}),[fe.width,w]),ve=e.useMemo((function(){return SB(fe.height,se)}),[fe.height,se]),ye=se-l,be=(0,e.useRef)(ye);be.current=ye;var we=L<=0,xe=L>=ye,Se=yB(we,xe),Ce=function(){return{x:I?-H:H,y:L}},_e=(0,e.useRef)(Ce()),Ee=MO((function(){if(_){var e=Ce();_e.current.x===e.x&&_e.current.y===e.y||(_(e),_e.current=e)}}));function ke(e,t){var n=e;t?((0,Qo.flushSync)((function(){W(n)})),Ee()):Z(n)}var Pe=function(e){var t=e,n=w-fe.width;return t=Math.max(t,0),t=Math.min(t,n)},Ae=MO((function(e,t){t?((0,Qo.flushSync)((function(){W((function(t){return Pe(t+(I?-e:e))}))})),Ee()):Z((function(t){return t+e}))})),Te=u(bB(T,we,xe,!!w,Ae),2),Me=Te[0],Ie=Te[1];!function(t,n,r){var o,a=(0,e.useRef)(!1),i=(0,e.useRef)(0),s=(0,e.useRef)(null),l=(0,e.useRef)(null),c=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),n=i.current-t;i.current=t,r(n)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!r(n*=wB,!0)||Math.abs(n)<=.1)&&clearInterval(l.current)}),16)}},u=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",c),s.current.addEventListener("touchend",u))};o=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},Oe((function(){return t&&n.current.addEventListener("touchstart",d),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(l.current)}}),[t])}(T,N,(function(e,t){return!Se(e,t)&&(Me({preventDefault:function(){},deltaY:e}),!0)})),Oe((function(){function e(e){T&&e.preventDefault()}var t=N.current;return t.addEventListener("wheel",Me),t.addEventListener("DOMMouseScroll",Ie),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Me),t.removeEventListener("DOMMouseScroll",Ie),t.removeEventListener("MozMousePixelScroll",e)}}),[T]),Oe((function(){w&&W((function(e){return Pe(e)}))}),[fe.width,w]);var Re=function(){var e,t;null===(e=pe.current)||void 0===e||e.delayHidden(),null===(t=me.current)||void 0===t||t.delayHidden()},Fe=function(t,n,o,a,i,s,l,c){var d=e.useRef(),f=u(e.useState(null),2),h=f[0],m=f[1];return Oe((function(){if(h&&h.times<mB){if(!t.current)return void m((function(e){return p({},e)}));s();var e=h.targetAlign,r=h.originAlign,c=h.index,u=h.offset,d=t.current.clientHeight,f=!1,g=e,v=null;if(d){for(var y=e||r,b=0,w=0,x=0,S=Math.min(n.length-1,c),C=0;C<=S;C+=1){var _=i(n[C]);w=b;var E=o.get(_);b=x=w+(void 0===E?a:E)}for(var k="top"===y?u:d-u,P=S;P>=0;P-=1){var A=i(n[P]),O=o.get(A);if(void 0===O){f=!0;break}if((k-=O)<=0)break}switch(y){case"top":v=w-u;break;case"bottom":v=x-d+u;break;default:var T=t.current.scrollTop;w<T?g="top":x>T+d&&(g="bottom")}null!==v&&l(v),v!==h.lastTop&&(f=!0)}f&&m(p(p({},h),{},{times:h.times+1,targetAlign:g,lastTop:v}))}}),[h,t.current]),function(e){if(null!==e&&void 0!==e){if(Fd.cancel(d.current),"number"===typeof e)l(e);else if(e&&"object"===r(e)){var t,o=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var a=e.offset;m({times:0,index:t,offset:void 0===a?0:a,originAlign:o})}}else c()}}(N,F,oe,c,X,(function(){return re(!0)}),Z,Re);e.useImperativeHandle(n,(function(){return{getScrollInfo:Ce,scrollTo:function(e){var t;(t=e)&&"object"===r(t)&&("left"in t||"top"in t)?(void 0!==e.left&&W(Pe(e.left)),Fe(e.top)):Fe(e)}}})),Oe((function(){if(E){var e=F.slice(le,ce+1);E(e,F)}}),[le,ce,F]);var Ne=function(t,n,r,o){var a=u(e.useMemo((function(){return[new Map,[]]}),[t,r.id,o]),2),i=a[0],s=a[1];return function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,l=i.get(e),c=i.get(a);if(void 0===l||void 0===c)for(var u=t.length,d=s.length;d<u;d+=1){var f,h=t[d],p=n(h);i.set(p,d);var m=null!==(f=r.get(p))&&void 0!==f?f:o;if(s[d]=(s[d-1]||0)+m,p===e&&(l=d),p===a&&(c=d),void 0!==l&&void 0!==c)break}return{top:s[l-1]||0,bottom:s[c]}}}(F,X,oe,c),je=null===P||void 0===P?void 0:P({start:le,end:ce,virtual:M,offsetX:H,offsetY:ue,rtl:I,getSize:Ne}),De=function(t,n,r,o,a,i,s){var l=s.getKey;return t.slice(n,r+1).map((function(t,r){var s=i(t,n+r,{style:{width:o}}),c=l(t);return e.createElement(hB,{key:c,setRef:function(e){return a(t,e)}},s)}))}(F,le,ce,w,ne,g,Y),Le=null;l&&(Le=p(a({},f?"height":"maxHeight",l),EB),T&&(Le.overflowY="hidden",w&&(Le.overflowX="hidden"),V&&(Le.pointerEvents="none")));var Be={};return I&&(Be.dir="rtl"),e.createElement("div",Ge({style:p(p({},h),{},{position:"relative"}),className:R},Be,O),e.createElement(EO,{onResize:function(e){he({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},e.createElement(S,{className:"".concat(i,"-holder"),style:Le,ref:N,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==L&&Z(t),null===C||void 0===C||C(e),Ee()},onMouseEnter:Re},e.createElement(cB,{prefixCls:i,height:se,offsetX:H,offsetY:ue,scrollWidth:w,onInnerResize:re,ref:j,innerProps:k,rtl:I,extra:je},De))),M&&se>l&&e.createElement(fB,{ref:pe,prefixCls:i,scrollOffset:L,scrollRange:se,rtl:I,onScroll:ke,onStartMove:q,onStopMove:K,spinSize:ve,containerSize:fe.height,style:null===A||void 0===A?void 0:A.verticalScrollBar,thumbStyle:null===A||void 0===A?void 0:A.verticalScrollBarThumb}),M&&w>fe.width&&e.createElement(fB,{ref:me,prefixCls:i,scrollOffset:H,scrollRange:w,rtl:I,onScroll:ke,onStartMove:q,onStopMove:K,spinSize:ge,containerSize:fe.width,horizontal:!0,style:null===A||void 0===A?void 0:A.horizontalScrollBar,thumbStyle:null===A||void 0===A?void 0:A.horizontalScrollBarThumb}))}var PB=e.forwardRef(kB);PB.displayName="List";const AB=PB;var OB=["disabled","title","children","style","className"];function TB(e){return"string"===typeof e||"number"===typeof e}var MB=function(t,n){var r=e.useContext(iL),o=r.prefixCls,i=r.id,s=r.open,l=r.multiple,c=r.mode,d=r.searchValue,h=r.toggleOpen,p=r.notFoundContent,m=r.onPopupScroll,g=e.useContext($L),v=g.maxCount,y=g.flattenOptions,b=g.onActiveValue,w=g.defaultActiveFirstOption,x=g.onSelect,S=g.menuItemSelectedIcon,C=g.rawValues,_=g.fieldNames,E=g.virtual,k=g.direction,P=g.listHeight,A=g.listItemHeight,T=g.optionRender,M="".concat(o,"-item"),I=O((function(){return y}),[s,y],(function(e,t){return t[0]&&e[1]!==t[1]})),R=e.useRef(null),F=e.useMemo((function(){return l&&XL(v)&&(null===C||void 0===C?void 0:C.size)>=v}),[l,v,null===C||void 0===C?void 0:C.size]),N=function(e){e.preventDefault()},j=function(e){var t;null===(t=R.current)||void 0===t||t.scrollTo("number"===typeof e?{index:e}:e)},D=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=I.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,a=I[o]||{},i=a.group,s=a.data;if(!i&&(null===s||void 0===s||!s.disabled)&&!F)return o}return-1},L=u(e.useState((function(){return D(0)})),2),B=L[0],z=L[1],H=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];z(e);var n={source:t?"keyboard":"mouse"},r=I[e];r?b(r.value,e,n):b(null,-1,n)};(0,e.useEffect)((function(){H(!1!==w?D(0):-1)}),[I.length,d]);var W=e.useCallback((function(e){return C.has(e)&&"combobox"!==c}),[c,f(C).toString(),C.size]);(0,e.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&s&&1===C.size){var e=Array.from(C)[0],t=I.findIndex((function(t){return t.data.value===e}));-1!==t&&(H(t),j(t))}}));s&&(null===(e=R.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,d]);var G=function(e){void 0!==e&&x(e,{selected:!C.has(e)}),l||h(!1)};if(e.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case ef.N:case ef.P:case ef.UP:case ef.DOWN:var r=0;if(t===ef.UP?r=-1:t===ef.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===ef.N?r=1:t===ef.P&&(r=-1)),0!==r){var o=D(B+r,r);j(o),H(o,!0)}break;case ef.ENTER:var a,i=I[B];!i||null!==i&&void 0!==i&&null!==(a=i.data)&&void 0!==a&&a.disabled||F?G(void 0):G(i.value),s&&e.preventDefault();break;case ef.ESC:h(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===I.length)return e.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:N},p);var V=Object.keys(_).map((function(e){return _[e]})),U=function(e){return e.label};function q(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var K=function(t){var n=I[t];if(!n)return null;var r=n.data||{},o=r.value,a=n.group,i=af(r,!0),s=U(n);return n?e.createElement("div",Ge({"aria-label":"string"!==typeof s||a?null:s},i,{key:t},q(n,t),{"aria-selected":W(o)}),o):null},X={role:"listbox",id:"".concat(i,"_list")};return e.createElement(e.Fragment,null,E&&e.createElement("div",Ge({},X,{style:{height:0,width:0,overflow:"hidden"}}),K(B-1),K(B),K(B+1)),e.createElement(AB,{itemKey:"key",ref:R,data:I,height:P,itemHeight:A,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:E,direction:k,innerProps:E?null:X},(function(t,n){var r=t.group,o=t.groupOption,i=t.data,s=t.label,l=t.value,c=i.key;if(r){var u,d=null!==(u=i.title)&&void 0!==u?u:TB(s)?s.toString():void 0;return e.createElement("div",{className:$o()(M,"".concat(M,"-group"),i.className),title:d},void 0!==s?s:c)}var f=i.disabled,h=i.title,p=(i.children,i.style),m=i.className,g=IT(us(i,OB),V),v=W(l),y=f||!v&&F,b="".concat(M,"-option"),w=$o()(M,b,m,a(a(a(a({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),B===n&&!y),"".concat(b,"-disabled"),y),"".concat(b,"-selected"),v)),x=U(t),C=!S||"function"===typeof S||v,_="number"===typeof x?x:x||l,k=TB(_)?_.toString():void 0;return void 0!==h&&(k=h),e.createElement("div",Ge({},af(g),E?{}:q(t,n),{"aria-selected":v,className:w,title:k,onMouseMove:function(){B===n||y||H(n)},onClick:function(){y||G(l)},style:p}),e.createElement("div",{className:"".concat(b,"-content")},"function"===typeof T?T(t,{index:n}):_),e.isValidElement(S)||v,C&&e.createElement(aL,{className:"".concat(M,"-option-state"),customizeIcon:S,customizeIconProps:{value:l,disabled:y,isSelected:v}},v?"\u2713":null))})))};const IB=e.forwardRef(MB);function RB(e,t){return uL(e).join("").toUpperCase().includes(t)}var FB=0,NB=g();function jB(t){var n=u(e.useState(),2),r=n[0],o=n[1];return e.useEffect((function(){o("rc_select_".concat(function(){var e;return NB?(e=FB,FB+=1):e="TEST_OR_SSR",e}()))}),[]),t||r}var DB=["children","value"],LB=["children"];function BB(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return XA(t).map((function(t,r){if(!e.isValidElement(t)||!t.type)return null;var o=t,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=us(s,LB);return n||!a?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value;return p({key:n,value:void 0!==a?a:n,children:o},us(r,DB))}(t):p(p({key:"__RC_SELECT_GRP__".concat(null===i?r:i,"__"),label:i},c),{},{options:BB(l)})})).filter((function(e){return e}))}const zB=function(t,n,r,o,a){return e.useMemo((function(){var e=t;!t&&(e=BB(n));var i=new Map,s=new Map,l=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[r.options]||n?(i.set(u[r.value],u),l(s,u,r.label),l(s,u,o),l(s,u,a)):e(u[r.options],!0)}}(e),{options:e,valueOptions:i,labelOptions:s}}),[t,n,r,o,a])};function HB(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var WB=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],GB=["inputValue"];var VB=e.forwardRef((function(t,n){var o=t.id,i=t.mode,s=t.prefixCls,l=void 0===s?"rc-select":s,c=t.backfill,d=t.fieldNames,h=t.inputValue,m=t.searchValue,g=t.onSearch,v=t.autoClearSearchValue,y=void 0===v||v,b=t.onSelect,w=t.onDeselect,x=t.dropdownMatchSelectWidth,S=void 0===x||x,C=t.filterOption,_=t.filterSort,E=t.optionFilterProp,k=t.optionLabelProp,P=t.options,A=t.optionRender,O=t.children,T=t.defaultActiveFirstOption,M=t.menuItemSelectedIcon,I=t.virtual,R=t.direction,F=t.listHeight,N=void 0===F?200:F,j=t.listItemHeight,D=void 0===j?20:j,L=t.labelRender,B=t.value,z=t.defaultValue,H=t.labelInValue,W=t.onChange,G=t.maxCount,V=us(t,WB),U=jB(o),q=tB(i),K=!(P||!O),X=e.useMemo((function(){return(void 0!==C||"combobox"!==i)&&C}),[C,i]),Y=e.useMemo((function(){return YL(d,K)}),[JSON.stringify(d),K]),Z=u(YO("",{value:void 0!==m?m:h,postState:function(e){return e||""}}),2),$=Z[0],Q=Z[1],J=zB(P,O,Y,E,k),ee=J.valueOptions,te=J.labelOptions,ne=J.options,re=e.useCallback((function(e){return uL(e).map((function(e){var t,n,o,a,i,s;(function(e){return!e||"object"!==r(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(s=e.value)&&void 0!==s?s:o);var l,c=ee.get(t);c&&(void 0===n&&(n=null===c||void 0===c?void 0:c[k||Y.label]),void 0===o&&(o=null!==(l=null===c||void 0===c?void 0:c.key)&&void 0!==l?l:t),a=null===c||void 0===c?void 0:c.disabled,i=null===c||void 0===c?void 0:c.title);return{label:n,value:t,key:o,disabled:a,title:i}}))}),[Y,k,ee]),oe=u(YO(z,{value:B}),2),ae=oe[0],ie=oe[1],se=e.useMemo((function(){var e,t=re(q&&null===ae?[]:ae);return"combobox"===i&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ae,re,i,q]),le=function(t,n){var r=e.useRef({values:new Map,options:new Map});return[e.useMemo((function(){var e=r.current,o=e.values,a=e.options,i=t.map((function(e){var t;return void 0===e.label?p(p({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return i.forEach((function(e){s.set(e.value,e),l.set(e.value,n.get(e.value)||a.get(e.value))})),r.current.values=s,r.current.options=l,i}),[t,n]),e.useCallback((function(e){return n.get(e)||r.current.options.get(e)}),[n])]}(se,ee),ce=u(le,2),ue=ce[0],de=ce[1],fe=e.useMemo((function(){if(!i&&1===ue.length){var e=ue[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ue.map((function(e){var t;return p(p({},e),{},{label:null!==(t="function"===typeof L?L(e):e.label)&&void 0!==t?t:e.value})}))}),[i,ue,L]),he=e.useMemo((function(){return new Set(ue.map((function(e){return e.value})))}),[ue]);e.useEffect((function(){if("combobox"===i){var e,t=null===(e=ue[0])||void 0===e?void 0:e.value;Q(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[ue]);var pe=HB((function(e,t){var n=null!==t&&void 0!==t?t:e;return a(a({},Y.value,e),Y.label,n)})),me=function(t,n,r,o,i){return e.useMemo((function(){if(!r||!1===o)return t;var e=n.options,s=n.label,l=n.value,c=[],u="function"===typeof o,d=r.toUpperCase(),f=u?o:function(t,n){return i?RB(n[i],d):n[e]?RB(n["children"!==s?s:"label"],d):RB(n[l],d)},h=u?function(e){return ZL(e)}:function(e){return e};return t.forEach((function(t){if(t[e])if(f(r,h(t)))c.push(t);else{var n=t[e].filter((function(e){return f(r,h(e))}));n.length&&c.push(p(p({},t),{},a({},e,n)))}else f(r,h(t))&&c.push(t)})),c}),[t,o,i,r,n])}(e.useMemo((function(){if("tags"!==i)return ne;var e=f(ne);return f(ue).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ee.has(e)})(n)||e.push(pe(n,t.label))})),e}),[pe,ne,ee,ue,i]),Y,$,X,E),ge=e.useMemo((function(){return"tags"!==i||!$||me.some((function(e){return e[E||"value"]===$}))||me.some((function(e){return e[Y.value]===$}))?me:[pe($)].concat(f(me))}),[pe,E,i,me,$,Y]),ve=e.useMemo((function(){return _?f(ge).sort((function(e,t){return _(e,t,{searchValue:$})})):ge}),[ge,_,$]),ye=e.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=YL(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var a=t[s];o.push({key:KL(t,o.length),groupOption:n,data:t,label:t[i],value:a})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:KL(t,o.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),o}(ve,{fieldNames:Y,childrenAsData:K})}),[ve,Y,K]),be=function(e){var t=re(e);if(ie(t),W&&(t.length!==ue.length||t.some((function(e,t){var n;return(null===(n=ue[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=H?t:t.map((function(e){return e.value})),r=t.map((function(e){return ZL(de(e.value))}));W(q?n:n[0],q?r:r[0])}},we=u(e.useState(null),2),xe=we[0],Se=we[1],Ce=u(e.useState(0),2),_e=Ce[0],Ee=Ce[1],ke=void 0!==T?T:"combobox"!==i,Pe=e.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Ee(t),c&&"combobox"===i&&null!==e&&"keyboard"===r&&Se(String(e))}),[c,i]),Ae=function(e,t,n){var r=function(){var t,n=de(e);return[H?{label:null===n||void 0===n?void 0:n[Y.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,ZL(n)]};if(t&&b){var o=u(r(),2),a=o[0],i=o[1];b(a,i)}else if(!t&&w&&"clear"!==n){var s=u(r(),2),l=s[0],c=s[1];w(l,c)}},Oe=HB((function(e,t){var n,r=!q||t.selected;n=r?q?[].concat(f(ue),[e]):[e]:ue.filter((function(t){return t.value!==e})),be(n),Ae(e,r),"combobox"===i?Se(""):tB&&!y||(Q(""),Se(""))})),Te=e.useMemo((function(){var e=!1!==I&&!1!==S;return p(p({},J),{},{flattenOptions:ye,onActiveValue:Pe,defaultActiveFirstOption:ke,onSelect:Oe,menuItemSelectedIcon:M,rawValues:he,fieldNames:Y,virtual:e,direction:R,listHeight:N,listItemHeight:D,childrenAsData:K,maxCount:G,optionRender:A})}),[G,J,ye,Pe,ke,Oe,M,he,Y,I,S,R,N,D,K,A]);return e.createElement($L.Provider,{value:Te},e.createElement(rB,Ge({},V,{id:U,prefixCls:l,ref:n,omitDomProps:GB,mode:i,displayValues:fe,onDisplayValuesChange:function(e,t){be(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ae(e.value,!1,n)}))},direction:R,searchValue:$,onSearch:function(e,t){if(Q(e),Se(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&be(e),null===g||void 0===g||g(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(f(he),[n])));be(r),Ae(n,!0),Q("")}}},autoClearSearchValue:y,onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=te.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(f(he),f(t))));be(n),n.forEach((function(e){Ae(e,!0)}))},dropdownMatchSelectWidth:S,OptionList:IB,emptyOptions:!ye.length,activeValue:xe,activeDescendantId:"".concat(U,"_list_").concat(_e)})))}));var UB=VB;UB.Option=sB,UB.OptGroup=aB;const qB=UB;function KB(t){return n=>e.createElement(rs,{theme:{token:{motion:!1,zIndexPopupBase:0}}},e.createElement(t,Object.assign({},n)))}const XB=(t,n,r,o)=>KB((a=>{const{prefixCls:i,style:s}=a,l=e.useRef(null),[c,u]=e.useState(0),[d,f]=e.useState(0),[h,p]=Oa(!1,{value:a.open}),{getPrefixCls:m}=e.useContext(vo),g=m(n||"select",i);e.useEffect((()=>{if(p(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)})),t=setInterval((()=>{var n;const o=r?".".concat(r(g)):".".concat(g,"-dropdown"),a=null===(n=l.current)||void 0===n?void 0:n.querySelector(o);a&&(clearInterval(t),e.observe(a))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});o&&(v=o(v));const y={paddingBottom:c,position:"relative",minWidth:d};return e.createElement("div",{ref:l,style:y},e.createElement(t,Object.assign({},v)))}));function YB(e,t,n){return $o()({["".concat(e,"-status-success")]:"success"===t,["".concat(e,"-status-warning")]:"warning"===t,["".concat(e,"-status-error")]:"error"===t,["".concat(e,"-status-validating")]:"validating"===t,["".concat(e,"-has-feedback")]:n})}const ZB=(e,t)=>t||e,$B=(t,n)=>{const r=e.useContext(Wn),o=e.useMemo((()=>{var e;const o=n||Dn[t],a=null!==(e=null===r||void 0===r?void 0:r[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"===typeof o?o():o),a||{})}),[t,n,r]);return[o,e.useMemo((()=>{const e=null===r||void 0===r?void 0:r.locale;return(null===r||void 0===r?void 0:r.exist)&&!e?Dn.locale:e}),[r])]};const QB=()=>{const[,t]=ji(),n=new Jr(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,"empty image"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const JB=()=>{const[,t]=ji(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=t,{borderColor:i,shadowColor:s,contentColor:l}=(0,e.useMemo)((()=>({borderColor:new Jr(n).onBackground(a).toHexShortString(),shadowColor:new Jr(r).onBackground(a).toHexShortString(),contentColor:new Jr(o).onBackground(a).toHexShortString()})),[n,r,o,a]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,"Simple Empty"),e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:i},e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},ez=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}},tz=Sl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=hl(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[ez(o)]}));var nz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rz=e.createElement(QB,null),oz=e.createElement(JB,null),az=t=>{var{className:n,rootClassName:r,prefixCls:o,image:a=rz,description:i,children:s,imageStyle:l,style:c}=t,u=nz(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:h}=e.useContext(vo),p=d("empty",o),[m,g,v]=tz(p),[y]=$B("Empty"),b="undefined"!==typeof i?i:null===y||void 0===y?void 0:y.description,w="string"===typeof b?b:"empty";let x=null;return x="string"===typeof a?e.createElement("img",{alt:w,src:a}):a,m(e.createElement("div",Object.assign({className:$o()(g,v,p,null===h||void 0===h?void 0:h.className,{["".concat(p,"-normal")]:a===oz,["".concat(p,"-rtl")]:"rtl"===f},n,r),style:Object.assign(Object.assign({},null===h||void 0===h?void 0:h.style),c)},u),e.createElement("div",{className:"".concat(p,"-image"),style:l},x),b&&e.createElement("div",{className:"".concat(p,"-description")},b),s&&e.createElement("div",{className:"".concat(p,"-footer")},s)))};az.PRESENTED_IMAGE_DEFAULT=rz,az.PRESENTED_IMAGE_SIMPLE=oz;const iz=az,sz=t=>{const{componentName:n}=t,{getPrefixCls:r}=(0,e.useContext)(vo),o=r("empty");switch(n){case"Table":case"List":return e.createElement(iz,{image:iz.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return e.createElement(iz,{image:iz.PRESENTED_IMAGE_SIMPLE,className:"".concat(o,"-small")});default:return e.createElement(iz,null)}},lz=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,a;const{variant:i,[t]:s}=(0,e.useContext)(vo),l=(0,e.useContext)(mF),c=null===s||void 0===s?void 0:s.variant;let u;u="undefined"!==typeof n?n:!1===r?"borderless":null!==(a=null!==(o=null!==l&&void 0!==l?l:c)&&void 0!==o?o:i)&&void 0!==a?a:"outlined";return[u,go.includes(u)]};const cz=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)};function uz(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>"&:".concat(e," ").concat(i))).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(i)]:{zIndex:0}})}}function dz(e,t,n){const{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function fz(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},uz(e,r,t)),dz(n,r,t))}}const hz=new Yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pz=new Yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),mz=new Yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gz=new Yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),vz=new Yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yz=new Yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bz={"move-up":{inKeyframes:new Yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:hz,outKeyframes:pz},"move-left":{inKeyframes:mz,outKeyframes:gz},"move-right":{inKeyframes:vz,outKeyframes:yz}},wz=(e,t)=>{const{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:o,outKeyframes:a}=bz[t];return[zF(r,o,a,e.motionDurationMid),{["\n        ".concat(r,"-enter,\n        ").concat(r,"-appear\n      ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xz=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Sz=e=>{const{antCls:t,componentCls:n}=e,r="".concat(n,"-item"),o="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),a="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),i="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),s="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},zi(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,["\n          ".concat(o).concat(s,"bottomLeft,\n          ").concat(a).concat(s,"bottomLeft\n        ")]:{animationName:mN},["\n          ".concat(o).concat(s,"topLeft,\n          ").concat(a).concat(s,"topLeft,\n          ").concat(o).concat(s,"topRight,\n          ").concat(a).concat(s,"topRight\n        ")]:{animationName:vN},["".concat(i).concat(s,"bottomLeft")]:{animationName:gN},["\n          ".concat(i).concat(s,"topLeft,\n          ").concat(i).concat(s,"topRight\n        ")]:{animationName:yN},"&-hidden":{display:"none"},["".concat(r)]:Object.assign(Object.assign({},xz(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Bi),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(r,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(r,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(r,"-option-state")]:{color:e.colorPrimary},["&:has(+ ".concat(r,"-option-selected:not(").concat(r,"-option-disabled))")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(r,"-option-selected:not(").concat(r,"-option-disabled)")]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{["&".concat(r,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},xz(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},_N(e,"slide-up"),_N(e,"slide-down"),wz(e,"move-up"),wz(e,"move-down")]},Cz=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{["".concat(t,"-selection-overflow")]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},["".concat(t,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:"font-size ".concat(o,", line-height ").concat(o,", height ").concat(o),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),["".concat(t,"-disabled&")]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(n)]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},_z=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o="".concat(n,"-selection-overflow"),a=e.multipleSelectItemHeight,i=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),s=t?"".concat(n,"-").concat(t):"",l=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(o).equal(),0),itemHeight:xe(t),itemLineHeight:xe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{["".concat(n,"-multiple").concat(s)]:Object.assign(Object.assign({},Cz(e)),{["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat(xe(r)," 0"),lineHeight:xe(a),visibility:"hidden",content:'"\\a0"'}},["".concat(n,"-selection-item")]:{height:l.itemHeight,lineHeight:xe(l.itemLineHeight)},["".concat(o,"-item + ").concat(o,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(o,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n          &-input,\n          &-mirror\n        ":{height:a,fontFamily:e.fontFamily,lineHeight:xe(a),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}})}};function Ez(e,t){const{componentCls:n}=e,r=t?"".concat(n,"-").concat(t):"",o={["".concat(n,"-multiple").concat(r)]:{fontSize:e.fontSize,["".concat(n,"-selector")]:{["".concat(n,"-show-search&")]:{cursor:"text"}},["\n        &".concat(n,"-show-arrow ").concat(n,"-selector,\n        &").concat(n,"-allow-clear ").concat(n,"-selector\n      ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[_z(e,t),o]}const kz=e=>{const{componentCls:t}=e,n=hl(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=hl(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ez(e),Ez(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},Ez(r,"lg")]};function Pz(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(i)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},zi(e,!0)),{display:"flex",borderRadius:o,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n          ".concat(n,"-selection-item,\n          ").concat(n,"-selection-placeholder\n        ")]:{padding:0,lineHeight:xe(a),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n        &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n        &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n      ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat(xe(r)),["".concat(n,"-selection-search-input")]:{height:a},"&:after":{lineHeight:xe(a)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat(xe(r)),"&:after":{display:"none"}}}}}}}function Az(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Pz(e),Pz(hl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat(xe(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n            &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n            &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n          ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Pz(hl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Oz=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat(xe(o)," ").concat(t.activeShadowColor),outline:0}}}},Tz=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},Oz(e,t))}),Mz=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Oz(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Tz(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Tz(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}),Iz=(e,t)=>{const{componentCls:n,antCls:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(r,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Rz=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},Iz(e,t))}),Fz=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Iz(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),Rz(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Rz(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}),Nz=e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",borderColor:"transparent"},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)},["&".concat(e.componentCls,"-status-error")]:{["".concat(e.componentCls,"-selection-item")]:{color:e.colorError}},["&".concat(e.componentCls,"-status-warning")]:{["".concat(e.componentCls,"-selection-item")]:{color:e.colorWarning}}}}),jz=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Mz(e)),Fz(e)),Nz(e))}),Dz=e=>{const{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Lz=e=>{const{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Bz=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},zi(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},Dz(e)),Lz(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Bi),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},Bi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[o]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{["".concat(n,"-clear")]:{opacity:1},["".concat(n,"-arrow:not(:last-child)")]:{opacity:0}}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},zz=e=>{const{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},Bz(e),Az(e),kz(e),Sz(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},fz(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]},Hz=Sl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=hl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[zz(r),jz(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:v}=e,y=2*s,b=2*r,w=Math.min(o-y,o-b),x=Math.min(a-y,a-b),S=Math.min(i-y,i-b);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:h,optionPadding:"".concat((o-t*n)/2,"px ").concat(l,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:p,clearBg:p,singleItemHeightLG:i,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:x,multipleItemHeightLG:S,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var Gz=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Wz}))};const Vz=e.forwardRef(Gz);const Uz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var qz=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Uz}))};const Kz=e.forwardRef(qz);var Xz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Yz="SECRET_COMBOBOX_MODE_DO_NOT_USE",Zz=(t,n)=>{var r;const{prefixCls:o,bordered:a,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:h,size:p,disabled:m,notFoundContent:g,status:v,builtinPlacements:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:w,direction:x,style:S,allowClear:C,variant:_,dropdownStyle:E,transitionName:k,tagRender:P,maxCount:A}=t,O=Xz(t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:T,getPrefixCls:M,renderEmpty:I,direction:R,virtual:F,popupMatchSelectWidth:N,popupOverflow:j,select:D}=e.useContext(vo),[,L]=ji(),B=null!==h&&void 0!==h?h:null===L||void 0===L?void 0:L.controlHeight,z=M("select",o),H=M(),W=null!==x&&void 0!==x?x:R,{compactSize:G,compactItemClassnames:V}=CF(z,W),[U,q]=lz("select",_,a),K=wf(z),[X,Y,Z]=Hz(z,K),$=e.useMemo((()=>{const{mode:e}=t;if("combobox"!==e)return e===Yz?"combobox":e}),[t.mode]),Q="multiple"===$||"tags"===$,J=function(e,t){return void 0!==t?t:null!==e}(t.suffixIcon,t.showArrow),ee=null!==(r=null!==w&&void 0!==w?w:b)&&void 0!==r?r:N,{status:te,hasFeedback:ne,isFormItemInput:re,feedbackIcon:oe}=e.useContext(hF),ae=ZB(te,v);let ie;ie=void 0!==g?g:"combobox"===$?null:(null===I||void 0===I?void 0:I("Select"))||e.createElement(sz,{componentName:"Select"});const{suffixIcon:se,itemIcon:le,removeIcon:ce,clearIcon:ue}=function(t){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:h}=t;const p=null!==r&&void 0!==r?r:e.createElement(Nu,null),m=t=>null!==n||l||f?e.createElement(e.Fragment,null,!1!==u&&t,l&&d):null;let g=null;if(void 0!==n)g=m(n);else if(i)g=m(e.createElement(Ku,{spin:!0}));else{const t="".concat(c,"-suffix");g=n=>{let{open:r,showSearch:o}=n;return m(r&&o?e.createElement(YN,{className:t}):e.createElement(Kz,{className:t}))}}let v=null;v=void 0!==o?o:s?e.createElement(Vz,null):null;let y=null;return y=void 0!==a?a:e.createElement(Lu,null),{clearIcon:p,suffixIcon:g,itemIcon:v,removeIcon:y}}(Object.assign(Object.assign({},O),{multiple:Q,hasFeedback:ne,feedbackIcon:oe,showSuffixIcon:J,prefixCls:z,componentName:"Select"})),de=!0===C?{clearIcon:ue}:C,fe=is(O,["suffixIcon","itemIcon"]),he=$o()(c||u,{["".concat(z,"-dropdown-").concat(W)]:"rtl"===W},s,Z,K,Y),pe=gF((e=>{var t;return null!==(t=null!==p&&void 0!==p?p:G)&&void 0!==t?t:e})),me=e.useContext(Fo),ge=null!==m&&void 0!==m?m:me,ve=$o()({["".concat(z,"-lg")]:"large"===pe,["".concat(z,"-sm")]:"small"===pe,["".concat(z,"-rtl")]:"rtl"===W,["".concat(z,"-").concat(U)]:q,["".concat(z,"-in-form-item")]:re},YB(z,ae,ne),V,null===D||void 0===D?void 0:D.className,i,s,Z,K,Y),ye=e.useMemo((()=>void 0!==f?f:"rtl"===W?"bottomRight":"bottomLeft"),[f,W]);const[be]=Ef("SelectLike",null===E||void 0===E?void 0:E.zIndex);return X(e.createElement(qB,Object.assign({ref:n,virtual:F,showSearch:null===D||void 0===D?void 0:D.showSearch},fe,{style:Object.assign(Object.assign({},null===D||void 0===D?void 0:D.style),S),dropdownMatchSelectWidth:ee,transitionName:hI(H,"slide-up",k),builtinPlacements:cz(y,j),listHeight:d,listItemHeight:B,mode:$,prefixCls:z,placement:ye,direction:W,suffixIcon:se,menuItemSelectedIcon:le,removeIcon:ce,allowClear:de,notFoundContent:ie,className:ve,getPopupContainer:l||T,dropdownClassName:he,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:be}),maxCount:Q?A:void 0,tagRender:Q?P:void 0})))};const $z=e.forwardRef(Zz),Qz=XB($z);$z.SECRET_COMBOBOX_MODE_DO_NOT_USE=Yz,$z.Option=sB,$z.OptGroup=aB,$z._InternalPanelDoNotUseOrYouWillBeFired=Qz;const Jz=$z;function eH(e){return hl(e,{inputAffixPadding:e.paddingXXS})}const tH=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:p,hoverBorderColor:h,activeShadow:"0 0 0 ".concat(m,"px ").concat(g),errorActiveShadow:"0 0 0 ".concat(m,"px ").concat(v),warningActiveShadow:"0 0 0 ".concat(m,"px ").concat(y),hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},nH=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),rH=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},nH(hl(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),oH=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),aH=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},oH(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}}),["&".concat(e.componentCls,"-status-").concat(t.status).concat(e.componentCls,"-disabled")]:{borderColor:t.borderColor}}),iH=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oH(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},rH(e))}),aH(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),aH(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),sH=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lH=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.addonBg,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},sH(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),sH(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group-addon")]:Object.assign({},rH(e))}})}),cH=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&".concat(n,"-disabled, &[disabled]")]:{color:e.colorTextDisabled},["&".concat(n,"-status-error")]:{"&, & input, & textarea":{color:e.colorError}},["&".concat(n,"-status-warning")]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},uH=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null===t||void 0===t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),dH=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},uH(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),fH=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uH(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},rH(e))}),dH(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),dH(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),hH=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{background:t.addonBg,color:t.addonColor}}}),pH=e=>({"&-filled":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary},["".concat(e.componentCls,"-filled:not(:focus):not(:focus-within)")]:{"&:not(:first-child)":{borderInlineStart:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},"&:not(:last-child)":{borderInlineEnd:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}}},hH(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),hH(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:last-child":{borderInlineEnd:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)}}}})}),mH=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),gH=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:"".concat(xe(t)," ").concat(xe(o)),fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vH=e=>({padding:"".concat(xe(e.paddingBlockSM)," ").concat(xe(e.paddingInlineSM)),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),yH=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:"".concat(xe(e.paddingBlock)," ").concat(xe(e.paddingInline)),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationMid)},mH(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all ".concat(e.motionDurationSlow,", height 0s"),resize:"vertical"},"&-lg":Object.assign({},gH(e)),"&-sm":Object.assign({},vH(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),bH=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg ".concat(t,", &-lg > ").concat(t,"-group-addon")]:Object.assign({},gH(e)),["&-sm ".concat(t,", &-sm > ").concat(t,"-group-addon")]:Object.assign({},vH(e)),["&-lg ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightLG},["&-sm ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightSM},["> ".concat(t)]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},["".concat(t,"-group")]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:"0 ".concat(xe(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1,["".concat(n,"-select")]:{margin:"".concat(xe(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat(xe(e.calc(e.paddingInline).mul(-1).equal())),["&".concat(n,"-select-single:not(").concat(n,"-select-customize-input):not(").concat(n,"-pagination-size-changer)")]:{["".concat(n,"-select-selector")]:{backgroundColor:"inherit",border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"}},"&-open, &-focused":{["".concat(n,"-select-selector")]:{color:e.colorPrimary}}},["".concat(n,"-cascader-picker")]:{margin:"-9px ".concat(xe(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent",["".concat(n,"-cascader-input")]:{textAlign:"start",border:0,boxShadow:"none"}}}},["".concat(t)]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,["".concat(t,"-search-with-button &")]:{zIndex:0}}},["> ".concat(t,":first-child, ").concat(t,"-group-addon:first-child")]:{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,"-affix-wrapper")]:{["&:not(:first-child) ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,":last-child, ").concat(t,"-group-addon:last-child")]:{borderStartStartRadius:0,borderEndStartRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["".concat(t,"-affix-wrapper")]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(t,"-search &")]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},["&:not(:first-child), ".concat(t,"-search &:not(:first-child)")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&".concat(t,"-group-compact")]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{["".concat(t,"-group-addon, ").concat(t,"-group-wrap, > ").concat(t)]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},["\n        & > ".concat(t,"-affix-wrapper,\n        & > ").concat(t,"-number-affix-wrapper,\n        & > ").concat(n,"-picker-range\n      ")]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},["".concat(t)]:{float:"none"},["& > ".concat(n,"-select > ").concat(n,"-select-selector,\n      & > ").concat(n,"-select-auto-complete ").concat(t,",\n      & > ").concat(n,"-cascader-picker ").concat(t,",\n      & > ").concat(t,"-group-wrapper ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},["& > ".concat(n,"-select-focused")]:{zIndex:1},["& > ".concat(n,"-select > ").concat(n,"-select-arrow")]:{zIndex:1},["& > *:first-child,\n      & > ".concat(n,"-select:first-child > ").concat(n,"-select-selector,\n      & > ").concat(n,"-select-auto-complete:first-child ").concat(t,",\n      & > ").concat(n,"-cascader-picker:first-child ").concat(t)]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},["& > *:last-child,\n      & > ".concat(n,"-select:last-child > ").concat(n,"-select-selector,\n      & > ").concat(n,"-cascader-picker:last-child ").concat(t,",\n      & > ").concat(n,"-cascader-picker-focused:last-child ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},["& > ".concat(n,"-select-auto-complete ").concat(t)]:{verticalAlign:"top"},["".concat(t,"-group-wrapper + ").concat(t,"-group-wrapper")]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),["".concat(t,"-affix-wrapper")]:{borderRadius:0}},["".concat(t,"-group-wrapper:not(:last-child)")]:{["&".concat(t,"-search > ").concat(t,"-group")]:{["& > ".concat(t,"-group-addon > ").concat(t,"-search-button")]:{borderRadius:0},["& > ".concat(t)]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},wH=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),yH(e)),iH(e)),fH(e)),cH(e)),{'&[type="color"]':{height:e.controlHeight,["&".concat(t,"-lg")]:{height:e.controlHeightLG},["&".concat(t,"-sm")]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},xH=e=>{const{componentCls:t}=e;return{["".concat(t,"-clear-icon")]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat(xe(e.inputAffixPadding))}}}},SH=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign(Object.assign(Object.assign({},yH(e)),{display:"inline-flex",["&:not(".concat(t,"-disabled):hover")]:{zIndex:1,["".concat(t,"-search-with-button &")]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input".concat(t)]:{padding:0},["> input".concat(t,", > textarea").concat(t)]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t)]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),xH(e)),{["".concat(s).concat(t,"-password-icon")]:{color:a,cursor:"pointer",transition:"all ".concat(o),"&:hover":{color:i}}})}},CH=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{["".concat(t,"-group")]:Object.assign(Object.assign(Object.assign({},zi(e)),bH(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:r}}},lH(e)),pH(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,"-affix-wrapper")]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},_H=e=>{const{componentCls:t,antCls:n}=e,r="".concat(t,"-search");return{[r]:{["".concat(t)]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,["+ ".concat(t,"-group-addon ").concat(r,"-button:not(").concat(n,"-btn-primary)")]:{borderInlineStartColor:e.colorPrimaryHover}}},["".concat(t,"-affix-wrapper")]:{borderRadius:0},["".concat(t,"-lg")]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},["> ".concat(t,"-group")]:{["> ".concat(t,"-group-addon:last-child")]:{insetInlineStart:-1,padding:0,border:0,["".concat(r,"-button")]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},["".concat(r,"-button:not(").concat(n,"-btn-primary)")]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},["&".concat(n,"-btn-loading::before")]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},["".concat(r,"-button")]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},["&-large ".concat(r,"-button")]:{height:e.controlHeightLG},["&-small ".concat(r,"-button")]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},["&".concat(t,"-compact-item")]:{["&:not(".concat(t,"-compact-last-item)")]:{["".concat(t,"-group-addon")]:{["".concat(t,"-search-button")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not(".concat(t,"-compact-first-item)")]:{["".concat(t,",").concat(t,"-affix-wrapper")]:{borderRadius:0}},["> ".concat(t,"-group-addon ").concat(t,"-search-button,\n        > ").concat(t,",\n        ").concat(t,"-affix-wrapper")]:{"&:hover, &:focus, &:active":{zIndex:2}},["> ".concat(t,"-affix-wrapper-focused")]:{zIndex:2}}}}},EH=e=>{const{componentCls:t,paddingLG:n}=e,r="".concat(t,"-textarea");return{[r]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(t,"-data-count")]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},["\n        &-allow-clear > ".concat(t,",\n        &-affix-wrapper").concat(r,"-has-feedback ").concat(t,"\n      ")]:{paddingInlineEnd:n},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},["".concat(r,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},["&-affix-wrapper".concat(t,"-affix-wrapper-sm")]:{["".concat(t,"-suffix")]:{["".concat(t,"-clear-icon")]:{insetInlineEnd:e.paddingInlineSM}}}}}},kH=e=>{const{componentCls:t}=e;return{["".concat(t,"-out-of-range")]:{["&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count")]:{color:e.colorError}}}},PH=Sl("Input",(e=>{const t=hl(e,eH(e));return[wH(t),EH(t),SH(t),CH(t),_H(t),kH(t),fz(t)]}),tH,{resetFont:!1}),AH=t=>{const{getPrefixCls:n,direction:r}=(0,e.useContext)(vo),{prefixCls:o,className:a}=t,i=n("input-group",o),s=n("input"),[l,c]=PH(s),u=$o()(i,{["".concat(i,"-lg")]:"large"===t.size,["".concat(i,"-sm")]:"small"===t.size,["".concat(i,"-compact")]:t.compact,["".concat(i,"-rtl")]:"rtl"===r},c,a),d=(0,e.useContext)(hF),f=(0,e.useMemo)((()=>Object.assign(Object.assign({},d),{isFormItemInput:!1})),[d]);return l(e.createElement("span",{className:u,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(hF.Provider,{value:f},t.children)))};function OH(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"===typeof t.selectionStart&&"number"===typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function TH(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=OH(t,e,r)):n(o=OH(t,e,""))}}function MH(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var IH=e.forwardRef((function(t,n){var o,i,s=t.inputElement,l=t.children,c=t.prefixCls,u=t.prefix,d=t.suffix,f=t.addonBefore,h=t.addonAfter,m=t.className,g=t.style,v=t.disabled,y=t.readOnly,b=t.focused,w=t.triggerFocus,x=t.allowClear,S=t.value,C=t.handleReset,_=t.hidden,E=t.classes,k=t.classNames,P=t.dataAttrs,A=t.styles,O=t.components,T=null!==l&&void 0!==l?l:s,M=(null===O||void 0===O?void 0:O.affixWrapper)||"span",I=(null===O||void 0===O?void 0:O.groupWrapper)||"span",R=(null===O||void 0===O?void 0:O.wrapper)||"span",F=(null===O||void 0===O?void 0:O.groupAddon)||"span",N=(0,e.useRef)(null),j=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(t),D=(0,e.cloneElement)(T,{value:S,className:$o()(T.props.className,!j&&(null===k||void 0===k?void 0:k.variant))||null}),L=(0,e.useRef)(null);if(e.useImperativeHandle(n,(function(){return{nativeElement:L.current||N.current}})),j){var B,z=null;if(x){var H,W=!v&&!y&&S,G="".concat(c,"-clear-icon"),V="object"===r(x)&&null!==x&&void 0!==x&&x.clearIcon?x.clearIcon:"\u2716";z=e.createElement("span",{onClick:C,onMouseDown:function(e){return e.preventDefault()},className:$o()(G,(H={},a(H,"".concat(G,"-hidden"),!W),a(H,"".concat(G,"-has-suffix"),!!d),H)),role:"button",tabIndex:-1},V)}var U="".concat(c,"-affix-wrapper"),q=$o()(U,(a(B={},"".concat(c,"-disabled"),v),a(B,"".concat(U,"-disabled"),v),a(B,"".concat(U,"-focused"),b),a(B,"".concat(U,"-readonly"),y),a(B,"".concat(U,"-input-with-clear-btn"),d&&x&&S),B),null===E||void 0===E?void 0:E.affixWrapper,null===k||void 0===k?void 0:k.affixWrapper,null===k||void 0===k?void 0:k.variant),K=(d||x)&&e.createElement("span",{className:$o()("".concat(c,"-suffix"),null===k||void 0===k?void 0:k.suffix),style:null===A||void 0===A?void 0:A.suffix},z,d);D=e.createElement(M,Ge({className:q,style:null===A||void 0===A?void 0:A.affixWrapper,onClick:function(e){var t;null!==(t=N.current)&&void 0!==t&&t.contains(e.target)&&(null===w||void 0===w||w())}},null===P||void 0===P?void 0:P.affixWrapper,{ref:N}),u&&e.createElement("span",{className:$o()("".concat(c,"-prefix"),null===k||void 0===k?void 0:k.prefix),style:null===A||void 0===A?void 0:A.prefix},u),D,K)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(t)){var X="".concat(c,"-group"),Y="".concat(X,"-addon"),Z="".concat(X,"-wrapper"),$=$o()("".concat(c,"-wrapper"),X,null===E||void 0===E?void 0:E.wrapper,null===k||void 0===k?void 0:k.wrapper),Q=$o()(Z,a({},"".concat(Z,"-disabled"),v),null===E||void 0===E?void 0:E.group,null===k||void 0===k?void 0:k.groupWrapper);D=e.createElement(I,{className:Q,ref:L},e.createElement(R,{className:$},f&&e.createElement(F,{className:Y},f),D,h&&e.createElement(F,{className:Y},h)))}return e.cloneElement(D,{className:$o()(null===(o=D.props)||void 0===o?void 0:o.className,m)||null,style:p(p({},null===(i=D.props)||void 0===i?void 0:i.style),g),hidden:_})}));const RH=IH;var FH=["show"];function NH(t,n){return e.useMemo((function(){var e={};n&&(e.show="object"===r(n)&&n.formatter?n.formatter:!!n);var o=e=p(p({},e),t),a=o.show,i=us(o,FH);return p(p({},i),{},{show:!!a,showFormatter:"function"===typeof a?a:void 0,strategy:i.strategy||function(e){return e.length}})}),[t,n])}var jH=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],DH=(0,e.forwardRef)((function(t,n){var r=t.autoComplete,o=t.onChange,i=t.onFocus,s=t.onBlur,l=t.onPressEnter,c=t.onKeyDown,d=t.prefixCls,h=void 0===d?"rc-input":d,m=t.disabled,g=t.htmlSize,v=t.className,y=t.maxLength,b=t.suffix,w=t.showCount,x=t.count,S=t.type,C=void 0===S?"text":S,_=t.classes,E=t.classNames,k=t.styles,P=t.onCompositionStart,A=t.onCompositionEnd,O=us(t,jH),T=u((0,e.useState)(!1),2),M=T[0],I=T[1],R=(0,e.useRef)(!1),F=(0,e.useRef)(null),N=(0,e.useRef)(null),j=function(e){F.current&&MH(F.current,e)},D=u(YO(t.defaultValue,{value:t.value}),2),L=D[0],B=D[1],z=void 0===L||null===L?"":String(L),H=u((0,e.useState)(null),2),W=H[0],G=H[1],V=NH(x,w),U=V.max||y,q=V.strategy(z),K=!!U&&q>U;(0,e.useImperativeHandle)(n,(function(){var e;return{focus:j,blur:function(){var e;null===(e=F.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=F.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=F.current)||void 0===e||e.select()},input:F.current,nativeElement:(null===(e=N.current)||void 0===e?void 0:e.nativeElement)||F.current}})),(0,e.useEffect)((function(){I((function(e){return(!e||!m)&&e}))}),[m]);var X=function(e,t,n){var r,a,i=t;if(!R.current&&V.exceedFormatter&&V.max&&V.strategy(t)>V.max)t!==(i=V.exceedFormatter(t,{max:V.max}))&&G([(null===(r=F.current)||void 0===r?void 0:r.selectionStart)||0,(null===(a=F.current)||void 0===a?void 0:a.selectionEnd)||0]);else if("compositionEnd"===n.source)return;B(i),F.current&&TH(F.current,e,o,i)};(0,e.useEffect)((function(){var e;W&&(null===(e=F.current)||void 0===e||e.setSelectionRange.apply(e,f(W)))}),[W]);var Y=function(e){X(e,e.target.value,{source:"change"})},Z=function(e){R.current=!1,X(e,e.currentTarget.value,{source:"compositionEnd"}),null===A||void 0===A||A(e)},$=function(e){l&&"Enter"===e.key&&l(e),null===c||void 0===c||c(e)},Q=function(e){I(!0),null===i||void 0===i||i(e)},J=function(e){I(!1),null===s||void 0===s||s(e)},ee=K&&"".concat(h,"-out-of-range");return e.createElement(RH,Ge({},O,{prefixCls:h,className:$o()(v,ee),handleReset:function(e){B(""),j(),F.current&&TH(F.current,e,o)},value:z,focused:M,triggerFocus:j,suffix:function(){var t=Number(U)>0;if(b||V.show){var n=V.showFormatter?V.showFormatter({value:z,count:q,maxLength:U}):"".concat(q).concat(t?" / ".concat(U):"");return e.createElement(e.Fragment,null,V.show&&e.createElement("span",{className:$o()("".concat(h,"-show-count-suffix"),a({},"".concat(h,"-show-count-has-suffix"),!!b),null===E||void 0===E?void 0:E.count),style:p({},null===k||void 0===k?void 0:k.count)},n),b)}return null}(),disabled:m,classes:_,classNames:E,styles:k}),function(){var n=IT(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return e.createElement("input",Ge({autoComplete:r},n,{onChange:Y,onFocus:Q,onBlur:J,onKeyDown:$,className:$o()(h,a({},"".concat(h,"-disabled"),m),null===E||void 0===E?void 0:E.input),style:null===k||void 0===k?void 0:k.input,ref:F,size:g,type:C,onCompositionStart:function(e){R.current=!0,null===P||void 0===P||P(e)},onCompositionEnd:Z}))}())}));const LH=DH,BH=t=>{let n;return"object"===typeof t&&(null===t||void 0===t?void 0:t.clearIcon)?n=t:t&&(n={clearIcon:e.createElement(Nu,null)}),n};function zH(t,n){const r=(0,e.useRef)([]),o=()=>{r.current.push(setTimeout((()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,e.useEffect)((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var HH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const WH=(0,e.forwardRef)(((t,n)=>{var r;const{prefixCls:o,bordered:a=!0,status:i,size:s,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:h,addonBefore:p,className:m,style:g,styles:v,rootClassName:y,onChange:b,classNames:w,variant:x}=t,S=HH(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:C,direction:_,input:E}=e.useContext(vo),k=C("input",o),P=(0,e.useRef)(null),A=wf(k),[O,T,M]=PH(k,A),{compactSize:I,compactItemClassnames:R}=CF(k,_),F=gF((e=>{var t;return null!==(t=null!==s&&void 0!==s?s:I)&&void 0!==t?t:e})),N=e.useContext(Fo),j=null!==l&&void 0!==l?l:N,{status:D,hasFeedback:L,feedbackIcon:B}=(0,e.useContext)(hF),z=ZB(D,i),H=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(t)||!!L;(0,e.useRef)(H);const W=zH(P,!0),G=(L||d)&&e.createElement(e.Fragment,null,d,L&&B),V=BH(null!==f&&void 0!==f?f:null===E||void 0===E?void 0:E.allowClear),[U,q]=lz("input",x,a);return O(e.createElement(LH,Object.assign({ref:oa(n,P),prefixCls:k,autoComplete:null===E||void 0===E?void 0:E.autoComplete},S,{disabled:j,onBlur:e=>{W(),null===c||void 0===c||c(e)},onFocus:e=>{W(),null===u||void 0===u||u(e)},style:Object.assign(Object.assign({},null===E||void 0===E?void 0:E.style),g),styles:Object.assign(Object.assign({},null===E||void 0===E?void 0:E.styles),v),suffix:G,allowClear:V,className:$o()(m,y,M,A,R,null===E||void 0===E?void 0:E.className),onChange:e=>{W(),null===b||void 0===b||b(e)},addonBefore:p&&e.createElement(PF,{form:!0,space:!0},p),addonAfter:h&&e.createElement(PF,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},w),null===E||void 0===E?void 0:E.classNames),{input:$o()({["".concat(k,"-sm")]:"small"===F,["".concat(k,"-lg")]:"large"===F,["".concat(k,"-rtl")]:"rtl"===_},null===w||void 0===w?void 0:w.input,null===(r=null===E||void 0===E?void 0:E.classNames)||void 0===r?void 0:r.input,T),variant:$o()({["".concat(k,"-").concat(U)]:q},YB(k,z)),affixWrapper:$o()({["".concat(k,"-affix-wrapper-sm")]:"small"===F,["".concat(k,"-affix-wrapper-lg")]:"large"===F,["".concat(k,"-affix-wrapper-rtl")]:"rtl"===_},T),wrapper:$o()({["".concat(k,"-group-rtl")]:"rtl"===_},T),groupWrapper:$o()({["".concat(k,"-group-wrapper-sm")]:"small"===F,["".concat(k,"-group-wrapper-lg")]:"large"===F,["".concat(k,"-group-wrapper-rtl")]:"rtl"===_,["".concat(k,"-group-wrapper-").concat(U)]:q},YB("".concat(k,"-group-wrapper"),z,L),T)})})))}));const GH=WH;var VH="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),UH="aria-",qH="data-";function KH(e,t){return 0===e.indexOf(t)}function XH(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:nn({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||KH(n,UH))||t.data&&KH(n,qH)||t.attr&&VH.includes(n))&&(r[n]=e[n])})),r}const YH=e=>{const{componentCls:t,paddingXS:n}=e;return{["".concat(t)]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},["".concat(t,"-input")]:{textAlign:"center",paddingInline:e.paddingXXS},["&".concat(t,"-sm ").concat(t,"-input")]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},["&".concat(t,"-lg ").concat(t,"-input")]:{paddingInline:e.paddingXS}}}},ZH=Sl(["Input","OTP"],(e=>{const t=hl(e,eH(e));return[YH(t)]}),tH);var $H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const QH=e.forwardRef(((t,n)=>{const{value:r,onChange:o,onActiveChange:a,index:i,mask:s}=t,l=$H(t,["value","onChange","onActiveChange","index","mask"]),c=r&&"string"===typeof s?s:r,u=e.useRef(null);e.useImperativeHandle(n,(()=>u.current));const d=()=>{ii((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return e.createElement(GH,Object.assign({},l,{ref:u,value:c,onInput:e=>{o(i,e.target.value)},onFocus:d,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?a(i-1):"ArrowRight"===t&&a(i+1),d()},onKeyUp:e=>{"Backspace"!==e.key||r||a(i-1),d()},onMouseDown:d,onMouseUp:d,type:!0===s?"password":"text"}))})),JH=QH;var eW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function tW(e){return(e||"").split("")}const nW=e.forwardRef(((t,n)=>{const{prefixCls:r,length:o=6,size:a,defaultValue:i,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:h,mask:p}=t,m=eW(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);const{getPrefixCls:g,direction:v}=e.useContext(vo),y=g("otp",r),b=XH(m,{aria:!0,data:!0,attr:!0}),w=wf(y),[x,S,C]=ZH(y,w),_=gF((e=>null!==a&&void 0!==a?a:e)),E=e.useContext(hF),k=ZB(E.status,f),P=e.useMemo((()=>Object.assign(Object.assign({},E),{status:k,hasFeedback:!1,feedbackIcon:null})),[E,k]),A=e.useRef(null),O=e.useRef({});e.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=O.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=O.current[t])||void 0===e||e.blur()},nativeElement:A.current})));const T=e=>c?c(e):e,[M,I]=e.useState(tW(T(i||"")));e.useEffect((()=>{void 0!==s&&I(tW(s))}),[s]);const R=xa((e=>{I(e),l&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>M[t]!==e))&&l(e.join(""))})),F=xa(((e,t)=>{let n=as(M);for(let o=0;o<e;o+=1)n[o]||(n[o]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(tW(t)),n=n.slice(0,o);for(let o=n.length-1;o>=0&&!n[o];o-=1)n.pop();const r=T(n.map((e=>e||" ")).join(""));return n=tW(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),N=(e,t)=>{var n;const r=F(e,t),a=Math.min(e+t.length,o-1);a!==e&&(null===(n=O.current[a])||void 0===n||n.focus()),R(r)},j=e=>{var t;null===(t=O.current[e])||void 0===t||t.focus()},D={variant:u,disabled:d,status:k,mask:p};return x(e.createElement("div",Object.assign({},b,{ref:A,className:$o()(y,{["".concat(y,"-sm")]:"small"===_,["".concat(y,"-lg")]:"large"===_,["".concat(y,"-rtl")]:"rtl"===v},C,S)}),e.createElement(hF.Provider,{value:P},Array.from({length:o}).map(((t,n)=>{const r="otp-".concat(n),o=M[n]||"";return e.createElement(JH,Object.assign({ref:e=>{O.current[n]=e},key:r,index:n,size:_,htmlSize:1,className:"".concat(y,"-input"),onChange:N,value:o,onActiveChange:j,autoFocus:0===n&&h},D))})))))})),rW=nW;const oW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var aW=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:oW}))};const iW=e.forwardRef(aW);const sW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var lW=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:sW}))};const cW=e.forwardRef(lW);var uW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dW=t=>t?e.createElement(cW,null):e.createElement(iW,null),fW={click:"onClick",hover:"onMouseOver"},hW=e.forwardRef(((t,n)=>{const{disabled:r,action:o="click",visibilityToggle:a=!0,iconRender:i=dW}=t,s="object"===typeof a&&void 0!==a.visible,[l,c]=(0,e.useState)((()=>!!s&&a.visible)),u=(0,e.useRef)(null);e.useEffect((()=>{s&&c(a.visible)}),[s,a]);const d=zH(u),f=()=>{r||(l&&d(),c((e=>{var t;const n=!e;return"object"===typeof a&&(null===(t=a.onVisibleChange)||void 0===t||t.call(a,n)),n})))},{className:h,prefixCls:p,inputPrefixCls:m,size:g}=t,v=uW(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:y}=e.useContext(vo),b=y("input",m),w=y("input-password",p),x=a&&(t=>{const n=fW[o]||"",r=i(l),a={[n]:f,className:"".concat(t,"-icon"),key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(r)?r:e.createElement("span",null,r),a)})(w),S=$o()(w,h,{["".concat(w,"-").concat(g)]:!!g}),C=Object.assign(Object.assign({},is(v,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:S,prefixCls:b,suffix:x});return g&&(C.size=g),e.createElement(GH,Object.assign({ref:oa(n,u)},C))}));const pW=hW,mW=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)].join(",")}}}}},gW=wl("Wave",(e=>[mW(e)])),vW="".concat(po,"-wave-target");function yW(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function bW(e){return Number.isNaN(e)?0:e}const wW=t=>{const{className:n,target:r,component:o}=t,a=e.useRef(null),[i,s]=e.useState(null),[l,c]=e.useState([]),[u,d]=e.useState(0),[f,h]=e.useState(0),[p,m]=e.useState(0),[g,v]=e.useState(0),[y,b]=e.useState(!1),w={left:u,top:f,width:p,height:g,borderRadius:l.map((e=>"".concat(e,"px"))).join(" ")};function x(){const e=getComputedStyle(r);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return yW(t)?t:yW(n)?n:yW(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:bW(-parseFloat(n))),h(t?r.offsetTop:bW(-parseFloat(o))),m(r.offsetWidth),v(r.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:i,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([a,i,u,l].map((e=>bW(parseFloat(e)))))}if(i&&(w["--wave-color"]=i),e.useEffect((()=>{if(r){const e=ii((()=>{x(),b(!0)}));let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(r)),()=>{ii.cancel(e),null===t||void 0===t||t.disconnect()}}}),[]),!y)return null;const S=("Checkbox"===o||"Radio"===o)&&(null===r||void 0===r?void 0:r.classList.contains(vW));return e.createElement(Ei,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;Pu(e).then((()=>{null===e||void 0===e||e.remove()}))}return!1}},((t,r)=>{let{className:o}=t;return e.createElement("div",{ref:oa(a,r),className:$o()(n,o,{"wave-quick":S}),style:w})}))},xW=(t,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=t.querySelector("input"))||void 0===r?void 0:r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",null===t||void 0===t||t.insertBefore(a,null===t||void 0===t?void 0:t.firstChild),Cu(e.createElement(wW,Object.assign({},n,{target:t})),a)},SW=(t,n,r)=>{const{wave:o}=e.useContext(vo),[,a,i]=ji(),s=xa((e=>{const s=t.current;if((null===o||void 0===o?void 0:o.disabled)||!s)return;const l=s.querySelector(".".concat(vW))||s,{showEffect:c}=o||{};(c||xW)(l,{className:n,token:a,component:r,event:e,hashId:i})})),l=e.useRef();return e=>{ii.cancel(l.current),l.current=ii((()=>{s(e)}))}};const CW=t=>{const{children:n,disabled:r,component:o}=t,{getPrefixCls:a}=(0,e.useContext)(vo),i=(0,e.useRef)(null),s=a("wave"),[,l]=gW(s),c=SW(i,$o()(s,l),o);if(e.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||c(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!e.isValidElement(n))return null!==n&&void 0!==n?n:null;return vI(n,{ref:aa(n)?oa(n.ref,i):i})};var _W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const EW=e.createContext(void 0),kW=t=>{const{getPrefixCls:n,direction:r}=e.useContext(vo),{prefixCls:o,size:a,className:i}=t,s=_W(t,["prefixCls","size","className"]),l=n("btn-group",o),[,,c]=ji();let u="";switch(a){case"large":u="lg";break;case"small":u="sm"}const d=$o()(l,{["".concat(l,"-").concat(u)]:u,["".concat(l,"-rtl")]:"rtl"===r},i,c);return e.createElement(EW.Provider,{value:a},e.createElement("div",Object.assign({},s,{className:d})))},PW=/^[\u4e00-\u9fa5]{2}$/,AW=PW.test.bind(PW);function OW(e){return"danger"===e?{danger:!0}:{type:e}}function TW(e){return"string"===typeof e}function MW(e){return"text"===e||"link"===e}function IW(t,n){let r=!1;const o=[];return e.Children.forEach(t,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]="".concat(n).concat(e)}else o.push(e);r=n})),e.Children.map(o,(t=>function(t,n){if(null===t||void 0===t)return;const r=n?" ":"";return"string"!==typeof t&&"number"!==typeof t&&TW(t.type)&&AW(t.props.children)?vI(t,{children:t.props.children.split("").join(r)}):TW(t)?AW(t)?e.createElement("span",null,t.split("").join(r)):e.createElement("span",null,t):mI(t)?e.createElement("span",null,t):t}(t,n)))}const RW=(0,e.forwardRef)(((t,n)=>{const{className:r,style:o,children:a,prefixCls:i}=t,s=$o()("".concat(i,"-icon"),r);return e.createElement("span",{ref:n,className:s,style:o},a)})),FW=RW,NW=(0,e.forwardRef)(((t,n)=>{const{prefixCls:r,className:o,style:a,iconClassName:i}=t,s=$o()("".concat(r,"-loading-icon"),o);return e.createElement(FW,{prefixCls:r,className:s,style:a,ref:n},e.createElement(Ku,{className:i}))})),jW=()=>({width:0,opacity:0,transform:"scale(0)"}),DW=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),LW=t=>{const{prefixCls:n,loading:r,existIcon:o,className:a,style:i}=t,s=!!r;return o?e.createElement(NW,{prefixCls:n,className:a,style:i}):e.createElement(Ei,{visible:s,motionName:"".concat(n,"-loading-icon-motion"),motionLeave:s,removeOnLeave:!0,onAppearStart:jW,onAppearActive:DW,onEnterStart:jW,onEnterActive:DW,onLeaveStart:DW,onLeaveActive:jW},((t,r)=>{let{className:o,style:s}=t;return e.createElement(NW,{prefixCls:n,className:a,style:Object.assign(Object.assign({},i),s),ref:r,iconClassName:o})}))},BW=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),zW=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},BW("".concat(t,"-primary"),o),BW("".concat(t,"-danger"),a)]}},HW=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return hl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},WW=e=>{var t,n,r,o,a,i;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:ro(s),d=null!==(a=e.contentLineHeightSM)&&void 0!==a?a:ro(l),f=null!==(i=e.contentLineHeightLG)&&void 0!==i?i:ro(c);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},GW=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Vi(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},VW=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),UW=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),qW=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),KW=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),XW=(e,t,n,r,o,a,i,s)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},VW(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),YW=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},KW(e))}),ZW=e=>Object.assign({},YW(e)),$W=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),QW=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZW(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),VW(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),XW(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},VW(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),XW(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),YW(e))}),JW=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZW(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),VW(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),XW(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},VW(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),XW(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),YW(e))}),eG=e=>Object.assign(Object.assign({},QW(e)),{borderStyle:"dashed"}),tG=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},VW(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$W(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},VW(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$W(e))}),nG=e=>Object.assign(Object.assign(Object.assign({},VW(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$W(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},$W(e)),VW(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),rG=e=>{const{componentCls:t}=e;return{["".concat(t,"-default")]:QW(e),["".concat(t,"-primary")]:JW(e),["".concat(t,"-dashed")]:eG(e),["".concat(t,"-link")]:tG(e),["".concat(t,"-text")]:nG(e),["".concat(t,"-ghost")]:XW(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},oG=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u="".concat(n,"-icon-only");return[{["".concat(t)]:{fontSize:o,lineHeight:a,height:r,padding:"".concat(xe(c)," ").concat(xe(s)),borderRadius:i,["&".concat(u)]:{width:r,paddingInline:0,["&".concat(n,"-compact-item")]:{flex:"none"},["&".concat(n,"-round")]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:UW(e)},{["".concat(n).concat(n,"-round").concat(t)]:qW(e)}]},aG=e=>{const t=hl(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return oG(t,e.componentCls)},iG=e=>{const t=hl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return oG(t,"".concat(e.componentCls,"-sm"))},sG=e=>{const t=hl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return oG(t,"".concat(e.componentCls,"-lg"))},lG=e=>{const{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}},cG=Sl("Button",(e=>{const t=HW(e);return[GW(t),aG(t),iG(t),sG(t),lG(t),rG(t),zW(t)]}),WW,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function uG(e,t){return{["&-item:not(".concat(t,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function dG(e){const t="".concat(e.componentCls,"-compact-vertical");return{[t]:Object.assign(Object.assign({},uG(e,t)),(n=e.componentCls,r=t,{["&-item:not(".concat(r,"-first-item):not(").concat(r,"-last-item)")]:{borderRadius:0},["&-item".concat(r,"-first-item:not(").concat(r,"-last-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(r,"-last-item:not(").concat(r,"-first-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const fG=e=>{const{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat(xe(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat(xe(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},hG=xl(["Button","compact"],(e=>{const t=HW(e);return[fz(t),dG(t),fG(t)]}),WW);var pG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mG=e.forwardRef(((t,n)=>{var r,o,a;const{loading:i=!1,prefixCls:s,type:l,danger:c=!1,shape:u="default",size:d,styles:f,disabled:h,className:p,rootClassName:m,children:g,icon:v,iconPosition:y="start",ghost:b=!1,block:w=!1,htmlType:x="button",classNames:S,style:C={},autoInsertSpace:_}=t,E=pG(t,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),k=l||"default",{getPrefixCls:P,direction:A,button:O}=(0,e.useContext)(vo),T=null===(r=null!==_&&void 0!==_?_:null===O||void 0===O?void 0:O.autoInsertSpace)||void 0===r||r,M=P("btn",s),[I,R,F]=cG(M),N=(0,e.useContext)(Fo),j=null!==h&&void 0!==h?h:N,D=(0,e.useContext)(EW),L=(0,e.useMemo)((()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(i)),[i]),[B,z]=(0,e.useState)(L.loading),[H,W]=(0,e.useState)(!1),G=oa(n,(0,e.createRef)()),V=1===e.Children.count(g)&&!v&&!MW(k);(0,e.useEffect)((()=>{let e=null;return L.delay>0?e=setTimeout((()=>{e=null,z(!0)}),L.delay):z(L.loading),function(){e&&(clearTimeout(e),e=null)}}),[L]),(0,e.useEffect)((()=>{if(!G||!G.current||!T)return;const e=G.current.textContent;V&&AW(e)?H||W(!0):H&&W(!1)}),[G]);const U=e=>{const{onClick:n}=t;B||j?e.preventDefault():null===n||void 0===n||n(e)};const{compactSize:q,compactItemClassnames:K}=CF(M,A),X={large:"lg",small:"sm",middle:void 0},Y=gF((e=>{var t,n;return null!==(n=null!==(t=null!==d&&void 0!==d?d:q)&&void 0!==t?t:D)&&void 0!==n?n:e})),Z=Y&&X[Y]||"",$=B?"loading":v,Q=is(E,["navigate"]),J=$o()(M,R,F,{["".concat(M,"-").concat(u)]:"default"!==u&&u,["".concat(M,"-").concat(k)]:k,["".concat(M,"-").concat(Z)]:Z,["".concat(M,"-icon-only")]:!g&&0!==g&&!!$,["".concat(M,"-background-ghost")]:b&&!MW(k),["".concat(M,"-loading")]:B,["".concat(M,"-two-chinese-chars")]:H&&T&&!B,["".concat(M,"-block")]:w,["".concat(M,"-dangerous")]:c,["".concat(M,"-rtl")]:"rtl"===A,["".concat(M,"-icon-end")]:"end"===y},K,p,m,null===O||void 0===O?void 0:O.className),ee=Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),C),te=$o()(null===S||void 0===S?void 0:S.icon,null===(o=null===O||void 0===O?void 0:O.classNames)||void 0===o?void 0:o.icon),ne=Object.assign(Object.assign({},(null===f||void 0===f?void 0:f.icon)||{}),(null===(a=null===O||void 0===O?void 0:O.styles)||void 0===a?void 0:a.icon)||{}),re=v&&!B?e.createElement(FW,{prefixCls:M,className:te,style:ne},v):e.createElement(LW,{existIcon:!!v,prefixCls:M,loading:B}),oe=g||0===g?IW(g,V&&T):null;if(void 0!==Q.href)return I(e.createElement("a",Object.assign({},Q,{className:$o()(J,{["".concat(M,"-disabled")]:j}),href:j?void 0:Q.href,style:ee,onClick:U,ref:G,tabIndex:j?-1:0}),re,oe));let ae=e.createElement("button",Object.assign({},E,{type:x,className:J,style:ee,onClick:U,disabled:j,ref:G}),re,oe,!!K&&e.createElement(hG,{key:"compact",prefixCls:M}));return MW(k)||(ae=e.createElement(CW,{component:"Button",disabled:B},ae)),I(ae)})),gG=mG;gG.Group=kW,gG.__ANT_BUTTON=!0;const vG=gG;var yG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bG=e.forwardRef(((t,n)=>{const{prefixCls:r,inputPrefixCls:o,className:a,size:i,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:h,onCompositionStart:p,onCompositionEnd:m}=t,g=yG(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=e.useContext(vo),b=e.useRef(!1),w=v("input-search",r),x=v("input",o),{compactSize:S}=CF(w,y),C=gF((e=>{var t;return null!==(t=null!==i&&void 0!==i?i:S)&&void 0!==t?t:e})),_=e.useRef(null),E=e=>{var t;document.activeElement===(null===(t=_.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;f&&f(null===(n=null===(t=_.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},P="boolean"===typeof l?e.createElement(YN,null):null,A="".concat(w,"-button");let O;const T=l||{},M=T.type&&!0===T.type.__ANT_BUTTON;O=M||"button"===T.type?vI(T,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null===T||void 0===T?void 0:T.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},M?{className:A,size:C}:{})):e.createElement(vG,{className:A,type:l?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:E,onClick:k,loading:u,icon:P},l),c&&(O=[O,vI(c,{key:"addonAfter"})]);const I=$o()(w,{["".concat(w,"-rtl")]:"rtl"===y,["".concat(w,"-").concat(C)]:!!C,["".concat(w,"-with-button")]:!!l},a);return e.createElement(GH,Object.assign({ref:oa(_,n),onPressEnter:e=>{b.current||u||k(e)}},g,{size:C,onCompositionStart:e=>{b.current=!0,null===p||void 0===p||p(e)},onCompositionEnd:e=>{b.current=!1,null===m||void 0===m||m(e)},prefixCls:x,addonAfter:O,suffix:s,onChange:e=>{(null===e||void 0===e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null===h||void 0===h||h(e)},className:I,disabled:d}))}));const wG=bG;var xG,SG=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],CG={};function _G(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;xG||((xG=document.createElement("textarea")).setAttribute("tab-index","-1"),xG.setAttribute("aria-hidden","true"),document.body.appendChild(xG)),e.getAttribute("wrap")?xG.setAttribute("wrap",e.getAttribute("wrap")):xG.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&CG[n])return CG[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:SG.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(CG[n]=s),s}(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;xG.setAttribute("style","".concat(l,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n")),xG.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=xG.scrollHeight;if("border-box"===s?f+=i:"content-box"===s&&(f-=a),null!==n||null!==r){xG.value=" ";var h=xG.scrollHeight-a;null!==n&&(u=h*n,"border-box"===s&&(u=u+a+i),f=Math.max(u,f)),null!==r&&(d=h*r,"border-box"===s&&(d=d+a+i),c=f>d?"":"hidden",f=Math.min(d,f))}var p={height:f,overflowY:c,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var EG=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kG=e.forwardRef((function(t,n){var o=t,i=o.prefixCls,s=(o.onPressEnter,o.defaultValue),l=o.value,c=o.autoSize,d=o.onResize,f=o.className,h=o.style,m=o.disabled,g=o.onChange,v=(o.onInternalAutoSize,us(o,EG)),y=u(YO(s,{value:l,postState:function(e){return null!==e&&void 0!==e?e:""}}),2),b=y[0],w=y[1],x=e.useRef();e.useImperativeHandle(n,(function(){return{textArea:x.current}}));var S=u(e.useMemo((function(){return c&&"object"===r(c)?[c.minRows,c.maxRows]:[]}),[c]),2),C=S[0],_=S[1],E=!!c,k=u(e.useState(2),2),P=k[0],A=k[1],O=u(e.useState(),2),T=O[0],M=O[1],I=function(){A(0)};Oe((function(){E&&I()}),[l,C,_,E]),Oe((function(){if(0===P)A(1);else if(1===P){var e=_G(x.current,!1,C,_);A(2),M(e)}else!function(){try{if(document.activeElement===x.current){var e=x.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;x.current.setSelectionRange(t,n),x.current.scrollTop=r}}catch(x7){}}()}),[P]);var R=e.useRef(),F=function(){Fd.cancel(R.current)};e.useEffect((function(){return F}),[]);var N=E?T:null,j=p(p({},h),N);return 0!==P&&1!==P||(j.overflowY="hidden",j.overflowX="hidden"),e.createElement(EO,{onResize:function(e){2===P&&(null===d||void 0===d||d(e),c&&(F(),R.current=Fd((function(){I()}))))},disabled:!(c||d)},e.createElement("textarea",Ge({},v,{ref:x,style:j,className:$o()(i,f,a({},"".concat(i,"-disabled"),m)),disabled:m,value:b,onChange:function(e){w(e.target.value),null===g||void 0===g||g(e)}})))}));const PG=kG;var AG=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],OG=e.forwardRef((function(t,n){var r,o=t.defaultValue,i=t.value,s=t.onFocus,l=t.onBlur,c=t.onChange,d=t.allowClear,h=t.maxLength,m=t.onCompositionStart,g=t.onCompositionEnd,v=t.suffix,y=t.prefixCls,b=void 0===y?"rc-textarea":y,w=t.showCount,x=t.count,S=t.className,C=t.style,_=t.disabled,E=t.hidden,k=t.classNames,P=t.styles,A=t.onResize,O=t.readOnly,T=us(t,AG),M=u(YO(o,{value:i,defaultValue:o}),2),I=M[0],R=M[1],F=void 0===I||null===I?"":String(I),N=u(e.useState(!1),2),j=N[0],D=N[1],L=e.useRef(!1),B=u(e.useState(null),2),z=B[0],H=B[1],W=(0,e.useRef)(null),G=(0,e.useRef)(null),V=function(){var e;return null===(e=G.current)||void 0===e?void 0:e.textArea},U=function(){V().focus()};(0,e.useImperativeHandle)(n,(function(){var e;return{resizableTextArea:G.current,focus:U,blur:function(){V().blur()},nativeElement:(null===(e=W.current)||void 0===e?void 0:e.nativeElement)||V()}})),(0,e.useEffect)((function(){D((function(e){return!_&&e}))}),[_]);var q=u(e.useState(null),2),K=q[0],X=q[1];e.useEffect((function(){var e;K&&(e=V()).setSelectionRange.apply(e,f(K))}),[K]);var Y,Z=NH(x,w),$=null!==(r=Z.max)&&void 0!==r?r:h,Q=Number($)>0,J=Z.strategy(F),ee=!!$&&J>$,te=function(e,t){var n=t;!L.current&&Z.exceedFormatter&&Z.max&&Z.strategy(t)>Z.max&&t!==(n=Z.exceedFormatter(t,{max:Z.max}))&&X([V().selectionStart||0,V().selectionEnd||0]),R(n),TH(e.currentTarget,e,c,n)},ne=v;Z.show&&(Y=Z.showFormatter?Z.showFormatter({value:F,count:J,maxLength:$}):"".concat(J).concat(Q?" / ".concat($):""),ne=e.createElement(e.Fragment,null,ne,e.createElement("span",{className:$o()("".concat(b,"-data-count"),null===k||void 0===k?void 0:k.count),style:null===P||void 0===P?void 0:P.count},Y)));var re=!T.autoSize&&!w&&!d;return e.createElement(RH,{ref:W,value:F,allowClear:d,handleReset:function(e){R(""),U(),TH(V(),e,c)},suffix:ne,prefixCls:b,classNames:p(p({},k),{},{affixWrapper:$o()(null===k||void 0===k?void 0:k.affixWrapper,a(a({},"".concat(b,"-show-count"),w),"".concat(b,"-textarea-allow-clear"),d))}),disabled:_,focused:j,className:$o()(S,ee&&"".concat(b,"-out-of-range")),style:p(p({},C),z&&!re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"===typeof Y?Y:void 0}},hidden:E,readOnly:O},e.createElement(PG,Ge({},T,{maxLength:h,onKeyDown:function(e){var t=T.onPressEnter,n=T.onKeyDown;"Enter"===e.key&&t&&t(e),null===n||void 0===n||n(e)},onChange:function(e){te(e,e.target.value)},onFocus:function(e){D(!0),null===s||void 0===s||s(e)},onBlur:function(e){D(!1),null===l||void 0===l||l(e)},onCompositionStart:function(e){L.current=!0,null===m||void 0===m||m(e)},onCompositionEnd:function(e){L.current=!1,te(e,e.currentTarget.value),null===g||void 0===g||g(e)},className:$o()(null===k||void 0===k?void 0:k.textarea),style:p(p({},null===P||void 0===P?void 0:P.textarea),{},{resize:null===C||void 0===C?void 0:C.resize}),disabled:_,prefixCls:b,onResize:function(e){var t;null===A||void 0===A||A(e),null!==(t=V())&&void 0!==t&&t.style.height&&H(!0)},ref:G,readOnly:O})))}));const TG=OG;var MG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const IG=(0,e.forwardRef)(((t,n)=>{var r,o;const{prefixCls:a,bordered:i=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:h,style:p,styles:m,variant:g}=t,v=MG(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:y,direction:b,textArea:w}=e.useContext(vo),x=gF(s),S=e.useContext(Fo),C=null!==l&&void 0!==l?l:S,{status:_,hasFeedback:E,feedbackIcon:k}=e.useContext(hF),P=ZB(_,c),A=e.useRef(null);e.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=A.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=A.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=A.current)||void 0===e?void 0:e.blur()}}}));const O=y("input",a),T=wf(O),[M,I,R]=PH(O,T),[F,N]=lz("textArea",g,i),j=BH(null!==u&&void 0!==u?u:null===w||void 0===w?void 0:w.allowClear);return M(e.createElement(TG,Object.assign({autoComplete:null===w||void 0===w?void 0:w.autoComplete},v,{style:Object.assign(Object.assign({},null===w||void 0===w?void 0:w.style),p),styles:Object.assign(Object.assign({},null===w||void 0===w?void 0:w.styles),m),disabled:C,allowClear:j,className:$o()(R,T,h,f,null===w||void 0===w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},d),null===w||void 0===w?void 0:w.classNames),{textarea:$o()({["".concat(O,"-sm")]:"small"===x,["".concat(O,"-lg")]:"large"===x},I,null===d||void 0===d?void 0:d.textarea,null===(r=null===w||void 0===w?void 0:w.classNames)||void 0===r?void 0:r.textarea),variant:$o()({["".concat(O,"-").concat(F)]:N},YB(O,P)),affixWrapper:$o()("".concat(O,"-textarea-affix-wrapper"),{["".concat(O,"-affix-wrapper-rtl")]:"rtl"===b,["".concat(O,"-affix-wrapper-sm")]:"small"===x,["".concat(O,"-affix-wrapper-lg")]:"large"===x,["".concat(O,"-textarea-show-count")]:t.showCount||(null===(o=t.count)||void 0===o?void 0:o.show)},I)}),prefixCls:O,suffix:E&&e.createElement("span",{className:"".concat(O,"-textarea-suffix")},k),ref:A})))})),RG=IG,FG=GH;FG.Group=AH,FG.Search=wG,FG.TextArea=RG,FG.Password=pW,FG.OTP=rW;const NG=FG;const jG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var DG=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:jG}))};const LG=e.forwardRef(DG);function BG(){return"function"===typeof BigInt}function zG(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function HG(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function WG(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function GG(e){var t=String(e);if(WG(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!==r&&void 0!==r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&UG(t)?t.length-t.indexOf(".")-1:0}function VG(e){var t=String(e);if(WG(e)){if(e>Number.MAX_SAFE_INTEGER)return String(BG()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(BG()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(GG(t))}return HG(t).fullStr}function UG(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var qG=function(){function e(t){if(L(this,e),a(this,"origin",""),a(this,"negative",void 0),a(this,"integer",void 0),a(this,"decimal",void 0),a(this,"decimalLen",void 0),a(this,"empty",void 0),a(this,"nan",void 0),zG(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(WG(n)&&(n=Number(n)),UG(n="string"===typeof n?n:VG(n))){var r=HG(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return z(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),i=r(o),s=HG(a),l=s.negativeStr,c=s.trimStr,u="".concat(l).concat(c.padStart(i+1,"0"));return new e("".concat(u.slice(0,-i),".").concat(u.slice(-i)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":HG("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),KG=function(){function e(t){L(this,e),a(this,"origin",""),a(this,"number",void 0),a(this,"empty",void 0),zG(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return z(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(GG(this.number),GG(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(GG(this.number),GG(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null===e||void 0===e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":VG(this.number):this.origin}}]),e}();function XG(e){return BG()?new qG(e):new KG(e)}function YG(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=HG(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);return u>=5&&!r?YG(XG(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}const ZG=XG;var $G="undefined"!==typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,QG=function(t,n){var r=e.useRef(!0);$G((function(){return t(r.current)}),n),$G((function(){return r.current=!1,function(){r.current=!0}}),[])},JG=function(e,t){QG((function(t){if(!t)return e()}),t)};const eV=QG;var tV=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter(Boolean);return o.length<=1?o[0]:function(e){t.forEach((function(t){!function(e,t){"function"===typeof e?e(t):"object"===r(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}};function nV(t){return(0,e.isValidElement)(t)&&!(0,na.isFragment)(t)}Number(e.version.split(".")[0]);var rV={},oV=[];function aV(e,t){}function iV(e,t){}function sV(e,t,n){t||rV[n]||(e(!1,n),rV[n]=!0)}function lV(e,t){sV(aV,e,t)}lV.preMessage=function(e){oV.push(e)},lV.resetWarned=function(){rV={}},lV.noteOnce=function(e,t){sV(iV,e,t)};const cV=lV;const uV=function(){var t=u((0,e.useState)(!1),2),n=t[0],r=t[1];return eV((function(){r(function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))}())}),[]),n};var dV=function(e){return+setTimeout(e,16)},fV=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(dV=function(e){return window.requestAnimationFrame(e)},fV=function(e){return window.cancelAnimationFrame(e)});var hV=0,pV=new Map;function mV(e){pV.delete(e)}var gV=function(e){var t=hV+=1;return function n(r){if(0===r)mV(t),e();else{var o=dV((function(){n(r-1)}));pV.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};gV.cancel=function(e){var t=pV.get(e);return mV(e),fV(t)};const vV=gV;function yV(t){var n=t.prefixCls,r=t.upNode,o=t.downNode,i=t.upDisabled,s=t.downDisabled,l=t.onStep,c=e.useRef(),u=e.useRef([]),d=e.useRef();d.current=l;var f=function(){clearTimeout(c.current)},h=function(e,t){e.preventDefault(),f(),d.current(t),c.current=setTimeout((function e(){d.current(t),c.current=setTimeout(e,200)}),600)};if(e.useEffect((function(){return function(){f(),u.current.forEach((function(e){return vV.cancel(e)}))}}),[]),uV())return null;var p="".concat(n,"-handler"),m=$o()(p,"".concat(p,"-up"),a({},"".concat(p,"-up-disabled"),i)),g=$o()(p,"".concat(p,"-down"),a({},"".concat(p,"-down-disabled"),s)),v=function(){return u.current.push(vV(f))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return e.createElement("div",{className:"".concat(p,"-wrap")},e.createElement("span",Ge({},y,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),r||e.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),e.createElement("span",Ge({},y,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":s,className:g}),o||e.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}function bV(e){var t="number"===typeof e?VG(e):HG(e).fullStr;return t.includes(".")?HG(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var wV=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],xV=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],SV=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},CV=function(e){var t=ZG(e);return t.isInvalidate()?null:t},_V=e.forwardRef((function(t,n){var o=t.prefixCls,i=t.className,s=t.style,l=t.min,c=t.max,d=t.step,f=void 0===d?1:d,h=t.defaultValue,p=t.value,m=t.disabled,g=t.readOnly,v=t.upHandler,y=t.downHandler,b=t.keyboard,w=t.changeOnWheel,x=void 0!==w&&w,S=t.controls,C=void 0===S||S,_=(t.classNames,t.stringMode),E=t.parser,k=t.formatter,P=t.precision,A=t.decimalSeparator,O=t.onChange,T=t.onInput,M=t.onPressEnter,I=t.onStep,R=t.changeOnBlur,F=void 0===R||R,N=t.domRef,j=us(t,wV),D="".concat(o,"-input"),L=e.useRef(null),B=u(e.useState(!1),2),z=B[0],H=B[1],W=e.useRef(!1),G=e.useRef(!1),V=e.useRef(!1),U=u(e.useState((function(){return ZG(null!==p&&void 0!==p?p:h)})),2),q=U[0],K=U[1];var X=e.useCallback((function(e,t){if(!t)return P>=0?P:Math.max(GG(e),GG(f))}),[P,f]),Y=e.useCallback((function(e){var t=String(e);if(E)return E(t);var n=t;return A&&(n=n.replace(A,".")),n.replace(/[^\w.-]+/g,"")}),[E,A]),Z=e.useRef(""),$=e.useCallback((function(e,t){if(k)return k(e,{userTyping:t,input:String(Z.current)});var n="number"===typeof e?VG(e):e;if(!t){var r=X(n,t);if(UG(n)&&(A||r>=0))n=YG(n,A||".",r)}return n}),[k,X,A]),Q=u(e.useState((function(){var e=null!==h&&void 0!==h?h:p;return q.isInvalidate()&&["string","number"].includes(r(e))?Number.isNaN(e)?"":e:$(q.toString(),!1)})),2),J=Q[0],ee=Q[1];function te(e,t){ee($(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}Z.current=J;var ne=e.useMemo((function(){return CV(c)}),[c,P]),re=e.useMemo((function(){return CV(l)}),[l,P]),oe=e.useMemo((function(){return!(!ne||!q||q.isInvalidate())&&ne.lessEquals(q)}),[ne,q]),ae=e.useMemo((function(){return!(!re||!q||q.isInvalidate())&&q.lessEquals(re)}),[re,q]),ie=function(t,n){var r=(0,e.useRef)(null);return[function(){try{var e=t.selectionStart,n=t.selectionEnd,o=t.value,a=o.substring(0,e),i=o.substring(n);r.current={start:e,end:n,value:o,beforeTxt:a,afterTxt:i}}catch(x7){}},function(){if(t&&r.current&&n)try{var e=t.value,o=r.current,a=o.beforeTxt,i=o.afterTxt,s=o.start,l=e.length;if(e.endsWith(i))l=e.length-r.current.afterTxt.length;else if(e.startsWith(a))l=a.length;else{var c=a[s-1],u=e.indexOf(c,s-1);-1!==u&&(l=u+1)}t.setSelectionRange(l,l)}catch(x7){cV(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(x7.message))}}]}(L.current,z),se=u(ie,2),le=se[0],ce=se[1],ue=function(e){return ne&&!e.lessEquals(ne)?ne:re&&!re.lessEquals(e)?re:null},de=function(e){return!ue(e)},fe=function(e,t){var n,r=e,o=de(r)||r.isEmpty();if(r.isEmpty()||t||(r=ue(r)||r,o=!0),!g&&!m&&o){var a=r.toString(),i=X(a,t);return i>=0&&(r=ZG(YG(a,".",i)),de(r)||(r=ZG(YG(a,".",i,!0)))),r.equals(q)||(n=r,void 0===p&&K(n),null===O||void 0===O||O(r.isEmpty()?null:SV(_,r)),void 0===p&&te(r,t)),r}return q},he=function(){var t=(0,e.useRef)(0),n=function(){vV.cancel(t.current)};return(0,e.useEffect)((function(){return n}),[]),function(e){n(),t.current=vV((function(){e()}))}}(),pe=function e(t){if(le(),Z.current=t,ee(t),!G.current){var n=Y(t),r=ZG(n);r.isNaN()||fe(r,!0)}null===T||void 0===T||T(t),he((function(){var n=t;E||(n=t.replace(/\u3002/g,".")),n!==t&&e(n)}))},me=function(e){var t;if(!(e&&oe||!e&&ae)){W.current=!1;var n=ZG(V.current?bV(f):f);e||(n=n.negate());var r=(q||ZG(0)).add(n.toString()),o=fe(r,!1);null===I||void 0===I||I(SV(_,o),{offset:V.current?bV(f):f,type:e?"up":"down"}),null===(t=L.current)||void 0===t||t.focus()}},ge=function(e){var t,n=ZG(Y(J));t=n.isNaN()?fe(q,e):fe(n,e),void 0!==p?te(q,!1):t.isNaN()||te(t,!1)};e.useEffect((function(){if(x&&z){var e=function(e){me(e.deltaY<0),e.preventDefault()},t=L.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return JG((function(){q.isInvalidate()||te(q,!1)}),[P,k]),JG((function(){var e=ZG(p);K(e);var t=ZG(Y(J));e.equals(t)&&W.current&&!k||te(e,W.current)}),[p]),JG((function(){k&&ce()}),[J]),e.createElement("div",{ref:N,className:$o()(o,i,a(a(a(a(a({},"".concat(o,"-focused"),z),"".concat(o,"-disabled"),m),"".concat(o,"-readonly"),g),"".concat(o,"-not-a-number"),q.isNaN()),"".concat(o,"-out-of-range"),!q.isInvalidate()&&!de(q))),style:s,onFocus:function(){H(!0)},onBlur:function(){F&&ge(!1),H(!1),W.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;W.current=!0,V.current=n,"Enter"===t&&(G.current||(W.current=!1),ge(!1),null===M||void 0===M||M(e)),!1!==b&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(me("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){W.current=!1,V.current=!1},onCompositionStart:function(){G.current=!0},onCompositionEnd:function(){G.current=!1,pe(L.current.value)},onBeforeInput:function(){W.current=!0}},C&&e.createElement(yV,{prefixCls:o,upNode:v,downNode:y,upDisabled:oe,downDisabled:ae,onStep:me}),e.createElement("div",{className:"".concat(D,"-wrap")},e.createElement("input",Ge({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":q.isInvalidate()?null:q.toString(),step:f},j,{ref:tV(L,n),className:D,value:J,onChange:function(e){pe(e.target.value)},disabled:m,readOnly:g}))))})),EV=e.forwardRef((function(t,n){var r=t.disabled,o=t.style,a=t.prefixCls,i=void 0===a?"rc-input-number":a,s=t.value,l=t.prefix,c=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,h=t.classNames,p=us(t,xV),m=e.useRef(null),g=e.useRef(null),v=e.useRef(null);return e.useImperativeHandle(n,(function(){return e=v.current,t={nativeElement:m.current.nativeElement||g.current},"undefined"!==typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"===typeof r?r.bind(e):r}}):e;var e,t})),e.createElement(RH,{className:f,triggerFocus:function(e){v.current&&MH(v.current,e)},prefixCls:i,value:s,disabled:r,style:o,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},e.createElement(_V,Ge({prefixCls:i,disabled:r,ref:v,domRef:g,className:null===h||void 0===h?void 0:h.input},p)))}));const kV=EV,PV=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a="lg"===t?o:r;return{["&-".concat(t)]:{["".concat(n,"-handler-wrap")]:{borderStartEndRadius:a,borderEndEndRadius:a},["".concat(n,"-handler-up")]:{borderStartEndRadius:a},["".concat(n,"-handler-down")]:{borderEndEndRadius:a}}}},AV=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:h,colorTextDescription:p,motionDurationMid:m,handleHoverColor:g,paddingInline:v,paddingBlock:y,handleBg:b,handleActiveBg:w,colorTextDisabled:x,borderRadiusSM:S,borderRadiusLG:C,controlWidth:_,handleOpacity:E,handleBorderColor:k,filledHandleBg:P,lineHeightLG:A,calc:O}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),yH(e)),{display:"inline-block",width:_,margin:0,padding:0,borderRadius:o}),iH(e,{["".concat(t,"-handler-wrap")]:{background:b,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat(xe(n)," ").concat(r," ").concat(k)}}})),fH(e,{["".concat(t,"-handler-wrap")]:{background:P,["".concat(t,"-handler-down")]:{borderBlockStart:"".concat(xe(n)," ").concat(r," ").concat(k)}},"&:focus-within":{["".concat(t,"-handler-wrap")]:{background:b}}})),cH(e)),{"&-rtl":{direction:"rtl",["".concat(t,"-input")]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:A,borderRadius:C,["input".concat(t,"-input")]:{height:O(s).sub(O(n).mul(2)).equal(),padding:"".concat(xe(f)," ").concat(xe(h))}},"&-sm":{padding:0,fontSize:a,borderRadius:S,["input".concat(t,"-input")]:{height:O(l).sub(O(n).mul(2)).equal(),padding:"".concat(xe(d)," ").concat(xe(u))}},"&-out-of-range":{["".concat(t,"-input-wrap")]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},zi(e)),bH(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",["".concat(t,"-affix-wrapper")]:{width:"100%"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:C,fontSize:e.fontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:S}}},lH(e)),pH(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),["&-disabled ".concat(t,"-input")]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),{width:"100%",padding:"".concat(xe(y)," ").concat(xe(v)),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:"all ".concat(m," linear"),appearance:"textfield",fontSize:"inherit"}),mH(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({["&:hover ".concat(t,"-handler-wrap, &-focused ").concat(t,"-handler-wrap")]:{opacity:1},["".concat(t,"-handler-wrap")]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:E,display:"flex",flexDirection:"column",alignItems:"stretch",transition:"opacity ".concat(m," linear ").concat(m),["".concat(t,"-handler")]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",["\n              ".concat(t,"-handler-up-inner,\n              ").concat(t,"-handler-down-inner\n            ")]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},["".concat(t,"-handler")]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:"".concat(xe(n)," ").concat(r," ").concat(k),transition:"all ".concat(m," linear"),"&:active":{background:w},"&:hover":{height:"60%",["\n              ".concat(t,"-handler-up-inner,\n              ").concat(t,"-handler-down-inner\n            ")]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:p,transition:"all ".concat(m," linear"),userSelect:"none"})},["".concat(t,"-handler-up")]:{borderStartEndRadius:o},["".concat(t,"-handler-down")]:{borderEndEndRadius:o}},PV(e,"lg")),PV(e,"sm")),{"&-disabled, &-readonly":{["".concat(t,"-handler-wrap")]:{display:"none"},["".concat(t,"-input")]:{color:"inherit"}},["\n          ".concat(t,"-handler-up-disabled,\n          ").concat(t,"-handler-down-disabled\n        ")]:{cursor:"not-allowed"},["\n          ".concat(t,"-handler-up-disabled:hover &-handler-up-inner,\n          ").concat(t,"-handler-down-disabled:hover &-handler-down-inner\n        ")]:{color:x}})}]},OV=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign({["input".concat(t,"-input")]:{padding:"".concat(xe(n)," 0")}},yH(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:l,["input".concat(t,"-input")]:{padding:"".concat(xe(u)," 0")}},"&-sm":{borderRadius:s,paddingInlineStart:c,["input".concat(t,"-input")]:{padding:"".concat(xe(d)," 0")}},["&:not(".concat(t,"-disabled):hover")]:{zIndex:1},"&-focused, &:focus":{zIndex:1},["&-disabled > ".concat(t,"-disabled")]:{background:"transparent"},["> div".concat(t)]:{width:"100%",border:"none",outline:"none",["&".concat(t,"-focused")]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t,"-handler-wrap")]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},TV=Sl("InputNumber",(e=>{const t=hl(e,eH(e));return[AV(t),OV(t),fz(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},tH(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Jr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});var MV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const IV=e.forwardRef(((t,n)=>{const{getPrefixCls:r,direction:o}=e.useContext(vo),a=e.useRef(null);e.useImperativeHandle(n,(()=>a.current));const{className:i,rootClassName:s,size:l,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:h,bordered:p,readOnly:m,status:g,controls:v,variant:y}=t,b=MV(t,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),w=r("input-number",u),x=wf(w),[S,C,_]=TV(w,x),{compactSize:E,compactItemClassnames:k}=CF(w,o);let P=e.createElement(LG,{className:"".concat(w,"-handler-up-inner")}),A=e.createElement(Kz,{className:"".concat(w,"-handler-down-inner")});const O="boolean"===typeof v?v:void 0;"object"===typeof v&&(P="undefined"===typeof v.upIcon?P:e.createElement("span",{className:"".concat(w,"-handler-up-inner")},v.upIcon),A="undefined"===typeof v.downIcon?A:e.createElement("span",{className:"".concat(w,"-handler-down-inner")},v.downIcon));const{hasFeedback:T,status:M,isFormItemInput:I,feedbackIcon:R}=e.useContext(hF),F=ZB(M,g),N=gF((e=>{var t;return null!==(t=null!==l&&void 0!==l?l:E)&&void 0!==t?t:e})),j=e.useContext(Fo),D=null!==c&&void 0!==c?c:j,[L,B]=lz("inputNumber",y,p),z=T&&e.createElement(e.Fragment,null,R),H=$o()({["".concat(w,"-lg")]:"large"===N,["".concat(w,"-sm")]:"small"===N,["".concat(w,"-rtl")]:"rtl"===o,["".concat(w,"-in-form-item")]:I},C),W="".concat(w,"-group");return S(e.createElement(kV,Object.assign({ref:a,disabled:D,className:$o()(_,x,i,s,k),upHandler:P,downHandler:A,prefixCls:w,readOnly:m,controls:O,prefix:h,suffix:z,addonBefore:d&&e.createElement(PF,{form:!0,space:!0},d),addonAfter:f&&e.createElement(PF,{form:!0,space:!0},f),classNames:{input:H,variant:$o()({["".concat(w,"-").concat(L)]:B},YB(w,F,T)),affixWrapper:$o()({["".concat(w,"-affix-wrapper-sm")]:"small"===N,["".concat(w,"-affix-wrapper-lg")]:"large"===N,["".concat(w,"-affix-wrapper-rtl")]:"rtl"===o},C),wrapper:$o()({["".concat(W,"-rtl")]:"rtl"===o},C),groupWrapper:$o()({["".concat(w,"-group-wrapper-sm")]:"small"===N,["".concat(w,"-group-wrapper-lg")]:"large"===N,["".concat(w,"-group-wrapper-rtl")]:"rtl"===o,["".concat(w,"-group-wrapper-").concat(L)]:B},YB("".concat(w,"-group-wrapper"),F,T),C)}},b)))})),RV=IV;RV._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement(rs,{theme:{components:{InputNumber:{handleVisible:!0}}}},e.createElement(IV,Object.assign({},t)));const FV=RV;var NV=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],jV=e.forwardRef((function(t,n){var r,o=t.prefixCls,i=void 0===o?"rc-switch":o,s=t.className,l=t.checked,c=t.defaultChecked,d=t.disabled,f=t.loadingIcon,h=t.checkedChildren,p=t.unCheckedChildren,m=t.onClick,g=t.onChange,v=t.onKeyDown,y=us(t,NV),b=u(YO(!1,{value:l,defaultValue:c}),2),w=b[0],x=b[1];function S(e,t){var n=w;return d||(x(n=e),null===g||void 0===g||g(n,t)),n}var C=$o()(i,s,(a(r={},"".concat(i,"-checked"),w),a(r,"".concat(i,"-disabled"),d),r));return e.createElement("button",Ge({},y,{type:"button",role:"switch","aria-checked":w,disabled:d,className:C,ref:n,onKeyDown:function(e){e.which===ef.LEFT?S(!1,e):e.which===ef.RIGHT&&S(!0,e),null===v||void 0===v||v(e)},onClick:function(e){var t=S(!w,e);null===m||void 0===m||m(t,e)}}),f,e.createElement("span",{className:"".concat(i,"-inner")},e.createElement("span",{className:"".concat(i,"-inner-checked")},h),e.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))}));jV.displayName="Switch";const DV=jV,LV=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c="".concat(t,"-inner"),u=xe(l(s).add(l(r).mul(2)).equal()),d=xe(l(i).mul(2).equal());return{[t]:{["&".concat(t,"-small")]:{minWidth:o,height:n,lineHeight:xe(n),["".concat(t,"-inner")]:{paddingInlineStart:i,paddingInlineEnd:a,["".concat(c,"-checked, ").concat(c,"-unchecked")]:{minHeight:n},["".concat(c,"-checked")]:{marginInlineStart:"calc(-100% + ".concat(u," - ").concat(d,")"),marginInlineEnd:"calc(100% - ".concat(u," + ").concat(d,")")},["".concat(c,"-unchecked")]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["".concat(t,"-handle")]:{width:s,height:s},["".concat(t,"-loading-icon")]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},["&".concat(t,"-checked")]:{["".concat(t,"-inner")]:{paddingInlineStart:a,paddingInlineEnd:i,["".concat(c,"-checked")]:{marginInlineStart:0,marginInlineEnd:0},["".concat(c,"-unchecked")]:{marginInlineStart:"calc(100% - ".concat(u," + ").concat(d,")"),marginInlineEnd:"calc(-100% + ".concat(u," - ").concat(d,")")}},["".concat(t,"-handle")]:{insetInlineStart:"calc(100% - ".concat(xe(l(s).add(r).equal()),")")}},["&:not(".concat(t,"-disabled):active")]:{["&:not(".concat(t,"-checked) ").concat(c)]:{["".concat(c,"-unchecked")]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},["&".concat(t,"-checked ").concat(c)]:{["".concat(c,"-checked")]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},BV=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{["".concat(t,"-loading-icon").concat(e.iconCls)]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},["&".concat(t,"-checked ").concat(t,"-loading-icon")]:{color:e.switchColor}}}},zV=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,s="".concat(t,"-handle");return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:"all ".concat(e.switchDuration," ease-in-out"),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:"all ".concat(e.switchDuration," ease-in-out"),content:'""'}},["&".concat(t,"-checked ").concat(s)]:{insetInlineStart:"calc(100% - ".concat(xe(i(a).add(n).equal()),")")},["&:not(".concat(t,"-disabled):active")]:{["".concat(s,"::before")]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},["&".concat(t,"-checked ").concat(s,"::before")]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},HV=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l="".concat(t,"-inner"),c=xe(s(i).add(s(r).mul(2)).equal()),u=xe(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:"padding-inline-start ".concat(e.switchDuration," ease-in-out, padding-inline-end ").concat(e.switchDuration," ease-in-out"),["".concat(l,"-checked, ").concat(l,"-unchecked")]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:"margin-inline-start ".concat(e.switchDuration," ease-in-out, margin-inline-end ").concat(e.switchDuration," ease-in-out"),pointerEvents:"none",minHeight:n},["".concat(l,"-checked")]:{marginInlineStart:"calc(-100% + ".concat(c," - ").concat(u,")"),marginInlineEnd:"calc(100% - ".concat(c," + ").concat(u,")")},["".concat(l,"-unchecked")]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["&".concat(t,"-checked ").concat(l)]:{paddingInlineStart:o,paddingInlineEnd:a,["".concat(l,"-checked")]:{marginInlineStart:0,marginInlineEnd:0},["".concat(l,"-unchecked")]:{marginInlineStart:"calc(100% - ".concat(c," + ").concat(u,")"),marginInlineEnd:"calc(-100% + ".concat(c," - ").concat(u,")")}},["&:not(".concat(t,"-disabled):active")]:{["&:not(".concat(t,"-checked) ").concat(l)]:{["".concat(l,"-unchecked")]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},["&".concat(t,"-checked ").concat(l)]:{["".concat(l,"-checked")]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},WV=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:"".concat(xe(n)),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all ".concat(e.motionDurationMid),userSelect:"none",["&:hover:not(".concat(t,"-disabled)")]:{background:e.colorTextTertiary}}),Vi(e)),{["&".concat(t,"-checked")]:{background:e.switchColor,["&:hover:not(".concat(t,"-disabled)")]:{background:e.colorPrimaryHover}},["&".concat(t,"-loading, &").concat(t,"-disabled")]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},["&".concat(t,"-rtl")]:{direction:"rtl"}})}},GV=Sl("Switch",(e=>{const t=hl(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:"rgba(0, 0, 0, ".concat(e.opacityLoading,")"),switchHandleActiveInset:"-30%"});return[WV(t),HV(t),zV(t),BV(t),LV(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=a-4,l=i-4;return{trackHeight:a,trackHeightSM:i,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:"0 2px 4px 0 ".concat(new Jr("#00230b").setAlpha(.2).toRgbString()),innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));var VV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const UV=e.forwardRef(((t,n)=>{const{prefixCls:r,size:o,disabled:a,loading:i,className:s,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:h,onChange:p}=t,m=VV(t,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=Oa(!1,{value:null!==u&&void 0!==u?u:d,defaultValue:null!==f&&void 0!==f?f:h}),{getPrefixCls:y,direction:b,switch:w}=e.useContext(vo),x=e.useContext(Fo),S=(null!==a&&void 0!==a?a:x)||i,C=y("switch",r),_=e.createElement("div",{className:"".concat(C,"-handle")},i&&e.createElement(Ku,{className:"".concat(C,"-loading-icon")})),[E,k,P]=GV(C),A=gF(o),O=$o()(null===w||void 0===w?void 0:w.className,{["".concat(C,"-small")]:"small"===A,["".concat(C,"-loading")]:i,["".concat(C,"-rtl")]:"rtl"===b},s,l,k,P),T=Object.assign(Object.assign({},null===w||void 0===w?void 0:w.style),c);return E(e.createElement(CW,{component:"Switch"},e.createElement(DV,Object.assign({},m,{checked:g,onChange:function(){v(arguments.length<=0?void 0:arguments[0]),null===p||void 0===p||p.apply(void 0,arguments)},prefixCls:C,className:O,style:T,disabled:S,ref:n,loadingIcon:_}))))})),qV=UV;qV.__ANT_SWITCH=!0;const KV=qV,XV=t=>{let{title:n,children:r}=t;const[o,a]=(0,e.useState)(!1);return(0,jl.jsxs)("div",{className:"dropdown",children:[(0,jl.jsxs)("p",{onClick:()=>{a(!o)},className:"dropdown-button",children:[n," ",(0,jl.jsx)("span",{className:"arrow",children:o?"\u25b2":"\u25bc"})]}),o&&(0,jl.jsx)("div",{style:{display:"flex",padding:10,backgroundColor:"rgba(38,39,48,1)",gap:5},children:r})]})},YV={GB:'Company name or number (e.g. "Hjem Kensington" or "10967711")',FR:'Company name or SIREN (e.g. "Deux Magots" or "334365947")',DE:'Company name or register number (e.g. "Weinerei am Weinberg" or "HRA 54405 B")',IT:'Partita IVA number (e.g. for Felice Milano SRL type "16857631002")'};const ZV=function(){const[t,n]=(0,e.useState)(null),[r,o]=(0,e.useState)(null),[a,i]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(null),[d,f]=(0,e.useState)(""),{setSelectedOrderId:h,setTabOpen:p,jwt:m}=(0,e.useContext)(sh),[g,v]=(0,e.useState)(25),[y,b]=(0,e.useState)(25),[w,x]=(0,e.useState)(!0),S=qN(GN.UBO),C={GB:qN(GN.UNITED_KINGDOM),FR:qN(GN.FRANCE),DE:qN(GN.GERMANY),IT:qN(GN.ITALY)},_=(0,e.useMemo)((()=>{const e=[];for(const[t,n]of Object.entries(C))n&&e.push({value:t,label:t});return e}),[m]);(0,e.useEffect)((()=>{_.length>=1&&n(_[0].value)}),[_]),(0,e.useEffect)((()=>{o(null)}),[t]),(0,e.useEffect)((()=>{var e,t;null!==r&&void 0!==r&&null!==(e=r[0])&&void 0!==e&&e.registration_number&&u(null===r||void 0===r||null===(t=r[0])||void 0===t?void 0:t.registration_number)}),[r]);const E=async()=>{i(!0),o([]);try{const e=await uh.search(t,d),n=(null===e||void 0===e?void 0:e.results)||[];o(n)}catch(e){ih.error({message:"Unable to search"})}i(!1)},k=null===r||void 0===r?void 0:r.map((e=>({value:null===e||void 0===e?void 0:e.registration_number,label:"".concat(null===e||void 0===e?void 0:e.name," (").concat(null===e||void 0===e?void 0:e.registration_number," ").concat(null===e||void 0===e?void 0:e.country,")")})));return t?(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsxs)(QD,{gutter:10,children:[(0,jl.jsxs)(oL,{span:4,children:[(0,jl.jsx)("p",{children:"Country"}),(0,jl.jsx)(Jz,{size:"large",style:{width:"100%"},value:t,onChange:e=>n(e),label:"Select country",options:_})]}),(0,jl.jsxs)(oL,{span:16,children:[(0,jl.jsx)("p",{children:"Search all"}),(0,jl.jsx)(NG,{value:d,onChange:e=>{f(e.target.value)},placeholder:YV[t],size:"large","data-testid":"country-search",onKeyDown:e=>{"Enter"===e.key&&E()}}),(0,jl.jsx)(oL,{span:24,children:(0,jl.jsx)(XV,{title:"Advanced Order Options",children:(0,jl.jsxs)("div",{style:{flexDirection:"column",display:"flex",alignItems:"flex-start",gap:5},children:[(0,jl.jsxs)(jl.Fragment,{children:["Beneficial Owner Share Threshold",(0,jl.jsx)(FV,{value:g,onChange:v,addonAfter:"%",min:"0",max:"25",step:"0.01",stringMode:!0})]}),"Beneficial Owner Voting Threshold",(0,jl.jsx)(FV,{value:y,onChange:b,addonAfter:"%",min:"0",max:"25",step:"0.01",stringMode:!0}),"Beneficial Owners with other types of significant control",(0,jl.jsx)(KV,{checkedChildren:"Show",unCheckedChildren:"Hide",value:w,onChange:x})]})})})]}),(0,jl.jsxs)(oL,{span:4,children:[(0,jl.jsx)("p",{style:{visibility:"hidden"},children:"Search"}),(0,jl.jsx)(vG,{type:"primary",disabled:!d||a,onClick:E,size:"large","data-testid":"country-search-button",children:a?(0,jl.jsx)(Ku,{}):(0,jl.jsx)(YN,{})})]})]}),(0,jl.jsx)("br",{}),null!==r&&!a&&(null!==r&&void 0!==r&&r.length?(0,jl.jsxs)(QD,{children:[(0,jl.jsx)(oL,{span:4}),(0,jl.jsxs)(oL,{span:20,children:[(0,jl.jsx)("p",{children:"Select Company"}),(0,jl.jsx)(Jz,{size:"large",style:{width:"100%"},placeholder:"Select Company",optionFilterProp:"children",onChange:e=>u(e),options:k,label:"Select company",defaultValue:null===k||void 0===k?void 0:k[0]}),(0,jl.jsx)("br",{}),(0,jl.jsx)("br",{}),(0,jl.jsx)(vG,{disabled:!c||s,size:"large",type:"primary",onClick:async()=>{l(!0);try{const e=await uh.createBusinessProfileOrder({country:t,registration_number:c,beneficial_owner_shares_threshold:g,beneficial_owner_voting_rights_threshold:y,beneficial_owner_has_other_significant_control:w});if(S){const n=await uh.createUBOOrder({country:t,registration_number:c});h({bpoOrderId:null===e||void 0===e?void 0:e.id,uboOrderId:null===n||void 0===n?void 0:n.id})}else h({bpoOrderId:null===e||void 0===e?void 0:e.id,uboOrderId:null});p("businessProfile")}catch(e){ih.error({message:"Unable to create order"})}l(!1)},children:s?"Creating order...":"Submit"})]})]}):(0,jl.jsx)("div",{className:"centered",children:(0,jl.jsx)("p",{style:{color:"#ceff00"},children:"No search result"})}))]}):(0,jl.jsx)(LD,{paragraph:{rows:20},active:!0})};var $V={},QV="rc-table-internal-hook";function JV(t){var n=e.createContext(void 0);return{Context:n,Provider:function(t){var r=t.value,o=t.children,a=e.useRef(r);a.current=r;var i=u(e.useState((function(){return{getValue:function(){return a.current},listeners:new Set}})),1)[0];return Oe((function(){(0,Qo.unstable_batchedUpdates)((function(){i.listeners.forEach((function(e){e(r)}))}))}),[r]),e.createElement(n.Provider,{value:i},o)},defaultValue:t}}function eU(t,n){var r=MO("function"===typeof n?n:function(e){if(void 0===n)return e;if(!Array.isArray(n))return e[n];var t={};return n.forEach((function(n){t[n]=e[n]})),t}),o=e.useContext(null===t||void 0===t?void 0:t.Context),a=o||{},i=a.listeners,s=a.getValue,l=e.useRef();l.current=r(o?s():null===t||void 0===t?void 0:t.defaultValue);var c=u(e.useState({}),2)[1];return Oe((function(){if(o)return i.add(e),function(){i.delete(e)};function e(e){var t=r(e);D(l.current,t,!0)||c({})}}),[o]),l.current}function tU(){var t=e.createContext(null);function n(){return e.useContext(t)}return{makeImmutable:function(r,o){var a=Ju(r),i=function(i,s){var l=a?{ref:s}:{},c=e.useRef(0),u=e.useRef(i);return null!==n()?e.createElement(r,Ge({},i,l)):(o&&!o(u.current,i)||(c.current+=1),u.current=i,e.createElement(t.Provider,{value:c.current},e.createElement(r,Ge({},i,l))))};return a?e.forwardRef(i):i},responseImmutable:function(t,r){var o=Ju(t),a=function(r,a){var i=o?{ref:a}:{};return n(),e.createElement(t,Ge({},r,i))};return o?e.memo(e.forwardRef(a),r):e.memo(a,r)},useImmutableMark:n}}var nU=tU(),rU=(nU.makeImmutable,nU.responseImmutable,nU.useImmutableMark,tU()),oU=rU.makeImmutable,aU=rU.responseImmutable,iU=rU.useImmutableMark;const sU=JV();const lU=e.createContext({renderWithProps:!1});var cU="RC_TABLE_KEY";function uU(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},a=o.key,i=o.dataIndex,s=a||(r=i,void 0===r||null===r?[]:Array.isArray(r)?r:[r]).join("-")||cU;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)})),t}function dU(e){return null!==e&&void 0!==e}function fU(t,n,o,a,i,s){var l=e.useContext(lU),c=O((function(){if(dU(a))return[a];var s,c=null===n||void 0===n||""===n?[]:Array.isArray(n)?n:[n],u=kR(t,c),d=u,f=void 0;if(i){var h=i(u,t,o);!(s=h)||"object"!==r(s)||Array.isArray(s)||e.isValidElement(s)?d=h:(d=h.children,f=h.props,l.renderWithProps=!0)}return[d,f]}),[iU(),t,a,n,i,o],(function(e,t){if(s){var n=u(e,2)[1],r=u(t,2)[1];return s(r,n)}return!!l.renderWithProps||!D(e,t,!0)}));return c}function hU(t){var n,o,i,s,l,c,d,f;var h=t.component,m=t.children,g=t.ellipsis,v=t.scope,y=t.prefixCls,b=t.className,w=t.align,x=t.record,S=t.render,C=t.dataIndex,_=t.renderIndex,E=t.shouldCellUpdate,k=t.index,P=t.rowType,A=t.colSpan,O=t.rowSpan,T=t.fixLeft,M=t.fixRight,I=t.firstFixLeft,R=t.lastFixLeft,F=t.firstFixRight,N=t.lastFixRight,j=t.appendNode,D=t.additionalProps,L=void 0===D?{}:D,B=t.isSticky,z="".concat(y,"-cell"),H=eU(sU,["supportSticky","allColumnsFixedLeft","rowHoverable"]),W=H.supportSticky,G=H.allColumnsFixedLeft,V=H.rowHoverable,U=u(fU(x,C,_,m,S,E),2),q=U[0],K=U[1],X={},Y="number"===typeof T&&W,Z="number"===typeof M&&W;Y&&(X.position="sticky",X.left=T),Z&&(X.position="sticky",X.right=M);var $=null!==(n=null!==(o=null!==(i=null===K||void 0===K?void 0:K.colSpan)&&void 0!==i?i:L.colSpan)&&void 0!==o?o:A)&&void 0!==n?n:1,Q=null!==(s=null!==(l=null!==(c=null===K||void 0===K?void 0:K.rowSpan)&&void 0!==c?c:L.rowSpan)&&void 0!==l?l:O)&&void 0!==s?s:1,J=function(e,t){return eU(sU,(function(n){var r,o,a,i;return[(r=e,o=t||1,a=n.hoverStartRow,i=n.hoverEndRow,r<=i&&r+o-1>=a),n.onHover]}))}(k,Q),ee=u(J,2),te=ee[0],ne=ee[1],re=MO((function(e){var t;x&&ne(k,k+Q-1),null===L||void 0===L||null===(t=L.onMouseEnter)||void 0===t||t.call(L,e)})),oe=MO((function(e){var t;x&&ne(-1,-1),null===L||void 0===L||null===(t=L.onMouseLeave)||void 0===t||t.call(L,e)}));if(0===$||0===Q)return null;var ae=null!==(d=L.title)&&void 0!==d?d:function(t){var n,r=t.ellipsis,o=t.rowType,a=t.children,i=!0===r?{showTitle:!0}:r;return i&&(i.showTitle||"header"===o)&&("string"===typeof a||"number"===typeof a?n=a.toString():e.isValidElement(a)&&"string"===typeof a.props.children&&(n=a.props.children)),n}({rowType:P,ellipsis:g,children:q}),ie=$o()(z,b,(a(f={},"".concat(z,"-fix-left"),Y&&W),a(f,"".concat(z,"-fix-left-first"),I&&W),a(f,"".concat(z,"-fix-left-last"),R&&W),a(f,"".concat(z,"-fix-left-all"),R&&G&&W),a(f,"".concat(z,"-fix-right"),Z&&W),a(f,"".concat(z,"-fix-right-first"),F&&W),a(f,"".concat(z,"-fix-right-last"),N&&W),a(f,"".concat(z,"-ellipsis"),g),a(f,"".concat(z,"-with-append"),j),a(f,"".concat(z,"-fix-sticky"),(Y||Z)&&B&&W),a(f,"".concat(z,"-row-hover"),!K&&te),f),L.className,null===K||void 0===K?void 0:K.className),se={};w&&(se.textAlign=w);var le=p(p(p(p({},X),L.style),se),null===K||void 0===K?void 0:K.style),ce=q;return"object"!==r(ce)||Array.isArray(ce)||e.isValidElement(ce)||(ce=null),g&&(R||F)&&(ce=e.createElement("span",{className:"".concat(z,"-content")},ce)),e.createElement(h,Ge({},K,L,{className:ie,style:le,title:ae,scope:v,onMouseEnter:V?re:void 0,onMouseLeave:V?oe:void 0,colSpan:1!==$?$:null,rowSpan:1!==Q?Q:null}),j,ce)}const pU=e.memo(hU);function mU(e,t,n,r,o){var a,i,s=n[e]||{},l=n[t]||{};"left"===s.fixed?a=r.left["rtl"===o?t:e]:"right"===l.fixed&&(i=r.right["rtl"===o?e:t]);var c=!1,u=!1,d=!1,f=!1,h=n[t+1],p=n[e-1],m=h&&!h.fixed||p&&!p.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===o){if(void 0!==a)f=!(p&&"left"===p.fixed)&&m;else if(void 0!==i){d=!(h&&"right"===h.fixed)&&m}}else if(void 0!==a){c=!(h&&"left"===h.fixed)&&m}else if(void 0!==i){u=!(p&&"right"===p.fixed)&&m}return{fixLeft:a,fixRight:i,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}const gU=e.createContext({});var vU=["children"];function yU(e){return e.children}yU.Row=function(t){var n=t.children,r=us(t,vU);return e.createElement("tr",r,n)},yU.Cell=function(t){var n=t.className,r=t.index,o=t.children,a=t.colSpan,i=void 0===a?1:a,s=t.rowSpan,l=t.align,c=eU(sU,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=e.useContext(gU),h=f.scrollColumnIndex,p=f.stickyOffsets,m=r+i-1+1===h?i+1:i,g=mU(r,r+m-1,f.flattenColumns,p,d);return e.createElement(pU,Ge({className:n,index:r,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:m,rowSpan:s,render:function(){return o}},g))};const bU=yU;const wU=aU((function(t){var n=t.children,r=t.stickyOffsets,o=t.flattenColumns,a=eU(sU,"prefixCls"),i=o.length-1,s=o[i],l=e.useMemo((function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:null!==s&&void 0!==s&&s.scrollbar?i:null}}),[s,o,i,r]);return e.createElement(gU.Provider,{value:l},e.createElement("tfoot",{className:"".concat(a,"-summary")},n))}));var xU=bU,SU=function(e){if(g()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},CU=function(e,t){if(!SU(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function _U(e,t,n,r,o,a,i){e.push({record:t,indent:n,index:i});var s=a(t),l=null===o||void 0===o?void 0:o.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c<t[r].length;c+=1)_U(e,t[r][c],n+1,r,o,a,c)}function EU(t,n,r,o){var a=e.useMemo((function(){if(null!==r&&void 0!==r&&r.size){for(var e=[],a=0;a<(null===t||void 0===t?void 0:t.length);a+=1){_U(e,t[a],0,n,r,o,a)}return e}return null===t||void 0===t?void 0:t.map((function(e,t){return{record:e,indent:0,index:t}}))}),[t,n,r,o]);return a}function kU(e,t,n,r){var o,a=eU(sU,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=a.flattenColumns,s=a.expandableType,l=a.expandedKeys,c=a.childrenColumnName,u=a.onTriggerExpand,d=a.rowExpandable,f=a.onRow,h=a.expandRowByClick,m=a.rowClassName,g="nest"===s,v="row"===s&&(!d||d(e)),y=v||g,b=l&&l.has(t),w=c&&e&&e[c],x=MO(u),S=null===f||void 0===f?void 0:f(e,n),C=null===S||void 0===S?void 0:S.onClick;"string"===typeof m?o=m:"function"===typeof m&&(o=m(e,n,r));var _=uU(i);return p(p({},a),{},{columnsKey:_,nestExpandable:g,expanded:b,hasNestChildren:w,record:e,onTriggerExpand:x,rowSupportExpand:v,expandable:y,rowProps:p(p({},S),{},{className:$o()(o,null===S||void 0===S?void 0:S.className),onClick:function(t){h&&y&&u(e,t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===C||void 0===C||C.apply(void 0,[t].concat(r))}})})}const PU=function(t){var n=t.prefixCls,r=t.children,o=t.component,a=t.cellComponent,i=t.className,s=t.expanded,l=t.colSpan,c=t.isEmpty,u=eU(sU,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,h=u.fixColumn,p=u.componentWidth,m=u.horizonScroll,g=r;return(c?m&&p:h)&&(g=e.createElement("div",{style:{width:p-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(n,"-expanded-row-fixed")},g)),e.createElement(o,{className:i,style:{display:s?null:"none"}},e.createElement(pU,{component:a,prefixCls:n,colSpan:l},g))};function AU(t,n,r,o,a){var i,s,l=t.record,c=t.prefixCls,u=t.columnsKey,d=t.fixedInfoList,f=t.expandIconColumnIndex,h=t.nestExpandable,p=t.indentSize,m=t.expandIcon,g=t.expanded,v=t.hasNestChildren,y=t.onTriggerExpand,b=u[r],w=d[r];return r===(f||0)&&h&&(i=e.createElement(e.Fragment,null,e.createElement("span",{style:{paddingLeft:"".concat(p*o,"px")},className:"".concat(c,"-row-indent indent-level-").concat(o)}),m({prefixCls:c,expanded:g,expandable:v,record:l,onExpand:y}))),n.onCell&&(s=n.onCell(l,a)),{key:b,fixedInfo:w,appendCellNode:i,additionalCellProps:s||{}}}const OU=aU((function(t){var n=t.className,r=t.style,o=t.record,a=t.index,i=t.renderIndex,s=t.rowKey,l=t.indent,c=void 0===l?0:l,u=t.rowComponent,d=t.cellComponent,f=t.scopeCellComponent,h=kU(o,s,a,c),m=h.prefixCls,g=h.flattenColumns,v=h.expandedRowClassName,y=h.expandedRowRender,b=h.rowProps,w=h.expanded,x=h.rowSupportExpand,S=e.useRef(!1);S.current||(S.current=w);var C,_=v&&v(o,a,c),E=e.createElement(u,Ge({},b,{"data-row-key":s,className:$o()(n,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(c),null===b||void 0===b?void 0:b.className,c>=1?_:""),style:p(p({},r),null===b||void 0===b?void 0:b.style)}),g.map((function(t,n){var r=t.render,s=t.dataIndex,l=t.className,u=AU(h,t,n,c,a),p=u.key,g=u.fixedInfo,v=u.appendCellNode,y=u.additionalCellProps;return e.createElement(pU,Ge({className:l,ellipsis:t.ellipsis,align:t.align,scope:t.rowScope,component:t.rowScope?f:d,prefixCls:m,key:p,record:o,index:a,renderIndex:i,dataIndex:s,render:r,shouldCellUpdate:t.shouldCellUpdate},g,{appendNode:v,additionalProps:y}))})));if(x&&(S.current||w)){var k=y(o,a,c+1,w);C=e.createElement(PU,{expanded:w,className:$o()("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(c+1),_),prefixCls:m,component:u,cellComponent:d,colSpan:g.length,isEmpty:!1},k)}return e.createElement(e.Fragment,null,E,C)}));function TU(t){var n=t.columnKey,r=t.onColumnResize,o=e.useRef();return e.useEffect((function(){o.current&&r(n,o.current.offsetWidth)}),[]),e.createElement(EO,{data:n},e.createElement("td",{ref:o,style:{padding:0,border:0,height:0}},e.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function MU(t){var n=t.prefixCls,r=t.columnsKey,o=t.onColumnResize;return e.createElement("tr",{"aria-hidden":"true",className:"".concat(n,"-measure-row"),style:{height:0,fontSize:0}},e.createElement(EO.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)}))}},r.map((function(t){return e.createElement(TU,{key:t,columnKey:t,onColumnResize:o})}))))}const IU=aU((function(t){var n,r=t.data,o=t.measureColumnWidth,a=eU(sU,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=a.prefixCls,s=a.getComponent,l=a.onColumnResize,c=a.flattenColumns,u=a.getRowKey,d=a.expandedKeys,f=a.childrenColumnName,h=a.emptyNode,p=EU(r,f,d,u),m=e.useRef({renderWithProps:!1}),g=s(["body","wrapper"],"tbody"),v=s(["body","row"],"tr"),y=s(["body","cell"],"td"),b=s(["body","cell"],"th");n=r.length?p.map((function(t,n){var r=t.record,o=t.indent,a=t.index,i=u(r,n);return e.createElement(OU,{key:i,rowKey:i,record:r,index:n,renderIndex:a,rowComponent:v,cellComponent:y,scopeCellComponent:b,getRowKey:u,indent:o})})):e.createElement(PU,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:v,cellComponent:y,colSpan:c.length,isEmpty:!0},h);var w=uU(c);return e.createElement(lU.Provider,{value:m.current},e.createElement(g,{className:"".concat(i,"-tbody")},o&&e.createElement(MU,{prefixCls:i,columnsKey:w,onColumnResize:l}),n))}));var RU=["expandable"],FU="RC_TABLE_INTERNAL_COL_DEFINE";var NU=["columnType"];const jU=function(t){for(var n=t.colWidths,r=t.columns,o=[],a=!1,i=(t.columCount||r.length)-1;i>=0;i-=1){var s=n[i],l=r&&r[i],c=l&&l[FU];if(s||c||a){var u=c||{},d=(u.columnType,us(u,NU));o.unshift(e.createElement("col",Ge({key:i,style:{width:s}},d))),a=!0}}return e.createElement("colgroup",null,o)};var DU=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var LU=e.forwardRef((function(t,n){var r=t.className,o=t.noData,i=t.columns,s=t.flattenColumns,l=t.colWidths,c=t.columCount,u=t.stickyOffsets,d=t.direction,h=t.fixHeader,m=t.stickyTopOffset,g=t.stickyBottomOffset,v=t.stickyClassName,y=t.onScroll,b=t.maxContentScroll,w=t.children,x=us(t,DU),S=eU(sU,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=S.prefixCls,_=S.scrollbarSize,E=S.isSticky,k=(0,S.getComponent)(["header","table"],"table"),P=E&&!h?0:_,A=e.useRef(null),O=e.useCallback((function(e){Zu(n,e),Zu(A,e)}),[]);e.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(y({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=A.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=A.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var T=e.useMemo((function(){return s.every((function(e){return e.width}))}),[s]),M=s[s.length-1],I={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},R=(0,e.useMemo)((function(){return P?[].concat(f(i),[I]):i}),[P,i]),F=(0,e.useMemo)((function(){return P?[].concat(f(s),[I]):s}),[P,s]),N=(0,e.useMemo)((function(){var e=u.right,t=u.left;return p(p({},u),{},{left:"rtl"===d?[].concat(f(t.map((function(e){return e+P}))),[0]):t,right:"rtl"===d?e:[].concat(f(e.map((function(e){return e+P}))),[0]),isSticky:E})}),[P,u,E]),j=function(t,n){return(0,e.useMemo)((function(){for(var e=[],r=0;r<n;r+=1){var o=t[r];if(void 0===o)return null;e[r]=o}return e}),[t.join("_"),n])}(l,c);return e.createElement("div",{style:p({overflow:"hidden"},E?{top:m,bottom:g}:{}),ref:O,className:$o()(r,a({},v,!!v))},e.createElement(k,{style:{tableLayout:"fixed",visibility:o||j?null:"hidden"}},(!o||!b||T)&&e.createElement(jU,{colWidths:j?[].concat(f(j),[P]):[],columCount:c+1,columns:F}),w(p(p({},x),{},{stickyOffsets:N,columns:R,flattenColumns:F}))))}));const BU=e.memo(LU);const zU=function(t){var n,r=t.cells,o=t.stickyOffsets,a=t.flattenColumns,i=t.rowComponent,s=t.cellComponent,l=t.onHeaderRow,c=t.index,u=eU(sU,["prefixCls","direction"]),d=u.prefixCls,f=u.direction;l&&(n=l(r.map((function(e){return e.column})),c));var h=uU(r.map((function(e){return e.column})));return e.createElement(i,n,r.map((function(t,n){var r,i=t.column,l=mU(t.colStart,t.colEnd,a,o,f);return i&&i.onHeaderCell&&(r=t.column.onHeaderCell(i)),e.createElement(pU,Ge({},t,{scope:i.title?t.colSpan>1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:s,prefixCls:d,key:h[n]},l,{additionalProps:r,rowType:"header"}))})))};const HU=aU((function(t){var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,a=t.onHeaderRow,i=eU(sU,["prefixCls","getComponent"]),s=i.prefixCls,l=i.getComponent,c=e.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var a=r,i=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:a},i=1,s=n.children;return s&&s.length>0&&(i=e(s,a,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(i=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,t[o].push(r),a+=i,i}));return i}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o<n;o+=1)r(o);return t}(r)}),[r]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),f=l(["header","cell"],"th");return e.createElement(u,{className:"".concat(s,"-thead")},c.map((function(t,r){return e.createElement(zU,{key:r,flattenColumns:o,cells:t,stickyOffsets:n,rowComponent:d,cellComponent:f,onHeaderRow:a,index:r})})))}));function WU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"===typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var GU=["children"],VU=["fixed"];function UU(t){return XA(t).filter((function(t){return e.isValidElement(t)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=p({key:t},us(n,GU));return r&&(o.children=UU(r)),o}))}function qU(e){return e.filter((function(e){return e&&"object"===r(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?p(p({},e),{},{children:qU(t)}):e}))}function KU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===r(e)})).reduce((function(e,n,r){var o=n.fixed,a=!0===o?"left":o,i="".concat(t,"-").concat(r),s=n.children;return s&&s.length>0?[].concat(f(e),f(KU(s,i).map((function(e){return p({fixed:a},e)})))):[].concat(f(e),[p(p({key:i},n),{},{fixed:a})])}),[])}const XU=function(t,n){var r=t.prefixCls,o=t.columns,i=t.children,s=t.expandable,l=t.expandedKeys,c=t.columnTitle,d=t.getRowKey,f=t.onTriggerExpand,h=t.expandIcon,m=t.rowExpandable,g=t.expandIconColumnIndex,v=t.direction,y=t.expandRowByClick,b=t.columnWidth,w=t.fixed,x=t.scrollWidth,S=t.clientWidth,C=e.useMemo((function(){return qU((o||UU(i)||[]).slice())}),[o,i]),_=e.useMemo((function(){if(s){var t,n=C.slice();if(!n.includes($V)){var o=g||0;o>=0&&n.splice(o,0,$V)}0;var i=n.indexOf($V);n=n.filter((function(e,t){return e!==$V||t===i}));var u,p=C[i];u="left"!==w&&!w||g?"right"!==w&&!w||g!==C.length?p?p.fixed:null:"right":"left";var v=(a(t={},FU,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),a(t,"title",c),a(t,"fixed",u),a(t,"className","".concat(r,"-row-expand-icon-cell")),a(t,"width",b),a(t,"render",(function(t,n,o){var a=d(n,o),i=l.has(a),s=!m||m(n),c=h({prefixCls:r,expanded:i,expandable:s,record:n,onExpand:f});return y?e.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c})),t);return n.map((function(e){return e===$V?v:e}))}return C.filter((function(e){return e!==$V}))}),[s,C,d,l,h,v]),E=e.useMemo((function(){var e=_;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,_,v]),k=e.useMemo((function(){return"rtl"===v?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),p({fixed:n},us(e,VU))}))}(KU(E)):KU(E)}),[E,v,x]),P=e.useMemo((function(){for(var e=-1,t=k.length-1;t>=0;t-=1){var n=k[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=k[r].fixed;if("left"!==o&&!0!==o)return!0}var a=k.findIndex((function(e){return"right"===e.fixed}));if(a>=0)for(var i=a;i<k.length;i+=1){if("right"!==k[i].fixed)return!0}return!1}),[k]),A=function(t,n,r){return e.useMemo((function(){if(n&&n>0){var e=0,o=0;t.forEach((function(t){var r=WU(n,t.width);r?e+=r:o+=1}));var a=Math.max(n,r),i=Math.max(a-e,o),s=o,l=i/o,c=0,u=t.map((function(e){var t=p({},e),r=WU(n,t.width);if(r)t.width=r;else{var o=Math.floor(l);t.width=1===s?i:o,i-=o,s-=1}return c+=t.width,t}));if(c<a){var d=a/c;i=a,u.forEach((function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?i:n,i-=n}))}return[u,Math.max(c,a)]}return[t,n]}),[t,n,r])}(k,x,S),O=u(A,2),T=O[0],M=O[1];return[E,T,M,P]};function YU(t){var n,r=t.prefixCls,o=t.record,i=t.onExpand,s=t.expanded,l=t.expandable,c="".concat(r,"-row-expand-icon");if(!l)return e.createElement("span",{className:$o()(c,"".concat(r,"-row-spaced"))});return e.createElement("span",{className:$o()(c,(n={},a(n,"".concat(r,"-row-expanded"),s),a(n,"".concat(r,"-row-collapsed"),!s),n)),onClick:function(e){i(o,e),e.stopPropagation()}})}function ZU(t,n,o){var a=function(e){var t,n=e.expandable,r=us(e,RU);return!1===(t="expandable"in e?p(p({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(t),i=a.expandIcon,s=a.expandedRowKeys,l=a.defaultExpandedRowKeys,c=a.defaultExpandAllRows,d=a.expandedRowRender,h=a.onExpand,m=a.onExpandedRowsChange,g=i||YU,v=a.childrenColumnName||"children",y=e.useMemo((function(){return d?"row":!!(t.expandable&&t.internalHooks===QV&&t.expandable.__PARENT_RENDER_ICON__||n.some((function(e){return e&&"object"===r(e)&&e[v]})))&&"nest"}),[!!d,n]),b=e.useState((function(){return l||(c?function(e,t,n){var r=[];return function e(o){(o||[]).forEach((function(o,a){r.push(t(o,a)),e(o[n])}))}(e),r}(n,o,v):[])})),w=u(b,2),x=w[0],S=w[1],C=e.useMemo((function(){return new Set(s||x||[])}),[s,x]),_=e.useCallback((function(e){var t,r=o(e,n.indexOf(e)),a=C.has(r);a?(C.delete(r),t=f(C)):t=[].concat(f(C),[r]),S(t),h&&h(!a,e),m&&m(t)}),[o,C,n,h,m]);return[a,y,C,g,v,_]}function $U(t){var n=(0,e.useRef)(t),r=u((0,e.useState)({}),2)[1],o=(0,e.useRef)(null),a=(0,e.useRef)([]);return(0,e.useEffect)((function(){return function(){o.current=null}}),[]),[n.current,function(e){a.current.push(e);var t=Promise.resolve();o.current=t,t.then((function(){if(o.current===t){var e=a.current,i=n.current;a.current=[],e.forEach((function(e){n.current=e(n.current)})),o.current=null,i!==n.current&&r({})}}))}]}var QU=g()?window:null;const JU=function(t,n,r){var o=(0,e.useMemo)((function(){var e=n.length,o=function(e,r,o){for(var a=[],i=0,s=e;s!==r;s+=o)a.push(i),n[s].fixed&&(i+=t[s]||0);return a},a=o(0,e,1),i=o(e-1,-1,-1).reverse();return"rtl"===r?{left:i,right:a}:{left:a,right:i}}),[t,n,r]);return o};const eq=function(t){var n=t.className,r=t.children;return e.createElement("div",{className:n},r)};function tq(e,t,n,r){var o=Qo.unstable_batchedUpdates?function(e){Qo.unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}function nq(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var rq=function(t,n){var r,o,i=t.scrollBodyRef,s=t.onScroll,l=t.offsetScroll,c=t.container,d=eU(sU,"prefixCls"),f=(null===(r=i.current)||void 0===r?void 0:r.scrollWidth)||0,h=(null===(o=i.current)||void 0===o?void 0:o.clientWidth)||0,m=f&&h*(h/f),g=e.useRef(),v=u($U({scrollLeft:0,isHiddenScrollBar:!1}),2),y=v[0],b=v[1],w=e.useRef({delta:0,x:0}),x=u(e.useState(!1),2),S=x[0],C=x[1],_=e.useRef(null);e.useEffect((function(){return function(){Fd.cancel(_.current)}}),[]);var E=function(){C(!1)},k=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(S&&0!==n){var r=w.current.x+e.pageX-w.current.x-w.current.delta;r<=0&&(r=0),r+m>=h&&(r=h-m),s({scrollLeft:r/h*(f+2)}),w.current.x=e.pageX}else S&&C(!1)},P=function(){_.current=Fd((function(){if(i.current){var e=nq(i.current).top,t=e+i.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:nq(c).top+c.clientHeight;t-eM()<=n||e>=n-l?b((function(e){return p(p({},e),{},{isHiddenScrollBar:!0})})):b((function(e){return p(p({},e),{},{isHiddenScrollBar:!1})}))}}))},A=function(e){b((function(t){return p(p({},t),{},{scrollLeft:e/f*h||0})}))};return e.useImperativeHandle(n,(function(){return{setScrollLeft:A,checkScrollBarVisible:P}})),e.useEffect((function(){var e=tq(document.body,"mouseup",E,!1),t=tq(document.body,"mousemove",k,!1);return P(),function(){e.remove(),t.remove()}}),[m,S]),e.useEffect((function(){var e=tq(c,"scroll",P,!1),t=tq(window,"resize",P,!1);return function(){e.remove(),t.remove()}}),[c]),e.useEffect((function(){y.isHiddenScrollBar||b((function(e){var t=i.current;return t?p(p({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[y.isHiddenScrollBar]),f<=h||!m||y.isHiddenScrollBar?null:e.createElement("div",{style:{height:eM(),width:h,bottom:l},className:"".concat(d,"-sticky-scroll")},e.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-y.scrollLeft,w.current.x=0,C(!0),e.preventDefault()},ref:g,className:$o()("".concat(d,"-sticky-scroll-bar"),a({},"".concat(d,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const oq=e.forwardRef(rq);const aq=function(e){return null};const iq=function(e){return null};var sq="rc-table",lq=[],cq={};function uq(){return"No Data"}function dq(t,n){var o,i=p({rowKey:"key",prefixCls:sq,emptyText:uq},t),s=i.prefixCls,l=i.className,c=i.rowClassName,d=i.style,f=i.data,h=i.rowKey,m=i.scroll,g=i.tableLayout,v=i.direction,y=i.title,b=i.footer,w=i.summary,x=i.caption,S=i.id,C=i.showHeader,_=i.components,E=i.emptyText,k=i.onRow,P=i.onHeaderRow,A=i.onScroll,T=i.internalHooks,M=i.transformColumns,I=i.internalRefs,R=i.tailor,F=i.getContainerWidth,N=i.sticky,j=i.rowHoverable,L=void 0===j||j,B=f||lq,z=!!B.length,H=T===QV;var W=e.useCallback((function(e,t){return kR(_,e)||t}),[_]),G=e.useMemo((function(){return"function"===typeof h?h:function(e){return e&&e[h]}}),[h]),V=W(["body"]),U=function(){var t=u(e.useState(-1),2),n=t[0],r=t[1],o=u(e.useState(-1),2),a=o[0],i=o[1];return[n,a,e.useCallback((function(e,t){r(e),i(t)}),[])]}(),q=u(U,3),K=q[0],X=q[1],Y=q[2],Z=u(ZU(i,B,G),6),$=Z[0],Q=Z[1],J=Z[2],ee=Z[3],te=Z[4],ne=Z[5],re=null===m||void 0===m?void 0:m.x,oe=u(e.useState(0),2),ae=oe[0],ie=oe[1],se=u(XU(p(p(p({},i),$),{},{expandable:!!$.expandedRowRender,columnTitle:$.columnTitle,expandedKeys:J,getRowKey:G,onTriggerExpand:ne,expandIcon:ee,expandIconColumnIndex:$.expandIconColumnIndex,direction:v,scrollWidth:H&&R&&"number"===typeof re?re:null,clientWidth:ae}),H?M:null),4),le=se[0],ce=se[1],ue=se[2],de=se[3],fe=null!==ue&&void 0!==ue?ue:re,he=e.useMemo((function(){return{columns:le,flattenColumns:ce}}),[le,ce]),pe=e.useRef(),me=e.useRef(),ge=e.useRef(),ve=e.useRef();e.useImperativeHandle(n,(function(){return{nativeElement:pe.current,scrollTo:function(e){var t;if(ge.current instanceof HTMLElement){var n=e.index,r=e.top,o=e.key;if(r){var a;null===(a=ge.current)||void 0===a||a.scrollTo({top:r})}else{var i,s=null!==o&&void 0!==o?o:G(B[n]);null===(i=ge.current.querySelector('[data-row-key="'.concat(s,'"]')))||void 0===i||i.scrollIntoView()}}else null!==(t=ge.current)&&void 0!==t&&t.scrollTo&&ge.current.scrollTo(e)}}}));var ye,be,we,xe=e.useRef(),Se=u(e.useState(!1),2),Ce=Se[0],_e=Se[1],Ee=u(e.useState(!1),2),ke=Ee[0],Pe=Ee[1],Ae=u($U(new Map),2),Oe=Ae[0],Te=Ae[1],Me=uU(ce).map((function(e){return Oe.get(e)})),Ie=e.useMemo((function(){return Me}),[Me.join("_")]),Re=JU(Ie,ce,v),Fe=m&&dU(m.y),Ne=m&&dU(fe)||Boolean($.fixed),je=Ne&&ce.some((function(e){return e.fixed})),De=e.useRef(),Le=function(t,n){var o="object"===r(t)?t:{},a=o.offsetHeader,i=void 0===a?0:a,s=o.offsetSummary,l=void 0===s?0:s,c=o.offsetScroll,u=void 0===c?0:c,d=o.getContainer,f=(void 0===d?function(){return QU}:d)()||QU;return e.useMemo((function(){var e=!!t;return{isSticky:e,stickyClassName:e?"".concat(n,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:u,container:f}}),[u,i,l,n,f])}(N,s),Be=Le.isSticky,ze=Le.offsetHeader,He=Le.offsetSummary,We=Le.offsetScroll,Ve=Le.stickyClassName,Ue=Le.container,qe=e.useMemo((function(){return null===w||void 0===w?void 0:w(B)}),[w,B]),Ke=(Fe||Be)&&e.isValidElement(qe)&&qe.type===bU&&qe.props.fixed;Fe&&(be={overflowY:"scroll",maxHeight:m.y}),Ne&&(ye={overflowX:"auto"},Fe||(be={overflowY:"hidden"}),we={width:!0===fe?"auto":fe,minWidth:"100%"});var Xe=e.useCallback((function(e,t){cT(pe.current)&&Te((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),Ye=u(function(t){var n=(0,e.useRef)(t||null),r=(0,e.useRef)();function o(){window.clearTimeout(r.current)}return(0,e.useEffect)((function(){return o}),[]),[function(e){n.current=e,o(),r.current=window.setTimeout((function(){n.current=null,r.current=void 0}),100)},function(){return n.current}]}(null),2),Ze=Ye[0],$e=Ye[1];function Qe(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Je=MO((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===v,a="number"===typeof r?r:n.scrollLeft,i=n||cq;$e()&&$e()!==i||(Ze(i),Qe(a,me.current),Qe(a,ge.current),Qe(a,xe.current),Qe(a,null===(t=De.current)||void 0===t?void 0:t.setScrollLeft));var s=n||me.current;if(s){var l=s.scrollWidth,c=s.clientWidth;if(l===c)return _e(!1),void Pe(!1);o?(_e(-a<l-c),Pe(-a>0)):(_e(a>0),Pe(a<l-c))}})),et=MO((function(e){Je(e),null===A||void 0===A||A(e)})),tt=function(){Ne&&ge.current?Je({currentTarget:ge.current}):(_e(!1),Pe(!1))},nt=e.useRef(!1);e.useEffect((function(){nt.current&&tt()}),[Ne,f,le.length]),e.useEffect((function(){nt.current=!0}),[]);var rt=u(e.useState(0),2),ot=rt[0],at=rt[1],it=u(e.useState(!0),2),st=it[0],lt=it[1];e.useEffect((function(){var e,t;R&&H||(ge.current instanceof Element?at(tM(ge.current).width):at(tM(ve.current).width)),lt((e="position",t="sticky",Array.isArray(e)||void 0===t?SU(e):CU(e,t)))}),[]),e.useEffect((function(){H&&I&&(I.body.current=ge.current)}));var ct,ut=e.useCallback((function(t){return e.createElement(e.Fragment,null,e.createElement(HU,t),"top"===Ke&&e.createElement(wU,t,qe))}),[Ke,qe]),dt=e.useCallback((function(t){return e.createElement(wU,t,qe)}),[qe]),ft=W(["table"],"table"),ht=e.useMemo((function(){return g||(je?"max-content"===fe?"auto":"fixed":Fe||Be||ce.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[Fe,je,ce,g,Be]),pt={colWidths:Ie,columCount:ce.length,stickyOffsets:Re,onHeaderRow:P,fixHeader:Fe,scroll:m},mt=e.useMemo((function(){return z?null:"function"===typeof E?E():E}),[z,E]),gt=e.createElement(IU,{data:B,measureColumnWidth:Fe||Ne||Be}),vt=e.createElement(jU,{colWidths:ce.map((function(e){return e.width})),columns:ce}),yt=null!==x&&void 0!==x?e.createElement("caption",{className:"".concat(s,"-caption")},x):void 0,bt=af(i,{data:!0}),wt=af(i,{aria:!0});if(Fe||Be){var xt;"function"===typeof V?(xt=V(B,{scrollbarSize:ot,ref:ge,onScroll:Je}),pt.colWidths=ce.map((function(e,t){var n=e.width,r=t===ce.length-1?n-ot:n;return"number"!==typeof r||Number.isNaN(r)?0:r}))):xt=e.createElement("div",{style:p(p({},ye),be),onScroll:et,ref:ge,className:$o()("".concat(s,"-body"))},e.createElement(ft,Ge({style:p(p({},we),{},{tableLayout:ht})},wt),yt,vt,gt,!Ke&&qe&&e.createElement(wU,{stickyOffsets:Re,flattenColumns:ce},qe)));var St=p(p(p({noData:!B.length,maxContentScroll:Ne&&"max-content"===fe},pt),he),{},{direction:v,stickyClassName:Ve,onScroll:Je});ct=e.createElement(e.Fragment,null,!1!==C&&e.createElement(BU,Ge({},St,{stickyTopOffset:ze,className:"".concat(s,"-header"),ref:me}),ut),xt,Ke&&"top"!==Ke&&e.createElement(BU,Ge({},St,{stickyBottomOffset:He,className:"".concat(s,"-summary"),ref:xe}),dt),Be&&ge.current&&ge.current instanceof Element&&e.createElement(oq,{ref:De,offsetScroll:We,scrollBodyRef:ge,onScroll:Je,container:Ue}))}else ct=e.createElement("div",{style:p(p({},ye),be),className:$o()("".concat(s,"-content")),onScroll:Je,ref:ge},e.createElement(ft,Ge({style:p(p({},we),{},{tableLayout:ht})},wt),yt,vt,!1!==C&&e.createElement(HU,Ge({},pt,he)),gt,qe&&e.createElement(wU,{stickyOffsets:Re,flattenColumns:ce},qe)));var Ct=e.createElement("div",Ge({className:$o()(s,l,(o={},a(o,"".concat(s,"-rtl"),"rtl"===v),a(o,"".concat(s,"-ping-left"),Ce),a(o,"".concat(s,"-ping-right"),ke),a(o,"".concat(s,"-layout-fixed"),"fixed"===g),a(o,"".concat(s,"-fixed-header"),Fe),a(o,"".concat(s,"-fixed-column"),je),a(o,"".concat(s,"-fixed-column-gapped"),je&&de),a(o,"".concat(s,"-scroll-horizontal"),Ne),a(o,"".concat(s,"-has-fix-left"),ce[0]&&ce[0].fixed),a(o,"".concat(s,"-has-fix-right"),ce[ce.length-1]&&"right"===ce[ce.length-1].fixed),o)),style:d,id:S,ref:pe},bt),y&&e.createElement(eq,{className:"".concat(s,"-title")},y(B)),e.createElement("div",{ref:ve,className:"".concat(s,"-container")},ct),b&&e.createElement(eq,{className:"".concat(s,"-footer")},b(B)));Ne&&(Ct=e.createElement(EO,{onResize:function(e){var t,n=e.width;null===(t=De.current)||void 0===t||t.checkScrollBarVisible();var r=pe.current?pe.current.offsetWidth:n;H&&F&&pe.current&&(r=F(pe.current,r)||r),r!==ae&&(tt(),ie(r))}},Ct));var _t=function(e,t,n){var r=e.map((function(r,o){return mU(o,o,e,t,n)}));return O((function(){return r}),[r],(function(e,t){return!D(e,t)}))}(ce,Re,v),Et=e.useMemo((function(){return{scrollX:fe,prefixCls:s,getComponent:W,scrollbarSize:ot,direction:v,fixedInfoList:_t,isSticky:Be,supportSticky:st,componentWidth:ae,fixHeader:Fe,fixColumn:je,horizonScroll:Ne,tableLayout:ht,rowClassName:c,expandedRowClassName:$.expandedRowClassName,expandIcon:ee,expandableType:Q,expandRowByClick:$.expandRowByClick,expandedRowRender:$.expandedRowRender,onTriggerExpand:ne,expandIconColumnIndex:$.expandIconColumnIndex,indentSize:$.indentSize,allColumnsFixedLeft:ce.every((function(e){return"left"===e.fixed})),emptyNode:mt,columns:le,flattenColumns:ce,onColumnResize:Xe,hoverStartRow:K,hoverEndRow:X,onHover:Y,rowExpandable:$.rowExpandable,onRow:k,getRowKey:G,expandedKeys:J,childrenColumnName:te,rowHoverable:L}}),[fe,s,W,ot,v,_t,Be,st,ae,Fe,je,Ne,ht,c,$.expandedRowClassName,ee,Q,$.expandRowByClick,$.expandedRowRender,ne,$.expandIconColumnIndex,$.indentSize,mt,le,ce,Xe,K,X,Y,$.rowExpandable,k,G,J,te,L]);return e.createElement(sU.Provider,{value:Et},Ct)}var fq=e.forwardRef(dq);function hq(e){return oU(fq,e)}var pq=hq();pq.EXPAND_COLUMN=$V,pq.INTERNAL_HOOKS=QV,pq.Column=aq,pq.ColumnGroup=iq,pq.Summary=xU;const mq=pq;var gq=e.forwardRef((function(t,n){var r=t.height,o=t.offsetY,i=t.offsetX,s=t.children,l=t.prefixCls,c=t.onInnerResize,u=t.innerProps,d=t.rtl,f=t.extra,h={},m={display:"flex",flexDirection:"column"};return void 0!==o&&(h={height:r,position:"relative",overflow:"hidden"},m=p(p({},m),{},a(a(a(a(a({transform:"translateY(".concat(o,"px)")},d?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),e.createElement("div",{style:h},e.createElement(EO,{onResize:function(e){e.offsetHeight&&c&&c()}},e.createElement("div",Ge({style:m,className:$o()(a({},"".concat(l,"-holder-inner"),l)),ref:n},u),s,f)))}));gq.displayName="Filler";const vq=gq;function yq(t){var n=t.children,r=t.setRef,o=e.useCallback((function(e){r(e)}),[]);return e.cloneElement(n,{ref:o})}function bq(t,n,r){var o=u(e.useState(t),2),a=o[0],i=o[1],s=u(e.useState(null),2),l=s[0],c=s[1];return e.useEffect((function(){var e=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(a-i),d=0;d<o.length;d+=1){var f=l(r[d]);if(f!==l(o[d])){c=d,u=u||f!==l(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(a||[],t||[],n);void 0!==(null===e||void 0===e?void 0:e.index)&&(null===r||void 0===r||r(e.index),c(t[e.index])),i(t)}),[t]),[l]}const wq="object"===("undefined"===typeof navigator?"undefined":r(navigator))&&/Firefox/i.test(navigator.userAgent),xq=function(t,n,r,o){var a=(0,e.useRef)(!1),i=(0,e.useRef)(null);var s=(0,e.useRef)({top:t,bottom:n,left:r,right:o});return s.current.top=t,s.current.bottom=n,s.current.left=r,s.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(i.current),a.current=!1):r&&!a.current||(clearTimeout(i.current),a.current=!0,i.current=setTimeout((function(){a.current=!1}),50)),!a.current&&r}};function Sq(t,n,r,o,a,i,s){var l=(0,e.useRef)(0),c=(0,e.useRef)(null),u=(0,e.useRef)(null),d=(0,e.useRef)(!1),f=xq(n,r,o,a);var h=(0,e.useRef)(null),p=(0,e.useRef)(null);return[function(e){if(t){Fd.cancel(p.current),p.current=Fd((function(){h.current=null}),2);var n=e.deltaX,r=e.deltaY,o=e.shiftKey,a=n,m=r;("sx"===h.current||!h.current&&o&&r&&!n)&&(a=r,m=0,h.current="sx");var g=Math.abs(a),v=Math.abs(m);null===h.current&&(h.current=i&&g>v?"x":"y"),"y"===h.current?function(e,t){Fd.cancel(c.current),l.current+=t,u.current=t,f(!1,t)||(wq||e.preventDefault(),c.current=Fd((function(){var e=d.current?10:1;s(l.current*e),l.current=0})))}(e,m):function(e,t){s(t,!0),wq||e.preventDefault()}(e,a)}},function(e){t&&(d.current=e.detail===u.current)}]}var Cq=function(){function e(){L(this,e),a(this,"maps",void 0),a(this,"id",0),this.maps=Object.create(null)}return z(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();const _q=Cq;var Eq=14/15;var kq=10;function Pq(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var Aq=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.rtl,i=t.scrollOffset,s=t.scrollRange,l=t.onStartMove,c=t.onStopMove,d=t.onScroll,f=t.horizontal,h=t.spinSize,m=t.containerSize,g=t.style,v=t.thumbStyle,y=u(e.useState(!1),2),b=y[0],w=y[1],x=u(e.useState(null),2),S=x[0],C=x[1],_=u(e.useState(null),2),E=_[0],k=_[1],P=!o,A=e.useRef(),O=e.useRef(),T=u(e.useState(!1),2),M=T[0],I=T[1],R=e.useRef(),F=function(){clearTimeout(R.current),I(!0),R.current=setTimeout((function(){I(!1)}),3e3)},N=s-m||0,j=m-h||0,D=e.useMemo((function(){return 0===i||0===N?0:i/N*j}),[i,N,j]),L=e.useRef({top:D,dragging:b,pageY:S,startTop:E});L.current={top:D,dragging:b,pageY:S,startTop:E};var B=function(e){w(!0),C(Pq(e,f)),k(L.current.top),l(),e.stopPropagation(),e.preventDefault()};e.useEffect((function(){var e=function(e){e.preventDefault()},t=A.current,n=O.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",B,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",B)}}),[]);var z=e.useRef();z.current=N;var H=e.useRef();H.current=j,e.useEffect((function(){if(b){var e,t=function(t){var n=L.current,r=n.dragging,o=n.pageY,a=n.startTop;Fd.cancel(e);var i=A.current.getBoundingClientRect(),s=m/(f?i.width:i.height);if(r){var l=(Pq(t,f)-o)*s,c=a;!P&&f?c-=l:c+=l;var u=z.current,h=H.current,p=h?c/h:0,g=Math.ceil(p*u);g=Math.max(g,0),g=Math.min(g,u),e=Fd((function(){d(g,f)}))}},n=function(){w(!1),c()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Fd.cancel(e)}}}),[b]),e.useEffect((function(){return F(),function(){clearTimeout(R.current)}}),[i]),e.useImperativeHandle(n,(function(){return{delayHidden:F}}));var W="".concat(r,"-scrollbar"),G={position:"absolute",visibility:M?null:"hidden"},V={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(G.height=8,G.left=0,G.right=0,G.bottom=0,V.height="100%",V.width=h,P?V.left=D:V.right=D):(G.width=8,G.top=0,G.bottom=0,P?G.right=0:G.left=0,V.width="100%",V.height=h,V.top=D),e.createElement("div",{ref:A,className:$o()(W,a(a(a({},"".concat(W,"-horizontal"),f),"".concat(W,"-vertical"),!f),"".concat(W,"-visible"),M)),style:p(p({},G),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:F},e.createElement("div",{ref:O,className:$o()("".concat(W,"-thumb"),a({},"".concat(W,"-thumb-moving"),b)),style:p(p({},V),v),onMouseDown:B}))}));const Oq=Aq;var Tq=20;function Mq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Tq),Math.floor(t)}var Iq=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Rq=[],Fq={overflowY:"auto",overflowAnchor:"none"};function Nq(t,n){var o=t.prefixCls,i=void 0===o?"rc-virtual-list":o,s=t.className,l=t.height,c=t.itemHeight,d=t.fullHeight,f=void 0===d||d,h=t.style,m=t.data,g=t.children,v=t.itemKey,y=t.virtual,b=t.direction,w=t.scrollWidth,x=t.component,S=void 0===x?"div":x,C=t.onScroll,_=t.onVirtualScroll,E=t.onVisibleChange,k=t.innerProps,P=t.extraRender,A=t.styles,O=us(t,Iq),T=e.useCallback((function(e){return"function"===typeof v?v(e):null===e||void 0===e?void 0:e[v]}),[v]),M=function(t,n,r){var o=u(e.useState(0),2),a=o[0],i=o[1],s=(0,e.useRef)(new Map),l=(0,e.useRef)(new _q),c=(0,e.useRef)();function d(){Fd.cancel(c.current)}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){s.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Yu(e),r=n.offsetHeight;l.current.get(t)!==r&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():c.current=Fd(t)}return(0,e.useEffect)((function(){return d}),[]),[function(e,o){var a=t(e),i=s.current.get(a);o?(s.current.set(a,o),f()):s.current.delete(a),!i!==!o&&(o?null===n||void 0===n||n(e):null===r||void 0===r||r(e))},f,l.current,a]}(T,null,null),I=u(M,4),R=I[0],F=I[1],N=I[2],j=I[3],D=!(!1===y||!l||!c),L=e.useMemo((function(){return Object.values(N.maps).reduce((function(e,t){return e+t}),0)}),[N.id,N.maps]),B=D&&m&&(Math.max(c*m.length,L)>l||!!w),z="rtl"===b,H=$o()(i,a({},"".concat(i,"-rtl"),z),s),W=m||Rq,G=(0,e.useRef)(),V=(0,e.useRef)(),U=(0,e.useRef)(),q=u((0,e.useState)(0),2),K=q[0],X=q[1],Y=u((0,e.useState)(0),2),Z=Y[0],$=Y[1],Q=u((0,e.useState)(!1),2),J=Q[0],ee=Q[1],te=function(){ee(!0)},ne=function(){ee(!1)},re={getKey:T};function oe(e){X((function(t){var n=function(e){var t=e;Number.isNaN(xe.current)||(t=Math.min(t,xe.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return G.current.scrollTop=n,n}))}var ae=(0,e.useRef)({start:0,end:W.length}),ie=(0,e.useRef)(),se=u(bq(W,T),1)[0];ie.current=se;var le=e.useMemo((function(){if(!D)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};var e;if(!B)return{scrollHeight:(null===(e=V.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:W.length-1,offset:void 0};for(var t,n,r,o=0,a=W.length,i=0;i<a;i+=1){var s=W[i],u=T(s),d=N.get(u),f=o+(void 0===d?c:d);f>=K&&void 0===t&&(t=i,n=o),f>K+l&&void 0===r&&(r=i),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(l/c)),void 0===r&&(r=W.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,W.length-1),offset:n}}),[B,D,K,W,j,l]),ce=le.scrollHeight,ue=le.start,de=le.end,fe=le.offset;ae.current.start=ue,ae.current.end=de;var he=u(e.useState({width:0,height:l}),2),pe=he[0],me=he[1],ge=(0,e.useRef)(),ve=(0,e.useRef)(),ye=e.useMemo((function(){return Mq(pe.width,w)}),[pe.width,w]),be=e.useMemo((function(){return Mq(pe.height,ce)}),[pe.height,ce]),we=ce-l,xe=(0,e.useRef)(we);xe.current=we;var Se=K<=0,Ce=K>=we,_e=Z<=0,Ee=Z>=w,ke=xq(Se,Ce,_e,Ee),Pe=function(){return{x:z?-Z:Z,y:K}},Ae=(0,e.useRef)(Pe()),Te=MO((function(e){if(_){var t=p(p({},Pe()),e);Ae.current.x===t.x&&Ae.current.y===t.y||(_(t),Ae.current=t)}}));function Me(e,t){var n=e;t?((0,Qo.flushSync)((function(){$(n)})),Te()):oe(n)}var Ie=function(e){var t=e,n=w?w-pe.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Re=MO((function(e,t){t?((0,Qo.flushSync)((function(){$((function(t){return Ie(t+(z?-e:e))}))})),Te()):oe((function(t){return t+e}))})),Fe=u(Sq(D,Se,Ce,_e,Ee,!!w,Re),2),Ne=Fe[0],je=Fe[1];!function(t,n,r){var o,a=(0,e.useRef)(!1),i=(0,e.useRef)(0),s=(0,e.useRef)(0),l=(0,e.useRef)(null),c=(0,e.useRef)(null),u=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=i.current-t,l=s.current-n,u=Math.abs(o)>Math.abs(l);u?i.current=t:s.current=n,r(u,u?o:l)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){u?o*=Eq:l*=Eq;var e=Math.floor(u?o:l);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)}),16)}},d=function(){a.current=!1,o()},f=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageX),s.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};o=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},Oe((function(){return t&&n.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(c.current)}}),[t])}(D,G,(function(e,t,n){return!ke(e,t,n)&&(Ne({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),Oe((function(){function e(e){D&&e.preventDefault()}var t=G.current;return t.addEventListener("wheel",Ne,{passive:!1}),t.addEventListener("DOMMouseScroll",je,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Ne),t.removeEventListener("DOMMouseScroll",je),t.removeEventListener("MozMousePixelScroll",e)}}),[D]),Oe((function(){if(w){var e=Ie(Z);$(e),Te({x:e})}}),[pe.width,w]);var De=function(){var e,t;null===(e=ge.current)||void 0===e||e.delayHidden(),null===(t=ve.current)||void 0===t||t.delayHidden()},Le=function(t,n,o,a,i,s,l,c){var d=e.useRef(),f=u(e.useState(null),2),h=f[0],m=f[1];return Oe((function(){if(h&&h.times<kq){if(!t.current)return void m((function(e){return p({},e)}));s();var e=h.targetAlign,r=h.originAlign,c=h.index,u=h.offset,d=t.current.clientHeight,f=!1,g=e,v=null;if(d){for(var y=e||r,b=0,w=0,x=0,S=Math.min(n.length-1,c),C=0;C<=S;C+=1){var _=i(n[C]);w=b;var E=o.get(_);b=x=w+(void 0===E?a:E)}for(var k="top"===y?u:d-u,P=S;P>=0;P-=1){var A=i(n[P]),O=o.get(A);if(void 0===O){f=!0;break}if((k-=O)<=0)break}switch(y){case"top":v=w-u;break;case"bottom":v=x-d+u;break;default:var T=t.current.scrollTop;w<T?g="top":x>T+d&&(g="bottom")}null!==v&&l(v),v!==h.lastTop&&(f=!0)}f&&m(p(p({},h),{},{times:h.times+1,targetAlign:g,lastTop:v}))}}),[h,t.current]),function(e){if(null!==e&&void 0!==e){if(Fd.cancel(d.current),"number"===typeof e)l(e);else if(e&&"object"===r(e)){var t,o=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var a=e.offset;m({times:0,index:t,offset:void 0===a?0:a,originAlign:o})}}else c()}}(G,W,N,c,T,(function(){return F(!0)}),oe,De);e.useImperativeHandle(n,(function(){return{nativeElement:U.current,getScrollInfo:Pe,scrollTo:function(e){var t;(t=e)&&"object"===r(t)&&("left"in t||"top"in t)?(void 0!==e.left&&$(Ie(e.left)),Le(e.top)):Le(e)}}})),Oe((function(){if(E){var e=W.slice(ue,de+1);E(e,W)}}),[ue,de,W]);var Be=function(t,n,r,o){var a=u(e.useMemo((function(){return[new Map,[]]}),[t,r.id,o]),2),i=a[0],s=a[1];return function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,l=i.get(e),c=i.get(a);if(void 0===l||void 0===c)for(var u=t.length,d=s.length;d<u;d+=1){var f,h=t[d],p=n(h);i.set(p,d);var m=null!==(f=r.get(p))&&void 0!==f?f:o;if(s[d]=(s[d-1]||0)+m,p===e&&(l=d),p===a&&(c=d),void 0!==l&&void 0!==c)break}return{top:s[l-1]||0,bottom:s[c]}}}(W,T,N,c),ze=null===P||void 0===P?void 0:P({start:ue,end:de,virtual:B,offsetX:Z,offsetY:fe,rtl:z,getSize:Be}),He=function(t,n,r,o,a,i,s,l){var c=l.getKey;return t.slice(n,r+1).map((function(t,r){var l=s(t,n+r,{style:{width:o},offsetX:a}),u=c(t);return e.createElement(yq,{key:u,setRef:function(e){return i(t,e)}},l)}))}(W,ue,de,w,Z,R,g,re),We=null;l&&(We=p(a({},f?"height":"maxHeight",l),Fq),D&&(We.overflowY="hidden",w&&(We.overflowX="hidden"),J&&(We.pointerEvents="none")));var Ve={};return z&&(Ve.dir="rtl"),e.createElement("div",Ge({ref:U,style:p(p({},h),{},{position:"relative"}),className:H},Ve,O),e.createElement(EO,{onResize:function(e){me({width:e.offsetWidth,height:e.offsetHeight})}},e.createElement(S,{className:"".concat(i,"-holder"),style:We,ref:G,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==K&&oe(t),null===C||void 0===C||C(e),Te()},onMouseEnter:De},e.createElement(vq,{prefixCls:i,height:ce,offsetX:Z,offsetY:fe,scrollWidth:w,onInnerResize:F,ref:V,innerProps:k,rtl:z,extra:ze},He))),B&&ce>l&&e.createElement(Oq,{ref:ge,prefixCls:i,scrollOffset:K,scrollRange:ce,rtl:z,onScroll:Me,onStartMove:te,onStopMove:ne,spinSize:be,containerSize:pe.height,style:null===A||void 0===A?void 0:A.verticalScrollBar,thumbStyle:null===A||void 0===A?void 0:A.verticalScrollBarThumb}),B&&w>pe.width&&e.createElement(Oq,{ref:ve,prefixCls:i,scrollOffset:Z,scrollRange:w,rtl:z,onScroll:Me,onStartMove:te,onStopMove:ne,spinSize:ye,containerSize:pe.width,horizontal:!0,style:null===A||void 0===A?void 0:A.horizontalScrollBar,thumbStyle:null===A||void 0===A?void 0:A.horizontalScrollBarThumb}))}var jq=e.forwardRef(Nq);jq.displayName="List";const Dq=jq;var Lq=JV(null),Bq=JV(null);const zq=function(t){var n=t.rowInfo,r=t.column,o=t.colIndex,a=t.indent,i=t.index,s=t.component,l=t.renderIndex,c=t.record,u=t.style,d=t.className,f=t.inverse,h=t.getHeight,m=r.render,g=r.dataIndex,v=r.className,y=r.width,b=eU(Bq,["columnsOffset"]).columnsOffset,w=AU(n,r,o,a,i),x=w.key,S=w.fixedInfo,C=w.appendCellNode,_=w.additionalCellProps,E=_.style,k=_.colSpan,P=void 0===k?1:k,A=_.rowSpan,O=void 0===A?1:A,T=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(o-1,P,b),M=P>1?y-T:0,I=p(p(p({},E),u),{},{flex:"0 0 ".concat(T,"px"),width:"".concat(T,"px"),marginRight:M,pointerEvents:"auto"}),R=e.useMemo((function(){return f?O<=1:0===P||0===O||O>1}),[O,P,f]);R?I.visibility="hidden":f&&(I.height=null===h||void 0===h?void 0:h(O));var F=R?function(){return null}:m,N={};return 0!==O&&0!==P||(N.rowSpan=1,N.colSpan=1),e.createElement(pU,Ge({className:$o()(v,d),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:s,prefixCls:n.prefixCls,key:x,record:c,index:i,renderIndex:l,dataIndex:g,render:F,shouldCellUpdate:r.shouldCellUpdate},S,{appendNode:C,additionalProps:p(p({},_),{},{style:I},N)}))};var Hq=["data","index","className","rowKey","style","extra","getHeight"],Wq=e.forwardRef((function(t,n){var r,o=t.data,i=t.index,s=t.className,l=t.rowKey,c=t.style,u=t.extra,d=t.getHeight,f=us(t,Hq),h=o.record,m=o.indent,g=o.index,v=eU(sU,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=v.scrollX,b=v.flattenColumns,w=v.prefixCls,x=v.fixColumn,S=v.componentWidth,C=eU(Lq,["getComponent"]).getComponent,_=kU(h,l,i,m),E=C(["body","row"],"div"),k=C(["body","cell"],"div"),P=_.rowSupportExpand,A=_.expanded,O=_.rowProps,T=_.expandedRowRender,M=_.expandedRowClassName;if(P&&A){var I=T(h,i,m+1,A),R=null===M||void 0===M?void 0:M(h,i,m),F={};x&&(F={style:a({},"--virtual-width","".concat(S,"px"))});var N="".concat(w,"-expanded-row-cell");r=e.createElement(E,{className:$o()("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(m+1),R)},e.createElement(pU,{component:k,prefixCls:w,className:$o()(N,a({},"".concat(N,"-fixed"),x)),additionalProps:F},I))}var j=p(p({},c),{},{width:y});u&&(j.position="absolute",j.pointerEvents="none");var D=e.createElement(E,Ge({},O,f,{"data-row-key":l,ref:P?null:n,className:$o()(s,"".concat(w,"-row"),null===O||void 0===O?void 0:O.className,a({},"".concat(w,"-row-extra"),u)),style:p(p({},j),null===O||void 0===O?void 0:O.style)}),b.map((function(t,n){return e.createElement(zq,{key:n,component:k,rowInfo:_,column:t,colIndex:n,indent:m,index:i,renderIndex:g,record:h,inverse:u,getHeight:d})})));return P?e.createElement("div",{ref:n},D,r):D}));const Gq=aU(Wq);var Vq=e.forwardRef((function(t,n){var o=t.data,a=t.onScroll,i=eU(sU,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),s=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,d=i.expandedKeys,f=i.prefixCls,h=i.childrenColumnName,p=i.emptyNode,m=i.scrollX,g=eU(Lq),v=g.sticky,y=g.scrollY,b=g.listItemHeight,w=g.getComponent,x=g.onScroll,S=e.useRef(),C=EU(o,h,d,c),_=e.useMemo((function(){var e=0;return s.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[s]),E=e.useMemo((function(){return _.map((function(e){return e[2]}))}),[_]);e.useEffect((function(){_.forEach((function(e){var t=u(e,2),n=t[0],r=t[1];l(n,r)}))}),[_]),e.useImperativeHandle(n,(function(){var e={scrollTo:function(e){var t;null===(t=S.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=S.current)||void 0===t||t.scrollTo({left:e})}}),e}));var k,P=function(e,t){var n,r=null===(n=C[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var a,i=o(r,t);return null!==(a=null===i||void 0===i?void 0:i.rowSpan)&&void 0!==a?a:1}return 1},A=e.useMemo((function(){return{columnsOffset:E}}),[E]),O="".concat(f,"-tbody"),T=w(["body","wrapper"]),M=w(["body","row"],"div"),I=w(["body","cell"],"div");if(C.length){var R={};v&&(R.position="sticky",R.bottom=0,"object"===r(v)&&v.offsetScroll&&(R.bottom=v.offsetScroll)),k=e.createElement(Dq,{fullHeight:!1,ref:S,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:R},className:O,height:y,itemHeight:b||24,data:C,itemKey:function(e){return c(e.record)},component:T,scrollWidth:m,onVirtualScroll:function(e){var t=e.x;a({scrollLeft:t})},onScroll:x,extraRender:function(t){var n=t.start,r=t.end,o=t.getSize,a=t.offsetY;if(r<0)return null;for(var i=s.filter((function(e){return 0===P(e,n)})),l=n,u=function(e){if(i=i.filter((function(t){return 0===P(t,e)})),!i.length)return l=e,1},d=n;d>=0&&!u(d);d-=1);for(var f=s.filter((function(e){return 1!==P(e,r)})),h=r,p=function(e){if(f=f.filter((function(t){return 1!==P(t,e)})),!f.length)return h=Math.max(e-1,r),1},m=r;m<C.length&&!p(m);m+=1);for(var g=[],v=function(e){if(!C[e])return 1;s.some((function(t){return P(t,e)>1}))&&g.push(e)},y=l;y<=h;y+=1)v(y);var b=g.map((function(t){var n=C[t],r=c(n.record,t),i=o(r);return e.createElement(Gq,{key:t,data:n,rowKey:r,index:t,style:{top:-a+i.top},extra:!0,getHeight:function(e){var n=t+e-1,a=c(C[n].record,n),i=o(r,a);return i.bottom-i.top}})}));return b}},(function(t,n,r){var o=c(t.record,n);return e.createElement(Gq,{data:t,rowKey:o,index:n,style:r.style})}))}else k=e.createElement(M,{className:$o()("".concat(f,"-placeholder"))},e.createElement(pU,{component:I,prefixCls:f},p));return e.createElement(Bq.Provider,{value:A},k)}));const Uq=aU(Vq);var qq=function(t,n){var r=n.ref,o=n.onScroll;return e.createElement(Uq,{ref:r,data:t,onScroll:o})};function Kq(t,n){var r=t.columns,o=t.scroll,a=t.sticky,i=t.prefixCls,s=void 0===i?sq:i,l=t.className,c=t.listItemHeight,u=t.components,d=t.onScroll,f=o||{},h=f.x,m=f.y;"number"!==typeof h&&(h=1),"number"!==typeof m&&(m=500);var g=MO((function(e,t){return kR(u,e)||t})),v=MO(d),y=e.useMemo((function(){return{sticky:a,scrollY:m,listItemHeight:c,getComponent:g,onScroll:v}}),[a,m,c,g,v]);return e.createElement(Lq.Provider,{value:y},e.createElement(mq,Ge({},t,{className:$o()(l,"".concat(s,"-virtual")),scroll:p(p({},o),{},{x:h}),components:p(p({},u),{},{body:qq}),columns:r,internalHooks:QV,tailor:!0,ref:n})))}var Xq=e.forwardRef(Kq);function Yq(e){return oU(Xq,e)}Yq();const Zq=function(e){return null};const $q=function(e){return null};function Qq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jq(e,t){if(e){if("string"===typeof e)return Qq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qq(e,t):void 0}}function eK(e){return function(e){if(Array.isArray(e))return Qq(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Jq(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tK(e){return tK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tK(e)}var nK={},rK=[];function oK(e,t){}function aK(e,t){}function iK(e,t,n){t||nK[n]||(e(!1,n),nK[n]=!0)}function sK(e,t){iK(oK,e,t)}sK.preMessage=function(e){rK.push(e)},sK.resetWarned=function(){nK={}},sK.noteOnce=function(e,t){iK(aK,e,t)};const lK=sK;function cK(){return cK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cK.apply(this,arguments)}function uK(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dK(e){var t=function(e,t){if("object"!=tK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tK(t)?t:t+""}function fK(e,t,n){return(t=dK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hK(Object(n),!0).forEach((function(t){fK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dK(r.key),r)}}function vK(e,t,n){return t&&gK(e.prototype,t),n&&gK(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yK(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bK(e,t){return bK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bK(e,t)}function wK(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bK(e,t)}function xK(e){return xK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xK(e)}function SK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(SK=function(){return!!e})()}function CK(e){var t=SK();return function(){var n,r=xK(e);if(t){var o=xK(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tK(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yK(e)}(this,n)}}var _K="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function EK(e,t){return 0===e.indexOf(t)}function kK(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:pK({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||EK(n,"aria-"))||t.data&&EK(n,"data-")||t.attr&&_K.includes(n))&&(r[n]=e[n])})),r}var PK=e.createContext(null),AK=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),s=[],l=0;l<r;l+=1)s.push(e.createElement("span",{key:l,className:$o()(i,fK(fK({},"".concat(i,"-start"),o[l]),"".concat(i,"-end"),a[l]))}));return e.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const OK=e.memo(AK);function TK(e,t){return e[t]}function MK(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,(function(e){(void 0!==e&&null!==e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(MK(e)):(0,na.isFragment)(e)&&e.props?r=r.concat(MK(e.props.children,n)):r.push(e))})),r}var IK=["children"];function RK(e,t){return"".concat(e,"-").concat(t)}function FK(e,t){return null!==e&&void 0!==e?e:t}function NK(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function jK(e){return function e(t){return MK(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return lK(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,a=pK({key:n},uK(r,IK)),i=e(o);return i.length&&(a.children=i),a})).filter((function(e){return e}))}(e)}function DK(e,t,n){var r=NK(n),o=r._title,a=r.key,i=r.children,s=new Set(!0===t?[]:t),l=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(c,u){for(var d,f=RK(r?r.pos:"0",u),h=FK(c[a],f),p=0;p<o.length;p+=1){var m=o[p];if(void 0!==c[m]){d=c[m];break}}var g=Object.assign(function(e,t){var n=pK({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}(c,[].concat(eK(o),[a,i])),{title:d,key:h,parent:r,pos:f,children:null,data:c,isStart:[].concat(eK(r?r.isStart:[]),[0===u]),isEnd:[].concat(eK(r?r.isEnd:[]),[u===n.length-1])});return l.push(g),!0===t||s.has(h)?g.children=e(c[i]||[],g):g.children=[],g}))}(e),l}function LK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,l=a||(arguments.length>2?arguments[2]:void 0),c={},u={},d={posEntities:c,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var r,o=("object"===tK(n)?n:{externalGetKey:n})||{},a=o.childrenPropName,i=o.externalGetKey,s=NK(o.fieldNames),l=s.key,c=s.children,u=a||c;i?"string"===typeof i?r=function(e){return e[i]}:"function"===typeof i&&(r=function(e){return i(e)}):r=function(e,t){return FK(e[l],t)},function n(o,a,i,s){var l=o?o[u]:e,c=o?RK(i.pos,a):"0",d=o?[].concat(eK(s),[o]):[];if(o){var f=r(o,c),h={node:o,index:a,pos:c,key:f,parentPos:i.node?i.pos:null,level:i.level+1,nodes:d};t(h)}l&&l.forEach((function(e,t){n(e,t,{node:o,pos:c,level:i?i.level+1:-1},d)}))}(null)}(e,(function(e){var t=e.node,n=e.index,o=e.pos,a=e.key,i=e.parentPos,s=e.level,l={node:t,nodes:e.nodes,index:n,key:a,pos:o,level:s},f=FK(a,o);c[o]=l,u[f]=l,l.parent=c[i],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),r&&r(l,d)}),{externalGetKey:l,childrenPropName:i,fieldNames:s}),o&&o(d),d}function BK(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=TK(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function zK(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,h=e.eventKey,p=pK(pK({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return lK(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}var HK=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],WK="open",GK="close",VK=function(t){wK(r,t);var n=CK(r);function r(){var t;mK(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return fK(yK(t=n.call.apply(n,[this].concat(a))),"state",{dragNodeHighlight:!1}),fK(yK(t),"selectHandle",void 0),fK(yK(t),"cacheIndent",void 0),fK(yK(t),"onSelectorClick",(function(e){(0,t.props.context.onNodeClick)(e,zK(t.props)),t.isSelectable()?t.onSelect(e):t.onCheck(e)})),fK(yK(t),"onSelectorDoubleClick",(function(e){(0,t.props.context.onNodeDoubleClick)(e,zK(t.props))})),fK(yK(t),"onSelect",(function(e){t.isDisabled()||(0,t.props.context.onNodeSelect)(e,zK(t.props))})),fK(yK(t),"onCheck",(function(e){if(!t.isDisabled()){var n=t.props,r=n.disableCheckbox,o=n.checked,a=t.props.context.onNodeCheck;if(t.isCheckable()&&!r){var i=!o;a(e,zK(t.props),i)}}})),fK(yK(t),"onMouseEnter",(function(e){(0,t.props.context.onNodeMouseEnter)(e,zK(t.props))})),fK(yK(t),"onMouseLeave",(function(e){(0,t.props.context.onNodeMouseLeave)(e,zK(t.props))})),fK(yK(t),"onContextMenu",(function(e){(0,t.props.context.onNodeContextMenu)(e,zK(t.props))})),fK(yK(t),"onDragStart",(function(e){var n=t.props.context.onNodeDragStart;e.stopPropagation(),t.setState({dragNodeHighlight:!0}),n(e,yK(t));try{e.dataTransfer.setData("text/plain","")}catch(r){}})),fK(yK(t),"onDragEnter",(function(e){var n=t.props.context.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),n(e,yK(t))})),fK(yK(t),"onDragOver",(function(e){var n=t.props.context.onNodeDragOver;e.preventDefault(),e.stopPropagation(),n(e,yK(t))})),fK(yK(t),"onDragLeave",(function(e){var n=t.props.context.onNodeDragLeave;e.stopPropagation(),n(e,yK(t))})),fK(yK(t),"onDragEnd",(function(e){var n=t.props.context.onNodeDragEnd;e.stopPropagation(),t.setState({dragNodeHighlight:!1}),n(e,yK(t))})),fK(yK(t),"onDrop",(function(e){var n=t.props.context.onNodeDrop;e.preventDefault(),e.stopPropagation(),t.setState({dragNodeHighlight:!1}),n(e,yK(t))})),fK(yK(t),"onExpand",(function(e){var n=t.props,r=n.loading,o=n.context.onNodeExpand;r||o(e,zK(t.props))})),fK(yK(t),"setSelectHandle",(function(e){t.selectHandle=e})),fK(yK(t),"getNodeState",(function(){var e=t.props.expanded;return t.isLeaf()?null:e?WK:GK})),fK(yK(t),"hasChildren",(function(){var e=t.props.eventKey;return!!((TK(t.props.context.keyEntities,e)||{}).children||[]).length})),fK(yK(t),"isLeaf",(function(){var e=t.props,n=e.isLeaf,r=e.loaded,o=t.props.context.loadData,a=t.hasChildren();return!1!==n&&(n||!o&&!a||o&&r&&!a)})),fK(yK(t),"isDisabled",(function(){var e=t.props.disabled;return!(!t.props.context.disabled&&!e)})),fK(yK(t),"isCheckable",(function(){var e=t.props.checkable,n=t.props.context.checkable;return!(!n||!1===e)&&n})),fK(yK(t),"syncLoadData",(function(e){var n=e.expanded,r=e.loading,o=e.loaded,a=t.props.context,i=a.loadData,s=a.onNodeLoad;r||i&&n&&!t.isLeaf()&&!o&&s(zK(t.props))})),fK(yK(t),"isDraggable",(function(){var e=t.props,n=e.data,r=e.context.draggable;return!(!r||r.nodeDraggable&&!r.nodeDraggable(n))})),fK(yK(t),"renderDragHandler",(function(){var n=t.props.context,r=n.draggable,o=n.prefixCls;return null!==r&&void 0!==r&&r.icon?e.createElement("span",{className:"".concat(o,"-draggable-icon")},r.icon):null})),fK(yK(t),"renderSwitcherIconDom",(function(e){var n=t.props.switcherIcon,r=t.props.context.switcherIcon,o=n||r;return"function"===typeof o?o(pK(pK({},t.props),{},{isLeaf:e})):o})),fK(yK(t),"renderSwitcher",(function(){var n=t.props.expanded,r=t.props.context.prefixCls;if(t.isLeaf()){var o=t.renderSwitcherIconDom(!0);return!1!==o?e.createElement("span",{className:$o()("".concat(r,"-switcher"),"".concat(r,"-switcher-noop"))},o):null}var a=$o()("".concat(r,"-switcher"),"".concat(r,"-switcher_").concat(n?WK:GK)),i=t.renderSwitcherIconDom(!1);return!1!==i?e.createElement("span",{onClick:t.onExpand,className:a},i):null})),fK(yK(t),"renderCheckbox",(function(){var n=t.props,r=n.checked,o=n.halfChecked,a=n.disableCheckbox,i=t.props.context.prefixCls,s=t.isDisabled(),l=t.isCheckable();if(!l)return null;var c="boolean"!==typeof l?l:null;return e.createElement("span",{className:$o()("".concat(i,"-checkbox"),r&&"".concat(i,"-checkbox-checked"),!r&&o&&"".concat(i,"-checkbox-indeterminate"),(s||a)&&"".concat(i,"-checkbox-disabled")),onClick:t.onCheck},c)})),fK(yK(t),"renderIcon",(function(){var n=t.props.loading,r=t.props.context.prefixCls;return e.createElement("span",{className:$o()("".concat(r,"-iconEle"),"".concat(r,"-icon__").concat(t.getNodeState()||"docu"),n&&"".concat(r,"-icon_loading"))})})),fK(yK(t),"renderSelector",(function(){var n,r,o=t.state.dragNodeHighlight,a=t.props,i=a.title,s=void 0===i?"---":i,l=a.selected,c=a.icon,u=a.loading,d=a.data,f=t.props.context,h=f.prefixCls,p=f.showIcon,m=f.icon,g=f.loadData,v=f.titleRender,y=t.isDisabled(),b="".concat(h,"-node-content-wrapper");if(p){var w=c||m;n=w?e.createElement("span",{className:$o()("".concat(h,"-iconEle"),"".concat(h,"-icon__customize"))},"function"===typeof w?w(t.props):w):t.renderIcon()}else g&&u&&(n=t.renderIcon());r="function"===typeof s?s(d):v?v(d):s;var x=e.createElement("span",{className:"".concat(h,"-title")},r);return e.createElement("span",{ref:t.setSelectHandle,title:"string"===typeof s?s:"",className:$o()("".concat(b),"".concat(b,"-").concat(t.getNodeState()||"normal"),!y&&(l||o)&&"".concat(h,"-node-selected")),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onContextMenu:t.onContextMenu,onClick:t.onSelectorClick,onDoubleClick:t.onSelectorDoubleClick},n,x,t.renderDropIndicator())})),fK(yK(t),"renderDropIndicator",(function(){var e=t.props,n=e.disabled,r=e.eventKey,o=t.props.context,a=o.draggable,i=o.dropLevelOffset,s=o.dropPosition,l=o.prefixCls,c=o.indent,u=o.dropIndicatorRender,d=o.dragOverNodeKey,f=o.direction,h=!n&&!!a&&d===r,p=null!==c&&void 0!==c?c:t.cacheIndent;return t.cacheIndent=c,h?u({dropPosition:s,dropLevelOffset:i,indent:p,prefixCls:l,direction:f}):null})),t}return vK(r,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"===typeof e?e:t}},{key:"render",value:function(){var t,n=this.props,r=n.eventKey,o=n.className,a=n.style,i=n.dragOver,s=n.dragOverGapTop,l=n.dragOverGapBottom,c=n.isLeaf,u=n.isStart,d=n.isEnd,f=n.expanded,h=n.selected,p=n.checked,m=n.halfChecked,g=n.loading,v=n.domRef,y=n.active,b=(n.data,n.onMouseMove),w=n.selectable,x=uK(n,HK),S=this.props.context,C=S.prefixCls,_=S.filterTreeNode,E=S.keyEntities,k=S.dropContainerKey,P=S.dropTargetKey,A=S.draggingNodeKey,O=this.isDisabled(),T=kK(x,{aria:!0,data:!0}),M=(TK(E,r)||{}).level,I=d[d.length-1],R=this.isDraggable(),F=!O&&R,N=A===r,j=void 0!==w?{"aria-selected":!!w}:void 0;return e.createElement("div",cK({ref:v,className:$o()(o,"".concat(C,"-treenode"),(t={},fK(fK(fK(fK(fK(fK(fK(fK(fK(fK(t,"".concat(C,"-treenode-disabled"),O),"".concat(C,"-treenode-switcher-").concat(f?"open":"close"),!c),"".concat(C,"-treenode-checkbox-checked"),p),"".concat(C,"-treenode-checkbox-indeterminate"),m),"".concat(C,"-treenode-selected"),h),"".concat(C,"-treenode-loading"),g),"".concat(C,"-treenode-active"),y),"".concat(C,"-treenode-leaf-last"),I),"".concat(C,"-treenode-draggable"),R),"dragging",N),fK(fK(fK(fK(fK(fK(t,"drop-target",P===r),"drop-container",k===r),"drag-over",!O&&i),"drag-over-gap-top",!O&&s),"drag-over-gap-bottom",!O&&l),"filter-node",_&&_(zK(this.props))))),style:a,draggable:F,"aria-grabbed":N,onDragStart:F?this.onDragStart:void 0,onDragEnter:R?this.onDragEnter:void 0,onDragOver:R?this.onDragOver:void 0,onDragLeave:R?this.onDragLeave:void 0,onDrop:R?this.onDrop:void 0,onDragEnd:R?this.onDragEnd:void 0,onMouseMove:b},j,T),e.createElement(OK,{prefixCls:C,level:M,isStart:u,isEnd:d}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),r}(e.Component),UK=function(t){return e.createElement(PK.Consumer,null,(function(n){return e.createElement(VK,cK({},t,{context:n}))}))};UK.displayName="TreeNode",UK.isTreeNode=1;const qK=UK;function KK(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function XK(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function YK(e){return e.split("-")}function ZK(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(TK(t,e).children),n}function $K(e){if(e.parent){var t=YK(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function QK(e,t,n,r,o,a,i,s,l,c){var u,d=e.clientX,f=e.clientY,h=e.target.getBoundingClientRect(),p=h.top,m=h.height,g=(("rtl"===c?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-d)-12)/r,v=l.filter((function(e){var t;return null===(t=s[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),y=TK(s,n.props.eventKey);if(f<p+m/2){var b=i.findIndex((function(e){return e.key===y.key})),w=i[b<=0?0:b-1].key;y=TK(s,w)}var x=y.key,S=y,C=y.key,_=0,E=0;if(!v.includes(x))for(var k=0;k<g&&$K(y);k+=1)y=y.parent,E+=1;var P=t.props.data,A=y.node,O=!0;return function(e){var t=YK(e.pos);return 0===Number(t[t.length-1])}(y)&&0===y.level&&f<p+m/2&&a({dragNode:P,dropNode:A,dropPosition:-1})&&y.key===n.props.eventKey?_=-1:(S.children||[]).length&&v.includes(C)?a({dragNode:P,dropNode:A,dropPosition:0})?_=0:O=!1:0===E?g>-1.5?a({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1:a({dragNode:P,dropNode:A,dropPosition:0})?_=0:a({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1:a({dragNode:P,dropNode:A,dropPosition:1})?_=1:O=!1,{dropPosition:_,dropLevelOffset:E,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:C,dropContainerKey:0===_?null:(null===(u=y.parent)||void 0===u?void 0:u.key)||null,dropAllowed:O}}function JK(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function eX(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==tK(e))return lK(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function tX(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=TK(t,e);if(o){n.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),eK(n)}function nX(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function rX(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function oX(e,t,n,r){var o,a=[];o=r||rX;var i,s=new Set(e.filter((function(e){var t=!!TK(n,e);return t||a.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=l.get(r);o||(o=new Set,l.set(r,o)),o.add(t),c=Math.max(c,r)})),lK(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),i=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1)(t.get(i)||new Set).forEach((function(e){var t=e.key,n=e.node,a=e.children,i=void 0===a?[]:a;o.has(t)&&!r(n)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var i=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),l||!n&&!a.has(t)||(l=!0)})),i&&o.add(t.key),l&&a.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(nX(a,o))}}(s,l,c,o):function(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),s=0;s<=r;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;a.has(t)||i.has(t)||o(n)||s.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));i=new Set;for(var l=new Set,c=r;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),s||!n&&!i.has(t)||(s=!0)})),r||a.delete(t.key),s&&i.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(nX(i,a))}}(s,t.halfCheckedKeys,l,c,o),i}var aX=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],iX=(0,e.forwardRef)((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-checkbox":r,i=t.className,s=t.style,l=t.checked,c=t.disabled,d=t.defaultChecked,f=void 0!==d&&d,h=t.type,m=void 0===h?"checkbox":h,g=t.title,v=t.onChange,y=us(t,aX),b=(0,e.useRef)(null),w=(0,e.useRef)(null),x=u(YO(f,{value:l}),2),S=x[0],C=x[1];(0,e.useImperativeHandle)(n,(function(){return{focus:function(e){var t;null===(t=b.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=b.current)||void 0===e||e.blur()},input:b.current,nativeElement:w.current}}));var _=$o()(o,i,a(a({},"".concat(o,"-checked"),S),"".concat(o,"-disabled"),c));return e.createElement("span",{className:_,title:g,style:s,ref:w},e.createElement("input",Ge({},y,{className:"".concat(o,"-input"),ref:b,onChange:function(e){c||("checked"in t||C(e.target.checked),null===v||void 0===v||v({target:p(p({},t),{},{type:m,checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},disabled:c,checked:!!S,type:m})),e.createElement("span",{className:"".concat(o,"-inner")}))}));const sX=iX,lX=e.createContext(null),cX=e=>{const{checkboxCls:t}=e,n="".concat(t,"-wrapper");return[{["".concat(t,"-group")]:Object.assign(Object.assign({},zi(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,["> ".concat(e.antCls,"-row")]:{flex:1}}),[n]:Object.assign(Object.assign({},zi(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},["& + ".concat(n)]:{marginInlineStart:0},["&".concat(n,"-in-form-item")]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},zi(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",["".concat(t,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,["&:focus-visible + ".concat(t,"-inner")]:Object.assign({},Gi(e))},["".concat(t,"-inner")]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:"all ".concat(e.motionDurationSlow),"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:"".concat(xe(e.lineWidthBold)," solid ").concat(e.colorWhite),borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:"all ".concat(e.motionDurationFast," ").concat(e.motionEaseInBack,", opacity ").concat(e.motionDurationFast)}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{["\n        ".concat(n,":not(").concat(n,"-disabled),\n        ").concat(t,":not(").concat(t,"-disabled)\n      ")]:{["&:hover ".concat(t,"-inner")]:{borderColor:e.colorPrimary}},["".concat(n,":not(").concat(n,"-disabled)")]:{["&:hover ".concat(t,"-checked:not(").concat(t,"-disabled) ").concat(t,"-inner")]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},["&:hover ".concat(t,"-checked:not(").concat(t,"-disabled):after")]:{borderColor:e.colorPrimaryHover}}},{["".concat(t,"-checked")]:{["".concat(t,"-inner")]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseOutBack," ").concat(e.motionDurationFast)}}},["\n        ".concat(n,"-checked:not(").concat(n,"-disabled),\n        ").concat(t,"-checked:not(").concat(t,"-disabled)\n      ")]:{["&:hover ".concat(t,"-inner")]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{["".concat(t,"-inner")]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{["".concat(n,"-disabled")]:{cursor:"not-allowed"},["".concat(t,"-disabled")]:{["&, ".concat(t,"-input")]:{cursor:"not-allowed",pointerEvents:"none"},["".concat(t,"-inner")]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},["&".concat(t,"-indeterminate ").concat(t,"-inner::after")]:{background:e.colorTextDisabled}}}]};function uX(e,t){const n=hl(t,{checkboxCls:".".concat(e),checkboxSize:t.controlInteractiveSize});return[cX(n)]}const dX=Sl("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[uX(n,e)]}));var fX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hX=(t,n)=>{var r;const{prefixCls:o,className:a,rootClassName:i,children:s,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:h}=t,p=fX(t,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=e.useContext(vo),y=e.useContext(lX),{isFormItemInput:b}=e.useContext(hF),w=e.useContext(Fo),x=null!==(r=(null===y||void 0===y?void 0:y.disabled)||h)&&void 0!==r?r:w,S=e.useRef(p.value);e.useEffect((()=>{null===y||void 0===y||y.registerValue(p.value)}),[]),e.useEffect((()=>{if(!f)return p.value!==S.current&&(null===y||void 0===y||y.cancelValue(S.current),null===y||void 0===y||y.registerValue(p.value),S.current=p.value),()=>null===y||void 0===y?void 0:y.cancelValue(p.value)}),[p.value]);const C=m("checkbox",o),_=wf(C),[E,k,P]=dX(C,_),A=Object.assign({},p);y&&!f&&(A.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),y.toggleOption&&y.toggleOption({label:s,value:p.value})},A.name=y.name,A.checked=y.value.includes(p.value));const O=$o()("".concat(C,"-wrapper"),{["".concat(C,"-rtl")]:"rtl"===g,["".concat(C,"-wrapper-checked")]:A.checked,["".concat(C,"-wrapper-disabled")]:x,["".concat(C,"-wrapper-in-form-item")]:b},null===v||void 0===v?void 0:v.className,a,i,P,_,k),T=$o()({["".concat(C,"-indeterminate")]:l},vW,k),M=l?"mixed":void 0;return E(e.createElement(CW,{component:"Checkbox",disabled:x},e.createElement("label",{className:O,style:Object.assign(Object.assign({},null===v||void 0===v?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d},e.createElement(sX,Object.assign({"aria-checked":M},A,{prefixCls:C,className:T,disabled:x,ref:n})),void 0!==s&&e.createElement("span",null,s))))};const pX=e.forwardRef(hX);var mX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gX=e.forwardRef(((t,n)=>{const{defaultValue:r,children:o,options:a=[],prefixCls:i,className:s,rootClassName:l,style:c,onChange:u}=t,d=mX(t,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:h}=e.useContext(vo),[p,m]=e.useState(d.value||r||[]),[g,v]=e.useState([]);e.useEffect((()=>{"value"in d&&m(d.value||[])}),[d.value]);const y=e.useMemo((()=>a.map((e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e))),[a]),b=f("checkbox",i),w="".concat(b,"-group"),x=wf(b),[S,C,_]=dX(b,x),E=is(d,["value","disabled"]),k=a.length?y.map((t=>e.createElement(pX,{prefixCls:b,key:t.value.toString(),disabled:"disabled"in t?t.disabled:d.disabled,value:t.value,checked:p.includes(t.value),onChange:t.onChange,className:"".concat(w,"-item"),style:t.style,title:t.title,id:t.id,required:t.required},t.label))):o,P={toggleOption:e=>{const t=p.indexOf(e.value),n=as(p);-1===t?n.push(e.value):n.splice(t,1),"value"in d||m(n),null===u||void 0===u||u(n.filter((e=>g.includes(e))).sort(((e,t)=>y.findIndex((t=>t.value===e))-y.findIndex((e=>e.value===t)))))},value:p,disabled:d.disabled,name:d.name,registerValue:e=>{v((t=>[].concat(as(t),[e])))},cancelValue:e=>{v((t=>t.filter((t=>t!==e))))}},A=$o()(w,{["".concat(w,"-rtl")]:"rtl"===h},s,l,_,x,C);return S(e.createElement("div",Object.assign({className:A,style:c},E,{ref:n}),e.createElement(lX.Provider,{value:P},k)))})),vX=gX,yX=pX;yX.Group=vX,yX.__ANT_CHECKBOX=!0;const bX=yX,wX=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a="".concat(n,"-item");return{["".concat(t,", ").concat(t,"-menu-submenu")]:{["".concat(n," ").concat(a)]:{["&".concat(a,"-danger:not(").concat(a,"-disabled)")]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},xX=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:h,controlPaddingHorizontal:p,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},["&-trigger".concat(i,"-btn")]:{["& > ".concat(s,"-down, & > ").concat(i,"-btn-icon > ").concat(s,"-down")]:{fontSize:h}},["".concat(t,"-wrap")]:{position:"relative",["".concat(i,"-btn > ").concat(s,"-down")]:{fontSize:h},["".concat(s,"-down::before")]:{transition:"transform ".concat(l)}},["".concat(t,"-wrap-open")]:{["".concat(s,"-down::before")]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},["&".concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomLeft,\n          &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomLeft,\n          &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottom,\n          &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottom,\n          &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomRight,\n          &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomRight")]:{animationName:mN},["&".concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topLeft,\n          &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topLeft,\n          &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-top,\n          &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-top,\n          &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topRight,\n          &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topRight")]:{animationName:vN},["&".concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomLeft,\n          &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottom,\n          &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomRight")]:{animationName:gN},["&".concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topLeft,\n          &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-top,\n          &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topRight")]:{animationName:yN}}},RF(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{["".concat(t," ").concat(n)]:{position:"relative",margin:0},["".concat(n,"-submenu-popup")]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},["".concat(t,", ").concat(t,"-menu-submenu")]:Object.assign(Object.assign({},zi(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Vi(e)),{"&:empty":{padding:0,boxShadow:"none"},["".concat(n,"-item-group-title")]:{padding:"".concat(xe(c)," ").concat(xe(p)),color:e.colorTextDescription,transition:"all ".concat(l)},["".concat(n,"-item")]:{position:"relative",display:"flex",alignItems:"center"},["".concat(n,"-item-icon")]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},["".concat(n,"-title-content")]:{flex:"auto","> a":{color:"inherit",transition:"all ".concat(l),"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:Object.assign(Object.assign({clear:"both",margin:0,padding:"".concat(xe(c)," ").concat(xe(p)),color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(l),borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Vi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:"".concat(xe(e.marginXXS)," 0"),overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},["".concat(t,"-menu-submenu-expand-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,["".concat(t,"-menu-submenu-arrow-icon")]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),["".concat(n,"-item-group-list")]:{margin:"0 ".concat(xe(e.marginXS)),padding:0,listStyle:"none"},["".concat(n,"-submenu-title")]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},["".concat(n,"-submenu-vertical")]:{position:"relative"},["".concat(n,"-submenu").concat(n,"-submenu-disabled ").concat(t,"-menu-submenu-title")]:{["&, ".concat(t,"-menu-submenu-arrow-icon")]:{color:f,backgroundColor:m,cursor:"not-allowed"}},["".concat(n,"-submenu-selected ").concat(t,"-menu-submenu-title")]:{color:e.colorPrimary}})})},[_N(e,"slide-up"),_N(e,"slide-down"),wz(e,"move-up"),wz(e,"move-down"),XF(e,"zoom-big")]]},SX=Sl("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=hl(e,{menuCls:"".concat(o,"-menu"),dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[xX(a),wX(a)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},MF({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),AF(e))),{resetStyle:!1}),CX=t=>{var n;const{menu:r,arrow:o,prefixCls:a,children:i,trigger:s,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:h,open:p,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:w=!0,placement:x="",overlay:S,transitionName:C}=t,{getPopupContainer:_,getPrefixCls:E,direction:k,dropdown:P}=e.useContext(vo);En("Dropdown");const A=e.useMemo((()=>{const e=E();return void 0!==C?C:x.includes("top")?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")}),[E,x,C]),O=e.useMemo((()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:"rtl"===k?"bottomRight":"bottomLeft"),[x,k]);const T=E("dropdown",a),M=wf(T),[I,R,F]=SX(T,M),[,N]=ji(),j=e.Children.only(i),D=vI(j,{className:$o()("".concat(T,"-trigger"),{["".concat(T,"-rtl")]:"rtl"===k},j.props.className),disabled:null!==(n=j.props.disabled)&&void 0!==n?n:l}),L=l?[]:s,B=!!(null===L||void 0===L?void 0:L.includes("contextMenu")),[z,H]=Oa(!1,{value:null!==p&&void 0!==p?p:g}),W=xa((e=>{null===m||void 0===m||m(e,{source:"trigger"}),null===v||void 0===v||v(e),H(e)})),G=$o()(d,f,R,F,M,null===P||void 0===P?void 0:P.className,{["".concat(T,"-rtl")]:"rtl"===k}),V=DF({arrowPointAtCenter:"object"===typeof o&&o.pointAtCenter,autoAdjustOverflow:w,offset:N.marginXXS,arrowWidth:o?N.sizePopupArrow:0,borderRadius:N.borderRadius}),U=e.useCallback((()=>{(null===r||void 0===r?void 0:r.selectable)&&(null===r||void 0===r?void 0:r.multiple)||(null===m||void 0===m||m(!1,{source:"menu"}),H(!1))}),[null===r||void 0===r?void 0:r.selectable,null===r||void 0===r?void 0:r.multiple]),[q,K]=Ef("Dropdown",null===h||void 0===h?void 0:h.zIndex);let X=e.createElement(Mj,Object.assign({alignPoint:B},is(t,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:b,visible:z,builtinPlacements:V,arrow:!!o,overlayClassName:G,prefixCls:T,getPopupContainer:u||_,transitionName:A,trigger:L,overlay:()=>{let t;return t=(null===r||void 0===r?void 0:r.items)?e.createElement(WN,Object.assign({},r)):"function"===typeof S?S():S,c&&(t=c(t)),t=e.Children.only("string"===typeof t?e.createElement("span",null,t):t),e.createElement(fN,{prefixCls:"".concat(T,"-menu"),rootClassName:$o()(F,M),expandIcon:e.createElement("span",{className:"".concat(T,"-menu-submenu-arrow")},e.createElement($s,{className:"".concat(T,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:U,validator:e=>{let{mode:t}=e}},t)},placement:O,onVisibleChange:W,overlayStyle:Object.assign(Object.assign(Object.assign({},null===P||void 0===P?void 0:P.style),h),{zIndex:q})}),D);return q&&(X=e.createElement(xf.Provider,{value:K},X)),I(X)};const _X=XB(CX,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));CX._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement(_X,Object.assign({},t),e.createElement("span",null));const EX=CX;function kX(e){return["small","middle","large"].includes(e)}function PX(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}const AX=e.createContext({latestIndex:0}),OX=AX.Provider,TX=t=>{let{className:n,index:r,children:o,split:a,style:i}=t;const{latestIndex:s}=e.useContext(AX);return null===o||void 0===o?null:e.createElement(e.Fragment,null,e.createElement("div",{className:n,style:i},o),r<s&&a&&e.createElement("span",{className:"".concat(n,"-split")},a))};var MX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const IX=e.forwardRef(((t,n)=>{var r,o,a;const{getPrefixCls:i,space:s,direction:l}=e.useContext(vo),{size:c=(null!==(r=null===s||void 0===s?void 0:s.size)&&void 0!==r?r:"small"),align:u,className:d,rootClassName:f,children:h,direction:p="horizontal",prefixCls:m,split:g,style:v,wrap:y=!1,classNames:b,styles:w}=t,x=MX(t,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,C]=Array.isArray(c)?c:[c,c],_=kX(C),E=kX(S),k=PX(C),P=PX(S),A=ls(h,{keepEmpty:!0}),O=void 0===u&&"horizontal"===p?"center":u,T=i("space",m),[M,I,R]=wF(T),F=$o()(T,null===s||void 0===s?void 0:s.className,I,"".concat(T,"-").concat(p),{["".concat(T,"-rtl")]:"rtl"===l,["".concat(T,"-align-").concat(O)]:O,["".concat(T,"-gap-row-").concat(C)]:_,["".concat(T,"-gap-col-").concat(S)]:E},d,f,R),N=$o()("".concat(T,"-item"),null!==(o=null===b||void 0===b?void 0:b.item)&&void 0!==o?o:null===(a=null===s||void 0===s?void 0:s.classNames)||void 0===a?void 0:a.item);let j=0;const D=A.map(((t,n)=>{var r,o;null!==t&&void 0!==t&&(j=n);const a=(null===t||void 0===t?void 0:t.key)||"".concat(N,"-").concat(n);return e.createElement(TX,{className:N,key:a,index:n,split:g,style:null!==(r=null===w||void 0===w?void 0:w.item)&&void 0!==r?r:null===(o=null===s||void 0===s?void 0:s.styles)||void 0===o?void 0:o.item},t)})),L=e.useMemo((()=>({latestIndex:j})),[j]);if(0===A.length)return null;const B={};return y&&(B.flexWrap="wrap"),!E&&P&&(B.columnGap=S),!_&&k&&(B.rowGap=C),M(e.createElement("div",Object.assign({ref:n,className:F,style:Object.assign(Object.assign(Object.assign({},B),null===s||void 0===s?void 0:s.style),v)},x),e.createElement(OX,{value:L},D)))})),RX=IX;RX.Compact=kF;const FX=RX;var NX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jX=t=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=e.useContext(vo),{prefixCls:a,type:i="default",danger:s,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:h,menu:p,arrow:m,autoFocus:g,overlay:v,trigger:y,align:b,open:w,onOpenChange:x,placement:S,getPopupContainer:C,href:_,icon:E=e.createElement(lI,null),title:k,buttonsRender:P=(e=>e),mouseEnterDelay:A,mouseLeaveDelay:O,overlayClassName:T,overlayStyle:M,destroyPopupOnHide:I,dropdownRender:R}=t,F=NX(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),N=r("dropdown",a),j="".concat(N,"-button"),D={menu:p,arrow:m,autoFocus:g,align:b,disabled:l,trigger:l?[]:y,onOpenChange:x,getPopupContainer:C||n,mouseEnterDelay:A,mouseLeaveDelay:O,overlayClassName:T,overlayStyle:M,destroyPopupOnHide:I,dropdownRender:R},{compactSize:L,compactItemClassnames:B}=CF(N,o),z=$o()(j,B,h);"overlay"in t&&(D.overlay=v),"open"in t&&(D.open=w),D.placement="placement"in t?S:"rtl"===o?"bottomLeft":"bottomRight";const H=e.createElement(vG,{type:i,danger:s,disabled:l,loading:c,onClick:u,htmlType:d,href:_,title:k},f),W=e.createElement(vG,{type:i,danger:s,icon:E}),[G,V]=P([H,W]);return e.createElement(FX.Compact,Object.assign({className:z,size:L,block:!0},F),G,e.createElement(EX,Object.assign({},D),V))};jX.__ANT_BUTTON=!0;const DX=jX,LX=EX;LX.Button=DX;const BX=LX,zX=e.createContext(null),HX=zX.Provider,WX=zX,GX=e.createContext(null),VX=GX.Provider,UX=e=>{const{componentCls:t,antCls:n}=e,r="".concat(t,"-group");return{[r]:Object.assign(Object.assign({},zi(e)),{display:"inline-block",fontSize:0,["&".concat(r,"-rtl")]:{direction:"rtl"},["".concat(n,"-badge ").concat(n,"-badge-count")]:{zIndex:1},["> ".concat(n,"-badge:not(:first-child) > ").concat(n,"-button-wrapper")]:{borderInlineStart:"none"}})}},qX=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:h,dotColorDisabled:p,lineType:m,radioColor:g,radioBgColor:v,calc:y}=e,b="".concat(t,"-inner"),w=y(o).sub(y(4).mul(2)),x=y(1).mul(o).equal({unit:!0});return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},zi(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",["&".concat(t,"-wrapper-rtl")]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},["".concat(t,"-checked::after")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:"".concat(xe(u)," ").concat(m," ").concat(r),borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},zi(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),["".concat(t,"-wrapper:hover &,\n        &:hover ").concat(b)]:{borderColor:r},["".concat(t,"-input:focus-visible + ").concat(b)]:Object.assign({},Gi(e)),["".concat(t,":hover::after, ").concat(t,"-wrapper:hover &::after")]:{visibility:"visible"},["".concat(t,"-inner")]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:"all ".concat(a," ").concat(s),content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:"all ".concat(i)},["".concat(t,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},["".concat(t,"-checked")]:{[b]:{borderColor:r,backgroundColor:v,"&::after":{transform:"scale(".concat(e.calc(e.dotSize).div(o).equal(),")"),opacity:1,transition:"all ".concat(a," ").concat(s)}}},["".concat(t,"-disabled")]:{cursor:"not-allowed",[b]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},["".concat(t,"-input")]:{cursor:"not-allowed"},["".concat(t,"-disabled + span")]:{color:f,cursor:"not-allowed"},["&".concat(t,"-checked")]:{[b]:{"&::after":{transform:"scale(".concat(y(w).div(o).equal(),")")}}}},["span".concat(t," + *")]:{paddingInlineStart:h,paddingInlineEnd:h}})}},KX=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:h,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:_,colorPrimary:E,colorPrimaryHover:k,colorPrimaryActive:P,buttonSolidCheckedBg:A,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:T,calc:M}=e;return{["".concat(r,"-button-wrapper")]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:xe(M(n).sub(M(o).mul(2)).equal()),background:d,border:"".concat(xe(o)," ").concat(a," ").concat(i),borderBlockStartWidth:M(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:["color ".concat(l),"background ".concat(l),"box-shadow ".concat(l)].join(","),a:{color:t},["> ".concat(r,"-button")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:M(o).mul(-1).equal(),insetInlineStart:M(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:"background-color ".concat(s),content:'""'}},"&:first-child":{borderInlineStart:"".concat(xe(o)," ").concat(a," ").concat(i),borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},["".concat(r,"-group-large &")]:{height:h,fontSize:f,lineHeight:xe(M(h).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},["".concat(r,"-group-small &")]:{height:p,paddingInline:M(m).sub(o).equal(),paddingBlock:0,lineHeight:xe(M(p).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Gi(e)),["".concat(r,"-inner, input[type='checkbox'], input[type='radio']")]:{width:0,height:0,opacity:0,pointerEvents:"none"},["&-checked:not(".concat(r,"-button-wrapper-disabled)")]:{zIndex:1,color:E,background:b,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},["".concat(r,"-group-solid &-checked:not(").concat(r,"-button-wrapper-disabled)")]:{color:w,background:A,borderColor:A,"&:hover":{color:w,background:O,borderColor:O},"&:active":{color:w,background:T,borderColor:T}},"&-disabled":{color:x,backgroundColor:S,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:S,borderColor:i}},["&-disabled".concat(r,"-button-wrapper-checked")]:{color:_,backgroundColor:C,borderColor:i,boxShadow:"none"}}}},XX=Sl("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r="0 0 0 ".concat(xe(n)," ").concat(t),o=hl(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[UX(o),qX(o),KX(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:h,colorWhite:p}=e;return{radioSize:a,dotSize:t?a-8:a-2*(4+o),dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:p,radioBgColor:t?s:d}}),{unitless:{radioSize:!0,dotSize:!0}});var YX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ZX=(t,n)=>{var r,o;const a=e.useContext(WX),i=e.useContext(GX),{getPrefixCls:s,direction:l,radio:c}=e.useContext(vo),u=e.useRef(null),d=oa(n,u),{isFormItemInput:f}=e.useContext(hF);const h=e=>{var n,r;null===(n=t.onChange)||void 0===n||n.call(t,e),null===(r=null===a||void 0===a?void 0:a.onChange)||void 0===r||r.call(a,e)},{prefixCls:p,className:m,rootClassName:g,children:v,style:y,title:b}=t,w=YX(t,["prefixCls","className","rootClassName","children","style","title"]),x=s("radio",p),S="button"===((null===a||void 0===a?void 0:a.optionType)||i),C=S?"".concat(x,"-button"):x,_=wf(x),[E,k,P]=XX(x,_),A=Object.assign({},w),O=e.useContext(Fo);a&&(A.name=a.name,A.onChange=h,A.checked=t.value===a.value,A.disabled=null!==(r=A.disabled)&&void 0!==r?r:a.disabled),A.disabled=null!==(o=A.disabled)&&void 0!==o?o:O;const T=$o()("".concat(C,"-wrapper"),{["".concat(C,"-wrapper-checked")]:A.checked,["".concat(C,"-wrapper-disabled")]:A.disabled,["".concat(C,"-wrapper-rtl")]:"rtl"===l,["".concat(C,"-wrapper-in-form-item")]:f},null===c||void 0===c?void 0:c.className,m,g,k,P,_);return E(e.createElement(CW,{component:"Radio",disabled:A.disabled},e.createElement("label",{className:T,style:Object.assign(Object.assign({},null===c||void 0===c?void 0:c.style),y),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,title:b},e.createElement(sX,Object.assign({},A,{className:$o()(A.className,{[vW]:!S}),type:"radio",prefixCls:C,ref:d})),void 0!==v?e.createElement("span",null,v):null)))};const $X=e.forwardRef(ZX),QX=e.forwardRef(((t,n)=>{const{getPrefixCls:r,direction:o}=e.useContext(vo),[a,i]=Oa(t.defaultValue,{value:t.value}),{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:h,size:p,style:m,id:g,onMouseEnter:v,onMouseLeave:y,onFocus:b,onBlur:w}=t,x=r("radio",s),S="".concat(x,"-group"),C=wf(x),[_,E,k]=XX(x,C);let P=h;u&&u.length>0&&(P=u.map((t=>"string"===typeof t||"number"===typeof t?e.createElement($X,{key:t.toString(),prefixCls:x,disabled:f,value:t,checked:a===t},t):e.createElement($X,{key:"radio-group-value-options-".concat(t.value),prefixCls:x,disabled:t.disabled||f,value:t.value,checked:a===t.value,title:t.title,style:t.style,id:t.id,required:t.required},t.label))));const A=gF(p),O=$o()(S,"".concat(S,"-").concat(d),{["".concat(S,"-").concat(A)]:A,["".concat(S,"-rtl")]:"rtl"===o},l,c,E,k,C);return _(e.createElement("div",Object.assign({},XH(t,{aria:!0,data:!0}),{className:O,style:m,onMouseEnter:v,onMouseLeave:y,onFocus:b,onBlur:w,id:g,ref:n}),e.createElement(HX,{value:{onChange:e=>{const n=a,r=e.target.value;"value"in t||i(r);const{onChange:o}=t;o&&r!==n&&o(e)},value:a,disabled:t.disabled,name:t.name,optionType:t.optionType}},P)))})),JX=e.memo(QX);var eY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tY=(t,n)=>{const{getPrefixCls:r}=e.useContext(vo),{prefixCls:o}=t,a=eY(t,["prefixCls"]),i=r("radio",o);return e.createElement(VX,{value:"button"},e.createElement($X,Object.assign({prefixCls:i},a,{type:"radio",ref:n})))},nY=e.forwardRef(tY),rY=$X;rY.Button=nY,rY.Group=JX,rY.__ANT_RADIO=!0;const oY=rY,aY={},iY="SELECT_ALL",sY="SELECT_INVERT",lY="SELECT_NONE",cY=[],uY=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"===typeof t&&e in t&&(n=[].concat(as(n),as(uY(e,t[e]))))})),n},dY=(t,n)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:o,defaultSelectedRowKeys:a,getCheckboxProps:i,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:h,type:p,selections:m,fixed:g,renderCell:v,hideSelectAll:y,checkStrictly:b=!0}=n||{},{prefixCls:w,data:x,pageData:S,getRecordByKey:C,getRowKey:_,expandType:E,childrenColumnName:k,locale:P,getPopupContainer:A}=t,O=En("Table"),[T,M]=function(t){const[n,r]=(0,e.useState)(null);return[(0,e.useCallback)(((e,o,a)=>{const i=null!==n&&void 0!==n?n:e,s=Math.min(i||0,e),l=Math.max(i||0,e),c=o.slice(s,l+1).map((e=>t(e))),u=c.some((e=>!a.has(e))),d=[];return c.forEach((e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))})),r(u?l:null),d}),[n]),e=>{r(e)}]}((e=>e)),[I,R]=Oa(o||a||cY,{value:o}),F=e.useRef(new Map),N=(0,e.useCallback)((e=>{if(r){const t=new Map;e.forEach((e=>{let n=C(e);!n&&F.current.has(e)&&(n=F.current.get(e)),t.set(e,n)})),F.current=t}}),[C,r]);e.useEffect((()=>{N(I)}),[I]);const{keyEntities:j}=(0,e.useMemo)((()=>{if(b)return{keyEntities:null};let e=x;if(r){const t=new Set(x.map(((e,t)=>_(e,t)))),n=Array.from(F.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat(as(e),as(n))}return LK(e,{externalGetKey:_,childrenPropName:k})}),[x,_,b,k,r]),D=(0,e.useMemo)((()=>uY(k,S)),[k,S]),L=(0,e.useMemo)((()=>{const e=new Map;return D.forEach(((t,n)=>{const r=_(t,n),o=(i?i(t):null)||{};e.set(r,o)})),e}),[D,_,i]),B=(0,e.useCallback)((e=>{var t;return!!(null===(t=L.get(_(e)))||void 0===t?void 0:t.disabled)}),[L,_]),[z,H]=(0,e.useMemo)((()=>{if(b)return[I||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=oX(I,!0,j,B);return[e||[],t]}),[I,b,j,B]),W=(0,e.useMemo)((()=>{const e="radio"===p?z.slice(0,1):z;return new Set(e)}),[z,p]),G=(0,e.useMemo)((()=>"radio"===p?new Set:new Set(H)),[H,p]);e.useEffect((()=>{n||R(cY)}),[!!n]);const V=(0,e.useCallback)(((e,t)=>{let n,o;N(e),r?(n=e,o=e.map((e=>F.current.get(e)))):(n=[],o=[],e.forEach((e=>{const t=C(e);void 0!==t&&(n.push(e),o.push(t))}))),R(n),null===s||void 0===s||s(n,o,{type:t})}),[R,C,s,r]),U=(0,e.useCallback)(((e,t,n,r)=>{if(l){const o=n.map((e=>C(e)));l(C(e),t,o,r)}V(n,"single")}),[l,C,V]),q=(0,e.useMemo)((()=>{if(!m||y)return null;return(!0===m?[iY,sY,lY]:m).map((e=>e===iY?{key:"all",text:P.selectionAll,onSelect(){V(x.map(((e,t)=>_(e,t))).filter((e=>{const t=L.get(e);return!(null===t||void 0===t?void 0:t.disabled)||W.has(e)})),"all")}}:e===sY?{key:"invert",text:P.selectInvert,onSelect(){const e=new Set(W);S.forEach(((t,n)=>{const r=_(t,n),o=L.get(r);(null===o||void 0===o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);u&&(O.deprecated(!1,"onSelectInvert","onChange"),u(t)),V(t,"invert")}}:e===lY?{key:"none",text:P.selectNone,onSelect(){null===d||void 0===d||d(),V(Array.from(W).filter((e=>{const t=L.get(e);return null===t||void 0===t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(o)),M(null)}})))}),[m,W,S,_,u,V]),K=(0,e.useCallback)((t=>{var r;if(!n)return t.filter((e=>e!==aY));let o=as(t);const a=new Set(W),i=D.map(_).filter((e=>!L.get(e).disabled)),s=i.every((e=>a.has(e))),l=i.some((e=>a.has(e))),u=()=>{const e=[];s?i.forEach((t=>{a.delete(t),e.push(t)})):i.forEach((t=>{a.has(t)||(a.add(t),e.push(t))}));const t=Array.from(a);null===c||void 0===c||c(!s,t.map((e=>C(e))),e.map((e=>C(e)))),V(t,"all"),M(null)};let d,x,S;if("radio"!==p){let t;if(q){const n={getPopupContainer:A,items:q.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!==n&&void 0!==n?n:t,onClick:()=>{null===o||void 0===o||o(i)},label:r}}))};t=e.createElement("div",{className:"".concat(w,"-selection-extra")},e.createElement(BX,{menu:n,getPopupContainer:A},e.createElement("span",null,e.createElement(Kz,null))))}const n=D.map(((e,t)=>{const n=_(e,t),r=L.get(n)||{};return Object.assign({checked:a.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),r=!!n.length&&n.length===D.length,o=r&&n.every((e=>{let{checked:t}=e;return t})),c=r&&n.some((e=>{let{checked:t}=e;return t}));x=e.createElement(bX,{checked:r?o:!!D.length&&s,indeterminate:r?!o&&c:!s&&l,onChange:u,disabled:0===D.length||r,"aria-label":t?"Custom selection":"Select all",skipGroup:!0}),d=!y&&e.createElement("div",{className:"".concat(w,"-selection")},x,t)}S="radio"===p?(t,n,r)=>{const o=_(n,r),i=a.has(o);return{node:e.createElement(oY,Object.assign({},L.get(o),{checked:i,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(o)||U(o,!0,[o],e.nativeEvent)}})),checked:i}}:(t,n,r)=>{var o;const s=_(n,r),l=a.has(s),c=G.has(s),u=L.get(s);let d;return d="nest"===E?c:null!==(o=null===u||void 0===u?void 0:u.indeterminate)&&void 0!==o?o:c,{node:e.createElement(bX,Object.assign({},u,{indeterminate:d,checked:l,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=i.findIndex((e=>e===s)),o=z.some((e=>i.includes(e)));if(n&&b&&o){const e=T(r,i,a),t=Array.from(a);null===f||void 0===f||f(!l,t.map((e=>C(e))),e.map((e=>C(e)))),V(t,"multiple")}else{const e=z;if(b){const n=l?KK(e,s):XK(e,s);U(s,!l,n,t)}else{const n=oX([].concat(as(e),[s]),!0,j,B),{checkedKeys:r,halfCheckedKeys:o}=n;let a=r;if(l){const e=new Set(r);e.delete(s),a=oX(Array.from(e),{checked:!1,halfCheckedKeys:o},j,B).checkedKeys}U(s,!l,a,t)}}M(l?null:r)}})),checked:l}};if(!o.includes(aY))if(0===o.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[FU])||void 0===t?void 0:t.columnType)}))){const[e,...t]=o;o=[e,aY].concat(as(t))}else o=[aY].concat(as(o));const k=o.indexOf(aY);o=o.filter(((e,t)=>e!==aY||t===k));const P=o[k-1],O=o[k+1];let I=g;void 0===I&&(void 0!==(null===O||void 0===O?void 0:O.fixed)?I=O.fixed:void 0!==(null===P||void 0===P?void 0:P.fixed)&&(I=P.fixed)),I&&P&&"EXPAND_COLUMN"===(null===(r=P[FU])||void 0===r?void 0:r.columnType)&&void 0===P.fixed&&(P.fixed=I);const R=$o()("".concat(w,"-selection-col"),{["".concat(w,"-selection-col-with-dropdown")]:m&&"checkbox"===p}),F={fixed:I,width:h,className:"".concat(w,"-selection-column"),title:(null===n||void 0===n?void 0:n.columnTitle)?"function"===typeof n.columnTitle?n.columnTitle(x):n.columnTitle:d,render:(e,t,n)=>{const{node:r,checked:o}=S(e,t,n);return v?v(o,t,n,r):r},onCell:n.onCell,[FU]:{className:R}};return o.map((e=>e===aY?F:e))}),[_,D,n,z,W,G,h,q,E,L,f,U,B]);return[K,W]};function fY(t,n){return(0,e.useImperativeHandle)(t,(()=>{const e=n(),{nativeElement:t}=e;return"undefined"!==typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=t)._antProxy=r._antProxy||{},Object.keys(o).forEach((e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}})),r);var r,o}))}function hY(e){return null!==e&&void 0!==e&&e===e.window}const pY=e=>{var t,n;if("undefined"===typeof window)return 0;let r=0;return hY(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!hY(e)&&"number"!==typeof r&&(r=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),r};function mY(){const[,t]=e.useReducer((e=>e+1),0);return t}const gY=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const n=(0,e.useRef)({}),r=mY(),o=WD();return ka((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current};const vY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var yY=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:vY}))};const bY=e.forwardRef(yY);const wY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var xY=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:wY}))};const SY=e.forwardRef(xY);const CY={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"};var _Y=["10","20","50","100"];const EY=function(t){var n=t.pageSizeOptions,r=void 0===n?_Y:n,o=t.locale,a=t.changeSize,i=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,h=t.disabled,p=t.buildOptionText,m=u(e.useState(""),2),g=m[0],v=m[1],y=function(){return!g||Number.isNaN(g)?void 0:Number(g)},b="function"===typeof p?p:function(e){return"".concat(e," ").concat(o.items_per_page)},w=function(e){""!==g&&(e.keyCode!==ef.ENTER&&"click"!==e.type||(v(""),null===l||void 0===l||l(y())))},x="".concat(c,"-options");if(!a&&!l)return null;var S=null,C=null,_=null;if(a&&d){var E=(r.some((function(e){return e.toString()===i.toString()}))?r:r.concat([i.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(t,n){return e.createElement(d.Option,{key:n,value:t.toString()},b(t))}));S=e.createElement(d,{disabled:h,prefixCls:f,showSearch:!1,className:"".concat(x,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:function(e){null===a||void 0===a||a(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},E)}return l&&(s&&(_="boolean"===typeof s?e.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:h,className:"".concat(x,"-quick-jumper-button")},o.jump_to_confirm):e.createElement("span",{onClick:w,onKeyUp:w},s)),C=e.createElement("div",{className:"".concat(x,"-quick-jumper")},o.jump_to,e.createElement("input",{disabled:h,type:"text",value:g,onChange:function(e){v(e.target.value)},onKeyUp:w,onBlur:function(e){s||""===g||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null===l||void 0===l||l(y()))},"aria-label":o.page}),o.page,_)),e.createElement("li",{className:x},S,C)};const kY=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,s=t.className,l=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),h=$o()(f,"".concat(f,"-").concat(o),(a(n={},"".concat(f,"-active"),i),a(n,"".concat(f,"-disabled"),!o),n),s),p=d(o,"page",e.createElement("a",{rel:"nofollow"},o));return p?e.createElement("li",{title:l?String(o):null,className:h,onClick:function(){c(o)},onKeyDown:function(e){u(e,c,o)},tabIndex:0},p):null};var PY=function(e,t,n){return n};function AY(){}function OY(e){var t=Number(e);return"number"===typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function TY(e,t,n){var r="undefined"===typeof e?t:e;return Math.floor((n-1)/r)+1}const MY=function(t){var n,o=t.prefixCls,i=void 0===o?"rc-pagination":o,s=t.selectPrefixCls,l=void 0===s?"rc-select":s,c=t.className,d=t.selectComponentClass,f=t.current,h=t.defaultCurrent,m=void 0===h?1:h,g=t.total,v=void 0===g?0:g,y=t.pageSize,b=t.defaultPageSize,w=void 0===b?10:b,x=t.onChange,S=void 0===x?AY:x,C=t.hideOnSinglePage,_=t.align,E=t.showPrevNextJumpers,k=void 0===E||E,P=t.showQuickJumper,A=t.showLessItems,O=t.showTitle,T=void 0===O||O,M=t.onShowSizeChange,I=void 0===M?AY:M,R=t.locale,F=void 0===R?CY:R,N=t.style,j=t.totalBoundaryShowSizeChanger,D=void 0===j?50:j,L=t.disabled,B=t.simple,z=t.showTotal,H=t.showSizeChanger,W=t.pageSizeOptions,G=t.itemRender,V=void 0===G?PY:G,U=t.jumpPrevIcon,q=t.jumpNextIcon,K=t.prevIcon,X=t.nextIcon,Y=e.useRef(null),Z=u(YO(10,{value:y,defaultValue:w}),2),$=Z[0],Q=Z[1],J=u(YO(1,{value:f,defaultValue:m,postState:function(e){return Math.max(1,Math.min(e,TY(void 0,$,v)))}}),2),ee=J[0],te=J[1],ne=u(e.useState(ee),2),re=ne[0],oe=ne[1];(0,e.useEffect)((function(){oe(ee)}),[ee]);var ae=Math.max(1,ee-(A?3:5)),ie=Math.min(TY(void 0,$,v),ee+(A?3:5));function se(n,r){var o=n||e.createElement("button",{type:"button","aria-label":r,className:"".concat(i,"-item-link")});return"function"===typeof n&&(o=e.createElement(n,p({},t))),o}function le(e){var t=e.target.value,n=TY(void 0,$,v);return""===t?t:Number.isNaN(Number(t))?re:t>=n?n:Number(t)}var ce=v>$&&P;function ue(e){var t=le(e);switch(t!==re&&oe(t),e.keyCode){case ef.ENTER:de(t);break;case ef.UP:de(t-1);break;case ef.DOWN:de(t+1)}}function de(e){if(function(e){return OY(e)&&e!==ee&&OY(v)&&v>0}(e)&&!L){var t=TY(void 0,$,v),n=e;return e>t?n=t:e<1&&(n=1),n!==re&&oe(n),te(n),null===S||void 0===S||S(n,$),n}return ee}var fe=ee>1,he=ee<TY(void 0,$,v),pe=null!==H&&void 0!==H?H:v>D;function me(){fe&&de(ee-1)}function ge(){he&&de(ee+1)}function ve(){de(ae)}function ye(){de(ie)}function be(e,t){if("Enter"===e.key||e.charCode===ef.ENTER||e.keyCode===ef.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function we(e){"click"!==e.type&&e.keyCode!==ef.ENTER||de(re)}var xe=null,Se=af(t,{aria:!0,data:!0}),Ce=z&&e.createElement("li",{className:"".concat(i,"-total-text")},z(v,[0===v?0:(ee-1)*$+1,ee*$>v?v:ee*$])),_e=null,Ee=TY(void 0,$,v);if(C&&v<=$)return null;var ke=[],Pe={rootPrefixCls:i,onClick:de,onKeyPress:be,showTitle:T,itemRender:V,page:-1},Ae=ee-1>0?ee-1:0,Oe=ee+1<Ee?ee+1:Ee,Te=P&&P.goButton,Me="object"===r(B)?B.readOnly:!B,Ie=Te,Re=null;B&&(Te&&(Ie="boolean"===typeof Te?e.createElement("button",{type:"button",onClick:we,onKeyUp:we},F.jump_to_confirm):e.createElement("span",{onClick:we,onKeyUp:we},Te),Ie=e.createElement("li",{title:T?"".concat(F.jump_to).concat(ee,"/").concat(Ee):null,className:"".concat(i,"-simple-pager")},Ie)),Re=e.createElement("li",{title:T?"".concat(ee,"/").concat(Ee):null,className:"".concat(i,"-simple-pager")},Me?re:e.createElement("input",{type:"text",value:re,disabled:L,onKeyDown:function(e){e.keyCode!==ef.UP&&e.keyCode!==ef.DOWN||e.preventDefault()},onKeyUp:ue,onChange:ue,onBlur:function(e){de(le(e))},size:3}),e.createElement("span",{className:"".concat(i,"-slash")},"/"),Ee));var Fe=A?1:2;if(Ee<=3+2*Fe){Ee||ke.push(e.createElement(kY,Ge({},Pe,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var Ne=1;Ne<=Ee;Ne+=1)ke.push(e.createElement(kY,Ge({},Pe,{key:Ne,page:Ne,active:ee===Ne})))}else{var je=A?F.prev_3:F.prev_5,De=A?F.next_3:F.next_5,Le=V(ae,"jump-prev",se(U,"prev page")),Be=V(ie,"jump-next",se(q,"next page"));k&&(xe=Le?e.createElement("li",{title:T?je:null,key:"prev",onClick:ve,tabIndex:0,onKeyDown:function(e){be(e,ve)},className:$o()("".concat(i,"-jump-prev"),a({},"".concat(i,"-jump-prev-custom-icon"),!!U))},Le):null,_e=Be?e.createElement("li",{title:T?De:null,key:"next",onClick:ye,tabIndex:0,onKeyDown:function(e){be(e,ye)},className:$o()("".concat(i,"-jump-next"),a({},"".concat(i,"-jump-next-custom-icon"),!!q))},Be):null);var ze=Math.max(1,ee-Fe),He=Math.min(ee+Fe,Ee);ee-1<=Fe&&(He=1+2*Fe),Ee-ee<=Fe&&(ze=Ee-2*Fe);for(var We=ze;We<=He;We+=1)ke.push(e.createElement(kY,Ge({},Pe,{key:We,page:We,active:ee===We})));if(ee-1>=2*Fe&&3!==ee&&(ke[0]=e.cloneElement(ke[0],{className:$o()("".concat(i,"-item-after-jump-prev"),ke[0].props.className)}),ke.unshift(xe)),Ee-ee>=2*Fe&&ee!==Ee-2){var Ve=ke[ke.length-1];ke[ke.length-1]=e.cloneElement(Ve,{className:$o()("".concat(i,"-item-before-jump-next"),Ve.props.className)}),ke.push(_e)}1!==ze&&ke.unshift(e.createElement(kY,Ge({},Pe,{key:1,page:1}))),He!==Ee&&ke.push(e.createElement(kY,Ge({},Pe,{key:Ee,page:Ee})))}var Ue=function(t){var n=V(t,"prev",se(K,"prev page"));return e.isValidElement(n)?e.cloneElement(n,{disabled:!fe}):n}(Ae);if(Ue){var qe=!fe||!Ee;Ue=e.createElement("li",{title:T?F.prev_page:null,onClick:me,tabIndex:qe?null:0,onKeyDown:function(e){be(e,me)},className:$o()("".concat(i,"-prev"),a({},"".concat(i,"-disabled"),qe)),"aria-disabled":qe},Ue)}var Ke,Xe,Ye=function(t){var n=V(t,"next",se(X,"next page"));return e.isValidElement(n)?e.cloneElement(n,{disabled:!he}):n}(Oe);Ye&&(B?(Ke=!he,Xe=fe?0:null):Xe=(Ke=!he||!Ee)?null:0,Ye=e.createElement("li",{title:T?F.next_page:null,onClick:ge,tabIndex:Xe,onKeyDown:function(e){be(e,ge)},className:$o()("".concat(i,"-next"),a({},"".concat(i,"-disabled"),Ke)),"aria-disabled":Ke},Ye));var Ze=$o()(i,c,(a(n={},"".concat(i,"-start"),"start"===_),a(n,"".concat(i,"-center"),"center"===_),a(n,"".concat(i,"-end"),"end"===_),a(n,"".concat(i,"-simple"),B),a(n,"".concat(i,"-disabled"),L),n));return e.createElement("ul",Ge({className:Ze,style:N,ref:Y},Se),Ce,Ue,B?Re:ke,Ye,e.createElement(EY,{locale:F,rootPrefixCls:i,disabled:L,selectComponentClass:d,selectPrefixCls:l,changeSize:pe?function(e){var t=TY(e,$,v),n=ee>t&&0!==t?t:ee;Q(e),oe(n),null===I||void 0===I||I(ee,e),te(n),null===S||void 0===S||S(n,e)}:null,pageSize:$,pageSizeOptions:W,quickGo:ce?de:null,goButton:Ie}))},IY=t=>e.createElement(Jz,Object.assign({},t,{showSearch:!0,size:"small"})),RY=t=>e.createElement(Jz,Object.assign({},t,{showSearch:!0,size:"middle"}));IY.Option=Jz.Option,RY.Option=Jz.Option;const FY=e=>{const{componentCls:t}=e;return{["".concat(t,"-disabled")]:{"&, &:hover":{cursor:"not-allowed",["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},["&".concat(t,"-disabled")]:{cursor:"not-allowed",["".concat(t,"-item")]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},["".concat(t,"-simple&")]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},["".concat(t,"-simple-pager")]:{color:e.colorTextDisabled},["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{["".concat(t,"-item-link-icon")]:{opacity:0},["".concat(t,"-item-ellipsis")]:{opacity:1}}},["&".concat(t,"-simple")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{["&".concat(t,"-disabled ").concat(t,"-item-link")]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},NY=e=>{const{componentCls:t}=e;return{["&".concat(t,"-mini ").concat(t,"-total-text, &").concat(t,"-mini ").concat(t,"-simple-pager")]:{height:e.itemSizeSM,lineHeight:xe(e.itemSizeSM)},["&".concat(t,"-mini ").concat(t,"-item")]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:xe(e.calc(e.itemSizeSM).sub(2).equal())},["&".concat(t,"-mini:not(").concat(t,"-disabled) ").concat(t,"-item:not(").concat(t,"-item-active)")]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},["&".concat(t,"-mini ").concat(t,"-prev, &").concat(t,"-mini ").concat(t,"-next")]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:xe(e.itemSizeSM)},["&".concat(t,"-mini:not(").concat(t,"-disabled)")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{["&:hover ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextHover},["&:active ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextActive},["&".concat(t,"-disabled:hover ").concat(t,"-item-link")]:{backgroundColor:"transparent"}}},["\n    &".concat(t,"-mini ").concat(t,"-prev ").concat(t,"-item-link,\n    &").concat(t,"-mini ").concat(t,"-next ").concat(t,"-item-link\n    ")]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:xe(e.itemSizeSM)}},["&".concat(t,"-mini ").concat(t,"-jump-prev, &").concat(t,"-mini ").concat(t,"-jump-next")]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:xe(e.itemSizeSM)},["&".concat(t,"-mini ").concat(t,"-options")]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:xe(e.itemSizeSM),input:Object.assign(Object.assign({},vH(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},jY=e=>{const{componentCls:t}=e;return{["\n    &".concat(t,"-simple ").concat(t,"-prev,\n    &").concat(t,"-simple ").concat(t,"-next\n    ")]:{height:e.itemSizeSM,lineHeight:xe(e.itemSizeSM),verticalAlign:"top",["".concat(t,"-item-link")]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:xe(e.itemSizeSM)}}},["&".concat(t,"-simple ").concat(t,"-simple-pager")]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:"0 ".concat(xe(e.paginationItemPaddingInline)),textAlign:"center",backgroundColor:e.itemInputBg,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadius,outline:"none",transition:"border-color ".concat(e.motionDurationMid),color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:"".concat(xe(e.inputOutlineOffset)," 0 ").concat(xe(e.controlOutlineWidth)," ").concat(e.controlOutline)},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},DY=e=>{const{componentCls:t,antCls:n}=e;return{["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{outline:0,["".concat(t,"-item-container")]:{position:"relative",["".concat(t,"-item-link-icon")]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:"all ".concat(e.motionDurationMid),"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},["".concat(t,"-item-ellipsis")]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:"all ".concat(e.motionDurationMid)}},"&:hover":{["".concat(t,"-item-link-icon")]:{opacity:1},["".concat(t,"-item-ellipsis")]:{opacity:0}}},["\n    ".concat(t,"-prev,\n    ").concat(t,"-jump-prev,\n    ").concat(t,"-jump-next\n    ")]:{marginInlineEnd:e.marginXS},["\n    ".concat(t,"-prev,\n    ").concat(t,"-next,\n    ").concat(t,"-jump-prev,\n    ").concat(t,"-jump-next\n    ")]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:"".concat(xe(e.itemSize)),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:"all ".concat(e.motionDurationMid)},["".concat(t,"-prev, ").concat(t,"-next")]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},["".concat(t,"-item-link")]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," transparent"),borderRadius:e.borderRadius,outline:"none",transition:"all ".concat(e.motionDurationMid)},["&:hover ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextHover},["&:active ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextActive},["&".concat(t,"-disabled:hover")]:{["".concat(t,"-item-link")]:{backgroundColor:"transparent"}}},["".concat(t,"-slash")]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},["".concat(t,"-options")]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto",["".concat(n,"-select-arrow:not(:last-child)")]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:xe(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},yH(e)),oH(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},rH(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},LY=e=>{const{componentCls:t}=e;return{["".concat(t,"-item")]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:xe(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," transparent"),borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:"0 ".concat(xe(e.paginationItemPaddingInline)),color:e.colorText,"&:hover":{textDecoration:"none"}},["&:not(".concat(t,"-item-active)")]:{"&:hover":{transition:"all ".concat(e.motionDurationMid),backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},BY=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},["".concat(t,"-total-text")]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:xe(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),LY(e)),DY(e)),jY(e)),NY(e)),FY(e)),{["@media only screen and (max-width: ".concat(e.screenLG,"px)")]:{["".concat(t,"-item")]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},["@media only screen and (max-width: ".concat(e.screenSM,"px)")]:{["".concat(t,"-options")]:{display:"none"}}}),["&".concat(e.componentCls,"-rtl")]:{direction:"rtl"}}},zY=e=>{const{componentCls:t}=e;return{["".concat(t,":not(").concat(t,"-disabled)")]:{["".concat(t,"-item")]:Object.assign({},Vi(e)),["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{"&:focus-visible":Object.assign({["".concat(t,"-item-link-icon")]:{opacity:1},["".concat(t,"-item-ellipsis")]:{opacity:0}},Gi(e))},["".concat(t,"-prev, ").concat(t,"-next")]:{["&:focus-visible ".concat(t,"-item-link")]:Object.assign({},Gi(e))}}}},HY=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},tH(e)),WY=e=>hl(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},eH(e)),GY=Sl("Pagination",(e=>{const t=WY(e);return[BY(t),zY(t)]}),HY),VY=e=>{const{componentCls:t}=e;return{["".concat(t).concat(t,"-bordered").concat(t,"-disabled:not(").concat(t,"-mini)")]:{"&, &:hover":{["".concat(t,"-item-link")]:{borderColor:e.colorBorder}},"&:focus-visible":{["".concat(t,"-item-link")]:{borderColor:e.colorBorder}},["".concat(t,"-item, ").concat(t,"-item-link")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,["&:hover:not(".concat(t,"-item-active)")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},["&".concat(t,"-item-active")]:{backgroundColor:e.itemActiveBgDisabled}},["".concat(t,"-prev, ").concat(t,"-next")]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},["".concat(t,"-item-link")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},["".concat(t).concat(t,"-bordered:not(").concat(t,"-mini)")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},["".concat(t,"-item-link")]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},["&:hover ".concat(t,"-item-link")]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},["&".concat(t,"-disabled")]:{["".concat(t,"-item-link")]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},["".concat(t,"-item")]:{backgroundColor:e.itemBg,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),["&:hover:not(".concat(t,"-item-active)")]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},UY=xl(["Pagination","bordered"],(e=>{const t=WY(e);return[VY(t)]}),HY);var qY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const KY=t=>{const{align:n,prefixCls:r,selectPrefixCls:o,className:a,rootClassName:i,style:s,size:l,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:f}=t,h=qY(t,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:p}=gY(d),[,m]=ji(),{getPrefixCls:g,direction:v,pagination:y={}}=e.useContext(vo),b=g("pagination",r),[w,x,S]=GY(b),C=null!==f&&void 0!==f?f:y.showSizeChanger,_=e.useMemo((()=>{const t=e.createElement("span",{className:"".concat(b,"-item-ellipsis")},"\u2022\u2022\u2022");return{prevIcon:e.createElement("button",{className:"".concat(b,"-item-link"),type:"button",tabIndex:-1},"rtl"===v?e.createElement($s,null):e.createElement(Xs,null)),nextIcon:e.createElement("button",{className:"".concat(b,"-item-link"),type:"button",tabIndex:-1},"rtl"===v?e.createElement(Xs,null):e.createElement($s,null)),jumpPrevIcon:e.createElement("a",{className:"".concat(b,"-item-link")},e.createElement("div",{className:"".concat(b,"-item-container")},"rtl"===v?e.createElement(SY,{className:"".concat(b,"-item-link-icon")}):e.createElement(bY,{className:"".concat(b,"-item-link-icon")}),t)),jumpNextIcon:e.createElement("a",{className:"".concat(b,"-item-link")},e.createElement("div",{className:"".concat(b,"-item-container")},"rtl"===v?e.createElement(bY,{className:"".concat(b,"-item-link-icon")}):e.createElement(SY,{className:"".concat(b,"-item-link-icon")}),t))}}),[v,b]),[E]=$B("Pagination",Pn),k=Object.assign(Object.assign({},E),c),P=gF(l),A="small"===P||!(!p||P||!d),O=g("select",o),T=$o()({["".concat(b,"-").concat(n)]:!!n,["".concat(b,"-mini")]:A,["".concat(b,"-rtl")]:"rtl"===v,["".concat(b,"-bordered")]:m.wireframe},null===y||void 0===y?void 0:y.className,a,i,x,S),M=Object.assign(Object.assign({},null===y||void 0===y?void 0:y.style),s);return w(e.createElement(e.Fragment,null,m.wireframe&&e.createElement(UY,{prefixCls:b}),e.createElement(MY,Object.assign({},_,h,{style:M,prefixCls:b,selectPrefixCls:O,className:T,selectComponentClass:u||(A?IY:RY),locale:k,showSizeChanger:C}))))},XY=KY;function YY(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},a=o.noTrailing,i=void 0!==a&&a,s=o.noLeading,l=void 0!==s&&s,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,f=0;function h(){r&&clearTimeout(r)}function p(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var s=this,c=Date.now()-f;function p(){f=Date.now(),t.apply(s,o)}function m(){r=void 0}d||(l||!u||r||p(),h(),void 0===u&&c>e?l?(f=Date.now(),i||(r=setTimeout(u?m:p,e))):p():!0!==i&&(r=setTimeout(u?m:p,void 0===u?e-c:e)))}return p.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;h(),d=!n},p}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}function ZY(t){let{percent:n,prefixCls:r}=t;const o="".concat(r,"-dot"),a="".concat(o,"-holder"),i="".concat(a,"-hidden"),[s,l]=e.useState(!1);ka((()=>{0!==n&&l(!0)}),[0!==n]);const c=Math.max(Math.min(n,100),0),u=100,d=80*Math.PI,f=(t,n)=>e.createElement("circle",{className:$o()(t,"".concat(o,"-circle")),r:40,cx:"50",cy:"50",strokeWidth:20,style:n});return s?e.createElement("span",{className:$o()(a,"".concat(o,"-progress"),c<=0&&i)},e.createElement("svg",{viewBox:"0 0 ".concat(u," ").concat(u),role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},f("".concat(o,"-circle-bg")),f("",{strokeDasharray:"".concat(d*c/100," ").concat(d*(100-c)/100),strokeDashoffset:"".concat(d/4)}))):null}function $Y(t){const{prefixCls:n,percent:r=0}=t,o="".concat(n,"-dot"),a="".concat(o,"-holder"),i="".concat(a,"-hidden");return e.createElement(e.Fragment,null,e.createElement("span",{className:$o()(a,r>0&&i)},e.createElement("span",{className:$o()(o,"".concat(n,"-dot-spin"))},[1,2,3,4].map((t=>e.createElement("i",{className:"".concat(n,"-dot-item"),key:t}))))),e.createElement(ZY,{prefixCls:n,percent:r}))}function QY(t){const{prefixCls:n,indicator:r,percent:o}=t,a="".concat(n,"-dot");return r&&e.isValidElement(r)?vI(r,{className:$o()(r.props.className,a),percent:o}):e.createElement($Y,{prefixCls:n,percent:o})}const JY=new Yt("antSpinMove",{to:{opacity:1}}),eZ=new Yt("antRotate",{to:{transform:"rotate(405deg)"}}),tZ=e=>{const{componentCls:t,calc:n}=e;return{["".concat(t)]:Object.assign(Object.assign({},zi(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:"transform ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc),"&-spinning":{position:"relative",display:"inline-block",opacity:1},["".concat(t,"-text")]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:"all ".concat(e.motionDurationMid),"&-show":{opacity:1,visibility:"visible"},[t]:{["".concat(t,"-dot-holder")]:{color:e.colorWhite},["".concat(t,"-text")]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",["> div > ".concat(t)]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,["".concat(t,"-dot")]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},["".concat(t,"-text")]:{position:"absolute",top:"50%",width:"100%",textShadow:"0 1px 2px ".concat(e.colorBgContainer)},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{["".concat(t,"-dot")]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},["".concat(t,"-text")]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{["".concat(t,"-dot")]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},["".concat(t,"-text")]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},["&".concat(t,"-show-text ").concat(t,"-dot")]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},["".concat(t,"-container")]:{position:"relative",transition:"opacity ".concat(e.motionDurationSlow),"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:"all ".concat(e.motionDurationSlow),content:'""',pointerEvents:"none"}},["".concat(t,"-blur")]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},["".concat(t,"-dot-holder")]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:"transform ".concat(e.motionDurationSlow," ease, opacity ").concat(e.motionDurationSlow," ease"),transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},["".concat(t,"-dot-progress")]:{position:"absolute",top:"50%",transform:"translateY(-50%)",insetInlineStart:0},["".concat(t,"-dot")]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:JY,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:eZ,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>"".concat(t," ").concat(e.motionDurationSlow," ease"))).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},["&-sm ".concat(t,"-dot")]:{"&, &-holder":{fontSize:e.dotSizeSM}},["&-sm ".concat(t,"-dot-holder")]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},["&-lg ".concat(t,"-dot")]:{"&, &-holder":{fontSize:e.dotSizeLG}},["&-lg ".concat(t,"-dot-holder")]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},["&".concat(t,"-show-text ").concat(t,"-text")]:{display:"block"}})}},nZ=Sl("Spin",(e=>{const t=hl(e,{spinDotDefault:e.colorTextDescription});return[tZ(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}})),rZ=[[30,.05],[70,.03],[96,.01]];var oZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let aZ;const iZ=t=>{const{prefixCls:n,spinning:r=!0,delay:o=0,className:a,rootClassName:i,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:f=!1,indicator:h,percent:p}=t,m=oZ(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g}=e.useContext(vo),v=g("spin",n),[y,b,w]=nZ(v),[x,S]=e.useState((()=>r&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(r,o))),C=function(t,n){const[r,o]=e.useState(0),a=e.useRef(),i="auto"===n;return e.useEffect((()=>(i&&t&&(o(0),a.current=setInterval((()=>{o((e=>{const t=100-e;for(let n=0;n<rZ.length;n+=1){const[r,o]=rZ[n];if(e<=r)return e+t*o}return e}))}),200)),()=>{clearInterval(a.current)})),[i,t]),i?r:n}(x,p);e.useEffect((()=>{if(r){const e=YY(o,(()=>{S(!0)}));return e(),()=>{var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}S(!1)}),[o,r]);const _=e.useMemo((()=>"undefined"!==typeof d&&!f),[d,f]);const{direction:E,spin:k}=e.useContext(vo),P=$o()(v,null===k||void 0===k?void 0:k.className,{["".concat(v,"-sm")]:"small"===s,["".concat(v,"-lg")]:"large"===s,["".concat(v,"-spinning")]:x,["".concat(v,"-show-text")]:!!l,["".concat(v,"-rtl")]:"rtl"===E},a,!f&&i,b,w),A=$o()("".concat(v,"-container"),{["".concat(v,"-blur")]:x}),O=Object.assign(Object.assign({},null===k||void 0===k?void 0:k.style),u),T=e.createElement("div",Object.assign({},m,{style:O,className:P,"aria-live":"polite","aria-busy":x}),e.createElement(QY,{prefixCls:v,indicator:null!==h&&void 0!==h?h:aZ,percent:C}),l&&(_||f)?e.createElement("div",{className:"".concat(v,"-text")},l):null);return y(_?e.createElement("div",Object.assign({},m,{className:$o()("".concat(v,"-nested-loading"),c,b,w)}),x&&e.createElement("div",{key:"loading"},T),e.createElement("div",{className:A,key:"container"},d)):f?e.createElement("div",{className:$o()("".concat(v,"-fullscreen"),{["".concat(v,"-fullscreen-show")]:x},i,b,w)},T):T)};iZ.setDefaultIndicator=e=>{aZ=e};const sZ=iZ;const lZ=function(t){return function(n){let{prefixCls:r,onExpand:o,record:a,expanded:i,expandable:s}=n;const l="".concat(r,"-row-expand-icon");return e.createElement("button",{type:"button",onClick:e=>{o(a,e),e.stopPropagation()},className:$o()(l,{["".concat(l,"-spaced")]:!s,["".concat(l,"-expanded")]:s&&i,["".concat(l,"-collapsed")]:s&&!i}),"aria-label":i?t.collapse:t.expand,"aria-expanded":i})}};function cZ(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function uZ(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function dZ(e,t){return"function"===typeof e?e(t):e}const fZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var hZ=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:fZ}))};const pZ=e.forwardRef(hZ);var mZ={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=mZ.F1&&t<=mZ.F12)return!1;switch(t){case mZ.ALT:case mZ.CAPS_LOCK:case mZ.CONTEXT_MENU:case mZ.CTRL:case mZ.DOWN:case mZ.END:case mZ.ESC:case mZ.HOME:case mZ.INSERT:case mZ.LEFT:case mZ.MAC_FF_META:case mZ.META:case mZ.NUMLOCK:case mZ.NUM_CENTER:case mZ.PAGE_DOWN:case mZ.PAGE_UP:case mZ.PAUSE:case mZ.PRINT_SCREEN:case mZ.RIGHT:case mZ.SHIFT:case mZ.UP:case mZ.WIN_KEY:case mZ.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=mZ.ZERO&&e<=mZ.NINE)return!0;if(e>=mZ.NUM_ZERO&&e<=mZ.NUM_MULTIPLY)return!0;if(e>=mZ.A&&e<=mZ.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case mZ.SPACE:case mZ.QUESTION_MARK:case mZ.NUM_PLUS:case mZ.NUM_MINUS:case mZ.NUM_PERIOD:case mZ.NUM_DIVISION:case mZ.SEMICOLON:case mZ.DASH:case mZ.EQUALS:case mZ.COMMA:case mZ.PERIOD:case mZ.SLASH:case mZ.APOSTROPHE:case mZ.SINGLE_QUOTE:case mZ.OPEN_SQUARE_BRACKET:case mZ.BACKSLASH:case mZ.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const gZ=mZ;function vZ(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function yZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||Jq(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bZ(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var wZ=bZ()?e.useLayoutEffect:e.useEffect,xZ=function(t,n){var r=e.useRef(!0);wZ((function(){return t(r.current)}),n),wZ((function(){return r.current=!1,function(){r.current=!0}}),[])};const SZ=xZ;function CZ(t){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(t)?t:t instanceof e.Component?Qo.findDOMNode(t):null}function _Z(e,t){"function"===typeof e?e(t):"object"===tK(e)&&e&&"current"in e&&(e.current=t)}function EZ(e){var t,n,r=(0,na.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===na.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===na.ForwardRef)}var kZ=e.createContext({});var PZ=function(e){wK(n,e);var t=CK(n);function n(){return mK(this,n),t.apply(this,arguments)}return vK(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);const AZ=PZ;function OZ(t){var n=e.useRef(!1),r=yZ(e.useState(t),2),o=r[0],a=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||a(e)}]}var TZ="none",MZ="appear",IZ="enter",RZ="leave",FZ="none",NZ="prepare",jZ="start",DZ="active",LZ="end",BZ="prepared";function zZ(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var HZ=function(e,t){var n={animationend:zZ("Animation","AnimationEnd"),transitionend:zZ("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(bZ(),"undefined"!==typeof window?window:{}),WZ={};if(bZ()){var GZ=document.createElement("div");WZ=GZ.style}var VZ={};function UZ(e){if(VZ[e])return VZ[e];var t=HZ[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in WZ)return VZ[e]=t[a],VZ[e]}return""}var qZ=UZ("animationend"),KZ=UZ("transitionend"),XZ=!(!qZ||!KZ),YZ=qZ||"animationend",ZZ=KZ||"transitionend";function $Z(e,t){if(!e)return null;if("object"===tK(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const QZ=function(t){var n=(0,e.useRef)(),r=(0,e.useRef)(t);r.current=t;var o=e.useCallback((function(e){r.current(e)}),[]);function a(e){e&&(e.removeEventListener(ZZ,o),e.removeEventListener(YZ,o))}return e.useEffect((function(){return function(){a(n.current)}}),[]),[function(e){n.current&&n.current!==e&&a(n.current),e&&e!==n.current&&(e.addEventListener(ZZ,o),e.addEventListener(YZ,o),n.current=e)},a]};const JZ=bZ()?e.useLayoutEffect:e.useEffect;var e$=function(e){return+setTimeout(e,16)},t$=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(e$=function(e){return window.requestAnimationFrame(e)},t$=function(e){return window.cancelAnimationFrame(e)});var n$=0,r$=new Map;function o$(e){r$.delete(e)}var a$=function(e){var t=n$+=1;return function n(r){if(0===r)o$(t),e();else{var o=e$((function(){n(r-1)}));r$.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};a$.cancel=function(e){var t=r$.get(e);return o$(e),t$(t)};const i$=a$;var s$=[NZ,jZ,DZ,LZ],l$=[NZ,BZ],c$=!1,u$=!0;function d$(e){return e===DZ||e===LZ}const f$=function(t,n,r){var o=yZ(OZ(FZ),2),a=o[0],i=o[1],s=function(){var t=e.useRef(null);function n(){i$.cancel(t.current)}return e.useEffect((function(){return function(){n()}}),[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var a=i$((function(){o<=1?r({isCanceled:function(){return a!==t.current}}):e(r,o-1)}));t.current=a},n]}(),l=yZ(s,2),c=l[0],u=l[1];var d=n?l$:s$;return JZ((function(){if(a!==FZ&&a!==LZ){var e=d.indexOf(a),t=d[e+1],n=r(a);n===c$?i(t,!0):t&&c((function(e){function r(){e.isCanceled()||i(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[t,a]),e.useEffect((function(){return function(){u()}}),[]),[function(){i(NZ,!0)},a]};const h$=function(t){var n=t;"object"===tK(t)&&(n=t.transitionSupport);var r=e.forwardRef((function(t,r){var o=t.visible,a=void 0===o||o,i=t.removeOnLeave,s=void 0===i||i,l=t.forceRender,c=t.children,u=t.motionName,d=t.leavedClassName,f=t.eventProps,h=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(kZ).motion),p=(0,e.useRef)(),m=(0,e.useRef)();var g=function(t,n,r,o){var a=o.motionEnter,i=void 0===a||a,s=o.motionAppear,l=void 0===s||s,c=o.motionLeave,u=void 0===c||c,d=o.motionDeadline,f=o.motionLeaveImmediately,h=o.onAppearPrepare,p=o.onEnterPrepare,m=o.onLeavePrepare,g=o.onAppearStart,v=o.onEnterStart,y=o.onLeaveStart,b=o.onAppearActive,w=o.onEnterActive,x=o.onLeaveActive,S=o.onAppearEnd,C=o.onEnterEnd,_=o.onLeaveEnd,E=o.onVisibleChanged,k=yZ(OZ(),2),P=k[0],A=k[1],O=yZ(OZ(TZ),2),T=O[0],M=O[1],I=yZ(OZ(null),2),R=I[0],F=I[1],N=(0,e.useRef)(!1),j=(0,e.useRef)(null);function D(){return r()}var L=(0,e.useRef)(!1);function B(){M(TZ,!0),F(null,!0)}function z(e){var t=D();if(!e||e.deadline||e.target===t){var n,r=L.current;T===MZ&&r?n=null===S||void 0===S?void 0:S(t,e):T===IZ&&r?n=null===C||void 0===C?void 0:C(t,e):T===RZ&&r&&(n=null===_||void 0===_?void 0:_(t,e)),T!==TZ&&r&&!1!==n&&B()}}var H=yZ(QZ(z),1)[0],W=function(e){var t,n,r;switch(e){case MZ:return fK(t={},NZ,h),fK(t,jZ,g),fK(t,DZ,b),t;case IZ:return fK(n={},NZ,p),fK(n,jZ,v),fK(n,DZ,w),n;case RZ:return fK(r={},NZ,m),fK(r,jZ,y),fK(r,DZ,x),r;default:return{}}},G=e.useMemo((function(){return W(T)}),[T]),V=yZ(f$(T,!t,(function(e){if(e===NZ){var t=G[NZ];return t?t(D()):c$}var n;return q in G&&F((null===(n=G[q])||void 0===n?void 0:n.call(G,D(),null))||null),q===DZ&&(H(D()),d>0&&(clearTimeout(j.current),j.current=setTimeout((function(){z({deadline:!0})}),d))),q===BZ&&B(),u$})),2),U=V[0],q=V[1],K=d$(q);L.current=K,JZ((function(){A(n);var e,r=N.current;N.current=!0,!r&&n&&l&&(e=MZ),r&&n&&i&&(e=IZ),(r&&!n&&u||!r&&f&&!n&&u)&&(e=RZ);var o=W(e);e&&(t||o[NZ])?(M(e),U()):M(TZ)}),[n]),(0,e.useEffect)((function(){(T===MZ&&!l||T===IZ&&!i||T===RZ&&!u)&&M(TZ)}),[l,i,u]),(0,e.useEffect)((function(){return function(){N.current=!1,clearTimeout(j.current)}}),[]);var X=e.useRef(!1);(0,e.useEffect)((function(){P&&(X.current=!0),void 0!==P&&T===TZ&&((X.current||P)&&(null===E||void 0===E||E(P)),X.current=!0)}),[P,T]);var Y=R;return G[NZ]&&q===jZ&&(Y=pK({transition:"none"},Y)),[T,q,Y,null!==P&&void 0!==P?P:n]}(h,a,(function(){try{return p.current instanceof HTMLElement?p.current:CZ(m.current)}catch(x7){return null}}),t),v=yZ(g,4),y=v[0],b=v[1],w=v[2],x=v[3],S=e.useRef(x);x&&(S.current=!0);var C,_=e.useCallback((function(e){p.current=e,_Z(r,e)}),[r]),E=pK(pK({},f),{},{visible:a});if(c)if(y===TZ)C=x?c(pK({},E),_):!s&&S.current&&d?c(pK(pK({},E),{},{className:d}),_):l||!s&&!d?c(pK(pK({},E),{},{style:{display:"none"}}),_):null;else{var k,P;b===NZ?P="prepare":d$(b)?P="active":b===jZ&&(P="start");var A=$Z(u,"".concat(y,"-").concat(P));C=c(pK(pK({},E),{},{className:$o()($Z(u,y),(k={},fK(k,A,A&&P),fK(k,u,"string"===typeof u),k)),style:w}),_)}else C=null;e.isValidElement(C)&&EZ(C)&&(C.ref||(C=e.cloneElement(C,{ref:_})));return e.createElement(AZ,{ref:m},C)}));return r.displayName="CSSMotion",r}(XZ);var p$="add",m$="keep",g$="remove",v$="removed";function y$(e){var t;return pK(pK({},t=e&&"object"===tK(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function b$(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(y$)}var w$=["component","children","onVisibleChanged","onAllRemoved"],x$=["status"],S$=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h$,r=function(t){wK(o,t);var r=CK(o);function o(){var e;mK(this,o);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return fK(yK(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),fK(yK(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:pK(pK({},e),{},{status:v$})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==v$})).length})),e}return vK(o,[{key:"render",value:function(){var t=this,r=this.state.keyEntities,o=this.props,a=o.component,i=o.children,s=o.onVisibleChanged,l=o.onAllRemoved,c=uK(o,w$),u=a||e.Fragment,d={};return S$.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,e.createElement(u,c,r.map((function(r,o){var a=r.status,c=uK(r,x$),u=a===p$||a===m$;return e.createElement(n,cK({},d,{key:c.key,visible:u,eventProps:c,onVisibleChanged:function(e){(null===s||void 0===s||s(e,{key:c.key}),e)||0===t.removeKey(c.key)&&l&&l()}}),(function(e,t){return i(pK(pK({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=b$(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=b$(e),i=b$(t);a.forEach((function(e){for(var t=!1,a=r;a<o;a+=1){var s=i[a];if(s.key===e.key){r<a&&(n=n.concat(i.slice(r,a).map((function(e){return pK(pK({},e),{},{status:p$})}))),r=a),n.push(pK(pK({},s),{},{status:m$})),r+=1,t=!0;break}}t||n.push(pK(pK({},e),{},{status:g$}))})),r<o&&(n=n.concat(i.slice(r).map((function(e){return pK(pK({},e),{},{status:p$})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==g$}))).forEach((function(t){t.key===e&&(t.status=m$)}))})),n}(r,o);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==v$||e.status!==g$}))}}}]),o}(e.Component);fK(r,"defaultProps",{component:"div"})}(XZ);const C$=h$;var _$=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],E$=function(t,n){var r=t.className,o=t.style,a=t.motion,i=t.motionNodes,s=t.motionType,l=t.onMotionStart,c=t.onMotionEnd,u=t.active,d=t.treeNodeRequiredProps,f=uK(t,_$),h=yZ(e.useState(!0),2),p=h[0],m=h[1],g=e.useContext(PK).prefixCls,v=i&&"hide"!==s;SZ((function(){i&&v!==p&&m(v)}),[i]);var y=e.useRef(!1),b=function(){i&&!y.current&&(y.current=!0,c())};!function(t,n){var r=yZ(e.useState(!1),2),o=r[0],a=r[1];SZ((function(){if(o)return t(),function(){n()}}),[o]),SZ((function(){return a(!0),function(){a(!1)}}),[])}((function(){i&&l()}),b);return i?e.createElement(C$,cK({ref:n,visible:p},a,{motionAppear:"show"===s,onVisibleChanged:function(e){v===e&&b()}}),(function(t,n){var r=t.className,o=t.style;return e.createElement("div",{ref:n,className:$o()("".concat(g,"-treenode-motion"),r),style:o},i.map((function(t){var n=Object.assign({},(vZ(t.data),t.data)),r=t.title,o=t.key,a=t.isStart,i=t.isEnd;delete n.children;var s=BK(o,d);return e.createElement(qK,cK({},n,s,{title:r,active:u,data:t.data,key:o,isStart:a,isEnd:i}))})))})):e.createElement(qK,cK({domRef:n,className:r,style:o},f,{active:u}))};E$.displayName="MotionTreeNode";const k$=e.forwardRef(E$);function P$(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],a=t.findIndex((function(e){return e.key===n}));if(o){var i=t.findIndex((function(e){return e.key===o.key}));return t.slice(a+1,i)}return t.slice(a+1)}var A$=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],O$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},T$=function(){},M$="RC_TREE_MOTION_".concat(Math.random()),I$={key:M$},R$={key:M$,level:0,index:0,pos:"0",node:I$,nodes:[I$]},F$={parent:null,children:[],pos:R$.pos,data:I$,title:null,key:M$,isStart:[],isEnd:[]};function N$(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function j$(e){return FK(e.key,e.pos)}var D$=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.data,a=(t.selectable,t.checkable,t.expandedKeys),i=t.selectedKeys,s=t.checkedKeys,l=t.loadedKeys,c=t.loadingKeys,u=t.halfCheckedKeys,d=t.keyEntities,f=t.disabled,h=t.dragging,p=t.dragOverNodeKey,m=t.dropPosition,g=t.motion,v=t.height,y=t.itemHeight,b=t.virtual,w=t.focusable,x=t.activeItem,S=t.focused,C=t.tabIndex,_=t.onKeyDown,E=t.onFocus,k=t.onBlur,P=t.onActiveChange,A=t.onListChangeStart,O=t.onListChangeEnd,T=uK(t,A$),M=e.useRef(null),I=e.useRef(null);e.useImperativeHandle(n,(function(){return{scrollTo:function(e){M.current.scrollTo(e)},getIndentWidth:function(){return I.current.offsetWidth}}}));var R=yZ(e.useState(a),2),F=R[0],N=R[1],j=yZ(e.useState(o),2),D=j[0],L=j[1],B=yZ(e.useState(o),2),z=B[0],H=B[1],W=yZ(e.useState([]),2),G=W[0],V=W[1],U=yZ(e.useState(null),2),q=U[0],K=U[1],X=e.useRef(o);function Y(){var e=X.current;L(e),H(e),V([]),K(null),O()}X.current=o,SZ((function(){N(a);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(F,a);if(null!==e.key)if(e.add){var t=D.findIndex((function(t){return t.key===e.key})),n=N$(P$(D,o,e.key),b,v,y),r=D.slice();r.splice(t+1,0,F$),H(r),V(n),K("show")}else{var i=o.findIndex((function(t){return t.key===e.key})),s=N$(P$(o,D,e.key),b,v,y),l=o.slice();l.splice(i+1,0,F$),H(l),V(s),K("hide")}else D!==o&&(L(o),H(o))}),[a,o]),e.useEffect((function(){h||Y()}),[h]);var Z=g?z:o,$={expandedKeys:a,selectedKeys:i,loadedKeys:l,loadingKeys:c,checkedKeys:s,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:m,keyEntities:d};return e.createElement(e.Fragment,null,S&&x&&e.createElement("span",{style:O$,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(x)),e.createElement("div",null,e.createElement("input",{style:O$,disabled:!1===w||f,tabIndex:!1!==w?C:null,onKeyDown:_,onFocus:E,onBlur:k,value:"",onChange:T$,"aria-label":"for screen reader"})),e.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},e.createElement("div",{className:"".concat(r,"-indent")},e.createElement("div",{ref:I,className:"".concat(r,"-indent-unit")}))),e.createElement(AB,cK({},T,{data:Z,itemKey:j$,height:v,fullHeight:!1,virtual:b,itemHeight:y,prefixCls:"".concat(r,"-list"),ref:M,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return j$(e)===M$}))&&Y()}}),(function(t){var n=t.pos,r=Object.assign({},(vZ(t.data),t.data)),o=t.title,a=t.key,i=t.isStart,s=t.isEnd,l=FK(a,n);delete r.key,delete r.children;var c=BK(l,$);return e.createElement(k$,cK({},r,c,{title:o,active:!!x&&a===x.key,pos:n,data:t.data,isStart:i,isEnd:s,motion:g,motionNodes:a===M$?G:null,motionType:q,onMotionStart:A,onMotionEnd:Y,treeNodeRequiredProps:$,onMouseMove:function(){P(null)}}))})))}));D$.displayName="NodeList";const L$=D$;var B$=function(t){wK(r,t);var n=CK(r);function r(){var t;mK(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return fK(yK(t=n.call.apply(n,[this].concat(a))),"destroyed",!1),fK(yK(t),"delayedDragEnterLogic",void 0),fK(yK(t),"loadingRetryTimes",{}),fK(yK(t),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:NK()}),fK(yK(t),"dragStartMousePosition",null),fK(yK(t),"dragNode",void 0),fK(yK(t),"currentMouseOverDroppableNodeKey",null),fK(yK(t),"listRef",e.createRef()),fK(yK(t),"onNodeDragStart",(function(e,n){var r=t.state,o=r.expandedKeys,a=r.keyEntities,i=t.props.onDragStart,s=n.props.eventKey;t.dragNode=n,t.dragStartMousePosition={x:e.clientX,y:e.clientY};var l=KK(o,s);t.setState({draggingNodeKey:s,dragChildrenKeys:ZK(s,a),indent:t.listRef.current.getIndentWidth()}),t.setExpandedKeys(l),window.addEventListener("dragend",t.onWindowDragEnd),null===i||void 0===i||i({event:e,node:zK(n.props)})})),fK(yK(t),"onNodeDragEnter",(function(e,n){var r=t.state,o=r.expandedKeys,a=r.keyEntities,i=r.dragChildrenKeys,s=r.flattenNodes,l=r.indent,c=t.props,u=c.onDragEnter,d=c.onExpand,f=c.allowDrop,h=c.direction,p=n.props,m=p.pos,g=p.eventKey,v=yK(t).dragNode;if(t.currentMouseOverDroppableNodeKey!==g&&(t.currentMouseOverDroppableNodeKey=g),v){var y=QK(e,v,n,l,t.dragStartMousePosition,f,s,a,o,h),b=y.dropPosition,w=y.dropLevelOffset,x=y.dropTargetKey,S=y.dropContainerKey,C=y.dropTargetPos,_=y.dropAllowed,E=y.dragOverNodeKey;-1===i.indexOf(x)&&_?(t.delayedDragEnterLogic||(t.delayedDragEnterLogic={}),Object.keys(t.delayedDragEnterLogic).forEach((function(e){clearTimeout(t.delayedDragEnterLogic[e])})),v.props.eventKey!==n.props.eventKey&&(e.persist(),t.delayedDragEnterLogic[m]=window.setTimeout((function(){if(null!==t.state.draggingNodeKey){var r=eK(o),i=TK(a,n.props.eventKey);i&&(i.children||[]).length&&(r=XK(o,n.props.eventKey)),"expandedKeys"in t.props||t.setExpandedKeys(r),null===d||void 0===d||d(r,{node:zK(n.props),expanded:!0,nativeEvent:e.nativeEvent})}}),800)),v.props.eventKey!==x||0!==w?(t.setState({dragOverNodeKey:E,dropPosition:b,dropLevelOffset:w,dropTargetKey:x,dropContainerKey:S,dropTargetPos:C,dropAllowed:_}),null===u||void 0===u||u({event:e,node:zK(n.props),expandedKeys:o})):t.resetDragState()):t.resetDragState()}else t.resetDragState()})),fK(yK(t),"onNodeDragOver",(function(e,n){var r=t.state,o=r.dragChildrenKeys,a=r.flattenNodes,i=r.keyEntities,s=r.expandedKeys,l=r.indent,c=t.props,u=c.onDragOver,d=c.allowDrop,f=c.direction,h=yK(t).dragNode;if(h){var p=QK(e,h,n,l,t.dragStartMousePosition,d,a,i,s,f),m=p.dropPosition,g=p.dropLevelOffset,v=p.dropTargetKey,y=p.dropContainerKey,b=p.dropAllowed,w=p.dropTargetPos,x=p.dragOverNodeKey;-1===o.indexOf(v)&&b&&(h.props.eventKey===v&&0===g?null===t.state.dropPosition&&null===t.state.dropLevelOffset&&null===t.state.dropTargetKey&&null===t.state.dropContainerKey&&null===t.state.dropTargetPos&&!1===t.state.dropAllowed&&null===t.state.dragOverNodeKey||t.resetDragState():m===t.state.dropPosition&&g===t.state.dropLevelOffset&&v===t.state.dropTargetKey&&y===t.state.dropContainerKey&&w===t.state.dropTargetPos&&b===t.state.dropAllowed&&x===t.state.dragOverNodeKey||t.setState({dropPosition:m,dropLevelOffset:g,dropTargetKey:v,dropContainerKey:y,dropTargetPos:w,dropAllowed:b,dragOverNodeKey:x}),null===u||void 0===u||u({event:e,node:zK(n.props)}))}})),fK(yK(t),"onNodeDragLeave",(function(e,n){t.currentMouseOverDroppableNodeKey!==n.props.eventKey||e.currentTarget.contains(e.relatedTarget)||(t.resetDragState(),t.currentMouseOverDroppableNodeKey=null);var r=t.props.onDragLeave;null===r||void 0===r||r({event:e,node:zK(n.props)})})),fK(yK(t),"onWindowDragEnd",(function(e){t.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",t.onWindowDragEnd)})),fK(yK(t),"onNodeDragEnd",(function(e,n){var r=t.props.onDragEnd;t.setState({dragOverNodeKey:null}),t.cleanDragState(),null===r||void 0===r||r({event:e,node:zK(n.props)}),t.dragNode=null,window.removeEventListener("dragend",t.onWindowDragEnd)})),fK(yK(t),"onNodeDrop",(function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.state,i=a.dragChildrenKeys,s=a.dropPosition,l=a.dropTargetKey,c=a.dropTargetPos;if(a.dropAllowed){var u=t.props.onDrop;if(t.setState({dragOverNodeKey:null}),t.cleanDragState(),null!==l){var d=pK(pK({},BK(l,t.getTreeNodeRequiredProps())),{},{active:(null===(r=t.getActiveItem())||void 0===r?void 0:r.key)===l,data:TK(t.state.keyEntities,l).node}),f=-1!==i.indexOf(l);lK(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=YK(c),p={event:e,node:zK(d),dragNode:t.dragNode?zK(t.dragNode.props):null,dragNodesKeys:[t.dragNode.props.eventKey].concat(i),dropToGap:0!==s,dropPosition:s+Number(h[h.length-1])};o||null===u||void 0===u||u(p),t.dragNode=null}}})),fK(yK(t),"cleanDragState",(function(){null!==t.state.draggingNodeKey&&t.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),t.dragStartMousePosition=null,t.currentMouseOverDroppableNodeKey=null})),fK(yK(t),"triggerExpandActionExpand",(function(e,n){var r=t.state,o=r.expandedKeys,a=r.flattenNodes,i=n.expanded,s=n.key;if(!(n.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey)){var l=a.filter((function(e){return e.key===s}))[0],c=zK(pK(pK({},BK(s,t.getTreeNodeRequiredProps())),{},{data:l.data}));t.setExpandedKeys(i?KK(o,s):XK(o,s)),t.onNodeExpand(e,c)}})),fK(yK(t),"onNodeClick",(function(e,n){var r=t.props,o=r.onClick;"click"===r.expandAction&&t.triggerExpandActionExpand(e,n),null===o||void 0===o||o(e,n)})),fK(yK(t),"onNodeDoubleClick",(function(e,n){var r=t.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&t.triggerExpandActionExpand(e,n),null===o||void 0===o||o(e,n)})),fK(yK(t),"onNodeSelect",(function(e,n){var r=t.state.selectedKeys,o=t.state,a=o.keyEntities,i=o.fieldNames,s=t.props,l=s.onSelect,c=s.multiple,u=n.selected,d=n[i.key],f=!u,h=(r=f?c?XK(r,d):[d]:KK(r,d)).map((function(e){var t=TK(a,e);return t?t.node:null})).filter((function(e){return e}));t.setUncontrolledState({selectedKeys:r}),null===l||void 0===l||l(r,{event:"select",selected:f,node:n,selectedNodes:h,nativeEvent:e.nativeEvent})})),fK(yK(t),"onNodeCheck",(function(e,n,r){var o,a=t.state,i=a.keyEntities,s=a.checkedKeys,l=a.halfCheckedKeys,c=t.props,u=c.checkStrictly,d=c.onCheck,f=n.key,h={event:"check",node:n,checked:r,nativeEvent:e.nativeEvent};if(u){var p=r?XK(s,f):KK(s,f);o={checked:p,halfChecked:KK(l,f)},h.checkedNodes=p.map((function(e){return TK(i,e)})).filter((function(e){return e})).map((function(e){return e.node})),t.setUncontrolledState({checkedKeys:p})}else{var m=oX([].concat(eK(s),[f]),!0,i),g=m.checkedKeys,v=m.halfCheckedKeys;if(!r){var y=new Set(g);y.delete(f);var b=oX(Array.from(y),{checked:!1,halfCheckedKeys:v},i);g=b.checkedKeys,v=b.halfCheckedKeys}o=g,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=v,g.forEach((function(e){var t=TK(i,e);if(t){var n=t.node,r=t.pos;h.checkedNodes.push(n),h.checkedNodesPositions.push({node:n,pos:r})}})),t.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:v})}null===d||void 0===d||d(o,h)})),fK(yK(t),"onNodeLoad",(function(e){var n,r=e.key,o=TK(t.state.keyEntities,r);if(null===o||void 0===o||null===(n=o.children)||void 0===n||!n.length){var a=new Promise((function(n,o){t.setState((function(a){var i=a.loadedKeys,s=void 0===i?[]:i,l=a.loadingKeys,c=void 0===l?[]:l,u=t.props,d=u.loadData,f=u.onLoad;return d&&-1===s.indexOf(r)&&-1===c.indexOf(r)?(d(e).then((function(){var o=XK(t.state.loadedKeys,r);null===f||void 0===f||f(o,{event:"load",node:e}),t.setUncontrolledState({loadedKeys:o}),t.setState((function(e){return{loadingKeys:KK(e.loadingKeys,r)}})),n()})).catch((function(e){if(t.setState((function(e){return{loadingKeys:KK(e.loadingKeys,r)}})),t.loadingRetryTimes[r]=(t.loadingRetryTimes[r]||0)+1,t.loadingRetryTimes[r]>=10){var a=t.state.loadedKeys;lK(!1,"Retry for `loadData` many times but still failed. No more retry."),t.setUncontrolledState({loadedKeys:XK(a,r)}),n()}o(e)})),{loadingKeys:XK(c,r)}):null}))}));return a.catch((function(){})),a}})),fK(yK(t),"onNodeMouseEnter",(function(e,n){var r=t.props.onMouseEnter;null===r||void 0===r||r({event:e,node:n})})),fK(yK(t),"onNodeMouseLeave",(function(e,n){var r=t.props.onMouseLeave;null===r||void 0===r||r({event:e,node:n})})),fK(yK(t),"onNodeContextMenu",(function(e,n){var r=t.props.onRightClick;r&&(e.preventDefault(),r({event:e,node:n}))})),fK(yK(t),"onFocus",(function(){var e=t.props.onFocus;t.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===e||void 0===e||e.apply(void 0,r)})),fK(yK(t),"onBlur",(function(){var e=t.props.onBlur;t.setState({focused:!1}),t.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===e||void 0===e||e.apply(void 0,r)})),fK(yK(t),"getTreeNodeRequiredProps",(function(){var e=t.state;return{expandedKeys:e.expandedKeys||[],selectedKeys:e.selectedKeys||[],loadedKeys:e.loadedKeys||[],loadingKeys:e.loadingKeys||[],checkedKeys:e.checkedKeys||[],halfCheckedKeys:e.halfCheckedKeys||[],dragOverNodeKey:e.dragOverNodeKey,dropPosition:e.dropPosition,keyEntities:e.keyEntities}})),fK(yK(t),"setExpandedKeys",(function(e){var n=t.state,r=DK(n.treeData,e,n.fieldNames);t.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)})),fK(yK(t),"onNodeExpand",(function(e,n){var r=t.state.expandedKeys,o=t.state,a=o.listChanging,i=o.fieldNames,s=t.props,l=s.onExpand,c=s.loadData,u=n.expanded,d=n[i.key];if(!a){var f=r.indexOf(d),h=!u;if(lK(u&&-1!==f||!u&&-1===f,"Expand state not sync with index check"),r=h?XK(r,d):KK(r,d),t.setExpandedKeys(r),null===l||void 0===l||l(r,{node:n,expanded:h,nativeEvent:e.nativeEvent}),h&&c){var p=t.onNodeLoad(n);p&&p.then((function(){var e=DK(t.state.treeData,r,i);t.setUncontrolledState({flattenNodes:e})})).catch((function(){var e=KK(t.state.expandedKeys,d);t.setExpandedKeys(e)}))}}})),fK(yK(t),"onListChangeStart",(function(){t.setUncontrolledState({listChanging:!0})})),fK(yK(t),"onListChangeEnd",(function(){setTimeout((function(){t.setUncontrolledState({listChanging:!1})}))})),fK(yK(t),"onActiveChange",(function(e){var n=t.state.activeKey,r=t.props,o=r.onActiveChange,a=r.itemScrollOffset,i=void 0===a?0:a;n!==e&&(t.setState({activeKey:e}),null!==e&&t.scrollTo({key:e,offset:i}),null===o||void 0===o||o(e))})),fK(yK(t),"getActiveItem",(function(){var e=t.state,n=e.activeKey,r=e.flattenNodes;return null===n?null:r.find((function(e){return e.key===n}))||null})),fK(yK(t),"offsetActiveKey",(function(e){var n=t.state,r=n.flattenNodes,o=n.activeKey,a=r.findIndex((function(e){return e.key===o}));-1===a&&e<0&&(a=r.length);var i=r[a=(a+e+r.length)%r.length];if(i){var s=i.key;t.onActiveChange(s)}else t.onActiveChange(null)})),fK(yK(t),"onKeyDown",(function(e){var n=t.state,r=n.activeKey,o=n.expandedKeys,a=n.checkedKeys,i=n.fieldNames,s=t.props,l=s.onKeyDown,c=s.checkable,u=s.selectable;switch(e.which){case gZ.UP:t.offsetActiveKey(-1),e.preventDefault();break;case gZ.DOWN:t.offsetActiveKey(1),e.preventDefault()}var d=t.getActiveItem();if(d&&d.data){var f=t.getTreeNodeRequiredProps(),h=!1===d.data.isLeaf||!!(d.data[i.children]||[]).length,p=zK(pK(pK({},BK(r,f)),{},{data:d.data,active:!0}));switch(e.which){case gZ.LEFT:h&&o.includes(r)?t.onNodeExpand({},p):d.parent&&t.onActiveChange(d.parent.key),e.preventDefault();break;case gZ.RIGHT:h&&!o.includes(r)?t.onNodeExpand({},p):d.children&&d.children.length&&t.onActiveChange(d.children[0].key),e.preventDefault();break;case gZ.ENTER:case gZ.SPACE:!c||p.disabled||!1===p.checkable||p.disableCheckbox?c||!u||p.disabled||!1===p.selectable||t.onNodeSelect({},p):t.onNodeCheck({},p,!a.includes(r))}}null===l||void 0===l||l(e)})),fK(yK(t),"setUncontrolledState",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t.destroyed){var o=!1,a=!0,i={};Object.keys(e).forEach((function(n){n in t.props?a=!1:(o=!0,i[n]=e[n])})),!o||n&&!a||t.setState(pK(pK({},i),r))}})),fK(yK(t),"scrollTo",(function(e){t.listRef.current.scrollTo(e)})),t}return vK(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var t,n=this.state,r=n.focused,o=n.flattenNodes,a=n.keyEntities,i=n.draggingNodeKey,s=n.activeKey,l=n.dropLevelOffset,c=n.dropContainerKey,u=n.dropTargetKey,d=n.dropPosition,f=n.dragOverNodeKey,h=n.indent,p=this.props,m=p.prefixCls,g=p.className,v=p.style,y=p.showLine,b=p.focusable,w=p.tabIndex,x=void 0===w?0:w,S=p.selectable,C=p.showIcon,_=p.icon,E=p.switcherIcon,k=p.draggable,P=p.checkable,A=p.checkStrictly,O=p.disabled,T=p.motion,M=p.loadData,I=p.filterTreeNode,R=p.height,F=p.itemHeight,N=p.virtual,j=p.titleRender,D=p.dropIndicatorRender,L=p.onContextMenu,B=p.onScroll,z=p.direction,H=p.rootClassName,W=p.rootStyle,G=kK(this.props,{aria:!0,data:!0});return k&&(t="object"===tK(k)?k:"function"===typeof k?{nodeDraggable:k}:{}),e.createElement(PK.Provider,{value:{prefixCls:m,selectable:S,showIcon:C,icon:_,switcherIcon:E,draggable:t,draggingNodeKey:i,checkable:P,checkStrictly:A,disabled:O,keyEntities:a,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,indent:h,direction:z,dropIndicatorRender:D,loadData:M,filterTreeNode:I,titleRender:j,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{role:"tree",className:$o()(m,g,H,fK(fK(fK({},"".concat(m,"-show-line"),y),"".concat(m,"-focused"),r),"".concat(m,"-active-focused"),null!==s)),style:W},e.createElement(L$,cK({ref:this.listRef,prefixCls:m,style:v,data:o,disabled:O,selectable:S,checkable:!!P,motion:T,dragging:null!==i,height:R,itemHeight:F,virtual:N,focusable:b,focused:r,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:L,onScroll:B},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}var i=t.fieldNames;if(a("fieldNames")&&(i=NK(e.fieldNames),o.fieldNames=i),a("treeData")?n=e.treeData:a("children")&&(lK(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=jK(e.children)),n){o.treeData=n;var s=LK(n,{fieldNames:i});o.keyEntities=pK(fK({},M$,R$),s.keyEntities)}var l,c=o.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?tX(e.expandedKeys,c):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=pK({},c);delete u[M$],o.expandedKeys=Object.keys(u).map((function(e){return u[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?tX(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var d=DK(n||t.treeData,o.expandedKeys||t.expandedKeys,i);o.flattenNodes=d}if((e.selectable&&(a("selectedKeys")?o.selectedKeys=JK(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=JK(e.defaultSelectedKeys,e))),e.checkable)&&(a("checkedKeys")?l=eX(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?l=eX(e.defaultCheckedKeys)||{}:n&&(l=eX(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),l)){var f=l,h=f.checkedKeys,p=void 0===h?[]:h,m=f.halfCheckedKeys,g=void 0===m?[]:m;if(!e.checkStrictly){var v=oX(p,!0,c);p=v.checkedKeys,g=v.halfCheckedKeys}o.checkedKeys=p,o.halfCheckedKeys=g}return a("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),r}(e.Component);fK(B$,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o}return e.createElement("div",{style:a})},allowDrop:function(){return!0},expandAction:!1}),fK(B$,"TreeNode",qK);const z$=B$;const H$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var W$=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:H$}))};const G$=e.forwardRef(W$);const V$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var U$=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:V$}))};const q$=e.forwardRef(U$);const K$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var X$=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:K$}))};const Y$=e.forwardRef(X$);const Z$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var $$=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Z$}))};const Q$=e.forwardRef($$),J$=new Yt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),eQ=(e,t)=>({[".".concat(e,"-switcher-icon")]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:"transform ".concat(t.motionDurationSlow)}}}),tQ=(e,t)=>({[".".concat(e,"-drop-indicator")]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:"".concat(xe(t.lineWidthBold)," solid ").concat(t.colorPrimary),borderRadius:"50%",content:'""'}}}),nQ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:s}=t,l=t.paddingXS;return{[n]:Object.assign(Object.assign({},zi(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:"background-color ".concat(t.motionDurationSlow),["&".concat(n,"-rtl")]:{["".concat(n,"-switcher")]:{"&_close":{["".concat(n,"-switcher-icon")]:{svg:{transform:"rotate(90deg)"}}}}},["&-focused:not(:hover):not(".concat(n,"-active-focused)")]:Object.assign({},Gi(t)),["".concat(n,"-list-holder-inner")]:{alignItems:"flex-start"},["&".concat(n,"-block-node")]:{["".concat(n,"-list-holder-inner")]:{alignItems:"stretch",["".concat(n,"-node-content-wrapper")]:{flex:"auto"},["".concat(r,".dragging")]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:"1px solid ".concat(t.colorPrimary),opacity:0,animationName:J$,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},["".concat(r)]:{display:"flex",alignItems:"flex-start",padding:"0 0 ".concat(xe(o)," 0"),outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{["".concat(n,"-node-content-wrapper")]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},["&-active ".concat(n,"-node-content-wrapper")]:{background:t.controlItemBgHover},["&:not(".concat(r,"-disabled).filter-node ").concat(n,"-title")]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",["".concat(n,"-draggable-icon")]:{flexShrink:0,width:a,lineHeight:"".concat(xe(a)),textAlign:"center",visibility:"visible",opacity:.2,transition:"opacity ".concat(t.motionDurationSlow),["".concat(r,":hover &")]:{opacity:.45}},["&".concat(r,"-disabled")]:{["".concat(n,"-draggable-icon")]:{visibility:"hidden"}}}},["".concat(n,"-indent")]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},["".concat(n,"-draggable-icon")]:{visibility:"hidden"},["".concat(n,"-switcher")]:Object.assign(Object.assign({},eQ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:"".concat(xe(a)),textAlign:"center",cursor:"pointer",userSelect:"none",transition:"all ".concat(t.motionDurationSlow),borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},["&:not(".concat(n,"-switcher-noop):hover")]:{backgroundColor:t.colorBgTextHover},"&_close":{["".concat(n,"-switcher-icon")]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:"1px solid ".concat(t.colorBorder),content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:"1px solid ".concat(t.colorBorder),content:'""'}}}),["".concat(n,"-checkbox")]:{top:"initial",marginInlineEnd:l,alignSelf:"flex-start",marginTop:t.marginXXS},["".concat(n,"-node-content-wrapper, ").concat(n,"-checkbox + span")]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:"0 ".concat(xe(t.calc(t.paddingXS).div(2).equal())),color:"inherit",lineHeight:"".concat(xe(a)),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:"all ".concat(t.motionDurationMid,", border 0s, line-height 0s, box-shadow 0s"),"&:hover":{backgroundColor:s},["&".concat(n,"-node-selected")]:{backgroundColor:i},["".concat(n,"-iconEle")]:{display:"inline-block",width:a,height:a,lineHeight:"".concat(xe(a)),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},["".concat(n,"-unselectable ").concat(n,"-node-content-wrapper:hover")]:{backgroundColor:"transparent"},["".concat(n,"-node-content-wrapper")]:Object.assign({lineHeight:"".concat(xe(a)),userSelect:"none"},tQ(e,t)),["".concat(r,".drop-container")]:{"> [draggable]":{boxShadow:"0 0 0 2px ".concat(t.colorPrimary)}},"&-show-line":{["".concat(n,"-indent")]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:"1px solid ".concat(t.colorBorder),content:'""'},"&-end":{"&:before":{display:"none"}}}},["".concat(n,"-switcher")]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},["".concat(r,"-leaf-last")]:{["".concat(n,"-switcher")]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:"".concat(xe(t.calc(a).div(2).equal())," !important")}}}}})}},rQ=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{["".concat(t).concat(t,"-directory")]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:"background-color ".concat(e.motionDurationMid),content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},["".concat(t,"-switcher")]:{transition:"color ".concat(e.motionDurationMid)},["".concat(t,"-node-content-wrapper")]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},["&".concat(t,"-node-selected")]:{color:a,background:"transparent"}},"&-selected":{"\n            &:hover::before,\n            &::before\n          ":{background:o},["".concat(t,"-switcher")]:{color:a},["".concat(t,"-node-content-wrapper")]:{color:a,background:"transparent"}}}}}},oQ=(e,t)=>{const n=".".concat(e),r="".concat(n,"-treenode"),o=t.calc(t.paddingXS).div(2).equal(),a=hl(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[nQ(e,a),rQ(a)]},aQ=Sl("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:uX("".concat(n,"-checkbox"),e)},oQ(n,e),pN(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function iQ(t){const{dropPosition:n,dropLevelOffset:r,prefixCls:o,indent:a,direction:i="ltr"}=t,s="ltr"===i?"left":"right",l={[s]:-r*a+4,["ltr"===i?"right":"left"]:0};switch(n){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[s]=a+4}return e.createElement("div",{style:l,className:"".concat(o,"-drop-indicator")})}const sQ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var lQ=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:sQ}))};const cQ=e.forwardRef(lQ);const uQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var dQ=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:uQ}))};const fQ=e.forwardRef(dQ);const hQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var pQ=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:hQ}))};const mQ=e.forwardRef(pQ),gQ=t=>{const{prefixCls:n,switcherIcon:r,treeNodeProps:o,showLine:a}=t,{isLeaf:i,expanded:s,loading:l}=o;if(l)return e.createElement(Ku,{className:"".concat(n,"-switcher-loading-icon")});let c;if(a&&"object"===typeof a&&(c=a.showLeafIcon),i){if(!a)return null;if("boolean"!==typeof c&&c){const t="function"===typeof c?c(o):c,r="".concat(n,"-switcher-line-custom-icon");return e.isValidElement(t)?vI(t,{className:$o()(t.props.className||"",r)}):t}return c?e.createElement(G$,{className:"".concat(n,"-switcher-line-icon")}):e.createElement("span",{className:"".concat(n,"-switcher-leaf-line")})}const u="".concat(n,"-switcher-icon"),d="function"===typeof r?r(o):r;return e.isValidElement(d)?vI(d,{className:$o()(d.props.className||"",u)}):void 0!==d?d:a?s?e.createElement(fQ,{className:"".concat(n,"-switcher-line-icon")}):e.createElement(mQ,{className:"".concat(n,"-switcher-line-icon")}):e.createElement(cQ,{className:u})},vQ=e.forwardRef(((t,n)=>{var r;const{getPrefixCls:o,direction:a,virtual:i,tree:s}=e.useContext(vo),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,blockNode:h=!1,children:p,checkable:m=!1,selectable:g=!0,draggable:v,motion:y,style:b}=t,w=o("tree",l),x=o(),S=null!==y&&void 0!==y?y:Object.assign(Object.assign({},pI(x)),{motionAppear:!1}),C=Object.assign(Object.assign({},t),{checkable:m,selectable:g,showIcon:u,motion:S,blockNode:h,showLine:Boolean(d),dropIndicatorRender:iQ}),[_,E,k]=aQ(w),[,P]=ji(),A=P.paddingXS/2+((null===(r=P.Tree)||void 0===r?void 0:r.titleHeight)||P.controlHeightSM),O=e.useMemo((()=>{if(!v)return!1;let t={};switch(typeof v){case"function":t.nodeDraggable=v;break;case"object":t=Object.assign({},v)}return!1!==t.icon&&(t.icon=t.icon||e.createElement(Q$,null)),t}),[v]);return _(e.createElement(z$,Object.assign({itemHeight:A,ref:n,virtual:i},C,{style:Object.assign(Object.assign({},null===s||void 0===s?void 0:s.style),b),prefixCls:w,className:$o()({["".concat(w,"-icon-hide")]:!u,["".concat(w,"-block-node")]:h,["".concat(w,"-unselectable")]:!g,["".concat(w,"-rtl")]:"rtl"===a},null===s||void 0===s?void 0:s.className,c,E,k),direction:a,checkable:m?e.createElement("span",{className:"".concat(w,"-checkbox-inner")}):m,selectable:g,switcherIcon:t=>e.createElement(gQ,{prefixCls:w,switcherIcon:f,treeNodeProps:t,showLine:d}),draggable:O}),p))}));const yQ=vQ;function bQ(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const a=e[r],i=e[o];!1!==t(a,e)&&bQ(i||[],t,n)}))}function wQ(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a}=e;const i=[];let s=0;if(r&&r===o)return[r];if(!r||!o)return[];return bQ(t,(e=>{if(2===s)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),0===s)s=1;else if(1===s)return s=2,!1}else 1===s&&i.push(e);return n.includes(e)}),NK(a)),i}function xQ(e,t,n){const r=as(t),o=[];return bQ(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),NK(n)),o}var SQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function CQ(t){const{isLeaf:n,expanded:r}=t;return n?e.createElement(G$,null):r?e.createElement(q$,null):e.createElement(Y$,null)}function _Q(e){let{treeData:t,children:n}=e;return t||jK(n)}const EQ=(t,n)=>{var{defaultExpandAll:r,defaultExpandParent:o,defaultExpandedKeys:a}=t,i=SQ(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const s=e.useRef(),l=e.useRef(),[c,u]=e.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[d,f]=e.useState((()=>(()=>{const{keyEntities:e}=LK(_Q(i));let t;return t=r?Object.keys(e):o?tX(i.expandedKeys||a||[],e):i.expandedKeys||a||[],t})()));e.useEffect((()=>{"selectedKeys"in i&&u(i.selectedKeys)}),[i.selectedKeys]),e.useEffect((()=>{"expandedKeys"in i&&f(i.expandedKeys)}),[i.expandedKeys]);const{getPrefixCls:h,direction:p}=e.useContext(vo),{prefixCls:m,className:g,showIcon:v=!0,expandAction:y="click"}=i,b=SQ(i,["prefixCls","className","showIcon","expandAction"]),w=h("tree",m),x=$o()("".concat(w,"-directory"),{["".concat(w,"-directory-rtl")]:"rtl"===p},g);return e.createElement(yQ,Object.assign({icon:CQ,ref:n,blockNode:!0},b,{showIcon:v,expandAction:y,prefixCls:w,className:x,expandedKeys:d,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=i,{node:a,nativeEvent:c}=t,{key:f=""}=a,h=_Q(i),p=Object.assign(Object.assign({},t),{selected:!0}),m=(null===c||void 0===c?void 0:c.ctrlKey)||(null===c||void 0===c?void 0:c.metaKey),g=null===c||void 0===c?void 0:c.shiftKey;let v;r&&m?(v=e,s.current=f,l.current=v,p.selectedNodes=xQ(h,v,o)):r&&g?(v=Array.from(new Set([].concat(as(l.current||[]),as(wQ({treeData:h,expandedKeys:d,startKey:f,endKey:s.current,fieldNames:o}))))),p.selectedNodes=xQ(h,v,o)):(v=[f],s.current=f,l.current=v,p.selectedNodes=xQ(h,v,o)),null===(n=i.onSelect)||void 0===n||n.call(i,v,p),"selectedKeys"in i||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||f(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))};const kQ=e.forwardRef(EQ),PQ=yQ;PQ.DirectoryTree=kQ,PQ.TreeNode=qK;const AQ=PQ;const OQ=function(t){let{value:n,onChange:r,filterSearch:o,tablePrefixCls:a,locale:i}=t;return o?e.createElement("div",{className:"".concat(a,"-filter-dropdown-search")},e.createElement(NG,{prefix:e.createElement(YN,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:n,htmlSize:1,className:"".concat(a,"-filter-dropdown-search-input")})):null};var TQ={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=TQ.F1&&t<=TQ.F12)return!1;switch(t){case TQ.ALT:case TQ.CAPS_LOCK:case TQ.CONTEXT_MENU:case TQ.CTRL:case TQ.DOWN:case TQ.END:case TQ.ESC:case TQ.HOME:case TQ.INSERT:case TQ.LEFT:case TQ.MAC_FF_META:case TQ.META:case TQ.NUMLOCK:case TQ.NUM_CENTER:case TQ.PAGE_DOWN:case TQ.PAGE_UP:case TQ.PAUSE:case TQ.PRINT_SCREEN:case TQ.RIGHT:case TQ.SHIFT:case TQ.UP:case TQ.WIN_KEY:case TQ.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=TQ.ZERO&&e<=TQ.NINE)return!0;if(e>=TQ.NUM_ZERO&&e<=TQ.NUM_MULTIPLY)return!0;if(e>=TQ.A&&e<=TQ.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case TQ.SPACE:case TQ.QUESTION_MARK:case TQ.NUM_PLUS:case TQ.NUM_MINUS:case TQ.NUM_PERIOD:case TQ.NUM_DIVISION:case TQ.SEMICOLON:case TQ.DASH:case TQ.EQUALS:case TQ.COMMA:case TQ.PERIOD:case TQ.SLASH:case TQ.APOSTROPHE:case TQ.SINGLE_QUOTE:case TQ.OPEN_SQUARE_BRACKET:case TQ.BACKSLASH:case TQ.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const MQ=TQ,IQ=e=>{const{keyCode:t}=e;t===MQ.ENTER&&e.stopPropagation()},RQ=e.forwardRef(((t,n)=>e.createElement("div",{className:t.className,onClick:e=>e.stopPropagation(),onKeyDown:IQ,ref:n},t.children)));const FQ=RQ;function NQ(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(as(t),as(NQ(r))))})),t}function jQ(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function DQ(t){let{filters:n,prefixCls:r,filteredKeys:o,filterMultiple:a,searchValue:i,filterSearch:s}=t;return n.map(((t,n)=>{const l=String(t.value);if(t.children)return{key:l||n,label:t.text,popupClassName:"".concat(r,"-dropdown-submenu"),children:DQ({filters:t.children,prefixCls:r,filteredKeys:o,filterMultiple:a,searchValue:i,filterSearch:s})};const c=a?bX:oY,u={key:void 0!==t.value?l:n,label:e.createElement(e.Fragment,null,e.createElement(c,{checked:o.includes(l)}),e.createElement("span",null,t.text))};return i.trim()?"function"===typeof s?s(i,t)?u:null:jQ(i,t.text)?u:null:u}))}function LQ(e){return e||[]}const BQ=function(t){var n,r;const{tablePrefixCls:o,prefixCls:a,column:i,dropdownPrefixCls:s,columnKey:l,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:h,triggerFilter:p,locale:m,children:g,getPopupContainer:v,rootClassName:y}=t,{filterDropdownOpen:b,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:x,defaultFilteredValue:S,filterDropdownVisible:C,onFilterDropdownVisibleChange:_}=i,[E,k]=e.useState(!1),P=!(!h||!(null===(n=h.filteredKeys)||void 0===n?void 0:n.length)&&!h.forceFiltered),A=e=>{k(e),null===w||void 0===w||w(e),null===_||void 0===_||_(e)},O=null!==(r=null!==b&&void 0!==b?b:C)&&void 0!==r?r:E,T=null===h||void 0===h?void 0:h.filteredKeys,[M,I]=function(t){const n=e.useRef(t),r=mY();return[()=>n.current,e=>{n.current=e,r()}]}(LQ(T)),R=e=>{let{selectedKeys:t}=e;I(t)},F=(e,t)=>{let{node:n,checked:r}=t;R(u?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};e.useEffect((()=>{E&&R({selectedKeys:LQ(T)})}),[T]);const[N,j]=e.useState([]),D=e=>{j(e)},[L,B]=e.useState(""),z=e=>{const{value:t}=e.target;B(t)};e.useEffect((()=>{E||B("")}),[E]);const H=e=>{const t=(null===e||void 0===e?void 0:e.length)?e:null;return null!==t||h&&h.filteredKeys?Bo(t,null===h||void 0===h?void 0:h.filteredKeys,!0)?null:void p({column:i,key:l,filteredKeys:t}):null},W=()=>{A(!1),H(M())},G=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&H([]),t&&A(!1),B(""),I(x?(S||[]).map((e=>String(e))):[])},V=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&A(!1),H(M())},U=$o()({["".concat(s,"-menu-without-submenu")]:(q=i.filters||[],!q.some((e=>{let{children:t}=e;return t})))});var q;const K=e=>{if(e.target.checked){const e=NQ(null===i||void 0===i?void 0:i.filters).map((e=>String(e)));I(e)}else I([])},X=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=X({filters:e.children})),r}))},Y=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Y(e))))||[]})};let Z,$;if("function"===typeof i.filterDropdown)Z=i.filterDropdown({prefixCls:"".concat(s,"-custom"),setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:M(),confirm:V,clearFilters:G,filters:i.filters,visible:O,close:()=>{A(!1)}});else if(i.filterDropdown)Z=i.filterDropdown;else{const t=M()||[],n=()=>{const n=e.createElement(iz,{image:iz.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(i.filters||[]).length)return n;if("tree"===d)return e.createElement(e.Fragment,null,e.createElement(OQ,{filterSearch:f,value:L,onChange:z,tablePrefixCls:o,locale:m}),e.createElement("div",{className:"".concat(o,"-filter-dropdown-tree")},u?e.createElement(bX,{checked:t.length===NQ(i.filters).length,indeterminate:t.length>0&&t.length<NQ(i.filters).length,className:"".concat(o,"-filter-dropdown-checkall"),onChange:K},m.filterCheckall):null,e.createElement(AQ,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:"".concat(s,"-menu"),onCheck:F,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:X({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"===typeof f?f(L,Y(e)):jQ(L,e.title):void 0})));const r=DQ({filters:i.filters||[],filterSearch:f,prefixCls:a,filteredKeys:M(),filterMultiple:u,searchValue:L}),l=r.every((e=>null===e));return e.createElement(e.Fragment,null,e.createElement(OQ,{filterSearch:f,value:L,onChange:z,tablePrefixCls:o,locale:m}),l?n:e.createElement(WN,{selectable:!0,multiple:u,prefixCls:"".concat(s,"-menu"),className:U,onSelect:R,onDeselect:R,selectedKeys:t,getPopupContainer:v,openKeys:N,onOpenChange:D,items:r}))},r=()=>x?Bo((S||[]).map((e=>String(e))),t,!0):0===t.length;Z=e.createElement(e.Fragment,null,n(),e.createElement("div",{className:"".concat(a,"-dropdown-btns")},e.createElement(vG,{type:"link",size:"small",disabled:r(),onClick:()=>G()},m.filterReset),e.createElement(vG,{type:"primary",size:"small",onClick:W},m.filterConfirm)))}i.filterDropdown&&(Z=e.createElement(fN,{selectable:void 0},Z)),$="function"===typeof i.filterIcon?i.filterIcon(P):i.filterIcon?i.filterIcon:e.createElement(pZ,null);const{direction:Q}=e.useContext(vo);return e.createElement("div",{className:"".concat(a,"-column")},e.createElement("span",{className:"".concat(o,"-column-title")},g),e.createElement(BX,{dropdownRender:()=>e.createElement(FQ,{className:"".concat(a,"-dropdown")},Z),trigger:["click"],open:O,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==T&&I(LQ(T)),A(e),e||i.filterDropdown||!c||W())},getPopupContainer:v,placement:"rtl"===Q?"bottomLeft":"bottomRight",rootClassName:y},e.createElement("span",{role:"button",tabIndex:-1,className:$o()("".concat(a,"-trigger"),{active:P}),onClick:e=>{e.stopPropagation()}},$)))};function zQ(e,t,n){let r=[];return(e||[]).forEach(((e,o)=>{var a;const i=uZ(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(a=null===t||void 0===t?void 0:t.map(String))&&void 0!==a?a:t),r.push({column:e,key:cZ(e,i),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:cZ(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(as(r),as(zQ(e.children,t,i))))})),r}function HQ(t,n,r,o,a,i,s,l,c){return r.map(((r,u)=>{const d=uZ(u,l),{filterOnClose:f=!0,filterMultiple:h=!0,filterMode:p,filterSearch:m}=r;let g=r;if(g.filters||g.filterDropdown){const l=cZ(g,d),u=o.find((e=>{let{key:t}=e;return l===t}));g=Object.assign(Object.assign({},g),{title:o=>e.createElement(BQ,{tablePrefixCls:t,prefixCls:"".concat(t,"-filter"),dropdownPrefixCls:n,column:g,columnKey:l,filterState:u,filterOnClose:f,filterMultiple:h,filterMode:p,filterSearch:m,triggerFilter:i,locale:a,getPopupContainer:s,rootClassName:c},dZ(r.title,o))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:HQ(t,n,g.children,o,a,i,s,d,c)})),g}))}function WQ(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const a=n,{filters:i,filterDropdown:s}=o;if(s)t[a]=r||null;else if(Array.isArray(r)){const e=NQ(i);t[a]=e.filter((e=>r.includes(String(e))))}else t[a]=null})),t}function GQ(e,t,n){return t.reduce(((e,r)=>{const{column:{onFilter:o,filters:a},filteredKeys:i}=r;return o&&i&&i.length?e.map((e=>Object.assign({},e))).filter((e=>i.some((r=>{const i=NQ(a),s=i.findIndex((e=>String(e)===String(r))),l=-1!==s?i[s]:r;return e[n]&&(e[n]=GQ(e[n],t,n)),o(l,e)})))):e}),e)}const VQ=e=>e.flatMap((e=>"children"in e?[e].concat(as(VQ(e.children||[]))):[e]));const UQ=function(t){let{prefixCls:n,dropdownPrefixCls:r,mergedColumns:o,onFilterChange:a,getPopupContainer:i,locale:s,rootClassName:l}=t;En("Table");const c=e.useMemo((()=>VQ(o||[])),[o]),[u,d]=e.useState((()=>zQ(c,!0))),f=e.useMemo((()=>{const e=zQ(c,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach((e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1})),t){const e=(c||[]).map(((e,t)=>cZ(e,uZ(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=c[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[c,u]),h=e.useMemo((()=>WQ(f)),[f]),p=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),a(WQ(t),t)};return[e=>HQ(n,r,e,f,s,p,i,void 0,l),f,h]};const qQ=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach((t=>{const r=n[t];void 0!==r&&(e[t]=r)}))}return e};var KQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const XQ=10;const YQ=function(t,n,r){const o=r&&"object"===typeof r?r:{},{total:a=0}=o,i=KQ(o,["total"]),[s,l]=(0,e.useState)((()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:XQ}))),c=qQ(s,i,{total:a>0?a:t}),u=Math.ceil((a||t)/c.pageSize);c.current>u&&(c.current=u||1);const d=(e,t)=>{l({current:null!==e&&void 0!==e?e:1,pageSize:t||c.pageSize})};return!1===r?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,t)=>{var o;r&&(null===(o=r.onChange)||void 0===o||o.call(r,e,t)),d(e,t),n(e,t||(null===c||void 0===c?void 0:c.pageSize))}}),d]};const ZQ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var $Q=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:ZQ}))};const QQ=e.forwardRef($Q);const JQ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var eJ=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:JQ}))};const tJ=e.forwardRef(eJ),nJ="ascend",rJ="descend";function oJ(e){return"object"===typeof e.sorter&&"number"===typeof e.sorter.multiple&&e.sorter.multiple}function aJ(e){return"function"===typeof e?e:!(!e||"object"!==typeof e||!e.compare)&&e.compare}function iJ(e,t,n){let r=[];function o(e,t){r.push({column:e,key:cZ(e,t),multiplePriority:oJ(e),sortOrder:e.sortOrder})}return(e||[]).forEach(((e,a)=>{const i=uZ(a,n);e.children?("sortOrder"in e&&o(e,i),r=[].concat(as(r),as(iJ(e.children,t,i)))):e.sorter&&("sortOrder"in e?o(e,i):t&&e.defaultSortOrder&&r.push({column:e,key:cZ(e,i),multiplePriority:oJ(e),sortOrder:e.defaultSortOrder}))})),r}function sJ(t,n,r,o,a,i,s,l){return(n||[]).map(((n,c)=>{const u=uZ(c,l);let d=n;if(d.sorter){const l=d.sortDirections||a,c=void 0===d.showSorterTooltip?s:d.showSorterTooltip,f=cZ(d,u),h=r.find((e=>{let{key:t}=e;return t===f})),p=h?h.sortOrder:null,m=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(l,p);let g;if(n.sortIcon)g=n.sortIcon({sortOrder:p});else{const n=l.includes(nJ)&&e.createElement(tJ,{className:$o()("".concat(t,"-column-sorter-up"),{active:p===nJ})}),r=l.includes(rJ)&&e.createElement(QQ,{className:$o()("".concat(t,"-column-sorter-down"),{active:p===rJ})});g=e.createElement("span",{className:$o()("".concat(t,"-column-sorter"),{["".concat(t,"-column-sorter-full")]:!(!n||!r)})},e.createElement("span",{className:"".concat(t,"-column-sorter-inner"),"aria-hidden":"true"},n,r))}const{cancelSort:v,triggerAsc:y,triggerDesc:b}=i||{};let w=v;m===rJ?w=b:m===nJ&&(w=y);const x="object"===typeof c?Object.assign({title:w},c):{title:w};d=Object.assign(Object.assign({},d),{className:$o()(d.className,{["".concat(t,"-column-sort")]:p}),title:r=>{const o="".concat(t,"-column-sorters"),a=e.createElement("span",{className:"".concat(t,"-column-title")},dZ(n.title,r)),i=e.createElement("div",{className:o},a,g);return c?"boolean"!==typeof c&&"sorter-icon"===(null===c||void 0===c?void 0:c.target)?e.createElement("div",{className:"".concat(o," ").concat(t,"-column-sorters-tooltip-target-sorter")},a,e.createElement(lN,Object.assign({},x),g)):e.createElement(lN,Object.assign({},x),i):i},onHeaderCell:e=>{var r;const a=(null===(r=n.onHeaderCell)||void 0===r?void 0:r.call(n,e))||{},i=a.onClick,s=a.onKeyDown;a.onClick=e=>{o({column:n,key:f,sortOrder:m,multiplePriority:oJ(n)}),null===i||void 0===i||i(e)},a.onKeyDown=e=>{e.keyCode===MQ.ENTER&&(o({column:n,key:f,sortOrder:m,multiplePriority:oJ(n)}),null===s||void 0===s||s(e))};const l=function(e,t){const n=dZ(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(n.title,{}),c=null===l||void 0===l?void 0:l.toString();return p?a["aria-sort"]="ascend"===p?"ascending":"descending":a["aria-label"]=c||"",a.className=$o()(a.className,"".concat(t,"-column-has-sorters")),a.tabIndex=0,n.ellipsis&&(a.title=(null!==l&&void 0!==l?l:"").toString()),a}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:sJ(t,d.children,r,o,a,i,s,u)})),d}))}const lJ=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},cJ=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(lJ);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},lJ(e[t])),{column:void 0})}return t.length<=1?t[0]||{}:t};function uJ(e,t,n){const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),a=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return aJ(t)&&n}));return a.length?o.sort(((e,t)=>{for(let n=0;n<a.length;n+=1){const r=a[n],{column:{sorter:o},sortOrder:i}=r,s=aJ(o);if(s&&i){const n=s(e,t,i);if(0!==n)return i===nJ?n:-n}}return 0})).map((e=>{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:uJ(r,t,n)}):e})):o}function dJ(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=dZ(e.title,t),"children"in n&&(n.children=dJ(n.children,t)),n}))}function fJ(t){const n=e.useCallback((e=>dJ(e,t)),[t]);return[n]}const hJ=hq(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),pJ=Yq(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),mJ=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:l}=e,c="".concat(xe(n)," ").concat(r," ").concat(o),u=(e,r,o)=>({["&".concat(t,"-").concat(e)]:{["> ".concat(t,"-container")]:{["> ".concat(t,"-content, > ").concat(t,"-body")]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{["> ".concat(t,"-expanded-row-fixed")]:{margin:"".concat(xe(l(r).mul(-1).equal()),"\n              ").concat(xe(l(l(o).add(n)).mul(-1).equal()))}}}}}});return{["".concat(t,"-wrapper")]:{["".concat(t).concat(t,"-bordered")]:Object.assign(Object.assign(Object.assign({["> ".concat(t,"-title")]:{border:c,borderBottom:0},["> ".concat(t,"-container")]:{borderInlineStart:c,borderTop:c,["\n            > ".concat(t,"-content,\n            > ").concat(t,"-header,\n            > ").concat(t,"-body,\n            > ").concat(t,"-summary\n          ")]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{["> ".concat(t,"-cell-fix-right-first::after")]:{borderInlineEnd:c}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{["> ".concat(t,"-expanded-row-fixed")]:{margin:"".concat(xe(l(i).mul(-1).equal())," ").concat(xe(l(l(s).add(n)).mul(-1).equal())),"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},["&".concat(t,"-scroll-horizontal")]:{["> ".concat(t,"-container > ").concat(t,"-body")]:{"> table > tbody":{["\n                > tr".concat(t,"-expanded-row,\n                > tr").concat(t,"-placeholder\n              ")]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{["> ".concat(t,"-footer")]:{border:c,borderTop:0}}),["".concat(t,"-cell")]:{["".concat(t,"-container:first-child")]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:"0 ".concat(xe(n)," 0 ").concat(xe(n)," ").concat(a)}},["".concat(t,"-bordered ").concat(t,"-cell-scrollbar")]:{borderInlineEnd:c}}}},gJ=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-cell-ellipsis")]:Object.assign(Object.assign({},Bi),{wordBreak:"keep-all",["\n          &".concat(t,"-cell-fix-left-last,\n          &").concat(t,"-cell-fix-right-first\n        ")]:{overflow:"visible",["".concat(t,"-cell-content")]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},["".concat(t,"-column-title")]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},vJ=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-tbody > tr").concat(t,"-placeholder")]:{textAlign:"center",color:e.colorTextDisabled,"\n          &:hover > th,\n          &:hover > td,\n        ":{background:e.colorBgContainer}}}}},yJ=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),bJ=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:h,paddingXXS:p,expandIconMarginTop:m,expandIconSize:g,expandIconHalfInner:v,expandIconScale:y,calc:b}=e,w="".concat(xe(o)," ").concat(i," ").concat(s),x=b(p).sub(o).equal();return{["".concat(t,"-wrapper")]:{["".concat(t,"-expand-icon-col")]:{width:c},["".concat(t,"-row-expand-icon-cell")]:{textAlign:"center",["".concat(t,"-row-expand-icon")]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},["".concat(t,"-row-indent")]:{height:1,float:"left"},["".concat(t,"-row-expand-icon")]:Object.assign(Object.assign({},yJ(e)),{position:"relative",float:"left",boxSizing:"border-box",width:g,height:g,padding:0,color:"inherit",lineHeight:xe(g),background:l,border:w,borderRadius:u,transform:"scale(".concat(y,")"),transition:"all ".concat(r),userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:"transform ".concat(r," ease-out"),content:'""'},"&::before":{top:v,insetInlineEnd:x,insetInlineStart:x,height:o},"&::after":{top:x,bottom:x,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),["".concat(t,"-row-indent + ").concat(t,"-row-expand-icon")]:{marginTop:m,marginInlineEnd:a},["tr".concat(t,"-expanded-row")]:{"&, &:hover":{"> th, > td":{background:h}},["".concat(n,"-descriptions-view")]:{display:"flex",table:{flex:"auto",width:"100%"}}},["".concat(t,"-expanded-row-fixed")]:{position:"relative",margin:"".concat(xe(b(d).mul(-1).equal())," ").concat(xe(b(f).mul(-1).equal())),padding:"".concat(xe(d)," ").concat(xe(f))}}}},wJ=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:h,tablePaddingHorizontal:p,borderRadius:m,motionDurationSlow:g,colorTextDescription:v,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:w,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:_,boxShadowSecondary:E,filterDropdownMenuBg:k,calc:P}=e,A="".concat(n,"-dropdown"),O="".concat(t,"-filter-dropdown"),T="".concat(n,"-tree"),M="".concat(xe(c)," ").concat(u," ").concat(d);return[{["".concat(t,"-wrapper")]:{["".concat(t,"-filter-column")]:{display:"flex",justifyContent:"space-between"},["".concat(t,"-filter-trigger")]:{position:"relative",display:"flex",alignItems:"center",marginBlock:P(i).mul(-1).equal(),marginInline:"".concat(xe(i)," ").concat(xe(P(p).div(2).mul(-1).equal())),padding:"0 ".concat(xe(i)),color:f,fontSize:h,borderRadius:m,cursor:"pointer",transition:"all ".concat(g),"&:hover":{color:v,background:b},"&.active":{color:y}}}},{["".concat(n,"-dropdown")]:{[O]:Object.assign(Object.assign({},zi(e)),{minWidth:o,backgroundColor:x,borderRadius:m,boxShadow:E,overflow:"hidden",["".concat(A,"-menu")]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:"".concat(xe(s)," 0"),color:w,fontSize:h,textAlign:"center",content:'"Not Found"'}},["".concat(O,"-tree")]:{paddingBlock:"".concat(xe(s)," 0"),paddingInline:s,[T]:{padding:0},["".concat(T,"-treenode ").concat(T,"-node-content-wrapper:hover")]:{backgroundColor:C},["".concat(T,"-treenode-checkbox-checked ").concat(T,"-node-content-wrapper")]:{"&, &:hover":{backgroundColor:_}}},["".concat(O,"-search")]:{padding:s,borderBottom:M,"&-input":{input:{minWidth:a},[r]:{color:w}}},["".concat(O,"-checkall")]:{width:"100%",marginBottom:i,marginInlineStart:i},["".concat(O,"-btns")]:{display:"flex",justifyContent:"space-between",padding:"".concat(xe(P(s).sub(c).equal())," ").concat(xe(s)),overflow:"hidden",borderTop:M}})}},{["".concat(n,"-dropdown ").concat(O,", ").concat(O,"-submenu")]:{["".concat(n,"-checkbox-wrapper + span")]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},xJ=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:s,calc:l}=e,c=r;return{["".concat(t,"-wrapper")]:{["\n        ".concat(t,"-cell-fix-left,\n        ").concat(t,"-cell-fix-right\n      ")]:{position:"sticky !important",zIndex:a,background:i},["\n        ".concat(t,"-cell-fix-left-first::after,\n        ").concat(t,"-cell-fix-left-last::after\n      ")]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:"box-shadow ".concat(o),content:'""',pointerEvents:"none"},["".concat(t,"-cell-fix-left-all::after")]:{display:"none"},["\n        ".concat(t,"-cell-fix-right-first::after,\n        ").concat(t,"-cell-fix-right-last::after\n      ")]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:"box-shadow ".concat(o),content:'""',pointerEvents:"none"},["".concat(t,"-container")]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:"box-shadow ".concat(o),content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},["".concat(t,"-ping-left")]:{["&:not(".concat(t,"-has-fix-left) ").concat(t,"-container::before")]:{boxShadow:"inset 10px 0 8px -8px ".concat(c)},["\n          ".concat(t,"-cell-fix-left-first::after,\n          ").concat(t,"-cell-fix-left-last::after\n        ")]:{boxShadow:"inset 10px 0 8px -8px ".concat(c)},["".concat(t,"-cell-fix-left-last::before")]:{backgroundColor:"transparent !important"}},["".concat(t,"-ping-right")]:{["&:not(".concat(t,"-has-fix-right) ").concat(t,"-container::after")]:{boxShadow:"inset -10px 0 8px -8px ".concat(c)},["\n          ".concat(t,"-cell-fix-right-first::after,\n          ").concat(t,"-cell-fix-right-last::after\n        ")]:{boxShadow:"inset -10px 0 8px -8px ".concat(c)}},["".concat(t,"-fixed-column-gapped")]:{["\n        ".concat(t,"-cell-fix-left-first::after,\n        ").concat(t,"-cell-fix-left-last::after,\n        ").concat(t,"-cell-fix-right-first::after,\n        ").concat(t,"-cell-fix-right-last::after\n      ")]:{boxShadow:"none"}}}}},SJ=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-pagination").concat(n,"-pagination")]:{margin:"".concat(xe(r)," 0")},["".concat(t,"-pagination")]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},CJ=e=>{const{componentCls:t,tableRadius:n}=e;return{["".concat(t,"-wrapper")]:{[t]:{["".concat(t,"-title, ").concat(t,"-header")]:{borderRadius:"".concat(xe(n)," ").concat(xe(n)," 0 0")},["".concat(t,"-title + ").concat(t,"-container")]:{borderStartStartRadius:0,borderStartEndRadius:0,["".concat(t,"-header, table")]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:"0 0 ".concat(xe(n)," ").concat(xe(n))}}}}},_J=e=>{const{componentCls:t}=e;return{["".concat(t,"-wrapper-rtl")]:{direction:"rtl",table:{direction:"rtl"},["".concat(t,"-pagination-left")]:{justifyContent:"flex-end"},["".concat(t,"-pagination-right")]:{justifyContent:"flex-start"},["".concat(t,"-row-expand-icon")]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},["".concat(t,"-container")]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},["".concat(t,"-row-indent")]:{float:"right"}}}}},EJ=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:h,calc:p}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-selection-col")]:{width:c,["&".concat(t,"-selection-col-with-dropdown")]:{width:p(c).add(o).add(p(a).div(4)).equal()}},["".concat(t,"-bordered ").concat(t,"-selection-col")]:{width:p(c).add(p(i).mul(2)).equal(),["&".concat(t,"-selection-col-with-dropdown")]:{width:p(c).add(o).add(p(a).div(4)).add(p(i).mul(2)).equal()}},["\n        table tr th".concat(t,"-selection-column,\n        table tr td").concat(t,"-selection-column,\n        ").concat(t,"-selection-column\n      ")]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",["".concat(n,"-radio-wrapper")]:{marginInlineEnd:0}},["table tr th".concat(t,"-selection-column").concat(t,"-cell-fix-left")]:{zIndex:e.zIndexTableFixed+1},["table tr th".concat(t,"-selection-column::after")]:{backgroundColor:"transparent !important"},["".concat(t,"-selection")]:{position:"relative",display:"inline-flex",flexDirection:"column"},["".concat(t,"-selection-extra")]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),marginInlineStart:"100%",paddingInlineStart:xe(p(h).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}},["".concat(t,"-tbody")]:{["".concat(t,"-row")]:{["&".concat(t,"-row-selected")]:{["> ".concat(t,"-cell")]:{background:u,"&-row-hover":{background:d}}},["> ".concat(t,"-cell-row-hover")]:{background:f}}}}}},kJ=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,a,i)=>({["".concat(t).concat(t,"-").concat(e)]:{fontSize:i,["\n        ".concat(t,"-title,\n        ").concat(t,"-footer,\n        ").concat(t,"-cell,\n        ").concat(t,"-thead > tr > th,\n        ").concat(t,"-tbody > tr > th,\n        ").concat(t,"-tbody > tr > td,\n        tfoot > tr > th,\n        tfoot > tr > td\n      ")]:{padding:"".concat(xe(o)," ").concat(xe(a))},["".concat(t,"-filter-trigger")]:{marginInlineEnd:xe(r(a).div(2).mul(-1).equal())},["".concat(t,"-expanded-row-fixed")]:{margin:"".concat(xe(r(o).mul(-1).equal())," ").concat(xe(r(a).mul(-1).equal()))},["".concat(t,"-tbody")]:{["".concat(t,"-wrapper:only-child ").concat(t)]:{marginBlock:xe(r(o).mul(-1).equal()),marginInline:"".concat(xe(r(n).sub(a).equal())," ").concat(xe(r(a).mul(-1).equal()))}},["".concat(t,"-selection-extra")]:{paddingInlineStart:xe(r(a).div(4).equal())}}});return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},PJ=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{["".concat(t,"-wrapper")]:{["".concat(t,"-thead th").concat(t,"-column-has-sorters")]:{outline:"none",cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},["\n          &".concat(t,"-cell-fix-left:hover,\n          &").concat(t,"-cell-fix-right:hover\n        ")]:{background:e.tableFixedHeaderSortActiveBg}},["".concat(t,"-thead th").concat(t,"-column-sort")]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},["td".concat(t,"-column-sort")]:{background:e.tableBodySortBg},["".concat(t,"-column-title")]:{position:"relative",zIndex:1,flex:1},["".concat(t,"-column-sorters")]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},["".concat(t,"-column-sorters-tooltip-target-sorter")]:{"&::after":{content:"none"}},["".concat(t,"-column-sorter")]:{marginInlineStart:n,color:o,fontSize:0,transition:"color ".concat(e.motionDurationSlow),"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},["".concat(t,"-column-sorter-up + ").concat(t,"-column-sorter-down")]:{marginTop:"-0.3em"}},["".concat(t,"-column-sorters:hover ").concat(t,"-column-sorter")]:{color:a}}}},AJ=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,f="".concat(xe(c)," ").concat(u," ").concat(d);return{["".concat(t,"-wrapper")]:{["".concat(t,"-sticky")]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:"".concat(xe(a)," !important"),zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:l,transition:"all ".concat(e.motionDurationSlow,", transform none"),position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},OJ=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a="".concat(xe(n)," ").concat(e.lineType," ").concat(r);return{["".concat(t,"-wrapper")]:{["".concat(t,"-summary")]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},["div".concat(t,"-summary")]:{boxShadow:"0 ".concat(xe(o(n).mul(-1).equal())," 0 ").concat(r)}}}},TJ=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,s="".concat(xe(r)," ").concat(o," ").concat(a),l="".concat(t,"-expanded-row-cell");return{["".concat(t,"-wrapper")]:{["".concat(t,"-tbody-virtual")]:{["".concat(t,"-row:not(tr)")]:{display:"flex",boxSizing:"border-box",width:"100%"},["".concat(t,"-cell")]:{borderBottom:s,transition:"background ".concat(n)},["".concat(t,"-expanded-row")]:{["".concat(l).concat(l,"-fixed")]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:"calc(var(--virtual-width) - ".concat(xe(r),")"),borderInlineEnd:"none"}}},["".concat(t,"-bordered")]:{["".concat(t,"-tbody-virtual")]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},["".concat(t,"-cell")]:{borderInlineEnd:s,["&".concat(t,"-cell-fix-right-first:before")]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},["&".concat(t,"-virtual")]:{["".concat(t,"-placeholder ").concat(t,"-cell")]:{borderInlineEnd:s,borderBottom:s}}}}}},MJ=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:h,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableFooterTextColor:g,tableFooterBg:v,calc:y}=e,b="".concat(xe(i)," ").concat(s," ").concat(l);return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},zi(e)),{fontSize:c,background:u,borderRadius:"".concat(xe(d)," ").concat(xe(d)," 0 0"),scrollbarColor:"".concat(e.tableScrollThumbBg," ").concat(e.tableScrollBg)}),table:{width:"100%",textAlign:"start",borderRadius:"".concat(xe(d)," ").concat(xe(d)," 0 0"),borderCollapse:"separate",borderSpacing:0},["\n          ".concat(t,"-cell,\n          ").concat(t,"-thead > tr > th,\n          ").concat(t,"-tbody > tr > th,\n          ").concat(t,"-tbody > tr > td,\n          tfoot > tr > th,\n          tfoot > tr > td\n        ")]:{position:"relative",padding:"".concat(xe(r)," ").concat(xe(o)),overflowWrap:"break-word"},["".concat(t,"-title")]:{padding:"".concat(xe(r)," ").concat(xe(o))},["".concat(t,"-thead")]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:p,borderBottom:b,transition:"background ".concat(h," ease"),"&[colspan]:not([colspan='1'])":{textAlign:"center"},["&:not(:last-child):not(".concat(t,"-selection-column):not(").concat(t,"-row-expand-icon-cell):not([colspan])::before")]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:"background-color ".concat(h),content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},["".concat(t,"-tbody")]:{"> tr":{"> th, > td":{transition:"background ".concat(h,", border-color ").concat(h),borderBottom:b,["\n              > ".concat(t,"-wrapper:only-child,\n              > ").concat(t,"-expanded-row-fixed > ").concat(t,"-wrapper:only-child\n            ")]:{[t]:{marginBlock:xe(y(r).mul(-1).equal()),marginInline:"".concat(xe(y(a).sub(o).equal()),"\n                ").concat(xe(y(o).mul(-1).equal())),["".concat(t,"-tbody > tr:last-child > td")]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:p,borderBottom:b,transition:"background ".concat(h," ease")}}},["".concat(t,"-footer")]:{padding:"".concat(xe(r)," ").concat(xe(o)),color:g,background:v}})}},IJ=Sl("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:h,cellPaddingBlock:p,cellPaddingInline:m,cellPaddingBlockMD:g,cellPaddingInlineMD:v,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:w,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:_,cellFontSizeMD:E,cellFontSizeSM:k,headerSplitColor:P,fixedHeaderSortActiveBg:A,headerFilterHoverBg:O,filterDropdownBg:T,expandIconBg:M,selectionColumnWidth:I,stickyScrollBarBg:R,calc:F}=e,N=hl(e,{tableFontSize:_,tableBg:r,tableRadius:C,tablePaddingVertical:p,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:w,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:P,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:A,tableHeaderFilterActiveBg:O,tableFilterDropdownBg:T,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:E,tableFontSizeSmall:k,tableSelectionColumnWidth:I,tableExpandIconBg:M,tableExpandColumnWidth:F(o).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:R,tableScrollThumbBgHover:t,tableScrollBg:n});return[MJ(N),SJ(N),OJ(N),PJ(N),wJ(N),mJ(N),CJ(N),bJ(N),OJ(N),vJ(N),EJ(N),xJ(N),AJ(N),gJ(N),kJ(N),_J(N),TJ(N)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:h,colorTextPlaceholder:p,fontSize:m,fontSizeSM:g,lineHeight:v,lineWidth:y,colorIcon:b,colorIconHover:w,opacityLoading:x,controlInteractiveSize:S}=e,C=new Jr(o).onBackground(n).toHexShortString(),_=new Jr(a).onBackground(n).toHexShortString(),E=new Jr(t).onBackground(n).toHexShortString(),k=new Jr(b),P=new Jr(w),A=S/2-y,O=2*A+3*y;return{headerBg:E,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:_,bodySortBg:E,rowHoverBg:E,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:E,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:h,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*v-3*y)/2-Math.ceil((1.4*g-3*y)/2),headerIconColor:k.clone().setAlpha(k.getAlpha()*x).toRgbString(),headerIconHoverColor:P.clone().setAlpha(P.getAlpha()*x).toRgbString(),expandIconHalfInner:A,expandIconSize:O,expandIconScale:S/O}}),{unitless:{expandIconScale:!0}}),RJ=[],FJ=(t,n)=>{var r,o;const{prefixCls:a,className:i,rootClassName:s,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:h,rowSelection:p,rowKey:m="key",rowClassName:g,columns:v,children:y,childrenColumnName:b,onChange:w,getPopupContainer:x,loading:S,expandIcon:C,expandable:_,expandedRowRender:E,expandIconColumnIndex:k,indentSize:P,scroll:A,sortDirections:O,locale:T,showSorterTooltip:M={target:"full-header"},virtual:I}=t;En("Table");const R=e.useMemo((()=>v||UU(y)),[v,y]),F=e.useMemo((()=>R.some((e=>e.responsive))),[R]),N=gY(F),j=e.useMemo((()=>{const e=new Set(Object.keys(N).filter((e=>N[e])));return R.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[R,N]),D=is(t,["className","style","columns"]),{locale:L=Dn,direction:B,table:z,renderEmpty:H,getPrefixCls:W,getPopupContainer:G}=e.useContext(vo),V=gF(c),U=Object.assign(Object.assign({},L.Table),T),q=f||RJ,K=W("table",a),X=W("dropdown",d),[,Y]=ji(),Z=wf(K),[$,Q,J]=IJ(K,Z),ee=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:k},_),{expandIcon:null!==(r=null===_||void 0===_?void 0:_.expandIcon)&&void 0!==r?r:null===(o=null===z||void 0===z?void 0:z.expandable)||void 0===o?void 0:o.expandIcon}),{childrenColumnName:te="children"}=ee,ne=e.useMemo((()=>q.some((e=>null===e||void 0===e?void 0:e[te]))?"nest":E||(null===_||void 0===_?void 0:_.expandedRowRender)?"row":null),[q]),re={body:e.useRef()},oe=function(e){return(t,n)=>{const r=t.querySelector(".".concat(e,"-container"));let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(K),ae=e.useRef(null),ie=e.useRef(null);fY(n,(()=>Object.assign(Object.assign({},ie.current),{nativeElement:ae.current})));const se=e.useMemo((()=>"function"===typeof m?m:e=>null===e||void 0===e?void 0:e[m]),[m]),[le]=function(t,n,r){const o=e.useRef({});return[function(e){if(!o.current||o.current.data!==t||o.current.childrenColumnName!==n||o.current.getRowKey!==r){const a=new Map;function i(e){e.forEach(((e,t)=>{const o=r(e,t);a.set(o,e),e&&"object"===typeof e&&n in e&&i(e[n]||[])}))}i(t),o.current={data:t,childrenColumnName:n,kvMap:a,getRowKey:r}}return o.current.kvMap.get(e)}]}(q,te,se),ce={},ue=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,a,i;const s=Object.assign(Object.assign({},ce),e);n&&(null===(r=ce.resetPagination)||void 0===r||r.call(ce),(null===(o=s.pagination)||void 0===o?void 0:o.current)&&(s.pagination.current=1),h&&(null===(a=h.onChange)||void 0===a||a.call(h,1,null===(i=s.pagination)||void 0===i?void 0:i.pageSize))),A&&!1!==A.scrollToFirstRowOnChange&&re.body.current&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:r,duration:o=450}=t,a=n(),i=pY(a),s=Date.now(),l=()=>{const t=Date.now()-s,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,i,e,o);hY(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||"HTMLDocument"===a.constructor.name?a.documentElement.scrollTop=n:a.scrollTop=n,t<o?ii(l):"function"===typeof r&&r()};ii(l)}(0,{getContainer:()=>re.body.current}),null===w||void 0===w||w(s.pagination,s.filters,s.sorter,{currentDataSource:GQ(uJ(q,s.sorterStates,te),s.filterStates,te),action:t})},[de,fe,he,pe]=function(t){let{prefixCls:n,mergedColumns:r,onSorterChange:o,sortDirections:a,tableLocale:i,showSorterTooltip:s}=t;const[l,c]=e.useState(iJ(r,!0)),u=e.useMemo((()=>{let e=!0;const t=iJ(r,!1);if(!t.length)return l;const n=[];function o(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let a=null;return t.forEach((t=>{null===a?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),o(t))})),n}),[r,l]),d=e.useMemo((()=>{var e,t;const n=u.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}}),[u]),f=e=>{let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat(as(u.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],c(t),o(cJ(t),t)};return[e=>sJ(n,e,u,f,a,i,s),u,d,()=>cJ(u)]}({prefixCls:K,mergedColumns:j,onSorterChange:(e,t)=>{ue({sorter:e,sorterStates:t},"sort",!1)},sortDirections:O||["ascend","descend"],tableLocale:U,showSorterTooltip:M}),me=e.useMemo((()=>uJ(q,fe,te)),[q,fe]);ce.sorter=pe(),ce.sorterStates=fe;const[ge,ve,ye]=UQ({prefixCls:K,locale:U,dropdownPrefixCls:X,mergedColumns:j,onFilterChange:(e,t)=>{ue({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x||G,rootClassName:$o()(s,Z)}),be=GQ(me,ve,te);ce.filters=ye,ce.filterStates=ve;const we=e.useMemo((()=>{const e={};return Object.keys(ye).forEach((t=>{null!==ye[t]&&(e[t]=ye[t])})),Object.assign(Object.assign({},he),{filters:e})}),[he,ye]),[xe]=fJ(we),[Se,Ce]=YQ(be.length,((e,t)=>{ue({pagination:Object.assign(Object.assign({},ce.pagination),{current:e,pageSize:t})},"paginate")}),h);ce.pagination=!1===h?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"===typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!==typeof r&&(n[t]=r)})),n}(Se,h),ce.resetPagination=Ce;const _e=e.useMemo((()=>{if(!1===h||!Se.pageSize)return be;const{current:e=1,total:t,pageSize:n=XQ}=Se;return be.length<t?be.length>n?be.slice((e-1)*n,e*n):be:be.slice((e-1)*n,e*n)}),[!!h,be,null===Se||void 0===Se?void 0:Se.current,null===Se||void 0===Se?void 0:Se.pageSize,null===Se||void 0===Se?void 0:Se.total]),[Ee,ke]=dY({prefixCls:K,data:be,pageData:_e,getRowKey:se,getRecordByKey:le,expandType:ne,childrenColumnName:te,locale:U,getPopupContainer:x||G},p);ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||C||lZ(U),"nest"===ne&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=p?1:0:ee.expandIconColumnIndex>0&&p&&(ee.expandIconColumnIndex-=1),"number"!==typeof ee.indentSize&&(ee.indentSize="number"===typeof P?P:15);const Pe=e.useCallback((e=>xe(Ee(ge(de(e))))),[de,ge,Ee]);let Ae,Oe,Te;if(!1!==h&&(null===Se||void 0===Se?void 0:Se.total)){let t;t=Se.size?Se.size:"small"===V||"middle"===V?"small":void 0;const n=n=>e.createElement(XY,Object.assign({},Se,{className:$o()("".concat(K,"-pagination ").concat(K,"-pagination-").concat(n),Se.className),size:t})),r="rtl"===B?"left":"right",{position:o}=Se;if(null!==o&&Array.isArray(o)){const e=o.find((e=>e.includes("top"))),t=o.find((e=>e.includes("bottom"))),a=o.every((e=>"none"==="".concat(e)));e||t||a||(Oe=n(r)),e&&(Ae=n(e.toLowerCase().replace("top",""))),t&&(Oe=n(t.toLowerCase().replace("bottom","")))}else Oe=n(r)}"boolean"===typeof S?Te={spinning:S}:"object"===typeof S&&(Te=Object.assign({spinning:!0},S));const Me=$o()(J,Z,"".concat(K,"-wrapper"),null===z||void 0===z?void 0:z.className,{["".concat(K,"-wrapper-rtl")]:"rtl"===B},i,s,Q),Ie=Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),l),Re="undefined"!==typeof(null===T||void 0===T?void 0:T.emptyText)?T.emptyText:(null===H||void 0===H?void 0:H("Table"))||e.createElement(sz,{componentName:"Table"}),Fe=I?pJ:hJ,Ne={},je=e.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=Y,a=Math.floor(e*t);switch(V){case"large":return 2*n+a;case"small":return 2*r+a;default:return 2*o+a}}),[Y,V]);return I&&(Ne.listItemHeight=je),$(e.createElement("div",{ref:ae,className:Me,style:Ie},e.createElement(sZ,Object.assign({spinning:!1},Te),Ae,e.createElement(Fe,Object.assign({},Ne,D,{ref:ie,columns:j,direction:B,expandable:ee,prefixCls:K,className:$o()({["".concat(K,"-middle")]:"middle"===V,["".concat(K,"-small")]:"small"===V,["".concat(K,"-bordered")]:u,["".concat(K,"-empty")]:0===q.length},J,Z,Q),data:_e,rowKey:se,rowClassName:(e,t,n)=>{let r;return r="function"===typeof g?$o()(g(e,t,n)):$o()(g),$o()({["".concat(K,"-row-selected")]:ke.has(se(e,t))},r)},emptyText:Re,internalHooks:QV,internalRefs:re,transformColumns:Pe,getContainerWidth:oe})),Oe)))},NJ=e.forwardRef(FJ),jJ=(t,n)=>{const r=e.useRef(0);return r.current+=1,e.createElement(NJ,Object.assign({},t,{ref:n,_renderTimes:r.current}))},DJ=e.forwardRef(jJ);DJ.SELECTION_COLUMN=aY,DJ.EXPAND_COLUMN=$V,DJ.SELECTION_ALL=iY,DJ.SELECTION_INVERT=sY,DJ.SELECTION_NONE=lY,DJ.Column=Zq,DJ.ColumnGroup=$q,DJ.Summary=xU;const LJ=DJ,BJ=e=>{if(!e)return"N/A";const t=Object.keys(e).filter((t=>e[t]));return(null===t||void 0===t?void 0:t.map((t=>e[t]))).join(" ")},zJ=[{dataIndex:"property",key:"property"},{dataIndex:"value",key:"value"}];const HJ=e=>{let{identity:t}=e;if(!t)return(0,jl.jsx)("div",{className:"centered",children:(0,jl.jsx)("p",{className:"condukt-green",children:"No Company Information"})});const n=[{property:"Name",value:null===t||void 0===t?void 0:t.name},{property:"Type",value:null===t||void 0===t?void 0:t.type},{property:"Registration Number",value:null===t||void 0===t?void 0:t.registration_number},{property:"Status",value:null===t||void 0===t?void 0:t.status},{property:"Country",value:null===t||void 0===t?void 0:t.country},{property:"Address",value:BJ(null===t||void 0===t?void 0:t.address)},{property:"Registration Date",value:((e,t)=>{if(!e)return"N/A";const n=function(e,t){const n=e=>e?new Date(e):null,r=n(e);let o=t?n(t):new Date;if(r){let e=o.getFullYear()-r.getFullYear(),n=o.getMonth()-r.getMonth();o.getDate()-r.getDate()<0&&n--,n<0&&(e--,n+=12);const a={years:e,months:n},i=[];a.years>0&&i.push("".concat(a.years," ").concat(a.years>1?"years":"year")),a.months>0&&i.push("".concat(a.months," ").concat(a.months>1?"months":"month"));const s=t?"operated for":"active for";return i.length>0?"".concat(s," ").concat(i.join(" ")):""}return""}(e,t);return"".concat(e," (").concat(n,")")})(null===t||void 0===t?void 0:t.registration_date,null===t||void 0===t?void 0:t.cessation_date)},{property:"Industry Codes ",value:(e=>{var t;if(!e)return"N/A";const n=(null===e||void 0===e||null===(t=e.codes)||void 0===t?void 0:t.map((e=>"".concat(e.code," - ").concat(e.description)))).join("; ");return"".concat(e.classification," (").concat(n,") ")})(null===t||void 0===t?void 0:t.business_activity)}];return(0,jl.jsx)(jl.Fragment,{children:(0,jl.jsx)(LJ,{showHeader:!1,columns:zJ,dataSource:n,pagination:!1,bordered:!0})})},WJ=[{dataIndex:"property",key:"property"},{dataIndex:"value",key:"value"}],GJ=e=>{let{beneficialOwners:t}=e;if(!t||null===t||void 0===t||!t.length)return(0,jl.jsx)("div",{className:"centered",children:(0,jl.jsx)("p",{className:"condukt-green",children:"No Beneficial Owners have been identified"})});const n=e=>{const t=[{property:"Type",value:null===e||void 0===e?void 0:e.type},{property:"Name",value:null===e||void 0===e?void 0:e.name},{property:"Ownership",value:null===e||void 0===e?void 0:e.ownership_rights},{property:"Voting",value:null===e||void 0===e?void 0:e.voting_rights},{property:"Other Significant Control",value:null!==e&&void 0!==e&&e.has_other_significant_control?"True":"False"},{property:"Address",value:BJ(null===e||void 0===e?void 0:e.address)}];return"NATURAL_PERSON"===(null===e||void 0===e?void 0:e.type)?t.push({property:"Birth Date",value:null===e||void 0===e?void 0:e.date_of_birth},{property:"Nationality",value:null===e||void 0===e?void 0:e.nationality}):t.push({property:"Registration Country",value:null===e||void 0===e?void 0:e.registration_country},{property:"Registration Number",value:null===e||void 0===e?void 0:e.registration_number}),t};return(0,jl.jsx)(jl.Fragment,{children:null===t||void 0===t?void 0:t.map((e=>(e=>(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)(LJ,{showHeader:!1,columns:WJ,dataSource:n(e),pagination:!1,bordered:!0}),(0,jl.jsx)("br",{})]}))(e)))})},VJ=[{dataIndex:"property",key:"property"},{dataIndex:"value",key:"value"}],UJ=e=>{let{officers:t}=e;if(!t||null===t||void 0===t||!t.length)return(0,jl.jsx)("div",{className:"centered",children:(0,jl.jsx)("p",{className:"condukt-green",children:"No Officers have been identified"})});const n=e=>{const t=[{property:"Type",value:null===e||void 0===e?void 0:e.type},{property:"Name",value:null===e||void 0===e?void 0:e.name},{property:"Role",value:null===e||void 0===e?void 0:e.role},{property:"Address",value:BJ(null===e||void 0===e?void 0:e.address)}];return"NATURAL_PERSON"===(null===e||void 0===e?void 0:e.type)?t.push({property:"Birth Date",value:null===e||void 0===e?void 0:e.date_of_birth},{property:"Nationality",value:null===e||void 0===e?void 0:e.nationality}):t.push({property:"Registration Country",value:null===e||void 0===e?void 0:e.registration_country},{property:"Registration Number",value:null===e||void 0===e?void 0:e.registration_number}),t};return(0,jl.jsx)(jl.Fragment,{children:null===t||void 0===t?void 0:t.map((e=>(e=>(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)(LJ,{showHeader:!1,columns:VJ,dataSource:n(e),pagination:!1,bordered:!0}),(0,jl.jsx)("br",{})]}))(e)))})},qJ=()=>{var t,n,r,o,a,i,s,l,c;const[u,d]=(0,e.useState)(null),[f,h]=(0,e.useState)(!1),[p,m]=(0,e.useState)(null),{selectedOrderId:g,debugMode:v}=(0,e.useContext)(sh),y=(0,e.useCallback)((async e=>{h(!0);try{const t=await uh.fetchBusinessProfileOrder(e);d(t)}catch(t){ih.error({message:"Error occurred during order retrieval"})}h(!1)}),[]);if((0,e.useEffect)((()=>{if(!g.bpoOrderId)return;y(g.bpoOrderId);const e=setInterval((()=>{y(g.bpoOrderId)}),3e3);return m(e),()=>{e&&clearInterval(e)}}),[g.bpoOrderId,y,m]),f)return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)("h3",{children:"Fetching the order..."}),(0,jl.jsx)(LD,{paragraph:{rows:20},active:!0})]});if(!["done","failed"].includes(null===u||void 0===u||null===(t=u.processing_state)||void 0===t||null===(n=t.fetch_company_identity)||void 0===n?void 0:n.status))return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)("h3",{children:"Processing the order..."}),(0,jl.jsx)(LD,{paragraph:{rows:20},active:!0})]});if(clearInterval(p),"failed"===(null===u||void 0===u||null===(r=u.processing_state)||void 0===r||null===(o=r.fetch_company_identity)||void 0===o?void 0:o.status))return(0,jl.jsxs)("div",{className:"centered",children:[(0,jl.jsx)("p",{className:"condukt-green",children:"Order processing failed"}),v&&(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)("h1",{children:"Debug Dump"}),(0,jl.jsx)("textarea",{readOnly:!0,value:JSON.stringify(u,null,2),style:{width:"100%",height:"800px"}})]})]});const b=(null===u||void 0===u||null===(a=u.profile)||void 0===a?void 0:a.identity)||{},w=(null===u||void 0===u||null===(i=u.profile)||void 0===i||null===(s=i.identity)||void 0===s?void 0:s.beneficial_owners)||[],x=(null===u||void 0===u||null===(l=u.profile)||void 0===l||null===(c=l.identity)||void 0===c?void 0:c.officers)||[];return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsxs)(QD,{gutter:12,children:[(0,jl.jsxs)(oL,{span:8,children:[(0,jl.jsx)("div",{className:"centered",children:(0,jl.jsx)("h2",{children:"Company"})}),(0,jl.jsx)(HJ,{identity:b})]}),(0,jl.jsxs)(oL,{span:8,children:[(0,jl.jsx)("div",{className:"centered",children:(0,jl.jsx)("h2",{children:"Beneficial Owners"})}),(0,jl.jsx)(GJ,{beneficialOwners:w})]}),(0,jl.jsxs)(oL,{span:8,children:[(0,jl.jsx)("div",{className:"centered",children:(0,jl.jsx)("h2",{children:"Officers"})}),(0,jl.jsx)(UJ,{officers:x})]})]}),v&&(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)("h1",{children:"Debug Dump"}),(0,jl.jsx)("textarea",{readOnly:!0,value:JSON.stringify(u,null,2),style:{width:"100%",height:"800px"}})]})]})};function KJ(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function XJ(t){const{closable:n,closeIcon:r}=t||{};return e.useMemo((()=>{if(!n&&(!1===n||!1===r||null===r))return!1;if(void 0===n&&void 0===r)return null;let e={closeIcon:"boolean"!==typeof r&&null!==r?r:void 0};return n&&"object"===typeof n&&(e=Object.assign(Object.assign({},e),n)),e}),[n,r])}function YJ(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const ZJ={};function $J(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ZJ;const o=XJ(t),a=XJ(n),i=e.useMemo((()=>Object.assign({closeIcon:e.createElement(Lu,null)},r)),[r]),s=e.useMemo((()=>!1!==o&&(o?YJ(i,a,o):!1!==a&&(a?YJ(i,a):!!i.closable&&i))),[o,a,i]);return e.useMemo((()=>{if(!1===s)return[!1,null];const{closeIconRender:t}=i,{closeIcon:n}=s;let r=n;if(null!==r&&void 0!==r){t&&(r=t(n));const o=XH(s,!0);Object.keys(o).length&&(r=e.isValidElement(r)?e.cloneElement(r,o):e.createElement("span",Object.assign({},o),r))}return[!0,r]}),[s,i])}const QJ=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return hl(e,{tagFontSize:o,tagLineHeight:xe(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},JJ=e=>({defaultBg:new Jr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),e0=Sl("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},zi(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,opacity:1,transition:"all ".concat(e.motionDurationMid),textAlign:"start",position:"relative",["&".concat(o,"-rtl")]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},["".concat(o,"-close-icon")]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:"all ".concat(e.motionDurationMid),"&:hover":{color:e.colorTextHeading}},["&".concat(o,"-has-color")]:{borderColor:"transparent",["&, a, a:hover, ".concat(e.iconCls,"-close, ").concat(e.iconCls,"-close:hover")]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",["&:not(".concat(o,"-checkable-checked):hover")]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},["> ".concat(e.iconCls," + span, > span + ").concat(e.iconCls)]:{marginInlineStart:i}}),["".concat(o,"-borderless")]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(QJ(e))),JJ);var t0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const n0=e.forwardRef(((t,n)=>{const{prefixCls:r,style:o,className:a,checked:i,onChange:s,onClick:l}=t,c=t0(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=e.useContext(vo),f=u("tag",r),[h,p,m]=e0(f),g=$o()(f,"".concat(f,"-checkable"),{["".concat(f,"-checkable-checked")]:i},null===d||void 0===d?void 0:d.className,a,p,m);return h(e.createElement("span",Object.assign({},c,{ref:n,style:Object.assign(Object.assign({},o),null===d||void 0===d?void 0:d.style),className:g,onClick:e=>{null===s||void 0===s||s(!i),null===l||void 0===l||l(e)}})))})),r0=n0,o0=xl(["Tag","preset"],(e=>(e=>ZF(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(t)]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}})))(QJ(e))),JJ);const a0=(e,t,n)=>{const r="string"!==typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(t)]:{color:e["color".concat(n)],background:e["color".concat(r,"Bg")],borderColor:e["color".concat(r,"Border")],["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}},i0=xl(["Tag","status"],(e=>{const t=QJ(e);return[a0(t,"success","Success"),a0(t,"processing","Info"),a0(t,"error","Error"),a0(t,"warning","Warning")]}),JJ);var s0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const l0=e.forwardRef(((t,n)=>{const{prefixCls:r,className:o,rootClassName:a,style:i,children:s,icon:l,color:c,onClose:u,bordered:d=!0,visible:f}=t,h=s0(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:g}=e.useContext(vo),[v,y]=e.useState(!0),b=is(h,["closeIcon","closable"]);e.useEffect((()=>{void 0!==f&&y(f)}),[f]);const w=nN(c),x=function(e){return tN.includes(e)}(c),S=w||x,C=Object.assign(Object.assign({backgroundColor:c&&!S?c:void 0},null===g||void 0===g?void 0:g.style),i),_=p("tag",r),[E,k,P]=e0(_),A=$o()(_,null===g||void 0===g?void 0:g.className,{["".concat(_,"-").concat(c)]:S,["".concat(_,"-has-color")]:c&&!S,["".concat(_,"-hidden")]:!v,["".concat(_,"-rtl")]:"rtl"===m,["".concat(_,"-borderless")]:!d},o,a,k,P),O=e=>{e.stopPropagation(),null===u||void 0===u||u(e),e.defaultPrevented||y(!1)},[,T]=$J(KJ(t),KJ(g),{closable:!1,closeIconRender:t=>{const n=e.createElement("span",{className:"".concat(_,"-close-icon"),onClick:O},t);return gI(t,n,(e=>({onClick:t=>{var n;null===(n=null===e||void 0===e?void 0:e.onClick)||void 0===n||n.call(e,t),O(t)},className:$o()(null===e||void 0===e?void 0:e.className,"".concat(_,"-close-icon"))})))}}),M="function"===typeof h.onClick||s&&"a"===s.type,I=l||null,R=I?e.createElement(e.Fragment,null,I,s&&e.createElement("span",null,s)):s,F=e.createElement("span",Object.assign({},b,{ref:n,className:A,style:C}),R,T,w&&e.createElement(o0,{key:"preset",prefixCls:_}),x&&e.createElement(i0,{key:"status",prefixCls:_}));return E(M?e.createElement(CW,{component:"Tag"},F):F)})),c0=l0;c0.CheckableTag=r0;const u0=c0;var d0=__webpack_require__(749);const f0=d0;var h0=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},p0=h0(h0(h0(h0(h0(h0(h0(h0(h0(h0(h0(h0(h0(h0(h0(h0(h0(h0([],["onCopy","onCut","onPaste"],!0),["onCompositionEnd","onCompositionStart","onCompositionUpdate"],!0),["onFocus","onBlur"],!0),["onInput","onInvalid","onReset","onSubmit"],!0),["onLoad","onError"],!0),["onKeyDown","onKeyPress","onKeyUp"],!0),["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],!0),["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],!0),["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],!0),["onSelect"],!0),["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],!0),["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],!0),["onScroll"],!0),["onWheel"],!0),["onAnimationStart","onAnimationEnd","onAnimationIteration"],!0),["onTransitionEnd"],!0),["onChange"],!0),["onToggle"],!0);function m0(e,t){var n={};return p0.forEach((function(r){var o=e[r];o&&(n[r]=t?function(e){return o(e,t(r))}:o)})),n}function g0(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return!t&&n(e)})).catch((function(e){return!t&&r(e)}))})),cancel:function(){t=!0}}}function v0(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=v0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const y0=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=v0(e))&&(r&&(r+=" "),r+=t);return r};var b0=!0,w0="Invariant failed";function x0(e,t){if(!e){if(b0)throw new Error(w0);var n="function"===typeof t?t():t,r=n?"".concat(w0,": ").concat(n):w0;throw new Error(r)}}var S0=__webpack_require__(440),C0=Object.prototype.hasOwnProperty;function _0(e,t,n){for(n of e.keys())if(E0(n,t))return n}function E0(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&E0(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"===typeof o&&!(o=_0(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"===typeof o&&!(o=_0(t,o)))return!1;if(!E0(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(C0.call(e,n)&&++r&&!C0.call(t,n))return!1;if(!(n in t)||!E0(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}const k0=(0,e.createContext)(null);function P0(t){let{children:n,type:r}=t;return e.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(r)},n)}class A0{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(e){this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setExternalLinkRel(e){this.externalLinkRel=e}setExternalLinkTarget(e){this.externalLinkTarget=e}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return x0(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(e){x0(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=e}get rotation(){return 0}set rotation(e){}goToDestination(e){return new Promise((t=>{x0(this.pdfDocument,"PDF document not loaded."),x0(e,"Destination is not specified."),"string"===typeof e?this.pdfDocument.getDestination(e).then(t):Array.isArray(e)?t(e):e.then(t)})).then((e=>{x0(Array.isArray(e),'"'.concat(e,'" is not a valid destination array.'));const t=e[0];new Promise((e=>{x0(this.pdfDocument,"PDF document not loaded."),t instanceof Object?this.pdfDocument.getPageIndex(t).then((t=>{e(t)})).catch((()=>{x0(!1,'"'.concat(t,'" is not a valid page reference.'))})):"number"===typeof t?e(t):x0(!1,'"'.concat(t,'" is not a valid destination reference.'))})).then((t=>{const n=t+1;x0(this.pdfViewer,"PDF viewer is not initialized."),x0(n>=1&&n<=this.pagesCount,'"'.concat(n,'" is not a valid page number.')),this.pdfViewer.scrollPageIntoView({dest:e,pageIndex:t,pageNumber:n})}))}))}navigateTo(e){this.goToDestination(e)}goToPage(e){const t=e-1;x0(this.pdfViewer,"PDF viewer is not initialized."),x0(e>=1&&e<=this.pagesCount,'"'.concat(e,'" is not a valid page number.')),this.pdfViewer.scrollPageIntoView({pageIndex:t,pageNumber:e})}addLinkAttributes(e,t,n){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=n?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}const O0={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},T0="undefined"!==typeof document,M0=T0&&"file:"===window.location.protocol;function I0(e){return"undefined"!==typeof e}function R0(e){return I0(e)&&null!==e}function F0(e){return function(e){return"string"===typeof e}(e)&&/^data:/.test(e)}function N0(e){x0(F0(e),"Invalid data URI.");const[t="",n=""]=e.split(",");return-1!==t.split(";").indexOf("base64")?atob(n):unescape(n)}function j0(){return T0&&window.devicePixelRatio||1}const D0="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function L0(){S0(!M0,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(D0))}function B0(e){e&&e.cancel&&e.cancel()}function z0(e,t){return Object.defineProperty(e,"width",{get(){return this.view[2]*t},configurable:!0}),Object.defineProperty(e,"height",{get(){return this.view[3]*t},configurable:!0}),Object.defineProperty(e,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(e,"originalHeight",{get(){return this.view[3]},configurable:!0}),e}function H0(e){return"RenderingCancelledException"===e.name}function W0(e,t){switch(t.type){case"RESOLVE":return{value:t.value,error:void 0};case"REJECT":return{value:!1,error:t.error};case"RESET":return{value:void 0,error:void 0};default:return e}}function G0(){return(0,e.useReducer)(W0,{value:void 0,error:void 0})}const{PDFDataRangeTransport:V0}=f0,U0=(()=>{const e={};return p0.forEach((t=>{e[t]=dh.func})),e})(),q0=dh.oneOfType([dh.instanceOf(Int8Array),dh.instanceOf(Uint8Array),dh.instanceOf(Uint8ClampedArray),dh.instanceOf(Int16Array),dh.instanceOf(Uint16Array),dh.instanceOf(Int32Array),dh.instanceOf(Uint32Array),dh.instanceOf(Float32Array),dh.instanceOf(Float64Array)]),K0=[dh.string,dh.instanceOf(ArrayBuffer),dh.shape({data:dh.oneOfType([dh.string,dh.instanceOf(ArrayBuffer),dh.arrayOf(dh.number.isRequired),q0]).isRequired}),dh.shape({range:dh.instanceOf(V0).isRequired}),dh.shape({url:dh.string.isRequired})];"undefined"!==typeof Blob&&K0.push(dh.instanceOf(Blob));const X0=dh.oneOfType([dh.string,dh.arrayOf(dh.string)]),Y0=dh.oneOfType(K0),Z0=(dh.instanceOf(A0),dh.oneOf(["_self","_blank","_parent","_top"]),dh.shape({commonObjs:dh.shape({}).isRequired,getAnnotations:dh.func.isRequired,getTextContent:dh.func.isRequired,getViewport:dh.func.isRequired,render:dh.func.isRequired}),dh.oneOfType([dh.any,dh.oneOf([!1])])),$0=dh.oneOfType([dh.func,dh.exact({current:dh.any})]),Q0=dh.oneOf(["canvas","custom","none","svg"]),J0=dh.oneOf([0,90,180,270]);var e1=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(x7){a(x7)}}function s(e){try{l(r.throw(e))}catch(x7){a(x7)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},t1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const{PDFDataRangeTransport:n1}=f0,r1=(e,t)=>{switch(t){case O0.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case O0.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."));break}};function o1(e){return"object"===typeof e&&null!==e&&("data"in e||"range"in e||"url"in e)}const a1=(0,e.forwardRef)((function(t,n){var{children:r,className:o,error:a="Failed to load PDF file.",externalLinkRel:i,externalLinkTarget:s,file:l,inputRef:c,imageResourcesPath:u,loading:d="Loading PDF\u2026",noData:f="No PDF file specified.",onItemClick:h,onLoadError:p,onLoadProgress:m,onLoadSuccess:g,onPassword:v=r1,onSourceError:y,onSourceSuccess:b,options:w,renderMode:x,rotate:S}=t,C=t1(t,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[_,E]=G0(),{value:k,error:P}=_,[A,O]=G0(),{value:T,error:M}=A,I=(0,e.useRef)(new A0),R=(0,e.useRef)([]),F=(0,e.useRef)(),N=(0,e.useRef)();(0,e.useEffect)((()=>{l&&l!==F.current&&o1(l)&&(S0(!E0(l,F.current),'File prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),F.current=l)}),[l]),(0,e.useEffect)((()=>{w&&w!==N.current&&(S0(!E0(w,N.current),'Options prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),N.current=w)}),[w]);const j=(0,e.useRef)({scrollPageIntoView:e=>{const{dest:t,pageNumber:n,pageIndex:r=n-1}=e;if(h)return void h({dest:t,pageIndex:r,pageNumber:n});const o=R.current[r];o?o.scrollIntoView():S0(!1,"An internal link leading to page ".concat(n," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}});(0,e.useImperativeHandle)(n,(()=>({linkService:I,pages:R,viewer:j})),[]),(0,e.useEffect)((function(){E({type:"RESET"})}),[l,E]);const D=(0,e.useCallback)((()=>e1(this,void 0,void 0,(function*(){if(!l)return null;if("string"===typeof l){if(F0(l)){return{data:N0(l)}}return L0(),{url:l}}if(l instanceof n1)return{range:l};if(l instanceof ArrayBuffer)return{data:l};if(T0&&function(e){return x0(T0,"isBlob can only be used in a browser environment"),e instanceof Blob}(l)){const e=yield function(e){return new Promise(((t,n)=>{const r=new FileReader;r.onload=()=>{if(!r.result)return n(new Error("Error while reading a file."));t(r.result)},r.onerror=e=>{if(!e.target)return n(new Error("Error while reading a file."));const{error:t}=e.target;if(!t)return n(new Error("Error while reading a file."));switch(t.code){case t.NOT_FOUND_ERR:return n(new Error("Error while reading a file: File not found."));case t.SECURITY_ERR:return n(new Error("Error while reading a file: Security error."));case t.ABORT_ERR:return n(new Error("Error while reading a file: Aborted."));default:return n(new Error("Error while reading a file."))}},r.readAsArrayBuffer(e)}))}(l);return{data:e}}if(x0("object"===typeof l,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),x0(o1(l),"Invalid parameter object: need either .data, .range or .url"),"url"in l&&"string"===typeof l.url){if(F0(l.url)){const{url:e}=l,t=t1(l,["url"]),n=N0(e);return Object.assign({data:n},t)}L0()}return l}))),[l]);function L(e,t){R.current[e]=t}function B(e){delete R.current[e]}(0,e.useEffect)((()=>{const e=g0(D());return e.promise.then((e=>{E({type:"RESOLVE",value:e})})).catch((e=>{E({type:"REJECT",error:e})})),()=>{B0(e)}}),[D,E]),(0,e.useEffect)((()=>{"undefined"!==typeof k&&(!1!==k?b&&b():P&&(S0(!1,P.toString()),y&&y(P)))}),[k]),(0,e.useEffect)((function(){O({type:"RESET"})}),[O,k]),(0,e.useEffect)((function(){if(!k)return;const e=w?Object.assign(Object.assign({},k),w):k,t=f0.getDocument(e);m&&(t.onProgress=m),v&&(t.onPassword=v);const n=t;return n.promise.then((e=>{O({type:"RESOLVE",value:e})})).catch((e=>{n.destroyed||O({type:"REJECT",error:e})})),()=>{n.destroy()}}),[w,O,k]),(0,e.useEffect)((()=>{"undefined"!==typeof T&&(!1!==T?T&&(g&&g(T),R.current=new Array(T.numPages),I.current.setDocument(T)):M&&(S0(!1,M.toString()),p&&p(M)))}),[T]),(0,e.useEffect)((function(){I.current.setViewer(j.current),I.current.setExternalLinkRel(i),I.current.setExternalLinkTarget(s)}),[i,s]);const z=(0,e.useMemo)((()=>({imageResourcesPath:u,linkService:I.current,onItemClick:h,pdf:T,registerPage:L,renderMode:x,rotate:S,unregisterPage:B})),[u,h,T,x,S]),H=(0,e.useMemo)((()=>m0(C,(()=>T))),[C,T]);return e.createElement("div",Object.assign({className:y0("react-pdf__Document",o),ref:c,style:{"--scale-factor":"1"}},H),l?void 0===T||null===T?e.createElement(P0,{type:"loading"},"function"===typeof d?d():d):!1===T?e.createElement(P0,{type:"error"},"function"===typeof a?a():a):e.createElement(k0.Provider,{value:z},r):e.createElement(P0,{type:"no-data"},"function"===typeof f?f():f))})),i1=dh.oneOfType([dh.func,dh.node]);a1.propTypes=Object.assign(Object.assign({},U0),{children:dh.node,className:X0,error:i1,externalLinkRel:dh.string,externalLinkTarget:dh.oneOf(["_self","_blank","_parent","_top"]),file:Y0,imageResourcesPath:dh.string,inputRef:$0,loading:i1,noData:i1,onItemClick:dh.func,onLoadError:dh.func,onLoadProgress:dh.func,onLoadSuccess:dh.func,onPassword:dh.func,onSourceError:dh.func,onSourceSuccess:dh.func,options:dh.shape({canvasFactory:dh.any,canvasMaxAreaInBytes:dh.number,cMapPacked:dh.bool,CMapReaderFactory:dh.any,cMapUrl:dh.string,disableAutoFetch:dh.bool,disableFontFace:dh.bool,disableRange:dh.bool,disableStream:dh.bool,docBaseUrl:dh.string,enableXfa:dh.bool,filterFactory:dh.any,fontExtraProperties:dh.bool,httpHeaders:dh.object,isEvalSupported:dh.bool,isOffscreenCanvasSupported:dh.bool,length:dh.number,maxImageSize:dh.number,ownerDocument:dh.any,password:dh.string,pdfBug:dh.bool,rangeChunkSize:dh.number,StandardFontDataFactory:dh.any,standardFontDataUrl:dh.string,stopAtErrors:dh.bool,useSystemFonts:dh.bool,useWorkerFetch:dh.bool,verbosity:dh.number,withCredentials:dh.bool,worker:dh.any}),rotate:dh.number});const s1=a1;function l1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(Boolean);return n.length<=1?n[0]||null:function(e){n.forEach((function(t){"function"===typeof t?t(e):t&&(t.current=e)}))}}const c1=(0,e.createContext)(null),u1={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},d1=/^H(\d+)$/;function f1(e){return"children"in e}function h1(e){return!!f1(e)&&(1===e.children.length&&0 in e.children&&"id"in e.children[0])}function p1(e){const t={};if(f1(e)){const{role:n}=e,r=n.match(d1);if(r)t.role="heading",t["aria-level"]=Number(r[1]);else if(function(e){return e in u1}(n)){const e=u1[n];e&&(t.role=e)}}return t}function m1(e){const t={};if(f1(e)){if(void 0!==e.alt&&(t["aria-label"]=e.alt),void 0!==e.lang&&(t.lang=e.lang),h1(e)){const[n]=e.children;if(n){const e=m1(n);return Object.assign(Object.assign({},t),e)}}}else"id"in e&&(t["aria-owns"]=e.id);return t}function g1(e){return e?Object.assign(Object.assign({},p1(e)),m1(e)):null}function v1(t){let{className:n,node:r}=t;const o=(0,e.useMemo)((()=>g1(r)),[r]),a=(0,e.useMemo)((()=>f1(r)?h1(r)?null:r.children.map(((t,n)=>e.createElement(v1,{key:n,node:t}))):null),[r]);return e.createElement("span",Object.assign({className:n},o),a)}function y1(){return(0,e.useContext)(c1)}function b1(){const t=y1();x0(t,"Unable to find Page context.");const{onGetStructTreeError:n,onGetStructTreeSuccess:r}=t,[o,a]=G0(),{value:i,error:s}=o,{customTextRenderer:l,page:c}=t;return(0,e.useEffect)((function(){a({type:"RESET"})}),[a,c]),(0,e.useEffect)((function(){if(l)return;if(!c)return;const e=g0(c.getStructTree()),t=e;return e.promise.then((e=>{a({type:"RESOLVE",value:e})})).catch((e=>{a({type:"REJECT",error:e})})),()=>B0(t)}),[l,c,a]),(0,e.useEffect)((()=>{void 0!==i&&(!1!==i?i&&r&&r(i):s&&(S0(!1,s.toString()),n&&n(s)))}),[i]),i?e.createElement(v1,{className:"react-pdf__Page__structTree structTree",node:i}):null}const w1=f0.AnnotationMode;function x1(t){const n=y1();x0(n,"Unable to find Page context.");const r=Object.assign(Object.assign({},n),t),{_className:o,canvasBackground:a,devicePixelRatio:i=j0(),onRenderError:s,onRenderSuccess:l,page:c,renderForms:u,renderTextLayer:d,rotate:f,scale:h}=r,{canvasRef:p}=t;x0(c,"Attempted to render page canvas, but no page was specified.");const m=(0,e.useRef)(null);function g(e){H0(e)||(S0(!1,e.toString()),s&&s(e))}const v=(0,e.useMemo)((()=>c.getViewport({scale:h*i,rotation:f})),[i,c,f,h]),y=(0,e.useMemo)((()=>c.getViewport({scale:h,rotation:f})),[c,f,h]);(0,e.useEffect)((function(){if(!c)return;c.cleanup();const{current:e}=m;if(!e)return;e.width=v.width,e.height=v.height,e.style.width="".concat(Math.floor(y.width),"px"),e.style.height="".concat(Math.floor(y.height),"px"),e.style.visibility="hidden";const t={annotationMode:u?w1.ENABLE_FORMS:w1.ENABLE,canvasContext:e.getContext("2d",{alpha:!1}),viewport:v};a&&(t.background=a);const n=c.render(t),r=n;return n.promise.then((()=>{e.style.visibility="",c&&l&&l(z0(c,h))})).catch(g),()=>B0(r)}),[a,m,i,c,u,v,y]);const b=(0,e.useCallback)((()=>{const{current:e}=m;e&&(e.width=0,e.height=0)}),[m]);return(0,e.useEffect)((()=>b),[b]),e.createElement("canvas",{className:"".concat(o,"__canvas"),dir:"ltr",ref:l1(p,m),style:{display:"block",userSelect:"none"}},d?e.createElement(b1,null):null)}function S1(){const t=y1();x0(t,"Unable to find Page context.");const{_className:n,onRenderSuccess:r,onRenderError:o,page:a,rotate:i,scale:s}=t;x0(a,"Attempted to render page SVG, but no page was specified.");const[l,c]=G0(),{value:u,error:d}=l;const f=(0,e.useMemo)((()=>a.getViewport({scale:s,rotation:i})),[a,i,s]);(0,e.useEffect)((function(){c({type:"RESET"})}),[a,c,f]),(0,e.useEffect)((function(){if(!a)return;const e=g0(a.getOperatorList());return e.promise.then((e=>{new f0.SVGGraphics(a.commonObjs,a.objs).getSVG(e,f).then((e=>{if(!(e instanceof SVGElement))throw new Error("getSVG returned unexpected result.");c({type:"RESOLVE",value:e})})).catch((e=>{c({type:"REJECT",error:e})}))})).catch((e=>{c({type:"REJECT",error:e})})),()=>B0(e)}),[a,c,f]),(0,e.useEffect)((()=>{void 0!==u&&(!1!==u?a&&r&&r(z0(a,s)):d&&(H0(d)||(S0(!1,d.toString()),o&&o(d))))}),[u]);const{width:h,height:p}=f;return e.createElement("div",{className:"".concat(n,"__svg"),ref:e=>function(e){if(!e||!u)return;e.firstElementChild||e.appendChild(u);const{width:t,height:n}=f;u.setAttribute("width","".concat(t)),u.setAttribute("height","".concat(n))}(e),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:h,height:p,userSelect:"none"}})}function C1(){const t=y1();x0(t,"Unable to find Page context.");const{customTextRenderer:n,onGetTextError:r,onGetTextSuccess:o,onRenderTextLayerError:a,onRenderTextLayerSuccess:i,page:s,pageIndex:l,pageNumber:c,rotate:u,scale:d}=t;x0(s,"Attempted to load page text content, but no page was specified.");const[f,h]=G0(),{value:p,error:m}=f,g=(0,e.useRef)(null),v=(0,e.useRef)();S0(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),(0,e.useEffect)((function(){h({type:"RESET"})}),[s,h]),(0,e.useEffect)((function(){if(!s)return;const e=g0(s.getTextContent()),t=e;return e.promise.then((e=>{h({type:"RESOLVE",value:e})})).catch((e=>{h({type:"REJECT",error:e})})),()=>B0(t)}),[s,h]),(0,e.useEffect)((()=>{void 0!==p&&(!1!==p?p&&o&&o(p):m&&(S0(!1,m.toString()),r&&r(m)))}),[p]);const y=(0,e.useCallback)((()=>{i&&i()}),[i]),b=(0,e.useCallback)((e=>{S0(!1,e.toString()),a&&a(e)}),[a]);const w=(0,e.useMemo)((()=>s.getViewport({scale:d,rotation:u})),[s,u,d]);return(0,e.useLayoutEffect)((function(){if(!s||!p)return;const{current:e}=g;if(!e)return;e.innerHTML="";const t=s.streamTextContent({includeMarkedContent:!0}),r={container:e,textContentSource:t,viewport:w},o=f0.renderTextLayer(r),a=o;return o.promise.then((()=>{const t=document.createElement("div");t.className="endOfContent",e.append(t),v.current=t;const r=e.querySelectorAll('[role="presentation"]');if(n){let e=0;p.items.forEach(((t,o)=>{if(!function(e){return"str"in e}(t))return;const a=r[e];if(!a)return;const i=n(Object.assign({pageIndex:l,pageNumber:c,itemIndex:o},t));a.innerHTML=i,e+=t.str&&t.hasEOL?2:1}))}y()})).catch(b),()=>B0(a)}),[n,b,y,s,l,c,p,w]),e.createElement("div",{className:y0("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){const e=v.current;e&&e.classList.remove("active")},onMouseDown:function(){const e=v.current;e&&e.classList.add("active")},ref:g})}function _1(){return(0,e.useContext)(k0)}function E1(){const t=_1(),n=y1();x0(n,"Unable to find Page context.");const r=Object.assign(Object.assign({},t),n),{imageResourcesPath:o,linkService:a,onGetAnnotationsError:i,onGetAnnotationsSuccess:s,onRenderAnnotationLayerError:l,onRenderAnnotationLayerSuccess:c,page:u,pdf:d,renderForms:f,rotate:h,scale:p=1}=r;x0(d,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),x0(u,"Attempted to load page annotations, but no page was specified."),x0(a,"Attempted to load page annotations, but no linkService was specified.");const[m,g]=G0(),{value:v,error:y}=m,b=(0,e.useRef)(null);S0(1===parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),(0,e.useEffect)((function(){g({type:"RESET"})}),[g,u]),(0,e.useEffect)((function(){if(!u)return;const e=g0(u.getAnnotations()),t=e;return e.promise.then((e=>{g({type:"RESOLVE",value:e})})).catch((e=>{g({type:"REJECT",error:e})})),()=>{B0(t)}}),[g,u,f]),(0,e.useEffect)((()=>{void 0!==v&&(!1!==v?v&&s&&s(v):y&&(S0(!1,y.toString()),i&&i(y)))}),[v]);const w=(0,e.useMemo)((()=>u.getViewport({scale:p,rotation:h})),[u,h,p]);return(0,e.useEffect)((function(){if(!d||!u||!a||!v)return;const{current:e}=b;if(!e)return;const t=w.clone({dontFlip:!0}),n={accessibilityManager:null,annotationCanvasMap:null,div:e,l10n:null,page:u,viewport:t},r={annotations:v,annotationStorage:d.annotationStorage,div:e,downloadManager:null,imageResourcesPath:o,linkService:a,page:u,renderForms:f,viewport:t};e.innerHTML="";try{new f0.AnnotationLayer(n).render(r),c&&c()}catch(i){!function(e){S0(!1,"".concat(e)),l&&l(e)}(i)}return()=>{}}),[v,o,a,u,f,w]),e.createElement("div",{className:y0("react-pdf__Page__annotations","annotationLayer"),ref:b})}var k1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const P1=1,A1=function(t){const n=_1(),r=Object.assign(Object.assign({},n),t),{_className:o="react-pdf__Page",_enableRegisterUnregisterPage:a=!0,canvasBackground:i,canvasRef:s,children:l,className:c,customRenderer:u,customTextRenderer:d,devicePixelRatio:f,error:h="Failed to load the page.",height:p,inputRef:m,loading:g="Loading page\u2026",noData:v="No page specified.",onGetAnnotationsError:y,onGetAnnotationsSuccess:b,onGetStructTreeError:w,onGetStructTreeSuccess:x,onGetTextError:S,onGetTextSuccess:C,onLoadError:_,onLoadSuccess:E,onRenderAnnotationLayerError:k,onRenderAnnotationLayerSuccess:P,onRenderError:A,onRenderSuccess:O,onRenderTextLayerError:T,onRenderTextLayerSuccess:M,pageIndex:I,pageNumber:R,pdf:F,registerPage:N,renderAnnotationLayer:j=!0,renderForms:D=!1,renderMode:L="canvas",renderTextLayer:B=!0,rotate:z,scale:H=P1,unregisterPage:W,width:G}=r,V=k1(r,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[U,q]=G0(),{value:K,error:X}=U,Y=(0,e.useRef)(null);x0(F,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");const Z=R0(R)?R-1:null!==I&&void 0!==I?I:null,$=null!==R&&void 0!==R?R:R0(I)?I+1:null,Q=null!==z&&void 0!==z?z:K?K.rotate:null,J=(0,e.useMemo)((()=>{if(!K)return null;let e=1;const t=null!==H&&void 0!==H?H:P1;if(G||p){const t=K.getViewport({scale:1,rotation:Q});G?e=G/t.width:p&&(e=p/t.height)}return t*e}),[p,K,Q,H,G]);(0,e.useEffect)((function(){return()=>{R0(Z)&&a&&W&&W(Z)}}),[a,F,Z,W]),(0,e.useEffect)((function(){q({type:"RESET"})}),[q,F,Z]),(0,e.useEffect)((function(){if(!F||!$)return;const e=g0(F.getPage($)),t=e;return e.promise.then((e=>{q({type:"RESOLVE",value:e})})).catch((e=>{q({type:"REJECT",error:e})})),()=>B0(t)}),[q,F,Z,$,N]),(0,e.useEffect)((()=>{void 0!==K&&(!1!==K?function(){if(E){if(!K||!J)return;E(z0(K,J))}if(a&&N){if(!R0(Z)||!Y.current)return;N(Z,Y.current)}}():X&&(S0(!1,X.toString()),_&&_(X)))}),[K,J]);const ee=(0,e.useMemo)((()=>K&&R0(Z)&&$&&R0(Q)&&R0(J)?{_className:o,canvasBackground:i,customTextRenderer:d,devicePixelRatio:f,onGetAnnotationsError:y,onGetAnnotationsSuccess:b,onGetStructTreeError:w,onGetStructTreeSuccess:x,onGetTextError:S,onGetTextSuccess:C,onRenderAnnotationLayerError:k,onRenderAnnotationLayerSuccess:P,onRenderError:A,onRenderSuccess:O,onRenderTextLayerError:T,onRenderTextLayerSuccess:M,page:K,pageIndex:Z,pageNumber:$,renderForms:D,renderTextLayer:B,rotate:Q,scale:J}:null),[o,i,d,f,y,b,w,x,S,C,k,P,A,O,T,M,K,Z,$,D,B,Q,J]),te=(0,e.useMemo)((()=>m0(V,(()=>K?J?z0(K,J):void 0:K))),[V,K,J]),ne="".concat(Z,"@").concat(J,"/").concat(Q),re="".concat(Z,"/").concat(Q);function oe(){return e.createElement(c1.Provider,{value:ee},function(){switch(L){case"custom":return x0(u,'renderMode was set to "custom", but no customRenderer was passed.'),e.createElement(u,{key:"".concat(ne,"_custom")});case"none":return null;case"svg":return e.createElement(S1,{key:"".concat(re,"_svg")});default:return e.createElement(x1,{key:"".concat(ne,"_canvas"),canvasRef:s})}}(),B?e.createElement(C1,{key:"".concat(ne,"_text")}):null,j?e.createElement(E1,{key:"".concat(ne,"_annotations")}):null,l)}return e.createElement("div",Object.assign({className:y0(o,c),"data-page-number":$,ref:l1(m,Y),style:{"--scale-factor":"".concat(J),backgroundColor:i||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},te),$?null===F||void 0===K||null===K?e.createElement(P0,{type:"loading"},"function"===typeof g?g():g):!1===F||!1===K?e.createElement(P0,{type:"error"},"function"===typeof h?h():h):oe():e.createElement(P0,{type:"no-data"},"function"===typeof v?v():v))},O1=dh.oneOfType([dh.func,dh.node]);A1.propTypes=Object.assign(Object.assign({},U0),{canvasBackground:dh.string,canvasRef:$0,children:dh.node,className:X0,customRenderer:dh.func,customTextRenderer:dh.func,devicePixelRatio:dh.number,error:O1,height:dh.number,imageResourcesPath:dh.string,inputRef:$0,loading:O1,noData:O1,onGetTextError:dh.func,onGetTextSuccess:dh.func,onLoadError:dh.func,onLoadSuccess:dh.func,onRenderError:dh.func,onRenderSuccess:dh.func,onRenderTextLayerError:dh.func,onRenderTextLayerSuccess:dh.func,pageIndex:function(e,t,n){const{[t]:r,pageNumber:o,pdf:a}=e;if(!I0(a))return null;if(I0(r)){if("number"!==typeof r)return new Error("`".concat(t,"` of type `").concat(typeof r,"` supplied to `").concat(n,"`, expected `number`."));if(r<0)return new Error("Expected `".concat(t,"` to be greater or equal to 0."));const{numPages:e}=a;if(r+1>e)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(e-1,"."))}else if(!I0(o))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},pageNumber:function(e,t,n){const{[t]:r,pageIndex:o,pdf:a}=e;if(!I0(a))return null;if(I0(r)){if("number"!==typeof r)return new Error("`".concat(t,"` of type `").concat(typeof r,"` supplied to `").concat(n,"`, expected `number`."));if(r<1)return new Error("Expected `".concat(t,"` to be greater or equal to 1."));const{numPages:e}=a;if(r>e)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(e,"."))}else if(!I0(o))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(n,"`."));return null},pdf:Z0,renderAnnotationLayer:dh.bool,renderForms:dh.bool,renderMode:Q0,renderTextLayer:dh.bool,rotate:J0,scale:dh.number,width:dh.number});const T1=A1;const M1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M517.6 273.5L230.2 499.3a16.14 16.14 0 000 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 000 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z"}}]},name:"fast-backward",theme:"outlined"};var I1=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:M1}))};const R1=e.forwardRef(I1);const F1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 00-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z"}}]},name:"backward",theme:"outlined"};var N1=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:F1}))};const j1=e.forwardRef(N1);const D1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z"}}]},name:"forward",theme:"outlined"};var L1=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:D1}))};const B1=e.forwardRef(L1);const z1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 000-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z"}}]},name:"fast-forward",theme:"outlined"};var H1=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:z1}))};const W1=e.forwardRef(H1);const G1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var V1=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:G1}))};const U1=e.forwardRef(V1);const q1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var K1=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:q1}))};const X1=e.forwardRef(K1);const Y1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var Z1=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:Y1}))};const $1=e.forwardRef(Z1),Q1=e=>{let{setScale:t,pageNumber:n,numPages:r,onPageChange:o,scale:a,fileUrl:i,fileName:s}=e;return i?(0,jl.jsx)("div",{children:(0,jl.jsxs)("div",{className:"control-panel",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"50px",margin:16,padding:16},children:[(0,jl.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,jl.jsx)(lN,{title:"First Page",children:(0,jl.jsx)(vG,{icon:(0,jl.jsx)(R1,{}),onClick:()=>o(1)})}),(0,jl.jsx)(lN,{title:"Previous Page",children:(0,jl.jsx)(vG,{icon:(0,jl.jsx)(j1,{}),onClick:()=>o(n<2?1:n-1)})}),(0,jl.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",margin:"0 10px"},children:[(0,jl.jsx)("p",{children:"Page"}),(0,jl.jsx)(FV,{min:1,max:r||1,value:n,onChange:o}),(0,jl.jsxs)("p",{children:["of ",r]})]}),(0,jl.jsx)(lN,{title:"Next Page",children:(0,jl.jsx)(vG,{icon:(0,jl.jsx)(B1,{}),onClick:()=>o(n<r?n+1:r)})}),(0,jl.jsx)(lN,{title:"Last Page",children:(0,jl.jsx)(vG,{icon:(0,jl.jsx)(W1,{}),onClick:()=>o(r)})})]}),(0,jl.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,jl.jsx)(lN,{title:"Zoom Out",children:(0,jl.jsx)(vG,{icon:(0,jl.jsx)(U1,{}),onClick:()=>t(a-.1)})}),(0,jl.jsxs)("span",{children:[(100*a).toFixed(),"%"]}),(0,jl.jsx)(lN,{title:"Zoom In",children:(0,jl.jsx)(vG,{icon:(0,jl.jsx)(X1,{}),onClick:()=>t(a+.1)})})]}),(0,jl.jsx)("div",{children:(0,jl.jsx)(lN,{title:"Download",children:(0,jl.jsx)($1,{onClick:async()=>{try{const e=await fetch(i);if(!e.ok)throw new Error("Unable to download file");const t=await e.blob(),n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=s,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}catch(e){ih.error({message:"Error downloading file"})}},style:{fontSize:"16px"}})})})]})}):(0,jl.jsx)(jl.Fragment,{})};f0.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(f0.version,"/pdf.worker.js");const J1=["pdf"],e2=t=>{let{documentId:n,fileName:r}=t;const[o,a]=(0,e.useState)(1),[i,s]=(0,e.useState)(null),[l,c]=(0,e.useState)(null),[u,d]=(0,e.useState)(1),[f,h]=(0,e.useState)(!1),[p,m]=(0,e.useState)(null),g=(0,e.useCallback)((async()=>{m(null),c(null),d(1);try{h(!0);const e=await uh.fetchDocument(n);m(null===e||void 0===e?void 0:e.download_url)}catch(l){ih.error({message:"Unable to download PDF"})}}),[n]);return(0,e.useEffect)((()=>{if(!n)return m(null),void c(null);g()}),[n,g]),l?(0,jl.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,jl.jsx)("p",{className:"condukt-green",children:l})}):p&&r?(e=>{if(""==e)throw new Error("fileName is empty");return!(!e||J1.includes(e.split(".").pop().toLowerCase()))})(r)?(0,jl.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,jl.jsx)(vG,{type:"primary",onClick:()=>window.open(p,"_blank"),children:"Download File(s)"})}):(0,jl.jsxs)("div",{style:{display:"flex",justifyContent:"center"},children:[f&&(0,jl.jsx)(LD,{paragraph:{rows:10},active:!0}),(0,jl.jsxs)("section",{children:[!f&&(0,jl.jsx)(Q1,{scale:o,setScale:a,numPages:i,pageNumber:u,onPageChange:e=>d(e),fileUrl:p,fileName:r}),(0,jl.jsx)(s1,{file:p,loading:(0,jl.jsx)(LD,{active:!0}),onLoadSuccess:e=>{let{numPages:t}=e;s(t),h(!1)},onLoadError:()=>{h(!1),m(null),c("Document download failed")},children:(0,jl.jsx)(T1,{pageNumber:u,scale:o})})]})]}):(0,jl.jsx)(jl.Fragment,{})},t2=()=>{var t,n;const[r,o]=(0,e.useState)(null),[a,i]=(0,e.useState)([]),[s,l]=(0,e.useState)(!0),[c,u]=(0,e.useState)(null),[d,f]=(0,e.useState)(null),{selectedOrderId:h}=(0,e.useContext)(sh),p=(0,e.useMemo)((()=>{var e,t;return!["done","failed"].includes(null===r||void 0===r||null===(e=r.processing_state)||void 0===e||null===(t=e.download_documents)||void 0===t?void 0:t.status)}),[r]),m=(0,e.useCallback)((async e=>{s&&l(!1);try{const t=await uh.fetchBusinessProfileOrder(e);o(t)}catch(t){ih.error({message:"Error occurred during order retrieval"})}}),[]);(0,e.useEffect)((()=>{if(f(null),!h.bpoOrderId)return;m(h.bpoOrderId);const e=setInterval((()=>{m(h.bpoOrderId)}),3e3);return u(e),()=>{e&&clearInterval(e)}}),[h.bpoOrderId,m]),(0,e.useEffect)((()=>{var e;const t=(e=>{const t=["INCORPORATION","ARTICLES","UBO_STATEMENT","REGISTER_EXTRACT","OTHER"];return e.sort(((e,n)=>{var r,o,a,i;const s=null===e||void 0===e||null===(r=e.tags)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.toUpperCase(),l=null===n||void 0===n||null===(a=n.tags)||void 0===a||null===(i=a[0])||void 0===i?void 0:i.toUpperCase();let c=t.findIndex((e=>e===s)),u=t.findIndex((e=>e===l));return-1===c&&(c=t.length),-1===u&&(u=t.length),c-u}))})((null===r||void 0===r||null===(e=r.profile)||void 0===e?void 0:e.documents)||[]),n=(e=>e.map((e=>"Not found"===(null===e||void 0===e?void 0:e.name)||"Pending"===(null===e||void 0===e?void 0:e.name)?{...e,date:""}:e)))(t);i(n)}),[r]),(0,e.useEffect)((()=>{p||(clearInterval(c),u(null))}),[p]);const g=[{title:"Type",dataIndex:"tags",key:"tags",render:e=>(0,jl.jsx)(jl.Fragment,{children:e.map((e=>(0,jl.jsx)(u0,{style:{color:"#ceff00",borderColor:"#ceff00"},children:e.toUpperCase()},e)))})},{title:"Name",dataIndex:"name",key:"name"},{title:"Date",dataIndex:"date",key:"date"},{title:"",dataIndex:"id",render:(e,t)=>"Not found"===(null===t||void 0===t?void 0:t.name)?(0,jl.jsx)(jl.Fragment,{}):"Pending"===(null===t||void 0===t?void 0:t.name)||p?(0,jl.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,jl.jsx)(sZ,{})}):(0,jl.jsx)(jl.Fragment,{children:(0,jl.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,jl.jsx)(vG,{style:{minWidth:"6rem"},type:(null===d||void 0===d?void 0:d.value)===e?"primary":"default",onClick:()=>{(null===d||void 0===d?void 0:d.value)!==e?f({label:null===t||void 0===t?void 0:t.name,value:e}):f(null)},children:(null===d||void 0===d?void 0:d.value)===e?"Selected":"Select"})})})}];return(0,jl.jsx)(jl.Fragment,{children:(0,jl.jsx)(QD,{gutter:12,children:(0,jl.jsxs)(oL,{span:24,children:[(0,jl.jsx)(LJ,{id:"documents-table",loading:s||0===a.length,columns:g,dataSource:a,pagination:!1,locale:{emptyText:(0,jl.jsx)("p",{})}}),(0,jl.jsx)("br",{}),!(null===r||void 0===r||null===(t=r.profile)||void 0===t||null===(n=t.documents)||void 0===n||!n.length)&&(0,jl.jsx)(jl.Fragment,{children:(0,jl.jsx)(e2,{documentId:null===d||void 0===d?void 0:d.value,fileName:null===d||void 0===d?void 0:d.label})})]})})})};const n2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var r2=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:n2}))};const o2=e.forwardRef(r2);var a2=function(e){if(bo()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function i2(e,t){return Array.isArray(e)||void 0===t?a2(e):function(e,t){if(!a2(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}var s2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const l2={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},c2=e.forwardRef(((t,n)=>{const{style:r,noStyle:o,disabled:a,tabIndex:i=0}=t,s=s2(t,["style","noStyle","disabled","tabIndex"]);let l={};return o||(l=Object.assign({},l2)),a&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),r),e.createElement("div",Object.assign({role:"button",tabIndex:i,ref:n},s,{onKeyDown:e=>{const{keyCode:t}=e;t===MQ.ENTER&&e.preventDefault()},onKeyUp:e=>{const{keyCode:n}=e,{onClick:r}=t;n===MQ.ENTER&&r&&r()},style:l}))})),u2=c2;const d2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var f2=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:d2}))};const h2=e.forwardRef(f2),p2=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t["\n      h".concat(n,"&,\n      div&-h").concat(n,",\n      div&-h").concat(n," > textarea,\n      h").concat(n,"\n    ")]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}})(e["fontSizeHeading".concat(n)],e["lineHeightHeading".concat(n)],e.colorTextHeading,e)})),t},m2=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},yJ(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},["&[disabled], &".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},g2=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Pr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),v2=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:"calc(1em - ".concat(xe(r),")")},["".concat(t,"-edit-content-confirm")]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},y2=e=>({["".concat(e.componentCls,"-copy-success")]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},["".concat(e.componentCls,"-copy-icon-only")]:{marginInlineStart:0}}),b2=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,["&".concat(t,"-secondary")]:{color:e.colorTextDescription},["&".concat(t,"-success")]:{color:e.colorSuccess},["&".concat(t,"-warning")]:{color:e.colorWarning},["&".concat(t,"-danger")]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},["&".concat(t,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},p2(e)),{["\n      & + h1".concat(t,",\n      & + h2").concat(t,",\n      & + h3").concat(t,",\n      & + h4").concat(t,",\n      & + h5").concat(t,"\n      ")]:{marginTop:n},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:n}}}),g2(e)),m2(e)),{["\n        ".concat(t,"-expand,\n        ").concat(t,"-collapse,\n        ").concat(t,"-edit,\n        ").concat(t,"-copy\n      ")]:Object.assign(Object.assign({},yJ(e)),{marginInlineStart:e.marginXXS})}),v2(e)),y2(e)),{"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},w2=Sl("Typography",(e=>[b2(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),x2=t=>{const{prefixCls:n,"aria-label":r,className:o,style:a,direction:i,maxLength:s,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:h,enterIcon:p=e.createElement(h2,null)}=t,m=e.useRef(null),g=e.useRef(!1),v=e.useRef(),[y,b]=e.useState(c);e.useEffect((()=>{b(c)}),[c]),e.useEffect((()=>{var e;if(null===(e=m.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{u(y.trim())},x=h?"".concat(n,"-").concat(h):"",[S,C,_]=w2(n),E=$o()(n,"".concat(n,"-edit-content"),{["".concat(n,"-rtl")]:"rtl"===i},o,x,C,_);return S(e.createElement("div",{className:E,style:a},e.createElement(RG,{ref:m,maxLength:s,value:y,onChange:e=>{let{target:t}=e;b(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;g.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:a}=e;v.current!==t||g.current||n||r||o||a||(t===MQ.ENTER?(w(),null===f||void 0===f||f()):t===MQ.ESC&&d())},onCompositionStart:()=>{g.current=!0},onCompositionEnd:()=>{g.current=!1},onBlur:()=>{w()},"aria-label":r,rows:1,autoSize:l}),null!==p?vI(p,{className:"".concat(n,"-edit-content-confirm")}):null))};var S2=__webpack_require__(270),C2=__webpack_require__.n(S2),_2=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(x7){a(x7)}}function s(e){try{l(r.throw(e))}catch(x7){a(x7)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))};const E2=t=>{let{copyConfig:n,children:r}=t;const[o,a]=e.useState(!1),[i,s]=e.useState(!1),l=e.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};n.format&&(u.format=n.format),e.useEffect((()=>c),[]);const d=xa((e=>_2(void 0,void 0,void 0,(function*(){var t;null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),s(!0);try{const o="function"===typeof n.text?yield n.text():n.text;C2()(o||String(r)||"",u),s(!1),a(!0),c(),l.current=setTimeout((()=>{a(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(o){throw s(!1),o}}))));return{copied:o,copyLoading:i,onClick:d}};function k2(t,n){return e.useMemo((()=>{const e=!!t;return[e,Object.assign(Object.assign({},n),e&&"object"===typeof t?t:null)]}),[t])}const P2=t=>{const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t})),n.current},A2=(t,n)=>{const r=e.useRef(!1);e.useEffect((()=>{r.current?t():r.current=!0}),n)};var O2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const T2=e.forwardRef(((t,n)=>{const{prefixCls:r,component:o="article",className:a,rootClassName:i,setContentRef:s,children:l,direction:c,style:u}=t,d=O2(t,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:h,typography:p}=e.useContext(vo),m=null!==c&&void 0!==c?c:h;let g=n;s&&(g=oa(n,s));const v=f("typography",r),[y,b,w]=w2(v),x=$o()(v,null===p||void 0===p?void 0:p.className,{["".concat(v,"-rtl")]:"rtl"===m},a,i,b,w),S=Object.assign(Object.assign({},null===p||void 0===p?void 0:p.style),u);return y(e.createElement(o,Object.assign({className:x,style:S,ref:g},d),l))}));const M2=T2;const I2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var R2=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:I2}))};const F2=e.forwardRef(R2);function N2(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function j2(e,t,n){return!0===e||void 0===e?t:e||n&&t}const D2=t=>{const{prefixCls:n,copied:r,locale:o,iconOnly:a,tooltips:i,icon:s,loading:l,tabIndex:c,onCopy:u}=t,d=N2(i),f=N2(s),{copied:h,copy:p}=null!==o&&void 0!==o?o:{},m=r?j2(d[1],h):j2(d[0],p),g="string"===typeof m?m:r?h:p;return e.createElement(lN,{key:"copy",title:m},e.createElement(u2,{className:$o()("".concat(n,"-copy"),{["".concat(n,"-copy-success")]:r,["".concat(n,"-copy-icon-only")]:a}),onClick:u,"aria-label":g,tabIndex:c},r?j2(f[1],e.createElement(Vz,null),!0):j2(f[0],l?e.createElement(Ku,null):e.createElement(F2,null),!0)))},L2=e.forwardRef(((t,n)=>{let{style:r,children:o}=t;const a=e.useRef(null);return e.useImperativeHandle(n,(()=>({isExceed:()=>{const e=a.current;return e.scrollHeight>e.clientHeight},getHeight:()=>a.current.clientHeight}))),e.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},o)}));function B2(e){const t=typeof e;return"string"===t||"number"===t}function z2(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const a=e[o],i=n+(B2(a)?String(a).length:1);if(i>t){const e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=i}return e}const H2={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function W2(t){const{enableMeasure:n,width:r,text:o,children:a,rows:i,expanded:s,miscDeps:l,onEllipsis:c}=t,u=e.useMemo((()=>ls(o)),[o]),d=e.useMemo((()=>function(e){let t=0;return e.forEach((e=>{B2(e)?t+=String(e).length:t+=1})),t}(u)),[o]),f=e.useMemo((()=>a(u,!1)),[o]),[h,p]=e.useState(null),m=e.useRef(null),g=e.useRef(null),v=e.useRef(null),y=e.useRef(null),b=e.useRef(null),[w,x]=e.useState(!1),[S,C]=e.useState(0),[_,E]=e.useState(0),[k,P]=e.useState(null);ka((()=>{C(n&&r&&d?1:0)}),[r,o,i,n,u]),ka((()=>{var e,t,n,r;if(1===S){C(2);const e=g.current&&getComputedStyle(g.current).whiteSpace;P(e)}else if(2===S){const o=!!(null===(e=v.current)||void 0===e?void 0:e.isExceed());C(o?3:4),p(o?[0,d]:null),x(o);const a=(null===(t=v.current)||void 0===t?void 0:t.getHeight())||0,s=(1===i?0:(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0)+((null===(r=b.current)||void 0===r?void 0:r.getHeight())||0),l=Math.max(a,s);E(l+1),c(o)}}),[S]);const A=h?Math.ceil((h[0]+h[1])/2):0;ka((()=>{var e;const[t,n]=h||[0,0];if(t!==n){const r=((null===(e=m.current)||void 0===e?void 0:e.getHeight())||0)>_;let o=A;n-t===1&&(o=r?t:n),p(r?[t,o]:[o,n])}}),[h,A]);const O=e.useMemo((()=>{if(3!==S||!h||h[0]!==h[1]){const t=a(u,!1);return 4!==S&&0!==S?e.createElement("span",{style:Object.assign(Object.assign({},H2),{WebkitLineClamp:i})},t):t}return a(s?u:z2(u,h[0]),w)}),[s,S,h,u].concat(as(l))),T={width:r,margin:0,padding:0,whiteSpace:"nowrap"===k?"normal":"inherit"};return e.createElement(e.Fragment,null,O,2===S&&e.createElement(e.Fragment,null,e.createElement(L2,{style:Object.assign(Object.assign(Object.assign({},T),H2),{WebkitLineClamp:i}),ref:v},f),e.createElement(L2,{style:Object.assign(Object.assign(Object.assign({},T),H2),{WebkitLineClamp:i-1}),ref:y},f),e.createElement(L2,{style:Object.assign(Object.assign(Object.assign({},T),H2),{WebkitLineClamp:1}),ref:b},a([],!0))),3===S&&h&&h[0]!==h[1]&&e.createElement(L2,{style:Object.assign(Object.assign({},T),{top:400}),ref:m},a(z2(u,A),!0)),1===S&&e.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const G2=t=>{let{enableEllipsis:n,isEllipsis:r,children:o,tooltipProps:a}=t;return(null===a||void 0===a?void 0:a.title)&&n?e.createElement(lN,Object.assign({open:!!r&&void 0},a),o):o};var V2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const U2=e.forwardRef(((t,n)=>{var r,o,a;const{prefixCls:i,className:s,style:l,type:c,disabled:u,children:d,ellipsis:f,editable:h,copyable:p,component:m,title:g}=t,v=V2(t,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:b}=e.useContext(vo),[w]=$B("Text"),x=e.useRef(null),S=e.useRef(null),C=y("typography",i),_=is(v,["mark","code","delete","underline","strong","keyboard","italic"]),[E,k]=k2(h),[P,A]=Oa(!1,{value:k.editing}),{triggerType:O=["icon"]}=k,T=e=>{var t;e&&(null===(t=k.onStart)||void 0===t||t.call(k)),A(e)},M=P2(P);A2((()=>{var e;!P&&M&&(null===(e=S.current)||void 0===e||e.focus())}),[P]);const I=e=>{null===e||void 0===e||e.preventDefault(),T(!0)},R=e=>{var t;null===(t=k.onChange)||void 0===t||t.call(k,e),T(!1)},F=()=>{var e;null===(e=k.onCancel)||void 0===e||e.call(k),T(!1)},[N,j]=k2(p),{copied:D,copyLoading:L,onClick:B}=E2({copyConfig:j,children:d}),[z,H]=e.useState(!1),[W,G]=e.useState(!1),[V,U]=e.useState(!1),[q,K]=e.useState(!1),[X,Y]=e.useState(!0),[Z,$]=k2(f,{expandable:!1,symbol:e=>e?null===w||void 0===w?void 0:w.collapse:null===w||void 0===w?void 0:w.expand}),[Q,J]=Oa($.defaultExpanded||!1,{value:$.expanded}),ee=Z&&(!Q||"collapsible"===$.expandable),{rows:te=1}=$,ne=e.useMemo((()=>ee&&(void 0!==$.suffix||$.onEllipsis||$.expandable||E||N)),[ee,$,E,N]);ka((()=>{Z&&!ne&&(H(i2("webkitLineClamp")),G(i2("textOverflow")))}),[ne,Z]);const[re,oe]=e.useState(ee),ae=e.useMemo((()=>!ne&&(1===te?W:z)),[ne,W,z]);ka((()=>{oe(ae&&ee)}),[ae,ee]);const ie=ee&&(re?q:V),se=ee&&1===te&&re,le=ee&&te>1&&re,[ce,ue]=e.useState(0),de=e=>{var t;U(e),V!==e&&(null===(t=$.onEllipsis)||void 0===t||t.call($,e))};e.useEffect((()=>{const e=x.current;if(Z&&re&&e){const t=le?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;q!==t&&K(t)}}),[Z,re,d,le,X,ce]),e.useEffect((()=>{const e=x.current;if("undefined"===typeof IntersectionObserver||!e||!re||!ee)return;const t=new IntersectionObserver((()=>{Y(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[re,ee]);let fe={};fe=!0===$.tooltip?{title:null!==(r=k.text)&&void 0!==r?r:d}:e.isValidElement($.tooltip)?{title:$.tooltip}:"object"===typeof $.tooltip?Object.assign({title:null!==(o=k.text)&&void 0!==o?o:d},$.tooltip):{title:$.tooltip};const he=e.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(Z&&!re)return e(k.text)?k.text:e(d)?d:e(g)?g:e(fe.title)?fe.title:void 0}),[Z,re,g,fe.title,ie]);if(P)return e.createElement(x2,{value:null!==(a=k.text)&&void 0!==a?a:"string"===typeof d?d:"",onSave:R,onCancel:F,onEnd:k.onEnd,prefixCls:C,className:s,style:l,direction:b,component:m,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const pe=()=>{const{expandable:t,symbol:n}=$;return t?Q&&"collapsible"!==t?null:e.createElement(u2,{key:"expand",className:"".concat(C,"-").concat(Q?"collapse":"expand"),onClick:e=>((e,t)=>{var n;J(t.expanded),null===(n=$.onExpand)||void 0===n||n.call($,e,t)})(e,{expanded:!Q}),"aria-label":Q?w.collapse:null===w||void 0===w?void 0:w.expand},"function"===typeof n?n(Q):n):null},me=()=>{if(!E)return;const{icon:t,tooltip:n,tabIndex:r}=k,o=ls(n)[0]||(null===w||void 0===w?void 0:w.edit),a="string"===typeof o?o:"";return O.includes("icon")?e.createElement(lN,{key:"edit",title:!1===n?"":o},e.createElement(u2,{ref:S,className:"".concat(C,"-edit"),onClick:I,"aria-label":a,tabIndex:r},t||e.createElement(o2,{role:"button"}))):null},ge=t=>[t&&pe(),me(),N?e.createElement(D2,Object.assign({key:"copy"},j,{prefixCls:C,copied:D,locale:w,onCopy:B,loading:L,iconOnly:null===d||void 0===d})):null];return e.createElement(EO,{onResize:e=>{let{offsetWidth:t}=e;ue(t)},disabled:!ee},(r=>e.createElement(G2,{tooltipProps:fe,enableEllipsis:ee,isEllipsis:ie},e.createElement(M2,Object.assign({className:$o()({["".concat(C,"-").concat(c)]:c,["".concat(C,"-disabled")]:u,["".concat(C,"-ellipsis")]:Z,["".concat(C,"-ellipsis-single-line")]:se,["".concat(C,"-ellipsis-multiple-line")]:le},s),prefixCls:i,style:Object.assign(Object.assign({},l),{WebkitLineClamp:le?te:void 0}),component:m,ref:oa(r,x,n),direction:b,onClick:O.includes("text")?I:void 0,"aria-label":null===he||void 0===he?void 0:he.toString(),title:g},_),e.createElement(W2,{enableMeasure:ee&&!re,text:d,rows:te,width:ce,onEllipsis:de,expanded:Q,miscDeps:[D,Q,L,E,N]},((n,r)=>function(t,n){let{mark:r,code:o,underline:a,delete:i,strong:s,keyboard:l,italic:c}=t,u=n;function d(t,n){n&&(u=e.createElement(t,{},u))}return d("strong",s),d("u",a),d("del",i),d("code",o),d("mark",r),d("kbd",l),d("i",c),u}(t,e.createElement(e.Fragment,null,n.length>0&&r&&!Q&&he?e.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(t=>[t&&!Q&&e.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),$.suffix,ge(t)])(r)))))))))})),q2=U2;var K2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const X2=e.forwardRef(((t,n)=>{var{ellipsis:r,rel:o}=t,a=K2(t,["ellipsis","rel"]);const i=Object.assign(Object.assign({},a),{rel:void 0===o&&"_blank"===a.target?"noopener noreferrer":o});return delete i.navigate,e.createElement(q2,Object.assign({},i,{ref:n,ellipsis:!!r,component:"a"}))})),Y2=X2,Z2=e.forwardRef(((t,n)=>e.createElement(q2,Object.assign({ref:n},t,{component:"div"}))));var $2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Q2=(t,n)=>{var{ellipsis:r}=t,o=$2(t,["ellipsis"]);const a=e.useMemo((()=>r&&"object"===typeof r?is(r,["expandable","rows"]):r),[r]);return e.createElement(q2,Object.assign({ref:n},o,{ellipsis:a,component:"span"}))},J2=e.forwardRef(Q2);var e3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const t3=[1,2,3,4,5],n3=e.forwardRef(((t,n)=>{const{level:r=1}=t,o=e3(t,["level"]);let a;return a=t3.includes(r)?"h".concat(r):"h1",e.createElement(q2,Object.assign({ref:n},o,{component:a}))})),r3=M2;r3.Text=J2,r3.Link=Y2,r3.Title=n3,r3.Paragraph=Z2;const o3=r3;function a3(e){return!!(null===e||void 0===e?void 0:e.then)}const i3=t=>{const{type:n,children:r,prefixCls:o,buttonProps:a,close:i,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=t,f=e.useRef(!1),h=e.useRef(null),[p,m]=Pa(!1),g=function(){null===i||void 0===i||i.apply(void 0,arguments)};e.useEffect((()=>{let e=null;return s&&(e=setTimeout((()=>{var e;null===(e=h.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return e.createElement(vG,Object.assign({},OW(n),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void g();let t;if(l){if(t=d(e),u&&!a3(t))return f.current=!1,void g(e)}else if(d.length)t=d(i),f.current=!1;else if(t=d(),!a3(t))return void g();(e=>{a3(e)&&(m(!0),e.then((function(){m(!1,!0),g.apply(void 0,arguments),f.current=!1}),(e=>{if(m(!1,!0),f.current=!1,!(null===c||void 0===c?void 0:c()))return Promise.reject(e)})))})(t)},loading:p,prefixCls:o},a,{ref:h}),r)},s3=e.createContext({}),{Provider:l3}=s3,c3=()=>{const{autoFocusButton:t,cancelButtonProps:n,cancelTextLocale:r,isSilent:o,mergedOkCancel:a,rootPrefixCls:i,close:s,onCancel:l,onConfirm:c}=(0,e.useContext)(s3);return a?e.createElement(i3,{isSilent:o,actionFn:l,close:function(){null===s||void 0===s||s.apply(void 0,arguments),null===c||void 0===c||c(!1)},autoFocus:"cancel"===t,buttonProps:n,prefixCls:"".concat(i,"-btn")},r):null},u3=()=>{const{autoFocusButton:t,close:n,isSilent:r,okButtonProps:o,rootPrefixCls:a,okTextLocale:i,okType:s,onConfirm:l,onOk:c}=(0,e.useContext)(s3);return e.createElement(i3,{isSilent:r,type:s||"primary",actionFn:c,close:function(){null===n||void 0===n||n.apply(void 0,arguments),null===l||void 0===l||l(!0)},autoFocus:"ok"===t,buttonProps:o,prefixCls:"".concat(a,"-btn")},i)};var d3=e.createContext({});function f3(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function h3(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;"number"!==typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const p3=e.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var m3={width:0,height:0,overflow:"hidden",outline:"none"},g3={outline:"none"},v3=e.forwardRef((function(t,n){var o=t.prefixCls,a=t.className,i=t.style,s=t.title,l=t.ariaId,c=t.footer,u=t.closable,d=t.closeIcon,f=t.onClose,h=t.children,m=t.bodyStyle,g=t.bodyProps,v=t.modalRender,y=t.onMouseDown,b=t.onMouseUp,w=t.holderRef,x=t.visible,S=t.forceRender,C=t.width,_=t.height,E=t.classNames,k=t.styles,P=Qu(w,e.useContext(d3).panel),A=(0,e.useRef)(),O=(0,e.useRef)(),T=(0,e.useRef)();e.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=T.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===O.current?A.current.focus({preventScroll:!0}):e||t!==A.current||O.current.focus({preventScroll:!0})}}}));var M={};void 0!==C&&(M.width=C),void 0!==_&&(M.height=_);var I=c?e.createElement("div",{className:$o()("".concat(o,"-footer"),null===E||void 0===E?void 0:E.footer),style:p({},null===k||void 0===k?void 0:k.footer)},c):null,R=s?e.createElement("div",{className:$o()("".concat(o,"-header"),null===E||void 0===E?void 0:E.header),style:p({},null===k||void 0===k?void 0:k.header)},e.createElement("div",{className:"".concat(o,"-title"),id:l},s)):null,F=(0,e.useMemo)((function(){return"object"===r(u)&&null!==u?u:u?{closeIcon:null!==d&&void 0!==d?d:e.createElement("span",{className:"".concat(o,"-close-x")})}:{}}),[u,d,o]),N=af(F,!0),j="object"===r(u)&&u.disabled,D=u?e.createElement("button",Ge({type:"button",onClick:f,"aria-label":"Close"},N,{className:"".concat(o,"-close"),disabled:j}),F.closeIcon):null,L=e.createElement("div",{className:$o()("".concat(o,"-content"),null===E||void 0===E?void 0:E.content),style:null===k||void 0===k?void 0:k.content},D,R,e.createElement("div",Ge({className:$o()("".concat(o,"-body"),null===E||void 0===E?void 0:E.body),style:p(p({},m),null===k||void 0===k?void 0:k.body)},g),h),I);return e.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?l:null,"aria-modal":"true",ref:P,style:p(p({},i),M),className:$o()(o,a),onMouseDown:y,onMouseUp:b},e.createElement("div",{tabIndex:0,ref:A,style:m3,"aria-hidden":"true"}),e.createElement("div",{ref:T,tabIndex:-1,style:g3},e.createElement(p3,{shouldUpdate:x||S},v?v(L):L)),e.createElement("div",{tabIndex:0,ref:O,style:m3,"aria-hidden":"true"}))}));const y3=v3;var b3=e.forwardRef((function(t,n){var r=t.prefixCls,o=t.title,a=t.style,i=t.className,s=t.visible,l=t.forceRender,c=t.destroyOnClose,d=t.motionName,f=t.ariaId,h=t.onVisibleChanged,m=t.mousePosition,g=(0,e.useRef)(),v=u(e.useState(),2),y=v[0],b=v[1],w={};function x(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=h3(o),n.top+=h3(o,!0),n}(g.current);b(m&&(m.x||m.y)?"".concat(m.x-e.left,"px ").concat(m.y-e.top,"px"):"")}return y&&(w.transformOrigin=y),e.createElement(Qd,{visible:s,onVisibleChanged:h,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:d,removeOnLeave:c,ref:g},(function(s,l){var c=s.className,u=s.style;return e.createElement(y3,Ge({},t,{ref:n,title:o,ariaId:f,prefixCls:r,holderRef:l,style:p(p(p({},u),a),w),className:$o()(i,c)}))}))}));b3.displayName="Content";const w3=b3;const x3=function(t){var n=t.prefixCls,r=t.style,o=t.visible,a=t.maskProps,i=t.motionName,s=t.className;return e.createElement(Qd,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},(function(t,o){var i=t.className,l=t.style;return e.createElement("div",Ge({ref:o,style:p(p({},l),r),className:$o()("".concat(n,"-mask"),i,s)},a))}))};const S3=function(t){var n=t.prefixCls,r=void 0===n?"rc-dialog":n,o=t.zIndex,a=t.visible,i=void 0!==a&&a,s=t.keyboard,l=void 0===s||s,c=t.focusTriggerAfterClose,d=void 0===c||c,f=t.wrapStyle,h=t.wrapClassName,m=t.wrapProps,g=t.onClose,y=t.afterOpenChange,b=t.afterClose,w=t.transitionName,x=t.animation,S=t.closable,C=void 0===S||S,_=t.mask,E=void 0===_||_,k=t.maskTransitionName,P=t.maskAnimation,A=t.maskClosable,O=void 0===A||A,T=t.maskStyle,M=t.maskProps,I=t.rootClassName,R=t.classNames,F=t.styles;var N=(0,e.useRef)(),j=(0,e.useRef)(),D=(0,e.useRef)(),L=u(e.useState(i),2),B=L[0],z=L[1],H=dM();function W(e){null===g||void 0===g||g(e)}var G=(0,e.useRef)(!1),V=(0,e.useRef)(),U=null;O&&(U=function(e){G.current?G.current=!1:j.current===e.target&&W(e)}),(0,e.useEffect)((function(){i&&(z(!0),v(j.current,document.activeElement)||(N.current=document.activeElement))}),[i]),(0,e.useEffect)((function(){return function(){clearTimeout(V.current)}}),[]);var q=p(p(p({zIndex:o},f),null===F||void 0===F?void 0:F.wrapper),{},{display:B?null:"none"});return e.createElement("div",Ge({className:$o()("".concat(r,"-root"),I)},af(t,{data:!0})),e.createElement(x3,{prefixCls:r,visible:E&&i,motionName:f3(r,k,P),style:p(p({zIndex:o},T),null===F||void 0===F?void 0:F.mask),maskProps:M,className:null===R||void 0===R?void 0:R.mask}),e.createElement("div",Ge({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===ef.ESC)return e.stopPropagation(),void W(e);i&&e.keyCode===ef.TAB&&D.current.changeActive(!e.shiftKey)},className:$o()("".concat(r,"-wrap"),h,null===R||void 0===R?void 0:R.wrapper),ref:j,onClick:U,style:q},m),e.createElement(w3,Ge({},t,{onMouseDown:function(){clearTimeout(V.current),G.current=!0},onMouseUp:function(){V.current=setTimeout((function(){G.current=!1}))},ref:D,closable:C,ariaId:H,prefixCls:r,visible:i&&B,onClose:W,onVisibleChanged:function(e){if(e)!function(){var e;v(j.current,document.activeElement)||null===(e=D.current)||void 0===e||e.focus()}();else{if(z(!1),E&&N.current&&d){try{N.current.focus({preventScroll:!0})}catch(x7){}N.current=null}B&&(null===b||void 0===b||b())}null===y||void 0===y||y(e)},motionName:f3(r,w,x)}))))};var C3=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=void 0!==a&&a,s=t.afterClose,l=t.panelRef,c=u(e.useState(n),2),d=c[0],f=c[1],h=e.useMemo((function(){return{panel:l}}),[l]);return e.useEffect((function(){n&&f(!0)}),[n]),o||!i||d?e.createElement(d3.Provider,{value:h},e.createElement(lM,{open:n||o||d,autoDestroy:!1,getContainer:r,autoLock:n||d},e.createElement(S3,Ge({},t,{destroyOnClose:i,afterClose:function(){null===s||void 0===s||s(),f(!1)}})))):null};C3.displayName="Dialog";const _3=C3;function E3(){}const k3=e.createContext({add:E3,remove:E3});const P3=()=>{const{cancelButtonProps:t,cancelTextLocale:n,onCancel:r}=(0,e.useContext)(s3);return e.createElement(vG,Object.assign({onClick:r},t),n)},A3=()=>{const{confirmLoading:t,okButtonProps:n,okType:r,okTextLocale:o,onOk:a}=(0,e.useContext)(s3);return e.createElement(vG,Object.assign({},OW(r),{loading:t,onClick:a},n),o)};function O3(t,n){return e.createElement("span",{className:"".concat(t,"-close-x")},n||e.createElement(Lu,{className:"".concat(t,"-close-icon")}))}const T3=t=>{const{okText:n,okType:r="primary",cancelText:o,confirmLoading:a,onOk:i,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=t,[d]=$B("Modal",Hn()),f={confirmLoading:a,okButtonProps:l,cancelButtonProps:c,okTextLocale:n||(null===d||void 0===d?void 0:d.okText),cancelTextLocale:o||(null===d||void 0===d?void 0:d.cancelText),okType:r,onOk:i,onCancel:s},h=e.useMemo((()=>f),as(Object.values(f)));let p;return"function"===typeof u||"undefined"===typeof u?(p=e.createElement(e.Fragment,null,e.createElement(P3,null),e.createElement(A3,null)),"function"===typeof u&&(p=u(p,{OkBtn:A3,CancelBtn:P3})),p=e.createElement(l3,{value:h},p)):p=u,e.createElement(Ro,{disabled:!1},p)},M3=new Yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),I3=new Yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),R3=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r="".concat(n,"-fade"),o=t?"&":"";return[zF(r,M3,I3,e.motionDurationMid,t),{["\n        ".concat(o).concat(r,"-enter,\n        ").concat(o).concat(r,"-appear\n      ")]:{opacity:0,animationTimingFunction:"linear"},["".concat(o).concat(r,"-leave")]:{animationTimingFunction:"linear"}}]};function F3(e){return{position:e,inset:0}}const N3=e=>{const{componentCls:t,antCls:n}=e;return[{["".concat(t,"-root")]:{["".concat(t).concat(n,"-zoom-enter, ").concat(t).concat(n,"-zoom-appear")]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},["".concat(t).concat(n,"-zoom-leave ").concat(t,"-content")]:{pointerEvents:"none"},["".concat(t,"-mask")]:Object.assign(Object.assign({},F3("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",["".concat(t,"-hidden")]:{display:"none"}}),["".concat(t,"-wrap")]:Object.assign(Object.assign({},F3("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{["".concat(t,"-root")]:R3(e)}]},j3=e=>{const{componentCls:t}=e;return[{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl"},["".concat(t,"-centered")]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},["@media (max-width: ".concat(e.screenSMMax,"px)")]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:"".concat(xe(e.marginXS)," auto")},["".concat(t,"-centered")]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},zi(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - ".concat(xe(e.calc(e.margin).mul(2).equal()),")"),margin:"0 auto",paddingBottom:e.paddingLG,["".concat(t,"-title")]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},["".concat(t,"-content")]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},["".concat(t,"-close")]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:"color ".concat(e.motionDurationMid,", background-color ").concat(e.motionDurationMid),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:"".concat(xe(e.modalCloseBtnSize)),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Vi(e)),["".concat(t,"-header")]:{color:e.colorText,background:e.headerBg,borderRadius:"".concat(xe(e.borderRadiusLG)," ").concat(xe(e.borderRadiusLG)," 0 0"),marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},["".concat(t,"-body")]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,["".concat(t,"-body-skeleton")]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:"".concat(xe(e.margin)," auto")}},["".concat(t,"-footer")]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,["> ".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginInlineStart:e.marginXS}},["".concat(t,"-open")]:{overflow:"hidden"}})},{["".concat(t,"-pure-panel")]:{top:"auto",padding:0,display:"flex",flexDirection:"column",["".concat(t,"-content,\n          ").concat(t,"-body,\n          ").concat(t,"-confirm-body-wrapper")]:{display:"flex",flexDirection:"column",flex:"auto"},["".concat(t,"-confirm-body")]:{marginBottom:"auto"}}}]},D3=e=>{const{componentCls:t}=e;return{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl",["".concat(t,"-confirm-body")]:{direction:"rtl"}}}}},L3=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return hl(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},B3=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:"".concat(xe(e.paddingMD)," ").concat(xe(e.paddingContentHorizontalLG)),headerPadding:e.wireframe?"".concat(xe(e.padding)," ").concat(xe(e.paddingLG)):0,headerBorderBottom:e.wireframe?"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?"".concat(xe(e.paddingXS)," ").concat(xe(e.padding)):0,footerBorderTop:e.wireframe?"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",footerBorderRadius:e.wireframe?"0 0 ".concat(xe(e.borderRadiusLG)," ").concat(xe(e.borderRadiusLG)):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?"".concat(xe(2*e.padding)," ").concat(xe(2*e.padding)," ").concat(xe(e.paddingLG)):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),z3=Sl("Modal",(e=>{const t=L3(e);return[j3(t),D3(t),N3(t),XF(t,"zoom")]}),B3,{unitless:{titleLineHeight:!0}});var H3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let W3;const G3=e=>{W3={x:e.pageX,y:e.pageY},setTimeout((()=>{W3=null}),100)};bo()&&window.document.documentElement&&document.documentElement.addEventListener("click",G3,!0);const V3=t=>{var n;const{getPopupContainer:r,getPrefixCls:o,direction:a,modal:i}=e.useContext(vo),s=e=>{const{onCancel:n}=t;null===n||void 0===n||n(e)};const{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:f,centered:h,getContainer:p,focusTriggerAfterClose:m=!0,style:g,visible:v,width:y=520,footer:b,classNames:w,styles:x,children:S,loading:C}=t,_=H3(t,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),E=o("modal",l),k=o(),P=wf(E),[A,O,T]=z3(E,P),M=$o()(f,{["".concat(E,"-centered")]:!!h,["".concat(E,"-wrap-rtl")]:"rtl"===a}),I=null===b||C?null:e.createElement(T3,Object.assign({},t,{onOk:e=>{const{onOk:n}=t;null===n||void 0===n||n(e)},onCancel:s})),[R,F]=$J(KJ(t),KJ(i),{closable:!0,closeIcon:e.createElement(Lu,{className:"".concat(E,"-close-icon")}),closeIconRender:e=>O3(E,e)}),N=function(t){const n=e.useContext(k3),r=e.useRef();return xa((e=>{if(e){const o=t?e.querySelector(t):e;n.add(o),r.current=o}else n.remove(r.current)}))}(".".concat(E,"-content")),[j,D]=Ef("Modal",_.zIndex);return A(e.createElement(PF,{form:!0,space:!0},e.createElement(xf.Provider,{value:D},e.createElement(_3,Object.assign({width:y},_,{zIndex:j,getContainer:void 0===p?r:p,prefixCls:E,rootClassName:$o()(O,u,T,P),footer:I,visible:null!==d&&void 0!==d?d:v,mousePosition:null!==(n=_.mousePosition)&&void 0!==n?n:W3,onClose:s,closable:R,closeIcon:F,focusTriggerAfterClose:m,transitionName:hI(k,"zoom",t.transitionName),maskTransitionName:hI(k,"fade",t.maskTransitionName),className:$o()(O,c,null===i||void 0===i?void 0:i.className),style:Object.assign(Object.assign({},null===i||void 0===i?void 0:i.style),g),classNames:Object.assign(Object.assign(Object.assign({},null===i||void 0===i?void 0:i.classNames),w),{wrapper:$o()(M,null===w||void 0===w?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},null===i||void 0===i?void 0:i.styles),x),panelRef:N}),C?e.createElement(LD,{active:!0,title:!1,paragraph:{rows:4},className:"".concat(E,"-body-skeleton")}):S))))},U3=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u="".concat(t,"-confirm");return{[u]:{"&-rtl":{direction:"rtl"},["".concat(e.antCls,"-modal-header")]:{display:"none"},["".concat(u,"-body-wrapper")]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),["&".concat(t," ").concat(t,"-body")]:{padding:c},["".concat(u,"-body")]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(e.iconCls)]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},["&-has-title > ".concat(e.iconCls)]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},["".concat(u,"-paragraph")]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},["".concat(e.iconCls," + ").concat(u,"-paragraph")]:{maxWidth:"calc(100% - ".concat(xe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal()),")")},["".concat(u,"-title")]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},["".concat(u,"-content")]:{color:e.colorText,fontSize:a,lineHeight:i},["".concat(u,"-btns")]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,["".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginBottom:0,marginInlineStart:e.marginXS}}},["".concat(u,"-error ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorError},["".concat(u,"-warning ").concat(u,"-body > ").concat(e.iconCls,",\n        ").concat(u,"-confirm ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorWarning},["".concat(u,"-info ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorInfo},["".concat(u,"-success ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorSuccess}}},q3=xl(["Modal","confirm"],(e=>{const t=L3(e);return[U3(t)]}),B3,{order:-1e3});var K3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function X3(t){const{prefixCls:n,icon:r,okText:o,cancelText:a,confirmPrefixCls:i,type:s,okCancel:l,footer:c,locale:u}=t,d=K3(t,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=r;if(!r&&null!==r)switch(s){case"info":f=e.createElement(Vu,null);break;case"success":f=e.createElement(Iu,null);break;case"error":f=e.createElement(Nu,null);break;default:f=e.createElement(Hu,null)}const h=null!==l&&void 0!==l?l:"confirm"===s,p=null!==t.autoFocusButton&&(t.autoFocusButton||"ok"),[m]=$B("Modal"),g=u||m,v=o||(h?null===g||void 0===g?void 0:g.okText:null===g||void 0===g?void 0:g.justOkText),y=a||(null===g||void 0===g?void 0:g.cancelText),b=Object.assign({autoFocusButton:p,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:h},d),w=e.useMemo((()=>b),as(Object.values(b))),x=e.createElement(e.Fragment,null,e.createElement(c3,null),e.createElement(u3,null)),S=void 0!==t.title&&null!==t.title,C="".concat(i,"-body");return e.createElement("div",{className:"".concat(i,"-body-wrapper")},e.createElement("div",{className:$o()(C,{["".concat(C,"-has-title")]:S})},f,e.createElement("div",{className:"".concat(i,"-paragraph")},S&&e.createElement("span",{className:"".concat(i,"-title")},t.title),e.createElement("div",{className:"".concat(i,"-content")},t.content))),void 0===c||"function"===typeof c?e.createElement(l3,{value:w},e.createElement("div",{className:"".concat(i,"-btns")},"function"===typeof c?c(x,{OkBtn:u3,CancelBtn:c3}):x)):c,e.createElement(q3,{prefixCls:n}))}const Y3=t=>{const{close:n,zIndex:r,afterClose:o,open:a,keyboard:i,centered:s,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:h,bodyStyle:p,closable:m=!1,closeIcon:g,modalRender:v,focusTriggerAfterClose:y,onConfirm:b,styles:w}=t;const x="".concat(d,"-confirm"),S=t.width||416,C=t.style||{},_=void 0===t.mask||t.mask,E=void 0!==t.maskClosable&&t.maskClosable,k=$o()(x,"".concat(x,"-").concat(t.type),{["".concat(x,"-rtl")]:"rtl"===u},t.className),[,P]=ji(),A=e.useMemo((()=>void 0!==r?r:P.zIndexPopupBase+1e3),[r,P]);return e.createElement(V3,{prefixCls:d,className:k,wrapClassName:$o()({["".concat(x,"-centered")]:!!t.centered},f),onCancel:()=>{null===n||void 0===n||n({triggerCancel:!0}),null===b||void 0===b||b(!1)},open:a,title:"",footer:null,transitionName:hI(h||"","zoom",t.transitionName),maskTransitionName:hI(h||"","fade",t.maskTransitionName),mask:_,maskClosable:E,style:C,styles:Object.assign({body:p,mask:c},w),width:S,zIndex:A,afterClose:o,keyboard:i,centered:s,getContainer:l,closable:m,closeIcon:g,modalRender:v,focusTriggerAfterClose:y},e.createElement(X3,Object.assign({},t,{confirmPrefixCls:x})))};const Z3=t=>{const{rootPrefixCls:n,iconPrefixCls:r,direction:o,theme:a}=t;return e.createElement(rs,{prefixCls:n,iconPrefixCls:r,direction:o,theme:a},e.createElement(Y3,Object.assign({},t)))},$3=[];let Q3="";function J3(){return Q3}const e4=t=>{var n,r;const{prefixCls:o,getContainer:a,direction:i}=t,s=Hn(),l=(0,e.useContext)(vo),c=J3()||l.getPrefixCls(),u=o||"".concat(c,"-modal");let d=a;return!1===d&&(d=void 0),e.createElement(Z3,Object.assign({},t,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!==i&&void 0!==i?i:l.direction,locale:null!==(r=null===(n=l.locale)||void 0===n?void 0:n.Modal)&&void 0!==r?r:s,getContainer:d}))};function t4(t){const n=es();const r=document.createDocumentFragment();let o,a=Object.assign(Object.assign({},t),{close:l,open:!0});function i(){for(var e,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i;o.some((e=>null===e||void 0===e?void 0:e.triggerCancel))&&(null===(e=t.onCancel)||void 0===e||(i=e).call.apply(i,[t,()=>{}].concat(as(o.slice(1)))));for(let t=0;t<$3.length;t++){if($3[t]===l){$3.splice(t,1);break}}Pu(r)}function s(t){clearTimeout(o),o=setTimeout((()=>{const o=n.getPrefixCls(void 0,J3()),a=n.getIconPrefixCls(),i=n.getTheme(),s=e.createElement(e4,Object.assign({},t));Cu(e.createElement(rs,{prefixCls:o,iconPrefixCls:a,theme:i},n.holderRender?n.holderRender(s):s),r)}))}function l(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];a=Object.assign(Object.assign({},a),{open:!1,afterClose:()=>{"function"===typeof t.afterClose&&t.afterClose(),i.apply(this,n)}}),a.visible&&delete a.visible,s(a)}return s(a),$3.push(l),{destroy:l,update:function(e){a="function"===typeof e?e(a):Object.assign(Object.assign({},a),e),s(a)}}}function n4(e){return Object.assign(Object.assign({},e),{type:"warning"})}function r4(e){return Object.assign(Object.assign({},e),{type:"info"})}function o4(e){return Object.assign(Object.assign({},e),{type:"success"})}function a4(e){return Object.assign(Object.assign({},e),{type:"error"})}function i4(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var s4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const l4=KB((t=>{const{prefixCls:n,className:r,closeIcon:o,closable:a,type:i,title:s,children:l,footer:c}=t,u=s4(t,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=e.useContext(vo),f=d(),h=n||d("modal"),p=wf(f),[m,g,v]=z3(h,p),y="".concat(h,"-confirm");let b={};return b=i?{closable:null!==a&&void 0!==a&&a,title:"",footer:"",children:e.createElement(X3,Object.assign({},t,{prefixCls:h,confirmPrefixCls:y,rootPrefixCls:f,content:l}))}:{closable:null===a||void 0===a||a,title:s,footer:null!==c&&e.createElement(T3,Object.assign({},t)),children:l},m(e.createElement(y3,Object.assign({prefixCls:h,className:$o()(g,"".concat(h,"-pure-panel"),i&&y,i&&"".concat(y,"-").concat(i),r,v,p)},u,{closeIcon:O3(h,o),closable:a},b)))}));var c4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const u4=(t,n)=>{var r,{afterClose:o,config:a}=t,i=c4(t,["afterClose","config"]);const[s,l]=e.useState(!0),[c,u]=e.useState(a),{direction:d,getPrefixCls:f}=e.useContext(vo),h=f("modal"),p=f(),m=function(){var e;l(!1);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;n.some((e=>null===e||void 0===e?void 0:e.triggerCancel))&&(null===(e=c.onCancel)||void 0===e||(o=e).call.apply(o,[c,()=>{}].concat(as(n.slice(1)))))};e.useImperativeHandle(n,(()=>({destroy:m,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(r=c.okCancel)&&void 0!==r?r:"confirm"===c.type,[v]=$B("Modal",Dn.Modal);return e.createElement(Z3,Object.assign({prefixCls:h,rootPrefixCls:p},c,{close:m,open:s,afterClose:()=>{var e;o(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(g?null===v||void 0===v?void 0:v.okText:null===v||void 0===v?void 0:v.justOkText),direction:c.direction||d,cancelText:c.cancelText||(null===v||void 0===v?void 0:v.cancelText)},i))},d4=e.forwardRef(u4);let f4=0;const h4=e.memo(e.forwardRef(((t,n)=>{const[r,o]=function(){const[t,n]=e.useState([]);return[t,e.useCallback((e=>(n((t=>[].concat(as(t),[e]))),()=>{n((t=>t.filter((t=>t!==e))))})),[])]}();return e.useImperativeHandle(n,(()=>({patchElement:o})),[]),e.createElement(e.Fragment,null,r)})));const p4=function(){const t=e.useRef(null),[n,r]=e.useState([]);e.useEffect((()=>{if(n.length){as(n).forEach((e=>{e()})),r([])}}),[n]);const o=e.useCallback((n=>function(o){var a;f4+=1;const i=e.createRef();let s;const l=new Promise((e=>{s=e}));let c,u=!1;const d=e.createElement(d4,{key:"modal-".concat(f4),config:n(o),ref:i,afterClose:()=>{null===c||void 0===c||c()},isSilent:()=>u,onConfirm:e=>{s(e)}});c=null===(a=t.current)||void 0===a?void 0:a.patchElement(d),c&&$3.push(c);const f={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():r((t=>[].concat(as(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():r((e=>[].concat(as(e),[t])))},then:e=>(u=!0,l.then(e))};return f}),[]);return[e.useMemo((()=>({info:o(r4),success:o(o4),error:o(a4),warning:o(n4),confirm:o(i4)})),[]),e.createElement(h4,{key:"modal-holder",ref:t})]};function m4(e){return t4(n4(e))}const g4=V3;g4.useModal=p4,g4.info=function(e){return t4(r4(e))},g4.success=function(e){return t4(o4(e))},g4.error=function(e){return t4(a4(e))},g4.warning=m4,g4.warn=m4,g4.confirm=function(e){return t4(i4(e))},g4.destroyAll=function(){for(;$3.length;){const e=$3.pop();e&&e()}},g4.config=function(e){let{rootPrefixCls:t}=e;Q3=t},g4._InternalPanelDoNotUseOrYouWillBeFired=l4;const v4=g4;const y4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};var b4=function(t,n){return e.createElement(Gs,Ge({},t,{ref:n,icon:y4}))};const w4=e.forwardRef(b4),x4=t=>{let{person_or_entity:n,isPerson:r=!1}=t;const{useToken:o}=KA,{token:a}=o(),[i,s]=(0,e.useState)("NOT_STARTED"),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[f,h]=(0,e.useState)(null);(0,e.useEffect)((()=>{(async()=>{const e=await uh.getKYCToken();console.log(e),h(e.validationCode)})()}),[h,d]);const p=()=>{c(!0)},m=()=>{c(!1)};return null===f?(0,jl.jsx)(LD,{paragraph:{rows:1},active:!0}):(0,jl.jsxs)(jl.Fragment,{children:["SUCCESS"===i?(0,jl.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,jl.jsx)(w4,{style:{color:a.colorPrimary}}),(0,jl.jsx)(o3,{children:" Verified"})]}):"FAIL"===i?(0,jl.jsx)(lN,{title:"Verification failed due to XYZ reason",children:(0,jl.jsxs)("div",{style:{display:"flex",flexDirection:"row"},children:[(0,jl.jsx)(Lu,{style:{color:a.red}}),(0,jl.jsx)(o3,{children:" Verification Failed, please proceed with manual checks"})]})}):(0,jl.jsx)(vG,{loading:u,onClick:p,children:"Verify"}),(0,jl.jsx)(v4,{title:"Verification for "+n,open:l,onOk:m,onCancel:m,children:(0,jl.jsx)("div",{className:"container",children:(0,jl.jsx)("fl-flow-onboarding",{token:f})})})]})},S4=()=>{var t,n,r,o;const[a,i]=(0,e.useState)(null),[s,l]=(0,e.useState)(!1),{selectedOrderId:c}=(0,e.useContext)(sh),[u,d]=(0,e.useState)(null),f=(0,e.useCallback)((async e=>{l(!0);try{const t=await uh.fetchBusinessProfileOrder(e);i(t)}catch(t){ih.error({message:"Error occurred during order retrieval"})}l(!1)}),[]);(0,e.useEffect)((()=>{if(!c.bpoOrderId)return;f(c.bpoOrderId);const e=setInterval((()=>{f(c.bpoOrderId)}),3e3);return d(e),()=>{e&&clearInterval(e)}}),[c.bpoOrderId,f]),s&&jl.Fragment,clearInterval(u);const h=null===a||void 0===a||null===(t=a.profile)||void 0===t||null===(n=t.identity)||void 0===n?void 0:n.beneficial_owners,p=null===a||void 0===a||null===(r=a.profile)||void 0===r||null===(o=r.identity)||void 0===o?void 0:o.officers,m=h?h.filter((e=>"NATURAL_PERSON"===e.type)):[],g=p?p.filter((e=>"NATURAL_PERSON"===e.type)):[],v=h?h.filter((e=>"LEGAL_ENTITY"===e.type)):[],y=p?p.filter((e=>"LEGAL_ENTITY"===e.type)):[];let b=null;const w=[{title:"Name",dataIndex:"name",key:"name"},{title:"Verification",dataIndex:"verification",key:"verification",render:(e,t)=>(0,jl.jsx)(x4,{person_or_entity:t.name,isPerson:t.isPerson})}];if(m||g){if(m.length>0){const e=m.map(((e,t)=>({key:t,name:e.name,isPerson:!0})));b=(0,jl.jsx)(LJ,{columns:w,dataSource:e})}else if(g.length>0){const e=g.map(((e,t)=>({key:t,name:e.name,isPerson:!0})));b=(0,jl.jsx)(LJ,{columns:w,dataSource:e})}}else if(v){const e=v.map(((e,t)=>({key:t,name:e.name,isPerson:!1})));b=(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)(o3,{children:"No Beneficial Owner or Officer have been identified, please proceed to manual EDD verification."}),(0,jl.jsx)(LJ,{columns:w,dataSource:e})]})}else if(y){const e=y.map(((e,t)=>({key:t,name:e.name,isPerson:!1})));b=(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)(o3,{children:"No natural person Beneficial Owner or Officer have been identified, please request manually the legal entity to proceed with verification."}),(0,jl.jsx)(LJ,{columns:w,dataSource:e})]})}else b="No natural person Beneficial Owner or Officer have been identified, please request manually the legal entity to proceed with verification.";return(0,jl.jsxs)("div",{children:[(0,jl.jsx)("h1",{children:"KYC"}),b]})},C4=()=>{const[t,n]=(0,e.useState)(null),[r,o]=(0,e.useState)(!0),[a,i]=(0,e.useState)(!0),{selectedOrderId:s}=(0,e.useContext)(sh),l=(0,e.useCallback)((async e=>{r&&(i(!0),o(!1));try{const t=await uh.fetchUBOOrder(e);n(t),t.ubo_data&&i(!1)}catch(t){ih.error({message:"Error occurred during order retrieval"})}}),[r]);if((0,e.useEffect)((()=>{if(i(!0),!s.uboOrderId)return void ih.error({message:"UBO order not found"});const e=setInterval((()=>{l(s.uboOrderId)}),3e3);return()=>{e&&clearInterval(e)}}),[s.uboOrderId,l,i]),a)return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)("h3",{children:"Fetching the UBO order..."}),(0,jl.jsx)(LD,{paragraph:{rows:20},active:!0})]});const c=["ownership_through_shares","ownership_through_shares_from","ownership_through_shares_to","ownership_through_voting_right","ownership_through_voting_right_from","ownership_through_voting_right_to"],u=null===t||void 0===t?void 0:t.ubo_data;let d=[u];for(;d.length>0;){let e=d.pop();for(let t in e)e.hasOwnProperty(t)&&("object"===typeof e[t]?d.push(e[t]):c.includes(t)&&"number"===typeof e[t]&&(e[t]=e[t].toFixed(2)))}return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)("h3",{children:"UBO Order"}),(0,jl.jsx)("pre",{children:JSON.stringify(u,null,2)})]})},_4=()=>{const[t,n]=(0,e.useState)([]),{tabOpen:r,setTabOpen:o,selectedOrderId:a,kyc:i}=(0,e.useContext)(sh),s=qN(GN.UBO),l=qN(GN.KYC);return(0,e.useEffect)((()=>{const e=[{key:"request",text:"Request",Icon:YN,Component:ZV},{key:"businessProfile",text:"Business Profile",Icon:QN,Component:qJ,disabled:!a.bpoOrderId},{key:"documents",text:"Documents",Icon:tj,Component:t2,disabled:!a.bpoOrderId}];s&&e.push({key:"ubo",text:"UBO",Icon:oj,Component:C4,disabled:!a.uboOrderId}),i&&l&&e.push({key:"kyc",text:"KYC",Icon:tj,Component:S4,disabled:!a.bpoOrderId}),n(e)}),[a,i,s,l]),(0,jl.jsx)(cD,{activeKey:r,onChange:e=>o(e),items:t.map(((e,t)=>{let{key:n,text:r,Icon:o,Component:a,disabled:i}=e;return{key:n,label:r,children:(0,jl.jsx)(a,{id:n}),icon:(0,jl.jsx)(o,{}),disabled:i}}))})};var E4=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function k4(e){return"string"===typeof e}const P4=function(t){var n,r=t.className,o=t.prefixCls,i=t.style,s=t.active,l=t.status,c=t.iconPrefix,u=t.icon,d=(t.wrapperStyle,t.stepNumber),f=t.disabled,h=t.description,m=t.title,g=t.subTitle,v=t.progressDot,y=t.stepIcon,b=t.tailContent,w=t.icons,x=t.stepIndex,S=t.onStepClick,C=t.onClick,_=t.render,E=us(t,E4),k={};!!S&&!f&&(k.role="button",k.tabIndex=0,k.onClick=function(e){null===C||void 0===C||C(e),S(x)},k.onKeyDown=function(e){var t=e.which;t!==ef.ENTER&&t!==ef.SPACE||S(x)});var P=l||"wait",A=$o()("".concat(o,"-item"),"".concat(o,"-item-").concat(P),r,(a(n={},"".concat(o,"-item-custom"),u),a(n,"".concat(o,"-item-active"),s),a(n,"".concat(o,"-item-disabled"),!0===f),n)),O=p({},i),T=e.createElement("div",Ge({},E,{className:A,style:O}),e.createElement("div",Ge({onClick:C},k,{className:"".concat(o,"-item-container")}),e.createElement("div",{className:"".concat(o,"-item-tail")},b),e.createElement("div",{className:"".concat(o,"-item-icon")},function(){var t,n,r=$o()("".concat(o,"-icon"),"".concat(c,"icon"),(a(t={},"".concat(c,"icon-").concat(u),u&&k4(u)),a(t,"".concat(c,"icon-check"),!u&&"finish"===l&&(w&&!w.finish||!w)),a(t,"".concat(c,"icon-cross"),!u&&"error"===l&&(w&&!w.error||!w)),t)),i=e.createElement("span",{className:"".concat(o,"-icon-dot")});return n=v?"function"===typeof v?e.createElement("span",{className:"".concat(o,"-icon")},v(i,{index:d-1,status:l,title:m,description:h})):e.createElement("span",{className:"".concat(o,"-icon")},i):u&&!k4(u)?e.createElement("span",{className:"".concat(o,"-icon")},u):w&&w.finish&&"finish"===l?e.createElement("span",{className:"".concat(o,"-icon")},w.finish):w&&w.error&&"error"===l?e.createElement("span",{className:"".concat(o,"-icon")},w.error):u||"finish"===l||"error"===l?e.createElement("span",{className:r}):e.createElement("span",{className:"".concat(o,"-icon")},d),y&&(n=y({index:d-1,status:l,title:m,description:h,node:n})),n}()),e.createElement("div",{className:"".concat(o,"-item-content")},e.createElement("div",{className:"".concat(o,"-item-title")},m,g&&e.createElement("div",{title:"string"===typeof g?g:void 0,className:"".concat(o,"-item-subtitle")},g)),h&&e.createElement("div",{className:"".concat(o,"-item-description")},h))));return _&&(T=_(T)||null),T};var A4=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function O4(t){var n,r=t.prefixCls,o=void 0===r?"rc-steps":r,i=t.style,s=void 0===i?{}:i,l=t.className,c=(t.children,t.direction),u=void 0===c?"horizontal":c,d=t.type,f=void 0===d?"default":d,h=t.labelPlacement,m=void 0===h?"horizontal":h,g=t.iconPrefix,v=void 0===g?"rc":g,y=t.status,b=void 0===y?"process":y,w=t.size,x=t.current,S=void 0===x?0:x,C=t.progressDot,_=void 0!==C&&C,E=t.stepIcon,k=t.initial,P=void 0===k?0:k,A=t.icons,O=t.onChange,T=t.itemRender,M=t.items,I=void 0===M?[]:M,R=us(t,A4),F="navigation"===f,N="inline"===f,j=N||_,D=N?"horizontal":u,L=N?void 0:w,B=j?"vertical":m,z=$o()(o,"".concat(o,"-").concat(D),l,(a(n={},"".concat(o,"-").concat(L),L),a(n,"".concat(o,"-label-").concat(B),"horizontal"===D),a(n,"".concat(o,"-dot"),!!j),a(n,"".concat(o,"-navigation"),F),a(n,"".concat(o,"-inline"),N),n)),H=function(e){O&&S!==e&&O(e)};return e.createElement("div",Ge({className:z,style:s},R),I.filter((function(e){return e})).map((function(t,n){var r=p({},t),a=P+n;return"error"===b&&n===S-1&&(r.className="".concat(o,"-next-error")),r.status||(r.status=a===S?b:a<S?"finish":"wait"),N&&(r.icon=void 0,r.subTitle=void 0),!r.render&&T&&(r.render=function(e){return T(r,e)}),e.createElement(P4,Ge({},r,{active:a===S,stepNumber:a+1,stepIndex:a,key:a,prefixCls:o,iconPrefix:v,wrapperStyle:s,progressDot:j,stepIcon:E,icons:A,onStepClick:O&&H}))})))}O4.Step=P4;const T4=O4;var M4={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},I4=function(){var t=(0,e.useRef)([]),n=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=Date.now(),r=!1;t.current.forEach((function(t){if(t){r=!0;var o=t.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),t.current};var R4=0,F4=g();const N4=function(t){var n=u(e.useState(),2),r=n[0],o=n[1];return e.useEffect((function(){o("rc_progress_".concat(function(){var e;return F4?(e=R4,R4+=1):e="TEST_OR_SSR",e}()))}),[]),t||r};var j4=function(t){var n=t.bg,r=t.children;return e.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function D4(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)}))}var L4=e.forwardRef((function(t,n){var o=t.prefixCls,a=t.color,i=t.gradientId,s=t.radius,l=t.style,c=t.ptg,u=t.strokeLinecap,d=t.strokeWidth,f=t.size,h=t.gapDegree,p=a&&"object"===r(a),m=p?"#FFF":void 0,g=f/2,v=e.createElement("circle",{className:"".concat(o,"-circle-path"),r:s,cx:g,cy:g,stroke:m,strokeLinecap:u,strokeWidth:d,opacity:0===c?0:1,style:l,ref:n});if(!p)return v;var y="".concat(i,"-conic"),b=h?"".concat(180+h/2,"deg"):"0deg",w=D4(a,(360-h)/360),x=D4(a,1),S="conic-gradient(from ".concat(b,", ").concat(w.join(", "),")"),C="linear-gradient(to ".concat(h?"bottom":"top",", ").concat(x.join(", "),")");return e.createElement(e.Fragment,null,e.createElement("mask",{id:y},v),e.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:"url(#".concat(y,")")},e.createElement(j4,{bg:C},e.createElement(j4,{bg:S}))))}));const B4=L4;var z4=100,H4=function(e,t,n,r,o,a,i,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-a)/360),f=0===a?0:{bottom:0,top:180,left:90,right:-90}[i],h=(100-r)/100*t;"round"===l&&100!==r&&(h+=c/2)>=t&&(h=t-.01);return{stroke:"string"===typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:h+u,transform:"rotate(".concat(o+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},W4=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function G4(e){var t=null!==e&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}const V4=function(t){var n=p(p({},M4),t),o=n.id,a=n.prefixCls,i=n.steps,s=n.strokeWidth,l=n.trailWidth,c=n.gapDegree,u=void 0===c?0:c,d=n.gapPosition,f=n.trailColor,h=n.strokeLinecap,m=n.style,g=n.className,v=n.strokeColor,y=n.percent,b=us(n,W4),w=N4(o),x="".concat(w,"-gradient"),S=50-s/2,C=2*Math.PI*S,_=u>0?90+u/2:-90,E=C*((360-u)/360),k="object"===r(i)?i:{count:i,gap:2},P=k.count,A=k.gap,O=G4(y),T=G4(v),M=T.find((function(e){return e&&"object"===r(e)})),I=M&&"object"===r(M)?"butt":h,R=H4(C,E,0,100,_,u,d,f,I,s),F=I4();return e.createElement("svg",Ge({className:$o()("".concat(a,"-circle"),g),viewBox:"0 0 ".concat(z4," ").concat(z4),style:m,id:o,role:"presentation"},b),!P&&e.createElement("circle",{className:"".concat(a,"-circle-trail"),r:S,cx:50,cy:50,stroke:f,strokeLinecap:I,strokeWidth:l||s,style:R}),P?function(){var t=Math.round(P*(O[0]/100)),n=100/P,o=0;return new Array(P).fill(null).map((function(i,l){var c=l<=t-1?T[0]:f,h=c&&"object"===r(c)?"url(#".concat(x,")"):void 0,p=H4(C,E,o,n,_,u,d,c,"butt",s,A);return o+=100*(E-p.strokeDashoffset+A)/E,e.createElement("circle",{key:l,className:"".concat(a,"-circle-path"),r:S,cx:50,cy:50,stroke:h,strokeWidth:s,opacity:1,style:p,ref:function(e){F[l]=e}})}))}():function(){var t=0;return O.map((function(n,r){var o=T[r]||T[T.length-1],i=H4(C,E,t,n,_,u,d,o,I,s);return t+=n,e.createElement(B4,{key:r,color:o,ptg:n,radius:S,prefixCls:a,gradientId:x,style:i,strokeLinecap:I,strokeWidth:s,gapDegree:u,ref:function(e){F[r]=e},size:z4})})).reverse()}())};function U4(e){return!e||e<0?0:e>100?100:e}function q4(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const K4=(e,t,n)=>{var r,o,a,i;let s=-1,l=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"===typeof e||"undefined"===typeof e?(s="small"===e?2:14,l=null!==r&&void 0!==r?r:8):"number"===typeof e?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=t}else if("line"===t){const t=null===n||void 0===n?void 0:n.strokeWidth;"string"===typeof e||"undefined"===typeof e?l=t||("small"===e?6:8):"number"===typeof e?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"===typeof e||"undefined"===typeof e?[s,l]="small"===e?[60,60]:[120,120]:"number"===typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,l=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[s,l]},X4=t=>{const{prefixCls:n,trailColor:r=null,strokeLinecap:o="round",gapPosition:a,gapDegree:i,width:s=120,type:l,children:c,success:u,size:d=s,steps:f}=t,[h,p]=K4(d,"circle");let{strokeWidth:m}=t;void 0===m&&(m=Math.max((e=>3/e*100)(h),6));const g={width:h,height:p,fontSize:.15*h+6},v=e.useMemo((()=>i||0===i?i:"dashboard"===l?75:void 0),[i,l]),y=(e=>{let{percent:t,success:n,successPercent:r}=e;const o=U4(q4({success:n,successPercent:r}));return[o,U4(U4(t)-o)]})(t),b=a||"dashboard"===l&&"bottom"||void 0,w="[object Object]"===Object.prototype.toString.call(t.strokeColor),x=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Cr.green,n||null]})({success:u,strokeColor:t.strokeColor}),S=$o()("".concat(n,"-inner"),{["".concat(n,"-circle-gradient")]:w}),C=e.createElement(V4,{steps:f,percent:f?y[1]:y,strokeWidth:m,trailWidth:m,strokeColor:f?x[1]:x,strokeLinecap:o,trailColor:r,prefixCls:n,gapDegree:v,gapPosition:b}),_=h<=20,E=e.createElement("div",{className:S,style:g},C,!_&&c);return _?e.createElement(lN,{title:c},E):E},Y4="--progress-line-stroke-color",Z4="--progress-percent",$4=e=>{const t=e?"100%":"-100%";return new Yt("antProgress".concat(e?"RTL":"LTR","Active"),{"0%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.1},"20%":{transform:"translateX(".concat(t,") scaleX(0)"),opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Q4=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},zi(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},["".concat(t,"-outer")]:{display:"inline-flex",alignItems:"center",width:"100%"},["".concat(t,"-inner")]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},["".concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.defaultColor}},["".concat(t,"-success-bg, ").concat(t,"-bg")]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc)},["".concat(t,"-layout-bottom")]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",["".concat(t,"-text")]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},["".concat(t,"-bg")]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit","var(".concat(Y4,")")]},height:"100%",width:"calc(1 / var(".concat(Z4,") * 100%)"),display:"block"},["&".concat(t,"-bg-inner")]:{minWidth:"max-content","&::after":{content:"none"},["".concat(t,"-text-inner")]:{color:e.colorWhite,["&".concat(t,"-text-bright")]:{color:"rgba(0, 0, 0, 0.45)"}}}},["".concat(t,"-success-bg")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},["&".concat(t,"-text-outer")]:{width:"max-content"},["&".concat(t,"-text-outer").concat(t,"-text-start")]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},["".concat(t,"-text-inner")]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:"0 ".concat(xe(e.paddingXXS)),["&".concat(t,"-text-start")]:{justifyContent:"start"},["&".concat(t,"-text-end")]:{justifyContent:"end"}},["&".concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:$4(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},["&".concat(t,"-rtl").concat(t,"-status-active")]:{["".concat(t,"-bg::before")]:{animationName:$4(!0)}},["&".concat(t,"-status-exception")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorError},["".concat(t,"-text")]:{color:e.colorError}},["&".concat(t,"-status-exception ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorError}},["&".concat(t,"-status-success")]:{["".concat(t,"-bg")]:{backgroundColor:e.colorSuccess},["".concat(t,"-text")]:{color:e.colorSuccess}},["&".concat(t,"-status-success ").concat(t,"-inner:not(").concat(t,"-circle-gradient)")]:{["".concat(t,"-circle-path")]:{stroke:e.colorSuccess}}})}},J4=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-circle-trail")]:{stroke:e.remainingColor},["&".concat(t,"-circle ").concat(t,"-inner")]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},["&".concat(t,"-circle ").concat(t,"-text")]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},["".concat(t,"-circle&-status-exception")]:{["".concat(t,"-text")]:{color:e.colorError}},["".concat(t,"-circle&-status-success")]:{["".concat(t,"-text")]:{color:e.colorSuccess}}},["".concat(t,"-inline-circle")]:{lineHeight:1,["".concat(t,"-inner")]:{verticalAlign:"bottom"}}}},e6=e=>{const{componentCls:t}=e;return{[t]:{["".concat(t,"-steps")]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:"all ".concat(e.motionDurationSlow),"&-active":{backgroundColor:e.defaultColor}}}}}},t6=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{["".concat(t,"-small&-line, ").concat(t,"-small&-line ").concat(t,"-text ").concat(n)]:{fontSize:e.fontSizeSM}}}},n6=Sl("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=hl(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Q4(n),J4(n),e6(n),t6(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:"".concat(e.fontSize/e.fontSizeSM,"em")})));var r6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const o6=(e,t)=>{const{from:n=Cr.blue,to:r=Cr.blue,direction:o=("rtl"===t?"to left":"to right")}=e,a=r6(e,["from","to","direction"]);if(0!==Object.keys(a).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return"".concat(n," ").concat(t,"%")})).join(", ")})(a),t="linear-gradient(".concat(o,", ").concat(e,")");return{background:t,[Y4]:t}}const i="linear-gradient(".concat(o,", ").concat(n,", ").concat(r,")");return{background:i,[Y4]:i}},a6=t=>{const{prefixCls:n,direction:r,percent:o,size:a,strokeWidth:i,strokeColor:s,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:f}=t,{align:h,type:p}=d,m=s&&"string"!==typeof s?o6(s,r):{[Y4]:s,background:s},g="square"===l||"butt"===l?0:void 0,v=null!==a&&void 0!==a?a:[-1,i||("small"===a?6:8)],[y,b]=K4(v,"line",{strokeWidth:i});const w={backgroundColor:u||void 0,borderRadius:g},x=Object.assign(Object.assign({width:"".concat(U4(o),"%"),height:b,borderRadius:g},m),{[Z4]:U4(o)/100}),S=q4(t),C={width:"".concat(U4(S),"%"),height:b,borderRadius:g,backgroundColor:null===f||void 0===f?void 0:f.strokeColor},_={width:y<0?"100%":y},E=e.createElement("div",{className:"".concat(n,"-inner"),style:w},e.createElement("div",{className:$o()("".concat(n,"-bg"),"".concat(n,"-bg-").concat(p)),style:x},"inner"===p&&c),void 0!==S&&e.createElement("div",{className:"".concat(n,"-success-bg"),style:C})),k="outer"===p&&"start"===h,P="outer"===p&&"end"===h;return"outer"===p&&"center"===h?e.createElement("div",{className:"".concat(n,"-layout-bottom")},E,c):e.createElement("div",{className:"".concat(n,"-outer"),style:_},k&&c,E,P&&c)},i6=t=>{const{size:n,steps:r,percent:o=0,strokeWidth:a=8,strokeColor:i,trailColor:s=null,prefixCls:l,children:c}=t,u=Math.round(r*(o/100)),d=null!==n&&void 0!==n?n:["small"===n?2:14,a],[f,h]=K4(d,"step",{steps:r,strokeWidth:a}),p=f/r,m=new Array(r);for(let g=0;g<r;g++){const t=Array.isArray(i)?i[g]:i;m[g]=e.createElement("div",{key:g,className:$o()("".concat(l,"-steps-item"),{["".concat(l,"-steps-item-active")]:g<=u-1}),style:{backgroundColor:g<=u-1?t:s,width:p,height:h}})}return e.createElement("div",{className:"".concat(l,"-steps-outer")},m,c)};var s6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const l6=["normal","exception","active","success"],c6=e.forwardRef(((t,n)=>{const{prefixCls:r,className:o,rootClassName:a,steps:i,strokeColor:s,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:h,style:p,percentPosition:m={}}=t,g=s6(t,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=m,b=Array.isArray(s)?s[0]:s,w="string"===typeof s||Array.isArray(s)?s:void 0,x=e.useMemo((()=>{if(b){const e="string"===typeof b?b:Object.values(b)[0];return new Jr(e).isLight()}return!1}),[s]),S=e.useMemo((()=>{var e,n;const r=q4(t);return parseInt(void 0!==r?null===(e=null!==r&&void 0!==r?r:0)||void 0===e?void 0:e.toString():null===(n=null!==l&&void 0!==l?l:0)||void 0===n?void 0:n.toString(),10)}),[l,t.success,t.successPercent]),C=e.useMemo((()=>!l6.includes(f)&&S>=100?"success":f||"normal"),[f,S]),{getPrefixCls:_,direction:E,progress:k}=e.useContext(vo),P=_("progress",r),[A,O,T]=n6(P),M="line"===d,I=M&&!i,R=e.useMemo((()=>{if(!u)return null;const n=q4(t);let r;const o=h||(e=>"".concat(e,"%")),a=M&&x&&"inner"===y;return"inner"===y||h||"exception"!==C&&"success"!==C?r=o(U4(l),U4(n)):"exception"===C?r=M?e.createElement(Nu,null):e.createElement(Lu,null):"success"===C&&(r=M?e.createElement(Iu,null):e.createElement(Vz,null)),e.createElement("span",{className:$o()("".concat(P,"-text"),{["".concat(P,"-text-bright")]:a,["".concat(P,"-text-").concat(v)]:I,["".concat(P,"-text-").concat(y)]:I}),title:"string"===typeof r?r:void 0},r)}),[u,l,S,C,d,P,h]);let F;"line"===d?F=i?e.createElement(i6,Object.assign({},t,{strokeColor:w,prefixCls:P,steps:"object"===typeof i?i.count:i}),R):e.createElement(a6,Object.assign({},t,{strokeColor:b,prefixCls:P,direction:E,percentPosition:{align:v,type:y}}),R):"circle"!==d&&"dashboard"!==d||(F=e.createElement(X4,Object.assign({},t,{strokeColor:b,prefixCls:P,progressStatus:C}),R));const N=$o()(P,"".concat(P,"-status-").concat(C),{["".concat(P,"-").concat("dashboard"===d?"circle":d)]:"line"!==d,["".concat(P,"-inline-circle")]:"circle"===d&&K4(c,"circle")[0]<=20,["".concat(P,"-line")]:I,["".concat(P,"-line-align-").concat(v)]:I,["".concat(P,"-line-position-").concat(y)]:I,["".concat(P,"-steps")]:i,["".concat(P,"-show-info")]:u,["".concat(P,"-").concat(c)]:"string"===typeof c,["".concat(P,"-rtl")]:"rtl"===E},null===k||void 0===k?void 0:k.className,o,a,O,T);return A(e.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},null===k||void 0===k?void 0:k.style),p),className:N,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},is(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),F))}));const u6=c6,d6=e=>{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:o}=e;return{["".concat(t,"-item-custom")]:{["> ".concat(t,"-item-container > ").concat(t,"-item-icon")]:{height:"auto",background:"none",border:0,["> ".concat(t,"-icon")]:{top:n,width:r,height:r,fontSize:o,lineHeight:"".concat(xe(r))}}},["&:not(".concat(t,"-vertical)")]:{["".concat(t,"-item-custom")]:{["".concat(t,"-item-icon")]:{width:"auto",background:"none"}}}}},f6=e=>{const{componentCls:t}=e,n="".concat(t,"-item");return{["".concat(t,"-horizontal")]:{["".concat(n,"-tail")]:{transform:"translateY(-50%)"}}}},h6=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,a=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={["".concat(t,"-item-container ").concat(t,"-item-content ").concat(t,"-item-title")]:{color:r}};return{["&".concat(t,"-inline")]:{width:"auto",display:"inline-flex",["".concat(t,"-item")]:{flex:"none","&-container":{padding:"".concat(xe(a)," ").concat(xe(e.paddingXXS)," 0"),margin:"0 ".concat(xe(e.calc(e.marginXXS).div(2).equal())),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:"background-color ".concat(e.motionDurationMid),"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:"calc(50% - ".concat(xe(e.calc(n).div(2).equal()),")"),["> ".concat(t,"-icon")]:{top:0},["".concat(t,"-icon-dot")]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(a).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},["&:first-child ".concat(t,"-item-tail")]:{width:"50%",marginInlineStart:"50%"},["&:last-child ".concat(t,"-item-tail")]:{display:"block",width:"50%"},"&-wait":Object.assign({["".concat(t,"-item-icon ").concat(t,"-icon ").concat(t,"-icon-dot")]:{backgroundColor:e.colorBorderBg,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(o)}},i),"&-finish":Object.assign({["".concat(t,"-item-tail::after")]:{backgroundColor:o},["".concat(t,"-item-icon ").concat(t,"-icon ").concat(t,"-icon-dot")]:{backgroundColor:o,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(o)}},i),"&-error":i,"&-active, &-process":Object.assign({["".concat(t,"-item-icon")]:{width:n,height:n,marginInlineStart:"calc(50% - ".concat(xe(e.calc(n).div(2).equal()),")"),top:0}},i),["&:not(".concat(t,"-item-active) > ").concat(t,"-item-container[role='button']:hover")]:{["".concat(t,"-item-title")]:{color:r}}}}}},p6=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:o}=e;return{["&".concat(t,"-label-vertical")]:{["".concat(t,"-item")]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:"0 ".concat(xe(e.paddingLG))},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},["&".concat(t,"-small:not(").concat(t,"-dot)")]:{["".concat(t,"-item")]:{"&-icon":{marginInlineStart:e.calc(n).sub(o).div(2).add(e.controlHeightLG).equal()}}}}}},m6=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:a}=e;return{["&".concat(t,"-navigation")]:{paddingTop:e.paddingSM,["&".concat(t,"-small")]:{["".concat(t,"-item")]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},["".concat(t,"-item")]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:"opacity ".concat(a),["".concat(t,"-item-content")]:{maxWidth:n},["".concat(t,"-item-title")]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Bi),{"&::after":{display:"none"}})},["&:not(".concat(t,"-item-active)")]:{["".concat(t,"-item-container[role='button']")]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:"calc(50% - ".concat(xe(e.calc(e.paddingSM).div(2).equal()),")"),insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(r),borderBottom:"none",borderInlineStart:"none",borderInlineEnd:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(r),transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:"width ".concat(a,", inset-inline-start ").concat(a),transitionTimingFunction:"ease-out",content:'""'}},["".concat(t,"-item").concat(t,"-item-active::before")]:{insetInlineStart:0,width:"100%"}},["&".concat(t,"-navigation").concat(t,"-vertical")]:{["> ".concat(t,"-item")]:{marginInlineEnd:0,"&::before":{display:"none"},["&".concat(t,"-item-active::before")]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:"calc(100% - ".concat(xe(e.marginLG),")")},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},["> ".concat(t,"-item-container > ").concat(t,"-item-tail")]:{visibility:"hidden"}}},["&".concat(t,"-navigation").concat(t,"-horizontal")]:{["> ".concat(t,"-item > ").concat(t,"-item-container > ").concat(t,"-item-tail")]:{visibility:"hidden"}}}},g6=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:o,processIconColor:a,marginXXS:i,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),d=e.calc(o).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{["&".concat(n,"-with-progress")]:{["".concat(n,"-item")]:{paddingTop:c,["&-process ".concat(n,"-item-container ").concat(n,"-item-icon ").concat(n,"-icon")]:{color:a}},["&".concat(n,"-vertical > ").concat(n,"-item ")]:{paddingInlineStart:c,["> ".concat(n,"-item-container > ").concat(n,"-item-tail")]:{top:i,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},["&, &".concat(n,"-small")]:{["&".concat(n,"-horizontal ").concat(n,"-item:first-child")]:{paddingBottom:c,paddingInlineStart:c}},["&".concat(n,"-small").concat(n,"-vertical > ").concat(n,"-item > ").concat(n,"-item-container > ").concat(n,"-item-tail")]:{insetInlineStart:e.calc(o).div(2).sub(l).add(c).equal()},["&".concat(n,"-label-vertical ").concat(n,"-item ").concat(n,"-item-tail")]:{top:e.calc(r).div(2).add(c).equal()},["".concat(n,"-item-icon")]:{position:"relative",["".concat(t,"-progress")]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:"".concat(xe(u)," !important"),height:"".concat(xe(u)," !important")}}},["&".concat(n,"-small")]:{["&".concat(n,"-label-vertical ").concat(n,"-item ").concat(n,"-item-tail")]:{top:e.calc(o).div(2).add(c).equal()},["".concat(n,"-item-icon ").concat(t,"-progress-inner")]:{width:"".concat(xe(d)," !important"),height:"".concat(xe(d)," !important")}}}}},v6=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:o,dotSize:a,motionDurationSlow:i}=e;return{["&".concat(t,"-dot, &").concat(t,"-dot").concat(t,"-small")]:{["".concat(t,"-item")]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:"".concat(xe(e.calc(n).div(2).equal())," 0"),padding:0,"&::after":{width:"calc(100% - ".concat(xe(e.calc(e.marginSM).mul(2).equal()),")"),height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal(),paddingInlineEnd:0,lineHeight:"".concat(xe(a)),background:"transparent",border:0,["".concat(t,"-icon-dot")]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:"all ".concat(i),"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(a).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},["&-process ".concat(t,"-item-icon")]:{position:"relative",top:e.calc(a).sub(o).div(2).equal(),width:o,height:o,lineHeight:"".concat(xe(o)),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal()},["&-process ".concat(t,"-icon")]:{["&:first-child ".concat(t,"-icon-dot")]:{insetInlineStart:0}}}},["&".concat(t,"-vertical").concat(t,"-dot")]:{["".concat(t,"-item-icon")]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),marginInlineStart:0,background:"none"},["".concat(t,"-item-process ").concat(t,"-item-icon")]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:e.calc(a).sub(o).div(2).equal(),marginInlineStart:0},["".concat(t,"-item > ").concat(t,"-item-container > ").concat(t,"-item-tail")]:{top:e.calc(e.controlHeight).sub(a).div(2).equal(),insetInlineStart:0,margin:0,padding:"".concat(xe(e.calc(a).add(e.paddingXS).equal())," 0 ").concat(xe(e.paddingXS)),"&::after":{marginInlineStart:e.calc(a).sub(e.lineWidth).div(2).equal()}},["&".concat(t,"-small")]:{["".concat(t,"-item-icon")]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},["".concat(t,"-item-process ").concat(t,"-item-icon")]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},["".concat(t,"-item > ").concat(t,"-item-container > ").concat(t,"-item-tail")]:{top:e.calc(e.controlHeightSM).sub(a).div(2).equal()}},["".concat(t,"-item:first-child ").concat(t,"-icon-dot")]:{insetInlineStart:0},["".concat(t,"-item-content")]:{width:"inherit"}}}},y6=e=>{const{componentCls:t}=e;return{["&".concat(t,"-rtl")]:{direction:"rtl",["".concat(t,"-item")]:{"&-subtitle":{float:"left"}},["&".concat(t,"-navigation")]:{["".concat(t,"-item::after")]:{transform:"rotate(-45deg)"}},["&".concat(t,"-vertical")]:{["> ".concat(t,"-item")]:{"&::after":{transform:"rotate(225deg)"},["".concat(t,"-item-icon")]:{float:"right"}}},["&".concat(t,"-dot")]:{["".concat(t,"-item-icon ").concat(t,"-icon-dot, &").concat(t,"-small ").concat(t,"-item-icon ").concat(t,"-icon-dot")]:{float:"right"}}}}},b6=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:o,colorTextDescription:a}=e;return{["&".concat(t,"-small")]:{["&".concat(t,"-horizontal:not(").concat(t,"-label-vertical) ").concat(t,"-item")]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},["".concat(t,"-item-icon")]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:"0 ".concat(xe(e.marginXS)),fontSize:r,lineHeight:"".concat(xe(n)),textAlign:"center",borderRadius:n},["".concat(t,"-item-title")]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:"".concat(xe(n)),"&::after":{top:e.calc(n).div(2).equal()}},["".concat(t,"-item-description")]:{color:a,fontSize:o},["".concat(t,"-item-tail")]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},["".concat(t,"-item-custom ").concat(t,"-item-icon")]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,["> ".concat(t,"-icon")]:{fontSize:n,lineHeight:"".concat(xe(n)),transform:"none"}}}}},w6=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{["&".concat(t,"-vertical")]:{display:"flex",flexDirection:"column",["> ".concat(t,"-item")]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",["".concat(t,"-item-icon")]:{float:"left",marginInlineEnd:e.margin},["".concat(t,"-item-content")]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},["".concat(t,"-item-title")]:{lineHeight:"".concat(xe(r))},["".concat(t,"-item-description")]:{paddingBottom:e.paddingSM}},["> ".concat(t,"-item > ").concat(t,"-item-container > ").concat(t,"-item-tail")]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:"".concat(xe(e.calc(e.marginXXS).mul(1.5).add(r).equal())," 0 ").concat(xe(e.calc(e.marginXXS).mul(1.5).equal())),"&::after":{width:e.lineWidth,height:"100%"}},["> ".concat(t,"-item:not(:last-child) > ").concat(t,"-item-container > ").concat(t,"-item-tail")]:{display:"block"},[" > ".concat(t,"-item > ").concat(t,"-item-container > ").concat(t,"-item-content > ").concat(t,"-item-title")]:{"&::after":{display:"none"}},["&".concat(t,"-small ").concat(t,"-item-container")]:{["".concat(t,"-item-tail")]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:"".concat(xe(e.calc(e.marginXXS).mul(1.5).add(n).equal())," 0 ").concat(xe(e.calc(e.marginXXS).mul(1.5).equal()))},["".concat(t,"-item-title")]:{lineHeight:"".concat(xe(n))}}}}},x6=(e,t)=>{const n="".concat(t.componentCls,"-item"),r="".concat(e,"IconColor"),o="".concat(e,"TitleColor"),a="".concat(e,"DescriptionColor"),i="".concat(e,"TailColor"),s="".concat(e,"IconBgColor"),l="".concat(e,"IconBorderColor"),c="".concat(e,"DotColor");return{["".concat(n,"-").concat(e," ").concat(n,"-icon")]:{backgroundColor:t[s],borderColor:t[l],["> ".concat(t.componentCls,"-icon")]:{color:t[r],["".concat(t.componentCls,"-icon-dot")]:{background:t[c]}}},["".concat(n,"-").concat(e).concat(n,"-custom ").concat(n,"-icon")]:{["> ".concat(t.componentCls,"-icon")]:{color:t[c]}},["".concat(n,"-").concat(e," > ").concat(n,"-container > ").concat(n,"-content > ").concat(n,"-title")]:{color:t[o],"&::after":{backgroundColor:t[i]}},["".concat(n,"-").concat(e," > ").concat(n,"-container > ").concat(n,"-content > ").concat(n,"-description")]:{color:t[a]},["".concat(n,"-").concat(e," > ").concat(n,"-container > ").concat(n,"-tail::after")]:{backgroundColor:t[i]}}},S6=e=>{const{componentCls:t,motionDurationSlow:n}=e,r="".concat(t,"-item"),o="".concat(r,"-icon");return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",["> ".concat(r,"-container > ").concat(r,"-tail, > ").concat(r,"-container >  ").concat(r,"-content > ").concat(r,"-title::after")]:{display:"none"}}},["".concat(r,"-container")]:{outline:"none","&:focus-visible":{[o]:Object.assign({},Gi(e))}},["".concat(o,", ").concat(r,"-content")]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:"".concat(xe(e.iconSize)),textAlign:"center",borderRadius:e.iconSize,border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," transparent"),transition:"background-color ".concat(n,", border-color ").concat(n),["".concat(t,"-icon")]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},["".concat(r,"-tail")]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:"background ".concat(n),content:'""'}},["".concat(r,"-title")]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:"".concat(xe(e.titleLineHeight)),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},["".concat(r,"-subtitle")]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},["".concat(r,"-description")]:{color:e.colorTextDescription,fontSize:e.fontSize}},x6("wait",e)),x6("process",e)),{["".concat(r,"-process > ").concat(r,"-container > ").concat(r,"-title")]:{fontWeight:e.fontWeightStrong}}),x6("finish",e)),x6("error",e)),{["".concat(r).concat(t,"-next-error > ").concat(t,"-item-title::after")]:{background:e.colorError},["".concat(r,"-disabled")]:{cursor:"not-allowed"}})},C6=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{["& ".concat(t,"-item")]:{["&:not(".concat(t,"-item-active)")]:{["& > ".concat(t,"-item-container[role='button']")]:{cursor:"pointer",["".concat(t,"-item")]:{["&-title, &-subtitle, &-description, &-icon ".concat(t,"-icon")]:{transition:"color ".concat(n)}},"&:hover":{["".concat(t,"-item")]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},["&:not(".concat(t,"-item-process)")]:{["& > ".concat(t,"-item-container[role='button']:hover")]:{["".concat(t,"-item")]:{"&-icon":{borderColor:e.colorPrimary,["".concat(t,"-icon")]:{color:e.colorPrimary}}}}}}},["&".concat(t,"-horizontal:not(").concat(t,"-label-vertical)")]:{["".concat(t,"-item")]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},["&:last-child ".concat(t,"-item-title")]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},_6=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zi(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),S6(e)),C6(e)),d6(e)),b6(e)),w6(e)),f6(e)),p6(e)),v6(e)),m6(e)),y6(e)),g6(e)),h6(e))}},E6=Sl("Steps",(e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:o,colorPrimary:a,colorTextDescription:i,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,d=hl(e,{processIconColor:r,processTitleColor:o,processDescriptionColor:o,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:u,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:u,waitDotColor:t,finishIconColor:a,finishTitleColor:o,finishDescriptionColor:i,finishTailColor:a,finishDotColor:a,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return[_6(d)]}),(e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive})));var k6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const P6=t=>{const{percent:n,size:r,className:o,rootClassName:a,direction:i,items:s,responsive:l=!0,current:c=0,children:u,style:d}=t,f=k6(t,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:h}=gY(l),{getPrefixCls:p,direction:m,steps:g}=e.useContext(vo),v=e.useMemo((()=>l&&h?"vertical":i),[h,i]),y=gF(r),b=p("steps",t.prefixCls),[w,x,S]=E6(b),C="inline"===t.type,_=p("",t.iconPrefix),E=function(t,n){if(t)return t;const r=ls(n).map((t=>{if(e.isValidElement(t)){const{props:e}=t;return Object.assign({},e)}return null}));return function(e){return e.filter((e=>e))}(r)}(s,u),k=C?void 0:n,P=Object.assign(Object.assign({},null===g||void 0===g?void 0:g.style),d),A=$o()(null===g||void 0===g?void 0:g.className,{["".concat(b,"-rtl")]:"rtl"===m,["".concat(b,"-with-progress")]:void 0!==k},o,a,x,S),O={finish:e.createElement(Vz,{className:"".concat(b,"-finish-icon")}),error:e.createElement(Lu,{className:"".concat(b,"-error-icon")})};return w(e.createElement(T4,Object.assign({icons:O},f,{style:P,current:c,size:y,items:E,itemRender:C?(t,n)=>t.description?e.createElement(lN,{title:t.description},n):n:void 0,stepIcon:t=>{let{node:n,status:r}=t;if("process"===r&&void 0!==k){const t="small"===y?32:40;return e.createElement("div",{className:"".concat(b,"-progress-icon")},e.createElement(u6,{type:"circle",percent:k,size:t,strokeWidth:4,format:()=>null}),n)}return n},direction:v,prefixCls:b,iconPrefix:_,className:A})))};P6.Step=T4.Step;const A6=P6,O6=e.createContext({});O6.Consumer;var T6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const M6=e.forwardRef(((t,n)=>{const{prefixCls:r,children:o,actions:a,extra:i,styles:s,className:l,classNames:c,colStyle:u}=t,d=T6(t,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:h}=(0,e.useContext)(O6),{getPrefixCls:p,list:m}=(0,e.useContext)(vo),g=e=>{var t,n;return $o()(null===(n=null===(t=null===m||void 0===m?void 0:m.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null===c||void 0===c?void 0:c[e])},v=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null===m||void 0===m?void 0:m.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null===s||void 0===s?void 0:s[e])},y=p("list",r),b=a&&a.length>0&&e.createElement("ul",{className:$o()("".concat(y,"-item-action"),g("actions")),key:"actions",style:v("actions")},a.map(((t,n)=>e.createElement("li",{key:"".concat(y,"-item-action-").concat(n)},t,n!==a.length-1&&e.createElement("em",{className:"".concat(y,"-item-action-split")}))))),w=f?"div":"li",x=e.createElement(w,Object.assign({},d,f?{}:{ref:n},{className:$o()("".concat(y,"-item"),{["".concat(y,"-item-no-flex")]:!("vertical"===h?i:!(()=>{let t=!1;return e.Children.forEach(o,(e=>{"string"===typeof e&&(t=!0)})),t&&e.Children.count(o)>1})())},l)}),"vertical"===h&&i?[e.createElement("div",{className:"".concat(y,"-item-main"),key:"content"},o,b),e.createElement("div",{className:$o()("".concat(y,"-item-extra"),g("extra")),key:"extra",style:v("extra")},i)]:[o,b,vI(i,{key:"extra"})]);return f?e.createElement(rL,{ref:n,flex:1,style:u},x):x})),I6=M6;I6.Meta=t=>{var{prefixCls:n,className:r,avatar:o,title:a,description:i}=t,s=T6(t,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=(0,e.useContext)(vo),c=l("list",n),u=$o()("".concat(c,"-item-meta"),r),d=e.createElement("div",{className:"".concat(c,"-item-meta-content")},a&&e.createElement("h4",{className:"".concat(c,"-item-meta-title")},a),i&&e.createElement("div",{className:"".concat(c,"-item-meta-description")},i));return e.createElement("div",Object.assign({},s,{className:u}),o&&e.createElement("div",{className:"".concat(c,"-item-meta-avatar")},o),(a||i)&&d)};const R6=I6,F6=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:s,borderRadiusLG:l}=e;return{["".concat(t)]:{border:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:l,["".concat(n,"-header,").concat(n,"-footer,").concat(n,"-item")]:{paddingInline:r},["".concat(n,"-pagination")]:{margin:"".concat(xe(o)," ").concat(xe(s))}},["".concat(t).concat(n,"-sm")]:{["".concat(n,"-item,").concat(n,"-header,").concat(n,"-footer")]:{padding:a}},["".concat(t).concat(n,"-lg")]:{["".concat(n,"-item,").concat(n,"-header,").concat(n,"-footer")]:{padding:i}}}},N6=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{["@media screen and (max-width:".concat(r,"px)")]:{["".concat(t)]:{["".concat(t,"-item")]:{["".concat(t,"-item-action")]:{marginInlineStart:o}}},["".concat(t,"-vertical")]:{["".concat(t,"-item")]:{["".concat(t,"-item-extra")]:{marginInlineStart:o}}}},["@media screen and (max-width: ".concat(n,"px)")]:{["".concat(t)]:{["".concat(t,"-item")]:{flexWrap:"wrap",["".concat(t,"-action")]:{marginInlineStart:a}}},["".concat(t,"-vertical")]:{["".concat(t,"-item")]:{flexWrap:"wrap-reverse",["".concat(t,"-item-main")]:{minWidth:e.contentWidth},["".concat(t,"-item-extra")]:{margin:"auto auto ".concat(xe(i))}}}}}},j6=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:h,colorText:p,colorTextDescription:m,motionDurationSlow:g,lineWidth:v,headerBg:y,footerBg:b,emptyTextPadding:w,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:_}=e;return{["".concat(t)]:Object.assign(Object.assign({},zi(e)),{position:"relative","*":{outline:"none"},["".concat(t,"-header")]:{background:y},["".concat(t,"-footer")]:{background:b},["".concat(t,"-header, ").concat(t,"-footer")]:{paddingBlock:a},["".concat(t,"-pagination")]:{marginBlockStart:i,["".concat(n,"-pagination-options")]:{textAlign:"start"}},["".concat(t,"-spin")]:{minHeight:o,textAlign:"center"},["".concat(t,"-items")]:{margin:0,padding:0,listStyle:"none"},["".concat(t,"-item")]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:p,["".concat(t,"-item-meta")]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",["".concat(t,"-item-meta-avatar")]:{marginInlineEnd:S},["".concat(t,"-item-meta-content")]:{flex:"1 0",width:0,color:p},["".concat(t,"-item-meta-title")]:{margin:"0 0 ".concat(xe(e.marginXXS)," 0"),color:p,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:p,transition:"all ".concat(g),"&:hover":{color:c}}},["".concat(t,"-item-meta-description")]:{color:m,fontSize:_,lineHeight:e.lineHeight}},["".concat(t,"-item-action")]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:"0 ".concat(xe(f)),color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},["".concat(t,"-item-action-split")]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},["".concat(t,"-empty")]:{padding:"".concat(xe(s)," 0"),color:m,fontSize:e.fontSizeSM,textAlign:"center"},["".concat(t,"-empty-text")]:{padding:w,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},["".concat(t,"-item-no-flex")]:{display:"block"}}),["".concat(t,"-grid ").concat(n,"-col > ").concat(t,"-item")]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},["".concat(t,"-vertical ").concat(t,"-item")]:{alignItems:"initial",["".concat(t,"-item-main")]:{display:"block",flex:1},["".concat(t,"-item-extra")]:{marginInlineStart:i},["".concat(t,"-item-meta")]:{marginBlockEnd:x,["".concat(t,"-item-meta-title")]:{marginBlockStart:0,marginBlockEnd:C,color:p,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},["".concat(t,"-item-action")]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:"0 ".concat(xe(s)),"&:first-child":{paddingInlineStart:0}}}},["".concat(t,"-split ").concat(t,"-item")]:{borderBlockEnd:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit),"&:last-child":{borderBlockEnd:"none"}},["".concat(t,"-split ").concat(t,"-header")]:{borderBlockEnd:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},["".concat(t,"-split").concat(t,"-empty ").concat(t,"-footer")]:{borderTop:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},["".concat(t,"-loading ").concat(t,"-spin-nested-loading")]:{minHeight:r},["".concat(t,"-split").concat(t,"-something-after-last-item ").concat(n,"-spin-container > ").concat(t,"-items > ").concat(t,"-item:last-child")]:{borderBlockEnd:"".concat(xe(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},["".concat(t,"-lg ").concat(t,"-item")]:{padding:d},["".concat(t,"-sm ").concat(t,"-item")]:{padding:u},["".concat(t,":not(").concat(t,"-vertical)")]:{["".concat(t,"-item-no-flex")]:{["".concat(t,"-item-action")]:{float:"right"}}}}},D6=Sl("List",(e=>{const t=hl(e,{listBorderedCls:"".concat(e.componentCls,"-bordered"),minHeight:e.controlHeightLG});return[j6(t),F6(t),N6(t)]}),(e=>({contentWidth:220,itemPadding:"".concat(xe(e.paddingContentVertical)," 0"),itemPaddingSM:"".concat(xe(e.paddingContentVerticalSM)," ").concat(xe(e.paddingContentHorizontal)),itemPaddingLG:"".concat(xe(e.paddingContentVerticalLG)," ").concat(xe(e.paddingContentHorizontalLG)),headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})));var L6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function B6(t){var{pagination:n=!1,prefixCls:r,bordered:o=!1,split:a=!0,className:i,rootClassName:s,style:l,children:c,itemLayout:u,loadMore:d,grid:f,dataSource:h=[],size:p,header:m,footer:g,loading:v=!1,rowKey:y,renderItem:b,locale:w}=t,x=L6(t,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const S=n&&"object"===typeof n?n:{},[C,_]=e.useState(S.defaultCurrent||1),[E,k]=e.useState(S.defaultPageSize||10),{getPrefixCls:P,renderEmpty:A,direction:O,list:T}=e.useContext(vo),M=e=>(t,r)=>{var o;_(t),k(r),n&&(null===(o=null===n||void 0===n?void 0:n[e])||void 0===o||o.call(n,t,r))},I=M("onChange"),R=M("onShowSizeChange"),F=P("list",r),[N,j,D]=D6(F);let L=v;"boolean"===typeof L&&(L={spinning:L});const B=!!(null===L||void 0===L?void 0:L.spinning);let z="";switch(gF(p)){case"large":z="lg";break;case"small":z="sm"}const H=$o()(F,{["".concat(F,"-vertical")]:"vertical"===u,["".concat(F,"-").concat(z)]:z,["".concat(F,"-split")]:a,["".concat(F,"-bordered")]:o,["".concat(F,"-loading")]:B,["".concat(F,"-grid")]:!!f,["".concat(F,"-something-after-last-item")]:!!(d||n||g),["".concat(F,"-rtl")]:"rtl"===O},null===T||void 0===T?void 0:T.className,i,s,j,D),W=qQ({current:1,total:0},{total:h.length,current:C,pageSize:E},n||{}),G=Math.ceil(W.total/W.pageSize);W.current>G&&(W.current=G);const V=n&&e.createElement("div",{className:$o()("".concat(F,"-pagination"))},e.createElement(XY,Object.assign({},W,{onChange:I,onShowSizeChange:R})));let U=as(h);n&&h.length>(W.current-1)*W.pageSize&&(U=as(h).splice((W.current-1)*W.pageSize,W.pageSize));const q=Object.keys(f||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),K=gY(q),X=e.useMemo((()=>{for(let e=0;e<BD.length;e+=1){const t=BD[e];if(K[t])return t}}),[K]),Y=e.useMemo((()=>{if(!f)return;const e=X&&f[X]?f[X]:f.column;return e?{width:"".concat(100/e,"%"),maxWidth:"".concat(100/e,"%")}:void 0}),[JSON.stringify(f),X]);let Z=B&&e.createElement("div",{style:{minHeight:53}});if(U.length>0){const t=U.map(((t,n)=>((t,n)=>{if(!b)return null;let r;return r="function"===typeof y?y(t):y?t[y]:t.key,r||(r="list-item-".concat(n)),e.createElement(e.Fragment,{key:r},b(t,n))})(t,n)));Z=f?e.createElement($D,{gutter:f.gutter},e.Children.map(t,(t=>e.createElement("div",{key:null===t||void 0===t?void 0:t.key,style:Y},t)))):e.createElement("ul",{className:"".concat(F,"-items")},t)}else c||B||(Z=e.createElement("div",{className:"".concat(F,"-empty-text")},(null===w||void 0===w?void 0:w.emptyText)||(null===A||void 0===A?void 0:A("List"))||e.createElement(sz,{componentName:"List"})));const $=W.position||"bottom",Q=e.useMemo((()=>({grid:f,itemLayout:u})),[JSON.stringify(f),u]);return N(e.createElement(O6.Provider,{value:Q},e.createElement("div",Object.assign({style:Object.assign(Object.assign({},null===T||void 0===T?void 0:T.style),l),className:H},x),("top"===$||"both"===$)&&V,m&&e.createElement("div",{className:"".concat(F,"-header")},m),e.createElement(sZ,Object.assign({},L),Z,c),g&&e.createElement("div",{className:"".concat(F,"-footer")},g),d||("bottom"===$||"both"===$)&&V)))}B6.Item=R6;const z6=B6,H6=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"UTC";const n=new Date(e),r={timeZone:t,year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0,timeZoneName:"short"};return new Intl.DateTimeFormat("en-US",r).format(n)},W6=[{label:"Created",value:"created"},{label:"Processing",value:"processing"},{label:"Done",value:"done"},{label:"Failed",value:"failed"}],G6=()=>{var t;const[n,r]=(0,e.useState)(!1),[o,a]=(0,e.useState)([]),[i,s]=(0,e.useState)([]),[l,c]=(0,e.useState)(1),[u,d]=(0,e.useState)(null===(t=W6[2])||void 0===t?void 0:t.value),{selectedOrderId:f,setSelectedOrderId:h,setMenuItem:p,setTabOpen:m}=(0,e.useContext)(sh),g=(0,e.useCallback)((async()=>{r(!0);try{const e=10*(l-1),t=await uh.fetchBusinessProfileOrders(e,10,u),n=(null===t||void 0===t?void 0:t.results)||[],r=(null===t||void 0===t?void 0:t.num_results)||0;a(n),s(r)}catch(e){ih.error({message:"Error during past orders retrieval"})}r(!1)}),[l,u]),v=e=>{h({bpoOrderId:null===e||void 0===e?void 0:e.id,uboOrderId:null}),p("newRequest"),m("businessProfile")};(0,e.useEffect)((()=>{g()}),[i,g]),(0,e.useEffect)((()=>{c(1)}),[u]);const y=e=>{var t,n;return"done"===(null===e||void 0===e?void 0:e.status)?"".concat(null===e||void 0===e?void 0:e.country," |  ").concat(null===e||void 0===e||null===(t=e.profile)||void 0===t||null===(n=t.identity)||void 0===n?void 0:n.name," | ").concat(null===e||void 0===e?void 0:e.registration_number," | ").concat(H6(null===e||void 0===e?void 0:e.created_at)):"(".concat(null===e||void 0===e?void 0:e.status,") | ").concat(null===e||void 0===e?void 0:e.country," | ").concat(null===e||void 0===e?void 0:e.registration_number," | ").concat(H6(null===e||void 0===e?void 0:e.created_at))},b=e=>(null===e||void 0===e?void 0:e.id)===f.bpoOrderId?(0,jl.jsx)(vG,{size:"large",type:"primary",children:"Selected"}):(0,jl.jsx)("div",{style:{display:"flex"},children:(0,jl.jsx)(vG,{style:{minWidth:"6rem"},size:"large",onClick:()=>v(e),children:"Select"})}),w=e=>"done"===e?"process":"failed"===e?"error":"wait",x=(e,t)=>["failed","done"].includes(e)?(0,jl.jsx)(t,{}):(0,jl.jsx)(Ku,{style:{color:"#45464a"},spin:!0}),S=e=>{var t,n,r,o;const a=(null===e||void 0===e?void 0:e.processing_state)||{},i=[{status:w(null===a||void 0===a||null===(t=a.fetch_company_identity)||void 0===t?void 0:t.status),icon:x(null===a||void 0===a||null===(n=a.fetch_company_identity)||void 0===n?void 0:n.status,QN)},{status:w(null===a||void 0===a||null===(r=a.download_documents)||void 0===r?void 0:r.status),icon:x(null===a||void 0===a||null===(o=a.download_documents)||void 0===o?void 0:o.status,tj)}];return(0,jl.jsx)(A6,{size:"small",items:i})};return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)("div",{style:{display:"flex"},children:(0,jl.jsx)(Jz,{style:{width:"30%"},options:W6,defaultValue:W6[2],onChange:e=>d(e)})}),(0,jl.jsx)("br",{}),(0,jl.jsx)("br",{}),(0,jl.jsx)(z6,{className:"demo-loadmore-list",loading:n,itemLayout:"horizontal",dataSource:o,renderItem:e=>(0,jl.jsx)(z6.Item,{actions:[S(e),b(e)],className:"order-list-item",children:(0,jl.jsx)(z6.Item.Meta,{title:y(e),onClick:()=>v(e)})}),pagination:{current:l,pageSize:10,total:i,onChange:e=>c(e),showSizeChanger:!1},locale:{emptyText:(0,jl.jsx)("p",{className:"condukt-green",children:"No orders have been found"})}})]})},V6=e=>e?"function"===typeof e?e():e:null,U6=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:h,innerContentPadding:p,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},zi(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},["".concat(t,"-content")]:{position:"relative"},["".concat(t,"-inner")]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:i,padding:a},["".concat(t,"-title")]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:h,padding:m},["".concat(t,"-inner-content")]:{color:n,padding:p}})},RF(e,"var(--antd-arrow-background-color)"),{["".concat(t,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",["".concat(t,"-content")]:{display:"inline-block"}}}]},q6=e=>{const{componentCls:t}=e;return{[t]:YF.map((n=>{const r=e["".concat(n,"6")];return{["&".concat(t,"-").concat(n)]:{"--antd-arrow-background-color":r,["".concat(t,"-inner")]:{backgroundColor:r},["".concat(t,"-arrow")]:{background:"transparent"}}}}))}},K6=Sl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=hl(e,{popoverBg:t,popoverColor:n});return[U6(r),q6(r),XF(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,h=f/2,p=f/2-t,m=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},AF(e)),MF({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:l,titlePadding:a?"".concat(h,"px ").concat(m,"px ").concat(p,"px"):0,titleBorderBottom:a?"".concat(t,"px ").concat(c," ").concat(u):"none",innerContentPadding:a?"".concat(d,"px ").concat(m,"px"):0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var X6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Y6=t=>{const{hashId:n,prefixCls:r,className:o,style:a,placement:i="top",title:s,content:l,children:c}=t;return e.createElement("div",{className:$o()(n,r,"".concat(r,"-pure"),"".concat(r,"-placement-").concat(i),o),style:a},e.createElement("div",{className:"".concat(r,"-arrow")}),e.createElement(xI,Object.assign({},t,{className:n,prefixCls:r}),c||((t,n,r)=>n||r?e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"".concat(t,"-title")},V6(n)),e.createElement("div",{className:"".concat(t,"-inner-content")},V6(r))):null)(r,s,l)))},Z6=t=>{const{prefixCls:n,className:r}=t,o=X6(t,["prefixCls","className"]),{getPrefixCls:a}=e.useContext(vo),i=a("popover",n),[s,l,c]=K6(i);return s(e.createElement(Y6,Object.assign({},o,{prefixCls:i,hashId:l,className:$o()(r,c)})))};var $6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Q6=t=>{let{title:n,content:r,prefixCls:o}=t;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"".concat(o,"-title")},V6(n)),e.createElement("div",{className:"".concat(o,"-inner-content")},V6(r)))},J6=e.forwardRef(((t,n)=>{var r,o;const{prefixCls:a,title:i,content:s,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:h=.1,onOpenChange:p,overlayStyle:m={}}=t,g=$6(t,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:v}=e.useContext(vo),y=v("popover",a),[b,w,x]=K6(y),S=v(),C=$o()(l,w,x),[_,E]=Oa(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),k=(e,t)=>{E(e,!0),null===p||void 0===p||p(e,t)};return b(e.createElement(lN,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:h,overlayStyle:m},g,{prefixCls:y,overlayClassName:C,ref:n,open:_,onOpenChange:e=>{k(e)},overlay:i||s?e.createElement(Q6,{prefixCls:y,title:i,content:s}):null,transitionName:hI(S,"zoom-big",g.transitionName),"data-popover-inject":!0}),vI(d,{onKeyDown:t=>{var n,r;e.isValidElement(d)&&(null===(r=null===d||void 0===d?void 0:(n=d.props).onKeyDown)||void 0===r||r.call(n,t)),(e=>{e.keyCode===MQ.ESC&&k(!1,e)})(t)}})))})),e5=J6;e5._InternalPanelDoNotUseOrYouWillBeFired=Z6;const t5=e5,n5=t=>{let{children:n}=t;const{debugMode:r,setDebugMode:o,kyc:a,setKyc:i}=(0,e.useContext)(sh),s=(0,jl.jsxs)(WN,{children:[(0,jl.jsx)(WN.Item,{children:(0,jl.jsx)(bX,{checked:r,onChange:()=>o(!r),children:"Debug mode"})},"Debug mode"),(0,jl.jsx)(WN.Item,{children:(0,jl.jsx)(bX,{checked:a,onChange:()=>i(!a),children:"KYC mode"})},"Kyc mode")]});return(0,jl.jsx)(t5,{placement:"bottom",trigger:"hover",content:s,children:(0,jl.jsx)("div",{style:{color:"white",display:"flex",justifyContent:"flex-start"},children:n})})},{Content:r5,Footer:o5,Sider:a5}=Nl;function i5(e,t,n,r){return{key:t,icon:n,children:r,label:e}}const s5=[i5("New Request","newRequest",(0,jl.jsx)(RA,{})),i5("History","pastRequests",(0,jl.jsx)(jA,{})),i5("Logout","logout",(0,jl.jsx)(BA,{}))],l5=()=>{const[t,n]=(0,e.useState)(!1),{menuItem:r,setMenuItem:o,setJwt:a}=(0,e.useContext)(sh),{token:{borderRadiusLG:i}}=KA.useToken(),s=qN(GN.HIDDEN_SETTING);(0,e.useEffect)((()=>{(async()=>{const e=await uh.getJWTToken();a(e)})()}),[]);const l=new Date,c=localStorage.getItem("username");return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsxs)(a5,{collapsible:!0,collapsed:t,onCollapse:e=>n(e),trigger:(0,jl.jsx)(jl.Fragment,{children:t?(0,jl.jsx)("img",{style:{width:14},src:"arrow-right.png",alt:""}):(0,jl.jsx)("img",{style:{width:14},src:"arrow-left.png",alt:""})}),children:[(0,jl.jsx)("div",{style:{display:"flex",justifyContent:"center",height:50,margin:"10%"},children:s?(0,jl.jsx)(n5,{children:t?(0,jl.jsx)("img",{src:"/condukt-logo-short.png",alt:""}):(0,jl.jsx)("img",{style:{maxWidth:"100%",objectFit:"contain"},src:"/condukt-logo-full.png",alt:""})}):(0,jl.jsx)("img",{style:{maxWidth:"100%",objectFit:"contain"},src:"/condukt-logo-full.png",alt:""})}),(0,jl.jsx)("div",{style:{display:"flex",justifyContent:"center",color:"white"},children:!t&&c&&(0,jl.jsxs)("p",{children:["Hello, ","".concat(c)]})}),(0,jl.jsx)(WN,{selectedKeys:[r],mode:"inline",items:s5,onClick:e=>{let{key:t}=e;"logout"===t&&(delete localStorage.refreshToken,delete localStorage.username,window.location.reload()),o(t)}})]}),(0,jl.jsxs)(Nl,{children:[(0,jl.jsx)("div",{style:{display:"flex",padding:"0 24px",margin:"0 16px"},children:(0,jl.jsx)("h1",{style:{color:"white"},children:(()=>{switch(r){case"newRequest":return"New request";case"pastRequests":return"History"}})()})}),(0,jl.jsxs)(r5,{style:{margin:"0 16px"},children:[(0,jl.jsx)("br",{}),(0,jl.jsx)("div",{style:{padding:24,minHeight:360,borderRadius:i},children:(()=>{switch(r){case"newRequest":return(0,jl.jsx)(_4,{});case"pastRequests":return(0,jl.jsx)(G6,{})}})()})]}),(0,jl.jsxs)(o5,{className:"centered",children:["Condukt \xa9 ",l.getFullYear()]})]})]})};function c5(){return c5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c5.apply(this,arguments)}var u5;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(u5||(u5={}));const d5="popstate";function f5(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function h5(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(x7){}}}function p5(e,t){return{usr:e.state,key:e.key,idx:t}}function m5(e,t,n,r){return void 0===n&&(n=null),c5({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?v5(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function g5(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function v5(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function y5(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=u5.Pop,l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){s=u5.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:h.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"===typeof e?e:g5(e);return n=n.replace(/ $/,"%20"),f5(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,i.replaceState(c5({},i.state,{idx:c}),""));let h={get action(){return s},get location(){return e(o,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(d5,d),l=e,()=>{o.removeEventListener(d5,d),l=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=u5.Push;let r=m5(h.location,e,t);n&&n(r,e),c=u()+1;let d=p5(r,c),f=h.createHref(r);try{i.pushState(d,"",f)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;o.location.assign(f)}a&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s=u5.Replace;let r=m5(h.location,e,t);n&&n(r,e),c=u();let o=p5(r,c),d=h.createHref(r);i.replaceState(o,"",d),a&&l&&l({action:s,location:h.location,delta:0})},go:e=>i.go(e)};return h}var b5;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(b5||(b5={}));const w5=new Set(["lazy","caseSensitive","path","id","index","children"]);function x5(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,o)=>{let a=[...n,o],i="string"===typeof e.id?e.id:a.join("-");if(f5(!0!==e.index||!e.children,"Cannot specify children on an index route"),f5(!r[i],'Found a route id collision on id "'+i+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=c5({},e,t(e),{id:i});return r[i]=n,n}{let n=c5({},e,t(e),{id:i,children:void 0});return r[i]=n,e.children&&(n.children=x5(e.children,t,a,r)),n}}))}function S5(e,t,n){void 0===n&&(n="/");let r=j5(("string"===typeof t?v5(t):t).pathname||"/",n);if(null==r)return null;let o=C5(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let i=0;null==a&&i<o.length;++i){let e=N5(r);a=R5(o[i],e)}return a}function C5(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(f5(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let s=z5([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(f5(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),C5(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:I5(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of _5(e.path))o(e,t,r);else o(e,t)})),t}function _5(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=_5(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const E5=/^:[\w-]+$/,k5=3,P5=2,A5=1,O5=10,T5=-2,M5=e=>"*"===e;function I5(e,t){let n=e.split("/"),r=n.length;return n.some(M5)&&(r+=T5),t&&(r+=P5),n.filter((e=>!M5(e))).reduce(((e,t)=>e+(E5.test(t)?k5:""===t?A5:O5)),r)}function R5(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i<n.length;++i){let e=n[i],s=i===n.length-1,l="/"===o?t:t.slice(o.length)||"/",c=F5({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},l);if(!c)return null;Object.assign(r,c.params);let u=e.route;a.push({params:r,pathname:z5([o,c.pathname]),pathnameBase:H5(z5([o,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(o=z5([o,c.pathnameBase]))}return a}function F5(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);h5("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:a,pathnameBase:i,pattern:e}}function N5(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return h5(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function j5(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function D5(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function L5(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function B5(e,t,n,r){let o;void 0===r&&(r=!1),"string"===typeof e?o=v5(e):(o=c5({},e),f5(!o.pathname||!o.pathname.includes("?"),D5("?","pathname","search",o)),f5(!o.pathname||!o.pathname.includes("#"),D5("#","pathname","hash",o)),f5(!o.search||!o.search.includes("#"),D5("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?v5(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:W5(r),hash:G5(o)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const z5=e=>e.join("/").replace(/\/\/+/g,"/"),H5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W5=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",G5=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class V5{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function U5(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const q5=["post","put","patch","delete"],K5=new Set(q5),X5=["get",...q5],Y5=new Set(X5),Z5=new Set([301,302,303,307,308]),$5=new Set([307,308]),Q5={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J5={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},e8={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},t8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,n8=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),r8="remix-router-transitions";function o8(e){const t=e.window?e.window:"undefined"!==typeof window?window:void 0,n="undefined"!==typeof t&&"undefined"!==typeof t.document&&"undefined"!==typeof t.document.createElement,r=!n;let o;if(f5(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=n8;let a,i,s={},l=x5(e.routes,o,void 0,s),c=e.basename||"/",u=c5({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,h=null,p=null,m=null,g=null!=e.hydrationData,v=S5(l,e.history.location,c),y=null;if(null==v){let t=x8(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=w8(l);v=n,y={[r.id]:t}}let b,w=v.some((e=>e.route.lazy)),x=v.some((e=>e.route.loader));if(w)i=!1;else if(x)if(u.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||n&&void 0!==n[e.route.id]);if(n){let e=v.findIndex((e=>void 0!==n[e.route.id]));i=v.slice(0,e+1).every(r)}else i=v.every(r)}else i=null!=e.hydrationData;else i=!0;let S,C={historyAction:e.history.action,location:e.history.location,matches:v,initialized:i,navigation:Q5,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},_=u5.Pop,E=!1,k=!1,P=new Map,A=null,O=!1,T=!1,M=[],I=[],R=new Map,F=0,N=-1,j=new Map,D=new Set,L=new Map,B=new Map,z=new Set,H=new Map,W=new Map,G=!1;function V(e,t){void 0===t&&(t={}),C=c5({},C,e);let n=[],r=[];u.v7_fetcherPersist&&C.fetchers.forEach(((e,t)=>{"idle"===e.state&&(z.has(t)?r.push(t):n.push(t))})),[...f].forEach((e=>e(C,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),u.v7_fetcherPersist&&(n.forEach((e=>C.fetchers.delete(e))),r.forEach((e=>J(e))))}function U(t,n,r){var o,i;let s,{flushSync:c}=void 0===r?{}:r,u=null!=C.actionData&&null!=C.navigation.formMethod&&O8(C.navigation.formMethod)&&"loading"===C.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:u?C.actionData:null;let d=n.loaderData?y8(C.loaderData,n.loaderData,n.matches||[],n.errors):C.loaderData,f=C.blockers;f.size>0&&(f=new Map(f),f.forEach(((e,t)=>f.set(t,e8))));let h,p=!0===E||null!=C.navigation.formMethod&&O8(C.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(a&&(l=a,a=void 0),O||_===u5.Pop||(_===u5.Push?e.history.push(t,t.state):_===u5.Replace&&e.history.replace(t,t.state)),_===u5.Pop){let e=P.get(C.location.pathname);e&&e.has(t.pathname)?h={currentLocation:C.location,nextLocation:t}:P.has(t.pathname)&&(h={currentLocation:t,nextLocation:C.location})}else if(k){let e=P.get(C.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),P.set(C.location.pathname,e)),h={currentLocation:C.location,nextLocation:t}}V(c5({},n,{actionData:s,loaderData:d,historyAction:_,location:t,initialized:!0,navigation:Q5,revalidation:"idle",restoreScrollPosition:ce(t,n.matches||C.matches),preventScrollReset:p,blockers:f}),{viewTransitionOpts:h,flushSync:!0===c}),_=u5.Pop,E=!1,k=!1,O=!1,T=!1,M=[],I=[]}async function q(t,n,r){S&&S.abort(),S=null,_=t,O=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(h&&m){let n=le(e,t);h[n]=m()}}(C.location,C.matches),E=!0===(r&&r.preventScrollReset),k=!0===(r&&r.enableViewTransition);let i=a||l,d=r&&r.overrideNavigation,f=S5(i,n,c),p=!0===(r&&r.flushSync);if(!f){let e=x8(404,{pathname:n.pathname}),{matches:t,route:r}=w8(i);return se(),void U(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}if(C.initialized&&!T&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(C.location,n)&&!(r&&r.submission&&O8(r.submission.formMethod)))return void U(n,{matches:f},{flushSync:p});S=new AbortController;let g,v,y=h8(e.history,n,S.signal,r&&r.submission);if(r&&r.pendingError)v={[b8(f).route.id]:r.pendingError};else if(r&&r.submission&&O8(r.submission.formMethod)){let e=await async function(e,t,n,r,a){void 0===a&&(a={});Y();let i,l=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);V({navigation:l},{flushSync:!0===a.flushSync});let d=R8(r,t);if(d.route.action||d.route.lazy){if(i=await f8("action",e,d,r,s,o,c,u.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else i={type:b5.error,error:x8(405,{method:e.method,pathname:t.pathname,routeId:d.route.id})};if(k8(i)){let e;return e=a&&null!=a.replace?a.replace:i.location===C.location.pathname+C.location.search,await K(C,i,{submission:n,replace:e}),{shortCircuited:!0}}if(E8(i)){let e=b8(r,d.route.id);return!0!==(a&&a.replace)&&(_=u5.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:i.error}}}if(_8(i))throw x8(400,{type:"defer-action"});return{pendingActionData:{[d.route.id]:i.data}}}(y,n,r.submission,f,{replace:r.replace,flushSync:p});if(e.shortCircuited)return;g=e.pendingActionData,v=e.pendingActionError,d=N8(n,r.submission),p=!1,y=new Request(y.url,{signal:y.signal})}let{shortCircuited:b,loaderData:w,errors:x}=await async function(t,n,r,o,i,s,d,f,h,p,m){let g=o||N8(n,i),v=i||s||F8(g),y=a||l,[b,w]=l8(e.history,C,r,v,n,u.v7_partialHydration&&!0===f,T,M,I,z,L,D,y,c,p,m);if(se((e=>!(r&&r.some((t=>t.route.id===e)))||b&&b.some((t=>t.route.id===e)))),N=++F,0===b.length&&0===w.length){let e=ne();return U(n,c5({matches:r,loaderData:{},errors:m||null},p?{actionData:p}:{},e?{fetchers:new Map(C.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(!O&&(!u.v7_partialHydration||!f)){w.forEach((e=>{let t=C.fetchers.get(e.key),n=j8(void 0,t?t.data:void 0);C.fetchers.set(e.key,n)}));let e=p||C.actionData;V(c5({navigation:g},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},w.length>0?{fetchers:new Map(C.fetchers)}:{}),{flushSync:h})}w.forEach((e=>{R.has(e.key)&&ee(e.key),e.controller&&R.set(e.key,e.controller)}));let x=()=>w.forEach((e=>ee(e.key)));S&&S.signal.addEventListener("abort",x);let{results:_,loaderResults:E,fetcherResults:k}=await X(C.matches,r,b,w,t);if(t.signal.aborted)return{shortCircuited:!0};S&&S.signal.removeEventListener("abort",x);w.forEach((e=>R.delete(e.key)));let P=S8(_);if(P){if(P.idx>=b.length){let e=w[P.idx-b.length].key;D.add(e)}return await K(C,P.result,{replace:d}),{shortCircuited:!0}}let{loaderData:A,errors:j}=v8(C,r,b,E,m,w,k,H);H.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&H.delete(t)}))})),u.v7_partialHydration&&f&&C.errors&&Object.entries(C.errors).filter((e=>{let[t]=e;return!b.some((e=>e.route.id===t))})).forEach((e=>{let[t,n]=e;j=Object.assign(j||{},{[t]:n})}));let B=ne(),W=re(N),G=B||W||w.length>0;return c5({loaderData:A,errors:j},G?{fetchers:new Map(C.fetchers)}:{})}(y,n,f,d,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,p,g,v);b||(S=null,U(n,c5({matches:f},g?{actionData:g}:{},{loaderData:w,errors:x})))}async function K(r,o,a){let{submission:i,fetcherSubmission:s,replace:l}=void 0===a?{}:a;o.revalidate&&(T=!0);let u=m5(r.location,o.location,{_isRedirect:!0});if(f5(u,"Expected a location on the redirect navigation"),n){let n=!1;if(o.reloadDocument)n=!0;else if(t8.test(o.location)){const r=e.history.createURL(o.location);n=r.origin!==t.location.origin||null==j5(r.pathname,c)}if(n)return void(l?t.location.replace(o.location):t.location.assign(o.location))}S=null;let d=!0===l?u5.Replace:u5.Push,{formMethod:f,formAction:h,formEncType:p}=r.navigation;!i&&!s&&f&&h&&p&&(i=F8(r.navigation));let m=i||s;if($5.has(o.status)&&m&&O8(m.formMethod))await q(d,u,{submission:c5({},m,{formAction:o.location}),preventScrollReset:E});else{let e=N8(u,i);await q(d,u,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:E})}}async function X(t,n,r,a,i){let l=await Promise.all([...r.map((e=>f8("loader",i,e,n,s,o,c,u.v7_relativeSplatPath))),...a.map((t=>{if(t.matches&&t.match&&t.controller)return f8("loader",h8(e.history,t.path,t.controller.signal),t.match,t.matches,s,o,c,u.v7_relativeSplatPath);return{type:b5.error,error:x8(404,{pathname:t.path})}}))]),d=l.slice(0,r.length),f=l.slice(r.length);return await Promise.all([T8(t,r,d,d.map((()=>i.signal)),!1,C.loaderData),T8(t,a.map((e=>e.match)),f,a.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:l,loaderResults:d,fetcherResults:f}}function Y(){T=!0,M.push(...se()),L.forEach(((e,t)=>{R.has(t)&&(I.push(t),ee(t))}))}function Z(e,t,n){void 0===n&&(n={}),C.fetchers.set(e,t),V({fetchers:new Map(C.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function $(e,t,n,r){void 0===r&&(r={});let o=b8(C.matches,t);J(e),V({errors:{[o.route.id]:n},fetchers:new Map(C.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Q(e){return u.v7_fetcherPersist&&(B.set(e,(B.get(e)||0)+1),z.has(e)&&z.delete(e)),C.fetchers.get(e)||J5}function J(e){let t=C.fetchers.get(e);!R.has(e)||t&&"loading"===t.state&&j.has(e)||ee(e),L.delete(e),j.delete(e),D.delete(e),z.delete(e),C.fetchers.delete(e)}function ee(e){let t=R.get(e);f5(t,"Expected fetch controller: "+e),t.abort(),R.delete(e)}function te(e){for(let t of e){let e=D8(Q(t).data);C.fetchers.set(t,e)}}function ne(){let e=[],t=!1;for(let n of D){let r=C.fetchers.get(n);f5(r,"Expected fetcher: "+n),"loading"===r.state&&(D.delete(n),e.push(n),t=!0)}return te(e),t}function re(e){let t=[];for(let[n,r]of j)if(r<e){let e=C.fetchers.get(n);f5(e,"Expected fetcher: "+n),"loading"===e.state&&(ee(n),j.delete(n),t.push(n))}return te(t),t.length>0}function oe(e){C.blockers.delete(e),W.delete(e)}function ae(e,t){let n=C.blockers.get(e)||e8;f5("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(C.blockers);r.set(e,t),V({blockers:r})}function ie(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===W.size)return;W.size>1&&h5(!1,"A router only supports one blocker at a time");let o=Array.from(W.entries()),[a,i]=o[o.length-1],s=C.blockers.get(a);return s&&"proceeding"===s.state?void 0:i({currentLocation:t,nextLocation:n,historyAction:r})?a:void 0}function se(e){let t=[];return H.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),H.delete(r))})),t}function le(e,t){if(p){let n=p(e,t.map((e=>function(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}(e,C.loaderData))));return n||e.key}return e.key}function ce(e,t){if(h){let n=le(e,t),r=h[n];if("number"===typeof r)return r}return null}return b={get basename(){return c},get future(){return u},get state(){return C},get routes(){return l},get window(){return t},initialize:function(){if(d=e.history.listen((t=>{let{action:n,location:r,delta:o}=t;if(G)return void(G=!1);h5(0===W.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let a=ie({currentLocation:C.location,nextLocation:r,historyAction:n});return a&&null!=o?(G=!0,e.history.go(-1*o),void ae(a,{state:"blocked",location:r,proceed(){ae(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(o)},reset(){let e=new Map(C.blockers);e.set(a,e8),V({blockers:e})}})):q(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(r8);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(x7){}}(t,P);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(r8,JSON.stringify(r))}catch(n){h5(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}(t,P);t.addEventListener("pagehide",e),A=()=>t.removeEventListener("pagehide",e)}return C.initialized||q(u5.Pop,C.location,{initialHydration:!0}),b},subscribe:function(e){return f.add(e),()=>f.delete(e)},enableScrollRestoration:function(e,t,n){if(h=e,m=t,p=n||null,!g&&C.navigation===Q5){g=!0;let e=ce(C.location,C.matches);null!=e&&V({restoreScrollPosition:e})}return()=>{h=null,m=null,p=null}},navigate:async function t(n,r){if("number"===typeof n)return void e.history.go(n);let o=a8(C.location,C.matches,c,u.v7_prependBasename,n,u.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:i,error:s}=i8(u.v7_normalizeFormMethod,!1,o,r),l=C.location,d=m5(C.location,a,r&&r.state);d=c5({},d,e.history.encodeLocation(d));let f=r&&null!=r.replace?r.replace:void 0,h=u5.Push;!0===f?h=u5.Replace:!1===f||null!=i&&O8(i.formMethod)&&i.formAction===C.location.pathname+C.location.search&&(h=u5.Replace);let p=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.unstable_flushSync),g=ie({currentLocation:l,nextLocation:d,historyAction:h});if(!g)return await q(h,d,{submission:i,pendingError:s,preventScrollReset:p,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:m});ae(g,{state:"blocked",location:d,proceed(){ae(g,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,r)},reset(){let e=new Map(C.blockers);e.set(g,e8),V({blockers:e})}})},fetch:function(t,n,i,d){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");R.has(t)&&ee(t);let f=!0===(d&&d.unstable_flushSync),h=a||l,p=a8(C.location,C.matches,c,u.v7_prependBasename,i,u.v7_relativeSplatPath,n,null==d?void 0:d.relative),m=S5(h,p,c);if(!m)return void $(t,n,x8(404,{pathname:p}),{flushSync:f});let{path:g,submission:v,error:y}=i8(u.v7_normalizeFormMethod,!0,p,d);if(y)return void $(t,n,y,{flushSync:f});let b=R8(m,g);E=!0===(d&&d.preventScrollReset),v&&O8(v.formMethod)?async function(t,n,r,i,d,f,h){if(Y(),L.delete(t),!i.route.action&&!i.route.lazy){let e=x8(405,{method:h.formMethod,pathname:r,routeId:n});return void $(t,n,e,{flushSync:f})}let p=C.fetchers.get(t);Z(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(h,p),{flushSync:f});let m=new AbortController,g=h8(e.history,r,m.signal,h);R.set(t,m);let v=F,y=await f8("action",g,i,d,s,o,c,u.v7_relativeSplatPath);if(g.signal.aborted)return void(R.get(t)===m&&R.delete(t));if(u.v7_fetcherPersist&&z.has(t)){if(k8(y)||E8(y))return void Z(t,D8(void 0))}else{if(k8(y))return R.delete(t),N>v?void Z(t,D8(void 0)):(D.add(t),Z(t,j8(h)),K(C,y,{fetcherSubmission:h}));if(E8(y))return void $(t,n,y.error)}if(_8(y))throw x8(400,{type:"defer-action"});let b=C.navigation.location||C.location,w=h8(e.history,b,m.signal),x=a||l,E="idle"!==C.navigation.state?S5(x,C.navigation.location,c):C.matches;f5(E,"Didn't find any matches after fetcher action");let k=++F;j.set(t,k);let P=j8(h,y.data);C.fetchers.set(t,P);let[A,O]=l8(e.history,C,E,h,b,!1,T,M,I,z,L,D,x,c,{[i.route.id]:y.data},void 0);O.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=C.fetchers.get(t),r=j8(void 0,n?n.data:void 0);C.fetchers.set(t,r),R.has(t)&&ee(t),e.controller&&R.set(t,e.controller)})),V({fetchers:new Map(C.fetchers)});let B=()=>O.forEach((e=>ee(e.key)));m.signal.addEventListener("abort",B);let{results:W,loaderResults:G,fetcherResults:q}=await X(C.matches,E,A,O,w);if(m.signal.aborted)return;m.signal.removeEventListener("abort",B),j.delete(t),R.delete(t),O.forEach((e=>R.delete(e.key)));let Q=S8(W);if(Q){if(Q.idx>=A.length){let e=O[Q.idx-A.length].key;D.add(e)}return K(C,Q.result)}let{loaderData:J,errors:te}=v8(C,C.matches,A,G,void 0,O,q,H);if(C.fetchers.has(t)){let e=D8(y.data);C.fetchers.set(t,e)}re(k),"loading"===C.navigation.state&&k>N?(f5(_,"Expected pending action"),S&&S.abort(),U(C.navigation.location,{matches:E,loaderData:J,errors:te,fetchers:new Map(C.fetchers)})):(V({errors:te,loaderData:y8(C.loaderData,J,E,te),fetchers:new Map(C.fetchers)}),T=!1)}(t,n,g,b,m,f,v):(L.set(t,{routeId:n,path:g}),async function(t,n,r,a,i,l,d){let f=C.fetchers.get(t);Z(t,j8(d,f?f.data:void 0),{flushSync:l});let h=new AbortController,p=h8(e.history,r,h.signal);R.set(t,h);let m=F,g=await f8("loader",p,a,i,s,o,c,u.v7_relativeSplatPath);_8(g)&&(g=await M8(g,p.signal,!0)||g);R.get(t)===h&&R.delete(t);if(p.signal.aborted)return;if(z.has(t))return void Z(t,D8(void 0));if(k8(g))return N>m?void Z(t,D8(void 0)):(D.add(t),void await K(C,g));if(E8(g))return void $(t,n,g.error);f5(!_8(g),"Unhandled fetcher deferred data"),Z(t,D8(g.data))}(t,n,g,b,m,f,v))},revalidate:function(){Y(),V({revalidation:"loading"}),"submitting"!==C.navigation.state&&("idle"!==C.navigation.state?q(_||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation}):q(C.historyAction,C.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Q,deleteFetcher:function(e){if(u.v7_fetcherPersist){let t=(B.get(e)||0)-1;t<=0?(B.delete(e),z.add(e)):B.set(e,t)}else J(e);V({fetchers:new Map(C.fetchers)})},dispose:function(){d&&d(),A&&A(),f.clear(),S&&S.abort(),C.fetchers.forEach(((e,t)=>J(t))),C.blockers.forEach(((e,t)=>oe(t)))},getBlocker:function(e,t){let n=C.blockers.get(e)||e8;return W.get(e)!==t&&W.set(e,t),n},deleteBlocker:oe,_internalFetchControllers:R,_internalActiveDeferreds:H,_internalSetRoutes:function(e){s={},a=x5(e,o,void 0,s)}},b}Symbol("deferred");function a8(e,t,n,r,o,a,i,s){let l,c;if(i){l=[];for(let e of t)if(l.push(e),e.route.id===i){c=e;break}}else l=t,c=t[t.length-1];let u=B5(o||".",function(e,t){let n=L5(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}(l,a),j5(e.pathname,n)||e.pathname,"path"===s);return null==o&&(u.search=e.search,u.hash=e.hash),null!=o&&""!==o&&"."!==o||!c||!c.route.index||I8(u.search)||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(u.pathname="/"===u.pathname?n:z5([n,u.pathname])),g5(u)}function i8(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!A8(r.formMethod))return{path:n,error:x8(405,{method:r.formMethod})};let o,a,i=()=>({path:n,error:x8(400,{type:"invalid-body"})}),s=r.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),c=C8(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!O8(l))return i();let e="string"===typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!O8(l))return i();try{let e="string"===typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(x7){return i()}}}if(f5("function"===typeof FormData,"FormData is not available in this environment"),r.formData)o=p8(r.formData),a=r.formData;else if(r.body instanceof FormData)o=p8(r.body),a=r.body;else if(r.body instanceof URLSearchParams)o=r.body,a=m8(o);else if(null==r.body)o=new URLSearchParams,a=new FormData;else try{o=new URLSearchParams(r.body),a=m8(o)}catch(x7){return i()}let u={formMethod:l,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(O8(u.formMethod))return{path:n,submission:u};let d=v5(n);return t&&d.search&&I8(d.search)&&o.append("index",""),d.search="?"+o,{path:g5(d),submission:u}}function s8(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}function l8(e,t,n,r,o,a,i,s,l,c,u,d,f,h,p,m){let g=m?Object.values(m)[0]:p?Object.values(p)[0]:void 0,v=e.createURL(t.location),y=e.createURL(o),b=m?Object.keys(m)[0]:void 0,w=s8(n,b).filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(a)return!!o.loader.hydrate||void 0===t.loaderData[o.id]&&(!t.errors||void 0===t.errors[o.id]);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||s.some((t=>t===e.route.id)))return!0;let l=t.matches[n],c=e;return u8(e,c5({currentUrl:v,currentParams:l.params,nextUrl:y,nextParams:c.params},r,{actionResult:g,defaultShouldRevalidate:i||v.pathname+v.search===y.pathname+y.search||v.search!==y.search||c8(l,c)}))})),x=[];return u.forEach(((e,o)=>{if(a||!n.some((t=>t.route.id===e.routeId))||c.has(o))return;let s=S5(f,e.path,h);if(!s)return void x.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(o),p=R8(s,e.path),m=!1;m=!d.has(o)&&(!!l.includes(o)||(u&&"idle"!==u.state&&void 0===u.data?i:u8(p,c5({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:i})))),m&&x.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:p,controller:new AbortController})})),[w,x]}function c8(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function u8(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"===typeof n)return n}return t.defaultShouldRevalidate}async function d8(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];f5(o,"No route found in manifest");let a={};for(let i in r){let e=void 0!==o[i]&&"hasErrorBoundary"!==i;h5(!e,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+i+'" will be ignored.'),e||w5.has(i)||(a[i]=r[i])}Object.assign(o,a),Object.assign(o,c5({},t(o),{lazy:void 0}))}async function f8(e,t,n,r,o,a,i,s,l){let c,u,d;void 0===l&&(l={});let f=e=>{let r,o=new Promise(((e,t)=>r=t));return d=()=>r(),t.signal.addEventListener("abort",d),Promise.race([e({request:t,params:n.params,context:l.requestContext}),o])};try{let r=n.route[e];if(n.route.lazy)if(r){let e,t=await Promise.all([f(r).catch((t=>{e=t})),d8(n.route,a,o)]);if(e)throw e;u=t[0]}else{if(await d8(n.route,a,o),r=n.route[e],!r){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw x8(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:b5.data,data:void 0}}u=await f(r)}else{if(!r){let e=new URL(t.url);throw x8(404,{pathname:e.pathname+e.search})}u=await f(r)}f5(void 0!==u,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(x7){c=b5.error,u=x7}finally{d&&t.signal.removeEventListener("abort",d)}if(P8(u)){let e,o=u.status;if(Z5.has(o)){let e=u.headers.get("Location");if(f5(e,"Redirects returned/thrown from loaders/actions must have a Location header"),t8.test(e)){if(!l.isStaticRequest){let n=new URL(t.url),r=e.startsWith("//")?new URL(n.protocol+e):new URL(e),o=null!=j5(r.pathname,i);r.origin===n.origin&&o&&(e=r.pathname+r.search+r.hash)}}else e=a8(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,e,s);if(l.isStaticRequest)throw u.headers.set("Location",e),u;return{type:b5.redirect,status:o,location:e,revalidate:null!==u.headers.get("X-Remix-Revalidate"),reloadDocument:null!==u.headers.get("X-Remix-Reload-Document")}}if(l.isRouteRequest){throw{type:c===b5.error?b5.error:b5.data,response:u}}try{let t=u.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==u.body?null:await u.json():await u.text()}catch(x7){return{type:b5.error,error:x7}}return c===b5.error?{type:c,error:new V5(o,u.statusText,e),headers:u.headers}:{type:b5.data,data:e,statusCode:u.status,headers:u.headers}}return c===b5.error?{type:c,error:u}:function(e){let t=e;return t&&"object"===typeof t&&"object"===typeof t.data&&"function"===typeof t.subscribe&&"function"===typeof t.cancel&&"function"===typeof t.resolveData}(u)?{type:b5.deferred,deferredData:u,statusCode:null==(h=u.init)?void 0:h.status,headers:(null==(p=u.init)?void 0:p.headers)&&new Headers(u.init.headers)}:{type:b5.data,data:u};var h,p}function h8(e,t,n,r){let o=e.createURL(C8(t)).toString(),a={signal:n};if(r&&O8(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=p8(r.formData):a.body=r.formData}return new Request(o,a)}function p8(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"===typeof r?r:r.name);return t}function m8(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function g8(e,t,n,r,o){let a,i={},s=null,l=!1,c={};return n.forEach(((n,u)=>{let d=t[u].route.id;if(f5(!k8(n),"Cannot handle redirect results in processLoaderData"),E8(n)){let t=b8(e,d),o=n.error;r&&(o=Object.values(r)[0],r=void 0),s=s||{},null==s[t.route.id]&&(s[t.route.id]=o),i[d]=void 0,l||(l=!0,a=U5(n.error)?n.error.status:500),n.headers&&(c[d]=n.headers)}else _8(n)?(o.set(d,n.deferredData),i[d]=n.deferredData.data):i[d]=n.data,null==n.statusCode||200===n.statusCode||l||(a=n.statusCode),n.headers&&(c[d]=n.headers)})),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:a||200,loaderHeaders:c}}function v8(e,t,n,r,o,a,i,s){let{loaderData:l,errors:c}=g8(t,n,r,o,s);for(let u=0;u<a.length;u++){let{key:t,match:n,controller:r}=a[u];f5(void 0!==i&&void 0!==i[u],"Did not find corresponding fetcher result");let o=i[u];if(!r||!r.signal.aborted)if(E8(o)){let r=b8(e.matches,null==n?void 0:n.route.id);c&&c[r.route.id]||(c=c5({},c,{[r.route.id]:o.error})),e.fetchers.delete(t)}else if(k8(o))f5(!1,"Unhandled fetcher revalidation redirect");else if(_8(o))f5(!1,"Unhandled fetcher deferred data");else{let n=D8(o.data);e.fetchers.set(t,n)}}return{loaderData:l,errors:c}}function y8(e,t,n,r){let o=c5({},t);for(let a of n){let n=a.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(o[n]=t[n]):void 0!==e[n]&&a.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function b8(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function w8(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function x8(e,t){let{pathname:n,routeId:r,method:o,type:a}=void 0===t?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===a?s="defer() is not supported in actions":"invalid-body"===a&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):404===e?(i="Not Found",s='No route matches URL "'+n+'"'):405===e&&(i="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new V5(e||500,i,new Error(s),!0)}function S8(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(k8(n))return{result:n,idx:t}}}function C8(e){return g5(c5({},"string"===typeof e?v5(e):e,{hash:""}))}function _8(e){return e.type===b5.deferred}function E8(e){return e.type===b5.error}function k8(e){return(e&&e.type)===b5.redirect}function P8(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"object"===typeof e.headers&&"undefined"!==typeof e.body}function A8(e){return Y5.has(e.toLowerCase())}function O8(e){return K5.has(e.toLowerCase())}async function T8(e,t,n,r,o,a){for(let i=0;i<n.length;i++){let s=n[i],l=t[i];if(!l)continue;let c=e.find((e=>e.route.id===l.route.id)),u=null!=c&&!c8(c,l)&&void 0!==(a&&a[l.route.id]);if(_8(s)&&(o||u)){let e=r[i];f5(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await M8(s,e,o).then((e=>{e&&(n[i]=e||n[i])}))}}}async function M8(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:b5.data,data:e.deferredData.unwrappedData}}catch(x7){return{type:b5.error,error:x7}}return{type:b5.data,data:e.deferredData.data}}}function I8(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function R8(e,t){let n="string"===typeof t?v5(t).search:t.search;if(e[e.length-1].route.index&&I8(n||""))return e[e.length-1];let r=L5(e);return r[r.length-1]}function F8(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=a?{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}:void 0}function N8(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function j8(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function D8(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function L8(){return L8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L8.apply(this,arguments)}const B8=e.createContext(null);const z8=e.createContext(null);const H8=e.createContext(null);const W8=e.createContext(null);const G8=e.createContext({outlet:null,matches:[],isDataRoute:!1});const V8=e.createContext(null);function U8(){return null!=e.useContext(W8)}function q8(){return U8()||f5(!1),e.useContext(W8).location}function K8(t,n,r,o){U8()||f5(!1);let{navigator:a}=e.useContext(H8),{matches:i}=e.useContext(G8),s=i[i.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,d=q8();if(n){var f;let e="string"===typeof n?v5(n):n;"/"===c||(null==(f=e.pathname)?void 0:f.startsWith(c))||f5(!1),u=e}else u=d;let h=u.pathname||"/",p=h;if("/"!==c){let e=c.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=S5(t,{pathname:p});let g=Q8(m&&m.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:z5([c,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:z5([c,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,r,o);return n&&g?e.createElement(W8.Provider,{value:{location:L8({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:u5.Pop}},g):g}function X8(){let t=function(){var t;let n=e.useContext(V8),r=e7(J8.UseRouteError),o=t7(J8.UseRouteError);if(void 0!==n)return n;return null==(t=r.errors)?void 0:t[o]}(),n=U5(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),r?e.createElement("pre",{style:a},r):null,null)}const Y8=e.createElement(X8,null);class Z8 extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?e.createElement(G8.Provider,{value:this.props.routeContext},e.createElement(V8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $8(t){let{routeContext:n,match:r,children:o}=t,a=e.useContext(B8);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),e.createElement(G8.Provider,{value:n},o)}function Q8(t,n,r,o){var a;if(void 0===n&&(n=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==t){var i;if(null==(i=r)||!i.errors)return null;t=r.matches}let s=t,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||f5(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,u=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){c=!0,s=u>=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((t,o,a)=>{let i,d=!1,f=null,h=null;var p;r&&(i=l&&o.route.id?l[o.route.id]:void 0,f=o.route.errorElement||Y8,c&&(u<0&&0===a?(p="route-fallback",!1||n7[p]||(n7[p]=!0),d=!0,h=null):u===a&&(d=!0,h=o.route.hydrateFallbackElement||null)));let m=n.concat(s.slice(0,a+1)),g=()=>{let n;return n=i?f:d?h:o.route.Component?e.createElement(o.route.Component,null):o.route.element?o.route.element:t,e.createElement($8,{match:o,routeContext:{outlet:t,matches:m,isDataRoute:null!=r},children:n})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?e.createElement(Z8,{location:r.location,revalidation:r.revalidation,component:f,error:i,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var J8=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(J8||{});function e7(t){let n=e.useContext(z8);return n||f5(!1),n}function t7(t){let n=function(t){let n=e.useContext(G8);return n||f5(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||f5(!1),r.route.id}const n7={};t.startTransition;function r7(t){let{basename:n="/",children:r=null,location:o,navigationType:a=u5.Pop,navigator:i,static:s=!1,future:l}=t;U8()&&f5(!1);let c=n.replace(/^\/*/,"/"),u=e.useMemo((()=>({basename:c,navigator:i,static:s,future:L8({v7_relativeSplatPath:!1},l)})),[c,l,i,s]);"string"===typeof o&&(o=v5(o));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:m="default"}=o,g=e.useMemo((()=>{let e=j5(d,c);return null==e?null:{location:{pathname:e,search:f,hash:h,state:p,key:m},navigationType:a}}),[c,d,f,h,p,m,a]);return null==g?null:e.createElement(H8.Provider,{value:u},e.createElement(W8.Provider,{children:r,value:g}))}new Promise((()=>{}));e.Component;function o7(t){let n={hasErrorBoundary:null!=t.ErrorBoundary||null!=t.errorElement};return t.Component&&Object.assign(n,{element:e.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:e.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(n,{errorElement:e.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),n}function a7(){return a7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a7.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(x7){}function i7(e,t){return o8({basename:null==t?void 0:t.basename,future:a7({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(n={window:null==t?void 0:t.window},void 0===n&&(n={}),y5((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return m5("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:g5(t)}),null,n)),hydrationData:(null==t?void 0:t.hydrationData)||s7(),routes:e,mapRouteProperties:o7,window:null==t?void 0:t.window}).initialize();var n}function s7(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=a7({},t,{errors:l7(t.errors)})),t}function l7(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&"RouteErrorResponse"===o.__type)n[r]=new V5(o.status,o.statusText,o.data,!0===o.internal);else if(o&&"Error"===o.__type){if(o.__subType){let e=window[o.__subType];if("function"===typeof e)try{let t=new e(o.message);t.stack="",n[r]=t}catch(x7){}}if(null==n[r]){let e=new Error(o.message);e.stack="",n[r]=e}}else n[r]=o;return n}const c7=e.createContext({isTransitioning:!1});const u7=e.createContext(new Map);const d7=t.startTransition,f7=Jo.flushSync;t.useId;function h7(e){f7?f7(e):e()}class p7{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function m7(t){let{fallbackElement:n,router:r,future:o}=t,[a,i]=e.useState(r.state),[s,l]=e.useState(),[c,u]=e.useState({isTransitioning:!1}),[d,f]=e.useState(),[h,p]=e.useState(),[m,g]=e.useState(),v=e.useRef(new Map),{v7_startTransition:y}=o||{},b=e.useCallback((e=>{y?function(e){d7?d7(e):e()}(e):e()}),[y]),w=e.useCallback(((e,t)=>{let{deletedFetchers:n,unstable_flushSync:o,unstable_viewTransitionOpts:a}=t;n.forEach((e=>v.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&v.current.set(t,e.data)}));let s=null==r.window||"function"!==typeof r.window.document.startViewTransition;if(a&&!s){if(o){h7((()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:a.currentLocation,nextLocation:a.nextLocation})}));let t=r.window.document.startViewTransition((()=>{h7((()=>i(e)))}));return t.finished.finally((()=>{h7((()=>{f(void 0),p(void 0),l(void 0),u({isTransitioning:!1})}))})),void h7((()=>p(t)))}h?(d&&d.resolve(),h.skipTransition(),g({state:e,currentLocation:a.currentLocation,nextLocation:a.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:a.currentLocation,nextLocation:a.nextLocation}))}else o?h7((()=>i(e))):b((()=>i(e)))}),[r.window,h,d,v,b]);e.useLayoutEffect((()=>r.subscribe(w)),[r,w]),e.useEffect((()=>{c.isTransitioning&&!c.flushSync&&f(new p7)}),[c]),e.useEffect((()=>{if(d&&s&&r.window){let e=s,t=d.promise,n=r.window.document.startViewTransition((async()=>{b((()=>i(e))),await t}));n.finished.finally((()=>{f(void 0),p(void 0),l(void 0),u({isTransitioning:!1})})),p(n)}}),[b,s,d,r.window]),e.useEffect((()=>{d&&s&&a.location.key===s.location.key&&d.resolve()}),[d,h,a.location,s]),e.useEffect((()=>{!c.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))}),[c.isTransitioning,m]),e.useEffect((()=>{}),[]);let x=e.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),S=r.basename||"/",C=e.useMemo((()=>({router:r,navigator:x,static:!1,basename:S})),[r,x,S]);return e.createElement(e.Fragment,null,e.createElement(B8.Provider,{value:C},e.createElement(z8.Provider,{value:a},e.createElement(u7.Provider,{value:v.current},e.createElement(c7.Provider,{value:c},e.createElement(r7,{basename:S,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?e.createElement(g7,{routes:r.routes,future:r.future,state:a}):n))))),null)}function g7(e){let{routes:t,future:n,state:r}=e;return K8(t,void 0,r,n)}"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;var v7,y7;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(v7||(v7={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(y7||(y7={}));const b7=()=>"undefined"!=typeof window,w7=()=>!(!b7()||!window.hj),x7=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(b7()&&window.hj)return window.hj(e,...n);throw Error("Hotjar is not available, make sure init has been called.")},S7={init:(e,t,n)=>{try{return((e,t,n)=>{if(!((e,t,n)=>{try{const r=document.getElementById(t)||document.createElement("script");return r.id=t,r.nonce=n,r.innerText=e,r.crossOrigin="anonymous",document.head.appendChild(r),!0}catch(e){return!1}})("(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:".concat(e,",hjsv:").concat(t,",hjdebug:").concat((null==n?void 0:n.debug)||!1,"};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');"),"hotjar-init-script",null==n?void 0:n.nonce)||!w7())throw Error("Failed to initialize Hotjar tracking script.")})(e,t,n),!0}catch(e){return console.error("Error:",e),!1}},event:e=>{try{return x7("event",e),!0}catch(e){return console.error("Error:",e),!1}},identify:(e,t)=>{try{return x7("identify",e,t),!0}catch(e){return console.error("Error:",e),!1}},stateChange:e=>{try{return x7("stateChange",e),!0}catch(e){return console.error("Error:",e),!1}},isReady:w7},C7=S7;let _7=i7([{path:"/",element:(0,jl.jsx)(Ll,{children:(0,jl.jsx)(lh,{children:(0,jl.jsx)(TA,{})})})}]);localStorage.getItem("refreshToken")&&(_7=i7([{path:"/",element:(0,jl.jsx)(Ll,{children:(0,jl.jsx)(lh,{children:(0,jl.jsx)(l5,{})})})}]));const E7=n.createRoot(document.getElementById("root"));C7.init(ch.HOTJAR_SITE_ID,6),E7.render((0,jl.jsx)(e.StrictMode,{children:(0,jl.jsx)(m7,{router:_7})})),Bl()})()})();
//# sourceMappingURL=main.501f9d53.js.map